@boxcustodia/library 2.0.0-alpha.2 → 2.0.0-alpha.20
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.
- package/dist/components/accordion/accordion.cjs.js +2 -0
- package/dist/components/accordion/accordion.es.js +118 -0
- package/dist/components/alert/alert.cjs.js +2 -0
- package/dist/components/alert/alert.es.js +99 -0
- package/dist/components/alert-dialog/alert-dialog.cjs.js +2 -0
- package/dist/components/alert-dialog/alert-dialog.es.js +221 -0
- package/dist/components/auto-complete/auto-complete.cjs.js +2 -0
- package/dist/components/auto-complete/auto-complete.es.js +344 -0
- package/dist/components/avatar/avatar.cjs.js +2 -0
- package/dist/components/avatar/avatar.es.js +147 -0
- package/dist/components/button/button.cjs.js +2 -0
- package/dist/components/button/button.es.js +58 -0
- package/dist/components/button/components/base-button.cjs.js +2 -0
- package/dist/components/button/components/base-button.es.js +46 -0
- package/dist/components/calendar/calendar.cjs.js +2 -0
- package/dist/components/calendar/calendar.es.js +139 -0
- package/dist/components/card/card.cjs.js +2 -0
- package/dist/components/card/card.es.js +142 -0
- package/dist/components/center/center.cjs.js +2 -0
- package/dist/components/center/center.es.js +23 -0
- package/dist/components/checkbox/checkbox.cjs.js +2 -0
- package/dist/components/checkbox/checkbox.es.js +229 -0
- package/dist/components/checkbox-group/checkbox-group.cjs.js +2 -0
- package/dist/components/checkbox-group/checkbox-group.es.js +59 -0
- package/dist/components/combobox/combobox.cjs.js +2 -0
- package/dist/components/combobox/combobox.es.js +689 -0
- package/dist/components/date-picker/date-input.cjs.js +2 -0
- package/dist/components/date-picker/date-input.es.js +169 -0
- package/dist/components/date-picker/date-picker.cjs.js +2 -0
- package/dist/components/date-picker/date-picker.es.js +271 -0
- package/dist/components/date-picker/date-picker.utils.cjs.js +1 -0
- package/dist/components/date-picker/date-picker.utils.es.js +81 -0
- package/dist/components/date-picker/use-date-input-popover.cjs.js +1 -0
- package/dist/components/date-picker/use-date-input-popover.es.js +26 -0
- package/dist/components/date-picker/use-date-input.cjs.js +1 -0
- package/dist/components/date-picker/use-date-input.es.js +64 -0
- package/dist/components/date-picker/use-hidden-field-value.cjs.js +1 -0
- package/dist/components/date-picker/use-hidden-field-value.es.js +11 -0
- package/dist/components/dialog/dialog.cjs.js +2 -0
- package/dist/components/dialog/dialog.es.js +221 -0
- package/dist/components/divider/divider.cjs.js +2 -0
- package/dist/components/divider/divider.es.js +27 -0
- package/dist/components/dropzone/dropzone.cjs.js +2 -0
- package/dist/components/dropzone/dropzone.es.js +303 -0
- package/dist/components/dropzone/file-types.cjs.js +1 -0
- package/dist/components/dropzone/file-types.es.js +57 -0
- package/dist/components/empty/empty.cjs.js +2 -0
- package/dist/components/empty/empty.es.js +128 -0
- package/dist/components/field/field.cjs.js +2 -0
- package/dist/components/field/field.es.js +179 -0
- package/dist/components/form/form.cjs.js +2 -0
- package/dist/components/form/form.es.js +11 -0
- package/dist/components/input/input.cjs.js +2 -0
- package/dist/components/input/input.es.js +60 -0
- package/dist/components/kbd/kbd.cjs.js +2 -0
- package/dist/components/kbd/kbd.es.js +36 -0
- package/dist/components/label/label.cjs.js +2 -0
- package/dist/components/label/label.es.js +49 -0
- package/dist/components/loader/loader.cjs.js +2 -0
- package/dist/components/loader/loader.es.js +55 -0
- package/dist/components/menu/menu-primitives.cjs.js +2 -0
- package/dist/components/menu/menu-primitives.es.js +240 -0
- package/dist/components/menu/menu.cjs.js +2 -0
- package/dist/components/menu/menu.es.js +81 -0
- package/dist/components/number-input/number-input.cjs.js +2 -0
- package/dist/components/number-input/number-input.es.js +212 -0
- package/dist/components/otp/otp.cjs.js +2 -0
- package/dist/components/otp/otp.es.js +93 -0
- package/dist/components/pagination/pagination.cjs.js +2 -0
- package/dist/components/pagination/pagination.es.js +393 -0
- package/dist/components/pagination/pagination.model.cjs.js +1 -0
- package/dist/components/pagination/pagination.model.es.js +4 -0
- package/dist/components/password/password.cjs.js +2 -0
- package/dist/components/password/password.es.js +73 -0
- package/dist/components/popover/popover.cjs.js +2 -0
- package/dist/components/popover/popover.es.js +158 -0
- package/dist/components/progress/progress.cjs.js +2 -0
- package/dist/components/progress/progress.es.js +114 -0
- package/dist/components/scroll-area/scroll-area.cjs.js +2 -0
- package/dist/components/scroll-area/scroll-area.es.js +67 -0
- package/dist/components/select/select.cjs.js +2 -0
- package/dist/components/select/select.es.js +331 -0
- package/dist/components/skeleton/skeleton.cjs.js +2 -0
- package/dist/components/skeleton/skeleton.es.js +19 -0
- package/dist/components/stack/stack.cjs.js +2 -0
- package/dist/components/stack/stack.es.js +42 -0
- package/dist/components/stepper/stepper.cjs.js +2 -0
- package/dist/components/stepper/stepper.es.js +368 -0
- package/dist/components/switch/switch.cjs.js +2 -0
- package/dist/components/switch/switch.es.js +85 -0
- package/dist/components/table/table.cjs.js +2 -0
- package/dist/components/table/table.es.js +168 -0
- package/dist/components/tabs/tabs.cjs.js +2 -0
- package/dist/components/tabs/tabs.es.js +96 -0
- package/dist/components/tag/tag.cjs.js +2 -0
- package/dist/components/tag/tag.es.js +50 -0
- package/dist/components/textarea/textarea.cjs.js +2 -0
- package/dist/components/textarea/textarea.es.js +31 -0
- package/dist/components/timeline/timeline.cjs.js +2 -0
- package/dist/components/timeline/timeline.es.js +263 -0
- package/dist/components/toast/toast.cjs.js +2 -0
- package/dist/components/toast/toast.es.js +224 -0
- package/dist/components/tooltip/tooltip.cjs.js +2 -0
- package/dist/components/tooltip/tooltip.es.js +122 -0
- package/dist/components/tree/tree.cjs.js +2 -0
- package/dist/components/tree/tree.es.js +150 -0
- package/dist/hooks/internal/is-apple-device.cjs.js +1 -0
- package/dist/hooks/internal/is-apple-device.es.js +9 -0
- package/dist/hooks/internal/is-browser.cjs.js +1 -0
- package/dist/hooks/internal/is-browser.es.js +4 -0
- package/dist/hooks/internal/use-isomorphic-layout-effect.cjs.js +1 -0
- package/dist/hooks/internal/use-isomorphic-layout-effect.es.js +6 -0
- package/dist/hooks/internal/use-latest-ref.cjs.js +1 -0
- package/dist/hooks/internal/use-latest-ref.es.js +11 -0
- package/dist/hooks/use-array/use-array.cjs.js +1 -0
- package/dist/hooks/use-array/use-array.es.js +58 -0
- package/dist/hooks/use-async/use-async.cjs.js +1 -0
- package/dist/hooks/use-async/use-async.es.js +57 -0
- package/dist/hooks/use-boolean/use-boolean.cjs.js +1 -0
- package/dist/hooks/use-boolean/use-boolean.es.js +25 -0
- package/dist/hooks/use-click-outside/use-click-outside.cjs.js +1 -0
- package/dist/hooks/use-click-outside/use-click-outside.es.js +29 -0
- package/dist/hooks/use-clipboard/use-clipboard.cjs.js +1 -0
- package/dist/hooks/use-clipboard/use-clipboard.es.js +29 -0
- package/dist/hooks/use-debounce-callback/use-debounced-callback.cjs.js +1 -0
- package/dist/hooks/use-debounce-callback/use-debounced-callback.es.js +32 -0
- package/dist/hooks/use-debounce-value/use-debounced-value.cjs.js +1 -0
- package/dist/hooks/use-debounce-value/use-debounced-value.es.js +11 -0
- package/dist/hooks/use-disclosure/use-disclosure.cjs.js +1 -0
- package/dist/hooks/use-disclosure/use-disclosure.es.js +24 -0
- package/dist/hooks/use-document-title/use-document-title.cjs.js +1 -0
- package/dist/hooks/use-document-title/use-document-title.es.js +19 -0
- package/dist/hooks/use-event-listener/use-event-listener.cjs.js +1 -0
- package/dist/hooks/use-event-listener/use-event-listener.es.js +21 -0
- package/dist/hooks/use-focus-trap/scope-tab.cjs.js +1 -0
- package/dist/hooks/use-focus-trap/scope-tab.es.js +21 -0
- package/dist/hooks/use-focus-trap/tabbable.cjs.js +1 -0
- package/dist/hooks/use-focus-trap/tabbable.es.js +38 -0
- package/dist/hooks/use-focus-trap/use-focus-trap.cjs.js +1 -0
- package/dist/hooks/use-focus-trap/use-focus-trap.es.js +34 -0
- package/dist/hooks/use-hotkey/use-hotkey.cjs.js +1 -0
- package/dist/hooks/use-hotkey/use-hotkey.es.js +34 -0
- package/dist/hooks/use-hotkey/utils/is-input-field.cjs.js +1 -0
- package/dist/hooks/use-hotkey/utils/is-input-field.es.js +7 -0
- package/dist/hooks/use-hotkey/utils/match-and-run.cjs.js +1 -0
- package/dist/hooks/use-hotkey/utils/match-and-run.es.js +12 -0
- package/dist/hooks/use-hotkey/utils/match-key-modifiers.cjs.js +1 -0
- package/dist/hooks/use-hotkey/utils/match-key-modifiers.es.js +18 -0
- package/dist/hooks/use-hover/use-hover.cjs.js +1 -0
- package/dist/hooks/use-hover/use-hover.es.js +35 -0
- package/dist/hooks/use-is-visible/use-is-visible.cjs.js +1 -0
- package/dist/hooks/use-is-visible/use-is-visible.es.js +35 -0
- package/dist/hooks/use-local-storage/use-local-storage.cjs.js +1 -0
- package/dist/hooks/use-local-storage/use-local-storage.es.js +61 -0
- package/dist/hooks/use-media-query/use-media-query.cjs.js +1 -0
- package/dist/hooks/use-media-query/use-media-query.es.js +23 -0
- package/dist/hooks/use-memoized-fn/use-memoized-fn.cjs.js +1 -0
- package/dist/hooks/use-memoized-fn/use-memoized-fn.es.js +15 -0
- package/dist/hooks/use-mutation/use-mutation.cjs.js +1 -0
- package/dist/hooks/use-mutation/use-mutation.es.js +41 -0
- package/dist/hooks/use-object/use-object.cjs.js +1 -0
- package/dist/hooks/use-object/use-object.es.js +30 -0
- package/dist/hooks/use-on-mount/use-on-mount.cjs.js +1 -0
- package/dist/hooks/use-on-mount/use-on-mount.es.js +11 -0
- package/dist/hooks/use-pagination/use-pagination.cjs.js +1 -0
- package/dist/hooks/use-pagination/use-pagination.es.js +38 -0
- package/dist/hooks/use-portal/use-portal.cjs.js +1 -0
- package/dist/hooks/use-portal/use-portal.es.js +31 -0
- package/dist/hooks/use-prevent-page-close/use-prevent-page-close.cjs.js +1 -0
- package/dist/hooks/use-prevent-page-close/use-prevent-page-close.es.js +14 -0
- package/dist/hooks/use-range-pagination/use-range-pagination.cjs.js +1 -0
- package/dist/hooks/use-range-pagination/use-range-pagination.es.js +36 -0
- package/dist/hooks/use-selection/use-selection.cjs.js +1 -0
- package/dist/hooks/use-selection/use-selection.es.js +38 -0
- package/dist/hooks/use-step/use-step.cjs.js +1 -0
- package/dist/hooks/use-step/use-step.es.js +28 -0
- package/dist/index.cjs.js +1 -141
- package/dist/index.css +2 -0
- package/dist/index.d.ts +2 -2039
- package/dist/index.es.js +445 -49355
- package/dist/lib/cn.cjs.js +1 -0
- package/dist/lib/cn.es.js +10 -0
- package/dist/providers/library-provider.cjs.js +1 -0
- package/dist/providers/library-provider.es.js +13 -0
- package/dist/providers/theme/ThemeProvider.cjs.js +1 -0
- package/dist/providers/theme/ThemeProvider.es.js +10 -0
- package/dist/providers/theme/useThemeProps.cjs.js +1 -0
- package/dist/providers/theme/useThemeProps.es.js +12 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/src/__doc__/Examples.d.ts +7 -0
- package/dist/src/components/accordion/accordion.d.ts +28 -0
- package/dist/src/components/accordion/accordion.test.d.ts +1 -0
- package/dist/src/components/accordion/index.d.ts +1 -0
- package/dist/src/components/alert/alert.d.ts +26 -0
- package/dist/src/components/alert/alert.test.d.ts +1 -0
- package/dist/src/components/alert/index.d.ts +1 -0
- package/dist/src/components/alert-dialog/alert-dialog.d.ts +104 -0
- package/dist/src/components/alert-dialog/alert-dialog.test.d.ts +1 -0
- package/dist/src/components/alert-dialog/index.d.ts +1 -0
- package/dist/src/components/auto-complete/auto-complete.d.ts +95 -0
- package/dist/src/components/auto-complete/auto-complete.test.d.ts +1 -0
- package/dist/src/components/auto-complete/index.d.ts +1 -0
- package/dist/src/components/avatar/avatar.d.ts +31 -0
- package/dist/src/components/avatar/avatar.test.d.ts +1 -0
- package/dist/src/components/avatar/index.d.ts +1 -0
- package/dist/src/components/button/button.d.ts +11 -0
- package/dist/src/components/button/button.test.d.ts +1 -0
- package/dist/src/components/button/components/base-button.d.ts +7 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/calendar/calendar.d.ts +3 -0
- package/dist/src/components/calendar/calendar.test.d.ts +1 -0
- package/dist/src/components/calendar/index.d.ts +1 -0
- package/dist/src/components/card/card.d.ts +35 -0
- package/dist/src/components/card/card.test.d.ts +1 -0
- package/dist/src/components/card/index.d.ts +1 -0
- package/dist/src/components/center/center.d.ts +7 -0
- package/dist/src/components/center/center.test.d.ts +1 -0
- package/dist/src/components/center/index.d.ts +1 -0
- package/dist/src/components/checkbox/checkbox.d.ts +74 -0
- package/dist/src/components/checkbox/checkbox.test.d.ts +1 -0
- package/dist/src/components/checkbox/index.d.ts +1 -0
- package/dist/src/components/checkbox-group/checkbox-group.d.ts +21 -0
- package/dist/src/components/checkbox-group/checkbox-group.test.d.ts +1 -0
- package/dist/src/components/checkbox-group/index.d.ts +1 -0
- package/dist/src/components/combobox/combobox.d.ts +112 -0
- package/dist/src/components/combobox/combobox.test.d.ts +1 -0
- package/dist/src/components/combobox/index.d.ts +1 -0
- package/dist/src/components/date-picker/date-input-form.test.d.ts +1 -0
- package/dist/src/components/date-picker/date-input.d.ts +2 -0
- package/dist/src/components/date-picker/date-picker.d.ts +5 -0
- package/dist/src/components/date-picker/date-picker.model.d.ts +78 -0
- package/dist/src/components/date-picker/date-picker.test.d.ts +1 -0
- package/dist/src/components/date-picker/date-picker.utils.d.ts +29 -0
- package/dist/src/components/date-picker/date-picker.utils.test.d.ts +1 -0
- package/dist/src/components/date-picker/index.d.ts +3 -0
- package/dist/src/components/date-picker/use-date-input-popover.d.ts +12 -0
- package/dist/src/components/date-picker/use-date-input-popover.test.d.ts +1 -0
- package/dist/src/components/date-picker/use-date-input.d.ts +16 -0
- package/dist/src/components/date-picker/use-hidden-field-value.d.ts +12 -0
- package/dist/src/components/dialog/dialog.d.ts +100 -0
- package/dist/src/components/dialog/dialog.test.d.ts +1 -0
- package/dist/src/components/dialog/index.d.ts +1 -0
- package/dist/src/components/divider/divider.d.ts +4 -0
- package/dist/src/components/divider/divider.test.d.ts +1 -0
- package/dist/src/components/divider/index.d.ts +1 -0
- package/dist/src/components/dropzone/dropzone.d.ts +67 -0
- package/dist/src/components/dropzone/dropzone.test.d.ts +1 -0
- package/dist/src/components/dropzone/file-types.d.ts +27 -0
- package/dist/src/components/dropzone/index.d.ts +2 -0
- package/dist/src/components/empty/empty.d.ts +33 -0
- package/dist/src/components/empty/empty.test.d.ts +1 -0
- package/dist/src/components/empty/index.d.ts +1 -0
- package/dist/src/components/field/field.d.ts +57 -0
- package/dist/src/components/field/field.test.d.ts +1 -0
- package/dist/src/components/field/index.d.ts +1 -0
- package/dist/src/components/form/form.d.ts +5 -0
- package/dist/src/components/form/form.test.d.ts +1 -0
- package/dist/src/components/form/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +44 -0
- package/dist/src/components/input/index.d.ts +1 -0
- package/dist/src/components/input/input.d.ts +9 -0
- package/dist/src/components/input/input.test.d.ts +1 -0
- package/dist/src/components/kbd/index.d.ts +1 -0
- package/dist/src/components/kbd/kbd.d.ts +3 -0
- package/dist/src/components/kbd/kbd.test.d.ts +1 -0
- package/dist/src/components/label/index.d.ts +1 -0
- package/dist/src/components/label/label.d.ts +15 -0
- package/dist/src/components/label/label.test.d.ts +1 -0
- package/dist/src/components/loader/index.d.ts +1 -0
- package/dist/src/components/loader/loader.d.ts +18 -0
- package/dist/src/components/loader/loader.test.d.ts +1 -0
- package/dist/src/components/menu/index.d.ts +2 -0
- package/dist/src/components/menu/menu-primitives.d.ts +29 -0
- package/dist/src/components/menu/menu.d.ts +57 -0
- package/dist/src/components/menu/menu.test.d.ts +1 -0
- package/dist/src/components/number-input/index.d.ts +1 -0
- package/dist/src/components/number-input/number-input.d.ts +31 -0
- package/dist/src/components/number-input/number-input.test.d.ts +1 -0
- package/dist/src/components/otp/index.d.ts +1 -0
- package/dist/src/components/otp/otp.d.ts +16 -0
- package/dist/src/components/otp/otp.test.d.ts +1 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/pagination/pagination.d.ts +131 -0
- package/dist/src/components/pagination/pagination.model.d.ts +2 -0
- package/dist/src/components/pagination/pagination.test.d.ts +1 -0
- package/dist/src/components/password/index.d.ts +1 -0
- package/dist/src/components/password/password.d.ts +19 -0
- package/dist/src/components/password/password.test.d.ts +1 -0
- package/dist/src/components/popover/index.d.ts +1 -0
- package/dist/src/components/popover/popover.d.ts +41 -0
- package/dist/src/components/popover/popover.test.d.ts +1 -0
- package/dist/src/components/progress/index.d.ts +1 -0
- package/dist/src/components/progress/progress.d.ts +22 -0
- package/dist/src/components/progress/progress.test.d.ts +1 -0
- package/dist/src/components/radio-group/index.d.ts +1 -0
- package/dist/src/components/radio-group/radio-group.d.ts +41 -0
- package/dist/src/components/radio-group/radio-group.test.d.ts +1 -0
- package/dist/src/components/scroll-area/index.d.ts +1 -0
- package/dist/src/components/scroll-area/scroll-area.d.ts +8 -0
- package/dist/src/components/scroll-area/scroll-area.test.d.ts +1 -0
- package/dist/src/components/select/index.d.ts +1 -0
- package/dist/src/components/select/select.d.ts +71 -0
- package/dist/src/components/select/select.test.d.ts +1 -0
- package/dist/src/components/skeleton/index.d.ts +1 -0
- package/dist/src/components/skeleton/skeleton.d.ts +2 -0
- package/dist/src/components/skeleton/skeleton.test.d.ts +1 -0
- package/dist/src/components/stack/index.d.ts +1 -0
- package/dist/src/components/stack/stack.d.ts +14 -0
- package/dist/src/components/stack/stack.test.d.ts +1 -0
- package/dist/src/components/stepper/index.d.ts +1 -0
- package/dist/src/components/stepper/stepper.d.ts +83 -0
- package/dist/src/components/stepper/stepper.test.d.ts +1 -0
- package/dist/src/components/switch/index.d.ts +1 -0
- package/dist/src/components/switch/switch.d.ts +21 -0
- package/dist/src/components/switch/switch.test.d.ts +1 -0
- package/dist/src/components/table/index.d.ts +1 -0
- package/dist/src/components/table/table.d.ts +50 -0
- package/dist/src/components/table/table.test.d.ts +1 -0
- package/dist/src/components/tabs/index.d.ts +1 -0
- package/dist/src/components/tabs/tabs.d.ts +11 -0
- package/dist/src/components/tabs/tabs.test.d.ts +1 -0
- package/dist/src/components/tag/index.d.ts +1 -0
- package/dist/src/components/tag/tag.d.ts +7 -0
- package/dist/src/components/tag/tag.test.d.ts +1 -0
- package/dist/src/components/textarea/index.d.ts +1 -0
- package/dist/src/components/textarea/textarea.d.ts +5 -0
- package/dist/src/components/textarea/textarea.test.d.ts +1 -0
- package/dist/src/components/timeline/index.d.ts +1 -0
- package/dist/src/components/timeline/timeline.d.ts +50 -0
- package/dist/src/components/timeline/timeline.test.d.ts +1 -0
- package/dist/src/components/toast/index.d.ts +1 -0
- package/dist/src/components/toast/toast.d.ts +101 -0
- package/dist/src/components/toast/toast.test.d.ts +1 -0
- package/dist/src/components/tooltip/index.d.ts +1 -0
- package/dist/src/components/tooltip/tooltip.d.ts +52 -0
- package/dist/src/components/tooltip/tooltip.test.d.ts +1 -0
- package/dist/src/components/tree/index.d.ts +1 -0
- package/dist/src/components/tree/tree.d.ts +18 -0
- package/dist/src/components/tree/tree.test.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +27 -0
- package/dist/src/hooks/internal/index.d.ts +4 -0
- package/dist/src/hooks/internal/is-apple-device.d.ts +12 -0
- package/dist/src/hooks/internal/is-apple-device.test.d.ts +1 -0
- package/dist/src/hooks/internal/is-browser.d.ts +1 -0
- package/dist/src/hooks/internal/use-isomorphic-layout-effect.d.ts +2 -0
- package/dist/src/hooks/internal/use-latest-ref.d.ts +12 -0
- package/dist/src/hooks/use-array/index.d.ts +1 -0
- package/dist/src/hooks/use-array/use-array.d.ts +24 -0
- package/dist/src/hooks/use-array/use-array.test.d.ts +1 -0
- package/dist/src/hooks/use-async/index.d.ts +1 -0
- package/dist/src/hooks/use-async/use-async.d.ts +21 -0
- package/dist/src/hooks/use-async/use-async.test.d.ts +1 -0
- package/dist/src/hooks/use-boolean/index.d.ts +1 -0
- package/dist/src/hooks/use-boolean/use-boolean.d.ts +15 -0
- package/dist/src/hooks/use-boolean/use-boolean.test.d.ts +1 -0
- package/dist/src/hooks/use-click-outside/index.d.ts +1 -0
- package/dist/src/hooks/use-click-outside/use-click-outside.d.ts +23 -0
- package/dist/src/hooks/use-click-outside/use-click-outside.test.d.ts +1 -0
- package/dist/src/hooks/use-clipboard/index.d.ts +1 -0
- package/dist/src/hooks/use-clipboard/use-clipboard.d.ts +15 -0
- package/dist/src/hooks/use-clipboard/use-clipboard.test.d.ts +1 -0
- package/dist/src/hooks/use-debounce-callback/index.d.ts +1 -0
- package/dist/src/hooks/use-debounce-callback/use-debounced-callback.d.ts +19 -0
- package/dist/src/hooks/use-debounce-callback/use-debounced-callback.test.d.ts +1 -0
- package/dist/src/hooks/use-debounce-value/index.d.ts +1 -0
- package/dist/src/hooks/use-debounce-value/use-debounced-value.d.ts +10 -0
- package/dist/src/hooks/use-debounce-value/use-debounced-value.test.d.ts +1 -0
- package/dist/src/hooks/use-disclosure/index.d.ts +1 -0
- package/dist/src/hooks/use-disclosure/use-disclosure.d.ts +17 -0
- package/dist/src/hooks/use-disclosure/use-disclosure.test.d.ts +1 -0
- package/dist/src/hooks/use-document-title/index.d.ts +1 -0
- package/dist/src/hooks/use-document-title/use-document-title.d.ts +16 -0
- package/dist/src/hooks/use-document-title/use-document-title.test.d.ts +1 -0
- package/dist/src/hooks/use-event-listener/index.d.ts +1 -0
- package/dist/src/hooks/use-event-listener/use-event-listener.d.ts +18 -0
- package/dist/src/hooks/use-event-listener/use-event-listener.test.d.ts +1 -0
- package/dist/src/hooks/use-focus-trap/index.d.ts +1 -0
- package/dist/src/hooks/use-focus-trap/scope-tab.d.ts +1 -0
- package/dist/src/hooks/use-focus-trap/tabbable.d.ts +4 -0
- package/dist/src/hooks/use-focus-trap/use-focus-trap.d.ts +1 -0
- package/dist/src/hooks/use-focus-trap/use-focus-trap.test.d.ts +1 -0
- package/dist/src/hooks/use-hotkey/index.d.ts +2 -0
- package/dist/src/hooks/use-hotkey/use-hotkey.d.ts +66 -0
- package/dist/src/hooks/use-hotkey/use-hotkey.test.d.ts +1 -0
- package/dist/src/hooks/use-hotkey/utils/index.d.ts +4 -0
- package/dist/src/hooks/use-hotkey/utils/is-input-field.d.ts +12 -0
- package/dist/src/hooks/use-hotkey/utils/is-input-field.test.d.ts +1 -0
- package/dist/src/hooks/use-hotkey/utils/match-and-run.d.ts +36 -0
- package/dist/src/hooks/use-hotkey/utils/match-and-run.test.d.ts +1 -0
- package/dist/src/hooks/use-hotkey/utils/match-key-modifiers.d.ts +22 -0
- package/dist/src/hooks/use-hotkey/utils/match-key-modifiers.test.d.ts +1 -0
- package/dist/src/hooks/use-hover/index.d.ts +1 -0
- package/dist/src/hooks/use-hover/use-hover.d.ts +16 -0
- package/dist/src/hooks/use-hover/use-hover.test.d.ts +1 -0
- package/dist/src/hooks/use-is-visible/index.d.ts +1 -0
- package/dist/src/hooks/use-is-visible/use-is-visible.d.ts +34 -0
- package/dist/src/hooks/use-is-visible/use-is-visible.test.d.ts +1 -0
- package/dist/src/hooks/use-local-storage/index.d.ts +1 -0
- package/dist/src/hooks/use-local-storage/use-local-storage.d.ts +13 -0
- package/dist/src/hooks/use-local-storage/use-local-storage.test.d.ts +1 -0
- package/dist/src/hooks/use-media-query/index.d.ts +1 -0
- package/dist/src/hooks/use-media-query/use-media-query.d.ts +10 -0
- package/dist/src/hooks/use-media-query/use-media-query.test.d.ts +1 -0
- package/dist/src/hooks/use-memoized-fn/index.d.ts +1 -0
- package/dist/src/hooks/use-memoized-fn/use-memoized-fn.d.ts +3 -0
- package/dist/src/hooks/use-memoized-fn/use-memoized-fn.test.d.ts +1 -0
- package/dist/src/hooks/use-mutation/index.d.ts +1 -0
- package/dist/src/hooks/use-mutation/use-mutation.d.ts +22 -0
- package/dist/src/hooks/use-mutation/use-mutation.test.d.ts +1 -0
- package/dist/src/hooks/use-object/index.d.ts +1 -0
- package/dist/src/hooks/use-object/use-object.d.ts +15 -0
- package/dist/src/hooks/use-object/use-object.test.d.ts +1 -0
- package/dist/src/hooks/use-on-mount/index.d.ts +1 -0
- package/dist/src/hooks/use-on-mount/use-on-mount.d.ts +2 -0
- package/dist/src/hooks/use-on-mount/use-on-mount.test.d.ts +1 -0
- package/dist/src/hooks/use-pagination/index.d.ts +1 -0
- package/dist/src/hooks/use-pagination/use-pagination.d.ts +46 -0
- package/dist/src/hooks/use-pagination/use-pagination.test.d.ts +1 -0
- package/dist/src/hooks/use-portal/index.d.ts +1 -0
- package/dist/src/hooks/use-portal/use-portal.d.ts +4 -0
- package/dist/src/hooks/use-portal/use-portal.test.d.ts +1 -0
- package/dist/src/hooks/use-prevent-page-close/index.d.ts +1 -0
- package/dist/src/hooks/use-prevent-page-close/use-prevent-page-close.d.ts +10 -0
- package/dist/src/hooks/use-prevent-page-close/use-prevent-page-close.test.d.ts +1 -0
- package/dist/src/hooks/use-range-pagination/index.d.ts +1 -0
- package/dist/src/hooks/use-range-pagination/use-range-pagination.d.ts +22 -0
- package/dist/src/hooks/use-range-pagination/use-range-pagination.test.d.ts +1 -0
- package/dist/src/hooks/use-selection/index.d.ts +1 -0
- package/dist/src/hooks/use-selection/use-selection.d.ts +54 -0
- package/dist/src/hooks/use-selection/use-selection.test.d.ts +1 -0
- package/dist/src/hooks/use-step/index.d.ts +1 -0
- package/dist/src/hooks/use-step/use-step.d.ts +21 -0
- package/dist/src/hooks/use-step/use-step.test.d.ts +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/lib/cn.d.ts +3 -0
- package/dist/src/lib/index.d.ts +1 -0
- package/dist/src/models/Generic.model.d.ts +37 -0
- package/dist/src/models/index.d.ts +1 -0
- package/dist/src/providers/index.d.ts +2 -0
- package/dist/src/providers/library-provider.d.ts +28 -0
- package/dist/src/providers/theme/ThemeProvider.d.ts +11 -0
- package/dist/src/providers/theme/index.d.ts +3 -0
- package/dist/src/providers/theme/types.d.ts +10 -0
- package/dist/src/providers/theme/useThemeProps.d.ts +10 -0
- package/dist/src/stores/theme.store.d.ts +10 -0
- package/dist/src/utils/dates/parseDateRange.utility.d.ts +14 -0
- package/dist/src/utils/form.d.ts +42 -0
- package/dist/src/utils/form.test.d.ts +1 -0
- package/dist/src/utils/functions/createSafeContext.d.ts +2 -0
- package/dist/src/utils/functions/createSafeContext.test.d.ts +1 -0
- package/dist/src/utils/functions/ensureReactElement.d.ts +9 -0
- package/dist/src/utils/functions/ensureReactElement.test.d.ts +1 -0
- package/dist/src/utils/functions/getFormData.d.ts +2 -0
- package/dist/src/utils/functions/getFormData.test.d.ts +1 -0
- package/dist/src/utils/functions/index.d.ts +4 -0
- package/dist/src/utils/functions/mergeRefs.d.ts +2 -0
- package/dist/src/utils/functions/mergeRefs.test.d.ts +1 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/strings/extractInitials.utility.d.ts +6 -0
- package/dist/src/utils/strings/index.d.ts +1 -0
- package/dist/src/utils/tests/click.d.ts +1 -0
- package/dist/src/utils/tests/index.d.ts +2 -0
- package/dist/src/utils/tests/keyboard.d.ts +10 -0
- package/dist/src/utils/tests/type.d.ts +1 -0
- package/dist/theme.css +232 -224
- package/dist/utils/form.cjs.js +1 -0
- package/dist/utils/form.es.js +62 -0
- package/dist/utils/functions/createSafeContext.cjs.js +1 -0
- package/dist/utils/functions/createSafeContext.es.js +13 -0
- package/dist/utils/functions/ensureReactElement.cjs.js +1 -0
- package/dist/utils/functions/ensureReactElement.es.js +13 -0
- package/dist/utils/functions/getFormData.cjs.js +1 -0
- package/dist/utils/functions/getFormData.es.js +11 -0
- package/dist/utils/functions/mergeRefs.cjs.js +1 -0
- package/dist/utils/functions/mergeRefs.es.js +10 -0
- package/dist/utils/strings/extractInitials.utility.cjs.js +1 -0
- package/dist/utils/strings/extractInitials.utility.es.js +4 -0
- package/package.json +134 -124
- package/src/components/accordion/accordion.stories.tsx +143 -0
- package/src/components/accordion/accordion.test.tsx +117 -0
- package/src/components/accordion/accordion.tsx +137 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.stories.tsx +162 -0
- package/src/components/alert/alert.test.tsx +185 -0
- package/src/components/alert/alert.tsx +119 -0
- package/src/components/alert/index.ts +7 -0
- package/src/components/alert-dialog/alert-dialog.stories.tsx +197 -0
- package/src/components/alert-dialog/alert-dialog.test.tsx +239 -0
- package/src/components/alert-dialog/alert-dialog.tsx +315 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/auto-complete/auto-complete.stories.tsx +656 -0
- package/src/components/auto-complete/auto-complete.test.tsx +699 -0
- package/src/components/auto-complete/auto-complete.tsx +432 -0
- package/src/components/auto-complete/index.ts +1 -0
- package/src/components/avatar/avatar.stories.tsx +225 -0
- package/src/components/avatar/avatar.test.tsx +336 -0
- package/src/components/avatar/avatar.tsx +165 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/button/button.stories.tsx +338 -0
- package/src/components/button/button.test.tsx +242 -0
- package/src/components/button/button.tsx +73 -0
- package/src/components/button/components/base-button.tsx +58 -0
- package/src/components/button/index.ts +2 -0
- package/src/components/calendar/calendar.stories.tsx +155 -0
- package/src/components/calendar/calendar.test.tsx +174 -0
- package/src/components/calendar/calendar.tsx +189 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/card/card.stories.tsx +187 -0
- package/src/components/card/card.test.tsx +205 -0
- package/src/components/card/card.tsx +177 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/center/center.stories.tsx +64 -0
- package/src/components/center/center.test.tsx +63 -0
- package/src/components/center/center.tsx +26 -0
- package/src/components/center/index.ts +1 -0
- package/src/components/checkbox/checkbox.stories.tsx +327 -0
- package/src/components/checkbox/checkbox.test.tsx +392 -0
- package/src/components/checkbox/checkbox.tsx +336 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox-group/checkbox-group.stories.tsx +192 -0
- package/src/components/checkbox-group/checkbox-group.test.tsx +155 -0
- package/src/components/checkbox-group/checkbox-group.tsx +99 -0
- package/src/components/checkbox-group/index.ts +1 -0
- package/src/components/combobox/combobox.stories.tsx +349 -0
- package/src/components/combobox/combobox.test.tsx +461 -0
- package/src/components/combobox/combobox.tsx +916 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/date-picker/date-input-form.test.tsx +77 -0
- package/src/components/date-picker/date-input.stories.tsx +178 -0
- package/src/components/date-picker/date-input.tsx +198 -0
- package/src/components/date-picker/date-picker.model.ts +99 -0
- package/src/components/date-picker/date-picker.stories.tsx +256 -0
- package/src/components/date-picker/date-picker.test.tsx +557 -0
- package/src/components/date-picker/date-picker.tsx +333 -0
- package/src/components/date-picker/date-picker.utils.test.ts +269 -0
- package/src/components/date-picker/date-picker.utils.ts +293 -0
- package/src/components/date-picker/index.ts +3 -0
- package/src/components/date-picker/use-date-input-popover.test.ts +63 -0
- package/src/components/date-picker/use-date-input-popover.ts +48 -0
- package/src/components/date-picker/use-date-input.ts +125 -0
- package/src/components/date-picker/use-hidden-field-value.ts +23 -0
- package/src/components/dialog/dialog.stories.tsx +189 -0
- package/src/components/dialog/dialog.test.tsx +369 -0
- package/src/components/dialog/dialog.tsx +310 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/divider/divider.stories.tsx +145 -0
- package/src/components/divider/divider.test.tsx +62 -0
- package/src/components/divider/divider.tsx +25 -0
- package/src/components/divider/index.ts +1 -0
- package/src/components/dropzone/dropzone.stories.tsx +190 -0
- package/src/components/dropzone/dropzone.test.tsx +353 -0
- package/src/components/dropzone/dropzone.tsx +434 -0
- package/src/components/dropzone/file-types.ts +64 -0
- package/src/components/dropzone/index.ts +2 -0
- package/src/components/empty/empty.stories.tsx +164 -0
- package/src/components/empty/empty.test.tsx +220 -0
- package/src/components/empty/empty.tsx +158 -0
- package/src/components/empty/index.ts +1 -0
- package/src/components/field/field.stories.tsx +446 -0
- package/src/components/field/field.test.tsx +323 -0
- package/src/components/field/field.tsx +266 -0
- package/src/components/field/index.ts +1 -0
- package/src/components/form/form.stories.tsx +732 -0
- package/src/components/form/form.test.tsx +44 -0
- package/src/components/form/form.tsx +12 -0
- package/src/components/form/index.ts +1 -0
- package/src/components/index.ts +44 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.stories.tsx +103 -0
- package/src/components/input/input.test.tsx +109 -0
- package/src/components/input/input.tsx +77 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.stories.tsx +41 -0
- package/src/components/kbd/kbd.test.tsx +66 -0
- package/src/components/kbd/kbd.tsx +33 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.stories.tsx +84 -0
- package/src/components/label/label.test.tsx +107 -0
- package/src/components/label/label.tsx +75 -0
- package/src/components/loader/index.ts +1 -0
- package/src/components/loader/loader.stories.tsx +62 -0
- package/src/components/loader/loader.test.tsx +88 -0
- package/src/components/loader/loader.tsx +67 -0
- package/src/components/menu/index.ts +2 -0
- package/src/components/menu/menu-primitives.tsx +259 -0
- package/src/components/menu/menu.stories.tsx +332 -0
- package/src/components/menu/menu.test.tsx +167 -0
- package/src/components/menu/menu.tsx +188 -0
- package/src/components/number-input/index.ts +1 -0
- package/src/components/number-input/number-input.stories.tsx +232 -0
- package/src/components/number-input/number-input.test.tsx +260 -0
- package/src/components/number-input/number-input.tsx +228 -0
- package/src/components/otp/index.ts +1 -0
- package/src/components/otp/otp.stories.tsx +209 -0
- package/src/components/otp/otp.test.tsx +103 -0
- package/src/components/otp/otp.tsx +102 -0
- package/src/components/pagination/index.ts +2 -0
- package/src/components/pagination/pagination.model.ts +2 -0
- package/src/components/pagination/pagination.stories.tsx +174 -0
- package/src/components/pagination/pagination.test.tsx +201 -0
- package/src/components/pagination/pagination.tsx +602 -0
- package/src/components/password/index.ts +1 -0
- package/src/components/password/password.stories.tsx +119 -0
- package/src/components/password/password.test.tsx +129 -0
- package/src/components/password/password.tsx +93 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.stories.tsx +234 -0
- package/src/components/popover/popover.test.tsx +175 -0
- package/src/components/popover/popover.tsx +195 -0
- package/src/components/progress/index.ts +1 -0
- package/src/components/progress/progress.stories.tsx +125 -0
- package/src/components/progress/progress.test.tsx +125 -0
- package/src/components/progress/progress.tsx +126 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.stories.tsx +251 -0
- package/src/components/radio-group/radio-group.test.tsx +175 -0
- package/src/components/radio-group/radio-group.tsx +214 -0
- package/src/components/scroll-area/index.ts +1 -0
- package/src/components/scroll-area/scroll-area.stories.tsx +167 -0
- package/src/components/scroll-area/scroll-area.test.tsx +140 -0
- package/src/components/scroll-area/scroll-area.tsx +64 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.stories.tsx +352 -0
- package/src/components/select/select.test.tsx +357 -0
- package/src/components/select/select.tsx +443 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.stories.tsx +37 -0
- package/src/components/skeleton/skeleton.test.tsx +51 -0
- package/src/components/skeleton/skeleton.tsx +17 -0
- package/src/components/stack/index.ts +1 -0
- package/src/components/stack/stack.stories.tsx +284 -0
- package/src/components/stack/stack.test.tsx +134 -0
- package/src/components/stack/stack.tsx +54 -0
- package/src/components/stepper/index.ts +1 -0
- package/src/components/stepper/stepper.stories.tsx +809 -0
- package/src/components/stepper/stepper.test.tsx +448 -0
- package/src/components/stepper/stepper.tsx +554 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.stories.tsx +136 -0
- package/src/components/switch/switch.test.tsx +96 -0
- package/src/components/switch/switch.tsx +101 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/table.stories.tsx +282 -0
- package/src/components/table/table.test.tsx +264 -0
- package/src/components/table/table.tsx +217 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.stories.tsx +399 -0
- package/src/components/tabs/tabs.test.tsx +202 -0
- package/src/components/tabs/tabs.tsx +98 -0
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.stories.tsx +198 -0
- package/src/components/tag/tag.test.tsx +55 -0
- package/src/components/tag/tag.tsx +57 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.stories.tsx +59 -0
- package/src/components/textarea/textarea.test.tsx +60 -0
- package/src/components/textarea/textarea.tsx +43 -0
- package/src/components/timeline/index.ts +1 -0
- package/src/components/timeline/timeline.stories.tsx +364 -0
- package/src/components/timeline/timeline.test.tsx +207 -0
- package/src/components/timeline/timeline.tsx +376 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.stories.tsx +393 -0
- package/src/components/toast/toast.test.tsx +331 -0
- package/src/components/toast/toast.tsx +413 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.stories.tsx +226 -0
- package/src/components/tooltip/tooltip.test.tsx +155 -0
- package/src/components/tooltip/tooltip.tsx +175 -0
- package/src/components/tree/index.ts +1 -0
- package/src/components/tree/tree.stories.tsx +424 -0
- package/src/components/tree/tree.test.tsx +306 -0
- package/src/components/tree/tree.tsx +218 -0
- package/src/hooks/index.ts +27 -0
- package/src/hooks/internal/index.ts +4 -0
- package/src/hooks/internal/is-apple-device.test.ts +41 -0
- package/src/hooks/internal/is-apple-device.ts +33 -0
- package/src/hooks/internal/is-browser.ts +1 -0
- package/src/hooks/internal/use-isomorphic-layout-effect.ts +6 -0
- package/src/hooks/internal/use-latest-ref.ts +21 -0
- package/src/hooks/use-array/index.ts +1 -0
- package/src/hooks/use-array/use-array.stories.tsx +471 -0
- package/src/hooks/use-array/use-array.test.tsx +495 -0
- package/src/hooks/use-array/use-array.ts +113 -0
- package/src/hooks/use-async/index.ts +1 -0
- package/src/hooks/use-async/use-async.stories.tsx +272 -0
- package/src/hooks/use-async/use-async.test.ts +397 -0
- package/src/hooks/use-async/use-async.ts +135 -0
- package/src/hooks/use-boolean/index.ts +1 -0
- package/src/hooks/use-boolean/use-boolean.stories.tsx +377 -0
- package/src/hooks/use-boolean/use-boolean.test.tsx +177 -0
- package/src/hooks/use-boolean/use-boolean.ts +50 -0
- package/src/hooks/use-click-outside/index.ts +1 -0
- package/src/hooks/use-click-outside/use-click-outside.stories.tsx +210 -0
- package/src/hooks/use-click-outside/use-click-outside.test.tsx +118 -0
- package/src/hooks/use-click-outside/use-click-outside.ts +71 -0
- package/src/hooks/use-clipboard/index.ts +1 -0
- package/src/hooks/use-clipboard/use-clipboard.stories.tsx +168 -0
- package/src/hooks/use-clipboard/use-clipboard.test.tsx +114 -0
- package/src/hooks/use-clipboard/use-clipboard.tsx +70 -0
- package/src/hooks/use-debounce-callback/index.ts +1 -0
- package/src/hooks/use-debounce-callback/use-debounced-callback.stories.tsx +184 -0
- package/src/hooks/use-debounce-callback/use-debounced-callback.test.ts +296 -0
- package/src/hooks/use-debounce-callback/use-debounced-callback.ts +82 -0
- package/src/hooks/use-debounce-value/index.ts +1 -0
- package/src/hooks/use-debounce-value/use-debounced-value.stories.tsx +275 -0
- package/src/hooks/use-debounce-value/use-debounced-value.test.ts +196 -0
- package/src/hooks/use-debounce-value/use-debounced-value.ts +25 -0
- package/src/hooks/use-disclosure/index.ts +1 -0
- package/src/hooks/use-disclosure/use-disclosure.stories.tsx +330 -0
- package/src/hooks/use-disclosure/use-disclosure.test.ts +220 -0
- package/src/hooks/use-disclosure/use-disclosure.ts +56 -0
- package/src/hooks/use-document-title/index.ts +1 -0
- package/src/hooks/use-document-title/use-document-title.stories.tsx +126 -0
- package/src/hooks/use-document-title/use-document-title.test.tsx +101 -0
- package/src/hooks/use-document-title/use-document-title.ts +46 -0
- package/src/hooks/use-event-listener/index.ts +1 -0
- package/src/hooks/use-event-listener/use-event-listener.stories.tsx +124 -0
- package/src/hooks/use-event-listener/use-event-listener.test.tsx +96 -0
- package/src/hooks/use-event-listener/use-event-listener.ts +84 -0
- package/src/hooks/use-focus-trap/index.ts +1 -0
- package/src/hooks/use-focus-trap/scope-tab.ts +38 -0
- package/src/hooks/use-focus-trap/tabbable.ts +70 -0
- package/src/hooks/use-focus-trap/use-focus-trap.stories.tsx +37 -0
- package/src/hooks/use-focus-trap/use-focus-trap.test.ts +355 -0
- package/src/hooks/use-focus-trap/use-focus-trap.ts +78 -0
- package/src/hooks/use-hotkey/index.ts +9 -0
- package/src/hooks/use-hotkey/use-hotkey.stories.tsx +321 -0
- package/src/hooks/use-hotkey/use-hotkey.test.tsx +388 -0
- package/src/hooks/use-hotkey/use-hotkey.ts +157 -0
- package/src/hooks/use-hotkey/utils/index.ts +8 -0
- package/src/hooks/use-hotkey/utils/is-input-field.test.ts +78 -0
- package/src/hooks/use-hotkey/utils/is-input-field.ts +35 -0
- package/src/hooks/use-hotkey/utils/match-and-run.test.ts +203 -0
- package/src/hooks/use-hotkey/utils/match-and-run.ts +62 -0
- package/src/hooks/use-hotkey/utils/match-key-modifiers.test.ts +65 -0
- package/src/hooks/use-hotkey/utils/match-key-modifiers.ts +52 -0
- package/src/hooks/use-hover/index.ts +1 -0
- package/src/hooks/use-hover/use-hover.stories.tsx +268 -0
- package/src/hooks/use-hover/use-hover.test.tsx +333 -0
- package/src/hooks/use-hover/use-hover.tsx +110 -0
- package/src/hooks/use-is-visible/index.ts +1 -0
- package/src/hooks/use-is-visible/use-is-visible.stories.tsx +207 -0
- package/src/hooks/use-is-visible/use-is-visible.test.tsx +363 -0
- package/src/hooks/use-is-visible/use-is-visible.ts +114 -0
- package/src/hooks/use-local-storage/index.ts +1 -0
- package/src/hooks/use-local-storage/use-local-storage.stories.tsx +186 -0
- package/src/hooks/use-local-storage/use-local-storage.test.ts +196 -0
- package/src/hooks/use-local-storage/use-local-storage.ts +125 -0
- package/src/hooks/use-media-query/index.ts +1 -0
- package/src/hooks/use-media-query/use-media-query.stories.tsx +99 -0
- package/src/hooks/use-media-query/use-media-query.test.ts +132 -0
- package/src/hooks/use-media-query/use-media-query.ts +45 -0
- package/src/hooks/use-memoized-fn/index.ts +1 -0
- package/src/hooks/use-memoized-fn/use-memoized-fn.test.ts +52 -0
- package/src/hooks/use-memoized-fn/use-memoized-fn.ts +29 -0
- package/src/hooks/use-mutation/index.ts +1 -0
- package/src/hooks/use-mutation/use-mutation.stories.tsx +277 -0
- package/src/hooks/use-mutation/use-mutation.test.ts +359 -0
- package/src/hooks/use-mutation/use-mutation.ts +97 -0
- package/src/hooks/use-object/index.ts +1 -0
- package/src/hooks/use-object/use-object.stories.tsx +350 -0
- package/src/hooks/use-object/use-object.test.tsx +281 -0
- package/src/hooks/use-object/use-object.ts +59 -0
- package/src/hooks/use-on-mount/index.ts +1 -0
- package/src/hooks/use-on-mount/use-on-mount.stories.tsx +85 -0
- package/src/hooks/use-on-mount/use-on-mount.test.tsx +51 -0
- package/src/hooks/use-on-mount/use-on-mount.tsx +13 -0
- package/src/hooks/use-pagination/index.ts +1 -0
- package/src/hooks/use-pagination/use-pagination.stories.tsx +72 -0
- package/src/hooks/use-pagination/use-pagination.test.tsx +98 -0
- package/src/hooks/use-pagination/use-pagination.tsx +84 -0
- package/src/hooks/use-portal/index.ts +1 -0
- package/src/hooks/use-portal/use-portal.stories.tsx +19 -0
- package/src/hooks/use-portal/use-portal.test.tsx +77 -0
- package/src/hooks/use-portal/use-portal.ts +59 -0
- package/src/hooks/use-prevent-page-close/index.ts +1 -0
- package/src/hooks/use-prevent-page-close/use-prevent-page-close.stories.tsx +39 -0
- package/src/hooks/use-prevent-page-close/use-prevent-page-close.test.ts +89 -0
- package/src/hooks/use-prevent-page-close/use-prevent-page-close.ts +27 -0
- package/src/hooks/use-range-pagination/index.ts +1 -0
- package/src/hooks/use-range-pagination/use-range-pagination.test.tsx +63 -0
- package/src/hooks/use-range-pagination/use-range-pagination.tsx +73 -0
- package/src/hooks/use-selection/index.ts +1 -0
- package/src/hooks/use-selection/use-selection.stories.tsx +140 -0
- package/src/hooks/use-selection/use-selection.test.tsx +79 -0
- package/src/hooks/use-selection/use-selection.ts +119 -0
- package/src/hooks/use-step/index.ts +1 -0
- package/src/hooks/use-step/use-step.stories.tsx +211 -0
- package/src/hooks/use-step/use-step.test.ts +198 -0
- package/src/hooks/use-step/use-step.ts +63 -0
- package/src/index.ts +6 -0
- package/src/lib/cn.ts +8 -0
- package/src/lib/index.ts +1 -0
- package/src/models/Generic.model.ts +67 -0
- package/src/models/index.ts +1 -0
- package/src/providers/index.ts +2 -0
- package/src/providers/library-provider.tsx +44 -0
- package/src/providers/theme/ThemeProvider.tsx +25 -0
- package/src/providers/theme/index.ts +3 -0
- package/src/providers/theme/types.ts +11 -0
- package/src/providers/theme/useThemeProps.ts +25 -0
- package/src/stores/theme.store.ts +31 -0
- package/src/styles/components.css +4 -0
- package/src/styles/index.css +2 -0
- package/src/styles/library.css +2 -0
- package/src/styles/theme.css +232 -0
- package/src/utils/dates/parseDateRange.utility.ts +39 -0
- package/src/utils/form.test.tsx +143 -0
- package/src/utils/form.tsx +131 -0
- package/src/utils/functions/createSafeContext.test.tsx +37 -0
- package/src/utils/functions/createSafeContext.ts +17 -0
- package/src/utils/functions/ensureReactElement.test.tsx +49 -0
- package/src/utils/functions/ensureReactElement.tsx +30 -0
- package/src/utils/functions/getFormData.test.ts +57 -0
- package/src/utils/functions/getFormData.ts +19 -0
- package/src/utils/functions/index.ts +4 -0
- package/src/utils/functions/mergeRefs.test.ts +56 -0
- package/src/utils/functions/mergeRefs.ts +18 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/strings/extractInitials.utility.ts +10 -0
- package/src/utils/strings/index.ts +1 -0
- package/src/utils/tests/click.ts +3 -0
- package/src/utils/tests/index.ts +2 -0
- package/src/utils/tests/keyboard.ts +21 -0
- package/src/utils/tests/type.ts +6 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1,141 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react"),Wr=require("react-dom"),w=require("react/jsx-runtime"),oV=require("react-dom/test-utils");require("react-dom/client");function ny(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=ny(D),er=ny(Wr),iV=ny(oV);function sV(e){const t=h.useRef(!0);t.current&&(t.current=!1,e())}const cC={};function Hn(e,t){const n=h.useRef(cC);return n.current===cC&&(n.current=e(t)),n}const Ig=h[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],aV=Ig&&Ig!==h.useLayoutEffect?Ig:e=>e();function He(e){const t=Hn(lV).current;return t.next=e,aV(t.effect),t.trampoline}function lV(){const e={next:void 0,callback:uV,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function uV(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}function xm(){return typeof window<"u"}function In(e){return ry(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ho(e){var t;return(t=(ry(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ry(e){return xm()?e instanceof Node||e instanceof Vt(e).Node:!1}function et(e){return xm()?e instanceof Element||e instanceof Vt(e).Element:!1}function Bt(e){return xm()?e instanceof HTMLElement||e instanceof Vt(e).HTMLElement:!1}function sa(e){return!xm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot}function _i(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function cV(e){return/^(table|td|th)$/.test(In(e))}function wm(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const dV=/transform|translate|scale|rotate|perspective|filter/,fV=/paint|layout|strict|content/,zi=e=>!!e&&e!=="none";let kg;function oy(e){const t=et(e)?Jn(e):e;return zi(t.transform)||zi(t.translate)||zi(t.scale)||zi(t.rotate)||zi(t.perspective)||!Em()&&(zi(t.backdropFilter)||zi(t.filter))||dV.test(t.willChange||"")||fV.test(t.contain||"")}function pV(e){let t=Vo(e);for(;Bt(t)&&!jo(t);){if(oy(t))return t;if(wm(t))return null;t=Vo(t)}return null}function Em(){return kg==null&&(kg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kg}function jo(e){return/^(html|body|#document)$/.test(In(e))}function Jn(e){return Vt(e).getComputedStyle(e)}function Cm(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vo(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sa(e)&&e.host||ho(e);return sa(t)?t.host:t}function O_(e){const t=Vo(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&_i(t)?t:O_(t)}function Qc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=O_(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(o);if(i){const a=Lv(s);return t.concat(s,s.visualViewport||[],_i(o)?o:[],a&&n?Qc(a):[])}else return t.concat(o,Qc(o,[],n))}function Lv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ge(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}const fa=typeof navigator<"u",Fg=hV(),$_=vV(),D_=gV(),M_=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),A_=Fg.platform==="MacIntel"&&Fg.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Fg.platform),N_=fa&&/apple/i.test(navigator.vendor),qv=fa&&/android/i.test($_)||/android/i.test(D_),mV=fa&&$_.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,I_=D_.includes("jsdom/");function hV(){if(!fa)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function gV(){if(!fa)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function vV(){if(!fa)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}function ct(e){return e?.ownerDocument||document}const bV=()=>{},Le=typeof document<"u"?h.useLayoutEffect:bV,yV=[];function Rm(e){h.useEffect(e,yV)}const Ha=0;class fr{static create(){return new fr}currentId=Ha;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ha,n()},t)}isStarted(){return this.currentId!==Ha}clear=()=>{this.currentId!==Ha&&(clearTimeout(this.currentId),this.currentId=Ha)};disposeEffect=()=>this.clear}function po(){const e=Hn(fr.create).current;return Rm(e.disposeEffect),e}const kf=null;let dC=globalThis.requestAnimationFrame;class xV{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1;const r=process.env.NODE_ENV!=="production"&&dC!==requestAnimationFrame&&(dC=requestAnimationFrame,!0);return(!this.isScheduled||r)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Ff=new xV;class oo{static create(){return new oo}static request(t){return Ff.request(t)}static cancel(t){return Ff.cancel(t)}currentId=kf;request(t){this.cancel(),this.currentId=Ff.request(()=>{this.currentId=kf,t()})}cancel=()=>{this.currentId!==kf&&(Ff.cancel(this.currentId),this.currentId=kf)};disposeEffect=()=>this.cancel}function fd(){const e=Hn(oo.create).current;return Rm(e.disposeEffect),e}function At(){}const fC=Object.freeze([]),yn=Object.freeze({});let pC={},mC={},hC="";function wV(e){if(typeof document>"u")return!1;const t=ct(e);return Vt(t).innerWidth-t.documentElement.clientWidth>0}function EV(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=ct(e),r=n.documentElement,o=n.body,i=_i(r)?r:o,s=i.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";const u=i.offsetWidth;i.style.overflowY="hidden";const c=i.offsetWidth;return i.style.overflowY=s,r.style.scrollbarGutter=a,u===c}function CV(e){const t=ct(e),n=t.documentElement,r=t.body,o=_i(n)?n:r,i={overflowY:o.style.overflowY,overflowX:o.style.overflowX};return Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,i)}}function RV(e){const t=ct(e),n=t.documentElement,r=t.body,o=Vt(n);let i=0,s=0,a=!1;const u=oo.create();if(M_&&(o.visualViewport?.scale??1)!==1)return()=>{};function c(){const b=o.getComputedStyle(n),y=o.getComputedStyle(r),x=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,pC={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},hC=n.style.scrollBehavior,mC={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};const R=n.scrollHeight>n.clientHeight,P=n.scrollWidth>n.clientWidth,O=b.overflowY==="scroll"||y.overflowY==="scroll",S=b.overflowX==="scroll"||y.overflowX==="scroll",T=Math.max(0,o.innerWidth-r.clientWidth),_=Math.max(0,o.innerHeight-r.clientHeight),$=parseFloat(y.marginTop)+parseFloat(y.marginBottom),V=parseFloat(y.marginLeft)+parseFloat(y.marginRight),U=_i(n)?n:r;if(a=EV(e),a){n.style.scrollbarGutter=x,U.style.overflowY="hidden",U.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:x,overflowY:"hidden",overflowX:"hidden"}),(R||O)&&(n.style.overflowY="scroll"),(P||S)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:$||_?`calc(100dvh - ${$+_}px)`:"100dvh",width:V||T?`calc(100vw - ${V+T}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function f(){Object.assign(n.style,pC),Object.assign(r.style,mC),a||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=hC)}function p(){f(),u.request(c)}c();const m=Ge(o,"resize",p);return()=>{u.cancel(),f(),typeof o.removeEventListener=="function"&&m()}}class SV{lockCount=0;restore=null;timeoutLock=fr.create();timeoutUnlock=fr.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=ct(t).documentElement,o=Vt(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=At;return}const i=A_||!wV(t);this.restore=i?CV(t):RV(t)}}const PV=new SV;function TV(e=!0,t=null){Le(()=>{if(e)return PV.acquire(t)},[e,t])}function _V(e){e.preventDefault(),e.stopPropagation()}function OV(e){return"nativeEvent"in e}function $V(e){return e.pointerType===""&&e.isTrusted?!0:qv&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function DV(e){return I_?!1:!qv&&e.width===0&&e.height===0||qv&&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 aa(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function k_(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function MV(e,t){return t!=null&&!aa(t)?0:typeof e=="function"?e():e}function Ap(e,t,n){const r=MV(e,n);return typeof r=="number"?r:r?.[t]}function gC(e){return typeof e=="function"?e():e}function F_(e,t){return t||e==="click"||e==="mousedown"}const AV={style:{transition:"none"}},L_="data-base-ui-click-trigger",NV="data-base-ui-swipe-ignore",IV="data-swipe-ignore",kV=`[${NV}]`,FV=`[${IV}]`,q_={fallbackAxisSide:"end"},LV={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Sm="none",Jc="trigger-press",Cr="trigger-hover",wp="trigger-focus",j_="outside-press",qV="close-press",B_="focus-out",iy="escape-key",jV="disabled",os="imperative-action";function pt(e,t,n,r){let o=!1,i=!1;const s=yn;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...s}}const sy=h.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new fr,currentIdRef:{current:null},currentContextRef:{current:null}});process.env.NODE_ENV!=="production"&&(sy.displayName="FloatingDelayGroupContext");function BV(e){const{children:t,delay:n,timeoutMs:r=0}=e,o=h.useRef(n),i=h.useRef(n),s=h.useRef(null),a=h.useRef(null),u=po();return w.jsx(sy.Provider,{value:h.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:u}),[r,u]),children:t})}function VV(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{open:o}=t,i=h.useContext(sy),{currentIdRef:s,delayRef:a,timeoutMs:u,initialDelayRef:c,currentContextRef:f,hasProvider:p,timeout:m}=i,[b,y]=h.useState(!1);return Le(()=>{function v(){y(!1),f.current?.setIsInstantPhase(!1),s.current=null,f.current=null,a.current=c.current}if(s.current&&!o&&s.current===r){if(y(!1),u){const E=r;return m.start(u,()=>{n.select("open")||s.current&&s.current!==E||v()}),()=>{m.clear()}}v()}},[o,r,s,a,u,c,f,m,n]),Le(()=>{if(!o)return;const v=f.current,E=s.current;m.clear(),f.current={onOpenChange:n.setOpen,setIsInstantPhase:y},s.current=r,a.current={open:0,close:Ap(c.current,"close")},E!==null&&E!==r?(y(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,pt(Sm))):(y(!1),v?.setIsInstantPhase(!1))},[o,r,n,s,a,u,c,f,m]),Le(()=>()=>{f.current=null},[f]),h.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:b}),[p,a,b])}function zr(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function la(e,t,n,r){const o=Hn(V_).current;return HV(o,e,t,n,r)&&K_(o,[e,t,n,r]),o.callback}function KV(e){const t=Hn(V_).current;return WV(t,e)&&K_(t,e),t.callback}function V_(){return{callback:null,cleanup:null,refs:[]}}function HV(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function WV(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function K_(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=i(n);typeof s=="function"&&(r[o]=s);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=r[o];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}}}}}}}function cr(e){const t=Hn(UV,e).current;return t.next=e,Le(t.effect),t}function UV(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const H_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},pd={...H_,position:"fixed",top:0,left:0},W_={...H_,position:"absolute"},Ei=h.forwardRef(function(t,n){const[r,o]=h.useState();Le(()=>{N_&&o("button")},[]);const i={tabIndex:0,role:r};return w.jsx("span",{...t,ref:n,style:pd,"aria-hidden":r?void 0:!0,...i,"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Ei.displayName="FocusGuard");const jv="data-base-ui-focusable",U_="active",z_="selected",G_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ke(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&sa(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function nn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Np(e,t){if(!et(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(Ke(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function Lr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function zV(e){return e.matches("html,body")}function Pm(e){return Bt(e)&&e.matches(G_)}function GV(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${G_}`)!=null}function vC(e){return e?e.getAttribute("role")==="combobox"&&Pm(e):!1}function Ip(e){if(!e||I_)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Bv(e){return e?e.hasAttribute(jv)?e:e.querySelector(`[${jv}]`)||e:null}const YV=["top","right","bottom","left"],Si=Math.min,ur=Math.max,ua=Math.round,Lf=Math.floor,co=e=>({x:e,y:e}),XV={left:"right",right:"left",bottom:"top",top:"bottom"};function kp(e,t,n){return ur(e,Si(t,n))}function mo(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function Uo(e){return e.split("-")[1]}function ay(e){return e==="x"?"y":"x"}function Tm(e){return e==="y"?"height":"width"}function Pr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function _m(e){return ay(Pr(e))}function ZV(e,t,n){n===void 0&&(n=!1);const r=Uo(e),o=_m(e),i=Tm(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Fp(s)),[s,Fp(s)]}function QV(e){const t=Fp(e);return[Vv(e),t,Vv(t)]}function Vv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const bC=["left","right"],yC=["right","left"],JV=["top","bottom"],e7=["bottom","top"];function t7(e,t,n){switch(e){case"top":case"bottom":return n?t?yC:bC:t?bC:yC;case"left":case"right":return t?JV:e7;default:return[]}}function n7(e,t,n,r){const o=Uo(e);let i=t7(Qn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Vv)))),i}function Fp(e){const t=Qn(e);return XV[t]+e.slice(t.length)}function r7(e){return{top:0,right:0,bottom:0,left:0,...e}}function ly(e){return typeof e!="number"?r7(e):{top:e,right:e,bottom:e,left:e}}function Lp(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Y_(e){return typeof e.checkVisibility=="function"?e.checkVisibility():Jn(e).display!=="none"}const o7='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function i7(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return sa(n)?n.host:null}function Kv(e){for(const t of Array.from(e.children))if(In(t)==="summary")return t;return null}function s7(e,t){const n=Kv(t);return!!n&&(e===n||Ke(n,e))}function X_(e){const t=e?In(e):"";return e!=null&&e.matches(o7)&&(t!=="summary"||e.parentElement!=null&&In(e.parentElement)==="details"&&Kv(e.parentElement)===e)&&(t!=="details"||Kv(e)==null)&&(t!=="input"||e.type!=="hidden")}function Z_(e){if(!X_(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=i7(t)){const n=In(t)==="slot";if(t.hasAttribute("inert")||t!==e&&In(t)==="details"&&!t.open&&!s7(e,t)||t.hasAttribute("hidden")||!n&&!Y_(t))return!1}return!0}function Q_(e){const t=e.tabIndex;if(t<0){const n=In(e);if(n==="details"||n==="audio"||n==="video"||Bt(e)&&e.isContentEditable)return 0}return t}function Lg(e){if(In(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function a7(e,t){const n=Lg(e);if(!n)return!0;const r=t.find(o=>{const i=Lg(o);return i?.name===n.name&&i.form===n.form&&i.checked});return r?r===n:t.find(o=>{const i=Lg(o);return i?.name===n.name&&i.form===n.form})===n}function J_(e){if(Bt(e)&&In(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Bt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function eO(e,t){J_(e).forEach(n=>{X_(n)&&t.push(n),eO(n,t)})}function tO(e,t,n){J_(e).forEach(r=>{Bt(r)&&r.matches(t)&&n.push(r),tO(r,t,n)})}function uy(e){return Z_(e)&&Q_(e)>=0}function nO(e){const t=[];return eO(e,t),t.filter(Z_)}function Om(e){const t=nO(e);return t.filter(n=>Q_(n)>=0&&a7(n,t))}function rO(e,t){const n=Om(e),r=n.length;if(r===0)return;const o=Zn(ct(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function oO(e){return rO(ct(e).body,1)||e}function iO(e){return rO(ct(e).body,-1)||e}function zc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ke(n,r)}function l7(e){Om(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function xC(e){const t=[];tO(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function fo(e,t,n=!0){return e.filter(o=>o.parentId===t).flatMap(o=>[...!n||o.context?.open?[o]:[],...fo(e,o.id,n)])}function wC(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(i=>i.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function ed(e){return`data-base-ui-${e}`}let qf=0;function qg(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(qf);const i=()=>e?.focus({preventScroll:n});if(o)return i(),At;const s=requestAnimationFrame(i);return qf=s,()=>{qf===s&&(cancelAnimationFrame(s),qf=0)}}const jg={inert:new WeakMap,"aria-hidden":new WeakMap},EC="data-base-ui-inert",Hv={inert:new WeakSet,"aria-hidden":new WeakSet};let Wa=new WeakMap,Bg=0;function u7(e){return Hv[e]}function sO(e){return e?sa(e)?e.host:sO(e.parentNode):null}const Vg=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=sO(n);return e.contains(r)?r:null}).filter(n=>n!=null),CC=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},RC=(e,t,n)=>{const r=[],o=i=>{!i||n.has(i)||Array.from(i.children).forEach(s=>{In(s)!=="script"&&(t.has(s)?o(s):r.push(s))})};return o(e),r};function c7(e,t,n,r,{mark:o=!0,markerIgnoreElements:i=[]}){const s=r?"inert":n?"aria-hidden":null;let a=null,u=null;const c=Vg(t,e),f=o?Vg(t,i):[],p=new Set(f),m=o?RC(t,CC(c),new Set(c)).filter(v=>!p.has(v)):[],b=[],y=[];if(s){const v=jg[s],E=u7(s);u=E,a=v;const x=Vg(t,Array.from(t.querySelectorAll("[aria-live]"))),R=c.concat(x);RC(t,CC(R),new Set(R)).forEach(O=>{const S=O.getAttribute(s),T=S!==null&&S!=="false",_=(v.get(O)||0)+1;v.set(O,_),b.push(O),_===1&&T&&E.add(O),T||O.setAttribute(s,s==="inert"?"":"true")})}return o&&m.forEach(v=>{const E=(Wa.get(v)||0)+1;Wa.set(v,E),y.push(v),E===1&&v.setAttribute(EC,"")}),Bg+=1,()=>{a&&b.forEach(v=>{const x=(a.get(v)||0)-1;a.set(v,x),x||(!u?.has(v)&&s&&v.removeAttribute(s),u?.delete(v))}),o&&y.forEach(v=>{const E=(Wa.get(v)||0)-1;Wa.set(v,E),E||v.removeAttribute(EC)}),Bg-=1,Bg||(jg.inert=new WeakMap,jg["aria-hidden"]=new WeakMap,Hv.inert=new WeakSet,Hv["aria-hidden"]=new WeakSet,Wa=new WeakMap)}}function SC(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:o=!0,markerIgnoreElements:i=[]}=t,s=ct(e[0]).body;return c7(e,s,n,r,{mark:o,markerIgnoreElements:i})}const Wv={...h};let PC=0;function d7(e,t="mui"){const[n,r]=h.useState(e),o=e||n;return h.useEffect(()=>{n==null&&(PC+=1,r(`${t}-${PC}`))},[n,t]),o}const TC=Wv.useId;function ys(e,t){if(TC!==void 0){const n=TC();return e??(t?`${t}-${n}`:n)}return d7(e,t)}function f7(e,t){return function(r,...o){const i=new URL(e);return i.searchParams.set("code",r.toString()),o.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${r}; visit ${i} for the full message.`}}const zt=f7("https://base-ui.com/production-error","Base UI"),p7=parseInt(h.version,10);function cy(e){return p7>=e}function _C(e){if(!h.isValidElement(e))return null;const t=e,n=t.props;return(cy(19)?n?.ref:t.ref)??null}function Uv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}let zv;process.env.NODE_ENV!=="production"&&(zv=new Set);function m7(...e){if(process.env.NODE_ENV!=="production"){const t=e.join(" ");zv.has(t)||(zv.add(t),console.warn(`Base UI: ${t}`))}}function h7(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function g7(e,t){return typeof e=="function"?e(t):e}function v7(e,t){return typeof e=="function"?e(t):e}const dy={};function pa(e,t,n,r,o){if(!n&&!r&&!e)return qp(t);let i=qp(e);return t&&(i=Ep(i,t)),n&&(i=Ep(i,n)),r&&(i=Ep(i,r)),i}function b7(e){if(e.length===0)return dy;if(e.length===1)return qp(e[0]);let t=qp(e[0]);for(let n=1;n<e.length;n+=1)t=Ep(t,e[n]);return t}function qp(e){return fy(e)?{...lO(e,dy)}:y7(e)}function Ep(e,t){return fy(t)?lO(t,e):x7(e,t)}function y7(e){const t={...e};for(const n in t){const r=t[n];aO(n,r)&&(t[n]=uO(r))}return t}function x7(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Uv(e.style,r);break}case"className":{e[n]=cO(e.className,r);break}default:aO(n,r)?e[n]=w7(e[n],r):e[n]=r}}return e}function aO(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function fy(e){return typeof e=="function"}function lO(e,t){return fy(e)?e(t):e??dy}function w7(e,t){return t?e?n=>{if(dO(n)){const o=n;jp(o);const i=t(o);return o.baseUIHandlerPrevented||e?.(o),i}const r=t(n);return e?.(n),r}:uO(t):e}function uO(e){return e&&(t=>(dO(t)&&jp(t),e(t)))}function jp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function cO(e,t){return t?e?t+" "+e:t:e}function dO(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function lt(e,t,n={}){const r=t.render,o=E7(t,n);if(n.enabled===!1)return null;const i=n.state??yn;return T7(e,r,o,i)}function E7(e,t={}){const{className:n,style:r,render:o}=e,{state:i=yn,ref:s,props:a,stateAttributesMapping:u,enabled:c=!0}=t,f=c?g7(n,i):void 0,p=c?v7(r,i):void 0,m=c?h7(i,u):yn,b=c&&a?C7(a):void 0,y=c?Uv(m,b)??{}:yn;return typeof document<"u"&&(c?Array.isArray(s)?y.ref=KV([y.ref,_C(o),...s]):y.ref=la(y.ref,_C(o),s):la(null,null)),c?(f!==void 0&&(y.className=cO(y.className,f)),p!==void 0&&(y.style=Uv(y.style,p)),y):yn}function C7(e){return Array.isArray(e)?b7(e):pa(void 0,e)}const R7=Symbol.for("react.lazy"),S7=/^[A-Z][A-Za-z0-9$]*$/,P7=/[a-z]/;function T7(e,t,n,r){if(t){if(typeof t=="function")return process.env.NODE_ENV!=="production"&&_7(t),t(n,r);const o=pa(n,t.props);o.ref=n.ref;let i=t;if(i?.$$typeof===R7&&(i=h.Children.toArray(t)[0]),process.env.NODE_ENV!=="production"&&!h.isValidElement(i))throw new 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(`
|
|
2
|
-
`));return h.cloneElement(i,o)}if(e&&typeof e=="string")return O7(e,n);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":zt(8))}function _7(e){const t=e.name;t.length!==0&&S7.test(t)&&P7.test(t)&&m7(`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 O7(e,t){return e==="button"?D.createElement("button",{type:"button",...t,key:t.key}):e==="img"?D.createElement("img",{alt:"",...t,key:t.key}):h.createElement(e,t)}const py=h.createContext(null);process.env.NODE_ENV!=="production"&&(py.displayName="PortalContext");const fO=()=>h.useContext(py),$7=ed("portal");function pO(e={}){const{ref:t,container:n,componentProps:r=yn,elementProps:o}=e,i=ys(),a=fO()?.portalNode,[u,c]=h.useState(null),[f,p]=h.useState(null),m=He(E=>{E!==null&&p(E)}),b=h.useRef(null);Le(()=>{if(n===null){b.current&&(b.current=null,p(null),c(null));return}if(i==null)return;const E=(n&&(ry(n)?n:n.current))??a??document.body;if(E==null){b.current&&(b.current=null,p(null),c(null));return}b.current!==E&&(b.current=E,p(null),c(E))},[n,a,i]);const y=lt("div",r,{ref:[t,m],props:[{id:i,[$7]:""},o]});return{portalNode:f,portalSubtree:u&&y?er.createPortal(y,u):null}}const mO=h.forwardRef(function(t,n){const{children:r,container:o,className:i,render:s,renderGuards:a,style:u,...c}=t,{portalNode:f,portalSubtree:p}=pO({container:o,ref:n,componentProps:t,elementProps:c}),m=h.useRef(null),b=h.useRef(null),y=h.useRef(null),v=h.useRef(null),[E,x]=h.useState(null),R=h.useRef(!1),P=E?.modal,O=E?.open,S=typeof a=="boolean"?a:!!E&&!E.modal&&E.open&&!!f;h.useEffect(()=>{if(!f||P)return;function _($){f&&$.relatedTarget&&zc($)&&($.type==="focusin"?R.current&&(xC(f),R.current=!1):(l7(f),R.current=!0))}return zr(Ge(f,"focusin",_,!0),Ge(f,"focusout",_,!0))},[f,P]),h.useEffect(()=>{!f||O!==!1||(xC(f),R.current=!1)},[O,f]);const T=h.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:b,beforeInsideRef:y,afterInsideRef:v,portalNode:f,setFocusManagerState:x}),[f]);return w.jsxs(h.Fragment,{children:[p,w.jsxs(py.Provider,{value:T,children:[S&&f&&w.jsx(Ei,{"data-type":"outside",ref:m,onFocus:_=>{if(zc(_,f))y.current?.focus();else{const $=E?E.domReference:null;iO($)?.focus()}}}),S&&f&&w.jsx("span",{"aria-owns":f.id,style:LV}),f&&er.createPortal(r,f),S&&f&&w.jsx(Ei,{"data-type":"outside",ref:b,onFocus:_=>{if(zc(_,f))v.current?.focus();else{const $=E?E.domReference:null;oO($)?.focus(),E?.closeOnFocusOut&&E?.onOpenChange(!1,pt(B_,_.nativeEvent))}}})]})]})});process.env.NODE_ENV!=="production"&&(mO.displayName="FloatingPortal");function D7(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(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)}}}const hO=h.createContext(null);process.env.NODE_ENV!=="production"&&(hO.displayName="FloatingNodeContext");const gO=h.createContext(null);process.env.NODE_ENV!=="production"&&(gO.displayName="FloatingTreeContext");const $m=()=>h.useContext(hO)?.id||null,md=e=>{const t=h.useContext(gO);return e??t};function Io(e){return e==null?e:"current"in e?e.current:e}function M7(e,t){const n=Vt(nn(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"):""}const OC=20;let xi=[];function my(){xi=xi.filter(e=>e.deref()?.isConnected)}function A7(e){my(),e&&In(e)!=="body"&&(xi.push(new WeakRef(e)),xi.length>OC&&(xi=xi.slice(-OC)))}function Kg(){return my(),xi[xi.length-1]?.deref()}function N7(e){return e?uy(e)?e:Om(e)[0]||e:null}function I7(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Y_(e)}function $C(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const r=nO(e).filter(i=>{const s=i.getAttribute("data-tabindex")||"";return uy(i)||i.hasAttribute("data-tabindex")&&!s.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||r.length===0?o!=="0"&&e.setAttribute("tabindex","0"):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function k7(e){const{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:u=!0,openInteractionType:c="",nextFocusableElement:f,previousFocusableElement:p,beforeContentFocusGuardRef:m,externalTree:b,getInsideElements:y}=e,v="rootStore"in t?t.rootStore:t,E=v.useState("open"),x=v.useState("domReferenceElement"),R=v.useState("floatingElement"),{events:P,dataRef:O}=v.context,S=He(()=>O.current.floatingContext?.nodeId),T=o===!1,_=vC(x)&&T,$=h.useRef(["content"]),V=cr(o),U=cr(i),A=cr(c),H=md(b),F=fO(),N=h.useRef(!1),j=h.useRef(!1),I=h.useRef(!1),k=h.useRef(null),q=h.useRef(""),z=h.useRef(""),W=h.useRef(null),te=h.useRef(null),X=la(W,m,F?.beforeInsideRef),Q=la(te,F?.afterInsideRef),re=po(),ce=po(),se=fd(),ee=F!=null,de=Bv(R),K=He((Z=de)=>Z?Om(Z):[]),ue=He(()=>y?.().filter(Z=>Z!=null)??[]);h.useEffect(()=>{if(r||!a)return;function Z(Re){Re.key==="Tab"&&Ke(de,Zn(ct(de)))&&K().length===0&&!_&&_V(Re)}const xe=ct(de);return Ge(xe,"keydown",Z)},[r,x,de,a,$,_,K]),h.useEffect(()=>{if(r||!E)return;const Z=ct(de);function xe(){I.current=!1}function Re(Se){const Oe=nn(Se),Ye=ue(),Fe=Ke(R,Oe)||Ke(x,Oe)||Ke(F?.portalNode,Oe)||Ye.some(G=>G===Oe||Ke(G,Oe));I.current=!Fe,z.current=Se.pointerType||"keyboard",Oe?.closest(`[${L_}]`)&&(j.current=!0)}function Ae(){z.current="keyboard"}return zr(Ge(Z,"pointerdown",Re,!0),Ge(Z,"pointerup",xe,!0),Ge(Z,"pointercancel",xe,!0),Ge(Z,"keydown",Ae,!0))},[r,R,x,de,E,F,ue]),h.useEffect(()=>{if(r||!u)return;const Z=ct(de);function xe(){j.current=!0,ce.start(0,()=>{j.current=!1})}function Re(Ye){const Fe=nn(Ye);uy(Fe)&&(k.current=Fe)}function Ae(Ye){const Fe=Ye.relatedTarget,G=Ye.currentTarget,J=nn(Ye);queueMicrotask(()=>{const ie=S(),fe=v.context.triggerElements,pe=ue(),ge=Fe?.hasAttribute(ed("focus-guard"))&&[W.current,te.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,Io(p),Io(f)].includes(Fe),Ee=!(Ke(x,Fe)||Ke(R,Fe)||Ke(Fe,R)||Ke(F?.portalNode,Fe)||pe.some(Pe=>Pe===Fe||Ke(Pe,Fe))||Fe!=null&&fe.hasElement(Fe)||fe.hasMatchingElement(Pe=>Ke(Pe,Fe))||ge||H&&(fo(H.nodesRef.current,ie).find(Pe=>Ke(Pe.context?.elements.floating,Fe)||Ke(Pe.context?.elements.domReference,Fe))||wC(H.nodesRef.current,ie).find(Pe=>[Pe.context?.elements.floating,Bv(Pe.context?.elements.floating)].includes(Fe)||Pe.context?.elements.domReference===Fe)));if(G===x&&de&&$C(de,$),s&&G!==x&&!I7(J)&&Zn(Z)===Z.body){if(Bt(de)&&(de.focus(),s==="popup")){se.request(()=>{de.focus()});return}const Pe=K(),Ne=k.current,st=(Ne&&Pe.includes(Ne)?Ne:null)||Pe[Pe.length-1]||de;Bt(st)&&st.focus()}if(O.current.insideReactTree){O.current.insideReactTree=!1;return}(_||!a)&&Fe&&Ee&&!j.current&&(_||Fe!==Kg())&&(N.current=!0,v.setOpen(!1,pt(B_,Ye)))})}function Se(){I.current||(O.current.insideReactTree=!0,re.start(0,()=>{O.current.insideReactTree=!1}))}const Oe=Bt(x)?x:null;if(!(!R&&!Oe))return zr(Oe&&Ge(Oe,"focusout",Ae),Oe&&Ge(Oe,"pointerdown",xe),R&&Ge(R,"focusin",Re),R&&Ge(R,"focusout",Ae),R&&F&&Ge(R,"focusout",Se,!0))},[r,x,R,de,a,H,F,v,u,s,K,_,S,$,O,re,ce,se,f,p,ue]),h.useEffect(()=>{if(r||!R||!E)return;const Z=Array.from(F?.portalNode?.querySelectorAll(`[${ed("portal")}]`)||[]),Re=(H?wC(H.nodesRef.current,S()):[]).find(G=>vC(G.context?.elements.domReference||null))?.context?.elements.domReference,Se=[...[R,...Z,W.current,te.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,...ue()],Re,Io(p),Io(f),_?x:null].filter(G=>G!=null),Oe=SC(Se,{ariaHidden:a||_,mark:!1}),Ye=[R,...Z].filter(G=>G!=null),Fe=SC(Ye);return()=>{Fe(),Oe()}},[E,r,x,R,a,$,F,_,H,S,f,p,ue]),Le(()=>{if(!E||r||!Bt(de))return;const Z=ct(de),xe=Zn(Z);queueMicrotask(()=>{const Re=V.current,Ae=typeof Re=="function"?Re(A.current||""):Re;if(Ae===void 0||Ae===!1||Ke(de,xe))return;let Oe=null;const Ye=()=>(Oe==null&&(Oe=K(de)),Oe[0]||de);let Fe;Ae===!0||Ae===null?Fe=Ye():Fe=Io(Ae),Fe=Fe||Ye(),qg(Fe,{preventScroll:Fe===de})})},[r,E,de,T,K,V,A]),Le(()=>{if(r||!de)return;const Z=ct(de),xe=Zn(Z);A7(xe);function Re(Se){if(Se.open||(q.current=M7(Se.nativeEvent,z.current)),Se.reason===Cr&&Se.nativeEvent.type==="mouseleave"&&(N.current=!0),Se.reason===j_)if(Se.nested)N.current=!1;else if($V(Se.nativeEvent)||DV(Se.nativeEvent))N.current=!1;else{let Oe=!1;ct(de).createElement("div").focus({get preventScroll(){return Oe=!0,!1}}),Oe?N.current=!1:N.current=!0}}P.on("openchange",Re);function Ae(){const Se=U.current;let Oe=typeof Se=="function"?Se(q.current):Se;if(Oe===void 0||Oe===!1)return null;if(Oe===null&&(Oe=!0),typeof Oe=="boolean"){const Fe=x||Kg();return Fe&&Fe.isConnected?Fe:null}const Ye=x||Kg();return Io(Oe)||Ye||null}return()=>{P.off("openchange",Re);const Se=Zn(Z),Oe=ue(),Ye=Ke(R,Se)||Oe.some(J=>J===Se||Ke(J,Se))||H&&fo(H.nodesRef.current,S(),!1).some(J=>Ke(J.context?.elements.floating,Se)),Fe=U.current,G=Ae();queueMicrotask(()=>{const J=N7(G),ie=typeof Fe!="boolean";Fe&&!N.current&&Bt(J)&&(!(!ie&&J!==Se&&Se!==Z.body)||Ye)&&J.focus({preventScroll:!0}),N.current=!1})}},[r,R,de,U,O,P,H,x,S,ue]),Le(()=>{if(!M_||E||!R)return;const Z=Zn(ct(R));!Bt(Z)||!Pm(Z)||Ke(R,Z)&&Z.blur()},[E,R]),Le(()=>{if(!(r||!F))return F.setFocusManagerState({modal:a,closeOnFocusOut:u,open:E,onOpenChange:v.setOpen,domReference:x}),()=>{F.setFocusManagerState(null)}},[r,F,a,E,v,u,x]),Le(()=>{if(!(r||!de))return $C(de,$),()=>{queueMicrotask(my)}},[r,de,$]);const le=!r&&(a?!_:!0)&&(ee||a);return w.jsxs(h.Fragment,{children:[le&&w.jsx(Ei,{"data-type":"inside",ref:X,onFocus:Z=>{if(a){const xe=K();qg(xe[xe.length-1])}else F?.portalNode&&(N.current=!1,zc(Z,F.portalNode)?oO(x)?.focus():Io(p??F.beforeOutsideRef)?.focus())}}),n,le&&w.jsx(Ei,{"data-type":"inside",ref:Q,onFocus:Z=>{a?qg(K()[0]):F?.portalNode&&(u&&(N.current=!0),zc(Z,F.portalNode)?iO(x)?.focus():Io(f??F.afterOutsideRef)?.focus())}})]})}function F7(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:o=!0,event:i="click",toggle:s=!0,ignoreMouse:a=!1,stickIfOpen:u=!0,touchOpenDelay:c=0,reason:f=Jc}=t,p=h.useRef(void 0),m=fd(),b=po(),y=h.useMemo(()=>({onPointerDown(v){p.current=v.pointerType},onMouseDown(v){const E=p.current,x=v.nativeEvent,R=n.select("open");if(v.button!==0||i==="click"||aa(E,!0)&&a)return;const P=r.current.openEvent,O=P?.type,S=n.select("domReferenceElement")!==v.currentTarget,T=R&&S||!(R&&s&&(!(P&&u)||O==="click"||O==="mousedown")),_=nn(x);if(Pm(_)){const V=pt(f,x,_);T&&E==="touch"&&c>0?b.start(c,()=>{n.setOpen(!0,V)}):n.setOpen(T,V);return}const $=v.currentTarget;m.request(()=>{const V=pt(f,x,$);T&&E==="touch"&&c>0?b.start(c,()=>{n.setOpen(!0,V)}):n.setOpen(T,V)})},onClick(v){if(i==="mousedown-only")return;const E=p.current;if(i==="mousedown"&&E){p.current=void 0;return}if(aa(E,!0)&&a)return;const x=n.select("open"),R=r.current.openEvent,P=n.select("domReferenceElement")!==v.currentTarget,O=x&&P||!(x&&s&&(!(R&&u)||k_(R))),S=pt(f,v.nativeEvent,v.currentTarget);O&&E==="touch"&&c>0?b.start(c,()=>{n.setOpen(!0,S)}):n.setOpen(O,S)},onKeyDown(){p.current=void 0}}),[r,i,a,n,u,s,m,b,c,f]);return h.useMemo(()=>o?{reference:y}:yn,[o,y])}function L7(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let c=i.width,f=i.height,p=i.x,m=i.y;return n==null&&t.x&&s&&(n=i.x-t.x),r==null&&t.y&&a&&(r=i.y-t.y),p-=n||0,m-=r||0,c=0,f=0,!o||u?(c=t.axis==="y"?i.width:0,f=t.axis==="x"?i.height:0,p=s&&t.x!=null?t.x:p,m=a&&t.y!=null?t.y:m):o&&!u&&(f=t.axis==="x"?i.height:f,c=t.axis==="y"?i.width:c),o=!0,{width:c,height:f,x:p,y:m,top:m,right:p+c,bottom:m+f,left:p}}}}function DC(e){return e!=null&&e.clientX!=null}function q7(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),s=n.context.dataRef,{enabled:a=!0,axis:u="both"}=t,c=h.useRef(!1),f=h.useRef(null),[p,m]=h.useState(),[b,y]=h.useState([]),v=He((O,S,T)=>{c.current||s.current.openEvent&&!DC(s.current.openEvent)||n.set("positionReference",L7(T??i,{x:O,y:S,axis:u,dataRef:s,pointerType:p}))}),E=He(O=>{r?f.current||y([]):v(O.clientX,O.clientY,O.currentTarget)}),x=aa(p)?o:r,R=h.useCallback(()=>{if(!x||!a)return;const O=Vt(o);function S(T){const _=nn(T);Ke(o,_)?(f.current?.(),f.current=null):v(T.clientX,T.clientY)}if(!s.current.openEvent||DC(s.current.openEvent)){const T=()=>{f.current?.(),f.current=null};return f.current=Ge(O,"mousemove",S),T}n.set("positionReference",i)},[x,a,o,s,i,n,v]);h.useEffect(()=>R(),[R,b]),h.useEffect(()=>{a&&!o&&(c.current=!1)},[a,o]),h.useEffect(()=>{!a&&r&&(c.current=!0)},[a,r]);const P=h.useMemo(()=>{function O(S){m(S.pointerType)}return{onPointerDown:O,onPointerEnter:O,onMouseMove:E,onMouseEnter:E}},[E]);return h.useMemo(()=>a?{reference:P,trigger:P}:{},[a,P])}const j7={intentional:"onClick",sloppy:"onPointerDown"};function B7(){return!1}function V7(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function vO(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),{dataRef:i}=n.context,{enabled:s=!0,escapeKey:a=!0,outsidePress:u=!0,outsidePressEvent:c="sloppy",referencePress:f=B7,referencePressEvent:p="sloppy",bubbles:m,externalTree:b}=t,y=md(b),v=He(typeof u=="function"?u:()=>!1),E=typeof u=="function"?v:u,x=E!==!1,R=He(()=>c),P=h.useRef(!1),O=h.useRef(!1),S=h.useRef(!1),{escapeKey:T,outsidePress:_}=V7(m),$=h.useRef(null),V=po(),U=po(),A=He(()=>{U.clear(),i.current.insideReactTree=!1}),H=h.useRef(!1),F=h.useRef(""),N=He(f),j=He(te=>{if(!r||!s||!a||te.key!=="Escape"||H.current)return;const X=i.current.floatingContext?.nodeId,Q=y?fo(y.nodesRef.current,X):[];if(!T&&Q.length>0){let se=!0;if(Q.forEach(ee=>{ee.context?.open&&!ee.context.dataRef.current.__escapeKeyBubbles&&(se=!1)}),!se)return}const re=OV(te)?te.nativeEvent:te,ce=pt(iy,re);n.setOpen(!1,ce),!T&&!ce.isPropagationAllowed&&te.stopPropagation()}),I=He(()=>{i.current.insideReactTree=!0,U.start(0,A)});h.useEffect(()=>{if(!r||!s)return;i.current.__escapeKeyBubbles=T,i.current.__outsidePressBubbles=_;const te=new fr,X=new fr;function Q(){te.clear(),H.current=!0}function re(){te.start(Em()?5:0,()=>{H.current=!1})}function ce(){S.current=!0,X.start(0,()=>{S.current=!1})}function se(){P.current=!1,O.current=!1}function ee(){const fe=F.current,pe=fe==="pen"||!fe?"mouse":fe,ge=R(),Ee=typeof ge=="function"?ge():ge;return typeof Ee=="string"?Ee:Ee[pe]}function de(fe){const pe=ee();return pe==="intentional"&&fe.type!=="click"||pe==="sloppy"&&fe.type==="click"}function K(fe){const pe=i.current.floatingContext?.nodeId,ge=y&&fo(y.nodesRef.current,pe).some(Ee=>Lr(fe,Ee.context?.elements.floating));return Lr(fe,n.select("floatingElement"))||Lr(fe,n.select("domReferenceElement"))||ge}function ue(fe){if(de(fe)){A();return}if(i.current.insideReactTree){A();return}const pe=nn(fe),ge=`[${ed("inert")}]`,Ee=et(pe)?pe.getRootNode():null,Pe=Array.from((sa(Ee)?Ee:ct(n.select("floatingElement"))).querySelectorAll(ge)),Ne=n.context.triggerElements;if(pe&&(Ne.hasElement(pe)||Ne.hasMatchingElement(dt=>Ke(dt,pe))))return;let st=et(pe)?pe:null;for(;st&&!jo(st);){const dt=Vo(st);if(jo(dt)||!et(dt))break;st=dt}if(Pe.length&&et(pe)&&!zV(pe)&&!Ke(pe,n.select("floatingElement"))&&Pe.every(dt=>!Ke(st,dt)))return;if(Bt(pe)&&!("touches"in fe)){const dt=jo(pe),Nt=Jn(pe),Yt=/auto|scroll/,un=dt||Yt.test(Nt.overflowX),mn=dt||Yt.test(Nt.overflowY),$n=un&&pe.clientWidth>0&&pe.scrollWidth>pe.clientWidth,nt=mn&&pe.clientHeight>0&&pe.scrollHeight>pe.clientHeight,tt=Nt.direction==="rtl",Jt=nt&&(tt?fe.offsetX<=pe.offsetWidth-pe.clientWidth:fe.offsetX>pe.clientWidth),Ft=$n&&fe.offsetY>pe.clientHeight;if(Jt||Ft)return}if(K(fe))return;if(ee()==="intentional"&&S.current){X.clear(),S.current=!1;return}if(typeof E=="function"&&!E(fe))return;const ut=i.current.floatingContext?.nodeId,wt=y?fo(y.nodesRef.current,ut):[];if(wt.length>0){let dt=!0;if(wt.forEach(Nt=>{Nt.context?.open&&!Nt.context.dataRef.current.__outsidePressBubbles&&(dt=!1)}),!dt)return}n.setOpen(!1,pt(j_,fe)),A()}function le(fe){ee()!=="sloppy"||fe.pointerType==="touch"||!n.select("open")||!s||Lr(fe,n.select("floatingElement"))||Lr(fe,n.select("domReferenceElement"))||ue(fe)}function Z(fe){if(ee()!=="sloppy"||!n.select("open")||!s||Lr(fe,n.select("floatingElement"))||Lr(fe,n.select("domReferenceElement")))return;const pe=fe.touches[0];pe&&($.current={startTime:Date.now(),startX:pe.clientX,startY:pe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{$.current&&($.current.dismissOnTouchEnd=!1,$.current.dismissOnMouseDown=!1)}))}function xe(fe,pe){const ge=nn(fe);if(!ge)return;const Ee=Ge(ge,fe.type,()=>{pe(fe),Ee()})}function Re(fe){F.current="touch",xe(fe,Z)}function Ae(fe){V.clear(),fe.type==="pointerdown"&&(F.current=fe.pointerType),!(fe.type==="mousedown"&&$.current&&!$.current.dismissOnMouseDown)&&xe(fe,pe=>{pe.type==="pointerdown"?le(pe):ue(pe)})}function Se(fe){if(!P.current)return;const pe=O.current;if(se(),ee()==="intentional"){if(fe.type==="pointercancel"){pe&&ce();return}if(!K(fe)){if(pe){ce();return}typeof E=="function"&&!E(fe)||(X.clear(),S.current=!0,A())}}}function Oe(fe){if(ee()!=="sloppy"||!$.current||Lr(fe,n.select("floatingElement"))||Lr(fe,n.select("domReferenceElement")))return;const pe=fe.touches[0];if(!pe)return;const ge=Math.abs(pe.clientX-$.current.startX),Ee=Math.abs(pe.clientY-$.current.startY),Pe=Math.sqrt(ge*ge+Ee*Ee);Pe>5&&($.current.dismissOnTouchEnd=!0),Pe>10&&(ue(fe),V.clear(),$.current=null)}function Ye(fe){xe(fe,Oe)}function Fe(fe){ee()!=="sloppy"||!$.current||Lr(fe,n.select("floatingElement"))||Lr(fe,n.select("domReferenceElement"))||($.current.dismissOnTouchEnd&&ue(fe),V.clear(),$.current=null)}function G(fe){xe(fe,Fe)}const J=ct(o),ie=zr(a&&zr(Ge(J,"keydown",j),Ge(J,"compositionstart",Q),Ge(J,"compositionend",re)),x&&zr(Ge(J,"click",Ae,!0),Ge(J,"pointerdown",Ae,!0),Ge(J,"pointerup",Se,!0),Ge(J,"pointercancel",Se,!0),Ge(J,"mousedown",Ae,!0),Ge(J,"mouseup",Se,!0),Ge(J,"touchstart",Re,!0),Ge(J,"touchmove",Ye,!0),Ge(J,"touchend",G,!0)));return()=>{ie(),te.clear(),X.clear(),se(),S.current=!1}},[i,o,a,x,E,r,s,T,_,j,A,R,y,n,V]),h.useEffect(A,[E,A]);const k=h.useMemo(()=>({onKeyDown:j,[j7[p]]:te=>{N()&&n.setOpen(!1,pt(Jc,te.nativeEvent))},...p!=="intentional"&&{onClick(te){N()&&n.setOpen(!1,pt(Jc,te.nativeEvent))}}}),[j,n,p,N]),q=He(te=>{if(!r||!s||te.button!==0)return;const X=nn(te.nativeEvent);Ke(n.select("floatingElement"),X)&&(P.current||(P.current=!0,O.current=!1))}),z=He(te=>{!r||!s||(te.defaultPrevented||te.nativeEvent.defaultPrevented)&&P.current&&(O.current=!0)}),W=h.useMemo(()=>({onKeyDown:j,onPointerDown:z,onMouseDown:z,onClickCapture:I,onMouseDownCapture(te){I(),q(te)},onPointerDownCapture(te){I(),q(te)},onMouseUpCapture:I,onTouchEndCapture:I,onTouchMoveCapture:I}),[j,I,q,z]);return h.useMemo(()=>s?{reference:k,floating:W,trigger:k}:{},[s,k,W])}function MC(e,t,n){let{reference:r,floating:o}=e;const i=Pr(t),s=_m(t),a=Tm(s),u=Qn(t),c=i==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let b;switch(u){case"top":b={x:f,y:r.y-o.height};break;case"bottom":b={x:f,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:p};break;case"left":b={x:r.x-o.width,y:p};break;default:b={x:r.x,y:r.y}}switch(Uo(t)){case"start":b[s]-=m*(n&&c?-1:1);break;case"end":b[s]+=m*(n&&c?-1:1);break}return b}async function K7(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:b=0}=mo(t,e),y=ly(b),E=a[m?p==="floating"?"reference":"floating":p],x=Lp(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:u})),R=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),O=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},S=Lp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:R,offsetParent:P,strategy:u}):R);return{top:(x.top-S.top+y.top)/O.y,bottom:(S.bottom-x.bottom+y.bottom)/O.y,left:(x.left-S.left+y.left)/O.x,right:(S.right-x.right+y.right)/O.x}}const H7=50,W7=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:K7},u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=MC(c,r,u),m=r,b=0;const y={};for(let v=0;v<i.length;v++){const E=i[v];if(!E)continue;const{name:x,fn:R}=E,{x:P,y:O,data:S,reset:T}=await R({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:c,platform:a,elements:{reference:e,floating:t}});f=P??f,p=O??p,y[x]={...y[x],...S},T&&b<H7&&(b++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(c=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=MC(c,m,u)),v=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:y}},U7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:f=0}=mo(e,t)||{};if(c==null)return{};const p=ly(f),m={x:n,y:r},b=_m(o),y=Tm(b),v=await s.getDimensions(c),E=b==="y",x=E?"top":"left",R=E?"bottom":"right",P=E?"clientHeight":"clientWidth",O=i.reference[y]+i.reference[b]-m[b]-i.floating[y],S=m[b]-i.reference[b],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=T?T[P]:0;(!_||!await(s.isElement==null?void 0:s.isElement(T)))&&(_=a.floating[P]||i.floating[y]);const $=O/2-S/2,V=_/2-v[y]/2-1,U=Si(p[x],V),A=Si(p[R],V),H=U,F=_-v[y]-A,N=_/2-v[y]/2+$,j=kp(H,N,F),I=!u.arrow&&Uo(o)!=null&&N!==j&&i.reference[y]/2-(N<H?U:A)-v[y]/2<0,k=I?N<H?N-H:N-F:0;return{[b]:m[b]+k,data:{[b]:j,centerOffset:N-j-k,...I&&{alignmentOffset:k}},reset:I}}}),z7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...E}=mo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Qn(o),R=Pr(a),P=Qn(a)===a,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=m||(P||!v?[Fp(a)]:QV(a)),T=y!=="none";!m&&T&&S.push(...n7(a,v,y,O));const _=[a,...S],$=await u.detectOverflow(t,E),V=[];let U=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&V.push($[x]),p){const N=ZV(o,s,O);V.push($[N[0]],$[N[1]])}if(U=[...U,{placement:o,overflows:V}],!V.every(N=>N<=0)){var A,H;const N=(((A=i.flip)==null?void 0:A.index)||0)+1,j=_[N];if(j&&(!(p==="alignment"?R!==Pr(j):!1)||U.every(q=>Pr(q.placement)===R?q.overflows[0]>0:!0)))return{data:{index:N,overflows:U},reset:{placement:j}};let I=(H=U.filter(k=>k.overflows[0]<=0).sort((k,q)=>k.overflows[1]-q.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(b){case"bestFit":{var F;const k=(F=U.filter(q=>{if(T){const z=Pr(q.placement);return z===R||z==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(z=>z>0).reduce((z,W)=>z+W,0)]).sort((q,z)=>q[1]-z[1])[0])==null?void 0:F[0];k&&(I=k);break}case"initialPlacement":I=a;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function AC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NC(e){return YV.some(t=>e[t]>=0)}const G7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=mo(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=AC(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:NC(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=AC(s,n.floating);return{data:{escapedOffsets:a,escaped:NC(a)}}}default:return{}}}}},bO=new Set(["left","top"]);async function Y7(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Qn(n),a=Uo(n),u=Pr(n)==="y",c=bO.has(s)?-1:1,f=i&&u?-1:1,p=mo(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(b=a==="end"?y*-1:y),u?{x:b*f,y:m*c}:{x:m*c,y:b*f}}const X7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await Y7(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},Z7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:x=>{let{x:R,y:P}=x;return{x:R,y:P}}},...c}=mo(e,t),f={x:n,y:r},p=await i.detectOverflow(t,c),m=Pr(Qn(o)),b=ay(m);let y=f[b],v=f[m];if(s){const x=b==="y"?"top":"left",R=b==="y"?"bottom":"right",P=y+p[x],O=y-p[R];y=kp(P,y,O)}if(a){const x=m==="y"?"top":"left",R=m==="y"?"bottom":"right",P=v+p[x],O=v-p[R];v=kp(P,v,O)}const E=u.fn({...t,[b]:y,[m]:v});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[b]:s,[m]:a}}}}}},Q7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=mo(e,t),f={x:n,y:r},p=Pr(o),m=ay(p);let b=f[m],y=f[p];const v=mo(a,t),E=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const P=m==="y"?"height":"width",O=i.reference[m]-i.floating[P]+E.mainAxis,S=i.reference[m]+i.reference[P]-E.mainAxis;b<O?b=O:b>S&&(b=S)}if(c){var x,R;const P=m==="y"?"width":"height",O=bO.has(Qn(o)),S=i.reference[p]-i.floating[P]+(O&&((x=s.offset)==null?void 0:x[p])||0)+(O?0:E.crossAxis),T=i.reference[p]+i.reference[P]+(O?0:((R=s.offset)==null?void 0:R[p])||0)-(O?E.crossAxis:0);y<S?y=S:y>T&&(y=T)}return{[m]:b,[p]:y}}}},J7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=mo(e,t),f=await s.detectOverflow(t,c),p=Qn(o),m=Uo(o),b=Pr(o)==="y",{width:y,height:v}=i.floating;let E,x;p==="top"||p==="bottom"?(E=p,x=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=p,E=m==="end"?"top":"bottom");const R=v-f.top-f.bottom,P=y-f.left-f.right,O=Si(v-f[E],R),S=Si(y-f[x],P),T=!t.middlewareData.shift;let _=O,$=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=R),T&&!m){const U=ur(f.left,0),A=ur(f.right,0),H=ur(f.top,0),F=ur(f.bottom,0);b?$=y-2*(U!==0||A!==0?U+A:ur(f.left,f.right)):_=v-2*(H!==0||F!==0?H+F:ur(f.top,f.bottom))}await u({...t,availableWidth:$,availableHeight:_});const V=await s.getDimensions(a.floating);return y!==V.width||v!==V.height?{reset:{rects:!0}}:{}}}};function yO(e){const t=Jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ua(n)!==i||ua(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function hy(e){return et(e)?e:e.contextElement}function ea(e){const t=hy(e);if(!Bt(t))return co(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yO(t);let s=(i?ua(n.width):n.width)/r,a=(i?ua(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const e9=co(0);function xO(e){const t=Vt(e);return!Em()||!t.visualViewport?e9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vt(e)?!1:t}function as(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=hy(e);let s=co(1);t&&(r?et(r)&&(s=ea(r)):s=ea(e));const a=t9(i,n,r)?xO(i):co(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(i){const m=Vt(i),b=r&&et(r)?Vt(r):r;let y=m,v=Lv(y);for(;v&&r&&b!==y;){const E=ea(v),x=v.getBoundingClientRect(),R=Jn(v),P=x.left+(v.clientLeft+parseFloat(R.paddingLeft))*E.x,O=x.top+(v.clientTop+parseFloat(R.paddingTop))*E.y;u*=E.x,c*=E.y,f*=E.x,p*=E.y,u+=P,c+=O,y=Vt(v),v=Lv(y)}}return Lp({width:f,height:p,x:u,y:c})}function Dm(e,t){const n=Cm(e).scrollLeft;return t?t.left+n:as(ho(e)).left+n}function wO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Dm(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function n9(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ho(r),a=t?wm(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=co(1);const f=co(0),p=Bt(r);if((p||!p&&!i)&&((In(r)!=="body"||_i(s))&&(u=Cm(r)),p)){const b=as(r);c=ea(r),f.x=b.x+r.clientLeft,f.y=b.y+r.clientTop}const m=s&&!p&&!i?wO(s,u):co(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-u.scrollTop*c.y+f.y+m.y}}function r9(e){return Array.from(e.getClientRects())}function o9(e){const t=ho(e),n=Cm(e),r=e.ownerDocument.body,o=ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Dm(e);const a=-n.scrollTop;return Jn(r).direction==="rtl"&&(s+=ur(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const IC=25;function i9(e,t){const n=Vt(e),r=ho(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const f=Em();(!f||f&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Dm(r);if(c<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),b=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(r.clientWidth-p.clientWidth-b);y<=IC&&(i-=y)}else c<=IC&&(i+=c);return{width:i,height:s,x:a,y:u}}function s9(e,t){const n=as(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bt(e)?ea(e):co(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=r*i.y;return{width:s,height:a,x:u,y:c}}function kC(e,t,n){let r;if(t==="viewport")r=i9(e,n);else if(t==="document")r=o9(ho(e));else if(et(t))r=s9(t,n);else{const o=xO(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lp(r)}function EO(e,t){const n=Vo(e);return n===t||!et(n)||jo(n)?!1:Jn(n).position==="fixed"||EO(n,t)}function a9(e,t){const n=t.get(e);if(n)return n;let r=Qc(e,[],!1).filter(a=>et(a)&&In(a)!=="body"),o=null;const i=Jn(e).position==="fixed";let s=i?Vo(e):e;for(;et(s)&&!jo(s);){const a=Jn(s),u=oy(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||_i(s)&&!u&&EO(e,s))?r=r.filter(f=>f!==s):o=a,s=Vo(s)}return t.set(e,r),r}function l9(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?wm(t)?[]:a9(t,this._c):[].concat(n),r],a=kC(t,s[0],o);let u=a.top,c=a.right,f=a.bottom,p=a.left;for(let m=1;m<s.length;m++){const b=kC(t,s[m],o);u=ur(b.top,u),c=Si(b.right,c),f=Si(b.bottom,f),p=ur(b.left,p)}return{width:c-p,height:f-u,x:p,y:u}}function u9(e){const{width:t,height:n}=yO(e);return{width:t,height:n}}function c9(e,t,n){const r=Bt(t),o=ho(t),i=n==="fixed",s=as(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=co(0);function c(){u.x=Dm(o)}if(r||!r&&!i)if((In(t)!=="body"||_i(o))&&(a=Cm(t)),r){const b=as(t,!0,i,t);u.x=b.x+t.clientLeft,u.y=b.y+t.clientTop}else o&&c();i&&!r&&o&&c();const f=o&&!r&&!i?wO(o,a):co(0),p=s.left+a.scrollLeft-u.x-f.x,m=s.top+a.scrollTop-u.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function Hg(e){return Jn(e).position==="static"}function FC(e,t){if(!Bt(e)||Jn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ho(e)===n&&(n=n.ownerDocument.body),n}function CO(e,t){const n=Vt(e);if(wm(e))return n;if(!Bt(e)){let o=Vo(e);for(;o&&!jo(o);){if(et(o)&&!Hg(o))return o;o=Vo(o)}return n}let r=FC(e,t);for(;r&&cV(r)&&Hg(r);)r=FC(r,t);return r&&jo(r)&&Hg(r)&&!oy(r)?n:r||pV(e)||n}const d9=async function(e){const t=this.getOffsetParent||CO,n=this.getDimensions,r=await n(e.floating);return{reference:c9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function f9(e){return Jn(e).direction==="rtl"}const p9={convertOffsetParentRelativeRectToViewportRelativeRect:n9,getDocumentElement:ho,getClippingRect:l9,getOffsetParent:CO,getElementRects:d9,getClientRects:r9,getDimensions:u9,getScale:ea,isElement:et,isRTL:f9};function RO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m9(e,t){let n=null,r;const o=ho(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:f,top:p,width:m,height:b}=c;if(a||t(),!m||!b)return;const y=Lf(p),v=Lf(o.clientWidth-(f+m)),E=Lf(o.clientHeight-(p+b)),x=Lf(f),P={rootMargin:-y+"px "+-v+"px "+-E+"px "+-x+"px",threshold:ur(0,Si(1,u))||1};let O=!0;function S(T){const _=T[0].intersectionRatio;if(_!==u){if(!O)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!RO(c,e.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(S,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,P)}n.observe(e)}return s(!0),i}function Gv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=hy(e),f=o||i?[...c?Qc(c):[],...t?Qc(t):[]]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const p=c&&a?m9(c,n):null;let m=-1,b=null;s&&(b=new ResizeObserver(x=>{let[R]=x;R&&R.target===c&&b&&t&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=b)==null||P.observe(t)})),n()}),c&&!u&&b.observe(c),t&&b.observe(t));let y,v=u?as(e):null;u&&E();function E(){const x=as(e);v&&!RO(v,x)&&n(),v=x,y=requestAnimationFrame(E)}return n(),()=>{var x;f.forEach(R=>{o&&R.removeEventListener("scroll",n),i&&R.removeEventListener("resize",n)}),p?.(),(x=b)==null||x.disconnect(),b=null,u&&cancelAnimationFrame(y)}}const h9=X7,g9=Z7,v9=z7,b9=J7,y9=G7,LC=U7,x9=Q7,w9=(e,t,n)=>{const r=new Map,o={platform:p9,...n},i={...o.platform,_c:r};return W7(e,t,{...o,platform:i})};var E9=typeof document<"u",C9=function(){},Cp=E9?D.useLayoutEffect:C9;function Bp(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,o;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(!Bp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Bp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function SO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qC(e,t){const n=SO(e);return Math.round(t*n)/n}function Wg(e){const t=h.useRef(e);return Cp(()=>{t.current=e}),t}function PO(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,p]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,b]=h.useState(r);Bp(m,r)||b(r);const[y,v]=h.useState(null),[E,x]=h.useState(null),R=h.useCallback(q=>{q!==T.current&&(T.current=q,v(q))},[]),P=h.useCallback(q=>{q!==_.current&&(_.current=q,x(q))},[]),O=i||y,S=s||E,T=h.useRef(null),_=h.useRef(null),$=h.useRef(f),V=u!=null,U=Wg(u),A=Wg(o),H=Wg(c),F=h.useCallback(()=>{if(!T.current||!_.current)return;const q={placement:t,strategy:n,middleware:m};A.current&&(q.platform=A.current),w9(T.current,_.current,q).then(z=>{const W={...z,isPositioned:H.current!==!1};N.current&&!Bp($.current,W)&&($.current=W,er.flushSync(()=>{p(W)}))})},[m,t,n,A,H]);Cp(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,p(q=>({...q,isPositioned:!1})))},[c]);const N=h.useRef(!1);Cp(()=>(N.current=!0,()=>{N.current=!1}),[]),Cp(()=>{if(O&&(T.current=O),S&&(_.current=S),O&&S){if(U.current)return U.current(O,S,F);F()}},[O,S,F,U,V]);const j=h.useMemo(()=>({reference:T,floating:_,setReference:R,setFloating:P}),[R,P]),I=h.useMemo(()=>({reference:O,floating:S}),[O,S]),k=h.useMemo(()=>{const q={position:n,left:0,top:0};if(!I.floating)return q;const z=qC(I.floating,f.x),W=qC(I.floating,f.y);return a?{...q,transform:"translate("+z+"px, "+W+"px)",...SO(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:W}},[n,a,I.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:F,refs:j,elements:I,floatingStyles:k}),[f,F,j,I,k])}const R9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?LC({element:r.current,padding:o}).fn(n):{}:r?LC({element:r,padding:o}).fn(n):{}}}},TO=(e,t)=>{const n=h9(e);return{name:n.name,fn:n.fn,options:[e,t]}},_O=(e,t)=>{const n=g9(e);return{name:n.name,fn:n.fn,options:[e,t]}},OO=(e,t)=>({fn:x9(e).fn,options:[e,t]}),$O=(e,t)=>{const n=v9(e);return{name:n.name,fn:n.fn,options:[e,t]}},DO=(e,t)=>{const n=b9(e);return{name:n.name,fn:n.fn,options:[e,t]}},MO=(e,t)=>{const n=y9(e);return{name:n.name,fn:n.fn,options:[e,t]}},S9=(e,t)=>{const n=R9(e);return{name:n.name,fn:n.fn,options:[e,t]}},je=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":zt(1));let a;if(e&&t&&n&&r&&o&&i)a=(u,c,f,p)=>{const m=e(u,c,f,p),b=t(u,c,f,p),y=n(u,c,f,p),v=r(u,c,f,p),E=o(u,c,f,p);return i(m,b,y,v,E,c,f,p)};else if(e&&t&&n&&r&&o)a=(u,c,f,p)=>{const m=e(u,c,f,p),b=t(u,c,f,p),y=n(u,c,f,p),v=r(u,c,f,p);return o(m,b,y,v,c,f,p)};else if(e&&t&&n&&r)a=(u,c,f,p)=>{const m=e(u,c,f,p),b=t(u,c,f,p),y=n(u,c,f,p);return r(m,b,y,c,f,p)};else if(e&&t&&n)a=(u,c,f,p)=>{const m=e(u,c,f,p),b=t(u,c,f,p);return n(m,b,c,f,p)};else if(e&&t)a=(u,c,f,p)=>{const m=e(u,c,f,p);return t(m,c,f,p)};else if(e)a=e;else throw new Error("Missing arguments");return a};var P9=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
3
|
-
\`createSelector([state => state.todos], todos => todos)\`
|
|
4
|
-
This could lead to inefficient memoization and unnecessary re-renders.
|
|
5
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},T9=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:s}=e,a=r(()=>({}),...o);if(!(a.apply(null,i)===a.apply(null,s))){let c;try{throw new Error}catch(f){({stack:c}=f)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
6
|
-
This means your output selector will likely run more frequently than intended.
|
|
7
|
-
Avoid returning a new reference inside your input selector, e.g.
|
|
8
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:s,stack:c})}},_9={inputStabilityCheck:"once",identityFunctionCheck:"once"},Vp=Symbol("NOT_FOUND");function O9(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function $9(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function D9(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var jC=e=>Array.isArray(e)?e:[e];function M9(e){const t=Array.isArray(e[0])?e[0]:e;return D9(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function BC(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var A9=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={..._9,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:P9},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:T9}}};function N9(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Vp},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function I9(e,t){let n=[];function r(a){const u=n.findIndex(c=>t(a,c.key));if(u>-1){const c=n[u];return u>0&&(n.splice(u,1),n.unshift(c)),c.value}return Vp}function o(a,u){r(a)===Vp&&(n.unshift({key:a,value:u}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var k9=(e,t)=>e===t;function F9(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function L9(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=k9,maxSize:o=1,resultEqualityCheck:i}=n,s=F9(r);let a=0;const u=o<=1?N9(s):I9(o,s);function c(){let f=u.get(arguments);if(f===Vp){if(f=e.apply(null,arguments),a++,i){const m=u.getEntries().find(b=>i(b.value,f));m&&(f=m.value,a!==0&&a--)}u.put(arguments,f)}return f}return c.clearCache=()=>{u.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var q9=class{constructor(e){this.value=e}deref(){return this.value}},j9=typeof WeakRef<"u"?WeakRef:q9,B9=0,VC=1;function jf(){return{s:B9,v:void 0,o:null,p:null}}function AO(e,t={}){let n=jf();const{resultEqualityCheck:r}=t;let o,i=0;function s(){let a=n;const{length:u}=arguments;for(let p=0,m=u;p<m;p++){const b=arguments[p];if(typeof b=="function"||typeof b=="object"&&b!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const v=y.get(b);v===void 0?(a=jf(),y.set(b,a)):a=v}else{let y=a.p;y===null&&(a.p=y=new Map);const v=y.get(b);v===void 0?(a=jf(),y.set(b,a)):a=v}}const c=a;let f;if(a.s===VC)f=a.v;else if(f=e.apply(null,arguments),i++,r){const p=o?.deref?.()??o;p!=null&&r(p,f)&&(f=p,i!==0&&i--),o=typeof f=="object"&&f!==null||typeof f=="function"?new j9(f):f}return c.s=VC,c.v=f,f}return s.clearCache=()=>{n=jf(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function NO(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,u={},c=o.pop();typeof c=="object"&&(u=c,c=o.pop()),O9(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...u},{memoize:p,memoizeOptions:m=[],argsMemoize:b=AO,argsMemoizeOptions:y=[],devModeChecks:v={}}=f,E=jC(m),x=jC(y),R=M9(o),P=p(function(){return i++,c.apply(null,arguments)},...E);let O=!0;const S=b(function(){s++;const _=BC(R,arguments);if(a=P.apply(null,_),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:$,inputStabilityCheck:V}=A9(O,v);if($.shouldRun&&$.run(c,_,a),V.shouldRun){const U=BC(R,arguments);V.run({inputSelectorResults:_,inputSelectorResultsCopy:U},{memoize:p,memoizeOptions:E},arguments)}O&&(O=!1)}return a},...x);return Object.assign(S,{resultFunc:c,memoizedResultFunc:P,dependencies:R,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var V9=NO(AO),K9=Object.assign((e,t=V9)=>{$9(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,u)=>(s[n[u]]=a,s),{}))},{withTypes:()=>K9});const H9=NO({memoize:L9,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),W9=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],o=e.length-1||1,i=r.length-o;if(i>3)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of arguments":zt(2));return(a,u,c,f)=>{let p=a.__cacheKey__;p||(p={id:n},a.__cacheKey__=p,n+=1);let m=t.get(p);if(!m){let b=e;const y=[void 0,void 0,void 0];switch(i){case 0:break;case 1:{b=[...e.slice(0,-1),()=>y[0],r];break}case 2:{b=[...e.slice(0,-1),()=>y[0],()=>y[1],r];break}case 3:{b=[...e.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],r];break}default:throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of arguments":zt(2))}m=H9(...b),m.selectorArgs=y,t.set(p,m)}switch(m.selectorArgs[0]=u,m.selectorArgs[1]=c,m.selectorArgs[2]=f,i){case 0:return m(a);case 1:return m(a,u);case 2:return m(a,u,c);case 3:return m(a,u,c,f);default:throw new Error("unreachable")}}};var Bf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function IO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vf={exports:{}},Ug={};var KC;function U9(){if(KC)return Ug;KC=1;var e=D;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(p,m){var b=m(),y=r({inst:{value:b,getSnapshot:m}}),v=y[0].inst,E=y[1];return i(function(){v.value=b,v.getSnapshot=m,u(v)&&E({inst:v})},[p,b,m]),o(function(){return u(v)&&E({inst:v}),p(function(){u(v)&&E({inst:v})})},[p]),s(b),b}function u(p){var m=p.getSnapshot;p=p.value;try{var b=m();return!n(p,b)}catch{return!0}}function c(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Ug.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ug}var zg={};var HC;function z9(){return HC||(HC=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,y){return b===y&&(b!==0||1/b===1/y)||b!==b&&y!==y}function t(b,y){f||o.startTransition===void 0||(f=!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 v=y();if(!p){var E=y();i(v,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}E=s({inst:{value:v,getSnapshot:y}});var x=E[0].inst,R=E[1];return u(function(){x.value=v,x.getSnapshot=y,n(x)&&R({inst:x})},[b,v,y]),a(function(){return n(x)&&R({inst:x}),b(function(){n(x)&&R({inst:x})})},[b]),c(v),v}function n(b){var y=b.getSnapshot;b=b.value;try{var v=y();return!i(b,v)}catch{return!0}}function r(b,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,f=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;zg.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zg}var WC;function gy(){return WC||(WC=1,process.env.NODE_ENV==="production"?Vf.exports=U9():Vf.exports=z9()),Vf.exports}var vy=gy(),Kf={exports:{}},Gg={};var UC;function G9(){if(UC)return Gg;UC=1;var e=D,t=gy();function n(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,u=e.useDebugValue;return Gg.useSyncExternalStoreWithSelector=function(c,f,p,m,b){var y=i(null);if(y.current===null){var v={hasValue:!1,value:null};y.current=v}else v=y.current;y=a(function(){function x(T){if(!R){if(R=!0,P=T,T=m(T),b!==void 0&&v.hasValue){var _=v.value;if(b(_,T))return O=_}return O=T}if(_=O,r(P,T))return _;var $=m(T);return b!==void 0&&b(_,$)?(P=T,_):(P=T,O=$)}var R=!1,P,O,S=p===void 0?null:p;return[function(){return x(f())},S===null?void 0:function(){return x(S())}]},[f,p,m,b]);var E=o(c,y[0],y[1]);return s(function(){v.hasValue=!0,v.value=E},[E]),u(E),E},Gg}var Yg={};var zC;function Y9(){return zC||(zC=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=D,n=gy(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,u=t.useDebugValue;Yg.useSyncExternalStoreWithSelector=function(c,f,p,m,b){var y=i(null);if(y.current===null){var v={hasValue:!1,value:null};y.current=v}else v=y.current;y=a(function(){function x(T){if(!R){if(R=!0,P=T,T=m(T),b!==void 0&&v.hasValue){var _=v.value;if(b(_,T))return O=_}return O=T}if(_=O,r(P,T))return _;var $=m(T);return b!==void 0&&b(_,$)?(P=T,_):(P=T,O=$)}var R=!1,P,O,S=p===void 0?null:p;return[function(){return x(f())},S===null?void 0:function(){return x(S())}]},[f,p,m,b]);var E=o(c,y[0],y[1]);return s(function(){v.hasValue=!0,v.value=E},[E]),u(E),E},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Yg}var GC;function X9(){return GC||(GC=1,process.env.NODE_ENV==="production"?Kf.exports=G9():Kf.exports=Y9()),Kf.exports}var Z9=X9();const Yv=[];let Xv;function Q9(){return Xv}function J9(e){Yv.push(e)}function kO(e){const t=(n,r)=>{const o=Hn(t8).current;let i;try{Xv=o;for(const s of Yv)s.before(o);i=e(n,r);for(const s of Yv)s.after(o);o.didInitialize=!0}finally{Xv=void 0}return i};return t.displayName=e.displayName||e.name,t}function e8(e){return h.forwardRef(kO(e))}function t8(){return{didInitialize:!1}}const n8=cy(19),r8=n8?i8:s8;function FO(e,t,n,r,o){return r8(e,t,n,r,o)}function o8(e,t,n,r,o){const i=h.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return vy.useSyncExternalStore(e.subscribe,i,i)}J9({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){const r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,o))&&(t=!0,r.value=o,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const o of e.syncHooks)n.add(o.store);const r=[];for(const o of n)r.push(o.subscribe(t));return()=>{for(const o of r)o()}}),vy.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function i8(e,t,n,r,o){const i=Q9();if(!i)return o8(e,t,n,r,o);const s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,r)||!Object.is(a.a3,o))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=r,a.a3=o,a.didChange=!0)):(a={store:e,selector:t,a1:n,a2:r,a3:o,value:t(e.getSnapshot(),n,r,o),didChange:!1},i.syncHooks.push(a)),a.value}function s8(e,t,n,r,o){return Z9.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class a8{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,o){return FO(this,t,n,r,o)}}class Mm extends a8{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){h.useDebugValue(t),Le(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;Le(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this;if(process.env.NODE_ENV!=="production"){h.useDebugValue(t,s=>Object.keys(s));const o=h.useRef(Object.keys(t)).current,i=Object.keys(t);(o.length!==i.length||o.some((s,a)=>s!==i[a]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const r=Object.values(t);Le(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){h.useDebugValue(t);const r=n!==void 0;if(Le(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r]),process.env.NODE_ENV!=="production"){const o=this.controlledValues??=new Map;o.has(t)||o.set(t,r);const i=o.get(t);i!==void 0&&i!==r&&console.error(`A component is changing the ${r?"":"un"}controlled state of ${t.toString()} to be ${r?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(t,n,r,o){const i=this.selectors[t];return i(this.state,n,r,o)}useState(t,n,r,o){return h.useDebugValue(t),FO(this,this.selectors[t],n,r,o)}useContextCallback(t,n){h.useDebugValue(t);const r=He(n??At);this.context[t]=r}useStateSetter(t){const n=h.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(i=>{const s=r(i);if(!Object.is(o,s)){const a=o;o=s,n(s,a,this)}})}}const l8={open:je(e=>e.open),transitionStatus:je(e=>e.transitionStatus),domReferenceElement:je(e=>e.domReferenceElement),referenceElement:je(e=>e.positionReference??e.referenceElement),floatingElement:je(e=>e.floatingElement),floatingId:je(e=>e.floatingId)};class by extends Mm{constructor(t){const{syncOnly:n,nested:r,onOpenChange:o,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:D7(),nested:r,triggerElements:i},l8),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&k_(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function yy(e,t=!1,n=!1){const[r,o]=h.useState(e&&t?"idle":void 0),[i,s]=h.useState(e);return e&&!i&&(s(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),Le(()=>{if(!e&&i&&r!=="ending"&&n){const a=oo.request(()=>{o("ending")});return()=>{oo.cancel(a)}}},[e,i,r,n]),Le(()=>{if(!e||t)return;const a=oo.request(()=>{o(void 0)});return()=>{oo.cancel(a)}},[t,e]),Le(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const a=oo.request(()=>{o("idle")});return()=>{oo.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}let td=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const u8={[td.startingStyle]:""},c8={[td.endingStyle]:""},xs={transitionStatus(e){return e==="starting"?u8:e==="ending"?c8:null}};function xy(e,t=!1,n=!0){const r=fd();return He((o,i=null)=>{r.cancel();const s=Io(e);if(s==null)return;const a=s,u=()=>{er.flushSync(o)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function c(){Promise.all(a.getAnimations().map(f=>f.finished)).then(()=>{i?.aborted||u()}).catch(()=>{if(n){i?.aborted||u();return}const f=a.getAnimations();!i?.aborted&&f.length>0&&f.some(p=>p.pending||p.playState!=="finished")&&c()})}if(t){const f=td.startingStyle;if(!a.hasAttribute(f)){r.request(c);return}const p=new MutationObserver(()=>{a.hasAttribute(f)||(p.disconnect(),c())});p.observe(a,{attributes:!0,attributeFilter:[f]}),i?.addEventListener("abort",()=>p.disconnect(),{once:!0});return}r.request(c)})}function ma(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=He(o),s=xy(r,n,!1);h.useEffect(()=>{if(!t)return;const a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,n,i,s])}function d8(e,t){const n=h.useRef(null),r=h.useRef(null);return h.useCallback(o=>{if(e!==void 0){if(n.current!==null){const i=n.current,s=r.current,a=t.context.triggerElements.getById(i);s&&a===s&&t.context.triggerElements.delete(i),n.current=null,r.current=null}o!==null&&(n.current=e,r.current=o,t.context.triggerElements.add(e,o))}},[t,e])}function LO(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=d8(e,n),s=He(a=>{if(i(a),!a||!n.select("open"))return;const u=n.select("activeTriggerId");if(u===e){n.update({activeTriggerElement:a,...r});return}u==null&&n.update({activeTriggerId:e,activeTriggerElement:a,...r})});return Le(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:o}}function qO(e){const t=e.useState("open");Le(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function jO(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=yy(e);t.useSyncedValues({mounted:r,transitionStatus:i});const s=He(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return ma({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:i}}class Am{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);if(r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n),process.env.NODE_ENV!=="production"&&this.elementsSet.size!==this.idMap.size))throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function f8(){return new by({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Am,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function BO(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:f8(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:yn,inactiveTriggerProps:yn,popupProps:yn}}const Hf=je(e=>e.triggerIdProp??e.activeTriggerId),VO={open:je(e=>e.openProp??e.open),mounted:je(e=>e.mounted),transitionStatus:je(e=>e.transitionStatus),floatingRootContext:je(e=>e.floatingRootContext),preventUnmountingOnClose:je(e=>e.preventUnmountingOnClose),payload:je(e=>e.payload),activeTriggerId:Hf,activeTriggerElement:je(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:je((e,t)=>t!==void 0&&Hf(e)===t),isOpenedByTrigger:je((e,t)=>t!==void 0&&Hf(e)===t&&e.open),isMountedByTrigger:je((e,t)=>t!==void 0&&Hf(e)===t&&e.mounted),triggerProps:je((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:je(e=>e.popupProps),popupElement:je(e=>e.popupElement),positionerElement:je(e=>e.positionerElement)};function KO(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=ys(),i=$m()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!et(a)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const s=Hn(()=>new by({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Am,floatingId:o,syncOnly:!1,nested:i})).current;return Le(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=et(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,o,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=i,s}function p8(e={}){const{nodeId:t,externalTree:n}=e,r=KO(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[s,a]=h.useState(null),u=h.useRef(null),c=md(n);Le(()=>{i.domReference&&(u.current=i.domReference)},[i.domReference]);const f=PO({...e,elements:{...i,...s&&{reference:s}}}),p=h.useCallback($=>{const V=et($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;a(V),f.refs.setReference(V)},[f.refs]),[m,b]=h.useState(void 0),[y,v]=h.useState(null);o.useSyncedValue("referenceElement",m??null);const E=et(m)?m:null;o.useSyncedValue("domReferenceElement",m===void 0?i.domReference:E),o.useSyncedValue("floatingElement",y);const x=h.useCallback($=>{(et($)||$===null)&&(u.current=$,b($)),(et(f.refs.reference.current)||f.refs.reference.current===null||$!==null&&!et($))&&f.refs.setReference($)},[f.refs,b]),R=h.useCallback($=>{v($),f.refs.setFloating($)},[f.refs]),P=h.useMemo(()=>({...f.refs,setReference:x,setFloating:R,setPositionReference:p,domReference:u}),[f.refs,x,R,p]),O=h.useMemo(()=>({...f.elements,domReference:i.domReference}),[f.elements,i.domReference]),S=o.useState("open"),T=o.useState("floatingId"),_=h.useMemo(()=>({...f,dataRef:o.context.dataRef,open:S,onOpenChange:o.setOpen,events:o.context.events,floatingId:T,refs:P,elements:O,nodeId:t,rootStore:o}),[f,P,O,t,o,S,T]);return Le(()=>{o.context.dataRef.current.floatingContext=_;const $=c?.nodesRef.current.find(V=>V.id===t);$&&($.context=_)}),h.useMemo(()=>({...f,context:_,refs:P,elements:O,rootStore:o}),[f,P,O,_,o])}function HO(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,o=ys(),i=$m()!=null,s=t.useState("open"),a=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,f=Hn(()=>new by({open:s,transitionStatus:void 0,referenceElement:a,floatingElement:u,triggerElements:c,onOpenChange:r,floatingId:o,syncOnly:!0,nested:i})).current;return Le(()=>{const p={open:s,floatingId:o,referenceElement:a,floatingElement:u};et(a)&&(p.domReferenceElement=a),f.state.positionReference===f.state.referenceElement&&(p.positionReference=a),f.update(p)},[s,o,a,u,f]),f.context.onOpenChange=r,f.context.nested=i,f}const Xg=mV&&N_;function m8(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:o}=n.context,{enabled:i=!0,delay:s}=t,a=h.useRef(!1),u=h.useRef(null),c=po(),f=h.useRef(!0);h.useEffect(()=>{const m=n.select("domReferenceElement");if(!i)return;const b=Vt(m);function y(){const x=n.select("domReferenceElement");!n.select("open")&&Bt(x)&&x===Zn(ct(x))&&(a.current=!0)}function v(){f.current=!0}function E(){f.current=!1}return zr(Ge(b,"blur",y),Xg&&Ge(b,"keydown",v,!0),Xg&&Ge(b,"pointerdown",E,!0))},[n,i]),h.useEffect(()=>{if(!i)return;function m(b){if(b.reason===Jc||b.reason===iy){const y=n.select("domReferenceElement");et(y)&&(u.current=y,a.current=!0)}}return r.on("openchange",m),()=>{r.off("openchange",m)}},[r,i,n]);const p=h.useMemo(()=>({onMouseLeave(){a.current=!1,u.current=null},onFocus(m){const b=m.currentTarget;if(a.current){if(u.current===b)return;a.current=!1,u.current=null}const y=nn(m.nativeEvent);if(et(y)){if(Xg&&!m.relatedTarget){if(!f.current&&!Pm(y))return}else if(!Ip(y))return}const v=Np(m.relatedTarget,n.context.triggerElements),{nativeEvent:E,currentTarget:x}=m,R=typeof s=="function"?s():s;if(n.select("open")&&v||R===0||R===void 0){n.setOpen(!0,pt(wp,E,x));return}c.start(R,()=>{a.current||n.setOpen(!0,pt(wp,E,x))})},onBlur(m){a.current=!1,u.current=null;const b=m.relatedTarget,y=m.nativeEvent,v=et(b)&&b.hasAttribute(ed("focus-guard"))&&b.getAttribute("data-type")==="outside";c.start(0,()=>{const E=n.select("domReferenceElement"),x=Zn(ct(E));!b&&x===E||Ke(o.current.floatingContext?.refs.floating.current,x)||Ke(E,x)||v||Np(b??x,n.context.triggerElements)||n.setOpen(!1,pt(wp,y))})}}),[o,n,c,s]);return h.useMemo(()=>i?{reference:p,trigger:p}:{},[i,p])}class wy{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 fr,this.restTimeout=new fr,this.handleCloseOptions=void 0}static create(){return new wy}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Kp=new WeakMap;function Hp(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&Kp.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Kp.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function WO(e,t){const{scopeElement:n,referenceElement:r,floatingElement:o}=t,i=Kp.get(n);i&&i!==e&&Hp(i),Hp(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=o,Kp.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",o.style.pointerEvents="auto"}function UO(e){const t=Hn(wy.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),Rm(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function h8(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:s}=n.context,{enabled:a=!0,closeDelay:u=0,nodeId:c}=t,f=UO(n),p=md(),m=$m(),b=He(()=>F_(s.current.openEvent?.type,f.interactedInside)),y=He(()=>{const O=s.current.openEvent?.type;return O?.includes("mouse")&&O!=="mousedown"}),v=He(O=>Np(O,n.context.triggerElements)),E=h.useCallback(O=>{const S=Ap(u,"close",f.pointerType),T=()=>{n.setOpen(!1,pt(Cr,O)),p?.events.emit("floating.closed",O)};S?f.openChangeTimeout.start(S,T):(f.openChangeTimeout.clear(),T())},[u,n,f,p]),x=He(()=>{Hp(f)}),R=He(O=>{const S=nn(O);if(!GV(S)){f.interactedInside=!1;return}f.interactedInside=S?.closest("[aria-haspopup]")!=null});Le(()=>{r||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,x())},[r,f,x]),h.useEffect(()=>x,[x]),Le(()=>{if(a&&r&&f.handleCloseOptions?.blockPointerEvents&&y()&&et(i)&&o){const O=i,S=o,T=ct(o),_=p?.nodesRef.current.find(V=>V.id===m)?.context?.elements.floating;_&&(_.style.pointerEvents="");const $=f.handleCloseOptions?.getScope?.()??f.pointerEventsScopeElement??_??O.closest("[data-rootownerid]")??T.body;return WO(f,{scopeElement:$,referenceElement:O,floatingElement:S}),()=>{x()}}},[a,r,i,o,f,y,p,m,x]);const P=po();h.useEffect(()=>{if(!a)return;function O(){f.openChangeTimeout.clear(),P.clear(),p?.events.off("floating.closed",T),x()}function S($){if(p&&m&&fo(p.nodesRef.current,m).length>0){p.events.on("floating.closed",T);return}if(v($.relatedTarget))return;const V=s.current.floatingContext?.nodeId??c,U=$.relatedTarget;if(!(p&&V&&et(U)&&fo(p.nodesRef.current,V,!1).some(H=>Ke(H.context?.elements.floating,U)))){if(f.handler){f.handler($);return}x(),b()||E($)}}function T($){!p||!m||fo(p.nodesRef.current,m).length>0||P.start(0,()=>{p.events.off("floating.closed",T),n.setOpen(!1,pt(Cr,$)),p.events.emit("floating.closed",$)})}const _=o;return zr(_&&Ge(_,"mouseenter",O),_&&Ge(_,"mouseleave",S),_&&Ge(_,"pointerdown",R,!0),()=>{p?.events.off("floating.closed",T)})},[a,o,n,s,c,b,v,E,x,R,f,p,m,P])}const g8={current:null};function v8(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:s=0,handleClose:a=null,mouseOnly:u=!1,restMs:c=0,move:f=!0,triggerElementRef:p=g8,externalTree:m,isActiveTrigger:b=!0,getHandleCloseContext:y,isClosing:v}=t,E=md(m),x=UO(n),R=h.useRef(!1),P=cr(a),O=cr(s),S=cr(c),T=cr(i),_=cr(v);b&&(x.handleCloseOptions=P.current?.__options);const $=He(()=>F_(r.current.openEvent?.type,x.interactedInside)),V=He(N=>Np(N,n.context.triggerElements)),U=He((N,j,I)=>{const k=n.context.triggerElements;if(k.hasElement(j))return!N||!Ke(N,j);if(!et(I))return!1;const q=I;return k.hasMatchingElement(z=>Ke(z,q))&&(!N||!Ke(N,q))}),A=He((N,j=!0)=>{const I=Ap(O.current,"close",x.pointerType);I?x.openChangeTimeout.start(I,()=>{n.setOpen(!1,pt(Cr,N)),E?.events.emit("floating.closed",N)}):j&&(x.openChangeTimeout.clear(),n.setOpen(!1,pt(Cr,N)),E?.events.emit("floating.closed",N))}),H=He(()=>{if(!x.handler)return;ct(n.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),F=He(()=>{Hp(x)});return h.useEffect(()=>H,[H]),h.useEffect(()=>{if(!i)return;function N(j){j.open?R.current=!1:(R.current=j.reason===Cr,H(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return o.on("openchange",N),()=>{o.off("openchange",N)}},[i,o,x,H]),h.useEffect(()=>{if(!i)return;const N=p.current??(b?n.select("domReferenceElement"):null);if(!et(N))return;function j(k){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,u&&!aa(x.pointerType))return;const q=gC(S.current),z=Ap(O.current,"open",x.pointerType),W=nn(k),te=k.currentTarget??null,X=n.select("domReferenceElement");let Q=te;if(et(W)&&!n.context.triggerElements.hasElement(W)){for(const Z of n.context.triggerElements.elements())if(Ke(Z,W)){Q=Z;break}}et(te)&&et(X)&&!n.context.triggerElements.hasElement(te)&&Ke(te,X)&&(Q=X);const re=Q==null?!1:U(X,Q,W),ce=n.select("open"),se=_.current?.()??n.select("transitionStatus")==="ending",ee=!ce&&se&&R.current,de=!re&&et(Q)&&et(X)&&Ke(X,Q)&&ee,K=q>0&&!z,ue=re&&(ce||ee)||de,le=!ce||re;if(ue){n.setOpen(!0,pt(Cr,k,Q));return}K||(z?x.openChangeTimeout.start(z,()=>{le&&n.setOpen(!0,pt(Cr,k,Q))}):le&&n.setOpen(!0,pt(Cr,k,Q)))}function I(k){if($()){F();return}H();const q=n.select("domReferenceElement"),z=ct(q);x.restTimeout.clear(),x.restTimeoutPending=!1;const W=r.current.floatingContext??y?.();if(V(k.relatedTarget))return;if(P.current&&W){n.select("open")||x.openChangeTimeout.clear();const Q=p.current;x.handler=P.current({...W,tree:E,x:k.clientX,y:k.clientY,onClose(){F(),H(),T.current&&!$()&&Q===n.select("domReferenceElement")&&A(k,!0)}}),z.addEventListener("mousemove",x.handler),x.handler(k);return}(x.pointerType!=="touch"||!Ke(n.select("floatingElement"),k.relatedTarget))&&A(k)}return f?zr(Ge(N,"mousemove",j,{once:!0}),Ge(N,"mouseenter",j),Ge(N,"mouseleave",I)):zr(Ge(N,"mouseenter",j),Ge(N,"mouseleave",I))},[H,F,r,O,A,n,i,P,x,b,U,$,V,u,f,S,p,E,T,y,_]),h.useMemo(()=>{if(!i)return;function N(j){x.pointerType=j.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(j){const{nativeEvent:I}=j,k=j.currentTarget,q=n.select("domReferenceElement"),z=n.select("open"),W=U(q,k,j.target);if(u&&!aa(x.pointerType))return;if(z&&W&&x.handleCloseOptions?.blockPointerEvents){const Q=n.select("floatingElement");if(Q){const re=x.handleCloseOptions?.getScope?.()??k.ownerDocument.body;WO(x,{scopeElement:re,referenceElement:k,floatingElement:Q})}}const te=gC(S.current);if(z&&!W||te===0||!W&&x.restTimeoutPending&&j.movementX**2+j.movementY**2<2)return;x.restTimeout.clear();function X(){if(x.restTimeoutPending=!1,$())return;const Q=n.select("open");!x.blockMouseMove&&(!Q||W)&&n.setOpen(!0,pt(Cr,I,k))}x.pointerType==="touch"?er.flushSync(()=>{X()}):W&&z?X():(x.restTimeoutPending=!0,x.restTimeout.start(te,X))}}},[i,x,$,U,u,n,S])}function Ey(e=[]){const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),r=e.map(c=>c?.item),o=e.map(c=>c?.trigger),i=h.useCallback(c=>Wf(c,e,"reference"),t),s=h.useCallback(c=>Wf(c,e,"floating"),n),a=h.useCallback(c=>Wf(c,e,"item"),r),u=h.useCallback(c=>Wf(c,e,"trigger"),o);return h.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a,getTriggerProps:u}),[i,s,a,u])}function Wf(e,t,n){const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[jv]="");for(const s in e)o&&e&&(s===U_||s===z_)||(i[s]=e[s]);for(let s=0;s<t.length;s+=1){let a;const u=t[s]?.[n];typeof u=="function"?a=e?u(e):null:a=u,a&&YC(i,a,o,r)}return YC(i,e,o,r),i}function YC(e,t,n,r){for(const o in t){const i=t[o];n&&(o===U_||o===z_)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof i=="function"&&(r.get(o)?.push(i),e[o]=(...s)=>r.get(o)?.map(a=>a(...s)).find(a=>a!==void 0))):e[o]=i)}}const b8=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function y8(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),s=n.useState("floatingElement"),{role:a="dialog"}=t,u=ys(),c=i?.id||u,f=h.useMemo(()=>Bv(s)?.id||o,[s,o]),p=b8.get(a)??a,b=$m()!=null,y=h.useMemo(()=>p==="tooltip"||a==="label"?yn:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&b&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[p,b,a]),v=h.useMemo(()=>p==="tooltip"||a==="label"?{[`aria-${a==="label"?"labelledby":"describedby"}`]:r?f:void 0}:{...y,"aria-expanded":r?"true":"false","aria-controls":r?f:void 0,...p==="menu"&&{id:c}},[p,f,r,c,a,y]),E=h.useMemo(()=>{const R={id:f,...p&&{role:p}};return p==="tooltip"||a==="label"?R:{...R,...p==="menu"&&{"aria-labelledby":c}}},[p,f,c,a]),x=h.useCallback(({active:R,selected:P})=>{const O={role:"option",...R&&{id:`${f}-fui-option`}};switch(a){case"select":case"combobox":return{...O,"aria-selected":P}}return{}},[f,a]);return h.useMemo(()=>({reference:v,floating:E,item:x,trigger:y}),[v,E,y,x])}const XC=.1,x8=XC*XC,St=.5;function Uf(e,t,n,r,o,i){return r>=t!=i>=t&&e<=(o-n)*(t-r)/(i-r)+n}function zf(e,t,n,r,o,i,s,a,u,c){let f=!1;return Uf(e,t,n,r,o,i)&&(f=!f),Uf(e,t,o,i,s,a)&&(f=!f),Uf(e,t,s,a,u,c)&&(f=!f),Uf(e,t,u,c,n,r)&&(f=!f),f}function w8(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Gf(e,t,n,r,o,i){const s=Math.min(n,o),a=Math.max(n,o),u=Math.min(r,i),c=Math.max(r,i);return e>=s&&e<=a&&t>=u&&t<=c}function E8(e={}){const{blockPointerEvents:t=!1}=e,n=new fr,r=({x:o,y:i,placement:s,elements:a,onClose:u,nodeId:c,tree:f})=>{const p=s?.split("-")[0];let m=!1,b=null,y=null,v=typeof performance<"u"?performance.now():0;function E(R,P){const O=performance.now(),S=O-v;if(b===null||y===null||S===0)return b=R,y=P,v=O,!1;const T=R-b,_=P-y,$=T*T+_*_,V=S*S*x8;return b=R,y=P,v=O,$<V}function x(){n.clear(),u()}return function(P){n.clear();const O=a.domReference,S=a.floating;if(!O||!S||p==null||o==null||i==null)return;const{clientX:T,clientY:_}=P,$=nn(P),V=P.type==="mouseleave",U=Ke(S,$),A=Ke(O,$);if(U&&(m=!0,!V))return;if(A&&(m=!1,!V)){m=!0;return}if(V&&et(P.relatedTarget)&&Ke(S,P.relatedTarget))return;function H(){return!!(f&&fo(f.nodesRef.current,c).length>0)}function F(){H()||x()}if(H())return;const N=O.getBoundingClientRect(),j=S.getBoundingClientRect(),I=o>j.right-j.width/2,k=i>j.bottom-j.height/2,q=j.width>N.width,z=j.height>N.height,W=(q?N:j).left,te=(q?N:j).right,X=(z?N:j).top,Q=(z?N:j).bottom;if(p==="top"&&i>=N.bottom-1||p==="bottom"&&i<=N.top+1||p==="left"&&o>=N.right-1||p==="right"&&o<=N.left+1){F();return}let re=!1;switch(p){case"top":re=Gf(T,_,W,N.top+1,te,j.bottom-1);break;case"bottom":re=Gf(T,_,W,j.top+1,te,N.bottom-1);break;case"left":re=Gf(T,_,j.right-1,Q,N.left+1,X);break;case"right":re=Gf(T,_,N.right-1,Q,j.left+1,X);break}if(re)return;if(m&&!w8(T,_,N)){F();return}if(!V&&E(T,_)){F();return}let ce=!1;switch(p){case"top":{const se=q?St/2:St*4,ee=q||I?o+se:o-se,de=q?o-se:I?o+se:o-se,K=i+St+1,ue=I||q?j.bottom-St:j.top,le=I?q?j.bottom-St:j.top:j.bottom-St;ce=zf(T,_,ee,K,de,K,j.left,ue,j.right,le);break}case"bottom":{const se=q?St/2:St*4,ee=q||I?o+se:o-se,de=q?o-se:I?o+se:o-se,K=i-St,ue=I||q?j.top+St:j.bottom,le=I?q?j.top+St:j.bottom:j.top+St;ce=zf(T,_,ee,K,de,K,j.left,ue,j.right,le);break}case"left":{const se=z?St/2:St*4,ee=z||k?i+se:i-se,de=z?i-se:k?i+se:i-se,K=o+St+1,ue=k||z?j.right-St:j.left,le=k?z?j.right-St:j.left:j.right-St;ce=zf(T,_,ue,j.top,le,j.bottom,K,ee,K,de);break}case"right":{const se=z?St/2:St*4,ee=z||k?i+se:i-se,de=z?i-se:k?i+se:i-se,K=o-St,ue=k||z?j.left+St:j.right,le=k?z?j.left+St:j.right:j.left+St;ce=zf(T,_,K,ee,K,de,ue,j.top,le,j.bottom);break}}ce?m||n.start(40,F):F()}};return r.__options={...e,blockPointerEvents:t},r}function C8(e){const t=h.useRef(""),n=h.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:h.useCallback(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o?e(o,o.pointerType):e(o,t.current),t.current=""},[e]),onPointerDown:n}}function Nm(e,t){const n=h.useRef(e),r=He(t);Le(()=>{n.current!==e&&r(n.current)},[e,r]),Le(()=>{n.current=e},[e])}function R8(e){const[t,n]=h.useState(null),r=He((s,a)=>{e||n(a||(A_?"touch":""))});Nm(e,s=>{s&&!e&&n(null)});const{onClick:o,onPointerDown:i}=C8(r);return h.useMemo(()=>({openMethod:t,triggerProps:{onClick:o,onPointerDown:i}}),[t,o,i])}function S8(e){const{store:t,parentContext:n,actionsRef:r,isDrawer:o}=e,i=t.useState("open"),s=t.useState("disablePointerDismissal"),a=t.useState("modal"),u=t.useState("popupElement"),{openMethod:c,triggerProps:f}=R8(i);qO(t);const{forceUnmount:p}=jO(i,t),m=He(H=>{const F=pt(H);return F.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},F}),b=h.useCallback(()=>{t.setOpen(!1,m(os))},[t,m]);h.useImperativeHandle(r,()=>({unmount:p,close:b}),[p,b]);const y=HO({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[v,E]=h.useState(0),[x,R]=h.useState(0),P=v===0,O=y8(y),S=vO(y,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:a==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(H){if(!t.context.outsidePressEnabledRef.current||"button"in H&&H.button!==0||"touches"in H&&H.touches.length!==1)return!1;const F=nn(H);if(P&&!s){const N=F;return a&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===N||t.context.backdropRef.current===N||Ke(N,u)&&!N?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:P});TV(i&&a===!0,u);const{getReferenceProps:T,getFloatingProps:_,getTriggerProps:$}=Ey([O,S]);t.useContextCallback("onNestedDialogOpen",(H,F)=>{E(H),R(F)}),t.useContextCallback("onNestedDialogClose",()=>{E(0),R(0)}),h.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(v+1,x+(o?1:0)),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[o,i,v,x,n]);const V=h.useMemo(()=>T(f),[T,f]),U=h.useMemo(()=>$(f),[$,f]),A=h.useMemo(()=>_(),[_]);t.useSyncedValues({openMethod:c,activeTriggerProps:V,inactiveTriggerProps:U,popupProps:A,floatingRootContext:y,nestedOpenDialogCount:v,nestedOpenDrawerCount:x})}const Cy=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cy.displayName="DialogRootContext");function zo(e){const t=h.useContext(Cy);if(e===!1&&t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.":zt(27));return t}const P8={...VO,modal:je(e=>e.modal),nested:je(e=>e.nested),nestedOpenDialogCount:je(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:je(e=>e.nestedOpenDrawerCount),disablePointerDismissal:je(e=>e.disablePointerDismissal),openMethod:je(e=>e.openMethod),descriptionElementId:je(e=>e.descriptionElementId),titleElementId:je(e=>e.titleElementId),viewportElement:je(e=>e.viewportElement),role:je(e=>e.role)};class hd extends Mm{constructor(t){super(T8(t),{popupRef:h.createRef(),backdropRef:h.createRef(),internalBackdropRef:h.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Am,onOpenChange:void 0,onOpenChangeComplete:void 0},P8)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);const r={open:t},o=n.trigger?.id??null;(o||t)&&(r.activeTriggerId=o,r.activeTriggerElement=n.trigger??null),this.update(r)};static useStore(t,n){const r=Hn(()=>new hd(n)).current;return t??r}}function T8(e={}){return{...BO(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}const zO=h.createContext(!1);process.env.NODE_ENV!=="production"&&(zO.displayName="IsDrawerContext");function GO(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:o,onOpenChangeComplete:i,actionsRef:s,handle:a,triggerId:u,defaultTriggerId:c=null}=e,f=zo(!0),p=!!f,m=hd.useStore(a?.store,{open:r,openProp:n,activeTriggerId:c,triggerIdProp:u,modal:!0,disablePointerDismissal:!0,nested:p,role:"alertdialog"});m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",u),m.useSyncedValue("nested",p),m.useContextCallback("onOpenChange",o),m.useContextCallback("onOpenChangeComplete",i);const b=m.useState("payload");S8({store:m,actionsRef:s,parentContext:f?.store.context,isDrawer:!1});const y=h.useMemo(()=>({store:m}),[m]);return w.jsx(zO.Provider,{value:!1,children:w.jsx(Cy.Provider,{value:y,children:typeof t=="function"?t({payload:b}):t})})}let Ur=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=td.startingStyle]="startingStyle",e[e.endingStyle=td.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),YO=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const _8={[YO.popupOpen]:""},O8={[Ur.open]:""},$8={[Ur.closed]:""},D8={[Ur.anchorHidden]:""},XO={open(e){return e?_8:null}},ha={open(e){return e?O8:$8},anchorHidden(e){return e?D8:null}},M8={...ha,...xs},Ry=h.forwardRef(function(t,n){const{render:r,className:o,style:i,forceRender:s=!1,...a}=t,{store:u}=zo(),c=u.useState("open"),f=u.useState("nested"),p=u.useState("mounted"),m=u.useState("transitionStatus");return lt("div",t,{state:{open:c,transitionStatus:m},ref:[u.context.backdropRef,n],stateAttributesMapping:M8,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:s||!f})});process.env.NODE_ENV!=="production"&&(Ry.displayName="DialogBackdrop");let Zv;process.env.NODE_ENV!=="production"&&(Zv=new Set);function Wp(...e){if(process.env.NODE_ENV!=="production"){const t=e.join(" ");Zv.has(t)||(Zv.add(t),console.error(`Base UI: ${t}`))}}const ZO=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(ZO.displayName="CompositeRootContext");function A8(e=!1){const t=h.useContext(ZO);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":zt(16));return t}function N8(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:h.useMemo(()=>{const c={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(c.tabIndex=o,!i&&n&&(c.tabIndex=t?o:-1)),(i&&(t||s)||!i&&n)&&(c["aria-disabled"]=n),i&&(!t||a)&&(c.disabled=n),c},[r,n,t,s,a,i,o])}}function ga(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:i}=e,s=h.useRef(null),a=A8(!0),u=i??a!==void 0,{props:c}=N8({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:o});process.env.NODE_ENV!=="production"&&h.useEffect(()=>{if(!s.current)return;const b=Yf(s.current);if(o){if(!b){const y=Wv.captureOwnerStack?.()||"";Wp(`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}`)}}else if(b){const y=Wv.captureOwnerStack?.()||"";Wp(`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}`)}},[o]);const f=h.useCallback(()=>{const b=s.current;Yf(b)&&u&&t&&c.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,c.disabled,u]);Le(f,[f]);const p=h.useCallback((b={})=>{const{onClick:y,onMouseDown:v,onKeyUp:E,onKeyDown:x,onPointerDown:R,...P}=b;return pa({type:o?"button":void 0,onClick(S){if(t){S.preventDefault();return}y?.(S)},onMouseDown(S){t||v?.(S)},onKeyDown(S){if(t||(jp(S),x?.(S),S.baseUIHandlerPrevented))return;const T=S.target===S.currentTarget,_=S.currentTarget,$=Yf(_),V=!o&&I8(_),U=T&&(o?$:!V),A=S.key==="Enter",H=S.key===" ",F=_.getAttribute("role"),N=F?.startsWith("menuitem")||F==="option"||F==="gridcell";if(T&&u&&H){if(S.defaultPrevented&&N)return;S.preventDefault(),V||o&&$?(_.click(),S.preventBaseUIHandler()):U&&(y?.(S),S.preventBaseUIHandler());return}U&&(!o&&(H||A)&&S.preventDefault(),!o&&A&&y?.(S))},onKeyUp(S){if(!t){if(jp(S),E?.(S),S.target===S.currentTarget&&o&&u&&Yf(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!o&&!u&&S.key===" "&&y?.(S)}},onPointerDown(S){if(t){S.preventDefault();return}R?.(S)}},o?void 0:{role:"button"},c,P)},[t,c,u,o]),m=He(b=>{s.current=b,f()});return{getButtonProps:p,buttonRef:m}}function Yf(e){return Bt(e)&&e.tagName==="BUTTON"}function I8(e){return!!(e?.tagName==="A"&&e?.href)}const Sy=h.forwardRef(function(t,n){const{render:r,className:o,disabled:i=!1,nativeButton:s=!0,style:a,...u}=t,{store:c}=zo(),f=c.useState("open");function p(v){f&&c.setOpen(!1,pt(qV,v.nativeEvent))}const{getButtonProps:m,buttonRef:b}=ga({disabled:i,native:s});return lt("button",t,{state:{disabled:i},ref:[n,b],props:[{onClick:p},u,m]})});process.env.NODE_ENV!=="production"&&(Sy.displayName="DialogClose");function $r(e){return ys(e,"base-ui")}const Py=h.forwardRef(function(t,n){const{render:r,className:o,style:i,id:s,...a}=t,{store:u}=zo(),c=$r(s);return u.useSyncedValueWithCleanup("descriptionElementId",c),lt("p",t,{ref:n,props:[{id:c},a]})});process.env.NODE_ENV!=="production"&&(Py.displayName="DialogDescription");let k8=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),F8=(function(e){return e[e.open=Ur.open]="open",e[e.closed=Ur.closed]="closed",e[e.startingStyle=Ur.startingStyle]="startingStyle",e[e.endingStyle=Ur.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const Ty=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ty.displayName="DialogPortalContext");function QO(){const e=h.useContext(Ty);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Portal> is missing.":zt(26));return e}const JO="ArrowUp",e$="ArrowDown",t$="ArrowLeft",n$="ArrowRight",r$="Home",o$="End",L8=new Set([t$,n$]),q8=new Set([JO,e$]),j8=new Set([...L8,...q8]);[...j8];const B8=new Set([JO,e$,t$,n$,r$,o$]),V8={...ha,...xs,nestedDialogOpen(e){return e?{[F8.nestedDialogOpen]:""}:null}},_y=h.forwardRef(function(t,n){const{className:r,finalFocus:o,initialFocus:i,render:s,style:a,...u}=t,{store:c}=zo(),f=c.useState("descriptionElementId"),p=c.useState("disablePointerDismissal"),m=c.useState("floatingRootContext"),b=c.useState("popupProps"),y=c.useState("modal"),v=c.useState("mounted"),E=c.useState("nested"),x=c.useState("nestedOpenDialogCount"),R=c.useState("open"),P=c.useState("openMethod"),O=c.useState("titleElementId"),S=c.useState("transitionStatus"),T=c.useState("role");QO(),ma({open:R,ref:c.context.popupRef,onComplete(){R&&c.context.onOpenChangeComplete?.(!0)}});function _(H){return H==="touch"?c.context.popupRef.current:!0}const $=i===void 0?_:i,V=x>0,A=lt("div",t,{state:{open:R,nested:E,transitionStatus:S,nestedDialogOpen:V},props:[b,{"aria-labelledby":O??void 0,"aria-describedby":f??void 0,role:T,tabIndex:-1,hidden:!v,onKeyDown(H){B8.has(H.key)&&H.stopPropagation()},style:{[k8.nestedDialogs]:x}},u],ref:[n,c.context.popupRef,c.useStateSetter("popupElement")],stateAttributesMapping:V8});return w.jsx(k7,{context:m,openInteractionType:P,disabled:!v,closeOnFocusOut:!p,initialFocus:$,returnFocus:o,modal:y!==!1,restoreFocus:"popup",children:A})});process.env.NODE_ENV!=="production"&&(_y.displayName="DialogPopup");function Oy(e){return cy(19)?e:e?"true":void 0}const i$=h.forwardRef(function(t,n){const{cutout:r,...o}=t;let i;if(r){const s=r.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return w.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});process.env.NODE_ENV!=="production"&&(i$.displayName="InternalBackdrop");const $y=h.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=zo(),s=i.useState("mounted"),a=i.useState("modal"),u=i.useState("open");return s||r?w.jsx(Ty.Provider,{value:r,children:w.jsxs(mO,{ref:n,...o,children:[s&&a===!0&&w.jsx(i$,{ref:i.context.internalBackdropRef,inert:Oy(!u)}),t.children]})}):null});process.env.NODE_ENV!=="production"&&($y.displayName="DialogPortal");const Dy=h.forwardRef(function(t,n){const{render:r,className:o,style:i,id:s,...a}=t,{store:u}=zo(),c=$r(s);return u.useSyncedValueWithCleanup("titleElementId",c),lt("h2",t,{ref:n,props:[{id:c},a]})});process.env.NODE_ENV!=="production"&&(Dy.displayName="DialogTitle");const My=h.forwardRef(function(t,n){const{render:r,className:o,disabled:i=!1,nativeButton:s=!0,id:a,payload:u,handle:c,style:f,...p}=t,m=zo(!0),b=c?.store??m?.store;if(!b)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.":zt(79));const y=$r(a),v=b.useState("floatingRootContext"),E=b.useState("isOpenedByTrigger",y),x=h.useRef(null),{registerTrigger:R,isMountedByThisTrigger:P}=LO(y,x,b,{payload:u}),{getButtonProps:O,buttonRef:S}=ga({disabled:i,native:s}),T=F7(v,{enabled:v!=null}),_=Ey([T]),$={disabled:i,open:E},V=b.useState("triggerProps",P);return lt("button",t,{state:$,ref:[S,n,R,x],props:[_.getReferenceProps(),V,{[L_]:"",id:y},p,O],stateAttributesMapping:XO})});process.env.NODE_ENV!=="production"&&(My.displayName="DialogTrigger");let ZC=(function(e){return e[e.open=Ur.open]="open",e[e.closed=Ur.closed]="closed",e[e.startingStyle=Ur.startingStyle]="startingStyle",e[e.endingStyle=Ur.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const K8={...ha,...xs,nested(e){return e?{[ZC.nested]:""}:null},nestedDialogOpen(e){return e?{[ZC.nestedDialogOpen]:""}:null}},Ay=h.forwardRef(function(t,n){const{className:r,render:o,children:i,style:s,...a}=t,u=QO(),{store:c}=zo(),f=c.useState("open"),p=c.useState("nested"),m=c.useState("transitionStatus"),b=c.useState("nestedOpenDialogCount"),y=c.useState("mounted"),v=b>0;return lt("div",t,{enabled:u||y,state:{open:f,nested:p,transitionStatus:m,nestedDialogOpen:v},ref:[n,c.useStateSetter("viewportElement")],stateAttributesMapping:K8,props:[{role:"presentation",hidden:!y,style:{pointerEvents:f?void 0:"none"},children:i},a]})});process.env.NODE_ENV!=="production"&&(Ay.displayName="DialogViewport");class s${constructor(t){this.store=t??new hd}open(t){const n=t?this.store.context.triggerElements.getById(t):void 0;process.env.NODE_ENV!=="production"&&t&&!n&&console.warn(`Base UI: DialogHandle.open: No trigger found with id "${t}". The dialog will open, but the trigger will not be associated with the dialog.`),this.store.setOpen(!0,pt(os,void 0,n))}openWithPayload(t){this.store.set("payload",t),this.store.setOpen(!0,pt(os,void 0,void 0))}close(){this.store.setOpen(!1,pt(os,void 0,void 0))}get isOpen(){return this.store.state.open}}function H8(){return new s$(new hd({modal:!0,disablePointerDismissal:!0,role:"alertdialog"}))}const W8=Object.freeze(Object.defineProperty({__proto__:null,Backdrop:Ry,Close:Sy,Description:Py,Handle:s$,Popup:_y,Portal:$y,Root:GO,Title:Dy,Trigger:My,Viewport:Ay,createHandle:H8},Symbol.toStringTag,{value:"Module"}));function a$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=a$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ny(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=a$(e))&&(r&&(r+=" "),r+=t);return r}const U8=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},z8=(e,t)=>({classGroupId:e,validator:t}),l$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Up="-",QC=[],G8="arbitrary..",Y8=e=>{const t=Z8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return X8(s);const a=s.split(Up),u=a[0]===""&&a.length>1?1:0;return u$(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=r[s],c=n[s];return u?c?U8(c,u):u:c||QC}return n[s]||QC}}},u$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=u$(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Up):e.slice(t).join(Up),u=s.length;for(let c=0;c<u;c++){const f=s[c];if(f.validator(a))return f.classGroupId}},X8=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?G8+r:void 0})(),Z8=e=>{const{theme:t,classGroups:n}=e;return Q8(n,t)},Q8=(e,t)=>{const n=l$();for(const r in e){const o=e[r];Iy(o,n,r,t)}return n},Iy=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];J8(s,t,n,r)}},J8=(e,t,n,r)=>{if(typeof e=="string"){eK(e,t,n);return}if(typeof e=="function"){tK(e,t,n,r);return}nK(e,t,n,r)},eK=(e,t,n)=>{const r=e===""?t:c$(t,e);r.classGroupId=n},tK=(e,t,n,r)=>{if(rK(e)){Iy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(z8(n,e))},nK=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,u]=o[s];Iy(u,c$(t,a),n,r)}},c$=(e,t)=>{let n=e;const r=t.split(Up),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=l$(),n.nextPart.set(s,a)),n=a}return n},rK=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,oK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Qv="!",JC=":",iK=[],eR=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),sK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,u=0,c;const f=o.length;for(let v=0;v<f;v++){const E=o[v];if(s===0&&a===0){if(E===JC){i.push(o.slice(u,v)),u=v+1;continue}if(E==="/"){c=v;continue}}E==="["?s++:E==="]"?s--:E==="("?a++:E===")"&&a--}const p=i.length===0?o:o.slice(u);let m=p,b=!1;p.endsWith(Qv)?(m=p.slice(0,-1),b=!0):p.startsWith(Qv)&&(m=p.slice(1),b=!0);const y=c&&c>u?c-u:void 0;return eR(i,b,m,y)};if(t){const o=t+JC,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):eR(iK,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},aK=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",u=t.has(s);a||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},lK=e=>({cache:oK(e.cacheSize),parseClassName:sK(e),sortModifiers:aK(e),...Y8(e)}),uK=/\s+/,cK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(uK);let u="";for(let c=a.length-1;c>=0;c-=1){const f=a[c],{isExternal:p,modifiers:m,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:v}=n(f);if(p){u=f+(u.length>0?" "+u:u);continue}let E=!!v,x=r(E?y.substring(0,v):y);if(!x){if(!E){u=f+(u.length>0?" "+u:u);continue}if(x=r(y),!x){u=f+(u.length>0?" "+u:u);continue}E=!1}const R=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=b?R+Qv:R,O=P+x;if(s.indexOf(O)>-1)continue;s.push(O);const S=o(x,E);for(let T=0;T<S.length;++T){const _=S[T];s.push(P+_)}u=f+(u.length>0?" "+u:u)}return u},dK=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=d$(n))&&(o&&(o+=" "),o+=r);return o},d$=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=d$(e[r]))&&(n&&(n+=" "),n+=t);return n},Jv=(e,...t)=>{let n,r,o,i;const s=u=>{const c=t.reduce((f,p)=>p(f),e());return n=lK(c),r=n.cache.get,o=n.cache.set,i=a,a(u)},a=u=>{const c=r(u);if(c)return c;const f=cK(u,n);return o(u,f),f};return i=s,(...u)=>i(dK(...u))},fK=[],vn=e=>{const t=n=>n[e]||fK;return t.isThemeGetter=!0,t},f$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,p$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pK=/^\d+\/\d+$/,mK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hK=/\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$/,gK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qs=e=>pK.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),li=e=>!!e&&Number.isInteger(Number(e)),Zg=e=>e.endsWith("%")&&Je(e.slice(0,-1)),Po=e=>mK.test(e),yK=()=>!0,xK=e=>hK.test(e)&&!gK.test(e),m$=()=>!1,wK=e=>vK.test(e),EK=e=>bK.test(e),CK=e=>!De(e)&&!Me(e),RK=e=>va(e,v$,m$),De=e=>f$.test(e),Gi=e=>va(e,b$,xK),Qg=e=>va(e,OK,Je),tR=e=>va(e,h$,m$),SK=e=>va(e,g$,EK),Xf=e=>va(e,y$,wK),Me=e=>p$.test(e),Ua=e=>ba(e,b$),PK=e=>ba(e,$K),nR=e=>ba(e,h$),TK=e=>ba(e,v$),_K=e=>ba(e,g$),Zf=e=>ba(e,y$,!0),va=(e,t,n)=>{const r=f$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ba=(e,t,n=!1)=>{const r=p$.exec(e);return r?r[1]?t(r[1]):n:!1},h$=e=>e==="position"||e==="percentage",g$=e=>e==="image"||e==="url",v$=e=>e==="length"||e==="size"||e==="bg-size",b$=e=>e==="length",OK=e=>e==="number",$K=e=>e==="family-name",y$=e=>e==="shadow",eb=()=>{const e=vn("color"),t=vn("font"),n=vn("text"),r=vn("font-weight"),o=vn("tracking"),i=vn("leading"),s=vn("breakpoint"),a=vn("container"),u=vn("spacing"),c=vn("radius"),f=vn("shadow"),p=vn("inset-shadow"),m=vn("text-shadow"),b=vn("drop-shadow"),y=vn("blur"),v=vn("perspective"),E=vn("aspect"),x=vn("ease"),R=vn("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...O(),Me,De],T=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],$=()=>[Me,De,u],V=()=>[qs,"full","auto",...$()],U=()=>[li,"none","subgrid",Me,De],A=()=>["auto",{span:["full",li,Me,De]},li,Me,De],H=()=>[li,"auto",Me,De],F=()=>["auto","min","max","fr",Me,De],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...$()],k=()=>[qs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],q=()=>[e,Me,De],z=()=>[...O(),nR,tR,{position:[Me,De]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",TK,RK,{size:[Me,De]}],X=()=>[Zg,Ua,Gi],Q=()=>["","none","full",c,Me,De],re=()=>["",Je,Ua,Gi],ce=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Je,Zg,nR,tR],de=()=>["","none",y,Me,De],K=()=>["none",Je,Me,De],ue=()=>["none",Je,Me,De],le=()=>[Je,Me,De],Z=()=>[qs,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Po],breakpoint:[Po],color:[yK],container:[Po],"drop-shadow":[Po],ease:["in","out","in-out"],font:[CK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Po],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Po],shadow:[Po],spacing:["px",Je],text:[Po],"text-shadow":[Po],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qs,De,Me,E]}],container:["container"],columns:[{columns:[Je,De,Me,a]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[li,"auto",Me,De]}],basis:[{basis:[qs,"full","auto",a,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,qs,"auto","initial","none",De]}],grow:[{grow:["",Je,Me,De]}],shrink:[{shrink:["",Je,Me,De]}],order:[{order:[li,"first","last","none",Me,De]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[a,"screen",...k()]}],"min-w":[{"min-w":[a,"screen","none",...k()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",n,Ua,Gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Me,Qg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zg,De]}],"font-family":[{font:[PK,De,t]}],"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:[o,Me,De]}],"line-clamp":[{"line-clamp":[Je,"none",Me,Qg]}],leading:[{leading:[i,...$()]}],"list-image":[{"list-image":["none",Me,De]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Me,De]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",Me,Gi]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Je,"auto",Me,De]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me,De]}],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",Me,De]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},li,Me,De],radial:["",Me,De],conic:[li,Me,De]},_K,SK]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,Me,De]}],"outline-w":[{outline:["",Je,Ua,Gi]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",f,Zf,Xf]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",p,Zf,Xf]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Je,Gi]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",m,Zf,Xf]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Je,Me,De]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[Me,De]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Me,De]}],filter:[{filter:["","none",Me,De]}],blur:[{blur:de()}],brightness:[{brightness:[Je,Me,De]}],contrast:[{contrast:[Je,Me,De]}],"drop-shadow":[{"drop-shadow":["","none",b,Zf,Xf]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Je,Me,De]}],"hue-rotate":[{"hue-rotate":[Je,Me,De]}],invert:[{invert:["",Je,Me,De]}],saturate:[{saturate:[Je,Me,De]}],sepia:[{sepia:["",Je,Me,De]}],"backdrop-filter":[{"backdrop-filter":["","none",Me,De]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Je,Me,De]}],"backdrop-contrast":[{"backdrop-contrast":[Je,Me,De]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,Me,De]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,Me,De]}],"backdrop-invert":[{"backdrop-invert":["",Je,Me,De]}],"backdrop-opacity":[{"backdrop-opacity":[Je,Me,De]}],"backdrop-saturate":[{"backdrop-saturate":[Je,Me,De]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,Me,De]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Me,De]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",Me,De]}],ease:[{ease:["linear","initial",x,Me,De]}],delay:[{delay:[Je,Me,De]}],animate:[{animate:["none",R,Me,De]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Me,De]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[Me,De,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",Me,De]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",Me,De]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Je,Ua,Gi,Qg]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},DK=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(Lc(e,"cacheSize",t),Lc(e,"prefix",n),Lc(e,"experimentalParseClassName",r),Qf(e.theme,i.theme),Qf(e.classGroups,i.classGroups),Qf(e.conflictingClassGroups,i.conflictingClassGroups),Qf(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Lc(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Jf(e.theme,o.theme),Jf(e.classGroups,o.classGroups),Jf(e.conflictingClassGroups,o.conflictingClassGroups),Jf(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),x$(e,o,"orderSensitiveModifiers"),e),Lc=(e,t,n)=>{n!==void 0&&(e[t]=n)},Qf=(e,t)=>{if(t)for(const n in t)Lc(e,n,t[n])},Jf=(e,t)=>{if(t)for(const n in t)x$(e,t,n)},x$=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},w$=(e,...t)=>typeof e=="function"?Jv(eb,e,...t):Jv(()=>DK(eb(),e),...t),MK=Jv(eb),E$=w$({});function me(...e){return E$(Ny(e))}const C$={},R$=D.createContext({theme:C$}),S$=()=>D.useContext(R$),AK=({children:e,theme:t=C$})=>w.jsx(R$.Provider,{value:{theme:t},children:e}),Im=(e,t,n={})=>{const{theme:r}=S$(),o=r[e]||{};return{...n,...o,...t}};function rR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ht(...e){return t=>{let n=!1;const r=e.map(o=>{const i=rR(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():rR(e[o],null)}}}}function it(...e){return h.useCallback(Ht(...e),e)}var NK=Symbol.for("react.lazy"),zp=h[" use ".trim().toString()];function IK(e){return typeof e=="object"&&e!==null&&"then"in e}function P$(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===NK&&"_payload"in e&&IK(e._payload)}function kK(e){const t=FK(e),n=h.forwardRef((r,o)=>{let{children:i,...s}=r;P$(i)&&typeof zp=="function"&&(i=zp(i._payload));const a=h.Children.toArray(i),u=a.find(jK);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var km=kK("Slot");function FK(e){const t=h.forwardRef((n,r)=>{let{children:o,...i}=n;if(P$(o)&&typeof zp=="function"&&(o=zp(o._payload)),h.isValidElement(o)){const s=VK(o),a=BK(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T$=Symbol("radix.slottable");function LK(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=T$,t}var qK=LK("Slottable");function jK(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T$}function BK(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function VK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xn=globalThis?.document?h.useLayoutEffect:()=>{},KK=h[" useInsertionEffect ".trim().toString()]||xn;function Kt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=HK({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const f=h.useRef(e!==void 0);h.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const c=h.useCallback(f=>{if(a){const p=WK(f)?f(e):f;p!==e&&s.current?.(p)}else i(f)},[a,e,i,s]);return[u,c]}function HK({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return KK(()=>{i.current=t},[t]),h.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function WK(e){return typeof e=="function"}const UK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zK=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),oR=e=>{const t=zK(e);return t.charAt(0).toUpperCase()+t.slice(1)},_$=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),GK=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var YK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const XK=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},u)=>D.createElement("svg",{ref:u,...YK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_$("lucide",o),...!i&&!GK(a)&&{"aria-hidden":"true"},...a},[...s.map(([c,f])=>D.createElement(c,f)),...Array.isArray(i)?i:[i]]));const ln=(e,t)=>{const n=D.forwardRef(({className:r,...o},i)=>D.createElement(XK,{ref:i,iconNode:t,className:_$(`lucide-${UK(oR(e))}`,`lucide-${e}`,r),...o}));return n.displayName=oR(e),n};const ZK=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],QK=ln("calendar",ZK);const JK=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tb=ln("check",JK);const eH=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],O$=ln("chevron-down",eH);const tH=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ky=ln("chevron-left",tH);const nH=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gd=ln("chevron-right",nH);const rH=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$$=ln("chevron-up",rH);const oH=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],iH=ln("chevrons-left",oH);const sH=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],aH=ln("chevrons-right",sH);const lH=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Gp=ln("chevrons-up-down",lH);const uH=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cH=ln("circle-check",uH);const dH=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],fH=ln("circle-x",dH);const pH=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],mH=ln("circle",pH);const hH=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],gH=ln("cloud-upload",hH);const vH=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],bH=ln("eye-off",vH);const yH=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xH=ln("eye",yH);const wH=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],EH=ln("folder-search",wH);const CH=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],D$=ln("info",CH);const RH=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nb=ln("loader-circle",RH);const SH=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],PH=ln("search",SH);const TH=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_H=ln("triangle-alert",TH);const OH=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vd=ln("x",OH);function Yp(){return Yp=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},Yp.apply(null,arguments)}function M$(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 rb(e,t){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rb(e,t)}function A$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rb(e,t)}var ep={exports:{}},tp={exports:{}},bt={};var iR;function $H(){if(iR)return bt;iR=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function P(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case t:switch(S=S.type,S){case u:case c:case r:case i:case o:case p:return S;default:switch(S=S&&S.$$typeof,S){case a:case f:case y:case b:case s:return S;default:return T}}case n:return T}}}function O(S){return P(S)===c}return bt.AsyncMode=u,bt.ConcurrentMode=c,bt.ContextConsumer=a,bt.ContextProvider=s,bt.Element=t,bt.ForwardRef=f,bt.Fragment=r,bt.Lazy=y,bt.Memo=b,bt.Portal=n,bt.Profiler=i,bt.StrictMode=o,bt.Suspense=p,bt.isAsyncMode=function(S){return O(S)||P(S)===u},bt.isConcurrentMode=O,bt.isContextConsumer=function(S){return P(S)===a},bt.isContextProvider=function(S){return P(S)===s},bt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},bt.isForwardRef=function(S){return P(S)===f},bt.isFragment=function(S){return P(S)===r},bt.isLazy=function(S){return P(S)===y},bt.isMemo=function(S){return P(S)===b},bt.isPortal=function(S){return P(S)===n},bt.isProfiler=function(S){return P(S)===i},bt.isStrictMode=function(S){return P(S)===o},bt.isSuspense=function(S){return P(S)===p},bt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===i||S===o||S===p||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===b||S.$$typeof===s||S.$$typeof===a||S.$$typeof===f||S.$$typeof===E||S.$$typeof===x||S.$$typeof===R||S.$$typeof===v)},bt.typeOf=P,bt}var yt={};var sR;function DH(){return sR||(sR=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function P(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===c||Z===i||Z===o||Z===p||Z===m||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===b||Z.$$typeof===s||Z.$$typeof===a||Z.$$typeof===f||Z.$$typeof===E||Z.$$typeof===x||Z.$$typeof===R||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var xe=Z.$$typeof;switch(xe){case t:var Re=Z.type;switch(Re){case u:case c:case r:case i:case o:case p:return Re;default:var Ae=Re&&Re.$$typeof;switch(Ae){case a:case f:case y:case b:case s:return Ae;default:return xe}}case n:return xe}}}var S=u,T=c,_=a,$=s,V=t,U=f,A=r,H=y,F=b,N=n,j=i,I=o,k=p,q=!1;function z(Z){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(Z)||O(Z)===u}function W(Z){return O(Z)===c}function te(Z){return O(Z)===a}function X(Z){return O(Z)===s}function Q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function re(Z){return O(Z)===f}function ce(Z){return O(Z)===r}function se(Z){return O(Z)===y}function ee(Z){return O(Z)===b}function de(Z){return O(Z)===n}function K(Z){return O(Z)===i}function ue(Z){return O(Z)===o}function le(Z){return O(Z)===p}yt.AsyncMode=S,yt.ConcurrentMode=T,yt.ContextConsumer=_,yt.ContextProvider=$,yt.Element=V,yt.ForwardRef=U,yt.Fragment=A,yt.Lazy=H,yt.Memo=F,yt.Portal=N,yt.Profiler=j,yt.StrictMode=I,yt.Suspense=k,yt.isAsyncMode=z,yt.isConcurrentMode=W,yt.isContextConsumer=te,yt.isContextProvider=X,yt.isElement=Q,yt.isForwardRef=re,yt.isFragment=ce,yt.isLazy=se,yt.isMemo=ee,yt.isPortal=de,yt.isProfiler=K,yt.isStrictMode=ue,yt.isSuspense=le,yt.isValidElementType=P,yt.typeOf=O})()),yt}var aR;function N$(){return aR||(aR=1,process.env.NODE_ENV==="production"?tp.exports=$H():tp.exports=DH()),tp.exports}var Jg,lR;function MH(){if(lR)return Jg;lR=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jg=o()?Object.assign:function(i,s){for(var a,u=r(i),c,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)t.call(a,p)&&(u[p]=a[p]);if(e){c=e(a);for(var m=0;m<c.length;m++)n.call(a,c[m])&&(u[c[m]]=a[c[m]])}}return u},Jg}var ev,uR;function Fy(){if(uR)return ev;uR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ev=e,ev}var tv,cR;function I$(){return cR||(cR=1,tv=Function.call.bind(Object.prototype.hasOwnProperty)),tv}var nv,dR;function AH(){if(dR)return nv;dR=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fy(),n={},r=I$();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,u,c){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var p;try{if(typeof i[f]!="function"){var m=Error((u||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[f](s,f,u,a,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=c?c():"";e("Failed "+a+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},nv=o,nv}var rv,fR;function NH(){if(fR)return rv;fR=1;var e=N$(),t=MH(),n=Fy(),r=I$(),o=AH(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return rv=function(a,u){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(W){var te=W&&(c&&W[c]||W[f]);if(typeof te=="function")return te}var m="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:R(),arrayOf:P,element:O(),elementType:S(),instanceOf:T,node:U(),objectOf:$,oneOf:_,oneOfType:V,shape:H,exact:F};function y(W,te){return W===te?W!==0||1/W===1/te:W!==W&&te!==te}function v(W,te){this.message=W,this.data=te&&typeof te=="object"?te:{},this.stack=""}v.prototype=Error.prototype;function E(W){if(process.env.NODE_ENV!=="production")var te={},X=0;function Q(ce,se,ee,de,K,ue,le){if(de=de||m,ue=ue||ee,le!==n){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=de+":"+ee;!te[xe]&&X<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ue+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[xe]=!0,X++)}}return se[ee]==null?ce?se[ee]===null?new v("The "+K+" `"+ue+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+K+" `"+ue+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:W(se,ee,de,K,ue)}var re=Q.bind(null,!1);return re.isRequired=Q.bind(null,!0),re}function x(W){function te(X,Q,re,ce,se,ee){var de=X[Q],K=I(de);if(K!==W){var ue=k(de);return new v("Invalid "+ce+" `"+se+"` of type "+("`"+ue+"` supplied to `"+re+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return E(te)}function R(){return E(s)}function P(W){function te(X,Q,re,ce,se){if(typeof W!="function")return new v("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var ee=X[Q];if(!Array.isArray(ee)){var de=I(ee);return new v("Invalid "+ce+" `"+se+"` of type "+("`"+de+"` supplied to `"+re+"`, expected an array."))}for(var K=0;K<ee.length;K++){var ue=W(ee,K,re,ce,se+"["+K+"]",n);if(ue instanceof Error)return ue}return null}return E(te)}function O(){function W(te,X,Q,re,ce){var se=te[X];if(!a(se)){var ee=I(se);return new v("Invalid "+re+" `"+ce+"` of type "+("`"+ee+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return E(W)}function S(){function W(te,X,Q,re,ce){var se=te[X];if(!e.isValidElementType(se)){var ee=I(se);return new v("Invalid "+re+" `"+ce+"` of type "+("`"+ee+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return E(W)}function T(W){function te(X,Q,re,ce,se){if(!(X[Q]instanceof W)){var ee=W.name||m,de=z(X[Q]);return new v("Invalid "+ce+" `"+se+"` of type "+("`"+de+"` supplied to `"+re+"`, expected ")+("instance of `"+ee+"`."))}return null}return E(te)}function _(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function te(X,Q,re,ce,se){for(var ee=X[Q],de=0;de<W.length;de++)if(y(ee,W[de]))return null;var K=JSON.stringify(W,function(le,Z){var xe=k(Z);return xe==="symbol"?String(Z):Z});return new v("Invalid "+ce+" `"+se+"` of value `"+String(ee)+"` "+("supplied to `"+re+"`, expected one of "+K+"."))}return E(te)}function $(W){function te(X,Q,re,ce,se){if(typeof W!="function")return new v("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var ee=X[Q],de=I(ee);if(de!=="object")return new v("Invalid "+ce+" `"+se+"` of type "+("`"+de+"` supplied to `"+re+"`, expected an object."));for(var K in ee)if(r(ee,K)){var ue=W(ee,K,re,ce,se+"."+K,n);if(ue instanceof Error)return ue}return null}return E(te)}function V(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var te=0;te<W.length;te++){var X=W[te];if(typeof X!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(X)+" at index "+te+"."),s}function Q(re,ce,se,ee,de){for(var K=[],ue=0;ue<W.length;ue++){var le=W[ue],Z=le(re,ce,se,ee,de,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&K.push(Z.data.expectedType)}var xe=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new v("Invalid "+ee+" `"+de+"` supplied to "+("`"+se+"`"+xe+"."))}return E(Q)}function U(){function W(te,X,Q,re,ce){return N(te[X])?null:new v("Invalid "+re+" `"+ce+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return E(W)}function A(W,te,X,Q,re){return new v((W||"React class")+": "+te+" type `"+X+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function H(W){function te(X,Q,re,ce,se){var ee=X[Q],de=I(ee);if(de!=="object")return new v("Invalid "+ce+" `"+se+"` of type `"+de+"` "+("supplied to `"+re+"`, expected `object`."));for(var K in W){var ue=W[K];if(typeof ue!="function")return A(re,ce,se,K,k(ue));var le=ue(ee,K,re,ce,se+"."+K,n);if(le)return le}return null}return E(te)}function F(W){function te(X,Q,re,ce,se){var ee=X[Q],de=I(ee);if(de!=="object")return new v("Invalid "+ce+" `"+se+"` of type `"+de+"` "+("supplied to `"+re+"`, expected `object`."));var K=t({},X[Q],W);for(var ue in K){var le=W[ue];if(r(W,ue)&&typeof le!="function")return A(re,ce,se,ue,k(le));if(!le)return new v("Invalid "+ce+" `"+se+"` key `"+ue+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(X[Q],null," ")+`
|
|
9
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var Z=le(ee,ue,re,ce,se+"."+ue,n);if(Z)return Z}return null}return E(te)}function N(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(N);if(W===null||a(W))return!0;var te=p(W);if(te){var X=te.call(W),Q;if(te!==W.entries){for(;!(Q=X.next()).done;)if(!N(Q.value))return!1}else for(;!(Q=X.next()).done;){var re=Q.value;if(re&&!N(re[1]))return!1}}else return!1;return!0;default:return!1}}function j(W,te){return W==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function I(W){var te=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":j(te,W)?"symbol":te}function k(W){if(typeof W>"u"||W===null)return""+W;var te=I(W);if(te==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return te}function q(W){var te=k(W);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function z(W){return!W.constructor||!W.constructor.name?m:W.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rv}var ov,pR;function IH(){if(pR)return ov;pR=1;var e=Fy();function t(){}function n(){}return n.resetWarningCache=t,ov=function(){function r(s,a,u,c,f,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ov}var mR;function kH(){if(mR)return ep.exports;if(mR=1,process.env.NODE_ENV!=="production"){var e=N$(),t=!0;ep.exports=NH()(e.isElement,t)}else ep.exports=IH()();return ep.exports}var FH=kH();const Ue=IO(FH);function LH(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function qH(e,t){e.classList?e.classList.add(t):LH(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function hR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jH(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=hR(e.className,t):e.setAttribute("class",hR(e.className&&e.className.baseVal||"",t))}const gR={disabled:!1};var BH=process.env.NODE_ENV!=="production"?Ue.oneOfType([Ue.number,Ue.shape({enter:Ue.number,exit:Ue.number,appear:Ue.number}).isRequired]):null,VH=process.env.NODE_ENV!=="production"?Ue.oneOfType([Ue.string,Ue.shape({enter:Ue.string,exit:Ue.string,active:Ue.string}),Ue.shape({enter:Ue.string,enterDone:Ue.string,enterActive:Ue.string,exit:Ue.string,exitDone:Ue.string,exitActive:Ue.string})]):null;const k$=D.createContext(null);var F$=function(t){return t.scrollTop},qc="unmounted",Zi="exited",Qi="entering",Gs="entered",ob="exiting",go=(function(e){A$(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?a?(u=Zi,i.appearStatus=Qi):u=Gs:r.unmountOnExit||r.mountOnEnter?u=qc:u=Zi,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===qc?{status:Zi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Qi&&s!==Gs&&(i=Qi):(s===Qi||s===Gs)&&(i=ob)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Qi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Wr.findDOMNode(this);s&&F$(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zi&&this.setState({status:qc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,u=this.props.nodeRef?[a]:[Wr.findDOMNode(this),a],c=u[0],f=u[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!s||gR.disabled){this.safeSetState({status:Gs},function(){i.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Qi},function(){i.props.onEntering(c,f),i.onTransitionEnd(m,function(){i.safeSetState({status:Gs},function(){i.props.onEntered(c,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Wr.findDOMNode(this);if(!i||gR.disabled){this.safeSetState({status:Zi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ob},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Wr.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=u[0],f=u[1];this.props.addEndListener(c,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===qc)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=M$(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(k$.Provider,{value:null},typeof s=="function"?s(o,a):D.cloneElement(D.Children.only(s),a))},t})(D.Component);go.contextType=k$;go.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ue.shape({current:typeof Element>"u"?Ue.any:function(e,t,n,r,o,i){var s=e[t];return Ue.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Ue.oneOfType([Ue.func.isRequired,Ue.element.isRequired]).isRequired,in:Ue.bool,mountOnEnter:Ue.bool,unmountOnExit:Ue.bool,appear:Ue.bool,enter:Ue.bool,exit:Ue.bool,timeout:function(t){var n=BH;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:Ue.func,onEnter:Ue.func,onEntering:Ue.func,onEntered:Ue.func,onExit:Ue.func,onExiting:Ue.func,onExited:Ue.func}:{};function js(){}go.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:js,onEntering:js,onEntered:js,onExit:js,onExiting:js,onExited:js};go.UNMOUNTED=qc;go.EXITED=Zi;go.ENTERING=Qi;go.ENTERED=Gs;go.EXITING=ob;var KH=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return qH(t,r)})},iv=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return jH(t,r)})},Ly=(function(e){A$(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,u){var c=r.resolveArguments(a,u),f=c[0],p=c[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,u)},r.onEntering=function(a,u){var c=r.resolveArguments(a,u),f=c[0],p=c[1],m=p?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(a,u)},r.onEntered=function(a,u){var c=r.resolveArguments(a,u),f=c[0],p=c[1],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(a,u)},r.onExit=function(a){var u=r.resolveArguments(a),c=u[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var u=r.resolveArguments(a),c=u[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var u=r.resolveArguments(a),c=u[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,u){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,u]},r.getClassNames=function(a){var u=r.props.classNames,c=typeof u=="string",f=c&&u?u+"-":"",p=c?""+f+a:u[a],m=c?p+"-active":u[a+"Active"],b=c?p+"-done":u[a+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],u=this.getClassNames("enter"),c=u.doneClassName;i==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&o&&F$(o),a&&(this.appliedClasses[i][s]=a,KH(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,u=s.active,c=s.done;this.appliedClasses[i]={},a&&iv(o,a),u&&iv(o,u),c&&iv(o,c)},n.render=function(){var o=this.props;o.classNames;var i=M$(o,["classNames"]);return D.createElement(go,Yp({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(D.Component);Ly.defaultProps={classNames:""};Ly.propTypes=process.env.NODE_ENV!=="production"?Yp({},go.propTypes,{classNames:VH,onEnter:Ue.func,onEntering:Ue.func,onEntered:Ue.func,onExit:Ue.func,onExiting:Ue.func,onExited:Ue.func}):{};const ib=({loading:e,animate:t=!0,...n})=>{const r=D.useRef(null);return t?w.jsx(Ly,{unmountOnExit:!0,mountOnEnter:!0,timeout:200,in:e,classNames:"btn-loader",nodeRef:r,children:w.jsx(nb,{...n,ref:r,"data-testid":"btn-loader",className:me("animate-spin",n.className)})}):e?w.jsx(nb,{...n,"data-testid":"btn-loader",className:me("animate-spin",n.className)}):null},HH=({loading:e})=>w.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"inherit",borderRadius:"inherit"},children:w.jsx(ib,{loading:e,animate:!1})}),WH={display:"inline-flex",alignItems:"center",gap:"0.5rem"},L$=({asChild:e=!1,onClick:t,loading:n,showLoader:r=!0,icon:o,iconPosition:i="start",loaderReplace:s,style:a,...u})=>{const c=e?km:"button",[f=!1,p]=Kt({prop:n,defaultProp:!1}),m=async E=>{if(!t||f)return;const x=t(E);x instanceof Promise&&(r&&p(!0),await x.finally(()=>p(!1)))},b=E=>{if(E!==i)return null;const x=s?!1:f;return w.jsxs(w.Fragment,{children:[w.jsx(ib,{loading:x&&!o,animate:!0}),o&&w.jsx(ib,{loading:x,animate:!1}),o&&!x&&o]})},v=s&&(f&&r);return w.jsxs(c,{type:"button","data-slot":"button",...u,onClick:m,style:{...WH,position:v?"relative":void 0,...a},children:[b("start"),w.jsx(qK,{children:u.children}),b("end"),v&&w.jsx(HH,{loading:!0})]})},vR=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bR=Ny,Oi=(e,t)=>n=>{var r;if(t?.variants==null)return bR(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const f=n?.[c],p=i?.[c];if(f===null)return null;const m=vR(f)||vR(p);return o[c][m]}),a=n&&Object.entries(n).reduce((c,f)=>{let[p,m]=f;return m===void 0||(c[p]=m),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:p,className:m,...b}=f;return Object.entries(b).every(y=>{let[v,E]=y;return Array.isArray(E)?E.includes({...i,...a}[v]):{...i,...a}[v]===E})?[...c,p,m]:c},[]);return bR(e,s,u,n?.class,n?.className)},q$=Oi(["inline-flex items-center justify-center gap-2","text-sm font-medium transition-all","ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:brightness-105"],{variants:{variant:{default:"bg-primary text-primary-foreground",error:"bg-error text-error-foreground",success:"bg-success text-success-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:brightness-100 hover:bg-secondary/80",ghost:"hover:bg-accent hover:brightness-100 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"w-10 aspect-square"},shape:{rounded:"rounded-md",square:"rounded-none",circle:"rounded-full"}},defaultVariants:{variant:"default",size:"default",shape:"rounded"}}),Tn=e=>{const{variant:t,size:n,shape:r,className:o,...i}=Im("Button",e);return w.jsx(L$,{...i,className:me(q$({variant:t,size:n,shape:r}),o),"data-variant":t||"default"})};function j$(e){return w.jsx(GO,{...e})}function B$({className:e,...t}){return w.jsx(My,{"data-slot":"alert-dialog-trigger",className:me(e),...t})}function V$({className:e,...t}){return w.jsx(Ry,{"data-slot":"alert-dialog-backdrop",className:me("fixed inset-0 z-50 bg-black/50","transition-opacity duration-200","data-starting-style:opacity-0 data-ending-style:opacity-0",e),...t})}function K$({className:e,...t}){return w.jsx(Ay,{"data-slot":"alert-dialog-viewport",className:me("fixed inset-0 z-50 flex items-center justify-center p-4",e),...t})}function H$({className:e,portalProps:t,...n}){return w.jsxs($y,{...t,children:[w.jsx(V$,{}),w.jsx(K$,{children:w.jsx(_y,{"data-slot":"alert-dialog-popup",className:me("relative flex w-full max-w-lg flex-col gap-4 rounded-lg border bg-background p-6 shadow-lg","transition-[scale,opacity] duration-200 ease-out","data-starting-style:scale-95 data-starting-style:opacity-0","data-ending-style:scale-95 data-ending-style:opacity-0",e),...n})})]})}function sb({className:e,...t}){return w.jsx(Sy,{"data-slot":"alert-dialog-close",className:me(e),...t})}function W$({className:e,...t}){return w.jsx(Dy,{"data-slot":"alert-dialog-title",className:me("text-lg font-semibold leading-none tracking-tight",e),...t})}function U$({className:e,...t}){return w.jsx(Py,{"data-slot":"alert-dialog-description",className:me("text-sm text-muted-foreground",e),...t})}function z$({className:e,...t}){return w.jsx("div",{"data-slot":"alert-dialog-header",className:me("flex flex-col gap-2",e),...t})}function G$({className:e,...t}){return w.jsx("div",{"data-slot":"alert-dialog-footer",className:me("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function UH({trigger:e,title:t,description:n,children:r,onClose:o,onAction:i,variant:s="default",closeText:a="Cancel",actionText:u="Confirm",className:c,...f}){return w.jsxs(j$,{...f,children:[e&&w.jsx(B$,{render:e}),w.jsxs(H$,{className:c,children:[(t||n)&&w.jsxs(z$,{children:[t&&w.jsx(W$,{children:t}),n&&w.jsx(U$,{children:n})]}),r,w.jsxs(G$,{children:[w.jsx(sb,{render:w.jsx(Tn,{variant:"secondary",children:a}),onClick:o}),w.jsx(sb,{render:w.jsx(Tn,{variant:s??"default",children:u}),onClick:i})]})]})]})}function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Y$(e,t){const n=h.createContext(t),r=i=>{const{children:s,...a}=i,u=h.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Go(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),u=n.length;n=[...n,s];const c=p=>{const{scope:m,children:b,...y}=p,v=m?.[e]?.[u]||a,E=h.useMemo(()=>y,Object.values(y));return w.jsx(v.Provider,{value:E,children:b})};c.displayName=i+"Provider";function f(p,m){const b=m?.[e]?.[u]||a,y=h.useContext(b);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,f]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const u=a?.[e]||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,zH(o,...t)]}function zH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var GH=h[" useId ".trim().toString()]||(()=>{}),YH=0;function an(e){const[t,n]=h.useState(GH());return xn(()=>{n(r=>r??String(YH++))},[e]),e||(t?`radix-${t}`:"")}function XH(e){const t=ZH(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(JH);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ZH(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=tW(o),a=eW(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QH=Symbol("radix.slottable");function JH(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QH}function eW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function tW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],X$=nW.reduce((e,t)=>{const n=XH(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rW(e,t){e&&er.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function Z$(e,t=globalThis?.document){const n=_n(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var oW="DismissableLayer",ab="dismissableLayer.update",iW="dismissableLayer.pointerDownOutside",sW="dismissableLayer.focusOutside",yR,Q$=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bd=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=h.useContext(Q$),[f,p]=h.useState(null),m=f?.ownerDocument??globalThis?.document,[,b]=h.useState({}),y=it(t,_=>p(_)),v=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(E),R=f?v.indexOf(f):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,O=R>=x,S=uW(_=>{const $=_.target,V=[...c.branches].some(U=>U.contains($));!O||V||(o?.(_),s?.(_),_.defaultPrevented||a?.())},m),T=cW(_=>{const $=_.target;[...c.branches].some(U=>U.contains($))||(i?.(_),s?.(_),_.defaultPrevented||a?.())},m);return Z$(_=>{R===c.layers.size-1&&(r?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},m),h.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(yR=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),xR(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=yR)}},[f,m,n,c]),h.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),xR())},[f,c]),h.useEffect(()=>{const _=()=>b({});return document.addEventListener(ab,_),()=>document.removeEventListener(ab,_)},[]),w.jsx(X$.div,{...u,ref:y,style:{pointerEvents:P?O?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,S.onPointerDownCapture)})});bd.displayName=oW;var aW="DismissableLayerBranch",lW=h.forwardRef((e,t)=>{const n=h.useContext(Q$),r=h.useRef(null),o=it(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(X$.div,{...e,ref:o})});lW.displayName=aW;function uW(e,t=globalThis?.document){const n=_n(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){J$(iW,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cW(e,t=globalThis?.document){const n=_n(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&J$(sW,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xR(){const e=new CustomEvent(ab);document.dispatchEvent(e)}function J$(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?rW(o,i):o.dispatchEvent(i)}function dW(e){const t=fW(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(mW);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function fW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=gW(o),a=hW(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pW=Symbol("radix.slottable");function mW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pW}function hW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function gW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bW=vW.reduce((e,t)=>{const n=dW(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),sv="focusScope.autoFocusOnMount",av="focusScope.autoFocusOnUnmount",wR={bubbles:!1,cancelable:!0},yW="FocusScope",yd=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=h.useState(null),c=_n(o),f=_n(i),p=h.useRef(null),m=it(t,v=>u(v)),b=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let v=function(P){if(b.paused||!a)return;const O=P.target;a.contains(O)?p.current=O:mi(p.current,{select:!0})},E=function(P){if(b.paused||!a)return;const O=P.relatedTarget;O!==null&&(a.contains(O)||mi(p.current,{select:!0}))},x=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&mi(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",E);const R=new MutationObserver(x);return a&&R.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",E),R.disconnect()}}},[r,a,b.paused]),h.useEffect(()=>{if(a){CR.add(b);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(sv,wR);a.addEventListener(sv,c),a.dispatchEvent(x),x.defaultPrevented||(xW(SW(eD(a)),{select:!0}),document.activeElement===v&&mi(a))}return()=>{a.removeEventListener(sv,c),setTimeout(()=>{const x=new CustomEvent(av,wR);a.addEventListener(av,f),a.dispatchEvent(x),x.defaultPrevented||mi(v??document.body,{select:!0}),a.removeEventListener(av,f),CR.remove(b)},0)}}},[a,c,f,b]);const y=h.useCallback(v=>{if(!n&&!r||b.paused)return;const E=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(E&&x){const R=v.currentTarget,[P,O]=wW(R);P&&O?!v.shiftKey&&x===O?(v.preventDefault(),n&&mi(P,{select:!0})):v.shiftKey&&x===P&&(v.preventDefault(),n&&mi(O,{select:!0})):x===R&&v.preventDefault()}},[n,r,b.paused]);return w.jsx(bW.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});yd.displayName=yW;function xW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mi(r,{select:t}),document.activeElement!==n)return}function wW(e){const t=eD(e),n=ER(t,e),r=ER(t.reverse(),e);return[n,r]}function eD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ER(e,t){for(const n of e)if(!EW(n,{upTo:t}))return n}function EW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function CW(e){return e instanceof HTMLInputElement&&"select"in e}function mi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&CW(e)&&t&&e.select()}}var CR=RW();function RW(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=RR(e,t),e.unshift(t)},remove(t){e=RR(e,t),e[0]?.resume()}}}function RR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function SW(e){return e.filter(t=>t.tagName!=="A")}function PW(e){const t=TW(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(OW);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function TW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=DW(o),a=$W(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _W=Symbol("radix.slottable");function OW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_W}function $W(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function DW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var MW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],AW=MW.reduce((e,t)=>{const n=PW(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),NW="Portal",xd=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=h.useState(!1);xn(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Wr.createPortal(w.jsx(AW.div,{...r,ref:t}),s):null});xd.displayName=NW;function IW(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Gr=e=>{const{present:t,children:n}=e,r=kW(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=it(r.ref,FW(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Gr.displayName="Presence";function kW(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,u]=IW(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=np(r.current);i.current=a==="mounted"?c:"none"},[a]),xn(()=>{const c=r.current,f=o.current;if(f!==e){const m=i.current,b=np(c);e?u("MOUNT"):b==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),xn(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,p=b=>{const v=np(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&v&&(u("ANIMATION_END"),!o.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},m=b=>{b.target===t&&(i.current=np(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function np(e){return e?.animationName||"none"}function FW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tD(e){const t=LW(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(jW);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function LW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=VW(o),a=BW(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qW=Symbol("radix.slottable");function jW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qW}function BW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function VW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wd=KW.reduce((e,t)=>{const n=tD(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),lv=0;function Fm(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??SR()),document.body.insertAdjacentElement("beforeend",e[1]??SR()),lv++,()=>{lv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lv--}},[])}function SR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var io=function(){return io=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},io.apply(this,arguments)};function nD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function HW(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Rp="right-scroll-bar-position",Sp="width-before-scroll-bar",WW="with-scroll-bars-hidden",UW="--removed-body-scroll-bar-size";function uv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zW(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var GW=typeof window<"u"?h.useLayoutEffect:h.useEffect,PR=new WeakMap;function YW(e,t){var n=zW(null,function(r){return e.forEach(function(o){return uv(o,r)})});return GW(function(){var r=PR.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||uv(a,null)}),i.forEach(function(a){o.has(a)||uv(a,s)})}PR.set(n,e)},[e]),n}function XW(e){return e}function ZW(e,t){t===void 0&&(t=XW);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return o}function QW(e){e===void 0&&(e={});var t=ZW(null);return t.options=io({async:!0,ssr:!1},e),t}var rD=function(e){var t=e.sideCar,n=nD(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,io({},n))};rD.isSideCarExport=!0;function JW(e,t){return e.useMedium(t),rD}var oD=QW(),cv=function(){},Lm=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:cv,onWheelCapture:cv,onTouchMoveCapture:cv}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,b=e.noIsolation,y=e.inert,v=e.allowPinchZoom,E=e.as,x=E===void 0?"div":E,R=e.gapMode,P=nD(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,S=YW([n,t]),T=io(io({},P),o);return h.createElement(h.Fragment,null,f&&h.createElement(O,{sideCar:oD,removeScrollBar:c,shards:p,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:R}),s?h.cloneElement(h.Children.only(a),io(io({},T),{ref:S})):h.createElement(x,io({},T,{className:u,ref:S}),a))});Lm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lm.classNames={fullWidth:Sp,zeroRight:Rp};var eU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eU();return t&&e.setAttribute("nonce",t),e}function nU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oU=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tU())&&(nU(t,n),rU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iU=function(){var e=oU();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},iD=function(){var e=iU(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sU={left:0,top:0,right:0,gap:0},dv=function(e){return parseInt(e||"",10)||0},aU=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dv(n),dv(r),dv(o)]},lU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sU;var t=aU(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},uU=iD(),ta="data-scroll-locked",cU=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
-
.`.concat(WW,` {
|
|
11
|
-
overflow: hidden `).concat(r,`;
|
|
12
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
13
|
-
}
|
|
14
|
-
body[`).concat(ta,`] {
|
|
15
|
-
overflow: hidden `).concat(r,`;
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
18
|
-
padding-left: `.concat(o,`px;
|
|
19
|
-
padding-top: `).concat(i,`px;
|
|
20
|
-
padding-right: `).concat(s,`px;
|
|
21
|
-
margin-left:0;
|
|
22
|
-
margin-top:0;
|
|
23
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
24
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(Rp,` {
|
|
28
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Sp,` {
|
|
32
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.`).concat(Rp," .").concat(Rp,` {
|
|
36
|
-
right: 0 `).concat(r,`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.`).concat(Sp," .").concat(Sp,` {
|
|
40
|
-
margin-right: 0 `).concat(r,`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
body[`).concat(ta,`] {
|
|
44
|
-
`).concat(UW,": ").concat(a,`px;
|
|
45
|
-
}
|
|
46
|
-
`)},TR=function(){var e=parseInt(document.body.getAttribute(ta)||"0",10);return isFinite(e)?e:0},dU=function(){h.useEffect(function(){return document.body.setAttribute(ta,(TR()+1).toString()),function(){var e=TR()-1;e<=0?document.body.removeAttribute(ta):document.body.setAttribute(ta,e.toString())}},[])},fU=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;dU();var i=h.useMemo(function(){return lU(o)},[o]);return h.createElement(uU,{styles:cU(i,!t,o,n?"":"!important")})},lb=!1;if(typeof window<"u")try{var rp=Object.defineProperty({},"passive",{get:function(){return lb=!0,!0}});window.addEventListener("test",rp,rp),window.removeEventListener("test",rp,rp)}catch{lb=!1}var Bs=lb?{passive:!1}:!1,pU=function(e){return e.tagName==="TEXTAREA"},sD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pU(e)&&n[t]==="visible")},mU=function(e){return sD(e,"overflowY")},hU=function(e){return sD(e,"overflowX")},_R=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=aD(e,r);if(o){var i=lD(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gU=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vU=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aD=function(e,t){return e==="v"?mU(t):hU(t)},lD=function(e,t){return e==="v"?gU(t):vU(t)},bU=function(e,t){return e==="h"&&t==="rtl"?-1:1},yU=function(e,t,n,r,o){var i=bU(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),c=!1,f=s>0,p=0,m=0;do{var b=lD(e,a),y=b[0],v=b[1],E=b[2],x=v-E-i*y;(y||x)&&aD(e,a)&&(p+=x,m+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(c=!0),c},op=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},OR=function(e){return[e.deltaX,e.deltaY]},$R=function(e){return e&&"current"in e?e.current:e},xU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wU=function(e){return`
|
|
47
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
-
`)},EU=0,Vs=[];function CU(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(EU++)[0],i=h.useState(iD)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=HW([e.lockRef.current],(e.shards||[]).map($R),!0).filter(Boolean);return v.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(v,E){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var x=op(v),R=n.current,P="deltaX"in v?v.deltaX:R[0]-x[0],O="deltaY"in v?v.deltaY:R[1]-x[1],S,T=v.target,_=Math.abs(P)>Math.abs(O)?"h":"v";if("touches"in v&&_==="h"&&T.type==="range")return!1;var $=_R(_,T);if(!$)return!0;if($?S=_:(S=_==="v"?"h":"v",$=_R(_,T)),!$)return!1;if(!r.current&&"changedTouches"in v&&(P||O)&&(r.current=S),!S)return!0;var V=r.current||S;return yU(V,E,v,V==="h"?P:O)},[]),u=h.useCallback(function(v){var E=v;if(!(!Vs.length||Vs[Vs.length-1]!==i)){var x="deltaY"in E?OR(E):op(E),R=t.current.filter(function(S){return S.name===E.type&&(S.target===E.target||E.target===S.shadowParent)&&xU(S.delta,x)})[0];if(R&&R.should){E.cancelable&&E.preventDefault();return}if(!R){var P=(s.current.shards||[]).map($R).filter(Boolean).filter(function(S){return S.contains(E.target)}),O=P.length>0?a(E,P[0]):!s.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),c=h.useCallback(function(v,E,x,R){var P={name:v,delta:E,target:x,should:R,shadowParent:RU(x)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(O){return O!==P})},1)},[]),f=h.useCallback(function(v){n.current=op(v),r.current=void 0},[]),p=h.useCallback(function(v){c(v.type,OR(v),v.target,a(v,e.lockRef.current))},[]),m=h.useCallback(function(v){c(v.type,op(v),v.target,a(v,e.lockRef.current))},[]);h.useEffect(function(){return Vs.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Bs),document.addEventListener("touchmove",u,Bs),document.addEventListener("touchstart",f,Bs),function(){Vs=Vs.filter(function(v){return v!==i}),document.removeEventListener("wheel",u,Bs),document.removeEventListener("touchmove",u,Bs),document.removeEventListener("touchstart",f,Bs)}},[]);var b=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:wU(o)}):null,b?h.createElement(fU,{gapMode:e.gapMode}):null)}function RU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SU=JW(oD,CU);var ya=h.forwardRef(function(e,t){return h.createElement(Lm,io({},e,{ref:t,sideCar:SU}))});ya.classNames=Lm.classNames;var PU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ks=new WeakMap,ip=new WeakMap,sp={},fv=0,uD=function(e){return e&&(e.host||uD(e.parentNode))},TU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uD(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_U=function(e,t,n,r){var o=TU(t,Array.isArray(e)?e:[e]);sp[n]||(sp[n]=new WeakMap);var i=sp[n],s=[],a=new Set,u=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))f(m);else try{var b=m.getAttribute(r),y=b!==null&&b!=="false",v=(Ks.get(m)||0)+1,E=(i.get(m)||0)+1;Ks.set(m,v),i.set(m,E),s.push(m),v===1&&y&&ip.set(m,!0),E===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),a.clear(),fv++,function(){s.forEach(function(p){var m=Ks.get(p)-1,b=i.get(p)-1;Ks.set(p,m),i.set(p,b),m||(ip.has(p)||p.removeAttribute(r),ip.delete(p)),b||p.removeAttribute(n)}),fv--,fv||(Ks=new WeakMap,Ks=new WeakMap,ip=new WeakMap,sp={})}},Ed=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=PU(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_U(r,o,n,"aria-hidden")):function(){return null}},qm="Dialog",[cD]=Go(qm),[OU,Yr]=cD(qm),dD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=h.useRef(null),u=h.useRef(null),[c,f]=Kt({prop:r,defaultProp:o??!1,onChange:i,caller:qm});return w.jsx(OU,{scope:t,triggerRef:a,contentRef:u,contentId:an(),titleId:an(),descriptionId:an(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};dD.displayName=qm;var fD="DialogTrigger",pD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yr(fD,n),i=it(t,o.triggerRef);return w.jsx(wd.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":By(o.open),...r,ref:i,onClick:Ie(e.onClick,o.onOpenToggle)})});pD.displayName=fD;var qy="DialogPortal",[$U,mD]=cD(qy,{forceMount:void 0}),hD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Yr(qy,t);return w.jsx($U,{scope:t,forceMount:n,children:h.Children.map(r,s=>w.jsx(Gr,{present:n||i.open,children:w.jsx(xd,{asChild:!0,container:o,children:s})}))})};hD.displayName=qy;var Xp="DialogOverlay",gD=h.forwardRef((e,t)=>{const n=mD(Xp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Yr(Xp,e.__scopeDialog);return i.modal?w.jsx(Gr,{present:r||i.open,children:w.jsx(MU,{...o,ref:t})}):null});gD.displayName=Xp;var DU=tD("DialogOverlay.RemoveScroll"),MU=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yr(Xp,n);return w.jsx(ya,{as:DU,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(wd.div,{"data-state":By(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ls="DialogContent",vD=h.forwardRef((e,t)=>{const n=mD(ls,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Yr(ls,e.__scopeDialog);return w.jsx(Gr,{present:r||i.open,children:i.modal?w.jsx(AU,{...o,ref:t}):w.jsx(NU,{...o,ref:t})})});vD.displayName=ls;var AU=h.forwardRef((e,t)=>{const n=Yr(ls,e.__scopeDialog),r=h.useRef(null),o=it(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return Ed(i)},[]),w.jsx(bD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,i=>i.preventDefault())})}),NU=h.forwardRef((e,t)=>{const n=Yr(ls,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return w.jsx(bD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),bD=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Yr(ls,n),u=h.useRef(null),c=it(t,u);return Fm(),w.jsxs(w.Fragment,{children:[w.jsx(yd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(bd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":By(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(IU,{titleId:a.titleId}),w.jsx(FU,{contentRef:u,descriptionId:a.descriptionId})]})]})}),jy="DialogTitle",yD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yr(jy,n);return w.jsx(wd.h2,{id:o.titleId,...r,ref:t})});yD.displayName=jy;var xD="DialogDescription",wD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yr(xD,n);return w.jsx(wd.p,{id:o.descriptionId,...r,ref:t})});wD.displayName=xD;var ED="DialogClose",CD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yr(ED,n);return w.jsx(wd.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});CD.displayName=ED;function By(e){return e?"open":"closed"}var RD="DialogTitleWarning",[$me,SD]=Y$(RD,{contentName:ls,titleName:jy,docsSlug:"dialog"}),IU=({titleId:e})=>{const t=SD(RD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
-
|
|
51
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
52
|
-
|
|
53
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},kU="DialogDescriptionWarning",FU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SD(kU).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},LU=dD,qU=pD,jU=hD,BU=gD,VU=vD,KU=yD,HU=wD,PD=CD;const Vy=({onClose:e,...t})=>w.jsx(LU,{"data-slot":"dialog",...t,onOpenChange:n=>{!n&&e?.(),t?.onOpenChange?.(n)}}),TD=({...e})=>w.jsx(qU,{"data-slot":"dialog-trigger",...e}),_D=({...e})=>w.jsx(jU,{"data-slot":"dialog-portal",...e}),WU=({...e})=>w.jsx(PD,{"data-slot":"dialog-close",...e}),OD=({className:e,...t})=>w.jsx(BU,{"data-slot":"dialog-overlay",className:me("fixed inset-0 z-50 bg-black/80 data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0",e),...t}),Ky=({className:e,children:t,focus:n=!0,hideClose:r=!1,...o})=>w.jsxs(_D,{children:[w.jsx(OD,{}),w.jsxs(VU,{"data-slot":"dialog-content",className:me("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-10 rounded-md","data-[state='open']:animate-in data-[state='open']:fade-in-0 data-[state='open']:zoom-in-95 ","data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='closed']:zoom-out-95 ",e),onOpenAutoFocus:i=>{!n&&i.preventDefault(),o?.onOpenAutoFocus?.(i)},...o,children:[t,w.jsxs(PD,{className:me("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state='open']:bg-accent data-[state='open']:text-muted-foreground",{hidden:r}),children:[w.jsx(vd,{className:"w-4 h-4","data-slot":"dialog-close-icon"}),w.jsx("span",{className:"sr-only",children:"Cerrar"})]})]})]}),$D=({className:e,...t})=>w.jsx("div",{className:me("flex flex-col space-y-1 text-center sm:text-left",e),"data-slot":"dialog-header",...t}),DD=({className:e,...t})=>w.jsx("div",{"data-slot":"dialog-footer",className:me("flex flex-col-reverse sm:flex-row sm:justify-end gap-2",e),...t}),MD=({className:e,...t})=>w.jsx(KU,{"data-slot":"dialog-title",className:me("text-lg font-semibold leading-none tracking-tight",e),...t}),AD=({className:e,...t})=>w.jsx(HU,{"data-slot":"dialog-description",className:me("text-sm text-muted-foreground",e),...t}),UU=({trigger:e,title:t,description:n,children:r,footer:o,focus:i,triggerProps:s,headerProps:a,headerClassName:u,titleProps:c,titleClassName:f,descriptionProps:p,descriptionClassName:m,contentProps:b,contentClassName:y,footerProps:v,footerClassName:E,...x})=>w.jsxs(Vy,{...x,children:[w.jsx(TD,{asChild:!0,...s,children:e}),w.jsxs(Ky,{className:y,focus:i,...b,children:[w.jsxs($D,{className:me("empty:hidden",u),...a,children:[t&&w.jsx(MD,{className:f,...c,children:t}),n&&w.jsx(AD,{className:m,...p,children:n})]}),r,o&&w.jsx(DD,{className:E,...v,children:o})]})]});var DR=1,zU=.9,GU=.8,YU=.17,pv=.1,mv=.999,XU=.9999,ZU=.99,QU=/[\\\/_+.#"@\[\(\{&]/,JU=/[\\\/_+.#"@\[\(\{&]/g,ez=/[\s-]/,ND=/[\s-]/g;function ub(e,t,n,r,o,i,s){if(i===t.length)return o===e.length?DR:ZU;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var u=r.charAt(i),c=n.indexOf(u,o),f=0,p,m,b,y;c>=0;)p=ub(e,t,n,r,c+1,i+1,s),p>f&&(c===o?p*=DR:QU.test(e.charAt(c-1))?(p*=GU,b=e.slice(o,c-1).match(JU),b&&o>0&&(p*=Math.pow(mv,b.length))):ez.test(e.charAt(c-1))?(p*=zU,y=e.slice(o,c-1).match(ND),y&&o>0&&(p*=Math.pow(mv,y.length))):(p*=YU,o>0&&(p*=Math.pow(mv,c-o))),e.charAt(c)!==t.charAt(i)&&(p*=XU)),(p<pv&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(m=ub(e,t,n,r,c+1,i+2,s),m*pv>p&&(p=m*pv)),p>f&&(f=p),c=n.indexOf(u,c+1);return s[a]=f,f}function MR(e){return e.toLowerCase().replace(ND," ")}function tz(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ub(e,t,MR(e),MR(t),0,0,{})}function Ci(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function nz({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=rz({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=_n(n),u=h.useCallback(c=>{if(i){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else o(c)},[i,e,o,a]);return[s,u]}function rz({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=_n(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function oz(e){const t=iz(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(az);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function iz(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=uz(o),a=lz(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sz=Symbol("radix.slottable");function az(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sz}function lz(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function uz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],On=cz.reduce((e,t)=>{const n=oz(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dz(e,t){e&&er.flushSync(()=>e.dispatchEvent(t))}var fz="DismissableLayer",cb="dismissableLayer.update",pz="dismissableLayer.pointerDownOutside",mz="dismissableLayer.focusOutside",AR,ID=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kD=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=h.useContext(ID),[f,p]=h.useState(null),m=f?.ownerDocument??globalThis?.document,[,b]=h.useState({}),y=it(t,_=>p(_)),v=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(E),R=f?v.indexOf(f):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,O=R>=x,S=vz(_=>{const $=_.target,V=[...c.branches].some(U=>U.contains($));!O||V||(o?.(_),s?.(_),_.defaultPrevented||a?.())},m),T=bz(_=>{const $=_.target;[...c.branches].some(U=>U.contains($))||(i?.(_),s?.(_),_.defaultPrevented||a?.())},m);return Z$(_=>{R===c.layers.size-1&&(r?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},m),h.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(AR=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),NR(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=AR)}},[f,m,n,c]),h.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),NR())},[f,c]),h.useEffect(()=>{const _=()=>b({});return document.addEventListener(cb,_),()=>document.removeEventListener(cb,_)},[]),w.jsx(On.div,{...u,ref:y,style:{pointerEvents:P?O?"auto":"none":void 0,...e.style},onFocusCapture:Ci(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ci(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ci(e.onPointerDownCapture,S.onPointerDownCapture)})});kD.displayName=fz;var hz="DismissableLayerBranch",gz=h.forwardRef((e,t)=>{const n=h.useContext(ID),r=h.useRef(null),o=it(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(On.div,{...e,ref:o})});gz.displayName=hz;function vz(e,t=globalThis?.document){const n=_n(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){FD(pz,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bz(e,t=globalThis?.document){const n=_n(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&FD(mz,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function NR(){const e=new CustomEvent(cb);document.dispatchEvent(e)}function FD(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?dz(o,i):o.dispatchEvent(i)}var hv="focusScope.autoFocusOnMount",gv="focusScope.autoFocusOnUnmount",IR={bubbles:!1,cancelable:!0},yz="FocusScope",LD=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=h.useState(null),c=_n(o),f=_n(i),p=h.useRef(null),m=it(t,v=>u(v)),b=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let v=function(P){if(b.paused||!a)return;const O=P.target;a.contains(O)?p.current=O:hi(p.current,{select:!0})},E=function(P){if(b.paused||!a)return;const O=P.relatedTarget;O!==null&&(a.contains(O)||hi(p.current,{select:!0}))},x=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&hi(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",E);const R=new MutationObserver(x);return a&&R.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",E),R.disconnect()}}},[r,a,b.paused]),h.useEffect(()=>{if(a){FR.add(b);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(hv,IR);a.addEventListener(hv,c),a.dispatchEvent(x),x.defaultPrevented||(xz(Sz(qD(a)),{select:!0}),document.activeElement===v&&hi(a))}return()=>{a.removeEventListener(hv,c),setTimeout(()=>{const x=new CustomEvent(gv,IR);a.addEventListener(gv,f),a.dispatchEvent(x),x.defaultPrevented||hi(v??document.body,{select:!0}),a.removeEventListener(gv,f),FR.remove(b)},0)}}},[a,c,f,b]);const y=h.useCallback(v=>{if(!n&&!r||b.paused)return;const E=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(E&&x){const R=v.currentTarget,[P,O]=wz(R);P&&O?!v.shiftKey&&x===O?(v.preventDefault(),n&&hi(P,{select:!0})):v.shiftKey&&x===P&&(v.preventDefault(),n&&hi(O,{select:!0})):x===R&&v.preventDefault()}},[n,r,b.paused]);return w.jsx(On.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});LD.displayName=yz;function xz(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hi(r,{select:t}),document.activeElement!==n)return}function wz(e){const t=qD(e),n=kR(t,e),r=kR(t.reverse(),e);return[n,r]}function qD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kR(e,t){for(const n of e)if(!Ez(n,{upTo:t}))return n}function Ez(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Cz(e){return e instanceof HTMLInputElement&&"select"in e}function hi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Cz(e)&&t&&e.select()}}var FR=Rz();function Rz(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=LR(e,t),e.unshift(t)},remove(t){e=LR(e,t),e[0]?.resume()}}}function LR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Sz(e){return e.filter(t=>t.tagName!=="A")}var Pz="Portal",jD=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=h.useState(!1);xn(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Wr.createPortal(w.jsx(On.div,{...r,ref:t}),s):null});jD.displayName=Pz;function Tz(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var jm=e=>{const{present:t,children:n}=e,r=_z(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=it(r.ref,Oz(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};jm.displayName="Presence";function _z(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,u]=Tz(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=ap(r.current);i.current=a==="mounted"?c:"none"},[a]),xn(()=>{const c=r.current,f=o.current;if(f!==e){const m=i.current,b=ap(c);e?u("MOUNT"):b==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),xn(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,p=b=>{const v=ap(r.current).includes(b.animationName);if(b.target===t&&v&&(u("ANIMATION_END"),!o.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},m=b=>{b.target===t&&(i.current=ap(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ap(e){return e?.animationName||"none"}function Oz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vv=0;function $z(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qR()),document.body.insertAdjacentElement("beforeend",e[1]??qR()),vv++,()=>{vv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vv--}},[])}function qR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Dz(e){const t=Mz(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(Nz);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mz(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=kz(o),a=Iz(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Az=Symbol("radix.slottable");function Nz(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Az}function Iz(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hy="Dialog",[BD]=Go(Hy),[Fz,Xr]=BD(Hy),VD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=h.useRef(null),u=h.useRef(null),[c=!1,f]=nz({prop:r,defaultProp:o,onChange:i});return w.jsx(Fz,{scope:t,triggerRef:a,contentRef:u,contentId:an(),titleId:an(),descriptionId:an(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};VD.displayName=Hy;var KD="DialogTrigger",Lz=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(KD,n),i=it(t,o.triggerRef);return w.jsx(On.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zy(o.open),...r,ref:i,onClick:Ci(e.onClick,o.onOpenToggle)})});Lz.displayName=KD;var Wy="DialogPortal",[qz,HD]=BD(Wy,{forceMount:void 0}),WD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Xr(Wy,t);return w.jsx(qz,{scope:t,forceMount:n,children:h.Children.map(r,s=>w.jsx(jm,{present:n||i.open,children:w.jsx(jD,{asChild:!0,container:o,children:s})}))})};WD.displayName=Wy;var Zp="DialogOverlay",UD=h.forwardRef((e,t)=>{const n=HD(Zp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Xr(Zp,e.__scopeDialog);return i.modal?w.jsx(jm,{present:r||i.open,children:w.jsx(Bz,{...o,ref:t})}):null});UD.displayName=Zp;var jz=Dz("DialogOverlay.RemoveScroll"),Bz=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(Zp,n);return w.jsx(ya,{as:jz,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(On.div,{"data-state":zy(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),us="DialogContent",zD=h.forwardRef((e,t)=>{const n=HD(us,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Xr(us,e.__scopeDialog);return w.jsx(jm,{present:r||i.open,children:i.modal?w.jsx(Vz,{...o,ref:t}):w.jsx(Kz,{...o,ref:t})})});zD.displayName=us;var Vz=h.forwardRef((e,t)=>{const n=Xr(us,e.__scopeDialog),r=h.useRef(null),o=it(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return Ed(i)},[]),w.jsx(GD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ci(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ci(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Ci(e.onFocusOutside,i=>i.preventDefault())})}),Kz=h.forwardRef((e,t)=>{const n=Xr(us,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return w.jsx(GD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),GD=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Xr(us,n),u=h.useRef(null),c=it(t,u);return $z(),w.jsxs(w.Fragment,{children:[w.jsx(LD,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(kD,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":zy(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(zz,{titleId:a.titleId}),w.jsx(Yz,{contentRef:u,descriptionId:a.descriptionId})]})]})}),Uy="DialogTitle",Hz=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(Uy,n);return w.jsx(On.h2,{id:o.titleId,...r,ref:t})});Hz.displayName=Uy;var YD="DialogDescription",Wz=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(YD,n);return w.jsx(On.p,{id:o.descriptionId,...r,ref:t})});Wz.displayName=YD;var XD="DialogClose",Uz=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(XD,n);return w.jsx(On.button,{type:"button",...r,ref:t,onClick:Ci(e.onClick,()=>o.onOpenChange(!1))})});Uz.displayName=XD;function zy(e){return e?"open":"closed"}var ZD="DialogTitleWarning",[Dme,QD]=Y$(ZD,{contentName:us,titleName:Uy,docsSlug:"dialog"}),zz=({titleId:e})=>{const t=QD(ZD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
54
|
-
|
|
55
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
56
|
-
|
|
57
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Gz="DialogDescriptionWarning",Yz=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${QD(Gz).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Xz=VD,Zz=WD,Qz=UD,Jz=zD,za='[cmdk-group=""]',bv='[cmdk-group-items=""]',eG='[cmdk-group-heading=""]',JD='[cmdk-item=""]',jR=`${JD}:not([aria-disabled="true"])`,db="cmdk-item-select",Ys="data-value",tG=(e,t,n)=>tz(e,t,n),eM=h.createContext(void 0),Cd=()=>h.useContext(eM),tM=h.createContext(void 0),Gy=()=>h.useContext(tM),nM=h.createContext(void 0),rM=h.forwardRef((e,t)=>{let n=Xs(()=>{var X,Q;return{search:"",value:(Q=(X=e.value)!=null?X:e.defaultValue)!=null?Q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Xs(()=>new Set),o=Xs(()=>new Map),i=Xs(()=>new Map),s=Xs(()=>new Set),a=oM(e),{label:u,children:c,value:f,onValueChange:p,filter:m,shouldFilter:b,loop:y,disablePointerSelection:v=!1,vimBindings:E=!0,...x}=e,R=an(),P=an(),O=an(),S=h.useRef(null),T=fG();cs(()=>{if(f!==void 0){let X=f.trim();n.current.value=X,_.emit()}},[f]),cs(()=>{T(6,F)},[]);let _=h.useMemo(()=>({subscribe:X=>(s.current.add(X),()=>s.current.delete(X)),snapshot:()=>n.current,setState:(X,Q,re)=>{var ce,se,ee,de;if(!Object.is(n.current[X],Q)){if(n.current[X]=Q,X==="search")H(),U(),T(1,A);else if(X==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let K=document.getElementById(O);K?K.focus():(ce=document.getElementById(R))==null||ce.focus()}if(T(7,()=>{var K;n.current.selectedItemId=(K=N())==null?void 0:K.id,_.emit()}),re||T(5,F),((se=a.current)==null?void 0:se.value)!==void 0){let K=Q??"";(de=(ee=a.current).onValueChange)==null||de.call(ee,K);return}}_.emit()}},emit:()=>{s.current.forEach(X=>X())}}),[]),$=h.useMemo(()=>({value:(X,Q,re)=>{var ce;Q!==((ce=i.current.get(X))==null?void 0:ce.value)&&(i.current.set(X,{value:Q,keywords:re}),n.current.filtered.items.set(X,V(Q,re)),T(2,()=>{U(),_.emit()}))},item:(X,Q)=>(r.current.add(X),Q&&(o.current.has(Q)?o.current.get(Q).add(X):o.current.set(Q,new Set([X]))),T(3,()=>{H(),U(),n.current.value||A(),_.emit()}),()=>{i.current.delete(X),r.current.delete(X),n.current.filtered.items.delete(X);let re=N();T(4,()=>{H(),re?.getAttribute("id")===X&&A(),_.emit()})}),group:X=>(o.current.has(X)||o.current.set(X,new Set),()=>{i.current.delete(X),o.current.delete(X)}),filter:()=>a.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:R,inputId:O,labelId:P,listInnerRef:S}),[]);function V(X,Q){var re,ce;let se=(ce=(re=a.current)==null?void 0:re.filter)!=null?ce:tG;return X?se(X,n.current.search,Q):0}function U(){if(!n.current.search||a.current.shouldFilter===!1)return;let X=n.current.filtered.items,Q=[];n.current.filtered.groups.forEach(ce=>{let se=o.current.get(ce),ee=0;se.forEach(de=>{let K=X.get(de);ee=Math.max(K,ee)}),Q.push([ce,ee])});let re=S.current;j().sort((ce,se)=>{var ee,de;let K=ce.getAttribute("id"),ue=se.getAttribute("id");return((ee=X.get(ue))!=null?ee:0)-((de=X.get(K))!=null?de:0)}).forEach(ce=>{let se=ce.closest(bv);se?se.appendChild(ce.parentElement===se?ce:ce.closest(`${bv} > *`)):re.appendChild(ce.parentElement===re?ce:ce.closest(`${bv} > *`))}),Q.sort((ce,se)=>se[1]-ce[1]).forEach(ce=>{var se;let ee=(se=S.current)==null?void 0:se.querySelector(`${za}[${Ys}="${encodeURIComponent(ce[0])}"]`);ee?.parentElement.appendChild(ee)})}function A(){let X=j().find(re=>re.getAttribute("aria-disabled")!=="true"),Q=X?.getAttribute(Ys);_.setState("value",Q||void 0)}function H(){var X,Q,re,ce;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let se=0;for(let ee of r.current){let de=(Q=(X=i.current.get(ee))==null?void 0:X.value)!=null?Q:"",K=(ce=(re=i.current.get(ee))==null?void 0:re.keywords)!=null?ce:[],ue=V(de,K);n.current.filtered.items.set(ee,ue),ue>0&&se++}for(let[ee,de]of o.current)for(let K of de)if(n.current.filtered.items.get(K)>0){n.current.filtered.groups.add(ee);break}n.current.filtered.count=se}function F(){var X,Q,re;let ce=N();ce&&(((X=ce.parentElement)==null?void 0:X.firstChild)===ce&&((re=(Q=ce.closest(za))==null?void 0:Q.querySelector(eG))==null||re.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function N(){var X;return(X=S.current)==null?void 0:X.querySelector(`${JD}[aria-selected="true"]`)}function j(){var X;return Array.from(((X=S.current)==null?void 0:X.querySelectorAll(jR))||[])}function I(X){let Q=j()[X];Q&&_.setState("value",Q.getAttribute(Ys))}function k(X){var Q;let re=N(),ce=j(),se=ce.findIndex(de=>de===re),ee=ce[se+X];(Q=a.current)!=null&&Q.loop&&(ee=se+X<0?ce[ce.length-1]:se+X===ce.length?ce[0]:ce[se+X]),ee&&_.setState("value",ee.getAttribute(Ys))}function q(X){let Q=N(),re=Q?.closest(za),ce;for(;re&&!ce;)re=X>0?cG(re,za):dG(re,za),ce=re?.querySelector(jR);ce?_.setState("value",ce.getAttribute(Ys)):k(X)}let z=()=>I(j().length-1),W=X=>{X.preventDefault(),X.metaKey?z():X.altKey?q(1):k(1)},te=X=>{X.preventDefault(),X.metaKey?I(0):X.altKey?q(-1):k(-1)};return h.createElement(On.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:X=>{var Q;(Q=x.onKeyDown)==null||Q.call(x,X);let re=X.nativeEvent.isComposing||X.keyCode===229;if(!(X.defaultPrevented||re))switch(X.key){case"n":case"j":{E&&X.ctrlKey&&W(X);break}case"ArrowDown":{W(X);break}case"p":case"k":{E&&X.ctrlKey&&te(X);break}case"ArrowUp":{te(X);break}case"Home":{X.preventDefault(),I(0);break}case"End":{X.preventDefault(),z();break}case"Enter":{X.preventDefault();let ce=N();if(ce){let se=new Event(db);ce.dispatchEvent(se)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:mG},u),Bm(e,X=>h.createElement(tM.Provider,{value:_},h.createElement(eM.Provider,{value:$},X))))}),nG=h.forwardRef((e,t)=>{var n,r;let o=an(),i=h.useRef(null),s=h.useContext(nM),a=Cd(),u=oM(e),c=(r=(n=u.current)==null?void 0:n.forceMount)!=null?r:s?.forceMount;cs(()=>{if(!c)return a.item(o,s?.id)},[c]);let f=iM(o,i,[e.value,e.children,i],e.keywords),p=Gy(),m=Pi(T=>T.value&&T.value===f.current),b=Pi(T=>c||a.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);h.useEffect(()=>{let T=i.current;if(!(!T||e.disabled))return T.addEventListener(db,y),()=>T.removeEventListener(db,y)},[b,e.onSelect,e.disabled]);function y(){var T,_;v(),(_=(T=u.current).onSelect)==null||_.call(T,f.current)}function v(){p.setState("value",f.current,!0)}if(!b)return null;let{disabled:E,value:x,onSelect:R,forceMount:P,keywords:O,...S}=e;return h.createElement(On.div,{ref:Ht(i,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!m,"data-disabled":!!E,"data-selected":!!m,onPointerMove:E||a.getDisablePointerSelection()?void 0:v,onClick:E?void 0:y},e.children)}),rG=h.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,s=an(),a=h.useRef(null),u=h.useRef(null),c=an(),f=Cd(),p=Pi(b=>o||f.filter()===!1?!0:b.search?b.filtered.groups.has(s):!0);cs(()=>f.group(s),[]),iM(s,a,[e.value,e.heading,u]);let m=h.useMemo(()=>({id:s,forceMount:o}),[o]);return h.createElement(On.div,{ref:Ht(a,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&h.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Bm(e,b=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},h.createElement(nM.Provider,{value:m},b))))}),oG=h.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=h.useRef(null),i=Pi(s=>!s.search);return!n&&!i?null:h.createElement(On.div,{ref:Ht(o,t),...r,"cmdk-separator":"",role:"separator"})}),iG=h.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=Gy(),s=Pi(c=>c.search),a=Pi(c=>c.selectedItemId),u=Cd();return h.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),h.createElement(On.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":a,id:u.inputId,type:"text",value:o?e.value:s,onChange:c=>{o||i.setState("search",c.target.value),n?.(c.target.value)}})}),sG=h.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=h.useRef(null),s=h.useRef(null),a=Pi(c=>c.selectedItemId),u=Cd();return h.useEffect(()=>{if(s.current&&i.current){let c=s.current,f=i.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let b=c.offsetHeight;f.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(p),m.unobserve(c)}}},[]),h.createElement(On.div,{ref:Ht(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:u.listId},Bm(e,c=>h.createElement("div",{ref:Ht(s,u.listInnerRef),"cmdk-list-sizer":""},c)))}),aG=h.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:s,...a}=e;return h.createElement(Xz,{open:n,onOpenChange:r},h.createElement(Zz,{container:s},h.createElement(Qz,{"cmdk-overlay":"",className:o}),h.createElement(Jz,{"aria-label":e.label,"cmdk-dialog":"",className:i},h.createElement(rM,{ref:t,...a}))))}),lG=h.forwardRef((e,t)=>Pi(n=>n.filtered.count===0)?h.createElement(On.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),uG=h.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return h.createElement(On.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Bm(e,s=>h.createElement("div",{"aria-hidden":!0},s)))}),ws=Object.assign(rM,{List:sG,Item:nG,Input:iG,Group:rG,Separator:oG,Dialog:aG,Empty:lG,Loading:uG});function cG(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function dG(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function oM(e){let t=h.useRef(e);return cs(()=>{t.current=e}),t}var cs=typeof window>"u"?h.useEffect:h.useLayoutEffect;function Xs(e){let t=h.useRef();return t.current===void 0&&(t.current=e()),t}function Pi(e){let t=Gy(),n=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,n,n)}function iM(e,t,n,r=[]){let o=h.useRef(),i=Cd();return cs(()=>{var s;let a=(()=>{var c;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(c=f.current.textContent)==null?void 0:c.trim():o.current}})(),u=r.map(c=>c.trim());i.value(e,a,u),(s=t.current)==null||s.setAttribute(Ys,a),o.current=a}),o}var fG=()=>{let[e,t]=h.useState(),n=Xs(()=>new Map);return cs(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function pG(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Bm({asChild:e,children:t},n){return e&&h.isValidElement(t)?h.cloneElement(pG(t),{ref:t.ref},n(t.props.children)):n(t)}var mG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Rd=({className:e,...t})=>w.jsx(ws,{"data-slot":"auto-complete",className:me("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}),hG=({children:e,...t})=>w.jsx(Vy,{...t,"data-slot":"auto-complete-dialog",children:w.jsx(Ky,{className:"p-0 overflow-hidden shadow-lg","data-slot":"auto-complete-dialog-content",children:w.jsx(Rd,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Vm=({className:e,...t})=>w.jsxs("div",{className:"flex items-center px-3 border-b","data-slot":"auto-complete-input-container",children:[w.jsx(PH,{className:"w-4 h-4 mr-2 opacity-50 shrink-0","data-slot":"auto-complete-input-icon"}),w.jsx(ws.Input,{"data-slot":"auto-complete-input",className:me("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),Km=({className:e,...t})=>w.jsx(ws.List,{"data-slot":"auto-complete-list",className:me("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Hm=e=>w.jsx(ws.Empty,{className:"py-6 text-sm text-center","data-slot":"auto-complete-empty",...e}),sM=({className:e,...t})=>w.jsx(ws.Group,{"data-slot":"auto-complete-group",className:me("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}),gG=({className:e,...t})=>w.jsx(ws.Separator,{"data-slot":"auto-complete-separator",className:me("-mx-1 h-px bg-input",e),...t}),nd=({className:e,...t})=>w.jsx(ws.Item,{"data-slot":"auto-complete-item",className:me("aria-selected:bg-accent aria-selected:text-accent-foreground","aria-disabled:pointer-events-none aria-disabled:opacity-50","relative flex gap-2 cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",e),...t}),aM=({className:e,...t})=>w.jsx("span",{"data-slot":"auto-complete-shortcut",className:me("ml-auto text-xs tracking-widest text-muted-foreground",e),...t}),vG=({items:e,placeholder:t="Buscar...",emptyMessage:n="No se encontraron resultados",onSelect:r,containerClassName:o,containerProps:i,inputClassName:s,inputProps:a,listClassName:u,listProps:c,itemClassName:f,itemProps:p,emptyClassName:m,emptyProps:b})=>w.jsxs(Rd,{className:o,...i,children:[w.jsx(Vm,{placeholder:t,className:s,...a}),w.jsx(Km,{className:u,...c,children:e.map(y=>w.jsxs(nd,{className:f,onSelect:()=>r?.(y.value,y),...p,children:[y.label,y.shortcut&&w.jsx(aM,{children:y.shortcut})]},y.value))}),w.jsx(Hm,{className:m,...b,children:n})]}),Yy=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Yy.displayName="AvatarRootContext");function lM(){const e=h.useContext(Yy);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.":zt(13));return e}const Xy={imageLoadingStatus:()=>null},Zy=h.forwardRef(function(t,n){const{className:r,render:o,style:i,...s}=t,[a,u]=h.useState("idle"),c={imageLoadingStatus:a},f=h.useMemo(()=>({imageLoadingStatus:a,setImageLoadingStatus:u}),[a,u]),p=lt("span",t,{state:c,ref:n,props:s,stateAttributesMapping:Xy});return w.jsx(Yy.Provider,{value:f,children:p})});process.env.NODE_ENV!=="production"&&(Zy.displayName="AvatarRoot");function bG(e,{referrerPolicy:t,crossOrigin:n}){const[r,o]=h.useState("idle");return Le(()=>{if(!e)return o("error"),At;let i=!0;const s=new window.Image,a=u=>()=>{i&&o(u)};return o("loading"),s.onload=a("loaded"),s.onerror=a("error"),t&&(s.referrerPolicy=t),s.crossOrigin=n??null,s.src=e,s.complete&&o(s.naturalWidth>0?"loaded":"error"),()=>{i=!1}},[e,n,t]),r}const yG={...Xy,...xs},Qy=h.forwardRef(function(t,n){const{className:r,render:o,onLoadingStatusChange:i,referrerPolicy:s,crossOrigin:a,style:u,...c}=t,f=lM(),p=bG(t.src,{referrerPolicy:s,crossOrigin:a}),m=p==="loaded",{mounted:b,transitionStatus:y,setMounted:v}=yy(m),E=h.useRef(null),x=He(O=>{i?.(O),f.setImageLoadingStatus(O)});Le(()=>{p!=="idle"&&x(p)},[p,x]);const R={imageLoadingStatus:p,transitionStatus:y};ma({open:m,ref:E,onComplete(){m||v(!1)}});const P=lt("img",t,{state:R,ref:[n,E],props:c,stateAttributesMapping:yG,enabled:b});return b?P:null});process.env.NODE_ENV!=="production"&&(Qy.displayName="AvatarImage");const Jy=h.forwardRef(function(t,n){const{className:r,render:o,delay:i,style:s,...a}=t,{imageLoadingStatus:u}=lM(),[c,f]=h.useState(i===void 0),p=po();return h.useEffect(()=>(i!==void 0&&p.start(i,()=>f(!0)),p.clear),[p,i]),lt("span",t,{state:{imageLoadingStatus:u},ref:n,props:a,stateAttributesMapping:Xy,enabled:u!=="loaded"&&c})});process.env.NODE_ENV!=="production"&&(Jy.displayName="AvatarFallback");const xG=Object.freeze(Object.defineProperty({__proto__:null,Fallback:Jy,Image:Qy,Root:Zy},Symbol.toStringTag,{value:"Module"})),uM=e=>e.split(" ").map(t=>t.charAt(0)).join("");function wG(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}const EG=({children:e,as:t="div",props:n})=>{let r;return typeof e=="string"?r=w.jsx(t,{children:e}):D.isValidElement(e)?r=e:typeof e=="function"?r=e(n):r=w.jsx(t,{children:e}),D.isValidElement(r)?r:w.jsx(t,{children:r})},Sd=()=>{const e=D.createContext(null);return[()=>{const n=D.useContext(e);if(n===null)throw new Error("Context value is null");return n},e.Provider]},CG=e=>{e.preventDefault();const t=e.currentTarget.elements,n={};return Array.from(t).forEach(r=>{const o=r;o.name&&(n[o.name]=o.value)}),n};var to={},Pp={exports:{}};Pp.exports;var BR;function cM(){return BR||(BR=1,(function(e){const n=(i=0)=>s=>`\x1B[${38+i};5;${s}m`,r=(i=0)=>(s,a,u)=>`\x1B[${38+i};2;${s};${a};${u}m`;function o(){const i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[a,u]of Object.entries(s)){for(const[c,f]of Object.entries(u))s[c]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},u[c]=s[c],i.set(f[0],f[1]);Object.defineProperty(s,a,{value:u,enumerable:!1})}return Object.defineProperty(s,"codes",{value:i,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=n(),s.color.ansi16m=r(),s.bgColor.ansi256=n(10),s.bgColor.ansi16m=r(10),Object.defineProperties(s,{rgbToAnsi256:{value:(a,u,c)=>a===u&&u===c?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(u/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:a=>{const u=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!u)return[0,0,0];let{colorString:c}=u.groups;c.length===3&&(c=c.split("").map(p=>p+p).join(""));const f=Number.parseInt(c,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:a=>s.rgbToAnsi256(...s.hexToRgb(a)),enumerable:!1}}),s}Object.defineProperty(e,"exports",{enumerable:!0,get:o})})(Pp)),Pp.exports}var Yi={},VR;function Wm(){if(VR)return Yi;VR=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.printIteratorEntries=t,Yi.printIteratorValues=n,Yi.printListItems=r,Yi.printObjectProperties=o;const e=(i,s)=>{const a=Object.keys(i).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(u=>{Object.getOwnPropertyDescriptor(i,u).enumerable&&a.push(u)}),a};function t(i,s,a,u,c,f,p=": "){let m="",b=i.next();if(!b.done){m+=s.spacingOuter;const y=a+s.indent;for(;!b.done;){const v=f(b.value[0],s,y,u,c),E=f(b.value[1],s,y,u,c);m+=y+v+p+E,b=i.next(),b.done?s.min||(m+=","):m+=","+s.spacingInner}m+=s.spacingOuter+a}return m}function n(i,s,a,u,c,f){let p="",m=i.next();if(!m.done){p+=s.spacingOuter;const b=a+s.indent;for(;!m.done;)p+=b+f(m.value,s,b,u,c),m=i.next(),m.done?s.min||(p+=","):p+=","+s.spacingInner;p+=s.spacingOuter+a}return p}function r(i,s,a,u,c,f){let p="";if(i.length){p+=s.spacingOuter;const m=a+s.indent;for(let b=0;b<i.length;b++)p+=m,b in i&&(p+=f(i[b],s,m,u,c)),b<i.length-1?p+=","+s.spacingInner:s.min||(p+=",");p+=s.spacingOuter+a}return p}function o(i,s,a,u,c,f){let p="";const m=e(i,s.compareKeys);if(m.length){p+=s.spacingOuter;const b=a+s.indent;for(let y=0;y<m.length;y++){const v=m[y],E=f(v,s,b,u,c),x=f(i[v],s,b,u,c);p+=b+E+": "+x,y<m.length-1?p+=","+s.spacingInner:s.min||(p+=",")}p+=s.spacingOuter+a}return p}return Yi}var To={},KR;function RG(){if(KR)return To;KR=1,Object.defineProperty(To,"__esModule",{value:!0}),To.test=To.serialize=To.default=void 0;var e=Wm(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=t["jest-symbol-do-not-touch"]||t.Symbol;const r=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,o=" ",i=(c,f,p,m,b,y)=>{const v=c.toString();return v==="ArrayContaining"||v==="ArrayNotContaining"?++m>f.maxDepth?"["+v+"]":v+o+"["+(0,e.printListItems)(c.sample,f,p,m,b,y)+"]":v==="ObjectContaining"||v==="ObjectNotContaining"?++m>f.maxDepth?"["+v+"]":v+o+"{"+(0,e.printObjectProperties)(c.sample,f,p,m,b,y)+"}":v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining"?v+o+y(c.sample,f,p,m,b):c.toAsymmetricMatcher()};To.serialize=i;const s=c=>c&&c.$$typeof===r;To.test=s;var u={serialize:i,test:s};return To.default=u,To}var _o={},yv,HR;function SG(){return HR||(HR=1,yv=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}),yv}var WR;function PG(){if(WR)return _o;WR=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.test=_o.serialize=_o.default=void 0;var e=n(SG()),t=n(cM());function n(u){return u&&u.__esModule?u:{default:u}}const r=u=>u.replace((0,e.default)(),c=>{switch(c){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=u=>typeof u=="string"&&!!u.match((0,e.default)());_o.test=o;const i=(u,c,f,p,m,b)=>b(r(u),c,f,p,m);_o.serialize=i;var a={serialize:i,test:o};return _o.default=a,_o}var Oo={},UR;function TG(){if(UR)return Oo;UR=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.test=Oo.serialize=Oo.default=void 0;var e=Wm();const t=" ",n=["DOMStringMap","NamedNodeMap"],r=/^(HTML\w*Collection|NodeList)$/,o=f=>n.indexOf(f)!==-1||r.test(f),i=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);Oo.test=i;const s=f=>f.constructor.name==="NamedNodeMap",a=(f,p,m,b,y,v)=>{const E=f.constructor.name;return++b>p.maxDepth?"["+E+"]":(p.min?"":E+t)+(n.indexOf(E)!==-1?"{"+(0,e.printObjectProperties)(s(f)?Array.from(f).reduce((x,R)=>(x[R.name]=R.value,x),{}):{...f},p,m,b,y,v)+"}":"["+(0,e.printListItems)(Array.from(f),p,m,b,y,v)+"]")};Oo.serialize=a;var c={serialize:a,test:i};return Oo.default=c,Oo}var $o={},Bn={},lp={},zR;function _G(){if(zR)return lp;zR=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=e;function e(t){return t.replace(/</g,"<").replace(/>/g,">")}return lp}var GR;function ex(){if(GR)return Bn;GR=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.printText=Bn.printProps=Bn.printElementAsLeaf=Bn.printElement=Bn.printComment=Bn.printChildren=void 0;var e=t(_G());function t(u){return u&&u.__esModule?u:{default:u}}const n=(u,c,f,p,m,b,y)=>{const v=p+f.indent,E=f.colors;return u.map(x=>{const R=c[x];let P=y(R,f,v,m,b);return typeof R!="string"&&(P.indexOf(`
|
|
58
|
-
`)!==-1&&(P=f.spacingOuter+v+P+f.spacingOuter+p),P="{"+P+"}"),f.spacingInner+p+E.prop.open+x+E.prop.close+"="+E.value.open+P+E.value.close}).join("")};Bn.printProps=n;const r=(u,c,f,p,m,b)=>u.map(y=>c.spacingOuter+f+(typeof y=="string"?o(y,c):b(y,c,f,p,m))).join("");Bn.printChildren=r;const o=(u,c)=>{const f=c.colors.content;return f.open+(0,e.default)(u)+f.close};Bn.printText=o;const i=(u,c)=>{const f=c.colors.comment;return f.open+"<!--"+(0,e.default)(u)+"-->"+f.close};Bn.printComment=i;const s=(u,c,f,p,m)=>{const b=p.colors.tag;return b.open+"<"+u+(c&&b.close+c+p.spacingOuter+m+b.open)+(f?">"+b.close+f+p.spacingOuter+m+b.open+"</"+u:(c&&!p.min?"":" ")+"/")+">"+b.close};Bn.printElement=s;const a=(u,c)=>{const f=c.colors.tag;return f.open+"<"+u+f.close+" …"+f.open+" />"+f.close};return Bn.printElementAsLeaf=a,Bn}var YR;function OG(){if(YR)return $o;YR=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.test=$o.serialize=$o.default=void 0;var e=ex();const t=1,n=3,r=8,o=11,i=/^((HTML|SVG)\w*)?Element$/,s=v=>{try{return typeof v.hasAttribute=="function"&&v.hasAttribute("is")}catch{return!1}},a=v=>{const E=v.constructor.name,{nodeType:x,tagName:R}=v,P=typeof R=="string"&&R.includes("-")||s(v);return x===t&&(i.test(E)||P)||x===n&&E==="Text"||x===r&&E==="Comment"||x===o&&E==="DocumentFragment"},u=v=>{var E;return(v==null||(E=v.constructor)===null||E===void 0?void 0:E.name)&&a(v)};$o.test=u;function c(v){return v.nodeType===n}function f(v){return v.nodeType===r}function p(v){return v.nodeType===o}const m=(v,E,x,R,P,O)=>{if(c(v))return(0,e.printText)(v.data,E);if(f(v))return(0,e.printComment)(v.data,E);const S=p(v)?"DocumentFragment":v.tagName.toLowerCase();return++R>E.maxDepth?(0,e.printElementAsLeaf)(S,E):(0,e.printElement)(S,(0,e.printProps)(p(v)?[]:Array.from(v.attributes).map(T=>T.name).sort(),p(v)?{}:Array.from(v.attributes).reduce((T,_)=>(T[_.name]=_.value,T),{}),E,x+E.indent,R,P,O),(0,e.printChildren)(Array.prototype.slice.call(v.childNodes||v.children),E,x+E.indent,R,P,O),E,x)};$o.serialize=m;var y={serialize:m,test:u};return $o.default=y,$o}var Do={},XR;function $G(){if(XR)return Do;XR=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.test=Do.serialize=Do.default=void 0;var e=Wm();const t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",r="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",a="@@__IMMUTABLE_SEQ__@@",u="@@__IMMUTABLE_SET__@@",c="@@__IMMUTABLE_STACK__@@",f=_=>"Immutable."+_,p=_=>"["+_+"]",m=" ",b="…",y=(_,$,V,U,A,H,F)=>++U>$.maxDepth?p(f(F)):f(F)+m+"{"+(0,e.printIteratorEntries)(_.entries(),$,V,U,A,H)+"}";function v(_){let $=0;return{next(){if($<_._keys.length){const V=_._keys[$++];return{done:!1,value:[V,_.get(V)]}}return{done:!0,value:void 0}}}}const E=(_,$,V,U,A,H)=>{const F=f(_._name||"Record");return++U>$.maxDepth?p(F):F+m+"{"+(0,e.printIteratorEntries)(v(_),$,V,U,A,H)+"}"},x=(_,$,V,U,A,H)=>{const F=f("Seq");return++U>$.maxDepth?p(F):_[r]?F+m+"{"+(_._iter||_._object?(0,e.printIteratorEntries)(_.entries(),$,V,U,A,H):b)+"}":F+m+"["+(_._iter||_._array||_._collection||_._iterable?(0,e.printIteratorValues)(_.values(),$,V,U,A,H):b)+"]"},R=(_,$,V,U,A,H,F)=>++U>$.maxDepth?p(f(F)):f(F)+m+"["+(0,e.printIteratorValues)(_.values(),$,V,U,A,H)+"]",P=(_,$,V,U,A,H)=>_[o]?y(_,$,V,U,A,H,_[i]?"OrderedMap":"Map"):_[n]?R(_,$,V,U,A,H,"List"):_[u]?R(_,$,V,U,A,H,_[i]?"OrderedSet":"Set"):_[c]?R(_,$,V,U,A,H,"Stack"):_[a]?x(_,$,V,U,A,H):E(_,$,V,U,A,H);Do.serialize=P;const O=_=>_&&(_[t]===!0||_[s]===!0);Do.test=O;var T={serialize:P,test:O};return Do.default=T,Do}var Mo={},up={exports:{}},Pt={};var ZR;function DG(){if(ZR)return Pt;ZR=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,s=60110,a=60112,u=60113,c=60120,f=60115,p=60116,m=60121,b=60122,y=60117,v=60129,E=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),n=x("react.fragment"),r=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),a=x("react.forward_ref"),u=x("react.suspense"),c=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),m=x("react.block"),b=x("react.server.block"),y=x("react.fundamental"),v=x("react.debug_trace_mode"),E=x("react.legacy_hidden")}function R(F){if(typeof F=="object"&&F!==null){var N=F.$$typeof;switch(N){case e:switch(F=F.type,F){case n:case o:case r:case u:case c:return F;default:switch(F=F&&F.$$typeof,F){case s:case a:case p:case f:case i:return F;default:return N}}case t:return N}}}var P=i,O=e,S=a,T=n,_=p,$=f,V=t,U=o,A=r,H=u;return Pt.ContextConsumer=s,Pt.ContextProvider=P,Pt.Element=O,Pt.ForwardRef=S,Pt.Fragment=T,Pt.Lazy=_,Pt.Memo=$,Pt.Portal=V,Pt.Profiler=U,Pt.StrictMode=A,Pt.Suspense=H,Pt.isAsyncMode=function(){return!1},Pt.isConcurrentMode=function(){return!1},Pt.isContextConsumer=function(F){return R(F)===s},Pt.isContextProvider=function(F){return R(F)===i},Pt.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},Pt.isForwardRef=function(F){return R(F)===a},Pt.isFragment=function(F){return R(F)===n},Pt.isLazy=function(F){return R(F)===p},Pt.isMemo=function(F){return R(F)===f},Pt.isPortal=function(F){return R(F)===t},Pt.isProfiler=function(F){return R(F)===o},Pt.isStrictMode=function(F){return R(F)===r},Pt.isSuspense=function(F){return R(F)===u},Pt.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===n||F===o||F===v||F===r||F===u||F===c||F===E||typeof F=="object"&&F!==null&&(F.$$typeof===p||F.$$typeof===f||F.$$typeof===i||F.$$typeof===s||F.$$typeof===a||F.$$typeof===y||F.$$typeof===m||F[0]===b)},Pt.typeOf=R,Pt}var Tt={};var QR;function MG(){return QR||(QR=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,s=60110,a=60112,u=60113,c=60120,f=60115,p=60116,m=60121,b=60122,y=60117,v=60129,E=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;e=x("react.element"),t=x("react.portal"),n=x("react.fragment"),r=x("react.strict_mode"),o=x("react.profiler"),i=x("react.provider"),s=x("react.context"),a=x("react.forward_ref"),u=x("react.suspense"),c=x("react.suspense_list"),f=x("react.memo"),p=x("react.lazy"),m=x("react.block"),b=x("react.server.block"),y=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),v=x("react.debug_trace_mode"),x("react.offscreen"),E=x("react.legacy_hidden")}var R=!1;function P(le){return!!(typeof le=="string"||typeof le=="function"||le===n||le===o||le===v||le===r||le===u||le===c||le===E||R||typeof le=="object"&&le!==null&&(le.$$typeof===p||le.$$typeof===f||le.$$typeof===i||le.$$typeof===s||le.$$typeof===a||le.$$typeof===y||le.$$typeof===m||le[0]===b))}function O(le){if(typeof le=="object"&&le!==null){var Z=le.$$typeof;switch(Z){case e:var xe=le.type;switch(xe){case n:case o:case r:case u:case c:return xe;default:var Re=xe&&xe.$$typeof;switch(Re){case s:case a:case p:case f:case i:return Re;default:return Z}}case t:return Z}}}var S=s,T=i,_=e,$=a,V=n,U=p,A=f,H=t,F=o,N=r,j=u,I=!1,k=!1;function q(le){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(le){return k||(k=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(le){return O(le)===s}function te(le){return O(le)===i}function X(le){return typeof le=="object"&&le!==null&&le.$$typeof===e}function Q(le){return O(le)===a}function re(le){return O(le)===n}function ce(le){return O(le)===p}function se(le){return O(le)===f}function ee(le){return O(le)===t}function de(le){return O(le)===o}function K(le){return O(le)===r}function ue(le){return O(le)===u}Tt.ContextConsumer=S,Tt.ContextProvider=T,Tt.Element=_,Tt.ForwardRef=$,Tt.Fragment=V,Tt.Lazy=U,Tt.Memo=A,Tt.Portal=H,Tt.Profiler=F,Tt.StrictMode=N,Tt.Suspense=j,Tt.isAsyncMode=q,Tt.isConcurrentMode=z,Tt.isContextConsumer=W,Tt.isContextProvider=te,Tt.isElement=X,Tt.isForwardRef=Q,Tt.isFragment=re,Tt.isLazy=ce,Tt.isMemo=se,Tt.isPortal=ee,Tt.isProfiler=de,Tt.isStrictMode=K,Tt.isSuspense=ue,Tt.isValidElementType=P,Tt.typeOf=O})()),Tt}var JR;function AG(){return JR||(JR=1,process.env.NODE_ENV==="production"?up.exports=DG():up.exports=MG()),up.exports}var eS;function NG(){if(eS)return Mo;eS=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.test=Mo.serialize=Mo.default=void 0;var e=r(AG()),t=ex();function n(p){if(typeof WeakMap!="function")return null;var m=new WeakMap,b=new WeakMap;return(n=function(y){return y?b:m})(p)}function r(p,m){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=n(m);if(b&&b.has(p))return b.get(p);var y={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in p)if(E!=="default"&&Object.prototype.hasOwnProperty.call(p,E)){var x=v?Object.getOwnPropertyDescriptor(p,E):null;x&&(x.get||x.set)?Object.defineProperty(y,E,x):y[E]=p[E]}return y.default=p,b&&b.set(p,y),y}const o=(p,m=[])=>(Array.isArray(p)?p.forEach(b=>{o(b,m)}):p!=null&&p!==!1&&m.push(p),m),i=p=>{const m=p.type;if(typeof m=="string")return m;if(typeof m=="function")return m.displayName||m.name||"Unknown";if(e.isFragment(p))return"React.Fragment";if(e.isSuspense(p))return"React.Suspense";if(typeof m=="object"&&m!==null){if(e.isContextProvider(p))return"Context.Provider";if(e.isContextConsumer(p))return"Context.Consumer";if(e.isForwardRef(p)){if(m.displayName)return m.displayName;const b=m.render.displayName||m.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(e.isMemo(p)){const b=m.displayName||m.type.displayName||m.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},s=p=>{const{props:m}=p;return Object.keys(m).filter(b=>b!=="children"&&m[b]!==void 0).sort()},a=(p,m,b,y,v,E)=>++y>m.maxDepth?(0,t.printElementAsLeaf)(i(p),m):(0,t.printElement)(i(p),(0,t.printProps)(s(p),p.props,m,b+m.indent,y,v,E),(0,t.printChildren)(o(p.props.children),m,b+m.indent,y,v,E),m,b);Mo.serialize=a;const u=p=>p!=null&&e.isElement(p);Mo.test=u;var f={serialize:a,test:u};return Mo.default=f,Mo}var Ao={},tS;function IG(){if(tS)return Ao;tS=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.test=Ao.serialize=Ao.default=void 0;var e=ex(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=t["jest-symbol-do-not-touch"]||t.Symbol;const r=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,o=c=>{const{props:f}=c;return f?Object.keys(f).filter(p=>f[p]!==void 0).sort():[]},i=(c,f,p,m,b,y)=>++m>f.maxDepth?(0,e.printElementAsLeaf)(c.type,f):(0,e.printElement)(c.type,c.props?(0,e.printProps)(o(c),c.props,f,p+f.indent,m,b,y):"",c.children?(0,e.printChildren)(c.children,f,p+f.indent,m,b,y):"",f,p);Ao.serialize=i;const s=c=>c&&c.$$typeof===r;Ao.test=s;var u={serialize:i,test:s};return Ao.default=u,Ao}var nS;function kG(){if(nS)return to;nS=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=to.DEFAULT_OPTIONS=void 0,to.format=se,to.plugins=void 0;var e=c(cM()),t=Wm(),n=c(RG()),r=c(PG()),o=c(TG()),i=c(OG()),s=c($G()),a=c(NG()),u=c(IG());function c(K){return K&&K.__esModule?K:{default:K}}const f=Object.prototype.toString,p=Date.prototype.toISOString,m=Error.prototype.toString,b=RegExp.prototype.toString,y=K=>typeof K.constructor=="function"&&K.constructor.name||"Object",v=K=>typeof window<"u"&&K===window,E=/^Symbol\((.*)\)(.*)$/,x=/\n/gi;class R extends Error{constructor(ue,le){super(ue),this.stack=le,this.name=this.constructor.name}}function P(K){return K==="[object Array]"||K==="[object ArrayBuffer]"||K==="[object DataView]"||K==="[object Float32Array]"||K==="[object Float64Array]"||K==="[object Int8Array]"||K==="[object Int16Array]"||K==="[object Int32Array]"||K==="[object Uint8Array]"||K==="[object Uint8ClampedArray]"||K==="[object Uint16Array]"||K==="[object Uint32Array]"}function O(K){return Object.is(K,-0)?"-0":String(K)}function S(K){return`${K}n`}function T(K,ue){return ue?"[Function "+(K.name||"anonymous")+"]":"[Function]"}function _(K){return String(K).replace(E,"Symbol($1)")}function $(K){return"["+m.call(K)+"]"}function V(K,ue,le,Z){if(K===!0||K===!1)return""+K;if(K===void 0)return"undefined";if(K===null)return"null";const xe=typeof K;if(xe==="number")return O(K);if(xe==="bigint")return S(K);if(xe==="string")return Z?'"'+K.replace(/"|\\/g,"\\$&")+'"':'"'+K+'"';if(xe==="function")return T(K,ue);if(xe==="symbol")return _(K);const Re=f.call(K);return Re==="[object WeakMap]"?"WeakMap {}":Re==="[object WeakSet]"?"WeakSet {}":Re==="[object Function]"||Re==="[object GeneratorFunction]"?T(K,ue):Re==="[object Symbol]"?_(K):Re==="[object Date]"?isNaN(+K)?"Date { NaN }":p.call(K):Re==="[object Error]"?$(K):Re==="[object RegExp]"?le?b.call(K).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(K):K instanceof Error?$(K):null}function U(K,ue,le,Z,xe,Re){if(xe.indexOf(K)!==-1)return"[Circular]";xe=xe.slice(),xe.push(K);const Ae=++Z>ue.maxDepth,Se=ue.min;if(ue.callToJSON&&!Ae&&K.toJSON&&typeof K.toJSON=="function"&&!Re)return N(K.toJSON(),ue,le,Z,xe,!0);const Oe=f.call(K);return Oe==="[object Arguments]"?Ae?"[Arguments]":(Se?"":"Arguments ")+"["+(0,t.printListItems)(K,ue,le,Z,xe,N)+"]":P(Oe)?Ae?"["+K.constructor.name+"]":(Se||!ue.printBasicPrototype&&K.constructor.name==="Array"?"":K.constructor.name+" ")+"["+(0,t.printListItems)(K,ue,le,Z,xe,N)+"]":Oe==="[object Map]"?Ae?"[Map]":"Map {"+(0,t.printIteratorEntries)(K.entries(),ue,le,Z,xe,N," => ")+"}":Oe==="[object Set]"?Ae?"[Set]":"Set {"+(0,t.printIteratorValues)(K.values(),ue,le,Z,xe,N)+"}":Ae||v(K)?"["+y(K)+"]":(Se||!ue.printBasicPrototype&&y(K)==="Object"?"":y(K)+" ")+"{"+(0,t.printObjectProperties)(K,ue,le,Z,xe,N)+"}"}function A(K){return K.serialize!=null}function H(K,ue,le,Z,xe,Re){let Ae;try{Ae=A(K)?K.serialize(ue,le,Z,xe,Re,N):K.print(ue,Se=>N(Se,le,Z,xe,Re),Se=>{const Oe=Z+le.indent;return Oe+Se.replace(x,`
|
|
59
|
-
`+Oe)},{edgeSpacing:le.spacingOuter,min:le.min,spacing:le.spacingInner},le.colors)}catch(Se){throw new R(Se.message,Se.stack)}if(typeof Ae!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Ae}".`);return Ae}function F(K,ue){for(let le=0;le<K.length;le++)try{if(K[le].test(ue))return K[le]}catch(Z){throw new R(Z.message,Z.stack)}return null}function N(K,ue,le,Z,xe,Re){const Ae=F(ue.plugins,K);if(Ae!==null)return H(Ae,K,ue,le,Z,xe);const Se=V(K,ue.printFunctionName,ue.escapeRegex,ue.escapeString);return Se!==null?Se:U(K,ue,le,Z,xe,Re)}const j={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},I=Object.keys(j),k={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:j};to.DEFAULT_OPTIONS=k;function q(K){if(Object.keys(K).forEach(ue=>{if(!k.hasOwnProperty(ue))throw new Error(`pretty-format: Unknown option "${ue}".`)}),K.min&&K.indent!==void 0&&K.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(K.theme!==void 0){if(K.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof K.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof K.theme}".`)}}const z=K=>I.reduce((ue,le)=>{const Z=K.theme&&K.theme[le]!==void 0?K.theme[le]:j[le],xe=Z&&e.default[Z];if(xe&&typeof xe.close=="string"&&typeof xe.open=="string")ue[le]=xe;else throw new Error(`pretty-format: Option "theme" has a key "${le}" whose value "${Z}" is undefined in ansi-styles.`);return ue},Object.create(null)),W=()=>I.reduce((K,ue)=>(K[ue]={close:"",open:""},K),Object.create(null)),te=K=>K&&K.printFunctionName!==void 0?K.printFunctionName:k.printFunctionName,X=K=>K&&K.escapeRegex!==void 0?K.escapeRegex:k.escapeRegex,Q=K=>K&&K.escapeString!==void 0?K.escapeString:k.escapeString,re=K=>{var ue;return{callToJSON:K&&K.callToJSON!==void 0?K.callToJSON:k.callToJSON,colors:K&&K.highlight?z(K):W(),compareKeys:K&&typeof K.compareKeys=="function"?K.compareKeys:k.compareKeys,escapeRegex:X(K),escapeString:Q(K),indent:K&&K.min?"":ce(K&&K.indent!==void 0?K.indent:k.indent),maxDepth:K&&K.maxDepth!==void 0?K.maxDepth:k.maxDepth,min:K&&K.min!==void 0?K.min:k.min,plugins:K&&K.plugins!==void 0?K.plugins:k.plugins,printBasicPrototype:(ue=K?.printBasicPrototype)!==null&&ue!==void 0?ue:!0,printFunctionName:te(K),spacingInner:K&&K.min?" ":`
|
|
60
|
-
`,spacingOuter:K&&K.min?"":`
|
|
61
|
-
`}};function ce(K){return new Array(K+1).join(" ")}function se(K,ue){if(ue&&(q(ue),ue.plugins)){const Z=F(ue.plugins,K);if(Z!==null)return H(Z,K,re(ue),"",0,[])}const le=V(K,te(ue),X(ue),Q(ue));return le!==null?le:U(K,re(ue),"",0,[])}const ee={AsymmetricMatcher:n.default,ConvertAnsi:r.default,DOMCollection:o.default,DOMElement:i.default,Immutable:s.default,ReactElement:a.default,ReactTestComponent:u.default};to.plugins=ee;var de=se;return to.default=de,to}var dM=kG(),FG=Object.prototype.toString;function LG(e){return typeof e=="function"||FG.call(e)==="[object Function]"}function qG(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var jG=Math.pow(2,53)-1;function BG(e){var t=qG(e);return Math.min(Math.max(t,0),jG)}function Br(e,t){var n=Array,r=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=BG(r.length),i=LG(n)?Object(new n(o)):new Array(o),s=0,a;s<o;)a=r[s],i[s]=a,s+=1;return i.length=o,i}function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function VG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fM(r.key),r)}}function HG(e,t,n){return t&&KG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WG(e,t,n){return t=fM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fM(e){var t=UG(e,"string");return rd(t)==="symbol"?t:String(t)}function UG(e,t){if(rd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zG=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];VG(this,e),WG(this,"items",void 0),this.items=t}return HG(e,[{key:"add",value:function(n){return this.has(n)===!1&&this.items.push(n),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(n){var r=this.items.length;return this.items=this.items.filter(function(o){return o!==n}),r!==this.items.length}},{key:"forEach",value:function(n){var r=this;this.items.forEach(function(o){n(o,o,r)})}},{key:"has",value:function(n){return this.items.indexOf(n)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const GG=typeof Set>"u"?Set:zG;function kn(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var YG={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},XG={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ZG(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(n){var r;return e.hasAttribute(n)&&!((r=XG[t])!==null&&r!==void 0&&r.has(n))})}function pM(e,t){return ZG(e,t)}function QG(e){var t=eY(e);if(t===null||t==="presentation"){var n=JG(e);if(t!=="presentation"||pM(e,n||""))return n}return t}function JG(e){var t=YG[kn(e)];if(t!==void 0)return t;switch(kn(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!pM(e,"img")?"presentation":"img";case"input":{var n=e,r=n.type;switch(r){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return r;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function eY(e){var t=e.getAttribute("role");if(t!==null){var n=t.trim().split(" ")[0];if(n.length>0)return n}return null}function jt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function mM(e){return jt(e)&&kn(e)==="caption"}function Tp(e){return jt(e)&&kn(e)==="input"}function tY(e){return jt(e)&&kn(e)==="optgroup"}function nY(e){return jt(e)&&kn(e)==="select"}function rY(e){return jt(e)&&kn(e)==="table"}function oY(e){return jt(e)&&kn(e)==="textarea"}function iY(e){var t=e.ownerDocument===null?e:e.ownerDocument,n=t.defaultView;if(n===null)throw new TypeError("no window available");return n}function sY(e){return jt(e)&&kn(e)==="fieldset"}function aY(e){return jt(e)&&kn(e)==="legend"}function lY(e){return jt(e)&&kn(e)==="slot"}function uY(e){return jt(e)&&e.ownerSVGElement!==void 0}function cY(e){return jt(e)&&kn(e)==="svg"}function dY(e){return uY(e)&&kn(e)==="title"}function Qp(e,t){if(jt(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(" "),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(o){return r.getElementById(o)}).filter(function(o){return o!==null})}return[]}function Lo(e,t){return jt(e)?t.indexOf(QG(e))!==-1:!1}function fY(e){return e.trim().replace(/\s\s+/g," ")}function pY(e,t){if(!jt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var n=t(e);return n.getPropertyValue("display")==="none"||n.getPropertyValue("visibility")==="hidden"}function mY(e){return Lo(e,["button","combobox","listbox","textbox"])||hM(e,"range")}function hM(e,t){if(!jt(e))return!1;switch(t){case"range":return Lo(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function rS(e,t){var n=Br(e.querySelectorAll(t));return Qp(e,"aria-owns").forEach(function(r){n.push.apply(n,Br(r.querySelectorAll(t)))}),n}function hY(e){return nY(e)?e.selectedOptions||rS(e,"[selected]"):rS(e,'[aria-selected="true"]')}function gY(e){return Lo(e,["none","presentation"])}function vY(e){return mM(e)}function bY(e){return Lo(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function yY(e){return!1}function xY(e){return Tp(e)||oY(e)?e.value:e.textContent||""}function oS(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function gM(e){var t=kn(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function vM(e){if(gM(e))return e;var t=null;return e.childNodes.forEach(function(n){if(t===null&&jt(n)){var r=vM(n);r!==null&&(t=r)}}),t}function wY(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):vM(e)}function EY(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Br(t);if(!gM(e))return null;var n=e.ownerDocument;return Br(n.querySelectorAll("label")).filter(function(r){return wY(r)===e})}function CY(e){var t=e.assignedNodes();return t.length===0?Br(e.childNodes):t}function bM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new GG,r=iY(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,u=t.getComputedStyle,c=u===void 0?r.getComputedStyle.bind(r):u,f=t.hidden,p=f===void 0?!1:f;function m(x,R){var P="";if(jt(x)&&a){var O=c(x,"::before"),S=oS(O);P="".concat(S," ").concat(P)}var T=lY(x)?CY(x):Br(x.childNodes).concat(Qp(x,"aria-owns"));if(T.forEach(function(V){var U=E(V,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),A=jt(V)?c(V).getPropertyValue("display"):"inline",H=A!=="inline"?" ":"";P+="".concat(H).concat(U).concat(H)}),jt(x)&&a){var _=c(x,"::after"),$=oS(_);P="".concat(P," ").concat($)}return P.trim()}function b(x,R){var P=x.getAttributeNode(R);return P!==null&&!n.has(P)&&P.value.trim()!==""?(n.add(P),P.value):null}function y(x){return jt(x)?b(x,"title"):null}function v(x){if(!jt(x))return null;if(sY(x)){n.add(x);for(var R=Br(x.childNodes),P=0;P<R.length;P+=1){var O=R[P];if(aY(O))return E(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(rY(x)){n.add(x);for(var S=Br(x.childNodes),T=0;T<S.length;T+=1){var _=S[T];if(mM(_))return E(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(cY(x)){n.add(x);for(var $=Br(x.childNodes),V=0;V<$.length;V+=1){var U=$[V];if(dY(U))return U.textContent}return null}else if(kn(x)==="img"||kn(x)==="area"){var A=b(x,"alt");if(A!==null)return A}else if(tY(x)){var H=b(x,"label");if(H!==null)return H}if(Tp(x)&&(x.type==="button"||x.type==="submit"||x.type==="reset")){var F=b(x,"value");if(F!==null)return F;if(x.type==="submit")return"Submit";if(x.type==="reset")return"Reset"}var N=EY(x);if(N!==null&&N.length!==0)return n.add(x),Br(N).map(function(q){return E(q,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(q){return q.length>0}).join(" ");if(Tp(x)&&x.type==="image"){var j=b(x,"alt");if(j!==null)return j;var I=b(x,"title");return I!==null?I:"Submit Query"}if(Lo(x,["button"])){var k=m(x,{isEmbeddedInLabel:!1});if(k!=="")return k}return null}function E(x,R){if(n.has(x))return"";if(!p&&pY(x,c)&&!R.isReferenced)return n.add(x),"";var P=jt(x)?x.getAttributeNode("aria-labelledby"):null,O=P!==null&&!n.has(P)?Qp(x,"aria-labelledby"):[];if(i==="name"&&!R.isReferenced&&O.length>0)return n.add(P),O.map(function(A){return E(A,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var S=R.recursion&&mY(x)&&i==="name";if(!S){var T=(jt(x)&&x.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return n.add(x),T;if(!gY(x)){var _=v(x);if(_!==null)return n.add(x),_}}if(Lo(x,["menu"]))return n.add(x),"";if(S||R.isEmbeddedInLabel||R.isReferenced){if(Lo(x,["combobox","listbox"])){n.add(x);var $=hY(x);return $.length===0?Tp(x)?x.value:"":Br($).map(function(A){return E(A,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hM(x,"range"))return n.add(x),x.hasAttribute("aria-valuetext")?x.getAttribute("aria-valuetext"):x.hasAttribute("aria-valuenow")?x.getAttribute("aria-valuenow"):x.getAttribute("value")||"";if(Lo(x,["textbox"]))return n.add(x),xY(x)}if(bY(x)||jt(x)&&R.isReferenced||vY(x)||yY()){var V=m(x,{isEmbeddedInLabel:R.isEmbeddedInLabel});if(V!=="")return n.add(x),V}if(x.nodeType===x.TEXT_NODE)return n.add(x),x.textContent||"";if(R.recursion)return n.add(x),m(x,{isEmbeddedInLabel:R.isEmbeddedInLabel});var U=y(x);return U!==null?(n.add(x),U):(n.add(x),"")}return fY(E(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(n),!0).forEach(function(r){RY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RY(e,t,n){return t=SY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SY(e){var t=PY(e,"string");return od(t)==="symbol"?t:String(t)}function PY(e,t){if(od(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(od(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qp(e,"aria-describedby").map(function(o){return bM(o,sS(sS({},t),{},{compute:"description"}))}).join(" ");if(n===""){var r=e.getAttribute("title");n=r===null?"":r}return n}function TY(e){return Lo(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return TY(e)?"":bM(e,t)}var ar={},Ga={},cp={},Ya={},aS;function _Y(){if(aS)return Ya;aS=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;function e(){var n=this,r=0,o={"@@iterator":function(){return o},next:function(){if(r<n.length){var s=n[r];return r=r+1,{done:!1,value:s}}else return{done:!0}}};return o}var t=e;return Ya.default=t,Ya}var lS;function Pd(){if(lS)return cp;lS=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=r;var e=t(_Y());function t(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(o)}function r(o,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(i)}),o}return cp}var uS;function OY(){if(uS)return Ga;uS=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=void 0;var e=t(Pd());function t(m){return m&&m.__esModule?m:{default:m}}function n(m,b){return i(m)||o(m,b)||a(m,b)||r()}function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,b){var y=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(y!=null){var v=[],E=!0,x=!1,R,P;try{for(y=y.call(m);!(E=(R=y.next()).done)&&(v.push(R.value),!(b&&v.length===b));E=!0);}catch(O){x=!0,P=O}finally{try{!E&&y.return!=null&&y.return()}finally{if(x)throw P}}return v}}function i(m){if(Array.isArray(m))return m}function s(m,b){var y=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!y){if(Array.isArray(m)||(y=a(m))||b){y&&(m=y);var v=0,E=function(){};return{s:E,n:function(){return v>=m.length?{done:!0}:{done:!1,value:m[v++]}},e:function(S){throw S},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,R=!1,P;return{s:function(){y=y.call(m)},n:function(){var S=y.next();return x=S.done,S},e:function(S){R=!0,P=S},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(R)throw P}}}}function a(m,b){if(m){if(typeof m=="string")return u(m,b);var y=Object.prototype.toString.call(m).slice(8,-1);if(y==="Object"&&m.constructor&&(y=m.constructor.name),y==="Map"||y==="Set")return Array.from(m);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return u(m,b)}}function u(m,b){(b==null||b>m.length)&&(b=m.length);for(var y=0,v=new Array(b);y<b;y++)v[y]=m[y];return v}var c=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],f={entries:function(){return c},forEach:function(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=s(c),E;try{for(v.s();!(E=v.n()).done;){var x=n(E.value,2),R=x[0],P=x[1];b.call(y,P,R,c)}}catch(O){v.e(O)}finally{v.f()}},get:function(b){var y=c.find(function(v){return v[0]===b});return y&&y[1]},has:function(b){return!!f.get(b)},keys:function(){return c.map(function(b){var y=n(b,1),v=y[0];return v})},values:function(){return c.map(function(b){var y=n(b,2),v=y[1];return v})}},p=(0,e.default)(f,f.entries());return Ga.default=p,Ga}var Xa={},cS;function $Y(){if(cS)return Xa;cS=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var e=t(Pd());function t(m){return m&&m.__esModule?m:{default:m}}function n(m,b){return i(m)||o(m,b)||a(m,b)||r()}function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,b){var y=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(y!=null){var v=[],E=!0,x=!1,R,P;try{for(y=y.call(m);!(E=(R=y.next()).done)&&(v.push(R.value),!(b&&v.length===b));E=!0);}catch(O){x=!0,P=O}finally{try{!E&&y.return!=null&&y.return()}finally{if(x)throw P}}return v}}function i(m){if(Array.isArray(m))return m}function s(m,b){var y=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!y){if(Array.isArray(m)||(y=a(m))||b){y&&(m=y);var v=0,E=function(){};return{s:E,n:function(){return v>=m.length?{done:!0}:{done:!1,value:m[v++]}},e:function(S){throw S},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,R=!1,P;return{s:function(){y=y.call(m)},n:function(){var S=y.next();return x=S.done,S},e:function(S){R=!0,P=S},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(R)throw P}}}}function a(m,b){if(m){if(typeof m=="string")return u(m,b);var y=Object.prototype.toString.call(m).slice(8,-1);if(y==="Object"&&m.constructor&&(y=m.constructor.name),y==="Map"||y==="Set")return Array.from(m);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return u(m,b)}}function u(m,b){(b==null||b>m.length)&&(b=m.length);for(var y=0,v=new Array(b);y<b;y++)v[y]=m[y];return v}var c=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],f={entries:function(){return c},forEach:function(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=s(c),E;try{for(v.s();!(E=v.n()).done;){var x=n(E.value,2),R=x[0],P=x[1];b.call(y,P,R,c)}}catch(O){v.e(O)}finally{v.f()}},get:function(b){var y=c.find(function(v){return v[0]===b});return y&&y[1]},has:function(b){return!!f.get(b)},keys:function(){return c.map(function(b){var y=n(b,1),v=y[0];return v})},values:function(){return c.map(function(b){var y=n(b,2),v=y[1];return v})}},p=(0,e.default)(f,f.entries());return Xa.default=p,Xa}var Za={},Qa={},Ja={},dS;function DY(){if(dS)return Ja;dS=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return Ja.default=t,Ja}var el={},fS;function MY(){if(fS)return el;fS=1,Object.defineProperty(el,"__esModule",{value:!0}),el.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return el.default=t,el}var tl={},pS;function AY(){if(pS)return tl;pS=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return tl.default=t,tl}var nl={},mS;function NY(){if(mS)return nl;mS=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nl.default=t,nl}var rl={},hS;function IY(){if(hS)return rl;hS=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return rl.default=t,rl}var ol={},gS;function kY(){if(gS)return ol;gS=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return ol.default=t,ol}var il={},vS;function FY(){if(vS)return il;vS=1,Object.defineProperty(il,"__esModule",{value:!0}),il.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return il.default=t,il}var sl={},bS;function LY(){if(bS)return sl;bS=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return sl.default=t,sl}var al={},yS;function qY(){if(yS)return al;yS=1,Object.defineProperty(al,"__esModule",{value:!0}),al.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},t=e;return al.default=t,al}var ll={},xS;function jY(){if(xS)return ll;xS=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return ll.default=t,ll}var ul={},wS;function BY(){if(wS)return ul;wS=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return ul.default=t,ul}var cl={},ES;function VY(){if(ES)return cl;ES=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return cl.default=t,cl}var CS;function KY(){if(CS)return Qa;CS=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var e=m(DY()),t=m(MY()),n=m(AY()),r=m(NY()),o=m(IY()),i=m(kY()),s=m(FY()),a=m(LY()),u=m(qY()),c=m(jY()),f=m(BY()),p=m(VY());function m(v){return v&&v.__esModule?v:{default:v}}var b=[["command",e.default],["composite",t.default],["input",n.default],["landmark",r.default],["range",o.default],["roletype",i.default],["section",s.default],["sectionhead",a.default],["select",u.default],["structure",c.default],["widget",f.default],["window",p.default]],y=b;return Qa.default=y,Qa}var dl={},fl={},RS;function HY(){if(RS)return fl;RS=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return fl.default=t,fl}var pl={},SS;function WY(){if(SS)return pl;SS=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},t=e;return pl.default=t,pl}var ml={},PS;function UY(){if(PS)return ml;PS=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return ml.default=t,ml}var hl={},TS;function zY(){if(TS)return hl;TS=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return hl.default=t,hl}var gl={},_S;function GY(){if(_S)return gl;_S=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return gl.default=t,gl}var vl={},OS;function YY(){if(OS)return vl;OS=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return vl.default=t,vl}var bl={},$S;function XY(){if($S)return bl;$S=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return bl.default=t,bl}var yl={},DS;function ZY(){if(DS)return yl;DS=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return yl.default=t,yl}var xl={},MS;function QY(){if(MS)return xl;MS=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return xl.default=t,xl}var wl={},AS;function JY(){if(AS)return wl;AS=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return wl.default=t,wl}var El={},NS;function eX(){if(NS)return El;NS=1,Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return El.default=t,El}var Cl={},IS;function tX(){if(IS)return Cl;IS=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return Cl.default=t,Cl}var Rl={},kS;function nX(){if(kS)return Rl;kS=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},t=e;return Rl.default=t,Rl}var Sl={},FS;function rX(){if(FS)return Sl;FS=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Sl.default=t,Sl}var Pl={},LS;function oX(){if(LS)return Pl;LS=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Pl.default=t,Pl}var Tl={},qS;function iX(){if(qS)return Tl;qS=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Tl.default=t,Tl}var _l={},jS;function sX(){if(jS)return _l;jS=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return _l.default=t,_l}var Ol={},BS;function aX(){if(BS)return Ol;BS=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return Ol.default=t,Ol}var $l={},VS;function lX(){if(VS)return $l;VS=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return $l.default=t,$l}var Dl={},KS;function uX(){if(KS)return Dl;KS=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return Dl.default=t,Dl}var Ml={},HS;function cX(){if(HS)return Ml;HS=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ml.default=t,Ml}var Al={},WS;function dX(){if(WS)return Al;WS=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Al.default=t,Al}var Nl={},US;function fX(){if(US)return Nl;US=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Nl.default=t,Nl}var Il={},zS;function pX(){if(zS)return Il;zS=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Il.default=t,Il}var kl={},GS;function mX(){if(GS)return kl;GS=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return kl.default=t,kl}var Fl={},YS;function hX(){if(YS)return Fl;YS=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},t=e;return Fl.default=t,Fl}var Ll={},XS;function gX(){if(XS)return Ll;XS=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},t=e;return Ll.default=t,Ll}var ql={},ZS;function vX(){if(ZS)return ql;ZS=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ql.default=t,ql}var jl={},QS;function bX(){if(QS)return jl;QS=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},t=e;return jl.default=t,jl}var Bl={},JS;function yX(){if(JS)return Bl;JS=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Bl.default=t,Bl}var Vl={},eP;function xX(){if(eP)return Vl;eP=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Vl.default=t,Vl}var Kl={},tP;function wX(){if(tP)return Kl;tP=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return Kl.default=t,Kl}var Hl={},nP;function EX(){if(nP)return Hl;nP=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Hl.default=t,Hl}var Wl={},rP;function CX(){if(rP)return Wl;rP=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return Wl.default=t,Wl}var Ul={},oP;function RX(){if(oP)return Ul;oP=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ul.default=t,Ul}var zl={},iP;function SX(){if(iP)return zl;iP=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return zl.default=t,zl}var Gl={},sP;function PX(){if(sP)return Gl;sP=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Gl.default=t,Gl}var Yl={},aP;function TX(){if(aP)return Yl;aP=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Yl.default=t,Yl}var Xl={},lP;function _X(){if(lP)return Xl;lP=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Xl.default=t,Xl}var Zl={},uP;function OX(){if(uP)return Zl;uP=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Zl.default=t,Zl}var Ql={},cP;function $X(){if(cP)return Ql;cP=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return Ql.default=t,Ql}var Jl={},dP;function DX(){if(dP)return Jl;dP=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},t=e;return Jl.default=t,Jl}var eu={},fP;function MX(){if(fP)return eu;fP=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},t=e;return eu.default=t,eu}var tu={},pP;function AX(){if(pP)return tu;pP=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},t=e;return tu.default=t,tu}var nu={},mP;function NX(){if(mP)return nu;mP=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},t=e;return nu.default=t,nu}var ru={},hP;function IX(){if(hP)return ru;hP=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},t=e;return ru.default=t,ru}var ou={},gP;function kX(){if(gP)return ou;gP=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ou.default=t,ou}var iu={},vP;function FX(){if(vP)return iu;vP=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return iu.default=t,iu}var su={},bP;function LX(){if(bP)return su;bP=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return su.default=t,su}var au={},yP;function qX(){if(yP)return au;yP=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},t=e;return au.default=t,au}var lu={},xP;function jX(){if(xP)return lu;xP=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return lu.default=t,lu}var uu={},wP;function BX(){if(wP)return uu;wP=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return uu.default=t,uu}var cu={},EP;function VX(){if(EP)return cu;EP=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return cu.default=t,cu}var du={},CP;function KX(){if(CP)return du;CP=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},t=e;return du.default=t,du}var fu={},RP;function HX(){if(RP)return fu;RP=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return fu.default=t,fu}var pu={},SP;function WX(){if(SP)return pu;SP=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return pu.default=t,pu}var mu={},PP;function UX(){if(PP)return mu;PP=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},t=e;return mu.default=t,mu}var hu={},TP;function zX(){if(TP)return hu;TP=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return hu.default=t,hu}var gu={},_P;function GX(){if(_P)return gu;_P=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},t=e;return gu.default=t,gu}var vu={},OP;function YX(){if(OP)return vu;OP=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},t=e;return vu.default=t,vu}var bu={},$P;function XX(){if($P)return bu;$P=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return bu.default=t,bu}var yu={},DP;function ZX(){if(DP)return yu;DP=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},t=e;return yu.default=t,yu}var xu={},MP;function QX(){if(MP)return xu;MP=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return xu.default=t,xu}var wu={},AP;function JX(){if(AP)return wu;AP=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},t=e;return wu.default=t,wu}var Eu={},NP;function eZ(){if(NP)return Eu;NP=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},t=e;return Eu.default=t,Eu}var Cu={},IP;function tZ(){if(IP)return Cu;IP=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Cu.default=t,Cu}var Ru={},kP;function nZ(){if(kP)return Ru;kP=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ru.default=t,Ru}var Su={},FP;function rZ(){if(FP)return Su;FP=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Su.default=t,Su}var Pu={},LP;function oZ(){if(LP)return Pu;LP=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Pu.default=t,Pu}var Tu={},qP;function iZ(){if(qP)return Tu;qP=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},t=e;return Tu.default=t,Tu}var _u={},jP;function sZ(){if(jP)return _u;jP=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},t=e;return _u.default=t,_u}var Ou={},BP;function aZ(){if(BP)return Ou;BP=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Ou.default=t,Ou}var $u={},VP;function lZ(){if(VP)return $u;VP=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},t=e;return $u.default=t,$u}var Du={},KP;function uZ(){if(KP)return Du;KP=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Du.default=t,Du}var Mu={},HP;function cZ(){if(HP)return Mu;HP=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Mu.default=t,Mu}var Au={},WP;function dZ(){if(WP)return Au;WP=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},t=e;return Au.default=t,Au}var Nu={},UP;function fZ(){if(UP)return Nu;UP=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Nu.default=t,Nu}var Iu={},zP;function pZ(){if(zP)return Iu;zP=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return Iu.default=t,Iu}var ku={},GP;function mZ(){if(GP)return ku;GP=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return ku.default=t,ku}var Fu={},YP;function hZ(){if(YP)return Fu;YP=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Fu.default=t,Fu}var Lu={},XP;function gZ(){if(XP)return Lu;XP=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},t=e;return Lu.default=t,Lu}var qu={},ZP;function vZ(){if(ZP)return qu;ZP=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},t=e;return qu.default=t,qu}var ju={},QP;function bZ(){if(QP)return ju;QP=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},t=e;return ju.default=t,ju}var JP;function yZ(){if(JP)return dl;JP=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var e=Ce(HY()),t=Ce(WY()),n=Ce(UY()),r=Ce(zY()),o=Ce(GY()),i=Ce(YY()),s=Ce(XY()),a=Ce(ZY()),u=Ce(QY()),c=Ce(JY()),f=Ce(eX()),p=Ce(tX()),m=Ce(nX()),b=Ce(rX()),y=Ce(oX()),v=Ce(iX()),E=Ce(sX()),x=Ce(aX()),R=Ce(lX()),P=Ce(uX()),O=Ce(cX()),S=Ce(dX()),T=Ce(fX()),_=Ce(pX()),$=Ce(mX()),V=Ce(hX()),U=Ce(gX()),A=Ce(vX()),H=Ce(bX()),F=Ce(yX()),N=Ce(xX()),j=Ce(wX()),I=Ce(EX()),k=Ce(CX()),q=Ce(RX()),z=Ce(SX()),W=Ce(PX()),te=Ce(TX()),X=Ce(_X()),Q=Ce(OX()),re=Ce($X()),ce=Ce(DX()),se=Ce(MX()),ee=Ce(AX()),de=Ce(NX()),K=Ce(IX()),ue=Ce(kX()),le=Ce(FX()),Z=Ce(LX()),xe=Ce(qX()),Re=Ce(jX()),Ae=Ce(BX()),Se=Ce(VX()),Oe=Ce(KX()),Ye=Ce(HX()),Fe=Ce(WX()),G=Ce(UX()),J=Ce(zX()),ie=Ce(GX()),fe=Ce(YX()),pe=Ce(XX()),ge=Ce(ZX()),Ee=Ce(QX()),Pe=Ce(JX()),Ne=Ce(eZ()),st=Ce(tZ()),ut=Ce(nZ()),wt=Ce(rZ()),dt=Ce(oZ()),Nt=Ce(iZ()),Yt=Ce(sZ()),un=Ce(aZ()),mn=Ce(lZ()),$n=Ce(uZ()),nt=Ce(cZ()),tt=Ce(dZ()),Jt=Ce(fZ()),Ft=Ce(pZ()),Dn=Ce(mZ()),Rn=Ce(hZ()),Ar=Ce(gZ()),Zr=Ce(vZ()),Zo=Ce(bZ());function Ce(Qo){return Qo&&Qo.__esModule?Qo:{default:Qo}}var Ni=[["alert",e.default],["alertdialog",t.default],["application",n.default],["article",r.default],["banner",o.default],["blockquote",i.default],["button",s.default],["caption",a.default],["cell",u.default],["checkbox",c.default],["code",f.default],["columnheader",p.default],["combobox",m.default],["complementary",b.default],["contentinfo",y.default],["definition",v.default],["deletion",E.default],["dialog",x.default],["directory",R.default],["document",P.default],["emphasis",O.default],["feed",S.default],["figure",T.default],["form",_.default],["generic",$.default],["grid",V.default],["gridcell",U.default],["group",A.default],["heading",H.default],["img",F.default],["insertion",N.default],["link",j.default],["list",I.default],["listbox",k.default],["listitem",q.default],["log",z.default],["main",W.default],["mark",te.default],["marquee",X.default],["math",Q.default],["menu",re.default],["menubar",ce.default],["menuitem",se.default],["menuitemcheckbox",ee.default],["menuitemradio",de.default],["meter",K.default],["navigation",ue.default],["none",le.default],["note",Z.default],["option",xe.default],["paragraph",Re.default],["presentation",Ae.default],["progressbar",Se.default],["radio",Oe.default],["radiogroup",Ye.default],["region",Fe.default],["row",G.default],["rowgroup",J.default],["rowheader",ie.default],["scrollbar",fe.default],["search",pe.default],["searchbox",ge.default],["separator",Ee.default],["slider",Pe.default],["spinbutton",Ne.default],["status",st.default],["strong",ut.default],["subscript",wt.default],["superscript",dt.default],["switch",Nt.default],["tab",Yt.default],["table",un.default],["tablist",mn.default],["tabpanel",$n.default],["term",nt.default],["textbox",tt.default],["time",Jt.default],["timer",Ft.default],["toolbar",Dn.default],["tooltip",Rn.default],["tree",Ar.default],["treegrid",Zr.default],["treeitem",Zo.default]],Ii=Ni;return dl.default=Ii,dl}var Bu={},Vu={},e1;function xZ(){if(e1)return Vu;e1=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Vu.default=t,Vu}var Ku={},t1;function wZ(){if(t1)return Ku;t1=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Ku.default=t,Ku}var Hu={},n1;function EZ(){if(n1)return Hu;n1=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Hu.default=t,Hu}var Wu={},r1;function CZ(){if(r1)return Wu;r1=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Wu.default=t,Wu}var Uu={},o1;function RZ(){if(o1)return Uu;o1=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Uu.default=t,Uu}var zu={},i1;function SZ(){if(i1)return zu;i1=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return zu.default=t,zu}var Gu={},s1;function PZ(){if(s1)return Gu;s1=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Gu.default=t,Gu}var Yu={},a1;function TZ(){if(a1)return Yu;a1=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return Yu.default=t,Yu}var Xu={},l1;function _Z(){if(l1)return Xu;l1=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Xu.default=t,Xu}var Zu={},u1;function OZ(){if(u1)return Zu;u1=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Zu.default=t,Zu}var Qu={},c1;function $Z(){if(c1)return Qu;c1=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Qu.default=t,Qu}var Ju={},d1;function DZ(){if(d1)return Ju;d1=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return Ju.default=t,Ju}var ec={},f1;function MZ(){if(f1)return ec;f1=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ec.default=t,ec}var tc={},p1;function AZ(){if(p1)return tc;p1=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return tc.default=t,tc}var nc={},m1;function NZ(){if(m1)return nc;m1=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return nc.default=t,nc}var rc={},h1;function IZ(){if(h1)return rc;h1=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},t=e;return rc.default=t,rc}var oc={},g1;function kZ(){if(g1)return oc;g1=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return oc.default=t,oc}var ic={},v1;function FZ(){if(v1)return ic;v1=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ic.default=t,ic}var sc={},b1;function LZ(){if(b1)return sc;b1=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return sc.default=t,sc}var ac={},y1;function qZ(){if(y1)return ac;y1=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return ac.default=t,ac}var lc={},x1;function jZ(){if(x1)return lc;x1=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return lc.default=t,lc}var uc={},w1;function BZ(){if(w1)return uc;w1=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return uc.default=t,uc}var cc={},E1;function VZ(){if(E1)return cc;E1=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return cc.default=t,cc}var dc={},C1;function KZ(){if(C1)return dc;C1=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return dc.default=t,dc}var fc={},R1;function HZ(){if(R1)return fc;R1=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return fc.default=t,fc}var pc={},S1;function WZ(){if(S1)return pc;S1=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return pc.default=t,pc}var mc={},P1;function UZ(){if(P1)return mc;P1=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return mc.default=t,mc}var hc={},T1;function zZ(){if(T1)return hc;T1=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},t=e;return hc.default=t,hc}var gc={},_1;function GZ(){if(_1)return gc;_1=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return gc.default=t,gc}var vc={},O1;function YZ(){if(O1)return vc;O1=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},t=e;return vc.default=t,vc}var bc={},$1;function XZ(){if($1)return bc;$1=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return bc.default=t,bc}var yc={},D1;function ZZ(){if(D1)return yc;D1=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return yc.default=t,yc}var xc={},M1;function QZ(){if(M1)return xc;M1=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return xc.default=t,xc}var wc={},A1;function JZ(){if(A1)return wc;A1=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return wc.default=t,wc}var Ec={},N1;function eQ(){if(N1)return Ec;N1=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},t=e;return Ec.default=t,Ec}var Cc={},I1;function tQ(){if(I1)return Cc;I1=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Cc.default=t,Cc}var Rc={},k1;function nQ(){if(k1)return Rc;k1=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},t=e;return Rc.default=t,Rc}var Sc={},F1;function rQ(){if(F1)return Sc;F1=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},t=e;return Sc.default=t,Sc}var Pc={},L1;function oQ(){if(L1)return Pc;L1=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},t=e;return Pc.default=t,Pc}var q1;function iQ(){if(q1)return Bu;q1=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.default=void 0;var e=Q(xZ()),t=Q(wZ()),n=Q(EZ()),r=Q(CZ()),o=Q(RZ()),i=Q(SZ()),s=Q(PZ()),a=Q(TZ()),u=Q(_Z()),c=Q(OZ()),f=Q($Z()),p=Q(DZ()),m=Q(MZ()),b=Q(AZ()),y=Q(NZ()),v=Q(IZ()),E=Q(kZ()),x=Q(FZ()),R=Q(LZ()),P=Q(qZ()),O=Q(jZ()),S=Q(BZ()),T=Q(VZ()),_=Q(KZ()),$=Q(HZ()),V=Q(WZ()),U=Q(UZ()),A=Q(zZ()),H=Q(GZ()),F=Q(YZ()),N=Q(XZ()),j=Q(ZZ()),I=Q(QZ()),k=Q(JZ()),q=Q(eQ()),z=Q(tQ()),W=Q(nQ()),te=Q(rQ()),X=Q(oQ());function Q(se){return se&&se.__esModule?se:{default:se}}var re=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",n.default],["doc-appendix",r.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",s.default],["doc-biblioref",a.default],["doc-chapter",u.default],["doc-colophon",c.default],["doc-conclusion",f.default],["doc-cover",p.default],["doc-credit",m.default],["doc-credits",b.default],["doc-dedication",y.default],["doc-endnote",v.default],["doc-endnotes",E.default],["doc-epigraph",x.default],["doc-epilogue",R.default],["doc-errata",P.default],["doc-example",O.default],["doc-footnote",S.default],["doc-foreword",T.default],["doc-glossary",_.default],["doc-glossref",$.default],["doc-index",V.default],["doc-introduction",U.default],["doc-noteref",A.default],["doc-notice",H.default],["doc-pagebreak",F.default],["doc-pagelist",N.default],["doc-part",j.default],["doc-preface",I.default],["doc-prologue",k.default],["doc-pullquote",q.default],["doc-qna",z.default],["doc-subtitle",W.default],["doc-tip",te.default],["doc-toc",X.default]],ce=re;return Bu.default=ce,Bu}var Tc={},_c={},j1;function sQ(){if(j1)return _c;j1=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},t=e;return _c.default=t,_c}var Oc={},B1;function aQ(){if(B1)return Oc;B1=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},t=e;return Oc.default=t,Oc}var $c={},V1;function lQ(){if(V1)return $c;V1=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},t=e;return $c.default=t,$c}var K1;function uQ(){if(K1)return Tc;K1=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=void 0;var e=r(sQ()),t=r(aQ()),n=r(lQ());function r(s){return s&&s.__esModule?s:{default:s}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",n.default]],i=o;return Tc.default=i,Tc}var H1;function nx(){if(H1)return Za;H1=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var e=i(KY()),t=i(yZ()),n=i(iQ()),r=i(uQ()),o=i(Pd());function i(x){return x&&x.__esModule?x:{default:x}}function s(x,R,P){return R in x?Object.defineProperty(x,R,{value:P,enumerable:!0,configurable:!0,writable:!0}):x[R]=P,x}function a(x,R){var P=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!P){if(Array.isArray(x)||(P=f(x))||R){P&&(x=P);var O=0,S=function(){};return{s:S,n:function(){return O>=x.length?{done:!0}:{done:!1,value:x[O++]}},e:function(U){throw U},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
66
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,_=!1,$;return{s:function(){P=P.call(x)},n:function(){var U=P.next();return T=U.done,U},e:function(U){_=!0,$=U},f:function(){try{!T&&P.return!=null&&P.return()}finally{if(_)throw $}}}}function u(x,R){return b(x)||m(x,R)||f(x,R)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(x,R){if(x){if(typeof x=="string")return p(x,R);var P=Object.prototype.toString.call(x).slice(8,-1);if(P==="Object"&&x.constructor&&(P=x.constructor.name),P==="Map"||P==="Set")return Array.from(x);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return p(x,R)}}function p(x,R){(R==null||R>x.length)&&(R=x.length);for(var P=0,O=new Array(R);P<R;P++)O[P]=x[P];return O}function m(x,R){var P=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(P!=null){var O=[],S=!0,T=!1,_,$;try{for(P=P.call(x);!(S=(_=P.next()).done)&&(O.push(_.value),!(R&&O.length===R));S=!0);}catch(V){T=!0,$=V}finally{try{!S&&P.return!=null&&P.return()}finally{if(T)throw $}}return O}}function b(x){if(Array.isArray(x))return x}var y=[].concat(e.default,t.default,n.default,r.default);y.forEach(function(x){var R=u(x,2),P=R[1],O=a(P.superClass),S;try{for(O.s();!(S=O.n()).done;){var T=S.value,_=a(T),$;try{var V=function(){var A=$.value,H=y.find(function(k){var q=u(k,1),z=q[0];return z===A});if(H)for(var F=H[1],N=0,j=Object.keys(F.props);N<j.length;N++){var I=j[N];Object.prototype.hasOwnProperty.call(P.props,I)||Object.assign(P.props,s({},I,F.props[I]))}};for(_.s();!($=_.n()).done;)V()}catch(U){_.e(U)}finally{_.f()}}}catch(U){O.e(U)}finally{O.f()}});var v={entries:function(){return y},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,O=a(y),S;try{for(O.s();!(S=O.n()).done;){var T=u(S.value,2),_=T[0],$=T[1];R.call(P,$,_,y)}}catch(V){O.e(V)}finally{O.f()}},get:function(R){var P=y.find(function(O){return O[0]===R});return P&&P[1]},has:function(R){return!!v.get(R)},keys:function(){return y.map(function(R){var P=u(R,1),O=P[0];return O})},values:function(){return y.map(function(R){var P=u(R,2),O=P[1];return O})}},E=(0,o.default)(v,v.entries());return Za.default=E,Za}var Dc={},xv={},W1;function cQ(){if(W1)return xv;W1=1;var e=Object.prototype.hasOwnProperty;function t(n,r){var o,i;if(n===r)return!0;if(n&&r&&(o=n.constructor)===r.constructor){if(o===Date)return n.getTime()===r.getTime();if(o===RegExp)return n.toString()===r.toString();if(o===Array){if((i=n.length)===r.length)for(;i--&&t(n[i],r[i]););return i===-1}if(!o||typeof n=="object"){i=0;for(o in n)if(e.call(n,o)&&++i&&!e.call(r,o)||!(o in r)||!t(n[o],r[o]))return!1;return Object.keys(r).length===i}}return n!==n&&r!==r}return xv.dequal=t,xv}var U1;function dQ(){if(U1)return Dc;U1=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.default=void 0;var e=cQ(),t=r(Pd()),n=r(nx());function r(S){return S&&S.__esModule?S:{default:S}}function o(S,T){return a(S)||s(S,T)||c(S,T)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(S,T){var _=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(_!=null){var $=[],V=!0,U=!1,A,H;try{for(_=_.call(S);!(V=(A=_.next()).done)&&($.push(A.value),!(T&&$.length===T));V=!0);}catch(F){U=!0,H=F}finally{try{!V&&_.return!=null&&_.return()}finally{if(U)throw H}}return $}}function a(S){if(Array.isArray(S))return S}function u(S,T){var _=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!_){if(Array.isArray(S)||(_=c(S))||T){_&&(S=_);var $=0,V=function(){};return{s:V,n:function(){return $>=S.length?{done:!0}:{done:!1,value:S[$++]}},e:function(N){throw N},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,A=!1,H;return{s:function(){_=_.call(S)},n:function(){var N=_.next();return U=N.done,N},e:function(N){A=!0,H=N},f:function(){try{!U&&_.return!=null&&_.return()}finally{if(A)throw H}}}}function c(S,T){if(S){if(typeof S=="string")return f(S,T);var _=Object.prototype.toString.call(S).slice(8,-1);if(_==="Object"&&S.constructor&&(_=S.constructor.name),_==="Map"||_==="Set")return Array.from(S);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return f(S,T)}}function f(S,T){(T==null||T>S.length)&&(T=S.length);for(var _=0,$=new Array(T);_<T;_++)$[_]=S[_];return $}for(var p=[],m=n.default.keys(),b=0;b<m.length;b++){var y=m[b],v=n.default.get(y);if(v)for(var E=[].concat(v.baseConcepts,v.relatedConcepts),x=0;x<E.length;x++){var R=E[x];R.module==="HTML"&&(function(){var S=R.concept;if(S){var T=p.find(function(U){return(0,e.dequal)(U,S)}),_;T?_=T[1]:_=[];for(var $=!0,V=0;V<_.length;V++)if(_[V]===y){$=!1;break}$&&_.push(y),p.push([S,_])}})()}}var P={entries:function(){return p},forEach:function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,$=u(p),V;try{for($.s();!(V=$.n()).done;){var U=o(V.value,2),A=U[0],H=U[1];T.call(_,H,A,p)}}catch(F){$.e(F)}finally{$.f()}},get:function(T){var _=p.find(function($){return T.name===$[0].name&&(0,e.dequal)(T.attributes,$[0].attributes)});return _&&_[1]},has:function(T){return!!P.get(T)},keys:function(){return p.map(function(T){var _=o(T,1),$=_[0];return $})},values:function(){return p.map(function(T){var _=o(T,2),$=_[1];return $})}},O=(0,t.default)(P,P.entries());return Dc.default=O,Dc}var Mc={},z1;function fQ(){if(z1)return Mc;z1=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.default=void 0;var e=n(Pd()),t=n(nx());function n(T){return T&&T.__esModule?T:{default:T}}function r(T,_){return s(T)||i(T,_)||u(T,_)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(T,_){var $=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if($!=null){var V=[],U=!0,A=!1,H,F;try{for($=$.call(T);!(U=(H=$.next()).done)&&(V.push(H.value),!(_&&V.length===_));U=!0);}catch(N){A=!0,F=N}finally{try{!U&&$.return!=null&&$.return()}finally{if(A)throw F}}return V}}function s(T){if(Array.isArray(T))return T}function a(T,_){var $=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!$){if(Array.isArray(T)||($=u(T))||_){$&&(T=$);var V=0,U=function(){};return{s:U,n:function(){return V>=T.length?{done:!0}:{done:!1,value:T[V++]}},e:function(j){throw j},f:U}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=!0,H=!1,F;return{s:function(){$=$.call(T)},n:function(){var j=$.next();return A=j.done,j},e:function(j){H=!0,F=j},f:function(){try{!A&&$.return!=null&&$.return()}finally{if(H)throw F}}}}function u(T,_){if(T){if(typeof T=="string")return c(T,_);var $=Object.prototype.toString.call(T).slice(8,-1);if($==="Object"&&T.constructor&&($=T.constructor.name),$==="Map"||$==="Set")return Array.from(T);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return c(T,_)}}function c(T,_){(_==null||_>T.length)&&(_=T.length);for(var $=0,V=new Array(_);$<_;$++)V[$]=T[$];return V}for(var f=[],p=t.default.keys(),m=0;m<p.length;m++){var b=p[m],y=t.default.get(b),v=[];if(y){for(var E=[].concat(y.baseConcepts,y.relatedConcepts),x=0;x<E.length;x++){var R=E[x];if(R.module==="HTML"){var P=R.concept;P!=null&&v.push(P)}}v.length>0&&f.push([b,v])}}var O={entries:function(){return f},forEach:function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,V=a(f),U;try{for(V.s();!(U=V.n()).done;){var A=r(U.value,2),H=A[0],F=A[1];_.call($,F,H,f)}}catch(N){V.e(N)}finally{V.f()}},get:function(_){var $=f.find(function(V){return V[0]===_});return $&&$[1]},has:function(_){return!!O.get(_)},keys:function(){return f.map(function(_){var $=r(_,1),V=$[0];return V})},values:function(){return f.map(function(_){var $=r(_,2),V=$[1];return V})}},S=(0,e.default)(O,O.entries());return Mc.default=S,Mc}var G1;function pQ(){if(G1)return ar;G1=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.roles=ar.roleElements=ar.elementRoles=ar.dom=ar.aria=void 0;var e=i(OY()),t=i($Y()),n=i(nx()),r=i(dQ()),o=i(fQ());function i(p){return p&&p.__esModule?p:{default:p}}var s=e.default;ar.aria=s;var a=t.default;ar.dom=a;var u=n.default;ar.roles=u;var c=r.default;ar.elementRoles=c;var f=o.default;return ar.roleElements=f,ar}var Er=pQ(),wv={exports:{}},Y1;function mQ(){return Y1||(Y1=1,(function(e){var t=(function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function s(u,c){if(!i[u]){i[u]={};for(var f=0;f<u.length;f++)i[u][u.charAt(f)]=f}return i[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(f){return r.charAt(f)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return s(r,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return n(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),f=new Uint8Array(c.length*2),p=0,m=c.length;p<m;p++){var b=c.charCodeAt(p);f[p*2]=b>>>8,f[p*2+1]=b%256}return f},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),f=0,p=c.length;f<p;f++)c[f]=u[f*2]*256+u[f*2+1];var m=[];return c.forEach(function(b){m.push(n(b))}),a.decompress(m.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return o.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return s(o,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return n(c)})},_compress:function(u,c,f){if(u==null)return"";var p,m,b={},y={},v="",E="",x="",R=2,P=3,O=2,S=[],T=0,_=0,$;for($=0;$<u.length;$+=1)if(v=u.charAt($),Object.prototype.hasOwnProperty.call(b,v)||(b[v]=P++,y[v]=!0),E=x+v,Object.prototype.hasOwnProperty.call(b,E))x=E;else{if(Object.prototype.hasOwnProperty.call(y,x)){if(x.charCodeAt(0)<256){for(p=0;p<O;p++)T=T<<1,_==c-1?(_=0,S.push(f(T)),T=0):_++;for(m=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1}else{for(m=1,p=0;p<O;p++)T=T<<1|m,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=0;for(m=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1}R--,R==0&&(R=Math.pow(2,O),O++),delete y[x]}else for(m=b[x],p=0;p<O;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1;R--,R==0&&(R=Math.pow(2,O),O++),b[E]=P++,x=String(v)}if(x!==""){if(Object.prototype.hasOwnProperty.call(y,x)){if(x.charCodeAt(0)<256){for(p=0;p<O;p++)T=T<<1,_==c-1?(_=0,S.push(f(T)),T=0):_++;for(m=x.charCodeAt(0),p=0;p<8;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1}else{for(m=1,p=0;p<O;p++)T=T<<1|m,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=0;for(m=x.charCodeAt(0),p=0;p<16;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1}R--,R==0&&(R=Math.pow(2,O),O++),delete y[x]}else for(m=b[x],p=0;p<O;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1;R--,R==0&&(R=Math.pow(2,O),O++)}for(m=2,p=0;p<O;p++)T=T<<1|m&1,_==c-1?(_=0,S.push(f(T)),T=0):_++,m=m>>1;for(;;)if(T=T<<1,_==c-1){S.push(f(T));break}else _++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,f){var p=[],m=4,b=4,y=3,v="",E=[],x,R,P,O,S,T,_,$={val:f(0),position:c,index:1};for(x=0;x<3;x+=1)p[x]=x;for(P=0,S=Math.pow(2,2),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;switch(P){case 0:for(P=0,S=Math.pow(2,8),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;_=n(P);break;case 1:for(P=0,S=Math.pow(2,16),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;_=n(P);break;case 2:return""}for(p[3]=_,R=_,E.push(_);;){if($.index>u)return"";for(P=0,S=Math.pow(2,y),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;switch(_=P){case 0:for(P=0,S=Math.pow(2,8),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;p[b++]=n(P),_=b-1,m--;break;case 1:for(P=0,S=Math.pow(2,16),T=1;T!=S;)O=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=f($.index++)),P|=(O>0?1:0)*T,T<<=1;p[b++]=n(P),_=b-1,m--;break;case 2:return E.join("")}if(m==0&&(m=Math.pow(2,y),y++),p[_])v=p[_];else if(_===b)v=R+R.charAt(0);else return null;E.push(v),p[b++]=R+v.charAt(0),m--,R=v,m==0&&(m=Math.pow(2,y),y++)}}};return a})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(wv)),wv.exports}var hQ=mQ();const gQ=IO(hQ);function xM(e){return e.replace(/</g,"<").replace(/>/g,">")}const vQ=(e,t,n,r,o,i,s)=>{const a=r+n.indent,u=n.colors;return e.map(c=>{const f=t[c];let p=s(f,n,a,o,i);return typeof f!="string"&&(p.indexOf(`
|
|
72
|
-
`)!==-1&&(p=n.spacingOuter+a+p+n.spacingOuter+r),p="{"+p+"}"),n.spacingInner+r+u.prop.open+c+u.prop.close+"="+u.value.open+p+u.value.close}).join("")},bQ=3,yQ=(e,t,n,r,o,i)=>e.map(s=>{const a=typeof s=="string"?wM(s,t):i(s,t,n,r,o);return a===""&&typeof s=="object"&&s!==null&&s.nodeType!==bQ?"":t.spacingOuter+n+a}).join(""),wM=(e,t)=>{const n=t.colors.content;return n.open+xM(e)+n.close},xQ=(e,t)=>{const n=t.colors.comment;return n.open+"<!--"+xM(e)+"-->"+n.close},wQ=(e,t,n,r,o)=>{const i=r.colors.tag;return i.open+"<"+e+(t&&i.close+t+r.spacingOuter+o+i.open)+(n?">"+i.close+n+r.spacingOuter+o+i.open+"</"+e:(t&&!r.min?"":" ")+"/")+">"+i.close},EQ=(e,t)=>{const n=t.colors.tag;return n.open+"<"+e+n.close+" …"+n.open+" />"+n.close},CQ=1,EM=3,CM=8,RM=11,RQ=/^((HTML|SVG)\w*)?Element$/,SM=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},SQ=e=>{const t=e.constructor.name,{nodeType:n}=e;return n===CQ&&(RQ.test(t)||SM(e))||n===EM&&t==="Text"||n===CM&&t==="Comment"||n===RM&&t==="DocumentFragment"};function PQ(e){return e.nodeType===EM}function TQ(e){return e.nodeType===CM}function Ev(e){return e.nodeType===RM}function _Q(e){return{test:t=>{var n;return((t==null||(n=t.constructor)==null?void 0:n.name)||SM(t))&&SQ(t)},serialize:(t,n,r,o,i,s)=>{if(PQ(t))return wM(t.data,n);if(TQ(t))return xQ(t.data,n);const a=Ev(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>n.maxDepth?EQ(a,n):wQ(a,vQ(Ev(t)?[]:Array.from(t.attributes).map(u=>u.name).sort(),Ev(t)?{}:Array.from(t.attributes).reduce((u,c)=>(u[c.name]=c.value,u),{}),n,r+n.indent,o,i,s),yQ(Array.prototype.slice.call(t.childNodes||t.children).filter(e),n,r+n.indent,o,i,s),n,r)}}}let PM=null,rx=null,ox=null;try{const e=module&&module.require;rx=e.call(module,"fs").readFileSync,ox=e.call(module,"@babel/code-frame").codeFrameColumns,PM=e.call(module,"chalk")}catch{}function OQ(e){const t=e.indexOf("(")+1,n=e.indexOf(")"),r=e.slice(t,n),o=r.split(":"),[i,s,a]=[o[0],parseInt(o[1],10),parseInt(o[2],10)];let u="";try{u=rx(i,"utf-8")}catch{return""}const c=ox(u,{start:{line:s,column:a}},{highlightCode:!0,linesBelow:0});return PM.dim(r)+`
|
|
73
|
-
`+c+`
|
|
74
|
-
`}function $Q(){if(!rx||!ox)return"";const t=new Error().stack.split(`
|
|
75
|
-
`).slice(1).find(n=>!n.includes("node_modules/"));return OQ(t)}const TM=3;function Cv(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function ix(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function _M(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function Yo(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(n){return typeof n=="object"?n===null?"null":n.constructor.name:typeof n}}const DQ=()=>{if(typeof process>"u")return!1;let e;try{var t;const n=(t=process.env)==null?void 0:t.COLORS;n&&(e=JSON.parse(n))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:MQ}=dM.plugins,AQ=1,NQ=8;function IQ(e){return e.nodeType!==NQ&&(e.nodeType!==AQ||!e.matches($t().defaultIgnore))}function Jp(e,t,n){if(n===void 0&&(n={}),e||(e=ix().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let r=typeof e;if(r==="object"?r=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+r);const{filterNode:o=IQ,...i}=n,s=dM.format(e,{plugins:[_Q(o),MQ],printFunctionName:!1,highlight:DQ(),...i});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}const X1=function(){const e=$Q();console.log(e?Jp(...arguments)+`
|
|
76
|
-
|
|
77
|
-
`+e:Jp(...arguments))};let is={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const n=Jp(t),r=new Error([e,"Ignored nodes: comments, "+is.defaultIgnore+`
|
|
78
|
-
`+n].filter(Boolean).join(`
|
|
79
|
-
|
|
80
|
-
`));return r.name="TestingLibraryElementError",r},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function kQ(e){try{return is._disableExpensiveErrorDiagnostics=!0,e()}finally{is._disableExpensiveErrorDiagnostics=!1}}function FQ(e){typeof e=="function"&&(e=e(is)),is={...is,...e}}function $t(){return is}const LQ=["button","meter","output","progress","select","textarea","input"];function OM(e){return LQ.includes(e.nodeName.toLowerCase())?"":e.nodeType===TM?e.textContent:Array.from(e.childNodes).map(t=>OM(t)).join("")}function fb(e){let t;return e.tagName.toLowerCase()==="label"?t=OM(e):t=e.value||e.textContent,t}function $M(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!qQ(e))return[];const n=e.ownerDocument.querySelectorAll("label");return Array.from(n).filter(r=>r.control===e)}function qQ(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function DM(e,t,n){let{selector:r="*"}=n===void 0?{}:n;const o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(s=>{const a=e.querySelector('[id="'+s+'"]');return a?{content:fb(a),formControl:null}:{content:"",formControl:null}}):Array.from($M(t)).map(s=>{const a=fb(s),c=Array.from(s.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(f=>f.matches(r))[0];return{content:a,formControl:c}})}function MM(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function xa(e,t,n,r){if(typeof e!="string")return!1;MM(n);const o=r(e);return typeof n=="string"||typeof n=="number"?o.toLowerCase().includes(n.toString().toLowerCase()):typeof n=="function"?n(o,t):NM(n,o)}function Bo(e,t,n,r){if(typeof e!="string")return!1;MM(n);const o=r(e);return n instanceof Function?n(o,t):n instanceof RegExp?NM(n,o):o===String(n)}function AM(e){let{trim:t=!0,collapseWhitespace:n=!0}=e===void 0?{}:e;return r=>{let o=r;return o=t?o.trim():o,o=n?o.replace(/\s+/g," "):o,o}}function Es(e){let{trim:t,collapseWhitespace:n,normalizer:r}=e;if(!r)return AM({trim:t,collapseWhitespace:n});if(typeof t<"u"||typeof n<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return r}function NM(e,t){const n=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),n}function Um(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===TM&&!!t.textContent).map(t=>t.textContent).join("")}const jQ=BQ(Er.elementRoles);function IM(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function sx(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:n=IM}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let o=e;for(;o;){if(n(o))return!0;o=o.parentElement}return!1}function ax(e){for(const{match:t,roles:n}of jQ)if(t(e))return[...n];return[]}function BQ(e){function t(s){let{name:a,attributes:u}=s;return""+a+u.map(c=>{let{name:f,value:p,constraints:m=[]}=c;const b=m.indexOf("undefined")!==-1,y=m.indexOf("set")!==-1;return typeof p<"u"?"["+f+'="'+p+'"]':b?":not(["+f+"])":y?"["+f+"]:not(["+f+'=""])':"["+f+"]"}).join("")}function n(s){let{attributes:a=[]}=s;return a.length}function r(s,a){let{specificity:u}=s,{specificity:c}=a;return c-u}function o(s){let{attributes:a=[]}=s;const u=a.findIndex(f=>f.value&&f.name==="type"&&f.value==="text");u>=0&&(a=[...a.slice(0,u),...a.slice(u+1)]);const c=t({...s,attributes:a});return f=>u>=0&&f.type!=="text"?!1:f.matches(c)}let i=[];for(const[s,a]of e.entries())i=[...i,{match:o(s),roles:Array.from(a),specificity:n(s)}];return i.sort(r)}function VQ(e,t){let{hidden:n=!1}=t===void 0?{}:t;function r(o){return[o,...Array.from(o.children).reduce((i,s)=>[...i,...r(s)],[])]}return r(e).filter(o=>n===!1?sx(o)===!1:!0).reduce((o,i)=>{let s=[];return i.hasAttribute("role")?s=i.getAttribute("role").split(" ").slice(0,1):s=ax(i),s.reduce((a,u)=>Array.isArray(a[u])?{...a,[u]:[...a[u],i]}:{...a,[u]:[i]},o)},{})}function KQ(e,t){let{hidden:n,includeDescription:r}=t;const o=VQ(e,{hidden:n});return Object.entries(o).filter(i=>{let[s]=i;return s!=="generic"}).map(i=>{let[s,a]=i;const u="-".repeat(50),c=a.map(f=>{const p='Name "'+tx(f,{computedStyleSupportsPseudoElements:$t().computedStyleSupportsPseudoElements})+`":
|
|
81
|
-
`,m=Jp(f.cloneNode(!1));if(r){const b='Description "'+yM(f,{computedStyleSupportsPseudoElements:$t().computedStyleSupportsPseudoElements})+`":
|
|
82
|
-
`;return""+p+b+m}return""+p+m}).join(`
|
|
83
|
-
|
|
84
|
-
`);return s+`:
|
|
85
|
-
|
|
86
|
-
`+c+`
|
|
87
|
-
|
|
88
|
-
`+u}).join(`
|
|
89
|
-
`)}function HQ(e){return e.tagName==="OPTION"?e.selected:Td(e,"aria-selected")}function WQ(e){return e.getAttribute("aria-busy")==="true"}function UQ(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Td(e,"aria-checked")}function zQ(e){return Td(e,"aria-pressed")}function GQ(e){var t,n;return(t=(n=Td(e,"aria-current"))!=null?n:e.getAttribute("aria-current"))!=null?t:!1}function YQ(e){return Td(e,"aria-expanded")}function Td(e,t){const n=e.getAttribute(t);if(n==="true")return!0;if(n==="false")return!1}function XQ(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function ZQ(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function QQ(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function JQ(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function eJ(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const Z1=AM();function tJ(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Q1(e){return new RegExp(tJ(e.toLowerCase()),"i")}function ui(e,t,n,r){let{variant:o,name:i}=r,s="";const a={},u=[["Role","TestId"].includes(e)?n:Q1(n)];i&&(a.name=Q1(i)),e==="Role"&&sx(t)&&(a.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
90
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
91
|
-
`),Object.keys(a).length>0&&u.push(a);const c=o+"By"+e;return{queryName:e,queryMethod:c,queryArgs:u,variant:o,warning:s,toString(){s&&console.warn(s);let[f,p]=u;return f=typeof f=="string"?"'"+f+"'":f,p=p?", { "+Object.entries(p).map(m=>{let[b,y]=m;return b+": "+y}).join(", ")+" }":"",c+"("+f+p+")"}}}function ci(e,t,n){return n&&!0}function pb(e,t,n){var r,o;if(t===void 0&&(t="get"),e.matches($t().defaultIgnore))return;const i=(r=e.getAttribute("role"))!=null?r:(o=ax(e))==null?void 0:o[0];if(i!=="generic"&&ci("Role",n,i))return ui("Role",e,i,{variant:t,name:tx(e,{computedStyleSupportsPseudoElements:$t().computedStyleSupportsPseudoElements})});const s=DM(document,e).map(m=>m.content).join(" ");if(ci("LabelText",n,s))return ui("LabelText",e,s,{variant:t});const a=e.getAttribute("placeholder");if(ci("PlaceholderText",n,a))return ui("PlaceholderText",e,a,{variant:t});const u=Z1(Um(e));if(ci("Text",n,u))return ui("Text",e,u,{variant:t});if(ci("DisplayValue",n,e.value))return ui("DisplayValue",e,Z1(e.value),{variant:t});const c=e.getAttribute("alt");if(ci("AltText",n,c))return ui("AltText",e,c,{variant:t});const f=e.getAttribute("title");if(ci("Title",n,f))return ui("Title",e,f,{variant:t});const p=e.getAttribute($t().testIdAttribute);if(ci("TestId",n,p))return ui("TestId",e,p,{variant:t})}function dp(e,t){e.stack=t.stack.replace(t.message,e.message)}function nJ(e,t){let{container:n=ix(),timeout:r=$t().asyncUtilTimeout,showOriginalStackTrace:o=$t().showOriginalStackTrace,stackTraceError:i,interval:s=50,onTimeout:a=c=>(Object.defineProperty(c,"message",{value:$t().getElementError(c.message,n).message}),c),mutationObserverOptions:u={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(c,f)=>{let p,m,b,y=!1,v="idle";const E=setTimeout(S,r),x=Cv();if(x){const{unstable_advanceTimersWrapper:T}=$t();for(O();!y;){if(!Cv()){const _=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||dp(_,i),f(_);return}if(await T(async()=>{jest.advanceTimersByTime(s)}),y)break;O()}}else{try{Yo(n)}catch(_){f(_);return}m=setInterval(P,s);const{MutationObserver:T}=_M(n);b=new T(P),b.observe(n,u),O()}function R(T,_){y=!0,clearTimeout(E),x||(clearInterval(m),b.disconnect()),T?f(T):c(_)}function P(){if(Cv()){const T=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||dp(T,i),f(T)}else return O()}function O(){if(v!=="pending")try{const T=kQ(e);typeof T?.then=="function"?(v="pending",T.then(_=>{v="resolved",R(null,_)},_=>{v="rejected",p=_})):R(null,T)}catch(T){p=T}}function S(){let T;p?(T=p,!o&&T.name==="TestingLibraryElementError"&&dp(T,i)):(T=new Error("Timed out in waitFor."),o||dp(T,i)),R(a(T),null)}})}function rJ(e,t){const n=new Error("STACK_TRACE_MESSAGE");return $t().asyncWrapper(()=>nJ(e,{stackTraceError:n,...t}))}function kM(e,t){return $t().getElementError(e,t)}function oJ(e,t){return kM(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function zm(e,t,n,r){let{exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=r===void 0?{}:r;const u=o?Bo:xa,c=Es({collapseWhitespace:i,trim:s,normalizer:a});return Array.from(t.querySelectorAll("["+e+"]")).filter(f=>u(f.getAttribute(e),f,n,c))}function em(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const s=e(n,...o);if(s.length>1){const a=s.map(u=>kM(null,u).message).join(`
|
|
92
|
-
|
|
93
|
-
`);throw oJ(t(n,...o)+`
|
|
94
|
-
|
|
95
|
-
Here are the matching elements:
|
|
96
|
-
|
|
97
|
-
`+a,n)}return s[0]||null}}function FM(e,t){return $t().getElementError(`A better query is available, try this:
|
|
98
|
-
`+e.toString()+`
|
|
99
|
-
`,t)}function iJ(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const s=e(n,...o);if(!s.length)throw $t().getElementError(t(n,...o),n);return s}}function tm(e){return(t,n,r,o)=>rJ(()=>e(t,n,r),{container:t,...o})}const na=(e,t,n)=>function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];const a=e(r,...i),[{suggest:u=$t().throwSuggestions}={}]=i.slice(-1);if(a&&u){const c=pb(a,n);if(c&&!t.endsWith(c.queryName))throw FM(c.toString(),r)}return a},Dr=(e,t,n)=>function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];const a=e(r,...i),[{suggest:u=$t().throwSuggestions}={}]=i.slice(-1);if(a.length&&u){const c=[...new Set(a.map(f=>{var p;return(p=pb(f,n))==null?void 0:p.toString()}))];if(c.length===1&&!t.endsWith(pb(a[0],n).queryName))throw FM(c[0],r)}return a};function Cs(e,t,n){const r=na(em(e,t),e.name,"query"),o=iJ(e,n),i=em(o,t),s=na(i,e.name,"get"),a=Dr(o,e.name.replace("query","get"),"getAll"),u=tm(Dr(o,e.name,"findAll")),c=tm(na(i,e.name,"find"));return[r,a,s,u,c]}function sJ(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:fb(t)})).filter(t=>{let{textToMatch:n}=t;return n!==null})}const aJ=function(e,t,n){let{exact:r=!0,trim:o,collapseWhitespace:i,normalizer:s}=n===void 0?{}:n;const a=r?Bo:xa,u=Es({collapseWhitespace:i,trim:o,normalizer:s});return sJ(e).filter(f=>{let{node:p,textToMatch:m}=f;return a(m,p,t,u)}).map(f=>{let{node:p}=f;return p})},id=function(e,t,n){let{selector:r="*",exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=n===void 0?{}:n;Yo(e);const u=o?Bo:xa,c=Es({collapseWhitespace:i,trim:s,normalizer:a}),f=Array.from(e.querySelectorAll("*")).filter(p=>$M(p).length||p.hasAttribute("aria-labelledby")).reduce((p,m)=>{const b=DM(e,m,{selector:r});b.filter(v=>!!v.formControl).forEach(v=>{u(v.content,v.formControl,t,c)&&v.formControl&&p.push(v.formControl)});const y=b.filter(v=>!!v.content).map(v=>v.content);return u(y.join(" "),m,t,c)&&p.push(m),y.length>1&&y.forEach((v,E)=>{u(v,m,t,c)&&p.push(m);const x=[...y];x.splice(E,1),x.length>1&&u(x.join(" "),m,t,c)&&p.push(m)}),p},[]).concat(zm("aria-label",e,t,{exact:o,normalizer:c}));return Array.from(new Set(f)).filter(p=>p.matches(r))},ds=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];const i=id(e,t,...r);if(!i.length){const s=aJ(e,t,...r);if(s.length){const a=s.map(u=>lJ(e,u)).filter(u=>!!u);throw a.length?$t().getElementError(a.map(u=>"Found a label with the text of: "+t+", however the element associated with this label (<"+u+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+u+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
100
|
-
|
|
101
|
-
`),e):$t().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw $t().getElementError("Unable to find a label with the text of: "+t,e)}return i};function lJ(e,t){const n=t.getAttribute("for");if(!n)return null;const r=e.querySelector('[id="'+n+'"]');return r?r.tagName.toLowerCase():null}const LM=(e,t)=>"Found multiple elements with the text of: "+t,uJ=na(em(id,LM),id.name,"query"),qM=em(ds,LM),cJ=tm(Dr(ds,ds.name,"findAll")),dJ=tm(na(qM,ds.name,"find")),fJ=Dr(ds,ds.name,"getAll"),pJ=na(qM,ds.name,"get"),mJ=Dr(id,id.name,"queryAll"),mb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yo(t[0]),zm("placeholder",...t)},hJ=(e,t)=>"Found multiple elements with the placeholder text of: "+t,gJ=(e,t)=>"Unable to find an element with the placeholder text of: "+t,vJ=Dr(mb,mb.name,"queryAll"),[bJ,yJ,xJ,wJ,EJ]=Cs(mb,hJ,gJ),hb=function(e,t,n){let{selector:r="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:a=$t().defaultIgnore,normalizer:u}=n===void 0?{}:n;Yo(e);const c=o?Bo:xa,f=Es({collapseWhitespace:i,trim:s,normalizer:u});let p=[];return typeof e.matches=="function"&&e.matches(r)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(r))].filter(m=>!a||!m.matches(a)).filter(m=>c(Um(m),m,t,f))},CJ=(e,t)=>"Found multiple elements with the text: "+t,RJ=function(e,t,n){n===void 0&&(n={});const{collapseWhitespace:r,trim:o,normalizer:i,selector:s}=n,u=Es({collapseWhitespace:r,trim:o,normalizer:i})(t.toString()),c=u!==t.toString(),f=(s??"*")!=="*";return"Unable to find an element with the text: "+(c?u+" (normalized from '"+t+"')":t)+(f?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},SJ=Dr(hb,hb.name,"queryAll"),[PJ,TJ,_J,OJ,$J]=Cs(hb,CJ,RJ),gb=function(e,t,n){let{exact:r=!0,collapseWhitespace:o,trim:i,normalizer:s}=n===void 0?{}:n;Yo(e);const a=r?Bo:xa,u=Es({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(p=>p.selected).some(p=>a(Um(p),p,t,u)):a(c.value,c,t,u))},DJ=(e,t)=>"Found multiple elements with the display value: "+t+".",MJ=(e,t)=>"Unable to find an element with the display value: "+t+".",AJ=Dr(gb,gb.name,"queryAll"),[NJ,IJ,kJ,FJ,LJ]=Cs(gb,DJ,MJ),qJ=/^(img|input|area|.+-.+)$/i,vb=function(e,t,n){return n===void 0&&(n={}),Yo(e),zm("alt",e,t,n).filter(r=>qJ.test(r.tagName))},jJ=(e,t)=>"Found multiple elements with the alt text: "+t,BJ=(e,t)=>"Unable to find an element with the alt text: "+t,VJ=Dr(vb,vb.name,"queryAll"),[KJ,HJ,WJ,UJ,zJ]=Cs(vb,jJ,BJ),GJ=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},bb=function(e,t,n){let{exact:r=!0,collapseWhitespace:o,trim:i,normalizer:s}=n===void 0?{}:n;Yo(e);const a=r?Bo:xa,u=Es({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>a(c.getAttribute("title"),c,t,u)||GJ(c)&&a(Um(c),c,t,u))},YJ=(e,t)=>"Found multiple elements with the title: "+t+".",XJ=(e,t)=>"Unable to find an element with the title: "+t+".",ZJ=Dr(bb,bb.name,"queryAll"),[QJ,JJ,eee,tee,nee]=Cs(bb,YJ,XJ),yb=function(e,t,n){let{hidden:r=$t().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:a,busy:u,checked:c,pressed:f,current:p,level:m,expanded:b,value:{now:y,min:v,max:E,text:x}={}}=n===void 0?{}:n;if(Yo(e),a!==void 0){var R;if(((R=Er.roles.get(t))==null?void 0:R.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(u!==void 0){var P;if(((P=Er.roles.get(t))==null?void 0:P.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var O;if(((O=Er.roles.get(t))==null?void 0:O.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var S;if(((S=Er.roles.get(t))==null?void 0:S.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var T;if(((T=Er.roles.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(m!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(y!==void 0){var _;if(((_=Er.roles.get(t))==null?void 0:_.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(E!==void 0){var $;if((($=Er.roles.get(t))==null?void 0:$.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(v!==void 0){var V;if(((V=Er.roles.get(t))==null?void 0:V.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(x!==void 0){var U;if(((U=Er.roles.get(t))==null?void 0:U.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(b!==void 0){var A;if(((A=Er.roles.get(t))==null?void 0:A.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const H=new WeakMap;function F(N){return H.has(N)||H.set(N,IM(N)),H.get(N)}return Array.from(e.querySelectorAll(ree(t))).filter(N=>{if(N.hasAttribute("role")){const k=N.getAttribute("role");if(s)return k.split(" ").filter(Boolean).some(z=>z===t);const[q]=k.split(" ");return q===t}return ax(N).some(k=>k===t)}).filter(N=>{if(a!==void 0)return a===HQ(N);if(u!==void 0)return u===WQ(N);if(c!==void 0)return c===UQ(N);if(f!==void 0)return f===zQ(N);if(p!==void 0)return p===GQ(N);if(b!==void 0)return b===YQ(N);if(m!==void 0)return m===XQ(N);if(y!==void 0||E!==void 0||v!==void 0||x!==void 0){let I=!0;if(y!==void 0&&I&&(I=y===ZQ(N)),E!==void 0&&I&&(I=E===QQ(N)),v!==void 0&&I&&(I=v===JQ(N)),x!==void 0){var j;I&&(I=Bo((j=eJ(N))!=null?j:null,N,x,k=>k))}return I}return!0}).filter(N=>o===void 0?!0:Bo(tx(N,{computedStyleSupportsPseudoElements:$t().computedStyleSupportsPseudoElements}),N,o,j=>j)).filter(N=>i===void 0?!0:Bo(yM(N,{computedStyleSupportsPseudoElements:$t().computedStyleSupportsPseudoElements}),N,i,j=>j)).filter(N=>r===!1?sx(N,{isSubtreeInaccessible:F})===!1:!0)};function ree(e){var t;const n='*[role~="'+e+'"]',r=(t=Er.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(r).map(i=>{let{name:s}=i;return s}));return[n].concat(Array.from(o)).join(",")}const jM=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},oee=function(e,t,n){let{name:r}=n===void 0?{}:n;return'Found multiple elements with the role "'+t+'"'+jM(r)},iee=function(e,t,n){let{hidden:r=$t().defaultHidden,name:o,description:i}=n===void 0?{}:n;if($t()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+jM(o);let s="";Array.from(e.children).forEach(f=>{s+=KQ(f,{hidden:r,includeDescription:i!==void 0})});let a;s.length===0?r===!1?a="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":a="There are no available roles.":a=(`
|
|
102
|
-
Here are the `+(r===!1?"accessible":"available")+` roles:
|
|
103
|
-
|
|
104
|
-
`+s.replace(/\n/g,`
|
|
105
|
-
`).replace(/\n\s\s\n/g,`
|
|
106
|
-
|
|
107
|
-
`)+`
|
|
108
|
-
`).trim();let u="";o===void 0?u="":typeof o=="string"?u=' and name "'+o+'"':u=" and name `"+o+"`";let c="";return i===void 0?c="":typeof i=="string"?c=' and description "'+i+'"':c=" and description `"+i+"`",(`
|
|
109
|
-
Unable to find an `+(r===!1?"accessible ":"")+'element with the role "'+t+'"'+u+c+`
|
|
110
|
-
|
|
111
|
-
`+a).trim()},see=Dr(yb,yb.name,"queryAll"),[aee,lee,uee,cee,dee]=Cs(yb,oee,iee),lx=()=>$t().testIdAttribute,xb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yo(t[0]),zm(lx(),...t)},fee=(e,t)=>"Found multiple elements by: ["+lx()+'="'+t+'"]',pee=(e,t)=>"Unable to find an element by: ["+lx()+'="'+t+'"]',mee=Dr(xb,xb.name,"queryAll"),[hee,gee,vee,bee,yee]=Cs(xb,fee,pee);var wb=Object.freeze({__proto__:null,queryAllByLabelText:mJ,queryByLabelText:uJ,getAllByLabelText:fJ,getByLabelText:pJ,findAllByLabelText:cJ,findByLabelText:dJ,queryByPlaceholderText:bJ,queryAllByPlaceholderText:vJ,getByPlaceholderText:xJ,getAllByPlaceholderText:yJ,findAllByPlaceholderText:wJ,findByPlaceholderText:EJ,queryByText:PJ,queryAllByText:SJ,getByText:_J,getAllByText:TJ,findAllByText:OJ,findByText:$J,queryByDisplayValue:NJ,queryAllByDisplayValue:AJ,getByDisplayValue:kJ,getAllByDisplayValue:IJ,findAllByDisplayValue:FJ,findByDisplayValue:LJ,queryByAltText:KJ,queryAllByAltText:VJ,getByAltText:WJ,getAllByAltText:HJ,findAllByAltText:UJ,findByAltText:zJ,queryByTitle:QJ,queryAllByTitle:ZJ,getByTitle:eee,getAllByTitle:JJ,findAllByTitle:tee,findByTitle:nee,queryByRole:aee,queryAllByRole:see,getAllByRole:lee,getByRole:uee,findAllByRole:cee,findByRole:dee,queryByTestId:hee,queryAllByTestId:mee,getByTestId:vee,getAllByTestId:gee,findAllByTestId:bee,findByTestId:yee});function xee(e,t,n){return t===void 0&&(t=wb),n===void 0&&(n={}),Object.keys(t).reduce((r,o)=>{const i=t[o];return r[o]=i.bind(null,e),r},n)}const J1={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},eT={doubleClick:"dblClick"};function fs(e,t){return $t().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Rv(e,t,n,r){let{EventType:o="Event",defaultInit:i={}}=r===void 0?{}:r;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const s={...i,...n},{target:{value:a,files:u,...c}={}}=s;a!==void 0&&wee(t,a),u!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:u}),Object.assign(t,c);const f=_M(t),p=f[o]||f.Event;let m;if(typeof p=="function")m=new p(e,s);else{m=f.document.createEvent(o);const{bubbles:y,cancelable:v,detail:E,...x}=s;m.initEvent(e,y,v,E),Object.keys(x).forEach(R=>{m[R]=x[R]})}return["dataTransfer","clipboardData"].forEach(y=>{const v=s[y];typeof v=="object"&&(typeof f.DataTransfer=="function"?Object.defineProperty(m,y,{value:Object.getOwnPropertyNames(v).reduce((E,x)=>(Object.defineProperty(E,x,{value:v[x]}),E),new f.DataTransfer)}):Object.defineProperty(m,y,{value:v}))}),m}Object.keys(J1).forEach(e=>{const{EventType:t,defaultInit:n}=J1[e],r=e.toLowerCase();Rv[e]=(o,i)=>Rv(r,o,i,{EventType:t,defaultInit:n}),fs[e]=(o,i)=>fs(o,Rv[e](o,i))});function wee(e,t){const{set:n}=Object.getOwnPropertyDescriptor(e,"value")||{},r=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(r,"value")||{};if(o&&n!==o)o.call(e,t);else if(n)n.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(eT).forEach(e=>{const t=eT[e];fs[e]=function(){return fs[t](...arguments)}});function Eee(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
112
|
-
`)}function Cee(e){return gQ.compressToEncodedURIComponent(Eee(e))}function Ree(e){return"https://testing-playground.com/#markup="+Cee(e)}const See=(e,t,n)=>Array.isArray(e)?e.forEach(r=>X1(r,t,n)):X1(e,t,n),Pee=function(e){if(e===void 0&&(e=ix().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=Ree(e.innerHTML);return console.log(`Open this URL in your browser
|
|
113
|
-
|
|
114
|
-
`+t),t},tT={debug:See,logTestingPlaygroundURL:Pee};typeof document<"u"&&document.body?xee(document.body,wb,tT):Object.keys(wb).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),tT);const Tee=typeof h.act=="function"?h.act:iV.act;function BM(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function Fo(e){BM().IS_REACT_ACT_ENVIRONMENT=e}function nm(){return BM().IS_REACT_ACT_ENVIRONMENT}function _ee(e){return t=>{const n=nm();Fo(!0);try{let r=!1;const o=e(()=>{const i=t();return i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r=!0),i});if(r){const i=o;return{then:(s,a)=>{i.then(u=>{Fo(n),s(u)},u=>{Fo(n),a(u)})}}}else return Fo(n),o}catch(r){throw Fo(n),r}}}const sd=_ee(Tee),Gt=function(){return fs(...arguments)};Object.keys(fs).forEach(e=>{Gt[e]=function(){return fs[e](...arguments)}});const Oee=Gt.mouseEnter,$ee=Gt.mouseLeave;Gt.mouseEnter=function(){return Oee(...arguments),Gt.mouseOver(...arguments)};Gt.mouseLeave=function(){return $ee(...arguments),Gt.mouseOut(...arguments)};const Dee=Gt.pointerEnter,Mee=Gt.pointerLeave;Gt.pointerEnter=function(){return Dee(...arguments),Gt.pointerOver(...arguments)};Gt.pointerLeave=function(){return Mee(...arguments),Gt.pointerOut(...arguments)};const Aee=Gt.select;Gt.select=(e,t)=>{Aee(e,t),e.focus(),Gt.keyUp(e,t)};const Nee=Gt.blur,Iee=Gt.focus;Gt.blur=function(){return Gt.focusOut(...arguments),Nee(...arguments)};Gt.focus=function(){return Gt.focusIn(...arguments),Iee(...arguments)};function kee(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}FQ({unstable_advanceTimersWrapper:e=>sd(e),asyncWrapper:async e=>{const t=nm();Fo(!1);try{const n=await e();return await new Promise(r=>{setTimeout(()=>{r()},0),kee()&&jest.advanceTimersByTime(0)}),n}finally{Fo(t)}},eventWrapper:e=>{let t;return sd(()=>{t=e()}),t}});const Fee=new Set,nT=[];function rT(){nT.forEach(e=>{let{root:t,container:n}=e;sd(()=>{t.unmount()}),n.parentNode===document.body&&document.body.removeChild(n)}),nT.length=0,Fee.clear()}if((typeof process>"u"||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach=="function"?afterEach(()=>{rT()}):typeof teardown=="function"&&teardown(()=>{rT()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=nm();beforeAll(()=>{e=nm(),Fo(!0)}),afterAll(()=>{Fo(e)})}const Lee=e=>sd(()=>e.click()),qee=(e,t)=>sd(()=>{Gt.change(e,{target:{value:t}})}),jee=Oi("overflow-hidden aspect-square bg-muted grid place-items-center font-semibold shrink-0 select-none",{variants:{shape:{circle:"rounded-full",square:"rounded-xl"},size:{xs:"size-6 text-[10px]",sm:"size-8 text-xs",md:"size-10 text-sm",lg:"size-14 text-base",xl:"size-20 text-xl"}},defaultVariants:{shape:"circle",size:"md"}});function VM({className:e,shape:t,size:n,...r}){return w.jsx(Zy,{className:me(jee({shape:t,size:n}),e),"data-slot":"avatar",...r})}function KM({className:e,...t}){return w.jsx(Qy,{className:me("size-full object-cover",e),"data-slot":"avatar-image",...t})}function HM({className:e,...t}){return w.jsx(Jy,{className:me("flex size-full items-center justify-center",e),"data-slot":"avatar-fallback",...t})}function Bee({src:e,alt:t,fallback:n,delay:r,shape:o,size:i,className:s,imageProps:a,fallbackProps:u,...c}){return w.jsxs(VM,{shape:o,size:i,className:s,...c,children:[w.jsx(KM,{src:e,alt:t,...a}),w.jsx(HM,{delay:r,...u,children:n??uM(t)})]})}const Vee=({src:e,...t})=>w.jsx("div",{...t,"data-slot":"background-image",className:me("w-full block bg-cover bg-center",t.className),style:{...t.style,backgroundImage:`url(${e})`}}),WM=6048e5,Kee=864e5,Hee=6e4,Wee=36e5,Uee=1e3,oT=Symbol.for("constructDateFrom");function Dt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&oT in e?e[oT](t):e instanceof Date?new e.constructor(t):new Date(t)}function ft(e,t){return Dt(t||e,e)}function UM(e,t,n){const r=ft(e,n?.in);return isNaN(t)?Dt(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Eb(e,t,n){const r=ft(e,n?.in);if(isNaN(t))return Dt(e,NaN);if(!t)return r;const o=r.getDate(),i=Dt(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function zee(e,t){const n=ft(e,t?.in).getDay();return n===0||n===6}let Gee={};function wa(){return Gee}function Ko(e,t){const n=wa(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ft(e,t?.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function ca(e,t){return Ko(e,{...t,weekStartsOn:1})}function zM(e,t){const n=ft(e,t?.in),r=n.getFullYear(),o=Dt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ca(o),s=Dt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=ca(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function rm(e){const t=ft(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Gm(e,...t){const n=Dt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ri(e,t){const n=ft(e,t?.in);return n.setHours(0,0,0,0),n}function Yee(e,t,n){const[r,o]=Gm(n?.in,e,t),i=Ri(r),s=Ri(o),a=+i-rm(i),u=+s-rm(s);return Math.round((a-u)/Kee)}function Xee(e,t){const n=zM(e,t),r=Dt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ca(r)}function fp(e,t,n){return Eb(e,t*12,n)}function Zee(e){return Dt(e,Date.now())}function ss(e,t,n){const[r,o]=Gm(n?.in,e,t);return+Ri(r)==+Ri(o)}function ps(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qee(e){return!(!ps(e)&&typeof e!="number"||isNaN(+ft(e)))}function Jee(e,t){const n=ft(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function GM(e,t){const[n,r]=Gm(e,t.start,t.end);return{start:n,end:r}}function YM(e,t){const{start:n,end:r}=GM(t?.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let a=1;const u=[];for(;+s<=i;)u.push(Dt(n,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?u.reverse():u}function ete(e,t){const n=ft(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function XM(e,t){const{start:n,end:r}=GM(t?.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let a=1;const u=[];for(;+s<=i;)u.push(Dt(n,s)),s.setFullYear(s.getFullYear()+a);return o?u.reverse():u}function ZM(e,t){const n=ft(e,t?.in),r=n.getFullYear(),o=9+Math.floor(r/10)*10;return n.setFullYear(o,11,31),n.setHours(23,59,59,999),n}function tte(e,t){const n=t?.weekStartsOn,r=ft(e,t?.in),o=r.getDay(),i=(o<n?-7:0)+6-(o-n);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}const nte={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},rte=(e,t,n)=>{let r;const o=nte[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ra(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ote={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ite={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ste={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ate={date:ra({formats:ote,defaultWidth:"full"}),time:ra({formats:ite,defaultWidth:"full"}),dateTime:ra({formats:ste,defaultWidth:"full"})},lte={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ute=(e,t,n,r)=>lte[e];function so(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const cte={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dte={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fte={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pte={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mte={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hte={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gte=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vte={ordinalNumber:gte,era:so({values:cte,defaultWidth:"wide"}),quarter:so({values:dte,defaultWidth:"wide",argumentCallback:e=>e-1}),month:so({values:fte,defaultWidth:"wide"}),day:so({values:pte,defaultWidth:"wide"}),dayPeriod:so({values:mte,defaultWidth:"wide",formattingValues:hte,defaultFormattingWidth:"wide"})};function ao(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?yte(a,p=>p.test(s)):bte(a,p=>p.test(s));let c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(s.length);return{value:c,rest:f}}}function bte(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function yte(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function QM(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(o.length);return{value:s,rest:a}}}const xte=/^(\d+)(th|st|nd|rd)?/i,wte=/\d+/i,Ete={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cte={any:[/^b/i,/^(a|c)/i]},Rte={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ste={any:[/1/i,/2/i,/3/i,/4/i]},Pte={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tte={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_te={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ote={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$te={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Dte={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Mte={ordinalNumber:QM({matchPattern:xte,parsePattern:wte,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Ete,defaultMatchWidth:"wide",parsePatterns:Cte,defaultParseWidth:"any"}),quarter:ao({matchPatterns:Rte,defaultMatchWidth:"wide",parsePatterns:Ste,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:Pte,defaultMatchWidth:"wide",parsePatterns:Tte,defaultParseWidth:"any"}),day:ao({matchPatterns:_te,defaultMatchWidth:"wide",parsePatterns:Ote,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:$te,defaultMatchWidth:"any",parsePatterns:Dte,defaultParseWidth:"any"})},JM={code:"en-US",formatDistance:rte,formatLong:ate,formatRelative:ute,localize:vte,match:Mte,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ate(e,t){const n=ft(e,t?.in);return Yee(n,ete(n))+1}function eA(e,t){const n=ft(e,t?.in),r=+ca(n)-+Xee(n);return Math.round(r/WM)+1}function ux(e,t){const n=ft(e,t?.in),r=n.getFullYear(),o=wa(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=Dt(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=Ko(s,t),u=Dt(t?.in||e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const c=Ko(u,t);return+n>=+a?r+1:+n>=+c?r:r-1}function Nte(e,t){const n=wa(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ux(e,t),i=Dt(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Ko(i,t)}function tA(e,t){const n=ft(e,t?.in),r=+Ko(n,t)-+Nte(n,t);return Math.round(r/WM)+1}function Rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const di={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Rt(n+1,2)},d(e,t){return Rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Rt(e.getHours()%12||12,t.length)},H(e,t){return Rt(e.getHours(),t.length)},m(e,t){return Rt(e.getMinutes(),t.length)},s(e,t){return Rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Rt(o,t.length)}},Hs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},iT={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return di.y(e,t)},Y:function(e,t,n,r){const o=ux(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return Rt(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Rt(i,t.length)},R:function(e,t){const n=zM(e);return Rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return di.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=tA(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Rt(o,t.length)},I:function(e,t,n){const r=eA(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):di.d(e,t)},D:function(e,t,n){const r=Ate(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Rt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Rt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Rt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Hs.noon:r===0?o=Hs.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Hs.evening:r>=12?o=Hs.afternoon:r>=4?o=Hs.morning:o=Hs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return di.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):di.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):di.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):di.s(e,t)},S:function(e,t){return di.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return aT(r);case"XXXX":case"XX":return Ji(r);case"XXXXX":case"XXX":default:return Ji(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return aT(r);case"xxxx":case"xx":return Ji(r);case"xxxxx":case"xxx":default:return Ji(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sT(r,":");case"OOOO":default:return"GMT"+Ji(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sT(r,":");case"zzzz":default:return"GMT"+Ji(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Rt(r,t.length)},T:function(e,t,n){return Rt(+e,t.length)}};function sT(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+Rt(i,2)}function aT(e,t){return e%60===0?(e>0?"-":"+")+Rt(Math.abs(e)/60,2):Ji(e,t)}function Ji(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Rt(Math.trunc(r/60),2),i=Rt(r%60,2);return n+o+t+i}const lT=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},nA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ite=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return lT(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",lT(r,t)).replace("{{time}}",nA(o,t))},Cb={p:nA,P:Ite},kte=/^D+$/,Fte=/^Y+$/,Lte=["D","DD","YY","YYYY"];function rA(e){return kte.test(e)}function oA(e){return Fte.test(e)}function Rb(e,t,n){const r=qte(e,t,n);if(console.warn(r),Lte.includes(e))throw new RangeError(r)}function qte(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const jte=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bte=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vte=/^'([^]*?)'?$/,Kte=/''/g,Hte=/[a-zA-Z]/;function Cn(e,t,n){const r=wa(),o=n?.locale??r.locale??JM,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=ft(e,n?.in);if(!Qee(a))throw new RangeError("Invalid time value");let u=t.match(Bte).map(f=>{const p=f[0];if(p==="p"||p==="P"){const m=Cb[p];return m(f,o.formatLong)}return f}).join("").match(jte).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const p=f[0];if(p==="'")return{isToken:!1,value:Wte(f)};if(iT[p])return{isToken:!0,value:f};if(p.match(Hte))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(u=o.localize.preprocessor(a,u));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return u.map(f=>{if(!f.isToken)return f.value;const p=f.value;(!n?.useAdditionalWeekYearTokens&&oA(p)||!n?.useAdditionalDayOfYearTokens&&rA(p))&&Rb(p,t,String(e));const m=iT[p[0]];return m(a,p,o.localize,c)}).join("")}function Wte(e){const t=e.match(Vte);return t?t[1].replace(Kte,"'"):e}function Ute(e,t){const n=ft(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=Dt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function zte(){return Object.assign({},wa())}function Gte(e,t){const n=ft(e,t?.in).getDay();return n===0?7:n}function Yte(e,t){return+ft(e)<+ft(t)}function Xte(e,t){const n=Zte(t)?new t(0):Dt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Zte(e){return typeof e=="function"&&e.prototype?.constructor===e}const Qte=10;class iA{subPriority=0;validate(t,n){return!0}}class Jte extends iA{constructor(t,n,r,o,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class ene extends iA{priority=Qte;subPriority=-1;constructor(t,n){super(),this.context=t||(r=>Dt(n,r))}set(t,n){return n.timestampIsSet?t:Dt(t,Xte(t,this.context))}}class gt{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new Jte(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class tne extends gt{priority=140;parse(t,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,n,r){return n.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const rn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},lo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function on(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ut(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function uo(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*Wee+i*Hee+s*Uee),rest:t.slice(n[0].length)}}function sA(e){return Ut(rn.anyDigitsSigned,e)}function Qt(e,t){switch(e){case 1:return Ut(rn.singleDigit,t);case 2:return Ut(rn.twoDigits,t);case 3:return Ut(rn.threeDigits,t);case 4:return Ut(rn.fourDigits,t);default:return Ut(new RegExp("^\\d{1,"+e+"}"),t)}}function om(e,t){switch(e){case 1:return Ut(rn.singleDigitSigned,t);case 2:return Ut(rn.twoDigitsSigned,t);case 3:return Ut(rn.threeDigitsSigned,t);case 4:return Ut(rn.fourDigitsSigned,t);default:return Ut(new RegExp("^-?\\d{1,"+e+"}"),t)}}function cx(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function aA(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,s=Math.trunc(i/100)*100,a=e>=i%100;o=e+s-(a?100:0)}return n?o:1-o}function lA(e){return e%400===0||e%4===0&&e%100!==0}class nne extends gt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return on(Qt(4,t),o);case"yo":return on(r.ordinalNumber(t,{unit:"year"}),o);default:return on(Qt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r){const o=t.getFullYear();if(r.isTwoDigitYear){const s=aA(r.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class rne extends gt{priority=130;parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return on(Qt(4,t),o);case"Yo":return on(r.ordinalNumber(t,{unit:"year"}),o);default:return on(Qt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r,o){const i=ux(t,o);if(r.isTwoDigitYear){const a=aA(r.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,o)}const s=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class one extends gt{priority=130;parse(t,n){return om(n==="R"?4:n.length,t)}set(t,n,r){const o=Dt(t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),ca(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ine extends gt{priority=130;parse(t,n){return om(n==="u"?4:n.length,t)}set(t,n,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class sne extends gt{priority=120;parse(t,n,r){switch(n){case"Q":case"QQ":return Qt(n.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class ane extends gt{priority=120;parse(t,n,r){switch(n){case"q":case"qq":return Qt(n.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class lne extends gt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"M":return on(Ut(rn.month,t),o);case"MM":return on(Qt(2,t),o);case"Mo":return on(r.ordinalNumber(t,{unit:"month"}),o);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class une extends gt{priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"L":return on(Ut(rn.month,t),o);case"LL":return on(Qt(2,t),o);case"Lo":return on(r.ordinalNumber(t,{unit:"month"}),o);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function cne(e,t,n){const r=ft(e,n?.in),o=tA(r,n)-t;return r.setDate(r.getDate()-o*7),ft(r,n?.in)}class dne extends gt{priority=100;parse(t,n,r){switch(n){case"w":return Ut(rn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Qt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r,o){return Ko(cne(t,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function fne(e,t,n){const r=ft(e,n?.in),o=eA(r,n)-t;return r.setDate(r.getDate()-o*7),r}class pne extends gt{priority=100;parse(t,n,r){switch(n){case"I":return Ut(rn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Qt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r){return ca(fne(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const mne=[31,28,31,30,31,30,31,31,30,31,30,31],hne=[31,29,31,30,31,30,31,31,30,31,30,31];class gne extends gt{priority=90;subPriority=1;parse(t,n,r){switch(n){case"d":return Ut(rn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Qt(n.length,t)}}validate(t,n){const r=t.getFullYear(),o=lA(r),i=t.getMonth();return o?n>=1&&n<=hne[i]:n>=1&&n<=mne[i]}set(t,n,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class vne extends gt{priority=90;subpriority=1;parse(t,n,r){switch(n){case"D":case"DD":return Ut(rn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Qt(n.length,t)}}validate(t,n){const r=t.getFullYear();return lA(r)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function dx(e,t,n){const r=wa(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ft(e,n?.in),s=i.getDay(),u=(t%7+7)%7,c=7-o,f=t<0||t>6?t-(s+c)%7:(u+c)%7-(s+c)%7;return UM(i,f,n)}class bne extends gt{priority=90;parse(t,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=dx(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class yne extends gt{priority=90;parse(t,n,r,o){const i=s=>{const a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return on(Qt(n.length,t),i);case"eo":return on(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=dx(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class xne extends gt{priority=90;parse(t,n,r,o){const i=s=>{const a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return on(Qt(n.length,t),i);case"co":return on(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=dx(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function wne(e,t,n){const r=ft(e,n?.in),o=Gte(r,n),i=t-o;return UM(r,i,n)}class Ene extends gt{priority=90;parse(t,n,r){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Qt(n.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return on(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return on(r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return on(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return on(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,r){return t=wne(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Cne extends gt{priority=80;parse(t,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(cx(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class Rne extends gt{priority=80;parse(t,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(cx(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class Sne extends gt{priority=80;parse(t,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(cx(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class Pne extends gt{priority=70;parse(t,n,r){switch(n){case"h":return Ut(rn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Qt(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,r){const o=t.getHours()>=12;return o&&r<12?t.setHours(r+12,0,0,0):!o&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class Tne extends gt{priority=70;parse(t,n,r){switch(n){case"H":return Ut(rn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Qt(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class _ne extends gt{priority=70;parse(t,n,r){switch(n){case"K":return Ut(rn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Qt(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class One extends gt{priority=70;parse(t,n,r){switch(n){case"k":return Ut(rn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Qt(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,r){const o=r<=24?r%24:r;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class $ne extends gt{priority=60;parse(t,n,r){switch(n){case"m":return Ut(rn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Qt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]}class Dne extends gt{priority=50;parse(t,n,r){switch(n){case"s":return Ut(rn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Qt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]}class Mne extends gt{priority=30;parse(t,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return on(Qt(n.length,t),r)}set(t,n,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]}class Ane extends gt{priority=10;parse(t,n){switch(n){case"X":return uo(lo.basicOptionalMinutes,t);case"XX":return uo(lo.basic,t);case"XXXX":return uo(lo.basicOptionalSeconds,t);case"XXXXX":return uo(lo.extendedOptionalSeconds,t);case"XXX":default:return uo(lo.extended,t)}}set(t,n,r){return n.timestampIsSet?t:Dt(t,t.getTime()-rm(t)-r)}incompatibleTokens=["t","T","x"]}class Nne extends gt{priority=10;parse(t,n){switch(n){case"x":return uo(lo.basicOptionalMinutes,t);case"xx":return uo(lo.basic,t);case"xxxx":return uo(lo.basicOptionalSeconds,t);case"xxxxx":return uo(lo.extendedOptionalSeconds,t);case"xxx":default:return uo(lo.extended,t)}}set(t,n,r){return n.timestampIsSet?t:Dt(t,t.getTime()-rm(t)-r)}incompatibleTokens=["t","T","X"]}class Ine extends gt{priority=40;parse(t){return sA(t)}set(t,n,r){return[Dt(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class kne extends gt{priority=20;parse(t){return sA(t)}set(t,n,r){return[Dt(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const Fne={G:new tne,y:new nne,Y:new rne,R:new one,u:new ine,Q:new sne,q:new ane,M:new lne,L:new une,w:new dne,I:new pne,d:new gne,D:new vne,E:new bne,e:new yne,c:new xne,i:new Ene,a:new Cne,b:new Rne,B:new Sne,h:new Pne,H:new Tne,K:new _ne,k:new One,m:new $ne,s:new Dne,S:new Mne,X:new Ane,x:new Nne,t:new Ine,T:new kne},Lne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qne=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jne=/^'([^]*?)'?$/,Bne=/''/g,Vne=/\S/,Kne=/[a-zA-Z]/;function Hne(e,t,n,r){const o=()=>Dt(n,NaN),i=zte(),s=i.locale??JM,a=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},f=[new ene(r?.in,n)],p=t.match(qne).map(E=>{const x=E[0];if(x in Cb){const R=Cb[x];return R(E,s.formatLong)}return E}).join("").match(Lne),m=[];for(let E of p){oA(E)&&Rb(E,t,e),rA(E)&&Rb(E,t,e);const x=E[0],R=Fne[x];if(R){const{incompatibleTokens:P}=R;if(Array.isArray(P)){const S=m.find(T=>P.includes(T.token)||T.token===x);if(S)throw new RangeError(`The format string mustn't contain \`${S.fullToken}\` and \`${E}\` at the same time`)}else if(R.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${E}\` and any other token at the same time`);m.push({token:x,fullToken:E});const O=R.run(e,E,s.match,c);if(!O)return o();f.push(O.setter),e=O.rest}else{if(x.match(Kne))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(E==="''"?E="'":x==="'"&&(E=Wne(E)),e.indexOf(E)===0)e=e.slice(E.length);else return o()}}if(e.length>0&&Vne.test(e))return o();const b=f.map(E=>E.priority).sort((E,x)=>x-E).filter((E,x,R)=>R.indexOf(E)===x).map(E=>f.filter(x=>x.priority===E).sort((x,R)=>R.subPriority-x.subPriority)).map(E=>E[0]);let y=ft(n,r?.in);if(isNaN(+y))return o();const v={};for(const E of b){if(!E.validate(y,c))return o();const x=E.set(y,v,c);Array.isArray(x)?(y=x[0],Object.assign(v,x[1])):y=x}return y}function Wne(e){return e.match(jne)[1].replace(Bne,"'")}function Une(e,t,n){const[r,o]=Gm(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function zne(e,t){return ss(Dt(e,e),Zee(e))}function Gne(e,t,n){const r=+ft(e,n?.in),[o,i]=[+ft(t.start,n?.in),+ft(t.end,n?.in)].sort((s,a)=>s-a);return r>=o&&r<=i}function Yne(e,t,n){const r=ft(e,n?.in),o=r.getFullYear(),i=r.getDate(),s=Dt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const a=Ute(s);return r.setMonth(t,Math.min(i,a)),r}function Xne(e,t,n){const r=ft(e,n?.in);return isNaN(+r)?Dt(e,NaN):(r.setFullYear(t),r)}function uA(e,t){const n=ft(e,t?.in),r=n.getFullYear(),o=Math.floor(r/10)*10;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}function Sv(e){return Ri(Date.now(),e)}const Zne={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Qne=(e,t,n)=>{let r;const o=Zne[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},Jne={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},ere={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tre={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nre={date:ra({formats:Jne,defaultWidth:"full"}),time:ra({formats:ere,defaultWidth:"full"}),dateTime:ra({formats:tre,defaultWidth:"full"})},rre={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},ore={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ire=(e,t,n,r)=>t.getHours()!==1?ore[e]:rre[e],sre={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},are={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},lre={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},ure={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},cre={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},dre={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},fre=(e,t)=>Number(e)+"º",pre={ordinalNumber:fre,era:so({values:sre,defaultWidth:"wide"}),quarter:so({values:are,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:so({values:lre,defaultWidth:"wide"}),day:so({values:ure,defaultWidth:"wide"}),dayPeriod:so({values:cre,defaultWidth:"wide",formattingValues:dre,defaultFormattingWidth:"wide"})},mre=/^(\d+)(º)?/i,hre=/\d+/i,gre={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},vre={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},bre={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},yre={any:[/1/i,/2/i,/3/i,/4/i]},xre={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},wre={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Ere={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Cre={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Rre={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Sre={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Pre={ordinalNumber:QM({matchPattern:mre,parsePattern:hre,valueCallback:function(e){return parseInt(e,10)}}),era:ao({matchPatterns:gre,defaultMatchWidth:"wide",parsePatterns:vre,defaultParseWidth:"any"}),quarter:ao({matchPatterns:bre,defaultMatchWidth:"wide",parsePatterns:yre,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:xre,defaultMatchWidth:"wide",parsePatterns:wre,defaultParseWidth:"any"}),day:ao({matchPatterns:Ere,defaultMatchWidth:"wide",parsePatterns:Cre,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:Rre,defaultMatchWidth:"any",parsePatterns:Sre,defaultParseWidth:"any"})},Tre={code:"es",formatDistance:Qne,formatLong:nre,formatRelative:ire,localize:pre,match:Pre,options:{weekStartsOn:1,firstWeekContainsDate:1}};var jc={exports:{}};var _re=jc.exports,uT;function Ore(){return uT||(uT=1,(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,m=2,b=4,y=1,v=2,E=1,x=2,R=4,P=8,O=16,S=32,T=64,_=128,$=256,V=512,U=30,A="...",H=800,F=16,N=1,j=2,I=3,k=1/0,q=9007199254740991,z=17976931348623157e292,W=NaN,te=4294967295,X=te-1,Q=te>>>1,re=[["ary",_],["bind",E],["bindKey",x],["curry",P],["curryRight",O],["flip",V],["partial",S],["partialRight",T],["rearg",$]],ce="[object Arguments]",se="[object Array]",ee="[object AsyncFunction]",de="[object Boolean]",K="[object Date]",ue="[object DOMException]",le="[object Error]",Z="[object Function]",xe="[object GeneratorFunction]",Re="[object Map]",Ae="[object Number]",Se="[object Null]",Oe="[object Object]",Ye="[object Promise]",Fe="[object Proxy]",G="[object RegExp]",J="[object Set]",ie="[object String]",fe="[object Symbol]",pe="[object Undefined]",ge="[object WeakMap]",Ee="[object WeakSet]",Pe="[object ArrayBuffer]",Ne="[object DataView]",st="[object Float32Array]",ut="[object Float64Array]",wt="[object Int8Array]",dt="[object Int16Array]",Nt="[object Int32Array]",Yt="[object Uint8Array]",un="[object Uint8ClampedArray]",mn="[object Uint16Array]",$n="[object Uint32Array]",nt=/\b__p \+= '';/g,tt=/\b(__p \+=) '' \+/g,Jt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ft=/&(?:amp|lt|gt|quot|#39);/g,Dn=/[&<>"']/g,Rn=RegExp(Ft.source),Ar=RegExp(Dn.source),Zr=/<%-([\s\S]+?)%>/g,Zo=/<%([\s\S]+?)%>/g,Ce=/<%=([\s\S]+?)%>/g,Ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/,Qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Ud=RegExp(ki.source),_a=/^\s+/,wh=/\s/,Fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Eh=/\{\n\/\* \[wrapped with (.+)\] \*/,Ch=/,? & /,Rh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,B2=/[()=,{}\[\]\/\s]/,V2=/\\(\\)?/g,K2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lw=/\w*$/,H2=/^[-+]0x[0-9a-f]+$/i,W2=/^0b[01]+$/i,U2=/^\[object .+?Constructor\]$/,z2=/^0o[0-7]+$/i,G2=/^(?:0|[1-9]\d*)$/,Y2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zd=/($^)/,X2=/['\n\r\u2028\u2029\\]/g,Gd="\\ud800-\\udfff",Z2="\\u0300-\\u036f",Q2="\\ufe20-\\ufe2f",J2="\\u20d0-\\u20ff",qw=Z2+Q2+J2,jw="\\u2700-\\u27bf",Bw="a-z\\xdf-\\xf6\\xf8-\\xff",e3="\\xac\\xb1\\xd7\\xf7",t3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",n3="\\u2000-\\u206f",r3=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vw="A-Z\\xc0-\\xd6\\xd8-\\xde",Kw="\\ufe0e\\ufe0f",Hw=e3+t3+n3+r3,Sh="['’]",o3="["+Gd+"]",Ww="["+Hw+"]",Yd="["+qw+"]",Uw="\\d+",i3="["+jw+"]",zw="["+Bw+"]",Gw="[^"+Gd+Hw+Uw+jw+Bw+Vw+"]",Ph="\\ud83c[\\udffb-\\udfff]",s3="(?:"+Yd+"|"+Ph+")",Yw="[^"+Gd+"]",Th="(?:\\ud83c[\\udde6-\\uddff]){2}",_h="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+Vw+"]",Xw="\\u200d",Zw="(?:"+zw+"|"+Gw+")",a3="(?:"+Ss+"|"+Gw+")",Qw="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",Jw="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",e0=s3+"?",t0="["+Kw+"]?",l3="(?:"+Xw+"(?:"+[Yw,Th,_h].join("|")+")"+t0+e0+")*",u3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+l3,d3="(?:"+[i3,Th,_h].join("|")+")"+n0,f3="(?:"+[Yw+Yd+"?",Yd,Th,_h,o3].join("|")+")",p3=RegExp(Sh,"g"),m3=RegExp(Yd,"g"),Oh=RegExp(Ph+"(?="+Ph+")|"+f3+n0,"g"),h3=RegExp([Ss+"?"+zw+"+"+Qw+"(?="+[Ww,Ss,"$"].join("|")+")",a3+"+"+Jw+"(?="+[Ww,Ss+Zw,"$"].join("|")+")",Ss+"?"+Zw+"+"+Qw,Ss+"+"+Jw,c3,u3,Uw,d3].join("|"),"g"),g3=RegExp("["+Xw+Gd+qw+Kw+"]"),v3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,b3=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y3=-1,It={};It[st]=It[ut]=It[wt]=It[dt]=It[Nt]=It[Yt]=It[un]=It[mn]=It[$n]=!0,It[ce]=It[se]=It[Pe]=It[de]=It[Ne]=It[K]=It[le]=It[Z]=It[Re]=It[Ae]=It[Oe]=It[G]=It[J]=It[ie]=It[ge]=!1;var Mt={};Mt[ce]=Mt[se]=Mt[Pe]=Mt[Ne]=Mt[de]=Mt[K]=Mt[st]=Mt[ut]=Mt[wt]=Mt[dt]=Mt[Nt]=Mt[Re]=Mt[Ae]=Mt[Oe]=Mt[G]=Mt[J]=Mt[ie]=Mt[fe]=Mt[Yt]=Mt[un]=Mt[mn]=Mt[$n]=!0,Mt[le]=Mt[Z]=Mt[ge]=!1;var x3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w3={"&":"&","<":"<",">":">",'"':""","'":"'"},E3={"&":"&","<":"<",">":">",""":'"',"'":"'"},C3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},R3=parseFloat,S3=parseInt,r0=typeof Bf=="object"&&Bf&&Bf.Object===Object&&Bf,P3=typeof self=="object"&&self&&self.Object===Object&&self,Sn=r0||P3||Function("return this")(),$h=t&&!t.nodeType&&t,Li=$h&&!0&&e&&!e.nodeType&&e,o0=Li&&Li.exports===$h,Dh=o0&&r0.process,mr=(function(){try{var oe=Li&&Li.require&&Li.require("util").types;return oe||Dh&&Dh.binding&&Dh.binding("util")}catch{}})(),i0=mr&&mr.isArrayBuffer,s0=mr&&mr.isDate,a0=mr&&mr.isMap,l0=mr&&mr.isRegExp,u0=mr&&mr.isSet,c0=mr&&mr.isTypedArray;function tr(oe,ve,he){switch(he.length){case 0:return oe.call(ve);case 1:return oe.call(ve,he[0]);case 2:return oe.call(ve,he[0],he[1]);case 3:return oe.call(ve,he[0],he[1],he[2])}return oe.apply(ve,he)}function T3(oe,ve,he,$e){for(var We=-1,mt=oe==null?0:oe.length;++We<mt;){var hn=oe[We];ve($e,hn,he(hn),oe)}return $e}function hr(oe,ve){for(var he=-1,$e=oe==null?0:oe.length;++he<$e&&ve(oe[he],he,oe)!==!1;);return oe}function _3(oe,ve){for(var he=oe==null?0:oe.length;he--&&ve(oe[he],he,oe)!==!1;);return oe}function d0(oe,ve){for(var he=-1,$e=oe==null?0:oe.length;++he<$e;)if(!ve(oe[he],he,oe))return!1;return!0}function Jo(oe,ve){for(var he=-1,$e=oe==null?0:oe.length,We=0,mt=[];++he<$e;){var hn=oe[he];ve(hn,he,oe)&&(mt[We++]=hn)}return mt}function Xd(oe,ve){var he=oe==null?0:oe.length;return!!he&&Ps(oe,ve,0)>-1}function Mh(oe,ve,he){for(var $e=-1,We=oe==null?0:oe.length;++$e<We;)if(he(ve,oe[$e]))return!0;return!1}function Lt(oe,ve){for(var he=-1,$e=oe==null?0:oe.length,We=Array($e);++he<$e;)We[he]=ve(oe[he],he,oe);return We}function ei(oe,ve){for(var he=-1,$e=ve.length,We=oe.length;++he<$e;)oe[We+he]=ve[he];return oe}function Ah(oe,ve,he,$e){var We=-1,mt=oe==null?0:oe.length;for($e&&mt&&(he=oe[++We]);++We<mt;)he=ve(he,oe[We],We,oe);return he}function O3(oe,ve,he,$e){var We=oe==null?0:oe.length;for($e&&We&&(he=oe[--We]);We--;)he=ve(he,oe[We],We,oe);return he}function Nh(oe,ve){for(var he=-1,$e=oe==null?0:oe.length;++he<$e;)if(ve(oe[he],he,oe))return!0;return!1}var $3=Ih("length");function D3(oe){return oe.split("")}function M3(oe){return oe.match(Rh)||[]}function f0(oe,ve,he){var $e;return he(oe,function(We,mt,hn){if(ve(We,mt,hn))return $e=mt,!1}),$e}function Zd(oe,ve,he,$e){for(var We=oe.length,mt=he+($e?1:-1);$e?mt--:++mt<We;)if(ve(oe[mt],mt,oe))return mt;return-1}function Ps(oe,ve,he){return ve===ve?H3(oe,ve,he):Zd(oe,p0,he)}function A3(oe,ve,he,$e){for(var We=he-1,mt=oe.length;++We<mt;)if($e(oe[We],ve))return We;return-1}function p0(oe){return oe!==oe}function m0(oe,ve){var he=oe==null?0:oe.length;return he?Fh(oe,ve)/he:W}function Ih(oe){return function(ve){return ve==null?n:ve[oe]}}function kh(oe){return function(ve){return oe==null?n:oe[ve]}}function h0(oe,ve,he,$e,We){return We(oe,function(mt,hn,Ot){he=$e?($e=!1,mt):ve(he,mt,hn,Ot)}),he}function N3(oe,ve){var he=oe.length;for(oe.sort(ve);he--;)oe[he]=oe[he].value;return oe}function Fh(oe,ve){for(var he,$e=-1,We=oe.length;++$e<We;){var mt=ve(oe[$e]);mt!==n&&(he=he===n?mt:he+mt)}return he}function Lh(oe,ve){for(var he=-1,$e=Array(oe);++he<oe;)$e[he]=ve(he);return $e}function I3(oe,ve){return Lt(ve,function(he){return[he,oe[he]]})}function g0(oe){return oe&&oe.slice(0,x0(oe)+1).replace(_a,"")}function nr(oe){return function(ve){return oe(ve)}}function qh(oe,ve){return Lt(ve,function(he){return oe[he]})}function Oa(oe,ve){return oe.has(ve)}function v0(oe,ve){for(var he=-1,$e=oe.length;++he<$e&&Ps(ve,oe[he],0)>-1;);return he}function b0(oe,ve){for(var he=oe.length;he--&&Ps(ve,oe[he],0)>-1;);return he}function k3(oe,ve){for(var he=oe.length,$e=0;he--;)oe[he]===ve&&++$e;return $e}var F3=kh(x3),L3=kh(w3);function q3(oe){return"\\"+C3[oe]}function j3(oe,ve){return oe==null?n:oe[ve]}function Ts(oe){return g3.test(oe)}function B3(oe){return v3.test(oe)}function V3(oe){for(var ve,he=[];!(ve=oe.next()).done;)he.push(ve.value);return he}function jh(oe){var ve=-1,he=Array(oe.size);return oe.forEach(function($e,We){he[++ve]=[We,$e]}),he}function y0(oe,ve){return function(he){return oe(ve(he))}}function ti(oe,ve){for(var he=-1,$e=oe.length,We=0,mt=[];++he<$e;){var hn=oe[he];(hn===ve||hn===f)&&(oe[he]=f,mt[We++]=he)}return mt}function Qd(oe){var ve=-1,he=Array(oe.size);return oe.forEach(function($e){he[++ve]=$e}),he}function K3(oe){var ve=-1,he=Array(oe.size);return oe.forEach(function($e){he[++ve]=[$e,$e]}),he}function H3(oe,ve,he){for(var $e=he-1,We=oe.length;++$e<We;)if(oe[$e]===ve)return $e;return-1}function W3(oe,ve,he){for(var $e=he+1;$e--;)if(oe[$e]===ve)return $e;return $e}function _s(oe){return Ts(oe)?z3(oe):$3(oe)}function Nr(oe){return Ts(oe)?G3(oe):D3(oe)}function x0(oe){for(var ve=oe.length;ve--&&wh.test(oe.charAt(ve)););return ve}var U3=kh(E3);function z3(oe){for(var ve=Oh.lastIndex=0;Oh.test(oe);)++ve;return ve}function G3(oe){return oe.match(Oh)||[]}function Y3(oe){return oe.match(h3)||[]}var X3=(function oe(ve){ve=ve==null?Sn:Os.defaults(Sn.Object(),ve,Os.pick(Sn,b3));var he=ve.Array,$e=ve.Date,We=ve.Error,mt=ve.Function,hn=ve.Math,Ot=ve.Object,Bh=ve.RegExp,Z3=ve.String,gr=ve.TypeError,Jd=he.prototype,Q3=mt.prototype,$s=Ot.prototype,ef=ve["__core-js_shared__"],tf=Q3.toString,Et=$s.hasOwnProperty,J3=0,w0=(function(){var l=/[^.]+$/.exec(ef&&ef.keys&&ef.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),nf=$s.toString,eL=tf.call(Ot),tL=Sn._,nL=Bh("^"+tf.call(Et).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rf=o0?ve.Buffer:n,ni=ve.Symbol,of=ve.Uint8Array,E0=rf?rf.allocUnsafe:n,sf=y0(Ot.getPrototypeOf,Ot),C0=Ot.create,R0=$s.propertyIsEnumerable,af=Jd.splice,S0=ni?ni.isConcatSpreadable:n,$a=ni?ni.iterator:n,qi=ni?ni.toStringTag:n,lf=(function(){try{var l=Hi(Ot,"defineProperty");return l({},"",{}),l}catch{}})(),rL=ve.clearTimeout!==Sn.clearTimeout&&ve.clearTimeout,oL=$e&&$e.now!==Sn.Date.now&&$e.now,iL=ve.setTimeout!==Sn.setTimeout&&ve.setTimeout,uf=hn.ceil,cf=hn.floor,Vh=Ot.getOwnPropertySymbols,sL=rf?rf.isBuffer:n,P0=ve.isFinite,aL=Jd.join,lL=y0(Ot.keys,Ot),gn=hn.max,Mn=hn.min,uL=$e.now,cL=ve.parseInt,T0=hn.random,dL=Jd.reverse,Kh=Hi(ve,"DataView"),Da=Hi(ve,"Map"),Hh=Hi(ve,"Promise"),Ds=Hi(ve,"Set"),Ma=Hi(ve,"WeakMap"),Aa=Hi(Ot,"create"),df=Ma&&new Ma,Ms={},fL=Wi(Kh),pL=Wi(Da),mL=Wi(Hh),hL=Wi(Ds),gL=Wi(Ma),ff=ni?ni.prototype:n,Na=ff?ff.valueOf:n,_0=ff?ff.toString:n;function L(l){if(Xt(l)&&!ze(l)&&!(l instanceof ot)){if(l instanceof vr)return l;if(Et.call(l,"__wrapped__"))return OE(l)}return new vr(l)}var As=(function(){function l(){}return function(d){if(!Wt(d))return{};if(C0)return C0(d);l.prototype=d;var g=new l;return l.prototype=n,g}})();function pf(){}function vr(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}L.templateSettings={escape:Zr,evaluate:Zo,interpolate:Ce,variable:"",imports:{_:L}},L.prototype=pf.prototype,L.prototype.constructor=L,vr.prototype=As(pf.prototype),vr.prototype.constructor=vr;function ot(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function vL(){var l=new ot(this.__wrapped__);return l.__actions__=Wn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Wn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Wn(this.__views__),l}function bL(){if(this.__filtered__){var l=new ot(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function yL(){var l=this.__wrapped__.value(),d=this.__dir__,g=ze(l),C=d<0,M=g?l.length:0,B=Dq(0,M,this.__views__),Y=B.start,ne=B.end,ae=ne-Y,be=C?ne:Y-1,ye=this.__iteratees__,we=ye.length,_e=0,ke=Mn(ae,this.__takeCount__);if(!g||!C&&M==ae&&ke==ae)return Q0(l,this.__actions__);var Be=[];e:for(;ae--&&_e<ke;){be+=d;for(var Ze=-1,Ve=l[be];++Ze<we;){var rt=ye[Ze],at=rt.iteratee,ir=rt.type,jn=at(Ve);if(ir==j)Ve=jn;else if(!jn){if(ir==N)continue e;break e}}Be[_e++]=Ve}return Be}ot.prototype=As(pf.prototype),ot.prototype.constructor=ot;function ji(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var C=l[d];this.set(C[0],C[1])}}function xL(){this.__data__=Aa?Aa(null):{},this.size=0}function wL(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function EL(l){var d=this.__data__;if(Aa){var g=d[l];return g===u?n:g}return Et.call(d,l)?d[l]:n}function CL(l){var d=this.__data__;return Aa?d[l]!==n:Et.call(d,l)}function RL(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Aa&&d===n?u:d,this}ji.prototype.clear=xL,ji.prototype.delete=wL,ji.prototype.get=EL,ji.prototype.has=CL,ji.prototype.set=RL;function vo(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var C=l[d];this.set(C[0],C[1])}}function SL(){this.__data__=[],this.size=0}function PL(l){var d=this.__data__,g=mf(d,l);if(g<0)return!1;var C=d.length-1;return g==C?d.pop():af.call(d,g,1),--this.size,!0}function TL(l){var d=this.__data__,g=mf(d,l);return g<0?n:d[g][1]}function _L(l){return mf(this.__data__,l)>-1}function OL(l,d){var g=this.__data__,C=mf(g,l);return C<0?(++this.size,g.push([l,d])):g[C][1]=d,this}vo.prototype.clear=SL,vo.prototype.delete=PL,vo.prototype.get=TL,vo.prototype.has=_L,vo.prototype.set=OL;function bo(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var C=l[d];this.set(C[0],C[1])}}function $L(){this.size=0,this.__data__={hash:new ji,map:new(Da||vo),string:new ji}}function DL(l){var d=Pf(this,l).delete(l);return this.size-=d?1:0,d}function ML(l){return Pf(this,l).get(l)}function AL(l){return Pf(this,l).has(l)}function NL(l,d){var g=Pf(this,l),C=g.size;return g.set(l,d),this.size+=g.size==C?0:1,this}bo.prototype.clear=$L,bo.prototype.delete=DL,bo.prototype.get=ML,bo.prototype.has=AL,bo.prototype.set=NL;function Bi(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new bo;++d<g;)this.add(l[d])}function IL(l){return this.__data__.set(l,u),this}function kL(l){return this.__data__.has(l)}Bi.prototype.add=Bi.prototype.push=IL,Bi.prototype.has=kL;function Ir(l){var d=this.__data__=new vo(l);this.size=d.size}function FL(){this.__data__=new vo,this.size=0}function LL(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function qL(l){return this.__data__.get(l)}function jL(l){return this.__data__.has(l)}function BL(l,d){var g=this.__data__;if(g instanceof vo){var C=g.__data__;if(!Da||C.length<o-1)return C.push([l,d]),this.size=++g.size,this;g=this.__data__=new bo(C)}return g.set(l,d),this.size=g.size,this}Ir.prototype.clear=FL,Ir.prototype.delete=LL,Ir.prototype.get=qL,Ir.prototype.has=jL,Ir.prototype.set=BL;function O0(l,d){var g=ze(l),C=!g&&Ui(l),M=!g&&!C&&ai(l),B=!g&&!C&&!M&&Fs(l),Y=g||C||M||B,ne=Y?Lh(l.length,Z3):[],ae=ne.length;for(var be in l)(d||Et.call(l,be))&&!(Y&&(be=="length"||M&&(be=="offset"||be=="parent")||B&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Eo(be,ae)))&&ne.push(be);return ne}function $0(l){var d=l.length;return d?l[tg(0,d-1)]:n}function VL(l,d){return Tf(Wn(l),Vi(d,0,l.length))}function KL(l){return Tf(Wn(l))}function Wh(l,d,g){(g!==n&&!kr(l[d],g)||g===n&&!(d in l))&&yo(l,d,g)}function Ia(l,d,g){var C=l[d];(!(Et.call(l,d)&&kr(C,g))||g===n&&!(d in l))&&yo(l,d,g)}function mf(l,d){for(var g=l.length;g--;)if(kr(l[g][0],d))return g;return-1}function HL(l,d,g,C){return ri(l,function(M,B,Y){d(C,M,g(M),Y)}),C}function D0(l,d){return l&&Jr(d,En(d),l)}function WL(l,d){return l&&Jr(d,zn(d),l)}function yo(l,d,g){d=="__proto__"&&lf?lf(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function Uh(l,d){for(var g=-1,C=d.length,M=he(C),B=l==null;++g<C;)M[g]=B?n:Pg(l,d[g]);return M}function Vi(l,d,g){return l===l&&(g!==n&&(l=l<=g?l:g),d!==n&&(l=l>=d?l:d)),l}function br(l,d,g,C,M,B){var Y,ne=d&p,ae=d&m,be=d&b;if(g&&(Y=M?g(l,C,M,B):g(l)),Y!==n)return Y;if(!Wt(l))return l;var ye=ze(l);if(ye){if(Y=Aq(l),!ne)return Wn(l,Y)}else{var we=An(l),_e=we==Z||we==xe;if(ai(l))return tE(l,ne);if(we==Oe||we==ce||_e&&!M){if(Y=ae||_e?{}:xE(l),!ne)return ae?Eq(l,WL(Y,l)):wq(l,D0(Y,l))}else{if(!Mt[we])return M?l:{};Y=Nq(l,we,ne)}}B||(B=new Ir);var ke=B.get(l);if(ke)return ke;B.set(l,Y),YE(l)?l.forEach(function(Ve){Y.add(br(Ve,d,g,Ve,l,B))}):zE(l)&&l.forEach(function(Ve,rt){Y.set(rt,br(Ve,d,g,rt,l,B))});var Be=be?ae?fg:dg:ae?zn:En,Ze=ye?n:Be(l);return hr(Ze||l,function(Ve,rt){Ze&&(rt=Ve,Ve=l[rt]),Ia(Y,rt,br(Ve,d,g,rt,l,B))}),Y}function UL(l){var d=En(l);return function(g){return M0(g,l,d)}}function M0(l,d,g){var C=g.length;if(l==null)return!C;for(l=Ot(l);C--;){var M=g[C],B=d[M],Y=l[M];if(Y===n&&!(M in l)||!B(Y))return!1}return!0}function A0(l,d,g){if(typeof l!="function")throw new gr(s);return Va(function(){l.apply(n,g)},d)}function ka(l,d,g,C){var M=-1,B=Xd,Y=!0,ne=l.length,ae=[],be=d.length;if(!ne)return ae;g&&(d=Lt(d,nr(g))),C?(B=Mh,Y=!1):d.length>=o&&(B=Oa,Y=!1,d=new Bi(d));e:for(;++M<ne;){var ye=l[M],we=g==null?ye:g(ye);if(ye=C||ye!==0?ye:0,Y&&we===we){for(var _e=be;_e--;)if(d[_e]===we)continue e;ae.push(ye)}else B(d,we,C)||ae.push(ye)}return ae}var ri=sE(Qr),N0=sE(Gh,!0);function zL(l,d){var g=!0;return ri(l,function(C,M,B){return g=!!d(C,M,B),g}),g}function hf(l,d,g){for(var C=-1,M=l.length;++C<M;){var B=l[C],Y=d(B);if(Y!=null&&(ne===n?Y===Y&&!or(Y):g(Y,ne)))var ne=Y,ae=B}return ae}function GL(l,d,g,C){var M=l.length;for(g=Xe(g),g<0&&(g=-g>M?0:M+g),C=C===n||C>M?M:Xe(C),C<0&&(C+=M),C=g>C?0:ZE(C);g<C;)l[g++]=d;return l}function I0(l,d){var g=[];return ri(l,function(C,M,B){d(C,M,B)&&g.push(C)}),g}function Pn(l,d,g,C,M){var B=-1,Y=l.length;for(g||(g=kq),M||(M=[]);++B<Y;){var ne=l[B];d>0&&g(ne)?d>1?Pn(ne,d-1,g,C,M):ei(M,ne):C||(M[M.length]=ne)}return M}var zh=aE(),k0=aE(!0);function Qr(l,d){return l&&zh(l,d,En)}function Gh(l,d){return l&&k0(l,d,En)}function gf(l,d){return Jo(d,function(g){return Co(l[g])})}function Ki(l,d){d=ii(d,l);for(var g=0,C=d.length;l!=null&&g<C;)l=l[eo(d[g++])];return g&&g==C?l:n}function F0(l,d,g){var C=d(l);return ze(l)?C:ei(C,g(l))}function Ln(l){return l==null?l===n?pe:Se:qi&&qi in Ot(l)?$q(l):Kq(l)}function Yh(l,d){return l>d}function YL(l,d){return l!=null&&Et.call(l,d)}function XL(l,d){return l!=null&&d in Ot(l)}function ZL(l,d,g){return l>=Mn(d,g)&&l<gn(d,g)}function Xh(l,d,g){for(var C=g?Mh:Xd,M=l[0].length,B=l.length,Y=B,ne=he(B),ae=1/0,be=[];Y--;){var ye=l[Y];Y&&d&&(ye=Lt(ye,nr(d))),ae=Mn(ye.length,ae),ne[Y]=!g&&(d||M>=120&&ye.length>=120)?new Bi(Y&&ye):n}ye=l[0];var we=-1,_e=ne[0];e:for(;++we<M&&be.length<ae;){var ke=ye[we],Be=d?d(ke):ke;if(ke=g||ke!==0?ke:0,!(_e?Oa(_e,Be):C(be,Be,g))){for(Y=B;--Y;){var Ze=ne[Y];if(!(Ze?Oa(Ze,Be):C(l[Y],Be,g)))continue e}_e&&_e.push(Be),be.push(ke)}}return be}function QL(l,d,g,C){return Qr(l,function(M,B,Y){d(C,g(M),B,Y)}),C}function Fa(l,d,g){d=ii(d,l),l=RE(l,d);var C=l==null?l:l[eo(xr(d))];return C==null?n:tr(C,l,g)}function L0(l){return Xt(l)&&Ln(l)==ce}function JL(l){return Xt(l)&&Ln(l)==Pe}function eq(l){return Xt(l)&&Ln(l)==K}function La(l,d,g,C,M){return l===d?!0:l==null||d==null||!Xt(l)&&!Xt(d)?l!==l&&d!==d:tq(l,d,g,C,La,M)}function tq(l,d,g,C,M,B){var Y=ze(l),ne=ze(d),ae=Y?se:An(l),be=ne?se:An(d);ae=ae==ce?Oe:ae,be=be==ce?Oe:be;var ye=ae==Oe,we=be==Oe,_e=ae==be;if(_e&&ai(l)){if(!ai(d))return!1;Y=!0,ye=!1}if(_e&&!ye)return B||(B=new Ir),Y||Fs(l)?vE(l,d,g,C,M,B):_q(l,d,ae,g,C,M,B);if(!(g&y)){var ke=ye&&Et.call(l,"__wrapped__"),Be=we&&Et.call(d,"__wrapped__");if(ke||Be){var Ze=ke?l.value():l,Ve=Be?d.value():d;return B||(B=new Ir),M(Ze,Ve,g,C,B)}}return _e?(B||(B=new Ir),Oq(l,d,g,C,M,B)):!1}function nq(l){return Xt(l)&&An(l)==Re}function Zh(l,d,g,C){var M=g.length,B=M,Y=!C;if(l==null)return!B;for(l=Ot(l);M--;){var ne=g[M];if(Y&&ne[2]?ne[1]!==l[ne[0]]:!(ne[0]in l))return!1}for(;++M<B;){ne=g[M];var ae=ne[0],be=l[ae],ye=ne[1];if(Y&&ne[2]){if(be===n&&!(ae in l))return!1}else{var we=new Ir;if(C)var _e=C(be,ye,ae,l,d,we);if(!(_e===n?La(ye,be,y|v,C,we):_e))return!1}}return!0}function q0(l){if(!Wt(l)||Lq(l))return!1;var d=Co(l)?nL:U2;return d.test(Wi(l))}function rq(l){return Xt(l)&&Ln(l)==G}function oq(l){return Xt(l)&&An(l)==J}function iq(l){return Xt(l)&&Af(l.length)&&!!It[Ln(l)]}function j0(l){return typeof l=="function"?l:l==null?Gn:typeof l=="object"?ze(l)?K0(l[0],l[1]):V0(l):lC(l)}function Qh(l){if(!Ba(l))return lL(l);var d=[];for(var g in Ot(l))Et.call(l,g)&&g!="constructor"&&d.push(g);return d}function sq(l){if(!Wt(l))return Vq(l);var d=Ba(l),g=[];for(var C in l)C=="constructor"&&(d||!Et.call(l,C))||g.push(C);return g}function Jh(l,d){return l<d}function B0(l,d){var g=-1,C=Un(l)?he(l.length):[];return ri(l,function(M,B,Y){C[++g]=d(M,B,Y)}),C}function V0(l){var d=mg(l);return d.length==1&&d[0][2]?EE(d[0][0],d[0][1]):function(g){return g===l||Zh(g,l,d)}}function K0(l,d){return gg(l)&&wE(d)?EE(eo(l),d):function(g){var C=Pg(g,l);return C===n&&C===d?Tg(g,l):La(d,C,y|v)}}function vf(l,d,g,C,M){l!==d&&zh(d,function(B,Y){if(M||(M=new Ir),Wt(B))aq(l,d,Y,g,vf,C,M);else{var ne=C?C(bg(l,Y),B,Y+"",l,d,M):n;ne===n&&(ne=B),Wh(l,Y,ne)}},zn)}function aq(l,d,g,C,M,B,Y){var ne=bg(l,g),ae=bg(d,g),be=Y.get(ae);if(be){Wh(l,g,be);return}var ye=B?B(ne,ae,g+"",l,d,Y):n,we=ye===n;if(we){var _e=ze(ae),ke=!_e&&ai(ae),Be=!_e&&!ke&&Fs(ae);ye=ae,_e||ke||Be?ze(ne)?ye=ne:en(ne)?ye=Wn(ne):ke?(we=!1,ye=tE(ae,!0)):Be?(we=!1,ye=nE(ae,!0)):ye=[]:Ka(ae)||Ui(ae)?(ye=ne,Ui(ne)?ye=QE(ne):(!Wt(ne)||Co(ne))&&(ye=xE(ae))):we=!1}we&&(Y.set(ae,ye),M(ye,ae,C,B,Y),Y.delete(ae)),Wh(l,g,ye)}function H0(l,d){var g=l.length;if(g)return d+=d<0?g:0,Eo(d,g)?l[d]:n}function W0(l,d,g){d.length?d=Lt(d,function(B){return ze(B)?function(Y){return Ki(Y,B.length===1?B[0]:B)}:B}):d=[Gn];var C=-1;d=Lt(d,nr(qe()));var M=B0(l,function(B,Y,ne){var ae=Lt(d,function(be){return be(B)});return{criteria:ae,index:++C,value:B}});return N3(M,function(B,Y){return xq(B,Y,g)})}function lq(l,d){return U0(l,d,function(g,C){return Tg(l,C)})}function U0(l,d,g){for(var C=-1,M=d.length,B={};++C<M;){var Y=d[C],ne=Ki(l,Y);g(ne,Y)&&qa(B,ii(Y,l),ne)}return B}function uq(l){return function(d){return Ki(d,l)}}function eg(l,d,g,C){var M=C?A3:Ps,B=-1,Y=d.length,ne=l;for(l===d&&(d=Wn(d)),g&&(ne=Lt(l,nr(g)));++B<Y;)for(var ae=0,be=d[B],ye=g?g(be):be;(ae=M(ne,ye,ae,C))>-1;)ne!==l&&af.call(ne,ae,1),af.call(l,ae,1);return l}function z0(l,d){for(var g=l?d.length:0,C=g-1;g--;){var M=d[g];if(g==C||M!==B){var B=M;Eo(M)?af.call(l,M,1):og(l,M)}}return l}function tg(l,d){return l+cf(T0()*(d-l+1))}function cq(l,d,g,C){for(var M=-1,B=gn(uf((d-l)/(g||1)),0),Y=he(B);B--;)Y[C?B:++M]=l,l+=g;return Y}function ng(l,d){var g="";if(!l||d<1||d>q)return g;do d%2&&(g+=l),d=cf(d/2),d&&(l+=l);while(d);return g}function Qe(l,d){return yg(CE(l,d,Gn),l+"")}function dq(l){return $0(Ls(l))}function fq(l,d){var g=Ls(l);return Tf(g,Vi(d,0,g.length))}function qa(l,d,g,C){if(!Wt(l))return l;d=ii(d,l);for(var M=-1,B=d.length,Y=B-1,ne=l;ne!=null&&++M<B;){var ae=eo(d[M]),be=g;if(ae==="__proto__"||ae==="constructor"||ae==="prototype")return l;if(M!=Y){var ye=ne[ae];be=C?C(ye,ae,ne):n,be===n&&(be=Wt(ye)?ye:Eo(d[M+1])?[]:{})}Ia(ne,ae,be),ne=ne[ae]}return l}var G0=df?function(l,d){return df.set(l,d),l}:Gn,pq=lf?function(l,d){return lf(l,"toString",{configurable:!0,enumerable:!1,value:Og(d),writable:!0})}:Gn;function mq(l){return Tf(Ls(l))}function yr(l,d,g){var C=-1,M=l.length;d<0&&(d=-d>M?0:M+d),g=g>M?M:g,g<0&&(g+=M),M=d>g?0:g-d>>>0,d>>>=0;for(var B=he(M);++C<M;)B[C]=l[C+d];return B}function hq(l,d){var g;return ri(l,function(C,M,B){return g=d(C,M,B),!g}),!!g}function bf(l,d,g){var C=0,M=l==null?C:l.length;if(typeof d=="number"&&d===d&&M<=Q){for(;C<M;){var B=C+M>>>1,Y=l[B];Y!==null&&!or(Y)&&(g?Y<=d:Y<d)?C=B+1:M=B}return M}return rg(l,d,Gn,g)}function rg(l,d,g,C){var M=0,B=l==null?0:l.length;if(B===0)return 0;d=g(d);for(var Y=d!==d,ne=d===null,ae=or(d),be=d===n;M<B;){var ye=cf((M+B)/2),we=g(l[ye]),_e=we!==n,ke=we===null,Be=we===we,Ze=or(we);if(Y)var Ve=C||Be;else be?Ve=Be&&(C||_e):ne?Ve=Be&&_e&&(C||!ke):ae?Ve=Be&&_e&&!ke&&(C||!Ze):ke||Ze?Ve=!1:Ve=C?we<=d:we<d;Ve?M=ye+1:B=ye}return Mn(B,X)}function Y0(l,d){for(var g=-1,C=l.length,M=0,B=[];++g<C;){var Y=l[g],ne=d?d(Y):Y;if(!g||!kr(ne,ae)){var ae=ne;B[M++]=Y===0?0:Y}}return B}function X0(l){return typeof l=="number"?l:or(l)?W:+l}function rr(l){if(typeof l=="string")return l;if(ze(l))return Lt(l,rr)+"";if(or(l))return _0?_0.call(l):"";var d=l+"";return d=="0"&&1/l==-k?"-0":d}function oi(l,d,g){var C=-1,M=Xd,B=l.length,Y=!0,ne=[],ae=ne;if(g)Y=!1,M=Mh;else if(B>=o){var be=d?null:Pq(l);if(be)return Qd(be);Y=!1,M=Oa,ae=new Bi}else ae=d?[]:ne;e:for(;++C<B;){var ye=l[C],we=d?d(ye):ye;if(ye=g||ye!==0?ye:0,Y&&we===we){for(var _e=ae.length;_e--;)if(ae[_e]===we)continue e;d&&ae.push(we),ne.push(ye)}else M(ae,we,g)||(ae!==ne&&ae.push(we),ne.push(ye))}return ne}function og(l,d){return d=ii(d,l),l=RE(l,d),l==null||delete l[eo(xr(d))]}function Z0(l,d,g,C){return qa(l,d,g(Ki(l,d)),C)}function yf(l,d,g,C){for(var M=l.length,B=C?M:-1;(C?B--:++B<M)&&d(l[B],B,l););return g?yr(l,C?0:B,C?B+1:M):yr(l,C?B+1:0,C?M:B)}function Q0(l,d){var g=l;return g instanceof ot&&(g=g.value()),Ah(d,function(C,M){return M.func.apply(M.thisArg,ei([C],M.args))},g)}function ig(l,d,g){var C=l.length;if(C<2)return C?oi(l[0]):[];for(var M=-1,B=he(C);++M<C;)for(var Y=l[M],ne=-1;++ne<C;)ne!=M&&(B[M]=ka(B[M]||Y,l[ne],d,g));return oi(Pn(B,1),d,g)}function J0(l,d,g){for(var C=-1,M=l.length,B=d.length,Y={};++C<M;){var ne=C<B?d[C]:n;g(Y,l[C],ne)}return Y}function sg(l){return en(l)?l:[]}function ag(l){return typeof l=="function"?l:Gn}function ii(l,d){return ze(l)?l:gg(l,d)?[l]:_E(vt(l))}var gq=Qe;function si(l,d,g){var C=l.length;return g=g===n?C:g,!d&&g>=C?l:yr(l,d,g)}var eE=rL||function(l){return Sn.clearTimeout(l)};function tE(l,d){if(d)return l.slice();var g=l.length,C=E0?E0(g):new l.constructor(g);return l.copy(C),C}function lg(l){var d=new l.constructor(l.byteLength);return new of(d).set(new of(l)),d}function vq(l,d){var g=d?lg(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function bq(l){var d=new l.constructor(l.source,Lw.exec(l));return d.lastIndex=l.lastIndex,d}function yq(l){return Na?Ot(Na.call(l)):{}}function nE(l,d){var g=d?lg(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function rE(l,d){if(l!==d){var g=l!==n,C=l===null,M=l===l,B=or(l),Y=d!==n,ne=d===null,ae=d===d,be=or(d);if(!ne&&!be&&!B&&l>d||B&&Y&&ae&&!ne&&!be||C&&Y&&ae||!g&&ae||!M)return 1;if(!C&&!B&&!be&&l<d||be&&g&&M&&!C&&!B||ne&&g&&M||!Y&&M||!ae)return-1}return 0}function xq(l,d,g){for(var C=-1,M=l.criteria,B=d.criteria,Y=M.length,ne=g.length;++C<Y;){var ae=rE(M[C],B[C]);if(ae){if(C>=ne)return ae;var be=g[C];return ae*(be=="desc"?-1:1)}}return l.index-d.index}function oE(l,d,g,C){for(var M=-1,B=l.length,Y=g.length,ne=-1,ae=d.length,be=gn(B-Y,0),ye=he(ae+be),we=!C;++ne<ae;)ye[ne]=d[ne];for(;++M<Y;)(we||M<B)&&(ye[g[M]]=l[M]);for(;be--;)ye[ne++]=l[M++];return ye}function iE(l,d,g,C){for(var M=-1,B=l.length,Y=-1,ne=g.length,ae=-1,be=d.length,ye=gn(B-ne,0),we=he(ye+be),_e=!C;++M<ye;)we[M]=l[M];for(var ke=M;++ae<be;)we[ke+ae]=d[ae];for(;++Y<ne;)(_e||M<B)&&(we[ke+g[Y]]=l[M++]);return we}function Wn(l,d){var g=-1,C=l.length;for(d||(d=he(C));++g<C;)d[g]=l[g];return d}function Jr(l,d,g,C){var M=!g;g||(g={});for(var B=-1,Y=d.length;++B<Y;){var ne=d[B],ae=C?C(g[ne],l[ne],ne,g,l):n;ae===n&&(ae=l[ne]),M?yo(g,ne,ae):Ia(g,ne,ae)}return g}function wq(l,d){return Jr(l,hg(l),d)}function Eq(l,d){return Jr(l,bE(l),d)}function xf(l,d){return function(g,C){var M=ze(g)?T3:HL,B=d?d():{};return M(g,l,qe(C,2),B)}}function Ns(l){return Qe(function(d,g){var C=-1,M=g.length,B=M>1?g[M-1]:n,Y=M>2?g[2]:n;for(B=l.length>3&&typeof B=="function"?(M--,B):n,Y&&qn(g[0],g[1],Y)&&(B=M<3?n:B,M=1),d=Ot(d);++C<M;){var ne=g[C];ne&&l(d,ne,C,B)}return d})}function sE(l,d){return function(g,C){if(g==null)return g;if(!Un(g))return l(g,C);for(var M=g.length,B=d?M:-1,Y=Ot(g);(d?B--:++B<M)&&C(Y[B],B,Y)!==!1;);return g}}function aE(l){return function(d,g,C){for(var M=-1,B=Ot(d),Y=C(d),ne=Y.length;ne--;){var ae=Y[l?ne:++M];if(g(B[ae],ae,B)===!1)break}return d}}function Cq(l,d,g){var C=d&E,M=ja(l);function B(){var Y=this&&this!==Sn&&this instanceof B?M:l;return Y.apply(C?g:this,arguments)}return B}function lE(l){return function(d){d=vt(d);var g=Ts(d)?Nr(d):n,C=g?g[0]:d.charAt(0),M=g?si(g,1).join(""):d.slice(1);return C[l]()+M}}function Is(l){return function(d){return Ah(sC(iC(d).replace(p3,"")),l,"")}}function ja(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=As(l.prototype),C=l.apply(g,d);return Wt(C)?C:g}}function Rq(l,d,g){var C=ja(l);function M(){for(var B=arguments.length,Y=he(B),ne=B,ae=ks(M);ne--;)Y[ne]=arguments[ne];var be=B<3&&Y[0]!==ae&&Y[B-1]!==ae?[]:ti(Y,ae);if(B-=be.length,B<g)return pE(l,d,wf,M.placeholder,n,Y,be,n,n,g-B);var ye=this&&this!==Sn&&this instanceof M?C:l;return tr(ye,this,Y)}return M}function uE(l){return function(d,g,C){var M=Ot(d);if(!Un(d)){var B=qe(g,3);d=En(d),g=function(ne){return B(M[ne],ne,M)}}var Y=l(d,g,C);return Y>-1?M[B?d[Y]:Y]:n}}function cE(l){return wo(function(d){var g=d.length,C=g,M=vr.prototype.thru;for(l&&d.reverse();C--;){var B=d[C];if(typeof B!="function")throw new gr(s);if(M&&!Y&&Sf(B)=="wrapper")var Y=new vr([],!0)}for(C=Y?C:g;++C<g;){B=d[C];var ne=Sf(B),ae=ne=="wrapper"?pg(B):n;ae&&vg(ae[0])&&ae[1]==(_|P|S|$)&&!ae[4].length&&ae[9]==1?Y=Y[Sf(ae[0])].apply(Y,ae[3]):Y=B.length==1&&vg(B)?Y[ne]():Y.thru(B)}return function(){var be=arguments,ye=be[0];if(Y&&be.length==1&&ze(ye))return Y.plant(ye).value();for(var we=0,_e=g?d[we].apply(this,be):ye;++we<g;)_e=d[we].call(this,_e);return _e}})}function wf(l,d,g,C,M,B,Y,ne,ae,be){var ye=d&_,we=d&E,_e=d&x,ke=d&(P|O),Be=d&V,Ze=_e?n:ja(l);function Ve(){for(var rt=arguments.length,at=he(rt),ir=rt;ir--;)at[ir]=arguments[ir];if(ke)var jn=ks(Ve),sr=k3(at,jn);if(C&&(at=oE(at,C,M,ke)),B&&(at=iE(at,B,Y,ke)),rt-=sr,ke&&rt<be){var tn=ti(at,jn);return pE(l,d,wf,Ve.placeholder,g,at,tn,ne,ae,be-rt)}var Fr=we?g:this,So=_e?Fr[l]:l;return rt=at.length,ne?at=Hq(at,ne):Be&&rt>1&&at.reverse(),ye&&ae<rt&&(at.length=ae),this&&this!==Sn&&this instanceof Ve&&(So=Ze||ja(So)),So.apply(Fr,at)}return Ve}function dE(l,d){return function(g,C){return QL(g,l,d(C),{})}}function Ef(l,d){return function(g,C){var M;if(g===n&&C===n)return d;if(g!==n&&(M=g),C!==n){if(M===n)return C;typeof g=="string"||typeof C=="string"?(g=rr(g),C=rr(C)):(g=X0(g),C=X0(C)),M=l(g,C)}return M}}function ug(l){return wo(function(d){return d=Lt(d,nr(qe())),Qe(function(g){var C=this;return l(d,function(M){return tr(M,C,g)})})})}function Cf(l,d){d=d===n?" ":rr(d);var g=d.length;if(g<2)return g?ng(d,l):d;var C=ng(d,uf(l/_s(d)));return Ts(d)?si(Nr(C),0,l).join(""):C.slice(0,l)}function Sq(l,d,g,C){var M=d&E,B=ja(l);function Y(){for(var ne=-1,ae=arguments.length,be=-1,ye=C.length,we=he(ye+ae),_e=this&&this!==Sn&&this instanceof Y?B:l;++be<ye;)we[be]=C[be];for(;ae--;)we[be++]=arguments[++ne];return tr(_e,M?g:this,we)}return Y}function fE(l){return function(d,g,C){return C&&typeof C!="number"&&qn(d,g,C)&&(g=C=n),d=Ro(d),g===n?(g=d,d=0):g=Ro(g),C=C===n?d<g?1:-1:Ro(C),cq(d,g,C,l)}}function Rf(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=wr(d),g=wr(g)),l(d,g)}}function pE(l,d,g,C,M,B,Y,ne,ae,be){var ye=d&P,we=ye?Y:n,_e=ye?n:Y,ke=ye?B:n,Be=ye?n:B;d|=ye?S:T,d&=~(ye?T:S),d&R||(d&=-4);var Ze=[l,d,M,ke,we,Be,_e,ne,ae,be],Ve=g.apply(n,Ze);return vg(l)&&SE(Ve,Ze),Ve.placeholder=C,PE(Ve,l,d)}function cg(l){var d=hn[l];return function(g,C){if(g=wr(g),C=C==null?0:Mn(Xe(C),292),C&&P0(g)){var M=(vt(g)+"e").split("e"),B=d(M[0]+"e"+(+M[1]+C));return M=(vt(B)+"e").split("e"),+(M[0]+"e"+(+M[1]-C))}return d(g)}}var Pq=Ds&&1/Qd(new Ds([,-0]))[1]==k?function(l){return new Ds(l)}:Mg;function mE(l){return function(d){var g=An(d);return g==Re?jh(d):g==J?K3(d):I3(d,l(d))}}function xo(l,d,g,C,M,B,Y,ne){var ae=d&x;if(!ae&&typeof l!="function")throw new gr(s);var be=C?C.length:0;if(be||(d&=-97,C=M=n),Y=Y===n?Y:gn(Xe(Y),0),ne=ne===n?ne:Xe(ne),be-=M?M.length:0,d&T){var ye=C,we=M;C=M=n}var _e=ae?n:pg(l),ke=[l,d,g,C,M,ye,we,B,Y,ne];if(_e&&Bq(ke,_e),l=ke[0],d=ke[1],g=ke[2],C=ke[3],M=ke[4],ne=ke[9]=ke[9]===n?ae?0:l.length:gn(ke[9]-be,0),!ne&&d&(P|O)&&(d&=-25),!d||d==E)var Be=Cq(l,d,g);else d==P||d==O?Be=Rq(l,d,ne):(d==S||d==(E|S))&&!M.length?Be=Sq(l,d,g,C):Be=wf.apply(n,ke);var Ze=_e?G0:SE;return PE(Ze(Be,ke),l,d)}function hE(l,d,g,C){return l===n||kr(l,$s[g])&&!Et.call(C,g)?d:l}function gE(l,d,g,C,M,B){return Wt(l)&&Wt(d)&&(B.set(d,l),vf(l,d,n,gE,B),B.delete(d)),l}function Tq(l){return Ka(l)?n:l}function vE(l,d,g,C,M,B){var Y=g&y,ne=l.length,ae=d.length;if(ne!=ae&&!(Y&&ae>ne))return!1;var be=B.get(l),ye=B.get(d);if(be&&ye)return be==d&&ye==l;var we=-1,_e=!0,ke=g&v?new Bi:n;for(B.set(l,d),B.set(d,l);++we<ne;){var Be=l[we],Ze=d[we];if(C)var Ve=Y?C(Ze,Be,we,d,l,B):C(Be,Ze,we,l,d,B);if(Ve!==n){if(Ve)continue;_e=!1;break}if(ke){if(!Nh(d,function(rt,at){if(!Oa(ke,at)&&(Be===rt||M(Be,rt,g,C,B)))return ke.push(at)})){_e=!1;break}}else if(!(Be===Ze||M(Be,Ze,g,C,B))){_e=!1;break}}return B.delete(l),B.delete(d),_e}function _q(l,d,g,C,M,B,Y){switch(g){case Ne:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Pe:return!(l.byteLength!=d.byteLength||!B(new of(l),new of(d)));case de:case K:case Ae:return kr(+l,+d);case le:return l.name==d.name&&l.message==d.message;case G:case ie:return l==d+"";case Re:var ne=jh;case J:var ae=C&y;if(ne||(ne=Qd),l.size!=d.size&&!ae)return!1;var be=Y.get(l);if(be)return be==d;C|=v,Y.set(l,d);var ye=vE(ne(l),ne(d),C,M,B,Y);return Y.delete(l),ye;case fe:if(Na)return Na.call(l)==Na.call(d)}return!1}function Oq(l,d,g,C,M,B){var Y=g&y,ne=dg(l),ae=ne.length,be=dg(d),ye=be.length;if(ae!=ye&&!Y)return!1;for(var we=ae;we--;){var _e=ne[we];if(!(Y?_e in d:Et.call(d,_e)))return!1}var ke=B.get(l),Be=B.get(d);if(ke&&Be)return ke==d&&Be==l;var Ze=!0;B.set(l,d),B.set(d,l);for(var Ve=Y;++we<ae;){_e=ne[we];var rt=l[_e],at=d[_e];if(C)var ir=Y?C(at,rt,_e,d,l,B):C(rt,at,_e,l,d,B);if(!(ir===n?rt===at||M(rt,at,g,C,B):ir)){Ze=!1;break}Ve||(Ve=_e=="constructor")}if(Ze&&!Ve){var jn=l.constructor,sr=d.constructor;jn!=sr&&"constructor"in l&&"constructor"in d&&!(typeof jn=="function"&&jn instanceof jn&&typeof sr=="function"&&sr instanceof sr)&&(Ze=!1)}return B.delete(l),B.delete(d),Ze}function wo(l){return yg(CE(l,n,ME),l+"")}function dg(l){return F0(l,En,hg)}function fg(l){return F0(l,zn,bE)}var pg=df?function(l){return df.get(l)}:Mg;function Sf(l){for(var d=l.name+"",g=Ms[d],C=Et.call(Ms,d)?g.length:0;C--;){var M=g[C],B=M.func;if(B==null||B==l)return M.name}return d}function ks(l){var d=Et.call(L,"placeholder")?L:l;return d.placeholder}function qe(){var l=L.iteratee||$g;return l=l===$g?j0:l,arguments.length?l(arguments[0],arguments[1]):l}function Pf(l,d){var g=l.__data__;return Fq(d)?g[typeof d=="string"?"string":"hash"]:g.map}function mg(l){for(var d=En(l),g=d.length;g--;){var C=d[g],M=l[C];d[g]=[C,M,wE(M)]}return d}function Hi(l,d){var g=j3(l,d);return q0(g)?g:n}function $q(l){var d=Et.call(l,qi),g=l[qi];try{l[qi]=n;var C=!0}catch{}var M=nf.call(l);return C&&(d?l[qi]=g:delete l[qi]),M}var hg=Vh?function(l){return l==null?[]:(l=Ot(l),Jo(Vh(l),function(d){return R0.call(l,d)}))}:Ag,bE=Vh?function(l){for(var d=[];l;)ei(d,hg(l)),l=sf(l);return d}:Ag,An=Ln;(Kh&&An(new Kh(new ArrayBuffer(1)))!=Ne||Da&&An(new Da)!=Re||Hh&&An(Hh.resolve())!=Ye||Ds&&An(new Ds)!=J||Ma&&An(new Ma)!=ge)&&(An=function(l){var d=Ln(l),g=d==Oe?l.constructor:n,C=g?Wi(g):"";if(C)switch(C){case fL:return Ne;case pL:return Re;case mL:return Ye;case hL:return J;case gL:return ge}return d});function Dq(l,d,g){for(var C=-1,M=g.length;++C<M;){var B=g[C],Y=B.size;switch(B.type){case"drop":l+=Y;break;case"dropRight":d-=Y;break;case"take":d=Mn(d,l+Y);break;case"takeRight":l=gn(l,d-Y);break}}return{start:l,end:d}}function Mq(l){var d=l.match(Eh);return d?d[1].split(Ch):[]}function yE(l,d,g){d=ii(d,l);for(var C=-1,M=d.length,B=!1;++C<M;){var Y=eo(d[C]);if(!(B=l!=null&&g(l,Y)))break;l=l[Y]}return B||++C!=M?B:(M=l==null?0:l.length,!!M&&Af(M)&&Eo(Y,M)&&(ze(l)||Ui(l)))}function Aq(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&Et.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function xE(l){return typeof l.constructor=="function"&&!Ba(l)?As(sf(l)):{}}function Nq(l,d,g){var C=l.constructor;switch(d){case Pe:return lg(l);case de:case K:return new C(+l);case Ne:return vq(l,g);case st:case ut:case wt:case dt:case Nt:case Yt:case un:case mn:case $n:return nE(l,g);case Re:return new C;case Ae:case ie:return new C(l);case G:return bq(l);case J:return new C;case fe:return yq(l)}}function Iq(l,d){var g=d.length;if(!g)return l;var C=g-1;return d[C]=(g>1?"& ":"")+d[C],d=d.join(g>2?", ":" "),l.replace(Fi,`{
|
|
115
|
-
/* [wrapped with `+d+`] */
|
|
116
|
-
`)}function kq(l){return ze(l)||Ui(l)||!!(S0&&l&&l[S0])}function Eo(l,d){var g=typeof l;return d=d??q,!!d&&(g=="number"||g!="symbol"&&G2.test(l))&&l>-1&&l%1==0&&l<d}function qn(l,d,g){if(!Wt(g))return!1;var C=typeof d;return(C=="number"?Un(g)&&Eo(d,g.length):C=="string"&&d in g)?kr(g[d],l):!1}function gg(l,d){if(ze(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||or(l)?!0:Ii.test(l)||!Ni.test(l)||d!=null&&l in Ot(d)}function Fq(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function vg(l){var d=Sf(l),g=L[d];if(typeof g!="function"||!(d in ot.prototype))return!1;if(l===g)return!0;var C=pg(g);return!!C&&l===C[0]}function Lq(l){return!!w0&&w0 in l}var qq=ef?Co:Ng;function Ba(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||$s;return l===g}function wE(l){return l===l&&!Wt(l)}function EE(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==n||l in Ot(g))}}function jq(l){var d=Df(l,function(C){return g.size===c&&g.clear(),C}),g=d.cache;return d}function Bq(l,d){var g=l[1],C=d[1],M=g|C,B=M<(E|x|_),Y=C==_&&g==P||C==_&&g==$&&l[7].length<=d[8]||C==(_|$)&&d[7].length<=d[8]&&g==P;if(!(B||Y))return l;C&E&&(l[2]=d[2],M|=g&E?0:R);var ne=d[3];if(ne){var ae=l[3];l[3]=ae?oE(ae,ne,d[4]):ne,l[4]=ae?ti(l[3],f):d[4]}return ne=d[5],ne&&(ae=l[5],l[5]=ae?iE(ae,ne,d[6]):ne,l[6]=ae?ti(l[5],f):d[6]),ne=d[7],ne&&(l[7]=ne),C&_&&(l[8]=l[8]==null?d[8]:Mn(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=M,l}function Vq(l){var d=[];if(l!=null)for(var g in Ot(l))d.push(g);return d}function Kq(l){return nf.call(l)}function CE(l,d,g){return d=gn(d===n?l.length-1:d,0),function(){for(var C=arguments,M=-1,B=gn(C.length-d,0),Y=he(B);++M<B;)Y[M]=C[d+M];M=-1;for(var ne=he(d+1);++M<d;)ne[M]=C[M];return ne[d]=g(Y),tr(l,this,ne)}}function RE(l,d){return d.length<2?l:Ki(l,yr(d,0,-1))}function Hq(l,d){for(var g=l.length,C=Mn(d.length,g),M=Wn(l);C--;){var B=d[C];l[C]=Eo(B,g)?M[B]:n}return l}function bg(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var SE=TE(G0),Va=iL||function(l,d){return Sn.setTimeout(l,d)},yg=TE(pq);function PE(l,d,g){var C=d+"";return yg(l,Iq(C,Wq(Mq(C),g)))}function TE(l){var d=0,g=0;return function(){var C=uL(),M=F-(C-g);if(g=C,M>0){if(++d>=H)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Tf(l,d){var g=-1,C=l.length,M=C-1;for(d=d===n?C:d;++g<d;){var B=tg(g,M),Y=l[B];l[B]=l[g],l[g]=Y}return l.length=d,l}var _E=jq(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(Qo,function(g,C,M,B){d.push(M?B.replace(V2,"$1"):C||g)}),d});function eo(l){if(typeof l=="string"||or(l))return l;var d=l+"";return d=="0"&&1/l==-k?"-0":d}function Wi(l){if(l!=null){try{return tf.call(l)}catch{}try{return l+""}catch{}}return""}function Wq(l,d){return hr(re,function(g){var C="_."+g[0];d&g[1]&&!Xd(l,C)&&l.push(C)}),l.sort()}function OE(l){if(l instanceof ot)return l.clone();var d=new vr(l.__wrapped__,l.__chain__);return d.__actions__=Wn(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Uq(l,d,g){(g?qn(l,d,g):d===n)?d=1:d=gn(Xe(d),0);var C=l==null?0:l.length;if(!C||d<1)return[];for(var M=0,B=0,Y=he(uf(C/d));M<C;)Y[B++]=yr(l,M,M+=d);return Y}function zq(l){for(var d=-1,g=l==null?0:l.length,C=0,M=[];++d<g;){var B=l[d];B&&(M[C++]=B)}return M}function Gq(){var l=arguments.length;if(!l)return[];for(var d=he(l-1),g=arguments[0],C=l;C--;)d[C-1]=arguments[C];return ei(ze(g)?Wn(g):[g],Pn(d,1))}var Yq=Qe(function(l,d){return en(l)?ka(l,Pn(d,1,en,!0)):[]}),Xq=Qe(function(l,d){var g=xr(d);return en(g)&&(g=n),en(l)?ka(l,Pn(d,1,en,!0),qe(g,2)):[]}),Zq=Qe(function(l,d){var g=xr(d);return en(g)&&(g=n),en(l)?ka(l,Pn(d,1,en,!0),n,g):[]});function Qq(l,d,g){var C=l==null?0:l.length;return C?(d=g||d===n?1:Xe(d),yr(l,d<0?0:d,C)):[]}function Jq(l,d,g){var C=l==null?0:l.length;return C?(d=g||d===n?1:Xe(d),d=C-d,yr(l,0,d<0?0:d)):[]}function ej(l,d){return l&&l.length?yf(l,qe(d,3),!0,!0):[]}function tj(l,d){return l&&l.length?yf(l,qe(d,3),!0):[]}function nj(l,d,g,C){var M=l==null?0:l.length;return M?(g&&typeof g!="number"&&qn(l,d,g)&&(g=0,C=M),GL(l,d,g,C)):[]}function $E(l,d,g){var C=l==null?0:l.length;if(!C)return-1;var M=g==null?0:Xe(g);return M<0&&(M=gn(C+M,0)),Zd(l,qe(d,3),M)}function DE(l,d,g){var C=l==null?0:l.length;if(!C)return-1;var M=C-1;return g!==n&&(M=Xe(g),M=g<0?gn(C+M,0):Mn(M,C-1)),Zd(l,qe(d,3),M,!0)}function ME(l){var d=l==null?0:l.length;return d?Pn(l,1):[]}function rj(l){var d=l==null?0:l.length;return d?Pn(l,k):[]}function oj(l,d){var g=l==null?0:l.length;return g?(d=d===n?1:Xe(d),Pn(l,d)):[]}function ij(l){for(var d=-1,g=l==null?0:l.length,C={};++d<g;){var M=l[d];C[M[0]]=M[1]}return C}function AE(l){return l&&l.length?l[0]:n}function sj(l,d,g){var C=l==null?0:l.length;if(!C)return-1;var M=g==null?0:Xe(g);return M<0&&(M=gn(C+M,0)),Ps(l,d,M)}function aj(l){var d=l==null?0:l.length;return d?yr(l,0,-1):[]}var lj=Qe(function(l){var d=Lt(l,sg);return d.length&&d[0]===l[0]?Xh(d):[]}),uj=Qe(function(l){var d=xr(l),g=Lt(l,sg);return d===xr(g)?d=n:g.pop(),g.length&&g[0]===l[0]?Xh(g,qe(d,2)):[]}),cj=Qe(function(l){var d=xr(l),g=Lt(l,sg);return d=typeof d=="function"?d:n,d&&g.pop(),g.length&&g[0]===l[0]?Xh(g,n,d):[]});function dj(l,d){return l==null?"":aL.call(l,d)}function xr(l){var d=l==null?0:l.length;return d?l[d-1]:n}function fj(l,d,g){var C=l==null?0:l.length;if(!C)return-1;var M=C;return g!==n&&(M=Xe(g),M=M<0?gn(C+M,0):Mn(M,C-1)),d===d?W3(l,d,M):Zd(l,p0,M,!0)}function pj(l,d){return l&&l.length?H0(l,Xe(d)):n}var mj=Qe(NE);function NE(l,d){return l&&l.length&&d&&d.length?eg(l,d):l}function hj(l,d,g){return l&&l.length&&d&&d.length?eg(l,d,qe(g,2)):l}function gj(l,d,g){return l&&l.length&&d&&d.length?eg(l,d,n,g):l}var vj=wo(function(l,d){var g=l==null?0:l.length,C=Uh(l,d);return z0(l,Lt(d,function(M){return Eo(M,g)?+M:M}).sort(rE)),C});function bj(l,d){var g=[];if(!(l&&l.length))return g;var C=-1,M=[],B=l.length;for(d=qe(d,3);++C<B;){var Y=l[C];d(Y,C,l)&&(g.push(Y),M.push(C))}return z0(l,M),g}function xg(l){return l==null?l:dL.call(l)}function yj(l,d,g){var C=l==null?0:l.length;return C?(g&&typeof g!="number"&&qn(l,d,g)?(d=0,g=C):(d=d==null?0:Xe(d),g=g===n?C:Xe(g)),yr(l,d,g)):[]}function xj(l,d){return bf(l,d)}function wj(l,d,g){return rg(l,d,qe(g,2))}function Ej(l,d){var g=l==null?0:l.length;if(g){var C=bf(l,d);if(C<g&&kr(l[C],d))return C}return-1}function Cj(l,d){return bf(l,d,!0)}function Rj(l,d,g){return rg(l,d,qe(g,2),!0)}function Sj(l,d){var g=l==null?0:l.length;if(g){var C=bf(l,d,!0)-1;if(kr(l[C],d))return C}return-1}function Pj(l){return l&&l.length?Y0(l):[]}function Tj(l,d){return l&&l.length?Y0(l,qe(d,2)):[]}function _j(l){var d=l==null?0:l.length;return d?yr(l,1,d):[]}function Oj(l,d,g){return l&&l.length?(d=g||d===n?1:Xe(d),yr(l,0,d<0?0:d)):[]}function $j(l,d,g){var C=l==null?0:l.length;return C?(d=g||d===n?1:Xe(d),d=C-d,yr(l,d<0?0:d,C)):[]}function Dj(l,d){return l&&l.length?yf(l,qe(d,3),!1,!0):[]}function Mj(l,d){return l&&l.length?yf(l,qe(d,3)):[]}var Aj=Qe(function(l){return oi(Pn(l,1,en,!0))}),Nj=Qe(function(l){var d=xr(l);return en(d)&&(d=n),oi(Pn(l,1,en,!0),qe(d,2))}),Ij=Qe(function(l){var d=xr(l);return d=typeof d=="function"?d:n,oi(Pn(l,1,en,!0),n,d)});function kj(l){return l&&l.length?oi(l):[]}function Fj(l,d){return l&&l.length?oi(l,qe(d,2)):[]}function Lj(l,d){return d=typeof d=="function"?d:n,l&&l.length?oi(l,n,d):[]}function wg(l){if(!(l&&l.length))return[];var d=0;return l=Jo(l,function(g){if(en(g))return d=gn(g.length,d),!0}),Lh(d,function(g){return Lt(l,Ih(g))})}function IE(l,d){if(!(l&&l.length))return[];var g=wg(l);return d==null?g:Lt(g,function(C){return tr(d,n,C)})}var qj=Qe(function(l,d){return en(l)?ka(l,d):[]}),jj=Qe(function(l){return ig(Jo(l,en))}),Bj=Qe(function(l){var d=xr(l);return en(d)&&(d=n),ig(Jo(l,en),qe(d,2))}),Vj=Qe(function(l){var d=xr(l);return d=typeof d=="function"?d:n,ig(Jo(l,en),n,d)}),Kj=Qe(wg);function Hj(l,d){return J0(l||[],d||[],Ia)}function Wj(l,d){return J0(l||[],d||[],qa)}var Uj=Qe(function(l){var d=l.length,g=d>1?l[d-1]:n;return g=typeof g=="function"?(l.pop(),g):n,IE(l,g)});function kE(l){var d=L(l);return d.__chain__=!0,d}function zj(l,d){return d(l),l}function _f(l,d){return d(l)}var Gj=wo(function(l){var d=l.length,g=d?l[0]:0,C=this.__wrapped__,M=function(B){return Uh(B,l)};return d>1||this.__actions__.length||!(C instanceof ot)||!Eo(g)?this.thru(M):(C=C.slice(g,+g+(d?1:0)),C.__actions__.push({func:_f,args:[M],thisArg:n}),new vr(C,this.__chain__).thru(function(B){return d&&!B.length&&B.push(n),B}))});function Yj(){return kE(this)}function Xj(){return new vr(this.value(),this.__chain__)}function Zj(){this.__values__===n&&(this.__values__=XE(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Qj(){return this}function Jj(l){for(var d,g=this;g instanceof pf;){var C=OE(g);C.__index__=0,C.__values__=n,d?M.__wrapped__=C:d=C;var M=C;g=g.__wrapped__}return M.__wrapped__=l,d}function e5(){var l=this.__wrapped__;if(l instanceof ot){var d=l;return this.__actions__.length&&(d=new ot(this)),d=d.reverse(),d.__actions__.push({func:_f,args:[xg],thisArg:n}),new vr(d,this.__chain__)}return this.thru(xg)}function t5(){return Q0(this.__wrapped__,this.__actions__)}var n5=xf(function(l,d,g){Et.call(l,g)?++l[g]:yo(l,g,1)});function r5(l,d,g){var C=ze(l)?d0:zL;return g&&qn(l,d,g)&&(d=n),C(l,qe(d,3))}function o5(l,d){var g=ze(l)?Jo:I0;return g(l,qe(d,3))}var i5=uE($E),s5=uE(DE);function a5(l,d){return Pn(Of(l,d),1)}function l5(l,d){return Pn(Of(l,d),k)}function u5(l,d,g){return g=g===n?1:Xe(g),Pn(Of(l,d),g)}function FE(l,d){var g=ze(l)?hr:ri;return g(l,qe(d,3))}function LE(l,d){var g=ze(l)?_3:N0;return g(l,qe(d,3))}var c5=xf(function(l,d,g){Et.call(l,g)?l[g].push(d):yo(l,g,[d])});function d5(l,d,g,C){l=Un(l)?l:Ls(l),g=g&&!C?Xe(g):0;var M=l.length;return g<0&&(g=gn(M+g,0)),Nf(l)?g<=M&&l.indexOf(d,g)>-1:!!M&&Ps(l,d,g)>-1}var f5=Qe(function(l,d,g){var C=-1,M=typeof d=="function",B=Un(l)?he(l.length):[];return ri(l,function(Y){B[++C]=M?tr(d,Y,g):Fa(Y,d,g)}),B}),p5=xf(function(l,d,g){yo(l,g,d)});function Of(l,d){var g=ze(l)?Lt:B0;return g(l,qe(d,3))}function m5(l,d,g,C){return l==null?[]:(ze(d)||(d=d==null?[]:[d]),g=C?n:g,ze(g)||(g=g==null?[]:[g]),W0(l,d,g))}var h5=xf(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function g5(l,d,g){var C=ze(l)?Ah:h0,M=arguments.length<3;return C(l,qe(d,4),g,M,ri)}function v5(l,d,g){var C=ze(l)?O3:h0,M=arguments.length<3;return C(l,qe(d,4),g,M,N0)}function b5(l,d){var g=ze(l)?Jo:I0;return g(l,Mf(qe(d,3)))}function y5(l){var d=ze(l)?$0:dq;return d(l)}function x5(l,d,g){(g?qn(l,d,g):d===n)?d=1:d=Xe(d);var C=ze(l)?VL:fq;return C(l,d)}function w5(l){var d=ze(l)?KL:mq;return d(l)}function E5(l){if(l==null)return 0;if(Un(l))return Nf(l)?_s(l):l.length;var d=An(l);return d==Re||d==J?l.size:Qh(l).length}function C5(l,d,g){var C=ze(l)?Nh:hq;return g&&qn(l,d,g)&&(d=n),C(l,qe(d,3))}var R5=Qe(function(l,d){if(l==null)return[];var g=d.length;return g>1&&qn(l,d[0],d[1])?d=[]:g>2&&qn(d[0],d[1],d[2])&&(d=[d[0]]),W0(l,Pn(d,1),[])}),$f=oL||function(){return Sn.Date.now()};function S5(l,d){if(typeof d!="function")throw new gr(s);return l=Xe(l),function(){if(--l<1)return d.apply(this,arguments)}}function qE(l,d,g){return d=g?n:d,d=l&&d==null?l.length:d,xo(l,_,n,n,n,n,d)}function jE(l,d){var g;if(typeof d!="function")throw new gr(s);return l=Xe(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=n),g}}var Eg=Qe(function(l,d,g){var C=E;if(g.length){var M=ti(g,ks(Eg));C|=S}return xo(l,C,d,g,M)}),BE=Qe(function(l,d,g){var C=E|x;if(g.length){var M=ti(g,ks(BE));C|=S}return xo(d,C,l,g,M)});function VE(l,d,g){d=g?n:d;var C=xo(l,P,n,n,n,n,n,d);return C.placeholder=VE.placeholder,C}function KE(l,d,g){d=g?n:d;var C=xo(l,O,n,n,n,n,n,d);return C.placeholder=KE.placeholder,C}function HE(l,d,g){var C,M,B,Y,ne,ae,be=0,ye=!1,we=!1,_e=!0;if(typeof l!="function")throw new gr(s);d=wr(d)||0,Wt(g)&&(ye=!!g.leading,we="maxWait"in g,B=we?gn(wr(g.maxWait)||0,d):B,_e="trailing"in g?!!g.trailing:_e);function ke(tn){var Fr=C,So=M;return C=M=n,be=tn,Y=l.apply(So,Fr),Y}function Be(tn){return be=tn,ne=Va(rt,d),ye?ke(tn):Y}function Ze(tn){var Fr=tn-ae,So=tn-be,uC=d-Fr;return we?Mn(uC,B-So):uC}function Ve(tn){var Fr=tn-ae,So=tn-be;return ae===n||Fr>=d||Fr<0||we&&So>=B}function rt(){var tn=$f();if(Ve(tn))return at(tn);ne=Va(rt,Ze(tn))}function at(tn){return ne=n,_e&&C?ke(tn):(C=M=n,Y)}function ir(){ne!==n&&eE(ne),be=0,C=ae=M=ne=n}function jn(){return ne===n?Y:at($f())}function sr(){var tn=$f(),Fr=Ve(tn);if(C=arguments,M=this,ae=tn,Fr){if(ne===n)return Be(ae);if(we)return eE(ne),ne=Va(rt,d),ke(ae)}return ne===n&&(ne=Va(rt,d)),Y}return sr.cancel=ir,sr.flush=jn,sr}var P5=Qe(function(l,d){return A0(l,1,d)}),T5=Qe(function(l,d,g){return A0(l,wr(d)||0,g)});function _5(l){return xo(l,V)}function Df(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new gr(s);var g=function(){var C=arguments,M=d?d.apply(this,C):C[0],B=g.cache;if(B.has(M))return B.get(M);var Y=l.apply(this,C);return g.cache=B.set(M,Y)||B,Y};return g.cache=new(Df.Cache||bo),g}Df.Cache=bo;function Mf(l){if(typeof l!="function")throw new gr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function O5(l){return jE(2,l)}var $5=gq(function(l,d){d=d.length==1&&ze(d[0])?Lt(d[0],nr(qe())):Lt(Pn(d,1),nr(qe()));var g=d.length;return Qe(function(C){for(var M=-1,B=Mn(C.length,g);++M<B;)C[M]=d[M].call(this,C[M]);return tr(l,this,C)})}),Cg=Qe(function(l,d){var g=ti(d,ks(Cg));return xo(l,S,n,d,g)}),WE=Qe(function(l,d){var g=ti(d,ks(WE));return xo(l,T,n,d,g)}),D5=wo(function(l,d){return xo(l,$,n,n,n,d)});function M5(l,d){if(typeof l!="function")throw new gr(s);return d=d===n?d:Xe(d),Qe(l,d)}function A5(l,d){if(typeof l!="function")throw new gr(s);return d=d==null?0:gn(Xe(d),0),Qe(function(g){var C=g[d],M=si(g,0,d);return C&&ei(M,C),tr(l,this,M)})}function N5(l,d,g){var C=!0,M=!0;if(typeof l!="function")throw new gr(s);return Wt(g)&&(C="leading"in g?!!g.leading:C,M="trailing"in g?!!g.trailing:M),HE(l,d,{leading:C,maxWait:d,trailing:M})}function I5(l){return qE(l,1)}function k5(l,d){return Cg(ag(d),l)}function F5(){if(!arguments.length)return[];var l=arguments[0];return ze(l)?l:[l]}function L5(l){return br(l,b)}function q5(l,d){return d=typeof d=="function"?d:n,br(l,b,d)}function j5(l){return br(l,p|b)}function B5(l,d){return d=typeof d=="function"?d:n,br(l,p|b,d)}function V5(l,d){return d==null||M0(l,d,En(d))}function kr(l,d){return l===d||l!==l&&d!==d}var K5=Rf(Yh),H5=Rf(function(l,d){return l>=d}),Ui=L0((function(){return arguments})())?L0:function(l){return Xt(l)&&Et.call(l,"callee")&&!R0.call(l,"callee")},ze=he.isArray,W5=i0?nr(i0):JL;function Un(l){return l!=null&&Af(l.length)&&!Co(l)}function en(l){return Xt(l)&&Un(l)}function U5(l){return l===!0||l===!1||Xt(l)&&Ln(l)==de}var ai=sL||Ng,z5=s0?nr(s0):eq;function G5(l){return Xt(l)&&l.nodeType===1&&!Ka(l)}function Y5(l){if(l==null)return!0;if(Un(l)&&(ze(l)||typeof l=="string"||typeof l.splice=="function"||ai(l)||Fs(l)||Ui(l)))return!l.length;var d=An(l);if(d==Re||d==J)return!l.size;if(Ba(l))return!Qh(l).length;for(var g in l)if(Et.call(l,g))return!1;return!0}function X5(l,d){return La(l,d)}function Z5(l,d,g){g=typeof g=="function"?g:n;var C=g?g(l,d):n;return C===n?La(l,d,n,g):!!C}function Rg(l){if(!Xt(l))return!1;var d=Ln(l);return d==le||d==ue||typeof l.message=="string"&&typeof l.name=="string"&&!Ka(l)}function Q5(l){return typeof l=="number"&&P0(l)}function Co(l){if(!Wt(l))return!1;var d=Ln(l);return d==Z||d==xe||d==ee||d==Fe}function UE(l){return typeof l=="number"&&l==Xe(l)}function Af(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=q}function Wt(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Xt(l){return l!=null&&typeof l=="object"}var zE=a0?nr(a0):nq;function J5(l,d){return l===d||Zh(l,d,mg(d))}function eB(l,d,g){return g=typeof g=="function"?g:n,Zh(l,d,mg(d),g)}function tB(l){return GE(l)&&l!=+l}function nB(l){if(qq(l))throw new We(i);return q0(l)}function rB(l){return l===null}function oB(l){return l==null}function GE(l){return typeof l=="number"||Xt(l)&&Ln(l)==Ae}function Ka(l){if(!Xt(l)||Ln(l)!=Oe)return!1;var d=sf(l);if(d===null)return!0;var g=Et.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&tf.call(g)==eL}var Sg=l0?nr(l0):rq;function iB(l){return UE(l)&&l>=-q&&l<=q}var YE=u0?nr(u0):oq;function Nf(l){return typeof l=="string"||!ze(l)&&Xt(l)&&Ln(l)==ie}function or(l){return typeof l=="symbol"||Xt(l)&&Ln(l)==fe}var Fs=c0?nr(c0):iq;function sB(l){return l===n}function aB(l){return Xt(l)&&An(l)==ge}function lB(l){return Xt(l)&&Ln(l)==Ee}var uB=Rf(Jh),cB=Rf(function(l,d){return l<=d});function XE(l){if(!l)return[];if(Un(l))return Nf(l)?Nr(l):Wn(l);if($a&&l[$a])return V3(l[$a]());var d=An(l),g=d==Re?jh:d==J?Qd:Ls;return g(l)}function Ro(l){if(!l)return l===0?l:0;if(l=wr(l),l===k||l===-k){var d=l<0?-1:1;return d*z}return l===l?l:0}function Xe(l){var d=Ro(l),g=d%1;return d===d?g?d-g:d:0}function ZE(l){return l?Vi(Xe(l),0,te):0}function wr(l){if(typeof l=="number")return l;if(or(l))return W;if(Wt(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Wt(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=g0(l);var g=W2.test(l);return g||z2.test(l)?S3(l.slice(2),g?2:8):H2.test(l)?W:+l}function QE(l){return Jr(l,zn(l))}function dB(l){return l?Vi(Xe(l),-q,q):l===0?l:0}function vt(l){return l==null?"":rr(l)}var fB=Ns(function(l,d){if(Ba(d)||Un(d)){Jr(d,En(d),l);return}for(var g in d)Et.call(d,g)&&Ia(l,g,d[g])}),JE=Ns(function(l,d){Jr(d,zn(d),l)}),If=Ns(function(l,d,g,C){Jr(d,zn(d),l,C)}),pB=Ns(function(l,d,g,C){Jr(d,En(d),l,C)}),mB=wo(Uh);function hB(l,d){var g=As(l);return d==null?g:D0(g,d)}var gB=Qe(function(l,d){l=Ot(l);var g=-1,C=d.length,M=C>2?d[2]:n;for(M&&qn(d[0],d[1],M)&&(C=1);++g<C;)for(var B=d[g],Y=zn(B),ne=-1,ae=Y.length;++ne<ae;){var be=Y[ne],ye=l[be];(ye===n||kr(ye,$s[be])&&!Et.call(l,be))&&(l[be]=B[be])}return l}),vB=Qe(function(l){return l.push(n,gE),tr(eC,n,l)});function bB(l,d){return f0(l,qe(d,3),Qr)}function yB(l,d){return f0(l,qe(d,3),Gh)}function xB(l,d){return l==null?l:zh(l,qe(d,3),zn)}function wB(l,d){return l==null?l:k0(l,qe(d,3),zn)}function EB(l,d){return l&&Qr(l,qe(d,3))}function CB(l,d){return l&&Gh(l,qe(d,3))}function RB(l){return l==null?[]:gf(l,En(l))}function SB(l){return l==null?[]:gf(l,zn(l))}function Pg(l,d,g){var C=l==null?n:Ki(l,d);return C===n?g:C}function PB(l,d){return l!=null&&yE(l,d,YL)}function Tg(l,d){return l!=null&&yE(l,d,XL)}var TB=dE(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=nf.call(d)),l[d]=g},Og(Gn)),_B=dE(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=nf.call(d)),Et.call(l,d)?l[d].push(g):l[d]=[g]},qe),OB=Qe(Fa);function En(l){return Un(l)?O0(l):Qh(l)}function zn(l){return Un(l)?O0(l,!0):sq(l)}function $B(l,d){var g={};return d=qe(d,3),Qr(l,function(C,M,B){yo(g,d(C,M,B),C)}),g}function DB(l,d){var g={};return d=qe(d,3),Qr(l,function(C,M,B){yo(g,M,d(C,M,B))}),g}var MB=Ns(function(l,d,g){vf(l,d,g)}),eC=Ns(function(l,d,g,C){vf(l,d,g,C)}),AB=wo(function(l,d){var g={};if(l==null)return g;var C=!1;d=Lt(d,function(B){return B=ii(B,l),C||(C=B.length>1),B}),Jr(l,fg(l),g),C&&(g=br(g,p|m|b,Tq));for(var M=d.length;M--;)og(g,d[M]);return g});function NB(l,d){return tC(l,Mf(qe(d)))}var IB=wo(function(l,d){return l==null?{}:lq(l,d)});function tC(l,d){if(l==null)return{};var g=Lt(fg(l),function(C){return[C]});return d=qe(d),U0(l,g,function(C,M){return d(C,M[0])})}function kB(l,d,g){d=ii(d,l);var C=-1,M=d.length;for(M||(M=1,l=n);++C<M;){var B=l==null?n:l[eo(d[C])];B===n&&(C=M,B=g),l=Co(B)?B.call(l):B}return l}function FB(l,d,g){return l==null?l:qa(l,d,g)}function LB(l,d,g,C){return C=typeof C=="function"?C:n,l==null?l:qa(l,d,g,C)}var nC=mE(En),rC=mE(zn);function qB(l,d,g){var C=ze(l),M=C||ai(l)||Fs(l);if(d=qe(d,4),g==null){var B=l&&l.constructor;M?g=C?new B:[]:Wt(l)?g=Co(B)?As(sf(l)):{}:g={}}return(M?hr:Qr)(l,function(Y,ne,ae){return d(g,Y,ne,ae)}),g}function jB(l,d){return l==null?!0:og(l,d)}function BB(l,d,g){return l==null?l:Z0(l,d,ag(g))}function VB(l,d,g,C){return C=typeof C=="function"?C:n,l==null?l:Z0(l,d,ag(g),C)}function Ls(l){return l==null?[]:qh(l,En(l))}function KB(l){return l==null?[]:qh(l,zn(l))}function HB(l,d,g){return g===n&&(g=d,d=n),g!==n&&(g=wr(g),g=g===g?g:0),d!==n&&(d=wr(d),d=d===d?d:0),Vi(wr(l),d,g)}function WB(l,d,g){return d=Ro(d),g===n?(g=d,d=0):g=Ro(g),l=wr(l),ZL(l,d,g)}function UB(l,d,g){if(g&&typeof g!="boolean"&&qn(l,d,g)&&(d=g=n),g===n&&(typeof d=="boolean"?(g=d,d=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&d===n?(l=0,d=1):(l=Ro(l),d===n?(d=l,l=0):d=Ro(d)),l>d){var C=l;l=d,d=C}if(g||l%1||d%1){var M=T0();return Mn(l+M*(d-l+R3("1e-"+((M+"").length-1))),d)}return tg(l,d)}var zB=Is(function(l,d,g){return d=d.toLowerCase(),l+(g?oC(d):d)});function oC(l){return _g(vt(l).toLowerCase())}function iC(l){return l=vt(l),l&&l.replace(Y2,F3).replace(m3,"")}function GB(l,d,g){l=vt(l),d=rr(d);var C=l.length;g=g===n?C:Vi(Xe(g),0,C);var M=g;return g-=d.length,g>=0&&l.slice(g,M)==d}function YB(l){return l=vt(l),l&&Ar.test(l)?l.replace(Dn,L3):l}function XB(l){return l=vt(l),l&&Ud.test(l)?l.replace(ki,"\\$&"):l}var ZB=Is(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),QB=Is(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),JB=lE("toLowerCase");function e6(l,d,g){l=vt(l),d=Xe(d);var C=d?_s(l):0;if(!d||C>=d)return l;var M=(d-C)/2;return Cf(cf(M),g)+l+Cf(uf(M),g)}function t6(l,d,g){l=vt(l),d=Xe(d);var C=d?_s(l):0;return d&&C<d?l+Cf(d-C,g):l}function n6(l,d,g){l=vt(l),d=Xe(d);var C=d?_s(l):0;return d&&C<d?Cf(d-C,g)+l:l}function r6(l,d,g){return g||d==null?d=0:d&&(d=+d),cL(vt(l).replace(_a,""),d||0)}function o6(l,d,g){return(g?qn(l,d,g):d===n)?d=1:d=Xe(d),ng(vt(l),d)}function i6(){var l=arguments,d=vt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var s6=Is(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function a6(l,d,g){return g&&typeof g!="number"&&qn(l,d,g)&&(d=g=n),g=g===n?te:g>>>0,g?(l=vt(l),l&&(typeof d=="string"||d!=null&&!Sg(d))&&(d=rr(d),!d&&Ts(l))?si(Nr(l),0,g):l.split(d,g)):[]}var l6=Is(function(l,d,g){return l+(g?" ":"")+_g(d)});function u6(l,d,g){return l=vt(l),g=g==null?0:Vi(Xe(g),0,l.length),d=rr(d),l.slice(g,g+d.length)==d}function c6(l,d,g){var C=L.templateSettings;g&&qn(l,d,g)&&(d=n),l=vt(l),d=If({},d,C,hE);var M=If({},d.imports,C.imports,hE),B=En(M),Y=qh(M,B),ne,ae,be=0,ye=d.interpolate||zd,we="__p += '",_e=Bh((d.escape||zd).source+"|"+ye.source+"|"+(ye===Ce?K2:zd).source+"|"+(d.evaluate||zd).source+"|$","g"),ke="//# sourceURL="+(Et.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y3+"]")+`
|
|
117
|
-
`;l.replace(_e,function(Ve,rt,at,ir,jn,sr){return at||(at=ir),we+=l.slice(be,sr).replace(X2,q3),rt&&(ne=!0,we+=`' +
|
|
118
|
-
__e(`+rt+`) +
|
|
119
|
-
'`),jn&&(ae=!0,we+=`';
|
|
120
|
-
`+jn+`;
|
|
121
|
-
__p += '`),at&&(we+=`' +
|
|
122
|
-
((__t = (`+at+`)) == null ? '' : __t) +
|
|
123
|
-
'`),be=sr+Ve.length,Ve}),we+=`';
|
|
124
|
-
`;var Be=Et.call(d,"variable")&&d.variable;if(!Be)we=`with (obj) {
|
|
125
|
-
`+we+`
|
|
126
|
-
}
|
|
127
|
-
`;else if(B2.test(Be))throw new We(a);we=(ae?we.replace(nt,""):we).replace(tt,"$1").replace(Jt,"$1;"),we="function("+(Be||"obj")+`) {
|
|
128
|
-
`+(Be?"":`obj || (obj = {});
|
|
129
|
-
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join;
|
|
130
|
-
function print() { __p += __j.call(arguments, '') }
|
|
131
|
-
`:`;
|
|
132
|
-
`)+we+`return __p
|
|
133
|
-
}`;var Ze=aC(function(){return mt(B,ke+"return "+we).apply(n,Y)});if(Ze.source=we,Rg(Ze))throw Ze;return Ze}function d6(l){return vt(l).toLowerCase()}function f6(l){return vt(l).toUpperCase()}function p6(l,d,g){if(l=vt(l),l&&(g||d===n))return g0(l);if(!l||!(d=rr(d)))return l;var C=Nr(l),M=Nr(d),B=v0(C,M),Y=b0(C,M)+1;return si(C,B,Y).join("")}function m6(l,d,g){if(l=vt(l),l&&(g||d===n))return l.slice(0,x0(l)+1);if(!l||!(d=rr(d)))return l;var C=Nr(l),M=b0(C,Nr(d))+1;return si(C,0,M).join("")}function h6(l,d,g){if(l=vt(l),l&&(g||d===n))return l.replace(_a,"");if(!l||!(d=rr(d)))return l;var C=Nr(l),M=v0(C,Nr(d));return si(C,M).join("")}function g6(l,d){var g=U,C=A;if(Wt(d)){var M="separator"in d?d.separator:M;g="length"in d?Xe(d.length):g,C="omission"in d?rr(d.omission):C}l=vt(l);var B=l.length;if(Ts(l)){var Y=Nr(l);B=Y.length}if(g>=B)return l;var ne=g-_s(C);if(ne<1)return C;var ae=Y?si(Y,0,ne).join(""):l.slice(0,ne);if(M===n)return ae+C;if(Y&&(ne+=ae.length-ne),Sg(M)){if(l.slice(ne).search(M)){var be,ye=ae;for(M.global||(M=Bh(M.source,vt(Lw.exec(M))+"g")),M.lastIndex=0;be=M.exec(ye);)var we=be.index;ae=ae.slice(0,we===n?ne:we)}}else if(l.indexOf(rr(M),ne)!=ne){var _e=ae.lastIndexOf(M);_e>-1&&(ae=ae.slice(0,_e))}return ae+C}function v6(l){return l=vt(l),l&&Rn.test(l)?l.replace(Ft,U3):l}var b6=Is(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),_g=lE("toUpperCase");function sC(l,d,g){return l=vt(l),d=g?n:d,d===n?B3(l)?Y3(l):M3(l):l.match(d)||[]}var aC=Qe(function(l,d){try{return tr(l,n,d)}catch(g){return Rg(g)?g:new We(g)}}),y6=wo(function(l,d){return hr(d,function(g){g=eo(g),yo(l,g,Eg(l[g],l))}),l});function x6(l){var d=l==null?0:l.length,g=qe();return l=d?Lt(l,function(C){if(typeof C[1]!="function")throw new gr(s);return[g(C[0]),C[1]]}):[],Qe(function(C){for(var M=-1;++M<d;){var B=l[M];if(tr(B[0],this,C))return tr(B[1],this,C)}})}function w6(l){return UL(br(l,p))}function Og(l){return function(){return l}}function E6(l,d){return l==null||l!==l?d:l}var C6=cE(),R6=cE(!0);function Gn(l){return l}function $g(l){return j0(typeof l=="function"?l:br(l,p))}function S6(l){return V0(br(l,p))}function P6(l,d){return K0(l,br(d,p))}var T6=Qe(function(l,d){return function(g){return Fa(g,l,d)}}),_6=Qe(function(l,d){return function(g){return Fa(l,g,d)}});function Dg(l,d,g){var C=En(d),M=gf(d,C);g==null&&!(Wt(d)&&(M.length||!C.length))&&(g=d,d=l,l=this,M=gf(d,En(d)));var B=!(Wt(g)&&"chain"in g)||!!g.chain,Y=Co(l);return hr(M,function(ne){var ae=d[ne];l[ne]=ae,Y&&(l.prototype[ne]=function(){var be=this.__chain__;if(B||be){var ye=l(this.__wrapped__),we=ye.__actions__=Wn(this.__actions__);return we.push({func:ae,args:arguments,thisArg:l}),ye.__chain__=be,ye}return ae.apply(l,ei([this.value()],arguments))})}),l}function O6(){return Sn._===this&&(Sn._=tL),this}function Mg(){}function $6(l){return l=Xe(l),Qe(function(d){return H0(d,l)})}var D6=ug(Lt),M6=ug(d0),A6=ug(Nh);function lC(l){return gg(l)?Ih(eo(l)):uq(l)}function N6(l){return function(d){return l==null?n:Ki(l,d)}}var I6=fE(),k6=fE(!0);function Ag(){return[]}function Ng(){return!1}function F6(){return{}}function L6(){return""}function q6(){return!0}function j6(l,d){if(l=Xe(l),l<1||l>q)return[];var g=te,C=Mn(l,te);d=qe(d),l-=te;for(var M=Lh(C,d);++g<l;)d(g);return M}function B6(l){return ze(l)?Lt(l,eo):or(l)?[l]:Wn(_E(vt(l)))}function V6(l){var d=++J3;return vt(l)+d}var K6=Ef(function(l,d){return l+d},0),H6=cg("ceil"),W6=Ef(function(l,d){return l/d},1),U6=cg("floor");function z6(l){return l&&l.length?hf(l,Gn,Yh):n}function G6(l,d){return l&&l.length?hf(l,qe(d,2),Yh):n}function Y6(l){return m0(l,Gn)}function X6(l,d){return m0(l,qe(d,2))}function Z6(l){return l&&l.length?hf(l,Gn,Jh):n}function Q6(l,d){return l&&l.length?hf(l,qe(d,2),Jh):n}var J6=Ef(function(l,d){return l*d},1),eV=cg("round"),tV=Ef(function(l,d){return l-d},0);function nV(l){return l&&l.length?Fh(l,Gn):0}function rV(l,d){return l&&l.length?Fh(l,qe(d,2)):0}return L.after=S5,L.ary=qE,L.assign=fB,L.assignIn=JE,L.assignInWith=If,L.assignWith=pB,L.at=mB,L.before=jE,L.bind=Eg,L.bindAll=y6,L.bindKey=BE,L.castArray=F5,L.chain=kE,L.chunk=Uq,L.compact=zq,L.concat=Gq,L.cond=x6,L.conforms=w6,L.constant=Og,L.countBy=n5,L.create=hB,L.curry=VE,L.curryRight=KE,L.debounce=HE,L.defaults=gB,L.defaultsDeep=vB,L.defer=P5,L.delay=T5,L.difference=Yq,L.differenceBy=Xq,L.differenceWith=Zq,L.drop=Qq,L.dropRight=Jq,L.dropRightWhile=ej,L.dropWhile=tj,L.fill=nj,L.filter=o5,L.flatMap=a5,L.flatMapDeep=l5,L.flatMapDepth=u5,L.flatten=ME,L.flattenDeep=rj,L.flattenDepth=oj,L.flip=_5,L.flow=C6,L.flowRight=R6,L.fromPairs=ij,L.functions=RB,L.functionsIn=SB,L.groupBy=c5,L.initial=aj,L.intersection=lj,L.intersectionBy=uj,L.intersectionWith=cj,L.invert=TB,L.invertBy=_B,L.invokeMap=f5,L.iteratee=$g,L.keyBy=p5,L.keys=En,L.keysIn=zn,L.map=Of,L.mapKeys=$B,L.mapValues=DB,L.matches=S6,L.matchesProperty=P6,L.memoize=Df,L.merge=MB,L.mergeWith=eC,L.method=T6,L.methodOf=_6,L.mixin=Dg,L.negate=Mf,L.nthArg=$6,L.omit=AB,L.omitBy=NB,L.once=O5,L.orderBy=m5,L.over=D6,L.overArgs=$5,L.overEvery=M6,L.overSome=A6,L.partial=Cg,L.partialRight=WE,L.partition=h5,L.pick=IB,L.pickBy=tC,L.property=lC,L.propertyOf=N6,L.pull=mj,L.pullAll=NE,L.pullAllBy=hj,L.pullAllWith=gj,L.pullAt=vj,L.range=I6,L.rangeRight=k6,L.rearg=D5,L.reject=b5,L.remove=bj,L.rest=M5,L.reverse=xg,L.sampleSize=x5,L.set=FB,L.setWith=LB,L.shuffle=w5,L.slice=yj,L.sortBy=R5,L.sortedUniq=Pj,L.sortedUniqBy=Tj,L.split=a6,L.spread=A5,L.tail=_j,L.take=Oj,L.takeRight=$j,L.takeRightWhile=Dj,L.takeWhile=Mj,L.tap=zj,L.throttle=N5,L.thru=_f,L.toArray=XE,L.toPairs=nC,L.toPairsIn=rC,L.toPath=B6,L.toPlainObject=QE,L.transform=qB,L.unary=I5,L.union=Aj,L.unionBy=Nj,L.unionWith=Ij,L.uniq=kj,L.uniqBy=Fj,L.uniqWith=Lj,L.unset=jB,L.unzip=wg,L.unzipWith=IE,L.update=BB,L.updateWith=VB,L.values=Ls,L.valuesIn=KB,L.without=qj,L.words=sC,L.wrap=k5,L.xor=jj,L.xorBy=Bj,L.xorWith=Vj,L.zip=Kj,L.zipObject=Hj,L.zipObjectDeep=Wj,L.zipWith=Uj,L.entries=nC,L.entriesIn=rC,L.extend=JE,L.extendWith=If,Dg(L,L),L.add=K6,L.attempt=aC,L.camelCase=zB,L.capitalize=oC,L.ceil=H6,L.clamp=HB,L.clone=L5,L.cloneDeep=j5,L.cloneDeepWith=B5,L.cloneWith=q5,L.conformsTo=V5,L.deburr=iC,L.defaultTo=E6,L.divide=W6,L.endsWith=GB,L.eq=kr,L.escape=YB,L.escapeRegExp=XB,L.every=r5,L.find=i5,L.findIndex=$E,L.findKey=bB,L.findLast=s5,L.findLastIndex=DE,L.findLastKey=yB,L.floor=U6,L.forEach=FE,L.forEachRight=LE,L.forIn=xB,L.forInRight=wB,L.forOwn=EB,L.forOwnRight=CB,L.get=Pg,L.gt=K5,L.gte=H5,L.has=PB,L.hasIn=Tg,L.head=AE,L.identity=Gn,L.includes=d5,L.indexOf=sj,L.inRange=WB,L.invoke=OB,L.isArguments=Ui,L.isArray=ze,L.isArrayBuffer=W5,L.isArrayLike=Un,L.isArrayLikeObject=en,L.isBoolean=U5,L.isBuffer=ai,L.isDate=z5,L.isElement=G5,L.isEmpty=Y5,L.isEqual=X5,L.isEqualWith=Z5,L.isError=Rg,L.isFinite=Q5,L.isFunction=Co,L.isInteger=UE,L.isLength=Af,L.isMap=zE,L.isMatch=J5,L.isMatchWith=eB,L.isNaN=tB,L.isNative=nB,L.isNil=oB,L.isNull=rB,L.isNumber=GE,L.isObject=Wt,L.isObjectLike=Xt,L.isPlainObject=Ka,L.isRegExp=Sg,L.isSafeInteger=iB,L.isSet=YE,L.isString=Nf,L.isSymbol=or,L.isTypedArray=Fs,L.isUndefined=sB,L.isWeakMap=aB,L.isWeakSet=lB,L.join=dj,L.kebabCase=ZB,L.last=xr,L.lastIndexOf=fj,L.lowerCase=QB,L.lowerFirst=JB,L.lt=uB,L.lte=cB,L.max=z6,L.maxBy=G6,L.mean=Y6,L.meanBy=X6,L.min=Z6,L.minBy=Q6,L.stubArray=Ag,L.stubFalse=Ng,L.stubObject=F6,L.stubString=L6,L.stubTrue=q6,L.multiply=J6,L.nth=pj,L.noConflict=O6,L.noop=Mg,L.now=$f,L.pad=e6,L.padEnd=t6,L.padStart=n6,L.parseInt=r6,L.random=UB,L.reduce=g5,L.reduceRight=v5,L.repeat=o6,L.replace=i6,L.result=kB,L.round=eV,L.runInContext=oe,L.sample=y5,L.size=E5,L.snakeCase=s6,L.some=C5,L.sortedIndex=xj,L.sortedIndexBy=wj,L.sortedIndexOf=Ej,L.sortedLastIndex=Cj,L.sortedLastIndexBy=Rj,L.sortedLastIndexOf=Sj,L.startCase=l6,L.startsWith=u6,L.subtract=tV,L.sum=nV,L.sumBy=rV,L.template=c6,L.times=j6,L.toFinite=Ro,L.toInteger=Xe,L.toLength=ZE,L.toLower=d6,L.toNumber=wr,L.toSafeInteger=dB,L.toString=vt,L.toUpper=f6,L.trim=p6,L.trimEnd=m6,L.trimStart=h6,L.truncate=g6,L.unescape=v6,L.uniqueId=V6,L.upperCase=b6,L.upperFirst=_g,L.each=FE,L.eachRight=LE,L.first=AE,Dg(L,(function(){var l={};return Qr(L,function(d,g){Et.call(L.prototype,g)||(l[g]=d)}),l})(),{chain:!1}),L.VERSION=r,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){L[l].placeholder=L}),hr(["drop","take"],function(l,d){ot.prototype[l]=function(g){g=g===n?1:gn(Xe(g),0);var C=this.__filtered__&&!d?new ot(this):this.clone();return C.__filtered__?C.__takeCount__=Mn(g,C.__takeCount__):C.__views__.push({size:Mn(g,te),type:l+(C.__dir__<0?"Right":"")}),C},ot.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),hr(["filter","map","takeWhile"],function(l,d){var g=d+1,C=g==N||g==I;ot.prototype[l]=function(M){var B=this.clone();return B.__iteratees__.push({iteratee:qe(M,3),type:g}),B.__filtered__=B.__filtered__||C,B}}),hr(["head","last"],function(l,d){var g="take"+(d?"Right":"");ot.prototype[l]=function(){return this[g](1).value()[0]}}),hr(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");ot.prototype[l]=function(){return this.__filtered__?new ot(this):this[g](1)}}),ot.prototype.compact=function(){return this.filter(Gn)},ot.prototype.find=function(l){return this.filter(l).head()},ot.prototype.findLast=function(l){return this.reverse().find(l)},ot.prototype.invokeMap=Qe(function(l,d){return typeof l=="function"?new ot(this):this.map(function(g){return Fa(g,l,d)})}),ot.prototype.reject=function(l){return this.filter(Mf(qe(l)))},ot.prototype.slice=function(l,d){l=Xe(l);var g=this;return g.__filtered__&&(l>0||d<0)?new ot(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==n&&(d=Xe(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},ot.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},ot.prototype.toArray=function(){return this.take(te)},Qr(ot.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),C=/^(?:head|last)$/.test(d),M=L[C?"take"+(d=="last"?"Right":""):d],B=C||/^find/.test(d);M&&(L.prototype[d]=function(){var Y=this.__wrapped__,ne=C?[1]:arguments,ae=Y instanceof ot,be=ne[0],ye=ae||ze(Y),we=function(rt){var at=M.apply(L,ei([rt],ne));return C&&_e?at[0]:at};ye&&g&&typeof be=="function"&&be.length!=1&&(ae=ye=!1);var _e=this.__chain__,ke=!!this.__actions__.length,Be=B&&!_e,Ze=ae&&!ke;if(!B&&ye){Y=Ze?Y:new ot(this);var Ve=l.apply(Y,ne);return Ve.__actions__.push({func:_f,args:[we],thisArg:n}),new vr(Ve,_e)}return Be&&Ze?l.apply(this,ne):(Ve=this.thru(we),Be?C?Ve.value()[0]:Ve.value():Ve)})}),hr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Jd[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",C=/^(?:pop|shift)$/.test(l);L.prototype[l]=function(){var M=arguments;if(C&&!this.__chain__){var B=this.value();return d.apply(ze(B)?B:[],M)}return this[g](function(Y){return d.apply(ze(Y)?Y:[],M)})}}),Qr(ot.prototype,function(l,d){var g=L[d];if(g){var C=g.name+"";Et.call(Ms,C)||(Ms[C]=[]),Ms[C].push({name:d,func:g})}}),Ms[wf(n,x).name]=[{name:"wrapper",func:n}],ot.prototype.clone=vL,ot.prototype.reverse=bL,ot.prototype.value=yL,L.prototype.at=Gj,L.prototype.chain=Yj,L.prototype.commit=Xj,L.prototype.next=Zj,L.prototype.plant=Jj,L.prototype.reverse=e5,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=t5,L.prototype.first=L.prototype.head,$a&&(L.prototype[$a]=Qj),L}),Os=X3();Li?((Li.exports=Os)._=Os,$h._=Os):Sn._=Os}).call(_re)})(jc,jc.exports)),jc.exports}var _t=Ore();const $re=({view:e,setView:t,value:n,previousMonth:r,nextMonth:o,previousYear:i,nextYear:s,previousDecade:a,nextDecade:u,goBackProps:c,goNextProps:f,changeViewProps:p})=>{const m=e==="month",b=e==="year",y=e==="decade",v=()=>{if(y)return a();if(b)return i();r()},E=()=>{if(y)return u();if(b)return s();o()},x=()=>{if(m)return t("year");if(b)return t("decade")},R=()=>y?P():b?Cn(n,"yyyy"):Cn(n,"MMMM yyyy",{locale:Tre}),P=()=>{if(!n)return"";const S=XM({start:uA(n),end:ZM(n)}),T=_t.first(S),_=_t.last(S);return`${Cn(T,"yyyy")} - ${Cn(_,"yyyy")}`},O=D.useMemo(R,[n,e]);return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"flex items-center justify-between","data-slot":"calendar-navigation",children:[w.jsxs(Tn,{onClick:v,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-back",...c,children:[w.jsx(ky,{className:"h-4 w-4","data-slot":"calendar-navigation-back-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a anterior"})]}),w.jsx("button",{onClick:x,disabled:y,...p,type:"button",className:me("font-semibold pb-px text-gray-900 text-lg text-blue-bell select-none min-w-[60%] capitalize",p?.className),"data-slot":"calendar-navigation-label",children:O}),w.jsxs(Tn,{onClick:E,size:"icon",variant:"ghost",className:"border w-6 opacity-50 hover:opacity-100","data-slot":"calendar-navigation-next",...f,children:[w.jsx(gd,{className:"h-4 w-4","data-slot":"calendar-navigation-next-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a siguiente"})]})]})})};function Gc(e){return!!(e&&typeof e=="object"&&"start"in e&&"end"in e)}function Dre(e,t){return{selectMultipleDate:o=>{if(!e)return t([o]);const i=_t.findIndex(e,a=>ss(a,o));if(i===-1)return t([...e,o]);const s=[...e.slice(0,i),...e.slice(i+1)];t(s)},isMultipleSelected:o=>_t.isArray(e)&&e.some(i=>ss(i,o))}}function Mre(e,t,n){const r=u=>{if(e?.start){const{start:f,end:p}=e;if(Yte(u,f)||f&&p){t({start:u,end:void 0});return}if(o(f,u))return;t({start:f,end:u})}else t({start:u,end:void 0})},o=(u,c)=>!n||!u||!c?!1:YM({start:Ri(u),end:c}).some(m=>n(m));return{selectRangeDate:r,isInRange:u=>{if(!Gc(e)||!e)return!1;const{start:c,end:f}=e;return c&&!f?ss(u,c):!c||!f?!1:Gne(u,{start:Ri(c),end:Ri(f)})},isFirstDayFromRange:u=>!e||!Gc(e)||!e.start?!1:ss(u,e.start),isLastDayFromRange:u=>!e||!Gc(e)||!e.end?!1:ss(u,e.end)}}function Are(e,t){return{selectSingleDate:o=>{t(o)},isSingleSelected:o=>ps(e)&&ss(o,e)}}const cA=D.createContext({defaultStartDate:new Date,mode:"single",isSingleMode:!1,isRangeMode:!1,selected:null,selectDate:()=>{},isSelected:()=>!1,isFirstDayFromRange:()=>!1,isLastDayFromRange:()=>!1,isInRange:()=>!1});function Nre(e){const{mode:t,value:n,defaultValue:r,onChange:o,disabled:i}=e,s=t==="single",a=t==="range",u=t==="multiple",[c=null,f]=Kt({prop:n,onChange:o,defaultProp:r}),{selectSingleDate:p,isSingleSelected:m}=Are(ps(c)?c:void 0,f),{selectRangeDate:b,isInRange:y,...v}=Mre(Gc(c)?c:void 0,f,i),{selectMultipleDate:E,isMultipleSelected:x}=Dre(_t.isArray(c)?c:void 0,f),R=S=>{if(s)return p(S);if(a)return b(S);if(u)return E(S)},P=S=>s?m(S):a?y(S):u?x(S):!1;return{defaultStartDate:ps(c)?c:_t.isArray(c)?c[0]:Gc(c)&&c.start?c.start:new Date,isSingleMode:s,isRangeMode:a,selected:c,isSelected:P,selectDate:R,isInRange:y,mode:t,...v}}const Ire=({day:e,navigationDate:t,className:n,...r})=>{const{isSelected:o,mode:i,selected:s,isRangeMode:a,selectDate:u,isFirstDayFromRange:c,isLastDayFromRange:f}=D.useContext(cA),p=D.useMemo(()=>o(e),[e,s]),m=!p&&!Une(e,t),b=!p&&zee(e);return w.jsx("button",{...r,onClick:()=>u(e),type:"button","data-slot":"calendar-day","data-state-mode":i,"data-state-today":zne(e)||void 0,"data-state-selected":p||void 0,"data-state-different-month":m||void 0,"data-state-weekend":b||void 0,"data-state-range-mode":a||void 0,"data-state-first-day":c(e)||void 0,"data-state-last-day":f(e)||void 0,"data-state-in-range":a&&p||void 0,className:me("mx-auto flex pt-px rounded-md items-center justify-center w-full aspect-square hover:bg-accent","data-[state-today]:text-error","data-[state-selected]:bg-primary data-[state-selected]:!text-primary-foreground data-[state-selected]:hover:bg-primary/80","data-[state-different-month]:opacity-50 data-[state-weekend=true]:opacity-50","data-[state-in-range]:not-data-[state-first-day]:not-data-[state-last-day]:rounded-none","data-[state-first-day]:rounded-l-full","data-[state-last-day]:rounded-r-full",n),children:w.jsx("time",{dateTime:Cn(e,"yyyy-MM-dd"),children:Cn(e,"d")})})},kre=({value:e,onChange:t})=>{const n=()=>XM({start:uA(e),end:ZM(e)}),r=i=>{const s=Xne(e,parseInt(Cn(i,"yyyy")));t(s)},o=D.useMemo(n,[e]);return w.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-decade-view",children:o.map((i,s)=>w.jsx(Tn,{onClick:()=>r(i),className:"h-full rounded-none",type:"button",variant:"ghost","data-slot":"calendar-decade-view-year",children:Cn(i,"yyyy")},s))})},Sb=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dA=["Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"],Fre=e=>w.jsx("div",{...e,className:me("grid grid-cols-7 font-semibold mt-2 text-xs leading-6 text-center py-1 bg-blue-bell/40 select-none",e.className),"data-slot":"calendar-week-days",children:dA.map(t=>w.jsx("abbr",{"aria-label":t,"data-slot":"calendar-week-day",children:_t.at(t,0)},t))}),Lre=({navigationDate:e,disabled:t,weekDaysClassName:n,weekDaysProps:r,dayClassName:o,dayProps:i})=>{const s=()=>YM({start:Ko(e,{weekStartsOn:1}),end:tte(Jee(e),{weekStartsOn:1})}),a=D.useMemo(s,[e]);return w.jsxs(w.Fragment,{children:[w.jsx(Fre,{className:n,...r}),w.jsx("div",{className:"grid grid-cols-7 mt-2 text-sm","data-slot":"calendar-month-view",children:a.map((u,c)=>w.jsx(Ire,{day:u,className:o,...i,navigationDate:e,disabled:t?.(u)},c))})]})},qre=({value:e,onChange:t})=>{const n=r=>{const o=Yne(e,r);t(o)};return w.jsx("div",{className:"grid grid-cols-3 grow","data-slot":"calendar-year-view",children:Sb.map(r=>w.jsx(Tn,{type:"button",className:"h-full rounded",onClick:()=>n(Sb.indexOf(r)),variant:"ghost","data-slot":"calendar-year-view-month",children:w.jsx("abbr",{"aria-label":`${r} ${Cn(e,"yyyy")}`,children:r})},r))})};function jre(e=Sv()){const[t,n]=D.useState({month:Cn(e||Sv(),"MM"),year:Cn(e||Sv(),"yyyy")}),r=D.useMemo(()=>Hne(`${t.month}-${t.year}`,"MM-yyyy",new Date),[t]),o=m=>{n({...t,month:Cn(m,"MM")})},i=m=>{n({...t,year:Cn(m,"yyyy")})};return{navigationDate:r,setMonth:o,setYear:i,previousMonth:()=>{const m=Eb(r,-1);n({month:Cn(m,"MM"),year:Cn(m,"yyyy")})},nextMonth:()=>{const m=Eb(r,1);n({month:Cn(m,"MM"),year:Cn(m,"yyyy")})},previousYear:()=>{const m=fp(r,-1);i(m)},nextYear:()=>{const m=fp(r,1);i(m)},previousDecade:()=>{const m=fp(r,-10);i(m)},nextDecade:()=>{const m=fp(r,10);i(m)}}}const fA=e=>{const{disabled:t,initialView:n="month",view:r,onChangeView:o,initialDate:i,goBackProps:s,goNextProps:a,changeViewProps:u}=e,c=Nre(e),{defaultStartDate:f}=c,{navigationDate:p,setMonth:m,setYear:b,...y}=jre(i||f),[v=n,E]=Kt({prop:r,onChange:x=>o?.(x,p),defaultProp:n});return w.jsx(cA.Provider,{value:c,children:w.jsxs("div",{"data-slot":"calendar",className:me("w-60 min-h-64 flex flex-col border rounded-md p-2",e.className),children:[w.jsx($re,{view:v,setView:E,value:p,goBackProps:s,goNextProps:a,changeViewProps:u,...y}),v==="month"&&w.jsx(Lre,{...e.monthViewProps,navigationDate:p,disabled:t}),v==="year"&&w.jsx(qre,{value:p,onChange:x=>{m(x),E("month")}}),v==="decade"&&w.jsx(kre,{value:p,onChange:x=>{b(x),E("year")}})]})})},Bre=({className:e,...t})=>w.jsx("div",{className:me("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t,"data-slot":"card"}),Vre=({className:e,...t})=>w.jsx("div",{className:me("flex flex-col space-y-1 p-6",e),...t,"data-slot":"card-header"}),Kre=({className:e,...t})=>w.jsx("h3",{className:me("text-2xl font-semibold leading-none tracking-tight",e),...t,"data-slot":"card-title"}),Hre=({className:e,...t})=>w.jsx("p",{className:me("text-sm text-muted-foreground",e),...t,"data-slot":"card-description"}),Wre=({className:e,...t})=>w.jsx("div",{className:me("p-6 pt-0",e),...t,"data-slot":"card-content"}),Ure=({className:e,...t})=>w.jsx("div",{className:me("flex items-center p-6 pt-0",e),...t,"data-slot":"card-footer"}),zre=({as:e="div",inline:t=!1,className:n,...r})=>w.jsx(e,{className:me(t?"inline-flex":"flex","items-center justify-center",n),...r,"data-slot":"center"});function fx({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){h.useEffect(()=>{o!==(e!==void 0)&&Wp([`A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"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(`
|
|
134
|
-
`))},[r,n,e]);const{current:c}=h.useRef(t);h.useEffect(()=>{!o&&cT(c)!==cT(t)&&Wp([`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(`
|
|
135
|
-
`))},[t])}const u=h.useCallback(c=>{o||s(c)},[]);return[a,u]}function cT(e){let t=0;const n=new WeakMap;try{return JSON.stringify(e,function(i,s){if(!(i==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof s=="bigint")return`__bigint__:${s}`;if(s!==null&&typeof s=="object"){const a=n.get(s);if(a!==void 0)return`__object__:${a}`;n.set(s,t),t+=1}return s}})??`__top__:${typeof e}`}catch{return"__unserializable__"}}let dT=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.indeterminate="data-indeterminate",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({}),fT=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const Gre={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Bc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Yre={disabled:!1,...Bc},Ym={valid(e){return e===null?null:e?{[fT.valid]:""}:{[fT.invalid]:""}}};function pA(e){return h.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[dT.checked]:""}:{[dT.unchecked]:""}},...Ym}),[e.indeterminate])}const mA=h.createContext({invalid:void 0,name:void 0,validityData:{state:Gre,errors:[],error:"",value:"",initialValue:null},setValidityData:At,disabled:void 0,touched:Bc.touched,setTouched:At,dirty:Bc.dirty,setDirty:At,filled:Bc.filled,setFilled:At,focused:Bc.focused,setFocused:At,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Yre,markedDirtyRef:{current:!1},registerFieldControl:At,validation:{getValidationProps:(e=yn)=>e,getInputValidationProps:(e=yn)=>e,inputRef:{current:null},commit:async()=>{}}});process.env.NODE_ENV!=="production"&&(mA.displayName="FieldRootContext");function _d(e=!0){const t=h.useContext(mA);if(t.setValidityData===At&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.":zt(28));return t}function px(e,t){const{enabled:n=!0,getValue:r,id:o,value:i}=t,{registerFieldControl:s}=_d(),a=h.useRef(null);a.current||(a.current=Symbol()),Le(()=>{const u=a.current;if(!(!u||!n))return s(u,{controlRef:e,getValue:r,id:o,value:i}),()=>{s(u,void 0)}},[e,n,r,o,s,i])}const hA=h.createContext({disabled:!1});process.env.NODE_ENV!=="production"&&(hA.displayName="FieldItemContext");function Xre(){return h.useContext(hA)}const gA=h.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:At,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});process.env.NODE_ENV!=="production"&&(gA.displayName="FormContext");function mx(){return h.useContext(gA)}const vA=h.createContext({controlId:void 0,registerControlId:At,labelId:void 0,setLabelId:At,messageIds:[],setMessageIds:At,getDescriptionProps:e=>e});process.env.NODE_ENV!=="production"&&(vA.displayName="LabelableContext");function Xm(){return h.useContext(vA)}function bA(e,t,n,r=!0,o){const[i,s]=h.useState(),a=$r(o?`${o}-label`:void 0),u=e??t??i;return Le(()=>{const c=e||t||!r?void 0:Zre(n.current,a);i!==c&&s(c)}),u}function Zre(e,t){const n=Qre(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Qre(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const o=e.nextElementSibling;if(o&&o.htmlFor===n)return o}const r=e.labels;return r&&r[0]}const hx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(hx.displayName="CheckboxGroupContext");function Jre(e=!0){const t=h.useContext(hx);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.":zt(3));return t}const gx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(gx.displayName="CheckboxRootContext");function eoe(){const e=h.useContext(gx);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.":zt(14));return e}const yA="data-parent",vx=h.forwardRef(function(t,n){const{checked:r,className:o,defaultChecked:i=!1,"aria-labelledby":s,disabled:a=!1,form:u,id:c,indeterminate:f=!1,inputRef:p,name:m,onCheckedChange:b,parent:y=!1,readOnly:v=!1,render:E,required:x=!1,uncheckedValue:R,value:P,nativeButton:O=!1,style:S,...T}=t,{clearErrors:_}=mx(),{disabled:$,name:V,setDirty:U,setFilled:A,setFocused:H,setTouched:F,state:N,validationMode:j,validityData:I,shouldValidateOnChange:k,validation:q}=_d(),z=Xre(),{labelId:W,controlId:te,registerControlId:X,getDescriptionProps:Q}=Xm(),re=Jre(),ce=re?.parent,se=ce&&re.allValues,ee=$||z.disabled||re?.disabled||a,de=V??m,K=P??de,ue=$r(),le=$r();let Z=te;se?Z=y?le:`${ce.id}-${K}`:c&&(Z=c);let xe={};se&&(y?xe=re.parent.getParentProps():K&&(xe=re.parent.getChildProps(K)));const Re=He(b),{checked:Ae=r,indeterminate:Se=f,onCheckedChange:Oe,...Ye}=xe,Fe=re?.value,G=re?.setValue,J=re?.defaultValue,ie=h.useRef(null),fe=Hn(()=>Symbol("checkbox-control")),pe=h.useRef(!1),{getButtonProps:ge,buttonRef:Ee}=ga({disabled:ee,native:O}),Pe=re?.validation??q,[Ne,st]=fx({controlled:K&&Fe&&!y?Fe.includes(K):Ae,default:K&&J&&!y?J.includes(K):i,name:"Checkbox",state:"checked"});Le(()=>{X!==At&&(pe.current=!0,X(fe.current,Z))},[Z,re,X,y,fe]),h.useEffect(()=>{const tt=fe.current;return()=>{!pe.current||X===At||(pe.current=!1,X(tt,void 0))}},[X,fe]),px(ie,{enabled:!re,id:ue,value:Ne});const ut=h.useRef(null),wt=la(p,ut,Pe.inputRef),dt=bA(s,W,ut,!O,Z??void 0);Le(()=>{ut.current&&(ut.current.indeterminate=Se,Ne&&A(!0))},[Ne,Se,A]),Nm(Ne,()=>{re&&!y||(_(de),A(Ne),U(Ne!==I.initialValue),k()?Pe.commit(Ne):Pe.commit(Ne,!0))});const Nt=pa({checked:Ne,disabled:ee,form:u,name:y?void 0:de,id:O?void 0:Z??void 0,required:x,ref:wt,style:de?W_:pd,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(tt){if(tt.nativeEvent.defaultPrevented)return;if(v){tt.preventDefault();return}const Jt=tt.currentTarget.checked,Ft=pt(Sm,tt.nativeEvent);if(Oe?.(Jt,Ft),Re(Jt,Ft),!Ft.isCanceled&&(st(Jt),K&&Fe&&G&&!y&&!se)){const Dn=Jt?[...Fe,K]:Fe.filter(Rn=>Rn!==K);G(Dn,Ft)}},onFocus(){ie.current?.focus()}},P!==void 0?{value:(re?Ne&&P:P)||""}:yn,Q,re?Pe.getValidationProps:Pe.getInputValidationProps),Yt=se?!!Ae:Ne,un=se&&Se||f;h.useEffect(()=>{if(!ce||!K)return;const tt=ce.disabledStatesRef.current;return tt.set(K,ee),()=>{tt.delete(K)}},[ce,ee,K]);const mn=h.useMemo(()=>({...N,checked:Yt,disabled:ee,readOnly:v,required:x,indeterminate:un}),[N,Yt,ee,v,x,un]),$n=pA(mn),nt=lt("span",t,{state:mn,ref:[Ee,ie,n,re?.registerControlRef],props:[{id:O?Z??void 0:ue,role:"checkbox","aria-checked":Se?"mixed":Ne,"aria-readonly":v||void 0,"aria-required":x||void 0,"aria-labelledby":dt,[yA]:y?"":void 0,onFocus(){H(!0)},onBlur(){const tt=ut.current;tt&&(F(!0),H(!1),j==="onBlur"&&Pe.commit(re?Fe:tt.checked))},onClick(tt){v||ee||(tt.preventDefault(),ut.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:tt.shiftKey,ctrlKey:tt.ctrlKey,altKey:tt.altKey,metaKey:tt.metaKey})))}},Q,Pe.getValidationProps,T,Ye,ge],stateAttributesMapping:$n});return w.jsxs(gx.Provider,{value:mn,children:[nt,!Ne&&!re&&de&&!y&&R!==void 0&&w.jsx("input",{type:"hidden",form:u,name:de,value:R}),w.jsx("input",{...Nt,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!=="production"&&(vx.displayName="CheckboxRoot");const bx=h.forwardRef(function(t,n){const{render:r,className:o,style:i,keepMounted:s=!1,...a}=t,u=eoe(),c=u.checked||u.indeterminate,{mounted:f,transitionStatus:p,setMounted:m}=yy(c),b=h.useRef(null),y={...u,transitionStatus:p};ma({open:c,ref:b,onComplete(){c||m(!1)}});const v=pA(u),E=h.useMemo(()=>({...v,...xs,...Ym}),[v]),x=s||f,R=lt("span",t,{ref:[n,b],state:y,stateAttributesMapping:E,props:a});return x?R:null});process.env.NODE_ENV!=="production"&&(bx.displayName="CheckboxIndicator");const toe=Object.freeze(Object.defineProperty({__proto__:null,Indicator:bx,Root:vx},Symbol.toStringTag,{value:"Module"}));function noe(e){return lt(e.defaultTagName??"div",e,e)}const yx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(yx.displayName="TooltipRootContext");function Ea(e){const t=h.useContext(yx);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.":zt(72));return t}const roe={...VO,disabled:je(e=>e.disabled),instantType:je(e=>e.instantType),isInstantPhase:je(e=>e.isInstantPhase),trackCursorAxis:je(e=>e.trackCursorAxis),disableHoverablePopup:je(e=>e.disableHoverablePopup),lastOpenChangeReason:je(e=>e.openChangeReason),closeOnClick:je(e=>e.closeOnClick),closeDelay:je(e=>e.closeDelay),hasViewport:je(e=>e.hasViewport)};class Zm extends Mm{constructor(t){super({...ooe(),...t},{popupRef:h.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Am},roe)}setOpen=(t,n)=>{const r=n.reason,o=r===Cr,i=t&&r===wp,s=!t&&(r===Jc||r===iy);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);const a=()=>{const u={open:t,openChangeReason:r};i?u.instantType="focus":s?u.instantType="dismiss":r===Cr&&(u.instantType=void 0);const c=n.trigger?.id??null;(c||t)&&(u.activeTriggerId=c,u.activeTriggerElement=n.trigger??null),this.update(u)};o?er.flushSync(a):a()};static useStore(t,n){const r=Hn(()=>new Zm(n)).current,o=t??r,i=HO({popupStore:o,onOpenChange:o.setOpen});return o.state.floatingRootContext=i,o}}function ooe(){return{...BO(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}const xx=kO(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:o,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:u,onOpenChangeComplete:c,handle:f,triggerId:p,defaultTriggerId:m=null,children:b}=t,y=Zm.useStore(f?.store,{open:r,openProp:o,activeTriggerId:m,triggerIdProp:p});sV(()=>{o===void 0&&y.state.open===!1&&r===!0&&y.update({open:!0,activeTriggerId:m})}),y.useControlledProp("openProp",o),y.useControlledProp("triggerIdProp",p),y.useContextCallback("onOpenChange",u),y.useContextCallback("onOpenChangeComplete",c);const v=y.useState("open"),E=!n&&v,x=y.useState("activeTriggerId"),R=y.useState("payload");y.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i}),Le(()=>{v&&n&&y.setOpen(!1,pt(jV))},[v,n,y]),y.useSyncedValue("disabled",n),qO(y);const{forceUnmount:P,transitionStatus:O}=jO(E,y),S=y.select("floatingRootContext"),T=y.useState("isInstantPhase"),_=y.useState("instantType"),$=y.useState("lastOpenChangeReason"),V=h.useRef(null);Le(()=>{O==="ending"&&$===Sm||O!=="ending"&&T?(_!=="delay"&&(V.current=_),y.set("instantType","delay")):V.current!==null&&(y.set("instantType",V.current),V.current=null)},[O,T,$,_,y]),Le(()=>{E&&x==null&&y.set("payload",void 0)},[y,x,E]);const U=h.useCallback(()=>{y.setOpen(!1,ioe(y,os))},[y]);h.useImperativeHandle(a,()=>({unmount:P,close:U}),[P,U]);const A=vO(S,{enabled:!n,referencePress:()=>y.select("closeOnClick")}),H=q7(S,{enabled:!n&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:F,getFloatingProps:N,getTriggerProps:j}=Ey([A,H]),I=h.useMemo(()=>F(),[F]),k=h.useMemo(()=>j(),[j]),q=h.useMemo(()=>N(),[N]);return y.useSyncedValues({activeTriggerProps:I,inactiveTriggerProps:k,popupProps:q}),w.jsx(yx.Provider,{value:y,children:typeof b=="function"?b({payload:R}):b})});process.env.NODE_ENV!=="production"&&(xx.displayName="TooltipRoot");function ioe(e,t){const n=pt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const wx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(wx.displayName="TooltipProviderContext");function soe(){return h.useContext(wx)}let aoe=(function(e){return e[e.popupOpen=YO.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const loe=600,Ex=e8(function(t,n){const{className:r,render:o,handle:i,payload:s,disabled:a,delay:u,closeOnClick:c=!0,closeDelay:f,id:p,style:m,...b}=t,y=Ea(!0),v=i?.store??y;if(!v)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.":zt(82));const E=$r(p),x=v.useState("isTriggerActive",E),R=v.useState("isOpenedByTrigger",E),P=v.useState("floatingRootContext"),O=h.useRef(null),S=u??loe,T=f??0,{registerTrigger:_,isMountedByThisTrigger:$}=LO(E,O,v,{payload:s,closeOnClick:c,closeDelay:T}),V=soe(),{delayRef:U,isInstantPhase:A,hasProvider:H}=VV(P,{open:R});v.useSyncedValue("isInstantPhase",A);const F=v.useState("disabled"),N=a??F,j=v.useState("trackCursorAxis"),I=v.useState("disableHoverablePopup"),k=v8(P,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!I&&j!=="both"?E8():null,restMs(){const X=V?.delay,Q=typeof U.current=="object"?U.current.open:void 0;let re=S;return H&&(Q!==0?re=u??X??S:re=0),re},delay(){const X=typeof U.current=="object"?U.current.close:void 0;let Q=T;return f==null&&H&&(Q=X),{close:Q}},triggerElementRef:O,isActiveTrigger:x,isClosing:()=>v.select("transitionStatus")==="ending"}),q=m8(P,{enabled:!N}).reference,z={open:R},W=v.useState("triggerProps",$);return lt("button",t,{state:z,ref:[n,_,O],props:[k,q,W,{onPointerDown(){v.set("closeOnClick",c)},id:E,[aoe.triggerDisabled]:N?"":void 0},b],stateAttributesMapping:XO})});process.env.NODE_ENV!=="production"&&(Ex.displayName="TooltipTrigger");const Cx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cx.displayName="TooltipPortalContext");function uoe(){const e=h.useContext(Cx);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Portal> is missing.":zt(70));return e}const Rx=h.forwardRef(function(t,n){const{children:r,container:o,className:i,render:s,style:a,...u}=t,{portalNode:c,portalSubtree:f}=pO({container:o,ref:n,componentProps:t,elementProps:u});return!f&&!c?null:w.jsxs(h.Fragment,{children:[f,c&&er.createPortal(r,c)]})});process.env.NODE_ENV!=="production"&&(Rx.displayName="FloatingPortalLite");const Sx=h.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t;return Ea().useState("mounted")||r?w.jsx(Cx.Provider,{value:r,children:w.jsx(Rx,{ref:n,...o})}):null});process.env.NODE_ENV!=="production"&&(Sx.displayName="TooltipPortal");const Px=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Px.displayName="TooltipPositionerContext");function Tx(){const e=h.useContext(Px);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.":zt(71));return e}const xA=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(xA.displayName="DirectionContext");function wA(){return h.useContext(xA)?.direction??"ltr"}const coe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:f=0,offsetParent:p="real"}=mo(e,t)||{};if(c==null)return{};const m=ly(f),b={x:n,y:r},y=_m(o),v=Tm(y),E=await s.getDimensions(c),x=y==="y",R=x?"top":"left",P=x?"bottom":"right",O=x?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[y]-b[y]-i.floating[v],T=b[y]-i.reference[y],_=p==="real"?await s.getOffsetParent?.(c):a.floating;let $=a.floating[O]||i.floating[v];(!$||!await s.isElement?.(_))&&($=a.floating[O]||i.floating[v]);const V=S/2-T/2,U=$/2-E[v]/2-1,A=Math.min(m[R],U),H=Math.min(m[P],U),F=A,N=$-E[v]-H,j=$/2-E[v]/2+V,I=kp(F,j,N),k=!u.arrow&&Uo(o)!=null&&j!==I&&i.reference[v]/2-(j<F?A:H)-E[v]/2<0,q=k?j<F?j-F:j-N:0;return{[y]:b[y]+q,data:{[y]:I,centerOffset:j-I-q,...k&&{alignmentOffset:q}},reset:k}}}),doe=(e,t)=>({...coe(e),options:[e,t]}),foe={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await MO().fn(e)).data?.referenceHidden||i}}}},_p={sideX:"left",sideY:"top"},poe={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:s,placement:a}=e,u=Vt(o),c=u.getComputedStyle(o);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:n,data:_p};const p=await i.getOffsetParent?.(o);let m={width:0,height:0};if(s==="fixed"&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(p===u){const R=ct(o);m={width:R.documentElement.clientWidth,height:R.documentElement.clientHeight}}else await i.isElement?.(p)&&(m=await i.getDimensions(p));const b=Qn(a);let y=t,v=n;b==="left"&&(y=m.width-(t+r.width)),b==="top"&&(v=m.height-(n+r.height));const E=b==="left"?"right":_p.sideX,x=b==="top"?"bottom":_p.sideY;return{x:y,y:v,data:{sideX:E,sideY:x}}}};function EA(e,t,n){const 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 pT(e,t,n){const{rects:r,placement:o}=e;return{side:EA(t,Qn(o),n),align:Uo(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function CA(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:u=5,sticky:c=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,keepMounted:m=!1,floatingRootContext:b,mounted:y,collisionAvoidance:v,shiftCrossAxis:E=!1,nodeId:x,adaptiveOrigin:R,lazyFlip:P=!1,externalTree:O}=e,[S,T]=h.useState(null);!y&&S!==null&&T(null);const _=v.side||"flip",$=v.align||"flip",V=v.fallbackAxisSide||"end",U=typeof t=="function"?t:void 0,A=He(U),H=U?A:t,F=cr(t),N=cr(y),I=wA()==="rtl",k=S||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":I?"left":"right","inline-start":I?"right":"left"}[r],q=i==="center"?k:`${k}-${i}`;let z=u;const W=1,te=r==="bottom"?W:0,X=r==="top"?W:0,Q=r==="right"?W:0,re=r==="left"?W:0;typeof z=="number"?z={top:z+te,right:z+re,bottom:z+X,left:z+Q}:z&&(z={top:(z.top||0)+te,right:(z.right||0)+re,bottom:(z.bottom||0)+X,left:(z.left||0)+Q});const ce={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:z},se=h.useRef(null),ee=cr(o),de=cr(s),le=[TO(nt=>{const tt=pT(nt,r,I),Jt=typeof ee.current=="function"?ee.current(tt):ee.current,Ft=typeof de.current=="function"?de.current(tt):de.current;return{mainAxis:Jt,crossAxis:Ft,alignmentAxis:Ft}},[typeof o!="function"?o:0,typeof s!="function"?s:0,I,r])],Z=$==="none"&&_!=="shift",xe=!Z&&(c||E||_==="shift"),Re=_==="none"?null:$O({...ce,padding:{top:z.top+W,right:z.right+W,bottom:z.bottom+W,left:z.left+W},mainAxis:!E&&_==="flip",crossAxis:$==="flip"?"alignment":!1,fallbackAxisSideDirection:V}),Ae=Z?null:_O(nt=>{const tt=ct(nt.elements.floating).documentElement;return{...ce,rootBoundary:E?{x:0,y:0,width:tt.clientWidth,height:tt.clientHeight}:void 0,mainAxis:$!=="none",crossAxis:xe,limiter:c||E?void 0:OO(Jt=>{if(!se.current)return{};const{width:Ft,height:Dn}=se.current.getBoundingClientRect(),Rn=Pr(Qn(Jt.placement)),Ar=Rn==="y"?Ft:Dn,Zr=Rn==="y"?z.left+z.right:z.top+z.bottom;return{offset:Ar/2+Zr/2}})}},[ce,c,E,z,$]);_==="shift"||$==="shift"||i==="center"?le.push(Ae,Re):le.push(Re,Ae),le.push(DO({...ce,apply({elements:{floating:nt},availableWidth:tt,availableHeight:Jt,rects:Ft}){if(!N.current)return;const Dn=nt.style;Dn.setProperty("--available-width",`${tt}px`),Dn.setProperty("--available-height",`${Jt}px`);const Rn=Vt(nt).devicePixelRatio||1,{x:Ar,y:Zr,width:Zo,height:Ce}=Ft.reference,Ni=(Math.round((Ar+Zo)*Rn)-Math.round(Ar*Rn))/Rn,Ii=(Math.round((Zr+Ce)*Rn)-Math.round(Zr*Rn))/Rn;Dn.setProperty("--anchor-width",`${Ni}px`),Dn.setProperty("--anchor-height",`${Ii}px`)}}),doe(()=>({element:se.current||ct(se.current).createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(nt){const{elements:tt,middlewareData:Jt,placement:Ft,rects:Dn,y:Rn}=nt,Ar=Qn(Ft),Zr=Pr(Ar),Zo=se.current,Ce=Jt.arrow?.x||0,Ni=Jt.arrow?.y||0,Ii=Zo?.clientWidth||0,Qo=Zo?.clientHeight||0,ki=Ce+Ii/2,Ud=Ni+Qo/2,_a=Math.abs(Jt.shift?.y||0),wh=Dn.reference.height/2,Fi=typeof o=="function"?o(pT(nt,r,I)):o,Eh=_a>Fi,Ch={top:`${ki}px calc(100% + ${Fi}px)`,bottom:`${ki}px ${-Fi}px`,left:`calc(100% + ${Fi}px) ${Ud}px`,right:`${-Fi}px ${Ud}px`}[Ar],Rh=`${ki}px ${Dn.reference.y+wh-Rn}px`;return tt.floating.style.setProperty("--transform-origin",xe&&Zr==="y"&&Eh?Rh:Ch),{}}},foe,R),Le(()=>{!y&&b&&b.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[y,b]);const Se=h.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Oe,elements:Ye,x:Fe,y:G,middlewareData:J,update:ie,placement:fe,context:pe,isPositioned:ge,floatingStyles:Ee}=p8({rootContext:b,open:m?y:void 0,placement:q,middleware:le,strategy:n,whileElementsMounted:m?void 0:(...nt)=>Gv(...nt,Se),nodeId:x,externalTree:O}),{sideX:Pe,sideY:Ne}=J.adaptiveOrigin||_p,st=ge?n:"fixed",ut=h.useMemo(()=>{const nt=R?{position:st,[Pe]:Fe,[Ne]:G}:{position:st,...Ee};return ge||(nt.opacity=0),nt},[R,st,Pe,Fe,Ne,G,Ee,ge]),wt=h.useRef(null);Le(()=>{if(!y)return;const nt=F.current,tt=typeof nt=="function"?nt():nt,Ft=(mT(tt)?tt.current:tt)||null||null;Ft!==wt.current&&(Oe.setPositionReference(Ft),wt.current=Ft)},[y,Oe,H,F]),h.useEffect(()=>{if(!y)return;const nt=F.current;typeof nt!="function"&&mT(nt)&&nt.current!==wt.current&&(Oe.setPositionReference(nt.current),wt.current=nt.current)},[y,Oe,H,F]),h.useEffect(()=>{if(m&&y&&Ye.domReference&&Ye.floating)return Gv(Ye.domReference,Ye.floating,ie,Se)},[m,y,Ye,ie,Se]);const dt=Qn(fe),Nt=EA(r,dt,I),Yt=Uo(fe)||"center",un=!!J.hide?.referenceHidden;Le(()=>{P&&y&&ge&&T(dt)},[P,y,ge,dt]);const mn=h.useMemo(()=>({position:"absolute",top:J.arrow?.y,left:J.arrow?.x}),[J.arrow]),$n=J.arrow?.centerOffset!==0;return h.useMemo(()=>({positionerStyles:ut,arrowStyles:mn,arrowRef:se,arrowUncentered:$n,side:Nt,align:Yt,physicalSide:dt,anchorHidden:un,refs:Oe,context:pe,isPositioned:ge,update:ie}),[ut,mn,se,$n,Nt,Yt,dt,un,Oe,pe,ge,ie])}function mT(e){return e!=null&&"current"in e}function RA(e){return e==="starting"?AV:yn}function SA(e,t,{styles:n,transitionStatus:r,props:o,refs:i,hidden:s,inert:a=!1}){const u={...n};return a&&(u.pointerEvents="none"),lt("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:u},RA(r),o],stateAttributesMapping:ha})}const _x=h.forwardRef(function(t,n){const{render:r,className:o,anchor:i,positionMethod:s="absolute",side:a="top",align:u="center",sideOffset:c=0,alignOffset:f=0,collisionBoundary:p="clipping-ancestors",collisionPadding:m=5,arrowPadding:b=5,sticky:y=!1,disableAnchorTracking:v=!1,collisionAvoidance:E=q_,style:x,...R}=t,P=Ea(),O=uoe(),S=P.useState("open"),T=P.useState("mounted"),_=P.useState("trackCursorAxis"),$=P.useState("disableHoverablePopup"),V=P.useState("floatingRootContext"),U=P.useState("instantType"),A=P.useState("transitionStatus"),H=P.useState("hasViewport"),F=CA({anchor:i,positionMethod:s,floatingRootContext:V,mounted:T,side:a,sideOffset:c,align:u,alignOffset:f,collisionBoundary:p,collisionPadding:m,sticky:y,arrowPadding:b,disableAnchorTracking:v,keepMounted:O,collisionAvoidance:E,adaptiveOrigin:H?poe:void 0}),N=h.useMemo(()=>({open:S,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:_!=="none"?"tracking-cursor":U}),[S,F.side,F.align,F.anchorHidden,_,U]),j=SA(t,N,{styles:F.positionerStyles,transitionStatus:A,props:R,refs:[n,P.useStateSetter("positionerElement")],hidden:!T,inert:!S||_==="both"||$});return w.jsx(Px.Provider,{value:F,children:j})});process.env.NODE_ENV!=="production"&&(_x.displayName="TooltipPositioner");const moe={...ha,...xs},Ox=h.forwardRef(function(t,n){const{className:r,render:o,style:i,...s}=t,a=Ea(),{side:u,align:c}=Tx(),f=a.useState("open"),p=a.useState("instantType"),m=a.useState("transitionStatus"),b=a.useState("popupProps"),y=a.useState("floatingRootContext");ma({open:f,ref:a.context.popupRef,onComplete(){f&&a.context.onOpenChangeComplete?.(!0)}});const v=a.useState("disabled"),E=a.useState("closeDelay");return h8(y,{enabled:!v,closeDelay:E}),lt("div",t,{state:{open:f,side:u,align:c,instant:p,transitionStatus:m},ref:[n,a.context.popupRef,a.useStateSetter("popupElement")],props:[b,RA(m),s],stateAttributesMapping:moe})});process.env.NODE_ENV!=="production"&&(Ox.displayName="TooltipPopup");const $x=h.forwardRef(function(t,n){const{className:r,render:o,style:i,...s}=t,a=Ea(),u=a.useState("open"),c=a.useState("instantType"),{arrowRef:f,side:p,align:m,arrowUncentered:b,arrowStyles:y}=Tx();return lt("div",t,{state:{open:u,side:p,align:m,uncentered:b,instant:c},ref:[n,f],props:[{style:y,"aria-hidden":!0},s],stateAttributesMapping:ha})});process.env.NODE_ENV!=="production"&&($x.displayName="TooltipArrow");const Dx=function(t){const{delay:n,closeDelay:r,timeout:o=400}=t,i=h.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),s=h.useMemo(()=>({open:n,close:r}),[n,r]);return w.jsx(wx.Provider,{value:i,children:w.jsx(BV,{delay:s,timeoutMs:o,children:t.children})})};process.env.NODE_ENV!=="production"&&(Dx.displayName="TooltipProvider");let hoe=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});function goe(e){const[t,n]=h.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function hT(e){const t=Jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r;return(ua(n)!==i||ua(r)!==s)&&(n=i,r=s),{width:n,height:r}}const voe=()=>!0;function boe(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=voe,onMeasureLayout:s,onMeasureLayoutComplete:a,side:u,direction:c}=e,f=xy(t,!0,!1),p=fd(),m=h.useRef(null),b=h.useRef(null),y=h.useRef(!0),v=h.useRef(At),E=He(s),x=He(a),R=h.useMemo(()=>{let P=u==="top",O=u==="left";return c==="rtl"?(P=P||u==="inline-end",O=O||u==="inline-end"):(P=P||u==="inline-start",O=O||u==="inline-start"),P?{position:"absolute",[u==="top"?"bottom":"top"]:"0",[O?"right":"left"]:"0"}:yn},[u,c]);Le(()=>{if(!o||!i()||typeof ResizeObserver!="function"){v.current=At,y.current=!0,m.current=null,b.current=null;return}if(!t||!n)return;v.current=gT(t,R);const P=new ResizeObserver(F=>{const N=F[0];N&&(b.current={width:Math.ceil(N.borderBoxSize[0].inlineSize),height:Math.ceil(N.borderBoxSize[0].blockSize)})});P.observe(t),pp(t,"auto");const O=Op(t,"position","static"),S=Op(t,"transform","none"),T=Op(t,"scale","1"),_=gT(n,{"--available-width":"max-content","--available-height":"max-content"});function $(){O(),S(),_()}function V(){$(),T()}if(E?.(),y.current||m.current===null){Ac(n,"max-content");const F=hT(t);return m.current=F,Ac(n,F),V(),x?.(null,F),y.current=!1,()=>{P.disconnect(),v.current(),v.current=At}}pp(t,"auto"),Ac(n,"max-content");const U=m.current??b.current,A=hT(t);if(m.current=A,!U)return Ac(n,A),V(),x?.(null,A),()=>{P.disconnect(),p.cancel(),v.current(),v.current=At};pp(t,U),V(),x?.(U,A),Ac(n,A);const H=new AbortController;return p.request(()=>{pp(t,A),f(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},H.signal)}),()=>{P.disconnect(),H.abort(),p.cancel(),v.current(),v.current=At}},[r,t,n,f,p,i,o,E,x,R])}function Op(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function gT(e,t){const n=[];for(const[r,o]of Object.entries(t))n.push(Op(e,r,o));return n.length?()=>{n.forEach(r=>r())}:At}function pp(e,t){const 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 Ac(e,t){const 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)}function yoe(e){const{store:t,side:n,cssVars:r,children:o}=e,i=wA(),s=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),u=t.useState("open"),c=t.useState("payload"),f=t.useState("mounted"),p=t.useState("popupElement"),m=t.useState("positionerElement"),b=goe(u?s:null),y=Eoe(a,c),v=h.useRef(null),[E,x]=h.useState(null),[R,P]=h.useState(null),O=h.useRef(null),S=h.useRef(null),T=xy(O,!0,!1),_=fd(),[$,V]=h.useState(null),[U,A]=h.useState(!1);Le(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);const H=He(()=>{O.current?.style.setProperty("animation","none"),O.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),F=He(q=>{O.current?.style.removeProperty("animation"),O.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),q&&V(q)}),N=h.useRef(null);Le(()=>{if(s&&b&&s!==b&&N.current!==s&&v.current){x(v.current),A(!0);const q=woe(b,s);P(q),_.request(()=>{er.flushSync(()=>{A(!1)}),T(()=>{x(null),V(null),v.current=null})}),N.current=s}},[s,b,E,T,_]),Le(()=>{const q=O.current;if(!q)return;const z=ct(q).createElement("div");for(const W of Array.from(q.childNodes))z.appendChild(W.cloneNode(!0));v.current=z});const j=E!=null;let I;j?I=w.jsxs(h.Fragment,{children:[w.jsx("div",{"data-previous":!0,inert:Oy(!0),ref:S,style:{...$?{[r.popupWidth]:`${$.width}px`,[r.popupHeight]:`${$.height}px`}:null,position:"absolute"},"data-ending-style":U?void 0:""},"previous"),w.jsx("div",{"data-current":!0,ref:O,"data-starting-style":U?"":void 0,children:o},y)]}):I=w.jsx("div",{"data-current":!0,ref:O,children:o},y),Le(()=>{const q=S.current;!q||!E||q.replaceChildren(...Array.from(E.childNodes))},[E]),boe({popupElement:p,positionerElement:m,mounted:f,content:c,onMeasureLayout:H,onMeasureLayoutComplete:F,side:n,direction:i});const k={activationDirection:xoe(R),transitioning:j};return{children:I,state:k}}function xoe(e){if(e)return`${vT(e.horizontal,5,"right","left")} ${vT(e.vertical,5,"down","up")}`}function vT(e,t,n,r){return e>t?n:e<-t?r:""}function woe(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o={x:n.left+n.width/2,y:n.top+n.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-o.x,vertical:i.y-o.y}}function Eoe(e,t){const[n,r]=h.useState(0),o=h.useRef(e),i=h.useRef(t),s=h.useRef(!1);return Le(()=>{const a=o.current,u=i.current,c=e!==a,f=t!==u;c?(r(p=>p+1),s.current=!f):s.current&&f&&(r(p=>p+1),s.current=!1),o.current=e,i.current=t},[e,t]),`${e??"current"}-${n}`}const Coe={activationDirection:e=>e?{"data-activation-direction":e}:null},PA=h.forwardRef(function(t,n){const{render:r,className:o,style:i,children:s,...a}=t,u=Ea(),c=Tx(),f=u.useState("instantType"),{children:p,state:m}=yoe({store:u,side:c.side,cssVars:hoe,children:s}),b={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:f};return lt("div",t,{state:b,ref:n,props:[a,{children:p}],stateAttributesMapping:Coe})});process.env.NODE_ENV!=="production"&&(PA.displayName="TooltipViewport");class TA{constructor(){this.store=new Zm}open(t){const n=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!n)throw new Error(process.env.NODE_ENV!=="production"?`Base UI: TooltipHandle.open: No trigger found with id "${t}".`:zt(81,t));this.store.setOpen(!0,pt(os,void 0,n))}close(){this.store.setOpen(!1,pt(os,void 0,void 0))}get isOpen(){return this.store.state.open}}function Roe(){return new TA}const Soe=Object.freeze(Object.defineProperty({__proto__:null,Arrow:$x,Handle:TA,Popup:Ox,Portal:Sx,Positioner:_x,Provider:Dx,Root:xx,Trigger:Ex,Viewport:PA,createHandle:Roe},Symbol.toStringTag,{value:"Module"}));function Poe(e){return w.jsx("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...e,children:w.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",fill:"currentColor"})})}function _A(e){return w.jsx(Dx,{...e})}function OA(e){return w.jsx(xx,{...e})}function $A({className:e,...t}){return w.jsx(Ex,{"data-slot":"tooltip-trigger",className:me(e),...t})}function DA({className:e,...t}){return w.jsx(Ox,{"data-slot":"tooltip-popup",className:me("z-50 flex origin-[var(--transform-origin)] flex-col rounded-md bg-popover px-2.5 py-1.5 text-xs text-popover-foreground drop-shadow-md","transition-[scale,opacity] duration-150 ease-out","data-starting-style:scale-98 data-starting-style:opacity-0","data-ending-style:scale-98 data-ending-style:opacity-0","data-instant:duration-0",e),...t})}function MA({className:e,...t}){return w.jsx($x,{"data-slot":"tooltip-arrow",className:me("flex text-popover","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",e),...t,children:w.jsx(Poe,{})})}function AA({content:e,children:t,open:n,defaultOpen:r,onOpenChange:o,side:i="top",align:s,offset:a=10,delay:u,closeDelay:c,className:f,arrowClassName:p,...m}){return w.jsxs(OA,{open:n,defaultOpen:r,onOpenChange:o,children:[w.jsx($A,{delay:u,closeDelay:c,render:t,...m}),w.jsx(Sx,{children:w.jsx(_x,{side:i,align:s,sideOffset:a,children:w.jsxs(DA,{className:f,children:[w.jsx(MA,{className:p}),e]})})})]})}function Od({className:e,render:t,required:n,tooltip:r,children:o,...i}){const s=n||r?w.jsxs(w.Fragment,{children:[o,n&&w.jsx("span",{"aria-hidden":!0,className:"text-error",children:"*"}),r&&w.jsx(AA,{content:r,children:w.jsx("button",{type:"button","aria-label":"More information",className:"inline-flex cursor-default items-center text-muted-foreground hover:text-foreground transition-all ml-1",children:w.jsx(D$,{className:"size-3.5"})})})]}):o,a={className:me("inline-flex items-center font-medium text-sm leading-none","peer-data-disabled:cursor-not-allowed peer-data-disabled:opacity-70",e),"data-slot":"label",children:s};return noe({defaultTagName:"label",props:pa(a,i),render:t})}function NA({className:e,...t}){return w.jsx(vx,{className:me("peer relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-[.25rem] border border-input bg-background not-dark:bg-clip-padding shadow-xs/5 outline-none ring-ring transition-shadow","before:pointer-events-none before:absolute before:inset-0 before:rounded-[3px]","not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]","focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-background","aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48","data-disabled:cursor-not-allowed data-disabled:opacity-64","sm:size-4","dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]","[[data-disabled],[data-checked],[aria-invalid]]:shadow-none",e),"data-slot":"checkbox",...t})}function IA({className:e,...t}){return w.jsx(bx,{className:me("absolute -inset-px flex items-center justify-center rounded-[.25rem] text-primary-foreground","data-unchecked:hidden data-checked:bg-primary data-indeterminate:text-foreground",e),"data-slot":"checkbox-indicator",render:(n,r)=>w.jsx("span",{...n,children:r.indeterminate?w.jsx("svg",{"aria-hidden":"true",className:"size-3.5 sm:size-3",fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M5.252 12h13.496"})}):w.jsx("svg",{"aria-hidden":"true",className:"size-3.5 sm:size-3",fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M5.252 12.7 10.2 18.63 18.748 5.37"})})}),...t})}function Toe({children:e,className:t,id:n,indicatorProps:r,...o}){const i=D.useId(),s=n??i;return w.jsxs("div",{className:"flex select-none items-center gap-x-2",children:[w.jsx(NA,{id:s,className:t,...o,children:w.jsx(IA,{...r})}),e&&w.jsx(Od,{htmlFor:s,children:e})]})}const bT=[];function _oe(e){const{allValues:t=bT,value:n=bT,onValueChange:r}=e,o=h.useRef(n),i=h.useRef(new Map),[s,a]=h.useState("mixed"),u=$r(),c=n.length===t.length,f=n.length!==t.length&&n.length>0,p=He(r),m=h.useCallback(()=>({id:u,indeterminate:f,checked:c,"aria-controls":t.map(y=>`${u}-${y}`).join(" "),onCheckedChange(y,v){const E=o.current,x=t.filter(O=>i.current.get(O)&&E.includes(O)),R=t.filter(O=>!i.current.get(O)||i.current.get(O)&&E.includes(O));if(E.length===R.length||E.length===0){n.length===R.length?p(x,v):p(R,v);return}s==="mixed"?(p(R,v),a("on")):s==="on"?(p(x,v),a("off")):s==="off"&&(p(E,v),a("mixed"))}}),[t,c,u,f,p,s,n.length]),b=h.useCallback(y=>({checked:n.includes(y),onCheckedChange(v,E){const x=n.slice();v?x.push(y):x.splice(x.indexOf(y),1),o.current=x,p(x,E),a("mixed")}}),[p,n]);return h.useMemo(()=>({id:u,indeterminate:f,getParentProps:m,getChildProps:b,disabledStatesRef:i}),[u,f,m,b])}function Ooe(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const kA=h.forwardRef(function(t,n){const{allValues:r,className:o,defaultValue:i,disabled:s=!1,id:a,onValueChange:u,render:c,value:f,style:p,...m}=t,{disabled:b,name:y,state:v,validation:E,setFilled:x,setDirty:R,shouldValidateOnChange:P,validityData:O}=_d(),{labelId:S,getDescriptionProps:T}=Xm(),{clearErrors:_}=mx(),$=b||s,V=h.useMemo(()=>{if(f===void 0)return i??[]},[f,i]),[U,A]=fx({controlled:f,default:V,name:"CheckboxGroup",state:"value"}),H=He((te,X)=>{u?.(te,X),!X.isCanceled&&A(te)}),F=_oe({allValues:r,value:U,onValueChange:H}),N=$r(a),j=h.useRef(null),I=h.useCallback(te=>{j.current==null&&te!=null&&!te.hasAttribute(yA)&&(j.current=te)},[]);px(j,{enabled:!!y,id:N,value:U});const k=U??fC;Nm(k,()=>{y&&_(y);const te=Array.isArray(O.initialValue)?O.initialValue:fC;x(k.length>0),R(!Ooe(k,te)),P()?E.commit(k):E.commit(k,!0)});const q={...v,disabled:$},z=h.useMemo(()=>({allValues:r,value:U,defaultValue:V,setValue:H,parent:F,disabled:$,validation:E,registerControlRef:I}),[r,U,V,H,F,$,E,I]),W=lt("div",t,{state:q,ref:n,props:[{role:"group","aria-labelledby":S},T,m],stateAttributesMapping:Ym});return w.jsx(hx.Provider,{value:z,children:W})});process.env.NODE_ENV!=="production"&&(kA.displayName="CheckboxGroup");function $oe({className:e,...t}){return w.jsx(kA,{className:me("flex flex-col items-start gap-3",e),"data-slot":"checkbox-group",...t})}function Doe({items:e=[],valueKey:t="value",labelKey:n="label",placeholder:r="Seleccionar",searchPlaceholder:o="Buscar...",emptyMessage:i="No se encontraron resultado",searchProps:s,className:a,triggerProps:u,itemProps:c,itemClassName:f,contentProps:p,contentClassName:m,value:b,onChange:y,defaultValue:v,renderOption:E=P=>P?.[n],commandProps:x,...R}){const[P,O]=Kt({prop:R.open,onChange:R.onOpenChange,defaultProp:R.defaultOpen||!1}),[S,T]=Kt({prop:b,onChange:U=>{if(!y)return;const A=e.find(H=>H[t]===U);y?.(A?.[t],A)},defaultProp:v}),[_,$]=Kt({prop:R?.search,defaultProp:R?.searchDefaultValue||"",onChange:R?.onSearchChange}),V=h.useMemo(()=>e.find(U=>U[t]===S),[S]);return w.jsxs(jd,{open:P,onOpenChange:O,"data-slot":"combobox",children:[w.jsx(Bd,{asChild:!0,"data-slot":"combobox-trigger",children:w.jsxs(Tn,{...R,...u,variant:"outline",role:"combobox","aria-expanded":P,className:me("font-normal w-full items-center justify-between border-input px-3 hover:bg-background",a),children:[w.jsx("span",{className:"truncate",children:V?E(V):r}),w.jsx(Gp,{className:"ml-2 h-4 w-4 shrink-0 opacity-50","data-slot":"combobox-trigger-icon"})]})}),w.jsx(Vd,{...p,className:me("p-1",m),asChild:!0,matchTriggerWidth:!0,"data-slot":"combobox-content",children:w.jsxs(Rd,{...x,children:[w.jsx(Vm,{value:_,onValueChange:$,placeholder:o,autoFocus:!0,"data-slot":"combobox-input",...s}),w.jsx(Hm,{"data-slot":"combobox-empty",children:i}),w.jsx(Km,{"data-slot":"combobox-list",children:e.map(U=>D.createElement(nd,{className:f,"data-slot":"combobox-item",...c,key:U[t],value:U[t],onSelect:()=>{const A=U[t];T(A===S?"":A),O(!1)}},E(U)))})]})})]})}const Moe="dd/MM/yyyy",Nc=e=>ps(e)?Cn(e,Moe):"",Aoe=e=>{const t=e.trim();if(!t)return null;const n=/^(\d{1,2})\/(\d{1,2})\/(\d{1,4})$/.exec(t);if(!n)return null;const[,r,o,i]=n,s=Number(r),a=Number(o),u=i;let c=Number(u);if(Number.isNaN(s)||Number.isNaN(a)||Number.isNaN(c)||(u.length<=2&&(c=2e3+c),s<1||s>31||a<1||a>12))return null;const f=new Date(c,a-1,s);return f.getFullYear()!==c||f.getMonth()!==a-1||f.getDate()!==s?null:f},Noe=(e,t)=>{const n=(t.lastKey==="Backspace"||t.lastKey==="Delete")&&e.length<t.previousValue.length,r=e.includes("/"),o=e.trim().endsWith("/");if((e.match(/\//g)??[]).length>=2){const E=e.split("/"),x=(E[0]??"").replace(/\D/g,"").slice(0,2),R=(E[1]??"").replace(/\D/g,"").slice(0,2),P=(E[2]??"").replace(/\D/g,"").slice(0,4);return!x&&!R&&!P?"":`${x}/${R}/${P}`}const s=e.replace(/\D/g,"").slice(0,8);if(!s)return"";if(s.length<=2){let E=s;if(s.length===1&&(r||o)&&!n){let x=Number(E);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),E=x.toString().padStart(2,"0"),E+="/"}else if(s.length===2&&!n){let x=Number(E);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>31&&(x=31),E=x.toString().padStart(2,"0"),E+="/"}return E}const a=s.slice(0,2);let u=Number(a);Number.isNaN(u)&&(u=1),u<1&&(u=1),u>31&&(u=31);const c=u.toString().padStart(2,"0"),f=s.slice(2,4),p=s.slice(4);let m="";if(f.length===0)m="";else if(f.length===1&&p.length===0){const E=o&&!n&&f.length===1;if(f==="0"||f==="1")if(E){let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),m=x.toString().padStart(2,"0")}else m=f;else{let x=Number(f);Number.isNaN(x)&&(x=1),x<1&&(x=1),x>12&&(x=12),m=x.toString().padStart(2,"0")}}else{let E=Number(f);Number.isNaN(E)&&(E=1),E<1&&(E=1),E>12&&(E=12),m=E.toString().padStart(2,"0")}const b=`${c}/${m}`,y=!p&&m.length===2&&!n;return p?`${b}/${p}`:y?`${b}/`:b},Ioe=e=>{const{date:t,onDateChange:n,disabledDate:r}=e,[o,i]=D.useState(""),s=D.useRef(null),a=D.useRef("");D.useEffect(()=>{const y=Nc(t??null);i(y),a.current=y},[t]);const u=()=>{const y=o.trim();if(!y){n(null),i(""),a.current="";return}const v=Aoe(y);if(!v){n(null),i(""),a.current="";return}if(r?.(v)){const x=Nc(t??null);i(x),a.current=x;return}n(v);const E=Nc(v);i(E),a.current=E};return{inputValue:o,handleChange:y=>{const v=y.target.value,E={lastKey:s.current,previousValue:a.current},x=Noe(v,E);i(x),a.current=x},handleBlur:()=>{u()},handleKeyDown:y=>{if(s.current=y.key,y.key==="Enter"){y.preventDefault(),u();return}if(y.key==="Escape"){y.preventDefault();const v=Nc(t??null);i(v),a.current=v}},clear:()=>{n(null),i(""),a.current=""},setFromExternalDate:y=>{n(y);const v=Nc(y??null);i(v),a.current=v}}},koe=(e={})=>{const{disabled:t}=e,[n,r]=D.useState(!1),o=D.useRef(null),i=D.useCallback(s=>{if(!t){if(s.key===" "||s.key==="Spacebar"){s.preventDefault(),r(!0);return}s.key==="Escape"&&(r(!1),requestAnimationFrame(()=>{o.current?.focus()}))}},[t]);return{open:n,setOpen:r,handleInputKeyDown:i,inputRef:o}},Foe=e=>{const{placeholder:t,value:n,onChange:r,defaultValue:o,autoComplete:i,className:s,disabledDate:a,renderFooter:u,disabled:c,hideFooter:f,onBlur:p,...m}=e,[b,y]=Kt({prop:n,onChange:N=>r?.(N??null),defaultProp:o??null}),{inputValue:v,handleChange:E,handleBlur:x,handleKeyDown:R,clear:P,setFromExternalDate:O}=Ioe({date:b??null,onDateChange:N=>y(N),disabledDate:a}),{open:S,setOpen:T,handleInputKeyDown:_,inputRef:$}=koe({disabled:c}),V=N=>{R(N),_(N)},U=()=>{O(null),P()},A=()=>{const N=new Date;a?.(N)||O(N)},H=()=>w.jsxs("span",{className:"flex w-full p-1 justify-between",children:[w.jsx(Tn,{variant:"ghost",onClick:U,children:"Borrar"}),w.jsx(Tn,{variant:"ghost",onClick:A,disabled:a?.(new Date),children:"Hoy"})]}),F=()=>f?null:u?u({mode:"single",value:b,clear:U,selectToday:A,setValue:N=>{const j=N&&ps(N)?N:null;y(j),O(j)}}):H();return w.jsxs(jd,{"data-slot":"date-picker",open:S,onOpenChange:T,children:[w.jsxs("div",{className:me("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 items-center text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",!b&&"text-muted-foreground",s,"field-error"),onClick:N=>{N.target===N.currentTarget&&$.current?.focus()},children:[w.jsx("input",{type:"text",value:v,onChange:E,onBlur:N=>{x(),p?.(N)},onKeyDown:V,placeholder:t??"DD/MM/YYYY",autoComplete:i??"off",disabled:c,className:"flex-1 min-w-0 bg-transparent outline-none text-start truncate pt-px","aria-label":t,ref:$,...m}),w.jsx(Bd,{asChild:!0,"data-slot":"date-picker-trigger",children:w.jsxs("button",{type:"button",disabled:c,className:"flex shrink-0 items-center justify-center text-muted-foreground hover:text-foreground p-1",children:[w.jsx(QK,{"data-slot":"date-picker-icon"}),w.jsx("span",{className:"sr-only",children:"Seleccionar fecha"})]})})]}),w.jsxs(Vd,{className:"w-auto p-0",align:"start","data-slot":"date-picker-content",children:[w.jsx(fA,{className:"border-none",mode:"single",value:b,onChange:N=>{if(!ps(N)){O(null);return}a?.(N)||(O(N),T(!1))},disabled:a}),w.jsx("div",{className:"p-2","data-slot":"date-picker-footer",children:F()})]})]})},FA=e=>{const{className:t,orientation:n="horizontal"}=e;return w.jsx("hr",{...e,"aria-orientation":n,className:me("shrink-0 bg-input",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),"data-slot":"divider"})},Loe=({onDrop:e,onError:t,allowedExtensions:n=[],maxFileSize:r=5*1024*1024,maxFiles:o=1/0})=>{const[i,s]=D.useState(!1),a=D.useCallback(m=>{m.preventDefault(),m.stopPropagation()},[]),u=D.useCallback(m=>{m.preventDefault(),m.stopPropagation(),s(!0)},[]),c=D.useCallback(m=>{m.preventDefault(),m.stopPropagation(),s(!1)},[]),f=m=>{const[b=[],y=[],v=[]]=m.reduce(([E,x,R],P)=>n.length>0&&!n.includes(P.type)?(E.push(P),R.push({file:P,errorMessage:"Extensión no permitida",errorCode:"INVALID_EXTENSION"}),[E,x,R]):P.size>r?(E.push(P),R.push({file:P,errorMessage:"Archivo demasiado grande",errorCode:"FILE_TOO_LARGE"}),[E,x,R]):o&&o<x.length+1?(E.push(P),R.push({file:P,errorMessage:"Límite de archivos excedido",errorCode:"MAX_FILES_EXCEEDED"}),[E,x,R]):(x.push(P),[E,x,R]),[[],[],[]]);return v.length>0&&t&&t(v),[b,y,v]},p=D.useCallback(m=>{m.preventDefault(),m.stopPropagation(),s(!1);const b=Array.from(m.dataTransfer.files),[y=[],v=[]]=f(b);e(v,y)},[n,r,o,e,t]);return{isDragActive:i,validateFiles:f,dropzoneProps:{onDragOver:a,onDragEnter:u,onDragLeave:c,onDrop:p}}},LA=D.createContext(null),Mx=()=>{const e=D.useContext(LA);if(!e)throw new Error("useUploadContext must be used within a UploadContextProvider");return e},qA=({onFileAdd:e,onFileRemove:t,onChangeFiles:n,files:r,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:a,children:u,onError:c,...f})=>{const[p=[],m]=Kt({defaultProp:[],prop:r,onChange:n}),[b,y]=D.useState([]),{isDragActive:v,validateFiles:E,dropzoneProps:x}=Loe({onDrop:(O,S)=>{m([...p,...O]),y(T=>[...T,...S]),e?.(O)},allowedExtensions:i,maxFileSize:s,maxFiles:o,onError:c}),R=O=>{const[S=[],T=[]]=E(O);if(o===1||!a){m(T.slice(0,1)),y([...S,...T.slice(1)]),e?.(T.slice(0,1));return}const _=o-p.length;if(_<=0){y(U=>[...U,...T]),e?.([]);return}const $=T.slice(0,_),V=T.slice(_);m([...p,...$]),y(U=>[...U,...S,...V]),e?.($)},P=(O,S)=>{S==="accepted"?m(p.filter((T,_)=>_!==O)):y(T=>T.filter((_,$)=>$!==O)),t?.(O,S)};return w.jsx(LA.Provider,{value:{files:p,rejectedFiles:b,handleFileAdd:R,handleFileRemove:P,inputProps:{accept:i.join(","),multiple:a},isDragActive:v,dropzoneProps:x},children:w.jsx("div",{...f,"data-slot":"upload",children:u})})},jA=({asChild:e,...t})=>{const{handleFileAdd:n,inputProps:r,dropzoneProps:o,isDragActive:i}=Mx(),s=D.useRef(null),a=e?km:"button";return w.jsxs(w.Fragment,{children:[w.jsx(a,{"data-slot":"upload-trigger",...t,...o,"data-drag-active":i||!1,onClick:u=>{t.onClick?.(u),s.current?.click()}}),w.jsx("input",{type:"file",className:"hidden","data-slot":"upload-input",...r,ref:s,onChange:u=>n(Array.from(u.target.files||[]))})]})},BA=({className:e,...t})=>w.jsx("div",{...t,className:me("mt-2 space-y-2",e),"data-slot":"upload-content"}),VA=({files:e,handleFileRemove:t,fileType:n,children:r,renderFile:o,...i})=>e.length===0?null:w.jsxs("div",{className:"mt-2 space-y-2",...i,"data-slot":"upload-files-list",children:[r,e.map((s,a)=>o?o(s,()=>t(a,n)):w.jsx(WA,{file:s,onRemove:()=>t(a,n)},s.name))]}),KA=e=>{const{files:t,handleFileRemove:n}=Mx();return w.jsx(VA,{"data-slot":"upload-accepted-files",files:t,handleFileRemove:n,fileType:"accepted",...e})},HA=e=>{const{rejectedFiles:t,handleFileRemove:n}=Mx();return w.jsx(VA,{"data-slot":"upload-rejected-files",files:t,handleFileRemove:n,fileType:"rejected",...e})},WA=({file:e,onRemove:t,className:n,renderIcon:r,...o})=>w.jsxs("div",{className:me("flex items-center gap-2 mb-2",n),...o,"data-slot":"upload-item",children:[r?.(e),e.name,w.jsx(Tn,{variant:"ghost",size:"icon",type:"button",className:"h-6 w-6",onClick:t,"data-slot":"upload-item-remove",children:w.jsx(vd,{"data-slot":"upload-item-remove-icon"})})]}),qoe=({onFileAdd:e,onFileRemove:t,onChangeFiles:n=()=>{},files:r,maxFiles:o=1,allowedExtensions:i=[],maxFileSize:s=5*1024*1024,multiple:a,renderAcceptedFile:u,renderRejectedFile:c,showRejected:f=!1,className:p,icon:m=gH,iconSize:b=40,onError:y,...v})=>{const E=D.useMemo(()=>i.map(x=>x.split("/")?.[1]).join(", "),[i]);return w.jsxs(qA,{onFileAdd:e,onFileRemove:t,files:r,onChangeFiles:n,maxFiles:o,allowedExtensions:i,maxFileSize:s,multiple:a?!0:void 0,className:me("w-full",p),onError:y,...v,children:[w.jsx(jA,{asChild:!0,children:w.jsxs("div",{className:me("w-full min-h-[150px] border-2 border-dashed rounded-lg border-muted p-4","hover:bg-muted/50 data-[drag-active=true]:border-primary data-[drag-active=true]:bg-primary/10","transition-colors flex flex-col items-center justify-center gap-4","pointer-events-auto"),children:[w.jsx(m,{className:"text-muted-foreground pointer-events-none",style:{width:b,height:b}}),w.jsxs("div",{className:"text-center text-muted-foreground pointer-events-none",children:[w.jsx("p",{children:"Arrastra y suelta archivos aquí o haz clic para seleccionar"}),i.length>0&&w.jsxs("p",{className:"text-sm",children:["Tipos permitidos: ",E]}),w.jsxs("p",{className:"text-sm",children:["Tamaño máximo: ",Math.floor(s/1024/1024),"MB"]})]})]})}),w.jsxs(BA,{children:[w.jsx(KA,{renderFile:u}),f&&w.jsx(HA,{renderFile:c})]})]})},cn={JPEG:"image/jpeg",JPG:"image/jpg",PNG:"image/png",GIF:"image/gif",WEBP:"image/webp",SVG:"image/svg+xml",PDF:"application/pdf",DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",XLS:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",TXT:"text/plain",CSV:"text/csv",ZIP:"application/zip",RAR:"application/x-rar-compressed",MP3:"audio/mpeg",WAV:"audio/wav",MP4:"video/mp4",WEBM:"video/webm",JSON:"application/json",XML:"application/xml"},joe={IMAGES:[cn.JPEG,cn.JPG,cn.PNG,cn.GIF,cn.WEBP,cn.SVG],DOCUMENTS:[cn.PDF,cn.DOC,cn.DOCX,cn.XLS,cn.XLSX,cn.PPT,cn.PPTX],COMPRESSED:[cn.ZIP,cn.RAR],AUDIO:[cn.MP3,cn.WAV],VIDEO:[cn.MP4,cn.WEBM]},Boe=Oi([],{variants:{size:{sm:"text-[14px]",md:"text-[16px]",lg:"text-[18px]",xl:"text-[20px]","2xl":"text-[24px]","3xl":"text-[28px]","4xl":"text-[32px]","5xl":"text-[36px]","6xl":"text-[40px]"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{size:"xl",weight:"semibold"}}),UA=({className:e,size:t,weight:n,as:r,...o})=>{const i=r||"h2";return w.jsx(i,{className:me(Boe({size:t,weight:n}),e),...o,"data-slot":"heading","data-size":t,"data-weight":n})},Voe=({icon:e=w.jsx(EH,{className:"w-12 h-12"}),title:t="No hay resultados",description:n,className:r,children:o,...i})=>w.jsxs("div",{className:me("flex flex-col gap-2 justify-center items-center",r),"data-slot":"empty-state",...i,children:[w.jsx("div",{className:"text-muted-foreground","data-slot":"empty-state-icon",children:e}),w.jsx(UA,{className:"empty:hidden","data-slot":"empty-state-title",children:t}),w.jsx("p",{className:"py-1 text-sm text-center text-muted-foreground empty:hidden","data-slot":"empty-state-description",children:n}),o]}),Koe=({label:e,labelClassName:t,labelProps:n,error:r,errorClassName:o,errorProps:i,children:s,className:a,...u})=>w.jsxs("div",{...u,className:me("flex flex-col gap-1",a),"data-slot":"field",children:[w.jsx(Od,{className:me("empty:hidden",t),...n,"data-slot":"field-label",children:e}),s,w.jsx("p",{"data-slot":"field-error",className:me("text-sm font-medium text-error empty:hidden",o),...i,children:r})]});var $d=e=>e.type==="checkbox",ts=e=>e instanceof Date,Xn=e=>e==null;const zA=e=>typeof e=="object";var pn=e=>!Xn(e)&&!Array.isArray(e)&&zA(e)&&!ts(e),GA=e=>pn(e)&&e.target?$d(e.target)?e.target.checked:e.target.value:e,Hoe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,YA=(e,t)=>e.has(Hoe(t)),Woe=e=>{const t=e.constructor&&e.constructor.prototype;return pn(t)&&t.hasOwnProperty("isPrototypeOf")},Ax=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ax&&(e instanceof Blob||r))&&(n||pn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Woe(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=bn(e[o]));else return e;return t}var Qm=e=>/^\w*$/.test(e),Zt=e=>e===void 0,Nx=e=>Array.isArray(e)?e.filter(Boolean):[],Ix=e=>Nx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Te=(e,t,n)=>{if(!t||!pn(e))return n;const r=(Qm(t)?[t]:Ix(t)).reduce((o,i)=>Xn(o)?o:o[i],e);return Zt(r)||r===e?Zt(e[t])?n:e[t]:r},lr=e=>typeof e=="boolean",Ct=(e,t,n)=>{let r=-1;const o=Qm(t)?[t]:Ix(t),i=o.length,s=i-1;for(;++r<i;){const a=o[r];let u=n;if(r!==s){const c=e[a];u=pn(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=u,e=e[a]}};const im={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Vr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},No={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},kx=D.createContext(null);kx.displayName="HookFormContext";const Dd=()=>D.useContext(kx),Uoe=e=>{const{children:t,...n}=e;return D.createElement(kx.Provider,{value:n},t)};var XA=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Vr.all&&(t._proxyFormState[s]=!r||Vr.all),n&&(n[s]=!0),e[s]}});return o};const Fx=typeof window<"u"?D.useLayoutEffect:D.useEffect;function zoe(e){const t=Dd(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=D.useState(n._formState),u=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Fx(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:c=>{!r&&a({...n._formState,...c})}}),[o,r,i]),D.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>XA(s,n,u.current,!1),[s,n])}var dr=e=>typeof e=="string",Pb=(e,t,n,r,o)=>dr(e)?(r&&t.watch.add(e),Te(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Te(n,i))):(r&&(t.watchAll=!0),n),Tb=e=>Xn(e)||!zA(e);function Kr(e,t,n=new WeakSet){if(Tb(e)||Tb(t))return Object.is(e,t);if(ts(e)&&ts(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const a=t[i];if(ts(s)&&ts(a)||pn(s)&&pn(a)||Array.isArray(s)&&Array.isArray(a)?!Kr(s,a,n):!Object.is(s,a))return!1}}return!0}function Goe(e){const t=Dd(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:a}=e||{},u=D.useRef(o),c=D.useRef(a),f=D.useRef(void 0),p=D.useRef(n),m=D.useRef(r);c.current=a;const[b,y]=D.useState(()=>{const O=n._getWatch(r,u.current);return c.current?c.current(O):O}),v=D.useCallback(O=>{const S=Pb(r,n._names,O||n._formValues,!1,u.current);return c.current?c.current(S):S},[n._formValues,n._names,r]),E=D.useCallback(O=>{if(!i){const S=Pb(r,n._names,O||n._formValues,!1,u.current);if(c.current){const T=c.current(S);Kr(T,f.current)||(y(T),f.current=T)}else y(S)}},[n._formValues,n._names,i,r]);Fx(()=>((p.current!==n||!Kr(m.current,r))&&(p.current=n,m.current=r,E()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:O=>{E(O.values)}})),[n,s,r,E]),D.useEffect(()=>n._removeUnmounted());const x=p.current!==n,R=m.current,P=D.useMemo(()=>{if(i)return null;const O=!x&&!Kr(R,r);return x||O?v():null},[i,x,r,R,v]);return P!==null?P:b}function Yoe(e){const t=Dd(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s,exact:a=!0}=e,u=YA(o._names.array,n),c=D.useMemo(()=>Te(o._formValues,n,Te(o._defaultValues,n,s)),[o,n,s]),f=Goe({control:o,name:n,defaultValue:c,exact:a}),p=zoe({control:o,name:n,exact:a}),m=D.useRef(e),b=D.useRef(void 0),y=D.useRef(o.register(n,{...e.rules,value:f,...lr(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const v=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Te(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Te(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Te(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Te(p.validatingFields,n)},error:{enumerable:!0,get:()=>Te(p.errors,n)}}),[p,n]),E=D.useCallback(O=>y.current.onChange({target:{value:GA(O),name:n},type:im.CHANGE}),[n]),x=D.useCallback(()=>y.current.onBlur({target:{value:Te(o._formValues,n),name:n},type:im.BLUR}),[n,o._formValues]),R=D.useCallback(O=>{const S=Te(o._fields,n);S&&O&&(S._f.ref={focus:()=>O.focus&&O.focus(),select:()=>O.select&&O.select(),setCustomValidity:T=>O.setCustomValidity(T),reportValidity:()=>O.reportValidity()})},[o._fields,n]),P=D.useMemo(()=>({name:n,value:f,...lr(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:E,onBlur:x,ref:R}),[n,r,p.disabled,E,x,R,f]);return D.useEffect(()=>{const O=o._options.shouldUnregister||i,S=b.current;S&&S!==n&&!u&&o.unregister(S),o.register(n,{...m.current.rules,...lr(m.current.disabled)?{disabled:m.current.disabled}:{}});const T=(_,$)=>{const V=Te(o._fields,_);V&&V._f&&(V._f.mount=$)};if(T(n,!0),O){const _=bn(Te(o._options.defaultValues,n,m.current.defaultValue));Ct(o._defaultValues,n,_),Zt(Te(o._formValues,n))&&Ct(o._formValues,n,_)}return!u&&o.register(n),b.current=n,()=>{(u?O&&!o._state.action:O)?o.unregister(n):T(n,!1)}},[n,o,u,i]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:P,formState:p,fieldState:v}),[P,p,v])}const Xoe=e=>e.render(Yoe(e));var Lx=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Yc=e=>Array.isArray(e)?e:[e],yT=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function ZA(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&pn(o)&&i){const s=ZA(o,i);pn(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var Vn=e=>pn(e)&&!Object.keys(e).length,qx=e=>e.type==="file",Hr=e=>typeof e=="function",sm=e=>{if(!Ax)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},QA=e=>e.type==="select-multiple",jx=e=>e.type==="radio",Zoe=e=>jx(e)||$d(e),Pv=e=>sm(e)&&e.isConnected;function Qoe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Zt(e)?r++:e[t[r++]];return e}function Joe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Zt(e[t]))return!1;return!0}function dn(e,t){const n=Array.isArray(t)?t:Qm(t)?[t]:Ix(t),r=n.length===1?e:Qoe(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(pn(r)&&Vn(r)||Array.isArray(r)&&Joe(r))&&dn(e,n.slice(0,-1)),e}var eie=e=>{for(const t in e)if(Hr(e[t]))return!0;return!1};function JA(e){return Array.isArray(e)||pn(e)&&!eie(e)}function _b(e,t={}){for(const n in e){const r=e[n];JA(r)?(t[n]=Array.isArray(r)?[]:{},_b(r,t[n])):Zt(r)||(t[n]=!0)}return t}function Zs(e,t,n){n||(n=_b(t));for(const r in e){const o=e[r];if(JA(o))Zt(t)||Tb(n[r])?n[r]=_b(o,Array.isArray(o)?[]:{}):Zs(o,Xn(t)?{}:t[r],n[r]);else{const i=t[r];n[r]=!Kr(o,i)}}return n}const xT={value:!1,isValid:!1},wT={value:!0,isValid:!0};var eN=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Zt(e[0].attributes.value)?Zt(e[0].value)||e[0].value===""?wT:{value:e[0].value,isValid:!0}:wT:xT}return xT},tN=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Zt(e)?e:t?e===""?NaN:e&&+e:n&&dr(e)?new Date(e):r?r(e):e;const ET={isValid:!1,value:null};var nN=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ET):ET;function CT(e){const t=e.ref;return qx(t)?t.files:jx(t)?nN(e.refs).value:QA(t)?[...t.selectedOptions].map(({value:n})=>n):$d(t)?eN(e.refs).value:tN(Zt(t.value)?e.ref.value:t.value,e)}var tie=(e,t,n,r)=>{const o={};for(const i of e){const s=Te(t,i);s&&Ct(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},am=e=>e instanceof RegExp,Ic=e=>Zt(e)?e:am(e)?e.source:pn(e)?am(e.value)?e.value.source:e.value:e,RT=e=>({isOnSubmit:!e||e===Vr.onSubmit,isOnBlur:e===Vr.onBlur,isOnChange:e===Vr.onChange,isOnAll:e===Vr.all,isOnTouch:e===Vr.onTouched});const ST="AsyncFunction";var nie=e=>!!e&&!!e.validate&&!!(Hr(e.validate)&&e.validate.constructor.name===ST||pn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ST)),rie=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),PT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Xc=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=Te(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Xc(a,t))break}else if(pn(a)&&Xc(a,t))break}}};function TT(e,t,n){const r=Te(e,n);if(r||Qm(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=Te(t,i),a=Te(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};if(a&&a.root&&a.root.type)return{name:`${i}.root`,error:a.root};o.pop()}return{name:n}}var oie=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Vn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||Vr.all))},iie=(e,t,n)=>!e||!t||e===t||Yc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),sie=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,aie=(e,t)=>!Nx(Te(e,t)).length&&dn(e,t),lie=(e,t,n)=>{const r=Yc(Te(e,n));return Ct(r,"root",t[n]),Ct(e,n,r),e};function _T(e,t,n="validate"){if(dr(e)||Array.isArray(e)&&e.every(dr)||lr(e)&&!e)return{type:n,message:dr(e)?e:"",ref:t}}var Ws=e=>pn(e)&&!am(e)?e:{value:e,message:""},OT=async(e,t,n,r,o,i)=>{const{ref:s,refs:a,required:u,maxLength:c,minLength:f,min:p,max:m,pattern:b,validate:y,name:v,valueAsNumber:E,mount:x}=e._f,R=Te(n,v);if(!x||t.has(v))return{};const P=a?a[0]:s,O=H=>{o&&P.reportValidity&&(P.setCustomValidity(lr(H)?"":H||""),P.reportValidity())},S={},T=jx(s),_=$d(s),$=T||_,V=(E||qx(s))&&Zt(s.value)&&Zt(R)||sm(s)&&s.value===""||R===""||Array.isArray(R)&&!R.length,U=Lx.bind(null,v,r,S),A=(H,F,N,j=No.maxLength,I=No.minLength)=>{const k=H?F:N;S[v]={type:H?j:I,message:k,ref:s,...U(H?j:I,k)}};if(i?!Array.isArray(R)||!R.length:u&&(!$&&(V||Xn(R))||lr(R)&&!R||_&&!eN(a).isValid||T&&!nN(a).isValid)){const{value:H,message:F}=dr(u)?{value:!!u,message:u}:Ws(u);if(H&&(S[v]={type:No.required,message:F,ref:P,...U(No.required,F)},!r))return O(F),S}if(!V&&(!Xn(p)||!Xn(m))){let H,F;const N=Ws(m),j=Ws(p);if(!Xn(R)&&!isNaN(R)){const I=s.valueAsNumber||R&&+R;Xn(N.value)||(H=I>N.value),Xn(j.value)||(F=I<j.value)}else{const I=s.valueAsDate||new Date(R),k=W=>new Date(new Date().toDateString()+" "+W),q=s.type=="time",z=s.type=="week";dr(N.value)&&R&&(H=q?k(R)>k(N.value):z?R>N.value:I>new Date(N.value)),dr(j.value)&&R&&(F=q?k(R)<k(j.value):z?R<j.value:I<new Date(j.value))}if((H||F)&&(A(!!H,N.message,j.message,No.max,No.min),!r))return O(S[v].message),S}if((c||f)&&!V&&(dr(R)||i&&Array.isArray(R))){const H=Ws(c),F=Ws(f),N=!Xn(H.value)&&R.length>+H.value,j=!Xn(F.value)&&R.length<+F.value;if((N||j)&&(A(N,H.message,F.message),!r))return O(S[v].message),S}if(b&&!V&&dr(R)){const{value:H,message:F}=Ws(b);if(am(H)&&!R.match(H)&&(S[v]={type:No.pattern,message:F,ref:s,...U(No.pattern,F)},!r))return O(F),S}if(y){if(Hr(y)){const H=await y(R,n),F=_T(H,P);if(F&&(S[v]={...F,...U(No.validate,F.message)},!r))return O(F.message),S}else if(pn(y)){let H={};for(const F in y){if(!Vn(H)&&!r)break;const N=_T(await y[F](R,n),P,F);N&&(H={...N,...U(F,N.message)},O(N.message),r&&(S[v]=H))}if(!Vn(H)&&(S[v]={ref:P,...H},!r))return S}}return O(!0),S};const uie={mode:Vr.onSubmit,reValidateMode:Vr.onChange,shouldFocusError:!0};function cie(e={}){let t={...uie,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Hr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=pn(t.defaultValues)||pn(t.values)?bn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:bn(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...f};const m={array:yT(),state:yT()},b=t.criteriaMode===Vr.all,y=G=>J=>{clearTimeout(c),c=setTimeout(G,J)},v=async G=>{if(!t.disabled&&(f.isValid||p.isValid||G)){const J=t.resolver?Vn((await _()).errors):await V(r,!0);J!==n.isValid&&m.state.next({isValid:J})}},E=(G,J)=>{!t.disabled&&(f.isValidating||f.validatingFields||p.isValidating||p.validatingFields)&&((G||Array.from(a.mount)).forEach(ie=>{ie&&(J?Ct(n.validatingFields,ie,J):dn(n.validatingFields,ie))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Vn(n.validatingFields)}))},x=(G,J=[],ie,fe,pe=!0,ge=!0)=>{if(fe&&ie&&!t.disabled){if(s.action=!0,ge&&Array.isArray(Te(r,G))){const Ee=ie(Te(r,G),fe.argA,fe.argB);pe&&Ct(r,G,Ee)}if(ge&&Array.isArray(Te(n.errors,G))){const Ee=ie(Te(n.errors,G),fe.argA,fe.argB);pe&&Ct(n.errors,G,Ee),aie(n.errors,G)}if((f.touchedFields||p.touchedFields)&&ge&&Array.isArray(Te(n.touchedFields,G))){const Ee=ie(Te(n.touchedFields,G),fe.argA,fe.argB);pe&&Ct(n.touchedFields,G,Ee)}(f.dirtyFields||p.dirtyFields)&&(n.dirtyFields=Zs(o,i)),m.state.next({name:G,isDirty:A(G,J),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ct(i,G,J)},R=(G,J)=>{Ct(n.errors,G,J),m.state.next({errors:n.errors})},P=G=>{n.errors=G,m.state.next({errors:n.errors,isValid:!1})},O=(G,J,ie,fe)=>{const pe=Te(r,G);if(pe){const ge=Te(i,G,Zt(ie)?Te(o,G):ie);Zt(ge)||fe&&fe.defaultChecked||J?Ct(i,G,J?ge:CT(pe._f)):N(G,ge),s.mount&&!s.action&&v()}},S=(G,J,ie,fe,pe)=>{let ge=!1,Ee=!1;const Pe={name:G};if(!t.disabled){if(!ie||fe){(f.isDirty||p.isDirty)&&(Ee=n.isDirty,n.isDirty=Pe.isDirty=A(),ge=Ee!==Pe.isDirty);const Ne=Kr(Te(o,G),J);Ee=!!Te(n.dirtyFields,G),Ne?dn(n.dirtyFields,G):Ct(n.dirtyFields,G,!0),Pe.dirtyFields=n.dirtyFields,ge=ge||(f.dirtyFields||p.dirtyFields)&&Ee!==!Ne}if(ie){const Ne=Te(n.touchedFields,G);Ne||(Ct(n.touchedFields,G,ie),Pe.touchedFields=n.touchedFields,ge=ge||(f.touchedFields||p.touchedFields)&&Ne!==ie)}ge&&pe&&m.state.next(Pe)}return ge?Pe:{}},T=(G,J,ie,fe)=>{const pe=Te(n.errors,G),ge=(f.isValid||p.isValid)&&lr(J)&&n.isValid!==J;if(t.delayError&&ie?(u=y(()=>R(G,ie)),u(t.delayError)):(clearTimeout(c),u=null,ie?Ct(n.errors,G,ie):dn(n.errors,G)),(ie?!Kr(pe,ie):pe)||!Vn(fe)||ge){const Ee={...fe,...ge&&lr(J)?{isValid:J}:{},errors:n.errors,name:G};n={...n,...Ee},m.state.next(Ee)}},_=async G=>{E(G,!0);const J=await t.resolver(i,t.context,tie(G||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return E(G),J},$=async G=>{const{errors:J}=await _(G);if(G)for(const ie of G){const fe=Te(J,ie);fe?Ct(n.errors,ie,fe):dn(n.errors,ie)}else n.errors=J;return J},V=async(G,J,ie={valid:!0})=>{for(const fe in G){const pe=G[fe];if(pe){const{_f:ge,...Ee}=pe;if(ge){const Pe=a.array.has(ge.name),Ne=pe._f&&nie(pe._f);Ne&&f.validatingFields&&E([ge.name],!0);const st=await OT(pe,a.disabled,i,b,t.shouldUseNativeValidation&&!J,Pe);if(Ne&&f.validatingFields&&E([ge.name]),st[ge.name]&&(ie.valid=!1,J))break;!J&&(Te(st,ge.name)?Pe?lie(n.errors,st,ge.name):Ct(n.errors,ge.name,st[ge.name]):dn(n.errors,ge.name))}!Vn(Ee)&&await V(Ee,J,ie)}}return ie.valid},U=()=>{for(const G of a.unMount){const J=Te(r,G);J&&(J._f.refs?J._f.refs.every(ie=>!Pv(ie)):!Pv(J._f.ref))&&ee(G)}a.unMount=new Set},A=(G,J)=>!t.disabled&&(G&&J&&Ct(i,G,J),!Kr(W(),o)),H=(G,J,ie)=>Pb(G,a,{...s.mount?i:Zt(J)?o:dr(G)?{[G]:J}:J},ie,J),F=G=>Nx(Te(s.mount?i:o,G,t.shouldUnregister?Te(o,G,[]):[])),N=(G,J,ie={})=>{const fe=Te(r,G);let pe=J;if(fe){const ge=fe._f;ge&&(!ge.disabled&&Ct(i,G,tN(J,ge)),pe=sm(ge.ref)&&Xn(J)?"":J,QA(ge.ref)?[...ge.ref.options].forEach(Ee=>Ee.selected=pe.includes(Ee.value)):ge.refs?$d(ge.ref)?ge.refs.forEach(Ee=>{(!Ee.defaultChecked||!Ee.disabled)&&(Array.isArray(pe)?Ee.checked=!!pe.find(Pe=>Pe===Ee.value):Ee.checked=pe===Ee.value||!!pe)}):ge.refs.forEach(Ee=>Ee.checked=Ee.value===pe):qx(ge.ref)?ge.ref.value="":(ge.ref.value=pe,ge.ref.type||m.state.next({name:G,values:bn(i)})))}(ie.shouldDirty||ie.shouldTouch)&&S(G,pe,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&z(G)},j=(G,J,ie)=>{for(const fe in J){if(!J.hasOwnProperty(fe))return;const pe=J[fe],ge=G+"."+fe,Ee=Te(r,ge);(a.array.has(G)||pn(pe)||Ee&&!Ee._f)&&!ts(pe)?j(ge,pe,ie):N(ge,pe,ie)}},I=(G,J,ie={})=>{const fe=Te(r,G),pe=a.array.has(G),ge=bn(J);Ct(i,G,ge),pe?(m.array.next({name:G,values:bn(i)}),(f.isDirty||f.dirtyFields||p.isDirty||p.dirtyFields)&&ie.shouldDirty&&m.state.next({name:G,dirtyFields:Zs(o,i),isDirty:A(G,ge)})):fe&&!fe._f&&!Xn(ge)?j(G,ge,ie):N(G,ge,ie),PT(G,a)&&m.state.next({...n,name:G}),m.state.next({name:s.mount?G:void 0,values:bn(i)})},k=async G=>{s.mount=!0;const J=G.target;let ie=J.name,fe=!0;const pe=Te(r,ie),ge=Ne=>{fe=Number.isNaN(Ne)||ts(Ne)&&isNaN(Ne.getTime())||Kr(Ne,Te(i,ie,Ne))},Ee=RT(t.mode),Pe=RT(t.reValidateMode);if(pe){let Ne,st;const ut=J.type?CT(pe._f):GA(G),wt=G.type===im.BLUR||G.type===im.FOCUS_OUT,dt=!rie(pe._f)&&!t.resolver&&!Te(n.errors,ie)&&!pe._f.deps||sie(wt,Te(n.touchedFields,ie),n.isSubmitted,Pe,Ee),Nt=PT(ie,a,wt);Ct(i,ie,ut),wt?(!J||!J.readOnly)&&(pe._f.onBlur&&pe._f.onBlur(G),u&&u(0)):pe._f.onChange&&pe._f.onChange(G);const Yt=S(ie,ut,wt),un=!Vn(Yt)||Nt;if(!wt&&m.state.next({name:ie,type:G.type,values:bn(i)}),dt)return(f.isValid||p.isValid)&&(t.mode==="onBlur"?wt&&v():wt||v()),un&&m.state.next({name:ie,...Nt?{}:Yt});if(!wt&&Nt&&m.state.next({...n}),t.resolver){const{errors:mn}=await _([ie]);if(ge(ut),fe){const $n=TT(n.errors,r,ie),nt=TT(mn,r,$n.name||ie);Ne=nt.error,ie=nt.name,st=Vn(mn)}}else E([ie],!0),Ne=(await OT(pe,a.disabled,i,b,t.shouldUseNativeValidation))[ie],E([ie]),ge(ut),fe&&(Ne?st=!1:(f.isValid||p.isValid)&&(st=await V(r,!0)));fe&&(pe._f.deps&&(!Array.isArray(pe._f.deps)||pe._f.deps.length>0)&&z(pe._f.deps),T(ie,st,Ne,Yt))}},q=(G,J)=>{if(Te(n.errors,J)&&G.focus)return G.focus(),1},z=async(G,J={})=>{let ie,fe;const pe=Yc(G);if(t.resolver){const ge=await $(Zt(G)?G:pe);ie=Vn(ge),fe=G?!pe.some(Ee=>Te(ge,Ee)):ie}else G?(fe=(await Promise.all(pe.map(async ge=>{const Ee=Te(r,ge);return await V(Ee&&Ee._f?{[ge]:Ee}:Ee)}))).every(Boolean),!(!fe&&!n.isValid)&&v()):fe=ie=await V(r);return m.state.next({...!dr(G)||(f.isValid||p.isValid)&&ie!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:ie}:{},errors:n.errors}),J.shouldFocus&&!fe&&Xc(r,q,G?pe:a.mount),fe},W=(G,J)=>{let ie={...s.mount?i:o};return J&&(ie=ZA(J.dirtyFields?n.dirtyFields:n.touchedFields,ie)),Zt(G)?ie:dr(G)?Te(ie,G):G.map(fe=>Te(ie,fe))},te=(G,J)=>({invalid:!!Te((J||n).errors,G),isDirty:!!Te((J||n).dirtyFields,G),error:Te((J||n).errors,G),isValidating:!!Te(n.validatingFields,G),isTouched:!!Te((J||n).touchedFields,G)}),X=G=>{G&&Yc(G).forEach(J=>dn(n.errors,J)),m.state.next({errors:G?n.errors:{}})},Q=(G,J,ie)=>{const fe=(Te(r,G,{_f:{}})._f||{}).ref,pe=Te(n.errors,G)||{},{ref:ge,message:Ee,type:Pe,...Ne}=pe;Ct(n.errors,G,{...Ne,...J,ref:fe}),m.state.next({name:G,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&fe&&fe.focus&&fe.focus()},re=(G,J)=>Hr(G)?m.state.subscribe({next:ie=>"values"in ie&&G(H(void 0,J),ie)}):H(G,J,!0),ce=G=>m.state.subscribe({next:J=>{iie(G.name,J.name,G.exact)&&oie(J,G.formState||f,Oe,G.reRenderRoot)&&G.callback({values:{...i},...n,...J,defaultValues:o})}}).unsubscribe,se=G=>(s.mount=!0,p={...p,...G.formState},ce({...G,formState:p})),ee=(G,J={})=>{for(const ie of G?Yc(G):a.mount)a.mount.delete(ie),a.array.delete(ie),J.keepValue||(dn(r,ie),dn(i,ie)),!J.keepError&&dn(n.errors,ie),!J.keepDirty&&dn(n.dirtyFields,ie),!J.keepTouched&&dn(n.touchedFields,ie),!J.keepIsValidating&&dn(n.validatingFields,ie),!t.shouldUnregister&&!J.keepDefaultValue&&dn(o,ie);m.state.next({values:bn(i)}),m.state.next({...n,...J.keepDirty?{isDirty:A()}:{}}),!J.keepIsValid&&v()},de=({disabled:G,name:J})=>{(lr(G)&&s.mount||G||a.disabled.has(J))&&(G?a.disabled.add(J):a.disabled.delete(J))},K=(G,J={})=>{let ie=Te(r,G);const fe=lr(J.disabled)||lr(t.disabled);return Ct(r,G,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:G}},name:G,mount:!0,...J}}),a.mount.add(G),ie?de({disabled:lr(J.disabled)?J.disabled:t.disabled,name:G}):O(G,!0,J.value),{...fe?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:Ic(J.min),max:Ic(J.max),minLength:Ic(J.minLength),maxLength:Ic(J.maxLength),pattern:Ic(J.pattern)}:{},name:G,onChange:k,onBlur:k,ref:pe=>{if(pe){K(G,J),ie=Te(r,G);const ge=Zt(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,Ee=Zoe(ge),Pe=ie._f.refs||[];if(Ee?Pe.find(Ne=>Ne===ge):ge===ie._f.ref)return;Ct(r,G,{_f:{...ie._f,...Ee?{refs:[...Pe.filter(Pv),ge,...Array.isArray(Te(o,G))?[{}]:[]],ref:{type:ge.type,name:G}}:{ref:ge}}}),O(G,!1,void 0,ge)}else ie=Te(r,G,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(YA(a.array,G)&&s.action)&&a.unMount.add(G)}}},ue=()=>t.shouldFocusError&&Xc(r,q,a.mount),le=G=>{lr(G)&&(m.state.next({disabled:G}),Xc(r,(J,ie)=>{const fe=Te(r,ie);fe&&(J.disabled=fe._f.disabled||G,Array.isArray(fe._f.refs)&&fe._f.refs.forEach(pe=>{pe.disabled=fe._f.disabled||G}))},0,!1))},Z=(G,J)=>async ie=>{let fe;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let pe=bn(i);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:Ee}=await _();n.errors=ge,pe=bn(Ee)}else await V(r);if(a.disabled.size)for(const ge of a.disabled)dn(pe,ge);if(dn(n.errors,"root"),Vn(n.errors)){m.state.next({errors:{}});try{await G(pe,ie)}catch(ge){fe=ge}}else J&&await J({...n.errors},ie),ue(),setTimeout(ue);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Vn(n.errors)&&!fe,submitCount:n.submitCount+1,errors:n.errors}),fe)throw fe},xe=(G,J={})=>{Te(r,G)&&(Zt(J.defaultValue)?I(G,bn(Te(o,G))):(I(G,J.defaultValue),Ct(o,G,bn(J.defaultValue))),J.keepTouched||dn(n.touchedFields,G),J.keepDirty||(dn(n.dirtyFields,G),n.isDirty=J.defaultValue?A(G,bn(Te(o,G))):A()),J.keepError||(dn(n.errors,G),f.isValid&&v()),m.state.next({...n}))},Re=(G,J={})=>{const ie=G?bn(G):o,fe=bn(ie),pe=Vn(G),ge=pe?o:fe;if(J.keepDefaultValues||(o=ie),!J.keepValues){if(J.keepDirtyValues){const Ee=new Set([...a.mount,...Object.keys(Zs(o,i))]);for(const Pe of Array.from(Ee))Te(n.dirtyFields,Pe)?Ct(ge,Pe,Te(i,Pe)):I(Pe,Te(ge,Pe))}else{if(Ax&&Zt(G))for(const Ee of a.mount){const Pe=Te(r,Ee);if(Pe&&Pe._f){const Ne=Array.isArray(Pe._f.refs)?Pe._f.refs[0]:Pe._f.ref;if(sm(Ne)){const st=Ne.closest("form");if(st){st.reset();break}}}}if(J.keepFieldsRef)for(const Ee of a.mount)I(Ee,Te(ge,Ee));else r={}}i=t.shouldUnregister?J.keepDefaultValues?bn(o):{}:bn(ge),m.array.next({values:{...ge}}),m.state.next({values:{...ge}})}a={mount:J.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!J.keepIsValid||!!J.keepDirtyValues||!t.shouldUnregister&&!Vn(ge),s.watch=!!t.shouldUnregister,s.action=!1,J.keepErrors||(n.errors={}),m.state.next({submitCount:J.keepSubmitCount?n.submitCount:0,isDirty:pe?!1:J.keepDirty?n.isDirty:!!(J.keepDefaultValues&&!Kr(G,o)),isSubmitted:J.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:pe?{}:J.keepDirtyValues?J.keepDefaultValues&&i?Zs(o,i):n.dirtyFields:J.keepDefaultValues&&G?Zs(o,G):J.keepDirty?n.dirtyFields:{},touchedFields:J.keepTouched?n.touchedFields:{},errors:J.keepErrors?n.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ae=(G,J)=>Re(Hr(G)?G(i):G,J),Se=(G,J={})=>{const ie=Te(r,G),fe=ie&&ie._f;if(fe){const pe=fe.refs?fe.refs[0]:fe.ref;pe.focus&&(pe.focus(),J.shouldSelect&&Hr(pe.select)&&pe.select())}},Oe=G=>{n={...n,...G}},Fe={control:{register:K,unregister:ee,getFieldState:te,handleSubmit:Z,setError:Q,_subscribe:ce,_runSchema:_,_focusError:ue,_getWatch:H,_getDirty:A,_setValid:v,_setFieldArray:x,_setDisabledField:de,_setErrors:P,_getFieldArray:F,_reset:Re,_resetDefaultValues:()=>Hr(t.defaultValues)&&t.defaultValues().then(G=>{Ae(G,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:U,_disableForm:le,_subjects:m,_proxyFormState:f,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(G){s=G},get _defaultValues(){return o},get _names(){return a},set _names(G){a=G},get _formState(){return n},get _options(){return t},set _options(G){t={...t,...G}}},subscribe:se,trigger:z,register:K,handleSubmit:Z,watch:re,setValue:I,getValues:W,reset:Ae,resetField:xe,clearErrors:X,unregister:ee,setError:Q,setFocus:Se,getFieldState:te};return{...Fe,formControl:Fe}}function die(e={}){const t=D.useRef(void 0),n=D.useRef(void 0),[r,o]=D.useState({isDirty:!1,isValidating:!1,isLoading:Hr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Hr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Hr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...a}=cie(e);t.current={...a,formState:r}}const i=t.current.control;return i._options=e,Fx(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(a=>({...a,isReady:!0})),i._formState.isReady=!0,s},[i]),D.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),D.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),D.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),D.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),D.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),D.useEffect(()=>{var s;e.values&&!Kr(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((s=i._options.resetOptions)===null||s===void 0)&&s.keepIsValid||i._setValid(),n.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),D.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=XA(r,i),t.current}const[fie,pie]=Sd(),[mie,hie]=Sd(),Md=()=>{const e=mie(),t=fie(),{getFieldState:n,formState:r}=Dd();if(!e)throw new Error("useFormField should be used within <FormField>");const o=n(e.name,r),{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},gie=({onSubmit:e,id:t,form:n,children:r,className:o})=>w.jsx(Uoe,{...n,children:w.jsx("form",{id:t,onSubmit:n.handleSubmit(e),className:o,"data-slot":"form",children:r})}),vie=({name:e,label:t,description:n,className:r,render:o,itemProps:i,labelProps:s,controlProps:a,descriptionProps:u,messageProps:c})=>{const{control:f}=Dd();return w.jsx(hie,{value:{name:e},children:w.jsx(Xoe,{name:e,control:f,render:({field:p,fieldState:m})=>w.jsxs(rN,{className:r,...i,children:[t&&w.jsx(oN,{...s,children:t}),w.jsx(iN,{...a,children:_t.isFunction(o)?o(p):h.createElement(o,p)}),n&&w.jsx(sN,{...u,children:n}),w.jsx(aN,{...c,children:m.error?.message})]})})})},rN=({className:e,...t})=>{const n=h.useId();return w.jsx(pie,{value:{id:n},children:w.jsx("div",{className:me("flex flex-col gap-2",e),"data-slot":"form-item",...t})})},oN=({className:e,...t})=>{const{error:n,formItemId:r}=Md();return w.jsx(Od,{className:me(n&&"text-error",e),htmlFor:r,...t})},iN=({className:e,...t})=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Md();return w.jsx(km,{id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,className:me("group",e),...t})},sN=({className:e,...t})=>{const{formDescriptionId:n}=Md();return w.jsx("p",{id:n,className:me("text-sm text-muted-foreground",e),"data-slot":"form-description",...t})},aN=({className:e,children:t,...n})=>{const{error:r,formMessageId:o}=Md(),i=r?String(r?.message):t;return i?w.jsx("p",{id:o,className:me("text-sm font-medium text-error",e),"data-slot":"form-message",...n,children:i}):null},$T=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Te(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Ob=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?$T(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>$T(o,n,e))}},DT=(e,t)=>{t.shouldUseNativeValidation&&Ob(e,t);const n={};for(const r in e){const o=Te(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(bie(t.names||Object.keys(e),r)){const s=Object.assign({},Te(n,r));Ct(s,"root",i),Ct(n,r,s)}else Ct(n,r,i)}return n},bie=(e,t)=>{const n=MT(t);return e.some(r=>MT(r).match(`^${n}\\.\\d+`))};function MT(e){return e.replace(/\]|\[/g,"")}function lN(e,t,n){function r(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,u);const c=s.prototype,f=Object.keys(c);for(let p=0;p<f.length;p++){const m=f[p];m in a||(a[m]=c[m].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var u;const c=n?.Parent?new i:this;r(c,a),(u=c._zod).deferred??(u.deferred=[]);for(const f of c._zod.deferred)f();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class yie extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const xie={};function uN(e){return xie}function wie(e,t){return typeof t=="bigint"?t.toString():t}const cN="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mp(e){return typeof e=="string"?e:e?.message}function dN(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=mp(e.inst?._zod.def?.error?.(e))??mp(t?.error?.(e))??mp(n.customError?.(e))??mp(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const fN=(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,wie,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Eie=lN("$ZodError",fN),pN=lN("$ZodError",fN,{Parent:Error}),Cie=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new yie;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(u=>dN(u,i,uN())));throw cN(a,o?.callee),a}return s.value},Rie=Cie(pN),Sie=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(u=>dN(u,i,uN())));throw cN(a,o?.callee),a}return s.value},Pie=Sie(pN);function AT(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Tie(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[s]={message:a.message,type:a.code}}else n[s]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(p){return e.push(p)})}),t){var u=n[s].types,c=u&&u[r.code];n[s]=Lx(s,t,n,o,c?[].concat(c,r.message):r.message)}e.shift()}return n}function _ie(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if(r.code==="invalid_union"&&r.errors.length>0){var a=r.errors[0][0];n[s]={message:a.message,type:a.code}}else n[s]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(f){return f.forEach(function(p){return e.push(p)})}),t){var u=n[s].types,c=u&&u[r.code];n[s]=Lx(s,t,n,o,c?[].concat(c,r.message):r.message)}e.shift()}return n}function Oie(e,t,n){if(n===void 0&&(n={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,o,i){try{return Promise.resolve(AT(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&Ob({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if((function(a){return Array.isArray(a?.issues)})(s))return{values:{},errors:DT(Tie(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,i){try{return Promise.resolve(AT(function(){return Promise.resolve((n.mode==="sync"?Rie:Pie)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&Ob({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if((function(a){return a instanceof Eie})(s))return{values:{},errors:DT(_ie(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function $ie(e,t){return die({...t,resolver:Oie(e)})}const Jm=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jm.displayName="ToastContext");function eh(){const e=h.useContext(Jm);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: useToastManager must be used within <Toast.Provider>.":zt(73));return e}let NT=0;function mN(e){return NT+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${NT}`}function Tv(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}const hp=W9(e=>e.toasts,e=>{const t=new Map;let n=0,r=0;return e.forEach((o,i)=>{const s=o.transitionStatus==="ending";t.set(o.id,{value:o,domIndex:i,visibleIndex:s?-1:n,offsetY:r}),r+=o.height||0,s||(n+=1)}),t}),no={toasts:je(e=>e.toasts),isEmpty:je(e=>e.toasts.length===0),toast:je(hp,(e,t)=>e.get(t)?.value),toastIndex:je(hp,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:je(hp,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:je(hp,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:je(e=>e.hovering),focused:je(e=>e.focused),expanded:je(e=>e.hovering||e.focused),expandedOrOutOfFocus:je(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:je(e=>e.prevFocusElement)};class Die extends Mm{timers=new Map;areTimersPaused=!1;constructor(t){super(t,{},no)}setFocused(t){this.set("focused",t)}setHovering(t){this.set("hovering",t)}setIsWindowFocused(t){this.set("isWindowFocused",t)}setPrevFocusElement(t){this.set("prevFocusElement",t)}setViewport=t=>{this.set("viewport",t)};disposeEffect=()=>()=>{this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear()};removeToast(t,n={}){const r=no.toastIndex(this.state,t);if(r===-1)return;const o=this.state.toasts[r];n.skipOnRemove||o?.onRemove?.();const i=[...this.state.toasts];i.splice(r,1),this.setToasts(i)}addToast=t=>{const{timeout:n,limit:r}=this.state,o=t.id||mN("toast");if(t.id){const c=no.toast(this.state,t.id);if(c)if(c.transitionStatus==="ending")this.removeToast(t.id,{skipOnRemove:!0});else{const{id:f,transitionStatus:p,...m}=t;return this.updateToastInternal(t.id,m,{resetTimer:!0,markUpdated:!0}),t.id}}const i={...t,id:o,updateKey:0,transitionStatus:"starting"},s=[i,...this.state.toasts],a=s.filter(c=>c.transitionStatus!=="ending");if(a.length>r){const c=a.length-r,f=a.slice(-c),p=new Set(f.map(m=>m.id));this.setToasts(s.map(m=>{const b=p.has(m.id);return m.limited!==b?{...m,limited:b}:m}))}else this.setToasts(s.map(c=>c.limited?{...c,limited:!1}:c));const u=i.timeout??n;return i.type!=="loading"&&u>0&&this.scheduleTimer(o,u,()=>this.closeToast(o)),no.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),o};updateToast=(t,n)=>{this.updateToastInternal(t,n,{markUpdated:!0})};updateToastInternal=(t,n,r={})=>{const{timeout:o,toasts:i}=this.state,s=no.toast(this.state,t)??null;if(!s||s.transitionStatus==="ending")return;const a={...s,...n,...r.markUpdated&&{updateKey:(s.updateKey??0)+1}};this.setToasts(i.map(v=>v.id===t?a:v));const u=a.timeout??o,c=s?.timeout??o,f=Object.hasOwn(n,"timeout"),p=a.transitionStatus!=="ending"&&a.type!=="loading"&&u>0,m=this.timers.has(t),b=c!==u,y=s?.type==="loading";if(!p&&m){this.timers.get(t)?.timeout?.clear(),this.timers.delete(t);return}if(p&&(!m||b||f||y||r.resetTimer)){const v=this.timers.get(t);v&&(v.timeout?.clear(),this.timers.delete(t)),this.scheduleTimer(t,u,()=>this.closeToast(t)),no.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=t=>{const n=t===void 0,{limit:r,toasts:o}=this.state;let i;if(n)i=o,this.timers.forEach(c=>{c.timeout?.clear()}),this.timers.clear();else{const c=no.toast(this.state,t);if(!c)return;i=[c];const f=this.timers.get(t);f?.timeout&&(f.timeout.clear(),this.timers.delete(t))}let s=0;const u={toasts:o.map(c=>{if(n||c.id===t)return{...c,transitionStatus:"ending",height:0};if(c.transitionStatus==="ending")return c;const f=s>=r;return s+=1,c.limited!==f?{...c,limited:f}:c})};(n||o.length===1)&&(u.hovering=!1,u.focused=!1),this.update(u),i.forEach(c=>{c.transitionStatus!=="ending"&&c.onClose?.()}),this.handleFocusManagement(t)};promiseToast=(t,n)=>{const r=Tv(n.loading),o=this.addToast({...r,type:"loading"}),i=t.then(s=>{const a=Tv(n.success,s);return this.updateToast(o,{...a,type:"success",timeout:a.timeout}),s}).catch(s=>{const a=Tv(n.error,s);return this.updateToast(o,{...a,type:"error",timeout:a.timeout}),Promise.reject(s)});return{}.hasOwnProperty.call(n,"setPromise")&&n.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(t=>{if(t.timeout){t.timeout.clear();const n=Date.now()-t.start,r=t.delay-n;t.remaining=r>0?r:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((t,n)=>{t.remaining=t.remaining>0?t.remaining:t.delay,t.timeout??=fr.create(),t.timeout.start(t.remaining,()=>{this.timers.delete(n),t.callback()}),t.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=t=>{if(t.pointerType!=="touch")return;const n=nn(t);Ke(this.state.viewport,n)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(t,n,r){const o=Date.now(),i=!no.expandedOrOutOfFocus(this.state),s=i?fr.create():void 0;s?.start(n,()=>{this.timers.delete(t),r()}),this.timers.set(t,{timeout:s,start:i?o:0,delay:n,remaining:n,callback:r})}setToasts(t){const n={toasts:t};t.length===0&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(t){const n=Zn(ct(this.state.viewport));if(!this.state.viewport||!Ke(this.state.viewport,n)||!Ip(n))return;if(t===void 0){this.restoreFocusToPrevElement();return}const r=no.toasts(this.state),o=no.toastIndex(this.state,t);let i=null,s=o+1;for(;s<r.length;){if(r[s].transitionStatus!=="ending"){i=r[s];break}s+=1}if(!i)for(s=o-1;s>=0;){if(r[s].transitionStatus!=="ending"){i=r[s];break}s-=1}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}}const Bx=function(t){const{children:n,timeout:r=5e3,limit:o=3,toastManager:i}=t,s=Hn(()=>new Die({timeout:r,limit:o,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return Rm(s.disposeEffect),h.useEffect(function(){return i?i[" subscribe"](({action:c,options:f})=>{const p=f.id;c==="promise"&&f.promise?s.promiseToast(f.promise,f):c==="update"&&p?s.updateToast(p,f):c==="close"?s.closeToast(p):s.addToast(f)}):void 0},[s,r,i]),s.useSyncedValues({timeout:r,limit:o}),w.jsx(Jm.Provider,{value:s,children:n})};process.env.NODE_ENV!=="production"&&(Bx.displayName="ToastProvider");let Mie=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const Vx=h.forwardRef(function(t,n){const{render:r,className:o,style:i,children:s,...a}=t,u=eh(),c=po(),f=h.useRef(!1),p=h.useRef(!1),m=h.useRef(!1),b=u.useState("isEmpty"),y=u.useState("toasts"),v=u.useState("focused"),E=u.useState("expanded"),x=u.useState("prevFocusElement"),R=y[0]?.height??0,P=h.useMemo(()=>y.some(k=>k.transitionStatus==="ending"),[y]);h.useEffect(()=>{const k=u.state.viewport;if(!k)return;function q(W){b||W.key==="F6"&&nn(W)!==k&&(W.preventDefault(),u.setPrevFocusElement(Zn(ct(k))),k?.focus({preventScroll:!0}),u.pauseTimers(),u.setFocused(!0))}const z=Vt(k);return Ge(z,"keydown",q)},[u,b]),h.useEffect(()=>{const k=u.state.viewport;if(!k||b)return;const q=Vt(k);function z(te){nn(te)===q&&(u.setIsWindowFocused(!1),u.pauseTimers())}function W(te){if(te.relatedTarget)return;const X=nn(te),Q=Zn(ct(k));(X===q||!Ke(k,X)||!Ip(Q))&&u.resumeTimers(),c.start(0,()=>u.setIsWindowFocused(!0))}return zr(Ge(q,"blur",z,!0),Ge(q,"focus",W,!0))},[u,c,b]),h.useEffect(()=>{const k=u.state.viewport;if(!k||b)return;const q=ct(k);return Ge(q,"pointerdown",u.handleDocumentPointerDown,!0)},[b,u]);function O(k){const q=u.state.viewport;q&&(f.current=!0,k.relatedTarget===q?y[0]?.ref?.current?.focus():u.restoreFocusToPrevElement())}function S(k){k.key==="Tab"&&k.shiftKey&&nn(k.nativeEvent)===u.state.viewport&&(k.preventDefault(),u.restoreFocusToPrevElement(),u.resumeTimers())}function T(){const k=u.state.toasts.some(q=>q.transitionStatus==="ending");!u.state.isWindowFocused||k||m.current||!p.current||(u.resumeTimers(),u.setHovering(!1),p.current=!1)}h.useEffect(T,[P,u]);function _(){u.pauseTimers(),u.setHovering(!0),p.current=!1}function $(){P||m.current?p.current=!0:(u.resumeTimers(),u.setHovering(!1))}function V(k){k.pointerType==="touch"&&(m.current=!0)}function U(k){k.pointerType==="touch"&&(m.current=!1,T())}function A(){if(f.current){f.current=!1;return}v||Ip(Zn(ct(u.state.viewport)))&&(u.setFocused(!0),u.pauseTimers())}function H(k){!v||Ke(u.state.viewport,k.relatedTarget)||(u.setFocused(!1),u.resumeTimers())}const F={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:_,onMouseMove:_,onMouseLeave:$,onFocus:A,onBlur:H,onKeyDown:S,onClick:A,onPointerDown:V,onPointerUp:U,onPointerCancel:U},N={expanded:E},j=lt("div",t,{ref:[n,u.setViewport],state:N,props:[F,{style:{[Mie.frontmostHeight]:R?`${R}px`:void 0}},a,{children:w.jsxs(h.Fragment,{children:[!b&&x&&w.jsx(Ei,{onFocus:O}),s,!b&&x&&w.jsx(Ei,{onFocus:O})]})}]}),I=h.useMemo(()=>y.filter(k=>k.priority==="high"),[y]);return w.jsxs(h.Fragment,{children:[!b&&x&&w.jsx(Ei,{onFocus:O}),j,!v&&I.length>0&&w.jsx("div",{style:pd,children:I.map(k=>w.jsxs("div",{role:"alert","aria-atomic":!0,children:[w.jsx("div",{children:k.title}),w.jsx("div",{children:k.description})]},k.id))})]})});process.env.NODE_ENV!=="production"&&(Vx.displayName="ToastViewport");const Kx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Kx.displayName="ToastRootContext");function Ad(){const e=h.useContext(Kx);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.":zt(66));return e}let gi=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const Aie={...xs,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},kc=40,Nie=10,fi=.5,Iie=1,kie=`${kV},${FV}`;function IT(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 Fie(e){const n=Vt(e).getComputedStyle(e).transform;let r=0,o=0,i=1;if(n&&n!=="none"){const s=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){const a=s[1].split(", ").map(parseFloat);a.length===6?(r=a[4],o=a[5],i=Math.sqrt(a[0]*a[0]+a[1]*a[1])):a.length===16&&(r=a[12],o=a[13],i=a[0])}}return{x:r,y:o,scale:i}}const Hx=h.forwardRef(function(t,n){const{toast:r,render:o,className:i,swipeDirection:s=["down","right"],style:a,...u}=t,c=r.positionerProps?.anchor!==void 0;let f=[];c||(f=Array.isArray(s)?s:[s]);const p=f.length>0,m=eh(),[b,y]=h.useState(void 0),[v,E]=h.useState(!1),[x,R]=h.useState(!1),[P,O]=h.useState(!1),[S,T]=h.useState({x:0,y:0}),[_,$]=h.useState({x:0,y:0,scale:1}),[V,U]=h.useState(),[A,H]=h.useState(),[F,N]=h.useState(null),j=h.useRef(null),I=h.useRef({x:0,y:0}),k=h.useRef({x:0,y:0,scale:1}),q=h.useRef(void 0),z=h.useRef(0),W=h.useRef(!1),te=h.useRef({x:0,y:0}),X=h.useRef(!1),Q=m.useState("toastIndex",r.id),re=m.useState("toastVisibleIndex",r.id),ce=m.useState("toastOffsetY",r.id),se=m.useState("focused"),ee=m.useState("expanded");ma({open:r.transitionStatus!=="ending",ref:j,onComplete(){r.transitionStatus==="ending"&&m.removeToast(r.id)}});const de=He((J=!1)=>{const ie=j.current;if(!ie)return;const fe=ie.style.height;ie.style.height="auto";const pe=ie.offsetHeight;ie.style.height=fe;function ge(){m.updateToastInternal(r.id,{ref:j,height:pe,...r.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}J?er.flushSync(ge):ge()});Le(de,[de]);function K(J,ie){let fe=J,pe=ie;return!f.includes("left")&&!f.includes("right")?fe=J>0?J**fi:-(Math.abs(J)**fi):(!f.includes("right")&&J>0&&(fe=J**fi),!f.includes("left")&&J<0&&(fe=-(Math.abs(J)**fi))),!f.includes("up")&&!f.includes("down")?pe=ie>0?ie**fi:-(Math.abs(ie)**fi):(!f.includes("down")&&ie>0&&(pe=ie**fi),!f.includes("up")&&ie<0&&(pe=-(Math.abs(ie)**fi))),{x:fe,y:pe}}function ue(J){if(J.button!==0)return;J.pointerType==="touch"&&m.pauseTimers();const ie=nn(J.nativeEvent);if(!(ie&&ie.closest(`button,a,input,textarea,[role="button"],${kie}`))){if(W.current=!1,q.current=void 0,z.current=0,I.current={x:J.clientX,y:J.clientY},te.current=I.current,j.current){const pe=Fie(j.current);k.current=pe,$(pe),T({x:pe.x,y:pe.y})}m.setHovering(!0),E(!0),R(!1),N(null),X.current=!0,j.current?.setPointerCapture(J.pointerId)}}function le(J){if(!v)return;J.preventDefault(),X.current&&(I.current={x:J.clientX,y:J.clientY},X.current=!1);const{clientY:ie,clientX:fe,movementX:pe,movementY:ge}=J;(ge<0&&ie>te.current.y||ge>0&&ie<te.current.y)&&(te.current={x:te.current.x,y:ie}),(pe<0&&fe>te.current.x||pe>0&&fe<te.current.x)&&(te.current={x:fe,y:te.current.y});const Ee=fe-I.current.x,Pe=ie-I.current.y,Ne=ie-te.current.y,st=fe-te.current.x;if(!x&&Math.sqrt(Ee*Ee+Pe*Pe)>=Iie&&(R(!0),F===null)){const un=f.includes("left")||f.includes("right"),mn=f.includes("up")||f.includes("down");if(un&&mn){const $n=Math.abs(Ee),nt=Math.abs(Pe);N($n>nt?"horizontal":"vertical")}}let ut;if(!q.current)F==="vertical"?Pe>0?ut="down":Pe<0&&(ut="up"):F==="horizontal"?Ee>0?ut="right":Ee<0&&(ut="left"):Math.abs(Ee)>=Math.abs(Pe)?ut=Ee>0?"right":"left":ut=Pe>0?"down":"up",ut&&f.includes(ut)&&(q.current=ut,z.current=IT(ut,Ee,Pe),y(ut));else{const Yt=q.current,un=IT(Yt,st,Ne);un>kc?(W.current=!1,y(Yt)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&z.current-un>=Nie&&(W.current=!0)}const wt=K(Ee,Pe);let dt=k.current.x,Nt=k.current.y;F==="horizontal"?(f.includes("left")||f.includes("right"))&&(dt+=wt.x):(F==="vertical"||(f.includes("left")||f.includes("right"))&&(dt+=wt.x),(f.includes("up")||f.includes("down"))&&(Nt+=wt.y)),T({x:dt,y:Nt})}function Z(J){if(!v)return;if(E(!1),R(!1),N(null),j.current?.releasePointerCapture(J.pointerId),W.current){T({x:_.x,y:_.y}),y(void 0);return}let ie=!1;const fe=S.x-_.x,pe=S.y-_.y;let ge;for(const Ee of f){switch(Ee){case"right":fe>kc&&(ie=!0,ge="right");break;case"left":fe<-kc&&(ie=!0,ge="left");break;case"down":pe>kc&&(ie=!0,ge="down");break;case"up":pe<-kc&&(ie=!0,ge="up");break}if(ie)break}ie?(y(ge),O(!0),m.closeToast(r.id)):(T({x:_.x,y:_.y}),y(void 0))}function xe(){v&&(E(!1),R(!1),N(null),T({x:_.x,y:_.y}),y(void 0))}function Re(J){if(J.key==="Escape"){if(!j.current||!Ke(j.current,Zn(ct(j.current))))return;m.closeToast(r.id)}}h.useEffect(()=>{if(!p)return;const J=j.current;if(!J)return;function ie(fe){Ke(J,nn(fe))&&fe.preventDefault()}return Ge(J,"touchmove",ie,{passive:!1})},[p]);function Ae(){if(!v&&S.x===_.x&&S.y===_.y&&!P)return{[gi.swipeMovementX]:"0px",[gi.swipeMovementY]:"0px"};const J=S.x-_.x,ie=S.y-_.y;return{transition:v?"none":void 0,transform:v?`translateX(${S.x}px) translateY(${S.y}px) scale(${_.scale})`:void 0,[gi.swipeMovementX]:`${J}px`,[gi.swipeMovementY]:`${ie}px`}}const Se=r.priority==="high",Oe={role:Se?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":V,"aria-describedby":A,"aria-hidden":Se&&!se?!0:void 0,onPointerDown:p?ue:void 0,onPointerMove:p?le:void 0,onPointerUp:p?Z:void 0,onPointerCancel:p?xe:void 0,onKeyDown:Re,inert:Oy(r.limited),style:{...Ae(),[gi.index]:r.transitionStatus==="ending"?Q:re,[gi.offsetY]:`${ce}px`,[gi.height]:r.height?`${r.height}px`:void 0}},Ye=h.useMemo(()=>({rootRef:j,toast:r,titleId:V,setTitleId:U,descriptionId:A,setDescriptionId:H,swiping:v,swipeDirection:b,recalculateHeight:de,index:Q,visibleIndex:re,expanded:ee}),[r,V,A,v,b,de,Q,re,ee]),Fe={transitionStatus:r.transitionStatus,expanded:ee,limited:r.limited||!1,type:r.type,swiping:Ye.swiping,swipeDirection:Ye.swipeDirection},G=lt("div",t,{ref:[n,Ye.rootRef],state:Fe,stateAttributesMapping:Aie,props:[Oe,u]});return w.jsx(Kx.Provider,{value:Ye,children:G})});process.env.NODE_ENV!=="production"&&(Hx.displayName="ToastRoot");const Wx=h.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{visibleIndex:a,expanded:u,recalculateHeight:c}=Ad(),f=h.useRef(null);Le(()=>{const y=f.current;if(!y||(c(),typeof ResizeObserver!="function"||typeof MutationObserver!="function"))return;const v=new ResizeObserver(()=>c(!0)),E=new MutationObserver(()=>c(!0));return v.observe(y),E.observe(y,{childList:!0,subtree:!0,characterData:!0}),()=>{v.disconnect(),E.disconnect()}},[c]);const p=a>0;return lt("div",t,{ref:[n,f],state:{expanded:u,behind:p},props:s})});process.env.NODE_ENV!=="production"&&(Wx.displayName="ToastContent");const Ux=h.forwardRef(function(t,n){const{render:r,className:o,style:i,id:s,children:a,...u}=t,{toast:c,setDescriptionId:f}=Ad(),p=a??c.description,m=!!p,b=ys(s);Le(()=>{if(m)return f(b),()=>{f(void 0)}},[m,b,f]);const y={type:c.type},v=lt("p",t,{ref:n,state:y,props:{...u,id:b,children:p}});return m?v:null});process.env.NODE_ENV!=="production"&&(Ux.displayName="ToastDescription");const zx=h.forwardRef(function(t,n){const{render:r,className:o,style:i,id:s,children:a,...u}=t,{toast:c,setTitleId:f}=Ad(),p=a??c.title,m=!!p,b=ys(s);Le(()=>{if(m)return f(b),()=>{f(void 0)}},[m,b,f]);const y={type:c.type},v=lt("h2",t,{ref:n,state:y,props:{...u,id:b,children:p}});return m?v:null});process.env.NODE_ENV!=="production"&&(zx.displayName="ToastTitle");const Gx=h.forwardRef(function(t,n){const{render:r,className:o,style:i,disabled:s,nativeButton:a=!0,...u}=t,c=eh(),{toast:f}=Ad(),p=c.useState("expanded"),[m,b]=h.useState(!1),{getButtonProps:y,buttonRef:v}=ga({disabled:s,native:a}),E={type:f.type};return lt("button",t,{ref:[n,v],state:E,props:[{"aria-hidden":!p&&!m,onClick(){c.closeToast(f.id)},onFocus(){b(!0)},onBlur(){b(!1)}},u,y]})});process.env.NODE_ENV!=="production"&&(Gx.displayName="ToastClose");const hN=h.forwardRef(function(t,n){const{render:r,className:o,style:i,disabled:s,nativeButton:a=!0,...u}=t,{toast:c}=Ad(),f=c.actionProps?.children??u.children,p=!!f,{getButtonProps:m,buttonRef:b}=ga({disabled:s,native:a}),y={type:c.type},v=lt("button",t,{ref:[n,b],state:y,props:[u,c.actionProps,m,{children:f}]});return p?v:null});process.env.NODE_ENV!=="production"&&(hN.displayName="ToastAction");const gN=Rx,Yx=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Yx.displayName="ToastPositionerContext");function Lie(){const e=h.useContext(Yx);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ToastPositionerContext is missing. ToastPositioner parts must be placed within <Toast.Positioner>.":zt(84));return e}const vN=h.forwardRef(function(t,n){const{toast:r,...o}=t,i=eh(),s=r.positionerProps??yn,{render:a,className:u,anchor:c=s.anchor,positionMethod:f=s.positionMethod??"absolute",side:p=s.side??"top",align:m=s.align??"center",sideOffset:b=s.sideOffset??0,alignOffset:y=s.alignOffset??0,collisionBoundary:v=s.collisionBoundary??"clipping-ancestors",collisionPadding:E=s.collisionPadding??5,arrowPadding:x=s.arrowPadding??5,sticky:R=s.sticky??!1,disableAnchorTracking:P=s.disableAnchorTracking??!1,collisionAvoidance:O=s.collisionAvoidance??q_,style:S,...T}=o,[_,$]=h.useState(null),V=i.useState("toastIndex",r.id),U=i.useState("toastVisibleIndex",r.id),A=et(c)?c:null,H=KO({open:!0,onOpenChange:At,elements:{floating:_,reference:A}}),F=CA({anchor:A,positionMethod:f,floatingRootContext:H,mounted:!0,side:p,sideOffset:b,align:m,alignOffset:y,collisionBoundary:v,collisionPadding:E,sticky:R,arrowPadding:x,disableAnchorTracking:P,keepMounted:!0,collisionAvoidance:O}),N=h.useMemo(()=>({side:F.side,align:F.align,anchorHidden:F.anchorHidden}),[F.side,F.align,F.anchorHidden]),j=SA(t,N,{styles:{...F.positionerStyles,[gi.index]:r.transitionStatus==="ending"?V:U},transitionStatus:r.transitionStatus,props:T,refs:[n,$]});return w.jsx(Yx.Provider,{value:F,children:j})});process.env.NODE_ENV!=="production"&&(vN.displayName="ToastPositioner");const bN=h.forwardRef(function(t,n){const{className:r,render:o,style:i,...s}=t,{arrowRef:a,side:u,align:c,arrowUncentered:f,arrowStyles:p}=Lie();return lt("div",t,{state:{side:u,align:c,uncentered:f},ref:[n,a],props:[{style:p,"aria-hidden":!0},s]})});process.env.NODE_ENV!=="production"&&(bN.displayName="ToastArrow");function Xx(){const e=h.useContext(Jm);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: useToastManager must be used within <Toast.Provider>.":zt(73));const t=e.useState("toasts");return h.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function yN(){const e=new Set;function t(n){e.forEach(r=>r(n))}return{" subscribe":function(r){return e.add(r),()=>{e.delete(r)}},add(n){const r=n.id||mN("toast"),o={...n,id:r,transitionStatus:"starting"};return t({action:"add",options:o}),r},close(n){t({action:"close",options:{id:n}})},update(n,r){t({action:"update",options:{...r,id:n}})},promise(n,r){let o=n;return t({action:"promise",options:{...r,promise:n,setPromise(i){o=i}}}),o}}}const qie=Object.freeze(Object.defineProperty({__proto__:null,Action:hN,Arrow:bN,Close:Gx,Content:Wx,Description:Ux,Portal:gN,Positioner:vN,Provider:Bx,Root:Hx,Title:zx,Viewport:Vx,createToastManager:yN,useToastManager:Xx},Symbol.toStringTag,{value:"Module"})),th={default:{icon:null,ringClass:"ring-input",titleClass:"",bgClass:""},success:{icon:cH,ringClass:"ring-success",titleClass:"text-success",bgClass:"bg-success/5"},error:{icon:fH,ringClass:"ring-error",titleClass:"text-error",bgClass:"bg-error/5"},warning:{icon:_H,ringClass:"ring-warning",titleClass:"text-warning",bgClass:"bg-warning/5"},info:{icon:D$,ringClass:"ring-info",titleClass:"text-info",bgClass:"bg-info/5"}};function xN({variant:e="default"}={}){return me("rounded-xl ring-1 bg-clip-padding p-4 shadow-lg bg-background",th[e].ringClass)}function Zx(e){return{...e,close:t=>e.close(t),add:t=>{if(t.id){const n=e.toasts;if(n){const r=n.find(o=>o.id===t.id);if(r&&r.transitionStatus!=="ending")return e.update(t.id,{bump:!1}),requestAnimationFrame(()=>{e.update(t.id,{bump:!0,...t.timeout!==void 0&&{timeout:t.timeout}})}),t.id;if(r&&r.transitionStatus==="ending")return t.id}}return e.add({...t})},update:(t,n)=>e.update(t,{...n}),promise:(t,n)=>e.promise(t,{loading:{...n.loading},success:typeof n.success=="function"?r=>({...n.success(r)}):{...n.success},error:typeof n.error=="function"?r=>({...n.error(r)}):{...n.error}})}}function wN(){const e=Xx();return{...Zx(e),toasts:e.toasts}}function jie(){return Zx(yN())}let vi=null;function Fc(e){return typeof e=="string"?{title:e}:e}const Bie=Object.assign(e=>vi?.add({...Fc(e)}),{success:e=>vi?.add({variant:"success",...Fc(e)}),error:e=>vi?.add({variant:"error",...Fc(e)}),warning:e=>vi?.add({variant:"warning",...Fc(e)}),info:e=>vi?.add({variant:"info",...Fc(e)}),promise:(e,t)=>vi?.promise(e,t)});function Vie(){const e=Xx();return vi=D.useMemo(()=>Zx(e),[e]),D.useEffect(()=>()=>{vi=null},[]),null}function EN({children:e,toastManager:t,container:n}){return w.jsxs(Bx,{toastManager:t,children:[w.jsx(Vie,{}),e,w.jsx(gN,{container:n,children:w.jsx(Vx,{className:"fixed top-auto right-4 bottom-4 z-50 mx-auto flex w-[calc(100%-2rem)] sm:right-8 sm:bottom-8 sm:w-[340px]",children:w.jsx(Kie,{})})})]})}function Kie(){const{toasts:e}=wN();return e.map(t=>w.jsxs(Hx,{toast:t,"data-slot":"toast",className:me("absolute right-0 bottom-0 left-auto z-[calc(1000-var(--toast-index))] mr-0 h-[var(--height)] w-full origin-bottom select-none",xN({variant:t.variant}),"[--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))]","[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))] [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-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-[ending-style]:opacity-0 data-[expanded]:h-[var(--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%)]",t.bump&&"animate-toast-bump"),children:[w.jsx(Hie,{variant:t.variant}),w.jsxs(Wx,{className:"isolate flex flex-col gap-1 transition-opacity [transition-duration:250ms] data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100",children:[t.content??w.jsxs("div",{className:"flex items-start gap-2",children:[w.jsx(Wie,{variant:t.variant}),w.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[w.jsx(zx,{"data-slot":"toast-title",className:me("text-[0.975rem] leading-5 font-medium text-foreground",th[t.variant??"default"].titleClass)}),w.jsx(Ux,{"data-slot":"toast-description",className:"text-[0.925rem] leading-5 text-muted-foreground"}),!!t.actions?.length&&w.jsx("div",{className:"mt-2 flex min-w-0 flex-nowrap gap-2 overflow-x-auto p-px",children:t.actions.map((n,r)=>w.jsx(Tn,{...n},r))})]})]}),w.jsx(Gx,{className:"absolute top-2 right-2 flex h-4 w-4 items-center justify-center rounded border-none bg-transparent text-current/50 hover:bg-foreground/10 hover:text-current","aria-label":"Close",children:w.jsx(vd,{className:"h-3 w-3"})})]})]},t.id))}function Hie({variant:e}){const t=e?th[e].bgClass:"";return w.jsx("div",{className:me("absolute inset-0 rounded-[11px] bg-background/90",t)})}function Wie({variant:e}){if(!e||e==="default")return null;const{icon:t,titleClass:n}=th[e];return t?w.jsx(t,{"data-slot":"toast-icon",className:me("mt-0.5 h-4 w-4 shrink-0",n)}):null}function Uie({children:e,tooltipDelay:t,...n}){return w.jsx(_A,{delay:t,children:w.jsx(EN,{...n,children:e})})}const CN=({value:e,onChange:t,defaultValue:n="",...r})=>{const o=Im("Input",r),[i="",s]=Kt({prop:e,onChange:t,defaultProp:n}),a=u=>{s(u.target.value)};return w.jsx("input",{"data-slot":"input",autoComplete:"off",...o,value:i,onChange:a,className:me("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",o.className)})};function zie({className:e,...t}){return w.jsx("kbd",{className:me("pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-muted px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3",e),"data-slot":"kbd",...t})}function Gie({className:e,...t}){return w.jsx("kbd",{className:me("inline-flex items-center gap-1",e),"data-slot":"kbd-group",...t})}const Yie=Oi("animate-spin",{variants:{variant:{primary:"text-primary",secondary:"text-secondary",ghost:"text-muted-foreground",error:"text-error",success:"text-success",warning:"text-warning",info:"text-info"},size:{xs:"size-3",sm:"size-4",default:"size-7",lg:"size-10",xl:"size-14"}},defaultVariants:{variant:"primary",size:"default"}}),Xie=({center:e,containerClassName:t,variant:n,size:r,...o})=>w.jsx("div",{className:me(t,e&&"fixed inset-0 grid place-items-center"),"data-slot":"loader",children:w.jsx(nb,{"data-slot":"loader-icon",...o,className:me(Yie({variant:n,size:r}),o.className)})});function Zie(e){const[t=[],n]=D.useState(e);return[t,{insertAt:(m,b)=>{n((y=[])=>{const v=[...y];return v.splice(m,0,b),v})},removeAt:m=>{n((b=[])=>{const y=[...b];return y.splice(m,1),y})},updateAt:(m,b)=>{n((y=[])=>{const v=[...y];return v[m]=b,v})},clear:()=>n([]),reset:()=>n(e),push:m=>n((b=[])=>[...b,m]),set:m=>n(m),pop:()=>{n((m=[])=>{const b=[...m];return b.pop(),b})},update:(m,b)=>{n((y=[])=>{const v=[...y],E=_t.findIndex(v,m);return E===-1||(v[E]=_t.isFunction(b)?b(v[E]):b),v})}}]}function Qie({fn:e,dependencies:t=[],onError:n,onSuccess:r,onFinish:o}){const[i,s]=D.useState(!0),[a,u]=D.useState(null),[c,f]=D.useState(null),p=D.useCallback(()=>{s(!0),u(null),f(null),e().then(m=>{r?.(m),f(m)}).catch(m=>{n?.(m),u(m)}).finally(()=>{o?.(),s(!1)})},t);return D.useEffect(()=>{p()},[p]),{loading:i,error:a,data:c,refetch:p}}const Jie=(e,t=!0)=>{const n=D.useRef(null),r=o=>{n.current&&!n.current.contains(o.target)&&e()};return D.useEffect(()=>{if(t)return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[t]),n};function ese(){const[e,t]=D.useState(null),n=D.useCallback(async r=>{if(!navigator?.clipboard)return!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(o){return console.error(o),t(null),!1}},[]);return[e,n]}function tse(e,t){const n=D.useRef(null);return D.useCallback((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...r)},t)},[e,t])}function nse(e,t){const[n,r]=D.useState(e);return D.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>clearTimeout(o)},[e,t]),n}function rse(e=!1,t){const{onOpen:n,onClose:r}=t||{},[o,i]=D.useState(e),s=D.useCallback(()=>{i(c=>c||(n?.(),!0))},[n]),a=D.useCallback(()=>{i(c=>c&&(r?.(),!1))},[r]),u=D.useCallback(()=>{o?a():s()},[a,s,o]);return[o,{open:s,close:a,toggle:u}]}function ose(e){D.useEffect(()=>{typeof e=="string"&&e.trim().length>0&&(document.title=e.trim())},[e])}function RN(e,t,n){const r=D.useRef(null);return D.useEffect(()=>{const o=r.current??document;return o.addEventListener(e,t,n),()=>{o.removeEventListener(e,t,n)}},[e,t,n]),r}const ise=e=>{const t=e.toLowerCase().split("+");return{mainKey:t.pop(),isShift:t.includes("shift"),isCtrl:t.includes("ctrl"),isAlt:t.includes("alt"),isMeta:t.includes("meta")}},sse=(e,t)=>{const{mainKey:n,isShift:r,isCtrl:o,isAlt:i,isMeta:s}=ise(t);return e.key.toLowerCase()===n&&e.shiftKey===r&&e.ctrlKey===o&&e.altKey===i&&e.metaKey===s},ase=e=>e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable,lse=(e,t)=>t&&ase(e.target),use=(e,t,n,r,o)=>i=>{if(!o||lse(i,r))return;(Array.isArray(e)?e:[e]).some(u=>sse(i,u))&&(n&&i.preventDefault(),t(i))};function SN(e,t,n={}){const{eventName:r="keydown",preventDefault:o=!0,ignoreInputFields:i=!0,watch:s=!0}=n,a=D.useCallback(use(e,t,o,i,s),[e,t,o,i,s]);return RN(r,a)}function cse(e){const[t,n]=D.useState(!1),r=D.useRef(null);return D.useEffect(()=>{const o=a=>{n(!0),e?.onHoverStart?.(a)},i=a=>{n(!1),e?.onHoverEnd?.(a)},s=r.current;if(s)return s.addEventListener("mouseover",o),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",o),s.removeEventListener("mouseout",i)}},[e]),{ref:r,isHovering:t}}function dse({onVisible:e,root:t=null,rootMargin:n="0px",threshold:r=0}={}){const[o,i]=D.useState(!1),s=D.useRef(null),a=D.useCallback(([u])=>{const c=u.isIntersecting;i(c)},[e]);return D.useEffect(()=>{if(s.current==null)return;const u=new IntersectionObserver(a,{root:t,rootMargin:n,threshold:r});return u.observe(s.current),()=>{s.current!=null&&u.unobserve(s.current)}},[s,t,n,r,a]),D.useEffect(()=>{o&&e?.()},[o]),{ref:s,isVisible:o}}function fse(e,t){const n=()=>{try{const a=localStorage.getItem(e);return a?JSON.parse(a):t!==void 0?t:void 0}catch(a){return console.error(`Error parsing localStorage key "${e}":`,a),t!==void 0?t:void 0}},[r,o]=D.useState(n);return D.useEffect(()=>{try{r!==void 0?localStorage.setItem(e,JSON.stringify(r)):localStorage.removeItem(e)}catch(a){console.error(`Error setting localStorage key "${e}":`,a)}},[e,r]),[r,a=>{o(a)},()=>{try{localStorage.removeItem(e),o(t!==void 0?t:void 0)}catch(a){console.error(`Error removing localStorage key "${e}":`,a)}}]}const pse=e=>{const[t,n]=D.useState(!1);return D.useEffect(()=>{const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>{r.removeEventListener("change",o)}},[e]),t};function mse(e){_t.isFunction(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`);const t=D.useRef(e);t.current=D.useMemo(()=>e,[e]);const n=D.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}const hse=e=>{const[t,n]=D.useState(!1),[r,o]=D.useState(null),[i,s]=D.useState(null);return{mutate:D.useCallback(async(...u)=>{n(!0),o(null),s(null);try{const c=await e.fn(...u);return e.onSuccess?.(c),s(c),c}catch(c){const f=c;throw e.onError?.(f),o(f),f}finally{e.onFinish?.(),n(!1)}},[e]),loading:t,error:r,data:i}};function gse(e){const[t,n]=D.useState(e),r=D.useCallback(()=>n(e),[e]),o=D.useCallback(i=>{n(s=>{if(_t.isFunction(i)){const a=i(s);return _t.isObject(a)?{...s,...a}:s}else if(_t.isObject(i))return{...s,...i};return s})},[]);return[t,o,r]}function Qx({totalItems:e,pageSize:t,initialCurrentPage:n=1,onChange:r}){const[o,i]=D.useState(n),s=Math.ceil(e/t),a=o===s,u=o===1,c=(o-1)*t+1,f=Math.min(o*t,e),p=()=>{if(a)return;const v=Math.min(o+1,s);y(v)},m=()=>{if(u)return;const v=Math.max(o-1,1);y(v)},b=v=>{if(v===1&&u||v===s&&a)return;const E=Math.max(1,v),x=Math.min(E,s);y(x)},y=v=>{i(v),r?.({currentPage:v,pageSize:t})};return{next:p,prev:m,goTo:b,currentPage:o,maxPage:s,isFirstPage:u,isLastPage:a,range:{start:c,end:f}}}function vse(e){const t=()=>document.getElementById(e),n=()=>{const o=document.createElement("div");return o.id=e,o},r=D.useMemo(()=>{const o=t();return o||n()},[e]);return D.useEffect(()=>(document.getElementById(e)||document.body.appendChild(r),()=>{const o=document.getElementById(e);o&&document.body.removeChild(o)}),[e,r]),{render:o=>Wr.createPortal(o,r)}}function bse({shouldPrevent:e,message:t="Es posible que no se guarden los cambios hayas hecho."}){const n=r=>{if(e)return r.preventDefault(),r.returnValue=t,t};D.useEffect(()=>(window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n)),[t,e])}const wi="...",PN=({siblingCount:e=1,...t})=>{const n=Qx(t),{currentPage:r,maxPage:o}=n,{totalItems:i,pageSize:s}=t,a=()=>{const p=2+3*e,m=1;if(p>=o)return _t.range(m,o+1);const b=Math.max(r-e,1),y=Math.min(r+e,o),v=b>2,E=y<o-2;if(v&&E){const x=_t.range(b,y+1);return[m,wi,...x,wi,o]}if(E)return[..._t.range(m,p+1),wi,o];if(v){const x=_t.range(o-p+1,o+1);return[m,wi,...x]}},u=D.useMemo(a,[i,s,r,e]);return{...n,paginationRange:u??[]}};function yse(e){const[t,n]=D.useState(new Set),r=D.useCallback(f=>t.has(f),[t]),o=D.useCallback(f=>{n(p=>new Set([...p,f]))},[]),i=D.useCallback(f=>{n(p=>{const m=new Set(p);return m.delete(f),m})},[]),s=D.useCallback(f=>{n(p=>{const m=new Set(p);return m.has(f)?m.delete(f):m.add(f),m})},[]),a=D.useCallback(f=>{n(new Set(f))},[]),u=D.useCallback(()=>{n(f=>f.size===e.length?new Set:new Set(e))},[e]),c=D.useCallback(()=>n(new Set),[]);return{isAllSelected:t.size===e.length,isSomeSelected:t.size>0&&t.size<e.length,isNoneSelected:t.size===0,isSelected:r,selected:[...t],setSelected:a,select:o,unselect:i,toggle:s,toggleAll:u,clear:c}}function xse(e,t){const[n,r]=D.useState(0),o=t??e.length,i=()=>{r(c=>c>=o-1?c:c+1)},s=()=>{r(c=>c<=0?c:c-1)},a=c=>{r(c)},u=c=>{const f=_t.findIndex(e,c);f!==-1&&a(f)};return{currentStepIndex:n,step:e[n],steps:e,isFirstStep:n===0,isLastStep:n===o-1,goTo:a,next:i,back:s,findAndGo:u}}function TN(e=!1){const[t,n]=D.useState(e);return[t,o=>{n(o===void 0?!t:o)}]}const wse=/input|select|textarea|button|object/,_N="a, input, select, textarea, button, object, [tabindex]";function Ese(e){return process.env.NODE_ENV==="test"?!1:e.style.display==="none"}function Cse(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(Ese(n))return!1;n=n.parentNode}return!0}function ON(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function $b(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(ON(e));return(wse.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Cse(e)}function $N(e){const t=ON(e);return(Number.isNaN(t)||t>=0)&&$b(e)}function Rse(e){return Array.from(e.querySelectorAll(_N)).filter($N)}function Sse(e,t){const n=Rse(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=r===o.activeElement||e===o.activeElement;const s=o.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===s.getAttribute("name")).includes(r)),!i)return;t.preventDefault();const u=n[t.shiftKey?n.length-1:0];u&&u.focus()}function Pse(e=!0){const t=D.useRef(null),n=o=>{let i=o.querySelector("[data-autofocus]");if(!i){const s=Array.from(o.querySelectorAll(_N));i=s.find($N)||s.find($b)||null,!i&&$b(o)&&(i=o)}i&&i.focus({preventScroll:!0})},r=D.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),t.current=o):t.current=null)},[e]);return D.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const o=i=>{i.key==="Tab"&&t.current&&Sse(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),r}function Tse(e){const t=_se(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find($se);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function _se(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=Mse(o),a=Dse(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ose=Symbol("radix.slottable");function $se(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ose}function Dse(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Mse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ase=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nse=Ase.reduce((e,t)=>{const n=Tse(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function kT(e){const t=Ise(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(Fse);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ise(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=qse(o),a=Lse(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kse=Symbol("radix.slottable");function Fse(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kse}function Lse(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Jx(e){const t=e+"CollectionProvider",[n,r]=Go(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:E,children:x}=v,R=D.useRef(null),P=D.useRef(new Map).current;return w.jsx(o,{scope:E,itemMap:P,collectionRef:R,children:x})};s.displayName=t;const a=e+"CollectionSlot",u=kT(a),c=D.forwardRef((v,E)=>{const{scope:x,children:R}=v,P=i(a,x),O=it(E,P.collectionRef);return w.jsx(u,{ref:O,children:R})});c.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=kT(f),b=D.forwardRef((v,E)=>{const{scope:x,children:R,...P}=v,O=D.useRef(null),S=it(E,O),T=i(f,x);return D.useEffect(()=>(T.itemMap.set(O,{ref:O,...P}),()=>{T.itemMap.delete(O)})),w.jsx(m,{[p]:"",ref:S,children:R})});b.displayName=f;function y(v){const E=i(e+"CollectionConsumer",v);return D.useCallback(()=>{const R=E.collectionRef.current;if(!R)return[];const P=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((T,_)=>P.indexOf(T.ref.current)-P.indexOf(_.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:s,Slot:c,ItemSlot:b},y,r]}var jse=h.createContext(void 0);function ew(e){const t=h.useContext(jse);return e||t||"ltr"}function Bse(e){const t=Vse(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(Hse);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Vse(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=Use(o),a=Wse(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kse=Symbol("radix.slottable");function Hse(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kse}function Wse(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Use(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zse=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gse=zse.reduce((e,t)=>{const n=Bse(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Yse="Arrow",DN=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(Gse.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});DN.displayName=Yse;var Xse=DN;function Zse(e){const t=Qse(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(eae);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Qse(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=nae(o),a=tae(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jse=Symbol("radix.slottable");function eae(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jse}function tae(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function nae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MN=rae.reduce((e,t)=>{const n=Zse(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function oae(e){const[t,n]=h.useState(void 0);return xn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var tw="Popper",[AN,Ca]=Go(tw),[iae,NN]=AN(tw),IN=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return w.jsx(iae,{scope:t,anchor:r,onAnchorChange:o,children:n})};IN.displayName=tw;var kN="PopperAnchor",FN=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=NN(kN,n),s=h.useRef(null),a=it(t,s),u=h.useRef(null);return h.useEffect(()=>{const c=u.current;u.current=r?.current||s.current,c!==u.current&&i.onAnchorChange(u.current)}),r?null:w.jsx(MN.div,{...o,ref:a})});FN.displayName=kN;var nw="PopperContent",[sae,aae]=AN(nw),LN=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:y,...v}=e,E=NN(nw,n),[x,R]=h.useState(null),P=it(t,ee=>R(ee)),[O,S]=h.useState(null),T=oae(O),_=T?.width??0,$=T?.height??0,V=r+(i!=="center"?"-"+i:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(c)?c:[c],H=A.length>0,F={padding:U,boundary:A.filter(uae),altBoundary:H},{refs:N,floatingStyles:j,placement:I,isPositioned:k,middlewareData:q}=PO({strategy:"fixed",placement:V,whileElementsMounted:(...ee)=>Gv(...ee,{animationFrame:b==="always"}),elements:{reference:E.anchor},middleware:[TO({mainAxis:o+$,alignmentAxis:s}),u&&_O({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?OO():void 0,...F}),u&&$O({...F}),DO({...F,apply:({elements:ee,rects:de,availableWidth:K,availableHeight:ue})=>{const{width:le,height:Z}=de.reference,xe=ee.floating.style;xe.setProperty("--radix-popper-available-width",`${K}px`),xe.setProperty("--radix-popper-available-height",`${ue}px`),xe.setProperty("--radix-popper-anchor-width",`${le}px`),xe.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),O&&S9({element:O,padding:a}),cae({arrowWidth:_,arrowHeight:$}),m&&MO({strategy:"referenceHidden",...F})]}),[z,W]=BN(I),te=_n(y);xn(()=>{k&&te?.()},[k,te]);const X=q.arrow?.x,Q=q.arrow?.y,re=q.arrow?.centerOffset!==0,[ce,se]=h.useState();return xn(()=>{x&&se(window.getComputedStyle(x).zIndex)},[x]),w.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:k?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(sae,{scope:n,placedSide:z,onArrowChange:S,arrowX:X,arrowY:Q,shouldHideArrow:re,children:w.jsx(MN.div,{"data-side":z,"data-align":W,...v,ref:P,style:{...v.style,animation:k?void 0:"none"}})})})});LN.displayName=nw;var qN="PopperArrow",lae={top:"bottom",right:"left",bottom:"top",left:"right"},jN=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=aae(qN,r),s=lae[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(Xse,{...o,ref:n,style:{...o.style,display:"block"}})})});jN.displayName=qN;function uae(e){return e!==null}var cae=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,f]=BN(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+a/2,b=(o.arrow?.y??0)+u/2;let y="",v="";return c==="bottom"?(y=s?p:`${m}px`,v=`${-u}px`):c==="top"?(y=s?p:`${m}px`,v=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,v=s?p:`${b}px`):c==="left"&&(y=`${r.floating.width+u}px`,v=s?p:`${b}px`),{data:{x:y,y:v}}}});function BN(e){const[t,n="center"]=e.split("-");return[t,n]}var nh=IN,rh=FN,rw=LN,ow=jN;function VN(e){const t=dae(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(pae);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function dae(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=hae(o),a=mae(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fae=Symbol("radix.slottable");function pae(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fae}function mae(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function hae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nd=gae.reduce((e,t)=>{const n=VN(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vae(e,t){e&&er.flushSync(()=>e.dispatchEvent(t))}function bae(e){const t=yae(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(wae);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function yae(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=Cae(o),a=Eae(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xae=Symbol("radix.slottable");function wae(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xae}function Eae(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Cae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],KN=Rae.reduce((e,t)=>{const n=bae(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_v="rovingFocusGroup.onEntryFocus",Sae={bubbles:!1,cancelable:!0},Id="RovingFocusGroup",[Db,HN,Pae]=Jx(Id),[Tae,WN]=Go(Id,[Pae]),[_ae,Oae]=Tae(Id),UN=h.forwardRef((e,t)=>w.jsx(Db.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Db.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx($ae,{...e,ref:t})})}));UN.displayName=Id;var $ae=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...p}=e,m=h.useRef(null),b=it(t,m),y=ew(i),[v,E]=Kt({prop:s,defaultProp:a??null,onChange:u,caller:Id}),[x,R]=h.useState(!1),P=_n(c),O=HN(n),S=h.useRef(!1),[T,_]=h.useState(0);return h.useEffect(()=>{const $=m.current;if($)return $.addEventListener(_v,P),()=>$.removeEventListener(_v,P)},[P]),w.jsx(_ae,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:v,onItemFocus:h.useCallback($=>E($),[E]),onItemShiftTab:h.useCallback(()=>R(!0),[]),onFocusableItemAdd:h.useCallback(()=>_($=>$+1),[]),onFocusableItemRemove:h.useCallback(()=>_($=>$-1),[]),children:w.jsx(KN.div,{tabIndex:x||T===0?-1:0,"data-orientation":r,...p,ref:b,style:{outline:"none",...e.style},onMouseDown:Ie(e.onMouseDown,()=>{S.current=!0}),onFocus:Ie(e.onFocus,$=>{const V=!S.current;if($.target===$.currentTarget&&V&&!x){const U=new CustomEvent(_v,Sae);if($.currentTarget.dispatchEvent(U),!U.defaultPrevented){const A=O().filter(I=>I.focusable),H=A.find(I=>I.active),F=A.find(I=>I.id===v),j=[H,F,...A].filter(Boolean).map(I=>I.ref.current);YN(j,f)}}S.current=!1}),onBlur:Ie(e.onBlur,()=>R(!1))})})}),zN="RovingFocusGroupItem",GN=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,u=an(),c=i||u,f=Oae(zN,n),p=f.currentTabStopId===c,m=HN(n),{onFocusableItemAdd:b,onFocusableItemRemove:y,currentTabStopId:v}=f;return h.useEffect(()=>{if(r)return b(),()=>y()},[r,b,y]),w.jsx(Db.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:w.jsx(KN.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...a,ref:t,onMouseDown:Ie(e.onMouseDown,E=>{r?f.onItemFocus(c):E.preventDefault()}),onFocus:Ie(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:Ie(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){f.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const x=Aae(E,f.orientation,f.dir);if(x!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let P=m().filter(O=>O.focusable).map(O=>O.ref.current);if(x==="last")P.reverse();else if(x==="prev"||x==="next"){x==="prev"&&P.reverse();const O=P.indexOf(E.currentTarget);P=f.loop?Nae(P,O+1):P.slice(O+1)}setTimeout(()=>YN(P))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:v!=null}):s})})});GN.displayName=zN;var Dae={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mae(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aae(e,t,n){const r=Mae(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Dae[r]}function YN(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Nae(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Iae=UN,kae=GN,Mb=["Enter"," "],Fae=["ArrowDown","PageUp","Home"],XN=["ArrowUp","PageDown","End"],Lae=[...Fae,...XN],qae={ltr:[...Mb,"ArrowRight"],rtl:[...Mb,"ArrowLeft"]},jae={ltr:["ArrowLeft"],rtl:["ArrowRight"]},kd="Menu",[ad,Bae,Vae]=Jx(kd),[Rs,ZN]=Go(kd,[Vae,Ca,WN]),Fd=Ca(),QN=WN(),[JN,$i]=Rs(kd),[Kae,Ld]=Rs(kd),eI=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Fd(t),[u,c]=h.useState(null),f=h.useRef(!1),p=_n(i),m=ew(o);return h.useEffect(()=>{const b=()=>{f.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>f.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),w.jsx(nh,{...a,children:w.jsx(JN,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:w.jsx(Kae,{scope:t,onClose:h.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};eI.displayName=kd;var Hae="MenuAnchor",iw=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Fd(n);return w.jsx(rh,{...o,...r,ref:t})});iw.displayName=Hae;var sw="MenuPortal",[Wae,tI]=Rs(sw,{forceMount:void 0}),nI=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=$i(sw,t);return w.jsx(Wae,{scope:t,forceMount:n,children:w.jsx(Gr,{present:n||i.open,children:w.jsx(xd,{asChild:!0,container:o,children:r})})})};nI.displayName=sw;var Or="MenuContent",[Uae,aw]=Rs(Or),rI=h.forwardRef((e,t)=>{const n=tI(Or,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=$i(Or,e.__scopeMenu),s=Ld(Or,e.__scopeMenu);return w.jsx(ad.Provider,{scope:e.__scopeMenu,children:w.jsx(Gr,{present:r||i.open,children:w.jsx(ad.Slot,{scope:e.__scopeMenu,children:s.modal?w.jsx(zae,{...o,ref:t}):w.jsx(Gae,{...o,ref:t})})})})}),zae=h.forwardRef((e,t)=>{const n=$i(Or,e.__scopeMenu),r=h.useRef(null),o=it(t,r);return h.useEffect(()=>{const i=r.current;if(i)return Ed(i)},[]),w.jsx(lw,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ie(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Gae=h.forwardRef((e,t)=>{const n=$i(Or,e.__scopeMenu);return w.jsx(lw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Yae=VN("MenuContent.ScrollLock"),lw=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:b,disableOutsideScroll:y,...v}=e,E=$i(Or,n),x=Ld(Or,n),R=Fd(n),P=QN(n),O=Bae(n),[S,T]=h.useState(null),_=h.useRef(null),$=it(t,_,E.onContentChange),V=h.useRef(0),U=h.useRef(""),A=h.useRef(0),H=h.useRef(null),F=h.useRef("right"),N=h.useRef(0),j=y?ya:h.Fragment,I=y?{as:Yae,allowPinchZoom:!0}:void 0,k=z=>{const W=U.current+z,te=O().filter(ee=>!ee.disabled),X=document.activeElement,Q=te.find(ee=>ee.ref.current===X)?.textValue,re=te.map(ee=>ee.textValue),ce=ale(re,W,Q),se=te.find(ee=>ee.textValue===ce)?.ref.current;(function ee(de){U.current=de,window.clearTimeout(V.current),de!==""&&(V.current=window.setTimeout(()=>ee(""),1e3))})(W),se&&setTimeout(()=>se.focus())};h.useEffect(()=>()=>window.clearTimeout(V.current),[]),Fm();const q=h.useCallback(z=>F.current===H.current?.side&&ule(z,H.current?.area),[]);return w.jsx(Uae,{scope:n,searchRef:U,onItemEnter:h.useCallback(z=>{q(z)&&z.preventDefault()},[q]),onItemLeave:h.useCallback(z=>{q(z)||(_.current?.focus(),T(null))},[q]),onTriggerLeave:h.useCallback(z=>{q(z)&&z.preventDefault()},[q]),pointerGraceTimerRef:A,onPointerGraceIntentChange:h.useCallback(z=>{H.current=z},[]),children:w.jsx(j,{...I,children:w.jsx(yd,{asChild:!0,trapped:o,onMountAutoFocus:Ie(i,z=>{z.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:w.jsx(bd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:b,children:w.jsx(Iae,{asChild:!0,...P,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:T,onEntryFocus:Ie(u,z=>{x.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(rw,{role:"menu","aria-orientation":"vertical","data-state":xI(E.open),"data-radix-menu-content":"",dir:x.dir,...R,...v,ref:$,style:{outline:"none",...v.style},onKeyDown:Ie(v.onKeyDown,z=>{const te=z.target.closest("[data-radix-menu-content]")===z.currentTarget,X=z.ctrlKey||z.altKey||z.metaKey,Q=z.key.length===1;te&&(z.key==="Tab"&&z.preventDefault(),!X&&Q&&k(z.key));const re=_.current;if(z.target!==re||!Lae.includes(z.key))return;z.preventDefault();const se=O().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);XN.includes(z.key)&&se.reverse(),ile(se)}),onBlur:Ie(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(V.current),U.current="")}),onPointerMove:Ie(e.onPointerMove,ld(z=>{const W=z.target,te=N.current!==z.clientX;if(z.currentTarget.contains(W)&&te){const X=z.clientX>N.current?"right":"left";F.current=X,N.current=z.clientX}}))})})})})})})});rI.displayName=Or;var Xae="MenuGroup",uw=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(Nd.div,{role:"group",...r,ref:t})});uw.displayName=Xae;var Zae="MenuLabel",oI=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(Nd.div,{...r,ref:t})});oI.displayName=Zae;var lm="MenuItem",FT="menu.itemSelect",oh=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=h.useRef(null),s=Ld(lm,e.__scopeMenu),a=aw(lm,e.__scopeMenu),u=it(t,i),c=h.useRef(!1),f=()=>{const p=i.current;if(!n&&p){const m=new CustomEvent(FT,{bubbles:!0,cancelable:!0});p.addEventListener(FT,b=>r?.(b),{once:!0}),vae(p,m),m.defaultPrevented?c.current=!1:s.onClose()}};return w.jsx(iI,{...o,ref:u,disabled:n,onClick:Ie(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),c.current=!0},onPointerUp:Ie(e.onPointerUp,p=>{c.current||p.currentTarget?.click()}),onKeyDown:Ie(e.onKeyDown,p=>{const m=a.searchRef.current!=="";n||m&&p.key===" "||Mb.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});oh.displayName=lm;var iI=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=aw(lm,n),a=QN(n),u=h.useRef(null),c=it(t,u),[f,p]=h.useState(!1),[m,b]=h.useState("");return h.useEffect(()=>{const y=u.current;y&&b((y.textContent??"").trim())},[i.children]),w.jsx(ad.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:w.jsx(kae,{asChild:!0,...a,focusable:!r,children:w.jsx(Nd.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:Ie(e.onPointerMove,ld(y=>{r?s.onItemLeave(y):(s.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ie(e.onPointerLeave,ld(y=>s.onItemLeave(y))),onFocus:Ie(e.onFocus,()=>p(!0)),onBlur:Ie(e.onBlur,()=>p(!1))})})})}),Qae="MenuCheckboxItem",sI=h.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(dI,{scope:e.__scopeMenu,checked:n,children:w.jsx(oh,{role:"menuitemcheckbox","aria-checked":um(n)?"mixed":n,...o,ref:t,"data-state":fw(n),onSelect:Ie(o.onSelect,()=>r?.(um(n)?!0:!n),{checkForDefaultPrevented:!1})})})});sI.displayName=Qae;var aI="MenuRadioGroup",[Jae,ele]=Rs(aI,{value:void 0,onValueChange:()=>{}}),lI=h.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=_n(r);return w.jsx(Jae,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(uw,{...o,ref:t})})});lI.displayName=aI;var uI="MenuRadioItem",cI=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=ele(uI,e.__scopeMenu),i=n===o.value;return w.jsx(dI,{scope:e.__scopeMenu,checked:i,children:w.jsx(oh,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":fw(i),onSelect:Ie(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});cI.displayName=uI;var cw="MenuItemIndicator",[dI,tle]=Rs(cw,{checked:!1}),fI=h.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=tle(cw,n);return w.jsx(Gr,{present:r||um(i.checked)||i.checked===!0,children:w.jsx(Nd.span,{...o,ref:t,"data-state":fw(i.checked)})})});fI.displayName=cw;var nle="MenuSeparator",pI=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(Nd.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});pI.displayName=nle;var rle="MenuArrow",mI=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Fd(n);return w.jsx(ow,{...o,...r,ref:t})});mI.displayName=rle;var dw="MenuSub",[ole,hI]=Rs(dw),gI=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=$i(dw,t),s=Fd(t),[a,u]=h.useState(null),[c,f]=h.useState(null),p=_n(o);return h.useEffect(()=>(i.open===!1&&p(!1),()=>p(!1)),[i.open,p]),w.jsx(nh,{...s,children:w.jsx(JN,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:f,children:w.jsx(ole,{scope:t,contentId:an(),triggerId:an(),trigger:a,onTriggerChange:u,children:n})})})};gI.displayName=dw;var Vc="MenuSubTrigger",vI=h.forwardRef((e,t)=>{const n=$i(Vc,e.__scopeMenu),r=Ld(Vc,e.__scopeMenu),o=hI(Vc,e.__scopeMenu),i=aw(Vc,e.__scopeMenu),s=h.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,c={__scopeMenu:e.__scopeMenu},f=h.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return h.useEffect(()=>f,[f]),h.useEffect(()=>{const p=a.current;return()=>{window.clearTimeout(p),u(null)}},[a,u]),w.jsx(iw,{asChild:!0,...c,children:w.jsx(iI,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":xI(n.open),...e,ref:Ht(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ie(e.onPointerMove,ld(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Ie(e.onPointerLeave,ld(p=>{f();const m=n.content?.getBoundingClientRect();if(m){const b=n.content?.dataset.side,y=b==="right",v=y?-5:5,E=m[y?"left":"right"],x=m[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+v,y:p.clientY},{x:E,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:E,y:m.bottom}],side:b}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Ie(e.onKeyDown,p=>{const m=i.searchRef.current!=="";e.disabled||m&&p.key===" "||qae[r.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});vI.displayName=Vc;var bI="MenuSubContent",yI=h.forwardRef((e,t)=>{const n=tI(Or,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=$i(Or,e.__scopeMenu),s=Ld(Or,e.__scopeMenu),a=hI(bI,e.__scopeMenu),u=h.useRef(null),c=it(t,u);return w.jsx(ad.Provider,{scope:e.__scopeMenu,children:w.jsx(Gr,{present:r||i.open,children:w.jsx(ad.Slot,{scope:e.__scopeMenu,children:w.jsx(lw,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&u.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Ie(e.onFocusOutside,f=>{f.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Ie(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),m=jae[s.dir].includes(f.key);p&&m&&(i.onOpenChange(!1),a.trigger?.focus(),f.preventDefault())})})})})})});yI.displayName=bI;function xI(e){return e?"open":"closed"}function um(e){return e==="indeterminate"}function fw(e){return um(e)?"indeterminate":e?"checked":"unchecked"}function ile(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function sle(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ale(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=sle(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const u=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function lle(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],u=t[s],c=a.x,f=a.y,p=u.x,m=u.y;f>r!=m>r&&n<(p-c)*(r-f)/(m-f)+c&&(o=!o)}return o}function ule(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lle(n,t)}function ld(e){return t=>t.pointerType==="mouse"?e(t):void 0}var cle=eI,dle=iw,fle=nI,ple=rI,mle=uw,hle=oI,gle=oh,vle=sI,ble=lI,yle=cI,xle=fI,wle=pI,Ele=mI,Cle=gI,Rle=vI,Sle=yI,ih="DropdownMenu",[Ple]=Go(ih,[ZN]),Fn=ZN(),[Tle,wI]=Ple(ih),EI=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,u=Fn(t),c=h.useRef(null),[f,p]=Kt({prop:o,defaultProp:i??!1,onChange:s,caller:ih});return w.jsx(Tle,{scope:t,triggerId:an(),triggerRef:c,contentId:an(),open:f,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(m=>!m),[p]),modal:a,children:w.jsx(cle,{...u,open:f,onOpenChange:p,dir:r,modal:a,children:n})})};EI.displayName=ih;var CI="DropdownMenuTrigger",RI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=wI(CI,n),s=Fn(n);return w.jsx(dle,{asChild:!0,...s,children:w.jsx(Nse.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ht(t,i.triggerRef),onPointerDown:Ie(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:Ie(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});RI.displayName=CI;var _le="DropdownMenuPortal",SI=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Fn(t);return w.jsx(fle,{...r,...n})};SI.displayName=_le;var PI="DropdownMenuContent",TI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wI(PI,n),i=Fn(n),s=h.useRef(!1);return w.jsx(ple,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:Ie(e.onCloseAutoFocus,a=>{s.current||o.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Ie(e.onInteractOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,f=u.button===2||c;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});TI.displayName=PI;var Ole="DropdownMenuGroup",_I=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(mle,{...o,...r,ref:t})});_I.displayName=Ole;var $le="DropdownMenuLabel",OI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(hle,{...o,...r,ref:t})});OI.displayName=$le;var Dle="DropdownMenuItem",$I=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(gle,{...o,...r,ref:t})});$I.displayName=Dle;var Mle="DropdownMenuCheckboxItem",DI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(vle,{...o,...r,ref:t})});DI.displayName=Mle;var Ale="DropdownMenuRadioGroup",MI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(ble,{...o,...r,ref:t})});MI.displayName=Ale;var Nle="DropdownMenuRadioItem",AI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(yle,{...o,...r,ref:t})});AI.displayName=Nle;var Ile="DropdownMenuItemIndicator",NI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(xle,{...o,...r,ref:t})});NI.displayName=Ile;var kle="DropdownMenuSeparator",II=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(wle,{...o,...r,ref:t})});II.displayName=kle;var Fle="DropdownMenuArrow",Lle=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(Ele,{...o,...r,ref:t})});Lle.displayName=Fle;var qle=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=Fn(t),[a,u]=Kt({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return w.jsx(Cle,{...s,open:a,onOpenChange:u,children:n})},jle="DropdownMenuSubTrigger",kI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(Rle,{...o,...r,ref:t})});kI.displayName=jle;var Ble="DropdownMenuSubContent",FI=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fn(n);return w.jsx(Sle,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});FI.displayName=Ble;var Vle=EI,Kle=RI,LI=SI,Hle=TI,Wle=_I,Ule=OI,zle=$I,Gle=DI,Yle=MI,Xle=AI,qI=NI,Zle=II,Qle=qle,Jle=kI,eue=FI;const jI=e=>w.jsx(Vle,{"data-slot":"menu",...e}),BI=e=>w.jsx(Kle,{"data-slot":"menu-trigger",...e}),tue=e=>w.jsx(Wle,{"data-slot":"menu-group",...e}),nue=e=>w.jsx(LI,{"data-slot":"menu-portal",...e}),VI=e=>w.jsx(Qle,{"data-slot":"menu-sub",...e}),rue=e=>w.jsx(Yle,{"data-slot":"menu-radio-group",...e}),KI=({className:e,inset:t,children:n,...r})=>w.jsxs(Jle,{"data-slot":"menu-sub-trigger",className:me("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state='open']:bg-accent",t&&"pl-8",e),...r,children:[n,w.jsx(gd,{className:"ml-auto h-4 w-4"})]}),HI=({className:e,...t})=>w.jsx(eue,{"data-slot":"menu-sub-content",className:me("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']: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",e),...t}),WI=({className:e,sideOffset:t=4,...n})=>w.jsx(LI,{"data-slot":"menu-portal",children:w.jsx(Hle,{"data-slot":"menu-content",sideOffset:t,className:me("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state='open']:animate-in data-[state='closed']:animate-out data-[state='closed']:fade-out-0 data-[state='open']:fade-in-0 data-[state='closed']:zoom-out-95 data-[state='open']: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",e),...n})}),UI=({className:e,inset:t,...n})=>w.jsx(zle,{"data-slot":"menu-item",className:me("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}),zI=({className:e,children:t,checked:n,...r})=>w.jsxs(Gle,{"data-slot":"menu-checkbox-item",className:me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(qI,{children:w.jsx(tb,{className:"h-4 w-4"})})}),t]}),GI=({className:e,children:t,...n})=>w.jsxs(Xle,{"data-slot":"menu-radio-item",className:me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(qI,{children:w.jsx(mH,{className:"h-2 w-2 fill-current"})})}),t]}),YI=({className:e,inset:t,...n})=>w.jsx(Ule,{"data-slot":"menu-label",className:me("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}),XI=({className:e,...t})=>w.jsx(Zle,{"data-slot":"menu-separator",className:me("-mx-1 my-1 h-px bg-muted",e),...t}),ZI=({className:e,keys:t,handler:n,options:r={},...o})=>(SN(t,n,r),w.jsx("span",{"data-slot":"menu-shortcut",className:me("ml-auto text-xs tracking-widest opacity-60",e),...o})),QI=(e,t)=>{switch(e.type){case"item":return w.jsxs(UI,{...e,children:[e.label," ",t]});case"checkbox":return w.jsxs(zI,{...e,children:[e.label," ",t]});case"radio":return w.jsxs(GI,{...e,children:[e.label," ",t]});case"label":return w.jsxs(YI,{...e,children:[e.label," "]});case"separator":return w.jsx(XI,{...e});case"submenu":return w.jsxs(VI,{children:[w.jsx(KI,{...e,children:e.label}),w.jsx(HI,{children:e.items?.map((n,r)=>w.jsx(D.Fragment,{children:QI(n)},r))})]});default:return null}},oue=({trigger:e,items:t,contentProps:n,side:r="bottom",offset:o})=>w.jsxs(jI,{children:[w.jsx(BI,{asChild:!0,children:e}),w.jsx(WI,{side:r,sideOffset:o,...n,children:t.map(({shortcut:i,onShortcut:s,shortcutOptions:a,...u},c)=>w.jsx(D.Fragment,{children:QI(u,i&&w.jsx(ZI,{keys:i,handler:f=>s?.(f),options:a,children:i}))},c))})]}),JI=Oi("inline-flex items-center relative overflow-hidden bg-gray-100 gap-1 px-2.5 py-0.5 text-xs font-normal transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{rounded:{default:"rounded-(--radius-tag)",full:"rounded-full",square:"rounded-sm"},variant:{primary:"bg-primary border-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary border-secondary !text-secondary-foreground hover:bg-secondary/80",error:"bg-error border-error text-error-foreground hover:bg-error/80",success:"bg-success border-success text-success-foreground hover:bg-success/80",outline:"border border-foreground text-foreground",borderless:"text-foreground"}},defaultVariants:{rounded:"default",variant:"primary"}}),Ab=({className:e,color:t,variant:n,rounded:r,icon:o,closable:i,onClose:s,children:a,...u})=>{const c=!!t&&(n==="outline"||n==="borderless"),f=!!t&&!n;return w.jsxs("div",{"data-slot":"tag",className:me(JI({variant:n,rounded:r}),c&&"bg-white",f&&" text-white",!!o&&"pl-1.5",!!i&&"pr-1.5",e),style:{...c&&{color:t,borderColor:t},...f&&{borderColor:t,backgroundColor:t}},...u,children:[o,a,i&&w.jsx("button",{type:"button","data-slot":"tag-close",className:"z-10 h-4 w-4 cursor-pointer",onClick:p=>{p.stopPropagation(),s()},children:w.jsx(vd,{"data-slot":"tag-close-icon"})}),w.jsx("span",{"data-slot":"tag-overlay",className:"w-full h-full absolute top-0 left-0",style:{...c&&{opacity:.13,backgroundColor:t}}})]})};function ek(e){const t=iue(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(aue);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function iue(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=uue(o),a=lue(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sue=Symbol("radix.slottable");function aue(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sue}function lue(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function uue(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tk=cue.reduce((e,t)=>{const n=ek(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),sh="Popover",[nk]=Go(sh,[Ca]),qd=Ca(),[due,Di]=nk(sh),rk=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=qd(t),u=h.useRef(null),[c,f]=h.useState(!1),[p,m]=Kt({prop:r,defaultProp:o??!1,onChange:i,caller:sh});return w.jsx(nh,{...a,children:w.jsx(due,{scope:t,contentId:an(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:s,children:n})})};rk.displayName=sh;var ok="PopoverAnchor",fue=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Di(ok,n),i=qd(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return h.useEffect(()=>(s(),()=>a()),[s,a]),w.jsx(rh,{...i,...r,ref:t})});fue.displayName=ok;var ik="PopoverTrigger",sk=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Di(ik,n),i=qd(n),s=it(t,o.triggerRef),a=w.jsx(tk.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dk(o.open),...r,ref:s,onClick:Ie(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:w.jsx(rh,{asChild:!0,...i,children:a})});sk.displayName=ik;var pw="PopoverPortal",[pue,mue]=nk(pw,{forceMount:void 0}),ak=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Di(pw,t);return w.jsx(pue,{scope:t,forceMount:n,children:w.jsx(Gr,{present:n||i.open,children:w.jsx(xd,{asChild:!0,container:o,children:r})})})};ak.displayName=pw;var da="PopoverContent",lk=h.forwardRef((e,t)=>{const n=mue(da,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Di(da,e.__scopePopover);return w.jsx(Gr,{present:r||i.open,children:i.modal?w.jsx(gue,{...o,ref:t}):w.jsx(vue,{...o,ref:t})})});lk.displayName=da;var hue=ek("PopoverContent.RemoveScroll"),gue=h.forwardRef((e,t)=>{const n=Di(da,e.__scopePopover),r=h.useRef(null),o=it(t,r),i=h.useRef(!1);return h.useEffect(()=>{const s=r.current;if(s)return Ed(s)},[]),w.jsx(ya,{as:hue,allowPinchZoom:!0,children:w.jsx(uk,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,s=>{s.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),vue=h.forwardRef((e,t)=>{const n=Di(da,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return w.jsx(uk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),uk=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:f,...p}=e,m=Di(da,n),b=qd(n);return Fm(),w.jsx(yd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(bd,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:w.jsx(rw,{"data-state":dk(m.open),role:"dialog",id:m.contentId,...b,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ck="PopoverClose",bue=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Di(ck,n);return w.jsx(tk.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});bue.displayName=ck;var yue="PopoverArrow",xue=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qd(n);return w.jsx(ow,{...o,...r,ref:t})});xue.displayName=yue;function dk(e){return e?"open":"closed"}var wue=rk,Eue=sk,Cue=ak,Rue=lk;const jd=e=>w.jsx(wue,{"data-slot":"popover",...e}),Bd=e=>w.jsx(Eue,{"data-slot":"popover-trigger",...e}),Vd=({className:e,align:t="center",sideOffset:n=4,matchTriggerWidth:r=!1,style:o,focus:i=!0,...s})=>w.jsx(Cue,{children:w.jsx(Rue,{"data-slot":"popover-content",align:t,sideOffset:n,onOpenAutoFocus:a=>{!i&&a.preventDefault(),s?.onOpenAutoFocus?.(a)},className:me("z-50 w-72 p-4 rounded-md border bg-popover text-popover-foreground shadow-md outline-none open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open: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",e),style:{...o,...r&&{width:"var(--radix-popper-anchor-width)"}},...s})}),Sue=e=>{const{trigger:t,children:n,rootProps:r,triggerProps:o,contentProps:i,triggerAsChild:s=!0,matchTriggerWidth:a,triggerClassName:u,contentClassName:c,side:f="bottom",offset:p}=Im("Popover",e,{triggerAsChild:!0,side:"bottom"});return w.jsxs(jd,{...r,children:[w.jsx(Bd,{asChild:s,className:u,...o,children:t}),w.jsx(Vd,{className:c,matchTriggerWidth:a,side:f,sideOffset:p,...i,children:n})]})},LT=Oi("m-1 transition ease-in-out delay-150 duration-300",{variants:{variant:{default:"border-foreground/10 border text-foreground bg-card hover:bg-card/80",primary:"border-foreground/10 border text-foreground bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-foreground/60 border bg-secondary text-secondary-foreground hover:bg-secondary/80",error:"border-transparent bg-error text-error-foreground hover:bg-error/80"}},defaultVariants:{variant:"default"}}),Pue=({valueKey:e,values:t,setValues:n,items:r,maxCount:o,setIsPopoverOpen:i})=>{const s=m=>{if(m.key==="Enter")i(!0);else if(m.key==="Backspace"&&!m.currentTarget.value){const b=[...t];b.pop(),n?.(b)}},a=m=>{const b=t.includes(m)?t.filter(y=>y!==m):[...t,m];n?.(b)},u=()=>{n?.([])};return{handleInputKeyDown:s,toggleOption:a,handleClear:u,handleTogglePopover:()=>{i(m=>!m)},clearExtraOptions:()=>{const m=t.slice(0,o);n?.(m)},toggleAll:()=>{const m=r.filter(b=>!b.disabled);if(t.length===m.length)u();else{const b=m.map(y=>y[e]);n?.(b)}}}},Tue=({items:e=[],value:t,valueKey:n="value",labelKey:r="label",onChange:o,variant:i,defaultValue:s=[],placeholder:a="Seleccionar",maxCount:u=3,className:c,renderOption:f=E=>E[r],withCheckbox:p=!1,showSearch:m=!0,showSelectAll:b=!0,rootProps:y,...v})=>{const[E=[],x]=Kt({prop:t,onChange:o,defaultProp:s}),[R,P]=Kt({prop:v.open,onChange:v.onOpenChange,defaultProp:v.defaultOpen||!1}),O=h.useMemo(()=>e.filter(A=>!A.disabled),[e]),{handleInputKeyDown:S,toggleOption:T,handleClear:_,handleTogglePopover:$,clearExtraOptions:V,toggleAll:U}=Pue({valueKey:n,values:E,setValues:x,items:e,maxCount:u,setIsPopoverOpen:P});return w.jsxs(jd,{open:R,onOpenChange:P,"data-slot":"multi-select",...y,children:[w.jsx(Bd,{asChild:!0,"data-slot":"multi-select-trigger",children:w.jsx(Tn,{...v,onClick:$,className:me("flex w-full p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit",c),children:E.length>0?w.jsxs("div",{className:"flex justify-between items-center w-full",children:[w.jsxs("div",{className:"flex flex-wrap items-center","data-slot":"multi-select-tags",children:[E.slice(0,u).map(A=>{const H=e.find(N=>N[n]===A),F=H?.icon;return w.jsxs(Ab,{"data-slot":"multi-select-tag",className:me(LT({variant:i})),closable:!0,onClose:()=>T(A),children:[F&&w.jsx(F,{className:"h-4 w-4 mr-2"}),H&&f?.(H)]},A)}),E.length>u&&w.jsx(Ab,{"data-slot":"multi-select-tag",className:me(LT({variant:i})),closable:!0,onClose:V,children:`+ ${E.length-u} más`})]}),w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx(vd,{"data-slot":"multi-select-clear",className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:A=>{A.stopPropagation(),_()}}),w.jsx(FA,{"data-slot":"multi-select-divider",orientation:"vertical",className:"flex min-h-6 h-full"}),w.jsx(Gp,{"data-slot":"multi-select-trigger-icon",className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):w.jsxs("div",{className:"flex items-center justify-between w-full mx-auto","data-slot":"multi-select-trigger-empty",children:[w.jsx("span",{className:"text-sm text-foreground font-normal mx-2","data-slot":"multi-select-placeholder",children:a}),w.jsx(Gp,{"data-slot":"multi-select-trigger-icon",className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),w.jsx(Vd,{"data-slot":"multi-select-content",className:"p-0",matchTriggerWidth:!0,align:"start",asChild:!0,onEscapeKeyDown:()=>P(!1),children:w.jsxs(Rd,{children:[m&&w.jsx(Vm,{"data-slot":"multi-select-input",placeholder:"Buscar...",onKeyDown:S}),w.jsxs(Km,{"data-slot":"multi-select-list",children:[w.jsx(Hm,{"data-slot":"multi-select-empty",children:"No results found."}),w.jsxs(sM,{"data-slot":"multi-select-group",children:[b&&w.jsxs(nd,{"data-slot":"multi-select-item",onSelect:U,className:me("cursor-pointer",!p&&E.length===O.length&&"bg-accent text-accent-foreground"),children:[p&&w.jsx("div",{className:me("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",E.length===O.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:w.jsx(tb,{className:"h-4 w-4"})}),w.jsx("span",{children:"(Seleccionar todo)"})]},"all"),e.map(A=>{const H=E.includes(A[n]);return w.jsxs(nd,{"data-slot":"multi-select-item",onSelect:()=>!A.disabled&&T(A[n]),className:me(A.disabled?"!bg-neutral-50 !text-neutral-400":"cursor-pointer",!p&&H&&"!bg-accent !text-accent-foreground"),children:[p&&w.jsx("div",{className:me("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",H?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:w.jsx(tb,{className:"h-4 w-4"})}),A.icon&&w.jsx(A.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),w.jsx("span",{children:f?.(A)})]},A[n])})]})]})]})})]})},_ue=({value:e,onChange:t,defaultValue:n,className:r,min:o,max:i,...s})=>{const[a,u]=Kt({prop:e,onChange:t,defaultProp:n}),c=a??o??0,f=y=>{const v=parseInt(y.target.value,10);u(v)},p=()=>{if(_t.isUndefined(a)&&_t.isNumber(o))return u(o??0);const y=c+1;(_t.isUndefined(i)||y<=i)&&u(y)},m=()=>{if(_t.isUndefined(a)&&_t.isNumber(i))return u(i??0);const y=c-1;(_t.isUndefined(o)||y>=o)&&u(y)},b=()=>{const y=_t.isNumber(o)&&c<o,v=_t.isNumber(i)&&c>i;y?u(o):v&&u(i)};return w.jsxs("div",{className:"relative w-full","data-slot":"number-input-container",children:[w.jsx("input",{...s,type:"number",value:a,onChange:f,onBlur:b,min:o,max:i,className:me("numberInput","h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","file:border-0 file:bg-transparent file:text-sm file:font-medium",r),"data-slot":"number-input"}),w.jsxs("div",{className:"absolute right-0 top-0 h-full w-6 py-1 gap-px justify-center items-center flex flex-col border-l border-input overflow-hidden",children:[w.jsx(Tn,{variant:"ghost",size:"icon",onClick:p,className:"h-4 w-4 grow rounded-sm","data-testid":"increment-trigger","data-slot":"number-input-increment",children:w.jsx($$,{"data-slot":"number-input-increment-icon"})}),w.jsx(Tn,{variant:"ghost",size:"icon",onClick:m,className:"h-4 w-4 grow rounded-sm","data-testid":"decrement-trigger","data-slot":"number-input-decrement",children:w.jsx(O$,{"data-slot":"number-input-decrement-icon"})})]})]})},Us=({isActive:e=!1,...t})=>w.jsx("button",{...t,"data-slot":"pagination-option","data-active":e,"data-dots":t.children===wi,className:me("transition-colors border py-2 px-4 w-[50px] h-full data-[active=false]:hover:bg-accent","data-[active=true]:bg-primary data-[active=true]:text-primary-foreground data-[active=true]:border-transparent data-[active=true]:hover:bg-primary/90",t.className)}),Oue=({optionProps:e,className:t,containerProps:n,...r})=>{const{paginationRange:o,currentPage:i,goTo:s,maxPage:a,next:u,prev:c,isLastPage:f,isFirstPage:p}=PN(r);return w.jsxs("div",{...n,className:me("flex items-end select-none h-10",n?.className,t),"data-slot":"pagination",children:[w.jsxs(Us,{...e,disabled:p,onClick:()=>s(1),className:me("rounded-l-md",e?.className),children:[w.jsx(iH,{"data-slot":"pagination-option-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a primera página"})]}),w.jsxs(Us,{...e,onClick:c,disabled:p,children:[w.jsx(ky,{"data-slot":"pagination-option-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a página anterior"})]}),o.map(m=>w.jsx(w.Fragment,{children:m===wi?w.jsx(Us,{className:me("pointer-events-none",e?.className),children:wi},m):D.createElement(Us,{...e,isActive:m===i,onClick:()=>s(m),key:m},m,w.jsxs("span",{className:"sr-only",children:["Ir a la página ",m]}))})),w.jsxs(Us,{...e,onClick:u,disabled:f,children:[w.jsx(gd,{"data-slot":"pagination-option-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a próxima página"})]}),w.jsxs(Us,{...e,disabled:f,onClick:()=>s(a),className:me("rounded-r-md",e?.className),children:[w.jsx(aH,{"data-slot":"pagination-option-icon"}),w.jsx("span",{className:"sr-only",children:"Ir a última página"})]})]})},$ue=({className:e,containerClassName:t,showIcon:n=w.jsx(xH,{className:"h-4 w-4"}),hideIcon:r=w.jsx(bH,{className:"h-4 w-4"}),onShow:o,onHide:i,toggleable:s=!0,...a})=>{const[u,c]=TN(!1),f=()=>{c(),u?i?.():o?.()};return w.jsxs("div",{className:me("relative",t),"data-slot":"password",children:[w.jsx(CN,{...a,type:u?"text":"password",className:me("pr-10","[&::-ms-reveal]:hidden [&::-ms-clear]:hidden",e)}),w.jsx("button",{"data-slot":"password-toggle",type:"button",onClick:f,disabled:!s,className:me("absolute right-3 top-1/2 -translate-y-1/2 text-gray-500",s?"hover:text-gray-700":"opacity-50 cursor-not-allowed"),children:u?r:n})]})},qT=new Map;function Due(e,t){const n=JSON.stringify({locale:e,options:t}),r=qT.get(n);if(r)return r;const o=new Intl.NumberFormat(e,t);return qT.set(n,o),o}function jT(e,t,n){return e==null?"":Due(t,n).format(e)}function Mue(e,t,n){return e==null?"":n?jT(e,t,n):jT(e/100,t,{style:"percent"})}const mw=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(mw.displayName="ProgressRootContext");function ah(){const e=h.useContext(mw);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>.":zt(51));return e}let Ov=(function(e){return e.complete="data-complete",e.indeterminate="data-indeterminate",e.progressing="data-progressing",e})({});const Kd={status(e){return e==="progressing"?{[Ov.progressing]:""}:e==="complete"?{[Ov.complete]:""}:e==="indeterminate"?{[Ov.indeterminate]:""}:null}};function Aue(e,t){return t==null?"indeterminate progress":e||`${t}%`}const fk=h.forwardRef(function(t,n){const{format:r,getAriaValueText:o=Aue,locale:i,max:s=100,min:a=0,value:u,render:c,className:f,children:p,style:m,...b}=t,[y,v]=h.useState(),E=cr(r);let x="indeterminate";Number.isFinite(u)&&(x=u===s?"complete":"progressing");const R=Mue(u,i,E.current),P=h.useMemo(()=>({status:x}),[x]),O={"aria-labelledby":y,"aria-valuemax":s,"aria-valuemin":a,"aria-valuenow":u??void 0,"aria-valuetext":o(R,u),role:"progressbar",children:w.jsxs(h.Fragment,{children:[p,w.jsx("span",{role:"presentation",style:pd,children:"x"})]})},S=h.useMemo(()=>({formattedValue:R,max:s,min:a,setLabelId:v,state:P,status:x,value:u}),[R,s,a,v,P,x,u]),T=lt("div",t,{state:P,ref:n,props:[O,b],stateAttributesMapping:Kd});return w.jsx(mw.Provider,{value:S,children:T})});process.env.NODE_ENV!=="production"&&(fk.displayName="ProgressRoot");const pk=h.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{state:a}=ah();return lt("div",t,{state:a,ref:n,props:s,stateAttributesMapping:Kd})});process.env.NODE_ENV!=="production"&&(pk.displayName="ProgressTrack");function Nue(e,t,n){return(e-t)*100/(n-t)}const mk=h.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{max:a,min:u,value:c,state:f}=ah(),p=Number.isFinite(c)&&c!==null?Nue(c,u,a):null,m=h.useCallback(()=>p==null?{}:{insetInlineStart:0,height:"inherit",width:`${p}%`},[p]);return lt("div",t,{state:f,ref:n,props:[{style:m()},s],stateAttributesMapping:Kd})});process.env.NODE_ENV!=="production"&&(mk.displayName="ProgressIndicator");const hk=h.forwardRef(function(t,n){const{className:r,render:o,children:i,style:s,...a}=t,{value:u,formattedValue:c,state:f}=ah(),p=u==null?"indeterminate":c,m=u==null?null:c;return lt("span",t,{state:f,ref:n,props:[{"aria-hidden":!0,children:typeof i=="function"?i(p,u):m},a],stateAttributesMapping:Kd})});process.env.NODE_ENV!=="production"&&(hk.displayName="ProgressValue");function Iue(e,t){const n=$r(e);return Le(()=>(t(n),()=>{t(void 0)}),[n,t]),n}const gk=h.forwardRef(function(t,n){const{render:r,className:o,style:i,id:s,...a}=t,{setLabelId:u,state:c}=ah(),f=Iue(s,u);return lt("span",t,{state:c,ref:n,props:[{id:f,role:"presentation"},a],stateAttributesMapping:Kd})});process.env.NODE_ENV!=="production"&&(gk.displayName="ProgressLabel");const kue=Oi("block w-full overflow-hidden rounded-full bg-input",{variants:{size:{sm:"h-1",md:"h-1.5",lg:"h-2.5"}},defaultVariants:{size:"md"}}),Fue=Oi("transition-all duration-500",{variants:{variant:{default:"bg-primary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"default"}});function vk({className:e,...t}){return w.jsx(fk,{className:me("flex w-full flex-col gap-2",e),"data-slot":"progress",...t})}function Lue({className:e,...t}){return w.jsx(gk,{className:me("font-medium text-sm",e),"data-slot":"progress-label",...t})}function bk({className:e,size:t,...n}){return w.jsx(pk,{className:me(kue({size:t}),e),"data-slot":"progress-track",...n})}function yk({className:e,variant:t,...n}){return w.jsx(mk,{className:me(Fue({variant:t}),e),"data-slot":"progress-indicator",...n})}function que({className:e,...t}){return w.jsx(hk,{className:me("text-sm tabular-nums",e),"data-slot":"progress-value",...t})}function jue({size:e,variant:t,className:n,trackProps:r,indicatorProps:o,...i}){return w.jsx(vk,{className:n,...i,children:w.jsx(bk,{size:e,...r,children:w.jsx(yk,{variant:t,...o})})})}const Bue=({items:e=[],valueKey:t="value",labelKey:n="label",value:r,onChange:o,defaultValue:i,renderOption:s=v=>v?.[n],triggerProps:a,contentClassName:u,contentProps:c,itemClassName:f,itemProps:p,className:m,placeholder:b="Seleccionar",...y})=>{const[v,E]=Kt({prop:r,onChange:x=>{if(!o)return;const R=e.find(P=>P[t]===x);o?.(x,R)},defaultProp:i});return w.jsxs(Xk,{...y,onValueChange:E,value:v,children:[w.jsx(Jk,{className:m,...a,children:w.jsx(Qk,{placeholder:b})}),w.jsx(n4,{className:u,...c,children:w.jsx(Zk,{children:e.map((x,R)=>D.createElement(o4,{...p,className:f,key:R,disabled:x?.disabled,value:x[t]},s?.(x)))})})]})};function BT(e,[t,n]){return Math.min(n,Math.max(t,e))}function xk(e){const t=Vue(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(Hue);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Vue(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=Uue(o),a=Wue(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kue=Symbol("radix.slottable");function Hue(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kue}function Wue(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Uue(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pr=zue.reduce((e,t)=>{const n=xk(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gue(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Yue(e){const t=Xue(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),u=a.find(Que);if(u){const c=u.props.children,f=a.map(p=>p===u?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Xue(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=ece(o),a=Jue(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Ht(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zue=Symbol("radix.slottable");function Que(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zue}function Jue(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ece(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var tce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nce=tce.reduce((e,t)=>{const n=Yue(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rce="VisuallyHidden",oce=h.forwardRef((e,t)=>w.jsx(nce.span,{...e,ref:t,style:{...wk,...e.style}}));oce.displayName=rce;var ice=[" ","Enter","ArrowUp","ArrowDown"],sce=[" ","Enter"],ms="Select",[lh,uh,ace]=Jx(ms),[Ra]=Go(ms,[ace,Ca]),ch=Ca(),[lce,Mi]=Ra(ms),[uce,cce]=Ra(ms),Ek=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:u,dir:c,name:f,autoComplete:p,disabled:m,required:b,form:y}=e,v=ch(t),[E,x]=h.useState(null),[R,P]=h.useState(null),[O,S]=h.useState(!1),T=ew(c),[_,$]=Kt({prop:r,defaultProp:o??!1,onChange:i,caller:ms}),[V,U]=Kt({prop:s,defaultProp:a,onChange:u,caller:ms}),A=h.useRef(null),H=E?y||!!E.closest("form"):!0,[F,N]=h.useState(new Set),j=Array.from(F).map(I=>I.props.value).join(";");return w.jsx(nh,{...v,children:w.jsxs(lce,{required:b,scope:t,trigger:E,onTriggerChange:x,valueNode:R,onValueNodeChange:P,valueNodeHasChildren:O,onValueNodeHasChildrenChange:S,contentId:an(),value:V,onValueChange:U,open:_,onOpenChange:$,dir:T,triggerPointerDownPosRef:A,disabled:m,children:[w.jsx(lh.Provider,{scope:t,children:w.jsx(uce,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(I=>{N(k=>new Set(k).add(I))},[]),onNativeOptionRemove:h.useCallback(I=>{N(k=>{const q=new Set(k);return q.delete(I),q})},[]),children:n})}),H?w.jsxs(Uk,{"aria-hidden":!0,required:b,tabIndex:-1,name:f,autoComplete:p,value:V,onChange:I=>U(I.target.value),disabled:m,form:y,children:[V===void 0?w.jsx("option",{value:""}):null,Array.from(F)]},j):null]})})};Ek.displayName=ms;var Ck="SelectTrigger",Rk=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ch(n),s=Mi(Ck,n),a=s.disabled||r,u=it(t,s.onTriggerChange),c=uh(n),f=h.useRef("touch"),[p,m,b]=Gk(v=>{const E=c().filter(P=>!P.disabled),x=E.find(P=>P.value===s.value),R=Yk(E,v,x);R!==void 0&&s.onValueChange(R.value)}),y=v=>{a||(s.onOpenChange(!0),b()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return w.jsx(rh,{asChild:!0,...i,children:w.jsx(pr.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":zk(s.value)?"":void 0,...o,ref:u,onClick:Ie(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&y(v)}),onPointerDown:Ie(o.onPointerDown,v=>{f.current=v.pointerType;const E=v.target;E.hasPointerCapture(v.pointerId)&&E.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(y(v),v.preventDefault())}),onKeyDown:Ie(o.onKeyDown,v=>{const E=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(E&&v.key===" ")&&ice.includes(v.key)&&(y(),v.preventDefault())})})})});Rk.displayName=Ck;var Sk="SelectValue",Pk=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,u=Mi(Sk,n),{onValueNodeHasChildrenChange:c}=u,f=i!==void 0,p=it(t,u.onValueNodeChange);return xn(()=>{c(f)},[c,f]),w.jsx(pr.span,{...a,ref:p,style:{pointerEvents:"none"},children:zk(u.value)?w.jsx(w.Fragment,{children:s}):i})});Pk.displayName=Sk;var dce="SelectIcon",Tk=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(pr.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Tk.displayName=dce;var fce="SelectPortal",_k=e=>w.jsx(xd,{asChild:!0,...e});_k.displayName=fce;var hs="SelectContent",Ok=h.forwardRef((e,t)=>{const n=Mi(hs,e.__scopeSelect),[r,o]=h.useState();if(xn(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?er.createPortal(w.jsx($k,{scope:e.__scopeSelect,children:w.jsx(lh.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(Dk,{...e,ref:t})});Ok.displayName=hs;var qr=10,[$k,Ai]=Ra(hs),pce="SelectContentImpl",mce=xk("SelectContent.RemoveScroll"),Dk=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:u,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:b,sticky:y,hideWhenDetached:v,avoidCollisions:E,...x}=e,R=Mi(hs,n),[P,O]=h.useState(null),[S,T]=h.useState(null),_=it(t,ee=>O(ee)),[$,V]=h.useState(null),[U,A]=h.useState(null),H=uh(n),[F,N]=h.useState(!1),j=h.useRef(!1);h.useEffect(()=>{if(P)return Ed(P)},[P]),Fm();const I=h.useCallback(ee=>{const[de,...K]=H().map(Z=>Z.ref.current),[ue]=K.slice(-1),le=document.activeElement;for(const Z of ee)if(Z===le||(Z?.scrollIntoView({block:"nearest"}),Z===de&&S&&(S.scrollTop=0),Z===ue&&S&&(S.scrollTop=S.scrollHeight),Z?.focus(),document.activeElement!==le))return},[H,S]),k=h.useCallback(()=>I([$,P]),[I,$,P]);h.useEffect(()=>{F&&k()},[F,k]);const{onOpenChange:q,triggerPointerDownPosRef:z}=R;h.useEffect(()=>{if(P){let ee={x:0,y:0};const de=ue=>{ee={x:Math.abs(Math.round(ue.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(ue.pageY)-(z.current?.y??0))}},K=ue=>{ee.x<=10&&ee.y<=10?ue.preventDefault():P.contains(ue.target)||q(!1),document.removeEventListener("pointermove",de),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",K,{capture:!0})}}},[P,q,z]),h.useEffect(()=>{const ee=()=>q(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[q]);const[W,te]=Gk(ee=>{const de=H().filter(le=>!le.disabled),K=de.find(le=>le.ref.current===document.activeElement),ue=Yk(de,ee,K);ue&&setTimeout(()=>ue.ref.current.focus())}),X=h.useCallback((ee,de,K)=>{const ue=!j.current&&!K;(R.value!==void 0&&R.value===de||ue)&&(V(ee),ue&&(j.current=!0))},[R.value]),Q=h.useCallback(()=>P?.focus(),[P]),re=h.useCallback((ee,de,K)=>{const ue=!j.current&&!K;(R.value!==void 0&&R.value===de||ue)&&A(ee)},[R.value]),ce=r==="popper"?Nb:Mk,se=ce===Nb?{side:a,sideOffset:u,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:b,sticky:y,hideWhenDetached:v,avoidCollisions:E}:{};return w.jsx($k,{scope:n,content:P,viewport:S,onViewportChange:T,itemRefCallback:X,selectedItem:$,onItemLeave:Q,itemTextRefCallback:re,focusSelectedItem:k,selectedItemText:U,position:r,isPositioned:F,searchRef:W,children:w.jsx(ya,{as:mce,allowPinchZoom:!0,children:w.jsx(yd,{asChild:!0,trapped:R.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Ie(o,ee=>{R.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:w.jsx(bd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:w.jsx(ce,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ee=>ee.preventDefault(),...x,...se,onPlaced:()=>N(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ie(x.onKeyDown,ee=>{const de=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!de&&ee.key.length===1&&te(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let ue=H().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const le=ee.target,Z=ue.indexOf(le);ue=ue.slice(Z+1)}setTimeout(()=>I(ue)),ee.preventDefault()}})})})})})})});Dk.displayName=pce;var hce="SelectItemAlignedPosition",Mk=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Mi(hs,n),s=Ai(hs,n),[a,u]=h.useState(null),[c,f]=h.useState(null),p=it(t,_=>f(_)),m=uh(n),b=h.useRef(!1),y=h.useRef(!0),{viewport:v,selectedItem:E,selectedItemText:x,focusSelectedItem:R}=s,P=h.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&v&&E&&x){const _=i.trigger.getBoundingClientRect(),$=c.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),U=x.getBoundingClientRect();if(i.dir!=="rtl"){const le=U.left-$.left,Z=V.left-le,xe=_.left-Z,Re=_.width+xe,Ae=Math.max(Re,$.width),Se=window.innerWidth-qr,Oe=BT(Z,[qr,Math.max(qr,Se-Ae)]);a.style.minWidth=Re+"px",a.style.left=Oe+"px"}else{const le=$.right-U.right,Z=window.innerWidth-V.right-le,xe=window.innerWidth-_.right-Z,Re=_.width+xe,Ae=Math.max(Re,$.width),Se=window.innerWidth-qr,Oe=BT(Z,[qr,Math.max(qr,Se-Ae)]);a.style.minWidth=Re+"px",a.style.right=Oe+"px"}const A=m(),H=window.innerHeight-qr*2,F=v.scrollHeight,N=window.getComputedStyle(c),j=parseInt(N.borderTopWidth,10),I=parseInt(N.paddingTop,10),k=parseInt(N.borderBottomWidth,10),q=parseInt(N.paddingBottom,10),z=j+I+F+q+k,W=Math.min(E.offsetHeight*5,z),te=window.getComputedStyle(v),X=parseInt(te.paddingTop,10),Q=parseInt(te.paddingBottom,10),re=_.top+_.height/2-qr,ce=H-re,se=E.offsetHeight/2,ee=E.offsetTop+se,de=j+I+ee,K=z-de;if(de<=re){const le=A.length>0&&E===A[A.length-1].ref.current;a.style.bottom="0px";const Z=c.clientHeight-v.offsetTop-v.offsetHeight,xe=Math.max(ce,se+(le?Q:0)+Z+k),Re=de+xe;a.style.height=Re+"px"}else{const le=A.length>0&&E===A[0].ref.current;a.style.top="0px";const xe=Math.max(re,j+v.offsetTop+(le?X:0)+se)+K;a.style.height=xe+"px",v.scrollTop=de-re+v.offsetTop}a.style.margin=`${qr}px 0`,a.style.minHeight=W+"px",a.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[m,i.trigger,i.valueNode,a,c,v,E,x,i.dir,r]);xn(()=>P(),[P]);const[O,S]=h.useState();xn(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const T=h.useCallback(_=>{_&&y.current===!0&&(P(),R?.(),y.current=!1)},[P,R]);return w.jsx(vce,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:b,onScrollButtonChange:T,children:w.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:w.jsx(pr.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Mk.displayName=hce;var gce="SelectPopperPosition",Nb=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=qr,...i}=e,s=ch(n);return w.jsx(rw,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Nb.displayName=gce;var[vce,hw]=Ra(hs,{}),Ib="SelectViewport",Ak=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Ai(Ib,n),s=hw(Ib,n),a=it(t,i.onViewportChange),u=h.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(lh.Slot,{scope:n,children:w.jsx(pr.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ie(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=s;if(m?.current&&p){const b=Math.abs(u.current-f.scrollTop);if(b>0){const y=window.innerHeight-qr*2,v=parseFloat(p.style.minHeight),E=parseFloat(p.style.height),x=Math.max(v,E);if(x<y){const R=x+b,P=Math.min(y,R),O=R-P;p.style.height=P+"px",p.style.bottom==="0px"&&(f.scrollTop=O>0?O:0,p.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Ak.displayName=Ib;var Nk="SelectGroup",[bce,yce]=Ra(Nk),Ik=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=an();return w.jsx(bce,{scope:n,id:o,children:w.jsx(pr.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ik.displayName=Nk;var kk="SelectLabel",Fk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=yce(kk,n);return w.jsx(pr.div,{id:o.id,...r,ref:t})});Fk.displayName=kk;var cm="SelectItem",[xce,Lk]=Ra(cm),qk=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Mi(cm,n),u=Ai(cm,n),c=a.value===r,[f,p]=h.useState(i??""),[m,b]=h.useState(!1),y=it(t,R=>u.itemRefCallback?.(R,r,o)),v=an(),E=h.useRef("touch"),x=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(xce,{scope:n,value:r,disabled:o,textId:v,isSelected:c,onItemTextChange:h.useCallback(R=>{p(P=>P||(R?.textContent??"").trim())},[]),children:w.jsx(lh.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:w.jsx(pr.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:Ie(s.onFocus,()=>b(!0)),onBlur:Ie(s.onBlur,()=>b(!1)),onClick:Ie(s.onClick,()=>{E.current!=="mouse"&&x()}),onPointerUp:Ie(s.onPointerUp,()=>{E.current==="mouse"&&x()}),onPointerDown:Ie(s.onPointerDown,R=>{E.current=R.pointerType}),onPointerMove:Ie(s.onPointerMove,R=>{E.current=R.pointerType,o?u.onItemLeave?.():E.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(s.onPointerLeave,R=>{R.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Ie(s.onKeyDown,R=>{u.searchRef?.current!==""&&R.key===" "||(sce.includes(R.key)&&x(),R.key===" "&&R.preventDefault())})})})})});qk.displayName=cm;var Kc="SelectItemText",jk=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Mi(Kc,n),a=Ai(Kc,n),u=Lk(Kc,n),c=cce(Kc,n),[f,p]=h.useState(null),m=it(t,x=>p(x),u.onItemTextChange,x=>a.itemTextRefCallback?.(x,u.value,u.disabled)),b=f?.textContent,y=h.useMemo(()=>w.jsx("option",{value:u.value,disabled:u.disabled,children:b},u.value),[u.disabled,u.value,b]),{onNativeOptionAdd:v,onNativeOptionRemove:E}=c;return xn(()=>(v(y),()=>E(y)),[v,E,y]),w.jsxs(w.Fragment,{children:[w.jsx(pr.span,{id:u.textId,...i,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?er.createPortal(i.children,s.valueNode):null]})});jk.displayName=Kc;var Bk="SelectItemIndicator",wce=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Lk(Bk,n).isSelected?w.jsx(pr.span,{"aria-hidden":!0,...r,ref:t}):null});wce.displayName=Bk;var kb="SelectScrollUpButton",Vk=h.forwardRef((e,t)=>{const n=Ai(kb,e.__scopeSelect),r=hw(kb,e.__scopeSelect),[o,i]=h.useState(!1),s=it(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=u.scrollTop>0;i(c)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(Hk,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});Vk.displayName=kb;var Fb="SelectScrollDownButton",Kk=h.forwardRef((e,t)=>{const n=Ai(Fb,e.__scopeSelect),r=hw(Fb,e.__scopeSelect),[o,i]=h.useState(!1),s=it(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<c;i(f)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(Hk,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});Kk.displayName=Fb;var Hk=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Ai("SelectScrollButton",n),s=h.useRef(null),a=uh(n),u=h.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>u(),[u]),xn(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),w.jsx(pr.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ie(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Ie(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Ie(o.onPointerLeave,()=>{u()})})}),Ece="SelectSeparator",Wk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(pr.div,{"aria-hidden":!0,...r,ref:t})});Wk.displayName=Ece;var Lb="SelectArrow",Cce=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ch(n),i=Mi(Lb,n),s=Ai(Lb,n);return i.open&&s.position==="popper"?w.jsx(ow,{...o,...r,ref:t}):null});Cce.displayName=Lb;var Rce="SelectBubbleInput",Uk=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=it(r,o),s=Gue(t);return h.useEffect(()=>{const a=o.current;if(!a)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(p)}},[s,t]),w.jsx(pr.select,{...n,style:{...wk,...n.style},ref:i,defaultValue:t})});Uk.displayName=Rce;function zk(e){return e===""||e===void 0}function Gk(e){const t=_n(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(s=>{const a=n.current+s;t(a),(function u(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(a)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Yk(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Sce(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const u=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Sce(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Pce=Ek,Tce=Rk,_ce=Pk,Oce=Tk,$ce=_k,Dce=Ok,Mce=Ak,Ace=Ik,Nce=Fk,Ice=qk,kce=jk,Fce=Vk,Lce=Kk,qce=Wk;const Xk=e=>w.jsx(Pce,{"data-slot":"select",...e}),Zk=({heading:e,children:t,...n})=>w.jsxs(Ace,{"data-slot":"select-group",...n,children:[e&&w.jsx(r4,{children:e}),t]}),Qk=e=>w.jsx(_ce,{"data-slot":"select-value",...e}),Jk=({className:e,children:t,...n})=>w.jsxs(Tce,{"data-slot":"select-trigger",className:me("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,w.jsx(Oce,{asChild:!0,"data-slot":"select-trigger-icon",children:w.jsx(Gp,{className:"h-4 w-4 shrink-0 opacity-50"})})]}),e4=({className:e,...t})=>w.jsx(Fce,{"data-slot":"select-scroll-up",className:me("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx($$,{className:"h-4 w-4"})}),t4=({className:e,...t})=>w.jsx(Lce,{"data-slot":"select-scroll-down",className:me("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(O$,{className:"h-4 w-4"})}),n4=({className:e,children:t,position:n="popper",...r})=>w.jsx($ce,{children:w.jsxs(Dce,{"data-slot":"select-content",className:me("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md open:animate-in closed:animate-out closed:fade-out-0 open:fade-in-0 closed:zoom-out-95 open: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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[w.jsx(e4,{}),w.jsx(Mce,{"data-slot":"select-viewport",className:me("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),w.jsx(t4,{})]})}),r4=({className:e,...t})=>w.jsx(Nce,{"data-slot":"select-label",className:me("py-1.5 px-2 text-sm font-semibold",e),...t}),o4=({className:e,children:t,...n})=>w.jsx(Ice,{"data-slot":"select-item",className:me("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 px-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:w.jsx(kce,{"data-slot":"select-item-text",children:t})}),jce=({className:e,...t})=>w.jsx(qce,{"data-slot":"select-separator",className:me("-mx-1 my-1 h-px bg-muted",e),...t}),Bce=({when:e,...t})=>w.jsx(Gr,{present:e,children:w.jsx(km,{...t,"data-state":e?"open":"closed","data-slot":"show"})});function Vce({className:e,...t}){return w.jsx("div",{className:me("animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]",e),"data-slot":"skeleton",...t})}const Kce=({as:e="div",inline:t=!1,direction:n="horizontal",reverse:r=!1,justify:o,align:i,gap:s=8,wrap:a,grow:u=!1,className:c,style:f,...p})=>{const m=`${n==="vertical"?"column":"row"}${r?"-reverse":""}`;return w.jsx(e,{className:me(t?"inline-flex":"flex",u&&"flex-1",c),style:{flexDirection:m,justifyContent:o,alignItems:i,gap:s,flexWrap:a,...f},"data-slot":"stack",...p})},[i4,Hce]=Sd();function Wce({items:e=[],current:t,onChange:n,className:r,classNameList:o,classNameItem:i,classNameButton:s,classNameIndicator:a,classNameContent:u}){return w.jsxs(s4,{className:r,current:t,onChange:n,children:[w.jsx(a4,{className:o,children:e?.map((c,f)=>w.jsx(l4,{value:f,title:c?.title,indicator:c?.indicator,classNameItem:i,classNameButton:s,classNameIndicator:a},f))}),e?.map((c,f)=>w.jsx(u4,{className:u,value:f,children:c?.content},f))]})}function s4({current:e,onChange:t,className:n,...r}){const[o=0,i]=Kt({prop:e,onChange:t,defaultProp:0});return w.jsx(Hce,{value:{activeStep:o,setActiveStep:i},children:w.jsx("div",{"data-slot":"stepper",className:me("flex flex-col items-center w-full transition-all ease-in delay-150",n),...r})})}function a4({children:e,className:t,...n}){return w.jsx("ul",{"data-slot":"stepper-list",className:me("flex flex-col sm:flex-row sm:gap-0 gap-4 items-center w-full text-xs font-medium text-gray-900 sm:text-base mb-8",t),...n,children:e})}function l4({disabled:e,value:t,title:n,indicator:r,classNameItem:o,classNameButton:i,classNameIndicator:s}){const{activeStep:a,setActiveStep:u}=i4();return w.jsx("li",{"data-slot":"stepper-trigger",className:me("flex relative text-primary transition-all ease-in delay-150","last:w-full last:sm:w-auto last:after:hidden",`w-full after:content-[''] sm:after:w-full after:h-full after:w-0.5 sm:after:h-0.5 ${a>t?"after:bg-primary":"after:bg-gray-300"} after:inline-block after:absolute after:top-5 sm:after:top-5 after:left-4 sm:after:left-10`,o),children:w.jsxs("button",{onClick:()=>!e&&u(t),className:me("z-10 flex items-center justify-center sm:flex-col gap-3 flex-row whitespace-nowrap cursor-pointer group transition-color ease-in delay-150",a>=t?"text-primary":"text-gray-500",e&&"cursor-not-allowed",i),children:[w.jsx("span",{"data-slot":"stepper-trigger-indicator",className:me("flex items-center transition-all overflow-hidden ease-in justify-center group-hover:scale-105 sm:w-10 sm:h-10 mx-auto text-sm border-2 rounded-full w-8 h-8",a>t&&"bg-primary border-primary text-primary-foreground",a===t&&"bg-gray-100 text-primary border-primary",a<t&&"bg-white text-gray-500 border-input",e&&"text-gray-300",s),children:a>t?"✓":r||t+1}),n]})})}function u4({value:e,className:t="w-full",...n}){const{activeStep:r}=i4();return r===e?w.jsx("div",{"data-slot":"stepper-content",className:t,...n}):null}const gw=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(gw.displayName="SwitchRootContext");function Uce(){const e=h.useContext(gw);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.":zt(63));return e}let VT=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const c4={...Ym,checked(e){return e?{[VT.checked]:""}:{[VT.unchecked]:""}}};function zce(e={}){const{id:t,implicit:n=!1,controlRef:r}=e,{controlId:o,registerControlId:i}=Xm(),s=$r(t),a=n?o:void 0,u=Hn(()=>Symbol("labelable-control")),c=h.useRef(!1),f=h.useRef(t!=null),p=He(()=>{!c.current||i===At||(c.current=!1,i(u.current,void 0))});return Le(()=>{if(i===At)return;let m;if(n){const b=r?.current;et(b)&&b.closest("label")!=null?m=t??null:m=a??s}else if(t!=null)f.current=!0,m=t;else if(f.current)m=s;else{p();return}if(m===void 0){p();return}c.current=!0,i(u.current,m)},[t,r,a,i,n,s,u,p]),h.useEffect(()=>p,[p]),o??s}const d4=h.forwardRef(function(t,n){const{checked:r,className:o,defaultChecked:i,"aria-labelledby":s,form:a,id:u,inputRef:c,name:f,nativeButton:p=!1,onCheckedChange:m,readOnly:b=!1,required:y=!1,disabled:v=!1,render:E,uncheckedValue:x,value:R,style:P,...O}=t,{clearErrors:S}=mx(),{state:T,setTouched:_,setDirty:$,validityData:V,setFilled:U,setFocused:A,shouldValidateOnChange:H,validationMode:F,disabled:N,name:j,validation:I}=_d(),{labelId:k}=Xm(),q=N||v,z=j??f,W=He(m),te=h.useRef(null),X=la(te,c,I.inputRef),Q=h.useRef(null),re=$r(),ce=zce({id:u,implicit:!1,controlRef:Q}),se=p?void 0:ce,[ee,de]=fx({controlled:r,default:!!i,name:"Switch",state:"checked"});px(Q,{id:re,value:ee}),Le(()=>{te.current&&U(te.current.checked)},[te,U]),Nm(ee,()=>{S(z),$(ee!==V.initialValue),U(ee),H()?I.commit(ee):I.commit(ee,!0)});const{getButtonProps:K,buttonRef:ue}=ga({disabled:q,native:p}),le=bA(s,k,te,!p,se),Z={id:p?ce:re,role:"switch","aria-checked":ee,"aria-readonly":b||void 0,"aria-required":y||void 0,"aria-labelledby":le,onFocus(){q||A(!0)},onBlur(){const Se=te.current;!Se||q||(_(!0),A(!1),F==="onBlur"&&I.commit(Se.checked))},onClick(Se){b||q||(Se.preventDefault(),te.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:Se.shiftKey,ctrlKey:Se.ctrlKey,altKey:Se.altKey,metaKey:Se.metaKey})))}},xe=h.useMemo(()=>pa({checked:ee,disabled:q,form:a,id:se,name:z,required:y,style:z?W_:pd,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:X,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(b){Se.preventDefault();return}const Oe=Se.currentTarget.checked,Ye=pt(Sm,Se.nativeEvent);W?.(Oe,Ye),!Ye.isCanceled&&de(Oe)},onFocus(){Q.current?.focus()}},I.getInputValidationProps,R!==void 0?{value:R}:yn),[ee,q,a,X,se,z,W,b,y,de,I,R]),Re=h.useMemo(()=>({...T,checked:ee,disabled:q,readOnly:b,required:y}),[T,ee,q,b,y]),Ae=lt("span",t,{state:Re,ref:[n,Q,ue],props:[Z,I.getValidationProps,O,K],stateAttributesMapping:c4});return w.jsxs(gw.Provider,{value:Re,children:[Ae,!ee&&z&&x!==void 0&&w.jsx("input",{type:"hidden",form:a,name:z,value:x}),w.jsx("input",{...xe,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!=="production"&&(d4.displayName="SwitchRoot");const f4=h.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{state:a}=_d(),u=Uce(),c={...a,...u};return lt("span",t,{state:c,ref:n,stateAttributesMapping:c4,props:s})});process.env.NODE_ENV!=="production"&&(f4.displayName="SwitchThumb");function p4({className:e,...t}){return w.jsx(d4,{className:me("peer inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200","[--thumb-size:--spacing(5)] sm:[--thumb-size:--spacing(4)]","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background","data-checked:bg-primary data-unchecked:bg-input","data-disabled:cursor-not-allowed data-disabled:opacity-64",e),"data-slot":"switch",...t})}function m4({className:e,...t}){return w.jsx(f4,{className:me("pointer-events-none block aspect-square h-full rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform","origin-left [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s]","data-checked:origin-[var(--thumb-size)_50%] data-checked:translate-x-[calc(var(--thumb-size)-4px)]","in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:not-data-disabled:scale-x-110","in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.1)]",e),"data-slot":"switch-thumb",...t})}function Gce({children:e,className:t,id:n,thumbProps:r,...o}){const i=D.useId(),s=n??i;return w.jsxs("div",{className:"flex select-none items-center gap-x-2",children:[w.jsx(p4,{id:s,className:t,...o,children:w.jsx(m4,{...r})}),e&&w.jsx(Od,{htmlFor:s,children:e})]})}const h4=({className:e,containerClassName:t,containerProps:n,...r})=>w.jsx("div",{"data-slot":"table-container",className:me("relative w-full overflow-auto rounded-md border",t),...n,children:w.jsx("table",{"data-slot":"table",className:me("w-full caption-bottom text-sm",e),...r})}),g4=({className:e,...t})=>w.jsx("thead",{"data-slot":"table-header",className:me("[&_tr]:border-b",e),...t}),v4=({className:e,...t})=>w.jsx("tbody",{"data-slot":"table-body",className:me("[&_tr:last-child]:border-0",e),...t}),Yce=({className:e,...t})=>w.jsx("tfoot",{"data-slot":"table-footer",className:me("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}),qb=({className:e,...t})=>w.jsx("tr",{"data-slot":"table-row",className:me("border-b transition-colors hover:bg-muted data-[selected=true]:bg-muted",e),...t}),b4=({className:e,...t})=>w.jsx("th",{"data-slot":"table-head",className:me("h-12 px-4 text-left align-middle font-medium text-muted-foreground sticky top-0 bg-background [&:has([role=checkbox])]:pr-0",e),...t}),y4=({className:e,...t})=>w.jsx("td",{"data-slot":"table-cell",className:me("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}),Xce=({className:e,...t})=>w.jsx("caption",{"data-slot":"table-caption",className:me("mt-4 text-sm text-muted-foreground",e),...t}),Zce=({data:e=[],columns:t=[],onRowClick:n,onDoubleClick:r,selected:o,theadClassName:i,theadProps:s,tbodyClassName:a,tbodyProps:u,trClassName:c,trProps:f,thClassName:p,thProps:m,tdClassName:b,tdProps:y,...v})=>w.jsxs(h4,{...v,className:me(v?.className),children:[w.jsx(g4,{...s,className:me(s?.className,i),children:w.jsx(qb,{...f,className:me(f?.className,c),children:t.map((E,x)=>w.jsx(b4,{...m,className:me(m?.className,p),style:{width:E.width},children:_t.isFunction(E.header)?E.header?.():E.header},x))})}),w.jsx(v4,{...u,className:me(u?.className,a),children:e.map((E,x)=>w.jsx(qb,{...f,"data-selected":o?.(E),className:me(f?.className,c),children:t.map((R,P)=>w.jsx(y4,{...y,onClick:O=>{y?.onClick?.(O),n?.(E)},onDoubleClick:()=>r?.(E),className:me(y?.className,b),children:R.cell?.(E,P)||E[R.key]},P))},x))})]}),$p=[10,25,50],Qce=({containerClassName:e,containerProps:t,selectClassName:n,selectProps:r,sizes:o=$p,...i})=>{const[s=$p[0],a]=Kt({onChange:i?.setPageSize,prop:i?.pageSize,defaultProp:$p[0]}),{range:u,next:c,prev:f,isFirstPage:p,isLastPage:m,goTo:b}=Qx({...i,pageSize:s}),y=v=>{const{value:E}=v.target,x=Number(E);a(x),b(1)};return w.jsxs("div",{"data-slot":"table-pagination",...t,className:me("flex justify-center items-center gap-x-4 bg-background border border-[#D9D9D9] rounded-2xl py-2",e),children:[o&&w.jsx("select",{"data-slot":"table-pagination-size-trigger",...r,value:s,onChange:y,className:me("border border-input rounded-md w-fit min-w-[3rem] bg-background p-2 ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),children:o.map((v,E)=>w.jsx("option",{value:v,"data-slot":"table-pagination-size-option",children:v},E))}),w.jsxs("span",{"data-slot":"table-pagination-range",children:[u.start," - ",u.end," de ",i.totalItems]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx(Tn,{"data-slot":"table-pagination-prev",size:"icon",variant:"ghost",disabled:p,onClick:f,children:w.jsx(ky,{"data-slot":"table-pagination-prev-icon"})}),w.jsx(Tn,{"data-slot":"table-pagination-next",size:"icon",variant:"ghost",disabled:m,onClick:c,children:w.jsx(gd,{"data-slot":"table-pagination-next-icon"})})]})]})},[dh,Jce]=Sd(),ede=({children:e,value:t,onChange:n,defaultValue:r,variant:o="default",...i})=>{const[s="",a]=Kt({prop:t,onChange:n,defaultProp:r}),[u,c]=D.useState(null);return w.jsx(Jce,{value:{activeTab:s,setActiveTab:a,setTargetRef:c,targetRef:u,variant:o},children:w.jsx("div",{"data-slot":"tabs",...i,children:e})})},tde=({children:e,className:t,indicatorClassName:n})=>{const{targetRef:r}=dh();return w.jsxs("div",{"data-slot":"tabs-list",className:me("relative mb-4",t),children:[w.jsx("div",{"data-slot":"tabs-content",className:"flex",children:e}),w.jsx(ode,{targetRef:r,indicatorClassName:n})]})},nde=({value:e,className:t,...n})=>{const{activeTab:r,setActiveTab:o,setTargetRef:i,variant:s}=dh(),a=r===e;return w.jsx("button",{"data-slot":"tabs-trigger",...n,type:"button",ref:u=>{a&&i(u)},onClick:()=>o(e),"data-tab":e,"data-selected":a,"aria-selected":a,className:me("px-2 py-2 cursor-pointer w-full min-w-[100px] text-center rounded-t font-semibold select-none",s==="background"?"hover:bg-transparent aria-selected:text-primary-foreground rounded":"hover:bg-accent hover:text-accent-foreground",t)})},rde=({value:e,...t})=>{const{activeTab:n}=dh();return n===e?w.jsx("div",{"data-slot":"tabs-content",...t}):null},ode=({targetRef:e,indicatorClassName:t})=>{const n=D.useRef(null),r=n?.current,o=D.useRef(null),{variant:i}=dh(),s=()=>{if(!e||!r)return;const a=e.offsetLeft,u=e.offsetWidth;r.style.width=u+"px",r.style.left=a+"px"};return D.useEffect(()=>{if(e)return s(),o.current=new ResizeObserver(s),o.current.observe(e),()=>{o.current?.disconnect()}},[e]),w.jsx("div",{"data-slot":"tabs-indicator",ref:n,className:me("transition-all duration-300 absolute rounded bg-primary",i==="background"?"inset-0 -z-10 h-full top-0":"top-full h-[3px]",t)})},ide=({className:e,...t})=>w.jsx("textarea",{...t,onChange:n=>t.onChange?.(n.target.value),"data-slot":"textarea",className:me("min-h-[60px] w-full rounded-md px-3 py-2 text-sm placeholder:text-muted-foreground","border border-input bg-background","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e)}),sde={done:"var(--color-primary)",pending:"#cdcdcd",error:"var(--color-error)"},ade=({items:e,classNameContainer:t,containerProps:n,...r})=>w.jsx(x4,{className:t,...n,children:e.map((o,i)=>w.jsx(w4,{icon:o.icon,color:o.color,status:o.status,...r,children:o.content},i))}),x4=e=>w.jsx("ul",{"data-slot":"timeline",...e,className:me("relative flex justify-center flex-col border-input",e.className)}),w4=({icon:e,status:t,color:n,classNameItemDot:r,classNameItemContainerDot:o,classNameItemContent:i,itemsProps:s,children:a,...u})=>w.jsxs("li",{"data-slot":"timeline-item",className:me("rounded-lg w-full px-2 gap-1 grid hover:bg-muted transition-colors ease-in grid-cols-[minmax(auto,20px)_1fr]",u.className),...u,children:[w.jsx(E4,{icon:e,status:t,color:n,classNameDot:r,classNameContainerDot:o}),w.jsx(C4,{className:i,...s,children:a})]}),E4=({icon:e,status:t="pending",color:n,classNameDot:r,classNameContainerDot:o})=>w.jsx("div",{"data-slot":"timeline-item-dot",className:me("relative pb-6 last:after:hidden after:absolute after:top-0 after:bottom-0 after:left-1/2 after:w-px after:-translate-x-1/2 after:bg-gray-200",o),children:w.jsx("div",{"data-slot":"timeline-item-dot-icon",className:me("relative z-10 flex text-white items-center justify-center rounded-full left-1/2 -translate-x-1/2",e?"aspect-square p-1.5 min-h-7 min-w-7 top-2":"size-2 top-4",r),style:{backgroundColor:n||sde?.[t]},children:e})}),C4=e=>w.jsx("div",{"data-slot":"timeline-item-content",...e,className:me("grow px-2 pb-4 pt-2",e.className)}),lde=D.createContext(null);D.createContext(null);D.createContext(null);D.createContext(null);D.createContext(null);D.createContext({});D.createContext(null);D.createContext(null);const sn=typeof document<"u"?D.useLayoutEffect:()=>{};var $v;const ude=($v=D.useInsertionEffect)!==null&&$v!==void 0?$v:sn;function Kn(e){const t=D.useRef(null);return ude(()=>{t.current=e},[e]),D.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function cde(e){let[t,n]=D.useState(e),r=D.useRef(null),o=Kn(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?o():n(s.value)});sn(()=>{r.current&&o()});let i=Kn(s=>{r.current=s(t),o()});return[t,i]}const dm={prefix:String(Math.round(Math.random()*1e10)),current:0},R4=D.createContext(dm),dde=D.createContext(!1);let fde=!!(typeof window<"u"&&window.document&&window.document.createElement),Dv=new WeakMap;function pde(e=!1){let t=D.useContext(R4),n=D.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Dv.get(i);s==null?Dv.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Dv.delete(i))}n.current=++t.current}return n.current}function mde(e){let t=D.useContext(R4);t===dm&&!fde&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=pde(!!e),r=t===dm&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function hde(e){let t=D.useId(),[n]=D.useState(Hd()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${dm.prefix}`;return e||`${r}-${t}`}const gde=typeof D.useId=="function"?hde:mde;function vde(){return!1}function bde(){return!0}function yde(e){return()=>{}}function Hd(){return typeof D.useSyncExternalStore=="function"?D.useSyncExternalStore(yde,vde,bde):D.useContext(dde)}let xde=!!(typeof window<"u"&&window.document&&window.document.createElement),oa=new Map,Hc;typeof FinalizationRegistry<"u"&&(Hc=new FinalizationRegistry(e=>{oa.delete(e)}));function Ho(e){let[t,n]=D.useState(e),r=D.useRef(null),o=gde(t),i=D.useRef(null);if(Hc&&Hc.register(i,o),xde){const s=oa.get(o);s&&!s.includes(r)?s.push(r):oa.set(o,[r])}return sn(()=>{let s=o;return()=>{Hc&&Hc.unregister(i),oa.delete(s)}},[o]),D.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),o}function wde(e,t){if(e===t)return e;let n=oa.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=oa.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ede(e=[]){let t=Ho(),[n,r]=cde(t),o=D.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return sn(o,[t,o,...e]),n}function fh(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Tr=e=>e&&"window"in e&&e.window===e?e:xt(e).defaultView||window;function Cde(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Rde(e){return Cde(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Sde=!1;function ph(){return Sde}function qt(e,t){if(!ph())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Rde(n)?n=n.host:n=n.parentNode}return!1}const Nn=(e=document)=>{var t;if(!ph())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function ht(e){return ph()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class Pde{get currentNode(){return this._currentNode}set currentNode(t){if(!qt(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=o,this._currentSetFor.add(a),r=o=s.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return qt(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const u=s.shadowRoot;if(u){const c=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function Tde(e,t,n,r){return ph()?new Pde(e,t,n,r):e.createTreeWalker(t,n,r)}function wn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=fh(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Ny(i,s):o==="id"&&i&&s?t.id=wde(i,s):t[o]=s!==void 0?s:i}}return t}function _de(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=KT(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():KT(e[i],null)})}}}function KT(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const Ode=new Set(["id"]),$de=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Dde=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Mde=new Set(["dir","lang","hidden","inert","translate"]),HT=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Ade=/^(data-.*)$/;function Sa(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:s}=t,a={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Ode.has(u)||n&&$de.has(u)||r&&Dde.has(u)||o&&Mde.has(u)||i&&HT.has(u)||u.endsWith("Capture")&&HT.has(u.slice(0,-7))||s?.has(u)||Ade.test(u))&&(a[u]=e[u]);return a}function Wo(e){if(Nde())e.focus({preventScroll:!0});else{let t=Ide(e);e.focus(),kde(t)}}let gp=null;function Nde(){if(gp==null){gp=!1;try{document.createElement("div").focus({get preventScroll(){return gp=!0,!0}})}catch{}}return gp}function Ide(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function kde(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function mh(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function vw(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Xo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const gs=Xo(function(){return vw(/^Mac/i)}),Fde=Xo(function(){return vw(/^iPhone/i)}),S4=Xo(function(){return vw(/^iPad/i)||gs()&&navigator.maxTouchPoints>1}),bw=Xo(function(){return Fde()||S4()}),Lde=Xo(function(){return gs()||bw()}),qde=Xo(function(){return mh(/AppleWebKit/i)&&!yw()}),yw=Xo(function(){return mh(/Chrome/i)}),xw=Xo(function(){return mh(/Android/i)}),jde=Xo(function(){return mh(/Firefox/i)}),Bde=D.createContext({isNative:!0,open:Kde,useHref:e=>e});function ww(){return D.useContext(Bde)}function vs(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:u}=t;jde()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(gs()?i=!0:s=!0);let c=qde()&&gs()&&!S4()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:u,bubbles:!0,cancelable:!0});vs.isOpening=n,Wo(e),e.dispatchEvent(c),vs.isOpening=!1}vs.isOpening=!1;function Vde(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Kde(e,t){Vde(e,n=>vs(n,t))}function Hde(e){let t=ww();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let yi=new Map,jb=new Set;function WT(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=yi.get(r.target);o||(o=new Set,yi.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=yi.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),yi.delete(r.target)),yi.size===0)){for(let i of jb)i();jb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?WT():document.addEventListener("DOMContentLoaded",WT));function Wde(){for(const[e]of yi)"isConnected"in e&&!e.isConnected&&yi.delete(e)}function P4(e){requestAnimationFrame(()=>{Wde(),yi.size===0?e():jb.add(e)})}function hh(){let e=D.useRef(new Map),t=D.useCallback((o,i,s,a)=>{let u=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:u,options:a}),o.addEventListener(i,u,a)},[]),n=D.useCallback((o,i,s,a)=>{var u;let c=((u=e.current.get(s))===null||u===void 0?void 0:u.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),r=D.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return D.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ude(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Ho(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function gh(e){const t=D.useRef(null),n=D.useRef(void 0),r=D.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return D.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function zde(e,t){const n=D.useRef(!0),r=D.useRef(null);D.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),D.useEffect(()=>{let o=r.current;n.current?n.current=!1:(!o||t.some((i,s)=>!Object.is(i,o[s])))&&e(),r.current=t},t)}function UT(e,t){const n=D.useRef(!0),r=D.useRef(null);sn(()=>(n.current=!0,()=>{n.current=!1}),[]),sn(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function T4(e,t){sn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ud(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function es(e,t){let n=e;for(ud(n,t)&&(n=n.parentElement);n&&!ud(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Gde(e,t){const n=[];for(;e&&e!==document.documentElement;)ud(e,t)&&n.push(e),e=e.parentElement;return n}function Qs(e){return gs()?e.metaKey:e.ctrlKey}let Yde=0;const Mv=new Map;function _4(e){let[t,n]=D.useState();return sn(()=>{if(!e)return;let r=Mv.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${Yde++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Mv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Mv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vp(e,t,n,r){let o=Kn(n),i=n==null;D.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,r),()=>{s.removeEventListener(t,o,r)}},[e,t,r,i,o])}function O4(e,t){let n=zT(e,t,"left"),r=zT(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:m,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:y,scrollMarginRight:v,scrollMarginBottom:E,scrollMarginLeft:x}=getComputedStyle(t),R=s+parseInt(c,10),P=a+parseInt(u,10),O=R+e.clientWidth,S=P+e.clientHeight,T=parseInt(f,10)||0,_=parseInt(m,10)||0,$=parseInt(p,10)||0,V=parseInt(b,10)||0,U=parseInt(y,10)||0,A=parseInt(E,10)||0,H=parseInt(v,10)||0,F=parseInt(x,10)||0,N=n-F,j=n+o+H,I=r-U,k=r+i+A,q=s+parseInt(c,10)+V,z=O-$,W=a+parseInt(u,10)+T,te=S-_;if((N>q||j<z)&&(N<=s+V?s=N-parseInt(c,10)-V:j>O-$&&(s+=j-O+$)),(I>W||k<te)&&(I<=P+T?a=I-parseInt(u,10)-T:k>S-_&&(a+=k-S+_)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=a;return}e.scrollTo({left:s,top:a})}function zT(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function bi(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!yw()){var n;let{left:u,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(u-f)>1||Math.abs(c-p)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let u=Gde(e);for(let c of u)O4(c,e)}}}function Bb(e){return e.pointerType===""&&e.isTrusted?!0:xw()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Xde(e){return!xw()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Zde(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1}=e,i=D.useRef(null),s=Kn(a=>{for(let u of a)u.isIntersecting&&r&&r()});sn(()=>(t.current&&(i.current=new IntersectionObserver(s,{root:es(t?.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect()}),[n,s,t,o])}function Qde(e){const t=D.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}const Jde="react-aria-clear-focus",efe="react-aria-focus",tfe=typeof Element<"u"&&"checkVisibility"in Element.prototype;function nfe(e){const t=Tr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function rfe(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ew(e,t){return tfe?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&nfe(e)&&rfe(e,t)&&(!e.parentElement||Ew(e.parentElement,e))}const Cw=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],ofe=Cw.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Cw.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ife=Cw.join(':not([hidden]):not([tabindex="-1"]),');function $4(e){return e.matches(ofe)&&Ew(e)&&!D4(e)}function sfe(e){return e.matches(ife)&&Ew(e)&&!D4(e)}function D4(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Rw(e,t,n){let[r,o]=D.useState(e||t),i=D.useRef(e!==void 0),s=e!==void 0;D.useEffect(()=>{let c=i.current;c!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,u=D.useCallback((c,...f)=>{let p=(m,...b)=>{n&&(Object.is(a,m)||n(m,...b)),s||(a=m)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((b,...y)=>{let v=c(s?a:b,...y);return p(v,...f),s?b:v})):(s||o(c),p(c,...f))},[s,a,n]);return[a,u]}const M4=Symbol("default");function A4({values:e,children:t}){for(let[n,r]of e)t=D.createElement(n.Provider,{value:r},t);return t}function Pa(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:s,values:a}=e;return D.useMemo(()=>{let u,c,f;return typeof t=="function"?u=t({...a,defaultClassName:o}):u=t,typeof n=="function"?c=n({...a,defaultStyle:s||{}}):c=n,typeof r=="function"?f=r({...a,defaultChildren:i}):r==null?f=i:f=r,{className:u??o,style:c||s?{...s,...c}:void 0,children:f??i,"data-rac":""}},[t,n,r,o,i,s,a])}function N4(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function afe(e,t){let n=D.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||M4;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function I4(e,t,n){let r=afe(n,e.slot)||{},{ref:o,...i}=r,s=gh(D.useMemo(()=>_de(t,o),[t,o])),a=wn(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,f={...u.defaultStyle,...c},p=typeof e.style=="function"?e.style({...u,defaultStyle:f}):e.style;return{...f,...p}}:a.style={...i.style,...e.style}),[a,s]}const k4=7e3;let ro=null;function Vb(e,t="assertive",n=k4){ro?ro.announce(e,t,n):(ro=new lfe,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ro.announce(e,t,n):setTimeout(()=>{ro?.isAttached()&&ro?.announce(e,t,n)},100))}class lfe{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=k4){var o,i;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(s):(i=this.politeLog)===null||i===void 0||i.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ufe=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),cfe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function dfe(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return ufe.has(n.script)}let t=e.split("-")[0];return cfe.has(t)}const ffe=Symbol.for("react-aria.i18n.locale");function F4(){let e=typeof window<"u"&&window[ffe]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:dfe(e)?"rtl":"ltr"}}let Kb=F4(),Wc=new Set;function GT(){Kb=F4();for(let e of Wc)e(Kb)}function pfe(){let e=Hd(),[t,n]=D.useState(Kb);return D.useEffect(()=>(Wc.size===0&&window.addEventListener("languagechange",GT),Wc.add(n),()=>{Wc.delete(n),Wc.size===0&&window.removeEventListener("languagechange",GT)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const mfe=D.createContext(null);function Wd(){let e=pfe();return D.useContext(mfe)||e}const hfe=Symbol.for("react-aria.i18n.locale"),gfe=Symbol.for("react-aria.i18n.strings");let zs;class vh{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=vfe(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[hfe];if(zs===void 0){let o=window[gfe];if(!o)return null;zs={};for(let i in o)zs[i]=new vh({[n]:o[i]},n)}let r=zs?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function vfe(e,t,n="en-US"){if(t[e])return t[e];let r=bfe(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function bfe(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const YT=new Map,XT=new Map;class yfe{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,s=YT.get(i);s||(s=new Intl.PluralRules(this.locale,{type:r}),YT.set(i,s));let a=s.select(t);return o=n[a]||n.other,typeof o=="function"?o():o}number(t){let n=XT.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),XT.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const ZT=new WeakMap;function xfe(e){let t=ZT.get(e);return t||(t=new vh(e),ZT.set(e,t)),t}function wfe(e,t){return t&&vh.getGlobalDictionaryForPackage(t)||xfe(e)}function bh(e,t){let{locale:n}=Wd(),r=wfe(e,t);return D.useMemo(()=>new yfe(n,r),[n,r])}function Efe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cfe(e,t,n){Efe(e,t),t.set(e,n)}let Av=new Map;function L4(e){let{locale:t}=Wd(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Av.has(n))return Av.get(n);let r=new Intl.Collator(t,e);return Av.set(n,r),r}function Sw(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function q4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function j4(e){let t=D.useRef({isFocused:!1,observer:null});sn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Kn(r=>{e?.(r)});return D.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=Sw(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let fm=!1;function QT(e){for(;e&&!$4(e);)e=e.parentElement;let t=Tr(e),n=t.document.activeElement;if(!n||n===e)return;fm=!0;let r=!1,o=f=>{(f.target===n||r)&&f.stopImmediatePropagation()},i=f=>{(f.target===n||r)&&(f.stopImmediatePropagation(),!e&&!r&&(r=!0,Wo(n),u()))},s=f=>{(f.target===e||r)&&f.stopImmediatePropagation()},a=f=>{(f.target===e||r)&&(f.stopImmediatePropagation(),r||(r=!0,Wo(n),u()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let u=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),fm=!1,r=!1},c=requestAnimationFrame(u);return u}let Js="default",Hb="",Dp=new WeakMap;function JT(e){if(bw()){if(Js==="default"){const t=xt(e);Hb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Js="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Dp.set(e,e.style[t]),e.style[t]="none"}}function Nv(e){if(bw()){if(Js!=="disabled")return;Js="restoring",setTimeout(()=>{P4(()=>{if(Js==="restoring"){const t=xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Hb||""),Hb="",Js="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Dp.has(e)){let t=Dp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Dp.delete(e)}}const B4=D.createContext({register:()=>{}});B4.displayName="PressResponderContext";function Rfe(e,t){return t.get?t.get.call(e):t.value}function V4(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Sfe(e,t){var n=V4(e,t,"get");return Rfe(e,n)}function Pfe(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function e_(e,t,n){var r=V4(e,t,"set");return Pfe(e,r,n),n}function Tfe(e){let t=D.useContext(B4);if(t){let{register:n,...r}=t;e=wn(r,e),n()}return T4(t,e.ref),e}var bp=new WeakMap;class yp{continuePropagation(){e_(this,bp,!1)}get shouldStopPropagation(){return Sfe(this,bp)}constructor(t,n,r,o){Cfe(this,bp,{writable:!0,value:void 0}),e_(this,bp,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:r.currentTarget;const a=s?.getBoundingClientRect();let u,c=0,f,p=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,p=r.clientY),a&&(f!=null&&p!=null?(u=f-a.left,c=p-a.top):(u=a.width/2,c=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=u,this.y=c}}const t_=Symbol("linkClicked"),n_="react-aria-pressable-style",r_="data-react-aria-pressable";function Pw(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:m,...b}=Tfe(e),[y,v]=D.useState(!1),E=D.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:R}=hh(),P=Kn((A,H)=>{let F=E.current;if(a||F.didFirePressStart)return!1;let N=!0;if(F.isTriggeringEvent=!0,r){let j=new yp("pressstart",H,A);r(j),N=j.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),N}),O=Kn((A,H,F=!0)=>{let N=E.current;if(!N.didFirePressStart)return!1;N.didFirePressStart=!1,N.isTriggeringEvent=!0;let j=!0;if(o){let I=new yp("pressend",H,A);o(I),j=I.shouldStopPropagation}if(n&&n(!1),v(!1),t&&F&&!a){let I=new yp("press",H,A);t(I),j&&(j=I.shouldStopPropagation)}return N.isTriggeringEvent=!1,j}),S=Kn((A,H)=>{let F=E.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let N=new yp("pressup",H,A);return i(N),F.isTriggeringEvent=!1,N.shouldStopPropagation}return!0}),T=Kn(A=>{let H=E.current;if(H.isPressed&&H.target){H.didFirePressStart&&H.pointerType!=null&&O(Xi(H.target,A),H.pointerType,!1),H.isPressed=!1,H.isOverTarget=!1,H.activePointerId=null,H.pointerType=null,R(),p||Nv(H.target);for(let F of H.disposables)F();H.disposables=[]}}),_=Kn(A=>{f&&T(A)}),$=Kn(A=>{a||s?.(A)}),V=Kn((A,H)=>{if(!a&&s){let F=new MouseEvent("click",A);q4(F,H),s(Sw(F))}}),U=D.useMemo(()=>{let A=E.current,H={onKeyDown(N){if(Iv(N.nativeEvent,N.currentTarget)&&qt(N.currentTarget,ht(N.nativeEvent))){var j;s_(ht(N.nativeEvent),N.key)&&N.preventDefault();let I=!0;if(!A.isPressed&&!N.repeat){A.target=N.currentTarget,A.isPressed=!0,A.pointerType="keyboard",I=P(N,"keyboard");let k=N.currentTarget,q=z=>{Iv(z,k)&&!z.repeat&&qt(k,ht(z))&&A.target&&S(Xi(A.target,z),"keyboard")};x(xt(N.currentTarget),"keyup",fh(q,F),!0)}I&&N.stopPropagation(),N.metaKey&&gs()&&((j=A.metaKeyEvents)===null||j===void 0||j.set(N.key,N.nativeEvent))}else N.key==="Meta"&&(A.metaKeyEvents=new Map)},onClick(N){if(!(N&&!qt(N.currentTarget,ht(N.nativeEvent)))&&N&&N.button===0&&!A.isTriggeringEvent&&!vs.isOpening){let j=!0;if(a&&N.preventDefault(),!A.ignoreEmulatedMouseEvents&&!A.isPressed&&(A.pointerType==="virtual"||Bb(N.nativeEvent))){let I=P(N,"virtual"),k=S(N,"virtual"),q=O(N,"virtual");$(N),j=I&&k&&q}else if(A.isPressed&&A.pointerType!=="keyboard"){let I=A.pointerType||N.nativeEvent.pointerType||"virtual",k=S(Xi(N.currentTarget,N),I),q=O(Xi(N.currentTarget,N),I,!0);j=k&&q,A.isOverTarget=!1,$(N),T(N)}A.ignoreEmulatedMouseEvents=!1,j&&N.stopPropagation()}}},F=N=>{var j;if(A.isPressed&&A.target&&Iv(N,A.target)){var I;s_(ht(N),N.key)&&N.preventDefault();let q=ht(N),z=qt(A.target,ht(N));O(Xi(A.target,N),"keyboard",z),z&&V(N,A.target),R(),N.key!=="Enter"&&Tw(A.target)&&qt(A.target,q)&&!N[t_]&&(N[t_]=!0,vs(A.target,N,!1)),A.isPressed=!1,(I=A.metaKeyEvents)===null||I===void 0||I.delete(N.key)}else if(N.key==="Meta"&&(!((j=A.metaKeyEvents)===null||j===void 0)&&j.size)){var k;let q=A.metaKeyEvents;A.metaKeyEvents=void 0;for(let z of q.values())(k=A.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){H.onPointerDown=I=>{if(I.button!==0||!qt(I.currentTarget,ht(I.nativeEvent)))return;if(Xde(I.nativeEvent)){A.pointerType="virtual";return}A.pointerType=I.pointerType;let k=!0;if(!A.isPressed){A.isPressed=!0,A.isOverTarget=!0,A.activePointerId=I.pointerId,A.target=I.currentTarget,p||JT(A.target),k=P(I,A.pointerType);let q=ht(I.nativeEvent);"releasePointerCapture"in q&&q.releasePointerCapture(I.pointerId),x(xt(I.currentTarget),"pointerup",N,!1),x(xt(I.currentTarget),"pointercancel",j,!1)}k&&I.stopPropagation()},H.onMouseDown=I=>{if(qt(I.currentTarget,ht(I.nativeEvent))&&I.button===0){if(c){let k=QT(I.target);k&&A.disposables.push(k)}I.stopPropagation()}},H.onPointerUp=I=>{!qt(I.currentTarget,ht(I.nativeEvent))||A.pointerType==="virtual"||I.button===0&&!A.isPressed&&S(I,A.pointerType||I.pointerType)},H.onPointerEnter=I=>{I.pointerId===A.activePointerId&&A.target&&!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,P(Xi(A.target,I),A.pointerType))},H.onPointerLeave=I=>{I.pointerId===A.activePointerId&&A.target&&A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,O(Xi(A.target,I),A.pointerType,!1),_(I))};let N=I=>{if(I.pointerId===A.activePointerId&&A.isPressed&&I.button===0&&A.target){if(qt(A.target,ht(I))&&A.pointerType!=null){let k=!1,q=setTimeout(()=>{A.isPressed&&A.target instanceof HTMLElement&&(k?T(I):(Wo(A.target),A.target.click()))},80);x(I.currentTarget,"click",()=>k=!0,!0),A.disposables.push(()=>clearTimeout(q))}else T(I);A.isOverTarget=!1}},j=I=>{T(I)};H.onDragStart=I=>{qt(I.currentTarget,ht(I.nativeEvent))&&T(I)}}else if(process.env.NODE_ENV==="test"){H.onMouseDown=I=>{if(I.button!==0||!qt(I.currentTarget,ht(I.nativeEvent)))return;if(A.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(A.isPressed=!0,A.isOverTarget=!0,A.target=I.currentTarget,A.pointerType=Bb(I.nativeEvent)?"virtual":"mouse",Wr.flushSync(()=>P(I,A.pointerType))&&I.stopPropagation(),c){let q=QT(I.target);q&&A.disposables.push(q)}x(xt(I.currentTarget),"mouseup",N,!1)},H.onMouseEnter=I=>{if(!qt(I.currentTarget,ht(I.nativeEvent)))return;let k=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!0,k=P(I,A.pointerType)),k&&I.stopPropagation()},H.onMouseLeave=I=>{if(!qt(I.currentTarget,ht(I.nativeEvent)))return;let k=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!1,k=O(I,A.pointerType,!1),_(I)),k&&I.stopPropagation()},H.onMouseUp=I=>{qt(I.currentTarget,ht(I.nativeEvent))&&!A.ignoreEmulatedMouseEvents&&I.button===0&&!A.isPressed&&S(I,A.pointerType||"mouse")};let N=I=>{if(I.button===0){if(A.ignoreEmulatedMouseEvents){A.ignoreEmulatedMouseEvents=!1;return}A.target&&A.target.contains(I.target)&&A.pointerType!=null||T(I),A.isOverTarget=!1}};H.onTouchStart=I=>{if(!qt(I.currentTarget,ht(I.nativeEvent)))return;let k=_fe(I.nativeEvent);if(!k)return;A.activePointerId=k.identifier,A.ignoreEmulatedMouseEvents=!0,A.isOverTarget=!0,A.isPressed=!0,A.target=I.currentTarget,A.pointerType="touch",p||JT(A.target),P(pi(A.target,I),A.pointerType)&&I.stopPropagation(),x(Tr(I.currentTarget),"scroll",j,!0)},H.onTouchMove=I=>{if(!qt(I.currentTarget,ht(I.nativeEvent)))return;if(!A.isPressed){I.stopPropagation();return}let k=o_(I.nativeEvent,A.activePointerId),q=!0;k&&i_(k,I.currentTarget)?!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,q=P(pi(A.target,I),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,q=O(pi(A.target,I),A.pointerType,!1),_(pi(A.target,I))),q&&I.stopPropagation()},H.onTouchEnd=I=>{if(!qt(I.currentTarget,ht(I.nativeEvent)))return;if(!A.isPressed){I.stopPropagation();return}let k=o_(I.nativeEvent,A.activePointerId),q=!0;k&&i_(k,I.currentTarget)&&A.pointerType!=null?(S(pi(A.target,I),A.pointerType),q=O(pi(A.target,I),A.pointerType),V(I.nativeEvent,A.target)):A.isOverTarget&&A.pointerType!=null&&(q=O(pi(A.target,I),A.pointerType,!1)),q&&I.stopPropagation(),A.isPressed=!1,A.activePointerId=null,A.isOverTarget=!1,A.ignoreEmulatedMouseEvents=!0,A.target&&!p&&Nv(A.target),R()},H.onTouchCancel=I=>{qt(I.currentTarget,ht(I.nativeEvent))&&(I.stopPropagation(),A.isPressed&&T(pi(A.target,I)))};let j=I=>{A.isPressed&&qt(ht(I),A.target)&&T({currentTarget:A.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};H.onDragStart=I=>{qt(I.currentTarget,ht(I.nativeEvent))&&T(I)}}return H},[x,a,c,R,p,T,_,O,P,S,$,V]);return D.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const A=xt(m.current);if(!A||!A.head||A.getElementById(n_))return;const H=A.createElement("style");H.id=n_,H.textContent=`
|
|
136
|
-
@layer {
|
|
137
|
-
[${r_}] {
|
|
138
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
`.trim(),A.head.prepend(H)},[m]),D.useEffect(()=>{let A=E.current;return()=>{var H;p||Nv((H=A.target)!==null&&H!==void 0?H:void 0);for(let F of A.disposables)F();A.disposables=[]}},[p]),{isPressed:u||y,pressProps:wn(b,U,{[r_]:!0})}}function Tw(e){return e.tagName==="A"&&e.hasAttribute("href")}function Iv(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Tr(o).HTMLInputElement&&!K4(o,n)||o instanceof Tr(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Tw(o))&&n!=="Enter")}function _fe(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function o_(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function pi(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Xi(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Ofe(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $fe(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function i_(e,t){let n=t.getBoundingClientRect(),r=Ofe(e);return $fe(n,r)}function Dfe(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Tw(e)}function s_(e,t){return e instanceof HTMLInputElement?!K4(e,t):Dfe(e)}const Mfe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function K4(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Mfe.has(e.type)}let Ti=null,cd=new Set,Zc=new Map,bs=!1,Wb=!1;const Afe={Tab:!0,Escape:!0};function _w(e,t){for(let n of cd)n(e,t)}function Nfe(e){return!(e.metaKey||!gs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function pm(e){bs=!0,Nfe(e)&&(Ti="keyboard",_w("keyboard",e))}function Sr(e){Ti="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bs=!0,_w("pointer",e))}function H4(e){Bb(e)&&(bs=!0,Ti="virtual")}function W4(e){e.target===window||e.target===document||fm||!e.isTrusted||(!bs&&!Wb&&(Ti="virtual",_w("virtual",e)),bs=!1,Wb=!1)}function U4(){fm||(bs=!1,Wb=!0)}function mm(e){if(typeof window>"u"||typeof document>"u"||Zc.get(Tr(e)))return;const t=Tr(e),n=xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bs=!0,r.apply(this,arguments)},n.addEventListener("keydown",pm,!0),n.addEventListener("keyup",pm,!0),n.addEventListener("click",H4,!0),t.addEventListener("focus",W4,!0),t.addEventListener("blur",U4,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Sr,!0),n.addEventListener("pointermove",Sr,!0),n.addEventListener("pointerup",Sr,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Sr,!0),n.addEventListener("mousemove",Sr,!0),n.addEventListener("mouseup",Sr,!0)),t.addEventListener("beforeunload",()=>{z4(e)},{once:!0}),Zc.set(t,{focus:r})}const z4=(e,t)=>{const n=Tr(e),r=xt(e);t&&r.removeEventListener("DOMContentLoaded",t),Zc.has(n)&&(n.HTMLElement.prototype.focus=Zc.get(n).focus,r.removeEventListener("keydown",pm,!0),r.removeEventListener("keyup",pm,!0),r.removeEventListener("click",H4,!0),n.removeEventListener("focus",W4,!0),n.removeEventListener("blur",U4,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Sr,!0),r.removeEventListener("pointermove",Sr,!0),r.removeEventListener("pointerup",Sr,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Sr,!0),r.removeEventListener("mousemove",Sr,!0),r.removeEventListener("mouseup",Sr,!0)),Zc.delete(n))};function Ife(e){const t=xt(e);let n;return t.readyState!=="loading"?mm(e):(n=()=>{mm(e)},t.addEventListener("DOMContentLoaded",n)),()=>z4(e,n)}typeof document<"u"&&Ife();function Ow(){return Ti!=="pointer"}function hm(){return Ti}function kfe(){mm();let[e,t]=D.useState(Ti);return D.useEffect(()=>{let n=()=>{t(Ti)};return cd.add(n),()=>{cd.delete(n)}},[]),Hd()?null:e}const Ffe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lfe(e,t,n){let r=xt(n?.target);const o=typeof window<"u"?Tr(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Tr(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Tr(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Tr(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!Ffe.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!Afe[n.key])}function qfe(e,t,n){mm(),D.useEffect(()=>{let r=(o,i)=>{Lfe(!!n?.isTextInput,o,i)&&e(Ow())};return cd.add(r),()=>{cd.delete(r)}},t)}function Rr(e){const t=xt(e),n=Nn(t);if(hm()==="virtual"){let r=n;P4(()=>{Nn(t)===r&&e.isConnected&&Wo(e)})}else Wo(e)}function G4(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=D.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),s=j4(i),a=D.useCallback(u=>{const c=xt(u.target),f=c?Nn(c):Nn();u.target===u.currentTarget&&f===ht(u.nativeEvent)&&(n&&n(u),o&&o(!0),s(u))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function a_(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function jfe(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:a_(e.onKeyDown),onKeyUp:a_(e.onKeyUp)}}}let Ub=D.createContext(null);function Bfe(e){let t=D.useContext(Ub)||{};T4(t,e);let{ref:n,...r}=t;return r}function Vfe(e,t){let{focusProps:n}=G4(e),{keyboardProps:r}=jfe(e),o=wn(n,r),i=Bfe(t),s=e.isDisabled?{}:i,a=D.useRef(e.autoFocus);D.useEffect(()=>{a.current&&t.current&&Rr(t.current),a.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:wn({...o,tabIndex:u},s)}}function Y4(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=D.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=hh(),u=D.useCallback(p=>{p.currentTarget.contains(p.target)&&i.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(p),o&&o(!1))},[n,o,i,a]),c=j4(u),f=D.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const m=xt(p.target),b=Nn(m);if(!i.current.isFocusWithin&&b===ht(p.nativeEvent)){r&&r(p),o&&o(!0),i.current.isFocusWithin=!0,c(p);let y=p.currentTarget;s(m,"focus",v=>{if(i.current.isFocusWithin&&!qt(y,v.target)){let E=new m.defaultView.FocusEvent("blur",{relatedTarget:v.target});q4(E,y);let x=Sw(E);u(x)}},{capture:!0})}},[r,o,c,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let gm=!1,xp=0;function zb(){gm=!0,setTimeout(()=>{gm=!1},50)}function l_(e){e.pointerType==="touch"&&zb()}function Kfe(){if(!(typeof document>"u"))return xp===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",l_):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",zb)),xp++,()=>{xp--,!(xp>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",l_):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",zb))}}function X4(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=D.useState(!1),a=D.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;D.useEffect(Kfe,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=hh(),{hoverProps:f,triggerHoverEnd:p}=D.useMemo(()=>{let m=(v,E)=>{if(a.pointerType=E,o||E==="touch"||a.isHovered||!v.currentTarget.contains(v.target))return;a.isHovered=!0;let x=v.currentTarget;a.target=x,u(xt(v.target),"pointerover",R=>{a.isHovered&&a.target&&!qt(a.target,R.target)&&b(R,R.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:E}),n&&n(!0),s(!0)},b=(v,E)=>{let x=a.target;a.pointerType="",a.target=null,!(E==="touch"||!a.isHovered||!x)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:E}),n&&n(!1),s(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=v=>{gm&&v.pointerType==="mouse"||m(v,v.pointerType)},y.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&b(v,v.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=v=>{!a.ignoreEmulatedMouseEvents&&!gm&&m(v,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=v=>{!o&&v.currentTarget.contains(v.target)&&b(v,"mouse")}),{hoverProps:y,triggerHoverEnd:b}},[t,n,r,o,a,u,c]);return D.useEffect(()=>{o&&p({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:f,isHovered:i}}const Hfe=500;function Wfe(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Hfe,accessibilityDescription:s}=e;const a=D.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=hh(),{pressProps:f}=Pw({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),a.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),xt(m.target).activeElement!==m.target&&Wo(m.target),o&&o({...m,type:"longpress"}),a.current=void 0},i),m.pointerType==="touch")){let b=y=>{y.preventDefault()};u(m.target,"contextmenu",b,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(m.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(m){a.current&&clearTimeout(a.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),p=_4(o&&!t?s:void 0);return{longPressProps:wn(f,p)}}const u_=D.createContext(null),Gb="react-aria-focus-scope-restore";let kt=null;function Ufe(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=D.useRef(null),s=D.useRef(null),a=D.useRef([]),{parentNode:u}=D.useContext(u_)||{},c=D.useMemo(()=>new Xb({scopeRef:a}),[a]);sn(()=>{let m=u||fn.root;if(fn.getTreeNode(m.scopeRef)&&kt&&!vm(kt,m.scopeRef)){let b=fn.getTreeNode(kt);b&&(m=b)}m.addChild(c),fn.addNode(c)},[c,u]),sn(()=>{let m=fn.getTreeNode(a);m&&(m.contain=!!n)},[n]),sn(()=>{var m;let b=(m=i.current)===null||m===void 0?void 0:m.nextSibling,y=[],v=E=>E.stopPropagation();for(;b&&b!==s.current;)y.push(b),b.addEventListener(Gb,v),b=b.nextSibling;return a.current=y,()=>{for(let E of y)E.removeEventListener(Gb,v)}},[t]),Zfe(a,r,n),Yfe(a,n),Qfe(a,r,n),Xfe(a,o),D.useEffect(()=>{const m=Nn(xt(a.current?a.current[0]:void 0));let b=null;if(Mr(m,a.current)){for(let y of fn.traverse())y.scopeRef&&Mr(m,y.scopeRef.current)&&(b=y);b===fn.getTreeNode(a)&&(kt=b.scopeRef)}},[a]),sn(()=>()=>{var m,b,y;let v=(y=(b=fn.getTreeNode(a))===null||b===void 0||(m=b.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(a===kt||vm(a,kt))&&(!v||fn.getTreeNode(v))&&(kt=v),fn.removeTreeNode(a)},[a]);let f=D.useMemo(()=>zfe(a),[]),p=D.useMemo(()=>({focusManager:f,parentNode:c}),[c,f]);return D.createElement(u_.Provider,{value:p},D.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,D.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function zfe(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t;var a;let u=r||Nn(xt((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,f=ns(n),p=_r(f,{tabbable:o,accept:s},n);p.currentNode=Mr(u,n)?u:c;let m=p.nextNode();return!m&&i&&(p.currentNode=c,m=p.nextNode()),m&&qo(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t;var a;let u=r||Nn(xt((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,f=ns(n),p=_r(f,{tabbable:o,accept:s},n);p.currentNode=Mr(u,n)?u:c;let m=p.previousNode();return!m&&i&&(p.currentNode=c,m=p.previousNode()),m&&qo(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ns(n),s=_r(i,{tabbable:r,accept:o},n);s.currentNode=n[0].previousElementSibling;let a=s.nextNode();return a&&qo(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ns(n),s=_r(i,{tabbable:r,accept:o},n);s.currentNode=n[n.length-1].nextElementSibling;let a=s.previousNode();return a&&qo(a,!0),a}}}function ns(e){return e[0].parentElement}function Uc(e){let t=fn.getTreeNode(kt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Gfe(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var n,r;let i=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function Yfe(e,t){let n=D.useRef(void 0),r=D.useRef(void 0);sn(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=xt(o?o[0]:void 0);let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Uc(e)||c.isComposing)return;let f=Nn(i),p=e.current;if(!p||!Mr(f,p))return;let m=ns(p),b=_r(m,{tabbable:!0},p);if(!f)return;b.currentNode=f;let y=c.shiftKey?b.previousNode():b.nextNode();y||(b.currentNode=c.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,y=c.shiftKey?b.previousNode():b.nextNode()),c.preventDefault(),y&&qo(y,!0)},a=c=>{(!kt||vm(kt,e))&&Mr(ht(c),e.current)?(kt=e,n.current=ht(c)):Uc(e)&&!rs(ht(c),e)?n.current?n.current.focus():kt&&kt.current&&Yb(kt.current):Uc(e)&&(n.current=ht(c))},u=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=hm(),p=(f==="virtual"||f===null)&&xw()&&yw(),m=Nn(i);if(!p&&m&&Uc(e)&&!rs(m,e)){kt=e;let y=ht(c);if(y&&y.isConnected){var b;n.current=y,(b=n.current)===null||b===void 0||b.focus()}else kt.current&&Yb(kt.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",a,!1),o?.forEach(c=>c.addEventListener("focusin",a,!1)),o?.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",a,!1),o?.forEach(c=>c.removeEventListener("focusin",a,!1)),o?.forEach(c=>c.removeEventListener("focusout",u,!1))}},[e,t]),sn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Z4(e){return rs(e)}function Mr(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function rs(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of fn.traverse(fn.getTreeNode(t)))if(n&&Mr(e,n.current))return!0;return!1}function vm(e,t){var n;let r=(n=fn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function qo(e,t=!1){if(e!=null&&!t)try{Rr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Q4(e,t=!0){let n=e[0].previousElementSibling,r=ns(e),o=_r(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=ns(e),o=_r(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function Yb(e,t=!0){qo(Q4(e,t))}function Xfe(e,t){const n=D.useRef(t);D.useEffect(()=>{if(n.current){kt=e;const r=xt(e.current?e.current[0]:void 0);!Mr(Nn(r),kt.current)&&e.current&&Yb(e.current)}n.current=!1},[e])}function Zfe(e,t,n){sn(()=>{if(t||n)return;let r=e.current;const o=xt(r?r[0]:void 0);let i=s=>{let a=ht(s);Mr(a,e.current)?kt=e:Z4(a)||(kt=null)};return o.addEventListener("focusin",i,!1),r?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,n])}function c_(e){let t=fn.getTreeNode(kt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Qfe(e,t,n){const r=D.useRef(typeof document<"u"?Nn(xt(e.current?e.current[0]:void 0)):null);sn(()=>{let o=e.current;const i=xt(o?o[0]:void 0);if(!t||n)return;let s=()=>{(!kt||vm(kt,e))&&Mr(Nn(i),e.current)&&(kt=e)};return i.addEventListener("focusin",s,!1),o?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,n]),sn(()=>{const o=xt(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Uc(e)||s.isComposing)return;let a=o.activeElement;if(!rs(a,e)||!c_(e))return;let u=fn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore,f=_r(o.body,{tabbable:!0});f.currentNode=a;let p=s.shiftKey?f.previousNode():f.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!rs(p,e))&&c){f.currentNode=c;do p=s.shiftKey?f.previousNode():f.nextNode();while(rs(p,e));s.preventDefault(),s.stopPropagation(),p?qo(p,!0):Z4(c)?qo(c,!0):a.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),sn(()=>{const o=xt(e.current?e.current[0]:void 0);if(!t)return;let i=fn.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let a=fn.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,c=Nn(o);if(t&&u&&(c&&rs(c,e)||c===o.body&&c_(e))){let f=fn.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let p=f.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){d_(p.nodeToRestore);return}p=p.parent}for(p=f.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&fn.getTreeNode(p.scopeRef)){let m=Q4(p.scopeRef.current,!0);d_(m);return}p=p.parent}}})}}}},[e,t])}function d_(e){e.dispatchEvent(new CustomEvent(Gb,{bubbles:!0,cancelable:!0}))&&qo(e)}function _r(e,t,n){let r=t?.tabbable?sfe:$4,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=xt(o),s=Tde(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!Gfe(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(a)&&(!n||Mr(a,n))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class $w{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new Xb({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Mr(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new $w;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Xb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let fn=new $w;function bm(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=D.useRef({isFocused:!1,isFocusVisible:t||Ow()}),[i,s]=D.useState(!1),[a,u]=D.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=D.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),f=D.useCallback(b=>{o.current.isFocused=b,s(b),c()},[c]);qfe(b=>{o.current.isFocusVisible=b,c()},[],{isTextInput:n});let{focusProps:p}=G4({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=Y4({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:r?m:p}}function Jfe(e,t){let n=t?.isDisabled,[r,o]=D.useState(!1);return sn(()=>{if(e?.current&&!n){let i=()=>{if(e.current){let a=_r(e.current,{tabbable:!0});o(!!a.nextNode())}};i();let s=new MutationObserver(i);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),n?!1:r}function J4(e){let t=tpe(xt(e));t!==e&&(t&&epe(t,e),e&&eF(e,t))}function epe(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function eF(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function tpe(e){let t=Nn(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const f_={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Dw(e={}){let{style:t,isFocusable:n}=e,[r,o]=D.useState(!1),{focusWithinProps:i}=Y4({isDisabled:!n,onFocusWithinChange:a=>o(a)}),s=D.useMemo(()=>r?t:t?{...f_,...t}:f_,[r]);return{visuallyHiddenProps:{...i,style:s}}}function Zb(e){return Lde()?e.altKey:e.ctrlKey}function Mp(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const tF=new WeakMap;function npe(e){let t=Ho();return tF.set(e,t),t}function rpe(e){return tF.get(e)}const ope=1e3;function ipe(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=D.useRef({search:"",timeout:void 0}).current,i=s=>{let a=spe(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&a===" ")){if(a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let u=t.getKeyForSearch(o.search,n.focusedKey);u==null&&(u=t.getKeyForSearch(o.search)),u!=null&&(n.setFocusedKey(u),r&&r(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},ope)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function spe(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ape(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:p,allowsTabNavigation:m=!1,isVirtualized:b,scrollRef:y=r,linkBehavior:v="action"}=e,{direction:E}=Wd(),x=ww(),R=k=>{var q;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((q=r.current)===null||q===void 0)&&q.contains(k.target)))return;const z=(Z,xe)=>{if(Z!=null){if(t.isLink(Z)&&v==="selection"&&c&&!Zb(k)){Wr.flushSync(()=>{t.setFocusedKey(Z,xe)});let Re=Mp(r,Z),Ae=t.getItemProps(Z);Re&&x.open(Re,k,Ae.href,Ae.routerOptions);return}if(t.setFocusedKey(Z,xe),t.isLink(Z)&&v==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):c&&!Zb(k)&&t.replaceSelection(Z)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var W,te,X;let Z=t.focusedKey!=null?(W=n.getKeyBelow)===null||W===void 0?void 0:W.call(n,t.focusedKey):(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n);Z==null&&i&&(Z=(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),z(Z))}break;case"ArrowUp":if(n.getKeyAbove){var Q,re,ce;let Z=t.focusedKey!=null?(Q=n.getKeyAbove)===null||Q===void 0?void 0:Q.call(n,t.focusedKey):(re=n.getLastKey)===null||re===void 0?void 0:re.call(n);Z==null&&i&&(Z=(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),z(Z))}break;case"ArrowLeft":if(n.getKeyLeftOf){var se,ee,de;let Z=t.focusedKey!=null?(se=n.getKeyLeftOf)===null||se===void 0?void 0:se.call(n,t.focusedKey):null;Z==null&&i&&(Z=E==="rtl"?(ee=n.getFirstKey)===null||ee===void 0?void 0:ee.call(n,t.focusedKey):(de=n.getLastKey)===null||de===void 0?void 0:de.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),z(Z,E==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var K,ue,le;let Z=t.focusedKey!=null?(K=n.getKeyRightOf)===null||K===void 0?void 0:K.call(n,t.focusedKey):null;Z==null&&i&&(Z=E==="rtl"?(ue=n.getLastKey)===null||ue===void 0?void 0:ue.call(n,t.focusedKey):(le=n.getFirstKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),z(Z,E==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getFirstKey(t.focusedKey,Qs(k));t.setFocusedKey(Z),Z!=null&&(Qs(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):c&&t.replaceSelection(Z))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getLastKey(t.focusedKey,Qs(k));t.setFocusedKey(Z),Z!=null&&(Qs(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):c&&t.replaceSelection(Z))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Z=n.getKeyPageBelow(t.focusedKey);Z!=null&&(k.preventDefault(),z(Z))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Z=n.getKeyPageAbove(t.focusedKey);Z!=null&&(k.preventDefault(),z(Z))}break;case"a":Qs(k)&&t.selectionMode==="multiple"&&a!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":u==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!m){if(k.shiftKey)r.current.focus();else{let Z=_r(r.current,{tabbable:!0}),xe,Re;do Re=Z.lastChild(),Re&&(xe=Re);while(Re);xe&&!xe.contains(document.activeElement)&&Wo(xe)}break}}},P=D.useRef({top:0,left:0});vp(y,"scroll",b?void 0:()=>{var k,q,z,W;P.current={top:(z=(k=y.current)===null||k===void 0?void 0:k.scrollTop)!==null&&z!==void 0?z:0,left:(W=(q=y.current)===null||q===void 0?void 0:q.scrollLeft)!==null&&W!==void 0?W:0}});let O=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var q,z;let X=re=>{re!=null&&(t.setFocusedKey(re),c&&!t.isSelected(re)&&t.replaceSelection(re))},Q=k.relatedTarget;var W,te;Q&&k.currentTarget.compareDocumentPosition(Q)&Node.DOCUMENT_POSITION_FOLLOWING?X((W=t.lastSelectedKey)!==null&&W!==void 0?W:(q=n.getLastKey)===null||q===void 0?void 0:q.call(n)):X((te=t.firstSelectedKey)!==null&&te!==void 0?te:(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))}else!b&&y.current&&(y.current.scrollTop=P.current.top,y.current.scrollLeft=P.current.left);if(t.focusedKey!=null&&y.current){let X=Mp(r,t.focusedKey);X instanceof HTMLElement&&(!X.contains(document.activeElement)&&!p&&Wo(X),hm()==="keyboard"&&bi(X,{containingElement:r.current}))}}},S=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)},T=D.useRef(!1);vp(r,efe,p?k=>{let{detail:q}=k;k.stopPropagation(),t.setFocused(!0),q?.focusStrategy==="first"&&(T.current=!0)}:void 0);let _=Kn(()=>{var k,q;let z=(q=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&q!==void 0?q:null;if(z==null){let W=Nn();J4(r.current),eF(W,null),t.collection.size>0&&(T.current=!1)}else t.setFocusedKey(z),T.current=!1});UT(()=>{T.current&&_()},[t.collection,_]);let $=Kn(()=>{t.collection.size>0&&(T.current=!1)});UT(()=>{$()},[t.focusedKey,$]),vp(r,Jde,p?k=>{var q;k.stopPropagation(),t.setFocused(!1),!((q=k.detail)===null||q===void 0)&&q.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=D.useRef(o),U=D.useRef(!1);D.useEffect(()=>{if(V.current){var k,q;let te=null;var z;o==="first"&&(te=(z=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&z!==void 0?z:null);var W;o==="last"&&(te=(W=(q=n.getLastKey)===null||q===void 0?void 0:q.call(n))!==null&&W!==void 0?W:null);let X=t.selectedKeys;if(X.size){for(let Q of X)if(t.canSelectItem(Q)){te=Q;break}}t.setFocused(!0),t.setFocusedKey(te),te==null&&!p&&r.current&&Rr(r.current),t.collection.size>0&&(V.current=!1,U.current=!0)}});let A=D.useRef(t.focusedKey),H=D.useRef(null);D.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==A.current||U.current)&&y.current&&r.current){let k=hm(),q=Mp(r,t.focusedKey);if(!(q instanceof HTMLElement))return;(k==="keyboard"||U.current)&&(H.current&&cancelAnimationFrame(H.current),H.current=requestAnimationFrame(()=>{y.current&&(O4(y.current,q),k!=="virtual"&&bi(q,{containingElement:r.current}))}))}!p&&t.isFocused&&t.focusedKey==null&&A.current!=null&&r.current&&Rr(r.current),A.current=t.focusedKey,U.current=!1}),D.useEffect(()=>()=>{H.current&&cancelAnimationFrame(H.current)},[]),vp(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let F={onKeyDown:R,onFocus:O,onBlur:S,onMouseDown(k){y.current===k.target&&k.preventDefault()}},{typeSelectProps:N}=ipe({keyboardDelegate:n,selectionManager:t});f||(F=wn(N,F));let j;p||(j=t.focusedKey==null?0:-1);let I=npe(t.collection);return{collectionProps:wn(F,{tabIndex:j,"data-collection":I})}}function lpe(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,m=ww();t=Ho(t);let b=W=>{if(W.pointerType==="keyboard"&&Zb(W))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&o.current){let te=n.getItemProps(r);m.open(o.current,W,te.href,te.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(p==="override"||p==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):W&&W.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||W&&(Qs(W)||W.pointerType==="touch"||W.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};D.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(s?J4(o.current):a?a():document.activeElement!==o.current&&o.current&&Rr(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),u=u||n.isDisabled(r);let y={};!s&&!u?y={tabIndex:r===n.focusedKey?0:-1,onFocus(W){W.target===o.current&&n.setFocusedKey(r)}}:u&&(y.onMouseDown=W=>{W.preventDefault()});let v=n.isLink(r)&&p==="override",E=c&&e.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&p!=="selection"&&p!=="none",R=!u&&n.canSelectItem(r)&&!v&&!E,P=(c||x)&&!u,O=P&&(n.selectionBehavior==="replace"?!R:!R||n.isEmpty),S=P&&R&&n.selectionBehavior==="replace",T=O||S,_=D.useRef(null),$=T&&R,V=D.useRef(!1),U=D.useRef(!1),A=n.getItemProps(r),H=W=>{if(c){var te;c(),(te=o.current)===null||te===void 0||te.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&o.current&&m.open(o.current,W,A.href,A.routerOptions)},F={ref:o};if(i?(F.onPressStart=W=>{_.current=W.pointerType,V.current=$,W.pointerType==="keyboard"&&(!T||m_())&&b(W)},f?(F.onPressUp=O?void 0:W=>{W.pointerType==="mouse"&&R&&b(W)},F.onPress=O?H:W=>{W.pointerType!=="keyboard"&&W.pointerType!=="mouse"&&R&&b(W)}):F.onPress=W=>{if(O||S&&W.pointerType!=="mouse"){if(W.pointerType==="keyboard"&&!p_())return;H(W)}else W.pointerType!=="keyboard"&&R&&b(W)}):(F.onPressStart=W=>{_.current=W.pointerType,V.current=$,U.current=O,R&&(W.pointerType==="mouse"&&!O||W.pointerType==="keyboard"&&(!P||m_()))&&b(W)},F.onPress=W=>{(W.pointerType==="touch"||W.pointerType==="pen"||W.pointerType==="virtual"||W.pointerType==="keyboard"&&T&&p_()||W.pointerType==="mouse"&&U.current)&&(T?H(W):R&&b(W))}),y["data-collection"]=rpe(n.collection),y["data-key"]=r,F.preventFocusOnPress=s,s&&(F=wn(F,{onPressStart(W){W.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(W){W.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),A)for(let W of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])A[W]&&(F[W]=fh(F[W],A[W]));let{pressProps:N,isPressed:j}=Pw(F),I=S?W=>{_.current==="mouse"&&(W.stopPropagation(),W.preventDefault(),H(W))}:void 0,{longPressProps:k}=Wfe({isDisabled:!$,onLongPress(W){W.pointerType==="touch"&&(b(W),n.setSelectionBehavior("toggle"))}}),q=W=>{_.current==="touch"&&V.current&&W.preventDefault()},z=p!=="none"&&n.isLink(r)?W=>{vs.isOpening||W.preventDefault()}:void 0;return{itemProps:wn(y,R||O||s&&!u?N:{},$?k:{},{onDoubleClick:I,onDragStartCapture:q,onClick:z,id:t},s?{onMouseDown:W=>W.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:R,hasAction:T}}function p_(){let e=window.event;return e?.key==="Enter"}function m_(){let e=window.event;return e?.key===" "||e?.code==="Space"}class h_{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Mp(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t?.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t?.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class nF{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if(o?.type==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(s,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!ud(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!ud(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new h_(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new h_(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function upe(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,a=L4({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=D.useMemo(()=>i||new nF({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:a,layoutDelegate:s}),[i,s,n,r,o,a,u]),{collectionProps:f}=ape({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:f}}class cpe{build(t,n){return this.context=n,g_(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(D.isValidElement(n)&&n.type===D.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];D.Children.forEach(n,s=>{s&&o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let u of a)i++,yield u}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(D.isValidElement(t.element)&&t.element.type===D.Fragment){let E=[];D.Children.forEach(t.element.props.children,R=>{E.push(R)});var i;let x=(i=t.index)!==null&&i!==void 0?i:0;for(const R of E)yield*this.getFullNode({element:R,index:x++},n,r,o);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let E=this.cache.get(t.value);if(E&&(!E.shouldInvalidate||!E.shouldInvalidate(this.context))){E.index=t.index,E.parentKey=o?o.key:null,yield E;return}s=n.renderer(t.value)}if(D.isValidElement(s)){let E=s.type;if(typeof E!="function"&&typeof E.getCollectionNode!="function"){let O=s.type;throw new Error(`Unknown element <${O}> in collection.`)}let x=E.getCollectionNode(s.props,this.context);var a;let R=(a=t.index)!==null&&a!==void 0?a:0,P=x.next();for(;!P.done&&P.value;){let O=P.value;t.index=R;var u;let S=(u=O.key)!==null&&u!==void 0?u:null;S==null&&(S=O.element?null:this.getKey(s,t,n,r));let _=[...this.getFullNode({...O,key:S,index:R,wrapper:dpe(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${s.key}`:s.key,o)];for(let $ of _){var c,f;$.value=(f=(c=O.value)!==null&&c!==void 0?c:t.value)!==null&&f!==void 0?f:null,$.value&&this.cache.set($.value,$);var p;if(t.type&&$.type!==t.type)throw new Error(`Unsupported type <${kv($.type)}> in <${kv((p=o?.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${kv(t.type)}> is supported.`);R++,yield $}P=x.next(_)}return}if(t.key==null||t.type==null)return;let m=this;var b,y;let v={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:g_(function*(){if(!t.hasChildNodes||!t.childNodes)return;let E=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${v.key}${x.key}`);let R=m.getFullNode({...x,index:E},m.getChildState(n,x),v.key,v);for(let P of R)E++,yield P}})};yield v}constructor(){this.cache=new WeakMap}}function g_(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function dpe(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function kv(e){return e[0].toUpperCase()+e.slice(1)}function fpe(e,t,n){let r=D.useMemo(()=>new cpe,[]),{children:o,items:i,collection:s}=e;return D.useMemo(()=>{if(s)return s;let u=r.build({children:o,items:i},n);return t(u)},[r,o,i,s,n,t])}function ppe(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function mpe(e){return hpe(e)}function hpe(e,t){for(let n of e)return n}function Fv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...v_(e,t),t],o=[...v_(e,n),n],i=r.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function v_(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class Ta{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class rF extends Ta{filter(t,n,r){let[o,i]=iF(t,n,this.firstChildKey,r),s=this.clone();return s.firstChildKey=o,s.lastChildKey=i,s}}class gpe extends Ta{}gpe.type="header";class oF extends Ta{}oF.type="loader";class vpe extends rF{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}vpe.type="item";class bpe extends rF{filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}bpe.type="section";class ype{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n?.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t?.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=iF(this,n,this.firstKey,t);return n?.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function iF(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,s=e.getItem(n);for(;s!=null;){let c=s.filter(e,t,r);c!=null&&(c.nextKey=null,i&&(c.prevKey=i.key,i.nextKey=c.key),o==null&&(o=c),t.addNode(c),i=c),s=s.nextKey?e.getItem(s.nextKey):null}if(i&&i.type==="separator"){let c=i.prevKey;t.removeNode(i.key),c?(i=t.getItem(c),i.nextKey=null):i=null}var a,u;return[(a=o?.key)!==null&&a!==void 0?a:null,(u=i?.key)!==null&&u!==void 0?u:null]}class sF{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class ia extends sF{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof ia?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,o,i,s,a,u;let c=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var p;f.parentKey=this.parentNode instanceof ia&&(p=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&p!==void 0?p:null;var m;f.prevKey=(m=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&m!==void 0?m:null;var b;f.nextKey=(b=c==null||(o=c.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,f.hasChildNodes=!!this.firstChild;var y;f.firstChildKey=(y=(s=this.firstVisibleChild)===null||s===void 0||(i=s.node)===null||i===void 0?void 0:i.key)!==null&&y!==void 0?y:null;var v;if(f.lastChildKey=(v=(u=this.lastVisibleChild)===null||u===void 0||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&v!==void 0?v:null,(f.colSpan!=null||f.colIndex!=null)&&c){var E,x;let R=((E=f.colIndex)!==null&&E!==void 0?E:f.index)+((x=f.colSpan)!==null&&x!==void 0?x:1);if(c.node!=null&&R!==c.node.colIndex){let P=c.getMutableNode();P.colIndex=R}}}}setProps(t,n,r,o,i){let s,{value:a,textValue:u,id:c,...f}=t;if(this.node==null?(s=new r(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),f.ref=n,s.props=f,s.rendered=o,s.render=i,s.value=a,s.textValue=u||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",c!=null&&c!==s.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(s.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class xpe extends sF{get isConnected(){return!0}createElement(t){return new ia(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof ia&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof ia?(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.node&&this.dirtyNodes.delete(a),a.isMutated=!1):this.dirtyNodes.delete(a);if(this.nextCollection){var t,n,r,o,i,s;this.nextCollection.commit((i=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(s=(o=this.lastVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&s!==void 0?s:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Mw(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,s=D.useMemo(()=>new WeakMap,i);return D.useMemo(()=>{if(n&&typeof t=="function"){let c=[];for(let f of n){let p=s.get(f);if(!p){p=t(f);var a,u;let m=(u=(a=p.props.id)!==null&&a!==void 0?a:f.key)!==null&&u!==void 0?u:f.id;if(m==null)throw new Error("Could not determine key for item");r&&(m=r+":"+m),p=D.cloneElement(p,o?{key:m,id:m,value:f}:{key:m}),s.set(f,p)}c.push(p)}return c}else if(typeof t!="function")return t},[t,n,s,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Qb=D.createContext(!1);function wpe(e){if(D.useContext(Qb))return D.createElement(D.Fragment,null,e.children);let n=D.createElement(Qb.Provider,{value:!0},e.children);return D.createElement("template",{"data-react-aria-hidden":!0},n)}function Epe(e){let t=(n,r)=>D.useContext(Qb)?null:e(n,r);return t.displayName=e.displayName||e.name,D.forwardRef(t)}const aF=D.createContext(!1),dd=D.createContext(null);function Cpe(e){if(D.useContext(dd))return e.content;let{collection:n,document:r}=Tpe(e.createCollection);return D.createElement(D.Fragment,null,D.createElement(wpe,null,D.createElement(dd.Provider,{value:r},e.content)),D.createElement(Rpe,{render:e.children,collection:n}))}function Rpe({collection:e,render:t}){return t(e)}function Spe(e,t,n){let r=Hd(),o=D.useRef(r);o.current=r;let i=D.useCallback(()=>o.current?n():t(),[t,n]);return vy.useSyncExternalStore(e,i)}const Ppe=typeof D.useSyncExternalStore=="function"?D.useSyncExternalStore:Spe;function Tpe(e){let[t]=D.useState(()=>new xpe(e?.()||new ype)),n=D.useCallback(s=>t.subscribe(s),[t]),r=D.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),o=D.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:Ppe(n,r,o),document:t}}const Jb=D.createContext(null);function _pe(e){var t;return t=class extends Ta{},t.type=e,t}function lF(e,t,n,r,o,i){typeof e=="string"&&(e=_pe(e));let s=D.useCallback(u=>{u?.setProps(t,n,e,r,i)},[t,n,r,i,e]),a=D.useContext(Jb);if(a){let u=a.ownerDocument.nodesByProps.get(t);return u||(u=a.ownerDocument.createElement(e.type),u.setProps(t,n,e,r,i),a.appendChild(u),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,u)),o?D.createElement(Jb.Provider,{value:u},o):null}return D.createElement(e.type,{ref:s},o)}function uF(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=D.forwardRef((o,i)=>{let s=D.useContext(Ub);if(!D.useContext(aF)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return lF(e,o,i,"children"in o?o.children:null,null,u=>D.createElement(Ub.Provider,{value:s},D.createElement(n,{node:u})))});return r.displayName=t.name,r}function Ope(e,t,n=cF){let r=({node:i})=>t(i.props,i.props.ref,i),o=D.forwardRef((i,s)=>{let a=n(i);var u;return(u=lF(e,i,s,null,a,c=>D.createElement(r,{node:c})))!==null&&u!==void 0?u:D.createElement(D.Fragment,null)});return o.displayName=t.name,o}function cF(e){return Mw({...e,addIdAndValue:!0})}const b_=D.createContext(null);function Aw(e){let t=D.useContext(b_),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,o=cF({...e,idScope:r,dependencies:n});return D.useContext(dd)&&(o=D.createElement($pe,null,o)),t=D.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),D.createElement(b_.Provider,{value:t},o)}function $pe({children:e}){let t=D.useContext(dd),n=D.useMemo(()=>D.createElement(dd.Provider,{value:null},D.createElement(aF.Provider,{value:!0},e)),[e]);return Hd()?D.createElement(Jb.Provider,{value:t},n):Wr.createPortal(n,t)}const dF={CollectionRoot({collection:e,renderDropIndicator:t}){return y_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return y_(e,t,n)}};function y_(e,t,n){return Mw({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:D.createElement(D.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,Dpe(e,r,n))}})}function Dpe(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let s=t.nextKey!=null?e.getItem(t.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?e.getItem(s.nextKey):null;let a=[];if(s==null){let u=t;for(;u&&(!i||u.parentKey!==i.parentKey&&i.level<u.level);){let c=n({type:"item",key:u.key,dropPosition:"after"});D.isValidElement(c)&&a.push(D.cloneElement(c,{key:`${u.key}-after`})),u=u.parentKey!=null?e.getItem(u.parentKey):null}}return a}const Nw=D.createContext(dF);function Mpe(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:f,onClick:p,href:m,target:b,rel:y,type:v="button"}=e,E;n==="button"?E={type:v,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?b:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:x,isPressed:R}=Pw({onPressStart:i,onPressEnd:s,onPressChange:u,onPress:o,onPressUp:a,onClick:p,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:P}=Vfe(e,t);f&&(P.tabIndex=r?-1:P.tabIndex);let O=wn(P,x,Sa(e,{labelable:!0}));return{isPressed:R,buttonProps:wn(E,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Iw=new WeakMap;function ey(e,t){var n;let{id:r}=(n=Iw.get(e))!==null&&n!==void 0?n:{};if(!r)throw new Error("Unknown list");return`${r}-${Ape(t)}`}function Ape(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var fF={};fF={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var pF={};pF={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var mF={};mF={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var hF={};hF={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var gF={};gF={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var vF={};vF={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var bF={};bF={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var yF={};yF={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var xF={};xF={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var wF={};wF={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var EF={};EF={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var CF={};CF={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var RF={};RF={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var SF={};SF={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var PF={};PF={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var TF={};TF={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var _F={};_F={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var OF={};OF={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var $F={};$F={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var DF={};DF={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var MF={};MF={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var AF={};AF={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var NF={};NF={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var IF={};IF={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var kF={};kF={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var FF={};FF={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var LF={};LF={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var qF={};qF={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var jF={};jF={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var BF={};BF={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var VF={};VF={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var KF={};KF={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var HF={};HF={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var WF={};WF={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var yh={};yh={"ar-AE":fF,"bg-BG":pF,"cs-CZ":mF,"da-DK":hF,"de-DE":gF,"el-GR":vF,"en-US":bF,"es-ES":yF,"et-EE":xF,"fi-FI":wF,"fr-FR":EF,"he-IL":CF,"hr-HR":RF,"hu-HU":SF,"it-IT":PF,"ja-JP":TF,"ko-KR":_F,"lt-LT":OF,"lv-LV":$F,"nb-NO":DF,"nl-NL":MF,"pl-PL":AF,"pt-BR":NF,"pt-PT":IF,"ro-RO":kF,"ru-RU":FF,"sk-SK":LF,"sl-SI":qF,"sr-SP":jF,"sv-SE":BF,"tr-TR":VF,"uk-UA":KF,"zh-CN":HF,"zh-TW":WF};function Npe(e){return e&&e.__esModule?e.default:e}function Ipe(e,t){let{getRowText:n=a=>{var u,c,f,p;return(p=(u=(c=t.collection).getTextValue)===null||u===void 0?void 0:u.call(c,a))!==null&&p!==void 0?p:(f=t.collection.getItem(a))===null||f===void 0?void 0:f.textValue}}=e,r=bh(Npe(yh),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=D.useRef(o),s=Kn(()=>{var a;if(!t.selectionManager.isFocused||o===i.current){i.current=o;return}let u=x_(o,i.current),c=x_(i.current,o),f=t.selectionManager.selectionBehavior==="replace",p=[];if(t.selectionManager.selectedKeys.size===1&&f){let m=t.selectionManager.selectedKeys.keys().next().value;if(m!=null&&t.collection.getItem(m)){let b=n(m);b&&p.push(r.format("selectedItem",{item:b}))}}else if(u.size===1&&c.size===0){let m=u.keys().next().value;if(m!=null){let b=n(m);b&&p.push(r.format("selectedItem",{item:b}))}}else if(c.size===1&&u.size===0){let m=c.keys().next().value;if(m!=null&&t.collection.getItem(m)){let b=n(m);b&&p.push(r.format("deselectedItem",{item:b}))}}t.selectionManager.selectionMode==="multiple"&&(p.length===0||o==="all"||o.size>1||i.current==="all"||((a=i.current)===null||a===void 0?void 0:a.size)>1)&&p.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),p.length>0&&Vb(p.join(" ")),i.current=o});zde(()=>{if(t.selectionManager.isFocused)s();else{let a=requestAnimationFrame(s);return()=>cancelAnimationFrame(a)}},[o,t.selectionManager.isFocused])}function x_(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function kpe(e){return e&&e.__esModule?e.default:e}function Fpe(e){let t=bh(kpe(yh),"@react-aria/grid"),n=kfe(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=D.useMemo(()=>{let s=e.selectionManager.selectionMode,a=e.selectionManager.selectionBehavior,u;return r&&(u=t.format("longPressToSelect")),a==="replace"&&s!=="none"&&e.hasItemActions?u:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return _4(o)}function Lpe(e){return e&&e.__esModule?e.default:e}function qpe(e,t){let{key:n}=e,r=t.selectionManager,o=Ho(),i=!t.selectionManager.canSelectItem(n),s=t.selectionManager.isSelected(n),a=()=>r.toggleSelection(n);const u=bh(Lpe(yh),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":u.format("select"),isSelected:s,isDisabled:i,onChange:a}}}function jpe(e,t,n){let{isVirtualized:r,keyboardDelegate:o,layoutDelegate:i,onAction:s,disallowTypeAhead:a,linkBehavior:u="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:p}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:m}=upe({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:o,layoutDelegate:i,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:u,disallowTypeAhead:a,autoFocus:e.autoFocus,escapeKeyBehavior:f}),b=Ho(e.id);Iw.set(t,{id:b,onAction:s,linkBehavior:u,keyboardNavigationBehavior:c,shouldSelectOnPressUp:p});let y=Fpe({selectionManager:t.selectionManager,hasItemActions:!!s}),v=Jfe(n,{isDisabled:t.collection.size!==0}),E=Sa(e,{labelable:!0}),x=wn(E,{role:"grid",id:b,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:v?-1:0}:m,y);return r&&(x["aria-rowcount"]=t.collection.size,x["aria-colcount"]=1),Ipe({},t),{gridProps:x}}const w_={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Bpe(e,t,n){var r,o;let{node:i,isVirtualized:s}=e,{direction:a}=Wd(),{onAction:u,linkBehavior:c,keyboardNavigationBehavior:f,shouldSelectOnPressUp:p}=Iw.get(t),m=Ede(),b=D.useRef(null),y=()=>{var j;n.current!==null&&(b.current!=null&&i.key!==b.current||!(!((j=n.current)===null||j===void 0)&&j.contains(document.activeElement)))&&Rr(n.current)},v={},E=e.hasChildItems,x=t.selectionManager.isLink(i.key);if(i!=null&&"expandedKeys"in t){var R,P;let j=(R=(P=t.collection).getChildren)===null||R===void 0?void 0:R.call(P,i.key);E=E||[...j??[]].length>1,u==null&&!x&&t.selectionManager.selectionMode==="none"&&E&&(u=()=>t.toggleKey(i.key));let I=E?t.expandedKeys.has(i.key):void 0,k=1;if(i.level>0&&i?.parentKey!=null){let q=t.collection.getItem(i.parentKey);if(q){var O,S;k=[...(O=(S=t.collection).getChildren)===null||O===void 0?void 0:O.call(S,q.key)].filter(W=>W.type==="item").length}}else k=[...t.collection].filter(q=>q.level===0&&q.type==="item").length;v={"aria-expanded":I,"aria-level":i.level+1,"aria-posinset":i?.index+1,"aria-setsize":k}}let{itemProps:T,..._}=lpe({selectionManager:t.selectionManager,key:i.key,ref:n,isVirtualized:s,shouldSelectOnPressUp:e.shouldSelectOnPressUp||p,onAction:u||!((r=i.props)===null||r===void 0)&&r.onAction?fh((o=i.props)===null||o===void 0?void 0:o.onAction,u?()=>u(i.key):void 0):void 0,focus:y,linkBehavior:c}),$=j=>{if(!j.currentTarget.contains(j.target)||!n.current||!document.activeElement)return;let I=_r(n.current);if(I.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(j.key===w_.expand[a]&&t.selectionManager.focusedKey===i.key&&E&&!t.expandedKeys.has(i.key)){t.toggleKey(i.key),j.stopPropagation();return}else if(j.key===w_.collapse[a]&&t.selectionManager.focusedKey===i.key&&E&&t.expandedKeys.has(i.key)){t.toggleKey(i.key),j.stopPropagation();return}}switch(j.key){case"ArrowLeft":if(f==="arrow"){let q=a==="rtl"?I.nextNode():I.previousNode();if(q)j.preventDefault(),j.stopPropagation(),Rr(q),bi(q,{containingElement:es(n.current)});else if(j.preventDefault(),j.stopPropagation(),a==="rtl")Rr(n.current),bi(n.current,{containingElement:es(n.current)});else{I.currentNode=n.current;let z=E_(I);z&&(Rr(z),bi(z,{containingElement:es(n.current)}))}}break;case"ArrowRight":if(f==="arrow"){let q=a==="rtl"?I.previousNode():I.nextNode();if(q)j.preventDefault(),j.stopPropagation(),Rr(q),bi(q,{containingElement:es(n.current)});else if(j.preventDefault(),j.stopPropagation(),a==="ltr")Rr(n.current),bi(n.current,{containingElement:es(n.current)});else{I.currentNode=n.current;let z=E_(I);z&&(Rr(z),bi(z,{containingElement:es(n.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!j.altKey&&n.current.contains(j.target)){var k;j.stopPropagation(),j.preventDefault(),(k=n.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(j.nativeEvent.type,j.nativeEvent))}break}},V=j=>{if(b.current=i.key,j.target!==n.current){Ow()||t.selectionManager.setFocusedKey(i.key);return}},U=j=>{if(!(!j.currentTarget.contains(j.target)||!n.current||!document.activeElement))switch(j.key){case"Tab":if(f==="tab"){let I=_r(n.current,{tabbable:!0});I.currentNode=document.activeElement,(j.shiftKey?I.previousNode():I.nextNode())&&j.stopPropagation()}}},A=Hde(i.props),H=_.hasAction?A:{},F=wn(T,H,{role:"row",onKeyDownCapture:$,onKeyDown:U,onFocus:V,"aria-label":i.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i.key)?t.selectionManager.isSelected(i.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i.key)||void 0,"aria-labelledby":m&&i.textValue?`${ey(t,i.key)} ${m}`:void 0,id:ey(t,i.key)});if(s){let{collection:j}=t,I=[...j];F["aria-rowindex"]=I.find(k=>k.type==="section")?[...j.getKeys()].filter(k=>{var q;return((q=j.getItem(k))===null||q===void 0?void 0:q.type)!=="section"}).findIndex(k=>k===i.key)+1:i.index+1}let N={role:"gridcell","aria-colindex":1};return{rowProps:{...wn(F,v)},gridCellProps:N,descriptionProps:{id:m},..._}}function E_(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function Vpe(e,t){let{key:n}=e;const{checkboxProps:r}=qpe(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${ey(t,n)}`}}}function Kpe(e,t,n){let{gridProps:r}=jpe(e,t,n);return r.role="treegrid",{gridProps:r}}var UF={};UF={collapse:"طي",expand:"تمديد"};var zF={};zF={collapse:"Свиване",expand:"Разширяване"};var GF={};GF={collapse:"Sbalit",expand:"Roztáhnout"};var YF={};YF={collapse:"Skjul",expand:"Udvid"};var XF={};XF={collapse:"Reduzieren",expand:"Erweitern"};var ZF={};ZF={collapse:"Σύμπτυξη",expand:"Ανάπτυξη"};var QF={};QF={expand:"Expand",collapse:"Collapse"};var JF={};JF={collapse:"Contraer",expand:"Ampliar"};var e2={};e2={collapse:"Ahenda",expand:"Laienda"};var t2={};t2={collapse:"Pienennä",expand:"Laajenna"};var n2={};n2={collapse:"Réduire",expand:"Développer"};var r2={};r2={collapse:"כווץ",expand:"הרחב"};var o2={};o2={collapse:"Sažmi",expand:"Proširi"};var i2={};i2={collapse:"Összecsukás",expand:"Kibontás"};var s2={};s2={collapse:"Comprimi",expand:"Espandi"};var a2={};a2={collapse:"折りたたむ",expand:"展開"};var l2={};l2={collapse:"접기",expand:"펼치기"};var u2={};u2={collapse:"Sutraukti",expand:"Išskleisti"};var c2={};c2={collapse:"Sakļaut",expand:"Izvērst"};var d2={};d2={collapse:"Skjul",expand:"Utvid"};var f2={};f2={collapse:"Samenvouwen",expand:"Uitvouwen"};var p2={};p2={collapse:"Zwiń",expand:"Rozwiń"};var m2={};m2={collapse:"Recolher",expand:"Expandir"};var h2={};h2={collapse:"Colapsar",expand:"Expandir"};var g2={};g2={collapse:"Restrângeți",expand:"Extindeți"};var v2={};v2={collapse:"Свернуть",expand:"Развернуть"};var b2={};b2={collapse:"Zbaliť",expand:"Rozbaliť"};var y2={};y2={collapse:"Strni",expand:"Razširi"};var x2={};x2={collapse:" Skupi",expand:"Proširi"};var w2={};w2={collapse:"Dölj",expand:"Expandera"};var E2={};E2={collapse:"Daralt",expand:"Genişlet"};var C2={};C2={collapse:"Згорнути",expand:"Розгорнути"};var R2={};R2={collapse:"折叠",expand:"扩展"};var S2={};S2={collapse:"收合",expand:"展開"};var P2={};P2={"ar-AE":UF,"bg-BG":zF,"cs-CZ":GF,"da-DK":YF,"de-DE":XF,"el-GR":ZF,"en-US":QF,"es-ES":JF,"et-EE":e2,"fi-FI":t2,"fr-FR":n2,"he-IL":r2,"hr-HR":o2,"hu-HU":i2,"it-IT":s2,"ja-JP":a2,"ko-KR":l2,"lt-LT":u2,"lv-LV":c2,"nb-NO":d2,"nl-NL":f2,"pl-PL":p2,"pt-BR":m2,"pt-PT":h2,"ro-RO":g2,"ru-RU":v2,"sk-SK":b2,"sl-SI":y2,"sr-SP":x2,"sv-SE":w2,"tr-TR":E2,"uk-UA":C2,"zh-CN":R2,"zh-TW":S2};function Hpe(e){return e&&e.__esModule?e.default:e}function T2(e,t,n){let{node:r}=e,o=Bpe(e,t,n),i=o.rowProps["aria-expanded"]===!0,s=bh(Hpe(P2),"@react-aria/tree"),a=Ude({"aria-label":i?s.format("collapse"):s.format("expand"),"aria-labelledby":o.rowProps.id}),u={onPress:()=>{o.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...a};return{...o,expandButtonProps:u}}const Wpe=D.createContext(null),_2=D.createContext({}),Upe=Epe(function(t,n){[t,n]=I4(t,n,_2);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:s}=Mpe(t,n);i=zpe(i,o);let{focusProps:a,isFocused:u,isFocusVisible:c}=bm(t),{hoverProps:f,isHovered:p}=X4({...t,isDisabled:t.isDisabled||o}),m={isHovered:p,isPressed:(r.isPressed||s)&&!o,isFocused:u,isFocusVisible:c,isDisabled:t.isDisabled||!1,isPending:o??!1},b=Pa({...t,values:m,defaultClassName:"react-aria-Button"}),y=Ho(i.id),v=Ho(),E=i["aria-labelledby"];o&&(E?E=`${E} ${v}`:i["aria-label"]&&(E=`${y} ${v}`));let x=D.useRef(o);D.useEffect(()=>{let P={"aria-labelledby":E||y};(!x.current&&u&&o||x.current&&u&&!o)&&Vb(P,"assertive"),x.current=o},[o,u,E,y]);let R=Sa(t,{global:!0});return delete R.onClick,D.createElement("button",{...wn(R,b,i,a,f),type:i.type==="submit"&&o?"button":i.type,id:y,ref:n,"aria-labelledby":E,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},D.createElement(Wpe.Provider,{value:{id:v}},b.children))});function zpe(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}class jr extends Set{constructor(t,n,r){super(t),t instanceof jr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Gpe(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ype(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=D.useRef(!1),[,a]=D.useState(!1),u=D.useRef(null),c=D.useRef(null),[,f]=D.useState(null),p=D.useMemo(()=>C_(e.selectedKeys),[e.selectedKeys]),m=D.useMemo(()=>C_(e.defaultSelectedKeys,new jr),[e.defaultSelectedKeys]),[b,y]=Rw(p,m,e.onSelectionChange),v=D.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,x]=D.useState(o);o==="replace"&&E==="toggle"&&typeof b=="object"&&b.size===0&&x("replace");let R=D.useRef(o);return D.useEffect(()=>{o!==R.current&&(x(o),R.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:E,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(P){s.current=P,a(P)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(P,O="first"){u.current=P,c.current=O,f(P)},selectedKeys:b,setSelectedKeys(P){(r||!Gpe(P,b))&&y(P)},disabledKeys:v,disabledBehavior:i}}function C_(e,t){return e?e==="all"?"all":new jr(e):t}class kw{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Fv(this.collection,o,t)<0)&&(t=o)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Fv(this.collection,o,t)>0)&&(t=o)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new jr([n],n,n);else{let s=this.state.selectedKeys;var o;let a=(o=s.anchorKey)!==null&&o!==void 0?o:n;r=new jr(s,a,n);var i;for(let u of this.getKeyRange(a,(i=s.currentKey)!==null&&i!==void 0?i:n))r.delete(u);for(let u of this.getKeyRange(n,a))this.canSelectItem(u)&&r.add(u)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Fv(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new jr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new jr([n],n,n):new jr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new jr;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let s=this.collection.getItem(r);s?.type==="item"&&t.push(r);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((i=(o=mpe(ppe(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new jr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new kw(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}class Xpe{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let u of a.childNodes)r(u)};for(let a of t)r(a);let o=null,i=0;for(let[a,u]of this.keyMap)o?(o.nextKey=a,u.prevKey=o.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),o=u,o.nextKey=void 0;var s;this.lastKey=(s=o?.key)!==null&&s!==void 0?s:null}}function Zpe(e){let{onExpandedChange:t}=e,[n,r]=Rw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Ype(e),i=D.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=fpe(e,D.useCallback(u=>new Xpe(u,{expandedKeys:n}),[n]),null);return D.useEffect(()=>{o.focusedKey!=null&&!s.getItem(o.focusedKey)&&o.setFocusedKey(null)},[s,o.focusedKey]),{collection:s,expandedKeys:n,disabledKeys:i,toggleKey:u=>{r(Qpe(n,u))},setExpandedKeys:r,selectionManager:new kw(s,o)}}function Qpe(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const xh=D.createContext({}),O2=D.createContext(null),Jpe=D.forwardRef(function(t,n){let{render:r}=D.useContext(O2);return D.createElement(D.Fragment,null,r(t,n))});function eme(e,t){var n;let r=e?.renderDropIndicator,o=e==null||(n=e.isVirtualDragging)===null||n===void 0?void 0:n.call(e),i=D.useCallback(s=>{if(o||t?.isDropTarget(s))return r?r(s):D.createElement(Jpe,{target:s})},[t?.target,o,r]);return e?.useDropIndicator?i:void 0}function tme(e,t,n){var r,o;let i=e.focusedKey,s=null;if(!(t==null||(r=t.isVirtualDragging)===null||r===void 0)&&r.call(t)&&(n==null||(o=n.target)===null||o===void 0?void 0:o.type)==="item"&&(s=n.target.key,n.target.dropPosition==="after")){let p=n.collection.getKeyAfter(s),m=null;if(p!=null){var a,u;let b=(u=(a=n.collection.getItem(s))===null||a===void 0?void 0:a.level)!==null&&u!==void 0?u:0;for(;p;){let y=n.collection.getItem(p);if(!y)break;if(y.type!=="item"){p=n.collection.getKeyAfter(p);continue}var c;if(((c=y.level)!==null&&c!==void 0?c:0)<=b)break;m=p,p=n.collection.getKeyAfter(p)}}var f;s=(f=p??m)!==null&&f!==void 0?f:s}return D.useMemo(()=>new Set([i,s].filter(p=>p!=null)),[i,s])}const nme=D.createContext(null);function rme(e){let t=D.useRef({});return D.createElement(nme.Provider,{value:t},e.children)}const ome=D.createContext({isSelected:!1}),R_=10,S_=5;class ime{setup(t,n,r){this.delegate=t,this.state=n,this.direction=r}getDropTargetFromPoint(t,n,r){let o=this.delegate.getDropTargetFromPoint(t,n,r);return!o||o.type==="root"?o:this.resolveDropTarget(o,t,n,r)}resolveDropTarget(t,n,r,o){let i=this.pointerTracking,s=r-i.lastY,a=n-i.lastX,u=i.yDirection,c=i.xDirection;if(Math.abs(s)>S_&&(u=s>0?"down":"up",i.yDirection=u,i.lastY=r),Math.abs(a)>R_&&(c=a>0?"right":"left",i.xDirection=c,i.lastX=n),t.dropPosition==="before"){let m=this.state.collection.getKeyBefore(t.key);if(m!=null){let b={type:"item",key:m,dropPosition:"after"};o(b)&&(t=b)}}let f=this.getPotentialTargets(t,o);if(f.length===0)return{type:"root"};let p;return f.length>1?p=this.selectTarget(f,t,n,r,u,c):(p=f[0],i.boundaryContext=null),p}getPotentialTargets(t,n){if(t.dropPosition==="on")return[t];let r=t,o=this.state.collection,i=o.getItem(r.key);for(;i&&i?.type!=="item"&&i.nextKey!=null;)r.key=i.nextKey,i=o.getItem(i.nextKey);let s=[r];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&o.getChildren&&r.dropPosition==="after"){let c=null;for(let f of o.getChildren(i.key))if(f.type==="item"){c=f;break}if(c){const f={type:"item",key:c.key,dropPosition:"before"};return n(f)?[f]:[]}}if(i?.nextKey!=null)return[t];let a=i?.parentKey,u=[];for(;a;){let c=o.getItem(a),f=c?.nextKey?o.getItem(c.nextKey):null;if(!f||f.parentKey!==a){let m={type:"item",key:a,dropPosition:"after"};if(n(m)&&u.push(m),f)break}a=c?.parentKey}if(u.length>0&&s.push(...u),s.length===1){let c=o.getKeyAfter(r.key),f=c?o.getItem(c):null;if(c!=null&&f&&i&&f.level!=null&&i.level!=null&&f.level>i.level){let p={type:"item",key:c,dropPosition:"before"};if(n(p))return[p]}}return s.filter(n)}selectTarget(t,n,r,o,i,s){if(t.length<2)return t[0];let a=this.pointerTracking,u=this.state.collection.getItem(n.key),c=u?.parentKey;if(!c)return t[0];if(!a.boundaryContext||a.boundaryContext.parentKey!==c){let y=a.yDirection==="up"?t.length-1:0;a.boundaryContext={parentKey:c,preferredTargetIndex:y,lastSwitchY:o,lastSwitchX:r}}let f=a.boundaryContext,p=Math.abs(r-f.lastSwitchX);if(Math.abs(o-f.lastSwitchY)>S_&&i){let y=f.preferredTargetIndex||0;i==="down"&&y===0?f.preferredTargetIndex=t.length-1:i==="up"&&y===t.length-1&&(f.preferredTargetIndex=0),a.xDirection=null}if(p>R_&&s){let y=f.preferredTargetIndex||0;s==="left"?this.direction==="ltr"?y<t.length-1&&(f.preferredTargetIndex=y+1,f.lastSwitchX=r):y>0&&(f.preferredTargetIndex=y-1,f.lastSwitchX=r):s==="right"&&(this.direction==="ltr"?y>0&&(f.preferredTargetIndex=y-1,f.lastSwitchX=r):y<t.length-1&&(f.preferredTargetIndex=y+1,f.lastSwitchX=r)),a.yDirection=null}let b=Math.max(0,Math.min(f.preferredTargetIndex||0,t.length-1));return t[b]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class sme{*[Symbol.iterator](){yield*this.flattenedRows}get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}getItem(t){return this.keyMap.get(t)||null}at(t){return this.flattenedRows[t]}getFirstKey(){var t;return(t=this.flattenedRows[0])===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=this.flattenedRows[this.flattenedRows.length-1])===null||t===void 0?void 0:t.key}getKeyAfter(t){var n;let r=this.flattenedRows.findIndex(o=>o.key===t);return(n=this.flattenedRows[r+1])===null||n===void 0?void 0:n.key}getKeyBefore(t){var n;let r=this.flattenedRows.findIndex(o=>o.key===t);return(n=this.flattenedRows[r-1])===null||n===void 0?void 0:n.key}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getTextValue(t){let n=this.getItem(t);return n?n.textValue:""}constructor(t){this.keyMap=new Map,this.itemCount=0;let{collection:n,expandedKeys:r}=t,{flattenedRows:o,keyMap:i,itemCount:s}=fme(n,{expandedKeys:r});this.flattenedRows=o,this.keyMap=i,this.itemCount=s}}const ame=D.createContext(null),Fw=D.createContext(null),lme=D.forwardRef(function(t,n){return[t,n]=I4(t,n,ame),D.createElement(Cpe,{content:D.createElement(Aw,t)},r=>D.createElement(ume,{props:t,collection:r,treeRef:n}))}),P_={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ume({props:e,collection:t,treeRef:n}){const{dragAndDropHooks:r}=e;let{direction:o}=Wd(),i=L4({usage:"search",sensitivity:"base"}),s=!!r?.useDraggableCollectionState,a=!!r?.useDroppableCollectionState,u=D.useRef(s),c=D.useRef(a);D.useEffect(()=>{u.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),c.current!==a&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[s,a]);let{selectionMode:f="none",expandedKeys:p,defaultExpandedKeys:m,onExpandedChange:b,disabledBehavior:y="all"}=e,{CollectionRoot:v,isVirtualized:E,layoutDelegate:x,dropTargetDelegate:R}=D.useContext(Nw),[P,O]=Rw(p?T_(p):void 0,m?T_(m):new Set,b),S=D.useMemo(()=>new sme({collection:t,expandedKeys:P}),[t,P]),T=Zpe({...e,selectionMode:f,expandedKeys:P,onExpandedChange:O,collection:S,children:void 0,disabledBehavior:y}),{gridProps:_}=Kpe({...e,isVirtualized:E,layoutDelegate:x},T,n),$,V,U,A=!1,H=null,F=D.useRef(null);if(s&&r){$=r.useDraggableCollectionState({collection:T.collection,selectionManager:T.selectionManager,preview:r.renderDragPreview?F:void 0}),r.useDraggableCollection({},$,n);let Q=r.DragPreview;H=r.renderDragPreview?D.createElement(Q,{ref:F},r.renderDragPreview):null}let[N]=D.useState(()=>new ime);if(a&&r){V=r.useDroppableCollectionState({collection:T.collection,selectionManager:T.selectionManager});let Q=r.dropTargetDelegate||R||new r.ListDropTargetDelegate(T.collection,n,{direction:o});N.setup(Q,T,o);let re=new nF({collection:T.collection,collator:i,ref:n,disabledKeys:T.selectionManager.disabledKeys,disabledBehavior:T.selectionManager.disabledBehavior,direction:o,layoutDelegate:x});U=r.useDroppableCollection({keyboardDelegate:re,dropTargetDelegate:N,onDropActivate:se=>{if(se.target.type==="item"){var ee;let de=se.target.key,K=T.collection.getItem(de),ue=P!=="all"&&P.has(de);K&&K.hasChildNodes&&(!ue||!(r==null||(ee=r.isVirtualDragging)===null||ee===void 0)&&ee.call(r))&&T.toggleKey(de)}},onKeyDown:se=>{let ee=V?.target;if(ee&&ee.type==="item"&&ee.dropPosition==="on"){let de=T.collection.getItem(ee.key);(se.key===P_.expand[o]&&de?.hasChildNodes&&!T.expandedKeys.has(ee.key)||se.key===P_.collapse[o]&&de?.hasChildNodes&&T.expandedKeys.has(ee.key))&&T.toggleKey(ee.key)}}},V,n);let ce=V.getDropOperation;V.getDropOperation=se=>{let{target:ee,isInternal:de}=se;var K;let ue=(K=$?.draggingKeys)!==null&&K!==void 0?K:new Set;if(de&&ee.type==="item"&&ue.size>0){if(ue.has(ee.key)&&ee.dropPosition==="on")return"cancel";let le=ee.key;for(;le!=null;){let Z=T.collection.getItem(le),xe=Z?.parentKey;if(xe!=null&&ue.has(xe))return"cancel";le=xe??null}}return ce(se)},A=V.isDropTarget({type:"root"})}let j=!!(s&&!$?.isDisabled),{focusProps:I,isFocused:k,isFocusVisible:q}=bm(),z={isEmpty:T.collection.size===0,isFocused:k,isFocusVisible:q,isDropTarget:A,selectionMode:T.selectionManager.selectionMode,allowsDragging:!!j,state:T},W=Pa({className:e.className,style:e.style,defaultClassName:"react-aria-Tree",values:z}),te=null;if(T.collection.size===0&&e.renderEmptyState){let{isEmpty:Q,...re}=z,ce=e.renderEmptyState({...re}),se={"aria-level":1};te=D.createElement("div",{role:"row",style:{display:"contents"},...se},D.createElement("div",{role:"gridcell",style:{display:"contents"}},ce))}let X=Sa(e,{global:!0});return D.createElement(D.Fragment,null,D.createElement(Ufe,null,D.createElement("div",{...wn(X,W,_,I,U?.collectionProps),ref:n,slot:e.slot||void 0,"data-empty":T.collection.size===0||void 0,"data-focused":k||void 0,"data-drop-target":A||void 0,"data-focus-visible":q||void 0,"data-selection-mode":T.selectionManager.selectionMode==="none"?void 0:T.selectionManager.selectionMode,"data-allows-dragging":!!j||void 0},D.createElement(A4,{values:[[Fw,T],[xh,{dragAndDropHooks:r,dragState:$,dropState:V}],[O2,{render:pme}]]},a&&D.createElement(gme,null),D.createElement(rme,null,D.createElement(v,{collection:T.collection,persistedKeys:tme(T.selectionManager,r,V),scrollRef:n,renderDropIndicator:eme(r,V)}))),te)),H)}class $2 extends Ta{}$2.type="content";const cme=uF($2,function(t){let n=D.useContext(D2),r=Pa({children:t.children,values:n});return D.createElement(Nw.Provider,{value:dF},r.children)}),D2=D.createContext(null);class M2 extends Ta{}M2.type="item";const dme=Ope(M2,(e,t,n)=>{var r;let o=D.useContext(Fw);t=gh(t);let{dragAndDropHooks:i,dragState:s,dropState:a}=D.useContext(xh),{rowProps:u,gridCellProps:c,expandButtonProps:f,descriptionProps:p,...m}=T2({node:n,shouldSelectOnPressUp:!!s},o,t),b=u["aria-expanded"]===!0,y=e.hasChildItems||((r=[...o.collection.getChildren(n.key)])===null||r===void 0?void 0:r.length)>1,v=u["aria-level"]||1,{hoverProps:E,isHovered:x}=X4({isDisabled:!m.allowsSelection&&!m.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:R,focusProps:P}=bm(),{isFocusVisible:O,focusProps:S}=bm({within:!0}),{checkboxProps:T}=Vpe({key:n.key},o),_=null;s&&i&&(_=i.useDraggableItem({key:n.key,hasDragButton:!0},s));let $=null,V=D.useRef(null),U=D.useRef(null),A=D.useRef(null),{visuallyHiddenProps:H}=Dw();a&&i&&($=i.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"},activateButtonRef:A},a,U));let F=s&&s.isDragging(n.key),N=$?.isDropTarget,j=o.selectionManager.selectionMode,I=o.selectionManager.selectionBehavior,k=D.useMemo(()=>({...m,isHovered:x,isFocusVisible:R,isExpanded:b,hasChildItems:y,level:v,selectionMode:j,selectionBehavior:I,isFocusVisibleWithin:O,state:o,id:n.key,allowsDragging:!!s,isDragging:F,isDropTarget:N}),[m,x,R,b,y,v,O,o,n.key,s,F,N,I,j]),q=Pa({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":v},values:k});D.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.")},[n.textValue]),D.useEffect(()=>{y&&!V.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.")},[]);let z=D.useRef(null);D.useEffect(()=>{s&&!z.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let W=Mw({items:o.collection.getChildren(n.key),children:Q=>{switch(Q.type){case"content":return Q.render(Q);case"loader":case"item":return D.createElement(D.Fragment,null);default:throw new Error("Unsupported element type in TreeRow: "+Q.type)}}}),te=Ho(),X=Sa(e,{global:!0});return delete X.id,delete X.onClick,D.createElement(D.Fragment,null,$&&!$.isHidden&&D.createElement("div",{role:"row","aria-level":u["aria-level"],"aria-expanded":u["aria-expanded"],"aria-label":$.dropIndicatorProps["aria-label"]},D.createElement("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"}},D.createElement("div",{role:"button",...H,...$.dropIndicatorProps,ref:U}),u["aria-expanded"]!=null?D.createElement("div",{role:"button",...H,id:te,"aria-label":f["aria-label"],"aria-labelledby":`${te} ${u.id}`,tabIndex:-1,ref:A}):null)),D.createElement("div",{...wn(X,u,P,E,S,_?.dragProps),...q,ref:t,"data-expanded":y&&b||void 0,"data-has-child-items":y||void 0,"data-level":v,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":R||void 0,"data-pressed":m.isPressed||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-allows-dragging":!!s||void 0,"data-dragging":F||void 0,"data-drop-target":N||void 0},D.createElement("div",{...c,style:{display:"contents"}},D.createElement(A4,{values:[[lde,{slots:{selection:T}}],[_2,{slots:{[M4]:{},chevron:{...f,ref:V},drag:{..._?.dragButtonProps,ref:z,style:{pointerEvents:"none"}}}}],[D2,{...k}],[ome,{isSelected:m.isSelected}]]},W))))});uF(oF,function(t,n,r){let{isVirtualized:o}=D.useContext(Nw),i=D.useContext(Fw),{isLoading:s,onLoadMore:a,scrollOffset:u,...c}=t,f=D.useRef(null),p=D.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:f,scrollOffset:u}),[a,u,i?.collection]);Zde(p,f),n=gh(n);let{rowProps:m,gridCellProps:b}=T2({node:r},i,n),y=m["aria-level"]||1,v={role:"row","aria-level":m["aria-level"]},E=Pa({...c,id:void 0,children:r.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:y}}),x={};return o&&(x={display:"contents"}),D.createElement(D.Fragment,null,D.createElement("div",{style:{position:"relative",width:0,height:0},inert:Qde(!0)},D.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"absolute",height:1,width:1}})),s&&E.children&&D.createElement("div",{ref:n,...wn(Sa(t),v),...E,"data-level":y},D.createElement("div",{...b,style:x},E.children)))});function T_(e){return e?e==="all"?"all":new Set(e):new Set}function fme(e,t){let{expandedKeys:n=new Set}=t,r=new Map,o=[],i=0,s=new Map,a=u=>{if(u.type==="item"||u.type==="loader"){let c=u?.parentKey,f={...u};c!=null?([...e.getChildren(c)][0].type!=="item"&&(f.index=u?.index!=null?u?.index-1:0),u.type==="loader"&&(f.level=u.level+1),r.set(f.key,f)):r.set(u.key,u);let p=r.get(u.key)||u;(p.level===0||p.parentKey!=null&&n.has(p.parentKey)&&s.get(p.parentKey))&&(p.type==="item"&&i++,o.push(p),s.set(p.key,!0))}else u.type!==null&&r.set(u.key,u);for(let c of e.getChildren(u.key))a(c)};for(let u of e)a(u);return{flattenedRows:o,keyMap:r,itemCount:i}}function pme(e,t){var n;t=gh(t);let{dragAndDropHooks:r,dropState:o}=D.useContext(xh),i=D.useRef(null),{dropIndicatorProps:s,isHidden:a,isDropTarget:u}=r.useDropIndicator(e,o,i);if(a)return null;let c=o&&e.target.type==="item"?(((n=o.collection.getItem(e.target.key))===null||n===void 0?void 0:n.level)||0)+1:1;return D.createElement(hme,{...e,dropIndicatorProps:s,isDropTarget:u,ref:t,buttonRef:i,level:c})}function mme(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:o,level:i,...s}=e,{visuallyHiddenProps:a}=Dw(),u=Pa({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:r}});return D.createElement("div",{...u,role:"row","aria-level":i,ref:t,"data-drop-target":r||void 0},D.createElement("div",{role:"gridcell"},D.createElement("div",{...a,role:"button",...n,ref:o}),u.children))}const hme=D.forwardRef(mme);function gme(){let{dragAndDropHooks:e,dropState:t}=D.useContext(xh),n=D.useRef(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:"root"}},t,n),o=t.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=Dw();return!o&&r["aria-hidden"]?null:D.createElement("div",{role:"row","aria-hidden":r["aria-hidden"],style:{position:"absolute"}},D.createElement("div",{role:"gridcell"},D.createElement("div",{role:"button",...i,...r,ref:n})))}var vme=/\s+/g,bme=e=>typeof e!="string"||!e?e:e.replace(vme," ").trim(),ym=(...e)=>{const t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let i=0,s=r.length;i<s;i++)n(r[i]);return}const o=typeof r;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&r!==r)return;t.push(String(r))}else if(o==="object"){const i=Object.keys(r);for(let s=0,a=i.length;s<a;s++){const u=i[s];r[u]&&t.push(u)}}};for(let r=0,o=e.length;r<o;r++){const i=e[r];i!=null&&n(i)}return t.length>0?bme(t.join(" ")):void 0},__=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Yn=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},yme=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){const i=n[o];if(!r.includes(i)||e[i]!==t[i])return!1}return!0},xme=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n in e?e[n]=ym(e[n],r):e[n]=r}return e},A2=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)?A2(r,t):r&&t.push(r)}},N2=(...e)=>{const t=[];A2(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},ty=(e,t)=>{const n={};for(const r in e){const o=e[r];if(r in t){const i=t[r];Array.isArray(o)||Array.isArray(i)?n[r]=N2(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?n[r]=ty(o,i):n[r]=i+" "+o}else n[r]=o}for(const r in t)r in e||(n[r]=t[r]);return n},wme={twMerge:!0,twMergeConfig:{}};function Eme(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var ko=Eme(),Cme=e=>{const t=(r,o)=>{const{extend:i=null,slots:s={},variants:a={},compoundVariants:u=[],compoundSlots:c=[],defaultVariants:f={}}=r,p={...wme,...o},m=i?.base?ym(i.base,r?.base):r?.base,b=i?.variants&&!Yn(i.variants)?ty(a,i.variants):a,y=i?.defaultVariants&&!Yn(i.defaultVariants)?{...i.defaultVariants,...f}:f;!Yn(p.twMergeConfig)&&!yme(p.twMergeConfig,ko.cachedTwMergeConfig)&&(ko.didTwMergeConfigChange=!0,ko.cachedTwMergeConfig=p.twMergeConfig);const v=Yn(i?.slots),E=Yn(s)?{}:{base:ym(r?.base,v&&i?.base),...s},x=v?E:xme({...i?.slots},Yn(E)?{base:r?.base}:E),R=Yn(i?.compoundVariants)?u:N2(i?.compoundVariants,u),P=S=>{if(Yn(b)&&Yn(s)&&v)return e(m,S?.class,S?.className)(p);if(R&&!Array.isArray(R))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof R}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const T=(N,j=b,I=null,k=null)=>{const q=j[N];if(!q||Yn(q))return null;const z=k?.[N]??S?.[N];if(z===null)return null;const W=__(z);if(typeof W=="object")return null;const te=y?.[N],X=W??__(te);return q[X||"false"]},_=()=>{if(!b)return null;const N=Object.keys(b),j=[];for(let I=0;I<N.length;I++){const k=T(N[I],b);k&&j.push(k)}return j},$=(N,j)=>{if(!b||typeof b!="object")return null;const I=[];for(const k in b){const q=T(k,b,N,j),z=N==="base"&&typeof q=="string"?q:q&&q[N];z&&I.push(z)}return I},V={};for(const N in S){const j=S[N];j!==void 0&&(V[N]=j)}const U=(N,j)=>{const I=typeof S?.[N]=="object"?{[N]:S[N]?.initial}:{};return{...y,...V,...I,...j}},A=(N=[],j)=>{const I=[],k=N.length;for(let q=0;q<k;q++){const{class:z,className:W,...te}=N[q];let X=!0;const Q=U(null,j);for(const re in te){const ce=te[re],se=Q[re];if(Array.isArray(ce)){if(!ce.includes(se)){X=!1;break}}else{if((ce==null||ce===!1)&&(se==null||se===!1))continue;if(se!==ce){X=!1;break}}}X&&(z&&I.push(z),W&&I.push(W))}return I},H=N=>{const j=A(R,N);if(!Array.isArray(j))return j;const I={},k=e;for(let q=0;q<j.length;q++){const z=j[q];if(typeof z=="string")I.base=k(I.base,z)(p);else if(typeof z=="object")for(const W in z)I[W]=k(I[W],z[W])(p)}return I},F=N=>{if(c.length<1)return null;const j={},I=U(null,N);for(let k=0;k<c.length;k++){const{slots:q=[],class:z,className:W,...te}=c[k];if(!Yn(te)){let X=!0;for(const Q in te){const re=I[Q],ce=te[Q];if(re===void 0||(Array.isArray(ce)?!ce.includes(re):ce!==re)){X=!1;break}}if(!X)continue}for(let X=0;X<q.length;X++){const Q=q[X];j[Q]||(j[Q]=[]),j[Q].push([z,W])}}return j};if(!Yn(s)||!v){const N={};if(typeof x=="object"&&!Yn(x)){const j=e;for(const I in x)N[I]=k=>{const q=H(k),z=F(k);return j(x[I],$(I,k),q?q[I]:void 0,z?z[I]:void 0,k?.class,k?.className)(p)}}return N}return e(m,_(),A(R),S?.class,S?.className)(p)},O=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return P.variantKeys=O(),P.extend=i,P.base=m,P.slots=x,P.variants=b,P.defaultVariants=y,P.compoundSlots=c,P.compoundVariants=R,P};return{tv:t,createTV:r=>(o,i)=>t(o,i?ty(r,i):r)}},Rme=e=>Yn(e)?MK:w$({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Sme=(e,t)=>{const n=ym(e);return!n||!(t?.twMerge??!0)?n:((!ko.cachedTwMerge||ko.didTwMergeConfigChange)&&(ko.didTwMergeConfigChange=!1,ko.cachedTwMerge=Rme(ko.cachedTwMergeConfig)),ko.cachedTwMerge(n)||void 0)},Pme=(...e)=>t=>Sme(e,t),{tv:I2}=Cme(Pme);const Tme=I2({base:"flex py-2 rounded-lg bg-bg cursor-default lg:text-sm flex-col overflow-auto outline-none",variants:{isFocusVisible:{true:"outline-offset-[-1px] outline-2 outline-primary"}}}),k2=({className:e,...t})=>w.jsx(lme,{"data-slot":"tree",className:N4(e,(n,r)=>Tme({...r,className:n})),...t,children:t.children}),_me=I2({base:["[&_[data-expanded]_[slot=chevron]_[data-slot=icon]]:rotate-90 outline-none [--padding:20px] p-[0.286rem_0.286rem_0.286rem_0.571rem] pl-[calc((var(--tree-item-level)-1)*20px+0.571rem+var(--padding))]","[&_[slot=chevron]]:outline-none [&_[slot=chevron]_[data-slot=icon]]:text-muted-fg","data-[has-child-rows]:[--padding:0px]"],variants:{isExpanded:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg [&_[slot=chevron]_[data-slot=icon]]:rotate-90 [&_[slot=chevron]_[data-slot=icon]]:transition [&_[slot=chevron]_[data-slot=icon]]:duration-200"},isFocusVisible:{true:"[&_[slot=chevron]_[data-slot=icon]]:text-fg focus:outline-none focus-visible:ring-1 focus-visible:ring-primary"},isDisabled:{true:"opacity-50 forced-colors:text-[GrayText]"},isSelected:{true:"bg-accent text-accent-foreground"}}}),F2=({className:e,...t})=>w.jsx(dme,{"data-slot":"tree-item","data-key":t.id,className:N4(e,(n,r)=>_me({...r,className:n})),...t,children:t.children}),L2=e=>w.jsx(cme,{"data-slot":"tree-item-content",...e,"data-key":e.key,children:w.jsx("div",{className:"flex items-center gap-x-1",children:e.children})}),q2=()=>w.jsx(Upe,{"data-slot":"tree-item-chevron",className:"shrink-0 relative",slot:"chevron",children:w.jsx(gd,{className:"size-5","data-slot":"icon"})}),j2=e=>w.jsx("span",{"data-slot":"tree-item-label",...e});function Ome({items:e,...t}){const n=r=>w.jsxs(F2,{id:r.id,textValue:r.title,children:[w.jsxs(L2,{children:[r.children?.length?w.jsx(q2,{}):null,w.jsx(j2,{children:r.title})]}),r.children?.length?w.jsx(Aw,{items:r.children,children:n}):null]},r.id);return w.jsx(k2,{items:e,...t,children:e.map(r=>n(r))})}exports.AlertDialog=UH;exports.AlertDialogBackdrop=V$;exports.AlertDialogClose=sb;exports.AlertDialogDescription=U$;exports.AlertDialogFooter=G$;exports.AlertDialogHeader=z$;exports.AlertDialogPopup=H$;exports.AlertDialogPrimitive=W8;exports.AlertDialogRoot=j$;exports.AlertDialogTitle=W$;exports.AlertDialogTrigger=B$;exports.AlertDialogViewport=K$;exports.AutoComplete=vG;exports.AutoCompleteDialog=hG;exports.AutoCompleteEmpty=Hm;exports.AutoCompleteGroup=sM;exports.AutoCompleteInput=Vm;exports.AutoCompleteItem=nd;exports.AutoCompleteList=Km;exports.AutoCompleteRoot=Rd;exports.AutoCompleteSeparator=gG;exports.AutoCompleteShortcut=aM;exports.Avatar=Bee;exports.AvatarFallback=HM;exports.AvatarImage=KM;exports.AvatarPrimitive=xG;exports.AvatarRoot=VM;exports.BackgroundImage=Vee;exports.BaseButton=L$;exports.Button=Tn;exports.Calendar=fA;exports.Card=Bre;exports.CardContent=Wre;exports.CardDescription=Hre;exports.CardFooter=Ure;exports.CardHeader=Vre;exports.CardTitle=Kre;exports.Center=zre;exports.Checkbox=Toe;exports.CheckboxGroup=$oe;exports.CheckboxIndicator=IA;exports.CheckboxPrimitive=toe;exports.CheckboxRoot=NA;exports.Collection=Aw;exports.Combobox=Doe;exports.DOTS=wi;exports.DatePicker=Foe;exports.Dialog=UU;exports.DialogClose=WU;exports.DialogContent=Ky;exports.DialogDescription=AD;exports.DialogFooter=DD;exports.DialogHeader=$D;exports.DialogOverlay=OD;exports.DialogPortal=_D;exports.DialogRoot=Vy;exports.DialogTitle=MD;exports.DialogTrigger=TD;exports.Divider=FA;exports.Dropzone=qoe;exports.EmptyState=Voe;exports.Field=Koe;exports.FileType=cn;exports.FileTypeGroups=joe;exports.Form=gie;exports.FormControl=iN;exports.FormDescription=sN;exports.FormField=vie;exports.FormItem=rN;exports.FormLabel=oN;exports.FormMessage=aN;exports.Heading=UA;exports.Input=CN;exports.Kbd=zie;exports.KbdGroup=Gie;exports.Label=Od;exports.LibraryProvider=Uie;exports.Loader=Xie;exports.Menu=oue;exports.MenuCheckboxItem=zI;exports.MenuContent=WI;exports.MenuGroup=tue;exports.MenuItem=UI;exports.MenuLabel=YI;exports.MenuPortal=nue;exports.MenuRadioGroup=rue;exports.MenuRadioItem=GI;exports.MenuRoot=jI;exports.MenuSeparator=XI;exports.MenuShortcut=ZI;exports.MenuSub=VI;exports.MenuSubContent=HI;exports.MenuSubTrigger=KI;exports.MenuTrigger=BI;exports.MultiSelect=Tue;exports.NumberInput=_ue;exports.Pagination=Oue;exports.Password=$ue;exports.Popover=Sue;exports.PopoverContent=Vd;exports.PopoverRoot=jd;exports.PopoverTrigger=Bd;exports.Progress=jue;exports.ProgressIndicator=yk;exports.ProgressLabel=Lue;exports.ProgressRoot=vk;exports.ProgressTrack=bk;exports.ProgressValue=que;exports.Select=Bue;exports.SelectContent=n4;exports.SelectGroup=Zk;exports.SelectItem=o4;exports.SelectLabel=r4;exports.SelectRoot=Xk;exports.SelectScrollDownButton=t4;exports.SelectScrollUpButton=e4;exports.SelectSeparator=jce;exports.SelectTrigger=Jk;exports.SelectValue=Qk;exports.Show=Bce;exports.Skeleton=Vce;exports.Stack=Kce;exports.Stepper=Wce;exports.StepperContainer=s4;exports.StepperContent=u4;exports.StepperList=a4;exports.StepperTrigger=l4;exports.Switch=Gce;exports.SwitchRoot=p4;exports.SwitchThumb=m4;exports.TABLE_PAGE_SIZES=$p;exports.TabContent=rde;exports.TabList=tde;exports.TabTrigger=nde;exports.Table=Zce;exports.TableBody=v4;exports.TableCaption=Xce;exports.TableCell=y4;exports.TableFooter=Yce;exports.TableHead=b4;exports.TableHeader=g4;exports.TablePagination=Qce;exports.TableRoot=h4;exports.TableRow=qb;exports.Tabs=ede;exports.Tag=Ab;exports.Textarea=ide;exports.ThemeProvider=AK;exports.Timeline=ade;exports.TimelineItemContent=C4;exports.TimelineItemDot=E4;exports.TimelineListItem=w4;exports.TimelineRoot=x4;exports.ToastPrimitive=qie;exports.ToastProvider=EN;exports.Tooltip=AA;exports.TooltipArrow=MA;exports.TooltipPopup=DA;exports.TooltipPrimitive=Soe;exports.TooltipProvider=_A;exports.TooltipRoot=OA;exports.TooltipTrigger=$A;exports.Tree=Ome;exports.TreeItem=F2;exports.TreeItemContent=L2;exports.TreeItemIndicator=q2;exports.TreeItemLabel=j2;exports.TreeRoot=k2;exports.UploadAcceptedFiles=KA;exports.UploadContent=BA;exports.UploadItem=WA;exports.UploadRejectedFiles=HA;exports.UploadRoot=qA;exports.UploadTrigger=jA;exports.buttonVariants=q$;exports.click=Lee;exports.cn=me;exports.createSafeContext=Sd;exports.createToastManager=jie;exports.ensureReactElement=EG;exports.extractInitials=uM;exports.getFormData=CG;exports.mergeRefs=wG;exports.monthNames=Sb;exports.tagVariants=JI;exports.toast=Bie;exports.toastVariants=xN;exports.twMerge=E$;exports.type=qee;exports.useArray=Zie;exports.useAsync=Qie;exports.useClickOutside=Jie;exports.useClipboard=ese;exports.useControllableState=Kt;exports.useDebouncedCallback=tse;exports.useDebouncedValue=nse;exports.useDisclosure=rse;exports.useDocumentTitle=ose;exports.useEventListener=RN;exports.useFocusTrap=Pse;exports.useForm=$ie;exports.useFormField=Md;exports.useHotkey=SN;exports.useHover=cse;exports.useIsVisible=dse;exports.useLocalStorage=fse;exports.useMediaQuery=pse;exports.useMemoizedFn=mse;exports.useMutation=hse;exports.useObject=gse;exports.usePagination=Qx;exports.usePortal=vse;exports.usePreventCloseWindow=bse;exports.useRangePagination=PN;exports.useSelection=yse;exports.useStep=xse;exports.useTheme=S$;exports.useThemeProps=Im;exports.useToastManager=wN;exports.useToggle=TN;exports.weeksDays=dA;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./components/accordion/accordion.cjs.js"),j=require("@base-ui/react/accordion"),D=require("./components/alert/alert.cjs.js"),u=require("./components/alert-dialog/alert-dialog.cjs.js"),w=require("@base-ui/react/alert-dialog"),o=require("./components/auto-complete/auto-complete.cjs.js"),B=require("@base-ui/react/autocomplete"),g=require("./components/avatar/avatar.cjs.js"),z=require("@base-ui/react/avatar"),y=require("./components/button/button.cjs.js"),$=require("./components/button/components/base-button.cjs.js"),_=require("./components/calendar/calendar.cjs.js"),m=require("./components/card/card.cjs.js"),K=require("./components/center/center.cjs.js"),I=require("./components/checkbox/checkbox.cjs.js"),Q=require("@base-ui/react/checkbox"),k=require("./components/checkbox-group/checkbox-group.cjs.js"),e=require("./components/combobox/combobox.cjs.js"),Z=require("@base-ui/react/combobox"),U=require("./components/date-picker/date-input.cjs.js"),J=require("./components/date-picker/date-picker.cjs.js"),l=require("./components/dialog/dialog.cjs.js"),W=require("@base-ui/react/dialog"),X=require("./components/divider/divider.cjs.js"),Y=require("@base-ui/react/separator"),d=require("./components/dropzone/dropzone.cjs.js"),M=require("./components/dropzone/file-types.cjs.js"),P=require("./components/empty/empty.cjs.js"),i=require("./components/field/field.cjs.js"),ee=require("@base-ui/react/field"),oe=require("@base-ui/react/fieldset"),te=require("./components/form/form.cjs.js"),re=require("@base-ui/react/form"),h=require("./components/input/input.cjs.js"),ie=require("@base-ui/react/input"),O=require("./components/kbd/kbd.cjs.js"),ae=require("./components/label/label.cjs.js"),ne=require("./components/loader/loader.cjs.js"),ue=require("./components/menu/menu.cjs.js"),t=require("./components/menu/menu-primitives.cjs.js"),s=require("./components/number-input/number-input.cjs.js"),le=require("@base-ui/react/number-field"),v=require("./components/otp/otp.cjs.js"),se=require("@base-ui/react/otp-field"),a=require("./components/pagination/pagination.cjs.js"),ce=require("./components/pagination/pagination.model.cjs.js"),L=require("./components/password/password.cjs.js"),c=require("./components/popover/popover.cjs.js"),pe=require("@base-ui/react/popover"),C=require("./components/progress/progress.cjs.js"),f=require("./components/scroll-area/scroll-area.cjs.js"),be=require("@base-ui/react/scroll-area"),r=require("./components/select/select.cjs.js"),me=require("@base-ui/react/select"),ge=require("./components/skeleton/skeleton.cjs.js"),de=require("./components/stack/stack.cjs.js"),n=require("./components/stepper/stepper.cjs.js"),F=require("./components/switch/switch.cjs.js"),p=require("./components/table/table.cjs.js"),T=require("./components/tabs/tabs.cjs.js"),Pe=require("@base-ui/react/tabs"),G=require("./components/tag/tag.cjs.js"),Te=require("./components/textarea/textarea.cjs.js"),b=require("./components/timeline/timeline.cjs.js"),q=require("./components/toast/toast.cjs.js"),Ce=require("@base-ui/react/toast"),S=require("./components/tooltip/tooltip.cjs.js"),Se=require("@base-ui/react/tooltip"),x=require("./components/tree/tree.cjs.js"),Ae=require("@radix-ui/react-use-controllable-state"),De=require("./hooks/use-array/use-array.cjs.js"),qe=require("./hooks/use-async/use-async.cjs.js"),Ie=require("./hooks/use-boolean/use-boolean.cjs.js"),ve=require("./hooks/use-click-outside/use-click-outside.cjs.js"),xe=require("./hooks/use-clipboard/use-clipboard.cjs.js"),Re=require("./hooks/use-debounce-callback/use-debounced-callback.cjs.js"),Fe=require("./hooks/use-debounce-value/use-debounced-value.cjs.js"),ye=require("./hooks/use-disclosure/use-disclosure.cjs.js"),ke=require("./hooks/use-document-title/use-document-title.cjs.js"),Me=require("./hooks/use-event-listener/use-event-listener.cjs.js"),he=require("./hooks/use-focus-trap/use-focus-trap.cjs.js"),E=require("./hooks/use-hotkey/use-hotkey.cjs.js"),Oe=require("./hooks/use-hover/use-hover.cjs.js"),Le=require("./hooks/use-is-visible/use-is-visible.cjs.js"),fe=require("./hooks/use-local-storage/use-local-storage.cjs.js"),Ge=require("./hooks/use-media-query/use-media-query.cjs.js"),Ee=require("./hooks/use-memoized-fn/use-memoized-fn.cjs.js"),He=require("./hooks/use-mutation/use-mutation.cjs.js"),Ne=require("./hooks/use-object/use-object.cjs.js"),Ve=require("./hooks/use-on-mount/use-on-mount.cjs.js"),je=require("./hooks/use-pagination/use-pagination.cjs.js"),we=require("./hooks/use-portal/use-portal.cjs.js"),Be=require("./hooks/use-prevent-page-close/use-prevent-page-close.cjs.js"),H=require("./hooks/use-range-pagination/use-range-pagination.cjs.js"),ze=require("./hooks/use-selection/use-selection.cjs.js"),$e=require("./hooks/use-step/use-step.cjs.js"),N=require("./lib/cn.cjs.js"),_e=require("./providers/library-provider.cjs.js"),V=require("./providers/theme/ThemeProvider.cjs.js"),Ke=require("./providers/theme/useThemeProps.cjs.js"),R=require("./utils/form.cjs.js"),Qe=require("./utils/functions/createSafeContext.cjs.js"),Ze=require("./utils/functions/ensureReactElement.cjs.js"),Ue=require("./utils/functions/getFormData.cjs.js"),Je=require("./utils/functions/mergeRefs.cjs.js"),We=require("./utils/strings/extractInitials.utility.cjs.js");exports.Accordion=A.Accordion;exports.AccordionContent=A.AccordionContent;exports.AccordionItem=A.AccordionItem;exports.AccordionRoot=A.AccordionRoot;exports.AccordionTrigger=A.AccordionTrigger;Object.defineProperty(exports,"AccordionPrimitive",{enumerable:!0,get:()=>j.Accordion});exports.Alert=D.Alert;exports.AlertAction=D.AlertAction;exports.AlertDescription=D.AlertDescription;exports.AlertRoot=D.AlertRoot;exports.AlertTitle=D.AlertTitle;exports.AlertDialog=u.AlertDialog;exports.AlertDialogBackdrop=u.AlertDialogBackdrop;exports.AlertDialogClose=u.AlertDialogClose;exports.AlertDialogDescription=u.AlertDialogDescription;exports.AlertDialogFooter=u.AlertDialogFooter;exports.AlertDialogHeader=u.AlertDialogHeader;exports.AlertDialogPopup=u.AlertDialogPopup;exports.AlertDialogRoot=u.AlertDialogRoot;exports.AlertDialogTitle=u.AlertDialogTitle;exports.AlertDialogTrigger=u.AlertDialogTrigger;exports.AlertDialogViewport=u.AlertDialogViewport;Object.defineProperty(exports,"AlertDialogPrimitive",{enumerable:!0,get:()=>w.AlertDialog});exports.Autocomplete=o.Autocomplete;exports.AutocompleteClear=o.AutocompleteClear;exports.AutocompleteCollection=o.AutocompleteCollection;exports.AutocompleteEmpty=o.AutocompleteEmpty;exports.AutocompleteGroup=o.AutocompleteGroup;exports.AutocompleteGroupLabel=o.AutocompleteGroupLabel;exports.AutocompleteInput=o.AutocompleteInput;exports.AutocompleteItem=o.AutocompleteItem;exports.AutocompleteList=o.AutocompleteList;exports.AutocompletePopup=o.AutocompletePopup;exports.AutocompleteRoot=o.AutocompleteRoot;exports.AutocompleteRow=o.AutocompleteRow;exports.AutocompleteSeparator=o.AutocompleteSeparator;exports.AutocompleteStatus=o.AutocompleteStatus;exports.AutocompleteTrigger=o.AutocompleteTrigger;exports.AutocompleteValue=o.AutocompleteValue;exports.useAutocompleteFilter=o.useAutocompleteFilter;Object.defineProperty(exports,"AutocompletePrimitive",{enumerable:!0,get:()=>B.Autocomplete});exports.Avatar=g.Avatar;exports.AvatarBadge=g.AvatarBadge;exports.AvatarFallback=g.AvatarFallback;exports.AvatarGroup=g.AvatarGroup;exports.AvatarGroupCount=g.AvatarGroupCount;exports.AvatarImage=g.AvatarImage;exports.AvatarRoot=g.AvatarRoot;Object.defineProperty(exports,"AvatarPrimitive",{enumerable:!0,get:()=>z.Avatar});exports.Button=y.Button;exports.buttonVariants=y.buttonVariants;exports.BaseButton=$.BaseButton;exports.Calendar=_.Calendar;exports.Card=m.Card;exports.CardAction=m.CardAction;exports.CardContent=m.CardContent;exports.CardDescription=m.CardDescription;exports.CardFooter=m.CardFooter;exports.CardHeader=m.CardHeader;exports.CardRoot=m.CardRoot;exports.CardTitle=m.CardTitle;exports.Center=K.Center;exports.Checkbox=I.Checkbox;exports.CheckboxGroupContext=I.CheckboxGroupContext;exports.CheckboxIndicator=I.CheckboxIndicator;exports.CheckboxRoot=I.CheckboxRoot;Object.defineProperty(exports,"CheckboxPrimitive",{enumerable:!0,get:()=>Q.Checkbox});exports.CheckboxGroup=k.CheckboxGroup;exports.CheckboxGroupRoot=k.CheckboxGroupRoot;exports.Combobox=e.Combobox;exports.ComboboxChip=e.ComboboxChip;exports.ComboboxChipRemove=e.ComboboxChipRemove;exports.ComboboxChips=e.ComboboxChips;exports.ComboboxChipsInput=e.ComboboxChipsInput;exports.ComboboxClear=e.ComboboxClear;exports.ComboboxCollection=e.ComboboxCollection;exports.ComboboxContext=e.ComboboxContext;exports.ComboboxEmpty=e.ComboboxEmpty;exports.ComboboxGroup=e.ComboboxGroup;exports.ComboboxGroupLabel=e.ComboboxGroupLabel;exports.ComboboxInput=e.ComboboxInput;exports.ComboboxItem=e.ComboboxItem;exports.ComboboxList=e.ComboboxList;exports.ComboboxPopup=e.ComboboxPopup;exports.ComboboxRoot=e.ComboboxRoot;exports.ComboboxRow=e.ComboboxRow;exports.ComboboxSearchInput=e.ComboboxSearchInput;exports.ComboboxSelectTrigger=e.ComboboxSelectTrigger;exports.ComboboxSeparator=e.ComboboxSeparator;exports.ComboboxStatus=e.ComboboxStatus;exports.ComboboxTrigger=e.ComboboxTrigger;exports.ComboboxValue=e.ComboboxValue;exports.useComboboxFilter=e.useComboboxFilter;Object.defineProperty(exports,"ComboboxPrimitive",{enumerable:!0,get:()=>Z.Combobox});exports.DateInput=U.DateInput;exports.DatePicker=J.DatePicker;exports.Dialog=l.Dialog;exports.DialogBackdrop=l.DialogBackdrop;exports.DialogClose=l.DialogClose;exports.DialogDescription=l.DialogDescription;exports.DialogFooter=l.DialogFooter;exports.DialogHeader=l.DialogHeader;exports.DialogPopup=l.DialogPopup;exports.DialogRoot=l.DialogRoot;exports.DialogTitle=l.DialogTitle;exports.DialogTrigger=l.DialogTrigger;exports.DialogViewport=l.DialogViewport;Object.defineProperty(exports,"DialogPrimitive",{enumerable:!0,get:()=>W.Dialog});exports.Divider=X.Divider;Object.defineProperty(exports,"SeparatorPrimitive",{enumerable:!0,get:()=>Y.Separator});exports.Dropzone=d.Dropzone;exports.DropzoneAcceptedFiles=d.DropzoneAcceptedFiles;exports.DropzoneContent=d.DropzoneContent;exports.DropzoneItem=d.DropzoneItem;exports.DropzoneRejectedFiles=d.DropzoneRejectedFiles;exports.DropzoneRoot=d.DropzoneRoot;exports.DropzoneTrigger=d.DropzoneTrigger;exports.FileType=M.FileType;exports.FileTypeGroups=M.FileTypeGroups;exports.Empty=P.Empty;exports.EmptyContent=P.EmptyContent;exports.EmptyDescription=P.EmptyDescription;exports.EmptyHeader=P.EmptyHeader;exports.EmptyMedia=P.EmptyMedia;exports.EmptyRoot=P.EmptyRoot;exports.EmptyTitle=P.EmptyTitle;exports.Field=i.Field;exports.FieldControl=i.FieldControl;exports.FieldDescription=i.FieldDescription;exports.FieldError=i.FieldError;exports.FieldItem=i.FieldItem;exports.FieldLabel=i.FieldLabel;exports.FieldLegend=i.FieldLegend;exports.FieldRoot=i.FieldRoot;exports.FieldSet=i.FieldSet;exports.FieldValidity=i.FieldValidity;exports.normalizeError=i.normalizeError;exports.useFieldName=i.useFieldName;exports.useIsInsideFieldRoot=i.useIsInsideFieldRoot;Object.defineProperty(exports,"FieldPrimitive",{enumerable:!0,get:()=>ee.Field});Object.defineProperty(exports,"FieldsetPrimitive",{enumerable:!0,get:()=>oe.Fieldset});exports.Form=te.Form;Object.defineProperty(exports,"FormPrimitive",{enumerable:!0,get:()=>re.Form});exports.Input=h.Input;exports.inputBaseClasses=h.inputBaseClasses;Object.defineProperty(exports,"InputPrimitive",{enumerable:!0,get:()=>ie.Input});exports.Kbd=O.Kbd;exports.KbdGroup=O.KbdGroup;exports.Label=ae.Label;exports.Loader=ne.Loader;exports.Menu=ue.Menu;exports.MenuCheckboxItem=t.MenuCheckboxItem;exports.MenuGroup=t.MenuGroup;exports.MenuItem=t.MenuItem;exports.MenuLabel=t.MenuLabel;exports.MenuPopup=t.MenuPopup;exports.MenuPortal=t.MenuPortal;exports.MenuRadioGroup=t.MenuRadioGroup;exports.MenuRadioItem=t.MenuRadioItem;exports.MenuRoot=t.MenuRoot;exports.MenuSeparator=t.MenuSeparator;exports.MenuShortcut=t.MenuShortcut;exports.MenuSub=t.MenuSub;exports.MenuSubContent=t.MenuSubContent;exports.MenuSubTrigger=t.MenuSubTrigger;exports.MenuTrigger=t.MenuTrigger;exports.NumberInput=s.NumberInput;exports.NumberInputCursorIcon=s.NumberInputCursorIcon;exports.NumberInputDecrement=s.NumberInputDecrement;exports.NumberInputGroup=s.NumberInputGroup;exports.NumberInputIncrement=s.NumberInputIncrement;exports.NumberInputInput=s.NumberInputInput;exports.NumberInputRoot=s.NumberInputRoot;exports.NumberInputScrubArea=s.NumberInputScrubArea;exports.NumberInputScrubAreaCursor=s.NumberInputScrubAreaCursor;Object.defineProperty(exports,"NumberInputPrimitive",{enumerable:!0,get:()=>le.NumberField});exports.OTP=v.OTP;exports.OTPInput=v.OTPInput;exports.OTPRoot=v.OTPRoot;exports.OTPSeparator=v.OTPSeparator;Object.defineProperty(exports,"OTPPrimitive",{enumerable:!0,get:()=>se.OTPFieldPreview});exports.Pagination=a.Pagination;exports.PaginationEllipsis=a.PaginationEllipsis;exports.PaginationFirst=a.PaginationFirst;exports.PaginationLast=a.PaginationLast;exports.PaginationLink=a.PaginationLink;exports.PaginationNext=a.PaginationNext;exports.PaginationPageInfo=a.PaginationPageInfo;exports.PaginationPages=a.PaginationPages;exports.PaginationPrevious=a.PaginationPrevious;exports.PaginationRange=a.PaginationRange;exports.PaginationRoot=a.PaginationRoot;exports.PaginationSizeSelect=a.PaginationSizeSelect;exports.PaginationTotal=a.PaginationTotal;exports.PAGINATION_SIZES=ce.PAGINATION_SIZES;exports.Password=L.Password;exports.PasswordRoot=L.Password;exports.Popover=c.Popover;exports.PopoverClose=c.PopoverClose;exports.PopoverContent=c.PopoverPopup;exports.PopoverCreateHandle=c.PopoverCreateHandle;exports.PopoverDescription=c.PopoverDescription;exports.PopoverPopup=c.PopoverPopup;exports.PopoverRoot=c.PopoverRoot;exports.PopoverTitle=c.PopoverTitle;exports.PopoverTrigger=c.PopoverTrigger;Object.defineProperty(exports,"PopoverPrimitive",{enumerable:!0,get:()=>pe.Popover});exports.Progress=C.Progress;exports.ProgressIndicator=C.ProgressIndicator;exports.ProgressLabel=C.ProgressLabel;exports.ProgressRoot=C.ProgressRoot;exports.ProgressTrack=C.ProgressTrack;exports.ProgressValue=C.ProgressValue;exports.ScrollArea=f.ScrollArea;exports.ScrollBar=f.ScrollBar;Object.defineProperty(exports,"ScrollAreaPrimitive",{enumerable:!0,get:()=>be.ScrollArea});exports.Select=r.Select;exports.SelectButton=r.SelectButton;exports.SelectContent=r.SelectPopup;exports.SelectGroup=r.SelectGroup;exports.SelectGroupLabel=r.SelectGroupLabel;exports.SelectItem=r.SelectItem;exports.SelectLabel=r.SelectLabel;exports.SelectPopup=r.SelectPopup;exports.SelectRoot=r.SelectRoot;exports.SelectSeparator=r.SelectSeparator;exports.SelectTrigger=r.SelectTrigger;exports.SelectValue=r.SelectValue;exports.selectTriggerClasses=r.selectTriggerClasses;exports.selectTriggerIconClassName=r.selectTriggerIconClassName;Object.defineProperty(exports,"SelectPrimitive",{enumerable:!0,get:()=>me.Select});exports.Skeleton=ge.Skeleton;exports.Stack=de.Stack;exports.Stepper=n.Stepper;exports.StepperContent=n.StepperContent;exports.StepperDescription=n.StepperDescription;exports.StepperIndicator=n.StepperIndicator;exports.StepperItem=n.StepperItem;exports.StepperNav=n.StepperNav;exports.StepperPanel=n.StepperPanel;exports.StepperRoot=n.StepperRoot;exports.StepperSeparator=n.StepperSeparator;exports.StepperTitle=n.StepperTitle;exports.StepperTrigger=n.StepperTrigger;exports.useStepItem=n.useStepItem;exports.useStepper=n.useStepper;exports.Switch=F.Switch;exports.SwitchRoot=F.SwitchRoot;exports.SwitchThumb=F.SwitchThumb;exports.Table=p.Table;exports.TableBody=p.TableBody;exports.TableCaption=p.TableCaption;exports.TableCell=p.TableCell;exports.TableFooter=p.TableFooter;exports.TableHead=p.TableHead;exports.TableHeader=p.TableHeader;exports.TableRoot=p.TableRoot;exports.TableRow=p.TableRow;exports.TabList=T.TabsList;exports.Tabs=T.Tabs;exports.TabsContent=T.TabsPanel;exports.TabsList=T.TabsList;exports.TabsPanel=T.TabsPanel;exports.TabsTab=T.TabsTab;exports.TabsTrigger=T.TabsTab;Object.defineProperty(exports,"TabsPrimitive",{enumerable:!0,get:()=>Pe.Tabs});exports.Tag=G.Tag;exports.tagVariants=G.tagVariants;exports.Textarea=Te.Textarea;exports.Timeline=b.Timeline;exports.TimelineContent=b.TimelineContent;exports.TimelineDate=b.TimelineDate;exports.TimelineHeader=b.TimelineHeader;exports.TimelineIndicator=b.TimelineIndicator;exports.TimelineItem=b.TimelineItem;exports.TimelineRoot=b.TimelineRoot;exports.TimelineSeparator=b.TimelineSeparator;exports.TimelineTitle=b.TimelineTitle;exports.ToastProvider=q.ToastProvider;exports.createToastManager=q.createToastManager;exports.toast=q.toast;exports.toastVariants=q.toastVariants;exports.useToastManager=q.useToastManager;Object.defineProperty(exports,"ToastPrimitive",{enumerable:!0,get:()=>Ce.Toast});exports.Tooltip=S.Tooltip;exports.TooltipArrow=S.TooltipArrow;exports.TooltipPopup=S.TooltipPopup;exports.TooltipProvider=S.TooltipProvider;exports.TooltipRoot=S.TooltipRoot;exports.TooltipTrigger=S.TooltipTrigger;Object.defineProperty(exports,"TooltipPrimitive",{enumerable:!0,get:()=>Se.Tooltip});exports.TreeDragLine=x.TreeDragLine;exports.TreeItem=x.TreeItem;exports.TreeItemLabel=x.TreeItemLabel;exports.TreeRoot=x.TreeRoot;Object.defineProperty(exports,"useControllableState",{enumerable:!0,get:()=>Ae.useControllableState});exports.useArray=De.useArray;exports.useAsync=qe.useAsync;exports.useBoolean=Ie.useBoolean;exports.useClickOutside=ve.useClickOutside;exports.useClipboard=xe.useClipboard;exports.useDebouncedCallback=Re.useDebouncedCallback;exports.useDebouncedValue=Fe.useDebouncedValue;exports.useDisclosure=ye.useDisclosure;exports.useDocumentTitle=ke.useDocumentTitle;exports.useEventListener=Me.useEventListener;exports.useFocusTrap=he.useFocusTrap;exports.getHotkeyHandler=E.getHotkeyHandler;exports.useHotkey=E.useHotkey;exports.useHover=Oe.useHover;exports.useIsVisible=Le.useIsVisible;exports.useLocalStorage=fe.useLocalStorage;exports.useMediaQuery=Ge.useMediaQuery;exports.useMemoizedFn=Ee.useMemoizedFn;exports.useMutation=He.useMutation;exports.useObject=Ne.useObject;exports.useOnMount=Ve.useOnMount;exports.usePagination=je.usePagination;exports.usePortal=we.usePortal;exports.usePreventPageClose=Be.usePreventPageClose;exports.DOTS=H.DOTS;exports.useRangePagination=H.useRangePagination;exports.useSelection=ze.useSelection;exports.useStep=$e.useStep;exports.cn=N.cn;exports.twMerge=N.twMerge;exports.LibraryProvider=_e.LibraryProvider;exports.ThemeProvider=V.ThemeProvider;exports.useTheme=V.useTheme;exports.useThemeProps=Ke.useThemeProps;exports.HookField=R.HookField;exports.HookForm=R.HookForm;exports.parseFormValues=R.parseFormValues;exports.useHookForm=R.useHookForm;exports.createSafeContext=Qe.createSafeContext;exports.ensureReactElement=Ze.ensureReactElement;exports.getFormData=Ue.getFormData;exports.mergeRefs=Je.mergeRefs;exports.extractInitials=We.extractInitials;
|