react-miui 0.32.3 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.json +12 -0
- package/.claude/settings.local.json +11 -1
- package/.storybook/main.ts +4 -1
- package/.storybook/preview.tsx +10 -4
- package/CHANGELOG.md +16 -0
- package/dist/components/form/Checkbox.styled.d.ts +6 -6
- package/dist/components/form/ColorPicker.styled.d.ts +5 -5
- package/dist/components/form/Label.d.ts +3 -3
- package/dist/components/form/Label.styled.d.ts +5 -5
- package/dist/components/form/Select.styled.d.ts +3 -3
- package/dist/components/form/Toggle.d.ts +3 -3
- package/dist/components/form/Toggle.styled.d.ts +5 -5
- package/dist/components/form/choice/Choice.styled.d.ts +3 -3
- package/dist/components/form/choice/ChoiceItem.styled.d.ts +2 -2
- package/dist/components/form/input/Input.css.d.ts +47 -1
- package/dist/components/form/input/Input.css.d.ts.map +1 -1
- package/dist/components/form/input/Input.css.js +49 -1
- package/dist/components/form/input/Input.css.js.map +1 -1
- package/dist/components/form/input/Input.d.ts +5 -1
- package/dist/components/form/input/Input.d.ts.map +1 -1
- package/dist/components/form/input/Input.js +28 -5
- package/dist/components/form/input/Input.js.map +1 -1
- package/dist/components/form/input/Input.styled.d.ts +183 -10
- package/dist/components/form/input/Input.styled.d.ts.map +1 -1
- package/dist/components/form/input/Input.styled.js +5 -1
- package/dist/components/form/input/Input.styled.js.map +1 -1
- package/dist/components/form/textarea/TextArea.d.ts +6 -1
- package/dist/components/form/textarea/TextArea.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.js +32 -4
- package/dist/components/form/textarea/TextArea.js.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.d.ts +177 -4
- package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.js +10 -2
- package/dist/components/form/textarea/TextArea.styled.js.map +1 -1
- package/dist/components/layout/card/Card.styled.d.ts +3 -3
- package/dist/components/layout/header/Header.styled.d.ts +9 -9
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
- package/dist/components/layout/header/StickyHeader.d.ts +3 -3
- package/dist/components/layout/header/StickyHeader.styled.d.ts +6 -6
- package/dist/components/layout/list/Header.d.ts +7 -7
- package/dist/components/layout/list/Item.d.ts +8 -8
- package/dist/components/layout/list/Item.styled.d.ts +9 -9
- package/dist/components/layout/list/Label.d.ts +2 -2
- package/dist/components/layout/list/List.d.ts +18 -18
- package/dist/components/layout/list/Value.d.ts +2 -2
- package/dist/components/layout/section/SearchContainer.d.ts +2 -2
- package/dist/components/layout/section/Section.d.ts +5 -5
- package/dist/components/layout/section/SectionContainer.d.ts +2 -2
- package/dist/components/layout/table/Table.styled.d.ts +3 -3
- package/dist/components/native/index.d.ts +2 -2
- package/dist/components/ui/action/Action.styled.d.ts +8 -8
- package/dist/components/ui/action/EqualActions.styled.d.ts +3 -3
- package/dist/components/ui/button/Button.styled.d.ts +3 -3
- package/dist/components/ui/directionPad/Button.styled.d.ts +4 -4
- package/dist/components/ui/directionPad/Middle.styled.d.ts +2 -2
- package/dist/components/ui/directionPad/Pad.styled.d.ts +4 -4
- package/dist/components/ui/drawer/Drawer.d.ts +10 -1
- package/dist/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.js +135 -15
- package/dist/components/ui/drawer/Drawer.js.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.d.ts +90 -5
- package/dist/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.js +13 -1
- package/dist/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/dist/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
- package/dist/components/ui/line/Line.d.ts +3 -3
- package/dist/components/ui/message/Message.styled.d.ts +3 -3
- package/dist/components/ui/modal/Modal.d.ts +2 -2
- package/dist/components/ui/modal/Modal.d.ts.map +1 -1
- package/dist/components/ui/modal/Modal.js.map +1 -1
- package/dist/components/ui/modal/Modal.styled.d.ts +10 -10
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +5 -5
- package/dist/components/ui/pop/Pop.styled.d.ts +12 -12
- package/dist/components/ui/progress/Progress.styled.d.ts +8 -8
- package/dist/components/ui/stats/Stats.styled.d.ts +11 -11
- package/dist/components/ui/tabs/Item.styled.d.ts +2 -2
- package/dist/components/ui/tabs/Selector.styled.d.ts +5 -5
- package/dist/components/ui/toaster/Toaster.d.ts +8 -15
- package/dist/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster/Toaster.js +31 -55
- package/dist/components/ui/toaster/Toaster.js.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
- package/dist/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/dist/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.js +81 -0
- package/dist/components/ui/tooltip/Tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/dist/components/ui/{toaster/Notification.js → tooltip/Tooltip.styled.js} +30 -18
- package/dist/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/dist/components/utils/Gap.d.ts +3 -3
- package/dist/components/utils/Spacer.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +86 -86
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.Pop.html +18 -18
- package/docs/documents/Test.html +2 -2
- package/docs/enums/index.ICON.html +2 -2
- package/docs/functions/index.Action.html +5 -5
- package/docs/functions/index.Button.html +5 -5
- package/docs/functions/index.Card.html +4 -4
- package/docs/functions/index.Checkbox.html +5 -5
- package/docs/functions/index.Choice.html +4 -4
- package/docs/functions/index.ColorPicker.html +5 -5
- package/docs/functions/index.CoveringLoader.html +5 -5
- package/docs/functions/index.DirectionPad.html +4 -4
- package/docs/functions/index.Drawer.html +4 -4
- package/docs/functions/index.EqualActions.html +4 -4
- package/docs/functions/index.FullLoader.html +5 -5
- package/docs/functions/index.Gap.html +4 -4
- package/docs/functions/index.HandleEsc.html +6 -6
- package/docs/functions/index.Header.html +5 -5
- package/docs/functions/index.HeaderIconAction.html +5 -5
- package/docs/functions/index.Icon-1.html +4 -4
- package/docs/functions/index.If.html +6 -6
- package/docs/functions/index.Input.html +1 -1
- package/docs/functions/index.KeyValue.html +4 -4
- package/docs/functions/index.Label.html +4 -4
- package/docs/functions/index.Line.html +5 -5
- package/docs/functions/index.List.html +4 -4
- package/docs/functions/index.Loader.html +5 -5
- package/docs/functions/index.Loading.html +6 -6
- package/docs/functions/index.Message.html +5 -5
- package/docs/functions/index.Modal.html +4 -4
- package/docs/functions/index.ModalButtons.html +4 -4
- package/docs/functions/index.PopLoader.html +5 -5
- package/docs/functions/index.PopOption.html +4 -4
- package/docs/functions/index.Progress.html +4 -4
- package/docs/functions/index.SearchContainer.html +4 -4
- package/docs/functions/index.Section.html +5 -5
- package/docs/functions/index.Select.html +4 -4
- package/docs/functions/index.Selector.html +4 -4
- package/docs/functions/index.Spacer.html +4 -4
- package/docs/functions/index.Stats.html +4 -4
- package/docs/functions/index.StickyHeader.html +5 -5
- package/docs/functions/index.Table.html +4 -4
- package/docs/functions/index.TextArea.html +4 -4
- package/docs/functions/index.ToasterProvider.html +29 -0
- package/docs/functions/index.Toggle.html +5 -5
- package/docs/functions/index.ToolButton.html +5 -5
- package/docs/functions/index.Tooltip.html +18 -0
- package/docs/functions/index.TooltipProvider.html +6 -0
- package/docs/functions/index.borderPxToRem.html +1 -1
- package/docs/functions/index.createTheme.html +1 -1
- package/docs/functions/index.css.html +1 -1
- package/docs/functions/index.dimensionsPxToRem.html +1 -1
- package/docs/functions/index.fontPxToRem.html +1 -1
- package/docs/functions/index.getCssText.html +1 -1
- package/docs/functions/index.globalCss.html +2 -2
- package/docs/functions/index.injectGlobalStyles.html +1 -1
- package/docs/functions/index.keyframes.html +1 -1
- package/docs/functions/index.pxToRem.html +1 -1
- package/docs/functions/index.styled.html +1 -1
- package/docs/functions/index.toast.html +12 -0
- package/docs/functions/index.useToaster.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/index.IconProps.html +2 -2
- package/docs/interfaces/index.InputCustomProps.html +7 -2
- package/docs/interfaces/index.LoaderProps.html +6 -6
- package/docs/interfaces/index.StickyHeaderProps.html +4 -4
- package/docs/interfaces/index.ToasterProviderProps.html +28 -0
- package/docs/interfaces/index.TooltipProps.html +36 -0
- package/docs/interfaces/index.TooltipProviderProps.html +13 -0
- package/docs/modules/index.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/index.ActionProps.html +1 -1
- package/docs/types/index.CardProps.html +1 -1
- package/docs/types/index.CheckboxProps.html +2 -2
- package/docs/types/index.ChoiceProps.html +1 -1
- package/docs/types/index.ColorPickerProps.html +1 -1
- package/docs/types/index.DirectionPadProps.html +1 -1
- package/docs/types/index.DrawerFrom.html +1 -0
- package/docs/types/index.DrawerProps.html +28 -1
- package/docs/types/index.EqualActionsProps.html +1 -1
- package/docs/types/index.HeaderProps.html +1 -1
- package/docs/types/index.InputProps.html +1 -1
- package/docs/types/index.KeyValueProps.html +1 -1
- package/docs/types/index.LabelProps.html +1 -1
- package/docs/types/index.OverwriteProps.html +1 -1
- package/docs/types/index.ProgressProps.html +2 -2
- package/docs/types/index.SelectProps.html +1 -1
- package/docs/types/index.SelectorProps.html +1 -1
- package/docs/types/index.Stat.html +1 -1
- package/docs/types/index.StatsProps.html +1 -1
- package/docs/types/index.TextAreaProps.html +1 -1
- package/docs/types/index.ThemeCSS.html +1 -1
- package/docs/types/index.ToggleProps.html +2 -2
- package/docs/variables/index.ActionBadgeSelector.html +1 -1
- package/docs/variables/index.ActionCircleSelector.html +1 -1
- package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
- package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
- package/docs/variables/index.ChoiceItemSelector.html +1 -1
- package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
- package/docs/variables/index.DirectionPadLineSelector.html +1 -1
- package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
- package/docs/variables/index.DrawerContentSelector.html +1 -1
- package/docs/variables/index.HeaderAfterSelector.html +1 -1
- package/docs/variables/index.HeaderBeforeSelector.html +1 -1
- package/docs/variables/index.HeaderContentsSelector.html +1 -1
- package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
- package/docs/variables/index.InputContainerSelector.html +1 -0
- package/docs/variables/index.InputInputSelector.html +1 -1
- package/docs/variables/index.InputLabelSelector.html +1 -0
- package/docs/variables/index.InputPrefixSelector.html +1 -1
- package/docs/variables/index.InputSuffixSelector.html +1 -1
- package/docs/variables/index.KeyValueIconSelector.html +1 -1
- package/docs/variables/index.KeyValueItemSelector.html +1 -1
- package/docs/variables/index.KeyValueKeySelector.html +1 -1
- package/docs/variables/index.KeyValuePairSelector.html +1 -1
- package/docs/variables/index.KeyValueValueSelector.html +1 -1
- package/docs/variables/index.LabelTextSelector.html +1 -1
- package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
- package/docs/variables/index.ModalContainerSelector.html +1 -1
- package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
- package/docs/variables/index.ModalTitleSelector.html +1 -1
- package/docs/variables/index.PopListSelector.html +1 -1
- package/docs/variables/index.PopOptionButtonSelector.html +1 -1
- package/docs/variables/index.PopOptionIconSelector.html +1 -1
- package/docs/variables/index.PopOverlaySelector.html +1 -1
- package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
- package/docs/variables/index.ProgressValueSelector.html +1 -1
- package/docs/variables/index.SelectorItemSelector.html +1 -1
- package/docs/variables/index.StatsItemSelector.html +1 -1
- package/docs/variables/index.StatsLabelSelector.html +1 -1
- package/docs/variables/index.StatsSeparatorSelector.html +1 -1
- package/docs/variables/index.StatsValueSelector.html +1 -1
- package/docs/variables/index.TextAreaLabelSelector.html +1 -0
- package/docs/variables/index.TextAreaTextAreaSelector.html +1 -0
- package/docs/variables/index.TextAreaWrapperSelector.html +1 -0
- package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
- package/docs/variables/index.TooltipContentSelector.html +1 -0
- package/docs/variables/index.config.html +1 -1
- package/docs/variables/index.cssReset.html +2 -2
- package/docs/variables/index.darkTheme.html +1 -1
- package/docs/variables/index.miuiScrollbars.html +1 -1
- package/docs/variables/index.theme.html +1 -1
- package/esm/components/form/Checkbox.styled.d.ts +6 -6
- package/esm/components/form/ColorPicker.styled.d.ts +5 -5
- package/esm/components/form/Label.d.ts +3 -3
- package/esm/components/form/Label.styled.d.ts +5 -5
- package/esm/components/form/Select.styled.d.ts +3 -3
- package/esm/components/form/Toggle.d.ts +3 -3
- package/esm/components/form/Toggle.styled.d.ts +5 -5
- package/esm/components/form/choice/Choice.styled.d.ts +3 -3
- package/esm/components/form/choice/ChoiceItem.styled.d.ts +2 -2
- package/esm/components/form/input/Input.css.d.ts +47 -1
- package/esm/components/form/input/Input.css.d.ts.map +1 -1
- package/esm/components/form/input/Input.css.js +47 -1
- package/esm/components/form/input/Input.css.js.map +1 -1
- package/esm/components/form/input/Input.d.ts +5 -1
- package/esm/components/form/input/Input.d.ts.map +1 -1
- package/esm/components/form/input/Input.js +27 -6
- package/esm/components/form/input/Input.js.map +1 -1
- package/esm/components/form/input/Input.styled.d.ts +183 -10
- package/esm/components/form/input/Input.styled.d.ts.map +1 -1
- package/esm/components/form/input/Input.styled.js +4 -2
- package/esm/components/form/input/Input.styled.js.map +1 -1
- package/esm/components/form/textarea/TextArea.d.ts +6 -1
- package/esm/components/form/textarea/TextArea.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.js +31 -6
- package/esm/components/form/textarea/TextArea.js.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.d.ts +177 -4
- package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.js +14 -4
- package/esm/components/form/textarea/TextArea.styled.js.map +1 -1
- package/esm/components/layout/card/Card.styled.d.ts +3 -3
- package/esm/components/layout/header/Header.styled.d.ts +9 -9
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
- package/esm/components/layout/header/StickyHeader.d.ts +3 -3
- package/esm/components/layout/header/StickyHeader.styled.d.ts +6 -6
- package/esm/components/layout/list/Header.d.ts +7 -7
- package/esm/components/layout/list/Item.d.ts +8 -8
- package/esm/components/layout/list/Item.styled.d.ts +9 -9
- package/esm/components/layout/list/Label.d.ts +2 -2
- package/esm/components/layout/list/List.d.ts +18 -18
- package/esm/components/layout/list/Value.d.ts +2 -2
- package/esm/components/layout/section/SearchContainer.d.ts +2 -2
- package/esm/components/layout/section/Section.d.ts +5 -5
- package/esm/components/layout/section/SectionContainer.d.ts +2 -2
- package/esm/components/layout/table/Table.styled.d.ts +3 -3
- package/esm/components/native/index.d.ts +2 -2
- package/esm/components/ui/action/Action.styled.d.ts +8 -8
- package/esm/components/ui/action/EqualActions.styled.d.ts +3 -3
- package/esm/components/ui/button/Button.styled.d.ts +3 -3
- package/esm/components/ui/directionPad/Button.styled.d.ts +4 -4
- package/esm/components/ui/directionPad/Middle.styled.d.ts +2 -2
- package/esm/components/ui/directionPad/Pad.styled.d.ts +4 -4
- package/esm/components/ui/drawer/Drawer.d.ts +10 -1
- package/esm/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.js +139 -15
- package/esm/components/ui/drawer/Drawer.js.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.d.ts +90 -5
- package/esm/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.js +12 -1
- package/esm/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/esm/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
- package/esm/components/ui/line/Line.d.ts +3 -3
- package/esm/components/ui/message/Message.styled.d.ts +3 -3
- package/esm/components/ui/modal/Modal.d.ts +2 -2
- package/esm/components/ui/modal/Modal.d.ts.map +1 -1
- package/esm/components/ui/modal/Modal.js.map +1 -1
- package/esm/components/ui/modal/Modal.styled.d.ts +10 -10
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +5 -5
- package/esm/components/ui/pop/Pop.styled.d.ts +12 -12
- package/esm/components/ui/progress/Progress.styled.d.ts +8 -8
- package/esm/components/ui/stats/Stats.styled.d.ts +11 -11
- package/esm/components/ui/tabs/Item.styled.d.ts +2 -2
- package/esm/components/ui/tabs/Selector.styled.d.ts +5 -5
- package/esm/components/ui/toaster/Toaster.d.ts +8 -15
- package/esm/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/esm/components/ui/toaster/Toaster.js +19 -74
- package/esm/components/ui/toaster/Toaster.js.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
- package/esm/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/esm/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.js +43 -0
- package/esm/components/ui/tooltip/Tooltip.js.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js +28 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/esm/components/utils/Gap.d.ts +3 -3
- package/esm/components/utils/Spacer.d.ts +2 -2
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/theme.d.ts +86 -86
- package/package.json +22 -20
- package/patches/{@stitches+react+1.2.8.patch → @stitches__react@1.2.8.patch} +6 -6
- package/pnpm-workspace.yaml +3 -0
- package/src/bugfixes/ToastsFromModal.stories.tsx +59 -0
- package/src/components/form/input/Input.css.ts +52 -0
- package/src/components/form/input/Input.stories.tsx +32 -1
- package/src/components/form/input/Input.styled.ts +7 -1
- package/src/components/form/input/Input.tsx +67 -13
- package/src/components/form/textarea/TextArea.stories.tsx +25 -1
- package/src/components/form/textarea/TextArea.styled.ts +17 -3
- package/src/components/form/textarea/TextArea.tsx +76 -12
- package/src/components/ui/drawer/Drawer.stories.tsx +143 -59
- package/src/components/ui/drawer/Drawer.styled.ts +13 -0
- package/src/components/ui/drawer/Drawer.tsx +214 -20
- package/src/components/ui/modal/Modal.tsx +0 -1
- package/src/components/ui/modal/ModalButtons.stories.tsx +3 -3
- package/src/components/ui/toaster/Toaster.stories.tsx +160 -30
- package/src/components/ui/toaster/Toaster.tsx +28 -94
- package/src/components/ui/tooltip/Tooltip.stories.tsx +285 -0
- package/src/components/ui/tooltip/Tooltip.styled.ts +36 -0
- package/src/components/ui/tooltip/Tooltip.tsx +195 -0
- package/src/index.ts +1 -0
- package/storybook-static/assets/Action.stories-DBtNlWQo.js +1 -0
- package/storybook-static/assets/Button.stories-DFO8nsTN.js +1 -0
- package/storybook-static/assets/Card.stories-BoCt66U4.js +1 -0
- package/storybook-static/assets/Checkbox.stories-C58YeH4u.js +1 -0
- package/storybook-static/assets/Choice.stories-Cf7UbPxn.js +1 -0
- package/storybook-static/assets/Color-23OOGO2C-CELuW8GR.js +1 -0
- package/storybook-static/assets/ColorPicker.stories-Dc7-AuPQ.js +1 -0
- package/storybook-static/assets/CoveringLoader.stories-DrUQAhI6.js +1 -0
- package/storybook-static/assets/DocsRenderer-LL677BLK-BOcEjZ28.js +755 -0
- package/storybook-static/assets/Drawer.stories-D3_-TuT0.js +1 -0
- package/storybook-static/assets/EqualActions.stories-CwjZlkUA.js +1 -0
- package/storybook-static/assets/FullLoader.stories-DFAaVMfI.js +1 -0
- package/storybook-static/assets/Header.stories-BN7BuQx2.js +1 -0
- package/storybook-static/assets/Header.stories-CzPBNEkp.js +1 -0
- package/storybook-static/assets/HeaderIconAction.stories-Dm3Q-BVW.js +1 -0
- package/storybook-static/assets/Icon.stories-D1YeVBlB.js +1 -0
- package/storybook-static/assets/Input.stories-Cbj2X3kT.js +197 -0
- package/storybook-static/assets/Item.stories-CmjyxdgQ.js +1 -0
- package/storybook-static/assets/KeyValue.stories-CogaZP09.js +1 -0
- package/storybook-static/assets/Label.stories-B6pCT45X.js +1 -0
- package/storybook-static/assets/Label.stories-BR3gNHqM.js +1 -0
- package/storybook-static/assets/Line.stories-BJLer7gg.js +1 -0
- package/storybook-static/assets/List.stories-MSQY1Rdo.js +1 -0
- package/storybook-static/assets/Loader.stories-CbN84qNp.js +1 -0
- package/storybook-static/assets/Loading.stories-BOANGXsc.js +1 -0
- package/storybook-static/assets/Message.stories-_51K9ZDn.js +1 -0
- package/storybook-static/assets/Modal.stories-CixfvMuM.js +1 -0
- package/storybook-static/assets/ModalButtons.stories-DHHsnoGB.js +1 -0
- package/storybook-static/assets/Pad.stories-hrKerezi.js +1 -0
- package/storybook-static/assets/Pop.stories-BTlQGve1.js +1 -0
- package/storybook-static/assets/PopLoader.stories-CyskY4fX.js +1 -0
- package/storybook-static/assets/Progress.stories-BLMPF6Ju.js +1 -0
- package/storybook-static/assets/Section.stories-M-QRH2_i.js +1 -0
- package/storybook-static/assets/Select.stories-BJjJqLTa.js +1 -0
- package/storybook-static/assets/Selector.stories-BxHyFnYo.js +1 -0
- package/storybook-static/assets/Stats.stories-VB0pi5k5.js +1 -0
- package/storybook-static/assets/StickyHeader.stories-BnxgnjJW.js +3 -0
- package/storybook-static/assets/Table.stories-6F-WrDBs.js +1 -0
- package/storybook-static/assets/TextArea.stories-DqzHYgIv.js +1 -0
- package/storybook-static/assets/Toaster.stories-C0ktk0DW.js +1 -0
- package/storybook-static/assets/Toggle.stories-tBlD8SJi.js +1 -0
- package/storybook-static/assets/ToolButton.stories-0rGBGqAt.js +1 -0
- package/storybook-static/assets/Value.stories-CFT20m8r.js +1 -0
- package/storybook-static/assets/WithTooltip-65CFNBJE-CEiAC9o_.js +9 -0
- package/storybook-static/assets/formatter-EIJCOSYU-3FZOx6vn.js +1 -0
- package/storybook-static/assets/iframe-DvhcA1iZ.js +1244 -0
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/storybook-static/assets/react-18-oqx706Mo.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js +6 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +709 -0
- package/storybook-static/index.html +146 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/onboarding-2/manager-bundle.js +97 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +76749 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +27463 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/dist/components/ui/toaster/Notification.d.ts +0 -9
- package/dist/components/ui/toaster/Notification.d.ts.map +0 -1
- package/dist/components/ui/toaster/Notification.js.map +0 -1
- package/dist/components/ui/toaster/Toaster.styled.d.ts +0 -89
- package/dist/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
- package/dist/components/ui/toaster/Toaster.styled.js +0 -39
- package/dist/components/ui/toaster/Toaster.styled.js.map +0 -1
- package/dist/components/ui/toaster/types.d.ts +0 -7
- package/dist/components/ui/toaster/types.d.ts.map +0 -1
- package/dist/components/ui/toaster/types.js +0 -3
- package/dist/components/ui/toaster/types.js.map +0 -1
- package/docs/classes/index.ToasterProvider.html +0 -120
- package/esm/components/form/Checkbox.stories.d.ts +0 -9
- package/esm/components/form/Checkbox.stories.d.ts.map +0 -1
- package/esm/components/form/Checkbox.stories.js +0 -80
- package/esm/components/form/Checkbox.stories.js.map +0 -1
- package/esm/components/form/ColorPicker.stories.d.ts +0 -10
- package/esm/components/form/ColorPicker.stories.d.ts.map +0 -1
- package/esm/components/form/ColorPicker.stories.js +0 -75
- package/esm/components/form/ColorPicker.stories.js.map +0 -1
- package/esm/components/form/Label.stories.d.ts +0 -11
- package/esm/components/form/Label.stories.d.ts.map +0 -1
- package/esm/components/form/Label.stories.js +0 -43
- package/esm/components/form/Label.stories.js.map +0 -1
- package/esm/components/form/Select.stories.d.ts +0 -8
- package/esm/components/form/Select.stories.d.ts.map +0 -1
- package/esm/components/form/Select.stories.js +0 -24
- package/esm/components/form/Select.stories.js.map +0 -1
- package/esm/components/form/Toggle.stories.d.ts +0 -14
- package/esm/components/form/Toggle.stories.d.ts.map +0 -1
- package/esm/components/form/Toggle.stories.js +0 -76
- package/esm/components/form/Toggle.stories.js.map +0 -1
- package/esm/components/form/choice/Choice.stories.d.ts +0 -10
- package/esm/components/form/choice/Choice.stories.d.ts.map +0 -1
- package/esm/components/form/choice/Choice.stories.js +0 -80
- package/esm/components/form/choice/Choice.stories.js.map +0 -1
- package/esm/components/form/input/Input.stories.d.ts +0 -10
- package/esm/components/form/input/Input.stories.d.ts.map +0 -1
- package/esm/components/form/input/Input.stories.js +0 -54
- package/esm/components/form/input/Input.stories.js.map +0 -1
- package/esm/components/form/textarea/TextArea.stories.d.ts +0 -8
- package/esm/components/form/textarea/TextArea.stories.d.ts.map +0 -1
- package/esm/components/form/textarea/TextArea.stories.js +0 -19
- package/esm/components/form/textarea/TextArea.stories.js.map +0 -1
- package/esm/components/icons/Icon.stories.d.ts +0 -10
- package/esm/components/icons/Icon.stories.d.ts.map +0 -1
- package/esm/components/icons/Icon.stories.js +0 -49
- package/esm/components/icons/Icon.stories.js.map +0 -1
- package/esm/components/layout/card/Card.stories.d.ts +0 -11
- package/esm/components/layout/card/Card.stories.d.ts.map +0 -1
- package/esm/components/layout/card/Card.stories.js +0 -39
- package/esm/components/layout/card/Card.stories.js.map +0 -1
- package/esm/components/layout/header/Header.stories.d.ts +0 -11
- package/esm/components/layout/header/Header.stories.d.ts.map +0 -1
- package/esm/components/layout/header/Header.stories.js +0 -56
- package/esm/components/layout/header/Header.stories.js.map +0 -1
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts +0 -10
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +0 -1
- package/esm/components/layout/header/HeaderIconAction.stories.js +0 -43
- package/esm/components/layout/header/HeaderIconAction.stories.js.map +0 -1
- package/esm/components/layout/header/StickyHeader.stories.d.ts +0 -9
- package/esm/components/layout/header/StickyHeader.stories.d.ts.map +0 -1
- package/esm/components/layout/header/StickyHeader.stories.js +0 -60
- package/esm/components/layout/header/StickyHeader.stories.js.map +0 -1
- package/esm/components/layout/list/Header.stories.d.ts +0 -8
- package/esm/components/layout/list/Header.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Header.stories.js +0 -27
- package/esm/components/layout/list/Header.stories.js.map +0 -1
- package/esm/components/layout/list/Item.stories.d.ts +0 -11
- package/esm/components/layout/list/Item.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Item.stories.js +0 -98
- package/esm/components/layout/list/Item.stories.js.map +0 -1
- package/esm/components/layout/list/Label.stories.d.ts +0 -8
- package/esm/components/layout/list/Label.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Label.stories.js +0 -29
- package/esm/components/layout/list/Label.stories.js.map +0 -1
- package/esm/components/layout/list/List.stories.d.ts +0 -9
- package/esm/components/layout/list/List.stories.d.ts.map +0 -1
- package/esm/components/layout/list/List.stories.js +0 -46
- package/esm/components/layout/list/List.stories.js.map +0 -1
- package/esm/components/layout/list/Value.stories.d.ts +0 -8
- package/esm/components/layout/list/Value.stories.d.ts.map +0 -1
- package/esm/components/layout/list/Value.stories.js +0 -23
- package/esm/components/layout/list/Value.stories.js.map +0 -1
- package/esm/components/layout/section/Section.stories.d.ts +0 -8
- package/esm/components/layout/section/Section.stories.d.ts.map +0 -1
- package/esm/components/layout/section/Section.stories.js +0 -31
- package/esm/components/layout/section/Section.stories.js.map +0 -1
- package/esm/components/layout/table/Table.stories.d.ts +0 -8
- package/esm/components/layout/table/Table.stories.d.ts.map +0 -1
- package/esm/components/layout/table/Table.stories.js +0 -49
- package/esm/components/layout/table/Table.stories.js.map +0 -1
- package/esm/components/ui/action/Action.stories.d.ts +0 -11
- package/esm/components/ui/action/Action.stories.d.ts.map +0 -1
- package/esm/components/ui/action/Action.stories.js +0 -58
- package/esm/components/ui/action/Action.stories.js.map +0 -1
- package/esm/components/ui/action/EqualActions.stories.d.ts +0 -10
- package/esm/components/ui/action/EqualActions.stories.d.ts.map +0 -1
- package/esm/components/ui/action/EqualActions.stories.js +0 -38
- package/esm/components/ui/action/EqualActions.stories.js.map +0 -1
- package/esm/components/ui/button/Button.stories.d.ts +0 -9
- package/esm/components/ui/button/Button.stories.d.ts.map +0 -1
- package/esm/components/ui/button/Button.stories.js +0 -35
- package/esm/components/ui/button/Button.stories.js.map +0 -1
- package/esm/components/ui/directionPad/Pad.stories.d.ts +0 -10
- package/esm/components/ui/directionPad/Pad.stories.d.ts.map +0 -1
- package/esm/components/ui/directionPad/Pad.stories.js +0 -79
- package/esm/components/ui/directionPad/Pad.stories.js.map +0 -1
- package/esm/components/ui/drawer/Drawer.stories.d.ts +0 -11
- package/esm/components/ui/drawer/Drawer.stories.d.ts.map +0 -1
- package/esm/components/ui/drawer/Drawer.stories.js +0 -102
- package/esm/components/ui/drawer/Drawer.stories.js.map +0 -1
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts +0 -11
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts.map +0 -1
- package/esm/components/ui/keyValue/KeyValue.stories.js +0 -98
- package/esm/components/ui/keyValue/KeyValue.stories.js.map +0 -1
- package/esm/components/ui/line/Line.stories.d.ts +0 -8
- package/esm/components/ui/line/Line.stories.d.ts.map +0 -1
- package/esm/components/ui/line/Line.stories.js +0 -27
- package/esm/components/ui/line/Line.stories.js.map +0 -1
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/CoveringLoader.stories.js +0 -50
- package/esm/components/ui/loader/CoveringLoader.stories.js.map +0 -1
- package/esm/components/ui/loader/FullLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/FullLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/FullLoader.stories.js +0 -19
- package/esm/components/ui/loader/FullLoader.stories.js.map +0 -1
- package/esm/components/ui/loader/Loader.stories.d.ts +0 -8
- package/esm/components/ui/loader/Loader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/Loader.stories.js +0 -23
- package/esm/components/ui/loader/Loader.stories.js.map +0 -1
- package/esm/components/ui/loader/Loading.stories.d.ts +0 -8
- package/esm/components/ui/loader/Loading.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/Loading.stories.js +0 -32
- package/esm/components/ui/loader/Loading.stories.js.map +0 -1
- package/esm/components/ui/loader/PopLoader.stories.d.ts +0 -8
- package/esm/components/ui/loader/PopLoader.stories.d.ts.map +0 -1
- package/esm/components/ui/loader/PopLoader.stories.js +0 -24
- package/esm/components/ui/loader/PopLoader.stories.js.map +0 -1
- package/esm/components/ui/message/Message.stories.d.ts +0 -9
- package/esm/components/ui/message/Message.stories.d.ts.map +0 -1
- package/esm/components/ui/message/Message.stories.js +0 -43
- package/esm/components/ui/message/Message.stories.js.map +0 -1
- package/esm/components/ui/modal/Modal.stories.d.ts +0 -10
- package/esm/components/ui/modal/Modal.stories.d.ts.map +0 -1
- package/esm/components/ui/modal/Modal.stories.js +0 -84
- package/esm/components/ui/modal/Modal.stories.js.map +0 -1
- package/esm/components/ui/modal/ModalButtons.stories.d.ts +0 -8
- package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +0 -1
- package/esm/components/ui/modal/ModalButtons.stories.js +0 -19
- package/esm/components/ui/modal/ModalButtons.stories.js.map +0 -1
- package/esm/components/ui/pop/Pop.stories.d.ts +0 -8
- package/esm/components/ui/pop/Pop.stories.d.ts.map +0 -1
- package/esm/components/ui/pop/Pop.stories.js +0 -65
- package/esm/components/ui/pop/Pop.stories.js.map +0 -1
- package/esm/components/ui/progress/Progress.stories.d.ts +0 -9
- package/esm/components/ui/progress/Progress.stories.d.ts.map +0 -1
- package/esm/components/ui/progress/Progress.stories.js +0 -29
- package/esm/components/ui/progress/Progress.stories.js.map +0 -1
- package/esm/components/ui/stats/Stats.stories.d.ts +0 -11
- package/esm/components/ui/stats/Stats.stories.d.ts.map +0 -1
- package/esm/components/ui/stats/Stats.stories.js +0 -104
- package/esm/components/ui/stats/Stats.stories.js.map +0 -1
- package/esm/components/ui/tabs/Selector.stories.d.ts +0 -12
- package/esm/components/ui/tabs/Selector.stories.d.ts.map +0 -1
- package/esm/components/ui/tabs/Selector.stories.js +0 -110
- package/esm/components/ui/tabs/Selector.stories.js.map +0 -1
- package/esm/components/ui/toaster/Notification.d.ts +0 -9
- package/esm/components/ui/toaster/Notification.d.ts.map +0 -1
- package/esm/components/ui/toaster/Notification.js +0 -17
- package/esm/components/ui/toaster/Notification.js.map +0 -1
- package/esm/components/ui/toaster/Toaster.stories.d.ts +0 -7
- package/esm/components/ui/toaster/Toaster.stories.d.ts.map +0 -1
- package/esm/components/ui/toaster/Toaster.stories.js +0 -39
- package/esm/components/ui/toaster/Toaster.stories.js.map +0 -1
- package/esm/components/ui/toaster/Toaster.styled.d.ts +0 -89
- package/esm/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
- package/esm/components/ui/toaster/Toaster.styled.js +0 -36
- package/esm/components/ui/toaster/Toaster.styled.js.map +0 -1
- package/esm/components/ui/toaster/types.d.ts +0 -7
- package/esm/components/ui/toaster/types.d.ts.map +0 -1
- package/esm/components/ui/toaster/types.js +0 -2
- package/esm/components/ui/toaster/types.js.map +0 -1
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts +0 -8
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +0 -1
- package/esm/components/ui/toolButton/ToolButton.stories.js +0 -29
- package/esm/components/ui/toolButton/ToolButton.stories.js.map +0 -1
- package/src/components/ui/toaster/Notification.tsx +0 -39
- package/src/components/ui/toaster/Toaster.styled.ts +0 -42
- package/src/components/ui/toaster/types.ts +0 -9
|
@@ -0,0 +1,1244 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Checkbox.stories-C58YeH4u.js","./preload-helper-PPVm8Dsz.js","./ColorPicker.stories-Dc7-AuPQ.js","./Label.stories-B6pCT45X.js","./Select.stories-BJjJqLTa.js","./Toggle.stories-tBlD8SJi.js","./Choice.stories-Cf7UbPxn.js","./Input.stories-Cbj2X3kT.js","./TextArea.stories-DqzHYgIv.js","./Icon.stories-D1YeVBlB.js","./Card.stories-BoCt66U4.js","./Header.stories-CzPBNEkp.js","./HeaderIconAction.stories-Dm3Q-BVW.js","./StickyHeader.stories-BnxgnjJW.js","./Header.stories-BN7BuQx2.js","./Item.stories-CmjyxdgQ.js","./Label.stories-BR3gNHqM.js","./List.stories-MSQY1Rdo.js","./Value.stories-CFT20m8r.js","./Section.stories-M-QRH2_i.js","./Table.stories-6F-WrDBs.js","./Action.stories-DBtNlWQo.js","./EqualActions.stories-CwjZlkUA.js","./Button.stories-DFO8nsTN.js","./Pad.stories-hrKerezi.js","./Drawer.stories-D3_-TuT0.js","./KeyValue.stories-CogaZP09.js","./Line.stories-BJLer7gg.js","./CoveringLoader.stories-DrUQAhI6.js","./FullLoader.stories-DFAaVMfI.js","./Loader.stories-CbN84qNp.js","./Loading.stories-BOANGXsc.js","./PopLoader.stories-CyskY4fX.js","./Message.stories-_51K9ZDn.js","./Modal.stories-CixfvMuM.js","./ModalButtons.stories-DHHsnoGB.js","./Pop.stories-BTlQGve1.js","./Progress.stories-BLMPF6Ju.js","./Stats.stories-VB0pi5k5.js","./Selector.stories-BxHyFnYo.js","./Toaster.stories-C0ktk0DW.js","./ToolButton.stories-0rGBGqAt.js","./react-18-oqx706Mo.js","./DocsRenderer-LL677BLK-BOcEjZ28.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as vt}from"./preload-helper-PPVm8Dsz.js";function Uk(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var hm={},Jk=Object.create,qy=Object.defineProperty,zk=Object.getOwnPropertyDescriptor,f_=Object.getOwnPropertyNames,Hk=Object.getPrototypeOf,Wk=Object.prototype.hasOwnProperty,Vc=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),de=(e,t)=>function(){return t||(0,e[f_(e)[0]])((t={exports:{}}).exports,t),t.exports},vn=(e,t)=>{for(var r in t)qy(e,r,{get:t[r],enumerable:!0})},Gk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of f_(t))!Wk.call(e,i)&&i!==r&&qy(e,i,{get:()=>t[i],enumerable:!(n=zk(t,i))||n.enumerable});return e},Cr=(e,t,r)=>(r=e!=null?Jk(Hk(e)):{},Gk(t||!e||!e.__esModule?qy(r,"default",{value:e,enumerable:!0}):r,e)),jy=de({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),Kk=de({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,a){return(function l(u,p,c){var m,y,g,b=t.call(u),w=t.call(p);if(u===p)return!0;if(u==null||p==null)return!1;if(c.indexOf(u)>-1&&c.indexOf(p)>-1)return!0;if(c.push(u,p),b!=w||(m=n(u),y=n(p),m.length!=y.length||m.some(function(A){return!l(u[A],p[A],c)})))return!1;switch(b.slice(8,-1)){case"Symbol":return u.valueOf()==p.valueOf();case"Date":case"Number":return+u==+p||+u!=+u&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+u==""+p;case"Set":case"Map":m=u.entries(),y=p.entries();do if(!l((g=m.next()).value,y.next().value,c))return!1;while(!g.done);return!0;case"ArrayBuffer":u=new Uint8Array(u),p=new Uint8Array(p);case"DataView":u=new Uint8Array(u.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(u.length!=p.length)return!1;for(g=0;g<u.length;g++)if((g in u||g in p)&&(g in u!=g in p||!l(u[g],p[g],c)))return!1;return!0;case"Object":return l(r(u),r(p),c);default:return!1}})(i,a,[])}})()}}),Yk=de({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((i,a)=>Math.min(i,a.length),1/0):0}}}),Xk=de({"../../node_modules/strip-indent/index.js"(e,t){var r=Yk();t.exports=n=>{let i=r(n);if(i===0)return n;let a=new RegExp(`^[ \\t]{${i}}`,"gm");return n.replace(a,"")}}}),Qk=de({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof i.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(n===0)return r;let a=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(a,i.indent.repeat(n))}}}),h_=de({"../../node_modules/redent/index.js"(e,t){var r=Xk(),n=Qk();t.exports=(i,a=0,l)=>n(r(i),a,l)}}),Zk=de({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,i={"@@iterator":function(){return i},next:function(){if(n<r.length){var a=r[n];return n=n+1,{done:!1,value:a}}else return{done:!0}}};return i}e.default=t}}),vu=de({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(Zk());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},n(a)}function i(a,l){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(a,Symbol.iterator,{value:t.default.bind(l)}),a}}}),eB=de({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(vu());function r(y){return y&&y.__esModule?y:{default:y}}function n(y,g){return p(y)||u(y,g)||a(y,g)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(y,g){if(y){if(typeof y=="string")return l(y,g);var b={}.toString.call(y).slice(8,-1);return b==="Object"&&y.constructor&&(b=y.constructor.name),b==="Map"||b==="Set"?Array.from(y):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?l(y,g):void 0}}function l(y,g){(g==null||g>y.length)&&(g=y.length);for(var b=0,w=Array(g);b<g;b++)w[b]=y[b];return w}function u(y,g){var b=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(b!=null){var w,A,x,_,R=[],j=!0,B=!1;try{if(x=(b=b.call(y)).next,g===0){if(Object(b)!==b)return;j=!1}else for(;!(j=(w=x.call(b)).done)&&(R.push(w.value),R.length!==g);j=!0);}catch(F){B=!0,A=F}finally{try{if(!j&&b.return!=null&&(_=b.return(),Object(_)!==_))return}finally{if(B)throw A}}return R}}function p(y){if(Array.isArray(y))return y}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"}]],m={entries:function(){return c},forEach:function(y){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=0,w=c;b<w.length;b++){var A=n(w[b],2),x=A[0],_=A[1];y.call(g,_,x,c)}},get:function(y){var g=c.filter(function(b){return b[0]===y})[0];return g&&g[1]},has:function(y){return!!m.get(y)},keys:function(){return c.map(function(y){var g=n(y,1),b=g[0];return b})},values:function(){return c.map(function(y){var g=n(y,2),b=g[1];return b})}};e.default=(0,t.default)(m,m.entries())}}),tB=de({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(vu());function r(y){return y&&y.__esModule?y:{default:y}}function n(y,g){return p(y)||u(y,g)||a(y,g)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(y,g){if(y){if(typeof y=="string")return l(y,g);var b={}.toString.call(y).slice(8,-1);return b==="Object"&&y.constructor&&(b=y.constructor.name),b==="Map"||b==="Set"?Array.from(y):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?l(y,g):void 0}}function l(y,g){(g==null||g>y.length)&&(g=y.length);for(var b=0,w=Array(g);b<g;b++)w[b]=y[b];return w}function u(y,g){var b=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(b!=null){var w,A,x,_,R=[],j=!0,B=!1;try{if(x=(b=b.call(y)).next,g===0){if(Object(b)!==b)return;j=!1}else for(;!(j=(w=x.call(b)).done)&&(R.push(w.value),R.length!==g);j=!0);}catch(F){B=!0,A=F}finally{try{if(!j&&b.return!=null&&(_=b.return(),Object(_)!==_))return}finally{if(B)throw A}}return R}}function p(y){if(Array.isArray(y))return y}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}]],m={entries:function(){return c},forEach:function(y){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=0,w=c;b<w.length;b++){var A=n(w[b],2),x=A[0],_=A[1];y.call(g,_,x,c)}},get:function(y){var g=c.filter(function(b){return b[0]===y})[0];return g&&g[1]},has:function(y){return!!m.get(y)},keys:function(){return c.map(function(y){var g=n(y,1),b=g[0];return b})},values:function(){return c.map(function(y){var g=n(y,2),b=g[1];return b})}};e.default=(0,t.default)(m,m.entries())}}),rB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),nB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),iB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),aB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),sB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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:[]};e.default=t}}),lB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),uB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),cB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),dB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),pB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),fB=de({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),hB=de({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=b(rB()),r=b(nB()),n=b(iB()),i=b(oB()),a=b(aB()),l=b(sB()),u=b(lB()),p=b(uB()),c=b(cB()),m=b(dB()),y=b(pB()),g=b(fB());function b(A){return A&&A.__esModule?A:{default:A}}var w=[["command",t.default],["composite",r.default],["input",n.default],["landmark",i.default],["range",a.default],["roletype",l.default],["section",u.default],["sectionhead",p.default],["select",c.default],["structure",m.default],["widget",y.default],["window",g.default]];e.default=w}}),mB=de({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yB=de({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gB=de({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bB=de({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),vB=de({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),EB=de({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),wB=de({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),SB=de({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),AB=de({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_B=de({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),CB=de({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),TB=de({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),xB=de({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),RB=de({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],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"]]};e.default=t}}),DB=de({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),PB=de({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),OB=de({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),NB=de({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),IB=de({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),FB=de({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),kB=de({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),BB=de({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),LB=de({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),MB=de({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),qB=de({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),jB=de({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),$B=de({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),VB=de({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),UB=de({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),JB=de({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),zB=de({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),HB=de({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),WB=de({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),GB=de({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),KB=de({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),YB=de({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),XB=de({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),QB=de({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ZB=de({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),e2=de({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),t2=de({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),r2=de({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),n2=de({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),i2=de({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),o2=de({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),a2=de({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),s2=de({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),l2=de({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),u2=de({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),c2=de({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),d2=de({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),p2=de({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),f2=de({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),h2=de({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),m2=de({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),y2=de({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),g2=de({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),b2=de({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),v2=de({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),E2=de({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),w2=de({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),S2=de({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),A2=de({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_2=de({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),C2=de({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),T2=de({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),x2=de({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),R2=de({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),D2=de({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),P2=de({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),O2=de({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),N2=de({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),I2=de({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),F2=de({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),k2=de({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),B2=de({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),L2=de({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),M2=de({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),q2=de({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),j2=de({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),$2=de({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),V2=de({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),U2=de({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),J2=de({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=k(mB()),r=k(yB()),n=k(gB()),i=k(bB()),a=k(vB()),l=k(EB()),u=k(wB()),p=k(SB()),c=k(AB()),m=k(_B()),y=k(CB()),g=k(TB()),b=k(xB()),w=k(RB()),A=k(DB()),x=k(PB()),_=k(OB()),R=k(NB()),j=k(IB()),B=k(FB()),F=k(kB()),E=k(BB()),P=k(LB()),N=k(MB()),L=k(qB()),Z=k(jB()),H=k($B()),te=k(VB()),W=k(UB()),$=k(JB()),K=k(zB()),ne=k(HB()),ae=k(WB()),oe=k(GB()),Ae=k(KB()),Ce=k(YB()),re=k(XB()),G=k(QB()),he=k(ZB()),De=k(e2()),_e=k(t2()),ge=k(r2()),Ve=k(n2()),$e=k(i2()),lt=k(o2()),le=k(a2()),ke=k(s2()),Ue=k(l2()),Ge=k(u2()),We=k(c2()),nt=k(d2()),it=k(p2()),pt=k(f2()),Bt=k(h2()),ur=k(m2()),mt=k(y2()),Lt=k(g2()),At=k(b2()),Vr=k(v2()),fr=k(E2()),je=k(w2()),Jt=k(S2()),at=k(A2()),Ht=k(_2()),Dt=k(C2()),Ur=k(T2()),Gr=k(x2()),Zt=k(R2()),dt=k(D2()),Jr=k(P2()),Mt=k(O2()),Ar=k(N2()),En=k(I2()),Pt=k(F2()),Gt=k(k2()),Br=k(B2()),qt=k(L2()),Ct=k(M2()),hr=k(q2()),st=k(j2()),D=k($2()),V=k(V2()),M=k(U2());function k(ve){return ve&&ve.__esModule?ve:{default:ve}}var Y=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",i.default],["banner",a.default],["blockquote",l.default],["button",u.default],["caption",p.default],["cell",c.default],["checkbox",m.default],["code",y.default],["columnheader",g.default],["combobox",b.default],["complementary",w.default],["contentinfo",A.default],["definition",x.default],["deletion",_.default],["dialog",R.default],["directory",j.default],["document",B.default],["emphasis",F.default],["feed",E.default],["figure",P.default],["form",N.default],["generic",L.default],["grid",Z.default],["gridcell",H.default],["group",te.default],["heading",W.default],["img",$.default],["insertion",K.default],["link",ne.default],["list",ae.default],["listbox",oe.default],["listitem",Ae.default],["log",Ce.default],["main",re.default],["mark",G.default],["marquee",he.default],["math",De.default],["menu",_e.default],["menubar",ge.default],["menuitem",Ve.default],["menuitemcheckbox",$e.default],["menuitemradio",lt.default],["meter",le.default],["navigation",ke.default],["none",Ue.default],["note",Ge.default],["option",We.default],["paragraph",nt.default],["presentation",it.default],["progressbar",pt.default],["radio",Bt.default],["radiogroup",ur.default],["region",mt.default],["row",Lt.default],["rowgroup",At.default],["rowheader",Vr.default],["scrollbar",fr.default],["search",je.default],["searchbox",Jt.default],["separator",at.default],["slider",Ht.default],["spinbutton",Dt.default],["status",Ur.default],["strong",Gr.default],["subscript",Zt.default],["superscript",dt.default],["switch",Jr.default],["tab",Mt.default],["table",Ar.default],["tablist",En.default],["tabpanel",Pt.default],["term",Gt.default],["textbox",Br.default],["time",qt.default],["timer",Ct.default],["toolbar",hr.default],["tooltip",st.default],["tree",D.default],["treegrid",V.default],["treeitem",M.default]];e.default=Y}}),z2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),H2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),W2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),G2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),K2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Y2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),X2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Q2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Z2=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),e3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),t3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),r3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),n3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),i3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),o3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),a3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),s3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),l3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),u3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),c3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),d3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),p3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),f3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),h3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),m3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),y3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),g3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),b3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),v3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),E3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),w3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),S3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),A3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),C3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),T3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),x3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),R3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),D3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),P3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),O3=de({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),N3=de({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ge(z2()),r=ge(H2()),n=ge(W2()),i=ge(G2()),a=ge(K2()),l=ge(Y2()),u=ge(X2()),p=ge(Q2()),c=ge(Z2()),m=ge(e3()),y=ge(t3()),g=ge(r3()),b=ge(n3()),w=ge(i3()),A=ge(o3()),x=ge(a3()),_=ge(s3()),R=ge(l3()),j=ge(u3()),B=ge(c3()),F=ge(d3()),E=ge(p3()),P=ge(f3()),N=ge(h3()),L=ge(m3()),Z=ge(y3()),H=ge(g3()),te=ge(b3()),W=ge(v3()),$=ge(E3()),K=ge(w3()),ne=ge(S3()),ae=ge(A3()),oe=ge(_3()),Ae=ge(C3()),Ce=ge(T3()),re=ge(x3()),G=ge(R3()),he=ge(D3()),De=ge(P3()),_e=ge(O3());function ge($e){return $e&&$e.__esModule?$e:{default:$e}}var Ve=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",i.default],["doc-backlink",a.default],["doc-biblioentry",l.default],["doc-bibliography",u.default],["doc-biblioref",p.default],["doc-chapter",c.default],["doc-colophon",m.default],["doc-conclusion",y.default],["doc-cover",g.default],["doc-credit",b.default],["doc-credits",w.default],["doc-dedication",A.default],["doc-endnote",x.default],["doc-endnotes",_.default],["doc-epigraph",R.default],["doc-epilogue",j.default],["doc-errata",B.default],["doc-example",F.default],["doc-footnote",E.default],["doc-foreword",P.default],["doc-glossary",N.default],["doc-glossref",L.default],["doc-index",Z.default],["doc-introduction",H.default],["doc-noteref",te.default],["doc-notice",W.default],["doc-pagebreak",$.default],["doc-pagefooter",K.default],["doc-pageheader",ne.default],["doc-pagelist",ae.default],["doc-part",oe.default],["doc-preface",Ae.default],["doc-prologue",Ce.default],["doc-pullquote",re.default],["doc-qna",G.default],["doc-subtitle",he.default],["doc-tip",De.default],["doc-toc",_e.default]];e.default=Ve}}),I3=de({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),F3=de({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),k3=de({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),B3=de({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(I3()),r=i(F3()),n=i(k3());function i(l){return l&&l.__esModule?l:{default:l}}var a=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=a}}),$y=de({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(hB()),r=l(J2()),n=l(N3()),i=l(B3()),a=l(vu());function l(x){return x&&x.__esModule?x:{default:x}}function u(x,_){var R=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!R){if(Array.isArray(x)||(R=m(x))||_){R&&(x=R);var j=0,B=function(){};return{s:B,n:function(){return j>=x.length?{done:!0}:{done:!1,value:x[j++]}},e:function(N){throw N},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var F,E=!0,P=!1;return{s:function(){R=R.call(x)},n:function(){var N=R.next();return E=N.done,N},e:function(N){P=!0,F=N},f:function(){try{E||R.return==null||R.return()}finally{if(P)throw F}}}}function p(x,_){return b(x)||g(x,_)||m(x,_)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(x,_){if(x){if(typeof x=="string")return y(x,_);var R={}.toString.call(x).slice(8,-1);return R==="Object"&&x.constructor&&(R=x.constructor.name),R==="Map"||R==="Set"?Array.from(x):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?y(x,_):void 0}}function y(x,_){(_==null||_>x.length)&&(_=x.length);for(var R=0,j=Array(_);R<_;R++)j[R]=x[R];return j}function g(x,_){var R=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(R!=null){var j,B,F,E,P=[],N=!0,L=!1;try{if(F=(R=R.call(x)).next,_===0){if(Object(R)!==R)return;N=!1}else for(;!(N=(j=F.call(R)).done)&&(P.push(j.value),P.length!==_);N=!0);}catch(Z){L=!0,B=Z}finally{try{if(!N&&R.return!=null&&(E=R.return(),Object(E)!==E))return}finally{if(L)throw B}}return P}}function b(x){if(Array.isArray(x))return x}var w=[].concat(t.default,r.default,n.default,i.default);w.forEach(function(x){var _=p(x,2),R=_[1],j=u(R.superClass),B;try{for(j.s();!(B=j.n()).done;){var F=B.value,E=u(F),P;try{var N=function(){var L=P.value,Z=w.filter(function(K){var ne=p(K,1),ae=ne[0];return ae===L})[0];if(Z)for(var H=Z[1],te=0,W=Object.keys(H.props);te<W.length;te++){var $=W[te];Object.prototype.hasOwnProperty.call(R.props,$)||(R.props[$]=H.props[$])}};for(E.s();!(P=E.n()).done;)N()}catch(L){E.e(L)}finally{E.f()}}}catch(L){j.e(L)}finally{j.f()}});var A={entries:function(){return w},forEach:function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=u(w),j;try{for(R.s();!(j=R.n()).done;){var B=p(j.value,2),F=B[0],E=B[1];x.call(_,E,F,w)}}catch(P){R.e(P)}finally{R.f()}},get:function(x){var _=w.filter(function(R){return R[0]===x})[0];return _&&_[1]},has:function(x){return!!A.get(x)},keys:function(){return w.map(function(x){var _=p(x,1),R=_[0];return R})},values:function(){return w.map(function(x){var _=p(x,2),R=_[1];return R})}};e.default=(0,a.default)(A,A.entries())}}),L3=de({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(vu()),r=n($y());function n(E){return E&&E.__esModule?E:{default:E}}function i(E,P){return c(E)||p(E,P)||l(E,P)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(E,P){if(E){if(typeof E=="string")return u(E,P);var N={}.toString.call(E).slice(8,-1);return N==="Object"&&E.constructor&&(N=E.constructor.name),N==="Map"||N==="Set"?Array.from(E):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?u(E,P):void 0}}function u(E,P){(P==null||P>E.length)&&(P=E.length);for(var N=0,L=Array(P);N<P;N++)L[N]=E[N];return L}function p(E,P){var N=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(N!=null){var L,Z,H,te,W=[],$=!0,K=!1;try{if(H=(N=N.call(E)).next,P===0){if(Object(N)!==N)return;$=!1}else for(;!($=(L=H.call(N)).done)&&(W.push(L.value),W.length!==P);$=!0);}catch(ne){K=!0,Z=ne}finally{try{if(!$&&N.return!=null&&(te=N.return(),Object(te)!==te))return}finally{if(K)throw Z}}return W}}function c(E){if(Array.isArray(E))return E}var m=[],y=r.default.keys();for(_=0;_<y.length;_++)if(g=y[_],b=r.default.get(g),b)for(w=[].concat(b.baseConcepts,b.relatedConcepts),A=function(){var E=w[x];if(E.module==="HTML"){var P=E.concept;if(P){var N=m.filter(function(te){return j(te[0],P)})[0],L;N?L=N[1]:L=[];for(var Z=!0,H=0;H<L.length;H++)if(L[H]===g){Z=!1;break}Z&&L.push(g),N||m.push([P,L])}}},x=0;x<w.length;x++)A();var g,b,w,A,x,_,R={entries:function(){return m},forEach:function(E){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,N=0,L=m;N<L.length;N++){var Z=i(L[N],2),H=Z[0],te=Z[1];E.call(P,te,H,m)}},get:function(E){var P=m.filter(function(N){return E.name===N[0].name&&F(E.attributes,N[0].attributes)})[0];return P&&P[1]},has:function(E){return!!R.get(E)},keys:function(){return m.map(function(E){var P=i(E,1),N=P[0];return N})},values:function(){return m.map(function(E){var P=i(E,2),N=P[1];return N})}};function j(E,P){return E.name===P.name&&B(E.constraints,P.constraints)&&F(E.attributes,P.attributes)}function B(E,P){if(E===void 0&&P!==void 0||E!==void 0&&P===void 0)return!1;if(E!==void 0&&P!==void 0){if(E.length!==P.length)return!1;for(var N=0;N<E.length;N++)if(E[N]!==P[N])return!1}return!0}function F(E,P){if(E===void 0&&P!==void 0||E!==void 0&&P===void 0)return!1;if(E!==void 0&&P!==void 0){if(E.length!==P.length)return!1;for(var N=0;N<E.length;N++){if(E[N].name!==P[N].name||E[N].value!==P[N].value||E[N].constraints===void 0&&P[N].constraints!==void 0||E[N].constraints!==void 0&&P[N].constraints===void 0)return!1;if(E[N].constraints!==void 0&&P[N].constraints!==void 0){if(E[N].constraints.length!==P[N].constraints.length)return!1;for(var L=0;L<E[N].constraints.length;L++)if(E[N].constraints[L]!==P[N].constraints[L])return!1}}}return!0}e.default=(0,t.default)(R,R.entries())}}),M3=de({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(vu()),r=n($y());function n(F){return F&&F.__esModule?F:{default:F}}function i(F,E){return c(F)||p(F,E)||l(F,E)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(F,E){if(F){if(typeof F=="string")return u(F,E);var P={}.toString.call(F).slice(8,-1);return P==="Object"&&F.constructor&&(P=F.constructor.name),P==="Map"||P==="Set"?Array.from(F):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?u(F,E):void 0}}function u(F,E){(E==null||E>F.length)&&(E=F.length);for(var P=0,N=Array(E);P<E;P++)N[P]=F[P];return N}function p(F,E){var P=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(P!=null){var N,L,Z,H,te=[],W=!0,$=!1;try{if(Z=(P=P.call(F)).next,E===0){if(Object(P)!==P)return;W=!1}else for(;!(W=(N=Z.call(P)).done)&&(te.push(N.value),te.length!==E);W=!0);}catch(K){$=!0,L=K}finally{try{if(!W&&P.return!=null&&(H=P.return(),Object(H)!==H))return}finally{if($)throw L}}return te}}function c(F){if(Array.isArray(F))return F}var m=[],y=r.default.keys();for(j=0;j<y.length;j++)if(g=y[j],b=r.default.get(g),w=[],b){for(A=[].concat(b.baseConcepts,b.relatedConcepts),R=0;R<A.length;R++)x=A[R],x.module==="HTML"&&(_=x.concept,_!=null&&w.push(_));w.length>0&&m.push([g,w])}var g,b,w,A,x,_,R,j,B={entries:function(){return m},forEach:function(F){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=0,N=m;P<N.length;P++){var L=i(N[P],2),Z=L[0],H=L[1];F.call(E,H,Z,m)}},get:function(F){var E=m.filter(function(P){return P[0]===F})[0];return E&&E[1]},has:function(F){return!!B.get(F)},keys:function(){return m.map(function(F){var E=i(F,1),P=E[0];return P})},values:function(){return m.map(function(F){var E=i(F,2),P=E[1];return P})}};e.default=(0,t.default)(B,B.entries())}}),Vy=de({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=l(eB()),r=l(tB()),n=l($y()),i=l(L3()),a=l(M3());function l(u){return u&&u.__esModule?u:{default:u}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=i.default,e.roleElements=a.default}}),m_=de({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var a=String(i),l=a.length,u=-1,p,c="",m=a.charCodeAt(0);++u<l;){if(p=a.charCodeAt(u),p==0){c+="�";continue}if(p>=1&&p<=31||p==127||u==0&&p>=48&&p<=57||u==1&&p>=48&&p<=57&&m==45){c+="\\"+p.toString(16)+" ";continue}if(u==0&&l==1&&p==45){c+="\\"+a.charAt(u);continue}if(p>=128||p==45||p==95||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122){c+=a.charAt(u);continue}c+="\\"+a.charAt(u)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),y_=de({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(a=0)=>l=>`\x1B[${38+a};5;${l}m`,n=(a=0)=>(l,u,p)=>`\x1B[${38+a};2;${l};${u};${p}m`;function i(){let a=new Map,l={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]}};l.color.gray=l.color.blackBright,l.bgColor.bgGray=l.bgColor.bgBlackBright,l.color.grey=l.color.blackBright,l.bgColor.bgGrey=l.bgColor.bgBlackBright;for(let[u,p]of Object.entries(l)){for(let[c,m]of Object.entries(p))l[c]={open:`\x1B[${m[0]}m`,close:`\x1B[${m[1]}m`},p[c]=l[c],a.set(m[0],m[1]);Object.defineProperty(l,u,{value:p,enumerable:!1})}return Object.defineProperty(l,"codes",{value:a,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi256=r(),l.color.ansi16m=n(),l.bgColor.ansi256=r(10),l.bgColor.ansi16m=n(10),Object.defineProperties(l,{rgbToAnsi256:{value:(u,p,c)=>u===p&&p===c?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(p/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:u=>{let p=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!p)return[0,0,0];let{colorString:c}=p.groups;c.length===3&&(c=c.split("").map(y=>y+y).join(""));let m=Number.parseInt(c,16);return[m>>16&255,m>>8&255,m&255]},enumerable:!1},hexToAnsi256:{value:u=>l.rgbToAnsi256(...l.hexToRgb(u)),enumerable:!1}}),l}Object.defineProperty(t,"exports",{enumerable:!0,get:i})}}),Kd=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=i,e.printObjectProperties=a;var t=(l,u)=>{let p=Object.keys(l).sort(u);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(l).forEach(c=>{Object.getOwnPropertyDescriptor(l,c).enumerable&&p.push(c)}),p};function r(l,u,p,c,m,y,g=": "){let b="",w=l.next();if(!w.done){b+=u.spacingOuter;let A=p+u.indent;for(;!w.done;){let x=y(w.value[0],u,A,c,m),_=y(w.value[1],u,A,c,m);b+=A+x+g+_,w=l.next(),w.done?u.min||(b+=","):b+=","+u.spacingInner}b+=u.spacingOuter+p}return b}function n(l,u,p,c,m,y){let g="",b=l.next();if(!b.done){g+=u.spacingOuter;let w=p+u.indent;for(;!b.done;)g+=w+y(b.value,u,w,c,m),b=l.next(),b.done?u.min||(g+=","):g+=","+u.spacingInner;g+=u.spacingOuter+p}return g}function i(l,u,p,c,m,y){let g="";if(l.length){g+=u.spacingOuter;let b=p+u.indent;for(let w=0;w<l.length;w++)g+=b,w in l&&(g+=y(l[w],u,b,c,m)),w<l.length-1?g+=","+u.spacingInner:u.min||(g+=",");g+=u.spacingOuter+p}return g}function a(l,u,p,c,m,y){let g="",b=t(l,u.compareKeys);if(b.length){g+=u.spacingOuter;let w=p+u.indent;for(let A=0;A<b.length;A++){let x=b[A],_=y(x,u,w,c,m),R=y(l[x],u,w,c,m);g+=w+_+": "+R,A<b.length-1?g+=","+u.spacingInner:u.min||(g+=",")}g+=u.spacingOuter+p}return g}}}),q3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Kd(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,i=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,a=" ",l=(m,y,g,b,w,A)=>{let x=m.toString();return x==="ArrayContaining"||x==="ArrayNotContaining"?++b>y.maxDepth?"["+x+"]":x+a+"["+(0,t.printListItems)(m.sample,y,g,b,w,A)+"]":x==="ObjectContaining"||x==="ObjectNotContaining"?++b>y.maxDepth?"["+x+"]":x+a+"{"+(0,t.printObjectProperties)(m.sample,y,g,b,w,A)+"}":x==="StringMatching"||x==="StringNotMatching"||x==="StringContaining"||x==="StringNotContaining"?x+a+A(m.sample,y,g,b,w):m.toAsymmetricMatcher()};e.serialize=l;var u=m=>m&&m.$$typeof===i;e.test=u;var p={serialize:l,test:u},c=p;e.default=c}}),j3=de({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\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(n,r?void 0:"g")}}}),$3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(j3()),r=n(y_());function n(c){return c&&c.__esModule?c:{default:c}}var i=c=>c.replace((0,t.default)(),m=>{switch(m){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),a=c=>typeof c=="string"&&!!c.match((0,t.default)());e.test=a;var l=(c,m,y,g,b,w)=>w(i(c),m,y,g,b);e.serialize=l;var u={serialize:l,test:a},p=u;e.default=p}}),V3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Kd(),r=" ",n=["DOMStringMap","NamedNodeMap"],i=/^(HTML\w*Collection|NodeList)$/,a=y=>n.indexOf(y)!==-1||i.test(y),l=y=>y&&y.constructor&&!!y.constructor.name&&a(y.constructor.name);e.test=l;var u=y=>y.constructor.name==="NamedNodeMap",p=(y,g,b,w,A,x)=>{let _=y.constructor.name;return++w>g.maxDepth?"["+_+"]":(g.min?"":_+r)+(n.indexOf(_)!==-1?"{"+(0,t.printObjectProperties)(u(y)?Array.from(y).reduce((R,j)=>(R[j.name]=j.value,R),{}):{...y},g,b,w,A,x)+"}":"["+(0,t.printListItems)(Array.from(y),g,b,w,A,x)+"]")};e.serialize=p;var c={serialize:p,test:l},m=c;e.default=m}}),U3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),Uy=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(U3());function r(c){return c&&c.__esModule?c:{default:c}}var n=(c,m,y,g,b,w,A)=>{let x=g+y.indent,_=y.colors;return c.map(R=>{let j=m[R],B=A(j,y,x,b,w);return typeof j!="string"&&(B.indexOf(`
|
|
9
|
+
`)!==-1&&(B=y.spacingOuter+x+B+y.spacingOuter+g),B="{"+B+"}"),y.spacingInner+g+_.prop.open+R+_.prop.close+"="+_.value.open+B+_.value.close}).join("")};e.printProps=n;var i=(c,m,y,g,b,w)=>c.map(A=>m.spacingOuter+y+(typeof A=="string"?a(A,m):w(A,m,y,g,b))).join("");e.printChildren=i;var a=(c,m)=>{let y=m.colors.content;return y.open+(0,t.default)(c)+y.close};e.printText=a;var l=(c,m)=>{let y=m.colors.comment;return y.open+"<!--"+(0,t.default)(c)+"-->"+y.close};e.printComment=l;var u=(c,m,y,g,b)=>{let w=g.colors.tag;return w.open+"<"+c+(m&&w.close+m+g.spacingOuter+b+w.open)+(y?">"+w.close+y+g.spacingOuter+b+w.open+"</"+c:(m&&!g.min?"":" ")+"/")+">"+w.close};e.printElement=u;var p=(c,m)=>{let y=m.colors.tag;return y.open+"<"+c+y.close+" …"+y.open+" />"+y.close};e.printElementAsLeaf=p}}),J3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Uy(),r=1,n=3,i=8,a=11,l=/^((HTML|SVG)\w*)?Element$/,u=x=>{try{return typeof x.hasAttribute=="function"&&x.hasAttribute("is")}catch{return!1}},p=x=>{let _=x.constructor.name,{nodeType:R,tagName:j}=x,B=typeof j=="string"&&j.includes("-")||u(x);return R===r&&(l.test(_)||B)||R===n&&_==="Text"||R===i&&_==="Comment"||R===a&&_==="DocumentFragment"},c=x=>{var _;return(x==null||(_=x.constructor)===null||_===void 0?void 0:_.name)&&p(x)};e.test=c;function m(x){return x.nodeType===n}function y(x){return x.nodeType===i}function g(x){return x.nodeType===a}var b=(x,_,R,j,B,F)=>{if(m(x))return(0,t.printText)(x.data,_);if(y(x))return(0,t.printComment)(x.data,_);let E=g(x)?"DocumentFragment":x.tagName.toLowerCase();return++j>_.maxDepth?(0,t.printElementAsLeaf)(E,_):(0,t.printElement)(E,(0,t.printProps)(g(x)?[]:Array.from(x.attributes).map(P=>P.name).sort(),g(x)?{}:Array.from(x.attributes).reduce((P,N)=>(P[N.name]=N.value,P),{}),_,R+_.indent,j,B,F),(0,t.printChildren)(Array.prototype.slice.call(x.childNodes||x.children),_,R+_.indent,j,B,F),_,R)};e.serialize=b;var w={serialize:b,test:c},A=w;e.default=A}}),z3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Kd(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",i="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",l="@@__IMMUTABLE_ORDERED__@@",u="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",m="@@__IMMUTABLE_STACK__@@",y=N=>"Immutable."+N,g=N=>"["+N+"]",b=" ",w="…",A=(N,L,Z,H,te,W,$)=>++H>L.maxDepth?g(y($)):y($)+b+"{"+(0,t.printIteratorEntries)(N.entries(),L,Z,H,te,W)+"}";function x(N){let L=0;return{next(){if(L<N._keys.length){let Z=N._keys[L++];return{done:!1,value:[Z,N.get(Z)]}}return{done:!0,value:void 0}}}}var _=(N,L,Z,H,te,W)=>{let $=y(N._name||"Record");return++H>L.maxDepth?g($):$+b+"{"+(0,t.printIteratorEntries)(x(N),L,Z,H,te,W)+"}"},R=(N,L,Z,H,te,W)=>{let $=y("Seq");return++H>L.maxDepth?g($):N[i]?$+b+"{"+(N._iter||N._object?(0,t.printIteratorEntries)(N.entries(),L,Z,H,te,W):w)+"}":$+b+"["+(N._iter||N._array||N._collection||N._iterable?(0,t.printIteratorValues)(N.values(),L,Z,H,te,W):w)+"]"},j=(N,L,Z,H,te,W,$)=>++H>L.maxDepth?g(y($)):y($)+b+"["+(0,t.printIteratorValues)(N.values(),L,Z,H,te,W)+"]",B=(N,L,Z,H,te,W)=>N[a]?A(N,L,Z,H,te,W,N[l]?"OrderedMap":"Map"):N[n]?j(N,L,Z,H,te,W,"List"):N[c]?j(N,L,Z,H,te,W,N[l]?"OrderedSet":"Set"):N[m]?j(N,L,Z,H,te,W,"Stack"):N[p]?R(N,L,Z,H,te,W):_(N,L,Z,H,te,W);e.serialize=B;var F=N=>N&&(N[r]===!0||N[u]===!0);e.test=F;var E={serialize:B,test:F},P=E;e.default=P}}),H3=de({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,i=60108,a=60114,l=60109,u=60110,p=60112,c=60113,m=60120,y=60115,g=60116,b=60121,w=60122,A=60117,x=60129,_=60131;typeof Symbol=="function"&&Symbol.for&&(R=Symbol.for,t=R("react.element"),r=R("react.portal"),n=R("react.fragment"),i=R("react.strict_mode"),a=R("react.profiler"),l=R("react.provider"),u=R("react.context"),p=R("react.forward_ref"),c=R("react.suspense"),m=R("react.suspense_list"),y=R("react.memo"),g=R("react.lazy"),b=R("react.block"),w=R("react.server.block"),A=R("react.fundamental"),x=R("react.debug_trace_mode"),_=R("react.legacy_hidden"));var R;function j($){if(typeof $=="object"&&$!==null){var K=$.$$typeof;switch(K){case t:switch($=$.type,$){case n:case a:case i:case c:case m:return $;default:switch($=$&&$.$$typeof,$){case u:case p:case g:case y:case l:return $;default:return K}}case r:return K}}}var B=l,F=t,E=p,P=n,N=g,L=y,Z=r,H=a,te=i,W=c;e.ContextConsumer=u,e.ContextProvider=B,e.Element=F,e.ForwardRef=E,e.Fragment=P,e.Lazy=N,e.Memo=L,e.Portal=Z,e.Profiler=H,e.StrictMode=te,e.Suspense=W,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function($){return j($)===u},e.isContextProvider=function($){return j($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},e.isForwardRef=function($){return j($)===p},e.isFragment=function($){return j($)===n},e.isLazy=function($){return j($)===g},e.isMemo=function($){return j($)===y},e.isPortal=function($){return j($)===r},e.isProfiler=function($){return j($)===a},e.isStrictMode=function($){return j($)===i},e.isSuspense=function($){return j($)===c},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===n||$===a||$===x||$===i||$===c||$===m||$===_||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===y||$.$$typeof===l||$.$$typeof===u||$.$$typeof===p||$.$$typeof===A||$.$$typeof===b||$[0]===w)},e.typeOf=j}}),W3=de({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=H3()}}),G3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=i(W3()),r=Uy();function n(g){if(typeof WeakMap!="function")return null;var b=new WeakMap,w=new WeakMap;return(n=function(A){return A?w:b})(g)}function i(g,b){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var w=n(b);if(w&&w.has(g))return w.get(g);var A={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in g)if(_!=="default"&&Object.prototype.hasOwnProperty.call(g,_)){var R=x?Object.getOwnPropertyDescriptor(g,_):null;R&&(R.get||R.set)?Object.defineProperty(A,_,R):A[_]=g[_]}return A.default=g,w&&w.set(g,A),A}var a=(g,b=[])=>(Array.isArray(g)?g.forEach(w=>{a(w,b)}):g!=null&&g!==!1&&b.push(g),b),l=g=>{let b=g.type;if(typeof b=="string")return b;if(typeof b=="function")return b.displayName||b.name||"Unknown";if(t.isFragment(g))return"React.Fragment";if(t.isSuspense(g))return"React.Suspense";if(typeof b=="object"&&b!==null){if(t.isContextProvider(g))return"Context.Provider";if(t.isContextConsumer(g))return"Context.Consumer";if(t.isForwardRef(g)){if(b.displayName)return b.displayName;let w=b.render.displayName||b.render.name||"";return w!==""?"ForwardRef("+w+")":"ForwardRef"}if(t.isMemo(g)){let w=b.displayName||b.type.displayName||b.type.name||"";return w!==""?"Memo("+w+")":"Memo"}}return"UNDEFINED"},u=g=>{let{props:b}=g;return Object.keys(b).filter(w=>w!=="children"&&b[w]!==void 0).sort()},p=(g,b,w,A,x,_)=>++A>b.maxDepth?(0,r.printElementAsLeaf)(l(g),b):(0,r.printElement)(l(g),(0,r.printProps)(u(g),g.props,b,w+b.indent,A,x,_),(0,r.printChildren)(a(g.props.children),b,w+b.indent,A,x,_),b,w);e.serialize=p;var c=g=>g!=null&&t.isElement(g);e.test=c;var m={serialize:p,test:c},y=m;e.default=y}}),K3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Uy(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,i=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,a=m=>{let{props:y}=m;return y?Object.keys(y).filter(g=>y[g]!==void 0).sort():[]},l=(m,y,g,b,w,A)=>++b>y.maxDepth?(0,t.printElementAsLeaf)(m.type,y):(0,t.printElement)(m.type,m.props?(0,t.printProps)(a(m),m.props,y,g+y.indent,b,w,A):"",m.children?(0,t.printChildren)(m.children,y,g+y.indent,b,w,A):"",y,g);e.serialize=l;var u=m=>m&&m.$$typeof===i;e.test=u;var p={serialize:l,test:u},c=p;e.default=c}}),Y3=de({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=Ve,e.plugins=void 0;var t=m(y_()),r=Kd(),n=m(q3()),i=m($3()),a=m(V3()),l=m(J3()),u=m(z3()),p=m(G3()),c=m(K3());function m(le){return le&&le.__esModule?le:{default:le}}var y=Object.prototype.toString,g=Date.prototype.toISOString,b=Error.prototype.toString,w=RegExp.prototype.toString,A=le=>typeof le.constructor=="function"&&le.constructor.name||"Object",x=le=>typeof window<"u"&&le===window,_=/^Symbol\((.*)\)(.*)$/,R=/\n/gi,j=class extends Error{constructor(le,ke){super(le),this.stack=ke,this.name=this.constructor.name}};function B(le){return le==="[object Array]"||le==="[object ArrayBuffer]"||le==="[object DataView]"||le==="[object Float32Array]"||le==="[object Float64Array]"||le==="[object Int8Array]"||le==="[object Int16Array]"||le==="[object Int32Array]"||le==="[object Uint8Array]"||le==="[object Uint8ClampedArray]"||le==="[object Uint16Array]"||le==="[object Uint32Array]"}function F(le){return Object.is(le,-0)?"-0":String(le)}function E(le){return`${le}n`}function P(le,ke){return ke?"[Function "+(le.name||"anonymous")+"]":"[Function]"}function N(le){return String(le).replace(_,"Symbol($1)")}function L(le){return"["+b.call(le)+"]"}function Z(le,ke,Ue,Ge){if(le===!0||le===!1)return""+le;if(le===void 0)return"undefined";if(le===null)return"null";let We=typeof le;if(We==="number")return F(le);if(We==="bigint")return E(le);if(We==="string")return Ge?'"'+le.replace(/"|\\/g,"\\$&")+'"':'"'+le+'"';if(We==="function")return P(le,ke);if(We==="symbol")return N(le);let nt=y.call(le);return nt==="[object WeakMap]"?"WeakMap {}":nt==="[object WeakSet]"?"WeakSet {}":nt==="[object Function]"||nt==="[object GeneratorFunction]"?P(le,ke):nt==="[object Symbol]"?N(le):nt==="[object Date]"?isNaN(+le)?"Date { NaN }":g.call(le):nt==="[object Error]"?L(le):nt==="[object RegExp]"?Ue?w.call(le).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):w.call(le):le instanceof Error?L(le):null}function H(le,ke,Ue,Ge,We,nt){if(We.indexOf(le)!==-1)return"[Circular]";We=We.slice(),We.push(le);let it=++Ge>ke.maxDepth,pt=ke.min;if(ke.callToJSON&&!it&&le.toJSON&&typeof le.toJSON=="function"&&!nt)return K(le.toJSON(),ke,Ue,Ge,We,!0);let Bt=y.call(le);return Bt==="[object Arguments]"?it?"[Arguments]":(pt?"":"Arguments ")+"["+(0,r.printListItems)(le,ke,Ue,Ge,We,K)+"]":B(Bt)?it?"["+le.constructor.name+"]":(pt||!ke.printBasicPrototype&&le.constructor.name==="Array"?"":le.constructor.name+" ")+"["+(0,r.printListItems)(le,ke,Ue,Ge,We,K)+"]":Bt==="[object Map]"?it?"[Map]":"Map {"+(0,r.printIteratorEntries)(le.entries(),ke,Ue,Ge,We,K," => ")+"}":Bt==="[object Set]"?it?"[Set]":"Set {"+(0,r.printIteratorValues)(le.values(),ke,Ue,Ge,We,K)+"}":it||x(le)?"["+A(le)+"]":(pt||!ke.printBasicPrototype&&A(le)==="Object"?"":A(le)+" ")+"{"+(0,r.printObjectProperties)(le,ke,Ue,Ge,We,K)+"}"}function te(le){return le.serialize!=null}function W(le,ke,Ue,Ge,We,nt){let it;try{it=te(le)?le.serialize(ke,Ue,Ge,We,nt,K):le.print(ke,pt=>K(pt,Ue,Ge,We,nt),pt=>{let Bt=Ge+Ue.indent;return Bt+pt.replace(R,`
|
|
10
|
+
`+Bt)},{edgeSpacing:Ue.spacingOuter,min:Ue.min,spacing:Ue.spacingInner},Ue.colors)}catch(pt){throw new j(pt.message,pt.stack)}if(typeof it!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof it}".`);return it}function $(le,ke){for(let Ue=0;Ue<le.length;Ue++)try{if(le[Ue].test(ke))return le[Ue]}catch(Ge){throw new j(Ge.message,Ge.stack)}return null}function K(le,ke,Ue,Ge,We,nt){let it=$(ke.plugins,le);if(it!==null)return W(it,le,ke,Ue,Ge,We);let pt=Z(le,ke.printFunctionName,ke.escapeRegex,ke.escapeString);return pt!==null?pt:H(le,ke,Ue,Ge,We,nt)}var ne={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ae=Object.keys(ne),oe={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ne};e.DEFAULT_OPTIONS=oe;function Ae(le){if(Object.keys(le).forEach(ke=>{if(!oe.hasOwnProperty(ke))throw new Error(`pretty-format: Unknown option "${ke}".`)}),le.min&&le.indent!==void 0&&le.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(le.theme!==void 0){if(le.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof le.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof le.theme}".`)}}var Ce=le=>ae.reduce((ke,Ue)=>{let Ge=le.theme&&le.theme[Ue]!==void 0?le.theme[Ue]:ne[Ue],We=Ge&&t.default[Ge];if(We&&typeof We.close=="string"&&typeof We.open=="string")ke[Ue]=We;else throw new Error(`pretty-format: Option "theme" has a key "${Ue}" whose value "${Ge}" is undefined in ansi-styles.`);return ke},Object.create(null)),re=()=>ae.reduce((le,ke)=>(le[ke]={close:"",open:""},le),Object.create(null)),G=le=>le&&le.printFunctionName!==void 0?le.printFunctionName:oe.printFunctionName,he=le=>le&&le.escapeRegex!==void 0?le.escapeRegex:oe.escapeRegex,De=le=>le&&le.escapeString!==void 0?le.escapeString:oe.escapeString,_e=le=>{var ke;return{callToJSON:le&&le.callToJSON!==void 0?le.callToJSON:oe.callToJSON,colors:le&&le.highlight?Ce(le):re(),compareKeys:le&&typeof le.compareKeys=="function"?le.compareKeys:oe.compareKeys,escapeRegex:he(le),escapeString:De(le),indent:le&&le.min?"":ge(le&&le.indent!==void 0?le.indent:oe.indent),maxDepth:le&&le.maxDepth!==void 0?le.maxDepth:oe.maxDepth,min:le&&le.min!==void 0?le.min:oe.min,plugins:le&&le.plugins!==void 0?le.plugins:oe.plugins,printBasicPrototype:(ke=le?.printBasicPrototype)!==null&&ke!==void 0?ke:!0,printFunctionName:G(le),spacingInner:le&&le.min?" ":`
|
|
11
|
+
`,spacingOuter:le&&le.min?"":`
|
|
12
|
+
`}};function ge(le){return new Array(le+1).join(" ")}function Ve(le,ke){if(ke&&(Ae(ke),ke.plugins)){let Ge=$(ke.plugins,le);if(Ge!==null)return W(Ge,le,_e(ke),"",0,[])}let Ue=Z(le,G(ke),he(ke),De(ke));return Ue!==null?Ue:H(le,_e(ke),"",0,[])}var $e={AsymmetricMatcher:n.default,ConvertAnsi:i.default,DOMCollection:a.default,DOMElement:l.default,Immutable:u.default,ReactElement:p.default,ReactTestComponent:c.default};e.plugins=$e;var lt=Ve;e.default=lt}}),X3=de({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",l={};function u(c,m){if(!l[c]){l[c]={};for(var y=0;y<c.length;y++)l[c][c.charAt(y)]=y}return l[c][m]}var p={compressToBase64:function(c){if(c==null)return"";var m=p._compress(c,6,function(y){return i.charAt(y)});switch(m.length%4){default:case 0:return m;case 1:return m+"===";case 2:return m+"==";case 3:return m+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:p._decompress(c.length,32,function(m){return u(i,c.charAt(m))})},compressToUTF16:function(c){return c==null?"":p._compress(c,15,function(m){return n(m+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:p._decompress(c.length,16384,function(m){return c.charCodeAt(m)-32})},compressToUint8Array:function(c){for(var m=p.compress(c),y=new Uint8Array(m.length*2),g=0,b=m.length;g<b;g++){var w=m.charCodeAt(g);y[g*2]=w>>>8,y[g*2+1]=w%256}return y},decompressFromUint8Array:function(c){if(c==null)return p.decompress(c);for(var m=new Array(c.length/2),y=0,g=m.length;y<g;y++)m[y]=c[y*2]*256+c[y*2+1];var b=[];return m.forEach(function(w){b.push(n(w))}),p.decompress(b.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":p._compress(c,6,function(m){return a.charAt(m)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),p._decompress(c.length,32,function(m){return u(a,c.charAt(m))}))},compress:function(c){return p._compress(c,16,function(m){return n(m)})},_compress:function(c,m,y){if(c==null)return"";var g,b,w={},A={},x="",_="",R="",j=2,B=3,F=2,E=[],P=0,N=0,L;for(L=0;L<c.length;L+=1)if(x=c.charAt(L),Object.prototype.hasOwnProperty.call(w,x)||(w[x]=B++,A[x]=!0),_=R+x,Object.prototype.hasOwnProperty.call(w,_))R=_;else{if(Object.prototype.hasOwnProperty.call(A,R)){if(R.charCodeAt(0)<256){for(g=0;g<F;g++)P=P<<1,N==m-1?(N=0,E.push(y(P)),P=0):N++;for(b=R.charCodeAt(0),g=0;g<8;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1}else{for(b=1,g=0;g<F;g++)P=P<<1|b,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=0;for(b=R.charCodeAt(0),g=0;g<16;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1}j--,j==0&&(j=Math.pow(2,F),F++),delete A[R]}else for(b=w[R],g=0;g<F;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1;j--,j==0&&(j=Math.pow(2,F),F++),w[_]=B++,R=String(x)}if(R!==""){if(Object.prototype.hasOwnProperty.call(A,R)){if(R.charCodeAt(0)<256){for(g=0;g<F;g++)P=P<<1,N==m-1?(N=0,E.push(y(P)),P=0):N++;for(b=R.charCodeAt(0),g=0;g<8;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1}else{for(b=1,g=0;g<F;g++)P=P<<1|b,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=0;for(b=R.charCodeAt(0),g=0;g<16;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1}j--,j==0&&(j=Math.pow(2,F),F++),delete A[R]}else for(b=w[R],g=0;g<F;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1;j--,j==0&&(j=Math.pow(2,F),F++)}for(b=2,g=0;g<F;g++)P=P<<1|b&1,N==m-1?(N=0,E.push(y(P)),P=0):N++,b=b>>1;for(;;)if(P=P<<1,N==m-1){E.push(y(P));break}else N++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:p._decompress(c.length,32768,function(m){return c.charCodeAt(m)})},_decompress:function(c,m,y){var g=[],b=4,w=4,A=3,x="",_=[],R,j,B,F,E,P,N,L={val:y(0),position:m,index:1};for(R=0;R<3;R+=1)g[R]=R;for(B=0,E=Math.pow(2,2),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;switch(B){case 0:for(B=0,E=Math.pow(2,8),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;N=n(B);break;case 1:for(B=0,E=Math.pow(2,16),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;N=n(B);break;case 2:return""}for(g[3]=N,j=N,_.push(N);;){if(L.index>c)return"";for(B=0,E=Math.pow(2,A),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;switch(N=B){case 0:for(B=0,E=Math.pow(2,8),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;g[w++]=n(B),N=w-1,b--;break;case 1:for(B=0,E=Math.pow(2,16),P=1;P!=E;)F=L.val&L.position,L.position>>=1,L.position==0&&(L.position=m,L.val=y(L.index++)),B|=(F>0?1:0)*P,P<<=1;g[w++]=n(B),N=w-1,b--;break;case 2:return _.join("")}if(b==0&&(b=Math.pow(2,A),A++),g[N])x=g[N];else if(N===w)x=j+j.charAt(0);else return null;_.push(x),g[w++]=j+x.charAt(0),b--,j=x,b==0&&(b=Math.pow(2,A),A++)}}};return p})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),g_=de({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,i,a){function l(c,m){if(!i[c]){if(!n[c]){var y=typeof Vc=="function"&&Vc;if(!m&&y)return y(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var b=i[c]={exports:{}};n[c][0].call(b.exports,function(w){var A=n[c][1][w];return l(A||w)},b,b.exports,r,n,i,a)}return i[c].exports}for(var u=typeof Vc=="function"&&Vc,p=0;p<a.length;p++)l(a[p]);return l})({1:[function(r,n,i){n.exports=function(a){if(typeof Map!="function"||a){var l=r("./similar");return new l}else return new Map}},{"./similar":2}],2:[function(r,n,i){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(l){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,l))return this.lastItem.val;if(u=this.indexOf(l),u>=0)return this.lastItem=this.list[u],this.list[u].val},a.prototype.set=function(l,u){var p;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=u,this):(p=this.indexOf(l),p>=0?(this.lastItem=this.list[p],this.list[p].val=u,this):(this.lastItem={key:l,val:u},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(l){var u;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),u=this.indexOf(l),u>=0)return this.size--,this.list.splice(u,1)[0]},a.prototype.has=function(l){var u;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(u=this.indexOf(l),u>=0?(this.lastItem=this.list[u],!0):!1)},a.prototype.forEach=function(l,u){var p;for(p=0;p<this.size;p++)l.call(u||this,this.list[p].val,this.list[p].key,this)},a.prototype.indexOf=function(l){var u;for(u=0;u<this.size;u++)if(this.isEqual(this.list[u].key,l))return u;return-1},a.prototype.isEqual=function(l,u){return l===u||l!==l&&u!==u},n.exports=a},{}],3:[function(r,n,i){var a=r("map-or-similar");n.exports=function(c){var m=new a(!1),y=[];return function(g){var b=function(){var w=m,A,x,_=arguments.length-1,R=Array(_+1),j=!0,B;if((b.numArgs||b.numArgs===0)&&b.numArgs!==_+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(B=0;B<_;B++){if(R[B]={cacheItem:w,arg:arguments[B]},w.has(arguments[B])){w=w.get(arguments[B]);continue}j=!1,A=new a(!1),w.set(arguments[B],A),w=A}return j&&(w.has(arguments[_])?x=w.get(arguments[_]):j=!1),j||(x=g.apply(null,arguments),w.set(arguments[_],x)),c>0&&(R[_]={cacheItem:w,arg:arguments[_]},j?l(y,R):y.push(R),y.length>c&&u(y.shift())),b.wasMemoized=j,b.numArgs=_+1,x};return b.limit=c,b.wasMemoized=!1,b.cache=m,b.lru=y,b}};function l(c,m){var y=c.length,g=m.length,b,w,A;for(w=0;w<y;w++){for(b=!0,A=0;A<g;A++)if(!p(c[w][A].arg,m[A].arg)){b=!1;break}if(b)break}c.push(c.splice(w,1)[0])}function u(c){var m=c.length,y=c[m-1],g,b;for(y.cacheItem.delete(y.arg),b=m-2;b>=0&&(y=c[b],g=y.cacheItem.get(y.arg),!g||!g.size);b--)y.cacheItem.delete(y.arg)}function p(c,m){return c===m||c!==c&&m!==m}},{"map-or-similar":1}]},{},[3])(3)})}}),b_=de({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(i,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(i){let a=i.length;if(a===0)return"";let l="",u=0,p=0;e:for(;p<a;p++){let c=i.charCodeAt(p);for(;c<128;){if(r[c]!==1&&(u<p&&(l+=i.slice(u,p)),u=p+1,l+=t[c]),++p===a)break e;c=i.charCodeAt(p)}if(u<p&&(l+=i.slice(u,p)),c<2048){u=p+1,l+=t[192|c>>6]+t[128|c&63];continue}if(c<55296||c>=57344){u=p+1,l+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++p,p>=a)throw new Error("URI malformed");let m=i.charCodeAt(p)&1023;u=p+1,c=65536+((c&1023)<<10|m),l+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return u===0?i:u<a?l+i.slice(u):l}}}),Jy=de({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=b_(),r=a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""};e.defaultValueSerializer=r;var n=a=>a instanceof Date;e.defaultShouldSerializeObject=n;var i=a=>a;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:i,valueSerializer:e.defaultValueSerializer,keyDeserializer:i,shouldSerializeObject:e.defaultShouldSerializeObject}}}),v_=de({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=i,e.stringifyObject=m;var t=Jy(),r=b_();function n(y){return y==="__proto__"||y==="constructor"||y==="prototype"}function i(y,g,b,w,A){if(n(g))return y;let x=y[g];return typeof x=="object"&&x!==null?x:!w&&(A||typeof b=="number"||typeof b=="string"&&b*0===0&&b.indexOf(".")===-1)?y[g]=[]:y[g]={}}var a=20,l="[]",u="[",p="]",c=".";function m(y,g,b=0,w,A){let{nestingSyntax:x=t.defaultOptions.nestingSyntax,arrayRepeat:_=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:R=t.defaultOptions.arrayRepeatSyntax,nesting:j=t.defaultOptions.nesting,delimiter:B=t.defaultOptions.delimiter,valueSerializer:F=t.defaultOptions.valueSerializer,shouldSerializeObject:E=t.defaultOptions.shouldSerializeObject}=g,P=typeof B=="number"?String.fromCharCode(B):B,N=A===!0&&_,L=x==="dot"||x==="js"&&!A;if(b>a)return"";let Z="",H=!0,te=!1;for(let W in y){let $=y[W];if($===void 0)continue;let K;w?(K=w,N?R==="bracket"&&(K+=l):L?(K+=c,K+=W):(K+=u,K+=W,K+=p)):K=W,H||(Z+=P),typeof $=="object"&&$!==null&&!E($)?(te=$.pop!==void 0,(j||_&&te)&&(Z+=m($,g,b+1,K,te))):(Z+=(0,r.encodeString)(K),Z+="=",Z+=F($,W)),H&&(H=!1)}return Z}}}),Q3=de({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=i;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(u){let p=u.indexOf("%");if(p===-1)return u;let c=u.length,m="",y=0,g=0,b=p,w=t;for(;p>-1&&p<c;){let A=l(u[p+1],4),x=l(u[p+2],0),_=A|x,R=n[_];if(w=n[256+w+R],g=g<<6|_&n[364+R],w===t)m+=u.slice(y,b),m+=g<=65535?String.fromCharCode(g):String.fromCharCode(55232+(g>>10),56320+(g&1023)),g=0,y=p+3,p=b=u.indexOf("%",y);else{if(w===r)return null;if(p+=3,p<c&&u.charCodeAt(p)===37)continue;return null}}return m+u.slice(y)}var a={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function l(u,p){let c=a[u];return c===void 0?255:c<<p}}}),Z3=de({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=c;var t=v_(),r=Jy(),n=Q3(),i=m=>{let y=Number(m);return Number.isNaN(y)?m:y};e.numberKeyDeserializer=i;var a=m=>{let y=Number(m);return Number.isNaN(y)?m:y};e.numberValueDeserializer=a;var l=/\+/g,u=function(){};u.prototype=Object.create(null);function p(m,y,g,b,w){let A=m.substring(y,g);return b&&(A=A.replace(l," ")),w&&(A=(0,n.decodeURIComponent)(A)||A),A}function c(m,y){let{valueDeserializer:g=r.defaultOptions.valueDeserializer,keyDeserializer:b=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:w=r.defaultOptions.arrayRepeatSyntax,nesting:A=r.defaultOptions.nesting,arrayRepeat:x=r.defaultOptions.arrayRepeat,nestingSyntax:_=r.defaultOptions.nestingSyntax,delimiter:R=r.defaultOptions.delimiter}=y??{},j=typeof R=="string"?R.charCodeAt(0):R,B=_==="js",F=new u;if(typeof m!="string")return F;let E=m.length,P="",N=-1,L=-1,Z=-1,H=F,te,W="",$="",K=!1,ne=!1,ae=!1,oe=!1,Ae=!1,Ce=!1,re=0,G=-1,he=-1,De=-1;for(let _e=0;_e<E+1;_e++){if(re=_e!==E?m.charCodeAt(_e):j,re===j){if(Ce=L>N,Ce||(L=_e),Z!==L-1&&($=p(m,Z+1,G>-1?G:L,ae,K),W=b($),te!==void 0&&(H=(0,t.getDeepObject)(H,te,W,B&&Ae,void 0))),Ce||W!==""){Ce&&(P=m.slice(L+1,_e),oe&&(P=P.replace(l," ")),ne&&(P=(0,n.decodeURIComponent)(P)||P));let ge=g(P,W);if(x){let Ve=H[W];Ve===void 0?G>-1?H[W]=[ge]:H[W]=ge:Ve.pop?Ve.push(ge):H[W]=[Ve,ge]}else H[W]=ge}P="",N=_e,L=_e,K=!1,ne=!1,ae=!1,oe=!1,Ae=!1,G=-1,Z=_e,H=F,te=void 0,W=""}else re===93?(x&&w==="bracket"&&De===91&&(G=he),A&&(_==="index"||B)&&L<=N&&(Z!==he&&($=p(m,Z+1,_e,ae,K),W=b($),te!==void 0&&(H=(0,t.getDeepObject)(H,te,W,void 0,void 0)),te=W,ae=!1,K=!1),Z=_e,Ae=!1)):re===46?A&&(_==="dot"||B)&&L<=N&&(Z!==he&&($=p(m,Z+1,_e,ae,K),W=b($),te!==void 0&&(H=(0,t.getDeepObject)(H,te,W,B)),te=W,ae=!1,K=!1),Ae=!0,Z=_e):re===91?A&&(_==="index"||B)&&L<=N&&(Z!==he&&($=p(m,Z+1,_e,ae,K),W=b($),B&&te!==void 0&&(H=(0,t.getDeepObject)(H,te,W,B)),te=W,ae=!1,K=!1,Ae=!1),Z=_e):re===61?L<=N?L=_e:ne=!0:re===43?L>N?oe=!0:ae=!0:re===37&&(L>N?ne=!0:K=!0);he=_e,De=re}return F}}}),eL=de({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=v_();function r(n,i){if(n===null||typeof n!="object")return"";let a=i??{};return(0,t.stringifyObject)(n,a)}}}),zy=de({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(a,l,u,p){p===void 0&&(p=u);var c=Object.getOwnPropertyDescriptor(l,u);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,p,c)}):(function(a,l,u,p){p===void 0&&(p=u),a[p]=l[u]})),r=e&&e.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Z3();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var i=eL();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),r(Jy(),e)}}),E_=de({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
13
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),tL=de({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),w_=de({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),rL=de({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),nL=de({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(rL()),n=String.fromCodePoint||function(a){var l="";return a>65535&&(a-=65536,l+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),l+=String.fromCharCode(a),l};function i(a){return a>=55296&&a<=57343||a>1114111?"�":(a in r.default&&(a=r.default[a]),n(a))}e.default=i}}),u1=de({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(E_()),n=t(tL()),i=t(w_()),a=t(nL()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=u(i.default),e.decodeHTMLStrict=u(r.default);function u(m){var y=c(m);return function(g){return String(g).replace(l,y)}}var p=function(m,y){return m<y?1:-1};e.decodeHTML=(function(){for(var m=Object.keys(n.default).sort(p),y=Object.keys(r.default).sort(p),g=0,b=0;g<y.length;g++)m[b]===y[g]?(y[g]+=";?",b++):y[g]+=";";var w=new RegExp("&(?:"+y.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),A=c(r.default);function x(_){return _.substr(-1)!==";"&&(_+=";"),A(_)}return function(_){return String(_).replace(w,x)}})();function c(m){return function(y){if(y.charAt(1)==="#"){var g=y.charAt(2);return g==="X"||g==="x"?a.default(parseInt(y.substr(3),16)):a.default(parseInt(y.substr(2),10))}return m[y.slice(1,-1)]||y}}}}),c1=de({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(w_()),n=p(r.default),i=c(n);e.encodeXML=_(n);var a=t(E_()),l=p(a.default),u=c(l);e.encodeHTML=b(l,u),e.encodeNonAsciiHTML=_(l);function p(R){return Object.keys(R).sort().reduce(function(j,B){return j[R[B]]="&"+B+";",j},{})}function c(R){for(var j=[],B=[],F=0,E=Object.keys(R);F<E.length;F++){var P=E[F];P.length===1?j.push("\\"+P):B.push(P)}j.sort();for(var N=0;N<j.length-1;N++){for(var L=N;L<j.length-1&&j[L].charCodeAt(1)+1===j[L+1].charCodeAt(1);)L+=1;var Z=1+L-N;Z<3||j.splice(N,Z,j[N]+"-"+j[L])}return B.unshift("["+j.join("")+"]"),new RegExp(B.join("|"),"g")}var m=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,y=String.prototype.codePointAt!=null?(function(R){return R.codePointAt(0)}):(function(R){return(R.charCodeAt(0)-55296)*1024+R.charCodeAt(1)-56320+65536});function g(R){return"&#x"+(R.length>1?y(R):R.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(R,j){return function(B){return B.replace(j,function(F){return R[F]}).replace(m,g)}}var w=new RegExp(i.source+"|"+m.source,"g");function A(R){return R.replace(w,g)}e.escape=A;function x(R){return R.replace(i,g)}e.escapeUTF8=x;function _(R){return function(j){return j.replace(w,function(B){return R[B]||g(B)})}}}}),iL=de({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=u1(),r=c1();function n(p,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(p)}e.decode=n;function i(p,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(p)}e.decodeStrict=i;function a(p,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(p)}e.encode=a;var l=c1();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var u=u1();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return u.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return u.decodeXML}})}}),oL=de({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r($,K){if(!($ instanceof K))throw new TypeError("Cannot call a class as a function")}function n($,K){for(var ne=0;ne<K.length;ne++){var ae=K[ne];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty($,ae.key,ae)}}function i($,K,ne){return K&&n($.prototype,K),$}function a($,K){var ne=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!ne){if(Array.isArray($)||(ne=l($))||K){ne&&($=ne);var ae=0,oe=function(){};return{s:oe,n:function(){return ae>=$.length?{done:!0}:{done:!1,value:$[ae++]}},e:function(G){throw G},f:oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ae=!0,Ce=!1,re;return{s:function(){ne=ne.call($)},n:function(){var G=ne.next();return Ae=G.done,G},e:function(G){Ce=!0,re=G},f:function(){try{!Ae&&ne.return!=null&&ne.return()}finally{if(Ce)throw re}}}}function l($,K){if($){if(typeof $=="string")return u($,K);var ne=Object.prototype.toString.call($).slice(8,-1);if(ne==="Object"&&$.constructor&&(ne=$.constructor.name),ne==="Map"||ne==="Set")return Array.from($);if(ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return u($,K)}}function u($,K){(K==null||K>$.length)&&(K=$.length);for(var ne=0,ae=new Array(K);ne<K;ne++)ae[ne]=$[ne];return ae}var p=iL(),c={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:m()};function m(){var $={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return R(0,5).forEach(function(K){R(0,5).forEach(function(ne){R(0,5).forEach(function(ae){return y(K,ne,ae,$)})})}),R(0,23).forEach(function(K){var ne=K+232,ae=g(K*10+8);$[ne]="#"+ae+ae+ae}),$}function y($,K,ne,ae){var oe=16+$*36+K*6+ne,Ae=$>0?$*40+55:0,Ce=K>0?K*40+55:0,re=ne>0?ne*40+55:0;ae[oe]=b([Ae,Ce,re])}function g($){for(var K=$.toString(16);K.length<2;)K="0"+K;return K}function b($){var K=[],ne=a($),ae;try{for(ne.s();!(ae=ne.n()).done;){var oe=ae.value;K.push(g(oe))}}catch(Ae){ne.e(Ae)}finally{ne.f()}return"#"+K.join("")}function w($,K,ne,ae){var oe;return K==="text"?oe=F(ne,ae):K==="display"?oe=x($,ne,ae):K==="xterm256Foreground"?oe=N($,ae.colors[ne]):K==="xterm256Background"?oe=L($,ae.colors[ne]):K==="rgb"&&(oe=A($,ne)),oe}function A($,K){K=K.substring(2).slice(0,-1);var ne=+K.substr(0,2),ae=K.substring(5).split(";"),oe=ae.map(function(Ae){return("0"+Number(Ae).toString(16)).substr(-2)}).join("");return P($,(ne===38?"color:#":"background-color:#")+oe)}function x($,K,ne){K=parseInt(K,10);var ae={"-1":function(){return"<br/>"},0:function(){return $.length&&_($)},1:function(){return E($,"b")},3:function(){return E($,"i")},4:function(){return E($,"u")},8:function(){return P($,"display:none")},9:function(){return E($,"strike")},22:function(){return P($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Z($,"i")},24:function(){return Z($,"u")},39:function(){return N($,ne.fg)},49:function(){return L($,ne.bg)},53:function(){return P($,"text-decoration:overline")}},oe;return ae[K]?oe=ae[K]():4<K&&K<7?oe=E($,"blink"):29<K&&K<38?oe=N($,ne.colors[K-30]):39<K&&K<48?oe=L($,ne.colors[K-40]):89<K&&K<98?oe=N($,ne.colors[8+(K-90)]):99<K&&K<108&&(oe=L($,ne.colors[8+(K-100)])),oe}function _($){var K=$.slice(0);return $.length=0,K.reverse().map(function(ne){return"</"+ne+">"}).join("")}function R($,K){for(var ne=[],ae=$;ae<=K;ae++)ne.push(ae);return ne}function j($){return function(K){return($===null||K.category!==$)&&$!=="all"}}function B($){$=parseInt($,10);var K=null;return $===0?K="all":$===1?K="bold":2<$&&$<5?K="underline":4<$&&$<7?K="blink":$===8?K="hide":$===9?K="strike":29<$&&$<38||$===39||89<$&&$<98?K="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(K="background-color"),K}function F($,K){return K.escapeXML?p.encodeXML($):$}function E($,K,ne){return ne||(ne=""),$.push(K),"<".concat(K).concat(ne?' style="'.concat(ne,'"'):"",">")}function P($,K){return E($,"span",K)}function N($,K){return E($,"span","color:"+K)}function L($,K){return E($,"span","background-color:"+K)}function Z($,K){var ne;if($.slice(-1)[0]===K&&(ne=$.pop()),ne)return"</"+K+">"}function H($,K,ne){var ae=!1,oe=3;function Ae(){return""}function Ce(nt,it){return ne("xterm256Foreground",it),""}function re(nt,it){return ne("xterm256Background",it),""}function G(nt){return K.newline?ne("display",-1):ne("text",nt),""}function he(nt,it){ae=!0,it.trim().length===0&&(it="0"),it=it.trimRight(";").split(";");var pt=a(it),Bt;try{for(pt.s();!(Bt=pt.n()).done;){var ur=Bt.value;ne("display",ur)}}catch(mt){pt.e(mt)}finally{pt.f()}return""}function De(nt){return ne("text",nt),""}function _e(nt){return ne("rgb",nt),""}var ge=[{pattern:/^\x08+/,sub:Ae},{pattern:/^\x1b\[[012]?K/,sub:Ae},{pattern:/^\x1b\[\(B/,sub:Ae},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:_e},{pattern:/^\x1b\[38;5;(\d+)m/,sub:Ce},{pattern:/^\x1b\[48;5;(\d+)m/,sub:re},{pattern:/^\n/,sub:G},{pattern:/^\r+\n/,sub:G},{pattern:/^\r/,sub:G},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:he},{pattern:/^\x1b\[\d?J/,sub:Ae},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:Ae},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:Ae},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:De}];function Ve(nt,it){it>oe&&ae||(ae=!1,$=$.replace(nt.pattern,nt.sub))}var $e=[],lt=$,le=lt.length;e:for(;le>0;){for(var ke=0,Ue=0,Ge=ge.length;Ue<Ge;ke=++Ue){var We=ge[ke];if(Ve(We,ke),$.length!==le){le=$.length;continue e}}if($.length===le)break;$e.push(0),le=$.length}return $e}function te($,K,ne){return K!=="text"&&($=$.filter(j(B(ne))),$.push({token:K,data:ne,category:B(ne)})),$}var W=(function(){function $(K){r(this,$),K=K||{},K.colors&&(K.colors=Object.assign({},c.colors,K.colors)),this.options=Object.assign({},c,K),this.stack=[],this.stickyStack=[]}return i($,[{key:"toHtml",value:function(K){var ne=this;K=typeof K=="string"?[K]:K;var ae=this.stack,oe=this.options,Ae=[];return this.stickyStack.forEach(function(Ce){var re=w(ae,Ce.token,Ce.data,oe);re&&Ae.push(re)}),H(K.join(""),oe,function(Ce,re){var G=w(ae,Ce,re,oe);G&&Ae.push(G),oe.stream&&(ne.stickyStack=te(ne.stickyStack,Ce,re))}),ae.length&&Ae.push(_(ae)),Ae.join("")}}]),$})();t.exports=W}}),aL=de({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(d){return d.text!==void 0&&d.text!==""?`'${d.type}' with value '${d.text}'`:`'${d.type}'`}class i extends Error{constructor(S){super(`No parslet found for token: ${n(S)}`),this.token=S,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(S){super(`The parsing ended early. The next token was: ${n(S)}`),this.token=S,Object.setPrototypeOf(this,a.prototype)}getToken(){return this.token}}class l extends Error{constructor(S,I){let J=`Unexpected type: '${S.type}'.`;I!==void 0&&(J+=` Message: ${I}`),super(J),Object.setPrototypeOf(this,l.prototype)}}function u(d){return S=>S.startsWith(d)?{type:d,text:d}:null}function p(d){let S=0,I,J=d[0],pe=!1;if(J!=="'"&&J!=='"')return null;for(;S<d.length;){if(S++,I=d[S],!pe&&I===J){S++;break}pe=!pe&&I==="\\"}if(I!==J)throw new Error("Unterminated String");return d.slice(0,S)}let c=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),m=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function y(d){let S=d[0];if(!c.test(S))return null;let I=1;do{if(S=d[I],!m.test(S))break;I++}while(I<d.length);return d.slice(0,I)}let g=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function b(d){var S,I;return(I=(S=g.exec(d))===null||S===void 0?void 0:S[0])!==null&&I!==void 0?I:null}let w=d=>{let S=y(d);return S==null?null:{type:"Identifier",text:S}};function A(d){return S=>{if(!S.startsWith(d))return null;let I=S[d.length];return I!==void 0&&m.test(I)?null:{type:d,text:d}}}let x=d=>{let S=p(d);return S==null?null:{type:"StringValue",text:S}},_=d=>d.length>0?null:{type:"EOF",text:""},R=d=>{let S=b(d);return S===null?null:{type:"Number",text:S}},j=[_,u("=>"),u("("),u(")"),u("{"),u("}"),u("["),u("]"),u("|"),u("&"),u("<"),u(">"),u(","),u(";"),u("*"),u("?"),u("!"),u("="),u(":"),u("..."),u("."),u("#"),u("~"),u("/"),u("@"),A("undefined"),A("null"),A("function"),A("this"),A("new"),A("module"),A("event"),A("extends"),A("external"),A("infer"),A("typeof"),A("keyof"),A("readonly"),A("import"),A("is"),A("in"),A("asserts"),R,w,x],B=/^\s*\n\s*/;class F{static create(S){let I=this.read(S);S=I.text;let J=this.read(S);return S=J.text,new F(S,void 0,I.token,J.token)}constructor(S,I,J,pe){this.text="",this.text=S,this.previous=I,this.current=J,this.next=pe}static read(S,I=!1){I=I||B.test(S),S=S.trim();for(let J of j){let pe=J(S);if(pe!==null){let Se=Object.assign(Object.assign({},pe),{startOfLine:I});return S=S.slice(Se.text.length),{text:S,token:Se}}}throw new Error("Unexpected Token "+S)}advance(){let S=F.read(this.text);return new F(S.text,this.current,this.next,S.token)}}function E(d){if(d===void 0)throw new Error("Unexpected undefined");if(d.type==="JsdocTypeKeyValue"||d.type==="JsdocTypeParameterList"||d.type==="JsdocTypeProperty"||d.type==="JsdocTypeReadonlyProperty"||d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField"||d.type==="JsdocTypeIndexSignature"||d.type==="JsdocTypeMappedType"||d.type==="JsdocTypeTypeParameter")throw new l(d);return d}function P(d){return d.type==="JsdocTypeKeyValue"?L(d):E(d)}function N(d){return d.type==="JsdocTypeName"?d:L(d)}function L(d){if(d.type!=="JsdocTypeKeyValue")throw new l(d);return d}function Z(d){var S;if(d.type==="JsdocTypeVariadic"){if(((S=d.element)===null||S===void 0?void 0:S.type)==="JsdocTypeName")return d;throw new l(d)}if(d.type!=="JsdocTypeNumber"&&d.type!=="JsdocTypeName")throw new l(d);return d}function H(d){if(d.type==="JsdocTypeTuple"||d.type==="JsdocTypeGeneric"&&d.meta.brackets==="square")return d;throw new l(d)}function te(d){return d.type==="JsdocTypeIndexSignature"||d.type==="JsdocTypeMappedType"}var W;(function(d){d[d.ALL=0]="ALL",d[d.PARAMETER_LIST=1]="PARAMETER_LIST",d[d.OBJECT=2]="OBJECT",d[d.KEY_VALUE=3]="KEY_VALUE",d[d.INDEX_BRACKETS=4]="INDEX_BRACKETS",d[d.UNION=5]="UNION",d[d.INTERSECTION=6]="INTERSECTION",d[d.PREFIX=7]="PREFIX",d[d.INFIX=8]="INFIX",d[d.TUPLE=9]="TUPLE",d[d.SYMBOL=10]="SYMBOL",d[d.OPTIONAL=11]="OPTIONAL",d[d.NULLABLE=12]="NULLABLE",d[d.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",d[d.FUNCTION=14]="FUNCTION",d[d.ARROW=15]="ARROW",d[d.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",d[d.GENERIC=17]="GENERIC",d[d.NAME_PATH=18]="NAME_PATH",d[d.PARENTHESIS=19]="PARENTHESIS",d[d.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(W||(W={}));class ${constructor(S,I,J){this.grammar=S,typeof I=="string"?this._lexer=F.create(I):this._lexer=I,this.baseParser=J}get lexer(){return this._lexer}parse(){let S=this.parseType(W.ALL);if(this.lexer.current.type!=="EOF")throw new a(this.lexer.current);return S}parseType(S){return E(this.parseIntermediateType(S))}parseIntermediateType(S){let I=this.tryParslets(null,S);if(I===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(I,S)}parseInfixIntermediateType(S,I){let J=this.tryParslets(S,I);for(;J!==null;)S=J,J=this.tryParslets(S,I);return S}tryParslets(S,I){for(let J of this.grammar){let pe=J(this,I,S);if(pe!==null)return pe}return null}consume(S){return Array.isArray(S)||(S=[S]),S.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(S){this._lexer=S.lexer}}function K(d){return d==="}"||d==="EOF"||d==="|"||d===","||d===")"||d===">"}let ne=(d,S,I)=>{let J=d.lexer.current.type,pe=d.lexer.next.type;return I==null&&J==="?"&&!K(pe)||I!=null&&J==="?"?(d.consume("?"),I==null?{type:"JsdocTypeNullable",element:d.parseType(W.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(I),meta:{position:"suffix"}}):null};function ae(d){let S=(I,J,pe)=>{let Se=I.lexer.current.type,Fe=I.lexer.next.type;if(pe===null){if("parsePrefix"in d&&d.accept(Se,Fe))return d.parsePrefix(I)}else if("parseInfix"in d&&d.precedence>J&&d.accept(Se,Fe))return d.parseInfix(I,pe);return null};return Object.defineProperty(S,"name",{value:d.name}),S}let oe=ae({name:"optionalParslet",accept:d=>d==="=",precedence:W.OPTIONAL,parsePrefix:d=>(d.consume("="),{type:"JsdocTypeOptional",element:d.parseType(W.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(d,S)=>(d.consume("="),{type:"JsdocTypeOptional",element:E(S),meta:{position:"suffix"}})}),Ae=ae({name:"numberParslet",accept:d=>d==="Number",parsePrefix:d=>{let S=parseFloat(d.lexer.current.text);return d.consume("Number"),{type:"JsdocTypeNumber",value:S}}}),Ce=ae({name:"parenthesisParslet",accept:d=>d==="(",parsePrefix:d=>{if(d.consume("("),d.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let S=d.parseIntermediateType(W.ALL);if(!d.consume(")"))throw new Error("Unterminated parenthesis");return S.type==="JsdocTypeParameterList"?S:S.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[S]}:{type:"JsdocTypeParenthesis",element:E(S)}}}),re=ae({name:"specialTypesParslet",accept:(d,S)=>d==="?"&&K(S)||d==="null"||d==="undefined"||d==="*",parsePrefix:d=>{if(d.consume("null"))return{type:"JsdocTypeNull"};if(d.consume("undefined"))return{type:"JsdocTypeUndefined"};if(d.consume("*"))return{type:"JsdocTypeAny"};if(d.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+d.lexer.current.text)}}),G=ae({name:"notNullableParslet",accept:d=>d==="!",precedence:W.NULLABLE,parsePrefix:d=>(d.consume("!"),{type:"JsdocTypeNotNullable",element:d.parseType(W.NULLABLE),meta:{position:"prefix"}}),parseInfix:(d,S)=>(d.consume("!"),{type:"JsdocTypeNotNullable",element:E(S),meta:{position:"suffix"}})});function he({allowTrailingComma:d}){return ae({name:"parameterListParslet",accept:S=>S===",",precedence:W.PARAMETER_LIST,parseInfix:(S,I)=>{let J=[P(I)];S.consume(",");do try{let pe=S.parseIntermediateType(W.PARAMETER_LIST);J.push(P(pe))}catch(pe){if(pe instanceof i)break;throw pe}while(S.consume(","));if(J.length>0&&J.slice(0,-1).some(pe=>pe.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:J}}})}let De=ae({name:"genericParslet",accept:(d,S)=>d==="<"||d==="."&&S==="<",precedence:W.GENERIC,parseInfix:(d,S)=>{let I=d.consume(".");d.consume("<");let J=[],pe=!1;if(d.consume("infer")){pe=!0;let Se=d.parseIntermediateType(W.SYMBOL);if(Se.type!=="JsdocTypeName")throw new l(Se,"A typescript asserts always has to have a name on the left side.");J.push(Se)}else do J.push(d.parseType(W.PARAMETER_LIST));while(d.consume(","));if(!d.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(S),elements:J},pe?{infer:!0}:{}),{meta:{brackets:"angle",dot:I}})}}),_e=ae({name:"unionParslet",accept:d=>d==="|",precedence:W.UNION,parseInfix:(d,S)=>{d.consume("|");let I=[];do I.push(d.parseType(W.UNION));while(d.consume("|"));return{type:"JsdocTypeUnion",elements:[E(S),...I]}}}),ge=[ne,oe,Ae,Ce,re,G,he({allowTrailingComma:!0}),De,_e,oe];function Ve({allowSquareBracketsOnAnyType:d,allowJsdocNamePaths:S,pathGrammar:I}){return function(J,pe,Se){if(Se==null||pe>=W.NAME_PATH)return null;let Fe=J.lexer.current.type,Pe=J.lexer.next.type;if(!(Fe==="."&&Pe!=="<"||Fe==="["&&(d||Se.type==="JsdocTypeName")||S&&(Fe==="~"||Fe==="#")))return null;let ht,wt=!1;J.consume(".")?ht="property":J.consume("[")?(ht="property-brackets",wt=!0):J.consume("~")?ht="inner":(J.consume("#"),ht="instance");let tr=I!==null?new $(I,J.lexer,J):J,Vt=tr.parseIntermediateType(W.NAME_PATH);J.acceptLexerState(tr);let Yr;switch(Vt.type){case"JsdocTypeName":Yr={type:"JsdocTypeProperty",value:Vt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Yr={type:"JsdocTypeProperty",value:Vt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Yr={type:"JsdocTypeProperty",value:Vt.value,meta:{quote:Vt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Vt.specialType==="event")Yr=Vt;else throw new l(Vt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new l(Vt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(wt&&!J.consume("]")){let li=J.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${li.type}' with text '${li.text}'`)}return{type:"JsdocTypeNamePath",left:E(Se),right:Yr,pathType:ht}}}function $e({allowedAdditionalTokens:d}){return ae({name:"nameParslet",accept:S=>S==="Identifier"||S==="this"||S==="new"||d.includes(S),parsePrefix:S=>{let{type:I,text:J}=S.lexer.current;return S.consume(I),{type:"JsdocTypeName",value:J}}})}let lt=ae({name:"stringValueParslet",accept:d=>d==="StringValue",parsePrefix:d=>{let S=d.lexer.current.text;return d.consume("StringValue"),{type:"JsdocTypeStringValue",value:S.slice(1,-1),meta:{quote:S[0]==="'"?"single":"double"}}}});function le({pathGrammar:d,allowedTypes:S}){return ae({name:"specialNamePathParslet",accept:I=>S.includes(I),parsePrefix:I=>{let J=I.lexer.current.type;if(I.consume(J),!I.consume(":"))return{type:"JsdocTypeName",value:J};let pe,Se=I.lexer.current;if(I.consume("StringValue"))pe={type:"JsdocTypeSpecialNamePath",value:Se.text.slice(1,-1),specialType:J,meta:{quote:Se.text[0]==="'"?"single":"double"}};else{let ht="",wt=["Identifier","@","/"];for(;wt.some(tr=>I.consume(tr));)ht+=Se.text,Se=I.lexer.current;pe={type:"JsdocTypeSpecialNamePath",value:ht,specialType:J,meta:{quote:void 0}}}let Fe=new $(d,I.lexer,I),Pe=Fe.parseInfixIntermediateType(pe,W.ALL);return I.acceptLexerState(Fe),E(Pe)}})}let ke=[$e({allowedAdditionalTokens:["external","module"]}),lt,Ae,Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Ue=[...ke,le({allowedTypes:["event"],pathGrammar:ke})];function Ge(d){let S;if(d.type==="JsdocTypeParameterList")S=d.elements;else if(d.type==="JsdocTypeParenthesis")S=[d.element];else throw new l(d);return S.map(I=>P(I))}function We(d){let S=Ge(d);if(S.some(I=>I.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return S}function nt({allowNamedParameters:d,allowNoReturnType:S,allowWithoutParenthesis:I,allowNewAsFunctionKeyword:J}){return ae({name:"functionParslet",accept:(pe,Se)=>pe==="function"||J&&pe==="new"&&Se==="(",parsePrefix:pe=>{let Se=pe.consume("new");pe.consume("function");let Fe=pe.lexer.current.type==="(";if(!Fe){if(!I)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Pe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:Se,parenthesis:Fe},ht=pe.parseIntermediateType(W.FUNCTION);if(d===void 0)Pe.parameters=We(ht);else{if(Se&&ht.type==="JsdocTypeFunction"&&ht.arrow)return Pe=ht,Pe.constructor=!0,Pe;Pe.parameters=Ge(ht);for(let wt of Pe.parameters)if(wt.type==="JsdocTypeKeyValue"&&!d.includes(wt.key))throw new Error(`only allowed named parameters are ${d.join(", ")} but got ${wt.type}`)}if(pe.consume(":"))Pe.returnType=pe.parseType(W.PREFIX);else if(!S)throw new Error("function is missing return type");return Pe}})}function it({allowPostfix:d,allowEnclosingBrackets:S}){return ae({name:"variadicParslet",accept:I=>I==="...",precedence:W.PREFIX,parsePrefix:I=>{I.consume("...");let J=S&&I.consume("[");try{let pe=I.parseType(W.PREFIX);if(J&&!I.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(pe),meta:{position:"prefix",squareBrackets:J}}}catch(pe){if(pe instanceof i){if(J)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw pe}},parseInfix:d?(I,J)=>(I.consume("..."),{type:"JsdocTypeVariadic",element:E(J),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let pt=ae({name:"symbolParslet",accept:d=>d==="(",precedence:W.SYMBOL,parseInfix:(d,S)=>{if(S.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");d.consume("(");let I={type:"JsdocTypeSymbol",value:S.value};if(!d.consume(")")){let J=d.parseIntermediateType(W.SYMBOL);if(I.element=Z(J),!d.consume(")"))throw new Error("Symbol does not end after value")}return I}}),Bt=ae({name:"arrayBracketsParslet",precedence:W.ARRAY_BRACKETS,accept:(d,S)=>d==="["&&S==="]",parseInfix:(d,S)=>(d.consume("["),d.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(S)],meta:{brackets:"square",dot:!1}})});function ur({objectFieldGrammar:d,allowKeyTypes:S}){return ae({name:"objectParslet",accept:I=>I==="{",parsePrefix:I=>{I.consume("{");let J={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!I.consume("}")){let pe,Se=new $(d,I.lexer,I);for(;;){Se.acceptLexerState(I);let Fe=Se.parseIntermediateType(W.OBJECT);I.acceptLexerState(Se),Fe===void 0&&S&&(Fe=I.parseIntermediateType(W.OBJECT));let Pe=!1;if(Fe.type==="JsdocTypeNullable"&&(Pe=!0,Fe=Fe.element),Fe.type==="JsdocTypeNumber"||Fe.type==="JsdocTypeName"||Fe.type==="JsdocTypeStringValue"){let ht;Fe.type==="JsdocTypeStringValue"&&(ht=Fe.meta.quote),J.elements.push({type:"JsdocTypeObjectField",key:Fe.value.toString(),right:void 0,optional:Pe,readonly:!1,meta:{quote:ht}})}else if(Fe.type==="JsdocTypeObjectField"||Fe.type==="JsdocTypeJsdocObjectField")J.elements.push(Fe);else throw new l(Fe);if(I.lexer.current.startOfLine)pe="linebreak",I.consume(",")||I.consume(";");else if(I.consume(","))pe="comma";else if(I.consume(";"))pe="semicolon";else break;if(I.lexer.current.type==="}")break}if(J.meta.separator=pe??"comma",pe==="linebreak"&&(J.meta.propertyIndent=" "),!I.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return J}})}function mt({allowSquaredProperties:d,allowKeyTypes:S,allowReadonly:I,allowOptional:J}){return ae({name:"objectFieldParslet",precedence:W.KEY_VALUE,accept:pe=>pe===":",parseInfix:(pe,Se)=>{var Fe;let Pe=!1,ht=!1;J&&Se.type==="JsdocTypeNullable"&&(Pe=!0,Se=Se.element),I&&Se.type==="JsdocTypeReadonlyProperty"&&(ht=!0,Se=Se.element);let wt=(Fe=pe.baseParser)!==null&&Fe!==void 0?Fe:pe;if(wt.acceptLexerState(pe),Se.type==="JsdocTypeNumber"||Se.type==="JsdocTypeName"||Se.type==="JsdocTypeStringValue"||te(Se)){if(te(Se)&&!d)throw new l(Se);wt.consume(":");let tr;Se.type==="JsdocTypeStringValue"&&(tr=Se.meta.quote);let Vt=wt.parseType(W.KEY_VALUE);return pe.acceptLexerState(wt),{type:"JsdocTypeObjectField",key:te(Se)?Se:Se.value.toString(),right:Vt,optional:Pe,readonly:ht,meta:{quote:tr}}}else{if(!S)throw new l(Se);wt.consume(":");let tr=wt.parseType(W.KEY_VALUE);return pe.acceptLexerState(wt),{type:"JsdocTypeJsdocObjectField",left:E(Se),right:tr}}}})}function Lt({allowOptional:d,allowVariadic:S}){return ae({name:"keyValueParslet",precedence:W.KEY_VALUE,accept:I=>I===":",parseInfix:(I,J)=>{let pe=!1,Se=!1;if(d&&J.type==="JsdocTypeNullable"&&(pe=!0,J=J.element),S&&J.type==="JsdocTypeVariadic"&&J.element!==void 0&&(Se=!0,J=J.element),J.type!=="JsdocTypeName")throw new l(J);I.consume(":");let Fe=I.parseType(W.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:J.value,right:Fe,optional:pe,variadic:Se}}})}let At=[...ge,nt({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),lt,le({allowedTypes:["module","external","event"],pathGrammar:Ue}),it({allowEnclosingBrackets:!0,allowPostfix:!0}),$e({allowedAdditionalTokens:["keyof"]}),pt,Bt,Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ue})],Vr=[...At,ur({objectFieldGrammar:[$e({allowedAdditionalTokens:["typeof","module","in"]}),mt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...At],allowKeyTypes:!0}),Lt({allowOptional:!0,allowVariadic:!0})],fr=ae({name:"typeOfParslet",accept:d=>d==="typeof",parsePrefix:d=>(d.consume("typeof"),{type:"JsdocTypeTypeof",element:d.parseType(W.KEY_OF_TYPE_OF)})}),je=[$e({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ne,oe,lt,Ae,mt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jt=[...ge,ur({allowKeyTypes:!1,objectFieldGrammar:je}),$e({allowedAdditionalTokens:["event","external","in"]}),fr,nt({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),it({allowEnclosingBrackets:!1,allowPostfix:!1}),$e({allowedAdditionalTokens:["keyof"]}),le({allowedTypes:["module"],pathGrammar:Ue}),Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ue}),Lt({allowOptional:!1,allowVariadic:!1}),pt],at=ae({name:"assertsParslet",accept:d=>d==="asserts",parsePrefix:d=>{d.consume("asserts");let S=d.parseIntermediateType(W.SYMBOL);if(S.type!=="JsdocTypeName")throw new l(S,"A typescript asserts always has to have a name on the left side.");return d.consume("is")?{type:"JsdocTypeAsserts",left:S,right:E(d.parseIntermediateType(W.INFIX))}:{type:"JsdocTypeAssertsPlain",element:S}}});function Ht({allowQuestionMark:d}){return ae({name:"tupleParslet",accept:S=>S==="[",parsePrefix:S=>{S.consume("[");let I={type:"JsdocTypeTuple",elements:[]};if(S.consume("]"))return I;let J=S.parseIntermediateType(W.ALL);if(J.type==="JsdocTypeParameterList"?J.elements[0].type==="JsdocTypeKeyValue"?I.elements=J.elements.map(L):I.elements=J.elements.map(E):J.type==="JsdocTypeKeyValue"?I.elements=[L(J)]:I.elements=[E(J)],!S.consume("]"))throw new Error("Unterminated '['");if(I.elements.some(pe=>pe.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return I}})}let Dt=ae({name:"keyOfParslet",accept:d=>d==="keyof",parsePrefix:d=>(d.consume("keyof"),{type:"JsdocTypeKeyof",element:E(d.parseType(W.KEY_OF_TYPE_OF))})}),Ur=ae({name:"importParslet",accept:d=>d==="import",parsePrefix:d=>{if(d.consume("import"),!d.consume("("))throw new Error("Missing parenthesis after import keyword");let S=d.parseType(W.PREFIX);if(S.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!d.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:S}}}),Gr=ae({name:"readonlyPropertyParslet",accept:d=>d==="readonly",parsePrefix:d=>(d.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:d.parseIntermediateType(W.KEY_VALUE)})}),Zt=ae({name:"arrowFunctionParslet",precedence:W.ARROW,accept:d=>d==="=>",parseInfix:(d,S)=>(d.consume("=>"),{type:"JsdocTypeFunction",parameters:Ge(S).map(N),arrow:!0,constructor:!1,parenthesis:!0,returnType:d.parseType(W.OBJECT)})}),dt=ae({name:"genericArrowFunctionParslet",accept:d=>d==="<",parsePrefix:d=>{let S=[];d.consume("<");do{let J,pe=d.parseIntermediateType(W.SYMBOL);if(pe.type==="JsdocTypeOptional"&&(pe=pe.element,J=d.parseType(W.SYMBOL)),pe.type!=="JsdocTypeName")throw new l(pe);let Se;d.consume("extends")&&(Se=d.parseType(W.SYMBOL),Se.type==="JsdocTypeOptional"&&(Se=Se.element,J=d.parseType(W.SYMBOL)));let Fe={type:"JsdocTypeTypeParameter",name:pe};if(Se!==void 0&&(Fe.constraint=Se),J!==void 0&&(Fe.defaultValue=J),S.push(Fe),d.consume(">"))break}while(d.consume(","));let I=d.parseIntermediateType(W.SYMBOL);return I.typeParameters=S,I}}),Jr=ae({name:"intersectionParslet",accept:d=>d==="&",precedence:W.INTERSECTION,parseInfix:(d,S)=>{d.consume("&");let I=[];do I.push(d.parseType(W.INTERSECTION));while(d.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(S),...I]}}}),Mt=ae({name:"predicateParslet",precedence:W.INFIX,accept:d=>d==="is",parseInfix:(d,S)=>{if(S.type!=="JsdocTypeName")throw new l(S,"A typescript predicate always has to have a name on the left side.");return d.consume("is"),{type:"JsdocTypePredicate",left:S,right:E(d.parseIntermediateType(W.INFIX))}}}),Ar=ae({name:"objectSquareBracketPropertyParslet",accept:d=>d==="[",parsePrefix:d=>{if(d.baseParser===void 0)throw new Error("Only allowed inside object grammar");d.consume("[");let S=d.lexer.current.text;d.consume("Identifier");let I;if(d.consume(":")){let J=d.baseParser;J.acceptLexerState(d),I={type:"JsdocTypeIndexSignature",key:S,right:J.parseType(W.INDEX_BRACKETS)},d.acceptLexerState(J)}else if(d.consume("in")){let J=d.baseParser;J.acceptLexerState(d),I={type:"JsdocTypeMappedType",key:S,right:J.parseType(W.ARRAY_BRACKETS)},d.acceptLexerState(J)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!d.consume("]"))throw new Error("Unterminated square brackets");return I}}),En=ae({name:"readonlyArrayParslet",accept:d=>d==="readonly",parsePrefix:d=>(d.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:H(d.parseIntermediateType(W.ALL))})}),Pt=ae({name:"conditionalParslet",precedence:W.INFIX,accept:d=>d==="extends",parseInfix:(d,S)=>{d.consume("extends");let I=d.parseType(W.KEY_OF_TYPE_OF).element,J=d.parseType(W.INFIX);return d.consume(":"),{type:"JsdocTypeConditional",checksType:E(S),extendsType:I,trueType:J,falseType:d.parseType(W.INFIX)}}}),Gt=[Gr,$e({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ne,oe,lt,Ae,mt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Ar],Br=[...ge,ur({allowKeyTypes:!1,objectFieldGrammar:Gt}),En,fr,Dt,Ur,lt,nt({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ht({allowQuestionMark:!1}),it({allowEnclosingBrackets:!1,allowPostfix:!1}),at,Pt,$e({allowedAdditionalTokens:["event","external","in"]}),le({allowedTypes:["module"],pathGrammar:Ue}),Bt,Zt,dt,Ve({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Ue}),Jr,Mt,Lt({allowVariadic:!0,allowOptional:!0})];function qt(d,S){switch(S){case"closure":return new $(Jt,d).parse();case"jsdoc":return new $(Vr,d).parse();case"typescript":return new $(Br,d).parse()}}function Ct(d,S=["typescript","closure","jsdoc"]){let I;for(let J of S)try{return qt(d,J)}catch(pe){I=pe}throw I}function hr(d,S){let I=d[S.type];if(I===void 0)throw new Error(`In this set of transform rules exists no rule for type ${S.type}.`);return I(S,J=>hr(d,J))}function st(d){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function D(d){let S={params:[]};for(let I of d.parameters)I.type==="JsdocTypeKeyValue"?I.key==="this"?S.this=I.right:I.key==="new"?S.new=I.right:S.params.push(I):S.params.push(I);return S}function V(d,S,I){return d==="prefix"?I+S:S+I}function M(d,S){switch(S){case"double":return`"${d}"`;case"single":return`'${d}'`;case void 0:return d}}function k(){return{JsdocTypeParenthesis:(d,S)=>`(${d.element!==void 0?S(d.element):""})`,JsdocTypeKeyof:(d,S)=>`keyof ${S(d.element)}`,JsdocTypeFunction:(d,S)=>{var I;if(d.arrow){if(d.returnType===void 0)throw new Error("Arrow function needs a return type.");let J=`${d.typeParameters!==void 0?`<${(I=d.typeParameters.map(S).join(", "))!==null&&I!==void 0?I:""}>`:""}(${d.parameters.map(S).join(", ")}) => ${S(d.returnType)}`;return d.constructor&&(J="new "+J),J}else{let J=d.constructor?"new":"function";return d.parenthesis&&(J+=`(${d.parameters.map(S).join(", ")})`,d.returnType!==void 0&&(J+=`: ${S(d.returnType)}`)),J}},JsdocTypeName:d=>d.value,JsdocTypeTuple:(d,S)=>`[${d.elements.map(S).join(", ")}]`,JsdocTypeVariadic:(d,S)=>d.meta.position===void 0?"...":V(d.meta.position,S(d.element),"..."),JsdocTypeNamePath:(d,S)=>{let I=S(d.left),J=S(d.right);switch(d.pathType){case"inner":return`${I}~${J}`;case"instance":return`${I}#${J}`;case"property":return`${I}.${J}`;case"property-brackets":return`${I}[${J}]`}},JsdocTypeStringValue:d=>M(d.value,d.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(d,S)=>{if(d.meta.brackets==="square"){let I=d.elements[0],J=S(I);return I.type==="JsdocTypeUnion"||I.type==="JsdocTypeIntersection"?`(${J})[]`:`${J}[]`}else return`${S(d.left)}${d.meta.dot?".":""}<${d.infer===!0?"infer ":""}${d.elements.map(S).join(", ")}>`},JsdocTypeImport:(d,S)=>`import(${S(d.element)})`,JsdocTypeObjectField:(d,S)=>{let I="";return d.readonly&&(I+="readonly "),typeof d.key=="string"?I+=M(d.key,d.meta.quote):I+=S(d.key),d.optional&&(I+="?"),d.right===void 0?I:I+`: ${S(d.right)}`},JsdocTypeJsdocObjectField:(d,S)=>`${S(d.left)}: ${S(d.right)}`,JsdocTypeKeyValue:(d,S)=>{let I=d.key;return d.optional&&(I+="?"),d.variadic&&(I="..."+I),d.right===void 0?I:I+`: ${S(d.right)}`},JsdocTypeSpecialNamePath:d=>`${d.specialType}:${M(d.value,d.meta.quote)}`,JsdocTypeNotNullable:(d,S)=>V(d.meta.position,S(d.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(d,S)=>V(d.meta.position,S(d.element),"?"),JsdocTypeNumber:d=>d.value.toString(),JsdocTypeObject:(d,S)=>{var I,J;return`{${(d.meta.separator==="linebreak"&&d.elements.length>1?`
|
|
15
|
+
`+((I=d.meta.propertyIndent)!==null&&I!==void 0?I:""):"")+d.elements.map(S).join(d.meta.separator==="comma"?", ":d.meta.separator==="linebreak"?`
|
|
16
|
+
`+((J=d.meta.propertyIndent)!==null&&J!==void 0?J:""):"; ")+(d.meta.separator==="linebreak"&&d.elements.length>1?`
|
|
17
|
+
`:"")}}`},JsdocTypeOptional:(d,S)=>V(d.meta.position,S(d.element),"="),JsdocTypeSymbol:(d,S)=>`${d.value}(${d.element!==void 0?S(d.element):""})`,JsdocTypeTypeof:(d,S)=>`typeof ${S(d.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(d,S)=>d.elements.map(S).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(d,S)=>d.elements.map(S).join(" & "),JsdocTypeProperty:d=>M(d.value,d.meta.quote),JsdocTypePredicate:(d,S)=>`${S(d.left)} is ${S(d.right)}`,JsdocTypeIndexSignature:(d,S)=>`[${d.key}: ${S(d.right)}]`,JsdocTypeMappedType:(d,S)=>`[${d.key} in ${S(d.right)}]`,JsdocTypeAsserts:(d,S)=>`asserts ${S(d.left)} is ${S(d.right)}`,JsdocTypeReadonlyArray:(d,S)=>`readonly ${S(d.element)}`,JsdocTypeAssertsPlain:(d,S)=>`asserts ${S(d.element)}`,JsdocTypeConditional:(d,S)=>`${S(d.checksType)} extends ${S(d.extendsType)} ? ${S(d.trueType)} : ${S(d.falseType)}`,JsdocTypeTypeParameter:(d,S)=>`${S(d.name)}${d.constraint!==void 0?` extends ${S(d.constraint)}`:""}${d.defaultValue!==void 0?` = ${S(d.defaultValue)}`:""}`}}let Y=k();function ve(d){return hr(Y,d)}let Te=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Re(d){let S={type:"NameExpression",name:d};return Te.includes(d)&&(S.reservedWord=!0),S}let Ke={JsdocTypeOptional:(d,S)=>{let I=S(d.element);return I.optional=!0,I},JsdocTypeNullable:(d,S)=>{let I=S(d.element);return I.nullable=!0,I},JsdocTypeNotNullable:(d,S)=>{let I=S(d.element);return I.nullable=!1,I},JsdocTypeVariadic:(d,S)=>{if(d.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let I=S(d.element);return I.repeatable=!0,I},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:d=>Re(M(d.value,d.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(d,S)=>{let I=D(d),J={type:"FunctionType",params:I.params.map(S)};return I.this!==void 0&&(J.this=S(I.this)),I.new!==void 0&&(J.new=S(I.new)),d.returnType!==void 0&&(J.result=S(d.returnType)),J},JsdocTypeGeneric:(d,S)=>({type:"TypeApplication",applications:d.elements.map(I=>S(I)),expression:S(d.left)}),JsdocTypeSpecialNamePath:d=>Re(d.specialType+":"+M(d.value,d.meta.quote)),JsdocTypeName:d=>d.value!=="function"?Re(d.value):{type:"FunctionType",params:[]},JsdocTypeNumber:d=>Re(d.value.toString()),JsdocTypeObject:(d,S)=>{let I={type:"RecordType",fields:[]};for(let J of d.elements)J.type!=="JsdocTypeObjectField"&&J.type!=="JsdocTypeJsdocObjectField"?I.fields.push({type:"FieldType",key:S(J),value:void 0}):I.fields.push(S(J));return I},JsdocTypeObjectField:(d,S)=>{if(typeof d.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Re(M(d.key,d.meta.quote)),value:d.right===void 0?void 0:S(d.right)}},JsdocTypeJsdocObjectField:(d,S)=>({type:"FieldType",key:S(d.left),value:S(d.right)}),JsdocTypeUnion:(d,S)=>({type:"TypeUnion",elements:d.elements.map(I=>S(I))}),JsdocTypeKeyValue:(d,S)=>({type:"FieldType",key:Re(d.key),value:d.right===void 0?void 0:S(d.right)}),JsdocTypeNamePath:(d,S)=>{let I=S(d.left),J;d.right.type==="JsdocTypeSpecialNamePath"?J=S(d.right).name:J=M(d.right.value,d.right.meta.quote);let pe=d.pathType==="inner"?"~":d.pathType==="instance"?"#":".";return Re(`${I.name}${pe}${J}`)},JsdocTypeSymbol:d=>{let S="",I=d.element,J=!1;return I?.type==="JsdocTypeVariadic"&&(I.meta.position==="prefix"?S="...":J=!0,I=I.element),I?.type==="JsdocTypeName"?S+=I.value:I?.type==="JsdocTypeNumber"&&(S+=I.value.toString()),J&&(S+="..."),Re(`${d.value}(${S})`)},JsdocTypeParenthesis:(d,S)=>S(E(d.element)),JsdocTypeMappedType:st,JsdocTypeIndexSignature:st,JsdocTypeImport:st,JsdocTypeKeyof:st,JsdocTypeTuple:st,JsdocTypeTypeof:st,JsdocTypeIntersection:st,JsdocTypeProperty:st,JsdocTypePredicate:st,JsdocTypeAsserts:st,JsdocTypeReadonlyArray:st,JsdocTypeAssertsPlain:st,JsdocTypeConditional:st,JsdocTypeTypeParameter:st};function ft(d){return hr(Ke,d)}function Le(d){switch(d){case void 0:return"none";case"single":return"single";case"double":return"double"}}function er(d){switch(d){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function mr(d,S){return S.length===2?{type:d,left:S[0],right:S[1]}:{type:d,left:S[0],right:mr(d,S.slice(1))}}let Wn={JsdocTypeOptional:(d,S)=>({type:"OPTIONAL",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(d,S)=>({type:"NULLABLE",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(d,S)=>({type:"NOT_NULLABLE",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(d,S)=>{let I={type:"VARIADIC",meta:{syntax:d.meta.position==="prefix"?"PREFIX_DOTS":d.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return d.element!==void 0&&(I.value=S(d.element)),I},JsdocTypeName:d=>({type:"NAME",name:d.value}),JsdocTypeTypeof:(d,S)=>({type:"TYPE_QUERY",name:S(d.element)}),JsdocTypeTuple:(d,S)=>({type:"TUPLE",entries:d.elements.map(S)}),JsdocTypeKeyof:(d,S)=>({type:"KEY_QUERY",value:S(d.element)}),JsdocTypeImport:d=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Le(d.element.meta.quote),string:d.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(d,S)=>{let I=D(d),J={type:d.arrow?"ARROW":"FUNCTION",params:I.params.map(pe=>{if(pe.type==="JsdocTypeKeyValue"){if(pe.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:pe.key,typeName:S(pe.right)}}else return S(pe)}),new:null,returns:null};return I.this!==void 0?J.this=S(I.this):d.arrow||(J.this=null),I.new!==void 0&&(J.new=S(I.new)),d.returnType!==void 0&&(J.returns=S(d.returnType)),J},JsdocTypeGeneric:(d,S)=>{let I={type:"GENERIC",subject:S(d.left),objects:d.elements.map(S),meta:{syntax:d.meta.brackets==="square"?"SQUARE_BRACKET":d.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return d.meta.brackets==="square"&&d.elements[0].type==="JsdocTypeFunction"&&!d.elements[0].parenthesis&&(I.objects[0]={type:"NAME",name:"function"}),I},JsdocTypeObjectField:(d,S)=>{if(typeof d.key!="string")throw new Error("Index signatures and mapped types are not supported");if(d.right===void 0)return{type:"RECORD_ENTRY",key:d.key,quoteStyle:Le(d.meta.quote),value:null,readonly:!1};let I=S(d.right);return d.optional&&(I={type:"OPTIONAL",value:I,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:d.key.toString(),quoteStyle:Le(d.meta.quote),value:I,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(d,S)=>{if(d.right===void 0)return{type:"RECORD_ENTRY",key:d.key,quoteStyle:"none",value:null,readonly:!1};let I=S(d.right);return d.optional&&(I={type:"OPTIONAL",value:I,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:d.key,quoteStyle:"none",value:I,readonly:!1}},JsdocTypeObject:(d,S)=>{let I=[];for(let J of d.elements)(J.type==="JsdocTypeObjectField"||J.type==="JsdocTypeJsdocObjectField")&&I.push(S(J));return{type:"RECORD",entries:I}},JsdocTypeSpecialNamePath:d=>{if(d.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${d.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Le(d.meta.quote),path:d.value}}},JsdocTypeNamePath:(d,S)=>{let I=!1,J,pe;d.right.type==="JsdocTypeSpecialNamePath"&&d.right.specialType==="event"?(I=!0,J=d.right.value,pe=Le(d.right.meta.quote)):(J=d.right.value,pe=Le(d.right.meta.quote));let Se={type:er(d.pathType),owner:S(d.left),name:J,quoteStyle:pe,hasEventPrefix:I};if(Se.owner.type==="MODULE"){let Fe=Se.owner;return Se.owner=Se.owner.value,Fe.value=Se,Fe}else return Se},JsdocTypeUnion:(d,S)=>mr("UNION",d.elements.map(S)),JsdocTypeParenthesis:(d,S)=>({type:"PARENTHESIS",value:S(E(d.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:d=>({type:"STRING_VALUE",quoteStyle:Le(d.meta.quote),string:d.value}),JsdocTypeIntersection:(d,S)=>mr("INTERSECTION",d.elements.map(S)),JsdocTypeNumber:d=>({type:"NUMBER_VALUE",number:d.value.toString()}),JsdocTypeSymbol:st,JsdocTypeProperty:st,JsdocTypePredicate:st,JsdocTypeMappedType:st,JsdocTypeIndexSignature:st,JsdocTypeAsserts:st,JsdocTypeReadonlyArray:st,JsdocTypeAssertsPlain:st,JsdocTypeConditional:st,JsdocTypeTypeParameter:st};function si(d){return hr(Wn,d)}function Lr(){return{JsdocTypeIntersection:(d,S)=>({type:"JsdocTypeIntersection",elements:d.elements.map(S)}),JsdocTypeGeneric:(d,S)=>({type:"JsdocTypeGeneric",left:S(d.left),elements:d.elements.map(S),meta:{dot:d.meta.dot,brackets:d.meta.brackets}}),JsdocTypeNullable:d=>d,JsdocTypeUnion:(d,S)=>({type:"JsdocTypeUnion",elements:d.elements.map(S)}),JsdocTypeUnknown:d=>d,JsdocTypeUndefined:d=>d,JsdocTypeTypeof:(d,S)=>({type:"JsdocTypeTypeof",element:S(d.element)}),JsdocTypeSymbol:(d,S)=>{let I={type:"JsdocTypeSymbol",value:d.value};return d.element!==void 0&&(I.element=S(d.element)),I},JsdocTypeOptional:(d,S)=>({type:"JsdocTypeOptional",element:S(d.element),meta:{position:d.meta.position}}),JsdocTypeObject:(d,S)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:d.elements.map(S)}),JsdocTypeNumber:d=>d,JsdocTypeNull:d=>d,JsdocTypeNotNullable:(d,S)=>({type:"JsdocTypeNotNullable",element:S(d.element),meta:{position:d.meta.position}}),JsdocTypeSpecialNamePath:d=>d,JsdocTypeObjectField:(d,S)=>({type:"JsdocTypeObjectField",key:d.key,right:d.right===void 0?void 0:S(d.right),optional:d.optional,readonly:d.readonly,meta:d.meta}),JsdocTypeJsdocObjectField:(d,S)=>({type:"JsdocTypeJsdocObjectField",left:S(d.left),right:S(d.right)}),JsdocTypeKeyValue:(d,S)=>({type:"JsdocTypeKeyValue",key:d.key,right:d.right===void 0?void 0:S(d.right),optional:d.optional,variadic:d.variadic}),JsdocTypeImport:(d,S)=>({type:"JsdocTypeImport",element:S(d.element)}),JsdocTypeAny:d=>d,JsdocTypeStringValue:d=>d,JsdocTypeNamePath:d=>d,JsdocTypeVariadic:(d,S)=>{let I={type:"JsdocTypeVariadic",meta:{position:d.meta.position,squareBrackets:d.meta.squareBrackets}};return d.element!==void 0&&(I.element=S(d.element)),I},JsdocTypeTuple:(d,S)=>({type:"JsdocTypeTuple",elements:d.elements.map(S)}),JsdocTypeName:d=>d,JsdocTypeFunction:(d,S)=>{let I={type:"JsdocTypeFunction",arrow:d.arrow,parameters:d.parameters.map(S),constructor:d.constructor,parenthesis:d.parenthesis};return d.returnType!==void 0&&(I.returnType=S(d.returnType)),I},JsdocTypeKeyof:(d,S)=>({type:"JsdocTypeKeyof",element:S(d.element)}),JsdocTypeParenthesis:(d,S)=>({type:"JsdocTypeParenthesis",element:S(d.element)}),JsdocTypeProperty:d=>d,JsdocTypePredicate:(d,S)=>({type:"JsdocTypePredicate",left:S(d.left),right:S(d.right)}),JsdocTypeIndexSignature:(d,S)=>({type:"JsdocTypeIndexSignature",key:d.key,right:S(d.right)}),JsdocTypeMappedType:(d,S)=>({type:"JsdocTypeMappedType",key:d.key,right:S(d.right)}),JsdocTypeAsserts:(d,S)=>({type:"JsdocTypeAsserts",left:S(d.left),right:S(d.right)}),JsdocTypeReadonlyArray:(d,S)=>({type:"JsdocTypeReadonlyArray",element:S(d.element)}),JsdocTypeAssertsPlain:(d,S)=>({type:"JsdocTypeAssertsPlain",element:S(d.element)}),JsdocTypeConditional:(d,S)=>({type:"JsdocTypeConditional",checksType:S(d.checksType),extendsType:S(d.extendsType),trueType:S(d.trueType),falseType:S(d.falseType)}),JsdocTypeTypeParameter:(d,S)=>({type:"JsdocTypeTypeParameter",name:S(d.name),constraint:d.constraint!==void 0?S(d.constraint):void 0,defaultValue:d.defaultValue!==void 0?S(d.defaultValue):void 0})}}let Kr={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function On(d,S,I,J,pe){J?.(d,S,I);let Se=Kr[d.type];for(let Fe of Se){let Pe=d[Fe];if(Pe!==void 0)if(Array.isArray(Pe))for(let ht of Pe)On(ht,d,Fe,J,pe);else On(Pe,d,Fe,J,pe)}pe?.(d,S,I)}function eo(d,S,I){On(d,void 0,void 0,S,I)}r.catharsisTransform=ft,r.identityTransformRules=Lr,r.jtpTransform=si,r.parse=qt,r.stringify=ve,r.stringifyRules=k,r.transform=hr,r.traverse=eo,r.tryParse=Ct,r.visitorKeys=Kr}))}}),sL=de({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,(function(){function r(p,c){for(var m=0;m<c.length;m++){var y=c[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,(g=y.key,b=void 0,typeof(b=(function(w,A){if(typeof w!="object"||w===null)return w;var x=w[Symbol.toPrimitive];if(x!==void 0){var _=x.call(w,A);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(w)})(g,"string"))=="symbol"?b:String(b)),y)}var g,b}var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},i={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},a=function(p){var c=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),m=Number(p).toString().match(c);return m?m[0]:null},l=function(){return typeof window<"u"?window.navigator:null},u=(function(){function p(g){var b;(function(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")})(this,p),this.userAgent=g||((b=l())===null||b===void 0?void 0:b.userAgent)||null}var c,m,y;return c=p,m=[{key:"parseUserAgent",value:function(g){var b,w,A,x={},_=g||this.userAgent||"",R=_.toLowerCase().replace(/\s\s+/g," "),j=/(edge)\/([\w.]+)/.exec(R)||/(edg)[/]([\w.]+)/.exec(R)||/(opr)[/]([\w.]+)/.exec(R)||/(opt)[/]([\w.]+)/.exec(R)||/(fxios)[/]([\w.]+)/.exec(R)||/(edgios)[/]([\w.]+)/.exec(R)||/(jsdom)[/]([\w.]+)/.exec(R)||/(samsungbrowser)[/]([\w.]+)/.exec(R)||/(electron)[/]([\w.]+)/.exec(R)||/(chrome)[/]([\w.]+)/.exec(R)||/(crios)[/]([\w.]+)/.exec(R)||/(opios)[/]([\w.]+)/.exec(R)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(R)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(R)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(R)||/(webkit)[/]([\w.]+)/.exec(R)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(R)||/(msie) ([\w.]+)/.exec(R)||/(fennec)[/]([\w.]+)/.exec(R)||R.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(R)||R.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(R)||[],B=/(ipad)/.exec(R)||/(ipod)/.exec(R)||/(iphone)/.exec(R)||/(jsdom)/.exec(R)||/(windows phone)/.exec(R)||/(xbox)/.exec(R)||/(win)/.exec(R)||/(tablet)/.exec(R)||/(android)/.test(R)&&/(mobile)/.test(R)===!1&&["androidTablet"]||/(android)/.exec(R)||/(mac)/.exec(R)||/(linux)/.exec(R)||/(cros)/.exec(R)||[],F=j[5]||j[3]||j[1]||null,E=B[0]||null,P=j[4]||j[2]||null,N=l();F==="chrome"&&typeof(N==null||(b=N.brave)===null||b===void 0?void 0:b.isBrave)=="function"&&(F="brave"),F&&(x[F]=!0),E&&(x[E]=!0);var L=!!(x.tablet||x.android||x.androidTablet),Z=!!(x.ipad||x.tablet||x.androidTablet),H=!!(x.android||x.androidTablet||x.tablet||x.ipad||x.ipod||x.iphone||x["windows phone"]),te=!!(x.cros||x.mac||x.linux||x.win),W=!!(x.brave||x.chrome||x.crios||x.opr||x.safari||x.edg||x.electron),$=!!(x.msie||x.rv);return{name:(w=n[F])!==null&&w!==void 0?w:null,platform:(A=i[E])!==null&&A!==void 0?A:null,userAgent:_,version:P,shortVersion:P?a(parseFloat(P),2):null,isAndroid:L,isTablet:Z,isMobile:H,isDesktop:te,isWebkit:W,isIE:$}}},{key:"getBrowserInfo",value:function(){var g=this.parseUserAgent();return{name:g.name,platform:g.platform,userAgent:g.userAgent,version:g.version,shortVersion:g.shortVersion}}}],y=[{key:"VERSION",get:function(){return"3.4.0"}}],m&&r(c.prototype,m),y&&r(c,y),Object.defineProperty(c,"prototype",{writable:!1}),p})();return u}))}}),Hy={};vn(Hy,{AI_PROMPT_NUDGE:()=>qL,AI_SETUP_ANALYTICS_REQUEST:()=>kL,AI_SETUP_ANALYTICS_RESPONSE:()=>FL,ARGTYPES_INFO_REQUEST:()=>V_,ARGTYPES_INFO_RESPONSE:()=>bm,CHANNEL_CREATED:()=>uL,CHANNEL_WS_DISCONNECT:()=>S_,CONFIG_ERROR:()=>A_,CREATE_NEW_STORYFILE_REQUEST:()=>cL,CREATE_NEW_STORYFILE_RESPONSE:()=>dL,CURRENT_STORY_WAS_SET:()=>mm,DOCS_PREPARED:()=>__,DOCS_RENDERED:()=>Gy,FILE_COMPONENT_SEARCH_REQUEST:()=>pL,FILE_COMPONENT_SEARCH_RESPONSE:()=>fL,FORCE_REMOUNT:()=>vd,FORCE_RE_RENDER:()=>Ky,GHOST_STORIES_REQUEST:()=>NL,GHOST_STORIES_RESPONSE:()=>IL,GLOBALS_UPDATED:()=>Yl,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>U_,NAVIGATE_URL:()=>hL,OPEN_IN_EDITOR_REQUEST:()=>BL,OPEN_IN_EDITOR_RESPONSE:()=>LL,PLAY_FUNCTION_THREW_EXCEPTION:()=>C_,PRELOAD_ENTRIES:()=>x_,PREVIEW_BUILDER_PROGRESS:()=>mL,PREVIEW_INITIALIZED:()=>R_,PREVIEW_KEYDOWN:()=>D_,REGISTER_SUBSCRIPTION:()=>yL,REQUEST_WHATS_NEW_DATA:()=>TL,RESET_STORY_ARGS:()=>Yy,RESULT_WHATS_NEW_DATA:()=>xL,SAVE_STORY_REQUEST:()=>PL,SAVE_STORY_RESPONSE:()=>OL,SELECT_STORY:()=>gL,SET_CONFIG:()=>bL,SET_CURRENT_STORY:()=>Xy,SET_FILTER:()=>vL,SET_GLOBALS:()=>P_,SET_INDEX:()=>EL,SET_STORIES:()=>wL,SET_WHATS_NEW_CACHE:()=>RL,SHARED_STATE_CHANGED:()=>SL,SHARED_STATE_SET:()=>AL,SHARE_ISOLATE_MODE:()=>ML,SIDEBAR_FILTER_CHANGED:()=>jL,STORIES_COLLAPSE_ALL:()=>_L,STORIES_EXPAND_ALL:()=>CL,STORY_ARGS_UPDATED:()=>O_,STORY_CHANGED:()=>N_,STORY_ERRORED:()=>I_,STORY_FINISHED:()=>gm,STORY_HOT_UPDATED:()=>q_,STORY_INDEX_INVALIDATED:()=>F_,STORY_MISSING:()=>ym,STORY_PREPARED:()=>k_,STORY_RENDERED:()=>Ed,STORY_RENDER_PHASE_CHANGED:()=>wa,STORY_SPECIFIED:()=>B_,STORY_THREW_EXCEPTION:()=>L_,STORY_UNCHANGED:()=>M_,TELEMETRY_ERROR:()=>$_,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>DL,UNHANDLED_ERRORS_WHILE_PLAYING:()=>T_,UPDATE_GLOBALS:()=>Qy,UPDATE_QUERY_PARAMS:()=>j_,UPDATE_STORY_ARGS:()=>Zy,default:()=>lL});var Wy=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_INITIALIZED="previewInitialized",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.GHOST_STORIES_REQUEST="ghostStoriesRequest",e.GHOST_STORIES_RESPONSE="ghostStoriesResponse",e.AI_SETUP_ANALYTICS_RESPONSE="aiSetupAnalyticsResponse",e.AI_SETUP_ANALYTICS_REQUEST="aiSetupAnalyticsRequest",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e.MANAGER_INERT_ATTRIBUTE_CHANGED="managerInertAttributeChanged",e.SHARE_ISOLATE_MODE="shareIsolateMode",e.AI_PROMPT_NUDGE="aiPromptNudge",e.SIDEBAR_FILTER_CHANGED="sidebarFilterChanged",e))(Wy||{}),lL=Wy,{CHANNEL_WS_DISCONNECT:S_,CHANNEL_CREATED:uL,CONFIG_ERROR:A_,CREATE_NEW_STORYFILE_REQUEST:cL,CREATE_NEW_STORYFILE_RESPONSE:dL,CURRENT_STORY_WAS_SET:mm,DOCS_PREPARED:__,DOCS_RENDERED:Gy,FILE_COMPONENT_SEARCH_REQUEST:pL,FILE_COMPONENT_SEARCH_RESPONSE:fL,FORCE_RE_RENDER:Ky,FORCE_REMOUNT:vd,GLOBALS_UPDATED:Yl,NAVIGATE_URL:hL,PLAY_FUNCTION_THREW_EXCEPTION:C_,UNHANDLED_ERRORS_WHILE_PLAYING:T_,PRELOAD_ENTRIES:x_,PREVIEW_INITIALIZED:R_,PREVIEW_BUILDER_PROGRESS:mL,PREVIEW_KEYDOWN:D_,REGISTER_SUBSCRIPTION:yL,RESET_STORY_ARGS:Yy,SELECT_STORY:gL,SET_CONFIG:bL,SET_CURRENT_STORY:Xy,SET_FILTER:vL,SET_GLOBALS:P_,SET_INDEX:EL,SET_STORIES:wL,SHARED_STATE_CHANGED:SL,SHARED_STATE_SET:AL,STORIES_COLLAPSE_ALL:_L,STORIES_EXPAND_ALL:CL,STORY_ARGS_UPDATED:O_,STORY_CHANGED:N_,STORY_ERRORED:I_,STORY_INDEX_INVALIDATED:F_,STORY_MISSING:ym,STORY_PREPARED:k_,STORY_RENDER_PHASE_CHANGED:wa,STORY_RENDERED:Ed,STORY_FINISHED:gm,STORY_SPECIFIED:B_,STORY_THREW_EXCEPTION:L_,STORY_UNCHANGED:M_,STORY_HOT_UPDATED:q_,UPDATE_GLOBALS:Qy,UPDATE_QUERY_PARAMS:j_,UPDATE_STORY_ARGS:Zy,REQUEST_WHATS_NEW_DATA:TL,RESULT_WHATS_NEW_DATA:xL,SET_WHATS_NEW_CACHE:RL,TOGGLE_WHATS_NEW_NOTIFICATIONS:DL,TELEMETRY_ERROR:$_,SAVE_STORY_REQUEST:PL,SAVE_STORY_RESPONSE:OL,ARGTYPES_INFO_REQUEST:V_,ARGTYPES_INFO_RESPONSE:bm,GHOST_STORIES_REQUEST:NL,GHOST_STORIES_RESPONSE:IL,AI_SETUP_ANALYTICS_RESPONSE:FL,AI_SETUP_ANALYTICS_REQUEST:kL,OPEN_IN_EDITOR_REQUEST:BL,OPEN_IN_EDITOR_RESPONSE:LL,MANAGER_INERT_ATTRIBUTE_CHANGED:U_,SHARE_ISOLATE_MODE:ML,AI_PROMPT_NUDGE:qL,SIDEBAR_FILTER_CHANGED:jL}=Wy,J_={};vn(J_,{global:()=>He});var He=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),z_={"@storybook/global":"__STORYBOOK_MODULE_GLOBAL__","storybook/test":"__STORYBOOK_MODULE_TEST__","storybook/actions":"__STORYBOOK_MODULE_ACTIONS__","storybook/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__","storybook/internal/channels":"__STORYBOOK_MODULE_CHANNELS__","storybook/internal/client-logger":"__STORYBOOK_MODULE_CLIENT_LOGGER__","storybook/internal/core-events":"__STORYBOOK_MODULE_CORE_EVENTS__","storybook/internal/preview-errors":"__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__","storybook/internal/types":"__STORYBOOK_MODULE_TYPES__","storybook/internal/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__"},$L=Object.keys(z_),H_={};vn(H_,{Channel:()=>Yd,HEARTBEAT_INTERVAL:()=>yC,HEARTBEAT_MAX_LATENCY:()=>gC,PostMessageTransport:()=>mC,WebsocketTransport:()=>bC,createBrowserChannel:()=>r5,default:()=>t5});function Rt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(u,p){var c=p.match(/\n([\t ]+|(?!\s).)/g);return c?u.concat(c.map(function(m){var y,g;return(g=(y=m.match(/[\t ]/g))===null||y===void 0?void 0:y.length)!==null&&g!==void 0?g:0})):u},[]);if(i.length){var a=new RegExp(`
|
|
18
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(u){return u.replace(a,`
|
|
19
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var l=n[0];return t.forEach(function(u,p){var c=l.match(/(?:^|\n)( *)$/),m=c?c[1]:"",y=u;typeof u=="string"&&u.includes(`
|
|
20
|
+
`)&&(y=String(u).split(`
|
|
21
|
+
`).map(function(g,b){return b===0?g:""+m+g}).join(`
|
|
22
|
+
`)),l+=y+n[p+1]}),l}var d1=new Map,VL="UNIVERSAL_STORE:",qn={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},ua=class bt{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,i)=>{let a=typeof n=="function",l=a?"*":n,u=a?n:i;if(this.debug("subscribe",{eventType:l,listener:u}),!u)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(l)||this.listeners.set(l,new Set),this.listeners.get(l).add(u),()=>{this.debug("unsubscribe",{eventType:l,listener:u}),this.listeners.has(l)&&(this.listeners.get(l).delete(u),this.listeners.get(l)?.size===0&&this.listeners.delete(l))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==bt.Status.READY)throw new TypeError(Rt`Cannot send event before store is ready. You can get the current status with store.status,
|
|
23
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
24
|
+
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!bt.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(bt.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?bt.ActorType.LEADER:bt.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${VL}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===bt.ActorType.LEADER)this.syncing={state:qn.RESOLVED,promise:Promise.resolve()};else{let n,i,a=new Promise((l,u)=>{n=()=>{this.syncing.state===qn.PENDING&&(this.syncing.state=qn.RESOLVED,l())},i=p=>{this.syncing.state===qn.PENDING&&(this.syncing.state=qn.REJECTED,u(p))}});this.syncing={state:qn.PENDING,promise:a,resolve:n,reject:i}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??bt.preparation.channel,this.environment=r?.environment??bt.preparation.environment,this.channel&&this.environment?(bt.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):bt.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((i,a)=>{t=l=>{i(l)},r=(...l)=>{a(l)}});bt.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??bt.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return bt.Status.UNPREPARED;switch(this.syncing?.state){case qn.PENDING:case void 0:return bt.Status.SYNCING;case qn.REJECTED:return bt.Status.ERROR;case qn.RESOLVED:default:return bt.Status.READY}}untilReady(){return Promise.all([bt.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Rt`[UniversalStore]
|
|
25
|
+
create`,{options:t});let r=d1.get(t.id);if(r)return console.warn(Rt`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
26
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;bt.isInternalConstructing=!0;let n=new bt(t);return d1.set(t.id,n),n}static __prepare(t,r){bt.preparation.channel=t,bt.preparation.environment=r,bt.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==bt.Status.READY)throw new TypeError(Rt`Cannot set state before store is ready. You can get the current status with store.status,
|
|
27
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
28
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let i={type:bt.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(bt.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===bt.ActorType.LEADER?this.emitToChannel({type:bt.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:bt.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:bt.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),i=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:i}),[...n??[],...i??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===qn.PENDING&&r.type!==bt.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===bt.ActorType.LEADER){let i=!0;switch(r.type){case bt.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let a={type:bt.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor});break;case bt.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=qn.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Rt`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
29
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
30
|
+
Leaders detected:
|
|
31
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
32
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}i&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===bt.ActorType.FOLLOWER)switch(r.type){case bt.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==qn.PENDING)break;this.syncing.resolve?.();let i={type:bt.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(i,n);break}r.type===bt.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Rt`[UniversalStore::${this.id}::${this.environment??bt.Environment.UNKNOWN}]
|
|
33
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){bt.preparation.reject(new Error("reset")),bt.setupPreparationPromise(),bt.isInternalConstructing=!1}};ua.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},ua.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},ua.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},ua.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},ua.isInternalConstructing=!1,ua.setupPreparationPromise();var wh=ua,UL=e=>e.transports!==void 0,JL=()=>Math.random().toString(16).slice(2),Yd=class{constructor(e={}){this.sender=JL(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,UL(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let i=()=>{this.transports.forEach(a=>{a.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},W_={};vn(W_,{deprecate:()=>eg,logger:()=>lr,once:()=>Sr,pretty:()=>Dn});var{LOGLEVEL:zL}=He,xo={trace:1,debug:2,info:3,warn:4,error:5,silent:10},HL=zL,ns=xo[HL]||xo.info,lr={trace:(e,...t)=>{ns<=xo.trace&&console.trace(e,...t)},debug:(e,...t)=>{ns<=xo.debug&&console.debug(e,...t)},info:(e,...t)=>{ns<=xo.info&&console.info(e,...t)},warn:(e,...t)=>{ns<=xo.warn&&console.warn(e,...t)},error:(e,...t)=>{ns<=xo.error&&console.error(e,...t)},log:(e,...t)=>{ns<xo.silent&&console.log(e,...t)}},vm=new Set,Sr=e=>(t,...r)=>{if(!vm.has(t))return vm.add(t),lr[e](t,...r)};Sr.clear=()=>vm.clear();Sr.trace=Sr("trace");Sr.debug=Sr("debug");Sr.info=Sr("info");Sr.warn=Sr("warn");Sr.error=Sr("error");Sr.log=Sr("log");var eg=Sr("warn"),Dn=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,i=/<\/span>/gi,a;for(r.push(t[0].replace(n,"%c").replace(i,"%c"));a=n.exec(t[0]);)r.push(a[2]),r.push("");for(let l=1;l<t.length;l++)r.push(t[l])}lr[e].apply(lr,r)};Dn.trace=Dn("trace");Dn.debug=Dn("debug");Dn.info=Dn("info");Dn.warn=Dn("warn");Dn.error=Dn("error");var WL=Object.create,G_=Object.defineProperty,GL=Object.getOwnPropertyDescriptor,K_=Object.getOwnPropertyNames,KL=Object.getPrototypeOf,YL=Object.prototype.hasOwnProperty,St=(e,t)=>function(){return t||(0,e[K_(e)[0]])((t={exports:{}}).exports,t),t.exports},XL=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of K_(t))!YL.call(e,i)&&i!==r&&G_(e,i,{get:()=>t[i],enumerable:!(n=GL(t,i))||n.enumerable});return e},tg=(e,t,r)=>(r=e!=null?WL(KL(e)):{},XL(!e||!e.__esModule?G_(r,"default",{value:e,enumerable:!0}):r,e)),QL=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],ZL=["detail"];function eM(e){let t=QL.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of ZL.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Y_=St({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),tM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),rM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),nM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),iM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),oM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),rg=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),aM=St({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),sM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),lM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),uM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),cM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),dM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),pM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),fM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),hM=St({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=fM();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),mM=St({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ng=St({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=mM();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),yM=St({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),X_=St({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var l in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var u=Object.getOwnPropertySymbols(r);if(u.length!==1||u[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(r,n);if(p.value!==a||p.enumerable!==!0)return!1}return!0}}}),Q_=St({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=X_();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Z_=St({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),eC=St({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Y_();t.exports=r.getPrototypeOf||null}}),gM=St({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,a="[object Function]",l=function(c,m){for(var y=[],g=0;g<c.length;g+=1)y[g]=c[g];for(var b=0;b<m.length;b+=1)y[b+c.length]=m[b];return y},u=function(c,m){for(var y=[],g=m,b=0;g<c.length;g+=1,b+=1)y[b]=c[g];return y},p=function(c,m){for(var y="",g=0;g<c.length;g+=1)y+=c[g],g+1<c.length&&(y+=m);return y};t.exports=function(c){var m=this;if(typeof m!="function"||n.apply(m)!==a)throw new TypeError(r+m);for(var y=u(arguments,1),g,b=function(){if(this instanceof g){var R=m.apply(this,l(y,arguments));return Object(R)===R?R:this}return m.apply(c,l(y,arguments))},w=i(0,m.length-y.length),A=[],x=0;x<w;x++)A[x]="$"+x;if(g=Function("binder","return function ("+p(A,",")+"){ return binder.apply(this,arguments); }")(b),m.prototype){var _=function(){};_.prototype=m.prototype,g.prototype=new _,_.prototype=null}return g}}}),Xd=St({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=gM();t.exports=Function.prototype.bind||r}}),ig=St({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),tC=St({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),bM=St({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),vM=St({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Xd(),n=tC(),i=ig(),a=bM();t.exports=a||r.call(i,n)}}),rC=St({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Xd(),n=rg(),i=ig(),a=vM();t.exports=function(l){if(l.length<1||typeof l[0]!="function")throw new n("a function is required");return a(r,i,l)}}}),EM=St({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=rC(),n=ng(),i;try{i=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var a=!!i&&n&&n(Object.prototype,"__proto__"),l=Object,u=l.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof u=="function"?(function(p){return u(p==null?p:l(p))}):!1}}),wM=St({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Z_(),n=eC(),i=EM();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:i?function(a){return i(a)}:null}}),nC=St({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=Xd();t.exports=i.call(r,n)}}),SM=St({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Y_(),i=tM(),a=rM(),l=nM(),u=iM(),p=oM(),c=rg(),m=aM(),y=sM(),g=lM(),b=uM(),w=cM(),A=dM(),x=pM(),_=hM(),R=Function,j=function(ke){try{return R('"use strict"; return ('+ke+").constructor;")()}catch{}},B=ng(),F=yM(),E=function(){throw new c},P=B?(function(){try{return arguments.callee,E}catch{try{return B(arguments,"callee").get}catch{return E}}})():E,N=Q_()(),L=wM(),Z=eC(),H=Z_(),te=tC(),W=ig(),$={},K=typeof Uint8Array>"u"||!L?r:L(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":N&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!L?r:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":l,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&L?L(""[Symbol.iterator]()):r,"%Symbol%":N?Symbol:r,"%SyntaxError%":p,"%ThrowTypeError%":P,"%TypedArray%":K,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":te,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":Z,"%Math.abs%":y,"%Math.floor%":g,"%Math.max%":b,"%Math.min%":w,"%Math.pow%":A,"%Math.round%":x,"%Math.sign%":_,"%Reflect.getPrototypeOf%":H};if(L)try{null.error}catch(ke){ae=L(L(ke)),ne["%Error.prototype%"]=ae}var ae,oe=function ke(Ue){var Ge;if(Ue==="%AsyncFunction%")Ge=j("async function () {}");else if(Ue==="%GeneratorFunction%")Ge=j("function* () {}");else if(Ue==="%AsyncGeneratorFunction%")Ge=j("async function* () {}");else if(Ue==="%AsyncGenerator%"){var We=ke("%AsyncGeneratorFunction%");We&&(Ge=We.prototype)}else if(Ue==="%AsyncIteratorPrototype%"){var nt=ke("%AsyncGenerator%");nt&&L&&(Ge=L(nt.prototype))}return ne[Ue]=Ge,Ge},Ae={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ce=Xd(),re=nC(),G=Ce.call(W,Array.prototype.concat),he=Ce.call(te,Array.prototype.splice),De=Ce.call(W,String.prototype.replace),_e=Ce.call(W,String.prototype.slice),ge=Ce.call(W,RegExp.prototype.exec),Ve=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$e=/\\(\\)?/g,lt=function(ke){var Ue=_e(ke,0,1),Ge=_e(ke,-1);if(Ue==="%"&&Ge!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(Ge==="%"&&Ue!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var We=[];return De(ke,Ve,function(nt,it,pt,Bt){We[We.length]=pt?De(Bt,$e,"$1"):it||nt}),We},le=function(ke,Ue){var Ge=ke,We;if(re(Ae,Ge)&&(We=Ae[Ge],Ge="%"+We[0]+"%"),re(ne,Ge)){var nt=ne[Ge];if(nt===$&&(nt=oe(Ge)),typeof nt>"u"&&!Ue)throw new c("intrinsic "+ke+" exists, but is not available. Please file an issue!");return{alias:We,name:Ge,value:nt}}throw new p("intrinsic "+ke+" does not exist!")};t.exports=function(ke,Ue){if(typeof ke!="string"||ke.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ue!="boolean")throw new c('"allowMissing" argument must be a boolean');if(ge(/^%?[^%]*%?$/,ke)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ge=lt(ke),We=Ge.length>0?Ge[0]:"",nt=le("%"+We+"%",Ue),it=nt.name,pt=nt.value,Bt=!1,ur=nt.alias;ur&&(We=ur[0],he(Ge,G([0,1],ur)));for(var mt=1,Lt=!0;mt<Ge.length;mt+=1){var At=Ge[mt],Vr=_e(At,0,1),fr=_e(At,-1);if((Vr==='"'||Vr==="'"||Vr==="`"||fr==='"'||fr==="'"||fr==="`")&&Vr!==fr)throw new p("property names with quotes must have matching quotes");if((At==="constructor"||!Lt)&&(Bt=!0),We+="."+At,it="%"+We+"%",re(ne,it))pt=ne[it];else if(pt!=null){if(!(At in pt)){if(!Ue)throw new c("base intrinsic for "+ke+" exists, but the property is not available.");return}if(B&&mt+1>=Ge.length){var je=B(pt,At);Lt=!!je,Lt&&"get"in je&&!("originalValue"in je.get)?pt=je.get:pt=pt[At]}else Lt=re(pt,At),pt=pt[At];Lt&&!Bt&&(ne[it]=pt)}}return pt}}}),og=St({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=SM(),n=rC(),i=n([r("%String.prototype.indexOf%")]);t.exports=function(a,l){var u=r(a,!!l);return typeof u=="function"&&i(a,".prototype.")>-1?n([u]):u}}}),AM=St({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=X_();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),iC=St({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=og(),n=AM()(),i=nC(),a=ng(),l;n?(u=r("RegExp.prototype.exec"),p={},c=function(){throw p},m={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=c),l=function(b){if(!b||typeof b!="object")return!1;var w=a(b,"lastIndex"),A=w&&i(w,"value");if(!A)return!1;try{u(b,m)}catch(x){return x===p}}):(y=r("Object.prototype.toString"),g="[object RegExp]",l=function(b){return!b||typeof b!="object"&&typeof b!="function"?!1:y(b)===g});var u,p,c,m,y,g;t.exports=l}}),_M=St({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(i){if(!i)return!1;var a=r.call(i);return a==="[object Function]"||typeof i=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)}}}),CM=St({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=og(),n=iC(),i=r("RegExp.prototype.exec"),a=rg();t.exports=function(l){if(!n(l))throw new a("`regex` must be a RegExp");return function(u){return i(l,u)!==null}}}}),TM=St({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=og(),n=r("Object.prototype.toString"),i=Q_()(),a=CM();i?(l=r("Symbol.prototype.toString"),u=a(/^Symbol\(.*\)$/),p=function(c){return typeof c.valueOf()!="symbol"?!1:u(l(c))},t.exports=function(c){if(typeof c=="symbol")return!0;if(!c||typeof c!="object"||n(c)!=="[object Symbol]")return!1;try{return p(c)}catch{return!1}}):t.exports=function(c){return!1};var l,u,p}}),xM=tg(iC()),RM=tg(_M()),DM=tg(TM());function PM(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var OM=typeof global=="object"&&global&&global.Object===Object&&global,NM=OM,IM=typeof self=="object"&&self&&self.Object===Object&&self,FM=NM||IM||Function("return this")(),ag=FM,kM=ag.Symbol,ys=kM,oC=Object.prototype,BM=oC.hasOwnProperty,LM=oC.toString,wl=ys?ys.toStringTag:void 0;function MM(e){var t=BM.call(e,wl),r=e[wl];try{e[wl]=void 0;var n=!0}catch{}var i=LM.call(e);return n&&(t?e[wl]=r:delete e[wl]),i}var qM=MM,jM=Object.prototype,$M=jM.toString;function VM(e){return $M.call(e)}var UM=VM,JM="[object Null]",zM="[object Undefined]",p1=ys?ys.toStringTag:void 0;function HM(e){return e==null?e===void 0?zM:JM:p1&&p1 in Object(e)?qM(e):UM(e)}var aC=HM;function WM(e){return e!=null&&typeof e=="object"}var GM=WM,KM="[object Symbol]";function YM(e){return typeof e=="symbol"||GM(e)&&aC(e)==KM}var sg=YM;function XM(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var QM=XM,ZM=Array.isArray,lg=ZM,f1=ys?ys.prototype:void 0,h1=f1?f1.toString:void 0;function sC(e){if(typeof e=="string")return e;if(lg(e))return QM(e,sC)+"";if(sg(e))return h1?h1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var eq=sC;function tq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var lC=tq,rq="[object AsyncFunction]",nq="[object Function]",iq="[object GeneratorFunction]",oq="[object Proxy]";function aq(e){if(!lC(e))return!1;var t=aC(e);return t==nq||t==iq||t==rq||t==oq}var sq=aq,lq=ag["__core-js_shared__"],Sh=lq,m1=(function(){var e=/[^.]+$/.exec(Sh&&Sh.keys&&Sh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function uq(e){return!!m1&&m1 in e}var cq=uq,dq=Function.prototype,pq=dq.toString;function fq(e){if(e!=null){try{return pq.call(e)}catch{}try{return e+""}catch{}}return""}var hq=fq,mq=/[\\^$.*+?()[\]{}|]/g,yq=/^\[object .+?Constructor\]$/,gq=Function.prototype,bq=Object.prototype,vq=gq.toString,Eq=bq.hasOwnProperty,wq=RegExp("^"+vq.call(Eq).replace(mq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sq(e){if(!lC(e)||cq(e))return!1;var t=sq(e)?wq:yq;return t.test(hq(e))}var Aq=Sq;function _q(e,t){return e?.[t]}var Cq=_q;function Tq(e,t){var r=Cq(e,t);return Aq(r)?r:void 0}var uC=Tq;function xq(e,t){return e===t||e!==e&&t!==t}var Rq=xq,Dq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pq=/^\w*$/;function Oq(e,t){if(lg(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||sg(e)?!0:Pq.test(e)||!Dq.test(e)||t!=null&&e in Object(t)}var Nq=Oq,Iq=uC(Object,"create"),Xl=Iq;function Fq(){this.__data__=Xl?Xl(null):{},this.size=0}var kq=Fq;function Bq(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lq=Bq,Mq="__lodash_hash_undefined__",qq=Object.prototype,jq=qq.hasOwnProperty;function $q(e){var t=this.__data__;if(Xl){var r=t[e];return r===Mq?void 0:r}return jq.call(t,e)?t[e]:void 0}var Vq=$q,Uq=Object.prototype,Jq=Uq.hasOwnProperty;function zq(e){var t=this.__data__;return Xl?t[e]!==void 0:Jq.call(t,e)}var Hq=zq,Wq="__lodash_hash_undefined__";function Gq(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xl&&t===void 0?Wq:t,this}var Kq=Gq;function Ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ns.prototype.clear=kq;Ns.prototype.delete=Lq;Ns.prototype.get=Vq;Ns.prototype.has=Hq;Ns.prototype.set=Kq;var y1=Ns;function Yq(){this.__data__=[],this.size=0}var Xq=Yq;function Qq(e,t){for(var r=e.length;r--;)if(Rq(e[r][0],t))return r;return-1}var Qd=Qq,Zq=Array.prototype,ej=Zq.splice;function tj(e){var t=this.__data__,r=Qd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ej.call(t,r,1),--this.size,!0}var rj=tj;function nj(e){var t=this.__data__,r=Qd(t,e);return r<0?void 0:t[r][1]}var ij=nj;function oj(e){return Qd(this.__data__,e)>-1}var aj=oj;function sj(e,t){var r=this.__data__,n=Qd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var lj=sj;function Is(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Is.prototype.clear=Xq;Is.prototype.delete=rj;Is.prototype.get=ij;Is.prototype.has=aj;Is.prototype.set=lj;var uj=Is,cj=uC(ag,"Map"),dj=cj;function pj(){this.size=0,this.__data__={hash:new y1,map:new(dj||uj),string:new y1}}var fj=pj;function hj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var mj=hj;function yj(e,t){var r=e.__data__;return mj(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Zd=yj;function gj(e){var t=Zd(this,e).delete(e);return this.size-=t?1:0,t}var bj=gj;function vj(e){return Zd(this,e).get(e)}var Ej=vj;function wj(e){return Zd(this,e).has(e)}var Sj=wj;function Aj(e,t){var r=Zd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _j=Aj;function Fs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fs.prototype.clear=fj;Fs.prototype.delete=bj;Fs.prototype.get=Ej;Fs.prototype.has=Sj;Fs.prototype.set=_j;var cC=Fs,Cj="Expected a function";function ug(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cj);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var l=e.apply(this,n);return r.cache=a.set(i,l)||a,l};return r.cache=new(ug.Cache||cC),r}ug.Cache=cC;var Tj=ug,xj=500;function Rj(e){var t=Tj(e,function(n){return r.size===xj&&r.clear(),n}),r=t.cache;return t}var Dj=Rj,Pj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oj=/\\(\\)?/g,Nj=Dj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Pj,function(r,n,i,a){t.push(i?a.replace(Oj,"$1"):n||r)}),t}),Ij=Nj;function Fj(e){return e==null?"":eq(e)}var kj=Fj;function Bj(e,t){return lg(e)?e:Nq(e,t)?[e]:Ij(kj(e))}var Lj=Bj;function Mj(e){if(typeof e=="string"||sg(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var qj=Mj;function jj(e,t){t=Lj(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qj(t[r++])];return r&&r==n?e:void 0}var $j=jj;function Vj(e,t,r){var n=e==null?void 0:$j(e,t);return n===void 0?r:n}var Uj=Vj,cg=PM,Jj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,dg=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function dC(e){if(!cg(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=eM(t),r=!0),t=Object.keys(t).reduce((n,i)=>{try{t[i]&&t[i].toJSON,n[i]=t[i]}catch{r=!0}return n},{}),r?t:e}var zj=function(e){let t,r,n,i;return function(a,l){try{if(a==="")return i=[],t=new Map([[l,"[]"]]),r=new Map,n=[],l;let u=r.get(this)||this;for(;n.length&&u!==n[0];)n.shift(),i.pop();if(typeof l=="boolean")return l;if(l===void 0)return e.allowUndefined?"_undefined_":void 0;if(l===null)return null;if(typeof l=="number")return l===Number.NEGATIVE_INFINITY?"_-Infinity_":l===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if(typeof l=="bigint")return`_bigint_${l.toString()}`;if(typeof l=="string")return Jj.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,xM.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,RM.default)(l))return;if((0,DM.default)(l)){if(!e.allowSymbol)return;let c=Symbol.keyFor(l);return c!==void 0?`_gsymbol_${c}`:`_symbol_${l.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(i)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l?.constructor?.name&&l.constructor.name!=="Object"&&!Array.isArray(l)){let c=t.get(l);if(!c){let m={__isClassInstance__:!0,__className__:l.constructor.name,...Object.getOwnPropertyNames(l).reduce((y,g)=>{try{y[g]=l[g]}catch{}return y},{})};return i.push(a),n.unshift(m),t.set(l,JSON.stringify(i)),l!==m&&r.set(l,m),m}return`_duplicate_${c}`}let p=t.get(l);if(!p){let c=Array.isArray(l)?l:dC(l);return i.push(a),n.unshift(c),t.set(l,JSON.stringify(i)),l!==c&&r.set(l,c),c}return`_duplicate_${p}`}catch{return}}},Hj=function(e){let t=[],r;return function(n,i){if(n===""&&(r=i,t.forEach(({target:a,container:l,replacement:u})=>{let p=dg(u)?JSON.parse(u):u.split(".");p.length===0?l[a]=r:l[a]=Uj(r,p)})),n==="_constructor-name_")return i;if(cg(i)&&i.__isConvertedError__){let{message:a,...l}=i.errorProperties,u=new Error(a);return Object.assign(u,l),u}if(typeof i=="string"&&i.startsWith("_regexp_")&&e.allowRegExp){let[,a,l]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(l,a)}return typeof i=="string"&&i.startsWith("_date_")&&e.allowDate?new Date(i.replace("_date_","")):typeof i=="string"&&i.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:i.replace(/^_duplicate_/,"")}),null):typeof i=="string"&&i.startsWith("_symbol_")&&e.allowSymbol?Symbol(i.replace("_symbol_","")):typeof i=="string"&&i.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(i.replace("_gsymbol_","")):typeof i=="string"&&i==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof i=="string"&&i==="_Infinity_"?Number.POSITIVE_INFINITY:typeof i=="string"&&i==="_NaN_"?Number.NaN:typeof i=="string"&&i.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(i.replace("_bigint_","")):i}},pC={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},fC=(e,t={})=>{let r={...pC,...t};return JSON.stringify(dC(e),zj(r),t.space)},Wj=()=>{let e=new Map;return function t(r){cg(r)&&Object.entries(r).forEach(([n,i])=>{i==="_undefined_"?r[n]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(r)&&r.forEach((n,i)=>{n==="_undefined_"?(e.set(n,!0),r[i]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},hC=(e,t={})=>{let r={...pC,...t},n=JSON.parse(e,Hj(r));return Wj()(n),n},Gj="Invariant failed";function Hi(e,t){if(!e)throw new Error(Gj)}var Kj=(e,t)=>{if(e.length===1)return e[0];if(!(e.length===0||!t))return e.find(r=>(r.getAttribute("src")??"").includes(`refId=${encodeURIComponent(t)}`))},Yj=(e,t)=>{let r=Array.from(document.querySelectorAll("iframe[data-is-storybook]")).filter(i=>{try{return i.contentWindow?.location.origin===e.source.location.origin&&i.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let a=i.getAttribute("src"),l;try{if(!a)return!1;({origin:l}=new URL(a,document.location.toString()))}catch{return!1}return l===e.origin}),n=Kj(r,t)?.getAttribute("src");if(n){let{protocol:i,host:a,pathname:l}=new URL(n,document.location.toString());return`${i}//${a}${l}`}return r.length>1&&lr.error("found multiple candidates for event source"),null},{document:Ah,location:_h}=He,g1="storybook-channel",Xj={maxDepth:25},mC=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof He?.addEventListener=="function"&&He.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:n,allowSymbol:i,allowDate:a,allowError:l,allowUndefined:u,maxDepth:p,space:c}=t||{},m=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:i,allowDate:a,allowError:l,allowUndefined:u,maxDepth:p,space:c}).filter(([A,x])=>typeof x<"u")),y={...Xj,...He.CHANNEL_OPTIONS||{},...m},g=this.getFrames(r),b=new URLSearchParams(_h?.search||""),w=fC({key:g1,event:e,refId:b.get("refId")},y);return g.length?(this.buffer.length&&this.flush(),g.forEach(A=>{try{A.postMessage(w,"*")}catch{lr.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((A,x)=>{this.buffer.push({event:e,resolve:A,reject:x})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(Ah.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return He&&He.parent&&He.parent!==He.self?[He.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Ah.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):He&&He.parent?[He.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Ah.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):He&&He.parent?[He.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:i}=typeof t=="string"&&dg(t)?hC(t,He.CHANNEL_OPTIONS||{}):t;if(r===g1){let a=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',l=Object.values(Hy).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(i&&(n.refId=i),n.source=this.config.page==="preview"?e.origin:Yj(e,i),!n.source){Dn.error(`${a} received ${l} but was unable to determine the source of the event`);return}let u=`${a} received ${l} (${t.length})`;Dn.debug(_h.origin!==n.source?u:`${u} <span style="color: gray">(on ${_h.origin} from ${n.source})</span>`,...n.args),Hi(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){lr.error(t)}}},{WebSocket:Qj}=He,yC=15e3,gC=5e3,bC=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new Qj(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let i=typeof n=="string"&&dg(n)?hC(n):n;Hi(this.handler),this.handler(i),i.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{Hi(this.handler),this.handler({type:S_,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},yC+gC)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=fC(e,{maxDepth:15,...He.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:Zj,CONFIG_TYPE:e5}=He,t5=Yd;function r5({page:e,extraTransports:t=[]}){let r=[new mC({page:e}),...t];if(e5==="DEVELOPMENT"){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:a,port:l}=window.location,{wsToken:u}=Zj||{},p=`${i}://${a}:${l}/storybook-server-channel?token=${u}`;r.push(new bC({url:p,onError:()=>{},page:e}))}let n=new Yd({transports:r});return wh.__prepare(n,e==="manager"?wh.Environment.MANAGER:wh.Environment.PREVIEW),n}var vC={};vn(vC,{CalledExtractOnStoreError:()=>_C,CalledPreviewMethodBeforeInitializationError:()=>Tn,Category:()=>wC,ElementA11yParameterError:()=>u5,EmptyIndexError:()=>RC,ImplicitActionsDuringRendering:()=>AC,InvalidBlockOfPropError:()=>s5,MdxFileWithNoCsfReferencesError:()=>xC,MissingRenderToCanvasError:()=>CC,MissingStoryAfterHmrError:()=>SC,MissingStoryFromCsfFileError:()=>PC,MountMustBeDestructuredError:()=>pg,NextJsSharpError:()=>i5,NextjsRouterMocksNotAvailable:()=>o5,NoRenderFunctionError:()=>NC,NoStoryMatchError:()=>DC,NoStoryMountedError:()=>IC,StatusTypeIdMismatchError:()=>n5,StoryIndexFetchError:()=>TC,StoryStoreAccessedBeforeInitializationError:()=>OC,UnknownArgTypesError:()=>a5,UnsupportedViewportDimensionError:()=>l5});function b1({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function v1(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Tr=class EC extends Error{constructor(t){super(EC.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return b1({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:i}){let a;return t===!0?a=`https://storybook.js.org/error/${b1({code:r,category:n})}?ref=error`:typeof t=="string"?a=v1(t):Array.isArray(t)&&(a=`
|
|
34
|
+
${t.map(l=>` - ${v1(l)}`).join(`
|
|
35
|
+
`)}`),`${i}${a!=null?`
|
|
36
|
+
|
|
37
|
+
More info: ${a}
|
|
38
|
+
`:""}`}},wC=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(wC||{}),SC=class extends Tr{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:Rt`
|
|
39
|
+
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
40
|
+
- Did you just rename a story?
|
|
41
|
+
- Did you remove it from your CSF file?
|
|
42
|
+
- Are you sure a story with the id '${e.storyId}' exists?
|
|
43
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
44
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},AC=class extends Tr{constructor(e){super({name:"ImplicitActionsDuringRendering",category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Rt`
|
|
45
|
+
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
46
|
+
${e.deprecated?`
|
|
47
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
48
|
+
`:""}
|
|
49
|
+
Please provide an explicit spy to your args like this:
|
|
50
|
+
import { fn } from 'storybook/test';
|
|
51
|
+
...
|
|
52
|
+
args: {
|
|
53
|
+
${e.name}: fn()
|
|
54
|
+
}`}),this.data=e}},_C=class extends Tr{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:Rt`
|
|
55
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
56
|
+
|
|
57
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},CC=class extends Tr{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:Rt`
|
|
58
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
59
|
+
|
|
60
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},Tn=class extends Tr{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:Rt`
|
|
61
|
+
Called \`Preview.${e.methodName}()\` before initialization.
|
|
62
|
+
|
|
63
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
64
|
+
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
65
|
+
|
|
66
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
67
|
+
do the above.`}),this.data=e}},TC=class extends Tr{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:Rt`
|
|
68
|
+
Error fetching \`/index.json\`:
|
|
69
|
+
|
|
70
|
+
${e.text}
|
|
71
|
+
|
|
72
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
73
|
+
check the terminal for errors.
|
|
74
|
+
|
|
75
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
76
|
+
build.`}),this.data=e}},xC=class extends Tr{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:Rt`
|
|
77
|
+
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
78
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
79
|
+
|
|
80
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
81
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},RC=class extends Tr{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:Rt`
|
|
82
|
+
Couldn't find any stories in your Storybook.
|
|
83
|
+
|
|
84
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
85
|
+
- Also check the browser console and terminal for error messages.`})}},DC=class extends Tr{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:Rt`
|
|
86
|
+
Couldn't find story matching '${e.storySpecifier}'.
|
|
87
|
+
|
|
88
|
+
- Are you sure a story with that id exists?
|
|
89
|
+
- Please check your stories field of your main.js config.
|
|
90
|
+
- Also check the browser console and terminal for error messages.`}),this.data=e}},PC=class extends Tr{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:Rt`
|
|
91
|
+
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
92
|
+
|
|
93
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
94
|
+
we didn't find the story. Possible reasons:
|
|
95
|
+
- You are using a custom story indexer that is misbehaving.
|
|
96
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
97
|
+
|
|
98
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},OC=class extends Tr{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:Rt`
|
|
99
|
+
Cannot access the Story Store until the index is ready.
|
|
100
|
+
|
|
101
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
102
|
+
remove access to the store entirely`})}},pg=class extends Tr{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:Rt`
|
|
103
|
+
Incorrect use of mount in the play function.
|
|
104
|
+
|
|
105
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
106
|
+
|
|
107
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
108
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
109
|
+
|
|
110
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
111
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
112
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
113
|
+
|
|
114
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
115
|
+
|
|
116
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
117
|
+
|
|
118
|
+
Received the following play function:
|
|
119
|
+
${e.playFunction}`}),this.data=e}},NC=class extends Tr{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:Rt`
|
|
120
|
+
No render function available for storyId '${e.id}'
|
|
121
|
+
`}),this.data=e}},IC=class extends Tr{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:Rt`
|
|
122
|
+
No component is mounted in your story.
|
|
123
|
+
|
|
124
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
125
|
+
|
|
126
|
+
For example:
|
|
127
|
+
|
|
128
|
+
async play({ mount, canvasElement }) {
|
|
129
|
+
// 👈 mount should be called: await mount();
|
|
130
|
+
const canvas = within(canvasElement);
|
|
131
|
+
const button = await canvas.findByRole('button');
|
|
132
|
+
await userEvent.click(button);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
Make sure to either remove it or call mount in your play function.
|
|
136
|
+
`})}},n5=class extends Tr{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},i5=class extends Tr{constructor(){super({name:"NextJsSharpError",category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",message:Rt`
|
|
137
|
+
You are importing avif images, but you don't have sharp installed.
|
|
138
|
+
|
|
139
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
140
|
+
`})}},o5=class extends Tr{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:Rt`
|
|
141
|
+
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
+
`}),this.data=e}},a5=class extends Tr{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Rt`
|
|
143
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
144
|
+
${JSON.stringify(t.type,null,2)}
|
|
145
|
+
|
|
146
|
+
Storybook will fall back to use a generic type description instead.
|
|
147
|
+
|
|
148
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
149
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
150
|
+
`}),this.data=t}},s5=class extends Tr{constructor(){super({name:"InvalidBlockOfPropError",category:"BLOCKS",code:1,message:"Unexpected `of={undefined}`, did you mistype a CSF file reference?"})}},l5=class extends Tr{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:Rt`
|
|
151
|
+
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
152
|
+
|
|
153
|
+
The Storybook plugin only supports values in the following units:
|
|
154
|
+
- px, vh, vw, em, rem and %.
|
|
155
|
+
|
|
156
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
157
|
+
`}),this.data=e}},u5=class extends Tr{constructor(){super({name:"ElementA11yParameterError",category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}},FC={};vn(FC,{Addon_TypesEnum:()=>kC,CHANGE_DETECTION_STATUS_TYPE_ID:()=>c5,CoreWebpackCompiler:()=>MC,Feature:()=>jC,SupportedBuilder:()=>qC,SupportedFramework:()=>BC,SupportedLanguage:()=>$C,SupportedRenderer:()=>LC});var kC=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(kC||{}),BC=(e=>(e.ANGULAR="angular",e.EMBER="ember",e.HTML_VITE="html-vite",e.NEXTJS="nextjs",e.NEXTJS_VITE="nextjs-vite",e.PREACT_VITE="preact-vite",e.REACT_NATIVE_WEB_VITE="react-native-web-vite",e.REACT_VITE="react-vite",e.REACT_WEBPACK5="react-webpack5",e.SERVER_WEBPACK5="server-webpack5",e.SVELTE_VITE="svelte-vite",e.SVELTEKIT="sveltekit",e.TANSTACK_REACT="tanstack-react",e.VUE3_VITE="vue3-vite",e.WEB_COMPONENTS_VITE="web-components-vite",e.HTML_RSBUILD="html-rsbuild",e.NUXT="nuxt",e.QWIK="qwik",e.REACT_RSBUILD="react-rsbuild",e.SOLID="solid",e.VUE3_RSBUILD="vue3-rsbuild",e.WEB_COMPONENTS_RSBUILD="web-components-rsbuild",e))(BC||{}),LC=(e=>(e.REACT="react",e.REACT_NATIVE="react-native",e.VUE3="vue3",e.ANGULAR="angular",e.EMBER="ember",e.PREACT="preact",e.SVELTE="svelte",e.QWIK="qwik",e.HTML="html",e.WEB_COMPONENTS="web-components",e.SERVER="server",e.SOLID="solid",e.NUXT="nuxt",e))(LC||{});Cr(jy(),1);var c5="storybook/change-detection",MC=(e=>(e.Babel="babel",e.SWC="swc",e))(MC||{}),qC=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(qC||{}),jC=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e.AI="ai",e))(jC||{}),$C=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))($C||{}),VC={};vn(VC,{ADDON_ID:()=>ep,CLEAR_ID:()=>f5,CYCLIC_KEY:()=>h5,EVENT_ID:()=>UC,PANEL_ID:()=>p5,PARAM_KEY:()=>d5,action:()=>Nu,actions:()=>WY,config:()=>yu,configureActions:()=>JY});var d5="actions",ep="storybook/actions",p5=`${ep}/panel`,UC=`${ep}/action-event`,f5=`${ep}/action-clear`,h5="$___storybook.isCyclic",Em={};vn(Em,{DocsContext:()=>V0,HooksContext:()=>fg,Preview:()=>DO,PreviewWeb:()=>FY,PreviewWithSelection:()=>PO,ReporterAPI:()=>$0,StoryStore:()=>xO,Tag:()=>Ei,UrlStore:()=>kO,WebView:()=>LO,addons:()=>Jn,applyHooks:()=>zC,combineArgs:()=>Vd,combineParameters:()=>xa,composeConfigs:()=>Ds,composeStepRunners:()=>SO,composeStories:()=>lY,composeStory:()=>TO,createPlaywrightTest:()=>uY,decorateStory:()=>hO,defaultDecorateStory:()=>yO,emitTransformCode:()=>UY,filterArgTypes:()=>wO,getCsfFactoryAnnotations:()=>CO,inferControls:()=>M0,makeDecorator:()=>R5,mockChannel:()=>JC,normalizeArrays:()=>nr,normalizeProjectAnnotations:()=>Jd,normalizeStory:()=>Jl,pauseAnimations:()=>q0,prepareMeta:()=>gO,prepareStory:()=>L0,sanitizeStoryContextUpdate:()=>mO,setDefaultProjectAnnotations:()=>rY,setProjectAnnotations:()=>aY,simulateDOMContentLoaded:()=>_y,simulatePageLoad:()=>MY,sortStoriesV7:()=>gY,useArgs:()=>T5,useCallback:()=>Ql,useChannel:()=>_5,useEffect:()=>Sa,useGlobals:()=>x5,useMemo:()=>WC,useParameter:()=>C5,useReducer:()=>A5,useRef:()=>E5,useState:()=>S5,useStoryContext:()=>rp,userOrAutoTitle:()=>hY,userOrAutoTitleFromSpecifier:()=>RO,waitForAnimations:()=>j0});function JC(){let e={setHandler:()=>{},send:()=>{}};return new Yd({transport:e})}var m5=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=JC();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Ch="__STORYBOOK_ADDONS_PREVIEW";function y5(){return He[Ch]||(He[Ch]=new m5),He[Ch]}var Jn=y5(),fg=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Jn.getChannel().on(Ed,this.renderListener)}removeRenderListeners(){Jn.getChannel().removeListener(Ed,this.renderListener)}};function E1(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],i=n.currentPhase,a=n.currentHooks,l=n.nextHookIndex,u=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let p=He.STORYBOOK_HOOKS_CONTEXT;He.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(He.STORYBOOK_HOOKS_CONTEXT=p,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=i,n.currentHooks=a,n.nextHookIndex=l,n.currentDecoratorName=u,c};return t.originalFn=e,t}var Th=0,g5=25,zC=e=>(t,r)=>{let n=e(E1(t),r.map(i=>E1(i)));return i=>{let{hooks:a}=i;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=i,a.hasUpdates=!1;let l=n(i);for(Th=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],l=n(i),Th+=1,Th>g5)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),l}},b5=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),hg=()=>new Error(`Storybook preview hooks can only be called inside decorators and story functions.
|
|
158
|
+
|
|
159
|
+
When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`);function HC(){return He.STORYBOOK_HOOKS_CONTEXT||null}function mg(){let e=HC();if(e==null)throw hg();return e}function v5(e,t,r){let n=mg();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&lr.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let i={name:e,deps:r};return n.currentHooks.push(i),t(i),i}if(n.currentPhase==="UPDATE"){let i=n.getNextHook();if(i==null)throw new Error("Rendered more hooks than during the previous render.");return i.name!==e&&lr.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&i.deps==null&&lr.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&i.deps!=null&&r.length!==i.deps.length&&lr.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
160
|
+
Previous: ${i.deps}
|
|
161
|
+
Incoming: ${r}`),(r==null||i.deps==null||!b5(r,i.deps))&&(t(i),i.deps=r),i}throw hg()}function tp(e,t,r){let{memoizedState:n}=v5(e,i=>{i.memoizedState=t()},r);return n}function WC(e,t){return tp("useMemo",e,t)}function Ql(e,t){return tp("useCallback",()=>e,t)}function GC(e,t){return tp(e,()=>({current:t}),[])}function E5(e){return GC("useRef",e)}function w5(){let e=HC();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Jn.getChannel().emit(Ky)}catch{lr.warn("State updates of Storybook preview hooks work only in browser")}}function KC(e,t){let r=GC(e,typeof t=="function"?t():t),n=i=>{r.current=typeof i=="function"?i(r.current):i,w5()};return[r.current,n]}function S5(e){return KC("useState",e)}function A5(e,t,r){let n=r!=null?()=>r(t):t,[i,a]=KC("useReducer",n);return[i,l=>a(u=>e(u,l))]}function Sa(e,t){let r=mg(),n=tp("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function _5(e,t=[]){let r=Jn.getChannel();return Sa(()=>(Object.entries(e).forEach(([n,i])=>r.on(n,i)),()=>{Object.entries(e).forEach(([n,i])=>r.removeListener(n,i))}),[...Object.keys(e),...t]),Ql(r.emit.bind(r),[r])}function rp(){let{currentContext:e}=mg();if(e==null)throw hg();return e}function C5(e,t){let{parameters:r}=rp();if(e)return r[e]??t}function T5(){let e=Jn.getChannel(),{id:t,args:r}=rp(),n=Ql(a=>e.emit(Zy,{storyId:t,updatedArgs:a}),[e,t]),i=Ql(a=>e.emit(Yy,{storyId:t,argNames:a}),[e,t]);return[r,n,i]}function x5(){let e=Jn.getChannel(),{globals:t}=rp(),r=Ql(n=>e.emit(Qy,{globals:n}),[e]);return[t,r]}var R5=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let i=a=>(l,u)=>{let p=u.parameters&&u.parameters[t];return p&&p.disable||n&&!a&&!p?l(u):r(l,u,{options:a,parameters:p})};return(...a)=>typeof a[0]=="function"?i()(...a):(...l)=>{if(l.length>1)return a.length>1?i(a)(...l):i(...a)(...l);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
162
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function D5(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,i)=>`${r} ${n}${i}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var w1=Cr(Kk(),1),YC=e=>e.map(t=>typeof t<"u").filter(Boolean).length,P5=(e,t)=>{let{exists:r,eq:n,neq:i,truthy:a}=e;if(YC([r,n,i,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:i})}`);if(typeof n<"u")return(0,w1.isEqual)(t,n);if(typeof i<"u")return!(0,w1.isEqual)(t,i);if(typeof r<"u"){let l=typeof t<"u";return r?l:!l}return typeof a>"u"||a?!!t:!t},O5=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:i}=e.if;if(YC([n,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:i})}`);let a=n?t[n]:r[i];return P5(e.if,a)};function N5(e){return e!=null&&I5(e).includes("mount")}function I5(e){let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=xh(t);if(!n)return[];let[,i]=n.match(/^{([^]+)}$/)||[];if(i)return xh(S1(i)).map(u=>u.replace(/:.*|=.*/g,"").trim());if(!n.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),[,l]=r?.trim()?.match(new RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${a};`))||[];return l?xh(S1(l)).map(u=>u.replace(/:.*|=.*/g,"").trim()):[]}function S1(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function xh(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let l=e.substring(n,a).trim();l&&t.push(l),n=a+1}let i=e.substring(n).trim();return i&&t.push(i),t}var Ei={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},XC={};vn(XC,{argsEnhancers:()=>B5});var QC=(e,t)=>typeof t[e]>"u"&&!(e in t),F5=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([l])=>!!a.test(l)).reduce((l,[u,p])=>(QC(u,t)&&(l[u]=Nu(u,{implicit:!0,id:n})),l),{})},k5=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([i,a])=>!!a.action).reduce((i,[a,l])=>(QC(a,t)&&(i[a]=Nu(typeof l.action=="string"?l.action:a)),i),{})},B5=[k5,F5],ZC={};vn(ZC,{loaders:()=>zW});var eT={};vn(eT,{buildQueries:()=>_H,clearAllMocks:()=>JR,configure:()=>CH,createEvent:()=>TH,expect:()=>VW,findAllByAltText:()=>RH,findAllByDisplayValue:()=>DH,findAllByLabelText:()=>PH,findAllByPlaceholderText:()=>OH,findAllByRole:()=>NH,findAllByTestId:()=>IH,findAllByText:()=>FH,findAllByTitle:()=>kH,findByAltText:()=>BH,findByDisplayValue:()=>LH,findByLabelText:()=>MH,findByPlaceholderText:()=>qH,findByRole:()=>jH,findByTestId:()=>$H,findByText:()=>VH,findByTitle:()=>UH,fireEvent:()=>xH,fn:()=>VR,getAllByAltText:()=>JH,getAllByDisplayValue:()=>zH,getAllByLabelText:()=>HH,getAllByPlaceholderText:()=>WH,getAllByRole:()=>GH,getAllByTestId:()=>KH,getAllByText:()=>YH,getAllByTitle:()=>XH,getByAltText:()=>QH,getByDisplayValue:()=>ZH,getByLabelText:()=>eW,getByPlaceholderText:()=>tW,getByRole:()=>rW,getByTestId:()=>nW,getByText:()=>iW,getByTitle:()=>oW,getConfig:()=>aW,getDefaultNormalizer:()=>sW,getElementError:()=>lW,getNodeText:()=>uW,getQueriesForElement:()=>cW,getRoles:()=>dW,getSuggestedQuery:()=>pW,isInaccessible:()=>fW,isMockFunction:()=>fs,logDOM:()=>hW,logRoles:()=>mW,mocked:()=>X7,mocks:()=>xu,onMockCall:()=>$R,prettyDOM:()=>yW,prettyFormat:()=>jW,queries:()=>gW,queryAllByAltText:()=>bW,queryAllByAttribute:()=>vW,queryAllByDisplayValue:()=>EW,queryAllByLabelText:()=>wW,queryAllByPlaceholderText:()=>SW,queryAllByRole:()=>AW,queryAllByTestId:()=>_W,queryAllByText:()=>CW,queryAllByTitle:()=>TW,queryByAltText:()=>xW,queryByAttribute:()=>RW,queryByDisplayValue:()=>DW,queryByLabelText:()=>PW,queryByPlaceholderText:()=>OW,queryByRole:()=>NW,queryByTestId:()=>IW,queryByText:()=>FW,queryByTitle:()=>kW,queryHelpers:()=>BW,resetAllMocks:()=>zR,restoreAllMocks:()=>HR,sb:()=>UW,screen:()=>LW,spyOn:()=>Y7,uninstrumentedUserEvent:()=>iO,userEvent:()=>$W,waitFor:()=>MW,waitForElementToBeRemoved:()=>qW,within:()=>nO});var L5={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},tT=Object.entries(L5);function np(e){return String(e)}np.open="";np.close="";tT.reduce((e,[t])=>(e[t]=np,e),{isColorSupported:!1});function M5(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function q5(e=!1){let t=M5(e),r=(l,u,p,c)=>{let m="",y=0;do m+=l.substring(y,c)+p,y=c+u.length,c=l.indexOf(u,y);while(~c);return m+l.substring(y)},n=(l,u,p=l)=>{let c=m=>{let y=String(m),g=y.indexOf(u,l.length);return~g?l+r(y,u,p,g)+u:l+y+u};return c.open=l,c.close=u,c},i={isColorSupported:t},a=l=>`\x1B[${l}m`;for(let[l,u]of tT)i[l]=t?n(a(u[0]),a(u[1]),u[2]):np;return i}var qi=q5();function rT(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function j5(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function Eu(e,t,r,n,i,a,l=": "){let u="",p=0,c=e.next();if(!c.done){u+=t.spacingOuter;let m=r+t.indent;for(;!c.done;){if(u+=m,p++===t.maxWidth){u+="…";break}let y=a(c.value[0],t,m,n,i),g=a(c.value[1],t,m,n,i);u+=y+l+g,c=e.next(),c.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+r}return u}function yg(e,t,r,n,i,a){let l="",u=0,p=e.next();if(!p.done){l+=t.spacingOuter;let c=r+t.indent;for(;!p.done;){if(l+=c,u++===t.maxWidth){l+="…";break}l+=a(p.value,t,c,n,i),p=e.next(),p.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function wd(e,t,r,n,i,a){let l="";e=e instanceof ArrayBuffer?new DataView(e):e;let u=c=>c instanceof DataView,p=u(e)?e.byteLength:e.length;if(p>0){l+=t.spacingOuter;let c=r+t.indent;for(let m=0;m<p;m++){if(l+=c,m===t.maxWidth){l+="…";break}(u(e)||m in e)&&(l+=a(u(e)?e.getInt8(m):e[m],t,c,n,i)),m<p-1?l+=`,${t.spacingInner}`:t.min||(l+=",")}l+=t.spacingOuter+r}return l}function gg(e,t,r,n,i,a){let l="",u=j5(e,t.compareKeys);if(u.length>0){l+=t.spacingOuter;let p=r+t.indent;for(let c=0;c<u.length;c++){let m=u[c],y=a(m,t,p,n,i),g=a(e[m],t,p,n,i);l+=`${p+y}: ${g}`,c<u.length-1?l+=`,${t.spacingInner}`:t.min||(l+=",")}l+=t.spacingOuter+r}return l}var $5=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Rh=" ",V5=(e,t,r,n,i,a)=>{let l=e.toString();if(l==="ArrayContaining"||l==="ArrayNotContaining")return++n>t.maxDepth?`[${l}]`:`${l+Rh}[${wd(e.sample,t,r,n,i,a)}]`;if(l==="ObjectContaining"||l==="ObjectNotContaining")return++n>t.maxDepth?`[${l}]`:`${l+Rh}{${gg(e.sample,t,r,n,i,a)}}`;if(l==="StringMatching"||l==="StringNotMatching"||l==="StringContaining"||l==="StringNotContaining")return l+Rh+a(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},U5=e=>e&&e.$$typeof===$5,J5={serialize:V5,test:U5},z5=" ",nT=new Set(["DOMStringMap","NamedNodeMap"]),H5=/^(?:HTML\w*Collection|NodeList)$/;function W5(e){return nT.has(e)||H5.test(e)}var G5=e=>e&&e.constructor&&!!e.constructor.name&&W5(e.constructor.name);function K5(e){return e.constructor.name==="NamedNodeMap"}var Y5=(e,t,r,n,i,a)=>{let l=e.constructor.name;return++n>t.maxDepth?`[${l}]`:(t.min?"":l+z5)+(nT.has(l)?`{${gg(K5(e)?[...e].reduce((u,p)=>(u[p.name]=p.value,u),{}):{...e},t,r,n,i,a)}}`:`[${wd([...e],t,r,n,i,a)}]`)},X5={serialize:Y5,test:G5};function iT(e){return e.replaceAll("<","<").replaceAll(">",">")}function bg(e,t,r,n,i,a,l){let u=n+r.indent,p=r.colors;return e.map(c=>{let m=t[c],y=l(m,r,u,i,a);return typeof m!="string"&&(y.includes(`
|
|
163
|
+
`)&&(y=r.spacingOuter+u+y+r.spacingOuter+n),y=`{${y}}`),`${r.spacingInner+n+p.prop.open+c+p.prop.close}=${p.value.open}${y}${p.value.close}`}).join("")}function vg(e,t,r,n,i,a){return e.map(l=>t.spacingOuter+r+(typeof l=="string"?oT(l,t):a(l,t,r,n,i))).join("")}function oT(e,t){let r=t.colors.content;return r.open+iT(e)+r.close}function Q5(e,t){let r=t.colors.comment;return`${r.open}<!--${iT(e)}-->${r.close}`}function Eg(e,t,r,n,i){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+i+a.open}${r?`>${a.close}${r}${n.spacingOuter}${i}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function wg(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var Z5=1,aT=3,sT=8,lT=11,e$=/^(?:(?:HTML|SVG)\w*)?Element$/;function t$(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function r$(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||t$(e);return r===Z5&&(e$.test(t)||i)||r===aT&&t==="Text"||r===sT&&t==="Comment"||r===lT&&t==="DocumentFragment"}var n$=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&r$(e)};function i$(e){return e.nodeType===aT}function o$(e){return e.nodeType===sT}function Dh(e){return e.nodeType===lT}var a$=(e,t,r,n,i,a)=>{if(i$(e))return oT(e.data,t);if(o$(e))return Q5(e.data,t);let l=Dh(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?wg(l,t):Eg(l,bg(Dh(e)?[]:Array.from(e.attributes,u=>u.name).sort(),Dh(e)?{}:[...e.attributes].reduce((u,p)=>(u[p.name]=p.value,u),{}),t,r+t.indent,n,i,a),vg(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,a),t,r)},s$={serialize:a$,test:n$},l$="@@__IMMUTABLE_ITERABLE__@@",u$="@@__IMMUTABLE_LIST__@@",c$="@@__IMMUTABLE_KEYED__@@",d$="@@__IMMUTABLE_MAP__@@",A1="@@__IMMUTABLE_ORDERED__@@",p$="@@__IMMUTABLE_RECORD__@@",f$="@@__IMMUTABLE_SEQ__@@",h$="@@__IMMUTABLE_SET__@@",m$="@@__IMMUTABLE_STACK__@@",gs=e=>`Immutable.${e}`,ip=e=>`[${e}]`,Zl=" ",_1="…";function y$(e,t,r,n,i,a,l){return++n>t.maxDepth?ip(gs(l)):`${gs(l)+Zl}{${Eu(e.entries(),t,r,n,i,a)}}`}function g$(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function b$(e,t,r,n,i,a){let l=gs(e._name||"Record");return++n>t.maxDepth?ip(l):`${l+Zl}{${Eu(g$(e),t,r,n,i,a)}}`}function v$(e,t,r,n,i,a){let l=gs("Seq");return++n>t.maxDepth?ip(l):e[c$]?`${l+Zl}{${e._iter||e._object?Eu(e.entries(),t,r,n,i,a):_1}}`:`${l+Zl}[${e._iter||e._array||e._collection||e._iterable?yg(e.values(),t,r,n,i,a):_1}]`}function Ph(e,t,r,n,i,a,l){return++n>t.maxDepth?ip(gs(l)):`${gs(l)+Zl}[${yg(e.values(),t,r,n,i,a)}]`}var E$=(e,t,r,n,i,a)=>e[d$]?y$(e,t,r,n,i,a,e[A1]?"OrderedMap":"Map"):e[u$]?Ph(e,t,r,n,i,a,"List"):e[h$]?Ph(e,t,r,n,i,a,e[A1]?"OrderedSet":"Set"):e[m$]?Ph(e,t,r,n,i,a,"Stack"):e[f$]?v$(e,t,r,n,i,a):b$(e,t,r,n,i,a),w$=e=>e&&(e[l$]===!0||e[p$]===!0),S$={serialize:E$,test:w$};function uT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},Yt={},T1;function A$(){if(T1)return Yt;T1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function w(A){if(typeof A=="object"&&A!==null){var x=A.$$typeof;switch(x){case e:switch(A=A.type,A){case r:case i:case n:case p:case c:case g:return A;default:switch(A=A&&A.$$typeof,A){case l:case u:case y:case m:return A;case a:return A;default:return x}}case t:return x}}}return Yt.ContextConsumer=a,Yt.ContextProvider=l,Yt.Element=e,Yt.ForwardRef=u,Yt.Fragment=r,Yt.Lazy=y,Yt.Memo=m,Yt.Portal=t,Yt.Profiler=i,Yt.StrictMode=n,Yt.Suspense=p,Yt.SuspenseList=c,Yt.isContextConsumer=function(A){return w(A)===a},Yt.isContextProvider=function(A){return w(A)===l},Yt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Yt.isForwardRef=function(A){return w(A)===u},Yt.isFragment=function(A){return w(A)===r},Yt.isLazy=function(A){return w(A)===y},Yt.isMemo=function(A){return w(A)===m},Yt.isPortal=function(A){return w(A)===t},Yt.isProfiler=function(A){return w(A)===i},Yt.isStrictMode=function(A){return w(A)===n},Yt.isSuspense=function(A){return w(A)===p},Yt.isSuspenseList=function(A){return w(A)===c},Yt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===i||A===n||A===p||A===c||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===m||A.$$typeof===l||A.$$typeof===a||A.$$typeof===u||A.$$typeof===b||A.getModuleId!==void 0)},Yt.typeOf=w,Yt}var x1;function _$(){return x1||(x1=1,C1.exports=A$()),C1.exports}var cT=_$(),C$=uT(cT),T$=rT({__proto__:null,default:C$},[cT]),R1={exports:{}},zt={},D1;function x$(){if(D1)return zt;D1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function A(x){if(typeof x=="object"&&x!==null){var _=x.$$typeof;switch(_){case e:switch(x=x.type,x){case r:case i:case n:case c:case m:return x;default:switch(x=x&&x.$$typeof,x){case u:case l:case p:case g:case y:case a:return x;default:return _}}case t:return _}}}return zt.ContextConsumer=l,zt.ContextProvider=a,zt.Element=e,zt.ForwardRef=p,zt.Fragment=r,zt.Lazy=g,zt.Memo=y,zt.Portal=t,zt.Profiler=i,zt.StrictMode=n,zt.Suspense=c,zt.SuspenseList=m,zt.isAsyncMode=function(){return!1},zt.isConcurrentMode=function(){return!1},zt.isContextConsumer=function(x){return A(x)===l},zt.isContextProvider=function(x){return A(x)===a},zt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},zt.isForwardRef=function(x){return A(x)===p},zt.isFragment=function(x){return A(x)===r},zt.isLazy=function(x){return A(x)===g},zt.isMemo=function(x){return A(x)===y},zt.isPortal=function(x){return A(x)===t},zt.isProfiler=function(x){return A(x)===i},zt.isStrictMode=function(x){return A(x)===n},zt.isSuspense=function(x){return A(x)===c},zt.isSuspenseList=function(x){return A(x)===m},zt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===c||x===m||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===y||x.$$typeof===a||x.$$typeof===l||x.$$typeof===p||x.$$typeof===w||x.getModuleId!==void 0)},zt.typeOf=A,zt}var P1;function R$(){return P1||(P1=1,R1.exports=x$()),R1.exports}var dT=R$(),D$=uT(dT),P$=rT({__proto__:null,default:D$},[dT]),O$=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ca=Object.fromEntries(O$.map(e=>[e,t=>P$[e](t)||T$[e](t)]));function pT(e,t=[]){if(Array.isArray(e))for(let r of e)pT(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function O1(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ca.isFragment(e))return"React.Fragment";if(ca.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ca.isContextProvider(e))return"Context.Provider";if(ca.isContextConsumer(e))return"Context.Consumer";if(ca.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(ca.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function N$(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var I$=(e,t,r,n,i,a)=>++n>t.maxDepth?wg(O1(e),t):Eg(O1(e),bg(N$(e),e.props,t,r+t.indent,n,i,a),vg(pT(e.props.children),t,r+t.indent,n,i,a),t,r),F$=e=>e!=null&&ca.isElement(e),k$={serialize:I$,test:F$},B$=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function L$(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var M$=(e,t,r,n,i,a)=>++n>t.maxDepth?wg(e.type,t):Eg(e.type,e.props?bg(L$(e),e.props,t,r+t.indent,n,i,a):"",e.children?vg(e.children,t,r+t.indent,n,i,a):"",t,r),q$=e=>e&&e.$$typeof===B$,j$={serialize:M$,test:q$},fT=Object.prototype.toString,$$=Date.prototype.toISOString,V$=Error.prototype.toString,N1=RegExp.prototype.toString;function sd(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function U$(e){return typeof window<"u"&&e===window}var J$=/^Symbol\((.*)\)(.*)$/,z$=/\n/g,hT=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function H$(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function W$(e){return Object.is(e,-0)?"-0":String(e)}function G$(e){return`${e}n`}function I1(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function F1(e){return String(e).replace(J$,"Symbol($1)")}function k1(e){return`[${V$.call(e)}]`}function mT(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return W$(e);if(i==="bigint")return G$(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return I1(e,t);if(i==="symbol")return F1(e);let a=fT.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?I1(e,t):a==="[object Symbol]"?F1(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":$$.call(e):a==="[object Error]"?k1(e):a==="[object RegExp]"?r?N1.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):N1.call(e):e instanceof Error?k1(e):null}function yT(e,t,r,n,i,a){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let l=++n>t.maxDepth,u=t.min;if(t.callToJSON&&!l&&e.toJSON&&typeof e.toJSON=="function"&&!a)return Ro(e.toJSON(),t,r,n,i,!0);let p=fT.call(e);return p==="[object Arguments]"?l?"[Arguments]":`${u?"":"Arguments "}[${wd(e,t,r,n,i,Ro)}]`:H$(p)?l?`[${e.constructor.name}]`:`${u||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${wd(e,t,r,n,i,Ro)}]`:p==="[object Map]"?l?"[Map]":`Map {${Eu(e.entries(),t,r,n,i,Ro," => ")}}`:p==="[object Set]"?l?"[Set]":`Set {${yg(e.values(),t,r,n,i,Ro)}}`:l||U$(e)?`[${sd(e)}]`:`${u||!t.printBasicPrototype&&sd(e)==="Object"?"":`${sd(e)} `}{${gg(e,t,r,n,i,Ro)}}`}var K$={test:e=>e&&e instanceof Error,serialize(e,t,r,n,i,a){if(i.includes(e))return"[Circular]";i=[...i,e];let l=++n>t.maxDepth,{message:u,cause:p,...c}=e,m={message:u,...typeof p<"u"?{cause:p}:{},...e instanceof AggregateError?{errors:e.errors}:{},...c},y=e.name!=="Error"?e.name:sd(e);return l?`[${y}]`:`${y} {${Eu(Object.entries(m).values(),t,r,n,i,a)}}`}};function Y$(e){return e.serialize!=null}function gT(e,t,r,n,i,a){let l;try{l=Y$(e)?e.serialize(t,r,n,i,a,Ro):e.print(t,u=>Ro(u,r,n,i,a),u=>{let p=n+r.indent;return p+u.replaceAll(z$,`
|
|
164
|
+
${p}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(u){throw new hT(u.message,u.stack)}if(typeof l!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof l}".`);return l}function bT(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new hT(n.message,n.stack)}return null}function Ro(e,t,r,n,i,a){let l=bT(t.plugins,e);if(l!==null)return gT(l,e,t,r,n,i);let u=mT(e,t.printFunctionName,t.escapeRegex,t.escapeString);return u!==null?u:yT(e,t,r,n,i,a)}var Sg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},vT=Object.keys(Sg),ei={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Sg};function X$(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(ei,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function Q$(){return vT.reduce((e,t)=>{let r=Sg[t],n=r&&qi[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Z$(){return vT.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function ET(e){return e?.printFunctionName??ei.printFunctionName}function wT(e){return e?.escapeRegex??ei.escapeRegex}function ST(e){return e?.escapeString??ei.escapeString}function B1(e){return{callToJSON:e?.callToJSON??ei.callToJSON,colors:e?.highlight?Q$():Z$(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:ei.compareKeys,escapeRegex:wT(e),escapeString:ST(e),indent:e?.min?"":e6(e?.indent??ei.indent),maxDepth:e?.maxDepth??ei.maxDepth,maxWidth:e?.maxWidth??ei.maxWidth,min:e?.min??ei.min,plugins:e?.plugins??ei.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:ET(e),spacingInner:e?.min?" ":`
|
|
165
|
+
`,spacingOuter:e?.min?"":`
|
|
166
|
+
`}}function e6(e){return Array.from({length:e+1}).join(" ")}function wi(e,t){if(t&&(X$(t),t.plugins)){let n=bT(t.plugins,e);if(n!==null)return gT(n,e,B1(t),"",0,[])}let r=mT(e,ET(t),wT(t),ST(t));return r!==null?r:yT(e,B1(t),"",0,[])}var Ag={AsymmetricMatcher:J5,DOMCollection:X5,DOMElement:s$,Immutable:S$,ReactElement:k$,ReactTestComponent:j$,Error:K$},L1={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},t6={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},bs="…";function r6(e,t){let r=L1[t6[t]]||L1[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function n6({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:l=1/0,seen:u=[],truncate:p=1/0,stylize:c=String}={},m){let y={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(l),truncate:Number(p),seen:u,inspect:m,stylize:c};return y.colors&&(y.stylize=r6),y}function i6(e){return e>="\uD800"&&e<="\uDBFF"}function Jo(e,t,r=bs){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let a=t-n;return a>0&&i6(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function oi(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let a=t.truncate,l="",u="",p="";for(let c=0;c<i;c+=1){let m=c+1===e.length,y=c+2===e.length;p=`${bs}(${e.length-c})`;let g=e[c];t.truncate=a-l.length-(m?0:n.length);let b=u||r(g,t)+(m?"":n),w=l.length+b.length,A=w+p.length;if(m&&w>a&&l.length+p.length<=a||!m&&!y&&A>a||(u=m?"":r(e[c+1],t)+(y?"":n),!m&&y&&A>a&&w+u.length>a))break;if(l+=b,!m&&!y&&w+u.length>=a){p=`${bs}(${e.length-c-1})`;break}p=""}return`${l}${p}`}function o6(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function eu([e,t],r){return r.truncate-=2,typeof e=="string"?e=o6(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function a6(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=oi(e,t);t.truncate-=n.length;let i="";return r.length&&(i=oi(r.map(a=>[a,e[a]]),t,eu)),`[ ${n}${i?`, ${i}`:""} ]`}var s6=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Fi(e,t){let r=s6(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let l=0;l<e.length;l++){let u=`${t.stylize(Jo(e[l],t.truncate),"number")}${l===e.length-1?"":", "}`;if(t.truncate-=u.length,e[l]!==e.length&&t.truncate<=3){i+=`${bs}(${e.length-e[l]+1})`;break}i+=u}let a="";return n.length&&(a=oi(n.map(l=>[l,e[l]]),t,eu)),`${r}[ ${i}${a?`, ${a}`:""} ]`}function l6(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${Jo(n[1],t.truncate-i.length-1)}`,"date")}function M1(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Jo(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function u6([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function c6(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function d6(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${oi(c6(e),t,u6)} }`)}var p6=Number.isNaN||(e=>e!==e);function q1(e,t){return p6(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Jo(String(e),t.truncate),"number")}function j1(e,t){let r=Jo(e.toString(),t.truncate-1);return r!==bs&&(r+="n"),t.stylize(r,"bigint")}function f6(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${Jo(i,n)}/${r}`,"regexp")}function h6(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function m6(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${oi(h6(e),t)} }`)}var $1=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),y6={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},g6=16;function b6(e){return y6[e]||`\\u${`0000${e.charCodeAt(0).toString(g6)}`.slice(-4)}`}function V1(e,t){return $1.test(e)&&(e=e.replace($1,b6)),t.stylize(`'${Jo(e,t.truncate-2)}'`,"string")}function U1(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var AT=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(AT=(n,i)=>{let[a,l]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${i.inspect(l,i)}}`})}catch{}var v6=AT;function ld(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=oi(r.map(u=>[u,e[u]]),t,eu),a=oi(n.map(u=>[u,e[u]]),t,eu);t.seen.pop();let l="";return i&&a&&(l=", "),`{ ${i}${l}${a} }`}var Oh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function E6(e,t){let r="";return Oh&&Oh in e&&(r=e[Oh]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ld(e,t)}`}function w6(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${oi(e,t)} ]`)}var S6=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function A6(e,t){let r=Object.getOwnPropertyNames(e).filter(l=>S6.indexOf(l)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=Jo(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=oi(r.map(l=>[l,e[l]]),t,eu);return`${n}${i}${a?` { ${a} }`:""}`}function _6([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function wm(e,t){return oi(e,t,C6,`
|
|
167
|
+
`)}function C6(e,t){switch(e.nodeType){case 1:return _T(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function _T(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),l=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let u="";r.length>0&&(u+=" ",u+=oi(r.map(m=>[m,e.getAttribute(m)]),t,_6," ")),t.truncate-=u.length;let p=t.truncate,c=wm(e.children,t);return c&&c.length>p&&(c=`${bs}(${e.children.length})`),`${i}${u}${a}${c}${l}`}var T6=typeof Symbol=="function"&&typeof Symbol.for=="function",Nh=T6?Symbol.for("chai/inspect"):"@@chai/inspect",Ih=Symbol.for("nodejs.util.inspect.custom"),J1=new WeakMap,z1={},H1={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:q1,Number:q1,bigint:j1,BigInt:j1,string:V1,String:V1,function:M1,Function:M1,symbol:U1,Symbol:U1,Array:a6,Date:l6,Map:d6,Set:m6,RegExp:f6,Promise:v6,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:w6,Int8Array:Fi,Uint8Array:Fi,Uint8ClampedArray:Fi,Int16Array:Fi,Uint16Array:Fi,Int32Array:Fi,Uint32Array:Fi,Float32Array:Fi,Float64Array:Fi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:A6,HTMLCollection:wm,NodeList:wm},x6=(e,t,r)=>Nh in e&&typeof e[Nh]=="function"?e[Nh](t):Ih in e&&typeof e[Ih]=="function"?e[Ih](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&J1.has(e.constructor)?J1.get(e.constructor)(e,t):z1[r]?z1[r](e,t):"",R6=Object.prototype.toString;function Sm(e,t={}){let r=n6(t,Sm),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=R6.call(e).slice(8,-1)),i in H1)return H1[i](e,r);if(n&&e){let l=x6(e,r,i);if(l)return typeof l=="string"?l:Sm(l,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ld(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?_T(e,r):"constructor"in e?e.constructor!==Object?E6(e,r):ld(e,r):e===Object(e)?ld(e,r):r.stylize(String(e),i)}var{AsymmetricMatcher:D6,DOMCollection:P6,DOMElement:O6,Immutable:N6,ReactElement:I6,ReactTestComponent:F6}=Ag,W1=[F6,I6,O6,P6,N6,D6];function Pn(e,t=10,{maxLength:r,...n}={}){let i=r??1e4,a;try{a=wi(e,{maxDepth:t,escapeString:!1,plugins:W1,...n})}catch{a=wi(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:W1,...n})}return a.length>=i&&t>1?Pn(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var k6=/%[sdjifoOc%]/g;function B6(...e){if(typeof e[0]!="string"){let a=[];for(let l=0;l<e.length;l++)a.push(Sl(e[l],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],i=String(n).replace(k6,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let l=e[r++];return typeof l=="bigint"?`${l.toString()}n`:typeof l=="number"&&l===0&&1/l<0?"-0":typeof l=="object"&&l!==null?typeof l.toString=="function"&&l.toString!==Object.prototype.toString?l.toString():Sl(l,{depth:0,colors:!1}):String(l)}case"%d":{let l=e[r++];return typeof l=="bigint"?`${l.toString()}n`:Number(l).toString()}case"%i":{let l=e[r++];return typeof l=="bigint"?`${l.toString()}n`:Number.parseInt(String(l)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Sl(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Sl(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(l){let u=l.message;if(u.includes("circular structure")||u.includes("cyclic structures")||u.includes("cyclic object"))return"[Circular]";throw l}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?i+=` ${a}`:i+=` ${Sl(a)}`;return i}function Sl(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Sm(e,t)}function CT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ki(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function ud(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function L6(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Sd(e){return Object.prototype.toString.apply(e).slice(8,-1)}function M6(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function TT(e){let t=new Set;return L6(e)?[]:(M6(e,t),Array.from(t))}var xT={forceWritable:!1};function G1(e,t=xT){return Am(e,new WeakMap,t)}function Am(e,t,r=xT){let n,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:n=e.length}),t.set(e,i);n--;)i[n]=Am(e[n],t,r);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let a=TT(e);for(let l of a){let u=Object.getOwnPropertyDescriptor(e,l);if(!u)continue;let p=Am(e[l],t,r);r.forceWritable?Object.defineProperty(i,l,{enumerable:u.enumerable,configurable:!0,writable:!0,value:p}):"get"in u?Object.defineProperty(i,l,{...u,get(){return p}}):Object.defineProperty(i,l,{...u,value:p})}return i}return e}function q6(){}var rn=-1,Wr=1,wr=0,br=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function j6(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),i=n,a=0;for(;r<i;)e.substring(a,i)===t.substring(a,i)?(r=i,a=r):n=i,i=Math.floor((n-r)/2+r);return i}function RT(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),i=n,a=0;for(;r<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(r=i,a=r):n=i,i=Math.floor((n-r)/2+r);return i}function K1(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let i=Math.min(r,n);if(e===t)return i;let a=0,l=1;for(;;){let u=e.substring(i-l),p=t.indexOf(u);if(p===-1)return a;l+=p,(p===0||e.substring(i-l)===t.substring(0,l))&&(a=l,l++)}}function $6(e){let t=!1,r=[],n=0,i=null,a=0,l=0,u=0,p=0,c=0;for(;a<e.length;)e[a][0]===wr?(r[n++]=a,l=p,u=c,p=0,c=0,i=e[a][1]):(e[a][0]===Wr?p+=e[a][1].length:c+=e[a][1].length,i&&i.length<=Math.max(l,u)&&i.length<=Math.max(p,c)&&(e.splice(r[n-1],0,new br(rn,i)),e[r[n-1]+1][0]=Wr,n--,n--,a=n>0?r[n-1]:-1,l=0,u=0,p=0,c=0,i=null,t=!0)),a++;for(t&&DT(e),J6(e),a=1;a<e.length;){if(e[a-1][0]===rn&&e[a][0]===Wr){let m=e[a-1][1],y=e[a][1],g=K1(m,y),b=K1(y,m);g>=b?(g>=m.length/2||g>=y.length/2)&&(e.splice(a,0,new br(wr,y.substring(0,g))),e[a-1][1]=m.substring(0,m.length-g),e[a+1][1]=y.substring(g),a++):(b>=m.length/2||b>=y.length/2)&&(e.splice(a,0,new br(wr,m.substring(0,b))),e[a-1][0]=Wr,e[a-1][1]=y.substring(0,y.length-b),e[a+1][0]=rn,e[a+1][1]=m.substring(b),a++),a++}a++}}var Y1=/[^a-z0-9]/i,X1=/\s/,Q1=/[\r\n]/,V6=/\n\r?\n$/,U6=/^\r?\n\r?\n/;function J6(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===wr&&e[t+1][0]===wr){let r=e[t-1][1],n=e[t][1],i=e[t+1][1],a=RT(r,n);if(a){let m=n.substring(n.length-a);r=r.substring(0,r.length-a),n=m+n.substring(0,n.length-a),i=m+i}let l=r,u=n,p=i,c=Uc(r,n)+Uc(n,i);for(;n.charAt(0)===i.charAt(0);){r+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);let m=Uc(r,n)+Uc(n,i);m>=c&&(c=m,l=r,u=n,p=i)}e[t-1][1]!==l&&(l?e[t-1][1]=l:(e.splice(t-1,1),t--),e[t][1]=u,p?e[t+1][1]=p:(e.splice(t+1,1),t--))}t++}}function DT(e){e.push(new br(wr,""));let t=0,r=0,n=0,i="",a="",l;for(;t<e.length;)switch(e[t][0]){case Wr:n++,a+=e[t][1],t++;break;case rn:r++,i+=e[t][1],t++;break;case wr:r+n>1?(r!==0&&n!==0&&(l=j6(a,i),l!==0&&(t-r-n>0&&e[t-r-n-1][0]===wr?e[t-r-n-1][1]+=a.substring(0,l):(e.splice(0,0,new br(wr,a.substring(0,l))),t++),a=a.substring(l),i=i.substring(l)),l=RT(a,i),l!==0&&(e[t][1]=a.substring(a.length-l)+e[t][1],a=a.substring(0,a.length-l),i=i.substring(0,i.length-l))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new br(rn,i)),t++),a.length&&(e.splice(t,0,new br(Wr,a)),t++),t++):t!==0&&e[t-1][0]===wr?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",a="";break}e[e.length-1][1]===""&&e.pop();let u=!1;for(t=1;t<e.length-1;)e[t-1][0]===wr&&e[t+1][0]===wr&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),u=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),u=!0)),t++;u&&DT(e)}function Uc(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(Y1),a=n.match(Y1),l=i&&r.match(X1),u=a&&n.match(X1),p=l&&r.match(Q1),c=u&&n.match(Q1),m=p&&e.match(V6),y=c&&t.match(U6);return m||y?5:p||c?4:i&&!l&&u?3:l||u?2:i||a?1:0}var PT="Compared values have no visual difference.",z6="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Jc={},Z1;function H6(){if(Z1)return Jc;Z1=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=g;let e="diff-sequences",t=0,r=(b,w,A,x,_)=>{let R=0;for(;b<w&&A<x&&_(b,A);)b+=1,A+=1,R+=1;return R},n=(b,w,A,x,_)=>{let R=0;for(;b<=w&&A<=x&&_(w,x);)w-=1,x-=1,R+=1;return R},i=(b,w,A,x,_,R,j)=>{let B=0,F=-b,E=R[B],P=E;R[B]+=r(E+1,w,x+E-F+1,A,_);let N=b<j?b:j;for(B+=1,F+=2;B<=N;B+=1,F+=2){if(B!==b&&P<R[B])E=R[B];else if(E=P+1,w<=E)return B-1;P=R[B],R[B]=E+r(E+1,w,x+E-F+1,A,_)}return j},a=(b,w,A,x,_,R,j)=>{let B=0,F=b,E=R[B],P=E;R[B]-=n(w,E-1,A,x+E-F-1,_);let N=b<j?b:j;for(B+=1,F-=2;B<=N;B+=1,F-=2){if(B!==b&&R[B]<P)E=R[B];else if(E=P-1,E<w)return B-1;P=R[B],R[B]=E-n(w,E-1,A,x+E-F-1,_)}return j},l=(b,w,A,x,_,R,j,B,F,E,P)=>{let N=x-w,L=A-w,Z=_-x-L,H=-Z-(b-1),te=-Z+(b-1),W=t,$=b<B?b:B;for(let K=0,ne=-b;K<=$;K+=1,ne+=2){let ae=K===0||K!==b&&W<j[K],oe=ae?j[K]:W,Ae=ae?oe:oe+1,Ce=N+Ae-ne,re=r(Ae+1,A,Ce+1,_,R),G=Ae+re;if(W=j[K],j[K]=G,H<=ne&&ne<=te){let he=(b-1-(ne+Z))/2;if(he<=E&&F[he]-1<=G){let De=N+oe-(ae?ne+1:ne-1),_e=n(w,oe,x,De,R),ge=oe-_e,Ve=De-_e,$e=ge+1,lt=Ve+1;P.nChangePreceding=b-1,b-1===$e+lt-w-x?(P.aEndPreceding=w,P.bEndPreceding=x):(P.aEndPreceding=$e,P.bEndPreceding=lt),P.nCommonPreceding=_e,_e!==0&&(P.aCommonPreceding=$e,P.bCommonPreceding=lt),P.nCommonFollowing=re,re!==0&&(P.aCommonFollowing=Ae+1,P.bCommonFollowing=Ce+1);let le=G+1,ke=Ce+re+1;return P.nChangeFollowing=b-1,b-1===A+_-le-ke?(P.aStartFollowing=A,P.bStartFollowing=_):(P.aStartFollowing=le,P.bStartFollowing=ke),!0}}}return!1},u=(b,w,A,x,_,R,j,B,F,E,P)=>{let N=_-A,L=A-w,Z=_-x-L,H=Z-b,te=Z+b,W=t,$=b<E?b:E;for(let K=0,ne=b;K<=$;K+=1,ne-=2){let ae=K===0||K!==b&&F[K]<W,oe=ae?F[K]:W,Ae=ae?oe:oe-1,Ce=N+Ae-ne,re=n(w,Ae-1,x,Ce-1,R),G=Ae-re;if(W=F[K],F[K]=G,H<=ne&&ne<=te){let he=(b+(ne-Z))/2;if(he<=B&&G-1<=j[he]){let De=Ce-re;if(P.nChangePreceding=b,b===G+De-w-x?(P.aEndPreceding=w,P.bEndPreceding=x):(P.aEndPreceding=G,P.bEndPreceding=De),P.nCommonPreceding=re,re!==0&&(P.aCommonPreceding=G,P.bCommonPreceding=De),P.nChangeFollowing=b-1,b===1)P.nCommonFollowing=0,P.aStartFollowing=A,P.bStartFollowing=_;else{let _e=N+oe-(ae?ne-1:ne+1),ge=r(oe,A,_e,_,R);P.nCommonFollowing=ge,ge!==0&&(P.aCommonFollowing=oe,P.bCommonFollowing=_e);let Ve=oe+ge,$e=_e+ge;b-1===A+_-Ve-$e?(P.aStartFollowing=A,P.bStartFollowing=_):(P.aStartFollowing=Ve,P.bStartFollowing=$e)}return!0}}}return!1},p=(b,w,A,x,_,R,j,B,F)=>{let E=x-w,P=_-A,N=A-w,L=_-x,Z=L-N,H=N,te=N;if(j[0]=w-1,B[0]=A,Z%2===0){let W=(b||Z)/2,$=(N+L)/2;for(let K=1;K<=$;K+=1)if(H=i(K,A,_,E,R,j,H),K<W)te=a(K,w,x,P,R,B,te);else if(u(K,w,A,x,_,R,j,H,B,te,F))return}else{let W=((b||Z)+1)/2,$=(N+L+1)/2,K=1;for(H=i(K,A,_,E,R,j,H),K+=1;K<=$;K+=1)if(te=a(K-1,w,x,P,R,B,te),K<W)H=i(K,A,_,E,R,j,H);else if(l(K,w,A,x,_,R,j,H,B,te,F))return}throw new Error(`${e}: no overlap aStart=${w} aEnd=${A} bStart=${x} bEnd=${_}`)},c=(b,w,A,x,_,R,j,B,F,E)=>{if(_-x<A-w){if(R=!R,R&&j.length===1){let{foundSubsequence:he,isCommon:De}=j[0];j[1]={foundSubsequence:(_e,ge,Ve)=>{he(_e,Ve,ge)},isCommon:(_e,ge)=>De(ge,_e)}}let re=w,G=A;w=x,A=_,x=re,_=G}let{foundSubsequence:P,isCommon:N}=j[R?1:0];p(b,w,A,x,_,N,B,F,E);let{nChangePreceding:L,aEndPreceding:Z,bEndPreceding:H,nCommonPreceding:te,aCommonPreceding:W,bCommonPreceding:$,nCommonFollowing:K,aCommonFollowing:ne,bCommonFollowing:ae,nChangeFollowing:oe,aStartFollowing:Ae,bStartFollowing:Ce}=E;w<Z&&x<H&&c(L,w,Z,x,H,R,j,B,F,E),te!==0&&P(te,W,$),K!==0&&P(K,ne,ae),Ae<A&&Ce<_&&c(oe,Ae,A,Ce,_,R,j,B,F,E)},m=(b,w)=>{if(typeof w!="number")throw new TypeError(`${e}: ${b} typeof ${typeof w} is not a number`);if(!Number.isSafeInteger(w))throw new RangeError(`${e}: ${b} value ${w} is not a safe integer`);if(w<0)throw new RangeError(`${e}: ${b} value ${w} is a negative integer`)},y=(b,w)=>{let A=typeof w;if(A!=="function")throw new TypeError(`${e}: ${b} typeof ${A} is not a function`)};function g(b,w,A,x){m("aLength",b),m("bLength",w),y("isCommon",A),y("foundSubsequence",x);let _=r(0,b,0,w,A);if(_!==0&&x(_,0,0),b!==_||w!==_){let R=_,j=_,B=n(R,b-1,j,w-1,A),F=b-B,E=w-B,P=_+B;b!==P&&w!==P&&c(0,R,F,j,E,!1,[{foundSubsequence:x,isCommon:A}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),B!==0&&x(B,F,E)}}return Jc}var W6=H6(),OT=CT(W6);function G6(e,t){return e.replace(/\s+$/,r=>t(r))}function _g(e,t,r,n,i,a){return e.length!==0?r(`${n} ${G6(e,i)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function NT(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return _g(e,t,r,n,i,a)}function IT(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return _g(e,t,r,n,i,a)}function FT(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return _g(e,t,r,n,i,a)}function ew(e,t,r,n,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function K6(e,t){let r=e.length,n=t.contextLines,i=n+n,a=r,l=!1,u=0,p=0;for(;p!==r;){let B=p;for(;p!==r&&e[p][0]===wr;)p+=1;if(B!==p)if(B===0)p>n&&(a-=p-n,l=!0);else if(p===r){let F=p-B;F>n&&(a-=F-n,l=!0)}else{let F=p-B;F>i&&(a-=F-i,u+=1)}for(;p!==r&&e[p][0]!==wr;)p+=1}let c=u!==0||l;u!==0?a+=u+1:l&&(a+=1);let m=a-1,y=[],g=0;c&&y.push("");let b=0,w=0,A=0,x=0,_=B=>{let F=y.length;y.push(FT(B,F===0||F===m,t)),A+=1,x+=1},R=B=>{let F=y.length;y.push(NT(B,F===0||F===m,t)),A+=1},j=B=>{let F=y.length;y.push(IT(B,F===0||F===m,t)),x+=1};for(p=0;p!==r;){let B=p;for(;p!==r&&e[p][0]===wr;)p+=1;if(B!==p)if(B===0){p>n&&(B=p-n,b=B,w=B,A=b,x=w);for(let F=B;F!==p;F+=1)_(e[F][1])}else if(p===r){let F=p-B>n?B+n:p;for(let E=B;E!==F;E+=1)_(e[E][1])}else{let F=p-B;if(F>i){let E=B+n;for(let N=B;N!==E;N+=1)_(e[N][1]);y[g]=ew(b,A,w,x,t),g=y.length,y.push("");let P=F-i;b=A+P,w=x+P,A=b,x=w;for(let N=p-n;N!==p;N+=1)_(e[N][1])}else for(let E=B;E!==p;E+=1)_(e[E][1])}for(;p!==r&&e[p][0]===rn;)R(e[p][1]),p+=1;for(;p!==r&&e[p][0]===Wr;)j(e[p][1]),p+=1}return c&&(y[g]=ew(b,A,w,x,t)),y.join(`
|
|
168
|
+
`)}function Y6(e,t){return e.map((r,n,i)=>{let a=r[1],l=n===0||n===i.length-1;switch(r[0]){case rn:return NT(a,l,t);case Wr:return IT(a,l,t);default:return FT(a,l,t)}}).join(`
|
|
169
|
+
`)}var Fh=e=>e,kT=5,X6=0;function Q6(){return{aAnnotation:"Expected",aColor:qi.green,aIndicator:"-",bAnnotation:"Received",bColor:qi.red,bIndicator:"+",changeColor:qi.inverse,changeLineTrailingSpaceColor:Fh,commonColor:qi.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Fh,compareKeys:void 0,contextLines:kT,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:qi.yellow,printBasicPrototype:!1,truncateThreshold:X6,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Fh}}function Z6(e){return e&&typeof e=="function"?e:void 0}function e8(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:kT}function Ra(e={}){return{...Q6(),...e,compareKeys:Z6(e.compareKeys),contextLines:e8(e.contextLines)}}function as(e){return e.length===1&&e[0].length===0}function t8(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case rn:t+=1;break;case Wr:r+=1;break}}),{a:t,b:r}}function r8({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:i,bIndicator:a,includeChangeCounts:l,omitAnnotationLines:u},p){if(u)return"";let c="",m="";if(l){let b=String(p.a),w=String(p.b),A=n.length-e.length,x=" ".repeat(Math.max(0,A)),_=" ".repeat(Math.max(0,-A)),R=w.length-b.length,j=" ".repeat(Math.max(0,R)),B=" ".repeat(Math.max(0,-R));c=`${x} ${r} ${j}${b}`,m=`${_} ${a} ${B}${w}`}let y=`${r} ${e}${c}`,g=`${a} ${n}${m}`;return`${t(y)}
|
|
170
|
+
${i(g)}
|
|
171
|
+
|
|
172
|
+
`}function Cg(e,t,r){return r8(r,t8(e))+(r.expand?Y6(e,r):K6(e,r))+(t?r.truncateAnnotationColor(`
|
|
173
|
+
${r.truncateAnnotation}`):"")}function op(e,t,r){let n=Ra(r),[i,a]=BT(as(e)?[]:e,as(t)?[]:t,n);return Cg(i,a,n)}function n8(e,t,r,n,i){if(as(e)&&as(r)&&(e=[],r=[]),as(t)&&as(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return op(e,t,i);let[a,l]=BT(r,n,i),u=0,p=0;return a.forEach(c=>{switch(c[0]){case rn:c[1]=e[u],u+=1;break;case Wr:c[1]=t[p],p+=1;break;default:c[1]=t[p],u+=1,p+=1}}),Cg(a,l,Ra(i))}function BT(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,i):e.length,l=n?Math.min(t.length,i):t.length,u=a!==e.length||l!==t.length,p=(g,b)=>e[g]===t[b],c=[],m=0,y=0;for(OT(a,l,p,(g,b,w)=>{for(;m!==b;m+=1)c.push(new br(rn,e[m]));for(;y!==w;y+=1)c.push(new br(Wr,t[y]));for(;g!==0;g-=1,m+=1,y+=1)c.push(new br(wr,t[y]))});m!==a;m+=1)c.push(new br(rn,e[m]));for(;y!==l;y+=1)c.push(new br(Wr,t[y]));return[c,u]}function tw(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function rw(e){return e.includes(`\r
|
|
174
|
+
`)?`\r
|
|
175
|
+
`:`
|
|
176
|
+
`}function i8(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,l=t.length;if(n){let g=e.includes(`
|
|
177
|
+
`),b=t.includes(`
|
|
178
|
+
`),w=rw(e),A=rw(t),x=g?`${e.split(w,i).join(w)}
|
|
179
|
+
`:e,_=b?`${t.split(A,i).join(A)}
|
|
180
|
+
`:t;a=x.length,l=_.length}let u=a!==e.length||l!==t.length,p=(g,b)=>e[g]===t[b],c=0,m=0,y=[];return OT(a,l,p,(g,b,w)=>{c!==b&&y.push(new br(rn,e.slice(c,b))),m!==w&&y.push(new br(Wr,t.slice(m,w))),c=b+g,m=w+g,y.push(new br(wr,t.slice(w,m)))}),c!==a&&y.push(new br(rn,e.slice(c))),m!==l&&y.push(new br(Wr,t.slice(m))),[y,u]}function o8(e,t,r){return t.reduce((n,i)=>n+(i[0]===wr?i[1]:i[0]===e&&i[1].length!==0?r(i[1]):""),"")}var nw=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new br(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new br(this.op,o8(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new br(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
181
|
+
`)){let r=t.split(`
|
|
182
|
+
`),n=r.length-1;r.forEach((i,a)=>{a<n?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},a8=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
183
|
+
`)){let n=r.split(`
|
|
184
|
+
`),i=n.length-1;n.forEach((a,l)=>{if(l===0){let u=new br(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else l<i?this.pushDiffCommonLine(new br(t,a)):a.length!==0&&this.pushDiffChangeLines(new br(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function s8(e,t){let r=new nw(rn,t),n=new nw(Wr,t),i=new a8(r,n);return e.forEach(a=>{switch(a[0]){case rn:r.align(a);break;case Wr:n.align(a);break;default:i.align(a)}}),i.getLines()}function l8(e,t){if(t){let r=e.length-1;return e.some((n,i)=>n[0]===wr&&(i!==r||n[1]!==`
|
|
185
|
+
`))}return e.some(r=>r[0]===wr)}function u8(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
186
|
+
`)||t.includes(`
|
|
187
|
+
`),[i,a]=LT(n?`${e}
|
|
188
|
+
`:e,n?`${t}
|
|
189
|
+
`:t,!0,r);if(l8(i,n)){let l=Ra(r),u=s8(i,l.changeColor);return Cg(u,a,l)}}return op(e.split(`
|
|
190
|
+
`),t.split(`
|
|
191
|
+
`),r)}function LT(e,t,r,n){let[i,a]=i8(e,t,n);return $6(i),[i,a]}function _m(e,t){let{commonColor:r}=Ra(t);return r(e)}var{AsymmetricMatcher:c8,DOMCollection:d8,DOMElement:p8,Immutable:f8,ReactElement:h8,ReactTestComponent:m8}=Ag,MT=[m8,h8,p8,d8,f8,c8,Ag.Error],Cm={maxDepth:20,plugins:MT},qT={callToJSON:!1,maxDepth:8,plugins:MT};function ks(e,t,r){if(Object.is(e,t))return"";let n=tw(e),i=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),a=i==="string"}if(i!==tw(t)){let l=function(j){return j.length<=x?j:`${j.slice(0,x)}...`},{aAnnotation:u,aColor:p,aIndicator:c,bAnnotation:m,bColor:y,bIndicator:g}=Ra(r),b=Tm(qT,r),w=wi(e,b),A=wi(t,b),x=1e5;w=l(w),A=l(A);let _=`${p(`${c} ${u}:`)}
|
|
192
|
+
${w}`,R=`${y(`${g} ${m}:`)}
|
|
193
|
+
${A}`;return`${_}
|
|
194
|
+
|
|
195
|
+
${R}`}if(!a)switch(n){case"string":return op(e.split(`
|
|
196
|
+
`),t.split(`
|
|
197
|
+
`),r);case"boolean":case"number":return y8(e,t,r);case"map":return kh(iw(e),iw(t),r);case"set":return kh(ow(e),ow(t),r);default:return kh(e,t,r)}}function y8(e,t,r){let n=wi(e,Cm),i=wi(t,Cm);return n===i?"":op(n.split(`
|
|
198
|
+
`),i.split(`
|
|
199
|
+
`),r)}function iw(e){return new Map(Array.from(e.entries()).sort())}function ow(e){return new Set(Array.from(e.values()).sort())}function kh(e,t,r){let n,i=!1;try{let l=Tm(Cm,r);n=aw(e,t,l,r)}catch{i=!0}let a=_m(PT,r);if(n===void 0||n===a){let l=Tm(qT,r);n=aw(e,t,l,r),n!==a&&!i&&(n=`${_m(z6,r)}
|
|
200
|
+
|
|
201
|
+
${n}`)}return n}function Tm(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:i}=Ra(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:i??e.maxDepth}}function aw(e,t,r,n){let i={...r,indent:0},a=wi(e,i),l=wi(t,i);if(a===l)return _m(PT,n);{let u=wi(e,r),p=wi(t,r);return n8(u.split(`
|
|
202
|
+
`),p.split(`
|
|
203
|
+
`),a.split(`
|
|
204
|
+
`),l.split(`
|
|
205
|
+
`),n)}}var sw=2e4;function lw(e){return Sd(e)==="Object"&&typeof e.asymmetricMatch=="function"}function uw(e,t){let r=Sd(e),n=Sd(t);return r===n&&(r==="Object"||r==="Array")}function jT(e,t,r){let{aAnnotation:n,bAnnotation:i}=Ra(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=sw&&e.length<=sw&&t!==e){if(t.includes(`
|
|
206
|
+
`)||e.includes(`
|
|
207
|
+
`))return u8(t,e,r);let[c]=LT(t,e),m=c.some(w=>w[0]===wr),y=g8(n,i),g=y(n)+E8(cw(c,rn,m)),b=y(i)+v8(cw(c,Wr,m));return`${g}
|
|
208
|
+
${b}`}let a=G1(t,{forceWritable:!0}),l=G1(e,{forceWritable:!0}),{replacedExpected:u,replacedActual:p}=$T(l,a);return ks(u,p,r)}function $T(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):uw(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),TT(t).forEach(i=>{let a=t[i],l=e[i];if(lw(a))a.asymmetricMatch(l)&&(e[i]=a);else if(lw(l))l.asymmetricMatch(a)&&(t[i]=l);else if(uw(l,a)){let u=$T(l,a,r,n);e[i]=u.replacedActual,t[i]=u.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function g8(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var b8="·";function VT(e){return e.replace(/\s+$/gm,t=>b8.repeat(t.length))}function v8(e){return qi.red(VT(Pn(e)))}function E8(e){return qi.green(VT(Pn(e)))}function cw(e,t,r){return e.reduce((n,i)=>n+(i[0]===wr?i[1]:i[0]===t?r?qi.inverse(i[1]):i[1]:""),"")}var w8="@@__IMMUTABLE_RECORD__@@",S8="@@__IMMUTABLE_ITERABLE__@@";function A8(e){return e&&(e[S8]||e[w8])}var _8=Object.getPrototypeOf({});function dw(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Do(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&zc(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&zc(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&zc(()=>r.name??(r.name=e.name)),e.cause!=null&&zc(()=>r.cause??(r.cause=Do(e.cause,t)))),Do(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(A8(e))return Do(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${B6(e.sample)}`;if(typeof e.toJSON=="function")return Do(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,i)=>{try{r[i]=Do(n,t)}catch(a){r[i]=dw(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==_8;)Object.getOwnPropertyNames(n).forEach(i=>{if(!(i in r))try{r[i]=Do(e[i],t)}catch(a){delete r[i],r[i]=dw(a)}}),n=Object.getPrototypeOf(n);return r}}function zc(e){try{return e()}catch{}}function C8(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Tg(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=jT(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Pn(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Pn(n.actual,10));try{typeof n.message=="string"&&(n.message=C8(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Tg(n.cause,t,r))}catch{}try{return Do(n)}catch(i){return Do(new Error(`Failed to fully serialize error: ${i?.message}
|
|
209
|
+
Inner error message: ${n?.message}`))}}var Bi={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Bh=globalThis.__STORYBOOK_ADDONS_PREVIEW,T8=new Error("This function ran after the play function completed. Did you forget to `await` it?"),pw=e=>Object.prototype.toString.call(e)==="[object Object]",x8=e=>Object.prototype.toString.call(e)==="[object Module]",R8=e=>{if(!pw(e)&&!x8(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!pw(t)},D8=e=>{try{return new e.constructor}catch{return{}}},Lh=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),fw=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},P8=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=He.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{He.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:u,renderPhase:p,isPlaying:c=!0,isDebugging:m=!1})=>{let y=this.getState(u);this.setState(u,{...Lh(),...fw(y,m),renderPhase:p||y.renderPhase,shadowCalls:m?y.shadowCalls:[],chainedCallIds:m?y.chainedCallIds:new Set,playUntil:m?y.playUntil:void 0,isPlaying:c,isDebugging:m}),this.sync(u)},t=u=>({storyId:p,playUntil:c})=>{this.getState(p).isDebugging||this.setState(p,({calls:y})=>({calls:[],shadowCalls:y.map(g=>({...g,status:"waiting"})),isDebugging:!0}));let m=this.getLog(p);this.setState(p,({shadowCalls:y})=>{if(c||!m.length)return{playUntil:c};let g=y.findIndex(b=>b.id===m[0].callId);return{playUntil:y.slice(0,g).filter(b=>b.interceptable&&!b.ancestors?.length).slice(-1)[0]?.id}}),u.emit(vd,{storyId:p,isDebugging:!0})},r=u=>({storyId:p})=>{let c=this.getLog(p).filter(y=>!y.ancestors?.length),m=c.reduceRight((y,g,b)=>y>=0||g.status==="waiting"?y:b,-1);t(u)({storyId:p,playUntil:c[m-1]?.callId})},n=u=>({storyId:p,callId:c})=>{let{calls:m,shadowCalls:y,resolvers:g}=this.getState(p),b=m.find(({id:A})=>A===c),w=y.find(({id:A})=>A===c);if(!b&&w&&Object.values(g).length>0){let A=this.getLog(p).find(x=>x.status==="waiting")?.callId;w.id!==A&&this.setState(p,{playUntil:w.id}),Object.values(g).forEach(x=>x())}else t(u)({storyId:p,playUntil:c})},i=u=>({storyId:p})=>{let{resolvers:c}=this.getState(p);if(Object.values(c).length>0)Object.values(c).forEach(m=>m());else{let m=this.getLog(p).find(y=>y.status==="waiting")?.callId;m?t(u)({storyId:p,playUntil:m}):a({storyId:p})}},a=({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach(p=>p())},l=({storyId:u,newPhase:p})=>{let{isDebugging:c}=this.getState(u);if(p==="preparing"&&c)return e({storyId:u,renderPhase:p,isDebugging:c});if(p==="playing")return e({storyId:u,renderPhase:p,isDebugging:c});p==="played"?this.setState(u,{renderPhase:p,isLocked:!1,isPlaying:!1,isDebugging:!1}):p==="errored"?this.setState(u,{renderPhase:p,isLocked:!1,isPlaying:!1}):p==="aborted"?this.setState(u,{renderPhase:p,isLocked:!0,isPlaying:!1}):this.setState(u,{renderPhase:p}),this.sync(u)};Bh&&Bh.ready().then(()=>{this.channel=Bh.getChannel(),this.channel.on(vd,e),this.channel.on(wa,l),this.channel.on(Xy,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Bi.START,t(this.channel)),this.channel.on(Bi.BACK,r(this.channel)),this.channel.on(Bi.GOTO,n(this.channel)),this.channel.on(Bi.NEXT,i(this.channel)),this.channel.on(Bi.END,a)})}getState(e){return this.state[e]||Lh()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let i=fw(n);return i&&(t[r]=Object.assign(Lh(),i)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Bi.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,l)=>{n[l]=a});let i=new Set;return n.reduceRight((a,l)=>(l.args.forEach(u=>{u?.__callId__&&i.add(u.__callId__)}),l.path.forEach(u=>{u.__callId__&&i.add(u.__callId__)}),(l.interceptable||l.exception)&&!i.has(l.id)&&(a.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),i.add(l.id)),a),[])}instrument(e,t,r=0){if(!R8(e))return e;let{mutate:n=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((l,u)=>{let p=O8(e,u);if(typeof p?.get=="function"){if(p.configurable){let m=()=>p?.get?.bind(e)?.();Object.defineProperty(l,u,{get:()=>this.instrument(m(),{...t,path:i.concat(u)},r)})}return l}let c=e[u];return typeof c!="function"?(l[u]=this.instrument(c,{...t,path:i.concat(u)},r),l):"__originalFn__"in c&&typeof c.__originalFn__=="function"?(l[u]=c,l):(l[u]=(...m)=>this.track(u,c,e,m,t),l[u].__originalFn__=c,Object.defineProperty(l[u],"name",{value:u,writable:!1}),Object.keys(c).length>0&&Object.assign(l[u],this.instrument({...c},{...t,path:i.concat(u)},r)),l)},n?e:D8(e))}track(e,t,r,n,i){let a=n?.[0]?.__storyId__||He.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:l,ancestors:u}=this.getState(a);this.setState(a,{cursor:l+1});let p=`${u.slice(-1)[0]||a} [${l}] ${e}`,{path:c=[],intercept:m=!1,retain:y=!1}=i,g=typeof m=="function"?m(e,c):m,b={id:p,cursor:l,storyId:a,ancestors:u,path:c,method:e,args:n,interceptable:g,retain:y},w=(g&&!u.length?this.intercept:this.invoke).call(this,t,r,b,i);return this.instrument(w,{...i,mutate:!0,path:[{__callId__:b.id}]})}intercept(e,t,r,n){let{chainedCallIds:i,isDebugging:a,playUntil:l}=this.getState(r.storyId),u=i.has(r.id);return!a||u||l?(l===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(p=>{this.setState(r.storyId,({resolvers:c})=>({isLocked:!1,resolvers:{...c,[r.id]:p}}))}).then(()=>(this.setState(r.storyId,p=>{let{[r.id]:c,...m}=p.resolvers;return{isLocked:!0,resolvers:m}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:i,renderPhase:a}=this.getState(r.storyId),l=25,u=(m,y,g)=>{if(g.includes(m))return"[Circular]";if(g=[...g,m],y>l)return"...";if(i.has(m))return i.get(m);if(m instanceof Array)return m.map(b=>u(b,++y,g));if(m instanceof Date)return{__date__:{value:m.toISOString()}};if(m instanceof Error){let{name:b,message:w,stack:A}=m;return{__error__:{name:b,message:w,stack:A}}}if(m instanceof RegExp){let{flags:b,source:w}=m;return{__regexp__:{flags:b,source:w}}}if(m instanceof He.window?.HTMLElement){let{prefix:b,localName:w,id:A,classList:x,innerText:_}=m,R=Array.from(x);return{__element__:{prefix:b,localName:w,id:A,classNames:R,innerText:_}}}return typeof m=="function"?{__function__:{name:"getMockName"in m?m.getMockName():m.name}}:typeof m=="symbol"?{__symbol__:{description:m.description}}:typeof m=="object"&&m?.constructor?.name&&m?.constructor?.name!=="Object"?{__class__:{name:m.constructor.name}}:Object.prototype.toString.call(m)==="[object Object]"?Object.fromEntries(Object.entries(m).map(([b,w])=>[b,u(w,++y,g)])):m},p={...r,args:r.args.map(m=>u(m,0,[]))};r.path.forEach(m=>{m?.__callId__&&this.setState(r.storyId,({chainedCallIds:y})=>({chainedCallIds:new Set(Array.from(y).concat(m.__callId__))}))});let c=m=>{if(m instanceof Error){let{name:y,message:g,stack:b,callId:w=r.id}=m,{showDiff:A=void 0,diff:x=void 0,actual:_=void 0,expected:R=void 0}=m.name==="AssertionError"?Tg(m):m,j={name:y,message:g,stack:b,callId:w,showDiff:A,diff:x,actual:_,expected:R};if(this.update({...p,status:"error",exception:j}),this.setState(r.storyId,B=>({callRefsByResult:new Map([...Array.from(B.callRefsByResult.entries()),[m,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(m,"callId")||Object.defineProperty(m,"callId",{value:r.id}),m}throw m};try{if(a==="played"&&!r.retain)throw T8;let m=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(g=>typeof g!="function"||N8(g)||Object.keys(g).length?g:(...b)=>{let{cursor:w,ancestors:A}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...A,r.id]});let x=()=>this.setState(r.storyId,{cursor:w,ancestors:A}),_=!1;try{let R=g(...b);return R instanceof Promise?(_=!0,R.finally(x)):R}finally{_||x()}}),y=e.apply(t,m);return y&&["object","function","symbol"].includes(typeof y)&&this.setState(r.storyId,g=>({callRefsByResult:new Map([...Array.from(g.callRefsByResult.entries()),[y,{__callId__:r.id,retain:r.retain}]])})),this.update({...p,status:y instanceof Promise?"active":"done"}),y instanceof Promise?y.then(g=>(this.update({...p,status:"done"}),g),c):y}catch(m){return c(m)}}update(e){this.channel?.emit(Bi.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,i)=>Object.assign(n,{[i.id]:i}),{});return{calls:Object.values(r).sort((n,i)=>n.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),i=this.getLog(e),a=i.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting")?.callId,l=i.some(c=>c.status==="active");if(this.detached||r||l||i.length===0){let c={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};this.channel?.emit(Bi.SYNC,c);return}let u=i.some(c=>c.status==="done"||c.status==="error"),p={controlStates:{detached:this.detached,start:u,back:u,goto:!0,next:n,end:n},logItems:i,pausedAt:a};this.channel?.emit(Bi.SYNC,p)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function wu(e,t={}){try{let r=!1,n=!1;return He.window?.location?.search?.includes("instrument=true")?r=!0:He.window?.location?.search?.includes("instrument=false")&&(n=!0),He.window?.parent===He.window&&!r||n?e:(He.window&&!He.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(He.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new P8),(He.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Sr.warn(r),e}}function O8(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function N8(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var UT=Object.defineProperty,ye=(e,t)=>UT(e,"name",{value:t,configurable:!0}),xg=(e,t)=>{for(var r in t)UT(e,r,{get:t[r],enumerable:!0})},Si={};xg(Si,{addChainableMethod:()=>qg,addLengthGuard:()=>_u,addMethod:()=>Bg,addProperty:()=>kg,checkError:()=>Cn,compareByInspect:()=>Td,eql:()=>yx,expectTypes:()=>YT,flag:()=>Et,getActual:()=>sp,getMessage:()=>Pg,getName:()=>up,getOperator:()=>Ug,getOwnEnumerableProperties:()=>Vg,getOwnEnumerablePropertySymbols:()=>$g,getPathInfo:()=>Fg,hasProperty:()=>lp,inspect:()=>kt,isNaN:()=>xd,isNumeric:()=>$r,isProxyEnabled:()=>Au,isRegExp:()=>Rd,objDisplay:()=>ha,overwriteChainableMethod:()=>jg,overwriteMethod:()=>Mg,overwriteProperty:()=>Lg,proxify:()=>Bs,test:()=>Rg,transferFlags:()=>ai,type:()=>Qt});var Cn={};xg(Cn,{compatibleConstructor:()=>HT,compatibleInstance:()=>zT,compatibleMessage:()=>WT,getConstructorName:()=>GT,getMessage:()=>KT});function ap(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}ye(ap,"isErrorInstance");function JT(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ye(JT,"isRegExp");function zT(e,t){return ap(t)&&e===t}ye(zT,"compatibleInstance");function HT(e,t){return ap(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}ye(HT,"compatibleConstructor");function WT(e,t){let r=typeof e=="string"?e:e.message;return JT(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}ye(WT,"compatibleMessage");function GT(e){let t=e;return ap(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}ye(GT,"getConstructorName");function KT(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}ye(KT,"getMessage");function Et(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}ye(Et,"flag");function Rg(e,t){let r=Et(e,"negate"),n=t[0];return r?!n:n}ye(Rg,"test");function Qt(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}ye(Qt,"type");var I8="captureStackTrace"in Error,Hc,$t=(Hc=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,I8&&Error.captureStackTrace(this,r||Hc);for(let n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},ye(Hc,"AssertionError"),Hc);function YT(e,t){let r=Et(e,"message"),n=Et(e,"ssfi");r=r?r+": ":"",e=Et(e,"object"),t=t.map(function(l){return l.toLowerCase()}),t.sort();let i=t.map(function(l,u){let p=~["a","e","i","o","u"].indexOf(l.charAt(0))?"an":"a";return(t.length>1&&u===t.length-1?"or ":"")+p+" "+l}).join(", "),a=Qt(e).toLowerCase();if(!t.some(function(l){return a===l}))throw new $t(r+"object tested must be "+i+", but "+a+" given",void 0,n)}ye(YT,"expectTypes");function sp(e,t){return t.length>4?t[4]:e._obj}ye(sp,"getActual");var hw={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},F8={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},vs="…";function XT(e,t){let r=hw[F8[t]]||hw[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}ye(XT,"colorise");function QT({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:l=1/0,seen:u=[],truncate:p=1/0,stylize:c=String}={},m){let y={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(l),truncate:Number(p),seen:u,inspect:m,stylize:c};return y.colors&&(y.stylize=XT),y}ye(QT,"normaliseOptions");function ZT(e){return e>="\uD800"&&e<="\uDBFF"}ye(ZT,"isHighSurrogate");function Yi(e,t,r=vs){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let a=t-n;return a>0&&ZT(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}ye(Yi,"truncate");function zn(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let a=t.truncate,l="",u="",p="";for(let c=0;c<i;c+=1){let m=c+1===e.length,y=c+2===e.length;p=`${vs}(${e.length-c})`;let g=e[c];t.truncate=a-l.length-(m?0:n.length);let b=u||r(g,t)+(m?"":n),w=l.length+b.length,A=w+p.length;if(m&&w>a&&l.length+p.length<=a||!m&&!y&&A>a||(u=m?"":r(e[c+1],t)+(y?"":n),!m&&y&&A>a&&w+u.length>a))break;if(l+=b,!m&&!y&&w+u.length>=a){p=`${vs}(${e.length-c-1})`;break}p=""}return`${l}${p}`}ye(zn,"inspectList");function ex(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}ye(ex,"quoteComplexKey");function Es([e,t],r){return r.truncate-=2,typeof e=="string"?e=ex(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}ye(Es,"inspectProperty");function tx(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=zn(e,t);t.truncate-=n.length;let i="";return r.length&&(i=zn(r.map(a=>[a,e[a]]),t,Es)),`[ ${n}${i?`, ${i}`:""} ]`}ye(tx,"inspectArray");var k8=ye(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function bi(e,t){let r=k8(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let l=0;l<e.length;l++){let u=`${t.stylize(Yi(e[l],t.truncate),"number")}${l===e.length-1?"":", "}`;if(t.truncate-=u.length,e[l]!==e.length&&t.truncate<=3){i+=`${vs}(${e.length-e[l]+1})`;break}i+=u}let a="";return n.length&&(a=zn(n.map(l=>[l,e[l]]),t,Es)),`${r}[ ${i}${a?`, ${a}`:""} ]`}ye(bi,"inspectTypedArray");function rx(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${Yi(n[1],t.truncate-i.length-1)}`,"date")}ye(rx,"inspectDate");function xm(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Yi(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}ye(xm,"inspectFunction");function nx([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}ye(nx,"inspectMapEntry");function ix(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}ye(ix,"mapToEntries");function ox(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${zn(ix(e),t,nx)} }`)}ye(ox,"inspectMap");var B8=Number.isNaN||(e=>e!==e);function Rm(e,t){return B8(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Yi(String(e),t.truncate),"number")}ye(Rm,"inspectNumber");function Dm(e,t){let r=Yi(e.toString(),t.truncate-1);return r!==vs&&(r+="n"),t.stylize(r,"bigint")}ye(Dm,"inspectBigInt");function ax(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${Yi(i,n)}/${r}`,"regexp")}ye(ax,"inspectRegExp");function sx(e){let t=[];return e.forEach(r=>{t.push(r)}),t}ye(sx,"arrayFromSet");function lx(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${zn(sx(e),t)} }`)}ye(lx,"inspectSet");var mw=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),L8={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},M8=16;function ux(e){return L8[e]||`\\u${`0000${e.charCodeAt(0).toString(M8)}`.slice(-4)}`}ye(ux,"escape");function Pm(e,t){return mw.test(e)&&(e=e.replace(mw,ux)),t.stylize(`'${Yi(e,t.truncate-2)}'`,"string")}ye(Pm,"inspectString");function Om(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}ye(Om,"inspectSymbol");var q8=ye(()=>"Promise{…}","getPromiseValue"),j8=q8;function Ml(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=zn(r.map(u=>[u,e[u]]),t,Es),a=zn(n.map(u=>[u,e[u]]),t,Es);t.seen.pop();let l="";return i&&a&&(l=", "),`{ ${i}${l}${a} }`}ye(Ml,"inspectObject");var Mh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function cx(e,t){let r="";return Mh&&Mh in e&&(r=e[Mh]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ml(e,t)}`}ye(cx,"inspectClass");function dx(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${zn(e,t)} ]`)}ye(dx,"inspectArguments");var $8=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function px(e,t){let r=Object.getOwnPropertyNames(e).filter(l=>$8.indexOf(l)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=Yi(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=zn(r.map(l=>[l,e[l]]),t,Es);return`${n}${i}${a?` { ${a} }`:""}`}ye(px,"inspectObject");function fx([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}ye(fx,"inspectAttribute");function Ad(e,t){return zn(e,t,hx,`
|
|
210
|
+
`)}ye(Ad,"inspectNodeCollection");function hx(e,t){switch(e.nodeType){case 1:return Dg(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}ye(hx,"inspectNode");function Dg(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),l=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let u="";r.length>0&&(u+=" ",u+=zn(r.map(m=>[m,e.getAttribute(m)]),t,fx," ")),t.truncate-=u.length;let p=t.truncate,c=Ad(e.children,t);return c&&c.length>p&&(c=`${vs}(${e.children.length})`),`${i}${u}${a}${c}${l}`}ye(Dg,"inspectHTML");var V8=typeof Symbol=="function"&&typeof Symbol.for=="function",qh=V8?Symbol.for("chai/inspect"):"@@chai/inspect",jh=Symbol.for("nodejs.util.inspect.custom"),yw=new WeakMap,gw={},bw={undefined:ye((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:ye((e,t)=>t.stylize("null","null"),"null"),boolean:ye((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:ye((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Rm,Number:Rm,bigint:Dm,BigInt:Dm,string:Pm,String:Pm,function:xm,Function:xm,symbol:Om,Symbol:Om,Array:tx,Date:rx,Map:ox,Set:lx,RegExp:ax,Promise:j8,WeakSet:ye((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:ye((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:dx,Int8Array:bi,Uint8Array:bi,Uint8ClampedArray:bi,Int16Array:bi,Uint16Array:bi,Int32Array:bi,Uint32Array:bi,Float32Array:bi,Float64Array:bi,Generator:ye(()=>"","Generator"),DataView:ye(()=>"","DataView"),ArrayBuffer:ye(()=>"","ArrayBuffer"),Error:px,HTMLCollection:Ad,NodeList:Ad},U8=ye((e,t,r)=>qh in e&&typeof e[qh]=="function"?e[qh](t):jh in e&&typeof e[jh]=="function"?e[jh](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&yw.has(e.constructor)?yw.get(e.constructor)(e,t):gw[r]?gw[r](e,t):"","inspectCustom"),J8=Object.prototype.toString;function _d(e,t={}){let r=QT(t,_d),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=J8.call(e).slice(8,-1)),i in bw)return bw[i](e,r);if(n&&e){let l=U8(e,r,i);if(l)return typeof l=="string"?l:_d(l,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Ml(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Dg(e,r):"constructor"in e?e.constructor!==Object?cx(e,r):Ml(e,r):e===Object(e)?Ml(e,r):r.stylize(String(e),i)}ye(_d,"inspect");var dn={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function kt(e,t,r,n){let i={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:dn.truncateThreshold?dn.truncateThreshold:1/0};return _d(e,i)}ye(kt,"inspect");function ha(e){let t=kt(e),r=Object.prototype.toString.call(e);if(dn.truncateThreshold&&t.length>=dn.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}ye(ha,"objDisplay");function Pg(e,t){let r=Et(e,"negate"),n=Et(e,"object"),i=t[3],a=sp(e,t),l=r?t[2]:t[1],u=Et(e,"message");return typeof l=="function"&&(l=l()),l=l||"",l=l.replace(/#\{this\}/g,function(){return ha(n)}).replace(/#\{act\}/g,function(){return ha(a)}).replace(/#\{exp\}/g,function(){return ha(i)}),u?u+": "+l:l}ye(Pg,"getMessage");function ai(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let i in n)(r||i!=="object"&&i!=="ssfi"&&i!=="lockSsfi"&&i!="message")&&(t.__flags[i]=n[i])}ye(ai,"transferFlags");function Nm(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}ye(Nm,"type");function Og(){this._key="chai/deep-eql__"+Math.random()+Date.now()}ye(Og,"FakeMap");Og.prototype={get:ye(function(e){return e[this._key]},"get"),set:ye(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var mx=typeof WeakMap=="function"?WeakMap:Og;function Im(e,t,r){if(!r||Aa(e)||Aa(t))return null;var n=r.get(e);if(n){var i=n.get(t);if(typeof i=="boolean")return i}return null}ye(Im,"memoizeCompare");function Dl(e,t,r,n){if(!(!r||Aa(e)||Aa(t))){var i=r.get(e);i?i.set(t,n):(i=new mx,i.set(t,n),r.set(e,i))}}ye(Dl,"memoizeSet");var yx=Su;function Su(e,t,r){if(r&&r.comparator)return Fm(e,t,r);var n=Ng(e,t);return n!==null?n:Fm(e,t,r)}ye(Su,"deepEqual");function Ng(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Aa(e)||Aa(t)?!1:null}ye(Ng,"simpleEqual");function Fm(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new mx;var n=r&&r.comparator,i=Im(e,t,r.memoize);if(i!==null)return i;var a=Im(t,e,r.memoize);if(a!==null)return a;if(n){var l=n(e,t);if(l===!1||l===!0)return Dl(e,t,r.memoize,l),l;var u=Ng(e,t);if(u!==null)return u}var p=Nm(e);if(p!==Nm(t))return Dl(e,t,r.memoize,!1),!1;Dl(e,t,r.memoize,!0);var c=gx(e,t,p,r);return Dl(e,t,r.memoize,c),c}ye(Fm,"extensiveDeepEqual");function gx(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Su(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Ig(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Fo(e,t,n);case"RegExp":return bx(e,t);case"Generator":return vx(e,t,n);case"DataView":return Fo(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Fo(new Uint8Array(e),new Uint8Array(t),n);case"Set":return km(e,t,n);case"Map":return km(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return wx(e,t,n)}}ye(gx,"extensiveDeepEqualByType");function bx(e,t){return e.toString()===t.toString()}ye(bx,"regexpEqual");function km(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],i=[];return e.forEach(ye(function(a,l){n.push([a,l])},"gatherEntries")),t.forEach(ye(function(a,l){i.push([a,l])},"gatherEntries")),Fo(n.sort(),i.sort(),r)}ye(km,"entriesEqual");function Fo(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var i=-1;++i<n;)if(Su(e[i],t[i],r)===!1)return!1;return!0}ye(Fo,"iterableEqual");function vx(e,t,r){return Fo(Cd(e),Cd(t),r)}ye(vx,"generatorEqual");function Ex(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}ye(Ex,"hasIteratorFunction");function Bm(e){if(Ex(e))try{return Cd(e[Symbol.iterator]())}catch{return[]}return[]}ye(Bm,"getIteratorEntries");function Cd(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}ye(Cd,"getGeneratorEntries");function Lm(e){var t=[];for(var r in e)t.push(r);return t}ye(Lm,"getEnumerableKeys");function Mm(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var i=r[n];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}ye(Mm,"getEnumerableSymbols");function Ig(e,t,r,n){var i=r.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(Su(e[r[a]],t[r[a]],n)===!1)return!1;return!0}ye(Ig,"keysEqual");function wx(e,t,r){var n=Lm(e),i=Lm(t),a=Mm(e),l=Mm(t);if(n=n.concat(a),i=i.concat(l),n.length&&n.length===i.length)return Fo(qm(n).sort(),qm(i).sort())===!1?!1:Ig(e,t,n,r);var u=Bm(e),p=Bm(t);return u.length&&u.length===p.length?(u.sort(),p.sort(),Fo(u,p,r)):n.length===0&&u.length===0&&i.length===0&&p.length===0}ye(wx,"objectEqual");function Aa(e){return e===null||typeof e!="object"}ye(Aa,"isPrimitive");function qm(e){return e.map(ye(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}ye(qm,"mapSymbols");function lp(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}ye(lp,"hasProperty");function Sx(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}ye(Sx,"parsePath");function jm(e,t,r){let n=e,i=null;r=typeof r>"u"?t.length:r;for(let a=0;a<r;a++){let l=t[a];n&&(typeof l.p>"u"?n=n[l.i]:n=n[l.p],a===r-1&&(i=n))}return i}ye(jm,"internalGetPathValue");function Fg(e,t){let r=Sx(t),n=r[r.length-1],i={parent:r.length>1?jm(e,r,r.length-1):e,name:n.p||n.i,value:jm(e,r)};return i.exists=lp(i.parent,i.name),i}ye(Fg,"getPathInfo");var Wc,Q=(Wc=class{__flags={};constructor(e,t,r,n){return Et(this,"ssfi",r||Wc),Et(this,"lockSsfi",n),Et(this,"object",e),Et(this,"message",t),Et(this,"eql",dn.deepEqual||yx),Bs(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dn.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dn.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dn.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dn.showDiff=e}static addProperty(e,t){kg(this.prototype,e,t)}static addMethod(e,t){Bg(this.prototype,e,t)}static addChainableMethod(e,t,r){qg(this.prototype,e,t,r)}static overwriteProperty(e,t){Lg(this.prototype,e,t)}static overwriteMethod(e,t){Mg(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){jg(this.prototype,e,t,r)}assert(e,t,r,n,i,a){let l=Rg(this,arguments);if(a!==!1&&(a=!0),n===void 0&&i===void 0&&(a=!1),dn.showDiff!==!0&&(a=!1),!l){t=Pg(this,arguments);let u={actual:sp(this,arguments),expected:n,showDiff:a},p=Ug(this,arguments);throw p&&(u.operator=p),new $t(t,u,dn.includeStack?this.assert:Et(this,"ssfi"))}}get _obj(){return Et(this,"object")}set _obj(e){Et(this,"object",e)}},ye(Wc,"Assertion"),Wc);function Au(){return dn.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}ye(Au,"isProxyEnabled");function kg(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:ye(function n(){!Au()&&!Et(this,"lockSsfi")&&Et(this,"ssfi",n);let i=r.call(this);if(i!==void 0)return i;let a=new Q;return ai(this,a),a},"propertyGetter"),configurable:!0})}ye(kg,"addProperty");var z8=Object.getOwnPropertyDescriptor(function(){},"length");function _u(e,t,r){return z8.configurable&&Object.defineProperty(e,"length",{get:ye(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}ye(_u,"addLengthGuard");function Ax(e){let t=Object.getOwnPropertyNames(e);function r(i){t.indexOf(i)===-1&&t.push(i)}ye(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}ye(Ax,"getProperties");var vw=["__flags","__methods","_obj","assert"];function Bs(e,t){return Au()?new Proxy(e,{get:ye(function r(n,i){if(typeof i=="string"&&dn.proxyExcludedKeys.indexOf(i)===-1&&!Reflect.has(n,i)){if(t)throw Error("Invalid Chai property: "+t+"."+i+'. See docs for proper usage of "'+t+'".');let a=null,l=4;throw Ax(n).forEach(function(u){if(!Object.prototype.hasOwnProperty(u)&&vw.indexOf(u)===-1){let p=_x(i,u,l);p<l&&(a=u,l=p)}}),Error(a!==null?"Invalid Chai property: "+i+'. Did you mean "'+a+'"?':"Invalid Chai property: "+i)}return vw.indexOf(i)===-1&&!Et(n,"lockSsfi")&&Et(n,"ssfi",r),Reflect.get(n,i)},"proxyGetter")}):e}ye(Bs,"proxify");function _x(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let i=0;i<=e.length;i++)n[i]=Array(t.length+1).fill(0),n[i][0]=i;for(let i=0;i<t.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let l=1;l<=t.length;l++){if(Math.abs(i-l)>=r){n[i][l]=r;continue}n[i][l]=Math.min(n[i-1][l]+1,n[i][l-1]+1,n[i-1][l-1]+(a===t.charCodeAt(l-1)?0:1))}}return n[e.length][t.length]}ye(_x,"stringDistanceCapped");function Bg(e,t,r){let n=ye(function(){Et(this,"lockSsfi")||Et(this,"ssfi",n);let i=r.apply(this,arguments);if(i!==void 0)return i;let a=new Q;return ai(this,a),a},"methodWrapper");_u(n,t,!1),e[t]=Bs(n,t)}ye(Bg,"addMethod");function Lg(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),i=ye(function(){},"_super");n&&typeof n.get=="function"&&(i=n.get),Object.defineProperty(e,t,{get:ye(function a(){!Au()&&!Et(this,"lockSsfi")&&Et(this,"ssfi",a);let l=Et(this,"lockSsfi");Et(this,"lockSsfi",!0);let u=r(i).call(this);if(Et(this,"lockSsfi",l),u!==void 0)return u;let p=new Q;return ai(this,p),p},"overwritingPropertyGetter"),configurable:!0})}ye(Lg,"overwriteProperty");function Mg(e,t,r){let n=e[t],i=ye(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(i=n);let a=ye(function(){Et(this,"lockSsfi")||Et(this,"ssfi",a);let l=Et(this,"lockSsfi");Et(this,"lockSsfi",!0);let u=r(i).apply(this,arguments);if(Et(this,"lockSsfi",l),u!==void 0)return u;let p=new Q;return ai(this,p),p},"overwritingMethodWrapper");_u(a,t,!1),e[t]=Bs(a,t)}ye(Mg,"overwriteMethod");var H8=typeof Object.setPrototypeOf=="function",Ew=ye(function(){},"testFn"),W8=Object.getOwnPropertyNames(Ew).filter(function(e){let t=Object.getOwnPropertyDescriptor(Ew,e);return typeof t!="object"?!0:!t.configurable}),G8=Function.prototype.call,K8=Function.prototype.apply;function qg(e,t,r,n){typeof n!="function"&&(n=ye(function(){},"chainingBehavior"));let i={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=i,Object.defineProperty(e,t,{get:ye(function(){i.chainingBehavior.call(this);let a=ye(function(){Et(this,"lockSsfi")||Et(this,"ssfi",a);let l=i.method.apply(this,arguments);if(l!==void 0)return l;let u=new Q;return ai(this,u),u},"chainableMethodWrapper");if(_u(a,t,!0),H8){let l=Object.create(this);l.call=G8,l.apply=K8,Object.setPrototypeOf(a,l)}else Object.getOwnPropertyNames(e).forEach(function(l){if(W8.indexOf(l)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,u)});return ai(this,a),Bs(a)},"chainableMethodGetter"),configurable:!0})}ye(qg,"addChainableMethod");function jg(e,t,r,n){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=ye(function(){let u=n(a).call(this);if(u!==void 0)return u;let p=new Q;return ai(this,p),p},"overwritingChainableMethodGetter");let l=i.method;i.method=ye(function(){let u=r(l).apply(this,arguments);if(u!==void 0)return u;let p=new Q;return ai(this,p),p},"overwritingChainableMethodWrapper")}ye(jg,"overwriteChainableMethod");function Td(e,t){return kt(e)<kt(t)?-1:1}ye(Td,"compareByInspect");function $g(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}ye($g,"getOwnEnumerablePropertySymbols");function Vg(e){return Object.keys(e).concat($g(e))}ye(Vg,"getOwnEnumerableProperties");var xd=Number.isNaN;function Cx(e){let t=Qt(e);return["Array","Object","Function"].indexOf(t)!==-1}ye(Cx,"isObjectType");function Ug(e,t){let r=Et(e,"operator"),n=Et(e,"negate"),i=t[3],a=n?t[2]:t[1];if(r)return r;if(typeof a=="function"&&(a=a()),a=a||"",!a||/\shave\s/.test(a))return;let l=Cx(i);return/\snot\s/.test(a)?l?"notDeepStrictEqual":"notStrictEqual":l?"deepStrictEqual":"strictEqual"}ye(Ug,"getOperator");function up(e){return e.name}ye(up,"getName");function Rd(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ye(Rd,"isRegExp");function $r(e){return["Number","BigInt"].includes(Qt(e))}ye($r,"isNumeric");var{flag:fe}=Si;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){Q.addProperty(e)});Q.addProperty("not",function(){fe(this,"negate",!0)});Q.addProperty("deep",function(){fe(this,"deep",!0)});Q.addProperty("nested",function(){fe(this,"nested",!0)});Q.addProperty("own",function(){fe(this,"own",!0)});Q.addProperty("ordered",function(){fe(this,"ordered",!0)});Q.addProperty("any",function(){fe(this,"any",!0),fe(this,"all",!1)});Q.addProperty("all",function(){fe(this,"all",!0),fe(this,"any",!1)});var ww={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Jg(e,t){t&&fe(this,"message",t),e=e.toLowerCase();let r=fe(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",i=Qt(r).toLowerCase();ww.function.includes(e)?this.assert(ww[e].includes(i),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===i,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}ye(Jg,"an");Q.addChainableMethod("an",Jg);Q.addChainableMethod("a",Jg);function Tx(e,t){return xd(e)&&xd(t)||e===t}ye(Tx,"SameValueZero");function Cu(){fe(this,"contains",!0)}ye(Cu,"includeChainingBehavior");function Tu(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=Qt(r).toLowerCase(),i=fe(this,"message"),a=fe(this,"negate"),l=fe(this,"ssfi"),u=fe(this,"deep"),p=u?"deep ":"",c=u?fe(this,"eql"):Tx;i=i?i+": ":"";let m=!1;switch(n){case"string":m=r.indexOf(e)!==-1;break;case"weakset":if(u)throw new $t(i+"unable to use .deep.include with WeakSet",void 0,l);m=r.has(e);break;case"map":r.forEach(function(y){m=m||c(y,e)});break;case"set":u?r.forEach(function(y){m=m||c(y,e)}):m=r.has(e);break;case"array":u?m=r.some(function(y){return c(y,e)}):m=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new $t(i+"the given combination of arguments ("+n+" and "+Qt(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+Qt(e).toLowerCase(),void 0,l);let y=Object.keys(e),g=null,b=0;if(y.forEach(function(w){let A=new Q(r);if(ai(this,A,!0),fe(A,"lockSsfi",!0),!a||y.length===1){A.property(w,e[w]);return}try{A.property(w,e[w])}catch(x){if(!Cn.compatibleConstructor(x,$t))throw x;g===null&&(g=x),b++}},this),a&&y.length>1&&b===y.length)throw g;return}}this.assert(m,"expected #{this} to "+p+"include "+kt(e),"expected #{this} to not "+p+"include "+kt(e))}ye(Tu,"include");Q.addChainableMethod("include",Tu,Cu);Q.addChainableMethod("contain",Tu,Cu);Q.addChainableMethod("contains",Tu,Cu);Q.addChainableMethod("includes",Tu,Cu);Q.addProperty("ok",function(){this.assert(fe(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Q.addProperty("true",function(){this.assert(fe(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!fe(this,"negate"))});Q.addProperty("numeric",function(){let e=fe(this,"object");this.assert(["Number","BigInt"].includes(Qt(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!fe(this,"negate"))});Q.addProperty("callable",function(){let e=fe(this,"object"),t=fe(this,"ssfi"),r=fe(this,"message"),n=r?`${r}: `:"",i=fe(this,"negate"),a=i?`${n}expected ${kt(e)} not to be a callable function`:`${n}expected ${kt(e)} to be a callable function`,l=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Qt(e));if(l&&i||!l&&!i)throw new $t(a,void 0,t)});Q.addProperty("false",function(){this.assert(fe(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!fe(this,"negate"))});Q.addProperty("null",function(){this.assert(fe(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Q.addProperty("undefined",function(){this.assert(fe(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Q.addProperty("NaN",function(){this.assert(xd(fe(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function zg(){let e=fe(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}ye(zg,"assertExist");Q.addProperty("exist",zg);Q.addProperty("exists",zg);Q.addProperty("empty",function(){let e=fe(this,"object"),t=fe(this,"ssfi"),r=fe(this,"message"),n;switch(r=r?r+": ":"",Qt(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new $t(r+".empty was passed a weak collection",void 0,t);case"function":{let i=r+".empty was passed a function "+up(e);throw new $t(i.trim(),void 0,t)}default:if(e!==Object(e))throw new $t(r+".empty was passed non-string primitive "+kt(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Hg(){let e=fe(this,"object"),t=Qt(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}ye(Hg,"checkArguments");Q.addProperty("arguments",Hg);Q.addProperty("Arguments",Hg);function cp(e,t){t&&fe(this,"message",t);let r=fe(this,"object");if(fe(this,"deep")){let n=fe(this,"lockSsfi");fe(this,"lockSsfi",!0),this.eql(e),fe(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}ye(cp,"assertEqual");Q.addMethod("equal",cp);Q.addMethod("equals",cp);Q.addMethod("eq",cp);function Wg(e,t){t&&fe(this,"message",t);let r=fe(this,"eql");this.assert(r(e,fe(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}ye(Wg,"assertEql");Q.addMethod("eql",Wg);Q.addMethod("eqls",Wg);function dp(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"doLength"),i=fe(this,"message"),a=i?i+": ":"",l=fe(this,"ssfi"),u=Qt(r).toLowerCase(),p=Qt(e).toLowerCase();if(n&&u!=="map"&&u!=="set"&&new Q(r,i,l,!0).to.have.property("length"),!n&&u==="date"&&p!=="date")throw new $t(a+"the argument to above must be a date",void 0,l);if(!$r(e)&&(n||$r(r)))throw new $t(a+"the argument to above must be a number",void 0,l);if(!n&&u!=="date"&&!$r(r)){let c=u==="string"?"'"+r+"'":r;throw new $t(a+"expected "+c+" to be a number or a date",void 0,l)}if(n){let c="length",m;u==="map"||u==="set"?(c="size",m=r.size):m=r.length,this.assert(m>e,"expected #{this} to have a "+c+" above #{exp} but got #{act}","expected #{this} to not have a "+c+" above #{exp}",e,m)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}ye(dp,"assertAbove");Q.addMethod("above",dp);Q.addMethod("gt",dp);Q.addMethod("greaterThan",dp);function pp(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"doLength"),i=fe(this,"message"),a=i?i+": ":"",l=fe(this,"ssfi"),u=Qt(r).toLowerCase(),p=Qt(e).toLowerCase(),c,m=!0;if(n&&u!=="map"&&u!=="set"&&new Q(r,i,l,!0).to.have.property("length"),!n&&u==="date"&&p!=="date")c=a+"the argument to least must be a date";else if(!$r(e)&&(n||$r(r)))c=a+"the argument to least must be a number";else if(!n&&u!=="date"&&!$r(r)){let y=u==="string"?"'"+r+"'":r;c=a+"expected "+y+" to be a number or a date"}else m=!1;if(m)throw new $t(c,void 0,l);if(n){let y="length",g;u==="map"||u==="set"?(y="size",g=r.size):g=r.length,this.assert(g>=e,"expected #{this} to have a "+y+" at least #{exp} but got #{act}","expected #{this} to have a "+y+" below #{exp}",e,g)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}ye(pp,"assertLeast");Q.addMethod("least",pp);Q.addMethod("gte",pp);Q.addMethod("greaterThanOrEqual",pp);function fp(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"doLength"),i=fe(this,"message"),a=i?i+": ":"",l=fe(this,"ssfi"),u=Qt(r).toLowerCase(),p=Qt(e).toLowerCase(),c,m=!0;if(n&&u!=="map"&&u!=="set"&&new Q(r,i,l,!0).to.have.property("length"),!n&&u==="date"&&p!=="date")c=a+"the argument to below must be a date";else if(!$r(e)&&(n||$r(r)))c=a+"the argument to below must be a number";else if(!n&&u!=="date"&&!$r(r)){let y=u==="string"?"'"+r+"'":r;c=a+"expected "+y+" to be a number or a date"}else m=!1;if(m)throw new $t(c,void 0,l);if(n){let y="length",g;u==="map"||u==="set"?(y="size",g=r.size):g=r.length,this.assert(g<e,"expected #{this} to have a "+y+" below #{exp} but got #{act}","expected #{this} to not have a "+y+" below #{exp}",e,g)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}ye(fp,"assertBelow");Q.addMethod("below",fp);Q.addMethod("lt",fp);Q.addMethod("lessThan",fp);function hp(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"doLength"),i=fe(this,"message"),a=i?i+": ":"",l=fe(this,"ssfi"),u=Qt(r).toLowerCase(),p=Qt(e).toLowerCase(),c,m=!0;if(n&&u!=="map"&&u!=="set"&&new Q(r,i,l,!0).to.have.property("length"),!n&&u==="date"&&p!=="date")c=a+"the argument to most must be a date";else if(!$r(e)&&(n||$r(r)))c=a+"the argument to most must be a number";else if(!n&&u!=="date"&&!$r(r)){let y=u==="string"?"'"+r+"'":r;c=a+"expected "+y+" to be a number or a date"}else m=!1;if(m)throw new $t(c,void 0,l);if(n){let y="length",g;u==="map"||u==="set"?(y="size",g=r.size):g=r.length,this.assert(g<=e,"expected #{this} to have a "+y+" at most #{exp} but got #{act}","expected #{this} to have a "+y+" above #{exp}",e,g)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}ye(hp,"assertMost");Q.addMethod("most",hp);Q.addMethod("lte",hp);Q.addMethod("lessThanOrEqual",hp);Q.addMethod("within",function(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"doLength"),a=fe(this,"message"),l=a?a+": ":"",u=fe(this,"ssfi"),p=Qt(n).toLowerCase(),c=Qt(e).toLowerCase(),m=Qt(t).toLowerCase(),y,g=!0,b=c==="date"&&m==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&p!=="map"&&p!=="set"&&new Q(n,a,u,!0).to.have.property("length"),!i&&p==="date"&&(c!=="date"||m!=="date"))y=l+"the arguments to within must be dates";else if((!$r(e)||!$r(t))&&(i||$r(n)))y=l+"the arguments to within must be numbers";else if(!i&&p!=="date"&&!$r(n)){let w=p==="string"?"'"+n+"'":n;y=l+"expected "+w+" to be a number or a date"}else g=!1;if(g)throw new $t(y,void 0,u);if(i){let w="length",A;p==="map"||p==="set"?(w="size",A=n.size):A=n.length,this.assert(A>=e&&A<=t,"expected #{this} to have a "+w+" within "+b,"expected #{this} to not have a "+w+" within "+b)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+b,"expected #{this} to not be within "+b)});function Gg(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"ssfi"),i=fe(this,"message"),a;try{a=r instanceof e}catch(u){throw u instanceof TypeError?(i=i?i+": ":"",new $t(i+"The instanceof assertion needs a constructor but "+Qt(e)+" was given.",void 0,n)):u}let l=up(e);l==null&&(l="an unnamed constructor"),this.assert(a,"expected #{this} to be an instance of "+l,"expected #{this} to not be an instance of "+l)}ye(Gg,"assertInstanceOf");Q.addMethod("instanceof",Gg);Q.addMethod("instanceOf",Gg);function Kg(e,t,r){r&&fe(this,"message",r);let n=fe(this,"nested"),i=fe(this,"own"),a=fe(this,"message"),l=fe(this,"object"),u=fe(this,"ssfi"),p=typeof e;if(a=a?a+": ":"",n){if(p!=="string")throw new $t(a+"the argument to property must be a string when using nested syntax",void 0,u)}else if(p!=="string"&&p!=="number"&&p!=="symbol")throw new $t(a+"the argument to property must be a string, number, or symbol",void 0,u);if(n&&i)throw new $t(a+'The "nested" and "own" flags cannot be combined.',void 0,u);if(l==null)throw new $t(a+"Target cannot be null or undefined.",void 0,u);let c=fe(this,"deep"),m=fe(this,"negate"),y=n?Fg(l,e):null,g=n?y.value:l[e],b=c?fe(this,"eql"):(x,_)=>x===_,w="";c&&(w+="deep "),i&&(w+="own "),n&&(w+="nested "),w+="property ";let A;i?A=Object.prototype.hasOwnProperty.call(l,e):n?A=y.exists:A=lp(l,e),(!m||arguments.length===1)&&this.assert(A,"expected #{this} to have "+w+kt(e),"expected #{this} to not have "+w+kt(e)),arguments.length>1&&this.assert(A&&b(t,g),"expected #{this} to have "+w+kt(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+w+kt(e)+" of #{act}",t,g),fe(this,"object",g)}ye(Kg,"assertProperty");Q.addMethod("property",Kg);function Yg(e,t,r){fe(this,"own",!0),Kg.apply(this,arguments)}ye(Yg,"assertOwnProperty");Q.addMethod("ownProperty",Yg);Q.addMethod("haveOwnProperty",Yg);function Xg(e,t,r){typeof t=="string"&&(r=t,t=null),r&&fe(this,"message",r);let n=fe(this,"object"),i=Object.getOwnPropertyDescriptor(Object(n),e),a=fe(this,"eql");i&&t?this.assert(a(t,i),"expected the own property descriptor for "+kt(e)+" on #{this} to match "+kt(t)+", got "+kt(i),"expected the own property descriptor for "+kt(e)+" on #{this} to not match "+kt(t),t,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+kt(e),"expected #{this} to not have an own property descriptor for "+kt(e)),fe(this,"object",i)}ye(Xg,"assertOwnPropertyDescriptor");Q.addMethod("ownPropertyDescriptor",Xg);Q.addMethod("haveOwnPropertyDescriptor",Xg);function Qg(){fe(this,"doLength",!0)}ye(Qg,"assertLengthChain");function Zg(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=Qt(r).toLowerCase(),i=fe(this,"message"),a=fe(this,"ssfi"),l="length",u;switch(n){case"map":case"set":l="size",u=r.size;break;default:new Q(r,i,a,!0).to.have.property("length"),u=r.length}this.assert(u==e,"expected #{this} to have a "+l+" of #{exp} but got #{act}","expected #{this} to not have a "+l+" of #{act}",e,u)}ye(Zg,"assertLength");Q.addChainableMethod("length",Zg,Qg);Q.addChainableMethod("lengthOf",Zg,Qg);function e0(e,t){t&&fe(this,"message",t);let r=fe(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}ye(e0,"assertMatch");Q.addMethod("match",e0);Q.addMethod("matches",e0);Q.addMethod("string",function(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"message"),i=fe(this,"ssfi");new Q(r,n,i,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+kt(e),"expected #{this} to not contain "+kt(e))});function t0(e){let t=fe(this,"object"),r=Qt(t),n=Qt(e),i=fe(this,"ssfi"),a=fe(this,"deep"),l,u="",p,c=!0,m=fe(this,"message");m=m?m+": ":"";let y=m+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")u=a?"deeply ":"",p=[],t.forEach(function(_,R){p.push(R)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(p=Vg(t),n){case"Array":if(arguments.length>1)throw new $t(y,void 0,i);break;case"Object":if(arguments.length>1)throw new $t(y,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(_){return typeof _=="symbol"?_:String(_)})}if(!e.length)throw new $t(m+"keys required",void 0,i);let g=e.length,b=fe(this,"any"),w=fe(this,"all"),A=e,x=a?fe(this,"eql"):(_,R)=>_===R;if(!b&&!w&&(w=!0),b&&(c=A.some(function(_){return p.some(function(R){return x(_,R)})})),w&&(c=A.every(function(_){return p.some(function(R){return x(_,R)})}),fe(this,"contains")||(c=c&&e.length==p.length)),g>1){e=e.map(function(R){return kt(R)});let _=e.pop();w&&(l=e.join(", ")+", and "+_),b&&(l=e.join(", ")+", or "+_)}else l=kt(e[0]);l=(g>1?"keys ":"key ")+l,l=(fe(this,"contains")?"contain ":"have ")+l,this.assert(c,"expected #{this} to "+u+l,"expected #{this} to not "+u+l,A.slice(0).sort(Td),p.sort(Td),!0)}ye(t0,"assertKeys");Q.addMethod("keys",t0);Q.addMethod("key",t0);function mp(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"ssfi"),a=fe(this,"message"),l=fe(this,"negate")||!1;new Q(n,a,i,!0).is.a("function"),(Rd(e)||typeof e=="string")&&(t=e,e=null);let u,p=!1;try{n()}catch(b){p=!0,u=b}let c=e===void 0&&t===void 0,m=!!(e&&t),y=!1,g=!1;if(c||!c&&!l){let b="an error";e instanceof Error?b="#{exp}":e&&(b=Cn.getConstructorName(e));let w=u;if(u instanceof Error)w=u.toString();else if(typeof u=="string")w=u;else if(u&&(typeof u=="object"||typeof u=="function"))try{w=Cn.getConstructorName(u)}catch{}this.assert(p,"expected #{this} to throw "+b,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),w)}if(e&&u&&(e instanceof Error&&Cn.compatibleInstance(u,e)===l&&(m&&l?y=!0:this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(u&&!l?" but #{act} was thrown":""),e.toString(),u.toString())),Cn.compatibleConstructor(u,e)===l&&(m&&l?y=!0:this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(u?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Cn.getConstructorName(e),u instanceof Error?u.toString():u&&Cn.getConstructorName(u)))),u&&t!==void 0&&t!==null){let b="including";Rd(t)&&(b="matching"),Cn.compatibleMessage(u,t)===l&&(m&&l?g=!0:this.assert(l,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",t,Cn.getMessage(u)))}y&&g&&this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(u?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Cn.getConstructorName(e),u instanceof Error?u.toString():u&&Cn.getConstructorName(u)),fe(this,"object",u)}ye(mp,"assertThrows");Q.addMethod("throw",mp);Q.addMethod("throws",mp);Q.addMethod("Throw",mp);function r0(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"itself"),i=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof i=="function","expected #{this} to respond to "+kt(e),"expected #{this} to not respond to "+kt(e))}ye(r0,"respondTo");Q.addMethod("respondTo",r0);Q.addMethod("respondsTo",r0);Q.addProperty("itself",function(){fe(this,"itself",!0)});function n0(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+ha(e),"expected #{this} to not satisfy"+ha(e),!fe(this,"negate"),n)}ye(n0,"satisfy");Q.addMethod("satisfy",n0);Q.addMethod("satisfies",n0);function i0(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"message"),a=fe(this,"ssfi");new Q(n,i,a,!0).is.numeric;let l="A `delta` value is required for `closeTo`";if(t==null)throw new $t(i?`${i}: ${l}`:l,void 0,a);if(new Q(t,i,a,!0).is.numeric,l="A `expected` value is required for `closeTo`",e==null)throw new $t(i?`${i}: ${l}`:l,void 0,a);new Q(e,i,a,!0).is.numeric;let u=ye(c=>c<0n?-c:c,"abs"),p=ye(c=>parseFloat(parseFloat(c).toPrecision(12)),"strip");this.assert(p(u(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}ye(i0,"closeTo");Q.addMethod("closeTo",i0);Q.addMethod("approximately",i0);function xx(e,t,r,n,i){let a=Array.from(t),l=Array.from(e);if(!n){if(l.length!==a.length)return!1;a=a.slice()}return l.every(function(u,p){if(i)return r?r(u,a[p]):u===a[p];if(!r){let c=a.indexOf(u);return c===-1?!1:(n||a.splice(c,1),!0)}return a.some(function(c,m){return r(u,c)?(n||a.splice(m,1),!0):!1})})}ye(xx,"isSubsetOf");Q.addMethod("members",function(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"message"),i=fe(this,"ssfi");new Q(r,n,i,!0).to.be.iterable,new Q(e,n,i,!0).to.be.iterable;let a=fe(this,"contains"),l=fe(this,"ordered"),u,p,c;a?(u=l?"an ordered superset":"a superset",p="expected #{this} to be "+u+" of #{exp}",c="expected #{this} to not be "+u+" of #{exp}"):(u=l?"ordered members":"members",p="expected #{this} to have the same "+u+" as #{exp}",c="expected #{this} to not have the same "+u+" as #{exp}");let m=fe(this,"deep")?fe(this,"eql"):void 0;this.assert(xx(e,r,m,a,l),p,c,e,r,!0)});Q.addProperty("iterable",function(e){e&&fe(this,"message",e);let t=fe(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Rx(e,t){t&&fe(this,"message",t);let r=fe(this,"object"),n=fe(this,"message"),i=fe(this,"ssfi"),a=fe(this,"contains"),l=fe(this,"deep"),u=fe(this,"eql");new Q(e,n,i,!0).to.be.an("array"),a?this.assert(e.some(function(p){return r.indexOf(p)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):l?this.assert(e.some(function(p){return u(r,p)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}ye(Rx,"oneOf");Q.addMethod("oneOf",Rx);function o0(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"message"),a=fe(this,"ssfi");new Q(n,i,a,!0).is.a("function");let l;t?(new Q(e,i,a,!0).to.have.property(t),l=e[t]):(new Q(e,i,a,!0).is.a("function"),l=e()),n();let u=t==null?e():e[t],p=t==null?l:"."+t;fe(this,"deltaMsgObj",p),fe(this,"initialDeltaValue",l),fe(this,"finalDeltaValue",u),fe(this,"deltaBehavior","change"),fe(this,"realDelta",u!==l),this.assert(l!==u,"expected "+p+" to change","expected "+p+" to not change")}ye(o0,"assertChanges");Q.addMethod("change",o0);Q.addMethod("changes",o0);function a0(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"message"),a=fe(this,"ssfi");new Q(n,i,a,!0).is.a("function");let l;t?(new Q(e,i,a,!0).to.have.property(t),l=e[t]):(new Q(e,i,a,!0).is.a("function"),l=e()),new Q(l,i,a,!0).is.a("number"),n();let u=t==null?e():e[t],p=t==null?l:"."+t;fe(this,"deltaMsgObj",p),fe(this,"initialDeltaValue",l),fe(this,"finalDeltaValue",u),fe(this,"deltaBehavior","increase"),fe(this,"realDelta",u-l),this.assert(u-l>0,"expected "+p+" to increase","expected "+p+" to not increase")}ye(a0,"assertIncreases");Q.addMethod("increase",a0);Q.addMethod("increases",a0);function s0(e,t,r){r&&fe(this,"message",r);let n=fe(this,"object"),i=fe(this,"message"),a=fe(this,"ssfi");new Q(n,i,a,!0).is.a("function");let l;t?(new Q(e,i,a,!0).to.have.property(t),l=e[t]):(new Q(e,i,a,!0).is.a("function"),l=e()),new Q(l,i,a,!0).is.a("number"),n();let u=t==null?e():e[t],p=t==null?l:"."+t;fe(this,"deltaMsgObj",p),fe(this,"initialDeltaValue",l),fe(this,"finalDeltaValue",u),fe(this,"deltaBehavior","decrease"),fe(this,"realDelta",l-u),this.assert(u-l<0,"expected "+p+" to decrease","expected "+p+" to not decrease")}ye(s0,"assertDecreases");Q.addMethod("decrease",s0);Q.addMethod("decreases",s0);function Dx(e,t){t&&fe(this,"message",t);let r=fe(this,"deltaMsgObj"),n=fe(this,"initialDeltaValue"),i=fe(this,"finalDeltaValue"),a=fe(this,"deltaBehavior"),l=fe(this,"realDelta"),u;a==="change"?u=Math.abs(i-n)===Math.abs(e):u=l===Math.abs(e),this.assert(u,"expected "+r+" to "+a+" by "+e,"expected "+r+" to not "+a+" by "+e)}ye(Dx,"assertDelta");Q.addMethod("by",Dx);Q.addProperty("extensible",function(){let e=fe(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});Q.addProperty("sealed",function(){let e=fe(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});Q.addProperty("frozen",function(){let e=fe(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});Q.addProperty("finite",function(e){let t=fe(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Dd(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Dd(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],i=t[r];return typeof n=="object"&&n!==null&&i!==null?Dd(n,i):typeof n=="function"?n(i):i===n}):!1}ye(Dd,"compareSubset");Q.addMethod("containSubset",function(e){let t=Et(this,"object"),r=dn.showDiff;this.assert(Dd(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function ma(e,t){return new Q(e,t)}ye(ma,"expect");ma.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new $t(r,{actual:e,expected:t,operator:n},ma.fail)};var Px={};xg(Px,{Should:()=>X8,should:()=>Y8});function l0(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Q(this.valueOf(),null,e):new Q(this,null,e)}ye(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}ye(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,i,a,l){throw arguments.length<2&&(a=n,n=void 0),a=a||"should.fail()",new $t(a,{actual:n,expected:i,operator:l},r.fail)},r.equal=function(n,i,a){new Q(n,a).to.equal(i)},r.Throw=function(n,i,a,l){new Q(n,l).to.Throw(i,a)},r.exist=function(n,i){new Q(n,i).to.exist},r.not={},r.not.equal=function(n,i,a){new Q(n,a).to.not.equal(i)},r.not.Throw=function(n,i,a,l){new Q(n,l).to.not.Throw(i,a)},r.not.exist=function(n,i){new Q(n,i).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}ye(l0,"loadShould");var Y8=l0,X8=l0;function X(e,t){new Q(null,null,X,!0).assert(e,t,"[ negation message unavailable ]")}ye(X,"assert");X.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new $t(r,{actual:e,expected:t,operator:n},X.fail)};X.isOk=function(e,t){new Q(e,t,X.isOk,!0).is.ok};X.isNotOk=function(e,t){new Q(e,t,X.isNotOk,!0).is.not.ok};X.equal=function(e,t,r){let n=new Q(e,r,X.equal,!0);n.assert(t==Et(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};X.notEqual=function(e,t,r){let n=new Q(e,r,X.notEqual,!0);n.assert(t!=Et(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};X.strictEqual=function(e,t,r){new Q(e,r,X.strictEqual,!0).to.equal(t)};X.notStrictEqual=function(e,t,r){new Q(e,r,X.notStrictEqual,!0).to.not.equal(t)};X.deepEqual=X.deepStrictEqual=function(e,t,r){new Q(e,r,X.deepEqual,!0).to.eql(t)};X.notDeepEqual=function(e,t,r){new Q(e,r,X.notDeepEqual,!0).to.not.eql(t)};X.isAbove=function(e,t,r){new Q(e,r,X.isAbove,!0).to.be.above(t)};X.isAtLeast=function(e,t,r){new Q(e,r,X.isAtLeast,!0).to.be.least(t)};X.isBelow=function(e,t,r){new Q(e,r,X.isBelow,!0).to.be.below(t)};X.isAtMost=function(e,t,r){new Q(e,r,X.isAtMost,!0).to.be.most(t)};X.isTrue=function(e,t){new Q(e,t,X.isTrue,!0).is.true};X.isNotTrue=function(e,t){new Q(e,t,X.isNotTrue,!0).to.not.equal(!0)};X.isFalse=function(e,t){new Q(e,t,X.isFalse,!0).is.false};X.isNotFalse=function(e,t){new Q(e,t,X.isNotFalse,!0).to.not.equal(!1)};X.isNull=function(e,t){new Q(e,t,X.isNull,!0).to.equal(null)};X.isNotNull=function(e,t){new Q(e,t,X.isNotNull,!0).to.not.equal(null)};X.isNaN=function(e,t){new Q(e,t,X.isNaN,!0).to.be.NaN};X.isNotNaN=function(e,t){new Q(e,t,X.isNotNaN,!0).not.to.be.NaN};X.exists=function(e,t){new Q(e,t,X.exists,!0).to.exist};X.notExists=function(e,t){new Q(e,t,X.notExists,!0).to.not.exist};X.isUndefined=function(e,t){new Q(e,t,X.isUndefined,!0).to.equal(void 0)};X.isDefined=function(e,t){new Q(e,t,X.isDefined,!0).to.not.equal(void 0)};X.isCallable=function(e,t){new Q(e,t,X.isCallable,!0).is.callable};X.isNotCallable=function(e,t){new Q(e,t,X.isNotCallable,!0).is.not.callable};X.isObject=function(e,t){new Q(e,t,X.isObject,!0).to.be.a("object")};X.isNotObject=function(e,t){new Q(e,t,X.isNotObject,!0).to.not.be.a("object")};X.isArray=function(e,t){new Q(e,t,X.isArray,!0).to.be.an("array")};X.isNotArray=function(e,t){new Q(e,t,X.isNotArray,!0).to.not.be.an("array")};X.isString=function(e,t){new Q(e,t,X.isString,!0).to.be.a("string")};X.isNotString=function(e,t){new Q(e,t,X.isNotString,!0).to.not.be.a("string")};X.isNumber=function(e,t){new Q(e,t,X.isNumber,!0).to.be.a("number")};X.isNotNumber=function(e,t){new Q(e,t,X.isNotNumber,!0).to.not.be.a("number")};X.isNumeric=function(e,t){new Q(e,t,X.isNumeric,!0).is.numeric};X.isNotNumeric=function(e,t){new Q(e,t,X.isNotNumeric,!0).is.not.numeric};X.isFinite=function(e,t){new Q(e,t,X.isFinite,!0).to.be.finite};X.isBoolean=function(e,t){new Q(e,t,X.isBoolean,!0).to.be.a("boolean")};X.isNotBoolean=function(e,t){new Q(e,t,X.isNotBoolean,!0).to.not.be.a("boolean")};X.typeOf=function(e,t,r){new Q(e,r,X.typeOf,!0).to.be.a(t)};X.notTypeOf=function(e,t,r){new Q(e,r,X.notTypeOf,!0).to.not.be.a(t)};X.instanceOf=function(e,t,r){new Q(e,r,X.instanceOf,!0).to.be.instanceOf(t)};X.notInstanceOf=function(e,t,r){new Q(e,r,X.notInstanceOf,!0).to.not.be.instanceOf(t)};X.include=function(e,t,r){new Q(e,r,X.include,!0).include(t)};X.notInclude=function(e,t,r){new Q(e,r,X.notInclude,!0).not.include(t)};X.deepInclude=function(e,t,r){new Q(e,r,X.deepInclude,!0).deep.include(t)};X.notDeepInclude=function(e,t,r){new Q(e,r,X.notDeepInclude,!0).not.deep.include(t)};X.nestedInclude=function(e,t,r){new Q(e,r,X.nestedInclude,!0).nested.include(t)};X.notNestedInclude=function(e,t,r){new Q(e,r,X.notNestedInclude,!0).not.nested.include(t)};X.deepNestedInclude=function(e,t,r){new Q(e,r,X.deepNestedInclude,!0).deep.nested.include(t)};X.notDeepNestedInclude=function(e,t,r){new Q(e,r,X.notDeepNestedInclude,!0).not.deep.nested.include(t)};X.ownInclude=function(e,t,r){new Q(e,r,X.ownInclude,!0).own.include(t)};X.notOwnInclude=function(e,t,r){new Q(e,r,X.notOwnInclude,!0).not.own.include(t)};X.deepOwnInclude=function(e,t,r){new Q(e,r,X.deepOwnInclude,!0).deep.own.include(t)};X.notDeepOwnInclude=function(e,t,r){new Q(e,r,X.notDeepOwnInclude,!0).not.deep.own.include(t)};X.match=function(e,t,r){new Q(e,r,X.match,!0).to.match(t)};X.notMatch=function(e,t,r){new Q(e,r,X.notMatch,!0).to.not.match(t)};X.property=function(e,t,r){new Q(e,r,X.property,!0).to.have.property(t)};X.notProperty=function(e,t,r){new Q(e,r,X.notProperty,!0).to.not.have.property(t)};X.propertyVal=function(e,t,r,n){new Q(e,n,X.propertyVal,!0).to.have.property(t,r)};X.notPropertyVal=function(e,t,r,n){new Q(e,n,X.notPropertyVal,!0).to.not.have.property(t,r)};X.deepPropertyVal=function(e,t,r,n){new Q(e,n,X.deepPropertyVal,!0).to.have.deep.property(t,r)};X.notDeepPropertyVal=function(e,t,r,n){new Q(e,n,X.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};X.ownProperty=function(e,t,r){new Q(e,r,X.ownProperty,!0).to.have.own.property(t)};X.notOwnProperty=function(e,t,r){new Q(e,r,X.notOwnProperty,!0).to.not.have.own.property(t)};X.ownPropertyVal=function(e,t,r,n){new Q(e,n,X.ownPropertyVal,!0).to.have.own.property(t,r)};X.notOwnPropertyVal=function(e,t,r,n){new Q(e,n,X.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};X.deepOwnPropertyVal=function(e,t,r,n){new Q(e,n,X.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};X.notDeepOwnPropertyVal=function(e,t,r,n){new Q(e,n,X.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};X.nestedProperty=function(e,t,r){new Q(e,r,X.nestedProperty,!0).to.have.nested.property(t)};X.notNestedProperty=function(e,t,r){new Q(e,r,X.notNestedProperty,!0).to.not.have.nested.property(t)};X.nestedPropertyVal=function(e,t,r,n){new Q(e,n,X.nestedPropertyVal,!0).to.have.nested.property(t,r)};X.notNestedPropertyVal=function(e,t,r,n){new Q(e,n,X.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};X.deepNestedPropertyVal=function(e,t,r,n){new Q(e,n,X.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};X.notDeepNestedPropertyVal=function(e,t,r,n){new Q(e,n,X.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};X.lengthOf=function(e,t,r){new Q(e,r,X.lengthOf,!0).to.have.lengthOf(t)};X.hasAnyKeys=function(e,t,r){new Q(e,r,X.hasAnyKeys,!0).to.have.any.keys(t)};X.hasAllKeys=function(e,t,r){new Q(e,r,X.hasAllKeys,!0).to.have.all.keys(t)};X.containsAllKeys=function(e,t,r){new Q(e,r,X.containsAllKeys,!0).to.contain.all.keys(t)};X.doesNotHaveAnyKeys=function(e,t,r){new Q(e,r,X.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};X.doesNotHaveAllKeys=function(e,t,r){new Q(e,r,X.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};X.hasAnyDeepKeys=function(e,t,r){new Q(e,r,X.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};X.hasAllDeepKeys=function(e,t,r){new Q(e,r,X.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};X.containsAllDeepKeys=function(e,t,r){new Q(e,r,X.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};X.doesNotHaveAnyDeepKeys=function(e,t,r){new Q(e,r,X.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};X.doesNotHaveAllDeepKeys=function(e,t,r){new Q(e,r,X.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};X.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let i=new Q(e,n,X.throws,!0).to.throw(t,r);return Et(i,"object")};X.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new Q(e,n,X.doesNotThrow,!0).to.not.throw(t,r)};X.operator=function(e,t,r,n){let i;switch(t){case"==":i=e==r;break;case"===":i=e===r;break;case">":i=e>r;break;case">=":i=e>=r;break;case"<":i=e<r;break;case"<=":i=e<=r;break;case"!=":i=e!=r;break;case"!==":i=e!==r;break;default:throw n=n&&n+": ",new $t(n+'Invalid operator "'+t+'"',void 0,X.operator)}let a=new Q(i,n,X.operator,!0);a.assert(Et(a,"object")===!0,"expected "+kt(e)+" to be "+t+" "+kt(r),"expected "+kt(e)+" to not be "+t+" "+kt(r))};X.closeTo=function(e,t,r,n){new Q(e,n,X.closeTo,!0).to.be.closeTo(t,r)};X.approximately=function(e,t,r,n){new Q(e,n,X.approximately,!0).to.be.approximately(t,r)};X.sameMembers=function(e,t,r){new Q(e,r,X.sameMembers,!0).to.have.same.members(t)};X.notSameMembers=function(e,t,r){new Q(e,r,X.notSameMembers,!0).to.not.have.same.members(t)};X.sameDeepMembers=function(e,t,r){new Q(e,r,X.sameDeepMembers,!0).to.have.same.deep.members(t)};X.notSameDeepMembers=function(e,t,r){new Q(e,r,X.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};X.sameOrderedMembers=function(e,t,r){new Q(e,r,X.sameOrderedMembers,!0).to.have.same.ordered.members(t)};X.notSameOrderedMembers=function(e,t,r){new Q(e,r,X.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};X.sameDeepOrderedMembers=function(e,t,r){new Q(e,r,X.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};X.notSameDeepOrderedMembers=function(e,t,r){new Q(e,r,X.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};X.includeMembers=function(e,t,r){new Q(e,r,X.includeMembers,!0).to.include.members(t)};X.notIncludeMembers=function(e,t,r){new Q(e,r,X.notIncludeMembers,!0).to.not.include.members(t)};X.includeDeepMembers=function(e,t,r){new Q(e,r,X.includeDeepMembers,!0).to.include.deep.members(t)};X.notIncludeDeepMembers=function(e,t,r){new Q(e,r,X.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};X.includeOrderedMembers=function(e,t,r){new Q(e,r,X.includeOrderedMembers,!0).to.include.ordered.members(t)};X.notIncludeOrderedMembers=function(e,t,r){new Q(e,r,X.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};X.includeDeepOrderedMembers=function(e,t,r){new Q(e,r,X.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};X.notIncludeDeepOrderedMembers=function(e,t,r){new Q(e,r,X.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};X.oneOf=function(e,t,r){new Q(e,r,X.oneOf,!0).to.be.oneOf(t)};X.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${kt(e)} to be an iterable`:`expected ${kt(e)} to be an iterable`,new $t(t,void 0,X.isIterable)};X.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.changes,!0).to.change(t,r)};X.changesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.changesBy,!0).to.change(t,r).by(n)};X.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.doesNotChange,!0).to.not.change(t,r)};X.changesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.changesButNotBy,!0).to.change(t,r).but.not.by(n)};X.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.increases,!0).to.increase(t,r)};X.increasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.increasesBy,!0).to.increase(t,r).by(n)};X.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.doesNotIncrease,!0).to.not.increase(t,r)};X.increasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};X.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.decreases,!0).to.decrease(t,r)};X.decreasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.decreasesBy,!0).to.decrease(t,r).by(n)};X.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new Q(e,n,X.doesNotDecrease,!0).to.not.decrease(t,r)};X.doesNotDecreaseBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);return new Q(e,i,X.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};X.decreasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,i=a}else arguments.length===3&&(n=r,r=null);new Q(e,i,X.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};X.ifError=function(e){if(e)throw e};X.isExtensible=function(e,t){new Q(e,t,X.isExtensible,!0).to.be.extensible};X.isNotExtensible=function(e,t){new Q(e,t,X.isNotExtensible,!0).to.not.be.extensible};X.isSealed=function(e,t){new Q(e,t,X.isSealed,!0).to.be.sealed};X.isNotSealed=function(e,t){new Q(e,t,X.isNotSealed,!0).to.not.be.sealed};X.isFrozen=function(e,t){new Q(e,t,X.isFrozen,!0).to.be.frozen};X.isNotFrozen=function(e,t){new Q(e,t,X.isNotFrozen,!0).to.not.be.frozen};X.isEmpty=function(e,t){new Q(e,t,X.isEmpty,!0).to.be.empty};X.isNotEmpty=function(e,t){new Q(e,t,X.isNotEmpty,!0).to.not.be.empty};X.containsSubset=function(e,t,r){new Q(e,r).to.containSubset(t)};X.doesNotContainSubset=function(e,t,r){new Q(e,r).to.not.containSubset(t)};var Q8=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of Q8)X[t]=X[e];var Sw=[];function ds(e){let t={use:ds,AssertionError:$t,util:Si,config:dn,expect:ma,assert:X,Assertion:Q,...Px};return~Sw.indexOf(e)||(e(t,Si),Sw.push(e)),t}ye(ds,"use");var Ox={};vn(Ox,{toAppearAfter:()=>K4,toAppearBefore:()=>Km,toBeChecked:()=>gR,toBeDisabled:()=>uR,toBeEmpty:()=>Gx,toBeEmptyDOMElement:()=>Kx,toBeEnabled:()=>cR,toBeInTheDOM:()=>Um,toBeInTheDocument:()=>Wx,toBeInvalid:()=>fR,toBePartiallyChecked:()=>vR,toBePartiallyPressed:()=>_R,toBePressed:()=>AR,toBeRequired:()=>dR,toBeValid:()=>hR,toBeVisible:()=>iR,toContainElement:()=>Jm,toContainHTML:()=>Yx,toHaveAccessibleDescription:()=>zm,toHaveAccessibleErrorMessage:()=>Qx,toHaveAccessibleName:()=>Wm,toHaveAttribute:()=>Zx,toHaveClass:()=>eR,toHaveDescription:()=>ER,toHaveDisplayValue:()=>yR,toHaveErrorMessage:()=>wR,toHaveFocus:()=>tR,toHaveFormValues:()=>rR,toHaveRole:()=>Hm,toHaveSelection:()=>SR,toHaveStyle:()=>Gm,toHaveTextContent:()=>Xx,toHaveValue:()=>mR});var Aw=Cr(h_(),1);function Nx(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function u0(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Ix={};Nx(Ix);u0(Ix,"default",()=>Fx);var Fx=class extends Error{constructor(e,t,r,n,i){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=i}},kx={};Nx(kx);u0(kx,"default",()=>Bx);var Bx=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},Z8={};u0(Z8,"CssTypes",()=>Dr);var Dr;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(Dr||(Dr={}));var $h=/\/\*[^]*?(?:\*\/|$)/g,e9=(e,t)=>{t=t||{};let r=1,n=1;function i(G){let he=G.match(/\n/g);he&&(r+=he.length);let De=G.lastIndexOf(`
|
|
211
|
+
`);n=~De?G.length-De:n+G.length}function a(){let G={line:r,column:n};return function(he){return he.position=new Bx(G,{line:r,column:n},t?.source||""),b(),he}}let l=[];function u(G){let he=new Fx(t?.source||"",G,r,n,e);if(t?.silent)l.push(he);else throw he}function p(){let G=y();return{type:Dr.stylesheet,stylesheet:{source:t?.source,rules:G,parsingErrors:l}}}function c(){return g(/^{\s*/)}function m(){return g(/^}/)}function y(){let G,he=[];for(b(),w(he);e.length&&e.charAt(0)!=="}"&&(G=Ce()||re());)G&&(he.push(G),w(he));return he}function g(G){let he=G.exec(e);if(!he)return;let De=he[0];return i(De),e=e.slice(De.length),he}function b(){g(/^\s*/)}function w(G){let he;for(G=G||[];he=A();)he&&G.push(he);return G}function A(){let G=a();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let he=g(/^\/\*[^]*?\*\//);return he?G({type:Dr.comment,comment:he[0].slice(2,-2)}):u("End of comment missing")}function x(G,he,De){let _e=he+1,ge=!1,Ve=G.indexOf(")",_e);for(;!ge&&Ve!==-1;){let $e=G.indexOf("(",_e);$e!==-1&&$e<Ve?(_e=x(G,$e+1)+1,Ve=G.indexOf(")",_e)):ge=!0}return ge&&Ve!==-1?Ve:-1}function _(){let G=g(/^([^{]+)/);if(!G)return;let he=jn(G[0]).replace($h,"");if(he.indexOf(",")===-1)return[he];let De=0,_e=he.indexOf("(",De);for(;_e!==-1;){let ge=x(he,_e);if(ge===-1)break;De=ge+1,he=he.substring(0,_e)+he.substring(_e,ge).replace(/,/g,"")+he.substring(ge),_e=he.indexOf("(",De)}return he=he.replace(/("|')(?:\\\1|.)*?\1/g,ge=>ge.replace(/,/g,"")),he.split(",").map(ge=>jn(ge.replace(/\u200C/g,",")))}function R(){let G=a(),he=g(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!he)return;let De=jn(he[0]);if(!g(/^:\s*/))return u("property missing ':'");let _e=g(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ge=G({type:Dr.declaration,property:De.replace($h,""),value:_e?jn(_e[0]).replace($h,""):""});return g(/^[;\s]*/),ge}function j(){let G=[];if(!c())return u("missing '{'");w(G);let he;for(;he=R();)he&&(G.push(he),w(G));return m()?G:u("missing '}'")}function B(){let G,he=[],De=a();for(;G=g(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)he.push(G[1]),g(/^,\s*/);if(he.length)return De({type:Dr.keyframe,values:he,declarations:j()||[]})}function F(){let G=a(),he=g(/^@([-\w]+)?keyframes\s*/);if(!he)return;let De=he[1],_e=g(/^([-\w]+)\s*/);if(!_e)return u("@keyframes missing name");let ge=_e[1];if(!c())return u("@keyframes missing '{'");let Ve,$e=w();for(;Ve=B();)$e.push(Ve),$e=$e.concat(w());return m()?G({type:Dr.keyframes,name:ge,vendor:De,keyframes:$e}):u("@keyframes missing '}'")}function E(){let G=a(),he=g(/^@supports *([^{]+)/);if(!he)return;let De=jn(he[1]);if(!c())return u("@supports missing '{'");let _e=w().concat(y());return m()?G({type:Dr.supports,supports:De,rules:_e}):u("@supports missing '}'")}function P(){let G=a();if(!g(/^@host\s*/))return;if(!c())return u("@host missing '{'");let he=w().concat(y());return m()?G({type:Dr.host,rules:he}):u("@host missing '}'")}function N(){let G=a(),he=g(/^@container *([^{]+)/);if(!he)return;let De=jn(he[1]);if(!c())return u("@container missing '{'");let _e=w().concat(y());return m()?G({type:Dr.container,container:De,rules:_e}):u("@container missing '}'")}function L(){let G=a(),he=g(/^@layer *([^{;@]+)/);if(!he)return;let De=jn(he[1]);if(!c())return g(/^[;\s]*/),G({type:Dr.layer,layer:De});let _e=w().concat(y());return m()?G({type:Dr.layer,layer:De,rules:_e}):u("@layer missing '}'")}function Z(){let G=a(),he=g(/^@media *([^{]+)/);if(!he)return;let De=jn(he[1]);if(!c())return u("@media missing '{'");let _e=w().concat(y());return m()?G({type:Dr.media,media:De,rules:_e}):u("@media missing '}'")}function H(){let G=a(),he=g(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(he)return G({type:Dr.customMedia,name:jn(he[1]),media:jn(he[2])})}function te(){let G=a();if(!g(/^@page */))return;let he=_()||[];if(!c())return u("@page missing '{'");let De=w(),_e;for(;_e=R();)De.push(_e),De=De.concat(w());return m()?G({type:Dr.page,selectors:he,declarations:De}):u("@page missing '}'")}function W(){let G=a(),he=g(/^@([-\w]+)?document *([^{]+)/);if(!he)return;let De=jn(he[1]),_e=jn(he[2]);if(!c())return u("@document missing '{'");let ge=w().concat(y());return m()?G({type:Dr.document,document:_e,vendor:De,rules:ge}):u("@document missing '}'")}function $(){let G=a();if(!g(/^@font-face\s*/))return;if(!c())return u("@font-face missing '{'");let he=w(),De;for(;De=R();)he.push(De),he=he.concat(w());return m()?G({type:Dr.fontFace,declarations:he}):u("@font-face missing '}'")}function K(){let G=a();if(!g(/^@starting-style\s*/))return;if(!c())return u("@starting-style missing '{'");let he=w().concat(y());return m()?G({type:Dr.startingStyle,rules:he}):u("@starting-style missing '}'")}let ne=Ae("import"),ae=Ae("charset"),oe=Ae("namespace");function Ae(G){let he=new RegExp("^@"+G+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let De=a(),_e=g(he);if(!_e)return;let ge={type:G};return ge[G]=_e[1].trim(),De(ge)}}function Ce(){if(e[0]==="@")return F()||Z()||H()||E()||ne()||ae()||oe()||W()||te()||P()||$()||N()||K()||L()}function re(){let G=a(),he=_();return he?(w(),G({type:Dr.rule,selectors:he,declarations:j()||[]})):u("selector missing")}return $m(p())};function jn(e){return e?e.trim():""}function $m(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let i in e){let a=e[i];Array.isArray(a)?a.forEach(l=>{$m(l,n)}):a&&typeof a=="object"&&$m(a,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var t9=e9,r9=t9,n9=Object.prototype.toString;function i9(e){return typeof e=="function"||n9.call(e)==="[object Function]"}function o9(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var a9=Math.pow(2,53)-1;function s9(e){var t=o9(e);return Math.min(Math.max(t,0),a9)}function ti(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var i=s9(n.length),a=i9(r)?Object(new r(i)):new Array(i),l=0,u;l<i;)u=n[l],a[l]=u,l+=1;return a.length=i,a}function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function l9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lx(n.key),n)}}function c9(e,t,r){return t&&u9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d9(e,t,r){return t=Lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lx(e){var t=p9(e,"string");return tu(t)==="symbol"?t:String(t)}function p9(e,t){if(tu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f9=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l9(this,e),d9(this,"items",void 0),this.items=t}return c9(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),h9=typeof Set>"u"?Set:f9;function on(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var m9={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"},y9={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"]),none: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 g9(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","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(r){var n;return e.hasAttribute(r)&&!((n=y9[t])!==null&&n!==void 0&&n.has(r))})}function Mx(e,t){return g9(e,t)}function b9(e){var t=E9(e);if(t===null||Vm.indexOf(t)!==-1){var r=v9(e);if(Vm.indexOf(t||"")===-1||Mx(e,r||""))return r}return t}function v9(e){var t=m9[on(e)];if(t!==void 0)return t;switch(on(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Mx(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;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 E9(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var Vm=["presentation","none"];function dr(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function qx(e){return dr(e)&&on(e)==="caption"}function cd(e){return dr(e)&&on(e)==="input"}function w9(e){return dr(e)&&on(e)==="optgroup"}function S9(e){return dr(e)&&on(e)==="select"}function A9(e){return dr(e)&&on(e)==="table"}function _9(e){return dr(e)&&on(e)==="textarea"}function C9(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function T9(e){return dr(e)&&on(e)==="fieldset"}function x9(e){return dr(e)&&on(e)==="legend"}function R9(e){return dr(e)&&on(e)==="slot"}function D9(e){return dr(e)&&e.ownerSVGElement!==void 0}function P9(e){return dr(e)&&on(e)==="svg"}function O9(e){return D9(e)&&on(e)==="title"}function Pd(e,t){if(dr(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function $i(e,t){return dr(e)?t.indexOf(b9(e))!==-1:!1}function N9(e){return e.trim().replace(/\s\s+/g," ")}function I9(e,t){if(!dr(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function F9(e){return $i(e,["button","combobox","listbox","textbox"])||jx(e,"range")}function jx(e,t){if(!dr(e))return!1;if(t==="range")return $i(e,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}function _w(e,t){var r=ti(e.querySelectorAll(t));return Pd(e,"aria-owns").forEach(function(n){r.push.apply(r,ti(n.querySelectorAll(t)))}),r}function k9(e){return S9(e)?e.selectedOptions||_w(e,"[selected]"):_w(e,'[aria-selected="true"]')}function B9(e){return $i(e,Vm)}function L9(e){return qx(e)}function M9(e){return $i(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function q9(e){return!1}function j9(e){return cd(e)||_9(e)?e.value:e.textContent||""}function Cw(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function $x(e){var t=on(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function Vx(e){if($x(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&dr(r)){var n=Vx(r);n!==null&&(t=n)}}),t}function $9(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Vx(e)}function V9(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return ti(t);if(!$x(e))return null;var r=e.ownerDocument;return ti(r.querySelectorAll("label")).filter(function(n){return $9(n)===e})}function U9(e){var t=e.assignedNodes();return t.length===0?ti(e.childNodes):t}function Ux(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new h9,n=C9(e),i=t.compute,a=i===void 0?"name":i,l=t.computedStyleSupportsPseudoElements,u=l===void 0?t.getComputedStyle!==void 0:l,p=t.getComputedStyle,c=p===void 0?n.getComputedStyle.bind(n):p,m=t.hidden,y=m===void 0?!1:m;function g(_,R){var j="";if(dr(_)&&u){var B=c(_,"::before"),F=Cw(B);j="".concat(F," ").concat(j)}var E=R9(_)?U9(_):ti(_.childNodes).concat(Pd(_,"aria-owns"));if(E.forEach(function(L){var Z=x(L,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),H=dr(L)?c(L).getPropertyValue("display"):"inline",te=H!=="inline"?" ":"";j+="".concat(te).concat(Z).concat(te)}),dr(_)&&u){var P=c(_,"::after"),N=Cw(P);j="".concat(j," ").concat(N)}return j.trim()}function b(_,R){var j=_.getAttributeNode(R);return j!==null&&!r.has(j)&&j.value.trim()!==""?(r.add(j),j.value):null}function w(_){return dr(_)?b(_,"title"):null}function A(_){if(!dr(_))return null;if(T9(_)){r.add(_);for(var R=ti(_.childNodes),j=0;j<R.length;j+=1){var B=R[j];if(x9(B))return x(B,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(A9(_)){r.add(_);for(var F=ti(_.childNodes),E=0;E<F.length;E+=1){var P=F[E];if(qx(P))return x(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(P9(_)){r.add(_);for(var N=ti(_.childNodes),L=0;L<N.length;L+=1){var Z=N[L];if(O9(Z))return Z.textContent}return null}else if(on(_)==="img"||on(_)==="area"){var H=b(_,"alt");if(H!==null)return H}else if(w9(_)){var te=b(_,"label");if(te!==null)return te}if(cd(_)&&(_.type==="button"||_.type==="submit"||_.type==="reset")){var W=b(_,"value");if(W!==null)return W;if(_.type==="submit")return"Submit";if(_.type==="reset")return"Reset"}var $=V9(_);if($!==null&&$.length!==0)return r.add(_),ti($).map(function(oe){return x(oe,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(oe){return oe.length>0}).join(" ");if(cd(_)&&_.type==="image"){var K=b(_,"alt");if(K!==null)return K;var ne=b(_,"title");return ne!==null?ne:"Submit Query"}if($i(_,["button"])){var ae=g(_,{isEmbeddedInLabel:!1});if(ae!=="")return ae}return null}function x(_,R){if(r.has(_))return"";if(!y&&I9(_,c)&&!R.isReferenced)return r.add(_),"";var j=dr(_)?_.getAttributeNode("aria-labelledby"):null,B=j!==null&&!r.has(j)?Pd(_,"aria-labelledby"):[];if(a==="name"&&!R.isReferenced&&B.length>0)return r.add(j),B.map(function(H){return x(H,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var F=R.recursion&&F9(_)&&a==="name";if(!F){var E=(dr(_)&&_.getAttribute("aria-label")||"").trim();if(E!==""&&a==="name")return r.add(_),E;if(!B9(_)){var P=A(_);if(P!==null)return r.add(_),P}}if($i(_,["menu"]))return r.add(_),"";if(F||R.isEmbeddedInLabel||R.isReferenced){if($i(_,["combobox","listbox"])){r.add(_);var N=k9(_);return N.length===0?cd(_)?_.value:"":ti(N).map(function(H){return x(H,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(jx(_,"range"))return r.add(_),_.hasAttribute("aria-valuetext")?_.getAttribute("aria-valuetext"):_.hasAttribute("aria-valuenow")?_.getAttribute("aria-valuenow"):_.getAttribute("value")||"";if($i(_,["textbox"]))return r.add(_),j9(_)}if(M9(_)||dr(_)&&R.isReferenced||L9(_)||q9()){var L=g(_,{isEmbeddedInLabel:R.isEmbeddedInLabel});if(L!=="")return r.add(_),L}if(_.nodeType===_.TEXT_NODE)return r.add(_),_.textContent||"";if(R.recursion)return r.add(_),g(_,{isEmbeddedInLabel:R.isEmbeddedInLabel});var Z=w(_);return Z!==null?(r.add(_),Z):(r.add(_),"")}return N9(x(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function ru(e){"@babel/helpers - typeof";return ru=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},ru(e)}function Tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(r),!0).forEach(function(n){J9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J9(e,t,r){return t=z9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=H9(e,"string");return ru(t)==="symbol"?t:String(t)}function H9(e,t){if(ru(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Pd(e,"aria-describedby").map(function(a){return Ux(a,xw(xw({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var i=e.getAttribute("title");r=i===null?"":i}return r}function G9(e){return $i(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function K9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return G9(e)?"":Ux(e,t)}var c0=Cr(Vy(),1),Y9=Cr(jy(),1),X9=Cr(m_(),1),Jx=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let i="";try{i=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,i].join(`
|
|
212
|
+
`)}},Rw=class extends Jx{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},Dw=class extends Jx{constructor(...e){super("be a Node",...e)}};function zx(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function Q9(e,...t){zx(e,Dw,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Dw(e,...t)}function Nt(e,...t){zx(e,Rw,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Rw(e,...t)}var Z9=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
213
|
+
`)}};function e4(e,...t){let r=r9(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:i}=r.parsingErrors[0];throw new Z9({css:e,message:`Syntax error parsing expected css: ${n} on line: ${i}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:i,value:a})=>Object.assign(n,{[i]:a}),{})}function Pw(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function kr(e,t,r,n,i,a){return[`${t}
|
|
214
|
+
`,`${r}:
|
|
215
|
+
${e.utils.EXPECTED_COLOR((0,Aw.default)(Pw(e,n),2))}`,`${i}:
|
|
216
|
+
${e.utils.RECEIVED_COLOR((0,Aw.default)(Pw(e,a),2))}`].join(`
|
|
217
|
+
`)}function t4(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function yp(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function gp(e){return e.replace(/\s+/g," ").trim()}function ko(e){return e.tagName&&e.tagName.toLowerCase()}function r4({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function n4(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var i4=["meter","progressbar","slider","spinbutton"];function o4(e){if(i4.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function Hx(e){if(e)switch(e.tagName.toLowerCase()){case"input":return n4(e);case"select":return r4(e);default:return e.value??o4(e)}}function a4(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function d0(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function Um(e,t){return yp("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Nt(e,Um,this),t&&Nt(t,Um,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
218
|
+
`)}}function Wx(e){(e!==null||!this.isNot)&&Nt(e,Wx,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
219
|
+
`)}}function Gx(e){return yp("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Nt(e,Gx,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
220
|
+
`)}}function Kx(e){return Nt(e,Kx,this),{pass:s4(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
221
|
+
`)}}function s4(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function Jm(e,t){return Nt(e,Jm,this),t!==null&&Nt(t,Jm,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
222
|
+
`)].join(`
|
|
223
|
+
`)}}function l4(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function Yx(e,t){if(Nt(e,Yx,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(l4(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
224
|
+
`)}}function Xx(e,t,r={normalizeWhitespace:!0}){Q9(e,Xx,this);let n=r.normalizeWhitespace?gp(e.textContent):e.textContent.replace(/\u00a0/g," "),i=n!==""&&t==="";return{pass:!i&&t4(n,t),message:()=>{let a=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),i?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${a} have text content`,t,"Received",n)}}}function zm(e,t){Nt(e,zm,this);let r=W9(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let a=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.${zm.name}`,"element",""),`Expected element ${a} have accessible description`,t,"Received",r)}}}var Al="aria-invalid",u4=["false"];function Qx(e,t){Nt(e,Qx,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",i=e.getAttribute("aria-errormessage");if(i&&/\s+/.test(i))return{pass:!1,message:()=>kr(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${i}"`)};let a=e.getAttribute(Al);if(!e.hasAttribute(Al)||u4.includes(a))return{pass:!1,message:()=>kr(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Al}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Al}="${e.getAttribute(Al)}`:null)};let l=gp(e.ownerDocument.getElementById(i)?.textContent??"");return{pass:t===void 0?!!l:t instanceof RegExp?t.test(l):this.equals(l,t),message:()=>kr(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",l)}}var c4=f4(c0.elementRoles);function Hm(e,t){Nt(e,Hm,this);let r=d4(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Hm.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function d4(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):p4(e)}function p4(e){for(let{match:t,roles:r}of c4)if(t(e))return[...r];return[]}function f4(e){function t({name:l,attributes:u}){return`${l}${u.map(({name:p,value:c,constraints:m=[]})=>m.indexOf("undefined")!==-1?`:not([${p}])`:c?`[${p}="${c}"]`:`[${p}]`).join("")}`}function r({attributes:l=[]}){return l.length}function n({specificity:l},{specificity:u}){return u-l}function i(l){let{attributes:u=[]}=l,p=u.findIndex(m=>m.value&&m.name==="type"&&m.value==="text");p>=0&&(u=[...u.slice(0,p),...u.slice(p+1)]);let c=t({...l,attributes:u});return m=>p>=0&&m.type!=="text"?!1:m.matches(c)}let a=[];for(let[l,u]of e.entries())a=[...a,{match:i(l),roles:Array.from(u),specificity:r(l)}];return a.sort(n)}function Wm(e,t){Nt(e,Wm,this);let r=K9(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let a=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Wm.name}`,"element",""),`Expected element ${a} have accessible name`,t,"Received",r)}}}function Ow(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function h4(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function Zx(e,t,r){Nt(e,Zx,this);let n=r!==void 0,i=e.hasAttribute(t),a=e.getAttribute(t);return{pass:n?i&&this.equals(a,r):i,message:()=>{let l=this.isNot?"not to":"to",u=i?Ow(this.utils.stringify,t,a):null,p=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:h4(this.utils.stringify,t,r)});return kr(this,p,`Expected the element ${l} have attribute`,Ow(this.utils.stringify,t,r),"Received",u)}}}function m4(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function Nw(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Iw(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function eR(e,...t){Nt(e,eR,this);let{expectedClassNames:r,options:n}=m4(t),i=Nw(e.getAttribute("class")),a=r.reduce((u,p)=>u.concat(typeof p=="string"||!p?Nw(p):p),[]),l=a.some(u=>u instanceof RegExp);if(n.exact&&l)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Iw(a,i)&&a.length===i.length,message:()=>{let u=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(a.join(" "))),`Expected the element ${u} have EXACTLY defined classes`,a.join(" "),"Received",i.join(" "))}}:a.length>0?{pass:Iw(a,i),message:()=>{let u=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(a.join(" "))),`Expected the element ${u} have class`,a.join(" "),"Received",i.join(" "))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?kr(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",i.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
225
|
+
`)}}function y4(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(i=>{n.style[i]=t[i],r[i]=n.style[i]}),r}function g4(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let i=r.startsWith("--"),a=[r];return i||a.push(r.toLowerCase()),a.some(l=>t[l]===n||t.getPropertyValue(l)===n)})}function Fw(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
226
|
+
`)}function b4(e,t,r){let n=Array.from(r).filter(i=>t[i]!==void 0).reduce((i,a)=>Object.assign(i,{[a]:r.getPropertyValue(a)}),{});return e(Fw(t),Fw(n)).replace(`${Y9.default.red("+ Received")}
|
|
227
|
+
`,"")}function Gm(e,t){Nt(e,Gm,this);let r=typeof t=="object"?t:e4(t,Gm,this),{getComputedStyle:n}=e.ownerDocument.defaultView,i=y4(e.ownerDocument,r),a=n(e);return{pass:g4(i,a),message:()=>{let l=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(l,"element",""),b4(this.utils.diff,i,a)].join(`
|
|
228
|
+
|
|
229
|
+
`)}}}function tR(e){return Nt(e,tR,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
230
|
+
`)}}function v4(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function E4(e,t){let r=[...e.querySelectorAll(`[name="${(0,X9.default)(t)}"]`)];if(r.length!==0)return r.length===1?Hx(r[0]):v4(r)}function w4(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function S4(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[w4(r)]:E4(e,r)}),{})}function rR(e,t){if(Nt(e,rR,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=S4(e);return{pass:Object.entries(t).every(([n,i])=>d0(r[n],i)),message:()=>{let n=this.isNot?"not to":"to",i=`${this.isNot?".not":""}.toHaveFormValues`,a=Object.keys(r).filter(l=>t.hasOwnProperty(l)).reduce((l,u)=>({...l,[u]:r[u]}),{});return[this.utils.matcherHint(i,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,a)].join(`
|
|
231
|
+
|
|
232
|
+
`)}}}function A4(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:i}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&i!=="0"&&i!==0}function _4(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function nR(e,t){return A4(e)&&_4(e,t)&&(!e.parentElement||nR(e.parentElement,e))}function iR(e){Nt(e,iR,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&nR(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
233
|
+
`)}}}var C4=["fieldset","input","select","optgroup","option","button","textarea"];function T4(e,t){return ko(e)==="legend"&&ko(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>ko(r)==="legend"))}function x4(e,t){return aR(t)&&!T4(e,t)}function R4(e){return e.includes("-")}function oR(e){let t=ko(e);return C4.includes(t)||R4(t)}function aR(e){return oR(e)&&e.hasAttribute("disabled")}function sR(e){let t=e.parentElement;return!!t&&(x4(e,t)||sR(t))}function lR(e){return oR(e)&&(aR(e)||sR(e))}function uR(e){Nt(e,uR,this);let t=lR(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
234
|
+
`)}}}function cR(e){Nt(e,cR,this);let t=!lR(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
235
|
+
`)}}}var D4=["select","textarea"],P4=["input","select","textarea"],O4=["color","hidden","range","submit","image","reset"],N4=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function I4(e){return D4.includes(ko(e))&&e.hasAttribute("required")}function F4(e){return ko(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!O4.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function k4(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(P4.includes(ko(e))||e.hasAttribute("role")&&N4.includes(e.getAttribute("role")))}function dR(e){Nt(e,dR,this);let t=I4(e)||F4(e)||k4(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
+
`)}}}var B4=["form","input","select","textarea"];function L4(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function M4(e){return B4.includes(ko(e))}function pR(e){let t=L4(e);return M4(e)?t||!e.checkValidity():t}function fR(e){Nt(e,fR,this);let t=pR(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
+
`)}}}function hR(e){Nt(e,hR,this);let t=!pR(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
+
`)}}}function mR(e,t){if(Nt(e,mR,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=Hx(e),n=t!==void 0,i=t,a=r;return t==r&&t!==r&&(i=`${t} (${typeof t})`,a=`${r} (${typeof r})`),{pass:n?d0(r,t):!!r,message:()=>{let l=this.isNot?"not to":"to",u=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return kr(this,u,`Expected the element ${l} have value`,n?i:"(any)","Received",a)}}}function yR(e,t){Nt(e,yR,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=q4(r,e),i=j4(t),a=i.filter(p=>n.some(c=>p instanceof RegExp?p.test(c):this.equals(c,String(p)))).length,l=a===n.length,u=a===i.length;return{pass:l&&u,message:()=>kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function q4(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function j4(e){return e instanceof Array?e:[e]}function gR(e){Nt(e,gR,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>bR(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${$4()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${i} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
239
|
+
`)}}}function $4(){return a4(V4().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function V4(){return c0.roles.keys().filter(bR)}function bR(e){return c0.roles.get(e)?.props["aria-checked"]!==void 0}function vR(e){Nt(e,vR,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let i=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||i};return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${i} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
240
|
+
`)}}}function ER(e,t){yp("toHaveDescription","Please use toHaveAccessibleDescription."),Nt(e,ER,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let a=e.ownerDocument,l=n.map(u=>a.getElementById(u)).filter(Boolean);i=gp(l.map(u=>u.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let a=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${a} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function wR(e,t){if(yp("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Nt(e,wR,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let a=this.isNot?".not":"";return{pass:!1,message:()=>kr(this,this.utils.matcherHint(`${a}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let a=e.ownerDocument,l=n.map(u=>a.getElementById(u)).filter(Boolean);i=gp(l.map(u=>u.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let a=this.isNot?"not to":"to";return kr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${a} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function U4(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let a=e===r.startContainer||e.contains(r.startContainer),l=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(a||l)&&(n.selectNodeContents(e),a&&n.setStart(r.startContainer,r.startOffset),l&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let i=t.toString();return t.removeAllRanges(),t.addRange(r),i}function SR(e,t){Nt(e,SR,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=U4(e);return{pass:r?d0(n,t):!!n,message:()=>{let i=this.isNot?"not to":"to",a=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return kr(this,a,`Expected the element ${i} have selection`,r?t:"(any)","Received",n)}}}function AR(e){Nt(e,AR,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return kr(this,i,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function _R(e){Nt(e,_R,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let i=this.isNot?"not to":"to",a=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return kr(this,a,`Expected element ${i} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var J4=1,CR=2,TR=4,z4=8,H4=16,W4=32,kw={[J4]:"Node.DOCUMENT_POSITION_DISCONNECTED",[CR]:"Node.DOCUMENT_POSITION_PRECEDING",[TR]:"Node.DOCUMENT_POSITION_FOLLOWING",[z4]:"Node.DOCUMENT_POSITION_CONTAINS",[H4]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[W4]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function G4(e){return e in kw?`${kw[e]} (${e})`:`Unknown document position (${e})`}function xR(e,t){return function(r,n){Nt(r,Km,this),Nt(n,Km,this);let i=r.compareDocumentPosition(n);return{pass:i===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${G4(i)}`].join(`
|
|
241
|
+
`)}}}function Km(e,t){return xR("toAppearBefore",TR).apply(this,[e,t])}function K4(e,t){return xR("toAppearAfter",CR).apply(this,[e,t])}Cr(h_(),1);Cr(Vy(),1);Cr(jy(),1);Cr(m_(),1);var Vh,Bw;function Y4(){if(Bw)return Vh;Bw=1;var e,t,r,n,i,a,l,u,p,c,m,y,g,b,w,A,x,_,R;return g=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,m=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,A=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,R=/[\t\v\f\ufeff\p{Zs}]+/yu,u=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,b=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,x=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,l=/^(?:return|throw|yield)$/,c=RegExp(u.source),Vh=function*(j,{jsx:B=!1}={}){var F,E,P,N,L,Z,H,te,W,$,K,ne,ae,oe;for({length:Z}=j,N=0,L="",oe=[{tag:"JS"}],F=[],K=0,ne=!1;N<Z;){switch(te=oe[oe.length-1],te.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(j[N]==="/"&&(_.test(L)||a.test(L))&&(g.lastIndex=N,H=g.exec(j))){N=g.lastIndex,L=H[0],ne=!0,yield{type:"RegularExpressionLiteral",value:H[0],closed:H[1]!==void 0&&H[1]!=="\\"};continue}if(y.lastIndex=N,H=y.exec(j)){switch(ae=H[0],W=y.lastIndex,$=ae,ae){case"(":L==="?NonExpressionParenKeyword"&&oe.push({tag:"JSNonExpressionParen",nesting:K}),K++,ne=!1;break;case")":K--,ne=!0,te.tag==="JSNonExpressionParen"&&K===te.nesting&&(oe.pop(),$="?NonExpressionParenEnd",ne=!1);break;case"{":y.lastIndex=0,P=!x.test(L)&&(_.test(L)||a.test(L)),F.push(P),ne=!1;break;case"}":switch(te.tag){case"InterpolationInTemplate":if(F.length===te.nesting){A.lastIndex=N,H=A.exec(j),N=A.lastIndex,L=H[0],H[1]==="${"?(L="?InterpolationInTemplate",ne=!1,yield{type:"TemplateMiddle",value:H[0]}):(oe.pop(),ne=!0,yield{type:"TemplateTail",value:H[0],closed:H[1]==="`"});continue}break;case"InterpolationInJSX":if(F.length===te.nesting){oe.pop(),N+=1,L="}",yield{type:"JSXPunctuator",value:"}"};continue}}ne=F.pop(),$=ne?"?ExpressionBraceEnd":"}";break;case"]":ne=!0;break;case"++":case"--":$=ne?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(B&&(_.test(L)||a.test(L))){oe.push({tag:"JSXTag"}),N+=1,L="<",yield{type:"JSXPunctuator",value:ae};continue}ne=!1;break;default:ne=!1}N=W,L=$,yield{type:"Punctuator",value:ae};continue}if(e.lastIndex=N,H=e.exec(j)){switch(N=e.lastIndex,$=H[0],H[0]){case"for":case"if":case"while":case"with":L!=="."&&L!=="?."&&($="?NonExpressionParenKeyword")}L=$,ne=!a.test(H[0]),yield{type:H[1]==="#"?"PrivateIdentifier":"IdentifierName",value:H[0]};continue}if(w.lastIndex=N,H=w.exec(j)){N=w.lastIndex,L=H[0],ne=!0,yield{type:"StringLiteral",value:H[0],closed:H[2]!==void 0};continue}if(m.lastIndex=N,H=m.exec(j)){N=m.lastIndex,L=H[0],ne=!0,yield{type:"NumericLiteral",value:H[0]};continue}if(A.lastIndex=N,H=A.exec(j)){N=A.lastIndex,L=H[0],H[1]==="${"?(L="?InterpolationInTemplate",oe.push({tag:"InterpolationInTemplate",nesting:F.length}),ne=!1,yield{type:"TemplateHead",value:H[0]}):(ne=!0,yield{type:"NoSubstitutionTemplate",value:H[0],closed:H[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=N,H=r.exec(j)){switch(N=r.lastIndex,$=H[0],H[0]){case"<":oe.push({tag:"JSXTag"});break;case">":oe.pop(),L==="/"||te.tag==="JSXTagEnd"?($="?JSX",ne=!0):oe.push({tag:"JSXChildren"});break;case"{":oe.push({tag:"InterpolationInJSX",nesting:F.length}),$="?InterpolationInJSX",ne=!1;break;case"/":L==="<"&&(oe.pop(),oe[oe.length-1].tag==="JSXChildren"&&oe.pop(),oe.push({tag:"JSXTagEnd"}))}L=$,yield{type:"JSXPunctuator",value:H[0]};continue}if(t.lastIndex=N,H=t.exec(j)){N=t.lastIndex,L=H[0],yield{type:"JSXIdentifier",value:H[0]};continue}if(n.lastIndex=N,H=n.exec(j)){N=n.lastIndex,L=H[0],yield{type:"JSXString",value:H[0],closed:H[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=N,H=i.exec(j)){N=i.lastIndex,L=H[0],yield{type:"JSXText",value:H[0]};continue}switch(j[N]){case"<":oe.push({tag:"JSXTag"}),N++,L="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":oe.push({tag:"InterpolationInJSX",nesting:F.length}),N++,L="?InterpolationInJSX",ne=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(R.lastIndex=N,H=R.exec(j)){N=R.lastIndex,yield{type:"WhiteSpace",value:H[0]};continue}if(u.lastIndex=N,H=u.exec(j)){N=u.lastIndex,ne=!1,l.test(L)&&(L="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:H[0]};continue}if(p.lastIndex=N,H=p.exec(j)){N=p.lastIndex,c.test(H[0])&&(ne=!1,l.test(L)&&(L="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:H[0],closed:H[1]!==void 0};continue}if(b.lastIndex=N,H=b.exec(j)){N=b.lastIndex,ne=!1,yield{type:"SingleLineComment",value:H[0]};continue}E=String.fromCodePoint(j.codePointAt(N)),N+=E.length,L=E,ne=!1,yield{type:te.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}}},Vh}var X4=Y4();CT(X4);var RR={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(RR.keyword);new Set(RR.strict);var Q4={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},DR=Object.entries(Q4);function bp(e){return String(e)}bp.open="";bp.close="";DR.reduce((e,[t])=>(e[t]=bp,e),{isColorSupported:!1});function Z4(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function e7(e=!1){let t=Z4(e),r=(l,u,p,c)=>{let m="",y=0;do m+=l.substring(y,c)+p,y=c+u.length,c=l.indexOf(u,y);while(~c);return m+l.substring(y)},n=(l,u,p=l)=>{let c=m=>{let y=String(m),g=y.indexOf(u,l.length);return~g?l+r(y,u,p,g)+u:l+y+u};return c.open=l,c.close=u,c},i={isColorSupported:t},a=l=>`\x1B[${l}m`;for(let[l,u]of DR)i[l]=t?n(a(u[0]),a(u[1]),u[2]):bp;return i}var Rn=e7();function dd(e,t){if(!e)throw new Error(t)}function ss(e,t){return typeof t===e}function t7(e){return e instanceof Promise}function nu(e,t,r){Object.defineProperty(e,t,r)}function ps(e,t,r){nu(e,t,{value:r,configurable:!0,writable:!0})}var Bo=Symbol.for("tinyspy:spy"),r7=new Set,n7=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},i7=e=>(nu(e,Bo,{value:{reset:()=>n7(e[Bo])}}),e[Bo]),Ym=e=>e[Bo]||i7(e);function o7(e){dd(ss("function",e)||ss("undefined",e),"cannot spy on a non-function value");let t=function(...n){let i=Ym(t);i.called=!0,i.callCount++,i.calls.push(n);let a=i.next.shift();if(a){i.results.push(a);let[m,y]=a;if(m==="ok")return y;throw y}let l,u="ok",p=i.results.length;if(i.impl)try{new.target?l=Reflect.construct(i.impl,n,new.target):l=i.impl.apply(this,n),u="ok"}catch(m){throw l=m,u="error",i.results.push([u,m]),m}let c=[u,l];return t7(l)&&l.then(m=>i.resolves[p]=["ok",m],m=>i.resolves[p]=["error",m]),i.results.push(c),l};ps(t,"_isMockFunction",!0),ps(t,"length",e?e.length:0),ps(t,"name",e&&e.name||"spy");let r=Ym(t);return r.reset(),r.impl=e,t}function a7(e){return!!e&&e._isMockFunction===!0}var PR=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return[n,i];n=Object.getPrototypeOf(n)}},Lw=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function OR(e,t,r){dd(!ss("undefined",e),"spyOn could not find an object to spy upon"),dd(ss("object",e)||ss("function",e),"cannot spyOn on a primitive value");let[n,i]=(()=>{if(!ss("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[a,l]=PR(e,n)||[];dd(l||n in e,`${String(n)} does not exist`);let u=!1;i==="value"&&l&&!l.value&&l.get&&(i="get",u=!0,r=l.get());let p;l?p=l[i]:i!=="value"?p=()=>e[n]:p=e[n],p&&c7(p)&&(p=p[Bo].getOriginal());let c=b=>{let{value:w,...A}=l||{configurable:!0,writable:!0};i!=="value"&&delete A.writable,A[i]=b,nu(e,n,A)},m=()=>{a!==e?Reflect.deleteProperty(e,n):l&&!p?nu(e,n,l):c(p)};r||(r=p);let y=u7(o7(r),r);i==="value"&&Lw(y,p);let g=y[Bo];return ps(g,"restore",m),ps(g,"getOriginal",()=>u?p():p),ps(g,"willCall",b=>(g.impl=b,y)),c(u?()=>(Lw(y,r),y):y),r7.add(y),y}var s7=new Set(["length","name","prototype"]);function l7(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of n)r[i]||s7.has(i)||(t.add(i),r[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function u7(e,t){if(!t||Bo in t)return e;let{properties:r,descriptors:n}=l7(t);for(let i of r){let a=n[i];PR(e,i)||nu(e,i,a)}return e}function c7(e){return a7(e)&&"getOriginal"in e[Bo]}var xu=new Set;function fs(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function d7(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,i,a=f7(e,t),l=a&&a[r||"value"];fs(l)&&(i=l.mock._state());try{let u=OR(e,n),p=NR(u);return i&&p.mock._state(i),p}catch(u){throw u instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(u.message.includes("Cannot redefine property")||u.message.includes("Cannot replace module namespace")||u.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:u}):u}}var p7=0;function NR(e){let t=e,r,n=[],i=!1,a=[],l=[],u=[],p=Ym(e),c={get calls(){return p.calls},get contexts(){return l},get instances(){return a},get invocationCallOrder(){return u},get results(){return p.results.map(([b,w])=>({type:b==="error"?"throw":"return",value:w}))},get settledResults(){return p.resolves.map(([b,w])=>({type:b==="error"?"rejected":"fulfilled",value:w}))},get lastCall(){return p.calls[p.calls.length-1]},_state(b){return b&&(r=b.implementation,n=b.onceImplementations,i=b.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:i}}};function m(...b){return a.push(this),l.push(this),u.push(++p7),(i?r:n.shift()||r||p.getOriginal()||(()=>{})).apply(this,b)}let y=t.name;t.getMockName=()=>y||"vi.fn()",t.mockName=b=>(y=b,t),t.mockClear=()=>(p.reset(),a=[],l=[],u=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),p.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?r:n.at(0)||r,t.mockImplementation=b=>(r=b,p.willCall(m),t),t.mockImplementationOnce=b=>(n.push(b),t);function g(b,w){let A=r;r=b,p.willCall(m),i=!0;let x=()=>{r=A,i=!1},_=w();return typeof _=="object"&&_&&typeof _.then=="function"?_.then(()=>(x(),t)):(x(),t)}return t.withImplementation=g,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=b=>t.mockImplementation(()=>b),t.mockReturnValueOnce=b=>t.mockImplementationOnce(()=>b),t.mockResolvedValue=b=>t.mockImplementation(()=>Promise.resolve(b)),t.mockResolvedValueOnce=b=>t.mockImplementationOnce(()=>Promise.resolve(b)),t.mockRejectedValue=b=>t.mockImplementation(()=>Promise.reject(b)),t.mockRejectedValueOnce=b=>t.mockImplementationOnce(()=>Promise.reject(b)),Object.defineProperty(t,"mock",{get:()=>c}),p.willCall(m),xu.add(t),t}function Mw(e){let t=NR(OR({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function f7(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}var iu=Symbol.for("matchers-object"),ou=Symbol.for("$$jest-matchers-object-storybook"),p0=Symbol.for("expect-global"),Xm=Symbol.for("asymmetric-matchers-object"),h7={toSatisfy(e,t,r){let{printReceived:n,printExpected:i,matcherHint:a}=this.utils,l=t(e);return{pass:l,message:()=>l?`${a(".not.toSatisfy","received","")}
|
|
242
|
+
|
|
243
|
+
Expected value to not satisfy:
|
|
244
|
+
${r||i(t)}
|
|
245
|
+
Received:
|
|
246
|
+
${n(e)}`:`${a(".toSatisfy","received","")}
|
|
247
|
+
|
|
248
|
+
Expected value to satisfy:
|
|
249
|
+
${r||i(t)}
|
|
250
|
+
|
|
251
|
+
Received:
|
|
252
|
+
${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:i,printExpected:a,matcherHint:l}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${l(".toBeOneOf")}, not '${typeof t}'.`);let u=t.length===0||t.some(p=>r(p,e,n));return{pass:u,message:()=>u?`${l(".not.toBeOneOf","received","")}
|
|
253
|
+
|
|
254
|
+
Expected value to not be one of:
|
|
255
|
+
${a(t)}
|
|
256
|
+
Received:
|
|
257
|
+
${i(e)}`:`${l(".toBeOneOf","received","")}
|
|
258
|
+
|
|
259
|
+
Expected value to be one of:
|
|
260
|
+
${a(t)}
|
|
261
|
+
|
|
262
|
+
Received:
|
|
263
|
+
${i(e)}`}}},Od=Rn.green,f0=Rn.red,m7=Rn.inverse,y7=Rn.bold,To=Rn.dim;function g7(e,t="received",r="expected",n={}){let{comment:i="",isDirectExpectCall:a=!1,isNot:l=!1,promise:u="",secondArgument:p="",expectedColor:c=Od,receivedColor:m=f0,secondArgumentColor:y=Od}=n,g="",b="expect";return!a&&t!==""&&(g+=To(`${b}(`)+m(t),b=")"),u!==""&&(g+=To(`${b}.`)+u,b=""),l&&(g+=`${To(`${b}.`)}not`,b=""),e.includes(".")?b+=e:(g+=To(`${b}.`)+e,b=""),r===""?b+="()":(g+=To(`${b}(`)+c(r),p&&(g+=To(", ")+y(p)),b=")"),i!==""&&(b+=` // ${i}`),b!==""&&(g+=To(b)),g}var b7="·";function IR(e){return e.replace(/\s+$/gm,t=>b7.repeat(t.length))}function v7(e){return f0(IR(Pn(e)))}function E7(e){return Od(IR(Pn(e)))}function FR(){return{EXPECTED_COLOR:Od,RECEIVED_COLOR:f0,INVERTED_COLOR:m7,BOLD_WEIGHT:y7,DIM_COLOR:To,diff:ks,matcherHint:g7,printReceived:v7,printExpected:E7,printDiffOrStringify:jT,printWithType:w7}}function w7(e,t,r){let n=Sd(t),i=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
264
|
+
`:"",a=`${e} has value: ${r(t)}`;return i+a}function h0(){return globalThis[ou].customEqualityTesters}function Ut(e,t,r,n){return r=r||[],ql(e,t,[],[],r,n?kR:_7)}function qw(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&ii("Function",e.asymmetricMatch)}function S7(e,t){let r=qw(e),n=qw(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function ql(e,t,r,n,i,a){let l=!0,u=S7(e,t);if(u!==void 0)return u;let p={equals:Ut};for(let w=0;w<i.length;w++){let A=i[w].call(p,e,t,i);if(A!==void 0)return A}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return!1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let w=+e,A=+t;return w===A||Number.isNaN(w)&&Number.isNaN(A)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if($w(e)&&$w(t))return e.isEqualNode(t);let m=r.length;for(;m--;){if(r[m]===e)return n[m]===t;if(n[m]===t)return!1}if(r.push(e),n.push(t),c==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return A7(e,t,r,n,i,a)}finally{r.pop(),n.pop()}let y=jw(e,a),g,b=y.length;if(jw(t,a).length!==b)return!1;for(;b--;)if(g=y[b],l=a(t,g)&&ql(e[g],t[g],r,n,i,a),!l)return!1;return r.pop(),n.pop(),l}function A7(e,t,r,n,i,a){let l=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&l&&(l=ql(e.cause,t.cause,r,n,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&l&&(l=ql(e.errors,t.errors,r,n,i,a)),l&&(l=ql({...e},{...t},r,n,i,a)),l}function jw(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function _7(e,t){return kR(e,t)&&e[t]!==void 0}function kR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ii(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function $w(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var BR="@@__IMMUTABLE_KEYED__@@",LR="@@__IMMUTABLE_SET__@@",C7="@@__IMMUTABLE_LIST__@@",vp="@@__IMMUTABLE_ORDERED__@@",T7="@@__IMMUTABLE_RECORD__@@";function x7(e){return!!(e&&e[BR]&&!e[vp])}function R7(e){return!!(e&&e[LR]&&!e[vp])}function Ep(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function D7(e){return!!(e&&Ep(e)&&e[C7])}function P7(e){return!!(e&&Ep(e)&&e[BR]&&e[vp])}function O7(e){return!!(e&&Ep(e)&&e[LR]&&e[vp])}function N7(e){return!!(e&&Ep(e)&&e[T7])}var MR=Symbol.iterator;function Vw(e){return!!(e!=null&&e[MR])}function Un(e,t,r=[],n=[],i=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Vw(e)||!Vw(t))return;if(e.constructor!==t.constructor)return!1;let a=n.length;for(;a--;)if(n[a]===e)return i[a]===t;n.push(e),i.push(t);let l=[...r.filter(c=>c!==Un),u];function u(c,m){return Un(c,m,[...r],[...n],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(ii("Set",e)||R7(e)){let c=!0;for(let m of e)if(!t.has(m)){let y=!1;for(let g of t)Ut(m,g,l)===!0&&(y=!0);if(y===!1){c=!1;break}}return n.pop(),i.pop(),c}else if(ii("Map",e)||x7(e)){let c=!0;for(let m of e)if(!t.has(m[0])||!Ut(m[1],t.get(m[0]),l)){let y=!1;for(let g of t){let b=Ut(m[0],g[0],l),w=!1;b===!0&&(w=Ut(m[1],g[1],l)),w===!0&&(y=!0)}if(y===!1){c=!1;break}}return n.pop(),i.pop(),c}}let p=t[MR]();for(let c of e){let m=p.next();if(m.done||!Ut(c,m.value,l))return!1}if(!p.next().done)return!1;if(!D7(e)&&!P7(e)&&!O7(e)&&!N7(e)){let c=Object.entries(e),m=Object.entries(t);if(!Ut(c,m,l))return!1}return n.pop(),i.pop(),!0}function m0(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||m0(Object.getPrototypeOf(e),t)}function I7(e){return ud(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Ru(e,t,r=[]){let n=r.filter(a=>a!==Ru),i=(a=new WeakMap)=>(l,u)=>{if(I7(u))return Object.keys(u).every(p=>{if(u[p]!=null&&typeof u[p]=="object"){if(a.has(u[p]))return Ut(l[p],u[p],n);a.set(u[p],!0)}let c=l!=null&&m0(l,p)&&Ut(l[p],u[p],[...n,i(a)]);return a.delete(u[p]),c})};return i()(e,t)}function Uw(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Jw(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let i=0;i<r.byteLength;i++)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function Qm(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),i=Object.keys(t),a=r.filter(l=>l!==Qm);return Ut(e,t,a,!0)&&Ut(n,i)}function F7(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
265
|
+
|
|
266
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
267
|
+
|
|
268
|
+
Expected: ${t}
|
|
269
|
+
Received: serializes to the same string
|
|
270
|
+
`:n}function k7(e,t){return`${t} ${e}${t===1?"":"s"}`}function Uh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}function B7(e,t,r){let n=0,i=(a=new WeakMap)=>(l,u)=>{if(Array.isArray(l)){if(Array.isArray(u)&&u.length===l.length)return u.map((p,c)=>i(a)(l[c],p))}else{if(l instanceof Date)return l;if(ud(l)&&ud(u)){if(Ut(l,u,[...r,Un,Ru]))return u;let p={};a.set(l,p),typeof l.constructor=="function"&&typeof l.constructor.name=="string"&&Object.defineProperty(p,"constructor",{enumerable:!1,value:l.constructor});for(let c of Uh(l))m0(u,c)?p[c]=a.has(l[c])?a.get(l[c]):i(a)(l[c],u[c]):a.has(l[c])||(n+=1,ud(l[c])&&(n+=Uh(l[c]).length),i(a)(l[c],u[c]));if(Uh(p).length>0)return p}}return l};return{subset:i()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,iu)){let e=new WeakMap;Object.defineProperty(globalThis,iu,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,ou)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,ou,{configurable:!0,get:()=>({state:globalThis[iu].get(globalThis[p0]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,Xm)){let e=Object.create(null);Object.defineProperty(globalThis,Xm,{get:()=>e})}function Nd(e){return globalThis[iu].get(e)}function Jh(e,t){let r=globalThis[iu],n=r.get(t)||{},i=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,i)}var Xi=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...Nd(e||globalThis[p0]),equals:Ut,isNot:this.inverse,customTesters:h0(),utils:{...FR(),diff:ks,stringify:Pn,iterableEquality:Un,subsetEquality:Ru}}}};Xi.prototype[Symbol.for("chai/inspect")]=function(e){let t=Pn(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var zw=class extends Xi{constructor(e,t=!1){if(!ii("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=ii("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},L7=class extends Xi{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},Hw=class extends Xi{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!Ut(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},Ww=class extends Xi{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(i=>Ut(n,i,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},M7=class extends Xi{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},Gw=class extends Xi{constructor(e,t=!1){if(!ii("String",e)&&!ii("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=ii("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},Kw=class extends Xi{precision;constructor(e,t=2,r=!1){if(!ii("Number",e))throw new Error("Expected is not a Number");if(!ii("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t}asymmetricMatch(e){if(!ii("Number",e))return!1;let t=!1;return e===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?t=!0:t=Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${k7("digit",this.precision)})`].join(" ")}},q7=(e,t)=>{t.addMethod(e.expect,"anything",()=>new L7),t.addMethod(e.expect,"any",r=>new M7(r)),t.addMethod(e.expect,"stringContaining",r=>new zw(r)),t.addMethod(e.expect,"objectContaining",r=>new Hw(r)),t.addMethod(e.expect,"arrayContaining",r=>new Ww(r)),t.addMethod(e.expect,"stringMatching",r=>new Gw(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Kw(r,n)),e.expect.not={stringContaining:r=>new zw(r,!0),objectContaining:r=>new Hw(r,!0),arrayContaining:r=>new Ww(r,!0),stringMatching:r=>new Gw(r,!0),closeTo:(r,n)=>new Kw(r,n,!0)}};function Yw(e,t,r){let n=e.flag(t,"negate")?"not.":"",i=`${e.flag(t,"_name")}(${r?"expected":""})`,a=e.flag(t,"promise");return`expect(actual)${a?`.${a}`:""}.${n}${i}`}function Xw(e,t,r,n){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let l=i.promises.indexOf(t);l!==-1&&i.promises.splice(l,1)}),i.promises||(i.promises=[]),i.promises.push(t);let a=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push(()=>{if(!a){var l;let u=(((l=globalThis.__vitest_worker__)===null||l===void 0?void 0:l.onFilterStackTrace)||(p=>p||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
|
|
271
|
+
`,u].join(""))}}),{then(l,u){return a=!0,t.then(l,u)},catch(l){return t.catch(l)},finally(l){return t.finally(l)},[Symbol.toStringTag]:"Promise"}}return t}function Qw(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Tg(t))}function qR(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{let a=r.apply(this,n);return a&&typeof a=="object"&&typeof a.then=="function"?a.then(q6,l=>{Qw(i,l)}):a}catch(a){Qw(i,a)}}}var j7=(e,t)=>{let{AssertionError:r}=e,n=h0();function i(c,m){let y=g=>{let b=qR(t,g,m);t.addMethod(e.Assertion.prototype,g,b),t.addMethod(globalThis[ou].matchers,g,b)};Array.isArray(c)?c.forEach(g=>y(g)):y(c)}["throw","throws","Throw"].forEach(c=>{t.overwriteMethod(e.Assertion.prototype,c,m=>function(...y){let g=t.flag(this,"promise"),b=t.flag(this,"object"),w=t.flag(this,"negate");if(g==="rejects")t.flag(this,"object",()=>{throw b});else if(g==="resolves"&&typeof b!="function"){if(w)return;{let A=t.flag(this,"message")||"expected promise to throw an error, but it didn't",x={showDiff:!1};throw new r(A,x,t.flag(this,"ssfi"))}}m.apply(this,y)})}),i("withTest",function(c){return t.flag(this,"vitest-test",c),this}),i("toEqual",function(c){let m=t.flag(this,"object"),y=Ut(m,c,[...n,Un]);return this.assert(y,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",c,m)}),i("toStrictEqual",function(c){let m=t.flag(this,"object"),y=Ut(m,c,[...n,Un,Uw,Qm,Jw],!0);return this.assert(y,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",c,m)}),i("toBe",function(c){let m=this._obj,y=Object.is(m,c),g="";return y||(Ut(m,c,[...n,Un,Uw,Qm,Jw],!0)?g="toStrictEqual":Ut(m,c,[...n,Un])&&(g="toEqual")),this.assert(y,F7(g),"expected #{this} not to be #{exp} // Object.is equality",c,m)}),i("toMatchObject",function(c){let m=this._obj,y=Ut(m,c,[...n,Un,Ru]),g=t.flag(this,"negate"),{subset:b,stripped:w}=B7(m,c,n);if(y&&g||!y&&!g){let A=t.getMessage(this,[y,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",c,b,!1]),x=w===0?A:`${A}
|
|
272
|
+
(${w} matching ${w===1?"property":"properties"} omitted from actual)`;throw new r(x,{showDiff:!0,expected:c,actual:b})}}),i("toMatch",function(c){let m=this._obj;if(typeof m!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof m}`);return this.assert(typeof c=="string"?m.includes(c):m.match(c),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",c,m)}),i("toContain",function(c){let m=this._obj;if(typeof Node<"u"&&m instanceof Node){if(!(c instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof c}`);return this.assert(m.contains(c),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",c,m)}if(typeof DOMTokenList<"u"&&m instanceof DOMTokenList){ki(c,"class name",["string"]);let y=t.flag(this,"negate")?m.value.replace(c,"").trim():`${m.value} ${c}`;return this.assert(m.contains(c),`expected "${m.value}" to contain "${c}"`,`expected "${m.value}" not to contain "${c}"`,y,m.value)}return typeof m=="string"&&typeof c=="string"?this.assert(m.includes(c),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",c,m):(m!=null&&typeof m!="string"&&t.flag(this,"object",Array.from(m)),this.contain(c))}),i("toContainEqual",function(c){let m=t.flag(this,"object"),y=Array.from(m).findIndex(g=>Ut(g,c,n));this.assert(y!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",c)}),i("toBeTruthy",function(){let c=t.flag(this,"object");this.assert(!!c,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,c)}),i("toBeFalsy",function(){let c=t.flag(this,"object");this.assert(!c,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,c)}),i("toBeGreaterThan",function(c){let m=this._obj;return ki(m,"actual",["number","bigint"]),ki(c,"expected",["number","bigint"]),this.assert(m>c,`expected ${m} to be greater than ${c}`,`expected ${m} to be not greater than ${c}`,c,m,!1)}),i("toBeGreaterThanOrEqual",function(c){let m=this._obj;return ki(m,"actual",["number","bigint"]),ki(c,"expected",["number","bigint"]),this.assert(m>=c,`expected ${m} to be greater than or equal to ${c}`,`expected ${m} to be not greater than or equal to ${c}`,c,m,!1)}),i("toBeLessThan",function(c){let m=this._obj;return ki(m,"actual",["number","bigint"]),ki(c,"expected",["number","bigint"]),this.assert(m<c,`expected ${m} to be less than ${c}`,`expected ${m} to be not less than ${c}`,c,m,!1)}),i("toBeLessThanOrEqual",function(c){let m=this._obj;return ki(m,"actual",["number","bigint"]),ki(c,"expected",["number","bigint"]),this.assert(m<=c,`expected ${m} to be less than or equal to ${c}`,`expected ${m} to be not less than or equal to ${c}`,c,m,!1)}),i("toBeNaN",function(){let c=t.flag(this,"object");this.assert(Number.isNaN(c),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,c)}),i("toBeUndefined",function(){let c=t.flag(this,"object");this.assert(c===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,c)}),i("toBeNull",function(){let c=t.flag(this,"object");this.assert(c===null,"expected #{this} to be null","expected #{this} not to be null",null,c)}),i("toBeDefined",function(){let c=t.flag(this,"object");this.assert(typeof c<"u","expected #{this} to be defined","expected #{this} to be undefined",c)}),i("toBeTypeOf",function(c){let m=typeof this._obj,y=c===m;return this.assert(y,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",c,m)}),i("toBeInstanceOf",function(c){return this.instanceOf(c)}),i("toHaveLength",function(c){return this.have.length(c)}),i("toHaveProperty",function(...c){Array.isArray(c[0])&&(c[0]=c[0].map(R=>String(R).replace(/([.[\]])/g,"\\$1")).join("."));let m=this._obj,[y,g]=c,b=()=>Object.prototype.hasOwnProperty.call(m,y)?{value:m[y],exists:!0}:t.getPathInfo(m,y),{value:w,exists:A}=b(),x=A&&(c.length===1||Ut(g,w,n)),_=c.length===1?"":` with value ${t.objDisplay(g)}`;return this.assert(x,`expected #{this} to have property "${y}"${_}`,`expected #{this} to not have property "${y}"${_}`,g,A?w:void 0)}),i("toBeCloseTo",function(c,m=2){let y=this._obj,g=!1,b=0,w=0;return c===Number.POSITIVE_INFINITY&&y===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY&&y===Number.NEGATIVE_INFINITY?g=!0:(b=10**-m/2,w=Math.abs(y-c),g=w<b),this.assert(g,`expected #{this} to be close to #{exp}, received difference is ${w}, but expected ${b}`,`expected #{this} to not be close to #{exp}, received difference is ${w}, but expected ${b}`,c,y,!1)});function a(c){if(!fs(c._obj))throw new TypeError(`${t.inspect(c._obj)} is not a spy or a call to a spy!`)}function l(c){return a(c),c._obj}i(["toHaveBeenCalledTimes","toBeCalledTimes"],function(c){let m=l(this),y=m.getMockName(),g=m.mock.calls.length;return this.assert(g===c,`expected "${y}" to be called #{exp} times, but got ${g} times`,`expected "${y}" to not be called #{exp} times`,c,g,!1)}),i("toHaveBeenCalledOnce",function(){let c=l(this),m=c.getMockName(),y=c.mock.calls.length;return this.assert(y===1,`expected "${m}" to be called once, but got ${y} times`,`expected "${m}" to not be called once`,1,y,!1)}),i(["toHaveBeenCalled","toBeCalled"],function(){let c=l(this),m=c.getMockName(),y=c.mock.calls.length,g=y>0,b=t.flag(this,"negate"),w=t.getMessage(this,[g,`expected "${m}" to be called at least once`,`expected "${m}" to not be called at all, but actually been called ${y} times`,!0,g]);if(g&&b&&(w=zh(c,w)),g&&b||!g&&!b)throw new r(w)});function u(c,m){return c.length===m.length&&c.every((y,g)=>Ut(y,m[g],[...n,Un]))}i(["toHaveBeenCalledWith","toBeCalledWith"],function(...c){let m=l(this),y=m.getMockName(),g=m.mock.calls.some(A=>u(A,c)),b=t.flag(this,"negate"),w=t.getMessage(this,[g,`expected "${y}" to be called with arguments: #{exp}`,`expected "${y}" to not be called with arguments: #{exp}`,c]);if(g&&b||!g&&!b)throw new r(zh(m,w,c))}),i("toHaveBeenCalledExactlyOnceWith",function(...c){let m=l(this),y=m.getMockName(),g=m.mock.calls.length,b=m.mock.calls.some(x=>u(x,c))&&g===1,w=t.flag(this,"negate"),A=t.getMessage(this,[b,`expected "${y}" to be called once with arguments: #{exp}`,`expected "${y}" to not be called once with arguments: #{exp}`,c]);if(b&&w||!b&&!w)throw new r(zh(m,A,c))}),i(["toHaveBeenNthCalledWith","nthCalledWith"],function(c,...m){let y=l(this),g=y.getMockName(),b=y.mock.calls[c-1],w=y.mock.calls.length,A=c<=w;this.assert(b&&u(b,m),`expected ${jl(c)} "${g}" call to have been called with #{exp}${A?"":`, but called only ${w} times`}`,`expected ${jl(c)} "${g}" call to not have been called with #{exp}`,m,b,A)}),i(["toHaveBeenLastCalledWith","lastCalledWith"],function(...c){let m=l(this),y=m.getMockName(),g=m.mock.calls[m.mock.calls.length-1];this.assert(g&&u(g,c),`expected last "${y}" call to have been called with #{exp}`,`expected last "${y}" call to not have been called with #{exp}`,c,g)});function p(c,m,y){let g=c.mock.invocationCallOrder,b=m.mock.invocationCallOrder;return g.length===0?!y:b.length===0?!1:g[0]<b[0]}i(["toHaveBeenCalledBefore"],function(c,m=!0){let y=l(this);if(!fs(c))throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`);this.assert(p(y,c,m),`expected "${y.getMockName()}" to have been called before "${c.getMockName()}"`,`expected "${y.getMockName()}" to not have been called before "${c.getMockName()}"`,c,y)}),i(["toHaveBeenCalledAfter"],function(c,m=!0){let y=l(this);if(!fs(c))throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`);this.assert(p(c,y,m),`expected "${y.getMockName()}" to have been called after "${c.getMockName()}"`,`expected "${y.getMockName()}" to not have been called after "${c.getMockName()}"`,c,y)}),i(["toThrow","toThrowError"],function(c){if(typeof c=="string"||typeof c>"u"||c instanceof RegExp)return this.throws(c===""?/^$/:c);let m=this._obj,y=t.flag(this,"promise"),g=t.flag(this,"negate"),b=null;if(y==="rejects")b=m;else if(y==="resolves"&&typeof m!="function"){if(g)return;{let w=t.flag(this,"message")||"expected promise to throw an error, but it didn't",A={showDiff:!1};throw new r(w,A,t.flag(this,"ssfi"))}}else{let w=!1;try{m()}catch(A){w=!0,b=A}if(!w&&!g){let A=t.flag(this,"message")||"expected function to throw an error, but it didn't",x={showDiff:!1};throw new r(A,x,t.flag(this,"ssfi"))}}if(typeof c=="function"){let w=c.name||c.prototype.constructor.name;return this.assert(b&&b instanceof c,`expected error to be instance of ${w}`,`expected error not to be instance of ${w}`,c,b)}if(c instanceof Error){let w=Ut(b,c,[...n,Un]);return this.assert(w,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",c,b)}if(typeof c=="object"&&"asymmetricMatch"in c&&typeof c.asymmetricMatch=="function"){let w=c;return this.assert(b&&w.asymmetricMatch(b),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",w,b)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof c}"`)}),[{name:"toHaveResolved",condition:c=>c.mock.settledResults.length>0&&c.mock.settledResults.some(({type:m})=>m==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:c=>c.mock.calls.length>0&&c.mock.results.some(({type:m})=>m!=="throw"),action:"called"}].forEach(({name:c,condition:m,action:y})=>{i(c,function(){let g=l(this),b=g.getMockName(),w=m(g);this.assert(w,`expected "${b}" to be successfully ${y} at least once`,`expected "${b}" to not be successfully ${y}`,w,!w,!1)})}),[{name:"toHaveResolvedTimes",condition:(c,m)=>c.mock.settledResults.reduce((y,{type:g})=>g==="fulfilled"?++y:y,0)===m,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(c,m)=>c.mock.results.reduce((y,{type:g})=>g==="throw"?y:++y,0)===m,action:"called"}].forEach(({name:c,condition:m,action:y})=>{i(c,function(g){let b=l(this),w=b.getMockName(),A=m(b,g);this.assert(A,`expected "${w}" to be successfully ${y} ${g} times`,`expected "${w}" to not be successfully ${y} ${g} times`,`expected resolved times: ${g}`,`received resolved times: ${A}`,!1)})}),[{name:"toHaveResolvedWith",condition:(c,m)=>c.mock.settledResults.some(({type:y,value:g})=>y==="fulfilled"&&Ut(m,g)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(c,m)=>c.mock.results.some(({type:y,value:g})=>y==="return"&&Ut(m,g)),action:"return"}].forEach(({name:c,condition:m,action:y})=>{i(c,function(g){let b=l(this),w=m(b,g),A=t.flag(this,"negate");if(w&&A||!w&&!A){let x=b.getMockName(),_=t.getMessage(this,[w,`expected "${x}" to ${y} with: #{exp} at least once`,`expected "${x}" to not ${y} with: #{exp}`,g]),R=y==="return"?b.mock.results:b.mock.settledResults;throw new r($7(b,R,_,g))}})}),[{name:"toHaveLastResolvedWith",condition:(c,m)=>{let y=c.mock.settledResults[c.mock.settledResults.length-1];return y&&y.type==="fulfilled"&&Ut(y.value,m)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(c,m)=>{let y=c.mock.results[c.mock.results.length-1];return y&&y.type==="return"&&Ut(y.value,m)},action:"return"}].forEach(({name:c,condition:m,action:y})=>{i(c,function(g){let b=l(this),w=y==="return"?b.mock.results:b.mock.settledResults,A=w[w.length-1],x=b.getMockName();this.assert(m(b,g),`expected last "${x}" call to ${y} #{exp}`,`expected last "${x}" call to not ${y} #{exp}`,g,A?.value)})}),[{name:"toHaveNthResolvedWith",condition:(c,m,y)=>{let g=c.mock.settledResults[m-1];return g&&g.type==="fulfilled"&&Ut(g.value,y)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(c,m,y)=>{let g=c.mock.results[m-1];return g&&g.type==="return"&&Ut(g.value,y)},action:"return"}].forEach(({name:c,condition:m,action:y})=>{i(c,function(g,b){let w=l(this),A=w.getMockName(),x=(y==="return"?w.mock.results:w.mock.settledResults)[g-1],_=`${jl(g)} call`;this.assert(m(w,g,b),`expected ${_} "${A}" call to ${y} #{exp}`,`expected ${_} "${A}" call to not ${y} #{exp}`,b,x?.value)})}),i("withContext",function(c){for(let m in c)t.flag(this,m,c[m]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let c=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",c);let m=t.flag(this,"vitest-test"),y=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof y?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof y}'.`);let g=new Proxy(this,{get:(b,w,A)=>{let x=Reflect.get(b,w,A);return typeof x!="function"?x instanceof e.Assertion?g:x:(..._)=>{t.flag(this,"_name",w);let R=y.then(j=>(t.flag(this,"object",j),x.call(this,..._)),j=>{let B=new r(`promise rejected "${t.inspect(j)}" instead of resolving`,{showDiff:!1});throw B.cause=j,B.stack=c.stack.replace(c.message,B.message),B});return Xw(m,R,Yw(t,this,!!_.length),c)}}});return g}),t.addProperty(e.Assertion.prototype,"rejects",function(){let c=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",c);let m=t.flag(this,"vitest-test"),y=t.flag(this,"object"),g=typeof y=="function"?y():y;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof g?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof g}'.`);let b=new Proxy(this,{get:(w,A,x)=>{let _=Reflect.get(w,A,x);return typeof _!="function"?_ instanceof e.Assertion?b:_:(...R)=>{t.flag(this,"_name",A);let j=g.then(B=>{let F=new r(`promise resolved "${t.inspect(B)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:B});throw F.stack=c.stack.replace(c.message,F.message),F},B=>(t.flag(this,"object",B),_.call(this,...R)));return Xw(m,j,Yw(t,this,!!R.length),c)}}});return b})};function jl(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function zh(e,t,r){return e.mock.calls.length&&(t+=Rn.gray(`
|
|
273
|
+
|
|
274
|
+
Received:
|
|
275
|
+
|
|
276
|
+
${e.mock.calls.map((n,i)=>{let a=Rn.bold(` ${jl(i+1)} ${e.getMockName()} call:
|
|
277
|
+
|
|
278
|
+
`);return r?a+=ks(r,n,{omitAnnotationLines:!0}):a+=Pn(n).split(`
|
|
279
|
+
`).map(l=>` ${l}`).join(`
|
|
280
|
+
`),a+=`
|
|
281
|
+
`,a}).join(`
|
|
282
|
+
`)}`)),t+=Rn.gray(`
|
|
283
|
+
|
|
284
|
+
Number of calls: ${Rn.bold(e.mock.calls.length)}
|
|
285
|
+
`),t}function $7(e,t,r,n){return t.length&&(r+=Rn.gray(`
|
|
286
|
+
|
|
287
|
+
Received:
|
|
288
|
+
|
|
289
|
+
${t.map((i,a)=>{let l=Rn.bold(` ${jl(a+1)} ${e.getMockName()} call return:
|
|
290
|
+
|
|
291
|
+
`);return n?l+=ks(n,i.value,{omitAnnotationLines:!0}):l+=Pn(i).split(`
|
|
292
|
+
`).map(u=>` ${u}`).join(`
|
|
293
|
+
`),l+=`
|
|
294
|
+
`,l}).join(`
|
|
295
|
+
`)}`)),r+=Rn.gray(`
|
|
296
|
+
|
|
297
|
+
Number of calls: ${Rn.bold(e.mock.calls.length)}
|
|
298
|
+
`),r}function V7(e,t){let r=e._obj,n=Si.flag(e,"negate"),i=Si.flag(e,"promise")||"",a={...FR(),diff:ks,stringify:Pn,iterableEquality:Un,subsetEquality:Ru};return{state:{...Nd(t),customTesters:h0(),isNot:n,utils:a,promise:i,equals:Ut,suppressedErrors:[],soft:Si.flag(e,"soft"),poll:Si.flag(e,"poll")},isNot:n,obj:r}}var Zw=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function U7(e,t,r){return(n,i)=>{Object.entries(r).forEach(([a,l])=>{function u(...y){let{state:g,isNot:b,obj:w}=V7(this,t),A=l.call(g,w,...y);if(A&&typeof A=="object"&&typeof A.then=="function")return A.then(({pass:B,message:F,actual:E,expected:P})=>{if(B&&b||!B&&!b)throw new Zw(F(),E,P)});let{pass:x,message:_,actual:R,expected:j}=A;if(x&&b||!x&&!b)throw new Zw(_(),R,j)}let p=qR(i,a,u);i.addMethod(globalThis[ou].matchers,a,p),i.addMethod(e.Assertion.prototype,a,p);class c extends Xi{constructor(g=!1,...b){super(b,g)}asymmetricMatch(g){let{pass:b}=l.call(this.getMatcherContext(t),g,...this.sample);return this.inverse?!b:b}toString(){return`${this.inverse?"not.":""}${a}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(g=>Pn(g)).join(", ")}>`}}let m=(...y)=>new c(!1,...y);Object.defineProperty(t,a,{configurable:!0,enumerable:!0,value:m,writable:!0}),Object.defineProperty(t.not,a,{configurable:!0,enumerable:!0,value:(...y)=>new c(!0,...y),writable:!0}),Object.defineProperty(globalThis[Xm],a,{configurable:!0,enumerable:!0,value:m,writable:!0})})}}var J7=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{ds(U7(e,r,n))})};function z7(){ds(J7),ds(j7),ds(q7);let e=((n,i)=>{let{assertionCalls:a}=Nd(e);return Jh({assertionCalls:a+1,soft:!1},e),ma(n,i)});Object.assign(e,ma),e.getState=()=>Nd(e),e.setState=n=>Jh(n,e),e.extend=n=>ma.extend(e,n),e.soft=(...n)=>{let i=e(...n);return e.setState({soft:!0}),i},e.extend(h7),e.unreachable=n=>{X.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let i=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:i})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return Jh({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Si.addMethod(e,"assertions",t),Si.addMethod(e,"hasAssertions",r),e.extend(Ox),e}var jR=z7();Object.defineProperty(globalThis,p0,{value:jR,writable:!0,configurable:!0});function H7(e,t,r){Object.defineProperty(e,t,r)}var pd=Symbol.for("tinyspy:spy"),W7=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},G7=e=>(H7(e,pd,{value:{reset:()=>W7(e[pd])}}),e[pd]),K7=e=>e[pd]||G7(e),y0=globalThis.__STORYBOOK_MODULE_MOCK_SPIES__??=new Set,Zm=new Set;function $R(e){return Zm.add(e),()=>{Zm.delete(e)}}var Y7=(...e)=>{let t=d7(...e);return UR(t)};function VR(e){let t=e?Mw(e):Mw();return UR(t)}function UR(e){let t=eS(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>eS(r(n)),t}function eS(e){let t=K7(e),r=t.impl;return t.willCall(function(...n){return Zm.forEach(i=>i(e,n)),r?.apply(this,n)}),e}function JR(){xu.forEach(e=>e.mockClear()),y0.forEach(e=>e.mockClear())}function zR(){xu.forEach(e=>e.mockReset()),y0.forEach(e=>e.mockReset())}function HR(){xu.forEach(e=>e.mockRestore()),y0.forEach(e=>e.mockClear())}function X7(e,t={}){return e}var WR={};vn(WR,{buildQueries:()=>Zi,configure:()=>cU,createEvent:()=>hd,findAllByAltText:()=>XD,findAllByDisplayValue:()=>zD,findAllByLabelText:()=>_D,findAllByPlaceholderText:()=>ID,findAllByRole:()=>cP,findAllByTestId:()=>yP,findAllByText:()=>qD,findAllByTitle:()=>nP,findByAltText:()=>QD,findByDisplayValue:()=>HD,findByLabelText:()=>CD,findByPlaceholderText:()=>FD,findByRole:()=>dP,findByTestId:()=>gP,findByText:()=>jD,findByTitle:()=>iP,fireEvent:()=>cu,getAllByAltText:()=>KD,getAllByDisplayValue:()=>UD,getAllByLabelText:()=>TD,getAllByPlaceholderText:()=>OD,getAllByRole:()=>lP,getAllByTestId:()=>hP,getAllByText:()=>LD,getAllByTitle:()=>tP,getByAltText:()=>YD,getByDisplayValue:()=>JD,getByLabelText:()=>xD,getByPlaceholderText:()=>ND,getByRole:()=>uP,getByTestId:()=>mP,getByText:()=>MD,getByTitle:()=>rP,getConfig:()=>Ot,getDefaultNormalizer:()=>S0,getElementError:()=>Sp,getMultipleElementsFoundError:()=>Ap,getNodeText:()=>Du,getQueriesForElement:()=>uy,getRoles:()=>gD,getSuggestedQuery:()=>Fd,isInaccessible:()=>wp,logDOM:()=>ey,logRoles:()=>mU,makeFindQuery:()=>Ss,makeGetAllQuery:()=>C0,makeSingleQuery:()=>ws,prettyDOM:()=>lu,prettyFormat:()=>g0,queries:()=>kd,queryAllByAltText:()=>WD,queryAllByAttribute:()=>Pa,queryAllByDisplayValue:()=>$D,queryAllByLabelText:()=>RD,queryAllByPlaceholderText:()=>DD,queryAllByRole:()=>aP,queryAllByTestId:()=>pP,queryAllByText:()=>kD,queryAllByTitle:()=>ZD,queryByAltText:()=>GD,queryByAttribute:()=>vD,queryByDisplayValue:()=>VD,queryByLabelText:()=>SD,queryByPlaceholderText:()=>PD,queryByRole:()=>sP,queryByTestId:()=>fP,queryByText:()=>BD,queryByTitle:()=>eP,queryHelpers:()=>DU,screen:()=>nJ,waitFor:()=>_0,waitForElementToBeRemoved:()=>YU,within:()=>uy,wrapAllByQueryWithSuggestion:()=>bn,wrapSingleQueryWithSuggestion:()=>Lo});var g0=Cr(Y3()),Q7=Object.prototype.toString;function Z7(e){return typeof e=="function"||Q7.call(e)==="[object Function]"}function eV(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var tV=Math.pow(2,53)-1;function rV(e){var t=eV(e);return Math.min(Math.max(t,0),tV)}function ri(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var i=rV(n.length),a=Z7(r)?Object(new r(i)):new Array(i),l=0,u;l<i;)u=n[l],a[l]=u,l+=1;return a.length=i,a}function au(e){"@babel/helpers - typeof";return au=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},au(e)}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GR(n.key),n)}}function oV(e,t,r){return t&&iV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aV(e,t,r){return t=GR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GR(e){var t=sV(e,"string");return au(t)==="symbol"?t:String(t)}function sV(e,t){if(au(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lV=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];nV(this,e),aV(this,"items",void 0),this.items=t}return oV(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),uV=typeof Set>"u"?Set:lV;function an(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var cV={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"},dV={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 pV(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(r){var n;return e.hasAttribute(r)&&!((n=dV[t])!==null&&n!==void 0&&n.has(r))})}function KR(e,t){return pV(e,t)}function fV(e){var t=mV(e);if(t===null||t==="presentation"){var r=hV(e);if(t!=="presentation"||KR(e,r||""))return r}return t}function hV(e){var t=cV[an(e)];if(t!==void 0)return t;switch(an(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!KR(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;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 mV(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function pr(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function YR(e){return pr(e)&&an(e)==="caption"}function fd(e){return pr(e)&&an(e)==="input"}function yV(e){return pr(e)&&an(e)==="optgroup"}function gV(e){return pr(e)&&an(e)==="select"}function bV(e){return pr(e)&&an(e)==="table"}function vV(e){return pr(e)&&an(e)==="textarea"}function EV(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function wV(e){return pr(e)&&an(e)==="fieldset"}function SV(e){return pr(e)&&an(e)==="legend"}function AV(e){return pr(e)&&an(e)==="slot"}function _V(e){return pr(e)&&e.ownerSVGElement!==void 0}function CV(e){return pr(e)&&an(e)==="svg"}function TV(e){return _V(e)&&an(e)==="title"}function Id(e,t){if(pr(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Vi(e,t){return pr(e)?t.indexOf(fV(e))!==-1:!1}function xV(e){return e.trim().replace(/\s\s+/g," ")}function RV(e,t){if(!pr(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function DV(e){return Vi(e,["button","combobox","listbox","textbox"])||XR(e,"range")}function XR(e,t){if(!pr(e))return!1;if(t==="range")return Vi(e,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}function tS(e,t){var r=ri(e.querySelectorAll(t));return Id(e,"aria-owns").forEach(function(n){r.push.apply(r,ri(n.querySelectorAll(t)))}),r}function PV(e){return gV(e)?e.selectedOptions||tS(e,"[selected]"):tS(e,'[aria-selected="true"]')}function OV(e){return Vi(e,["none","presentation"])}function NV(e){return YR(e)}function IV(e){return Vi(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function FV(e){return!1}function kV(e){return fd(e)||vV(e)?e.value:e.textContent||""}function rS(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function QR(e){var t=an(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function ZR(e){if(QR(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&pr(r)){var n=ZR(r);n!==null&&(t=n)}}),t}function BV(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):ZR(e)}function LV(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return ri(t);if(!QR(e))return null;var r=e.ownerDocument;return ri(r.querySelectorAll("label")).filter(function(n){return BV(n)===e})}function MV(e){var t=e.assignedNodes();return t.length===0?ri(e.childNodes):t}function eD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new uV,n=EV(e),i=t.compute,a=i===void 0?"name":i,l=t.computedStyleSupportsPseudoElements,u=l===void 0?t.getComputedStyle!==void 0:l,p=t.getComputedStyle,c=p===void 0?n.getComputedStyle.bind(n):p,m=t.hidden,y=m===void 0?!1:m;function g(_,R){var j="";if(pr(_)&&u){var B=c(_,"::before"),F=rS(B);j="".concat(F," ").concat(j)}var E=AV(_)?MV(_):ri(_.childNodes).concat(Id(_,"aria-owns"));if(E.forEach(function(L){var Z=x(L,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),H=pr(L)?c(L).getPropertyValue("display"):"inline",te=H!=="inline"?" ":"";j+="".concat(te).concat(Z).concat(te)}),pr(_)&&u){var P=c(_,"::after"),N=rS(P);j="".concat(j," ").concat(N)}return j.trim()}function b(_,R){var j=_.getAttributeNode(R);return j!==null&&!r.has(j)&&j.value.trim()!==""?(r.add(j),j.value):null}function w(_){return pr(_)?b(_,"title"):null}function A(_){if(!pr(_))return null;if(wV(_)){r.add(_);for(var R=ri(_.childNodes),j=0;j<R.length;j+=1){var B=R[j];if(SV(B))return x(B,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(bV(_)){r.add(_);for(var F=ri(_.childNodes),E=0;E<F.length;E+=1){var P=F[E];if(YR(P))return x(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(CV(_)){r.add(_);for(var N=ri(_.childNodes),L=0;L<N.length;L+=1){var Z=N[L];if(TV(Z))return Z.textContent}return null}else if(an(_)==="img"||an(_)==="area"){var H=b(_,"alt");if(H!==null)return H}else if(yV(_)){var te=b(_,"label");if(te!==null)return te}if(fd(_)&&(_.type==="button"||_.type==="submit"||_.type==="reset")){var W=b(_,"value");if(W!==null)return W;if(_.type==="submit")return"Submit";if(_.type==="reset")return"Reset"}var $=LV(_);if($!==null&&$.length!==0)return r.add(_),ri($).map(function(oe){return x(oe,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(oe){return oe.length>0}).join(" ");if(fd(_)&&_.type==="image"){var K=b(_,"alt");if(K!==null)return K;var ne=b(_,"title");return ne!==null?ne:"Submit Query"}if(Vi(_,["button"])){var ae=g(_,{isEmbeddedInLabel:!1});if(ae!=="")return ae}return null}function x(_,R){if(r.has(_))return"";if(!y&&RV(_,c)&&!R.isReferenced)return r.add(_),"";var j=pr(_)?_.getAttributeNode("aria-labelledby"):null,B=j!==null&&!r.has(j)?Id(_,"aria-labelledby"):[];if(a==="name"&&!R.isReferenced&&B.length>0)return r.add(j),B.map(function(H){return x(H,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var F=R.recursion&&DV(_)&&a==="name";if(!F){var E=(pr(_)&&_.getAttribute("aria-label")||"").trim();if(E!==""&&a==="name")return r.add(_),E;if(!OV(_)){var P=A(_);if(P!==null)return r.add(_),P}}if(Vi(_,["menu"]))return r.add(_),"";if(F||R.isEmbeddedInLabel||R.isReferenced){if(Vi(_,["combobox","listbox"])){r.add(_);var N=PV(_);return N.length===0?fd(_)?_.value:"":ri(N).map(function(H){return x(H,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(XR(_,"range"))return r.add(_),_.hasAttribute("aria-valuetext")?_.getAttribute("aria-valuetext"):_.hasAttribute("aria-valuenow")?_.getAttribute("aria-valuenow"):_.getAttribute("value")||"";if(Vi(_,["textbox"]))return r.add(_),kV(_)}if(IV(_)||pr(_)&&R.isReferenced||NV(_)||FV()){var L=g(_,{isEmbeddedInLabel:R.isEmbeddedInLabel});if(L!=="")return r.add(_),L}if(_.nodeType===_.TEXT_NODE)return r.add(_),_.textContent||"";if(R.recursion)return r.add(_),g(_,{isEmbeddedInLabel:R.isEmbeddedInLabel});var Z=w(_);return Z!==null?(r.add(_),Z):(r.add(_),"")}return xV(x(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function su(e){"@babel/helpers - typeof";return su=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},su(e)}function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){qV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qV(e,t,r){return t=jV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jV(e){var t=$V(e,"string");return su(t)==="symbol"?t:String(t)}function $V(e,t){if(su(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Id(e,"aria-describedby").map(function(i){return eD(i,iS(iS({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function VV(e){return Vi(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function b0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return VV(e)?"":eD(e,t)}var Vn=Cr(Vy()),UV=Cr(X3());function rD(e){return e.replace(/</g,"<").replace(/>/g,">")}var JV=(e,t,r,n,i,a,l)=>{let u=n+r.indent,p=r.colors;return e.map(c=>{let m=t[c],y=l(m,r,u,i,a);return typeof m!="string"&&(y.indexOf(`
|
|
299
|
+
`)!==-1&&(y=r.spacingOuter+u+y+r.spacingOuter+n),y="{"+y+"}"),r.spacingInner+n+p.prop.open+c+p.prop.close+"="+p.value.open+y+p.value.close}).join("")},zV=3,HV=(e,t,r,n,i,a)=>e.map(l=>{let u=typeof l=="string"?nD(l,t):a(l,t,r,n,i);return u===""&&typeof l=="object"&&l!==null&&l.nodeType!==zV?"":t.spacingOuter+r+u}).join(""),nD=(e,t)=>{let r=t.colors.content;return r.open+rD(e)+r.close},WV=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+rD(e)+"-->"+r.close},GV=(e,t,r,n,i)=>{let a=n.colors.tag;return a.open+"<"+e+(t&&a.close+t+n.spacingOuter+i+a.open)+(r?">"+a.close+r+n.spacingOuter+i+a.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+a.close},KV=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},YV=1,iD=3,oD=8,aD=11,XV=/^((HTML|SVG)\w*)?Element$/,sD=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},QV=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===YV&&(XV.test(t)||sD(e))||r===iD&&t==="Text"||r===oD&&t==="Comment"||r===aD&&t==="DocumentFragment"};function ZV(e){return e.nodeType===iD}function eU(e){return e.nodeType===oD}function Hh(e){return e.nodeType===aD}function tU(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||sD(t))&&QV(t)},serialize:(t,r,n,i,a,l)=>{if(ZV(t))return nD(t.data,r);if(eU(t))return WV(t.data,r);let u=Hh(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>r.maxDepth?KV(u,r):GV(u,JV(Hh(t)?[]:Array.from(t.attributes).map(p=>p.name).sort(),Hh(t)?{}:Array.from(t.attributes).reduce((p,c)=>(p[c.name]=c.value,p),{}),r,n+r.indent,i,a,l),HV(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,i,a,l),r,n)}}}var lD=null,v0=null,E0=null;try{let e=module&&module.require;v0=e.call(module,"fs").readFileSync,E0=e.call(module,"@babel/code-frame").codeFrameColumns,lD=e.call(module,"picocolors")}catch{}function rU(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),i=n.split(":"),[a,l,u]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],p="";try{p=v0(a,"utf-8")}catch{return""}let c=E0(p,{start:{line:l,column:u}},{highlightCode:!0,linesBelow:0});return lD.dim(n)+`
|
|
300
|
+
`+c+`
|
|
301
|
+
`}function nU(){if(!v0||!E0)return"";let e=new Error().stack.split(`
|
|
302
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return rU(e)}var uD=3;function Wh(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function w0(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function cD(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 Qi(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(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var iU=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=hm)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:oU}=g0.plugins,aU=1,sU=8;function lU(e){return e.nodeType!==sU&&(e.nodeType!==aU||!e.matches(Ot().defaultIgnore))}function lu(e,t,r){if(r===void 0&&(r={}),e||(e=w0().body),typeof t!="number"&&(t=typeof process<"u"&&typeof hm<"u"&&hm.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:i=lU,...a}=r,l=g0.format(e,{plugins:[tU(i),oU],printFunctionName:!1,highlight:iU(),...a});return t!==void 0&&e.outerHTML.length>t?l.slice(0,t)+"...":l}var ey=function(){let e=nU();console.log(e?lu(...arguments)+`
|
|
303
|
+
|
|
304
|
+
`+e:lu(...arguments))},ya={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){let r=lu(t),n=new Error([e,"Ignored nodes: comments, "+ya.defaultIgnore+`
|
|
305
|
+
`+r].filter(Boolean).join(`
|
|
306
|
+
|
|
307
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function uU(e){try{return ya._disableExpensiveErrorDiagnostics=!0,e()}finally{ya._disableExpensiveErrorDiagnostics=!1}}function cU(e){typeof e=="function"&&(e=e(ya)),ya={...ya,...e}}function Ot(){return ya}var dU=["button","meter","output","progress","select","textarea","input"];function dD(e){return dU.includes(e.nodeName.toLowerCase())?"":e.nodeType===uD?e.textContent:Array.from(e.childNodes).map(t=>dD(t)).join("")}function ty(e){let t;return e.tagName.toLowerCase()==="label"?t=dD(e):t=e.value||e.textContent,t}function pD(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!pU(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function pU(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function fD(e,t,r){let{selector:n="*"}=r===void 0?{}:r,i=t.getAttribute("aria-labelledby"),a=i?i.split(" "):[];return a.length?a.map(l=>{let u=e.querySelector('[id="'+l+'"]');return u?{content:ty(u),formControl:null}:{content:"",formControl:null}}):Array.from(pD(t)).map(l=>{let u=ty(l),p=Array.from(l.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(c=>c.matches(n))[0];return{content:u,formControl:p}})}function hD(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 Ls(e,t,r,n){if(typeof e!="string")return!1;hD(r);let i=n(e);return typeof r=="string"||typeof r=="number"?i.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(i,t):mD(r,i)}function Wi(e,t,r,n){if(typeof e!="string")return!1;hD(r);let i=n(e);return r instanceof Function?r(i,t):r instanceof RegExp?mD(r,i):i===String(r)}function S0(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let i=n;return i=t?i.trim():i,i=r?i.replace(/\s+/g," "):i,i}}function Da(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return S0({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"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 n}function mD(e,t){let r=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),r}function Du(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===uD&&!!t.textContent).map(t=>t.textContent).join("")}var fU=hU(Vn.elementRoles);function yD(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function wp(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=yD}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function A0(e){for(let{match:t,roles:r}of fU)if(t(e))return[...r];return[]}function hU(e){function t(l){let{name:u,attributes:p}=l;return""+u+p.map(c=>{let{name:m,value:y,constraints:g=[]}=c,b=g.indexOf("undefined")!==-1,w=g.indexOf("set")!==-1;return typeof y<"u"?"["+m+'="'+y+'"]':b?":not(["+m+"])":w?"["+m+"]:not(["+m+'=""])':"["+m+"]"}).join("")}function r(l){let{attributes:u=[]}=l;return u.length}function n(l,u){let{specificity:p}=l,{specificity:c}=u;return c-p}function i(l){let{attributes:u=[]}=l,p=u.findIndex(m=>m.value&&m.name==="type"&&m.value==="text");p>=0&&(u=[...u.slice(0,p),...u.slice(p+1)]);let c=t({...l,attributes:u});return m=>p>=0&&m.type!=="text"?!1:m.matches(c)}let a=[];for(let[l,u]of e.entries())a=[...a,{match:i(l),roles:Array.from(u),specificity:r(l)}];return a.sort(n)}function gD(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(i){return[i,...Array.from(i.children).reduce((a,l)=>[...a,...n(l)],[])]}return n(e).filter(i=>r===!1?wp(i)===!1:!0).reduce((i,a)=>{let l=[];return a.hasAttribute("role")?l=a.getAttribute("role").split(" ").slice(0,1):l=A0(a),l.reduce((u,p)=>Array.isArray(u[p])?{...u,[p]:[...u[p],a]}:{...u,[p]:[a]},i)},{})}function bD(e,t){let{hidden:r,includeDescription:n}=t,i=gD(e,{hidden:r});return Object.entries(i).filter(a=>{let[l]=a;return l!=="generic"}).map(a=>{let[l,u]=a,p="-".repeat(50),c=u.map(m=>{let y='Name "'+b0(m,{computedStyleSupportsPseudoElements:Ot().computedStyleSupportsPseudoElements})+`":
|
|
308
|
+
`,g=lu(m.cloneNode(!1));if(n){let b='Description "'+tD(m,{computedStyleSupportsPseudoElements:Ot().computedStyleSupportsPseudoElements})+`":
|
|
309
|
+
`;return""+y+b+g}return""+y+g}).join(`
|
|
310
|
+
|
|
311
|
+
`);return l+`:
|
|
312
|
+
|
|
313
|
+
`+c+`
|
|
314
|
+
|
|
315
|
+
`+p}).join(`
|
|
316
|
+
`)}var mU=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(bD(e,{hidden:r}))};function yU(e){return e.tagName==="OPTION"?e.selected:Pu(e,"aria-selected")}function gU(e){return e.getAttribute("aria-busy")==="true"}function bU(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Pu(e,"aria-checked")}function vU(e){return Pu(e,"aria-pressed")}function EU(e){var t,r;return(t=(r=Pu(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function wU(e){return Pu(e,"aria-expanded")}function Pu(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function SU(e){let 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 AU(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function _U(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function CU(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function TU(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var oS=S0();function xU(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function aS(e){return new RegExp(xU(e.toLowerCase()),"i")}function So(e,t,r,n){let{variant:i,name:a}=n,l="",u={},p=[["Role","TestId"].includes(e)?r:aS(r)];a&&(u.name=aS(a)),e==="Role"&&wp(t)&&(u.hidden=!0,l=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
317
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
318
|
+
`),Object.keys(u).length>0&&p.push(u);let c=i+"By"+e;return{queryName:e,queryMethod:c,queryArgs:p,variant:i,warning:l,toString(){l&&console.warn(l);let[m,y]=p;return m=typeof m=="string"?"'"+m+"'":m,y=y?", { "+Object.entries(y).map(g=>{let[b,w]=g;return b+": "+w}).join(", ")+" }":"",c+"("+m+y+")"}}}function Ao(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function Fd(e,t,r){var n,i;if(t===void 0&&(t="get"),e.matches(Ot().defaultIgnore))return;let a=(n=e.getAttribute("role"))!=null?n:(i=A0(e))==null?void 0:i[0];if(a!=="generic"&&Ao("Role",r,a))return So("Role",e,a,{variant:t,name:b0(e,{computedStyleSupportsPseudoElements:Ot().computedStyleSupportsPseudoElements})});let l=fD(document,e).map(g=>g.content).join(" ");if(Ao("LabelText",r,l))return So("LabelText",e,l,{variant:t});let u=e.getAttribute("placeholder");if(Ao("PlaceholderText",r,u))return So("PlaceholderText",e,u,{variant:t});let p=oS(Du(e));if(Ao("Text",r,p))return So("Text",e,p,{variant:t});if(Ao("DisplayValue",r,e.value))return So("DisplayValue",e,oS(e.value),{variant:t});let c=e.getAttribute("alt");if(Ao("AltText",r,c))return So("AltText",e,c,{variant:t});let m=e.getAttribute("title");if(Ao("Title",r,m))return So("Title",e,m,{variant:t});let y=e.getAttribute(Ot().testIdAttribute);if(Ao("TestId",r,y))return So("TestId",e,y,{variant:t})}function Gc(e,t){e.stack=t.stack.replace(t.message,e.message)}function RU(e,t){let{container:r=w0(),timeout:n=Ot().asyncUtilTimeout,showOriginalStackTrace:i=Ot().showOriginalStackTrace,stackTraceError:a,interval:l=50,onTimeout:u=c=>(Object.defineProperty(c,"message",{value:Ot().getElementError(c.message,r).message}),c),mutationObserverOptions:p={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,m)=>{let y,g,b,w=!1,A="idle",x=setTimeout(F,n),_=Wh();if(_){let{unstable_advanceTimersWrapper:E}=Ot();for(B();!w;){if(!Wh()){let P=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");i||Gc(P,a),m(P);return}if(await E(async()=>{jest.advanceTimersByTime(l)}),w)break;B()}}else{try{Qi(r)}catch(P){m(P);return}g=setInterval(j,l);let{MutationObserver:E}=cD(r);b=new E(j),b.observe(r,p),B()}function R(E,P){w=!0,clearTimeout(x),_||(clearInterval(g),b.disconnect()),E?m(E):c(P)}function j(){if(Wh()){let E=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 i||Gc(E,a),m(E)}else return B()}function B(){if(A!=="pending")try{let E=uU(e);typeof E?.then=="function"?(A="pending",E.then(P=>{A="resolved",R(null,P)},P=>{A="rejected",y=P})):R(null,E)}catch(E){y=E}}function F(){let E;y?(E=y,!i&&E.name==="TestingLibraryElementError"&&Gc(E,a)):(E=new Error("Timed out in waitFor."),i||Gc(E,a)),R(u(E),null)}})}function _0(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Ot().asyncWrapper(()=>RU(e,{stackTraceError:r,...t}))}function Sp(e,t){return Ot().getElementError(e,t)}function Ap(e,t){return Sp(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Pa(e,t,r,n){let{exact:i=!0,collapseWhitespace:a,trim:l,normalizer:u}=n===void 0?{}:n,p=i?Wi:Ls,c=Da({collapseWhitespace:a,trim:l,normalizer:u});return Array.from(t.querySelectorAll("["+e+"]")).filter(m=>p(m.getAttribute(e),m,r,c))}function vD(e,t,r,n){let i=Pa(e,t,r,n);if(i.length>1)throw Ap("Found multiple elements by ["+e+"="+r+"]",t);return i[0]||null}function ws(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];let l=e(r,...i);if(l.length>1){let u=l.map(p=>Sp(null,p).message).join(`
|
|
319
|
+
|
|
320
|
+
`);throw Ap(t(r,...i)+`
|
|
321
|
+
|
|
322
|
+
Here are the matching elements:
|
|
323
|
+
|
|
324
|
+
`+u,r)}return l[0]||null}}function ED(e,t){return Ot().getElementError(`A better query is available, try this:
|
|
325
|
+
`+e.toString()+`
|
|
326
|
+
`,t)}function C0(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];let l=e(r,...i);if(!l.length)throw Ot().getElementError(t(r,...i),r);return l}}function Ss(e){return(t,r,n,i)=>_0(()=>e(t,r,n),{container:t,...i})}var Lo=(e,t,r)=>function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];let u=e(n,...a),[{suggest:p=Ot().throwSuggestions}={}]=a.slice(-1);if(u&&p){let c=Fd(u,r);if(c&&!t.endsWith(c.queryName))throw ED(c.toString(),n)}return u},bn=(e,t,r)=>function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];let u=e(n,...a),[{suggest:p=Ot().throwSuggestions}={}]=a.slice(-1);if(u.length&&p){let c=[...new Set(u.map(m=>{var y;return(y=Fd(m,r))==null?void 0:y.toString()}))];if(c.length===1&&!t.endsWith(Fd(u[0],r).queryName))throw ED(c[0],n)}return u};function Zi(e,t,r){let n=Lo(ws(e,t),e.name,"query"),i=C0(e,r),a=ws(i,t),l=Lo(a,e.name,"get"),u=bn(i,e.name.replace("query","get"),"getAll"),p=Ss(bn(i,e.name,"findAll")),c=Ss(Lo(a,e.name,"find"));return[n,u,l,p,c]}var DU=Object.freeze({__proto__:null,getElementError:Sp,wrapAllByQueryWithSuggestion:bn,wrapSingleQueryWithSuggestion:Lo,getMultipleElementsFoundError:Ap,queryAllByAttribute:Pa,queryByAttribute:vD,makeSingleQuery:ws,makeGetAllQuery:C0,makeFindQuery:Ss,buildQueries:Zi});function PU(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:ty(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var OU=function(e,t,r){let{exact:n=!0,trim:i,collapseWhitespace:a,normalizer:l}=r===void 0?{}:r,u=n?Wi:Ls,p=Da({collapseWhitespace:a,trim:i,normalizer:l});return PU(e).filter(c=>{let{node:m,textToMatch:y}=c;return u(y,m,t,p)}).map(c=>{let{node:m}=c;return m})},uu=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:a,trim:l,normalizer:u}=r===void 0?{}:r;Qi(e);let p=i?Wi:Ls,c=Da({collapseWhitespace:a,trim:l,normalizer:u}),m=Array.from(e.querySelectorAll("*")).filter(y=>pD(y).length||y.hasAttribute("aria-labelledby")).reduce((y,g)=>{let b=fD(e,g,{selector:n});b.filter(A=>!!A.formControl).forEach(A=>{p(A.content,A.formControl,t,c)&&A.formControl&&y.push(A.formControl)});let w=b.filter(A=>!!A.content).map(A=>A.content);return p(w.join(" "),g,t,c)&&y.push(g),w.length>1&&w.forEach((A,x)=>{p(A,g,t,c)&&y.push(g);let _=[...w];_.splice(x,1),_.length>1&&p(_.join(" "),g,t,c)&&y.push(g)}),y},[]).concat(Pa("aria-label",e,t,{exact:i,normalizer:c}));return Array.from(new Set(m)).filter(y=>y.matches(n))},_a=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];let a=uu(e,t,...n);if(!a.length){let l=OU(e,t,...n);if(l.length){let u=l.map(p=>NU(e,p)).filter(p=>!!p);throw u.length?Ot().getElementError(u.map(p=>"Found a label with the text of: "+t+", however the element associated with this label (<"+p+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+p+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
327
|
+
|
|
328
|
+
`),e):Ot().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 Ot().getElementError("Unable to find a label with the text of: "+t,e)}return a};function NU(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var wD=(e,t)=>"Found multiple elements with the text of: "+t,SD=Lo(ws(uu,wD),uu.name,"query"),AD=ws(_a,wD),_D=Ss(bn(_a,_a.name,"findAll")),CD=Ss(Lo(AD,_a.name,"find")),TD=bn(_a,_a.name,"getAll"),xD=Lo(AD,_a.name,"get"),RD=bn(uu,uu.name,"queryAll"),ry=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qi(t[0]),Pa("placeholder",...t)},IU=(e,t)=>"Found multiple elements with the placeholder text of: "+t,FU=(e,t)=>"Unable to find an element with the placeholder text of: "+t,DD=bn(ry,ry.name,"queryAll"),[PD,OD,ND,ID,FD]=Zi(ry,IU,FU),ny=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:a,trim:l,ignore:u=Ot().defaultIgnore,normalizer:p}=r===void 0?{}:r;Qi(e);let c=i?Wi:Ls,m=Da({collapseWhitespace:a,trim:l,normalizer:p}),y=[];return typeof e.matches=="function"&&e.matches(n)&&(y=[e]),[...y,...Array.from(e.querySelectorAll(n))].filter(g=>!u||!g.matches(u)).filter(g=>c(Du(g),g,t,m))},kU=(e,t)=>"Found multiple elements with the text: "+t,BU=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:i,normalizer:a,selector:l}=r,u=Da({collapseWhitespace:n,trim:i,normalizer:a})(t.toString()),p=u!==t.toString(),c=(l??"*")!=="*";return"Unable to find an element with the text: "+(p?u+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+l+"'":"")+". 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."},kD=bn(ny,ny.name,"queryAll"),[BD,LD,MD,qD,jD]=Zi(ny,kU,BU),iy=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:a,normalizer:l}=r===void 0?{}:r;Qi(e);let u=n?Wi:Ls,p=Da({collapseWhitespace:i,trim:a,normalizer:l});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(m=>m.selected).some(m=>u(Du(m),m,t,p)):u(c.value,c,t,p))},LU=(e,t)=>"Found multiple elements with the display value: "+t+".",MU=(e,t)=>"Unable to find an element with the display value: "+t+".",$D=bn(iy,iy.name,"queryAll"),[VD,UD,JD,zD,HD]=Zi(iy,LU,MU),qU=/^(img|input|area|.+-.+)$/i,oy=function(e,t,r){return r===void 0&&(r={}),Qi(e),Pa("alt",e,t,r).filter(n=>qU.test(n.tagName))},jU=(e,t)=>"Found multiple elements with the alt text: "+t,$U=(e,t)=>"Unable to find an element with the alt text: "+t,WD=bn(oy,oy.name,"queryAll"),[GD,KD,YD,XD,QD]=Zi(oy,jU,$U),VU=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},ay=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:a,normalizer:l}=r===void 0?{}:r;Qi(e);let u=n?Wi:Ls,p=Da({collapseWhitespace:i,trim:a,normalizer:l});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>u(c.getAttribute("title"),c,t,p)||VU(c)&&u(Du(c),c,t,p))},UU=(e,t)=>"Found multiple elements with the title: "+t+".",JU=(e,t)=>"Unable to find an element with the title: "+t+".",ZD=bn(ay,ay.name,"queryAll"),[eP,tP,rP,nP,iP]=Zi(ay,UU,JU),sy=function(e,t,r){let{hidden:n=Ot().defaultHidden,name:i,description:a,queryFallbacks:l=!1,selected:u,busy:p,checked:c,pressed:m,current:y,level:g,expanded:b,value:{now:w,min:A,max:x,text:_}={}}=r===void 0?{}:r;if(Qi(e),u!==void 0){var R;if(((R=Vn.roles.get(t))==null?void 0:R.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(p!==void 0){var j;if(((j=Vn.roles.get(t))==null?void 0:j.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var B;if(((B=Vn.roles.get(t))==null?void 0:B.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(m!==void 0){var F;if(((F=Vn.roles.get(t))==null?void 0:F.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(y!==void 0){var E;if(((E=Vn.roles.get(t))==null?void 0:E.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(g!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(w!==void 0){var P;if(((P=Vn.roles.get(t))==null?void 0:P.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(x!==void 0){var N;if(((N=Vn.roles.get(t))==null?void 0:N.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(A!==void 0){var L;if(((L=Vn.roles.get(t))==null?void 0:L.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(_!==void 0){var Z;if(((Z=Vn.roles.get(t))==null?void 0:Z.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(b!==void 0){var H;if(((H=Vn.roles.get(t))==null?void 0:H.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let te=new WeakMap;function W($){return te.has($)||te.set($,yD($)),te.get($)}return Array.from(e.querySelectorAll(zU(t))).filter($=>{if($.hasAttribute("role")){let K=$.getAttribute("role");if(l)return K.split(" ").filter(Boolean).some(ae=>ae===t);let[ne]=K.split(" ");return ne===t}return A0($).some(K=>K===t)}).filter($=>{if(u!==void 0)return u===yU($);if(p!==void 0)return p===gU($);if(c!==void 0)return c===bU($);if(m!==void 0)return m===vU($);if(y!==void 0)return y===EU($);if(b!==void 0)return b===wU($);if(g!==void 0)return g===SU($);if(w!==void 0||x!==void 0||A!==void 0||_!==void 0){let ne=!0;if(w!==void 0&&ne&&(ne=w===AU($)),x!==void 0&&ne&&(ne=x===_U($)),A!==void 0&&ne&&(ne=A===CU($)),_!==void 0){var K;ne&&(ne=Wi((K=TU($))!=null?K:null,$,_,ae=>ae))}return ne}return!0}).filter($=>i===void 0?!0:Wi(b0($,{computedStyleSupportsPseudoElements:Ot().computedStyleSupportsPseudoElements}),$,i,K=>K)).filter($=>a===void 0?!0:Wi(tD($,{computedStyleSupportsPseudoElements:Ot().computedStyleSupportsPseudoElements}),$,a,K=>K)).filter($=>n===!1?wp($,{isSubtreeInaccessible:W})===!1:!0)};function zU(e){var t;let r='*[role~="'+e+'"]',n=(t=Vn.roleElements.get(e))!=null?t:new Set,i=new Set(Array.from(n).map(a=>{let{name:l}=a;return l}));return[r].concat(Array.from(i)).join(",")}var oP=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},HU=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+oP(n)},WU=function(e,t,r){let{hidden:n=Ot().defaultHidden,name:i,description:a}=r===void 0?{}:r;if(Ot()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+oP(i);let l="";Array.from(e.children).forEach(m=>{l+=bD(m,{hidden:n,includeDescription:a!==void 0})});let u;l.length===0?n===!1?u="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":u="There are no available roles.":u=(`
|
|
329
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
330
|
+
|
|
331
|
+
`+l.replace(/\n/g,`
|
|
332
|
+
`).replace(/\n\s\s\n/g,`
|
|
333
|
+
|
|
334
|
+
`)+`
|
|
335
|
+
`).trim();let p="";i===void 0?p="":typeof i=="string"?p=' and name "'+i+'"':p=" and name `"+i+"`";let c="";return a===void 0?c="":typeof a=="string"?c=' and description "'+a+'"':c=" and description `"+a+"`",(`
|
|
336
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+p+c+`
|
|
337
|
+
|
|
338
|
+
`+u).trim()},aP=bn(sy,sy.name,"queryAll"),[sP,lP,uP,cP,dP]=Zi(sy,HU,WU),T0=()=>Ot().testIdAttribute,ly=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qi(t[0]),Pa(T0(),...t)},GU=(e,t)=>"Found multiple elements by: ["+T0()+'="'+t+'"]',KU=(e,t)=>"Unable to find an element by: ["+T0()+'="'+t+'"]',pP=bn(ly,ly.name,"queryAll"),[fP,hP,mP,yP,gP]=Zi(ly,GU,KU),kd=Object.freeze({__proto__:null,queryAllByLabelText:RD,queryByLabelText:SD,getAllByLabelText:TD,getByLabelText:xD,findAllByLabelText:_D,findByLabelText:CD,queryByPlaceholderText:PD,queryAllByPlaceholderText:DD,getByPlaceholderText:ND,getAllByPlaceholderText:OD,findAllByPlaceholderText:ID,findByPlaceholderText:FD,queryByText:BD,queryAllByText:kD,getByText:MD,getAllByText:LD,findAllByText:qD,findByText:jD,queryByDisplayValue:VD,queryAllByDisplayValue:$D,getByDisplayValue:JD,getAllByDisplayValue:UD,findAllByDisplayValue:zD,findByDisplayValue:HD,queryByAltText:GD,queryAllByAltText:WD,getByAltText:YD,getAllByAltText:KD,findAllByAltText:XD,findByAltText:QD,queryByTitle:eP,queryAllByTitle:ZD,getByTitle:rP,getAllByTitle:tP,findAllByTitle:nP,findByTitle:iP,queryByRole:sP,queryAllByRole:aP,getAllByRole:lP,getByRole:uP,findAllByRole:cP,findByRole:dP,queryByTestId:fP,queryAllByTestId:pP,getByTestId:mP,getAllByTestId:hP,findAllByTestId:yP,findByTestId:gP});function uy(e,t,r){return t===void 0&&(t=kd),r===void 0&&(r={}),Object.keys(t).reduce((n,i)=>{let a=t[i];return n[i]=a.bind(null,e),n},r)}var bP=e=>!e||Array.isArray(e)&&!e.length;function sS(e){if(bP(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function YU(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){sS(e);let n=(Array.isArray(e)?e:[e]).map(i=>{let a=i.parentElement;if(a===null)return()=>null;for(;a.parentElement;)a=a.parentElement;return()=>a.contains(i)?i:null});e=()=>n.map(i=>i()).filter(Boolean)}return sS(e()),_0(()=>{let n;try{n=e()}catch(i){if(i.name==="TestingLibraryElementError")return;throw i}if(!bP(n))throw r},t)}var lS={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}}},uS={doubleClick:"dblClick"};function cu(e,t){return Ot().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 hd(e,t,r,n){let{EventType:i="Event",defaultInit:a={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let l={...a,...r},{target:{value:u,files:p,...c}={}}=l;u!==void 0&&XU(t,u),p!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:p}),Object.assign(t,c);let m=cD(t),y=m[i]||m.Event,g;if(typeof y=="function")g=new y(e,l);else{g=m.document.createEvent(i);let{bubbles:b,cancelable:w,detail:A,...x}=l;g.initEvent(e,b,w,A),Object.keys(x).forEach(_=>{g[_]=x[_]})}return["dataTransfer","clipboardData"].forEach(b=>{let w=l[b];typeof w=="object"&&(typeof m.DataTransfer=="function"?Object.defineProperty(g,b,{value:Object.getOwnPropertyNames(w).reduce((A,x)=>(Object.defineProperty(A,x,{value:w[x]}),A),new m.DataTransfer)}):Object.defineProperty(g,b,{value:w}))}),g}Object.keys(lS).forEach(e=>{let{EventType:t,defaultInit:r}=lS[e],n=e.toLowerCase();hd[e]=(i,a)=>hd(n,i,a,{EventType:t,defaultInit:r}),cu[e]=(i,a)=>cu(i,hd[e](i,a))});function XU(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(n,"value")||{};if(i&&r!==i)i.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(uS).forEach(e=>{let t=uS[e];cu[e]=function(){return cu[t](...arguments)}});function QU(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
339
|
+
`)}function ZU(e){return UV.default.compressToEncodedURIComponent(QU(e))}function eJ(e){return"https://testing-playground.com/#markup="+ZU(e)}var tJ=(e,t,r)=>Array.isArray(e)?e.forEach(n=>ey(n,t,r)):ey(e,t,r),rJ=function(e){if(e===void 0&&(e=w0().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}let t=eJ(e.innerHTML);return console.log(`Open this URL in your browser
|
|
340
|
+
|
|
341
|
+
`+t),t},cS={debug:tJ,logTestingPlaygroundURL:rJ},nJ=typeof document<"u"&&document.body?uy(document.body,kd,cS):Object.keys(kd).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),cS);function _t(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,i])=>e[n]===i):!0}function Hn(e){var t;if(iJ(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${oJ(e)}`)}function iJ(e){return e.nodeType===9}function oJ(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function vP(e,t){return new Promise((r,n)=>{let i=new t;i.onerror=n,i.onabort=n,i.onload=()=>{r(String(i.result))},i.readAsText(e)})}function x0(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var EP=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Oo(this,"kind",void 0),Oo(this,"type",void 0),Oo(this,"file",null),Oo(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},aJ=class extends Array{add(...e){let t=new EP(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function Kc(e,t){let[r,n]=e.split("/"),i=!n||n==="*";return a=>t?a.type===(i?r:e):i?a.type.startsWith(`${r}/`):a.type===r}function sJ(e){return new class{getData(t){var r;let n=(r=this.items.find(Kc(t,!0)))!==null&&r!==void 0?r:this.items.find(Kc(t,!1)),i="";return n?.getAsString(a=>{i=a}),i}setData(t,r){let n=this.items.findIndex(Kc(t,!0)),i=new EP(r,t);n>=0?this.items.splice(n,1,i):this.items.push(i)}clearData(t){if(t){let r=this.items.findIndex(Kc(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){Oo(this,"dropEffect","none"),Oo(this,"effectAllowed","uninitialized"),Oo(this,"items",new aJ),Oo(this,"files",x0(e,[]))}}}function R0(e,t=[]){let r=typeof e.DataTransfer>"u"?sJ(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>x0(e,t)}),r}async function lJ(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function wP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SP(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let i=await this.data[n];if(!i)throw new Error(`${n} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:n})}constructor(n){wP(this,"data",void 0),this.data=n}}(r)}var As=Symbol("Manage ClipboardSub");function dS(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let i=n.types.includes("text/plain")?"text/plain":n.types.find(a=>a.startsWith("text/"));i&&(r+=await n.getType(i).then(a=>vP(a,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[SP(e,r)]}constructor(...r){super(...r),wP(this,"items",[])}},{[As]:t})}function D0(e){return!!e?.[As]}function uJ(e){if(D0(e.navigator.clipboard))return e.navigator.clipboard[As];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=dS(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=dS(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[As]}function cJ(e){D0(e.navigator.clipboard)&&e.navigator.clipboard[As].resetClipboardStub()}function dJ(e){D0(e.navigator.clipboard)&&e.navigator.clipboard[As].detachClipboardStub()}async function pJ(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let i=R0(t);for(let a of n)for(let l of a.types)i.setData(l,await a.getType(l).then(u=>vP(u,t.FileReader)));return i}async function AP(e,t){let r=Hn(e),n=r.navigator.clipboard,i=[];for(let a=0;a<t.items.length;a++){let l=t.items[a],u=await lJ(r,l);i.push(SP(r,u))}if(!(n&&await n.write(i).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var Bd=globalThis;typeof Bd.afterEach=="function"&&Bd.afterEach(()=>{typeof globalThis.window<"u"&&cJ(globalThis.window)});typeof Bd.afterAll=="function"&&Bd.afterAll(()=>{typeof globalThis.window<"u"&&dJ(globalThis.window)});var _P=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function P0(e){return e.matches(_P)}function fJ(e){return new e.constructor(e.type,e)}function Gi(e){for(let r=e;r;r=r.parentElement)if(_t(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(_t(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function Ou(e){let t=e.activeElement;return t?.shadowRoot?Ou(t.shadowRoot):Gi(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function Gh(e){var t;return(t=Ou(e))!==null&&t!==void 0?t:e.body}function hJ(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function Ca(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function du(e){let t=mJ(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function mJ(e){return e.nodeType===1?e:e.parentElement}var CP=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(CP||{});function TP(e){return _t(e,"button")||_t(e,"input")&&e.type in CP}function _s(e){return RP(e)&&!e.readOnly||Ca(e)}var xP=(function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e})(xP||{});function RP(e){return _t(e,"textarea")||_t(e,"input")&&e.type in xP}function _i(e){return DP(e)&&RP(e)}function yJ(e){return DP(e)&&TP(e)}function DP(e){return e.nodeType===1}function gJ(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&_i(e)){let n=du(t.focusNode);if(n){if(!t.isCollapsed){var r;let i=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(i,0,i,0)}}else t.setBaseAndExtent(e,0,e,0)}}function Cs(e,t){return Ot().eventWrapper(e)}function $o(e){let t=hJ(e,P0),r=Ou(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Cs(t?()=>t.focus():()=>r?.blur()),gJ(t??e.ownerDocument.body))}function bJ(e){!P0(e)||Ou(e.ownerDocument)!==e||Cs(()=>e.blur())}var Vo={};Vo.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),i=n&&_t(n,"label")&&n.control;if(i&&i!==t)return()=>{P0(i)&&($o(i),r.dispatchEvent(i,fJ(e)))};if(_t(t,"input",{type:"file"}))return()=>{bJ(t),t.dispatchEvent(new(Hn(t)).Event("fileDialog")),$o(t)}};var Ts=Symbol("Displayed value in UI"),Ui=Symbol("Displayed selection in UI"),Ld=Symbol("Initial value to compare on blur");function vJ(e){return typeof e=="object"&&Ts in e}function EJ(e){return!!e&&typeof e=="object"&&Ui in e}function wJ(e,t){e[Ld]===void 0&&(e[Ld]=e.value),e[Ts]=t,e.value=Object.assign(new String(t),{[Ts]:!0})}function Ci(e){return e[Ts]===void 0?e.value:String(e[Ts])}function O0(e){e[Ts]=void 0}function PP(e){e[Ld]=void 0}function SJ(e){return e[Ld]}function AJ(e,t){e[Ui]=t}function Ms(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let i=Ci(e).length,a=y=>Math.max(0,Math.min(i,y)),l=n==="replace"||e[Ui]===void 0?a(r):e[Ui].anchorOffset,u=a(t),p=Math.min(l,u),c=Math.max(l,u);if(e[Ui]={anchorOffset:l,focusOffset:u},e.selectionStart===p&&e.selectionEnd===c)return;let m=Object.assign(new Number(p),{[Ui]:!0});try{e.setSelectionRange(m,c)}catch{}}function pu(e){var t,r,n;let i=(n=e[Ui])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...i,startOffset:Math.min(i.anchorOffset,i.focusOffset),endOffset:Math.max(i.anchorOffset,i.focusOffset)}}function _J(e){return!!e[Ui]}function md(e){e[Ui]=void 0}var Md=globalThis.parseInt;function CJ(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=Md(t[0],10),n=Md(t[1],10);if(r>=3||r===2&&n>=4){let i;return r>=3?i=1:i=2,pS(t,i)}return e.length===2?e:pS(t,2)}function pS(e,t){let r=e.slice(0,t),n=Math.min(Md(r,10),23),i=e.slice(t),a=Md(i,10),l=Math.min(a,59);return`${n.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}function OP(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var NP=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(NP||{});function TJ(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function xJ(e){return _t(e,"textarea")||_t(e,"input")&&e.type in NP}function IP(e,t,r,n){if(yd(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let i=fS(e,t,r);if(i){if(yd(i))return{node:i,offset:r>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(_t(i,"br")){let a=fS(i,void 0,r);return a?yd(a)?{node:a,offset:r>0?0:a.nodeValue.length}:r<0&&_t(a,"br")?{node:i.parentNode,offset:Yc(i)}:{node:a.parentNode,offset:Yc(a)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:i.parentNode,offset:Yc(i)}:void 0}else return{node:i.parentNode,offset:Yc(i)+(r>0?1:0)}}}function fS(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&N0(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),DJ(e,r===1?"next":"previous",RJ)}function RJ(e){if(yd(e))return!0;if(N0(e)){if(_t(e,["input","textarea"]))return e.type!=="hidden";if(_t(e,"br"))return!0}return!1}function Yc(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function N0(e){return e.nodeType===1}function yd(e){return e.nodeType===3}function DJ(e,t,r){for(;;){var n;let i=e[`${t}Sibling`];if(i){if(e=PJ(i,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!N0(e.parentNode)||!Ca(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function PJ(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var fu=Symbol("Track programmatic changes for React workaround");function OJ(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Hn(e).REACT_VERSION===17}function NJ(e){OJ(e)&&(e[fu]={previousValue:String(e.value),tracked:[]})}function IJ(e,t){var r,n;(n=e[fu])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[fu]||(O0(e),Ms(e,{focusOffset:t.length}))}function FJ(e,t){var r;let n=e[fu];if(e[fu]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let i=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;i||O0(e),_J(e)&&Ms(e,{focusOffset:i?t:e.value.length})}function FP(e){let t=kJ(e);if(t&&_i(t))return{type:"input",selection:pu(t)};let r=t?.ownerDocument.getSelection();return{type:du(e)&&r?.anchorNode&&du(r.anchorNode)?"contenteditable":"default",selection:r}}function kJ(e){return e.nodeType===1?e:e.parentElement}function BJ(e){let t=FP(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function Ta({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var i,a;if(FP(e).type==="input")return Ms(e,{anchorOffset:n,focusOffset:t});(a=r.ownerDocument)===null||a===void 0||(i=a.getSelection())===null||i===void 0||i.setBaseAndExtent(r,n,e,t)}function kP(e){return _t(e,"input")&&["date","time"].includes(e.type)}function xs(e,t,r,n="insertText"){let i=BJ(t);i&&(!kP(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in i?LJ(e,t,i,r,n):MJ(e,t,i,r,n)))}function LJ(e,t,r,n,i){let a=!1;if(!r.collapsed)a=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(i)){let l=IP(r.startContainer,r.startOffset,i==="deleteContentBackward"?-1:1,i);if(l){a=!0;let u=r.cloneRange();u.comparePoint(l.node,l.offset)<0?u.setStart(l.node,l.offset):u.setEnd(l.node,l.offset),u.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let l=r.endOffset;r.endContainer.insertData(l,n),r.setStart(r.endContainer,l+n.length),r.setEnd(r.endContainer,l+n.length)}else{let l=t.ownerDocument.createTextNode(n);r.insertNode(l),r.setStart(l,n.length),r.setEnd(l,n.length)}(a||n)&&e.dispatchUIEvent(t,"input",{inputType:i})}function MJ(e,t,r,n,i){let a=n;if(xJ(t)){let c=TJ(t);if(c!==void 0&&n.length>0){let m=c-t.value.length;if(m>0)a=n.substring(0,m);else return}}let{newValue:l,newOffset:u,oldValue:p}=qJ(a,t,r,i);l===p&&u===r.startOffset&&u===r.endOffset||_t(t,"input",{type:"number"})&&!jJ(l)||(wJ(t,l),Ta({focusNode:t,anchorOffset:u,focusOffset:u}),kP(t)?OP(t,l)&&(hS(e,t,u,{}),e.dispatchUIEvent(t,"change"),PP(t)):hS(e,t,u,{data:n,inputType:i}))}function qJ(e,t,{startOffset:r,endOffset:n},i){let a=Ci(t),l=Math.max(0,r===n&&i==="deleteContentBackward"?r-1:r),u=a.substring(0,l),p=Math.min(a.length,r===n&&i==="deleteContentForward"?r+1:n),c=a.substring(p,a.length),m=`${u}${e}${c}`,y=l+e.length;if(_t(t,"input",{type:"time"})){let g=CJ(m);g!==""&&OP(t,g)&&(m=g,y=g.length)}return{oldValue:a,newValue:m,newOffset:y}}function hS(e,t,r,n){e.dispatchUIEvent(t,"input",n),FJ(t,r)}function jJ(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Vo.cut=(e,t,r)=>()=>{_s(t)&&xs(r,t,"","deleteByCut")};function $J(e){return e?Ca(e)?e.textContent:Ci(e):null}function VJ(e){let t=Hn(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:i}=t.getComputedStyle(r);if(n==="none"||i==="hidden")return!1}return!0}function UJ(e,t){let r=e.ownerDocument,n=r.querySelectorAll(_P),i=Array.from(n).filter(p=>p===e||!(Number(p.getAttribute("tabindex"))<0||Gi(p)));Number(e.getAttribute("tabindex"))>=0&&i.sort((p,c)=>{let m=Number(p.getAttribute("tabindex")),y=Number(c.getAttribute("tabindex"));return m===y?0:m===0?1:y===0?-1:m-y});let a={},l=[r.body],u=_t(e,"input",{type:"radio"})?e.name:void 0;i.forEach(p=>{let c=p;if(_t(c,"input",{type:"radio"})&&c.name){if(c===e){l.push(c);return}else if(c.name===u)return;if(c.checked){l=l.filter(m=>!_t(m,"input",{type:"radio",name:c.name})),l.push(c),a[c.name]=c;return}if(typeof a[c.name]<"u")return}l.push(c)});for(let p=l.findIndex(c=>c===e);;)if(p+=t?-1:1,p===l.length?p=0:p===-1&&(p=l.length-1),l[p]===e||l[p]===r.body||VJ(l[p]))return l[p]}function mS(e,t){if(_i(e)){let r=pu(e);Ta({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=IP(r.focusNode,r.focusOffset,t);n&&Ta({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function BP(e){if(_i(e))return Ta({focusNode:e,anchorOffset:0,focusOffset:Ci(e).length});var t;let r=(t=du(e))!==null&&t!==void 0?t:e.ownerDocument.body;Ta({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function JJ(e){if(_i(e))return pu(e).startOffset===0&&pu(e).endOffset===Ci(e).length;var t;let r=(t=du(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function Pl(e,t,r){var n;if(_i(e))return Ta({focusNode:e,anchorOffset:t,focusOffset:r});if(Ca(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Ta({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Xc(e,t,r){let n=Hn(t),i=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let a=i.findIndex(l=>l===t)+r;;a+=r){if(i[a]||(a=r>0?0:i.length-1),i[a]===t)return;if(!Gi(i[a])){$o(i[a]),e.dispatchUIEvent(i[a],"click");return}}}Vo.keydown=(e,t,r)=>{var n,i;return(i=(n=yS[e.key])===null||n===void 0?void 0:n.call(yS,e,t,r))!==null&&i!==void 0?i:zJ(e,t,r)};var yS={ArrowDown:(e,t,r)=>{if(_t(t,"input",{type:"radio"}))return()=>Xc(r,t,1)},ArrowLeft:(e,t,r)=>_t(t,"input",{type:"radio"})?()=>Xc(r,t,-1):()=>mS(t,-1),ArrowRight:(e,t,r)=>_t(t,"input",{type:"radio"})?()=>Xc(r,t,1):()=>mS(t,1),ArrowUp:(e,t,r)=>{if(_t(t,"input",{type:"radio"}))return()=>Xc(r,t,-1)},Backspace:(e,t,r)=>{if(_s(t))return()=>{xs(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(_s(t))return()=>{xs(r,t,"","deleteContentForward")}},End:(e,t)=>{if(_t(t,["input","textarea"])||Ca(t))return()=>{var r,n;let i=(n=(r=$J(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Pl(t,i,i)}},Home:(e,t)=>{if(_t(t,["input","textarea"])||Ca(t))return()=>{Pl(t,0,0)}},PageDown:(e,t)=>{if(_t(t,["input"]))return()=>{let r=Ci(t).length;Pl(t,r,r)}},PageUp:(e,t)=>{if(_t(t,["input"]))return()=>{Pl(t,0,0)}},Tab:(e,t,r)=>()=>{let n=UJ(t,r.system.keyboard.modifiers.Shift);$o(n),_i(n)&&Ms(n,{anchorOffset:0,focusOffset:n.value.length})}},zJ=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>BP(t)};Vo.keypress=(e,t,r)=>{if(e.key==="Enter"){if(_t(t,"button")||_t(t,"input")&&HJ.includes(t.type)||_t(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(_t(t,"input")){let n=t.form,i=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return i?()=>r.dispatchUIEvent(i,"click"):n&&WJ.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(_s(t)){let n=e.key==="Enter"?Ca(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",i=e.key==="Enter"?`
|
|
342
|
+
`:e.key;return()=>xs(r,t,i,n)}};var HJ=["button","color","file","image","reset","submit"],WJ=["email","month","password","search","tel","text","url","week"];Vo.keyup=(e,t,r)=>{var n;return(n=gS[e.key])===null||n===void 0?void 0:n.call(gS,e,t,r)};var gS={" ":(e,t,r)=>{if(TP(t))return()=>r.dispatchUIEvent(t,"click")}};Vo.paste=(e,t,r)=>{if(_s(t))return()=>{var n;let i=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");i&&xs(r,t,i,"insertFromPaste")}};var LP={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{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}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,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}},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}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function MP(e){return LP[e].EventType}var GJ=["MouseEvent","PointerEvent"];function KJ(e){return GJ.includes(MP(e))}function YJ(e){return MP(e)==="KeyboardEvent"}var XJ={ClipboardEvent:[ZJ],Event:[],FocusEvent:[_l,ez],InputEvent:[_l,tz],MouseEvent:[_l,Kh,bS],PointerEvent:[_l,Kh,bS,nz],KeyboardEvent:[_l,Kh,rz]};function qP(e,t,r){let n=Hn(t),{EventType:i,defaultInit:a}=LP[e],l=new(QJ(n))[i](e,a);var u={};for(var p in r)Object.prototype.hasOwnProperty.call(r,p)&&(u[p]=r[p]);return u.view=n,XJ[i].forEach(function(c){c(l,u)}),l}function QJ(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let i=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var a;let l=(a=e.ClipboardEvent)!==null&&a!==void 0?a:class extends r{};var u;let p=(u=e.PopStateEvent)!==null&&u!==void 0?u:class extends r{};var c;let m=(c=e.ProgressEvent)!==null&&c!==void 0?c:class extends r{};var y;let g=(y=e.TransitionEvent)!==null&&y!==void 0?y:class extends r{};var b;let w=(b=e.UIEvent)!==null&&b!==void 0?b:class extends r{};var A;let x=(A=e.CompositionEvent)!==null&&A!==void 0?A:class extends w{};var _;let R=(_=e.FocusEvent)!==null&&_!==void 0?_:class extends w{};var j;let B=(j=e.InputEvent)!==null&&j!==void 0?j:class extends w{};var F;let E=(F=e.KeyboardEvent)!==null&&F!==void 0?F:class extends w{};var P;let N=(P=e.MouseEvent)!==null&&P!==void 0?P:class extends w{};var L;let Z=(L=e.DragEvent)!==null&&L!==void 0?L:class extends N{};var H;let te=(H=e.PointerEvent)!==null&&H!==void 0?H:class extends N{};var W;let $=(W=e.TouchEvent)!==null&&W!==void 0?W:class extends w{};return{Event:r,AnimationEvent:i,ClipboardEvent:l,PopStateEvent:p,ProgressEvent:m,TransitionEvent:g,UIEvent:w,CompositionEvent:x,FocusEvent:R,InputEvent:B,KeyboardEvent:E,MouseEvent:N,DragEvent:Z,PointerEvent:te,TouchEvent:$}}function zo(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Er(e){return Number(e??0)}function ZJ(e,{clipboardData:t}){zo(e,{clipboardData:t})}function ez(e,{relatedTarget:t}){zo(e,{relatedTarget:t})}function tz(e,{data:t,inputType:r,isComposing:n}){zo(e,{data:t,isComposing:!!n,inputType:String(r)})}function _l(e,{view:t,detail:r}){zo(e,{view:t,detail:Er(r??0)})}function Kh(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,modifierAltGraph:a,modifierCapsLock:l,modifierFn:u,modifierFnLock:p,modifierNumLock:c,modifierScrollLock:m,modifierSymbol:y,modifierSymbolLock:g}){zo(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!i,getModifierState(b){return!!{Alt:t,AltGraph:a,CapsLock:l,Control:r,Fn:u,FnLock:p,Meta:n,NumLock:c,ScrollLock:m,Shift:i,Symbol:y,SymbolLock:g}[b]}})}function rz(e,{key:t,code:r,location:n,repeat:i,isComposing:a,charCode:l}){zo(e,{key:String(t),code:String(r),location:Er(n),repeat:!!i,isComposing:!!a,charCode:l})}function bS(e,{x:t,y:r,screenX:n,screenY:i,clientX:a=t,clientY:l=r,button:u,buttons:p,relatedTarget:c,offsetX:m,offsetY:y,pageX:g,pageY:b}){zo(e,{screenX:Er(n),screenY:Er(i),clientX:Er(a),x:Er(a),clientY:Er(l),y:Er(l),button:Er(u),buttons:Er(p),relatedTarget:c,offsetX:Er(m),offsetY:Er(y),pageX:Er(g),pageY:Er(b)})}function nz(e,{pointerId:t,width:r,height:n,pressure:i,tangentialPressure:a,tiltX:l,tiltY:u,twist:p,pointerType:c,isPrimary:m}){zo(e,{pointerId:Er(t),width:Er(r??1),height:Er(n??1),pressure:Er(i),tangentialPressure:Er(a),tiltX:Er(l),tiltY:Er(u),twist:Er(p),pointerType:String(c),isPrimary:!!m})}function iz(e,t,r,n=!1){(KJ(t)||YJ(t))&&(r={...r,...this.system.getUIEventModifiers()});let i=qP(t,e,r);return jP.call(this,e,i,n)}function jP(e,t,r=!1){var n;let i=t.type,a=r?()=>{}:(n=Vo[i])===null||n===void 0?void 0:n.call(Vo,t,e,this);if(a){t.preventDefault();let l=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>l}),Object.defineProperty(t,"preventDefault",{value:()=>{l=t.cancelable}}),Cs(()=>e.dispatchEvent(t)),l||a(),!l}return Cs(()=>e.dispatchEvent(t))}function da(e,t,r){let n=qP(t,e,r);Cs(()=>e.dispatchEvent(n))}var vS=Symbol("patched focus/blur methods");function $P(e){if(e.prototype[vS])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>a},[vS]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function i(l){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,l);let u=ES(this.ownerDocument);if(u===this)return;let p=Symbol("focus call");n=p,u&&(r.call(u),da(u,"blur",{relatedTarget:this}),da(u,"focusout",{relatedTarget:n===p?this:null})),n===p&&(t.call(this,l),da(this,"focus",{relatedTarget:u})),n===p&&da(this,"focusin",{relatedTarget:u})}function a(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let l=ES(this.ownerDocument);l===this&&(n=Symbol("blur call"),r.call(this),da(l,"blur",{relatedTarget:null}),da(l,"focusout",{relatedTarget:null}))}}function ES(e){let t=Ou(e);return t?.tagName==="BODY"?null:t}var Yh=Symbol("Interceptor for programmatical calls");function ls(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),a=n?.set?"set":"value";if(typeof n?.[a]!="function"||n[a][Yh])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function l(...u){let{applyNative:p=!1,realArgs:c,then:m}=r.call(this,...u),y=(!p&&i||n)[a];a==="set"?y.call(this,c):y.call(this,...c),m?.()}l[Yh]=Yh,Object.defineProperty(e,t,{...i??n,[a]:l})}function oz(e){ls(e,"value",function(t){let r=vJ(t);return r&&NJ(this),{applyNative:!!r,realArgs:az(this,t),then:r?void 0:()=>IJ(this,String(t))}})}function az(e,t){return _t(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function sz(e){ls(e,"setSelectionRange",function(t,...r){let n=EJ(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:md(e)}}),ls(e,"selectionStart",function(t){return{realArgs:t,then:()=>md(e)}}),ls(e,"selectionEnd",function(t){return{realArgs:t,then:()=>md(e)}}),ls(e,"select",function(){return{realArgs:[],then:()=>AJ(e,{anchorOffset:0,focusOffset:Ci(e).length})}})}function lz(e){ls(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{O0(e),md(e)}}})}var hs=Symbol("Node prepared with document state workarounds");function VP(e){e[hs]||(e.addEventListener("focus",t=>{let r=t.target;wS(r)},{capture:!0,passive:!0}),e.activeElement&&wS(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=SJ(r);n!==void 0&&(r.value!==n&&da(r,"change"),PP(r))},{capture:!0,passive:!0}),e[hs]=hs)}function wS(e){e[hs]||(_t(e,["input","textarea"])&&(oz(e),sz(e),lz(e)),e[hs]=hs)}function uz(e){return cz(e)?e:e.ownerDocument}function cz(e){return e.nodeType===9}var xn=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Ol(e,t){e.levelRefs[t]={}}function Qc(e,t){return e.levelRefs[t]}function Rs(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var gd=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gi=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),dz=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function SS(e){return dz.includes(e)}var pz=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function AS(e){return pz.includes(e)}var fz=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),i=Gh(e.config.document);this.setKeydownTarget(i),this.pressed.add(n,t),SS(r)&&(this.modifiers[r]=!0);let a=e.dispatchUIEvent(i,"keydown",{key:r,code:n});AS(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),a&&this.pressed.setUnprevented(n),a&&this.hasKeyPress(r)&&e.dispatchUIEvent(Gh(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),i=this.pressed.isUnprevented(n);this.pressed.delete(n),SS(r)&&!this.pressed.values().find(a=>a.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(Gh(e.config.document),"keyup",{key:r,code:n},!i),AS(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){aa(this,"system",void 0),aa(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),aa(this,"pressed",new class{add(t,r){var n,i,a;(a=(n=this.registry)[i=t])!==null&&a!==void 0||(n[i]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){aa(this,"registry",{})}}),aa(this,"carryChar",""),aa(this,"lastKeydownTarget",void 0),aa(this,"modifierLockStart",{}),this.system=e}},hz=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:gi.LEFT},{code:"AltRight",key:"Alt",location:gi.RIGHT},{code:"ShiftLeft",key:"Shift",location:gi.LEFT},{code:"ShiftRight",key:"Shift",location:gi.RIGHT},{code:"ControlLeft",key:"Control",location:gi.LEFT},{code:"ControlRight",key:"Control",location:gi.RIGHT},{code:"MetaLeft",key:"Meta",location:gi.LEFT},{code:"MetaRight",key:"Meta",location:gi.RIGHT},{code:"OSLeft",key:"OS",location:gi.LEFT},{code:"OSRight",key:"OS",location:gi.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],mz=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function yz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var UP=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=cy(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=cy(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){yz(this,"pressed",{})}},_S={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function cy(e=0){return e in _S?_S[e]:Number(e)}var CS={1:2,2:1};function dy(e){return e=cy(e),e in CS?CS[e]:e}function gz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bz=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){gz(this,"pressedKeys",new Set)}};function $l(e,t){let r=[];for(let a=e;a;a=a.parentElement)r.push(a);let n=[];for(let a=t;a;a=a.parentElement)n.push(a);let i=0;for(;!(i>=r.length||i>=n.length||r[r.length-1-i]!==n[n.length-1-i]);i++);return[r.slice(0,r.length-i),n.slice(0,n.length-i),n.slice(n.length-i)]}function py({target:e,node:t,offset:r}){return _i(e)?{node:e,offset:r??Ci(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:JP(e,r)}function JP(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,i=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let a=e.childNodes.item(n),l=String(a.textContent);if(l.length)if(t!==void 0&&l.length<t)t-=l.length;else{if(a.nodeType===1)return JP(a,t,!1);if(a.nodeType===3)return{node:a,offset:t??a.nodeValue.length}}n+=i}return{node:e,offset:e.childNodes.length}}function vz({document:e,target:t,clickCount:r,node:n,offset:i}){if(yJ(t))return;let a=_i(t),l=String(a?Ci(t):t.textContent),[u,p]=n?[i,i]:Ez(l,i,r);if(a)return Ms(t,{anchorOffset:u??l.length,focusOffset:p??l.length}),{node:t,start:u??0,end:p??l.length};{let{node:c,offset:m}=py({target:t,node:n,offset:u}),{node:y,offset:g}=py({target:t,node:n,offset:p}),b=t.ownerDocument.createRange();try{b.setStart(c,m),b.setEnd(y,g)}catch{throw new Error("The given offset is out of bounds.")}let w=e.getSelection();return w?.removeAllRanges(),w?.addRange(b.cloneRange()),b}}function Ez(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function wz(e,{document:t,target:r,node:n,offset:i}){let a=py({target:r,node:n,offset:i});if("node"in e){if(a.node===e.node){let l=a.offset<e.start?e.end:e.start,u=a.offset>e.end||a.offset<e.start?a.offset:e.end;Ms(e.node,{anchorOffset:l,focusOffset:u})}}else{let l=e.cloneRange(),u=l.comparePoint(a.node,a.offset);u<0?l.setStart(a.node,a.offset):u>0&&l.setEnd(a.node,a.offset);let p=t.getSelection();p?.removeAllRanges(),p?.addRange(l.cloneRange())}}function zP(e,t){var r,n,i,a,l,u,p,c,m,y,g,b,w,A,x,_,R,j,B,F,E,P,N,L;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((i=e.coords)===null||i===void 0?void 0:i.y)!==((a=t.coords)===null||a===void 0?void 0:a.y)||((l=e.coords)===null||l===void 0?void 0:l.clientX)!==((u=t.coords)===null||u===void 0?void 0:u.clientX)||((p=e.coords)===null||p===void 0?void 0:p.clientY)!==((c=t.coords)===null||c===void 0?void 0:c.clientY)||((m=e.coords)===null||m===void 0?void 0:m.offsetX)!==((y=t.coords)===null||y===void 0?void 0:y.offsetX)||((g=e.coords)===null||g===void 0?void 0:g.offsetY)!==((b=t.coords)===null||b===void 0?void 0:b.offsetY)||((w=e.coords)===null||w===void 0?void 0:w.pageX)!==((A=t.coords)===null||A===void 0?void 0:A.pageX)||((x=e.coords)===null||x===void 0?void 0:x.pageY)!==((_=t.coords)===null||_===void 0?void 0:_.pageY)||((R=e.coords)===null||R===void 0?void 0:R.screenX)!==((j=t.coords)===null||j===void 0?void 0:j.screenX)||((B=e.coords)===null||B===void 0?void 0:B.screenY)!==((F=t.coords)===null||F===void 0?void 0:F.screenY)||((E=e.caret)===null||E===void 0?void 0:E.node)!==((P=t.caret)===null||P===void 0?void 0:P.node)||((N=e.caret)===null||N===void 0?void 0:N.offset)!==((L=t.caret)===null||L===void 0?void 0:L.offset)}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sz=class{move(e,t,r){let n=this.position,i=this.getTarget(e);if(this.position=t,!zP(n,t))return;let a=this.getTarget(e),l=this.getEventInit("mousemove"),[u,p]=$l(i,a);return{leave:()=>{i!==a&&(e.dispatchUIEvent(i,"mouseout",l),u.forEach(c=>e.dispatchUIEvent(c,"mouseleave",l)))},enter:()=>{i!==a&&(e.dispatchUIEvent(a,"mouseover",l),p.forEach(c=>e.dispatchUIEvent(c,"mouseenter",l)))},move:()=>{r||(e.dispatchUIEvent(a,"mousemove",l),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[n]=i;let a=this.getEventInit("mousedown",t.button),l=Gi(i);!r&&(l||e.dispatchUIEvent(i,"mousedown",a))&&(this.startSelecting(e,a.detail),$o(i)),!l&&dy(t.button)===2&&e.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let i=this.getTarget(e);if(!Gi(i)){if(!r){let l=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(i,"mouseup",l),this.endSelecting()}let a=$l(this.buttonDownTarget[n],i)[2][0];if(a){let l=this.getEventInit("click",t.button);l.detail&&(e.dispatchUIEvent(a,l.button===0?"click":"auxclick",l),l.button===0&&l.detail===2&&e.dispatchUIEvent(a,"dblclick",{...this.getEventInit("dblclick",t.button),detail:l.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=dy(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=vz({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&wz(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){sa(this,"position",{}),sa(this,"buttons",new UP),sa(this,"selecting",void 0),sa(this,"buttonDownTarget",{}),sa(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){sa(this,"down",{}),sa(this,"count",{})}})}};function qd(e,t){var r;return((r=HP(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function Az(e){let t=Hn(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let i=t.getComputedStyle(r).pointerEvents;if(i&&!["inherit","unset"].includes(i))return{pointerEvents:i,tree:n}}}var TS=Symbol("Last check for pointer-events");function HP(e,t){let r=t[TS];if(!(e.config.pointerEventsCheck!==gd.Never&&(!r||xS(e.config.pointerEventsCheck,gd.EachApiCall)&&r[xn.Call]!==Qc(e,xn.Call)||xS(e.config.pointerEventsCheck,gd.EachTrigger)&&r[xn.Trigger]!==Qc(e,xn.Trigger))))return r?.result;let n=Az(t);return t[TS]={[xn.Call]:Qc(e,xn.Call),[xn.Trigger]:Qc(e,xn.Trigger),result:n},n}function Nl(e,t){let r=HP(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",_z(r.tree)].join(`
|
|
343
|
+
`))}function _z(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,Cz(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
344
|
+
`)}function Cz(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,i;r=(i=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||i===void 0||(n=i.textContent)===null||n===void 0?void 0:n.trim()}else if(_t(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(l=>{var u;return(u=l.textContent)===null||u===void 0?void 0:u.trim()}).join("|");else if(_t(e,"button")){var a;r=(a=e.textContent)===null||a===void 0?void 0:a.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function xS(e,t){return(e&t)>0}function Li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tz=class{init(e){let t=this.getTarget(e),[,r]=$l(null,t),n=this.getEventInit();return Nl(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!zP(r,t))return;let i=this.getTarget(e),a=this.getEventInit(-1),[l,u]=$l(n,i);return{leave:()=>{qd(e,n)&&n!==i&&(e.dispatchUIEvent(n,"pointerout",a),l.forEach(p=>e.dispatchUIEvent(p,"pointerleave",a)))},enter:()=>{Nl(e,i),n!==i&&(e.dispatchUIEvent(i,"pointerover",a),u.forEach(p=>e.dispatchUIEvent(p,"pointerenter",a)))},move:()=>{e.dispatchUIEvent(i,"pointermove",a)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);Nl(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);Nl(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=$l(t,null),n=this.getEventInit();qd(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:dy(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Li(this,"pointerId",void 0),Li(this,"pointerType",void 0),Li(this,"isPrimary",void 0),Li(this,"buttons",void 0),Li(this,"isMultitouch",!1),Li(this,"isCancelled",!1),Li(this,"isDown",!1),Li(this,"isPrevented",!1),Li(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xz=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),i=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),i.pointerType==="touch"&&i.init(e),i.down(e,t.button),i.pointerType!=="touch"&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),i=n.move(e,r),a=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);i?.leave(),a?.leave(),i?.enter(),a?.enter(),i?.move(),a?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),a=i.isPrevented;if(i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&i.up(e,t.button),i.pointerType==="touch"&&i.release(e),i.pointerType==="touch"&&!i.isMultitouch){let l=this.mouse.move(e,r,a);l?.leave(),l?.enter(),l?.move(),this.mouse.down(e,t,a)}if(!i.isMultitouch){let l=this.mouse.move(e,r,a);l?.leave(),l?.enter(),l?.move(),this.mouse.up(e,t,a)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){_o(this,"system",void 0),_o(this,"mouse",void 0),_o(this,"buttons",void 0),_o(this,"devices",new class{get(t){var r,n,i;return(i=(r=this.registry)[n=t])!==null&&i!==void 0?i:r[n]=new bz}constructor(){_o(this,"registry",{})}}),_o(this,"pointers",new class{new(t,r,n){let i=r!=="touch"||!Object.values(this.registry).some(a=>a.pointerType==="touch"&&!a.isCancelled);return i||Object.values(this.registry).forEach(a=>{a.pointerType===r&&!a.isCancelled&&(a.isMultitouch=!0)}),this.registry[t]=new Tz({pointerId:this.nextId++,pointerType:r,isPrimary:i},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){_o(this,"registry",{}),_o(this,"nextId",1)}}),this.system=e,this.buttons=new UP,this.mouse=new Sz,this.pointers.new("mouse","mouse",this.buttons)}};function RS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var WP=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){RS(this,"keyboard",new fz(this)),RS(this,"pointer",new xz(this))}};async function Rz(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Dz(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function Pz(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function Oz(e){return this.pointer({target:e})}async function Nz(e){return Nl(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Iz({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var I0=(function(e){return e["{"]="}",e["["]="]",e})(I0||{});function GP(e,t){let r=0,n=e[r]in I0?e[r]:"";r+=n.length;let i=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:i,...i===""?Fz(e,r,t):kz(e,r,i,t)}}function Fz(e,t,r){let n=e[t];return KP(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function kz(e,t,r,n){var i,a;let l=e[t]==="/"?"/":"";t+=l.length;let u=r==="{"&&e[t]==="\\";t+=Number(u);let p=u?e[t]:(i=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||i===void 0?void 0:i[0];KP(p,e,t,n),t+=p.length;var c;let m=(c=(a=e.slice(t).match(/^>\d+/))===null||a===void 0?void 0:a[0])!==null&&c!==void 0?c:"";t+=m.length;let y=e[t]==="/"||!m&&e[t]===">"?e[t]:"";t+=y.length;let g=I0[r],b=e[t]===g?g:"";if(!b)throw new Error(YP([!m&&"repeat modifier",!y&&"release modifier",`"${g}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=b.length,{consumedLength:t,descriptor:p,releasePrevious:!!l,repeat:m?Math.max(Number(m.substr(1)),1):1,releaseSelf:Bz(y,m)}}function KP(e,t,r,n){if(!e)throw new Error(YP("key descriptor",t[r],t,n))}function Bz(e,t){if(e)return e==="/";if(t)return!1}function YP(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
345
|
+
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
346
|
+
for more information about how userEvent parses your input.`}function Lz(e,t){let r=[];do{let{type:i,descriptor:a,consumedLength:l,releasePrevious:u,releaseSelf:p=!0,repeat:c}=GP(t,"keyboard");var n;let m=(n=e.find(y=>{if(i==="["){var g;return((g=y.code)===null||g===void 0?void 0:g.toLowerCase())===a.toLowerCase()}else if(i==="{"){var b;return((b=y.key)===null||b===void 0?void 0:b.toLowerCase())===a.toLowerCase()}return y.key===a}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[i==="["?"code":"key"]:a};r.push({keyDef:m,releasePrevious:u,releaseSelf:p,repeat:c}),t=t.slice(l)}while(t);return r}async function Mz(e){let t=Lz(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Rs(this.config),await qz(this,t[r])}async function qz(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:i}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!r){for(let l=1;l<=i;l++)await a.keyboard.keydown(e,t),l<i&&await Rs(e.config);n&&await a.keyboard.keyup(e,t)}}async function jz(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function XP(e){let t=_i(e)?{"text/plain":$z(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=R0(Hn(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function $z(e){let t=pu(e);return Ci(e).substring(t.startOffset,t.endOffset)}async function Vz(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=XP(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await AP(e,n),n}async function Uz(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=XP(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await AP(r.ownerDocument,n),n}async function Jz(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var i;let a=(i=typeof e=="string"?zz(t,e):e)!==null&&i!==void 0?i:await pJ(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:a})}function zz(e,t){let r=R0(Hn(e));return r.setData("text",t),r}function DS(e,t){let r=[];do{let{descriptor:n,consumedLength:i,releasePrevious:a,releaseSelf:l=!0}=GP(t,"pointer"),u=e.find(p=>p.name===n);u&&r.push({keyDef:u,releasePrevious:a,releaseSelf:l}),t=t.slice(i)}while(t);return r}async function Hz(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...DS(t,n)):"keys"in n?r.push(...DS(t,n.keys).map(i=>({...n,...i}))):r.push(n)});for(let n=0;n<r.length;n++)await Rs(this.config),await Wz(this,r[n]);this.system.pointer.resetClickCount()}async function Wz(e,t){var r,n;let i="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",a=e.system.pointer.getPreviousPosition(i);var l,u,p,c;let m={target:(l=t.target)!==null&&l!==void 0?l:Gz(e,a),coords:(u=t.coords)!==null&&u!==void 0?u:a?.coords,caret:{node:(p=t.node)!==null&&p!==void 0?p:PS(t)||a==null||(r=a.caret)===null||r===void 0?void 0:r.node,offset:(c=t.offset)!==null&&c!==void 0?c:PS(t)||a==null||(n=a.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Ol(e,xn.Trigger),await e.system.pointer.release(e,t.keyDef,m)),t.releasePrevious||(Ol(e,xn.Trigger),await e.system.pointer.press(e,t.keyDef,m),t.releaseSelf&&(Ol(e,xn.Trigger),await e.system.pointer.release(e,t.keyDef,m)))):(Ol(e,xn.Trigger),await e.system.pointer.move(e,i,m))}function PS(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function Gz(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function Kz(e){if(!_s(e)||Gi(e))throw new Error("clear()` is only supported on editable elements.");if($o(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(BP(e),!JJ(e))throw new Error("The element content to be cleared could not be selected.");xs(this,e,"","deleteContentBackward")}async function Yz(e,t){return QP.call(this,!0,e,t)}async function Xz(e,t){return QP.call(this,!1,e,t)}async function QP(e,t,r){if(!e&&!t.multiple)throw Ot().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],i=Array.from(t.querySelectorAll('option, [role="option"]')),a=n.map(u=>{if(typeof u!="string"&&i.includes(u))return u;{let p=i.find(c=>c.value===u||c.innerHTML===u);if(p)return p;throw Ot().getElementError(`Value "${String(u)}" not found in options`,t)}}).filter(u=>!Gi(u));if(Gi(t)||!a.length)return;let l=u=>{u.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(_t(t,"select"))if(t.multiple)for(let u of a){let p=this.config.pointerEventsCheck===0?!0:qd(this,u);p&&(this.dispatchUIEvent(u,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(u,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(u,"pointermove"),this.dispatchUIEvent(u,"mousemove"),this.dispatchUIEvent(u,"pointerdown"),this.dispatchUIEvent(u,"mousedown")),$o(t),p&&(this.dispatchUIEvent(u,"pointerup"),this.dispatchUIEvent(u,"mouseup")),l(u),p&&this.dispatchUIEvent(u,"click"),await Rs(this.config)}else if(a.length===1){let u=this.config.pointerEventsCheck===0?!0:qd(this,t);u?await this.click(t):$o(t),l(a[0]),u&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Rs(this.config)}else throw Ot().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let u of a)await this.click(u),await this.unhover(u);else throw Ot().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function Qz(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:a}={}){e.disabled||(r||await this.click(e),i!==void 0&&Pl(e,i,a??i),await this.keyboard(t),n||await jz(this))}var OS=Symbol("files and value properties are mocked");function Xh(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function Zz(e,t){var r;(r=e[OS])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),i=Object.getOwnPropertyDescriptor(e,"value"),a=Object.getOwnPropertyDescriptor(e,"files");function l(){Xh(e,"type",n),Xh(e,"value",i),Xh(e,"files",a)}e[OS]={restore:l},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(u){if(u==="")l();else{var p;i==null||(p=i.set)===null||p===void 0||p.call(e,u)}}},type:{configurable:!0,get:()=>"file",set(u){u!=="file"&&(l(),e.type=u)}}})}async function eH(e,t){let r=_t(e,"label")?e.control:e;if(!r||!_t(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Gi(e))return;let n=(Array.isArray(t)?t:[t]).filter(a=>!this.config.applyAccept||tH(a,r.accept)).slice(0,r.multiple?void 0:1),i=()=>{var a;n.length===((a=r.files)===null||a===void 0?void 0:a.length)&&n.every((l,u)=>{var p;return l===((p=r.files)===null||p===void 0?void 0:p.item(u))})||(Zz(r,x0(Hn(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",i),await this.click(e),r.removeEventListener("fileDialog",i)}function Zc(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function tH(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return Zc(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Zc(e.name).endsWith(n):r.includes(n)?Zc(e.type).startsWith(n.replace("*","")):Zc(e.type)===n)}var NS={click:Rz,dblClick:Dz,tripleClick:Pz,hover:Oz,unhover:Nz,tab:Iz,keyboard:Mz,copy:Vz,cut:Uz,paste:Jz,pointer:Hz,clear:Kz,deselectOptions:Xz,selectOptions:Yz,type:Qz,upload:eH};function rH(e){return Ot().asyncWrapper(e)}var ZP={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:hz,pointerMap:mz,pointerEventsCheck:gd.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},nH={...ZP,writeToClipboard:!0};function eO(e={},t=nH,r){let n=sH(e,r,t);return{...t,...e,document:n}}function iH(e={}){let t=eO(e);VP(t.document),$P(Hn(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return uJ(n),F0(t).api}function sn({keyboardState:e,pointerState:t,...r}={},n){let i=eO(r,ZP,n);VP(i.document),$P(Hn(i.document).HTMLElement);var a;let l=(a=t??e)!==null&&a!==void 0?a:new WP;return{api:F0(i,l).api,system:l}}function oH(e){return F0({...this.config,...e},this.system).api}function aH(e,t){function r(...n){return Ol(e,xn.Call),rH(()=>t.apply(e,n).then(async i=>(await Rs(e.config),i)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function F0(e,t=new WP){let r={};return Object.assign(r,{config:e,dispatchEvent:jP.bind(r),dispatchUIEvent:iz.bind(r),system:t,levelRefs:{},...NS}),{instance:r,api:{...Object.fromEntries(Object.entries(NS).map(([n,i])=>[n,aH(r,i)])),setup:oH.bind(r)}}}function sH(e,t,r){var n,i;return(i=(n=e.document)!==null&&n!==void 0?n:t&&uz(t))!==null&&i!==void 0?i:r.document}var tO={};vn(tO,{clear:()=>lH,click:()=>uH,copy:()=>cH,cut:()=>dH,dblClick:()=>pH,deselectOptions:()=>fH,hover:()=>hH,keyboard:()=>mH,paste:()=>gH,pointer:()=>yH,selectOptions:()=>bH,tab:()=>AH,tripleClick:()=>vH,type:()=>EH,unhover:()=>wH,upload:()=>SH});function lH(e){return sn().api.clear(e)}function uH(e,t={}){return sn(t,e).api.click(e)}function cH(e={}){return sn(e).api.copy()}function dH(e={}){return sn(e).api.cut()}function pH(e,t={}){return sn(t).api.dblClick(e)}function fH(e,t,r={}){return sn(r).api.deselectOptions(e,t)}function hH(e,t={}){return sn(t).api.hover(e)}async function mH(e,t={}){let{api:r,system:n}=sn(t);return r.keyboard(e).then(()=>n)}async function yH(e,t={}){let{api:r,system:n}=sn(t);return r.pointer(e).then(()=>n)}function gH(e,t){return sn(t).api.paste(e)}function bH(e,t,r={}){return sn(r).api.selectOptions(e,t)}function vH(e,t={}){return sn(t).api.tripleClick(e)}function EH(e,t,r={}){return sn(r,e).api.type(e,t,r)}function wH(e,t={}){let{api:r,system:n}=sn(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function SH(e,t,r={}){return sn(r).api.upload(e,t)}function AH(e={}){return sn().api.tab(e)}var rO={...tO,setup:iH},fy=wu({...WR},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});fy.screen=new Proxy(fy.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Sr.warn(Rt`
|
|
347
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
348
|
+
|
|
349
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
350
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:_H,configure:CH,createEvent:TH,fireEvent:xH,findAllByAltText:RH,findAllByDisplayValue:DH,findAllByLabelText:PH,findAllByPlaceholderText:OH,findAllByRole:NH,findAllByTestId:IH,findAllByText:FH,findAllByTitle:kH,findByAltText:BH,findByDisplayValue:LH,findByLabelText:MH,findByPlaceholderText:qH,findByRole:jH,findByTestId:$H,findByText:VH,findByTitle:UH,getAllByAltText:JH,getAllByDisplayValue:zH,getAllByLabelText:HH,getAllByPlaceholderText:WH,getAllByRole:GH,getAllByTestId:KH,getAllByText:YH,getAllByTitle:XH,getByAltText:QH,getByDisplayValue:ZH,getByLabelText:eW,getByPlaceholderText:tW,getByRole:rW,getByTestId:nW,getByText:iW,getByTitle:oW,getConfig:aW,getDefaultNormalizer:sW,getElementError:lW,getNodeText:uW,getQueriesForElement:cW,getRoles:dW,getSuggestedQuery:pW,isInaccessible:fW,logDOM:hW,logRoles:mW,prettyDOM:yW,queries:gW,queryAllByAltText:bW,queryAllByAttribute:vW,queryAllByDisplayValue:EW,queryAllByLabelText:wW,queryAllByPlaceholderText:SW,queryAllByRole:AW,queryAllByTestId:_W,queryAllByText:CW,queryAllByTitle:TW,queryByAltText:xW,queryByAttribute:RW,queryByDisplayValue:DW,queryByLabelText:PW,queryByPlaceholderText:OW,queryByRole:NW,queryByTestId:IW,queryByText:FW,queryByTitle:kW,queryHelpers:BW,screen:LW,waitFor:MW,waitForElementToBeRemoved:qW,within:nO,prettyFormat:jW}=fy,iO=rO,{userEvent:$W}=wu({userEvent:rO},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:VW}=wu({expect:jR},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===Q){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(i=>!r.includes(i));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),UW={mock:()=>{}},IS=!1,JW=e=>{let{parameters:t}=e;t?.actions?.disable||IS||($R((r,n)=>{let i=r.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>i.startsWith(a)))&&Nu(i)(n)}),IS=!0)},zW=[JW],FS=()=>({...XC,...ZC}),jd="backgrounds",HW={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:ni}=globalThis,WW=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,kS=e=>{(Array.isArray(e)?e:[e]).forEach(GW)},GW=e=>{if(!ni)return;let t=ni.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},KW=(e,t)=>{if(!ni)return;let r=ni.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ni.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ni.head.appendChild(n)}},YW=(e,t,r)=>{if(!ni)return;let n=ni.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=ni.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=ni.getElementById(a);l?l.parentElement?.insertBefore(i,l):ni.head.appendChild(i)}},XW={cellSize:100,cellAmount:10,opacity:.8},BS="addon-backgrounds",LS="addon-backgrounds-grid",QW=WW()?"":"transition: background-color 0.3s;",ZW=(e,t)=>{let{globals:r={},parameters:n={},viewMode:i,id:a}=t,{options:l=HW,disable:u,grid:p=XW}=n[jd]||{},c=r[jd]||{},m=typeof c=="string"?c:c?.value,y=m?l[m]:void 0,g=typeof y=="string"?y:y?.value||"transparent",b=typeof c=="string"?!1:c.grid||!1,w=!!y&&!u,A=i==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",x=i==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",_=n.layout===void 0||n.layout==="padded",R=i==="docs"?20:_?16:0,{cellAmount:j,cellSize:B,opacity:F,offsetX:E=R,offsetY:P=R}=p,N=i==="docs"?`${BS}-docs-${a}`:`${BS}-color`,L=i==="docs"?a:null;Sa(()=>{let H=`
|
|
351
|
+
${A} {
|
|
352
|
+
background: ${g} !important;
|
|
353
|
+
${QW}
|
|
354
|
+
}`;if(!w){kS(N);return}YW(N,H,L)},[A,N,L,w,g]);let Z=i==="docs"?`${LS}-docs-${a}`:`${LS}`;return Sa(()=>{if(!b){kS(Z);return}let H=[`${B*j}px ${B*j}px`,`${B*j}px ${B*j}px`,`${B}px ${B}px`,`${B}px ${B}px`].join(", "),te=`
|
|
355
|
+
${x} {
|
|
356
|
+
background-size: ${H} !important;
|
|
357
|
+
background-position: ${E}px ${P}px, ${E}px ${P}px, ${E}px ${P}px, ${E}px ${P}px !important;
|
|
358
|
+
background-blend-mode: difference !important;
|
|
359
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${F}) 1px, transparent 1px),
|
|
360
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${F}) 1px, transparent 1px),
|
|
361
|
+
linear-gradient(rgba(130, 130, 130, ${F/2}) 1px, transparent 1px),
|
|
362
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${F/2}) 1px, transparent 1px) !important;
|
|
363
|
+
}
|
|
364
|
+
`;KW(Z,te)},[j,B,x,Z,b,E,P,F]),e()},eG=globalThis.FEATURES?.backgrounds?[ZW]:[],tG={[jd]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},rG={[jd]:{value:void 0,grid:!1}},MS=()=>({decorators:eG,parameters:tG,initialGlobals:rG}),{step:nG}=wu({step:async(e,t,r)=>t(r)},{intercept:!0}),qS=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:nG}),iG=e=>{let t=getComputedStyle(e),r=e.getBoundingClientRect();return!(r.width>0&&r.height>0&&t.visibility!=="hidden"&&Number(t.opacity)>0&&t.display!=="none")},oG=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.renderAnalysis?.enabled)return;let n=iG(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},jS=()=>({afterEach:oG}),_p="storybook/highlight",aG=`${_p}/add`,sG=`${_p}/remove`,lG=`${_p}/reset`,uG=`${_p}/scroll-into-view`,$S=2147483647,Po=28,VS={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},cG="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Ir=(e,t={},r)=>{let n=cG.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,a])=>{/[A-Z]/.test(i)?(i==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),a())})),i==="onMouseEnter"&&n.addEventListener("mouseenter",a),i==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(i,a)}),r?.forEach(i=>{if(!(i==null||i===!1))try{n.appendChild(i)}catch{n.appendChild(document.createTextNode(String(i)))}}),n},ed=e=>VS[e]&&Ir("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},VS[e].map(t=>Ir("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),dG=e=>{if("elements"in e){let{elements:n,color:i,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},pG=e=>e instanceof Function,Cl=new Map,la=new Map,td=new Map,Mi=e=>{let t=Symbol();return la.set(t,[]),Cl.set(t,e),{get:()=>Cl.get(t),set:r=>{let n=Cl.get(t),i=pG(r)?r(n):r;i!==n&&(Cl.set(t,i),la.get(t)?.forEach(a=>{td.get(a)?.(),td.set(a,a(i))}))},subscribe:r=>(la.get(t)?.push(r),()=>{let n=la.get(t);n&&la.set(t,n.filter(i=>i!==r))}),teardown:()=>{la.get(t)?.forEach(r=>{td.get(r)?.(),td.delete(r)}),la.delete(t),Cl.delete(t)}}},US=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:i=0}=n;for(let a of n.selectors){let l=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let u of l){let p=r.get(u);(!p||p.priority<=i)&&r.set(u,{...n,priority:i,selectors:Array.from(new Set((p?.selectors||[]).concat(a)))})}}}return r},fG=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:i,focusStyles:a,menu:l}])=>{let{top:u,left:p,width:c,height:m}=t.getBoundingClientRect(),{position:y}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:i,focusStyles:a,menu:l,top:y==="fixed"?u:u+window.scrollY,left:y==="fixed"?p:p+window.scrollX,width:c,height:m}}).sort((t,r)=>r.width*r.height-t.width*t.height),JS=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:i}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&i>=r.top&&i<=r.top+r.height},zS=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:i,width:a,height:l}=e;l<Po&&(i=i-Math.round((Po-l)/2),l=Po),a<Po&&(n=n-Math.round((Po-a)/2),a=Po),t.style.position==="fixed"&&(n+=window.scrollX,i+=window.scrollY);let{x:u,y:p}=r;return u>=n&&u<=n+a&&p>=i&&p<=i+l},hG=(e,t,r={})=>{let{x:n,y:i}=t,{margin:a=5,topOffset:l=0,centered:u=!1}=r,{scrollX:p,scrollY:c,innerHeight:m,innerWidth:y}=window,g=Math.min(e.style.position==="fixed"?i-c:i,m-e.clientHeight-a-l+c),b=u?e.clientWidth/2:0,w=e.style.position==="fixed"?Math.max(Math.min(n-p,y-b-a),b+a):Math.max(Math.min(n,y-b-a+p),b+a+p);Object.assign(e.style,{...w!==n&&{left:`${w}px`},...g!==i&&{top:`${g}px`}})},HS=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},mG=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},yG=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),sr="storybook-highlights-menu",WS="storybook-highlights-root",gG="storybook-root",bG=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Mi([]),n=Mi(new Map),i=Mi([]),a=Mi(),l=Mi(),u=Mi([]),p=Mi([]),c=Mi(),m=Mi(),y=t.getElementById(WS);r.subscribe(()=>{y||(y=Ir("div",{id:WS}),t.body.appendChild(y))}),r.subscribe(P=>{let N=t.getElementById(gG);if(!N)return;n.set(US(P));let L=new MutationObserver(()=>n.set(US(P)));return L.observe(N,{subtree:!0,childList:!0}),()=>{L.disconnect()}}),n.subscribe(P=>{let N=()=>requestAnimationFrame(()=>i.set(fG(P))),L=new ResizeObserver(N);L.observe(t.body),Array.from(P.keys()).forEach(H=>L.observe(H));let Z=Array.from(t.body.querySelectorAll("*")).filter(H=>{let{overflow:te,overflowX:W,overflowY:$}=window.getComputedStyle(H);return["auto","scroll"].some(K=>[te,W,$].includes(K))});return Z.forEach(H=>H.addEventListener("scroll",N)),()=>{L.disconnect(),Z.forEach(H=>H.removeEventListener("scroll",N))}}),n.subscribe(P=>{let N=Array.from(P.keys()).filter(({style:Z})=>Z.position==="sticky"),L=()=>requestAnimationFrame(()=>{i.set(Z=>Z.map(H=>{if(N.includes(H.element)){let{top:te,left:W}=H.element.getBoundingClientRect();return{...H,top:te+window.scrollY,left:W+window.scrollX}}return H}))});return t.addEventListener("scroll",L),()=>t.removeEventListener("scroll",L)}),n.subscribe(P=>{u.set(N=>N.filter(({element:L})=>P.has(L)))}),u.subscribe(P=>{P.length?(m.set(N=>P.some(L=>L.element===N?.element)?N:void 0),c.set(N=>P.some(L=>L.element===N?.element)?N:void 0)):(m.set(void 0),c.set(void 0),a.set(void 0))});let g=new Map(new Map);r.subscribe(P=>{P.forEach(({keyframes:N})=>{if(N){let L=g.get(N);L||(L=t.createElement("style"),L.setAttribute("data-highlight","keyframes"),g.set(N,L),t.head.appendChild(L)),L.innerHTML=N}}),g.forEach((N,L)=>{P.some(Z=>Z.keyframes===L)||(N.remove(),g.delete(L))})});let b=new Map(new Map);i.subscribe(P=>{P.forEach(N=>{let L=b.get(N.element);if(y&&!L){let Z={popover:"manual","data-highlight-dimensions":`w${N.width.toFixed(0)}h${N.height.toFixed(0)}`,"data-highlight-coordinates":`x${N.left.toFixed(0)}y${N.top.toFixed(0)}`};L=y.appendChild(Ir("div",Z,[Ir("div")])),b.set(N.element,L)}}),b.forEach((N,L)=>{P.some(({element:Z})=>Z===L)||(N.remove(),b.delete(L))})}),i.subscribe(P=>{let N=P.filter(Z=>Z.menu);if(!N.length)return;let L=Z=>{requestAnimationFrame(()=>{let H=t.getElementById(sr),te={x:Z.pageX,y:Z.pageY};if(H&&!JS(H,te)){let W=N.filter($=>{let K=b.get($.element);return zS($,K,te)});a.set(W.length?te:void 0),u.set(W)}})};return t.addEventListener("click",L),()=>t.removeEventListener("click",L)});let w=()=>{let P=t.getElementById(sr),N=l.get();!N||P&&JS(P,N)||p.set(L=>{let Z=i.get().filter($=>{let K=b.get($.element);return zS($,K,N)}),H=L.filter($=>Z.includes($)),te=Z.filter($=>!L.includes($)),W=L.length-H.length;return te.length||W?[...H,...te]:L})};l.subscribe(w),i.subscribe(w);let A=()=>{let P=m.get(),N=P?[P]:u.get(),L=N.length===1?N[0]:c.get(),Z=a.get()!==void 0;i.get().forEach(H=>{let te=b.get(H.element);if(te){let W=L===H,$=Z?L?W:N.includes(H):p.get()?.includes(H);Object.assign(te.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...H.styles,...$?H.hoverStyles:{},...W?H.focusStyles:{},position:getComputedStyle(H.element).position==="fixed"?"fixed":"absolute",zIndex:$S-10,top:`${H.top}px`,left:`${H.left}px`,width:`${H.width}px`,height:`${H.height}px`,margin:0,padding:0,cursor:H.menu&&$?"pointer":"default",pointerEvents:H.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(te.children[0].style,{width:"100%",height:"100%",minHeight:`${Po}px`,minWidth:`${Po}px`,boxSizing:"content-box",padding:te.style.outlineWidth||"0px"}),HS(te)}})};i.subscribe(A),u.subscribe(A),p.subscribe(A),c.subscribe(A),m.subscribe(A);let x=()=>{if(!y)return;let P=t.getElementById(sr);if(P)P.innerHTML="";else{let H={id:sr,popover:"manual"};P=y.appendChild(Ir("div",H)),y.appendChild(Ir("style",{},[`
|
|
365
|
+
#${sr} {
|
|
366
|
+
position: absolute;
|
|
367
|
+
z-index: ${$S};
|
|
368
|
+
width: 300px;
|
|
369
|
+
padding: 0px;
|
|
370
|
+
margin: 15px 0 0 0;
|
|
371
|
+
transform: translateX(-50%);
|
|
372
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
373
|
+
font-size: 12px;
|
|
374
|
+
background: white;
|
|
375
|
+
border: none;
|
|
376
|
+
border-radius: 6px;
|
|
377
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
378
|
+
color: #2E3438;
|
|
379
|
+
}
|
|
380
|
+
#${sr} ul {
|
|
381
|
+
list-style: none;
|
|
382
|
+
margin: 0;
|
|
383
|
+
padding: 0;
|
|
384
|
+
}
|
|
385
|
+
#${sr} > ul {
|
|
386
|
+
max-height: 300px;
|
|
387
|
+
overflow-y: auto;
|
|
388
|
+
padding: 4px 0;
|
|
389
|
+
}
|
|
390
|
+
#${sr} li {
|
|
391
|
+
padding: 0 4px;
|
|
392
|
+
margin: 0;
|
|
393
|
+
}
|
|
394
|
+
#${sr} li > :not(ul) {
|
|
395
|
+
display: flex;
|
|
396
|
+
padding: 8px;
|
|
397
|
+
margin: 0;
|
|
398
|
+
align-items: center;
|
|
399
|
+
gap: 8px;
|
|
400
|
+
border-radius: 4px;
|
|
401
|
+
}
|
|
402
|
+
#${sr} button {
|
|
403
|
+
width: 100%;
|
|
404
|
+
border: 0;
|
|
405
|
+
background: transparent;
|
|
406
|
+
color: inherit;
|
|
407
|
+
text-align: left;
|
|
408
|
+
font-family: inherit;
|
|
409
|
+
font-size: inherit;
|
|
410
|
+
}
|
|
411
|
+
#${sr} button:focus-visible {
|
|
412
|
+
outline-color: #029CFD;
|
|
413
|
+
}
|
|
414
|
+
#${sr} button:hover {
|
|
415
|
+
background: rgba(2, 156, 253, 0.07);
|
|
416
|
+
color: #029CFD;
|
|
417
|
+
cursor: pointer;
|
|
418
|
+
}
|
|
419
|
+
#${sr} li code {
|
|
420
|
+
white-space: nowrap;
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
text-overflow: ellipsis;
|
|
423
|
+
line-height: 16px;
|
|
424
|
+
font-size: 11px;
|
|
425
|
+
}
|
|
426
|
+
#${sr} li svg {
|
|
427
|
+
flex-shrink: 0;
|
|
428
|
+
margin: 1px;
|
|
429
|
+
color: #73828C;
|
|
430
|
+
}
|
|
431
|
+
#${sr} li > button:hover svg, #${sr} li > button:focus-visible svg {
|
|
432
|
+
color: #029CFD;
|
|
433
|
+
}
|
|
434
|
+
#${sr} .element-list li svg {
|
|
435
|
+
display: none;
|
|
436
|
+
}
|
|
437
|
+
#${sr} li.selectable svg, #${sr} li.selected svg {
|
|
438
|
+
display: block;
|
|
439
|
+
}
|
|
440
|
+
#${sr} .menu-list {
|
|
441
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
442
|
+
}
|
|
443
|
+
#${sr} .menu-list > li:not(:last-child) {
|
|
444
|
+
padding-bottom: 4px;
|
|
445
|
+
margin-bottom: 4px;
|
|
446
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
447
|
+
}
|
|
448
|
+
#${sr} .menu-items, #${sr} .menu-items li {
|
|
449
|
+
padding: 0;
|
|
450
|
+
}
|
|
451
|
+
#${sr} .menu-item {
|
|
452
|
+
display: flex;
|
|
453
|
+
}
|
|
454
|
+
#${sr} .menu-item-content {
|
|
455
|
+
display: flex;
|
|
456
|
+
flex-direction: column;
|
|
457
|
+
flex-grow: 1;
|
|
458
|
+
}
|
|
459
|
+
`]))}let N=m.get(),L=N?[N]:u.get();if(L.length&&(P.style.position=getComputedStyle(L[0].element).position==="fixed"?"fixed":"absolute",P.appendChild(Ir("ul",{class:"element-list"},L.map(H=>{let te=L.length>1&&!!H.menu?.some(K=>K.some(ne=>!ne.selectors||ne.selectors.some(ae=>H.selectors.includes(ae)))),W=te?{class:"selectable",onClick:()=>m.set(H),onMouseEnter:()=>c.set(H),onMouseLeave:()=>c.set(void 0)}:N?{class:"selected",onClick:()=>m.set(void 0)}:{},$=te||N;return Ir("li",W,[Ir($?"button":"div",$?{type:"button"}:{},[N?ed("chevronLeft"):null,Ir("code",{},[H.element.outerHTML]),te?ed("chevronRight"):null])])})))),m.get()||u.get().length===1){let H=m.get()||u.get()[0],te=H.menu?.filter(W=>W.some($=>!$.selectors||$.selectors.some(K=>H.selectors.includes(K))));te?.length&&P.appendChild(Ir("ul",{class:"menu-list"},te.map(W=>Ir("li",{},[Ir("ul",{class:"menu-items"},W.map(({id:$,title:K,description:ne,iconLeft:ae,iconRight:oe,clickEvent:Ae})=>{let Ce=Ae&&(()=>e.emit(Ae,$,yG(H)));return Ir("li",{},[Ir(Ce?"button":"div",Ce?{class:"menu-item",type:"button",onClick:Ce}:{class:"menu-item"},[ae?ed(ae):null,Ir("div",{class:"menu-item-content"},[Ir(ne?"strong":"span",{},[K]),ne&&Ir("span",{},[ne])]),oe?ed(oe):null])])}))]))))}let Z=a.get();Z?(Object.assign(P.style,{display:"block",left:`${P.style.position==="fixed"?Z.x-window.scrollX:Z.x}px`,top:`${P.style.position==="fixed"?Z.y-window.scrollY:Z.y}px`}),HS(P),requestAnimationFrame(()=>hG(P,Z,{topOffset:15,centered:!0}))):(mG(P),Object.assign(P.style,{display:"none"}))};u.subscribe(x),m.subscribe(x);let _=P=>{let N=dG(P);r.set(L=>{let Z=N.id?L.filter(H=>H.id!==N.id):L;return N.selectors?.length?[...Z,N]:Z})},R=P=>{P&&r.set(N=>N.filter(L=>L.id!==P))},j=()=>{r.set([]),n.set(new Map),i.set([]),a.set(void 0),l.set(void 0),u.set([]),p.set([]),c.set(void 0),m.set(void 0)},B,F=(P,N)=>{let L="scrollIntoView-highlight";clearTimeout(B),R(L);let Z=t.querySelector(P);if(!Z){console.warn(`Cannot scroll into view: ${P} not found`);return}Z.scrollIntoView({behavior:"smooth",block:"center",...N});let H=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(te=>[...te,{id:L,priority:1e3,selectors:[P],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${H} 3s linear forwards`},keyframes:`@keyframes ${H} {
|
|
460
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
461
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
462
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
463
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
464
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
465
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
466
|
+
}`}]),B=setTimeout(()=>R(L),3500)},E=P=>{requestAnimationFrame(()=>l.set({x:P.pageX,y:P.pageY}))};t.body.addEventListener("mousemove",E),e.on(aG,_),e.on(sG,R),e.on(lG,j),e.on(uG,F),e.on(wa,({newPhase:P})=>{P==="loading"&&j()})};globalThis?.FEATURES?.highlight&&Jn?.ready&&Jn.ready().then(bG);var GS=()=>({}),vG="measureEnabled";function oO(){let e=He.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function EG(){let e=He.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Hi(t!=null);let{width:r,height:n}=oO();return hy(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",He.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function hy(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let i=He.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(n*i),t.scale(i,i)}var Fr={};function wG(){Fr.canvas||(Fr=EG())}function aO(){Fr.context&&Fr.context.clearRect(0,0,Fr.width??0,Fr.height??0)}function SG(e){aO(),e(Fr.context)}function AG(){Hi(Fr.canvas),Hi(Fr.context),hy(Fr.canvas,Fr.context,{width:0,height:0});let{width:e,height:t}=oO();hy(Fr.canvas,Fr.context,{width:e,height:t}),Fr.width=e,Fr.height=t}function _G(){Fr.canvas&&(aO(),Fr.canvas.parentNode?.removeChild(Fr.canvas),Fr={})}var is={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Ji=6;function KS(e,{x:t,y:r,w:n,h:i,r:a}){t=t-n/2,r=r-i/2,n<2*a&&(a=n/2),i<2*a&&(a=i/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+i,a),e.arcTo(t+n,r+i,t,r+i,a),e.arcTo(t,r+i,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}function CG(e,{padding:t,border:r,width:n,height:i,top:a,left:l}){let u=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom,c=l+r.left+t.left,m=a+r.top+t.top;return e==="top"?c+=u/2:e==="right"?(c+=u,m+=p/2):e==="bottom"?(c+=u/2,m+=p):e==="left"?m+=p/2:e==="center"&&(c+=u/2,m+=p/2),{x:c,y:m}}function TG(e,t,{margin:r,border:n,padding:i},a,l){let u=g=>0,p=0,c=0,m=l?1:.5,y=l?a*2:0;return e==="padding"?u=g=>i[g]*m+y:e==="border"?u=g=>i[g]+n[g]*m+y:e==="margin"&&(u=g=>i[g]+n[g]+r[g]*m+y),t==="top"?c=-u("top"):t==="right"?p=u("right"):t==="bottom"?c=u("bottom"):t==="left"&&(p=-u("left")),{offsetX:p,offsetY:c}}function xG(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function RG(e,t,r){return e==="top"?t.y=r.y-r.h-Ji:e==="right"?t.x=r.x+r.w/2+Ji+t.w/2:e==="bottom"?t.y=r.y+r.h+Ji:e==="left"&&(t.x=r.x-r.w/2-Ji-t.w/2),{x:t.x,y:t.y}}function sO(e,t,{x:r,y:n,w:i,h:a},l){return KS(e,{x:r,y:n,w:i,h:a,r:3}),e.fillStyle=`${is[t]}dd`,e.fill(),e.strokeStyle=is[t],e.stroke(),e.fillStyle=is.text,e.fillText(l,r,n),KS(e,{x:r,y:n,w:i,h:a,r:3}),e.fillStyle=`${is[t]}dd`,e.fill(),e.strokeStyle=is[t],e.stroke(),e.fillStyle=is.text,e.fillText(l,r,n),{x:r,y:n,w:i,h:a}}function lO(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=r.width+Ji*2,a=n+Ji*2;return{w:i,h:a}}function DG(e,t,{type:r,position:n="center",text:i},a,l=!1){let{x:u,y:p}=CG(n,t),{offsetX:c,offsetY:m}=TG(r,n,t,Ji+1,l);u+=c,p+=m;let{w:y,h:g}=lO(e,i);if(a&&xG({x:u,y:p,w:y,h:g},a)){let b=RG(n,{x:u,y:p,w:y},a);u=b.x,p=b.y}return sO(e,r,{x:u,y:p,w:y,h:g},i)}function PG(e,{w:t,h:r}){let n=t*.5+Ji,i=r*.5+Ji;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*i}}function OG(e,t,{type:r,text:n}){let{floatingAlignment:i,extremities:a}=t,l=a[i.x],u=a[i.y],{w:p,h:c}=lO(e,n),{offsetX:m,offsetY:y}=PG(i,{w:p,h:c});return l+=m,u+=y,sO(e,r,{x:l,y:u,w:p,h:c},n)}function Tl(e,t,r,n){let i=[];r.forEach((a,l)=>{let u=n&&a.position==="center"?OG(e,t,a):DG(e,t,a,i[l-1],n);i[l]=u})}function NG(e,t,r,n){let i=r.reduce((a,l)=>(Object.prototype.hasOwnProperty.call(a,l.position)||(a[l.position]=[]),a[l.position]?.push(l),a),{});i.top&&Tl(e,t,i.top,n),i.right&&Tl(e,t,i.right,n),i.bottom&&Tl(e,t,i.bottom,n),i.left&&Tl(e,t,i.left,n),i.center&&Tl(e,t,i.center,n)}var Cp={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},YS=30;function $n(e){return parseInt(e.replace("px",""),10)}function us(e){return Number.isInteger(e)?e:e.toFixed(2)}function k0(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function IG(e){let t={top:He.window.scrollY,bottom:He.window.scrollY+He.window.innerHeight,left:He.window.scrollX,right:He.window.scrollX+He.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function FG(e){let t=He.getComputedStyle(e),{top:r,left:n,right:i,bottom:a,width:l,height:u}=e.getBoundingClientRect(),{marginTop:p,marginBottom:c,marginLeft:m,marginRight:y,paddingTop:g,paddingBottom:b,paddingLeft:w,paddingRight:A,borderBottomWidth:x,borderTopWidth:_,borderLeftWidth:R,borderRightWidth:j}=t;r=r+He.window.scrollY,n=n+He.window.scrollX,a=a+He.window.scrollY,i=i+He.window.scrollX;let B={top:$n(p),bottom:$n(c),left:$n(m),right:$n(y)},F={top:$n(g),bottom:$n(b),left:$n(w),right:$n(A)},E={top:$n(_),bottom:$n(x),left:$n(R),right:$n(j)},P={top:r-B.top,bottom:a+B.bottom,left:n-B.left,right:i+B.right};return{margin:B,padding:F,border:E,top:r,left:n,bottom:a,right:i,width:l,height:u,extremities:P,floatingAlignment:IG(P)}}function kG(e,{margin:t,width:r,height:n,top:i,left:a,bottom:l,right:u}){let p=n+t.bottom+t.top;e.fillStyle=Cp.margin,e.fillRect(a,i-t.top,r,t.top),e.fillRect(u,i-t.top,t.right,p),e.fillRect(a,l,r,t.bottom),e.fillRect(a-t.left,i-t.top,t.left,p);let c=[{type:"margin",text:us(t.top),position:"top"},{type:"margin",text:us(t.right),position:"right"},{type:"margin",text:us(t.bottom),position:"bottom"},{type:"margin",text:us(t.left),position:"left"}];return k0(c)}function BG(e,{padding:t,border:r,width:n,height:i,top:a,left:l,bottom:u,right:p}){let c=n-r.left-r.right,m=i-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Cp.padding,e.fillRect(l+r.left,a+r.top,c,t.top),e.fillRect(p-t.right-r.right,a+t.top+r.top,t.right,m),e.fillRect(l+r.left,u-t.bottom-r.bottom,c,t.bottom),e.fillRect(l+r.left,a+t.top+r.top,t.left,m);let y=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return k0(y)}function LG(e,{border:t,width:r,height:n,top:i,left:a,bottom:l,right:u}){let p=n-t.top-t.bottom;e.fillStyle=Cp.border,e.fillRect(a,i,r,t.top),e.fillRect(a,l-t.bottom,r,t.bottom),e.fillRect(a,i+t.top,t.left,p),e.fillRect(u-t.right,i+t.top,t.right,p);let c=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return k0(c)}function MG(e,{padding:t,border:r,width:n,height:i,top:a,left:l}){let u=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Cp.content,e.fillRect(l+r.left+t.left,a+r.top+t.top,u,p),[{type:"content",position:"center",text:`${us(u)} x ${us(p)}`}]}function qG(e){return t=>{if(e&&t){let r=FG(e),n=kG(t,r),i=BG(t,r),a=LG(t,r),l=MG(t,r),u=r.width<=YS*3||r.height<=YS;NG(t,r,[...l,...i,...a,...n],u)}}}function jG(e){SG(qG(e))}var $G=(e,t)=>{let r=He.document.elementFromPoint(e,t),n=i=>{if(i&&i.shadowRoot){let a=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(a)?i:a.shadowRoot?n(a):a}return i};return n(r)||r},XS,rd={x:0,y:0};function QS(e,t){XS=$G(e,t),jG(XS)}var VG=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Sa(()=>{if(typeof globalThis.document>"u")return;let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),rd.x=i.clientX,rd.y=i.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Sa(()=>{let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),QS(a.clientX,a.clientY)})},i=()=>{window.requestAnimationFrame(()=>{AG()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),wG(),globalThis.window.addEventListener("resize",i),QS(rd.x,rd.y)),()=>{globalThis.window.removeEventListener("resize",i),_G()}},[r,t.viewMode]),e()},UG=globalThis.FEATURES?.measure?[VG]:[],JG={[vG]:!1},ZS=()=>({decorators:UG,initialGlobals:JG}),uO="outline",eA=e=>{(Array.isArray(e)?e:[e]).forEach(zG)},zG=e=>{let t=typeof e=="string"?e:e.join(""),r=He.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},HG=(e,t)=>{let r=He.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=He.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,He.document.head.appendChild(n)}};function WG(e){return Rt`
|
|
467
|
+
${e} body {
|
|
468
|
+
outline: 1px solid #2980b9 !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
${e} article {
|
|
472
|
+
outline: 1px solid #3498db !important;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
${e} nav {
|
|
476
|
+
outline: 1px solid #0088c3 !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
${e} aside {
|
|
480
|
+
outline: 1px solid #33a0ce !important;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
${e} section {
|
|
484
|
+
outline: 1px solid #66b8da !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e} header {
|
|
488
|
+
outline: 1px solid #99cfe7 !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
${e} footer {
|
|
492
|
+
outline: 1px solid #cce7f3 !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${e} h1 {
|
|
496
|
+
outline: 1px solid #162544 !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e} h2 {
|
|
500
|
+
outline: 1px solid #314e6e !important;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
${e} h3 {
|
|
504
|
+
outline: 1px solid #3e5e85 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e} h4 {
|
|
508
|
+
outline: 1px solid #449baf !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
${e} h5 {
|
|
512
|
+
outline: 1px solid #c7d1cb !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
${e} h6 {
|
|
516
|
+
outline: 1px solid #4371d0 !important;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
${e} main {
|
|
520
|
+
outline: 1px solid #2f4f90 !important;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
${e} address {
|
|
524
|
+
outline: 1px solid #1a2c51 !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
${e} div {
|
|
528
|
+
outline: 1px solid #036cdb !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
${e} p {
|
|
532
|
+
outline: 1px solid #ac050b !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${e} hr {
|
|
536
|
+
outline: 1px solid #ff063f !important;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
${e} pre {
|
|
540
|
+
outline: 1px solid #850440 !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
${e} blockquote {
|
|
544
|
+
outline: 1px solid #f1b8e7 !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
${e} ol {
|
|
548
|
+
outline: 1px solid #ff050c !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
${e} ul {
|
|
552
|
+
outline: 1px solid #d90416 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
${e} li {
|
|
556
|
+
outline: 1px solid #d90416 !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
${e} dl {
|
|
560
|
+
outline: 1px solid #fd3427 !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
${e} dt {
|
|
564
|
+
outline: 1px solid #ff0043 !important;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
${e} dd {
|
|
568
|
+
outline: 1px solid #e80174 !important;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
${e} figure {
|
|
572
|
+
outline: 1px solid #ff00bb !important;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
${e} figcaption {
|
|
576
|
+
outline: 1px solid #bf0032 !important;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
${e} table {
|
|
580
|
+
outline: 1px solid #00cc99 !important;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
${e} caption {
|
|
584
|
+
outline: 1px solid #37ffc4 !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
${e} thead {
|
|
588
|
+
outline: 1px solid #98daca !important;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
${e} tbody {
|
|
592
|
+
outline: 1px solid #64a7a0 !important;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
${e} tfoot {
|
|
596
|
+
outline: 1px solid #22746b !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
${e} tr {
|
|
600
|
+
outline: 1px solid #86c0b2 !important;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
${e} th {
|
|
604
|
+
outline: 1px solid #a1e7d6 !important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
${e} td {
|
|
608
|
+
outline: 1px solid #3f5a54 !important;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
${e} col {
|
|
612
|
+
outline: 1px solid #6c9a8f !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
${e} colgroup {
|
|
616
|
+
outline: 1px solid #6c9a9d !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
${e} button {
|
|
620
|
+
outline: 1px solid #da8301 !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
${e} datalist {
|
|
624
|
+
outline: 1px solid #c06000 !important;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
${e} fieldset {
|
|
628
|
+
outline: 1px solid #d95100 !important;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
${e} form {
|
|
632
|
+
outline: 1px solid #d23600 !important;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
${e} input {
|
|
636
|
+
outline: 1px solid #fca600 !important;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
${e} keygen {
|
|
640
|
+
outline: 1px solid #b31e00 !important;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
${e} label {
|
|
644
|
+
outline: 1px solid #ee8900 !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
${e} legend {
|
|
648
|
+
outline: 1px solid #de6d00 !important;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
${e} meter {
|
|
652
|
+
outline: 1px solid #e8630c !important;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
${e} optgroup {
|
|
656
|
+
outline: 1px solid #b33600 !important;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
${e} option {
|
|
660
|
+
outline: 1px solid #ff8a00 !important;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
${e} output {
|
|
664
|
+
outline: 1px solid #ff9619 !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
${e} progress {
|
|
668
|
+
outline: 1px solid #e57c00 !important;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
${e} select {
|
|
672
|
+
outline: 1px solid #e26e0f !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
${e} textarea {
|
|
676
|
+
outline: 1px solid #cc5400 !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
${e} details {
|
|
680
|
+
outline: 1px solid #33848f !important;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
${e} summary {
|
|
684
|
+
outline: 1px solid #60a1a6 !important;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
${e} command {
|
|
688
|
+
outline: 1px solid #438da1 !important;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
${e} menu {
|
|
692
|
+
outline: 1px solid #449da6 !important;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
${e} del {
|
|
696
|
+
outline: 1px solid #bf0000 !important;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
${e} ins {
|
|
700
|
+
outline: 1px solid #400000 !important;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
${e} img {
|
|
704
|
+
outline: 1px solid #22746b !important;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
${e} iframe {
|
|
708
|
+
outline: 1px solid #64a7a0 !important;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
${e} embed {
|
|
712
|
+
outline: 1px solid #98daca !important;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
${e} object {
|
|
716
|
+
outline: 1px solid #00cc99 !important;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
${e} param {
|
|
720
|
+
outline: 1px solid #37ffc4 !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${e} video {
|
|
724
|
+
outline: 1px solid #6ee866 !important;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
${e} audio {
|
|
728
|
+
outline: 1px solid #027353 !important;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${e} source {
|
|
732
|
+
outline: 1px solid #012426 !important;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
${e} canvas {
|
|
736
|
+
outline: 1px solid #a2f570 !important;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
${e} track {
|
|
740
|
+
outline: 1px solid #59a600 !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
${e} map {
|
|
744
|
+
outline: 1px solid #7be500 !important;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
${e} area {
|
|
748
|
+
outline: 1px solid #305900 !important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
${e} a {
|
|
752
|
+
outline: 1px solid #ff62ab !important;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
${e} em {
|
|
756
|
+
outline: 1px solid #800b41 !important;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
${e} strong {
|
|
760
|
+
outline: 1px solid #ff1583 !important;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
${e} i {
|
|
764
|
+
outline: 1px solid #803156 !important;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
${e} b {
|
|
768
|
+
outline: 1px solid #cc1169 !important;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
${e} u {
|
|
772
|
+
outline: 1px solid #ff0430 !important;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
${e} s {
|
|
776
|
+
outline: 1px solid #f805e3 !important;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
${e} small {
|
|
780
|
+
outline: 1px solid #d107b2 !important;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
${e} abbr {
|
|
784
|
+
outline: 1px solid #4a0263 !important;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
${e} q {
|
|
788
|
+
outline: 1px solid #240018 !important;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
${e} cite {
|
|
792
|
+
outline: 1px solid #64003c !important;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
${e} dfn {
|
|
796
|
+
outline: 1px solid #b4005a !important;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
${e} sub {
|
|
800
|
+
outline: 1px solid #dba0c8 !important;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
${e} sup {
|
|
804
|
+
outline: 1px solid #cc0256 !important;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
${e} time {
|
|
808
|
+
outline: 1px solid #d6606d !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${e} code {
|
|
812
|
+
outline: 1px solid #e04251 !important;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
${e} kbd {
|
|
816
|
+
outline: 1px solid #5e001f !important;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
${e} samp {
|
|
820
|
+
outline: 1px solid #9c0033 !important;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
${e} var {
|
|
824
|
+
outline: 1px solid #d90047 !important;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
${e} mark {
|
|
828
|
+
outline: 1px solid #ff0053 !important;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
${e} bdi {
|
|
832
|
+
outline: 1px solid #bf3668 !important;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
${e} bdo {
|
|
836
|
+
outline: 1px solid #6f1400 !important;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
${e} ruby {
|
|
840
|
+
outline: 1px solid #ff7b93 !important;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
${e} rt {
|
|
844
|
+
outline: 1px solid #ff2f54 !important;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
${e} rp {
|
|
848
|
+
outline: 1px solid #803e49 !important;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
${e} span {
|
|
852
|
+
outline: 1px solid #cc2643 !important;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
${e} br {
|
|
856
|
+
outline: 1px solid #db687d !important;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
${e} wbr {
|
|
860
|
+
outline: 1px solid #db175b !important;
|
|
861
|
+
}`}var GG=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[uO]),i=t.viewMode==="docs",a=WC(()=>WG(i?'[data-story-block="true"]':".sb-show-main"),[t]);return Sa(()=>{let l=i?`addon-outline-docs-${t.id}`:"addon-outline";return n?HG(l,a):eA(l),()=>{eA(l)}},[n,a,t]),e()},KG=globalThis.FEATURES?.outline?[GG]:[],YG={[uO]:!1},tA=()=>({decorators:KG,initialGlobals:YG}),XG=({parameters:e})=>{e?.test?.mockReset===!0?zR():e?.test?.clearMocks===!0?JR():e?.test?.restoreMocks!==!1&&HR()},my=(e,t=0,r)=>{if(t>5||e==null)return e;if(fs(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=VR(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=my(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=my(i,t,n));return e}return e},QG=({initialArgs:e})=>{my(e)},rA=!1,ZG=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=nO(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=wu({userEvent:iO.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!rA)){let r=HTMLElement.prototype.focus,n=HTMLElement.prototype.focus,i=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:a=>{n=a},get(){return i.has(this)?r:(i.add(this),setTimeout(()=>i.delete(this),0),n)}}}),rA=!0}}catch{}},nA=()=>({loaders:[XG,QG,ZG]}),eK="viewport",tK={[eK]:{value:void 0,isRotated:!1}},iA=()=>({initialGlobals:tK});function cO(){return[(ZS.default??ZS)(),(MS.default??MS)(),(GS.default??GS)(),(tA.default??tA)(),(iA.default??iA)(),(FS.default??FS)(),(qS.default??qS)(),(nA.default??nA)(),(jS.default??jS)()]}function rK(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function $d(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function nK(e){return"__children"in e?e.__children:[]}var dO=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),yy=(e,t)=>{let r=dO(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},iK=(e,t)=>`${yy(e,"kind")}${t?`--${yy(t,"name")}`:""}`,oK=(e,t)=>`${e}:${yy(t,"test")}`,aK=e=>D5(e);function oA(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function gy(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||oA(e,t))&&(!r||!oA(e,r))}var sK=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function aA(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function sA(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var lK="[object RegExp]",uK="[object String]",cK="[object Number]",dK="[object Boolean]",lA="[object Arguments]",pK="[object Symbol]",fK="[object Date]",hK="[object Map]",mK="[object Set]",yK="[object Array]",gK="[object Function]",bK="[object ArrayBuffer]",Qh="[object Object]",vK="[object Error]",EK="[object DataView]",wK="[object Uint8Array]",SK="[object Uint8ClampedArray]",AK="[object Uint16Array]",_K="[object Uint32Array]",CK="[object BigUint64Array]",TK="[object Int8Array]",xK="[object Int16Array]",RK="[object Int32Array]",DK="[object BigInt64Array]",PK="[object Float32Array]",OK="[object Float64Array]";function Ai(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function hu(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let a=n[i],l=e[a];r[a]=t(l,a,e)}return r}function NK(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let a=n[i],l=e[a];t(l,a)&&(r[a]=l)}return r}var Zh=Cr(g_(),1);function IK(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function FK(e,t,r){return Il(e,t,void 0,void 0,void 0,void 0,r)}function Il(e,t,r,n,i,a,l){let u=l(e,t,r,n,i,a);if(u!==void 0)return u;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Vl(e,t,a,l)}return Vl(e,t,a,l)}function Vl(e,t,r,n){if(Object.is(e,t))return!0;let i=sA(e),a=sA(t);if(i===lA&&(i=Qh),a===lA&&(a=Qh),i!==a)return!1;switch(i){case uK:return e.toString()===t.toString();case cK:{let p=e.valueOf(),c=t.valueOf();return IK(p,c)}case dK:case fK:case pK:return Object.is(e.valueOf(),t.valueOf());case lK:return e.source===t.source&&e.flags===t.flags;case gK:return e===t}r=r??new Map;let l=r.get(e),u=r.get(t);if(l!=null&&u!=null)return l===t;r.set(e,t),r.set(t,e);try{switch(i){case hK:{if(e.size!==t.size)return!1;for(let[p,c]of e.entries())if(!t.has(p)||!Il(c,t.get(p),p,e,t,r,n))return!1;return!0}case mK:{if(e.size!==t.size)return!1;let p=Array.from(e.values()),c=Array.from(t.values());for(let m=0;m<p.length;m++){let y=p[m],g=c.findIndex(b=>Il(y,b,void 0,e,t,r,n));if(g===-1)return!1;c.splice(g,1)}return!0}case yK:case wK:case SK:case AK:case _K:case CK:case TK:case xK:case RK:case DK:case PK:case OK:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let p=0;p<e.length;p++)if(!Il(e[p],t[p],p,e,t,r,n))return!1;return!0}case bK:return e.byteLength!==t.byteLength?!1:Vl(new Uint8Array(e),new Uint8Array(t),r,n);case EK:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Vl(new Uint8Array(e),new Uint8Array(t),r,n);case vK:return e.name===t.name&&e.message===t.message;case Qh:{if(!(Vl(e.constructor,t.constructor,r,n)||Ai(e)&&Ai(t)))return!1;let p=[...Object.keys(e),...aA(e)],c=[...Object.keys(t),...aA(t)];if(p.length!==c.length)return!1;for(let m=0;m<p.length;m++){let y=p[m],g=e[y];if(!Object.hasOwn(t,y))return!1;let b=t[y];if(!Il(g,b,y,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function kK(){}function BK(e,t){return FK(e,t,kK)}var pa=Symbol("incompatible"),by=(e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?pa:e.reduce((n,i,a)=>{let l=by(i,{type:r.value});return l!==pa&&(n[a]=l),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?pa:Object.entries(e).reduce((n,[i,a])=>{let l=by(a,{type:r.value[i]});return l===pa?n:Object.assign(n,{[i]:l})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:pa}default:return pa}},LK=(e,t)=>Object.entries(e).reduce((r,[n,i])=>{if(!t[n])return r;let a=by(i,t[n]);return a===pa?r:Object.assign(r,{[n]:a})},{}),Vd=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,i)=>(r[i]=Vd(e[i],t[i]),r),[...e]).filter(r=>r!==void 0):!Ai(e)||!Ai(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let i=Vd(e[n],t[n]);i!==void 0&&(r[n]=i)}else r[n]=e[n];return r},{}),MK=(e,t)=>Object.entries(t).reduce((r,[n,{options:i}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(!i)return a();if(!Array.isArray(i))return Sr.error(Rt`
|
|
862
|
+
Invalid argType: '${n}.options' should be an array.
|
|
863
|
+
|
|
864
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
865
|
+
`),a();if(i.some(y=>y&&["object","function"].includes(typeof y)))return Sr.error(Rt`
|
|
866
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
867
|
+
|
|
868
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
869
|
+
`),a();let l=Array.isArray(e[n]),u=l&&e[n].findIndex(y=>!i.includes(y)),p=l&&u===-1;if(e[n]===void 0||i.includes(e[n])||p)return a();let c=l?`${n}[${u}]`:n,m=i.map(y=>typeof y=="string"?`'${y}'`:String(y)).join(", ");return Sr.warn(`Received illegal value for '${c}'. Supported options: ${m}`),r},{}),Ul=Symbol("Deeply equal"),Ud=(e,t)=>{if(typeof e!=typeof t)return t;if(BK(e,t))return Ul;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,i,a)=>{let l=Ud(e[a],i);return l!==Ul&&(n[a]=l),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Ai(e)&&Ai(t)?Object.keys({...e,...t}).reduce((r,n)=>{let i=Ud(e?.[n],t?.[n]);return i===Ul?r:Object.assign(r,{[n]:i})},{}):t},pO="UNTARGETED";function qK({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,i])=>{let{target:a=pO}=t[n]||{};r[a]=r[a]||{},r[a][n]=i}),r}function jK(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var $K=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=Ud(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==Ul&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=MK(t,e.argTypes);this.argsByStoryId[e.id]=Vd(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=LK(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=jK({...this.argsByStoryId[e],...t})}},fO=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),VK=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&Ud(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=fO(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==Ul&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:lr.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},UK=Cr(g_(),1),JK=(0,UK.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),zK=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(i=>i.id.startsWith(e));let{name:r,title:n}=e;return t.find(i=>i.name===r&&i.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new SC({storyId:e});return t}importPathToEntry(e){return JK(this.entries)[e]}},HK=e=>typeof e=="string"?{name:e}:e,WK=e=>typeof e=="string"?{type:e,disable:!1}:e&&typeof e=="object"&&"type"in e&&!("disable"in e)?{...e,disable:!1}:e,GK=(e,t)=>{let{type:r,control:n,...i}=e,a={name:t,...i};return r&&(a.type=HK(r)),n?a.control=WK(n):n===!1&&(a.control={disable:!0}),a},B0=e=>hu(e,GK),nr=e=>Array.isArray(e)?e:e?[e]:[],KK=Rt`
|
|
870
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
871
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
872
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
873
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
874
|
+
`;function Jl(e,t,r){let n=t,i=typeof t=="function"?t:null,{story:a}=n;a&&(lr.debug("deprecated story",a),eg(KK));let l=aK(e),u=typeof n!="function"&&n.name||n.storyName||a?.name||l,p=[...nr(n.decorators),...nr(a?.decorators)],c={...a?.parameters,...n.parameters},m={...a?.args,...n.args},y={...a?.argTypes,...n.argTypes},g=[...nr(n.loaders),...nr(a?.loaders)],b=[...nr(n.beforeEach),...nr(a?.beforeEach)],w=[...nr(n.afterEach),...nr(a?.afterEach)],{render:A,play:x,tags:_=[],globals:R={}}=n,j=c.__id||iK(r.id,l);return{moduleExport:t,id:j,name:u,tags:_,decorators:p,parameters:c,args:m,argTypes:B0(y),loaders:g,beforeEach:b,afterEach:w,globals:R,...A&&{render:A},...i&&{userStoryFn:i},...x&&{play:x}}}function vy(e,t=e.title,r){let{id:n,argTypes:i}=e;return{id:dO(n||t),...e,title:t,...i&&{argTypes:B0(i)},parameters:{fileName:r,...e.parameters}}}var YK=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&lr.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},XK=e=>{let{options:t}=e;t?.storySort&&lr.error("The storySort option parameter can only be set globally")},nd=e=>{e&&(YK(e),XK(e))};function QK(e,t,r){let{default:n,__namedExportsOrder:i,...a}=e,l=Object.values(a).find(c=>$d(c));if(l){let c=vy(l.meta.input,r,t);nd(c.parameters);let m={meta:c,stories:{},moduleExports:e};return Object.keys(a).forEach(y=>{if(gy(y,c)&&$d(a[y])){let g=a[y],b=Jl(y,g.input,c);nd(b.parameters),m.stories[b.id]=b,nK(g).forEach(w=>{let A=w.input.name,x=oK(b.id,A);w.input.parameters??={},w.input.parameters.__id=x,m.stories[x]=Jl(A,w.input,c)})}}),m.projectAnnotations=l.meta.preview.composed,m}let u=vy(n,r,t);nd(u.parameters);let p={meta:u,stories:{},moduleExports:e};return Object.keys(a).forEach(c=>{if(gy(c,u)){let m=Jl(c,a[c],u);nd(m.parameters),p.stories[m.id]=m}}),p}function hO(e,t,r){let n=r(e);return i=>t(n,i)}function mO({componentId:e,title:t,kind:r,id:n,name:i,story:a,parameters:l,initialArgs:u,argTypes:p,...c}={}){return c}function yO(e,t){let r={},n=a=>l=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...mO(l)},a(r.value)},i=t.reduce((a,l)=>hO(a,l,n),e);return a=>(r.value=a,i(a))}var xa=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,a)=>(Object.entries(a).forEach(([l,u])=>{let p=i[l];Array.isArray(u)||typeof p>"u"?i[l]=u:Ai(u)&&Ai(p)?t[l]=!0:typeof u<"u"&&(i[l]=u)}),i),{});return Object.keys(t).forEach(i=>{let a=r.filter(Boolean).map(l=>l[i]).filter(l=>typeof l<"u");a.every(l=>Ai(l))?n[i]=xa(...a):n[i]=a[a.length-1]}),n};function L0(e,t,r){let{moduleExport:n,id:i,name:a}=e||{},l=bO(e,t,r),u=async E=>{let P={};for(let N of[nr(r.loaders),nr(t.loaders),nr(e.loaders)]){if(E.abortSignal.aborted)return P;let L=await Promise.all(N.map(Z=>Z(E)));Object.assign(P,...L)}return P},p=async E=>{let P=new Array;for(let N of[...nr(r.beforeEach),...nr(t.beforeEach),...nr(e.beforeEach)]){if(E.abortSignal.aborted)return P;let L=await N(E);L&&P.push(L)}return P},c=async E=>{let P=[...nr(r.afterEach),...nr(t.afterEach),...nr(e.afterEach)].reverse();for(let N of P){if(E.abortSignal.aborted)return;await N(E)}},m=E=>E.originalStoryFn(E.args,E),{applyDecorators:y=yO,runStep:g}=r,b=[...nr(e?.decorators),...nr(t?.decorators),...nr(r?.decorators)],w=e?.userStoryFn||e?.render||t.render||r.render,A=zC(y)(m,b),x=E=>A(E),_=e?.play??t?.play,R=N5(_);if(!w&&!R)throw new NC({id:i});let j=E=>async()=>(await E.renderToCanvas(),E.canvas),B=e.mount??t.mount??r.mount??j,F=r.testingLibraryRender;return{storyGlobals:{},...l,moduleExport:n,id:i,name:a,story:a,originalStoryFn:w,undecoratedStoryFn:m,unboundStoryFn:x,applyLoaders:u,applyBeforeEach:p,applyAfterEach:c,playFunction:_,runStep:g,mount:B,testingLibraryRender:F,renderToCanvas:r.renderToCanvas,usesMount:R}}function gO(e,t,r){return{...bO(void 0,e,t),moduleExport:r}}function bO(e,t,r){let n=[Ei.DEV,Ei.TEST],i=He.DOCS_OPTIONS?.autodocs===!0?[Ei.AUTODOCS]:[],a=e?.tags?.includes(Ei.TEST_FN)?[`!${Ei.AUTODOCS}`]:[],l=sK(...n,...i,...r.tags??[],...t.tags??[],...a,...e?.tags??[]),u=xa(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:c=[]}=r,m=xa(r.argTypes,t.argTypes,e?.argTypes);if(e){let R=e?.userStoryFn||e?.render||t.render||r.render;u.__isArgsStory=R&&R.length>0}let y={...r.args,...t.args,...e?.args},g={...t.globals,...e?.globals},b={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:l,parameters:u,initialArgs:y,argTypes:m,storyGlobals:g};b.argTypes=p.reduce((R,j)=>j({...b,argTypes:R}),b.argTypes);let w={...y};b.initialArgs=[...c].reduce((R,j)=>({...R,...j({...b,initialArgs:R})}),w);let{name:A,story:x,..._}=b;return _}function vO(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(He.FEATURES?.argTypeTargetsV7){let a=qK(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[pO]||{}}}let n=Object.entries(r.args).reduce((a,[l,u])=>{if(!r.argTypes[l]?.mapping)return a[l]=u,a;let p=c=>{let m=r.argTypes[l].mapping;return m&&c in m?m[c]:c};return a[l]=Array.isArray(u)?u.map(p):p(u),a},{}),i=Object.entries(n).reduce((a,[l,u])=>{let p=r.argTypes[l]||{};return O5(p,n,r.globals)&&(a[l]=u),a},{});return{...r,unmappedArgs:t,args:i}}var Ey=(e,t,r,n)=>{let i=typeof e;switch(i){case"boolean":case"string":case"number":case"function":case"symbol":return{name:i}}if(e){if(n.has(e))return n.get(e);if(r.has(e))return lr.warn(Rt`
|
|
875
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
876
|
+
|
|
877
|
+
Consider using the mapping feature or fully custom args:
|
|
878
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
879
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
880
|
+
`),{name:"other",value:"cyclic object"};r.add(e);let a;return Array.isArray(e)?a={name:"array",value:e.length>0?Ey(e[0],t,r,n):{name:"other",value:"unknown"}}:a={name:"object",value:hu(e,l=>Ey(l,t,r,n))},r.delete(e),n.set(e,a),a}return{name:"object",value:{}}},EO=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,i=new Map,a=hu(n,(u,p)=>({name:p,type:Ey(u,`${t}.${p}`,new Set,i)})),l=hu(r,(u,p)=>({name:p}));return xa(a,l,r)};EO.secondPass=!0;var uA=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),wO=(e,t,r)=>!t&&!r?e:e&&NK(e,(n,i)=>{let a=n.name||i.toString();return!!(!t||uA(a,t))&&(!r||!uA(a,r))}),ZK=(e,t,r)=>{let{type:n,options:i}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&lr.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},M0=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:i=null,matchers:a={}}={}}}=e;if(!r)return t;let l=wO(t,n,i),u=hu(l,(p,c)=>p?.type&&ZK(p,c.toString(),a));return xa(u,l)};M0.secondPass=!0;function Jd({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:i,afterEach:a,initialGlobals:l,...u}){return{...e&&{argTypes:B0(e)},decorators:nr(r),loaders:nr(n),beforeEach:nr(i),afterEach:nr(a),argTypesEnhancers:[...t||[],EO,M0],initialGlobals:l,...u}}var eY=e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}};function SO(e){return async(t,r,n)=>{await e.reduceRight((i,a)=>async()=>a(t,i,n),async()=>r(n))()}}function mu(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function Co(e,t,r={}){return mu(e,t).reduce((n,i)=>{let a=nr(i);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}function id(e,t){return Object.assign({},...mu(e,t))}function xl(e,t){return mu(e,t).pop()}function Ds(e){let t=Co(e,"argTypesEnhancers"),r=mu(e,"runStep"),n=Co(e,"beforeAll");return{parameters:xa(...mu(e,"parameters")),decorators:Co(e,"decorators",{reverseFileOrder:!(He.FEATURES?.legacyDecoratorFileOrder??!1)}),args:id(e,"args"),argsEnhancers:Co(e,"argsEnhancers"),argTypes:id(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:id(e,"initialGlobals"),globalTypes:id(e,"globalTypes"),loaders:Co(e,"loaders"),beforeAll:eY(n),beforeEach:Co(e,"beforeEach"),afterEach:Co(e,"afterEach"),render:xl(e,"render"),renderToCanvas:xl(e,"renderToCanvas"),applyDecorators:xl(e,"applyDecorators"),runStep:SO(r),tags:Co(e,"tags"),mount:xl(e,"mount"),testingLibraryRender:xl(e,"testingLibraryRender")}}function AO(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function q0(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
881
|
+
animation: none !important;
|
|
882
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
883
|
+
animation-delay: 0s !important;
|
|
884
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
885
|
+
animation-play-state: paused !important;
|
|
886
|
+
transition: none !important;
|
|
887
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function j0(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,..._O(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let a=n.flatMap(l=>l?.getAnimations?.()||[]).filter(l=>l.playState==="running"&&!tY(l));a.length>0&&(await Promise.allSettled(a.map(async l=>l.finished)),await i())};i().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function _O(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,..._O(r.shadowRoot)),t),[])}function tY(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}var $0=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function CO(e,t,r){return $d(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:rK(t)?t.input:t,preview:r}}function rY(e){globalThis.defaultProjectAnnotations=e}var nY="ComposedStory",iY="Unnamed Story";function oY(e){return e?Ds([e]):{}}function aY(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Ds([...cO(),globalThis.defaultProjectAnnotations??{},Ds(t.map(oY))]),globalThis.globalProjectAnnotations??{}}var No=[];function TO(e,t,r,n,i){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??nY;let a=vy(t),l=i||e.storyName||e.story?.name||e.name||iY,u=Jl(l,e,a),p=Jd(Ds([n??globalThis.globalProjectAnnotations??{},r??{}])),c=L0(u,a,p),m={...fO(p.globalTypes),...p.initialGlobals,...c.storyGlobals},y=new $0,g=()=>{let _=vO({hooks:new fg,globals:m,args:{...c.initialArgs},viewMode:"story",reporting:y,loaded:{},abortSignal:new AbortController().signal,step:(R,j)=>c.runStep(R,j,_),canvasElement:null,canvas:{},userEvent:{},globalTypes:p.globalTypes,...c,context:null,mount:null});return _.parameters.__isPortableStory=!0,_.context=_,c.renderToCanvas&&(_.renderToCanvas=async()=>{let R=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:()=>{},showError:j=>{throw new Error(`${j.title}
|
|
888
|
+
${j.description}`)},showException:j=>{throw j},forceRemount:!0,storyContext:_,storyFn:()=>c.unboundStoryFn(_),unboundStoryFn:c.unboundStoryFn},_.canvasElement);R&&No.push(R)}),_.mount=c.mount(_),_},b,w=async _=>{let R=g();return R.canvasElement??=globalThis?.document?.body,b&&(R.loaded=b.loaded),Object.assign(R,_),c.playFunction(R)},A=_=>{let R=g();return Object.assign(R,_),cY(c,R)},x=c.playFunction?w:void 0;return Object.assign(function(_){let R=g();return b&&(R.loaded=b.loaded),R.args={...R.initialArgs,..._},c.unboundStoryFn(R)},{id:c.id,storyName:l,load:async()=>{for(let R of[...No].reverse())await R();No.length=0;let _=g();_.loaded=await c.applyLoaders(_),No.push(...(await c.applyBeforeEach(_)).filter(Boolean)),b=_},globals:m,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:x,run:A,reporting:y,tags:c.tags})}var sY=(e,t,r,n)=>TO(e,t,r,{},n);function lY(e,t,r=sY){let{default:n,__esModule:i,__namedExportsOrder:a,...l}=e,u=n;return Object.entries(l).reduce((p,[c,m])=>{let{story:y,meta:g}=CO(m);return!u&&g&&(u=g),gy(c,u)?Object.assign(p,{[c]:r(y,u,t,c)}):p},{})}function uY(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(i,...a)=>{if(!("__pw_type"in i)||"__pw_type"in i&&i.__pw_type!=="jsx")throw new Error(Rt`
|
|
889
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
890
|
+
Please use JSX format for your components such as:
|
|
891
|
+
|
|
892
|
+
instead of:
|
|
893
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
894
|
+
|
|
895
|
+
do:
|
|
896
|
+
await mount(<MyComponent foo="bar"/>)
|
|
897
|
+
|
|
898
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
899
|
+
`);let{props:l,...u}=i;await r.evaluate(async c=>{let m=await globalThis.__pwUnwrapObject?.(c);return("__pw_type"in m?m.type:m)?.load?.()},u);let p=await t(i,...a);return await r.evaluate(async c=>{let m=await globalThis.__pwUnwrapObject?.(c),y="__pw_type"in m?m.type:m,g=document.querySelector("#root");return y?.play?.({canvasElement:g})},u),p})}})}async function cY(e,t){for(let a of[...No].reverse())await a();if(No.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,No.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;No.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new pg({playFunction:r.toString()})}),await r(t));let i;AO()?i=q0():await j0(t.abortSignal),await e.applyAfterEach(t),await i?.()}var cA=1e3,dY=1e4,xO=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new zK(e),this.projectAnnotations=Jd(Ds([...cO(),r]));let{initialGlobals:n,globalTypes:i}=this.projectAnnotations;this.args=new $K,this.userGlobals=new VK({globals:n,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Zh.default)(cA)(QK),this.prepareMetaWithCache=(0,Zh.default)(cA)(gO),this.prepareStoryWithCache=(0,Zh.default)(dY)(L0)}setProjectAnnotations(e){this.projectAnnotations=Jd(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new PC({storyId:e});let n=t.meta,i=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new fg,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...i]=await Promise.all([this.importFn(t.importPath),...r.map(a=>{let l=this.storyIndex.importPathToEntry(a);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:n,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,i=new $0;return vO({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:i,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new _C;let r=Object.entries(this.storyIndex.entries).reduce((n,[i,a])=>{if(a.type==="docs")return n;let l=t[a.importPath],u=this.storyFromCSFFile({storyId:i,csfFile:l});return!e.includeDocsOnly&&u.parameters.docsOnly||(n[i]=Object.entries(u).reduce((p,[c,m])=>c==="story"&&a.subtype==="test"?{...p,story:a.parentName}:c==="moduleExport"||typeof m=="function"?p:Array.isArray(m)?Object.assign(p,{[c]:m.slice().sort()}):Object.assign(p,{[c]:m}),{args:u.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...u.storyGlobals},storyId:a.parent?a.parent:i})),n},{});return console.log("extract: stories",r),r}};function pY(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var fY=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]};function dA(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var RO=(e,t,r)=>{let{directory:n,importPathMatcher:i,titlePrefix:a=""}=t||{};typeof e=="number"&&Sr.warn(Rt`
|
|
900
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
901
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
902
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
903
|
+
`);let l=pY(String(e));if(i.exec(l)){if(!r){let u=l.replace(n,""),p=dA([a,u]).split("/");return p=fY(p),p.join("/")}return a?dA([a,r]):r}},hY=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let i=RO(e,t[n],r);if(i)return i}return r||void 0},pA=/\s*\/\s*/,mY=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",i=e.order||[],a=t.title.trim().split(pA),l=r.title.trim().split(pA);e.includeNames&&(a.push(t.name),l.push(r.name));let u=0;for(;a[u]||l[u];){if(!a[u])return-1;if(!l[u])return 1;let p=a[u],c=l[u];if(p!==c){let y=i.indexOf(p),g=i.indexOf(c),b=i.indexOf("*");return y!==-1||g!==-1?(y===-1&&(b!==-1?y=b:y=i.length),g===-1&&(b!==-1?g=b:g=i.length),y-g):n==="configure"?0:p.localeCompare(c,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let m=i.indexOf(p);m===-1&&(m=i.indexOf("*")),i=m!==-1&&Array.isArray(i[m+1])?i[m+1]:[],u+=1}return 0},yY=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=mY(t),e.sort(n)}else e.sort((n,i)=>r.indexOf(n.importPath)-r.indexOf(i.importPath));return e},gY=(e,t,r)=>{try{return yY(e,t,r)}catch(n){throw new Error(Rt`
|
|
904
|
+
Error sorting stories with sort parameter ${t}:
|
|
905
|
+
|
|
906
|
+
> ${n.message}
|
|
907
|
+
|
|
908
|
+
Are you using a V6-style sort function in V7 mode?
|
|
909
|
+
|
|
910
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
911
|
+
`)}},Tp=new Error("prepareAborted"),{AbortController:fA}=globalThis;function hA(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}var wy=class{constructor(e,t,r,n,i,a,l={autoplay:!0,forceInitialArgs:!1},u){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=i,this.viewMode=a,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new fA,this.renderId=Date.now(),u&&(this.story=u,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(wa,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(wa,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Tp}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:a,title:l,name:u,tags:p,applyLoaders:c,applyBeforeEach:m,applyAfterEach:y,unboundStoryFn:g,playFunction:b,runStep:w}=n;t&&!e&&(this.cancelRender(),this.abortController=new fA);let A=this.abortController.signal,x=!1,_=n.usesMount;try{let R={...this.storyContext(),viewMode:this.viewMode,abortSignal:A,canvasElement:r,loaded:{},step:(te,W)=>w(te,W,R),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let te=await this.renderToScreen(j,r);this.teardownRender=te||(()=>{}),x=!0},mount:async(...te)=>{this.callbacks.showStoryDuringRender?.();let W=null;return await this.runPhase(A,"rendering",async()=>{W=await n.mount(R)(...te)}),_&&await this.runPhase(A,"playing"),W}};R.context=R;let j={componentId:a,title:l,kind:l,id:i,name:u,story:u,tags:p,...this.callbacks,showError:te=>(this.phase="errored",this.callbacks.showError(te)),showException:te=>(this.phase="errored",this.callbacks.showException(te)),forceRemount:t||this.notYetRendered,storyContext:R,storyFn:()=>g(R),unboundStoryFn:g};if(await this.runPhase(A,"loading",async()=>{R.loaded=await c(R)}),A.aborted)return;let B=await m(R);if(this.store.addCleanupCallbacks(n,...B),this.checkIfAborted(A)||(!x&&!_&&await R.mount(),this.notYetRendered=!1,A.aborted))return;let F=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,P=te=>{te.error&&E.add(te.error)},N=te=>{te.reason&&E.add(te.reason)};if(this.renderOptions.autoplay&&t&&b&&this.phase!=="errored"){window?.addEventListener?.("error",P),window?.addEventListener?.("unhandledrejection",N),this.disableKeyListeners=!0;try{if(_?await b(R):(R.mount=async()=>{throw new pg({playFunction:b.toString()})},await this.runPhase(A,"playing",async()=>b(R))),!x)throw new IC;this.checkIfAborted(A),!F&&E.size>0?await this.runPhase(A,"errored"):await this.runPhase(A,"played")}catch(te){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(A,"errored",async()=>{this.channel.emit(C_,hA(te))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw te;console.error(te)}if(!F&&E.size>0&&this.channel.emit(T_,Array.from(E).map(hA)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",N),window?.removeEventListener?.("error",P),A.aborted)return}await this.runPhase(A,"completing",async()=>{AO()?this.store.addCleanupCallbacks(n,q0()):await j0(A)}),await this.runPhase(A,"completed",async()=>{this.channel.emit(Ed,i)}),this.phase!=="errored"&&await this.runPhase(A,"afterEach",async()=>{await y(R)});let L=!F&&E.size>0,Z=R.reporting.reports.some(te=>te.status==="failed"),H=L||Z;await this.runPhase(A,"finished",async()=>this.channel.emit(gm,{storyId:i,status:H?"error":"success",reporters:R.reporting.reports}))}catch(R){this.phase="errored",this.callbacks.showException(R),await this.runPhase(A,"finished",async()=>this.channel.emit(gm,{storyId:i,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:bY}=He,vY="./index.json",DO=class{constructor(e,t,r=Jn.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,a)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=a}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return eg("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new OC}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit(R_,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(F_,this.onStoryIndexChanged.bind(this)),this.channel.on(Qy,this.onUpdateGlobals.bind(this)),this.channel.on(Zy,this.onUpdateArgs.bind(this)),this.channel.on(V_,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Yy,this.onResetArgs.bind(this)),this.channel.on(Ky,this.onForceReRender.bind(this)),this.channel.on(vd,this.onForceRemount.bind(this)),this.channel.on(q_,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new CC;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await bY(vY);if(e.status===200)return e.json();throw new TC({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new xO(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Tn({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(P_,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new Tn({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Tn({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:i,globals:a}=this.storyStoreValue.getStoryContext(t);this.channel.emit(Yl,{initialGlobals:r,userGlobals:i,storyGlobals:n,globals:a})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(Yl,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new Tn({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(O_,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(bm,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(bm,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new Tn({methodName:"onResetArgs"});let r=this.storyRenders.find(i=>i.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((i,a)=>(i[a]=r.initialArgs[a],i),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new Tn({methodName:"renderStoryToElement"});let i=new wy(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Tn({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Tn({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Tn({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,lr.error(e),lr.error(t),this.channel.emit(A_,t)}},V0=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=i=>{let a=this.nameToStoryId.get(i);if(a)return a;throw new Error(`No story found with that name: ${i}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=i=>this.store.componentStoriesFromCSFFile({csfFile:i}),this.storyById=i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let a=this.storyIdToCSFFile.get(i);if(!a)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:a})},this.getStoryContext=i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),this.loadStory=i=>this.store.loadStory({storyId:i}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((i,a)=>{this.referenceCSFFile(i)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e=="object"&&"default"in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:"meta",csfFile:t};let r=this.exportToStory.get($d(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(Rt`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
|
|
912
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
913
|
+
- ... or vice versa?
|
|
914
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};default:return r}}},mA=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Tp;let{importPath:r,title:n}=this.entry,i=this.store.processCSFFileWithCache(e,r,n),a=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new V0(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await n.renderer(),{render:a}=i,l=async()=>{try{await a(r,n,e),this.channel.emit(Gy,this.id)}catch(u){this.callbacks.showException(u)}};return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u})=>{!u||!e||i.unmount(e)},l()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},yA=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Tp;if(this.csfFiles=t,this.exports=e,this.attachedCsfFile=void 0,this.attachedStory=void 0,this.entry.tags?.includes(Ei.ATTACHED_MDX)){this.attachedCsfFile=t[0];let r=this.attachedCsfFile&&Object.keys(this.attachedCsfFile.stories)[0];this.attachedCsfFile&&r&&(this.attachedStory=this.store.storyFromCSFFile({storyId:r,csfFile:this.attachedCsfFile}))}this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new V0(this.channel,this.store,e,this.csfFiles);return this.attachedCsfFile&&t.attachCSFFile(this.attachedCsfFile),t}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{},i=this.attachedStory?.parameters?.docs??n;if(!i)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...i,page:this.exports.default},l=await i.renderer(),{render:u}=l,p=async()=>{try{await u(r,a,e),this.channel.emit(Gy,this.id)}catch(c){this.callbacks.showException(c)}};return this.rerender=async()=>p(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!e||(l.unmount(e),this.torndown=!0)},p()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},EY=globalThis;function wY(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function SY({tags:e}){return e?.includes(Ei.UNATTACHED_MDX)||e?.includes(Ei.ATTACHED_MDX)}function em(e){return e.type==="story"}function AY(e){return e.type==="docs"}function _Y(e){return AY(e)&&e.subtype==="csf"}var PO=class extends DO{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),EY.onkeydown=this.onKeydown.bind(this),this.channel.on(Xy,this.onSetCurrentStory.bind(this)),this.channel.on(j_,this.onUpdateQueryParams.bind(this)),this.channel.on(x_,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Tn({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Tn({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new RC):this.renderStoryLoadingException(e,new DC({storySpecifier:e.toString()}));return}let{id:n,type:i}=r;this.selectionStore.setSelection({storyId:n,viewMode:i}),this.channel.emit(B_,this.selectionStore.selection),this.channel.emit(mm,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!wY(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:a,code:l,keyCode:u}=e;this.channel.emit(D_,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:a,code:l,keyCode:u}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(mm,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof wy&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof yA||this.currentRender instanceof mA)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Tn({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,i;try{i=await this.storyStoreValue.storyIdToEntry(n)}catch(y){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,y);return}let a=this.currentSelection?.storyId!==n,l=this.currentRender?.type!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let u;i.type==="story"?u=new wy(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):SY(i)?u=new yA(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n)):u=new mA(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n));let p=this.currentSelection;this.currentSelection=r;let c=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(y){c&&await this.teardownRender(c),y!==Tp&&this.renderStoryLoadingException(n,y);return}let m=!a&&c&&!u.isEqual(c);if(e&&em(u)&&(Hi(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,e)),c&&!c.torndown&&!a&&!m&&!l){this.currentRender=c,this.channel.emit(M_,n),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:l}),p&&(a||l)&&this.channel.emit(N_,n),em(u)){Hi(!!u.story);let{parameters:y,initialArgs:g,argTypes:b,unmappedArgs:w,initialGlobals:A,userGlobals:x,storyGlobals:_,globals:R}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(k_,{id:n,parameters:y,initialArgs:g,argTypes:b,args:w}),this.channel.emit(Yl,{userGlobals:x,storyGlobals:_,globals:R,initialGlobals:A})}else{let{parameters:y}=this.storyStoreValue.projectAnnotations,{initialGlobals:g,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(Yl,{globals:b,initialGlobals:g,storyGlobals:{},userGlobals:b}),_Y(u)||u.entry.tags?.includes(Ei.ATTACHED_MDX)){if(!u.csfFiles)throw new xC({storyId:n});({parameters:y}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(__,{id:n,parameters:y})}em(u)?(Hi(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(ym)}renderStoryLoadingException(e,t){lr.error(t),this.view.showErrorDisplay(t),this.channel.emit(ym,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:i}=t,a=this.currentRender?.renderId;this.channel.emit(L_,{name:r,message:n,stack:i}),this.channel.emit(wa,{newPhase:"errored",renderId:a,storyId:e}),this.view.showErrorDisplay(t),lr.error(`Error rendering story '${e}':`),lr.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(I_,{title:t,description:r}),this.channel.emit(wa,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),lr.error(`Error rendering story ${t}: ${r}`)}},Sy=Cr(zy(),1),CY=Cr(zy(),1),gA=/^[a-zA-Z0-9 _-]*$/,OO=/^-?[0-9]+(\.[0-9]+)?$/,TY=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,NO=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Ay=(e="",t)=>e===null||e===""||!gA.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?gA.test(t)||OO.test(t)||TY.test(t)||NO.test(t):Array.isArray(t)?t.every(r=>Ay(e,r)):Ai(t)?Object.entries(t).every(([r,n])=>Ay(r,n)):!1,xY={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(NO);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return OO.test(e)?Number(e):e}},bA=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,CY.parse)(t.join(";"),xY)).reduce((r,[n,i])=>Ay(n,i)?Object.assign(r,{[n]:i}):(Sr.warn(Rt`
|
|
915
|
+
Omitted potentially unsafe URL args.
|
|
916
|
+
|
|
917
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
918
|
+
`),r),{})},{history:IO,document:Mo}=He;function RY(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var FO=({selection:e,extraParams:t})=>{let r=Mo?.location.search.slice(1),{path:n,selectedKind:i,selectedStory:a,...l}=(0,Sy.parse)(r);return`?${(0,Sy.stringify)({...l,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},DY=e=>{if(!e)return;let t=FO({selection:e}),{hash:r=""}=Mo.location;Mo.title=e.storyId,IO.replaceState({},"",`${Mo.location.pathname}${t}${r}`)},PY=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,zl=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return zl(e[0]);if(PY(e))return zl(Object.values(e).filter(Boolean))}},OY=()=>{if(typeof Mo<"u"){let e=Mo.location.search.slice(1),t=(0,Sy.parse)(e),r=typeof t.args=="string"?bA(t.args):void 0,n=typeof t.globals=="string"?bA(t.globals):void 0,i=zl(t.viewMode);if(typeof i!="string"||!i)i="story";else if(!i.match(/docs|story/))return null;let a=zl(t.path),l=a?RY(a):zl(t.id);if(l)return{storySpecifier:l,args:r,globals:n,viewMode:i}}return null},kO=class{constructor(){this.selectionSpecifier=OY()}setSelection(e){this.selection=e,DY(this.selection)}setQueryParams(e){let t=FO({extraParams:e}),{hash:r=""}=Mo.location;IO.replaceState({},"",`${Mo.location.pathname}${t}${r}`)}},NY=Cr(oL(),1),IY=Cr(zy(),1),{document:tn}=He,vA=100,BO=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(BO||{}),tm={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},rm={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},EA=new NY.default({escapeXML:!0}),LO=class{constructor(){if(this.testing=!1,typeof tn<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,IY.parse)(tn.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),tn.documentElement.scrollTop=0,tn.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return tn.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),tn.documentElement.scrollTop=0,tn.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return tn.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){tn.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=rm[e];tn.body.classList.remove(this.currentLayoutClass),tn.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){rm[e]||lr.warn(Rt`
|
|
919
|
+
The desired layout: ${e} is not a valid option.
|
|
920
|
+
The possible options are: ${Object.keys(rm).join(", ")}, none.
|
|
921
|
+
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(BO).forEach(t=>{t===e?tn.body.classList.add(tm[t]):tn.body.classList.remove(tm[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,i=e.split(`
|
|
922
|
+
`);i.length>1&&([r]=i,n=i.slice(1).join(`
|
|
923
|
+
`).replace(/^\n/,"")),tn.getElementById("error-message").innerHTML=EA.toHtml(r),tn.getElementById("error-stack").innerHTML=EA.toHtml(n),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),vA)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),vA)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){tn.body.classList.add(tm.MAIN)}},FY=class extends PO{constructor(t,r){super(t,r,new kO,new LO),this.importFn=t,this.getProjectAnnotations=r,He.__STORYBOOK_PREVIEW__=this}},{document:ga}=He,kY=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],BY="script",wA="scripts-root";function _y(){let e=ga.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),ga.dispatchEvent(e)}function LY(e,t,r){let n=ga.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):ga.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function MO(e,t,r=0){e[r](()=>{r++,r===e.length?t():MO(e,t,r)})}function MY(e){let t=ga.getElementById(wA);t?t.innerHTML="":(t=ga.createElement("div"),t.id=wA,ga.body.appendChild(t));let r=Array.from(e.querySelectorAll(BY));if(r.length){let n=[];r.forEach(i=>{let a=i.getAttribute("type");(!a||kY.includes(a))&&n.push(l=>LY(i,l,t))}),n.length&&MO(n,_y,void 0)}else _y()}var nm;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(nm=nm||(nm={}));var qY=Cr(aL(),1),Oa=(0,qY.stringifyRules)(),jY=Oa.JsdocTypeObject;Oa.JsdocTypeAny=()=>"any";Oa.JsdocTypeObject=(e,t)=>`(${jY(e,t)})`;Oa.JsdocTypeOptional=(e,t)=>t(e.element);Oa.JsdocTypeNullable=(e,t)=>t(e.element);Oa.JsdocTypeNotNullable=(e,t)=>t(e.element);Oa.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var $Y="storybook/docs",VY=`${$Y}/snippet-rendered`;async function UY(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:i}=t,a=r&&e?r?.(e,t):e,l=a?await a:void 0;Jn.getChannel().emit(VY,{id:n,source:l,args:i})}var yu={depth:10,clearOnStoryChange:!0,limit:50},JY=(e={})=>{Object.assign(yu,e)},qO=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:qO(r,t)},zY=e=>!!(typeof e=="object"&&e&&qO(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),HY=e=>{if(zY(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Nu(e,t={}){let r={...yu,...t},n=function(...i){if(t.implicit){let y=("__STORYBOOK_PREVIEW__"in He?He.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(g=>g.phase==="playing"||g.phase==="rendering");if(y){let g=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,b=new AC({phase:y.phase,name:e,deprecated:g});if(g)console.warn(b);else throw b}}let a=Jn.getChannel(),l=Date.now().toString(36)+Math.random().toString(36).substring(2),u=5,p=i.map(HY),c=i.length>1?p:p[0],m={id:l,count:0,data:{name:e,args:c},options:{...r,maxDepth:u+(r.depth||3)}};a.emit(UC,m)};return n.isAction=!0,n.implicit=t.implicit,n}var WY=(...e)=>{let t=yu,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...yu,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(a=>{n[a]=a}));let i={};return Object.keys(n).forEach(a=>{i[a]=Nu(n[a],t)}),i},GY={"@storybook/global":J_,"storybook/test":eT,"storybook/actions":VC,"storybook/preview-api":Em,"storybook/internal/channels":H_,"storybook/internal/client-logger":W_,"storybook/internal/core-events":Hy,"storybook/internal/types":FC,"storybook/internal/preview-errors":vC,"storybook/internal/preview-api":Em};async function KY(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}YY(t,r)}var YY=async(e,t)=>{let r={entries:{}};for(let u of Object.values(e.entries)){let p=u.title.split("/"),c=r;for(let m of p)c.entries||(c.entries={}),c.entries[m]?t===u.id&&(c.entries[m].isActive=!0):c.entries[m]={title:m,isActive:t===u.id,entries:{}},c=c.entries[m];c.entries||(c.entries={}),c.entries[u.name]={id:u.id,name:u.name,href:`?id=${u.id}&viewMode=${u.type}&navigator=true`,isActive:t===u.id}}let n=u=>{if("entries"in u&&"title"in u){let c=u;return`
|
|
924
|
+
<li class="sb-navigator-branch">
|
|
925
|
+
<details${c.isActive?" open":""}>
|
|
926
|
+
<summary class="sb-navigator-title">
|
|
927
|
+
${c.title}
|
|
928
|
+
</summary>
|
|
929
|
+
<ul class="sb-navigator-entries" aria-label="${c.title}">
|
|
930
|
+
${Object.values(c.entries).map(n).join("")}
|
|
931
|
+
</ul>
|
|
932
|
+
</details>
|
|
933
|
+
</li>
|
|
934
|
+
`}let p=u;return`
|
|
935
|
+
<li class="sb-navigator-story-item">
|
|
936
|
+
<a href="${p.href}"
|
|
937
|
+
class="sb-navigator-story-link${p.isActive?" active":""}"
|
|
938
|
+
aria-current="${p.isActive?"location":"false"}">${p.name}</a>
|
|
939
|
+
</li>
|
|
940
|
+
`},i=Object.values(r.entries).map(n).join(""),a=document.createElement("nav");a.id="sb-navigator-container",a.setAttribute("role","navigation"),a.setAttribute("aria-label","Story navigation"),a.innerHTML=`
|
|
941
|
+
<ul class="sb-navigator-list">${i}</ul>
|
|
942
|
+
`,document.body.insertBefore(a,document.body.firstChild);let l=document.createElement("style");l.id="sb-navigator-style",l.textContent=`
|
|
943
|
+
body {
|
|
944
|
+
display: grid !important;
|
|
945
|
+
grid-template-columns: 300px 1fr;
|
|
946
|
+
font-family: 'Nunito', sans-serif;
|
|
947
|
+
height: 100vh;
|
|
948
|
+
margin: 0;
|
|
949
|
+
|
|
950
|
+
--text-color: rgb(46, 52, 56);
|
|
951
|
+
--bg-color: rgb(246, 249, 252);
|
|
952
|
+
|
|
953
|
+
@media (prefers-color-scheme: dark) {
|
|
954
|
+
--text-color: rgb(201, 205, 207);
|
|
955
|
+
--bg-color: rgb(34, 36, 37);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
#storybook-root, #storybook-docs {
|
|
959
|
+
overflow-y: auto;
|
|
960
|
+
max-height: 100vh;
|
|
961
|
+
max-width: 100%;
|
|
962
|
+
}
|
|
963
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
964
|
+
box-sizing: border-box;
|
|
965
|
+
}
|
|
966
|
+
#sb-navigator-container {
|
|
967
|
+
height: 100vh;
|
|
968
|
+
overflow-y: auto;
|
|
969
|
+
border-right: 1px solid #eee;
|
|
970
|
+
padding: 1rem;
|
|
971
|
+
font-size: 14px;
|
|
972
|
+
color: var(--text-color);
|
|
973
|
+
background-color: var(--bg-color);
|
|
974
|
+
align-self: start;
|
|
975
|
+
z-index: 1000;
|
|
976
|
+
}
|
|
977
|
+
.sb-main-padded #sb-navigator-container {
|
|
978
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
979
|
+
}
|
|
980
|
+
.sb-navigator-list {
|
|
981
|
+
list-style-type: none;
|
|
982
|
+
padding: 0;
|
|
983
|
+
margin: 0;
|
|
984
|
+
}
|
|
985
|
+
.sb-navigator-branch {
|
|
986
|
+
list-style-type: none;
|
|
987
|
+
}
|
|
988
|
+
.sb-navigator-item {
|
|
989
|
+
margin-bottom: 15px;
|
|
990
|
+
}
|
|
991
|
+
.sb-navigator-title {
|
|
992
|
+
color: var(--text-color);
|
|
993
|
+
text-decoration: none;
|
|
994
|
+
padding-block: 5px;
|
|
995
|
+
cursor: pointer;
|
|
996
|
+
}
|
|
997
|
+
.sb-navigator-entries {
|
|
998
|
+
padding-left: 15px;
|
|
999
|
+
}
|
|
1000
|
+
.sb-navigator-story-item {
|
|
1001
|
+
margin-bottom: 8px;
|
|
1002
|
+
margin-left: 8px;
|
|
1003
|
+
}
|
|
1004
|
+
.sb-navigator-story-link {
|
|
1005
|
+
color: var(--text-color);
|
|
1006
|
+
}
|
|
1007
|
+
.sb-navigator-story-link.active {
|
|
1008
|
+
font-weight: bold;
|
|
1009
|
+
color: hsl(212 100 46);
|
|
1010
|
+
}
|
|
1011
|
+
`,document.head.appendChild(l),a.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},XY=Cr(sL(),1),im;function QY(){return im||(im=new XY.default(He.navigator?.userAgent).getBrowserInfo()),im}function ZY(e){return e.browserInfo=QY(),e}function eX(e){let t=e.error||e;t.fromStorybook&&He.sendTelemetryError(t)}function tX({reason:e}){e.fromStorybook&&He.sendTelemetryError(e)}function jO(){$L.forEach(e=>{He[z_[e]]=GY[e]}),He.sendTelemetryError=e=>{He.__STORYBOOK_ADDONS_CHANNEL__.emit($_,ZY(e))},document.addEventListener("DOMContentLoaded",()=>{He.__STORYBOOK_ADDONS_CHANNEL__.on(U_,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),He.addEventListener("error",eX),He.addEventListener("unhandledrejection",tX),KY()}jO();const{createBrowserChannel:rX}=__STORYBOOK_MODULE_CHANNELS__,{addons:nX}=__STORYBOOK_MODULE_PREVIEW_API__,U0=rX({page:"preview"});nX.setChannel(U0);window.__STORYBOOK_ADDONS_CHANNEL__=U0;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=U0);const iX={"./src/components/form/Checkbox.stories.tsx":()=>vt(()=>import("./Checkbox.stories-C58YeH4u.js"),__vite__mapDeps([0,1]),import.meta.url),"./src/components/form/ColorPicker.stories.tsx":()=>vt(()=>import("./ColorPicker.stories-Dc7-AuPQ.js"),__vite__mapDeps([2,1]),import.meta.url),"./src/components/form/Label.stories.tsx":()=>vt(()=>import("./Label.stories-B6pCT45X.js"),__vite__mapDeps([3,1]),import.meta.url),"./src/components/form/Select.stories.tsx":()=>vt(()=>import("./Select.stories-BJjJqLTa.js"),__vite__mapDeps([4,1]),import.meta.url),"./src/components/form/Toggle.stories.tsx":()=>vt(()=>import("./Toggle.stories-tBlD8SJi.js"),__vite__mapDeps([5,1]),import.meta.url),"./src/components/form/choice/Choice.stories.tsx":()=>vt(()=>import("./Choice.stories-Cf7UbPxn.js"),__vite__mapDeps([6,1]),import.meta.url),"./src/components/form/input/Input.stories.tsx":()=>vt(()=>import("./Input.stories-Cbj2X3kT.js"),__vite__mapDeps([7,1]),import.meta.url),"./src/components/form/textarea/TextArea.stories.tsx":()=>vt(()=>import("./TextArea.stories-DqzHYgIv.js"),__vite__mapDeps([8,1]),import.meta.url),"./src/components/icons/Icon.stories.tsx":()=>vt(()=>import("./Icon.stories-D1YeVBlB.js"),__vite__mapDeps([9,1]),import.meta.url),"./src/components/layout/card/Card.stories.tsx":()=>vt(()=>import("./Card.stories-BoCt66U4.js"),__vite__mapDeps([10,1]),import.meta.url),"./src/components/layout/header/Header.stories.tsx":()=>vt(()=>import("./Header.stories-CzPBNEkp.js"),__vite__mapDeps([11,1]),import.meta.url),"./src/components/layout/header/HeaderIconAction.stories.tsx":()=>vt(()=>import("./HeaderIconAction.stories-Dm3Q-BVW.js"),__vite__mapDeps([12,1]),import.meta.url),"./src/components/layout/header/StickyHeader.stories.tsx":()=>vt(()=>import("./StickyHeader.stories-BnxgnjJW.js"),__vite__mapDeps([13,1]),import.meta.url),"./src/components/layout/list/Header.stories.tsx":()=>vt(()=>import("./Header.stories-BN7BuQx2.js"),__vite__mapDeps([14,1]),import.meta.url),"./src/components/layout/list/Item.stories.tsx":()=>vt(()=>import("./Item.stories-CmjyxdgQ.js"),__vite__mapDeps([15,1]),import.meta.url),"./src/components/layout/list/Label.stories.tsx":()=>vt(()=>import("./Label.stories-BR3gNHqM.js"),__vite__mapDeps([16,1]),import.meta.url),"./src/components/layout/list/List.stories.tsx":()=>vt(()=>import("./List.stories-MSQY1Rdo.js"),__vite__mapDeps([17,1]),import.meta.url),"./src/components/layout/list/Value.stories.tsx":()=>vt(()=>import("./Value.stories-CFT20m8r.js"),__vite__mapDeps([18,1]),import.meta.url),"./src/components/layout/section/Section.stories.tsx":()=>vt(()=>import("./Section.stories-M-QRH2_i.js"),__vite__mapDeps([19,1]),import.meta.url),"./src/components/layout/table/Table.stories.tsx":()=>vt(()=>import("./Table.stories-6F-WrDBs.js"),__vite__mapDeps([20,1]),import.meta.url),"./src/components/ui/action/Action.stories.tsx":()=>vt(()=>import("./Action.stories-DBtNlWQo.js"),__vite__mapDeps([21,1]),import.meta.url),"./src/components/ui/action/EqualActions.stories.tsx":()=>vt(()=>import("./EqualActions.stories-CwjZlkUA.js"),__vite__mapDeps([22,1]),import.meta.url),"./src/components/ui/button/Button.stories.tsx":()=>vt(()=>import("./Button.stories-DFO8nsTN.js"),__vite__mapDeps([23,1]),import.meta.url),"./src/components/ui/directionPad/Pad.stories.tsx":()=>vt(()=>import("./Pad.stories-hrKerezi.js"),__vite__mapDeps([24,1]),import.meta.url),"./src/components/ui/drawer/Drawer.stories.tsx":()=>vt(()=>import("./Drawer.stories-D3_-TuT0.js"),__vite__mapDeps([25,1]),import.meta.url),"./src/components/ui/keyValue/KeyValue.stories.tsx":()=>vt(()=>import("./KeyValue.stories-CogaZP09.js"),__vite__mapDeps([26,1]),import.meta.url),"./src/components/ui/line/Line.stories.tsx":()=>vt(()=>import("./Line.stories-BJLer7gg.js"),__vite__mapDeps([27,1]),import.meta.url),"./src/components/ui/loader/CoveringLoader.stories.tsx":()=>vt(()=>import("./CoveringLoader.stories-DrUQAhI6.js"),__vite__mapDeps([28,1]),import.meta.url),"./src/components/ui/loader/FullLoader.stories.tsx":()=>vt(()=>import("./FullLoader.stories-DFAaVMfI.js"),__vite__mapDeps([29,1]),import.meta.url),"./src/components/ui/loader/Loader.stories.tsx":()=>vt(()=>import("./Loader.stories-CbN84qNp.js"),__vite__mapDeps([30,1]),import.meta.url),"./src/components/ui/loader/Loading.stories.tsx":()=>vt(()=>import("./Loading.stories-BOANGXsc.js"),__vite__mapDeps([31,1]),import.meta.url),"./src/components/ui/loader/PopLoader.stories.tsx":()=>vt(()=>import("./PopLoader.stories-CyskY4fX.js"),__vite__mapDeps([32,1]),import.meta.url),"./src/components/ui/message/Message.stories.tsx":()=>vt(()=>import("./Message.stories-_51K9ZDn.js"),__vite__mapDeps([33,1]),import.meta.url),"./src/components/ui/modal/Modal.stories.tsx":()=>vt(()=>import("./Modal.stories-CixfvMuM.js"),__vite__mapDeps([34,1]),import.meta.url),"./src/components/ui/modal/ModalButtons.stories.tsx":()=>vt(()=>import("./ModalButtons.stories-DHHsnoGB.js"),__vite__mapDeps([35,1]),import.meta.url),"./src/components/ui/pop/Pop.stories.tsx":()=>vt(()=>import("./Pop.stories-BTlQGve1.js"),__vite__mapDeps([36,1]),import.meta.url),"./src/components/ui/progress/Progress.stories.tsx":()=>vt(()=>import("./Progress.stories-BLMPF6Ju.js"),__vite__mapDeps([37,1]),import.meta.url),"./src/components/ui/stats/Stats.stories.tsx":()=>vt(()=>import("./Stats.stories-VB0pi5k5.js"),__vite__mapDeps([38,1]),import.meta.url),"./src/components/ui/tabs/Selector.stories.tsx":()=>vt(()=>import("./Selector.stories-BxHyFnYo.js"),__vite__mapDeps([39,1]),import.meta.url),"./src/components/ui/toaster/Toaster.stories.tsx":()=>vt(()=>import("./Toaster.stories-C0ktk0DW.js"),__vite__mapDeps([40,1]),import.meta.url),"./src/components/ui/toolButton/ToolButton.stories.tsx":()=>vt(()=>import("./ToolButton.stories-0rGBGqAt.js"),__vite__mapDeps([41,1]),import.meta.url)};async function oX(e){return await iX[e]()}function $O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var om={exports:{}},Tt={};var SA;function aX(){if(SA)return Tt;SA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function g(re){return re===null||typeof re!="object"?null:(re=y&&re[y]||re["@@iterator"],typeof re=="function"?re:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function x(re,G,he){this.props=re,this.context=G,this.refs=A,this.updater=he||b}x.prototype.isReactComponent={},x.prototype.setState=function(re,G){if(typeof re!="object"&&typeof re!="function"&&re!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,re,G,"setState")},x.prototype.forceUpdate=function(re){this.updater.enqueueForceUpdate(this,re,"forceUpdate")};function _(){}_.prototype=x.prototype;function R(re,G,he){this.props=re,this.context=G,this.refs=A,this.updater=he||b}var j=R.prototype=new _;j.constructor=R,w(j,x.prototype),j.isPureReactComponent=!0;var B=Array.isArray,F=Object.prototype.hasOwnProperty,E={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(re,G,he){var De,_e={},ge=null,Ve=null;if(G!=null)for(De in G.ref!==void 0&&(Ve=G.ref),G.key!==void 0&&(ge=""+G.key),G)F.call(G,De)&&!P.hasOwnProperty(De)&&(_e[De]=G[De]);var $e=arguments.length-2;if($e===1)_e.children=he;else if(1<$e){for(var lt=Array($e),le=0;le<$e;le++)lt[le]=arguments[le+2];_e.children=lt}if(re&&re.defaultProps)for(De in $e=re.defaultProps,$e)_e[De]===void 0&&(_e[De]=$e[De]);return{$$typeof:e,type:re,key:ge,ref:Ve,props:_e,_owner:E.current}}function L(re,G){return{$$typeof:e,type:re.type,key:G,ref:re.ref,props:re.props,_owner:re._owner}}function Z(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function H(re){var G={"=":"=0",":":"=2"};return"$"+re.replace(/[=:]/g,function(he){return G[he]})}var te=/\/+/g;function W(re,G){return typeof re=="object"&&re!==null&&re.key!=null?H(""+re.key):G.toString(36)}function $(re,G,he,De,_e){var ge=typeof re;(ge==="undefined"||ge==="boolean")&&(re=null);var Ve=!1;if(re===null)Ve=!0;else switch(ge){case"string":case"number":Ve=!0;break;case"object":switch(re.$$typeof){case e:case t:Ve=!0}}if(Ve)return Ve=re,_e=_e(Ve),re=De===""?"."+W(Ve,0):De,B(_e)?(he="",re!=null&&(he=re.replace(te,"$&/")+"/"),$(_e,G,he,"",function(le){return le})):_e!=null&&(Z(_e)&&(_e=L(_e,he+(!_e.key||Ve&&Ve.key===_e.key?"":(""+_e.key).replace(te,"$&/")+"/")+re)),G.push(_e)),1;if(Ve=0,De=De===""?".":De+":",B(re))for(var $e=0;$e<re.length;$e++){ge=re[$e];var lt=De+W(ge,$e);Ve+=$(ge,G,he,lt,_e)}else if(lt=g(re),typeof lt=="function")for(re=lt.call(re),$e=0;!(ge=re.next()).done;)ge=ge.value,lt=De+W(ge,$e++),Ve+=$(ge,G,he,lt,_e);else if(ge==="object")throw G=String(re),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(re).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return Ve}function K(re,G,he){if(re==null)return re;var De=[],_e=0;return $(re,De,"","",function(ge){return G.call(he,ge,_e++)}),De}function ne(re){if(re._status===-1){var G=re._result;G=G(),G.then(function(he){(re._status===0||re._status===-1)&&(re._status=1,re._result=he)},function(he){(re._status===0||re._status===-1)&&(re._status=2,re._result=he)}),re._status===-1&&(re._status=0,re._result=G)}if(re._status===1)return re._result.default;throw re._result}var ae={current:null},oe={transition:null},Ae={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:oe,ReactCurrentOwner:E};function Ce(){throw Error("act(...) is not supported in production builds of React.")}return Tt.Children={map:K,forEach:function(re,G,he){K(re,function(){G.apply(this,arguments)},he)},count:function(re){var G=0;return K(re,function(){G++}),G},toArray:function(re){return K(re,function(G){return G})||[]},only:function(re){if(!Z(re))throw Error("React.Children.only expected to receive a single React element child.");return re}},Tt.Component=x,Tt.Fragment=r,Tt.Profiler=i,Tt.PureComponent=R,Tt.StrictMode=n,Tt.Suspense=p,Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,Tt.act=Ce,Tt.cloneElement=function(re,G,he){if(re==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+re+".");var De=w({},re.props),_e=re.key,ge=re.ref,Ve=re._owner;if(G!=null){if(G.ref!==void 0&&(ge=G.ref,Ve=E.current),G.key!==void 0&&(_e=""+G.key),re.type&&re.type.defaultProps)var $e=re.type.defaultProps;for(lt in G)F.call(G,lt)&&!P.hasOwnProperty(lt)&&(De[lt]=G[lt]===void 0&&$e!==void 0?$e[lt]:G[lt])}var lt=arguments.length-2;if(lt===1)De.children=he;else if(1<lt){$e=Array(lt);for(var le=0;le<lt;le++)$e[le]=arguments[le+2];De.children=$e}return{$$typeof:e,type:re.type,key:_e,ref:ge,props:De,_owner:Ve}},Tt.createContext=function(re){return re={$$typeof:l,_currentValue:re,_currentValue2:re,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},re.Provider={$$typeof:a,_context:re},re.Consumer=re},Tt.createElement=N,Tt.createFactory=function(re){var G=N.bind(null,re);return G.type=re,G},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(re){return{$$typeof:u,render:re}},Tt.isValidElement=Z,Tt.lazy=function(re){return{$$typeof:m,_payload:{_status:-1,_result:re},_init:ne}},Tt.memo=function(re,G){return{$$typeof:c,type:re,compare:G===void 0?null:G}},Tt.startTransition=function(re){var G=oe.transition;oe.transition={};try{re()}finally{oe.transition=G}},Tt.unstable_act=Ce,Tt.useCallback=function(re,G){return ae.current.useCallback(re,G)},Tt.useContext=function(re){return ae.current.useContext(re)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(re){return ae.current.useDeferredValue(re)},Tt.useEffect=function(re,G){return ae.current.useEffect(re,G)},Tt.useId=function(){return ae.current.useId()},Tt.useImperativeHandle=function(re,G,he){return ae.current.useImperativeHandle(re,G,he)},Tt.useInsertionEffect=function(re,G){return ae.current.useInsertionEffect(re,G)},Tt.useLayoutEffect=function(re,G){return ae.current.useLayoutEffect(re,G)},Tt.useMemo=function(re,G){return ae.current.useMemo(re,G)},Tt.useReducer=function(re,G,he){return ae.current.useReducer(re,G,he)},Tt.useRef=function(re){return ae.current.useRef(re)},Tt.useState=function(re){return ae.current.useState(re)},Tt.useSyncExternalStore=function(re,G,he){return ae.current.useSyncExternalStore(re,G,he)},Tt.useTransition=function(){return ae.current.useTransition()},Tt.version="18.3.1",Tt}var AA;function VO(){return AA||(AA=1,om.exports=aX()),om.exports}var Oe=VO();const ue=$O(Oe),Ane=Uk({__proto__:null,default:ue},[Oe]),{defaultDecorateStory:sX}=__STORYBOOK_MODULE_PREVIEW_API__;var J0=(e,t)=>sX(r=>ue.createElement(e,r),t),lX=Object.create,z0=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,UO=Object.getOwnPropertyNames,cX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,ir=(e,t)=>function(){return t||(0,e[UO(e)[0]])((t={exports:{}}).exports,t),t.exports},H0=(e,t)=>{for(var r in t)z0(e,r,{get:t[r],enumerable:!0})},pX=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UO(t))!dX.call(e,i)&&i!==r&&z0(e,i,{get:()=>t[i],enumerable:!(n=uX(t,i))||n.enumerable});return e},qs=(e,t,r)=>(r=e!=null?lX(cX(e)):{},pX(t||!e||!e.__esModule?z0(r,"default",{value:e,enumerable:!0}):r,e)),fX={};H0(fX,{applyDecorators:()=>J0,beforeAll:()=>XO,decorators:()=>KO,mount:()=>GO,parameters:()=>YO,render:()=>zO,renderToCanvas:()=>WO});const{Tag:hX}=__STORYBOOK_MODULE_PREVIEW_API__,{global:mX}=__STORYBOOK_MODULE_GLOBAL__,{configure:yX}=__STORYBOOK_MODULE_TEST__;function _A(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function gX(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var JO=async({disableAct:e=!1}={})=>t=>t(),zO=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return ue.createElement(n,{...e})};const{global:bX}=__STORYBOOK_MODULE_GLOBAL__;var{FRAMEWORK_OPTIONS:vX}=bX,EX=class extends Oe.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},CA=vX?.strictMode?Oe.StrictMode:Oe.Fragment,Cy=[],am=!1,HO=async()=>{if(am||Cy.length===0)return;am=!0;let e=Cy.shift();e&&await e(),am=!1,HO()};async function WO({storyContext:e,unboundStoryFn:t,showMain:r,showException:n,forceRemount:i},a){let{renderElement:l,unmountElement:u}=await vt(async()=>{const{renderElement:g,unmountElement:b}=await import("./react-18-oqx706Mo.js");return{renderElement:g,unmountElement:b}},__vite__mapDeps([42,1]),import.meta.url),p=t,c=e.parameters.__isPortableStory?ue.createElement(p,{...e}):ue.createElement(EX,{key:e.id,showMain:r,showException:n},ue.createElement(p,{...e})),m=CA?ue.createElement(CA,null,c):c;i&&u(a);let y=await JO({disableAct:e.viewMode==="docs"});return await new Promise(async(g,b)=>{Cy.push(async()=>{try{await y(async()=>{await l(m,a,e?.parameters?.react?.rootOptions)}),g()}catch(w){b(w)}}),HO()}),async()=>{await y(()=>{u(a)})}}var GO=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),KO=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[r,n]=Oe.version.split(".").map(i=>parseInt(i,10));if(!Number.isInteger(r)||!Number.isInteger(n))throw new Error("Unable to parse React version");if(r<18||r===18&&n<3)throw new Error("React Server Components require React >= 18.3");return Oe.createElement(Oe.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(hX.TEST_FN)&&!mX.FEATURES?.experimentalTestSyntax)throw new Error("To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax");return e()}],YO={renderer:"react"},XO=async()=>{try{let e=await JO();yX({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async t=>{let r=gX();_A(!1);try{let n=await t();return await new Promise(i=>{setTimeout(()=>{i()},0),wX()&&jest.advanceTimersByTime(0)}),n}finally{_A(r)}},eventWrapper:t=>{let r;return e(()=>(r=t(),r)),r}})}catch{}};function wX(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}const SX=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:J0,beforeAll:XO,decorators:KO,mount:GO,parameters:YO,render:zO,renderToCanvas:WO},Symbol.toStringTag,{value:"Module"}));var AX=ir({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(p){for(var c,m=1,y=arguments.length;m<y;m++){c=arguments[m];for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&(p[g]=c[g])}return p},t.apply(this,arguments)},r=e&&e.__spreadArrays||function(){for(var p=0,c=0,m=arguments.length;c<m;c++)p+=arguments[c].length;for(var y=Array(p),g=0,c=0;c<m;c++)for(var b=arguments[c],w=0,A=b.length;w<A;w++,g++)y[g]=b[w];return y};Object.defineProperty(e,"__esModule",{value:!0});var n=[];function i(p){var c=typeof p;return p!==null&&(c==="object"||c==="function")}function a(p){return Object.prototype.toString.call(p)==="[object RegExp]"}function l(p){return Object.getOwnPropertySymbols(p).filter(function(c){return Object.prototype.propertyIsEnumerable.call(p,c)})}function u(p,c,m){m===void 0&&(m="");var y={indent:" ",singleQuotes:!0},g=t(t({},y),c),b;g.inlineCharacterLimit===void 0?b={newLine:`
|
|
1012
|
+
`,newLineOrSpace:`
|
|
1013
|
+
`,pad:m,indent:m+g.indent}:b={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var w=function(_){if(g.inlineCharacterLimit===void 0)return _;var R=_.replace(new RegExp(b.newLine,"g"),"").replace(new RegExp(b.newLineOrSpace,"g")," ").replace(new RegExp(b.pad+"|"+b.indent,"g"),"");return R.length<=g.inlineCharacterLimit?R:_.replace(new RegExp(b.newLine+"|"+b.newLineOrSpace,"g"),`
|
|
1014
|
+
`).replace(new RegExp(b.pad,"g"),m).replace(new RegExp(b.indent,"g"),m+g.indent)};if(n.indexOf(p)!==-1)return'"[Circular]"';if(p==null||typeof p=="number"||typeof p=="boolean"||typeof p=="function"||typeof p=="symbol"||a(p))return String(p);if(p instanceof Date)return"new Date('"+p.toISOString()+"')";if(Array.isArray(p)){if(p.length===0)return"[]";n.push(p);var A="["+b.newLine+p.map(function(_,R){var j=p.length-1===R?b.newLine:","+b.newLineOrSpace,B=u(_,g,m+g.indent);return g.transform&&(B=g.transform(p,R,B)),b.indent+B+j}).join("")+b.pad+"]";return n.pop(),w(A)}if(i(p)){var x=r(Object.keys(p),l(p));if(g.filter&&(x=x.filter(function(R){return g.filter&&g.filter(p,R)})),x.length===0)return"{}";n.push(p);var A="{"+b.newLine+x.map(function(R,j){var B=x.length-1===j?b.newLine:","+b.newLineOrSpace,F=typeof R=="symbol",E=!F&&/^[a-z$_][a-z$_0-9]*$/i.test(R.toString()),P=F||E?R:u(R,g),N=u(p[R],g,m+g.indent);return g.transform&&(N=g.transform(p,R,N)),b.indent+String(P)+": "+N+B}).join("")+b.pad+"}";return n.pop(),w(A)}return p=String(p).replace(/[\r\n]/g,function(_){return _===`
|
|
1015
|
+
`?"\\n":"\\r"}),g.singleQuotes?(p=p.replace(/\\?'/g,"\\'"),"'"+p+"'"):(p=p.replace(/"/g,'\\"'),'"'+p+'"')}e.prettyPrint=u}}),_X=ir({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),p=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case n:case a:case i:case m:case y:return _;default:switch(_=_&&_.$$typeof,_){case p:case u:case c:case b:case g:case l:return _;default:return R}}case r:return R}}}e.ContextConsumer=u,e.ContextProvider=l,e.Element=t,e.ForwardRef=c,e.Fragment=n,e.Lazy=b,e.Memo=g,e.Portal=r,e.Profiler=a,e.StrictMode=i,e.Suspense=m,e.SuspenseList=y,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(_){return x(_)===u},e.isContextProvider=function(_){return x(_)===l},e.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},e.isForwardRef=function(_){return x(_)===c},e.isFragment=function(_){return x(_)===n},e.isLazy=function(_){return x(_)===b},e.isMemo=function(_){return x(_)===g},e.isPortal=function(_){return x(_)===r},e.isProfiler=function(_){return x(_)===a},e.isStrictMode=function(_){return x(_)===i},e.isSuspense=function(_){return x(_)===m},e.isSuspenseList=function(_){return x(_)===y},e.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===a||_===i||_===m||_===y||_===w||typeof _=="object"&&_!==null&&(_.$$typeof===b||_.$$typeof===g||_.$$typeof===l||_.$$typeof===u||_.$$typeof===c||_.$$typeof===A||_.getModuleId!==void 0)},e.typeOf=x}}),CX=ir({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=_X()}}),QO=e=>e.$$typeof===Symbol.for("react.memo"),TX=e=>e.$$typeof===Symbol.for("react.forward_ref");function TA(e){return Object.prototype.toString.call(e)==="[object Object]"}function xX(e){var t,r;return TA(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(TA(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var RX=qs(AX()),vi=qs(CX()),zi=(function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")});function Ty(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DX(e){if(Array.isArray(e))return Ty(e)}function PX(e,t,r){return(t=BX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1016
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xA(Object(r),!0).forEach(function(n){PX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FX(e){return DX(e)||OX(e)||LX(e)||NX()}function kX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BX(e){var t=kX(e,"string");return typeof t=="symbol"?t:t+""}function gu(e){"@babel/helpers - typeof";return gu=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},gu(e)}function LX(e,t){if(e){if(typeof e=="string")return Ty(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ty(e,t):void 0}}function xy(e,t){if(e===null||gu(e)!=="object"||e instanceof Date||e instanceof RegExp)return e;if(Oe.isValidElement(e)){var r=IX({},e);return delete r._owner,r}return t.add(e),Array.isArray(e)?e.map(function(n){return xy(n,t)}):Object.keys(e).sort().reduce(function(n,i){return i==="current"||t.has(e[i])?n[i]="[Circular]":n[i]=xy(e[i],t),n},{})}function MX(e){return xy(e,new WeakSet)}var ZO=function(e){return{type:"string",value:e}},qX=function(e){return{type:"number",value:e}},jX=function(e,t,r,n){return{type:"ReactElement",displayName:e,props:t,defaultProps:r,childrens:n}},$X=function(e,t){return{type:"ReactFragment",key:e,childrens:t}},VX=!!Oe.Fragment,eN=function(e){return!e.name||e.name==="_default"?"No Display Name":e.name},Ry=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===vi.Memo:return Ry(e.type);case e.$$typeof===vi.ForwardRef:return Ry(e.render);default:return eN(e)}},UX=function(e){switch(!0){case typeof e.type=="string":return e.type;case typeof e.type=="function":return e.type.displayName?e.type.displayName:eN(e.type);case(0,vi.isForwardRef)(e):case(0,vi.isMemo)(e):return Ry(e.type);case(0,vi.isContextConsumer)(e):return"".concat(e.type._context.displayName||"Context",".Consumer");case(0,vi.isContextProvider)(e):return"".concat(e.type._context.displayName||"Context",".Provider");case(0,vi.isLazy)(e):return"Lazy";case(0,vi.isProfiler)(e):return"Profiler";case(0,vi.isStrictMode)(e):return"StrictMode";case(0,vi.isSuspense)(e):return"Suspense";default:return"UnknownElementType"}},RA=function(e,t){return t!=="children"},JX=function(e){return e!==!0&&e!==!1&&e!==null&&e!==""},DA=function(e,t){var r={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(n){return r[n]=e[n]}),r},xp=function(e,t){var r=t.displayName,n=r===void 0?UX:r;if(typeof e=="string")return ZO(e);if(typeof e=="number")return qX(e);if(!ue.isValidElement(e))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(gu(e),"`"));var i=n(e),a=DA(e.props,RA);e.ref!==null&&(a.ref=e.ref);var l=e.key;typeof l=="string"&&l.search(/^\./)&&(a.key=l);var u=DA(e.type.defaultProps||{},RA),p=ue.Children.toArray(e.props.children).filter(JX).map(function(c){return xp(c,t)});return VX&&e.type===Oe.Fragment?$X(l,p):jX(i,a,u,p)};function zX(){}var HX=function(e){return e.toString().split(`
|
|
1017
|
+
`).map(function(t){return t.trim()}).join("")},PA=HX,tN=(function(e,t){var r=t.functionValue,n=r===void 0?PA:r,i=t.showFunctions;return n(!i&&n===PA?zX:e)}),WX=(function(e,t,r,n){var i=MX(e),a=(0,RX.prettyPrint)(i,{transform:function(l,u,p){var c=l[u];return c&&Oe.isValidElement(c)?Rp(xp(c,n),!0,r,n):typeof c=="function"?tN(c,n):p}});return t?a.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):a.replace(/\t/g,zi(1,n.tabStop)).replace(/\n([^$])/g,`
|
|
1018
|
+
`.concat(zi(r+1,n.tabStop),"$1"))}),GX=function(e){return e.replace(/"/g,""")},KX=function(e,t,r,n){if(typeof e=="number")return"{".concat(String(e),"}");if(typeof e=="string")return'"'.concat(GX(e),'"');if(gu(e)==="symbol"){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return i?"{Symbol('".concat(i,"')}"):"{Symbol()}"}return typeof e=="function"?"{".concat(tN(e,n),"}"):Oe.isValidElement(e)?"{".concat(Rp(xp(e,n),!0,r,n),"}"):e instanceof Date?isNaN(e.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(e.toISOString(),'")}'):xX(e)||Array.isArray(e)?"{".concat(WX(e,t,r,n),"}"):"{".concat(String(e),"}")},YX=(function(e,t,r,n,i,a,l,u){if(!t&&!n)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var p=t?r:i,c=u.useBooleanShorthandSyntax,m=u.tabStop,y=KX(p,a,l,u),g=" ",b=`
|
|
1019
|
+
`.concat(zi(l+1,m)),w=y.includes(`
|
|
1020
|
+
`);return c&&y==="{false}"&&!n?(g="",b=""):c&&y==="{true}"?(g+="".concat(e),b+="".concat(e)):(g+="".concat(e,"=").concat(y),b+="".concat(e,"=").concat(y)),{attributeFormattedInline:g,attributeFormattedMultiline:b,isMultilineAttribute:w}}),XX=(function(e,t){var r=e.slice(0,e.length>0?e.length-1:0),n=e[e.length-1];return n&&(t.type==="string"||t.type==="number")&&(n.type==="string"||n.type==="number")?r.push(ZO(String(n.value)+String(t.value))):(n&&r.push(n),r.push(t)),r}),QX=function(e){return["key","ref"].includes(e)},ZX=(function(e){return function(t){var r=t.includes("key"),n=t.includes("ref"),i=t.filter(function(l){return!QX(l)}),a=FX(e?i.sort():i);return n&&a.unshift("ref"),r&&a.unshift("key"),a}});function eQ(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var tQ=function(e,t,r,n,i){var a=i.tabStop;return e.type==="string"?t.split(`
|
|
1021
|
+
`).map(function(l,u){return u===0?l:"".concat(zi(n,a)).concat(l)}).join(`
|
|
1022
|
+
`):t},rQ=function(e,t,r){return function(n){return tQ(n,Rp(n,e,t,r),e,t,r)}},nQ=function(e,t){return function(r){var n=Object.keys(e).includes(r);return!n||n&&e[r]!==t[r]}},rN=function(e,t,r,n,i){return i?zi(r,n).length+t.length>i:e.length>1},iQ=function(e,t,r,n,i,a,l){return(rN(e,t,i,a,l)||r)&&!n},nN=(function(e,t,r,n){var i=e.type,a=e.displayName,l=a===void 0?"":a,u=e.childrens,p=e.props,c=p===void 0?{}:p,m=e.defaultProps,y=m===void 0?{}:m;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var g=n.filterProps,b=n.maxInlineAttributesLineLength,w=n.showDefaultProps,A=n.sortProps,x=n.tabStop,_="<".concat(l),R=_,j=_,B=!1,F=[],E=eQ(c,g);Object.keys(c).filter(E).filter(nQ(y,c)).forEach(function(L){return F.push(L)}),Object.keys(y).filter(E).filter(function(){return w}).filter(function(L){return!F.includes(L)}).forEach(function(L){return F.push(L)});var P=ZX(A)(F);if(P.forEach(function(L){var Z=YX(L,Object.keys(c).includes(L),c[L],Object.keys(y).includes(L),y[L],t,r,n),H=Z.attributeFormattedInline,te=Z.attributeFormattedMultiline,W=Z.isMultilineAttribute;W&&(B=!0),R+=H,j+=te}),j+=`
|
|
1023
|
+
`.concat(zi(r,x)),iQ(P,R,B,t,r,x,b)?_=j:_=R,u&&u.length>0){var N=r+1;_+=">",t||(_+=`
|
|
1024
|
+
`,_+=zi(N,x)),_+=u.reduce(XX,[]).map(rQ(t,N,n)).join(t?"":`
|
|
1025
|
+
`.concat(zi(N,x))),t||(_+=`
|
|
1026
|
+
`,_+=zi(N-1,x)),_+="</".concat(l,">")}else rN(P,R,r,x,b)||(_+=" "),_+="/>";return _}),oQ="",OA="React.Fragment",aQ=function(e,t,r){var n={};return t&&(n={key:t}),{type:"ReactElement",displayName:e,props:n,defaultProps:{},childrens:r}},sQ=function(e){var t=e.key;return!!t},lQ=function(e){var t=e.childrens;return t.length===0},uQ=(function(e,t,r,n){var i=e.type,a=e.key,l=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var u=n.useFragmentShortSyntax,p;return u?lQ(e)||sQ(e)?p=OA:p=oQ:p=OA,nN(aQ(p,a,l),t,r,n)}),cQ=["<",">","{","}"],dQ=function(e){return cQ.some(function(t){return e.includes(t)})},pQ=function(e){return dQ(e)?"{`".concat(e,"`}"):e},fQ=function(e){var t=e;return t.endsWith(" ")&&(t=t.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),t.startsWith(" ")&&(t=t.replace(/^(\s+)(.*)$/,"{'$1'}$2")),t},Rp=(function(e,t,r,n){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(fQ(pQ(String(e.value)))):"";if(e.type==="ReactElement")return nN(e,t,r,n);if(e.type==="ReactFragment")return uQ(e,t,r,n);throw new TypeError('Unknow format type "'.concat(e.type,'"'))}),hQ=(function(e,t){return Rp(e,!1,0,t)}),iN=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.filterProps,n=r===void 0?[]:r,i=t.showDefaultProps,a=i===void 0?!0:i,l=t.showFunctions,u=l===void 0?!1:l,p=t.functionValue,c=t.tabStop,m=c===void 0?2:c,y=t.useBooleanShorthandSyntax,g=y===void 0?!0:y,b=t.useFragmentShortSyntax,w=b===void 0?!0:b,A=t.sortProps,x=A===void 0?!0:A,_=t.maxInlineAttributesLineLength,R=t.displayName;if(!e)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var j={filterProps:n,showDefaultProps:a,showFunctions:u,functionValue:p,tabStop:m,useBooleanShorthandSyntax:g,useFragmentShortSyntax:w,sortProps:x,maxInlineAttributesLineLength:_,displayName:R};return hQ(xp(e,j),j)};function ba(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function mQ(e){return e==null||typeof e!="object"&&typeof e!="function"}function yQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _ne(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Cne(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Tne="[object RegExp]",xne="[object String]",Rne="[object Number]",Dne="[object Boolean]",Pne="[object Arguments]",One="[object Symbol]",Nne="[object Date]",Ine="[object Map]",Fne="[object Set]",kne="[object Array]",Bne="[object Function]",Lne="[object ArrayBuffer]",Mne="[object Object]",qne="[object Error]",jne="[object DataView]",$ne="[object Uint8Array]",Vne="[object Uint8ClampedArray]",Une="[object Uint16Array]",Jne="[object Uint32Array]",zne="[object BigUint64Array]",Hne="[object Int8Array]",Wne="[object Int16Array]",Gne="[object Int32Array]",Kne="[object BigInt64Array]",Yne="[object Float32Array]",Xne="[object Float64Array]";function gQ(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let a=n[i],l=e[a];r[a]=t(l,a,e)}return r}function bQ(e){return e==="__proto__"}function ji(e,t,r){let n=Object.keys(t);for(let i=0;i<n.length;i++){let a=n[i];if(bQ(a))continue;let l=t[a],u=e[a],p=r(u,l,a,e,t);p!==void 0?e[a]=p:Array.isArray(l)?Array.isArray(u)?e[a]=ji(u,l,r):e[a]=ji([],l,r):ba(l)?ba(u)?e[a]=ji(u,l,r):e[a]=ji({},l,r):(u===void 0||l!==void 0)&&(e[a]=l)}return e}function Qne(e,t){let r={};for(let n=0;n<t.length;n++){let i=t[n];Object.hasOwn(e,i)&&(r[i]=e[i])}return r}function sm(e){if(mQ(e))return e;if(Array.isArray(e)||yQ(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function Zne(e,t){let r={...e};for(let n=0;n<t.length;n++){let i=t[n];delete r[i]}return r}function eie(e,t){return ji(sm(e),t,function r(n,i){if(Array.isArray(i))return Array.isArray(n)?ji(sm(n),i,r):ji([],i,r);if(ba(i))return ba(n)?ji(sm(n),i,r):ji({},i,r)})}var vQ=Object.create,W0=Object.defineProperty,EQ=Object.getOwnPropertyDescriptor,oN=Object.getOwnPropertyNames,wQ=Object.getPrototypeOf,SQ=Object.prototype.hasOwnProperty,tie=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),AQ=(e,t)=>function(){return t||(0,e[oN(e)[0]])((t={exports:{}}).exports,t),t.exports},rie=(e,t)=>{for(var r in t)W0(e,r,{get:t[r],enumerable:!0})},_Q=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oN(t))!SQ.call(e,i)&&i!==r&&W0(e,i,{get:()=>t[i],enumerable:!(n=EQ(t,i))||n.enumerable});return e},CQ=(e,t,r)=>(r=e!=null?vQ(wQ(e)):{},_Q(t||!e||!e.__esModule?W0(r,"default",{value:e,enumerable:!0}):r,e)),TQ=AQ({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(d){return d.text!==void 0&&d.text!==""?`'${d.type}' with value '${d.text}'`:`'${d.type}'`}class i extends Error{constructor(S){super(`No parslet found for token: ${n(S)}`),this.token=S,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(S){super(`The parsing ended early. The next token was: ${n(S)}`),this.token=S,Object.setPrototypeOf(this,a.prototype)}getToken(){return this.token}}class l extends Error{constructor(S,I){let J=`Unexpected type: '${S.type}'.`;I!==void 0&&(J+=` Message: ${I}`),super(J),Object.setPrototypeOf(this,l.prototype)}}function u(d){return S=>S.startsWith(d)?{type:d,text:d}:null}function p(d){let S=0,I,J=d[0],pe=!1;if(J!=="'"&&J!=='"')return null;for(;S<d.length;){if(S++,I=d[S],!pe&&I===J){S++;break}pe=!pe&&I==="\\"}if(I!==J)throw new Error("Unterminated String");return d.slice(0,S)}let c=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),m=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function y(d){let S=d[0];if(!c.test(S))return null;let I=1;do{if(S=d[I],!m.test(S))break;I++}while(I<d.length);return d.slice(0,I)}let g=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function b(d){var S,I;return(I=(S=g.exec(d))===null||S===void 0?void 0:S[0])!==null&&I!==void 0?I:null}let w=d=>{let S=y(d);return S==null?null:{type:"Identifier",text:S}};function A(d){return S=>{if(!S.startsWith(d))return null;let I=S[d.length];return I!==void 0&&m.test(I)?null:{type:d,text:d}}}let x=d=>{let S=p(d);return S==null?null:{type:"StringValue",text:S}},_=d=>d.length>0?null:{type:"EOF",text:""},R=d=>{let S=b(d);return S===null?null:{type:"Number",text:S}},j=[_,u("=>"),u("("),u(")"),u("{"),u("}"),u("["),u("]"),u("|"),u("&"),u("<"),u(">"),u(","),u(";"),u("*"),u("?"),u("!"),u("="),u(":"),u("..."),u("."),u("#"),u("~"),u("/"),u("@"),A("undefined"),A("null"),A("function"),A("this"),A("new"),A("module"),A("event"),A("extends"),A("external"),A("infer"),A("typeof"),A("keyof"),A("readonly"),A("import"),A("is"),A("in"),A("asserts"),R,w,x],B=/^\s*\n\s*/;class F{static create(S){let I=this.read(S);S=I.text;let J=this.read(S);return S=J.text,new F(S,void 0,I.token,J.token)}constructor(S,I,J,pe){this.text="",this.text=S,this.previous=I,this.current=J,this.next=pe}static read(S,I=!1){I=I||B.test(S),S=S.trim();for(let J of j){let pe=J(S);if(pe!==null){let Se=Object.assign(Object.assign({},pe),{startOfLine:I});return S=S.slice(Se.text.length),{text:S,token:Se}}}throw new Error("Unexpected Token "+S)}advance(){let S=F.read(this.text);return new F(S.text,this.current,this.next,S.token)}}function E(d){if(d===void 0)throw new Error("Unexpected undefined");if(d.type==="JsdocTypeKeyValue"||d.type==="JsdocTypeParameterList"||d.type==="JsdocTypeProperty"||d.type==="JsdocTypeReadonlyProperty"||d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField"||d.type==="JsdocTypeIndexSignature"||d.type==="JsdocTypeMappedType"||d.type==="JsdocTypeTypeParameter")throw new l(d);return d}function P(d){return d.type==="JsdocTypeKeyValue"?L(d):E(d)}function N(d){return d.type==="JsdocTypeName"?d:L(d)}function L(d){if(d.type!=="JsdocTypeKeyValue")throw new l(d);return d}function Z(d){var S;if(d.type==="JsdocTypeVariadic"){if(((S=d.element)===null||S===void 0?void 0:S.type)==="JsdocTypeName")return d;throw new l(d)}if(d.type!=="JsdocTypeNumber"&&d.type!=="JsdocTypeName")throw new l(d);return d}function H(d){if(d.type==="JsdocTypeTuple"||d.type==="JsdocTypeGeneric"&&d.meta.brackets==="square")return d;throw new l(d)}function te(d){return d.type==="JsdocTypeIndexSignature"||d.type==="JsdocTypeMappedType"}var W;(function(d){d[d.ALL=0]="ALL",d[d.PARAMETER_LIST=1]="PARAMETER_LIST",d[d.OBJECT=2]="OBJECT",d[d.KEY_VALUE=3]="KEY_VALUE",d[d.INDEX_BRACKETS=4]="INDEX_BRACKETS",d[d.UNION=5]="UNION",d[d.INTERSECTION=6]="INTERSECTION",d[d.PREFIX=7]="PREFIX",d[d.INFIX=8]="INFIX",d[d.TUPLE=9]="TUPLE",d[d.SYMBOL=10]="SYMBOL",d[d.OPTIONAL=11]="OPTIONAL",d[d.NULLABLE=12]="NULLABLE",d[d.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",d[d.FUNCTION=14]="FUNCTION",d[d.ARROW=15]="ARROW",d[d.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",d[d.GENERIC=17]="GENERIC",d[d.NAME_PATH=18]="NAME_PATH",d[d.PARENTHESIS=19]="PARENTHESIS",d[d.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(W||(W={}));class ${constructor(S,I,J){this.grammar=S,typeof I=="string"?this._lexer=F.create(I):this._lexer=I,this.baseParser=J}get lexer(){return this._lexer}parse(){let S=this.parseType(W.ALL);if(this.lexer.current.type!=="EOF")throw new a(this.lexer.current);return S}parseType(S){return E(this.parseIntermediateType(S))}parseIntermediateType(S){let I=this.tryParslets(null,S);if(I===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(I,S)}parseInfixIntermediateType(S,I){let J=this.tryParslets(S,I);for(;J!==null;)S=J,J=this.tryParslets(S,I);return S}tryParslets(S,I){for(let J of this.grammar){let pe=J(this,I,S);if(pe!==null)return pe}return null}consume(S){return Array.isArray(S)||(S=[S]),S.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(S){this._lexer=S.lexer}}function K(d){return d==="}"||d==="EOF"||d==="|"||d===","||d===")"||d===">"}let ne=(d,S,I)=>{let J=d.lexer.current.type,pe=d.lexer.next.type;return I==null&&J==="?"&&!K(pe)||I!=null&&J==="?"?(d.consume("?"),I==null?{type:"JsdocTypeNullable",element:d.parseType(W.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(I),meta:{position:"suffix"}}):null};function ae(d){let S=(I,J,pe)=>{let Se=I.lexer.current.type,Fe=I.lexer.next.type;if(pe===null){if("parsePrefix"in d&&d.accept(Se,Fe))return d.parsePrefix(I)}else if("parseInfix"in d&&d.precedence>J&&d.accept(Se,Fe))return d.parseInfix(I,pe);return null};return Object.defineProperty(S,"name",{value:d.name}),S}let oe=ae({name:"optionalParslet",accept:d=>d==="=",precedence:W.OPTIONAL,parsePrefix:d=>(d.consume("="),{type:"JsdocTypeOptional",element:d.parseType(W.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(d,S)=>(d.consume("="),{type:"JsdocTypeOptional",element:E(S),meta:{position:"suffix"}})}),Ae=ae({name:"numberParslet",accept:d=>d==="Number",parsePrefix:d=>{let S=parseFloat(d.lexer.current.text);return d.consume("Number"),{type:"JsdocTypeNumber",value:S}}}),Ce=ae({name:"parenthesisParslet",accept:d=>d==="(",parsePrefix:d=>{if(d.consume("("),d.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let S=d.parseIntermediateType(W.ALL);if(!d.consume(")"))throw new Error("Unterminated parenthesis");return S.type==="JsdocTypeParameterList"?S:S.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[S]}:{type:"JsdocTypeParenthesis",element:E(S)}}}),re=ae({name:"specialTypesParslet",accept:(d,S)=>d==="?"&&K(S)||d==="null"||d==="undefined"||d==="*",parsePrefix:d=>{if(d.consume("null"))return{type:"JsdocTypeNull"};if(d.consume("undefined"))return{type:"JsdocTypeUndefined"};if(d.consume("*"))return{type:"JsdocTypeAny"};if(d.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+d.lexer.current.text)}}),G=ae({name:"notNullableParslet",accept:d=>d==="!",precedence:W.NULLABLE,parsePrefix:d=>(d.consume("!"),{type:"JsdocTypeNotNullable",element:d.parseType(W.NULLABLE),meta:{position:"prefix"}}),parseInfix:(d,S)=>(d.consume("!"),{type:"JsdocTypeNotNullable",element:E(S),meta:{position:"suffix"}})});function he({allowTrailingComma:d}){return ae({name:"parameterListParslet",accept:S=>S===",",precedence:W.PARAMETER_LIST,parseInfix:(S,I)=>{let J=[P(I)];S.consume(",");do try{let pe=S.parseIntermediateType(W.PARAMETER_LIST);J.push(P(pe))}catch(pe){if(pe instanceof i)break;throw pe}while(S.consume(","));if(J.length>0&&J.slice(0,-1).some(pe=>pe.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:J}}})}let De=ae({name:"genericParslet",accept:(d,S)=>d==="<"||d==="."&&S==="<",precedence:W.GENERIC,parseInfix:(d,S)=>{let I=d.consume(".");d.consume("<");let J=[],pe=!1;if(d.consume("infer")){pe=!0;let Se=d.parseIntermediateType(W.SYMBOL);if(Se.type!=="JsdocTypeName")throw new l(Se,"A typescript asserts always has to have a name on the left side.");J.push(Se)}else do J.push(d.parseType(W.PARAMETER_LIST));while(d.consume(","));if(!d.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(S),elements:J},pe?{infer:!0}:{}),{meta:{brackets:"angle",dot:I}})}}),_e=ae({name:"unionParslet",accept:d=>d==="|",precedence:W.UNION,parseInfix:(d,S)=>{d.consume("|");let I=[];do I.push(d.parseType(W.UNION));while(d.consume("|"));return{type:"JsdocTypeUnion",elements:[E(S),...I]}}}),ge=[ne,oe,Ae,Ce,re,G,he({allowTrailingComma:!0}),De,_e,oe];function Ve({allowSquareBracketsOnAnyType:d,allowJsdocNamePaths:S,pathGrammar:I}){return function(J,pe,Se){if(Se==null||pe>=W.NAME_PATH)return null;let Fe=J.lexer.current.type,Pe=J.lexer.next.type;if(!(Fe==="."&&Pe!=="<"||Fe==="["&&(d||Se.type==="JsdocTypeName")||S&&(Fe==="~"||Fe==="#")))return null;let ht,wt=!1;J.consume(".")?ht="property":J.consume("[")?(ht="property-brackets",wt=!0):J.consume("~")?ht="inner":(J.consume("#"),ht="instance");let tr=I!==null?new $(I,J.lexer,J):J,Vt=tr.parseIntermediateType(W.NAME_PATH);J.acceptLexerState(tr);let Yr;switch(Vt.type){case"JsdocTypeName":Yr={type:"JsdocTypeProperty",value:Vt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Yr={type:"JsdocTypeProperty",value:Vt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Yr={type:"JsdocTypeProperty",value:Vt.value,meta:{quote:Vt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Vt.specialType==="event")Yr=Vt;else throw new l(Vt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new l(Vt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(wt&&!J.consume("]")){let li=J.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${li.type}' with text '${li.text}'`)}return{type:"JsdocTypeNamePath",left:E(Se),right:Yr,pathType:ht}}}function $e({allowedAdditionalTokens:d}){return ae({name:"nameParslet",accept:S=>S==="Identifier"||S==="this"||S==="new"||d.includes(S),parsePrefix:S=>{let{type:I,text:J}=S.lexer.current;return S.consume(I),{type:"JsdocTypeName",value:J}}})}let lt=ae({name:"stringValueParslet",accept:d=>d==="StringValue",parsePrefix:d=>{let S=d.lexer.current.text;return d.consume("StringValue"),{type:"JsdocTypeStringValue",value:S.slice(1,-1),meta:{quote:S[0]==="'"?"single":"double"}}}});function le({pathGrammar:d,allowedTypes:S}){return ae({name:"specialNamePathParslet",accept:I=>S.includes(I),parsePrefix:I=>{let J=I.lexer.current.type;if(I.consume(J),!I.consume(":"))return{type:"JsdocTypeName",value:J};let pe,Se=I.lexer.current;if(I.consume("StringValue"))pe={type:"JsdocTypeSpecialNamePath",value:Se.text.slice(1,-1),specialType:J,meta:{quote:Se.text[0]==="'"?"single":"double"}};else{let ht="",wt=["Identifier","@","/"];for(;wt.some(tr=>I.consume(tr));)ht+=Se.text,Se=I.lexer.current;pe={type:"JsdocTypeSpecialNamePath",value:ht,specialType:J,meta:{quote:void 0}}}let Fe=new $(d,I.lexer,I),Pe=Fe.parseInfixIntermediateType(pe,W.ALL);return I.acceptLexerState(Fe),E(Pe)}})}let ke=[$e({allowedAdditionalTokens:["external","module"]}),lt,Ae,Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Ue=[...ke,le({allowedTypes:["event"],pathGrammar:ke})];function Ge(d){let S;if(d.type==="JsdocTypeParameterList")S=d.elements;else if(d.type==="JsdocTypeParenthesis")S=[d.element];else throw new l(d);return S.map(I=>P(I))}function We(d){let S=Ge(d);if(S.some(I=>I.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return S}function nt({allowNamedParameters:d,allowNoReturnType:S,allowWithoutParenthesis:I,allowNewAsFunctionKeyword:J}){return ae({name:"functionParslet",accept:(pe,Se)=>pe==="function"||J&&pe==="new"&&Se==="(",parsePrefix:pe=>{let Se=pe.consume("new");pe.consume("function");let Fe=pe.lexer.current.type==="(";if(!Fe){if(!I)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Pe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:Se,parenthesis:Fe},ht=pe.parseIntermediateType(W.FUNCTION);if(d===void 0)Pe.parameters=We(ht);else{if(Se&&ht.type==="JsdocTypeFunction"&&ht.arrow)return Pe=ht,Pe.constructor=!0,Pe;Pe.parameters=Ge(ht);for(let wt of Pe.parameters)if(wt.type==="JsdocTypeKeyValue"&&!d.includes(wt.key))throw new Error(`only allowed named parameters are ${d.join(", ")} but got ${wt.type}`)}if(pe.consume(":"))Pe.returnType=pe.parseType(W.PREFIX);else if(!S)throw new Error("function is missing return type");return Pe}})}function it({allowPostfix:d,allowEnclosingBrackets:S}){return ae({name:"variadicParslet",accept:I=>I==="...",precedence:W.PREFIX,parsePrefix:I=>{I.consume("...");let J=S&&I.consume("[");try{let pe=I.parseType(W.PREFIX);if(J&&!I.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(pe),meta:{position:"prefix",squareBrackets:J}}}catch(pe){if(pe instanceof i){if(J)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw pe}},parseInfix:d?(I,J)=>(I.consume("..."),{type:"JsdocTypeVariadic",element:E(J),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let pt=ae({name:"symbolParslet",accept:d=>d==="(",precedence:W.SYMBOL,parseInfix:(d,S)=>{if(S.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");d.consume("(");let I={type:"JsdocTypeSymbol",value:S.value};if(!d.consume(")")){let J=d.parseIntermediateType(W.SYMBOL);if(I.element=Z(J),!d.consume(")"))throw new Error("Symbol does not end after value")}return I}}),Bt=ae({name:"arrayBracketsParslet",precedence:W.ARRAY_BRACKETS,accept:(d,S)=>d==="["&&S==="]",parseInfix:(d,S)=>(d.consume("["),d.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(S)],meta:{brackets:"square",dot:!1}})});function ur({objectFieldGrammar:d,allowKeyTypes:S}){return ae({name:"objectParslet",accept:I=>I==="{",parsePrefix:I=>{I.consume("{");let J={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!I.consume("}")){let pe,Se=new $(d,I.lexer,I);for(;;){Se.acceptLexerState(I);let Fe=Se.parseIntermediateType(W.OBJECT);I.acceptLexerState(Se),Fe===void 0&&S&&(Fe=I.parseIntermediateType(W.OBJECT));let Pe=!1;if(Fe.type==="JsdocTypeNullable"&&(Pe=!0,Fe=Fe.element),Fe.type==="JsdocTypeNumber"||Fe.type==="JsdocTypeName"||Fe.type==="JsdocTypeStringValue"){let ht;Fe.type==="JsdocTypeStringValue"&&(ht=Fe.meta.quote),J.elements.push({type:"JsdocTypeObjectField",key:Fe.value.toString(),right:void 0,optional:Pe,readonly:!1,meta:{quote:ht}})}else if(Fe.type==="JsdocTypeObjectField"||Fe.type==="JsdocTypeJsdocObjectField")J.elements.push(Fe);else throw new l(Fe);if(I.lexer.current.startOfLine)pe="linebreak",I.consume(",")||I.consume(";");else if(I.consume(","))pe="comma";else if(I.consume(";"))pe="semicolon";else break;if(I.lexer.current.type==="}")break}if(J.meta.separator=pe??"comma",pe==="linebreak"&&(J.meta.propertyIndent=" "),!I.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return J}})}function mt({allowSquaredProperties:d,allowKeyTypes:S,allowReadonly:I,allowOptional:J}){return ae({name:"objectFieldParslet",precedence:W.KEY_VALUE,accept:pe=>pe===":",parseInfix:(pe,Se)=>{var Fe;let Pe=!1,ht=!1;J&&Se.type==="JsdocTypeNullable"&&(Pe=!0,Se=Se.element),I&&Se.type==="JsdocTypeReadonlyProperty"&&(ht=!0,Se=Se.element);let wt=(Fe=pe.baseParser)!==null&&Fe!==void 0?Fe:pe;if(wt.acceptLexerState(pe),Se.type==="JsdocTypeNumber"||Se.type==="JsdocTypeName"||Se.type==="JsdocTypeStringValue"||te(Se)){if(te(Se)&&!d)throw new l(Se);wt.consume(":");let tr;Se.type==="JsdocTypeStringValue"&&(tr=Se.meta.quote);let Vt=wt.parseType(W.KEY_VALUE);return pe.acceptLexerState(wt),{type:"JsdocTypeObjectField",key:te(Se)?Se:Se.value.toString(),right:Vt,optional:Pe,readonly:ht,meta:{quote:tr}}}else{if(!S)throw new l(Se);wt.consume(":");let tr=wt.parseType(W.KEY_VALUE);return pe.acceptLexerState(wt),{type:"JsdocTypeJsdocObjectField",left:E(Se),right:tr}}}})}function Lt({allowOptional:d,allowVariadic:S}){return ae({name:"keyValueParslet",precedence:W.KEY_VALUE,accept:I=>I===":",parseInfix:(I,J)=>{let pe=!1,Se=!1;if(d&&J.type==="JsdocTypeNullable"&&(pe=!0,J=J.element),S&&J.type==="JsdocTypeVariadic"&&J.element!==void 0&&(Se=!0,J=J.element),J.type!=="JsdocTypeName")throw new l(J);I.consume(":");let Fe=I.parseType(W.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:J.value,right:Fe,optional:pe,variadic:Se}}})}let At=[...ge,nt({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),lt,le({allowedTypes:["module","external","event"],pathGrammar:Ue}),it({allowEnclosingBrackets:!0,allowPostfix:!0}),$e({allowedAdditionalTokens:["keyof"]}),pt,Bt,Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ue})],Vr=[...At,ur({objectFieldGrammar:[$e({allowedAdditionalTokens:["typeof","module","in"]}),mt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...At],allowKeyTypes:!0}),Lt({allowOptional:!0,allowVariadic:!0})],fr=ae({name:"typeOfParslet",accept:d=>d==="typeof",parsePrefix:d=>(d.consume("typeof"),{type:"JsdocTypeTypeof",element:d.parseType(W.KEY_OF_TYPE_OF)})}),je=[$e({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ne,oe,lt,Ae,mt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jt=[...ge,ur({allowKeyTypes:!1,objectFieldGrammar:je}),$e({allowedAdditionalTokens:["event","external","in"]}),fr,nt({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),it({allowEnclosingBrackets:!1,allowPostfix:!1}),$e({allowedAdditionalTokens:["keyof"]}),le({allowedTypes:["module"],pathGrammar:Ue}),Ve({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ue}),Lt({allowOptional:!1,allowVariadic:!1}),pt],at=ae({name:"assertsParslet",accept:d=>d==="asserts",parsePrefix:d=>{d.consume("asserts");let S=d.parseIntermediateType(W.SYMBOL);if(S.type!=="JsdocTypeName")throw new l(S,"A typescript asserts always has to have a name on the left side.");return d.consume("is")?{type:"JsdocTypeAsserts",left:S,right:E(d.parseIntermediateType(W.INFIX))}:{type:"JsdocTypeAssertsPlain",element:S}}});function Ht({allowQuestionMark:d}){return ae({name:"tupleParslet",accept:S=>S==="[",parsePrefix:S=>{S.consume("[");let I={type:"JsdocTypeTuple",elements:[]};if(S.consume("]"))return I;let J=S.parseIntermediateType(W.ALL);if(J.type==="JsdocTypeParameterList"?J.elements[0].type==="JsdocTypeKeyValue"?I.elements=J.elements.map(L):I.elements=J.elements.map(E):J.type==="JsdocTypeKeyValue"?I.elements=[L(J)]:I.elements=[E(J)],!S.consume("]"))throw new Error("Unterminated '['");if(I.elements.some(pe=>pe.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return I}})}let Dt=ae({name:"keyOfParslet",accept:d=>d==="keyof",parsePrefix:d=>(d.consume("keyof"),{type:"JsdocTypeKeyof",element:E(d.parseType(W.KEY_OF_TYPE_OF))})}),Ur=ae({name:"importParslet",accept:d=>d==="import",parsePrefix:d=>{if(d.consume("import"),!d.consume("("))throw new Error("Missing parenthesis after import keyword");let S=d.parseType(W.PREFIX);if(S.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!d.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:S}}}),Gr=ae({name:"readonlyPropertyParslet",accept:d=>d==="readonly",parsePrefix:d=>(d.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:d.parseIntermediateType(W.KEY_VALUE)})}),Zt=ae({name:"arrowFunctionParslet",precedence:W.ARROW,accept:d=>d==="=>",parseInfix:(d,S)=>(d.consume("=>"),{type:"JsdocTypeFunction",parameters:Ge(S).map(N),arrow:!0,constructor:!1,parenthesis:!0,returnType:d.parseType(W.OBJECT)})}),dt=ae({name:"genericArrowFunctionParslet",accept:d=>d==="<",parsePrefix:d=>{let S=[];d.consume("<");do{let J,pe=d.parseIntermediateType(W.SYMBOL);if(pe.type==="JsdocTypeOptional"&&(pe=pe.element,J=d.parseType(W.SYMBOL)),pe.type!=="JsdocTypeName")throw new l(pe);let Se;d.consume("extends")&&(Se=d.parseType(W.SYMBOL),Se.type==="JsdocTypeOptional"&&(Se=Se.element,J=d.parseType(W.SYMBOL)));let Fe={type:"JsdocTypeTypeParameter",name:pe};if(Se!==void 0&&(Fe.constraint=Se),J!==void 0&&(Fe.defaultValue=J),S.push(Fe),d.consume(">"))break}while(d.consume(","));let I=d.parseIntermediateType(W.SYMBOL);return I.typeParameters=S,I}}),Jr=ae({name:"intersectionParslet",accept:d=>d==="&",precedence:W.INTERSECTION,parseInfix:(d,S)=>{d.consume("&");let I=[];do I.push(d.parseType(W.INTERSECTION));while(d.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(S),...I]}}}),Mt=ae({name:"predicateParslet",precedence:W.INFIX,accept:d=>d==="is",parseInfix:(d,S)=>{if(S.type!=="JsdocTypeName")throw new l(S,"A typescript predicate always has to have a name on the left side.");return d.consume("is"),{type:"JsdocTypePredicate",left:S,right:E(d.parseIntermediateType(W.INFIX))}}}),Ar=ae({name:"objectSquareBracketPropertyParslet",accept:d=>d==="[",parsePrefix:d=>{if(d.baseParser===void 0)throw new Error("Only allowed inside object grammar");d.consume("[");let S=d.lexer.current.text;d.consume("Identifier");let I;if(d.consume(":")){let J=d.baseParser;J.acceptLexerState(d),I={type:"JsdocTypeIndexSignature",key:S,right:J.parseType(W.INDEX_BRACKETS)},d.acceptLexerState(J)}else if(d.consume("in")){let J=d.baseParser;J.acceptLexerState(d),I={type:"JsdocTypeMappedType",key:S,right:J.parseType(W.ARRAY_BRACKETS)},d.acceptLexerState(J)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!d.consume("]"))throw new Error("Unterminated square brackets");return I}}),En=ae({name:"readonlyArrayParslet",accept:d=>d==="readonly",parsePrefix:d=>(d.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:H(d.parseIntermediateType(W.ALL))})}),Pt=ae({name:"conditionalParslet",precedence:W.INFIX,accept:d=>d==="extends",parseInfix:(d,S)=>{d.consume("extends");let I=d.parseType(W.KEY_OF_TYPE_OF).element,J=d.parseType(W.INFIX);return d.consume(":"),{type:"JsdocTypeConditional",checksType:E(S),extendsType:I,trueType:J,falseType:d.parseType(W.INFIX)}}}),Gt=[Gr,$e({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),ne,oe,lt,Ae,mt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Ar],Br=[...ge,ur({allowKeyTypes:!1,objectFieldGrammar:Gt}),En,fr,Dt,Ur,lt,nt({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ht({allowQuestionMark:!1}),it({allowEnclosingBrackets:!1,allowPostfix:!1}),at,Pt,$e({allowedAdditionalTokens:["event","external","in"]}),le({allowedTypes:["module"],pathGrammar:Ue}),Bt,Zt,dt,Ve({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Ue}),Jr,Mt,Lt({allowVariadic:!0,allowOptional:!0})];function qt(d,S){switch(S){case"closure":return new $(Jt,d).parse();case"jsdoc":return new $(Vr,d).parse();case"typescript":return new $(Br,d).parse()}}function Ct(d,S=["typescript","closure","jsdoc"]){let I;for(let J of S)try{return qt(d,J)}catch(pe){I=pe}throw I}function hr(d,S){let I=d[S.type];if(I===void 0)throw new Error(`In this set of transform rules exists no rule for type ${S.type}.`);return I(S,J=>hr(d,J))}function st(d){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function D(d){let S={params:[]};for(let I of d.parameters)I.type==="JsdocTypeKeyValue"?I.key==="this"?S.this=I.right:I.key==="new"?S.new=I.right:S.params.push(I):S.params.push(I);return S}function V(d,S,I){return d==="prefix"?I+S:S+I}function M(d,S){switch(S){case"double":return`"${d}"`;case"single":return`'${d}'`;case void 0:return d}}function k(){return{JsdocTypeParenthesis:(d,S)=>`(${d.element!==void 0?S(d.element):""})`,JsdocTypeKeyof:(d,S)=>`keyof ${S(d.element)}`,JsdocTypeFunction:(d,S)=>{var I;if(d.arrow){if(d.returnType===void 0)throw new Error("Arrow function needs a return type.");let J=`${d.typeParameters!==void 0?`<${(I=d.typeParameters.map(S).join(", "))!==null&&I!==void 0?I:""}>`:""}(${d.parameters.map(S).join(", ")}) => ${S(d.returnType)}`;return d.constructor&&(J="new "+J),J}else{let J=d.constructor?"new":"function";return d.parenthesis&&(J+=`(${d.parameters.map(S).join(", ")})`,d.returnType!==void 0&&(J+=`: ${S(d.returnType)}`)),J}},JsdocTypeName:d=>d.value,JsdocTypeTuple:(d,S)=>`[${d.elements.map(S).join(", ")}]`,JsdocTypeVariadic:(d,S)=>d.meta.position===void 0?"...":V(d.meta.position,S(d.element),"..."),JsdocTypeNamePath:(d,S)=>{let I=S(d.left),J=S(d.right);switch(d.pathType){case"inner":return`${I}~${J}`;case"instance":return`${I}#${J}`;case"property":return`${I}.${J}`;case"property-brackets":return`${I}[${J}]`}},JsdocTypeStringValue:d=>M(d.value,d.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(d,S)=>{if(d.meta.brackets==="square"){let I=d.elements[0],J=S(I);return I.type==="JsdocTypeUnion"||I.type==="JsdocTypeIntersection"?`(${J})[]`:`${J}[]`}else return`${S(d.left)}${d.meta.dot?".":""}<${d.infer===!0?"infer ":""}${d.elements.map(S).join(", ")}>`},JsdocTypeImport:(d,S)=>`import(${S(d.element)})`,JsdocTypeObjectField:(d,S)=>{let I="";return d.readonly&&(I+="readonly "),typeof d.key=="string"?I+=M(d.key,d.meta.quote):I+=S(d.key),d.optional&&(I+="?"),d.right===void 0?I:I+`: ${S(d.right)}`},JsdocTypeJsdocObjectField:(d,S)=>`${S(d.left)}: ${S(d.right)}`,JsdocTypeKeyValue:(d,S)=>{let I=d.key;return d.optional&&(I+="?"),d.variadic&&(I="..."+I),d.right===void 0?I:I+`: ${S(d.right)}`},JsdocTypeSpecialNamePath:d=>`${d.specialType}:${M(d.value,d.meta.quote)}`,JsdocTypeNotNullable:(d,S)=>V(d.meta.position,S(d.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(d,S)=>V(d.meta.position,S(d.element),"?"),JsdocTypeNumber:d=>d.value.toString(),JsdocTypeObject:(d,S)=>{var I,J;return`{${(d.meta.separator==="linebreak"&&d.elements.length>1?`
|
|
1027
|
+
`+((I=d.meta.propertyIndent)!==null&&I!==void 0?I:""):"")+d.elements.map(S).join(d.meta.separator==="comma"?", ":d.meta.separator==="linebreak"?`
|
|
1028
|
+
`+((J=d.meta.propertyIndent)!==null&&J!==void 0?J:""):"; ")+(d.meta.separator==="linebreak"&&d.elements.length>1?`
|
|
1029
|
+
`:"")}}`},JsdocTypeOptional:(d,S)=>V(d.meta.position,S(d.element),"="),JsdocTypeSymbol:(d,S)=>`${d.value}(${d.element!==void 0?S(d.element):""})`,JsdocTypeTypeof:(d,S)=>`typeof ${S(d.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(d,S)=>d.elements.map(S).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(d,S)=>d.elements.map(S).join(" & "),JsdocTypeProperty:d=>M(d.value,d.meta.quote),JsdocTypePredicate:(d,S)=>`${S(d.left)} is ${S(d.right)}`,JsdocTypeIndexSignature:(d,S)=>`[${d.key}: ${S(d.right)}]`,JsdocTypeMappedType:(d,S)=>`[${d.key} in ${S(d.right)}]`,JsdocTypeAsserts:(d,S)=>`asserts ${S(d.left)} is ${S(d.right)}`,JsdocTypeReadonlyArray:(d,S)=>`readonly ${S(d.element)}`,JsdocTypeAssertsPlain:(d,S)=>`asserts ${S(d.element)}`,JsdocTypeConditional:(d,S)=>`${S(d.checksType)} extends ${S(d.extendsType)} ? ${S(d.trueType)} : ${S(d.falseType)}`,JsdocTypeTypeParameter:(d,S)=>`${S(d.name)}${d.constraint!==void 0?` extends ${S(d.constraint)}`:""}${d.defaultValue!==void 0?` = ${S(d.defaultValue)}`:""}`}}let Y=k();function ve(d){return hr(Y,d)}let Te=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Re(d){let S={type:"NameExpression",name:d};return Te.includes(d)&&(S.reservedWord=!0),S}let Ke={JsdocTypeOptional:(d,S)=>{let I=S(d.element);return I.optional=!0,I},JsdocTypeNullable:(d,S)=>{let I=S(d.element);return I.nullable=!0,I},JsdocTypeNotNullable:(d,S)=>{let I=S(d.element);return I.nullable=!1,I},JsdocTypeVariadic:(d,S)=>{if(d.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let I=S(d.element);return I.repeatable=!0,I},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:d=>Re(M(d.value,d.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(d,S)=>{let I=D(d),J={type:"FunctionType",params:I.params.map(S)};return I.this!==void 0&&(J.this=S(I.this)),I.new!==void 0&&(J.new=S(I.new)),d.returnType!==void 0&&(J.result=S(d.returnType)),J},JsdocTypeGeneric:(d,S)=>({type:"TypeApplication",applications:d.elements.map(I=>S(I)),expression:S(d.left)}),JsdocTypeSpecialNamePath:d=>Re(d.specialType+":"+M(d.value,d.meta.quote)),JsdocTypeName:d=>d.value!=="function"?Re(d.value):{type:"FunctionType",params:[]},JsdocTypeNumber:d=>Re(d.value.toString()),JsdocTypeObject:(d,S)=>{let I={type:"RecordType",fields:[]};for(let J of d.elements)J.type!=="JsdocTypeObjectField"&&J.type!=="JsdocTypeJsdocObjectField"?I.fields.push({type:"FieldType",key:S(J),value:void 0}):I.fields.push(S(J));return I},JsdocTypeObjectField:(d,S)=>{if(typeof d.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Re(M(d.key,d.meta.quote)),value:d.right===void 0?void 0:S(d.right)}},JsdocTypeJsdocObjectField:(d,S)=>({type:"FieldType",key:S(d.left),value:S(d.right)}),JsdocTypeUnion:(d,S)=>({type:"TypeUnion",elements:d.elements.map(I=>S(I))}),JsdocTypeKeyValue:(d,S)=>({type:"FieldType",key:Re(d.key),value:d.right===void 0?void 0:S(d.right)}),JsdocTypeNamePath:(d,S)=>{let I=S(d.left),J;d.right.type==="JsdocTypeSpecialNamePath"?J=S(d.right).name:J=M(d.right.value,d.right.meta.quote);let pe=d.pathType==="inner"?"~":d.pathType==="instance"?"#":".";return Re(`${I.name}${pe}${J}`)},JsdocTypeSymbol:d=>{let S="",I=d.element,J=!1;return I?.type==="JsdocTypeVariadic"&&(I.meta.position==="prefix"?S="...":J=!0,I=I.element),I?.type==="JsdocTypeName"?S+=I.value:I?.type==="JsdocTypeNumber"&&(S+=I.value.toString()),J&&(S+="..."),Re(`${d.value}(${S})`)},JsdocTypeParenthesis:(d,S)=>S(E(d.element)),JsdocTypeMappedType:st,JsdocTypeIndexSignature:st,JsdocTypeImport:st,JsdocTypeKeyof:st,JsdocTypeTuple:st,JsdocTypeTypeof:st,JsdocTypeIntersection:st,JsdocTypeProperty:st,JsdocTypePredicate:st,JsdocTypeAsserts:st,JsdocTypeReadonlyArray:st,JsdocTypeAssertsPlain:st,JsdocTypeConditional:st,JsdocTypeTypeParameter:st};function ft(d){return hr(Ke,d)}function Le(d){switch(d){case void 0:return"none";case"single":return"single";case"double":return"double"}}function er(d){switch(d){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function mr(d,S){return S.length===2?{type:d,left:S[0],right:S[1]}:{type:d,left:S[0],right:mr(d,S.slice(1))}}let Wn={JsdocTypeOptional:(d,S)=>({type:"OPTIONAL",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(d,S)=>({type:"NULLABLE",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(d,S)=>({type:"NOT_NULLABLE",value:S(d.element),meta:{syntax:d.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(d,S)=>{let I={type:"VARIADIC",meta:{syntax:d.meta.position==="prefix"?"PREFIX_DOTS":d.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return d.element!==void 0&&(I.value=S(d.element)),I},JsdocTypeName:d=>({type:"NAME",name:d.value}),JsdocTypeTypeof:(d,S)=>({type:"TYPE_QUERY",name:S(d.element)}),JsdocTypeTuple:(d,S)=>({type:"TUPLE",entries:d.elements.map(S)}),JsdocTypeKeyof:(d,S)=>({type:"KEY_QUERY",value:S(d.element)}),JsdocTypeImport:d=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Le(d.element.meta.quote),string:d.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(d,S)=>{let I=D(d),J={type:d.arrow?"ARROW":"FUNCTION",params:I.params.map(pe=>{if(pe.type==="JsdocTypeKeyValue"){if(pe.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:pe.key,typeName:S(pe.right)}}else return S(pe)}),new:null,returns:null};return I.this!==void 0?J.this=S(I.this):d.arrow||(J.this=null),I.new!==void 0&&(J.new=S(I.new)),d.returnType!==void 0&&(J.returns=S(d.returnType)),J},JsdocTypeGeneric:(d,S)=>{let I={type:"GENERIC",subject:S(d.left),objects:d.elements.map(S),meta:{syntax:d.meta.brackets==="square"?"SQUARE_BRACKET":d.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return d.meta.brackets==="square"&&d.elements[0].type==="JsdocTypeFunction"&&!d.elements[0].parenthesis&&(I.objects[0]={type:"NAME",name:"function"}),I},JsdocTypeObjectField:(d,S)=>{if(typeof d.key!="string")throw new Error("Index signatures and mapped types are not supported");if(d.right===void 0)return{type:"RECORD_ENTRY",key:d.key,quoteStyle:Le(d.meta.quote),value:null,readonly:!1};let I=S(d.right);return d.optional&&(I={type:"OPTIONAL",value:I,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:d.key.toString(),quoteStyle:Le(d.meta.quote),value:I,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(d,S)=>{if(d.right===void 0)return{type:"RECORD_ENTRY",key:d.key,quoteStyle:"none",value:null,readonly:!1};let I=S(d.right);return d.optional&&(I={type:"OPTIONAL",value:I,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:d.key,quoteStyle:"none",value:I,readonly:!1}},JsdocTypeObject:(d,S)=>{let I=[];for(let J of d.elements)(J.type==="JsdocTypeObjectField"||J.type==="JsdocTypeJsdocObjectField")&&I.push(S(J));return{type:"RECORD",entries:I}},JsdocTypeSpecialNamePath:d=>{if(d.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${d.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Le(d.meta.quote),path:d.value}}},JsdocTypeNamePath:(d,S)=>{let I=!1,J,pe;d.right.type==="JsdocTypeSpecialNamePath"&&d.right.specialType==="event"?(I=!0,J=d.right.value,pe=Le(d.right.meta.quote)):(J=d.right.value,pe=Le(d.right.meta.quote));let Se={type:er(d.pathType),owner:S(d.left),name:J,quoteStyle:pe,hasEventPrefix:I};if(Se.owner.type==="MODULE"){let Fe=Se.owner;return Se.owner=Se.owner.value,Fe.value=Se,Fe}else return Se},JsdocTypeUnion:(d,S)=>mr("UNION",d.elements.map(S)),JsdocTypeParenthesis:(d,S)=>({type:"PARENTHESIS",value:S(E(d.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:d=>({type:"STRING_VALUE",quoteStyle:Le(d.meta.quote),string:d.value}),JsdocTypeIntersection:(d,S)=>mr("INTERSECTION",d.elements.map(S)),JsdocTypeNumber:d=>({type:"NUMBER_VALUE",number:d.value.toString()}),JsdocTypeSymbol:st,JsdocTypeProperty:st,JsdocTypePredicate:st,JsdocTypeMappedType:st,JsdocTypeIndexSignature:st,JsdocTypeAsserts:st,JsdocTypeReadonlyArray:st,JsdocTypeAssertsPlain:st,JsdocTypeConditional:st,JsdocTypeTypeParameter:st};function si(d){return hr(Wn,d)}function Lr(){return{JsdocTypeIntersection:(d,S)=>({type:"JsdocTypeIntersection",elements:d.elements.map(S)}),JsdocTypeGeneric:(d,S)=>({type:"JsdocTypeGeneric",left:S(d.left),elements:d.elements.map(S),meta:{dot:d.meta.dot,brackets:d.meta.brackets}}),JsdocTypeNullable:d=>d,JsdocTypeUnion:(d,S)=>({type:"JsdocTypeUnion",elements:d.elements.map(S)}),JsdocTypeUnknown:d=>d,JsdocTypeUndefined:d=>d,JsdocTypeTypeof:(d,S)=>({type:"JsdocTypeTypeof",element:S(d.element)}),JsdocTypeSymbol:(d,S)=>{let I={type:"JsdocTypeSymbol",value:d.value};return d.element!==void 0&&(I.element=S(d.element)),I},JsdocTypeOptional:(d,S)=>({type:"JsdocTypeOptional",element:S(d.element),meta:{position:d.meta.position}}),JsdocTypeObject:(d,S)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:d.elements.map(S)}),JsdocTypeNumber:d=>d,JsdocTypeNull:d=>d,JsdocTypeNotNullable:(d,S)=>({type:"JsdocTypeNotNullable",element:S(d.element),meta:{position:d.meta.position}}),JsdocTypeSpecialNamePath:d=>d,JsdocTypeObjectField:(d,S)=>({type:"JsdocTypeObjectField",key:d.key,right:d.right===void 0?void 0:S(d.right),optional:d.optional,readonly:d.readonly,meta:d.meta}),JsdocTypeJsdocObjectField:(d,S)=>({type:"JsdocTypeJsdocObjectField",left:S(d.left),right:S(d.right)}),JsdocTypeKeyValue:(d,S)=>({type:"JsdocTypeKeyValue",key:d.key,right:d.right===void 0?void 0:S(d.right),optional:d.optional,variadic:d.variadic}),JsdocTypeImport:(d,S)=>({type:"JsdocTypeImport",element:S(d.element)}),JsdocTypeAny:d=>d,JsdocTypeStringValue:d=>d,JsdocTypeNamePath:d=>d,JsdocTypeVariadic:(d,S)=>{let I={type:"JsdocTypeVariadic",meta:{position:d.meta.position,squareBrackets:d.meta.squareBrackets}};return d.element!==void 0&&(I.element=S(d.element)),I},JsdocTypeTuple:(d,S)=>({type:"JsdocTypeTuple",elements:d.elements.map(S)}),JsdocTypeName:d=>d,JsdocTypeFunction:(d,S)=>{let I={type:"JsdocTypeFunction",arrow:d.arrow,parameters:d.parameters.map(S),constructor:d.constructor,parenthesis:d.parenthesis};return d.returnType!==void 0&&(I.returnType=S(d.returnType)),I},JsdocTypeKeyof:(d,S)=>({type:"JsdocTypeKeyof",element:S(d.element)}),JsdocTypeParenthesis:(d,S)=>({type:"JsdocTypeParenthesis",element:S(d.element)}),JsdocTypeProperty:d=>d,JsdocTypePredicate:(d,S)=>({type:"JsdocTypePredicate",left:S(d.left),right:S(d.right)}),JsdocTypeIndexSignature:(d,S)=>({type:"JsdocTypeIndexSignature",key:d.key,right:S(d.right)}),JsdocTypeMappedType:(d,S)=>({type:"JsdocTypeMappedType",key:d.key,right:S(d.right)}),JsdocTypeAsserts:(d,S)=>({type:"JsdocTypeAsserts",left:S(d.left),right:S(d.right)}),JsdocTypeReadonlyArray:(d,S)=>({type:"JsdocTypeReadonlyArray",element:S(d.element)}),JsdocTypeAssertsPlain:(d,S)=>({type:"JsdocTypeAssertsPlain",element:S(d.element)}),JsdocTypeConditional:(d,S)=>({type:"JsdocTypeConditional",checksType:S(d.checksType),extendsType:S(d.extendsType),trueType:S(d.trueType),falseType:S(d.falseType)}),JsdocTypeTypeParameter:(d,S)=>({type:"JsdocTypeTypeParameter",name:S(d.name),constraint:d.constraint!==void 0?S(d.constraint):void 0,defaultValue:d.defaultValue!==void 0?S(d.defaultValue):void 0})}}let Kr={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function On(d,S,I,J,pe){J?.(d,S,I);let Se=Kr[d.type];for(let Fe of Se){let Pe=d[Fe];if(Pe!==void 0)if(Array.isArray(Pe))for(let ht of Pe)On(ht,d,Fe,J,pe);else On(Pe,d,Fe,J,pe)}pe?.(d,S,I)}function eo(d,S,I){On(d,void 0,void 0,S,I)}r.catharsisTransform=ft,r.identityTransformRules=Lr,r.jtpTransform=si,r.parse=qt,r.stringify=ve,r.stringifyRules=k,r.transform=hr,r.traverse=eo,r.tryParse=Ct,r.visitorKeys=Kr}))}});const{UnknownArgTypesError:xQ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var RQ=e=>e.name==="literal",DQ=e=>e.value.replace(/['|"]/g,""),PQ=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Hl(r.value)}),{name:"object",value:t};default:throw new xQ({type:e,language:"Flow"})}},Hl=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(Hl)};case"signature":return{...n,...PQ(e)};case"union":return e.elements?.every(RQ)?{...n,name:"enum",value:e.elements?.map(DQ)}:{...n,name:t,value:e.elements?.map(Hl)};case"intersection":return{...n,name:t,value:e.elements?.map(Hl)};default:return{...n,name:"other",value:t}}},aN=/^['"]|['"]$/g,OQ=e=>e.replace(aN,""),NQ=e=>aN.test(e),sN=e=>{let t=OQ(e);return NQ(e)||Number.isNaN(Number(t))?t:Number(t)},IQ=/^\(.*\) => /,Fl=e=>{let{name:t,raw:r,computed:n,value:i}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let u=n?i:i.map(p=>sN(p.value));return{...a,name:t,value:u}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:i&&Fl(i)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:Fl(i)};case"shape":case"exact":let l=gQ(i,u=>Fl(u));return{...a,name:"object",value:l};case"union":return{...a,name:"union",value:i.map(u=>Fl(u))};default:{if(t?.indexOf("|")>0)try{let c=t.split("|").map(m=>JSON.parse(m));return{...a,name:"enum",value:c}}catch{}let u=i?`${t}(${i})`:t,p=IQ.test(t)?"function":"other";return{...a,name:p,value:u}}}};const{UnknownArgTypesError:FQ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var NA=e=>e.name==="literal",kQ=e=>e.name==="undefined",BQ=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Wl(r.value)}),{name:"object",value:t};default:throw new FQ({type:e,language:"Typescript"})}},Wl=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(Wl)};case"signature":return{...n,...BQ(e)};case"union":{let i=e.elements.filter(a=>!kQ(a));if(i.length>0&&i.every(NA)){let a=i.filter(NA);return{...n,name:"enum",value:a.map(l=>sN(l.value))}}return{...n,name:t,value:e.elements.map(Wl)}}case"intersection":return{...n,name:t,value:e.elements.map(Wl)};default:return{...n,name:"other",value:t}}},G0=e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return Fl(t);if(r!=null)return Wl(r);if(n!=null)return Hl(n)}catch(i){console.error(i)}return null},Dy=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Dy||{}),LQ=["null","undefined"];function K0(e){return LQ.some(t=>t===e)}var MQ=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function Y0(e){return!!e.__docgenInfo}function qQ(e){return e!=null&&Object.keys(e).length>0}function Py(e,t){return Y0(e)?e.__docgenInfo[t]:null}function jQ(e){return Y0(e)?MQ(e.__docgenInfo.description):""}var qo;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(qo=qo||(qo={}));function $Q(e){return/^\s+$/.test(e)}function VQ(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function ms(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function UQ(e){return e.split(/\n/)}function JQ(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function zQ(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}var HQ=/^@\S+/;function WQ({fence:e="```"}={}){let t=GQ(e),r=(n,i)=>t(n)?!i:i;return function(n){let i=[[]],a=!1;for(let l of n)HQ.test(l.tokens.description)&&!a?i.push([l]):i[i.length-1].push(l),a=r(l.tokens.description,a);return i}}function GQ(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function KQ({startLine:e=0,markers:t=qo}={}){let r=null,n=e;return function(i){let a=i,l=zQ();if([l.lineEnd,a]=VQ(a),[l.start,a]=ms(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],l.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[l.postDelimiter,a]=ms(a)),r===null)return n++,null;let u=a.trimRight().endsWith(t.end);if(l.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(l.delimiter=t.delim,a=a.slice(t.delim.length),[l.postDelimiter,a]=ms(a)),u){let p=a.trimRight();l.end=a.slice(p.length-t.end.length),a=p.slice(0,-t.end.length)}if(l.description=a,r.push({number:n,source:i,tokens:l}),n++,u){let p=r.slice();return r=null,p}return null}}function YQ({tokenizers:e}){return function(t){var r;let n=JQ({source:t});for(let i of e)if(n=i(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n}}function XQ(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}function QQ(e="compact"){let t=eZ(e);return r=>{let n=0,i=[];for(let[u,{tokens:p}]of r.source.entries()){let c="";if(u===0&&p.description[0]!=="{")return r;for(let m of p.description)if(m==="{"&&n++,m==="}"&&n--,c+=m,n===0)break;if(i.push([p,c]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let a=[],l=i[0][0].postDelimiter.length;for(let[u,[p,c]]of i.entries())p.type=c,u>0&&(p.type=p.postDelimiter.slice(l)+c,p.postDelimiter=p.postDelimiter.slice(0,l)),[p.postType,p.description]=ms(p.description.slice(c.length)),a.push(p.type);return a[0]=a[0].slice(1),a[a.length-1]=a[a.length-1].slice(0,-1),r.type=t(a),r}}var ZQ=e=>e.trim();function eZ(e){return e==="compact"?t=>t.map(ZQ).join(""):e==="preserve"?t=>t.join(`
|
|
1030
|
+
`):e}var tZ=e=>e&&e.startsWith('"')&&e.endsWith('"');function rZ(){let e=(t,{tokens:r},n)=>r.type===""?t:n;return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),i=n.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],r.name=`"${i[1]}"`,[r.postName,r.description]=ms(n.slice(r.name.length)),t;let a=0,l="",u=!1,p;for(let m of n){if(a===0&&$Q(m))break;m==="["&&a++,m==="]"&&a--,l+=m}if(a!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let c=l;if(l[0]==="["&&l[l.length-1]==="]"){u=!0,l=l.slice(1,-1);let m=l.split("=");if(l=m[0].trim(),m[1]!==void 0&&(p=m.slice(1).join("=").trim()),l==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(p==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!tZ(p)&&/=(?!>)/.test(p))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=u,t.name=l,r.name=c,p!==void 0&&(t.default=p),[r.postName,r.description]=ms(n.slice(r.name.length)),t}}function nZ(e="compact",t=qo){let r=lN(e);return n=>(n.description=r(n.source,t),n)}function lN(e){return e==="compact"?iZ:e==="preserve"?sZ:e}function iZ(e,t=qo){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}var oZ=(e,{tokens:t},r)=>t.type===""?e:r,aZ=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function sZ(e,t=qo){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(oZ,0)),e.map(aZ).join(`
|
|
1031
|
+
`)}function lZ({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=qo,tokenizers:i=[XQ(),QQ(r),rZ(),nZ(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let a=KQ({startLine:e,markers:n}),l=WQ({fence:t}),u=YQ({tokenizers:i}),p=lN(r);return function(c){let m=[];for(let y of UQ(c)){let g=a(y);if(g===null)continue;let b=l(g),w=b.slice(1).map(u);m.push({description:p(b[0],n),tags:w,source:g,problems:w.reduce((A,x)=>A.concat(x.problems),[])})}return m}}function uZ(e,t={}){return lZ(t)(e)}var X0=CQ(TQ(),1);function cZ(e){return e!=null&&e.includes("@")}function dZ(e){let t=`/**
|
|
1032
|
+
`+(e??"").split(`
|
|
1033
|
+
`).map(n=>` * ${n}`).join(`
|
|
1034
|
+
`)+`
|
|
1035
|
+
*/`,r=uZ(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}var pZ={tags:["param","arg","argument","returns","ignore","deprecated"]},fZ=(e,t=pZ)=>{if(!cZ(e))return{includesJsDoc:!1,ignore:!1};let r=dZ(e),n=hZ(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}};function hZ(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let i=yZ(n);i!=null&&(r.params==null&&(r.params=[]),r.params.push(i));break}case"deprecated":{let i=gZ(n);i!=null&&(r.deprecated=i);break}case"returns":{let i=bZ(n);i!=null&&(r.returns=i);break}}return r}function mZ(e){return e.replace(/[\.-]$/,"")}function yZ(e){if(!e.name||e.name==="-")return null;let t=dN(e.type);return{name:e.name,type:t,description:cN(e.description),getPrettyName:()=>mZ(e.name),getTypeName:()=>t?pN(t):null}}function gZ(e){return e.name?uN(e.name,e.description):null}function uN(e,t){let r=e===""?t:`${e} ${t}`;return cN(r)}function cN(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}function bZ(e){let t=dN(e.type);return t?{type:t,description:uN(e.name,e.description),getTypeName:()=>pN(t)}:null}var Ho=(0,X0.stringifyRules)(),vZ=Ho.JsdocTypeObject;Ho.JsdocTypeAny=()=>"any";Ho.JsdocTypeObject=(e,t)=>`(${vZ(e,t)})`;Ho.JsdocTypeOptional=(e,t)=>t(e.element);Ho.JsdocTypeNullable=(e,t)=>t(e.element);Ho.JsdocTypeNotNullable=(e,t)=>t(e.element);Ho.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function dN(e){try{return(0,X0.parse)(e,"typescript")}catch{return null}}function pN(e){return(0,X0.transform)(Ho,e)}function Q0(e){return e.length>90}function js(e){return e.length>50}function gt(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function EZ(e,t){if(e!=null){let{value:r}=e;if(!K0(r))return js(r)?gt(t?.name,r):gt(r)}return null}function fN({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(fN).join(" | "):n??e)}function wZ({name:e,raw:t,elements:r}){return r!=null?gt(r.map(fN).join(" | ")):t!=null?gt(t.replace(/^\|\s*/,"")):gt(e)}function SZ({type:e,raw:t}){return t!=null?gt(t):gt(e)}function AZ({type:e,raw:t}){return t!=null?Q0(t)?gt(e,t):gt(t):gt(e)}function _Z(e){let{type:t}=e;return t==="object"?AZ(e):SZ(e)}function CZ({name:e,raw:t}){return t!=null?Q0(t)?gt(e,t):gt(t):gt(e)}function TZ(e){if(e==null)return null;switch(e.name){case"union":return wZ(e);case"signature":return _Z(e);default:return CZ(e)}}var xZ=(e,t)=>{let{flowType:r,description:n,required:i,defaultValue:a}=t;return{name:e,type:TZ(r),required:i,description:n,defaultValue:EZ(a??null,r??null)}};function RZ({defaultValue:e}){if(e!=null){let{value:t}=e;if(!K0(t))return gt(t)}return null}function DZ({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),gt(["Array","Record","signature"].includes(e.name)?e.raw:r)}var PZ=(e,t)=>{let{description:r,required:n}=t;return{name:e,type:DZ(t),required:n,description:r,defaultValue:RZ(t)}};function OZ(e){return e!=null?gt(e.name):null}function NZ(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function IZ(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}function FZ(e,t){if(e!=null){let{value:r}=e;if(!K0(r))return NZ(e)&&IZ(t)?gt(JSON.stringify(r)):gt(r)}return null}function hN(e,t,r){let{description:n,required:i,defaultValue:a}=r;return{name:e,type:OZ(t),required:i,description:n,defaultValue:FZ(a,t)}}function Dp(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let i={...n,params:n?.params?.map(a=>({name:a.getPrettyName(),description:a.description}))};Object.values(i).filter(Boolean).length>0&&(e.jsDocTags=i)}return e}var kZ=(e,t,r)=>{let n=hN(e,t.type,t);return n.sbType=G0(t),Dp(n,r)},BZ=(e,t,r)=>{let n=PZ(e,t);return n.sbType=G0(t),Dp(n,r)},LZ=(e,t,r)=>{let n=xZ(e,t);return n.sbType=G0(t),Dp(n,r)},MZ=(e,t,r)=>{let n=hN(e,{name:"unknown"},t);return Dp(n,r)},mN=e=>{switch(e){case"JavaScript":return kZ;case"TypeScript":return BZ;case"Flow":return LZ;default:return MZ}},yN=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",qZ=e=>{let t=yN(e[0]),r=mN(t);return e.map(n=>{let i=n;return n.type?.elements&&(i={...n,type:{...n.type,value:n.type.elements}}),gN(i.name,i,t,r)})},jZ=e=>{let t=Object.keys(e),r=yN(e[t[0]]),n=mN(r);return t.map(i=>{let a=e[i];return a!=null?gN(i,a,r,n):null}).filter(Boolean)},$Z=(e,t)=>{let r=Py(e,t);return qQ(r)?Array.isArray(r)?qZ(r):jZ(r):[]};function gN(e,t,r,n){let i=fZ(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:n(e,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:r}}function VZ(e){return e!=null?jQ(e):""}var bN=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,a)=>(Object.entries(a).forEach(([l,u])=>{let p=i[l];Array.isArray(u)||typeof p>"u"?i[l]=u:ba(u)&&ba(p)?t[l]=!0:typeof u<"u"&&(i[l]=u)}),i),{});return Object.keys(t).forEach(i=>{let a=r.filter(Boolean).map(l=>l[i]).filter(l=>typeof l<"u");a.every(l=>ba(l))?n[i]=bN(...a):n[i]=a[a.length-1]}),n},UZ=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:i}=n;if(!i||!t)return r;let a=i(t);return a?bN(a,r):r},JZ="storybook/docs",nie=`${JZ}/snippet-rendered`,Oy=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Oy||{}),zZ=ir({"../../../node_modules/estraverse/estraverse.js"(e){(function t(r){var n,i,a,l,u,p;function c(F){var E={},P,N;for(P in F)F.hasOwnProperty(P)&&(N=F[P],typeof N=="object"&&N!==null?E[P]=c(N):E[P]=N);return E}function m(F,E){var P,N,L,Z;for(N=F.length,L=0;N;)P=N>>>1,Z=L+P,E(F[Z])?N=P:(L=Z+1,N-=P+1);return L}n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},l={},u={},p={},i={Break:l,Skip:u,Remove:p};function y(F,E){this.parent=F,this.key=E}y.prototype.replace=function(F){this.parent[this.key]=F},y.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function g(F,E,P,N){this.node=F,this.path=E,this.wrap=P,this.ref=N}function b(){}b.prototype.path=function(){var F,E,P,N,L,Z;function H(te,W){if(Array.isArray(W))for(P=0,N=W.length;P<N;++P)te.push(W[P]);else te.push(W)}if(!this.__current.path)return null;for(L=[],F=2,E=this.__leavelist.length;F<E;++F)Z=this.__leavelist[F],H(L,Z.path);return H(L,this.__current.path),L},b.prototype.type=function(){var F=this.current();return F.type||this.__current.wrap},b.prototype.parents=function(){var F,E,P;for(P=[],F=1,E=this.__leavelist.length;F<E;++F)P.push(this.__leavelist[F].node);return P},b.prototype.current=function(){return this.__current.node},b.prototype.__execute=function(F,E){var P,N;return N=void 0,P=this.__current,this.__current=E,this.__state=null,F&&(N=F.call(this,E.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=P,N},b.prototype.notify=function(F){this.__state=F},b.prototype.skip=function(){this.notify(u)},b.prototype.break=function(){this.notify(l)},b.prototype.remove=function(){this.notify(p)},b.prototype.__initialize=function(F,E){this.visitor=E,this.root=F,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,E.fallback==="iteration"?this.__fallback=Object.keys:typeof E.fallback=="function"&&(this.__fallback=E.fallback),this.__keys=a,E.keys&&(this.__keys=Object.assign(Object.create(this.__keys),E.keys))};function w(F){return F==null?!1:typeof F=="object"&&typeof F.type=="string"}function A(F,E){return(F===n.ObjectExpression||F===n.ObjectPattern)&&E==="properties"}function x(F,E){for(var P=F.length-1;P>=0;--P)if(F[P].node===E)return!0;return!1}b.prototype.traverse=function(F,E){var P,N,L,Z,H,te,W,$,K,ne,ae,oe;for(this.__initialize(F,E),oe={},P=this.__worklist,N=this.__leavelist,P.push(new g(F,null,null,null)),N.push(new g(null,null,null,null));P.length;){if(L=P.pop(),L===oe){if(L=N.pop(),te=this.__execute(E.leave,L),this.__state===l||te===l)return;continue}if(L.node){if(te=this.__execute(E.enter,L),this.__state===l||te===l)return;if(P.push(oe),N.push(L),this.__state===u||te===u)continue;if(Z=L.node,H=Z.type||L.wrap,ne=this.__keys[H],!ne)if(this.__fallback)ne=this.__fallback(Z);else throw new Error("Unknown node type "+H+".");for($=ne.length;($-=1)>=0;)if(W=ne[$],ae=Z[W],!!ae){if(Array.isArray(ae)){for(K=ae.length;(K-=1)>=0;)if(ae[K]&&!x(N,ae[K])){if(A(H,ne[$]))L=new g(ae[K],[W,K],"Property",null);else if(w(ae[K]))L=new g(ae[K],[W,K],null,null);else continue;P.push(L)}}else if(w(ae)){if(x(N,ae))continue;P.push(new g(ae,W,null,null))}}}}},b.prototype.replace=function(F,E){var P,N,L,Z,H,te,W,$,K,ne,ae,oe,Ae;function Ce(re){var G,he,De,_e;if(re.ref.remove()){for(he=re.ref.key,_e=re.ref.parent,G=P.length;G--;)if(De=P[G],De.ref&&De.ref.parent===_e){if(De.ref.key<he)break;--De.ref.key}}}for(this.__initialize(F,E),ae={},P=this.__worklist,N=this.__leavelist,oe={root:F},te=new g(F,null,null,new y(oe,"root")),P.push(te),N.push(te);P.length;){if(te=P.pop(),te===ae){if(te=N.pop(),H=this.__execute(E.leave,te),H!==void 0&&H!==l&&H!==u&&H!==p&&te.ref.replace(H),(this.__state===p||H===p)&&Ce(te),this.__state===l||H===l)return oe.root;continue}if(H=this.__execute(E.enter,te),H!==void 0&&H!==l&&H!==u&&H!==p&&(te.ref.replace(H),te.node=H),(this.__state===p||H===p)&&(Ce(te),te.node=null),this.__state===l||H===l)return oe.root;if(L=te.node,!!L&&(P.push(ae),N.push(te),!(this.__state===u||H===u))){if(Z=L.type||te.wrap,K=this.__keys[Z],!K)if(this.__fallback)K=this.__fallback(L);else throw new Error("Unknown node type "+Z+".");for(W=K.length;(W-=1)>=0;)if(Ae=K[W],ne=L[Ae],!!ne)if(Array.isArray(ne)){for($=ne.length;($-=1)>=0;)if(ne[$]){if(A(Z,K[W]))te=new g(ne[$],[Ae,$],"Property",new y(ne,$));else if(w(ne[$]))te=new g(ne[$],[Ae,$],null,new y(ne,$));else continue;P.push(te)}}else w(ne)&&P.push(new g(ne,Ae,null,new y(L,Ae)))}}return oe.root};function _(F,E){var P=new b;return P.traverse(F,E)}function R(F,E){var P=new b;return P.replace(F,E)}function j(F,E){var P;return P=m(E,function(N){return N.range[0]>F.range[0]}),F.extendedRange=[F.range[0],F.range[1]],P!==E.length&&(F.extendedRange[1]=E[P].range[0]),P-=1,P>=0&&(F.extendedRange[0]=E[P].range[1]),F}function B(F,E,P){var N=[],L,Z,H,te;if(!F.range)throw new Error("attachComments needs range information");if(!P.length){if(E.length){for(H=0,Z=E.length;H<Z;H+=1)L=c(E[H]),L.extendedRange=[0,F.range[0]],N.push(L);F.leadingComments=N}return F}for(H=0,Z=E.length;H<Z;H+=1)N.push(j(c(E[H]),P));return te=0,_(F,{enter:function(W){for(var $;te<N.length&&($=N[te],!($.extendedRange[1]>W.range[0]));)$.extendedRange[1]===W.range[0]?(W.leadingComments||(W.leadingComments=[]),W.leadingComments.push($),N.splice(te,1)):te+=1;if(te===N.length)return i.Break;if(N[te].extendedRange[0]>W.range[1])return i.Skip}}),te=0,_(F,{leave:function(W){for(var $;te<N.length&&($=N[te],!(W.range[1]<$.extendedRange[0]));)W.range[1]===$.extendedRange[0]?(W.trailingComments||(W.trailingComments=[]),W.trailingComments.push($),N.splice(te,1)):te+=1;if(te===N.length)return i.Break;if(N[te].extendedRange[0]>W.range[1])return i.Skip}}),F}return r.Syntax=n,r.traverse=_,r.replace=R,r.attachComments=B,r.VisitorKeys=a,r.VisitorOption=i,r.Controller=b,r.cloneEnvironment=function(){return t({})},r})(e)}}),HZ=ir({"../../../node_modules/esutils/lib/ast.js"(e,t){(function(){function r(p){if(p==null)return!1;switch(p.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(p){if(p==null)return!1;switch(p.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function i(p){if(p==null)return!1;switch(p.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function a(p){return i(p)||p!=null&&p.type==="FunctionDeclaration"}function l(p){switch(p.type){case"IfStatement":return p.alternate!=null?p.alternate:p.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return p.body}return null}function u(p){var c;if(p.type!=="IfStatement"||p.alternate==null)return!1;c=p.consequent;do{if(c.type==="IfStatement"&&c.alternate==null)return!0;c=l(c)}while(c);return!1}t.exports={isExpression:r,isStatement:i,isIterationStatement:n,isSourceElement:a,isProblematicIfStatement:u,trailingStatement:l}})()}}),vN=ir({"../../../node_modules/esutils/lib/code.js"(e,t){(function(){var r,n,i,a,l,u;n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function p(R){return 48<=R&&R<=57}function c(R){return 48<=R&&R<=57||97<=R&&R<=102||65<=R&&R<=70}function m(R){return R>=48&&R<=55}i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function y(R){return R===32||R===9||R===11||R===12||R===160||R>=5760&&i.indexOf(R)>=0}function g(R){return R===10||R===13||R===8232||R===8233}function b(R){if(R<=65535)return String.fromCharCode(R);var j=String.fromCharCode(Math.floor((R-65536)/1024)+55296),B=String.fromCharCode((R-65536)%1024+56320);return j+B}for(a=new Array(128),u=0;u<128;++u)a[u]=u>=97&&u<=122||u>=65&&u<=90||u===36||u===95;for(l=new Array(128),u=0;u<128;++u)l[u]=u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===36||u===95;function w(R){return R<128?a[R]:n.NonAsciiIdentifierStart.test(b(R))}function A(R){return R<128?l[R]:n.NonAsciiIdentifierPart.test(b(R))}function x(R){return R<128?a[R]:r.NonAsciiIdentifierStart.test(b(R))}function _(R){return R<128?l[R]:r.NonAsciiIdentifierPart.test(b(R))}t.exports={isDecimalDigit:p,isHexDigit:c,isOctalDigit:m,isWhiteSpace:y,isLineTerminator:g,isIdentifierStartES5:w,isIdentifierPartES5:A,isIdentifierStartES6:x,isIdentifierPartES6:_}})()}}),WZ=ir({"../../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var r=vN();function n(w){switch(w){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function i(w,A){return!A&&w==="yield"?!1:a(w,A)}function a(w,A){if(A&&n(w))return!0;switch(w.length){case 2:return w==="if"||w==="in"||w==="do";case 3:return w==="var"||w==="for"||w==="new"||w==="try";case 4:return w==="this"||w==="else"||w==="case"||w==="void"||w==="with"||w==="enum";case 5:return w==="while"||w==="break"||w==="catch"||w==="throw"||w==="const"||w==="yield"||w==="class"||w==="super";case 6:return w==="return"||w==="typeof"||w==="delete"||w==="switch"||w==="export"||w==="import";case 7:return w==="default"||w==="finally"||w==="extends";case 8:return w==="function"||w==="continue"||w==="debugger";case 10:return w==="instanceof";default:return!1}}function l(w,A){return w==="null"||w==="true"||w==="false"||i(w,A)}function u(w,A){return w==="null"||w==="true"||w==="false"||a(w,A)}function p(w){return w==="eval"||w==="arguments"}function c(w){var A,x,_;if(w.length===0||(_=w.charCodeAt(0),!r.isIdentifierStartES5(_)))return!1;for(A=1,x=w.length;A<x;++A)if(_=w.charCodeAt(A),!r.isIdentifierPartES5(_))return!1;return!0}function m(w,A){return(w-55296)*1024+(A-56320)+65536}function y(w){var A,x,_,R,j;if(w.length===0)return!1;for(j=r.isIdentifierStartES6,A=0,x=w.length;A<x;++A){if(_=w.charCodeAt(A),55296<=_&&_<=56319){if(++A,A>=x||(R=w.charCodeAt(A),!(56320<=R&&R<=57343)))return!1;_=m(_,R)}if(!j(_))return!1;j=r.isIdentifierPartES6}return!0}function g(w,A){return c(w)&&!l(w,A)}function b(w,A){return y(w)&&!u(w,A)}t.exports={isKeywordES5:i,isKeywordES6:a,isReservedWordES5:l,isReservedWordES6:u,isRestrictedWord:p,isIdentifierNameES5:c,isIdentifierNameES6:y,isIdentifierES5:g,isIdentifierES6:b}})()}}),GZ=ir({"../../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=HZ(),e.code=vN(),e.keyword=WZ()})()}}),KZ=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(r){if(0<=r&&r<t.length)return t[r];throw new TypeError("Must be between 0 and 63: "+r)},e.decode=function(r){var n=65,i=90,a=97,l=122,u=48,p=57,c=43,m=47,y=26,g=52;return n<=r&&r<=i?r-n:a<=r&&r<=l?r-a+y:u<=r&&r<=p?r-u+g:r==c?62:r==m?63:-1}}}),EN=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=KZ(),r=5,n=1<<r,i=n-1,a=n;function l(p){return p<0?(-p<<1)+1:(p<<1)+0}function u(p){var c=(p&1)===1,m=p>>1;return c?-m:m}e.encode=function(p){var c="",m,y=l(p);do m=y&i,y>>>=r,y>0&&(m|=a),c+=t.encode(m);while(y>0);return c},e.decode=function(p,c,m){var y=p.length,g=0,b=0,w,A;do{if(c>=y)throw new Error("Expected more digits in base 64 VLQ value.");if(A=t.decode(p.charCodeAt(c++)),A===-1)throw new Error("Invalid base64 digit: "+p.charAt(c-1));w=!!(A&a),A&=i,g=g+(A<<b),b+=r}while(w);m.value=u(g),m.rest=c}}}),Iu=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(B,F,E){if(F in B)return B[F];if(arguments.length===3)return E;throw new Error('"'+F+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(B){var F=B.match(r);return F?{scheme:F[1],auth:F[2],host:F[3],port:F[4],path:F[5]}:null}e.urlParse=i;function a(B){var F="";return B.scheme&&(F+=B.scheme+":"),F+="//",B.auth&&(F+=B.auth+"@"),B.host&&(F+=B.host),B.port&&(F+=":"+B.port),B.path&&(F+=B.path),F}e.urlGenerate=a;function l(B){var F=B,E=i(B);if(E){if(!E.path)return B;F=E.path}for(var P=e.isAbsolute(F),N=F.split(/\/+/),L,Z=0,H=N.length-1;H>=0;H--)L=N[H],L==="."?N.splice(H,1):L===".."?Z++:Z>0&&(L===""?(N.splice(H+1,Z),Z=0):(N.splice(H,2),Z--));return F=N.join("/"),F===""&&(F=P?"/":"."),E?(E.path=F,a(E)):F}e.normalize=l;function u(B,F){B===""&&(B="."),F===""&&(F=".");var E=i(F),P=i(B);if(P&&(B=P.path||"/"),E&&!E.scheme)return P&&(E.scheme=P.scheme),a(E);if(E||F.match(n))return F;if(P&&!P.host&&!P.path)return P.host=F,a(P);var N=F.charAt(0)==="/"?F:l(B.replace(/\/+$/,"")+"/"+F);return P?(P.path=N,a(P)):N}e.join=u,e.isAbsolute=function(B){return B.charAt(0)==="/"||r.test(B)};function p(B,F){B===""&&(B="."),B=B.replace(/\/$/,"");for(var E=0;F.indexOf(B+"/")!==0;){var P=B.lastIndexOf("/");if(P<0||(B=B.slice(0,P),B.match(/^([^\/]+:\/)?\/*$/)))return F;++E}return Array(E+1).join("../")+F.substr(B.length+1)}e.relative=p;var c=(function(){var B=Object.create(null);return!("__proto__"in B)})();function m(B){return B}function y(B){return b(B)?"$"+B:B}e.toSetString=c?m:y;function g(B){return b(B)?B.slice(1):B}e.fromSetString=c?m:g;function b(B){if(!B)return!1;var F=B.length;if(F<9||B.charCodeAt(F-1)!==95||B.charCodeAt(F-2)!==95||B.charCodeAt(F-3)!==111||B.charCodeAt(F-4)!==116||B.charCodeAt(F-5)!==111||B.charCodeAt(F-6)!==114||B.charCodeAt(F-7)!==112||B.charCodeAt(F-8)!==95||B.charCodeAt(F-9)!==95)return!1;for(var E=F-10;E>=0;E--)if(B.charCodeAt(E)!==36)return!1;return!0}function w(B,F,E){var P=x(B.source,F.source);return P!==0||(P=B.originalLine-F.originalLine,P!==0)||(P=B.originalColumn-F.originalColumn,P!==0||E)||(P=B.generatedColumn-F.generatedColumn,P!==0)||(P=B.generatedLine-F.generatedLine,P!==0)?P:x(B.name,F.name)}e.compareByOriginalPositions=w;function A(B,F,E){var P=B.generatedLine-F.generatedLine;return P!==0||(P=B.generatedColumn-F.generatedColumn,P!==0||E)||(P=x(B.source,F.source),P!==0)||(P=B.originalLine-F.originalLine,P!==0)||(P=B.originalColumn-F.originalColumn,P!==0)?P:x(B.name,F.name)}e.compareByGeneratedPositionsDeflated=A;function x(B,F){return B===F?0:B===null?1:F===null?-1:B>F?1:-1}function _(B,F){var E=B.generatedLine-F.generatedLine;return E!==0||(E=B.generatedColumn-F.generatedColumn,E!==0)||(E=x(B.source,F.source),E!==0)||(E=B.originalLine-F.originalLine,E!==0)||(E=B.originalColumn-F.originalColumn,E!==0)?E:x(B.name,F.name)}e.compareByGeneratedPositionsInflated=_;function R(B){return JSON.parse(B.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=R;function j(B,F,E){if(F=F||"",B&&(B[B.length-1]!=="/"&&F[0]!=="/"&&(B+="/"),F=B+F),E){var P=i(E);if(!P)throw new Error("sourceMapURL could not be parsed");if(P.path){var N=P.path.lastIndexOf("/");N>=0&&(P.path=P.path.substring(0,N+1))}F=u(a(P),F)}return l(F)}e.computeSourceURL=j}}),wN=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=Iu(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function i(){this._array=[],this._set=n?new Map:Object.create(null)}i.fromArray=function(a,l){for(var u=new i,p=0,c=a.length;p<c;p++)u.add(a[p],l);return u},i.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(a,l){var u=n?a:t.toSetString(a),p=n?this.has(a):r.call(this._set,u),c=this._array.length;(!p||l)&&this._array.push(a),p||(n?this._set.set(a,c):this._set[u]=c)},i.prototype.has=function(a){if(n)return this._set.has(a);var l=t.toSetString(a);return r.call(this._set,l)},i.prototype.indexOf=function(a){if(n){var l=this._set.get(a);if(l>=0)return l}else{var u=t.toSetString(a);if(r.call(this._set,u))return this._set[u]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),YZ=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=Iu();function r(i,a){var l=i.generatedLine,u=a.generatedLine,p=i.generatedColumn,c=a.generatedColumn;return u>l||u==l&&c>=p||t.compareByGeneratedPositionsInflated(i,a)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(i,a){this._array.forEach(i,a)},n.prototype.add=function(i){r(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}}),SN=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=EN(),r=Iu(),n=wN().ArraySet,i=YZ().MappingList;function a(l){l||(l={}),this._file=r.getArg(l,"file",null),this._sourceRoot=r.getArg(l,"sourceRoot",null),this._skipValidation=r.getArg(l,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(l){var u=l.sourceRoot,p=new a({file:l.file,sourceRoot:u});return l.eachMapping(function(c){var m={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(m.source=c.source,u!=null&&(m.source=r.relative(u,m.source)),m.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(m.name=c.name)),p.addMapping(m)}),l.sources.forEach(function(c){var m=c;u!==null&&(m=r.relative(u,c)),p._sources.has(m)||p._sources.add(m);var y=l.sourceContentFor(c);y!=null&&p.setSourceContent(c,y)}),p},a.prototype.addMapping=function(l){var u=r.getArg(l,"generated"),p=r.getArg(l,"original",null),c=r.getArg(l,"source",null),m=r.getArg(l,"name",null);this._skipValidation||this._validateMapping(u,p,c,m),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:c,name:m})},a.prototype.setSourceContent=function(l,u){var p=l;this._sourceRoot!=null&&(p=r.relative(this._sourceRoot,p)),u!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(p)]=u):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(l,u,p){var c=u;if(u==null){if(l.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=l.file}var m=this._sourceRoot;m!=null&&(c=r.relative(m,c));var y=new n,g=new n;this._mappings.unsortedForEach(function(b){if(b.source===c&&b.originalLine!=null){var w=l.originalPositionFor({line:b.originalLine,column:b.originalColumn});w.source!=null&&(b.source=w.source,p!=null&&(b.source=r.join(p,b.source)),m!=null&&(b.source=r.relative(m,b.source)),b.originalLine=w.line,b.originalColumn=w.column,w.name!=null&&(b.name=w.name))}var A=b.source;A!=null&&!y.has(A)&&y.add(A);var x=b.name;x!=null&&!g.has(x)&&g.add(x)},this),this._sources=y,this._names=g,l.sources.forEach(function(b){var w=l.sourceContentFor(b);w!=null&&(p!=null&&(b=r.join(p,b)),m!=null&&(b=r.relative(m,b)),this.setSourceContent(b,w))},this)},a.prototype._validateMapping=function(l,u,p,c){if(u&&typeof u.line!="number"&&typeof u.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(l&&"line"in l&&"column"in l&&l.line>0&&l.column>=0&&!u&&!p&&!c)){if(l&&"line"in l&&"column"in l&&u&&"line"in u&&"column"in u&&l.line>0&&l.column>=0&&u.line>0&&u.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:l,source:p,original:u,name:c}))}},a.prototype._serializeMappings=function(){for(var l=0,u=1,p=0,c=0,m=0,y=0,g="",b,w,A,x,_=this._mappings.toArray(),R=0,j=_.length;R<j;R++){if(w=_[R],b="",w.generatedLine!==u)for(l=0;w.generatedLine!==u;)b+=";",u++;else if(R>0){if(!r.compareByGeneratedPositionsInflated(w,_[R-1]))continue;b+=","}b+=t.encode(w.generatedColumn-l),l=w.generatedColumn,w.source!=null&&(x=this._sources.indexOf(w.source),b+=t.encode(x-y),y=x,b+=t.encode(w.originalLine-1-c),c=w.originalLine-1,b+=t.encode(w.originalColumn-p),p=w.originalColumn,w.name!=null&&(A=this._names.indexOf(w.name),b+=t.encode(A-m),m=A)),g+=b}return g},a.prototype._generateSourcesContent=function(l,u){return l.map(function(p){if(!this._sourcesContents)return null;u!=null&&(p=r.relative(u,p));var c=r.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},a.prototype.toJSON=function(){var l={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(l.file=this._file),this._sourceRoot!=null&&(l.sourceRoot=this._sourceRoot),this._sourcesContents&&(l.sourcesContent=this._generateSourcesContent(l.sources,l.sourceRoot)),l},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a}}),XZ=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,a,l,u){var p=Math.floor((n-r)/2)+r,c=l(i,a[p],!0);return c===0?p:c>0?n-p>1?t(p,n,i,a,l,u):u==e.LEAST_UPPER_BOUND?n<a.length?n:-1:p:p-r>1?t(r,p,i,a,l,u):u==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(r,n,i,a){if(n.length===0)return-1;var l=t(-1,n.length,r,n,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(n[l],n[l-1],!0)===0;)--l;return l}}}),QZ=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(i,a,l){var u=i[a];i[a]=i[l],i[l]=u}function r(i,a){return Math.round(i+Math.random()*(a-i))}function n(i,a,l,u){if(l<u){var p=r(l,u),c=l-1;t(i,p,u);for(var m=i[u],y=l;y<u;y++)a(i[y],m)<=0&&(c+=1,t(i,c,y));t(i,c+1,y);var g=c+1;n(i,a,l,g-1),n(i,a,g+1,u)}}e.quickSort=function(i,a){n(i,a,0,i.length-1)}}}),ZZ=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=Iu(),r=XZ(),n=wN().ArraySet,i=EN(),a=QZ().quickSort;function l(m,y){var g=m;return typeof m=="string"&&(g=t.parseSourceMapInput(m)),g.sections!=null?new c(g,y):new u(g,y)}l.fromSourceMap=function(m,y){return u.fromSourceMap(m,y)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(m,y){var g=m.charAt(y);return g===";"||g===","},l.prototype._parseMappings=function(m,y){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(m,y,g){var b=y||null,w=g||l.GENERATED_ORDER,A;switch(w){case l.GENERATED_ORDER:A=this._generatedMappings;break;case l.ORIGINAL_ORDER:A=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;A.map(function(_){var R=_.source===null?null:this._sources.at(_.source);return R=t.computeSourceURL(x,R,this._sourceMapURL),{source:R,generatedLine:_.generatedLine,generatedColumn:_.generatedColumn,originalLine:_.originalLine,originalColumn:_.originalColumn,name:_.name===null?null:this._names.at(_.name)}},this).forEach(m,b)},l.prototype.allGeneratedPositionsFor=function(m){var y=t.getArg(m,"line"),g={source:t.getArg(m,"source"),originalLine:y,originalColumn:t.getArg(m,"column",0)};if(g.source=this._findSourceIndex(g.source),g.source<0)return[];var b=[],w=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(w>=0){var A=this._originalMappings[w];if(m.column===void 0)for(var x=A.originalLine;A&&A.originalLine===x;)b.push({line:t.getArg(A,"generatedLine",null),column:t.getArg(A,"generatedColumn",null),lastColumn:t.getArg(A,"lastGeneratedColumn",null)}),A=this._originalMappings[++w];else for(var _=A.originalColumn;A&&A.originalLine===y&&A.originalColumn==_;)b.push({line:t.getArg(A,"generatedLine",null),column:t.getArg(A,"generatedColumn",null),lastColumn:t.getArg(A,"lastGeneratedColumn",null)}),A=this._originalMappings[++w]}return b},e.SourceMapConsumer=l;function u(m,y){var g=m;typeof m=="string"&&(g=t.parseSourceMapInput(m));var b=t.getArg(g,"version"),w=t.getArg(g,"sources"),A=t.getArg(g,"names",[]),x=t.getArg(g,"sourceRoot",null),_=t.getArg(g,"sourcesContent",null),R=t.getArg(g,"mappings"),j=t.getArg(g,"file",null);if(b!=this._version)throw new Error("Unsupported version: "+b);x&&(x=t.normalize(x)),w=w.map(String).map(t.normalize).map(function(B){return x&&t.isAbsolute(x)&&t.isAbsolute(B)?t.relative(x,B):B}),this._names=n.fromArray(A.map(String),!0),this._sources=n.fromArray(w,!0),this._absoluteSources=this._sources.toArray().map(function(B){return t.computeSourceURL(x,B,y)}),this.sourceRoot=x,this.sourcesContent=_,this._mappings=R,this._sourceMapURL=y,this.file=j}u.prototype=Object.create(l.prototype),u.prototype.consumer=l,u.prototype._findSourceIndex=function(m){var y=m;if(this.sourceRoot!=null&&(y=t.relative(this.sourceRoot,y)),this._sources.has(y))return this._sources.indexOf(y);var g;for(g=0;g<this._absoluteSources.length;++g)if(this._absoluteSources[g]==m)return g;return-1},u.fromSourceMap=function(m,y){var g=Object.create(u.prototype),b=g._names=n.fromArray(m._names.toArray(),!0),w=g._sources=n.fromArray(m._sources.toArray(),!0);g.sourceRoot=m._sourceRoot,g.sourcesContent=m._generateSourcesContent(g._sources.toArray(),g.sourceRoot),g.file=m._file,g._sourceMapURL=y,g._absoluteSources=g._sources.toArray().map(function(E){return t.computeSourceURL(g.sourceRoot,E,y)});for(var A=m._mappings.toArray().slice(),x=g.__generatedMappings=[],_=g.__originalMappings=[],R=0,j=A.length;R<j;R++){var B=A[R],F=new p;F.generatedLine=B.generatedLine,F.generatedColumn=B.generatedColumn,B.source&&(F.source=w.indexOf(B.source),F.originalLine=B.originalLine,F.originalColumn=B.originalColumn,B.name&&(F.name=b.indexOf(B.name)),_.push(F)),x.push(F)}return a(g.__originalMappings,t.compareByOriginalPositions),g},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function p(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}u.prototype._parseMappings=function(m,y){for(var g=1,b=0,w=0,A=0,x=0,_=0,R=m.length,j=0,B={},F={},E=[],P=[],N,L,Z,H,te;j<R;)if(m.charAt(j)===";")g++,j++,b=0;else if(m.charAt(j)===",")j++;else{for(N=new p,N.generatedLine=g,H=j;H<R&&!this._charIsMappingSeparator(m,H);H++);if(L=m.slice(j,H),Z=B[L],Z)j+=L.length;else{for(Z=[];j<H;)i.decode(m,j,F),te=F.value,j=F.rest,Z.push(te);if(Z.length===2)throw new Error("Found a source, but no line and column");if(Z.length===3)throw new Error("Found a source and line, but no column");B[L]=Z}N.generatedColumn=b+Z[0],b=N.generatedColumn,Z.length>1&&(N.source=x+Z[1],x+=Z[1],N.originalLine=w+Z[2],w=N.originalLine,N.originalLine+=1,N.originalColumn=A+Z[3],A=N.originalColumn,Z.length>4&&(N.name=_+Z[4],_+=Z[4])),P.push(N),typeof N.originalLine=="number"&&E.push(N)}a(P,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=P,a(E,t.compareByOriginalPositions),this.__originalMappings=E},u.prototype._findMapping=function(m,y,g,b,w,A){if(m[g]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+m[g]);if(m[b]<0)throw new TypeError("Column must be greater than or equal to 0, got "+m[b]);return r.search(m,y,w,A)},u.prototype.computeColumnSpans=function(){for(var m=0;m<this._generatedMappings.length;++m){var y=this._generatedMappings[m];if(m+1<this._generatedMappings.length){var g=this._generatedMappings[m+1];if(y.generatedLine===g.generatedLine){y.lastGeneratedColumn=g.generatedColumn-1;continue}}y.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(m){var y={generatedLine:t.getArg(m,"line"),generatedColumn:t.getArg(m,"column")},g=this._findMapping(y,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(m,"bias",l.GREATEST_LOWER_BOUND));if(g>=0){var b=this._generatedMappings[g];if(b.generatedLine===y.generatedLine){var w=t.getArg(b,"source",null);w!==null&&(w=this._sources.at(w),w=t.computeSourceURL(this.sourceRoot,w,this._sourceMapURL));var A=t.getArg(b,"name",null);return A!==null&&(A=this._names.at(A)),{source:w,line:t.getArg(b,"originalLine",null),column:t.getArg(b,"originalColumn",null),name:A}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(m){return m==null}):!1},u.prototype.sourceContentFor=function(m,y){if(!this.sourcesContent)return null;var g=this._findSourceIndex(m);if(g>=0)return this.sourcesContent[g];var b=m;this.sourceRoot!=null&&(b=t.relative(this.sourceRoot,b));var w;if(this.sourceRoot!=null&&(w=t.urlParse(this.sourceRoot))){var A=b.replace(/^file:\/\//,"");if(w.scheme=="file"&&this._sources.has(A))return this.sourcesContent[this._sources.indexOf(A)];if((!w.path||w.path=="/")&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}if(y)return null;throw new Error('"'+b+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(m){var y=t.getArg(m,"source");if(y=this._findSourceIndex(y),y<0)return{line:null,column:null,lastColumn:null};var g={source:y,originalLine:t.getArg(m,"line"),originalColumn:t.getArg(m,"column")},b=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(m,"bias",l.GREATEST_LOWER_BOUND));if(b>=0){var w=this._originalMappings[b];if(w.source===g.source)return{line:t.getArg(w,"generatedLine",null),column:t.getArg(w,"generatedColumn",null),lastColumn:t.getArg(w,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=u;function c(m,y){var g=m;typeof m=="string"&&(g=t.parseSourceMapInput(m));var b=t.getArg(g,"version"),w=t.getArg(g,"sections");if(b!=this._version)throw new Error("Unsupported version: "+b);this._sources=new n,this._names=new n;var A={line:-1,column:0};this._sections=w.map(function(x){if(x.url)throw new Error("Support for url field in sections not implemented.");var _=t.getArg(x,"offset"),R=t.getArg(_,"line"),j=t.getArg(_,"column");if(R<A.line||R===A.line&&j<A.column)throw new Error("Section offsets must be ordered and non-overlapping.");return A=_,{generatedOffset:{generatedLine:R+1,generatedColumn:j+1},consumer:new l(t.getArg(x,"map"),y)}})}c.prototype=Object.create(l.prototype),c.prototype.constructor=l,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var m=[],y=0;y<this._sections.length;y++)for(var g=0;g<this._sections[y].consumer.sources.length;g++)m.push(this._sections[y].consumer.sources[g]);return m}}),c.prototype.originalPositionFor=function(m){var y={generatedLine:t.getArg(m,"line"),generatedColumn:t.getArg(m,"column")},g=r.search(y,this._sections,function(w,A){var x=w.generatedLine-A.generatedOffset.generatedLine;return x||w.generatedColumn-A.generatedOffset.generatedColumn}),b=this._sections[g];return b?b.consumer.originalPositionFor({line:y.generatedLine-(b.generatedOffset.generatedLine-1),column:y.generatedColumn-(b.generatedOffset.generatedLine===y.generatedLine?b.generatedOffset.generatedColumn-1:0),bias:m.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(m){return m.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(m,y){for(var g=0;g<this._sections.length;g++){var b=this._sections[g],w=b.consumer.sourceContentFor(m,!0);if(w)return w}if(y)return null;throw new Error('"'+m+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(m){for(var y=0;y<this._sections.length;y++){var g=this._sections[y];if(g.consumer._findSourceIndex(t.getArg(m,"source"))!==-1){var b=g.consumer.generatedPositionFor(m);if(b){var w={line:b.line+(g.generatedOffset.generatedLine-1),column:b.column+(g.generatedOffset.generatedLine===b.line?g.generatedOffset.generatedColumn-1:0)};return w}}}return{line:null,column:null}},c.prototype._parseMappings=function(m,y){this.__generatedMappings=[],this.__originalMappings=[];for(var g=0;g<this._sections.length;g++)for(var b=this._sections[g],w=b.consumer._generatedMappings,A=0;A<w.length;A++){var x=w[A],_=b.consumer._sources.at(x.source);_=t.computeSourceURL(b.consumer.sourceRoot,_,this._sourceMapURL),this._sources.add(_),_=this._sources.indexOf(_);var R=null;x.name&&(R=b.consumer._names.at(x.name),this._names.add(R),R=this._names.indexOf(R));var j={source:_,generatedLine:x.generatedLine+(b.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(b.generatedOffset.generatedLine===x.generatedLine?b.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:R};this.__generatedMappings.push(j),typeof j.originalLine=="number"&&this.__originalMappings.push(j)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=c}}),eee=ir({"../../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=SN().SourceMapGenerator,r=Iu(),n=/(\r?\n)/,i=10,a="$$$isSourceNode$$$";function l(u,p,c,m,y){this.children=[],this.sourceContents={},this.line=u??null,this.column=p??null,this.source=c??null,this.name=y??null,this[a]=!0,m!=null&&this.add(m)}l.fromStringWithSourceMap=function(u,p,c){var m=new l,y=u.split(n),g=0,b=function(){var R=B(),j=B()||"";return R+j;function B(){return g<y.length?y[g++]:void 0}},w=1,A=0,x=null;return p.eachMapping(function(R){if(x!==null)if(w<R.generatedLine)_(x,b()),w++,A=0;else{var j=y[g]||"",B=j.substr(0,R.generatedColumn-A);y[g]=j.substr(R.generatedColumn-A),A=R.generatedColumn,_(x,B),x=R;return}for(;w<R.generatedLine;)m.add(b()),w++;if(A<R.generatedColumn){var j=y[g]||"";m.add(j.substr(0,R.generatedColumn)),y[g]=j.substr(R.generatedColumn),A=R.generatedColumn}x=R},this),g<y.length&&(x&&_(x,b()),m.add(y.splice(g).join(""))),p.sources.forEach(function(R){var j=p.sourceContentFor(R);j!=null&&(c!=null&&(R=r.join(c,R)),m.setSourceContent(R,j))}),m;function _(R,j){if(R===null||R.source===void 0)m.add(j);else{var B=c?r.join(c,R.source):R.source;m.add(new l(R.originalLine,R.originalColumn,B,j,R.name))}}},l.prototype.add=function(u){if(Array.isArray(u))u.forEach(function(p){this.add(p)},this);else if(u[a]||typeof u=="string")u&&this.children.push(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},l.prototype.prepend=function(u){if(Array.isArray(u))for(var p=u.length-1;p>=0;p--)this.prepend(u[p]);else if(u[a]||typeof u=="string")this.children.unshift(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},l.prototype.walk=function(u){for(var p,c=0,m=this.children.length;c<m;c++)p=this.children[c],p[a]?p.walk(u):p!==""&&u(p,{source:this.source,line:this.line,column:this.column,name:this.name})},l.prototype.join=function(u){var p,c,m=this.children.length;if(m>0){for(p=[],c=0;c<m-1;c++)p.push(this.children[c]),p.push(u);p.push(this.children[c]),this.children=p}return this},l.prototype.replaceRight=function(u,p){var c=this.children[this.children.length-1];return c[a]?c.replaceRight(u,p):typeof c=="string"?this.children[this.children.length-1]=c.replace(u,p):this.children.push("".replace(u,p)),this},l.prototype.setSourceContent=function(u,p){this.sourceContents[r.toSetString(u)]=p},l.prototype.walkSourceContents=function(u){for(var p=0,c=this.children.length;p<c;p++)this.children[p][a]&&this.children[p].walkSourceContents(u);for(var m=Object.keys(this.sourceContents),p=0,c=m.length;p<c;p++)u(r.fromSetString(m[p]),this.sourceContents[m[p]])},l.prototype.toString=function(){var u="";return this.walk(function(p){u+=p}),u},l.prototype.toStringWithSourceMap=function(u){var p={code:"",line:1,column:0},c=new t(u),m=!1,y=null,g=null,b=null,w=null;return this.walk(function(A,x){p.code+=A,x.source!==null&&x.line!==null&&x.column!==null?((y!==x.source||g!==x.line||b!==x.column||w!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:p.line,column:p.column},name:x.name}),y=x.source,g=x.line,b=x.column,w=x.name,m=!0):m&&(c.addMapping({generated:{line:p.line,column:p.column}}),y=null,m=!1);for(var _=0,R=A.length;_<R;_++)A.charCodeAt(_)===i?(p.line++,p.column=0,_+1===R?(y=null,m=!1):m&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:p.line,column:p.column},name:x.name})):p.column++}),this.walkSourceContents(function(A,x){c.setSourceContent(A,x)}),{code:p.code,map:c}},e.SourceNode=l}}),tee=ir({"../../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=SN().SourceMapGenerator,e.SourceMapConsumer=ZZ().SourceMapConsumer,e.SourceNode=eee().SourceNode}}),ree=ir({"../../../node_modules/escodegen/package.json"(e,t){t.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.1.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}}}),nee=ir({"../../../node_modules/escodegen/escodegen.js"(e){(function(){var t,r,n,i,a,l,u,p,c,m,y,g,b,w,A,x,_,R,j,B,F,E,P,N,L,Z;a=zZ(),l=GZ(),t=a.Syntax;function H(D){return Pt.Expression.hasOwnProperty(D.type)}function te(D){return Pt.Statement.hasOwnProperty(D.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},n={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var W=1,$=2,K=4,ne=8,ae=16,oe=32,Ae=64,Ce=$|K,re=W|$,G=W|$|K,he=W,De=K,_e=W|K,ge=W,Ve=W|oe,$e=0,lt=W|ae,le=W|ne;function ke(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
1036
|
+
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function Ue(D,V){var M="";for(V|=0;V>0;V>>>=1,D+=D)V&1&&(M+=D);return M}function Ge(D){return/[\r\n]/g.test(D)}function We(D){var V=D.length;return V&&l.code.isLineTerminator(D.charCodeAt(V-1))}function nt(D,V){var M;for(M in V)V.hasOwnProperty(M)&&(D[M]=V[M]);return D}function it(D,V){var M,k;function Y(ve){return typeof ve=="object"&&ve instanceof Object&&!(ve instanceof RegExp)}for(M in V)V.hasOwnProperty(M)&&(k=V[M],Y(k)?Y(D[M])?it(D[M],k):D[M]=it({},k):D[M]=k);return D}function pt(D){var V,M,k,Y,ve;if(D!==D)throw new Error("Numeric literal whose value is NaN");if(D<0||D===0&&1/D<0)throw new Error("Numeric literal whose value is negative");if(D===1/0)return c?"null":m?"1e400":"1e+400";if(V=""+D,!m||V.length<3)return V;for(M=V.indexOf("."),!c&&V.charCodeAt(0)===48&&M===1&&(M=0,V=V.slice(1)),k=V,V=V.replace("e+","e"),Y=0,(ve=k.indexOf("e"))>0&&(Y=+k.slice(ve+1),k=k.slice(0,ve)),M>=0&&(Y-=k.length-M-1,k=+(k.slice(0,M)+k.slice(M+1))+""),ve=0;k.charCodeAt(k.length+ve-1)===48;)--ve;return ve!==0&&(Y-=ve,k=k.slice(0,ve)),Y!==0&&(k+="e"+Y),(k.length<V.length||y&&D>1e12&&Math.floor(D)===D&&(k="0x"+D.toString(16)).length<V.length)&&+k===D&&(V=k),V}function Bt(D,V){return(D&-2)===8232?(V?"u":"\\u")+(D===8232?"2028":"2029"):D===10||D===13?(V?"":"\\")+(D===10?"n":"r"):String.fromCharCode(D)}function ur(D){var V,M,k,Y,ve,Te,Re,Ke;if(M=D.toString(),D.source){if(V=M.match(/\/([^/]*)$/),!V)return M;for(k=V[1],M="",Re=!1,Ke=!1,Y=0,ve=D.source.length;Y<ve;++Y)Te=D.source.charCodeAt(Y),Ke?(M+=Bt(Te,Ke),Ke=!1):(Re?Te===93&&(Re=!1):Te===47?M+="\\":Te===91&&(Re=!0),M+=Bt(Te,Ke),Ke=Te===92);return"/"+M+"/"+k}return M}function mt(D,V){var M;return D===8?"\\b":D===12?"\\f":D===9?"\\t":(M=D.toString(16).toUpperCase(),c||D>255?"\\u"+"0000".slice(M.length)+M:D===0&&!l.code.isDecimalDigit(V)?"\\0":D===11?"\\x0B":"\\x"+"00".slice(M.length)+M)}function Lt(D){if(D===92)return"\\\\";if(D===10)return"\\n";if(D===13)return"\\r";if(D===8232)return"\\u2028";if(D===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function At(D){var V,M,k,Y;for(Y=g==="double"?'"':"'",V=0,M=D.length;V<M;++V)if(k=D.charCodeAt(V),k===39){Y='"';break}else if(k===34){Y="'";break}else k===92&&++V;return Y+D+Y}function Vr(D){var V="",M,k,Y,ve=0,Te=0,Re,Ke;for(M=0,k=D.length;M<k;++M){if(Y=D.charCodeAt(M),Y===39)++ve;else if(Y===34)++Te;else if(Y===47&&c)V+="\\";else if(l.code.isLineTerminator(Y)||Y===92){V+=Lt(Y);continue}else if(!l.code.isIdentifierPartES5(Y)&&(c&&Y<32||!c&&!b&&(Y<32||Y>126))){V+=mt(Y,D.charCodeAt(M+1));continue}V+=String.fromCharCode(Y)}if(Re=!(g==="double"||g==="auto"&&Te<ve),Ke=Re?"'":'"',!(Re?ve:Te))return Ke+V+Ke;for(D=V,V=Ke,M=0,k=D.length;M<k;++M)Y=D.charCodeAt(M),(Y===39&&Re||Y===34&&!Re)&&(V+="\\"),V+=String.fromCharCode(Y);return V+Ke}function fr(D){var V,M,k,Y="";for(V=0,M=D.length;V<M;++V)k=D[V],Y+=Array.isArray(k)?fr(k):k;return Y}function je(D,V){if(!E)return Array.isArray(D)?fr(D):D;if(V==null){if(D instanceof i)return D;V={}}return V.loc==null?new i(null,null,E,D,V.name||null):new i(V.loc.start.line,V.loc.start.column,E===!0?V.loc.source||null:E,D,V.name||null)}function Jt(){return A||" "}function at(D,V){var M,k,Y,ve;return M=je(D).toString(),M.length===0?[V]:(k=je(V).toString(),k.length===0?[D]:(Y=M.charCodeAt(M.length-1),ve=k.charCodeAt(0),(Y===43||Y===45)&&Y===ve||l.code.isIdentifierPartES5(Y)&&l.code.isIdentifierPartES5(ve)||Y===47&&ve===105?[D,Jt(),V]:l.code.isWhiteSpace(Y)||l.code.isLineTerminator(Y)||l.code.isWhiteSpace(ve)||l.code.isLineTerminator(ve)?[D,V]:[D,A,V]))}function Ht(D){return[u,D]}function Dt(D){var V;V=u,u+=p,D(u),u=V}function Ur(D){var V;for(V=D.length-1;V>=0&&!l.code.isLineTerminator(D.charCodeAt(V));--V);return D.length-1-V}function Gr(D,V){var M,k,Y,ve,Te,Re,Ke,ft;for(M=D.split(/\r\n|[\r\n]/),Re=Number.MAX_VALUE,k=1,Y=M.length;k<Y;++k){for(ve=M[k],Te=0;Te<ve.length&&l.code.isWhiteSpace(ve.charCodeAt(Te));)++Te;Re>Te&&(Re=Te)}for(typeof V<"u"?(Ke=u,M[1][Re]==="*"&&(V+=" "),u=V):(Re&1&&--Re,Ke=u),k=1,Y=M.length;k<Y;++k)ft=je(Ht(M[k].slice(Re))),M[k]=E?ft.join(""):ft;return u=Ke,M.join(`
|
|
1037
|
+
`)}function Zt(D,V){if(D.type==="Line"){if(We(D.value))return"//"+D.value;var M="//"+D.value;return N||(M+=`
|
|
1038
|
+
`),M}return B.format.indent.adjustMultilineComment&&/[\n\r]/.test(D.value)?Gr("/*"+D.value+"*/",V):"/*"+D.value+"*/"}function dt(D,V){var M,k,Y,ve,Te,Re,Ke,ft,Le,er,mr,Wn,si,Lr;if(D.leadingComments&&D.leadingComments.length>0){if(ve=V,N){for(Y=D.leadingComments[0],V=[],ft=Y.extendedRange,Le=Y.range,mr=P.substring(ft[0],Le[0]),Lr=(mr.match(/\n/g)||[]).length,Lr>0?(V.push(Ue(`
|
|
1039
|
+
`,Lr)),V.push(Ht(Zt(Y)))):(V.push(mr),V.push(Zt(Y))),er=Le,M=1,k=D.leadingComments.length;M<k;M++)Y=D.leadingComments[M],Le=Y.range,Wn=P.substring(er[1],Le[0]),Lr=(Wn.match(/\n/g)||[]).length,V.push(Ue(`
|
|
1040
|
+
`,Lr)),V.push(Ht(Zt(Y))),er=Le;si=P.substring(Le[1],ft[1]),Lr=(si.match(/\n/g)||[]).length,V.push(Ue(`
|
|
1041
|
+
`,Lr))}else for(Y=D.leadingComments[0],V=[],R&&D.type===t.Program&&D.body.length===0&&V.push(`
|
|
1042
|
+
`),V.push(Zt(Y)),We(je(V).toString())||V.push(`
|
|
1043
|
+
`),M=1,k=D.leadingComments.length;M<k;++M)Y=D.leadingComments[M],Ke=[Zt(Y)],We(je(Ke).toString())||Ke.push(`
|
|
1044
|
+
`),V.push(Ht(Ke));V.push(Ht(ve))}if(D.trailingComments)if(N)Y=D.trailingComments[0],ft=Y.extendedRange,Le=Y.range,mr=P.substring(ft[0],Le[0]),Lr=(mr.match(/\n/g)||[]).length,Lr>0?(V.push(Ue(`
|
|
1045
|
+
`,Lr)),V.push(Ht(Zt(Y)))):(V.push(mr),V.push(Zt(Y)));else for(Te=!We(je(V).toString()),Re=Ue(" ",Ur(je([u,V,p]).toString())),M=0,k=D.trailingComments.length;M<k;++M)Y=D.trailingComments[M],Te?(M===0?V=[V,p]:V=[V,Re],V.push(Zt(Y,Re))):V=[V,Ht(Zt(Y))],M!==k-1&&!We(je(V).toString())&&(V=[V,`
|
|
1046
|
+
`]);return V}function Jr(D,V,M){var k,Y=0;for(k=D;k<V;k++)P[k]===`
|
|
1047
|
+
`&&Y++;for(k=1;k<Y;k++)M.push(w)}function Mt(D,V,M){return V<M?["(",D,")"]:D}function Ar(D){var V,M,k;for(k=D.split(/\r\n|\n/),V=1,M=k.length;V<M;V++)k[V]=w+u+k[V];return k}function En(D,V){var M,k,Y;return M=D[B.verbatim],typeof M=="string"?k=Mt(Ar(M),r.Sequence,V):(k=Ar(M.content),Y=M.precedence!=null?M.precedence:r.Sequence,k=Mt(k,Y,V)),je(k,D)}function Pt(){}Pt.prototype.maybeBlock=function(D,V){var M,k,Y=this;return k=!B.comment||!D.leadingComments,D.type===t.BlockStatement&&k?[A,this.generateStatement(D,V)]:D.type===t.EmptyStatement&&k?";":(Dt(function(){M=[w,Ht(Y.generateStatement(D,V))]}),M)},Pt.prototype.maybeBlockSuffix=function(D,V){var M=We(je(V).toString());return D.type===t.BlockStatement&&(!B.comment||!D.leadingComments)&&!M?[V,A]:M?[V,u]:[V,w,u]};function Gt(D){return je(D.name,D)}function Br(D,V){return D.async?"async"+(V?Jt():A):""}function qt(D){var V=D.generator&&!B.moz.starlessGenerator;return V?"*"+A:""}function Ct(D){var V=D.value,M="";return V.async&&(M+=Br(V,!D.computed)),V.generator&&(M+=qt(V)?"*":""),M}Pt.prototype.generatePattern=function(D,V,M){return D.type===t.Identifier?Gt(D):this.generateExpression(D,V,M)},Pt.prototype.generateFunctionParams=function(D){var V,M,k,Y;if(Y=!1,D.type===t.ArrowFunctionExpression&&!D.rest&&(!D.defaults||D.defaults.length===0)&&D.params.length===1&&D.params[0].type===t.Identifier)k=[Br(D,!0),Gt(D.params[0])];else{for(k=D.type===t.ArrowFunctionExpression?[Br(D,!1)]:[],k.push("("),D.defaults&&(Y=!0),V=0,M=D.params.length;V<M;++V)Y&&D.defaults[V]?k.push(this.generateAssignment(D.params[V],D.defaults[V],"=",r.Assignment,G)):k.push(this.generatePattern(D.params[V],r.Assignment,G)),V+1<M&&k.push(","+A);D.rest&&(D.params.length&&k.push(","+A),k.push("..."),k.push(Gt(D.rest))),k.push(")")}return k},Pt.prototype.generateFunctionBody=function(D){var V,M;return V=this.generateFunctionParams(D),D.type===t.ArrowFunctionExpression&&(V.push(A),V.push("=>")),D.expression?(V.push(A),M=this.generateExpression(D.body,r.Assignment,G),M.toString().charAt(0)==="{"&&(M=["(",M,")"]),V.push(M)):V.push(this.maybeBlock(D.body,le)),V},Pt.prototype.generateIterationForStatement=function(D,V,M){var k=["for"+(V.await?Jt()+"await":"")+A+"("],Y=this;return Dt(function(){V.left.type===t.VariableDeclaration?Dt(function(){k.push(V.left.kind+Jt()),k.push(Y.generateStatement(V.left.declarations[0],$e))}):k.push(Y.generateExpression(V.left,r.Call,G)),k=at(k,D),k=[at(k,Y.generateExpression(V.right,r.Assignment,G)),")"]}),k.push(this.maybeBlock(V.body,M)),k},Pt.prototype.generatePropertyKey=function(D,V){var M=[];return V&&M.push("["),M.push(this.generateExpression(D,r.Assignment,G)),V&&M.push("]"),M},Pt.prototype.generateAssignment=function(D,V,M,k,Y){return r.Assignment<k&&(Y|=W),Mt([this.generateExpression(D,r.Call,Y),A+M+A,this.generateExpression(V,r.Assignment,Y)],r.Assignment,k)},Pt.prototype.semicolon=function(D){return!_&&D&oe?"":";"},Pt.Statement={BlockStatement:function(D,V){var M,k,Y=["{",w],ve=this;return Dt(function(){D.body.length===0&&N&&(M=D.range,M[1]-M[0]>2&&(k=P.substring(M[0]+1,M[1]-1),k[0]===`
|
|
1048
|
+
`&&(Y=["{"]),Y.push(k)));var Te,Re,Ke,ft;for(ft=ge,V&ne&&(ft|=ae),Te=0,Re=D.body.length;Te<Re;++Te)N&&(Te===0&&(D.body[0].leadingComments&&(M=D.body[0].leadingComments[0].extendedRange,k=P.substring(M[0],M[1]),k[0]===`
|
|
1049
|
+
`&&(Y=["{"])),D.body[0].leadingComments||Jr(D.range[0],D.body[0].range[0],Y)),Te>0&&!D.body[Te-1].trailingComments&&!D.body[Te].leadingComments&&Jr(D.body[Te-1].range[1],D.body[Te].range[0],Y)),Te===Re-1&&(ft|=oe),D.body[Te].leadingComments&&N?Ke=ve.generateStatement(D.body[Te],ft):Ke=Ht(ve.generateStatement(D.body[Te],ft)),Y.push(Ke),We(je(Ke).toString())||N&&Te<Re-1&&D.body[Te+1].leadingComments||Y.push(w),N&&Te===Re-1&&(D.body[Te].trailingComments||Jr(D.body[Te].range[1],D.range[1],Y))}),Y.push(Ht("}")),Y},BreakStatement:function(D,V){return D.label?"break "+D.label.name+this.semicolon(V):"break"+this.semicolon(V)},ContinueStatement:function(D,V){return D.label?"continue "+D.label.name+this.semicolon(V):"continue"+this.semicolon(V)},ClassBody:function(D,V){var M=["{",w],k=this;return Dt(function(Y){var ve,Te;for(ve=0,Te=D.body.length;ve<Te;++ve)M.push(Y),M.push(k.generateExpression(D.body[ve],r.Sequence,G)),ve+1<Te&&M.push(w)}),We(je(M).toString())||M.push(w),M.push(u),M.push("}"),M},ClassDeclaration:function(D,V){var M,k;return M=["class"],D.id&&(M=at(M,this.generateExpression(D.id,r.Sequence,G))),D.superClass&&(k=at("extends",this.generateExpression(D.superClass,r.Unary,G)),M=at(M,k)),M.push(A),M.push(this.generateStatement(D.body,Ve)),M},DirectiveStatement:function(D,V){return B.raw&&D.raw?D.raw+this.semicolon(V):At(D.directive)+this.semicolon(V)},DoWhileStatement:function(D,V){var M=at("do",this.maybeBlock(D.body,ge));return M=this.maybeBlockSuffix(D.body,M),at(M,["while"+A+"(",this.generateExpression(D.test,r.Sequence,G),")"+this.semicolon(V)])},CatchClause:function(D,V){var M,k=this;return Dt(function(){var Y;D.param?(M=["catch"+A+"(",k.generateExpression(D.param,r.Sequence,G),")"],D.guard&&(Y=k.generateExpression(D.guard,r.Sequence,G),M.splice(2,0," if ",Y))):M=["catch"]}),M.push(this.maybeBlock(D.body,ge)),M},DebuggerStatement:function(D,V){return"debugger"+this.semicolon(V)},EmptyStatement:function(D,V){return";"},ExportDefaultDeclaration:function(D,V){var M=["export"],k;return k=V&oe?Ve:ge,M=at(M,"default"),te(D.declaration)?M=at(M,this.generateStatement(D.declaration,k)):M=at(M,this.generateExpression(D.declaration,r.Assignment,G)+this.semicolon(V)),M},ExportNamedDeclaration:function(D,V){var M=["export"],k,Y=this;return k=V&oe?Ve:ge,D.declaration?at(M,this.generateStatement(D.declaration,k)):(D.specifiers&&(D.specifiers.length===0?M=at(M,"{"+A+"}"):D.specifiers[0].type===t.ExportBatchSpecifier?M=at(M,this.generateExpression(D.specifiers[0],r.Sequence,G)):(M=at(M,"{"),Dt(function(ve){var Te,Re;for(M.push(w),Te=0,Re=D.specifiers.length;Te<Re;++Te)M.push(ve),M.push(Y.generateExpression(D.specifiers[Te],r.Sequence,G)),Te+1<Re&&M.push(","+w)}),We(je(M).toString())||M.push(w),M.push(u+"}")),D.source?M=at(M,["from"+A,this.generateExpression(D.source,r.Sequence,G),this.semicolon(V)]):M.push(this.semicolon(V))),M)},ExportAllDeclaration:function(D,V){return["export"+A,"*"+A,"from"+A,this.generateExpression(D.source,r.Sequence,G),this.semicolon(V)]},ExpressionStatement:function(D,V){var M,k;function Y(Re){var Ke;return Re.slice(0,5)!=="class"?!1:(Ke=Re.charCodeAt(5),Ke===123||l.code.isWhiteSpace(Ke)||l.code.isLineTerminator(Ke))}function ve(Re){var Ke;return Re.slice(0,8)!=="function"?!1:(Ke=Re.charCodeAt(8),Ke===40||l.code.isWhiteSpace(Ke)||Ke===42||l.code.isLineTerminator(Ke))}function Te(Re){var Ke,ft,Le;if(Re.slice(0,5)!=="async"||!l.code.isWhiteSpace(Re.charCodeAt(5)))return!1;for(ft=6,Le=Re.length;ft<Le&&l.code.isWhiteSpace(Re.charCodeAt(ft));++ft);return ft===Le||Re.slice(ft,ft+8)!=="function"?!1:(Ke=Re.charCodeAt(ft+8),Ke===40||l.code.isWhiteSpace(Ke)||Ke===42||l.code.isLineTerminator(Ke))}return M=[this.generateExpression(D.expression,r.Sequence,G)],k=je(M).toString(),k.charCodeAt(0)===123||Y(k)||ve(k)||Te(k)||j&&V&ae&&D.expression.type===t.Literal&&typeof D.expression.value=="string"?M=["(",M,")"+this.semicolon(V)]:M.push(this.semicolon(V)),M},ImportDeclaration:function(D,V){var M,k,Y=this;return D.specifiers.length===0?["import",A,this.generateExpression(D.source,r.Sequence,G),this.semicolon(V)]:(M=["import"],k=0,D.specifiers[k].type===t.ImportDefaultSpecifier&&(M=at(M,[this.generateExpression(D.specifiers[k],r.Sequence,G)]),++k),D.specifiers[k]&&(k!==0&&M.push(","),D.specifiers[k].type===t.ImportNamespaceSpecifier?M=at(M,[A,this.generateExpression(D.specifiers[k],r.Sequence,G)]):(M.push(A+"{"),D.specifiers.length-k===1?(M.push(A),M.push(this.generateExpression(D.specifiers[k],r.Sequence,G)),M.push(A+"}"+A)):(Dt(function(ve){var Te,Re;for(M.push(w),Te=k,Re=D.specifiers.length;Te<Re;++Te)M.push(ve),M.push(Y.generateExpression(D.specifiers[Te],r.Sequence,G)),Te+1<Re&&M.push(","+w)}),We(je(M).toString())||M.push(w),M.push(u+"}"+A)))),M=at(M,["from"+A,this.generateExpression(D.source,r.Sequence,G),this.semicolon(V)]),M)},VariableDeclarator:function(D,V){var M=V&W?G:Ce;return D.init?[this.generateExpression(D.id,r.Assignment,M),A,"=",A,this.generateExpression(D.init,r.Assignment,M)]:this.generatePattern(D.id,r.Assignment,M)},VariableDeclaration:function(D,V){var M,k,Y,ve,Te,Re=this;M=[D.kind],Te=V&W?ge:$e;function Ke(){for(ve=D.declarations[0],B.comment&&ve.leadingComments?(M.push(`
|
|
1050
|
+
`),M.push(Ht(Re.generateStatement(ve,Te)))):(M.push(Jt()),M.push(Re.generateStatement(ve,Te))),k=1,Y=D.declarations.length;k<Y;++k)ve=D.declarations[k],B.comment&&ve.leadingComments?(M.push(","+w),M.push(Ht(Re.generateStatement(ve,Te)))):(M.push(","+A),M.push(Re.generateStatement(ve,Te)))}return D.declarations.length>1?Dt(Ke):Ke(),M.push(this.semicolon(V)),M},ThrowStatement:function(D,V){return[at("throw",this.generateExpression(D.argument,r.Sequence,G)),this.semicolon(V)]},TryStatement:function(D,V){var M,k,Y,ve;if(M=["try",this.maybeBlock(D.block,ge)],M=this.maybeBlockSuffix(D.block,M),D.handlers)for(k=0,Y=D.handlers.length;k<Y;++k)M=at(M,this.generateStatement(D.handlers[k],ge)),(D.finalizer||k+1!==Y)&&(M=this.maybeBlockSuffix(D.handlers[k].body,M));else{for(ve=D.guardedHandlers||[],k=0,Y=ve.length;k<Y;++k)M=at(M,this.generateStatement(ve[k],ge)),(D.finalizer||k+1!==Y)&&(M=this.maybeBlockSuffix(ve[k].body,M));if(D.handler)if(Array.isArray(D.handler))for(k=0,Y=D.handler.length;k<Y;++k)M=at(M,this.generateStatement(D.handler[k],ge)),(D.finalizer||k+1!==Y)&&(M=this.maybeBlockSuffix(D.handler[k].body,M));else M=at(M,this.generateStatement(D.handler,ge)),D.finalizer&&(M=this.maybeBlockSuffix(D.handler.body,M))}return D.finalizer&&(M=at(M,["finally",this.maybeBlock(D.finalizer,ge)])),M},SwitchStatement:function(D,V){var M,k,Y,ve,Te,Re=this;if(Dt(function(){M=["switch"+A+"(",Re.generateExpression(D.discriminant,r.Sequence,G),")"+A+"{"+w]}),D.cases)for(Te=ge,Y=0,ve=D.cases.length;Y<ve;++Y)Y===ve-1&&(Te|=oe),k=Ht(this.generateStatement(D.cases[Y],Te)),M.push(k),We(je(k).toString())||M.push(w);return M.push(Ht("}")),M},SwitchCase:function(D,V){var M,k,Y,ve,Te,Re=this;return Dt(function(){for(D.test?M=[at("case",Re.generateExpression(D.test,r.Sequence,G)),":"]:M=["default:"],Y=0,ve=D.consequent.length,ve&&D.consequent[0].type===t.BlockStatement&&(k=Re.maybeBlock(D.consequent[0],ge),M.push(k),Y=1),Y!==ve&&!We(je(M).toString())&&M.push(w),Te=ge;Y<ve;++Y)Y===ve-1&&V&oe&&(Te|=oe),k=Ht(Re.generateStatement(D.consequent[Y],Te)),M.push(k),Y+1!==ve&&!We(je(k).toString())&&M.push(w)}),M},IfStatement:function(D,V){var M,k,Y,ve=this;return Dt(function(){M=["if"+A+"(",ve.generateExpression(D.test,r.Sequence,G),")"]}),Y=V&oe,k=ge,Y&&(k|=oe),D.alternate?(M.push(this.maybeBlock(D.consequent,ge)),M=this.maybeBlockSuffix(D.consequent,M),D.alternate.type===t.IfStatement?M=at(M,["else ",this.generateStatement(D.alternate,k)]):M=at(M,at("else",this.maybeBlock(D.alternate,k)))):M.push(this.maybeBlock(D.consequent,k)),M},ForStatement:function(D,V){var M,k=this;return Dt(function(){M=["for"+A+"("],D.init?D.init.type===t.VariableDeclaration?M.push(k.generateStatement(D.init,$e)):(M.push(k.generateExpression(D.init,r.Sequence,Ce)),M.push(";")):M.push(";"),D.test&&(M.push(A),M.push(k.generateExpression(D.test,r.Sequence,G))),M.push(";"),D.update&&(M.push(A),M.push(k.generateExpression(D.update,r.Sequence,G))),M.push(")")}),M.push(this.maybeBlock(D.body,V&oe?Ve:ge)),M},ForInStatement:function(D,V){return this.generateIterationForStatement("in",D,V&oe?Ve:ge)},ForOfStatement:function(D,V){return this.generateIterationForStatement("of",D,V&oe?Ve:ge)},LabeledStatement:function(D,V){return[D.label.name+":",this.maybeBlock(D.body,V&oe?Ve:ge)]},Program:function(D,V){var M,k,Y,ve,Te;for(ve=D.body.length,M=[R&&ve>0?`
|
|
1051
|
+
`:""],Te=lt,Y=0;Y<ve;++Y)!R&&Y===ve-1&&(Te|=oe),N&&(Y===0&&(D.body[0].leadingComments||Jr(D.range[0],D.body[Y].range[0],M)),Y>0&&!D.body[Y-1].trailingComments&&!D.body[Y].leadingComments&&Jr(D.body[Y-1].range[1],D.body[Y].range[0],M)),k=Ht(this.generateStatement(D.body[Y],Te)),M.push(k),Y+1<ve&&!We(je(k).toString())&&(N&&D.body[Y+1].leadingComments||M.push(w)),N&&Y===ve-1&&(D.body[Y].trailingComments||Jr(D.body[Y].range[1],D.range[1],M));return M},FunctionDeclaration:function(D,V){return[Br(D,!0),"function",qt(D)||Jt(),D.id?Gt(D.id):"",this.generateFunctionBody(D)]},ReturnStatement:function(D,V){return D.argument?[at("return",this.generateExpression(D.argument,r.Sequence,G)),this.semicolon(V)]:["return"+this.semicolon(V)]},WhileStatement:function(D,V){var M,k=this;return Dt(function(){M=["while"+A+"(",k.generateExpression(D.test,r.Sequence,G),")"]}),M.push(this.maybeBlock(D.body,V&oe?Ve:ge)),M},WithStatement:function(D,V){var M,k=this;return Dt(function(){M=["with"+A+"(",k.generateExpression(D.object,r.Sequence,G),")"]}),M.push(this.maybeBlock(D.body,V&oe?Ve:ge)),M}},nt(Pt.prototype,Pt.Statement),Pt.Expression={SequenceExpression:function(D,V,M){var k,Y,ve;for(r.Sequence<V&&(M|=W),k=[],Y=0,ve=D.expressions.length;Y<ve;++Y)k.push(this.generateExpression(D.expressions[Y],r.Assignment,M)),Y+1<ve&&k.push(","+A);return Mt(k,r.Sequence,V)},AssignmentExpression:function(D,V,M){return this.generateAssignment(D.left,D.right,D.operator,V,M)},ArrowFunctionExpression:function(D,V,M){return Mt(this.generateFunctionBody(D),r.ArrowFunction,V)},ConditionalExpression:function(D,V,M){return r.Conditional<V&&(M|=W),Mt([this.generateExpression(D.test,r.Coalesce,M),A+"?"+A,this.generateExpression(D.consequent,r.Assignment,M),A+":"+A,this.generateExpression(D.alternate,r.Assignment,M)],r.Conditional,V)},LogicalExpression:function(D,V,M){return D.operator==="??"&&(M|=Ae),this.BinaryExpression(D,V,M)},BinaryExpression:function(D,V,M){var k,Y,ve,Te,Re,Ke;return Te=n[D.operator],Y=D.operator==="**"?r.Postfix:Te,ve=D.operator==="**"?Te:Te+1,Te<V&&(M|=W),Re=this.generateExpression(D.left,Y,M),Ke=Re.toString(),Ke.charCodeAt(Ke.length-1)===47&&l.code.isIdentifierPartES5(D.operator.charCodeAt(0))?k=[Re,Jt(),D.operator]:k=at(Re,D.operator),Re=this.generateExpression(D.right,ve,M),D.operator==="/"&&Re.toString().charAt(0)==="/"||D.operator.slice(-1)==="<"&&Re.toString().slice(0,3)==="!--"?(k.push(Jt()),k.push(Re)):k=at(k,Re),D.operator==="in"&&!(M&W)?["(",k,")"]:(D.operator==="||"||D.operator==="&&")&&M&Ae?["(",k,")"]:Mt(k,Te,V)},CallExpression:function(D,V,M){var k,Y,ve;for(k=[this.generateExpression(D.callee,r.Call,re)],D.optional&&k.push("?."),k.push("("),Y=0,ve=D.arguments.length;Y<ve;++Y)k.push(this.generateExpression(D.arguments[Y],r.Assignment,G)),Y+1<ve&&k.push(","+A);return k.push(")"),M&$?Mt(k,r.Call,V):["(",k,")"]},ChainExpression:function(D,V,M){r.OptionalChaining<V&&(M|=$);var k=this.generateExpression(D.expression,r.OptionalChaining,M);return Mt(k,r.OptionalChaining,V)},NewExpression:function(D,V,M){var k,Y,ve,Te,Re;if(Y=D.arguments.length,Re=M&K&&!x&&Y===0?_e:he,k=at("new",this.generateExpression(D.callee,r.New,Re)),!(M&K)||x||Y>0){for(k.push("("),ve=0,Te=Y;ve<Te;++ve)k.push(this.generateExpression(D.arguments[ve],r.Assignment,G)),ve+1<Te&&k.push(","+A);k.push(")")}return Mt(k,r.New,V)},MemberExpression:function(D,V,M){var k,Y;return k=[this.generateExpression(D.object,r.Call,M&$?re:he)],D.computed?(D.optional&&k.push("?."),k.push("["),k.push(this.generateExpression(D.property,r.Sequence,M&$?G:_e)),k.push("]")):(!D.optional&&D.object.type===t.Literal&&typeof D.object.value=="number"&&(Y=je(k).toString(),Y.indexOf(".")<0&&!/[eExX]/.test(Y)&&l.code.isDecimalDigit(Y.charCodeAt(Y.length-1))&&!(Y.length>=2&&Y.charCodeAt(0)===48)&&k.push(" ")),k.push(D.optional?"?.":"."),k.push(Gt(D.property))),Mt(k,r.Member,V)},MetaProperty:function(D,V,M){var k;return k=[],k.push(typeof D.meta=="string"?D.meta:Gt(D.meta)),k.push("."),k.push(typeof D.property=="string"?D.property:Gt(D.property)),Mt(k,r.Member,V)},UnaryExpression:function(D,V,M){var k,Y,ve,Te,Re;return Y=this.generateExpression(D.argument,r.Unary,G),A===""?k=at(D.operator,Y):(k=[D.operator],D.operator.length>2?k=at(k,Y):(Te=je(k).toString(),Re=Te.charCodeAt(Te.length-1),ve=Y.toString().charCodeAt(0),((Re===43||Re===45)&&Re===ve||l.code.isIdentifierPartES5(Re)&&l.code.isIdentifierPartES5(ve))&&k.push(Jt()),k.push(Y))),Mt(k,r.Unary,V)},YieldExpression:function(D,V,M){var k;return D.delegate?k="yield*":k="yield",D.argument&&(k=at(k,this.generateExpression(D.argument,r.Yield,G))),Mt(k,r.Yield,V)},AwaitExpression:function(D,V,M){var k=at(D.all?"await*":"await",this.generateExpression(D.argument,r.Await,G));return Mt(k,r.Await,V)},UpdateExpression:function(D,V,M){return D.prefix?Mt([D.operator,this.generateExpression(D.argument,r.Unary,G)],r.Unary,V):Mt([this.generateExpression(D.argument,r.Postfix,G),D.operator],r.Postfix,V)},FunctionExpression:function(D,V,M){var k=[Br(D,!0),"function"];return D.id?(k.push(qt(D)||Jt()),k.push(Gt(D.id))):k.push(qt(D)||A),k.push(this.generateFunctionBody(D)),k},ArrayPattern:function(D,V,M){return this.ArrayExpression(D,V,M,!0)},ArrayExpression:function(D,V,M,k){var Y,ve,Te=this;return D.elements.length?(ve=k?!1:D.elements.length>1,Y=["[",ve?w:""],Dt(function(Re){var Ke,ft;for(Ke=0,ft=D.elements.length;Ke<ft;++Ke)D.elements[Ke]?(Y.push(ve?Re:""),Y.push(Te.generateExpression(D.elements[Ke],r.Assignment,G))):(ve&&Y.push(Re),Ke+1===ft&&Y.push(",")),Ke+1<ft&&Y.push(","+(ve?w:A))}),ve&&!We(je(Y).toString())&&Y.push(w),Y.push(ve?u:""),Y.push("]"),Y):"[]"},RestElement:function(D,V,M){return"..."+this.generatePattern(D.argument)},ClassExpression:function(D,V,M){var k,Y;return k=["class"],D.id&&(k=at(k,this.generateExpression(D.id,r.Sequence,G))),D.superClass&&(Y=at("extends",this.generateExpression(D.superClass,r.Unary,G)),k=at(k,Y)),k.push(A),k.push(this.generateStatement(D.body,Ve)),k},MethodDefinition:function(D,V,M){var k,Y;return D.static?k=["static"+A]:k=[],D.kind==="get"||D.kind==="set"?Y=[at(D.kind,this.generatePropertyKey(D.key,D.computed)),this.generateFunctionBody(D.value)]:Y=[Ct(D),this.generatePropertyKey(D.key,D.computed),this.generateFunctionBody(D.value)],at(k,Y)},Property:function(D,V,M){return D.kind==="get"||D.kind==="set"?[D.kind,Jt(),this.generatePropertyKey(D.key,D.computed),this.generateFunctionBody(D.value)]:D.shorthand?D.value.type==="AssignmentPattern"?this.AssignmentPattern(D.value,r.Sequence,G):this.generatePropertyKey(D.key,D.computed):D.method?[Ct(D),this.generatePropertyKey(D.key,D.computed),this.generateFunctionBody(D.value)]:[this.generatePropertyKey(D.key,D.computed),":"+A,this.generateExpression(D.value,r.Assignment,G)]},ObjectExpression:function(D,V,M){var k,Y,ve,Te=this;return D.properties.length?(k=D.properties.length>1,Dt(function(){ve=Te.generateExpression(D.properties[0],r.Sequence,G)}),!k&&!Ge(je(ve).toString())?["{",A,ve,A,"}"]:(Dt(function(Re){var Ke,ft;if(Y=["{",w,Re,ve],k)for(Y.push(","+w),Ke=1,ft=D.properties.length;Ke<ft;++Ke)Y.push(Re),Y.push(Te.generateExpression(D.properties[Ke],r.Sequence,G)),Ke+1<ft&&Y.push(","+w)}),We(je(Y).toString())||Y.push(w),Y.push(u),Y.push("}"),Y)):"{}"},AssignmentPattern:function(D,V,M){return this.generateAssignment(D.left,D.right,"=",V,M)},ObjectPattern:function(D,V,M){var k,Y,ve,Te,Re,Ke=this;if(!D.properties.length)return"{}";if(Te=!1,D.properties.length===1)Re=D.properties[0],Re.type===t.Property&&Re.value.type!==t.Identifier&&(Te=!0);else for(Y=0,ve=D.properties.length;Y<ve;++Y)if(Re=D.properties[Y],Re.type===t.Property&&!Re.shorthand){Te=!0;break}return k=["{",Te?w:""],Dt(function(ft){var Le,er;for(Le=0,er=D.properties.length;Le<er;++Le)k.push(Te?ft:""),k.push(Ke.generateExpression(D.properties[Le],r.Sequence,G)),Le+1<er&&k.push(","+(Te?w:A))}),Te&&!We(je(k).toString())&&k.push(w),k.push(Te?u:""),k.push("}"),k},ThisExpression:function(D,V,M){return"this"},Super:function(D,V,M){return"super"},Identifier:function(D,V,M){return Gt(D)},ImportDefaultSpecifier:function(D,V,M){return Gt(D.id||D.local)},ImportNamespaceSpecifier:function(D,V,M){var k=["*"],Y=D.id||D.local;return Y&&k.push(A+"as"+Jt()+Gt(Y)),k},ImportSpecifier:function(D,V,M){var k=D.imported,Y=[k.name],ve=D.local;return ve&&ve.name!==k.name&&Y.push(Jt()+"as"+Jt()+Gt(ve)),Y},ExportSpecifier:function(D,V,M){var k=D.local,Y=[k.name],ve=D.exported;return ve&&ve.name!==k.name&&Y.push(Jt()+"as"+Jt()+Gt(ve)),Y},Literal:function(D,V,M){var k;if(D.hasOwnProperty("raw")&&F&&B.raw)try{if(k=F(D.raw).body[0].expression,k.type===t.Literal&&k.value===D.value)return D.raw}catch{}return D.regex?"/"+D.regex.pattern+"/"+D.regex.flags:typeof D.value=="bigint"?D.value.toString()+"n":D.bigint?D.bigint+"n":D.value===null?"null":typeof D.value=="string"?Vr(D.value):typeof D.value=="number"?pt(D.value):typeof D.value=="boolean"?D.value?"true":"false":ur(D.value)},GeneratorExpression:function(D,V,M){return this.ComprehensionExpression(D,V,M)},ComprehensionExpression:function(D,V,M){var k,Y,ve,Te,Re=this;return k=D.type===t.GeneratorExpression?["("]:["["],B.moz.comprehensionExpressionStartsWithAssignment&&(Te=this.generateExpression(D.body,r.Assignment,G),k.push(Te)),D.blocks&&Dt(function(){for(Y=0,ve=D.blocks.length;Y<ve;++Y)Te=Re.generateExpression(D.blocks[Y],r.Sequence,G),Y>0||B.moz.comprehensionExpressionStartsWithAssignment?k=at(k,Te):k.push(Te)}),D.filter&&(k=at(k,"if"+A),Te=this.generateExpression(D.filter,r.Sequence,G),k=at(k,["(",Te,")"])),B.moz.comprehensionExpressionStartsWithAssignment||(Te=this.generateExpression(D.body,r.Assignment,G),k=at(k,Te)),k.push(D.type===t.GeneratorExpression?")":"]"),k},ComprehensionBlock:function(D,V,M){var k;return D.left.type===t.VariableDeclaration?k=[D.left.kind,Jt(),this.generateStatement(D.left.declarations[0],$e)]:k=this.generateExpression(D.left,r.Call,G),k=at(k,D.of?"of":"in"),k=at(k,this.generateExpression(D.right,r.Sequence,G)),["for"+A+"(",k,")"]},SpreadElement:function(D,V,M){return["...",this.generateExpression(D.argument,r.Assignment,G)]},TaggedTemplateExpression:function(D,V,M){var k=re;M&$||(k=he);var Y=[this.generateExpression(D.tag,r.Call,k),this.generateExpression(D.quasi,r.Primary,De)];return Mt(Y,r.TaggedTemplate,V)},TemplateElement:function(D,V,M){return D.value.raw},TemplateLiteral:function(D,V,M){var k,Y,ve;for(k=["`"],Y=0,ve=D.quasis.length;Y<ve;++Y)k.push(this.generateExpression(D.quasis[Y],r.Primary,G)),Y+1<ve&&(k.push("${"+A),k.push(this.generateExpression(D.expressions[Y],r.Sequence,G)),k.push(A+"}"));return k.push("`"),k},ModuleSpecifier:function(D,V,M){return this.Literal(D,V,M)},ImportExpression:function(D,V,M){return Mt(["import(",this.generateExpression(D.source,r.Assignment,G),")"],r.Call,V)}},nt(Pt.prototype,Pt.Expression),Pt.prototype.generateExpression=function(D,V,M){var k,Y;return Y=D.type||t.Property,B.verbatim&&D.hasOwnProperty(B.verbatim)?En(D,V):(k=this[Y](D,V,M),B.comment&&(k=dt(D,k)),je(k,D))},Pt.prototype.generateStatement=function(D,V){var M,k;return M=this[D.type](D,V),B.comment&&(M=dt(D,M)),k=je(M).toString(),D.type===t.Program&&!R&&w===""&&k.charAt(k.length-1)===`
|
|
1052
|
+
`&&(M=E?je(M).replaceRight(/\s+$/,""):k.replace(/\s+$/,"")),je(M,D)};function hr(D){var V;if(V=new Pt,te(D))return V.generateStatement(D,ge);if(H(D))return V.generateExpression(D,r.Sequence,G);throw new Error("Unknown node type: "+D.type)}function st(D,V){var M=ke(),k,Y;return V!=null?(typeof V.indent=="string"&&(M.format.indent.style=V.indent),typeof V.base=="number"&&(M.format.indent.base=V.base),V=it(M,V),p=V.format.indent.style,typeof V.base=="string"?u=V.base:u=Ue(p,V.format.indent.base)):(V=M,p=V.format.indent.style,u=Ue(p,V.format.indent.base)),c=V.format.json,m=V.format.renumber,y=c?!1:V.format.hexadecimal,g=c?"double":V.format.quotes,b=V.format.escapeless,w=V.format.newline,A=V.format.space,V.format.compact&&(w=A=p=u=""),x=V.format.parentheses,_=V.format.semicolons,R=V.format.safeConcatenation,j=V.directive,F=c?null:V.parse,E=V.sourceMap,P=V.sourceCode,N=V.format.preserveBlankLines&&P!==null,B=V,E&&(e.browser?i=global.sourceMap.SourceNode:i=tee().SourceNode),k=hr(D),E?(Y=k.toStringWithSourceMap({file:V.file,sourceRoot:V.sourceMapRoot}),V.sourceContent&&Y.map.setSourceContent(V.sourceMap,V.sourceContent),V.sourceMapWithCode?Y:Y.map.toString()):(Y={code:k.toString(),map:null},V.sourceMapWithCode?Y:Y.code)}L={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},Z=ke().format,e.version=ree().version,e.generate=st,e.attachComments=a.attachComments,e.Precedence=it({},r),e.browser=!1,e.FORMAT_MINIFY=L,e.FORMAT_DEFAULTS=Z})()}}),Ny=ir({"node_modules/acorn/dist/acorn.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=r||self,n(r.acorn={}))})(e,(function(r){var n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:i,"5module":i+" export import",6:i+" const class extends export import super"},l=/^in(stanceof)?$/,u="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",p="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+u+"]"),m=new RegExp("["+u+p+"]");u=p=null;var y=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],g=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function b(h,T){for(var q=65536,z=0;z<T.length;z+=2){if(q+=T[z],q>h)return!1;if(q+=T[z+1],q>=h)return!0}}function w(h,T){return h<65?h===36:h<91?!0:h<97?h===95:h<123?!0:h<=65535?h>=170&&c.test(String.fromCharCode(h)):T===!1?!1:b(h,y)}function A(h,T){return h<48?h===36:h<58?!0:h<65?!1:h<91?!0:h<97?h===95:h<123?!0:h<=65535?h>=170&&m.test(String.fromCharCode(h)):T===!1?!1:b(h,y)||b(h,g)}var x=function(h,T){T===void 0&&(T={}),this.label=h,this.keyword=T.keyword,this.beforeExpr=!!T.beforeExpr,this.startsExpr=!!T.startsExpr,this.isLoop=!!T.isLoop,this.isAssign=!!T.isAssign,this.prefix=!!T.prefix,this.postfix=!!T.postfix,this.binop=T.binop||null,this.updateContext=null};function _(h,T){return new x(h,{beforeExpr:!0,binop:T})}var R={beforeExpr:!0},j={startsExpr:!0},B={};function F(h,T){return T===void 0&&(T={}),T.keyword=h,B[h]=new x(h,T)}var E={num:new x("num",j),regexp:new x("regexp",j),string:new x("string",j),name:new x("name",j),eof:new x("eof"),bracketL:new x("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new x("]"),braceL:new x("{",{beforeExpr:!0,startsExpr:!0}),braceR:new x("}"),parenL:new x("(",{beforeExpr:!0,startsExpr:!0}),parenR:new x(")"),comma:new x(",",R),semi:new x(";",R),colon:new x(":",R),dot:new x("."),question:new x("?",R),questionDot:new x("?."),arrow:new x("=>",R),template:new x("template"),invalidTemplate:new x("invalidTemplate"),ellipsis:new x("...",R),backQuote:new x("`",j),dollarBraceL:new x("${",{beforeExpr:!0,startsExpr:!0}),eq:new x("=",{beforeExpr:!0,isAssign:!0}),assign:new x("_=",{beforeExpr:!0,isAssign:!0}),incDec:new x("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new x("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_("||",1),logicalAND:_("&&",2),bitwiseOR:_("|",3),bitwiseXOR:_("^",4),bitwiseAND:_("&",5),equality:_("==/!=/===/!==",6),relational:_("</>/<=/>=",7),bitShift:_("<</>>/>>>",8),plusMin:new x("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_("%",10),star:_("*",10),slash:_("/",10),starstar:new x("**",{beforeExpr:!0}),coalesce:_("??",1),_break:F("break"),_case:F("case",R),_catch:F("catch"),_continue:F("continue"),_debugger:F("debugger"),_default:F("default",R),_do:F("do",{isLoop:!0,beforeExpr:!0}),_else:F("else",R),_finally:F("finally"),_for:F("for",{isLoop:!0}),_function:F("function",j),_if:F("if"),_return:F("return",R),_switch:F("switch"),_throw:F("throw",R),_try:F("try"),_var:F("var"),_const:F("const"),_while:F("while",{isLoop:!0}),_with:F("with"),_new:F("new",{beforeExpr:!0,startsExpr:!0}),_this:F("this",j),_super:F("super",j),_class:F("class",j),_extends:F("extends",R),_export:F("export"),_import:F("import",j),_null:F("null",j),_true:F("true",j),_false:F("false",j),_in:F("in",{beforeExpr:!0,binop:7}),_instanceof:F("instanceof",{beforeExpr:!0,binop:7}),_typeof:F("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:F("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:F("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},P=/\r\n?|\n|\u2028|\u2029/,N=new RegExp(P.source,"g");function L(h,T){return h===10||h===13||!T&&(h===8232||h===8233)}var Z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,H=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,te=Object.prototype,W=te.hasOwnProperty,$=te.toString;function K(h,T){return W.call(h,T)}var ne=Array.isArray||(function(h){return $.call(h)==="[object Array]"});function ae(h){return new RegExp("^(?:"+h.replace(/ /g,"|")+")$")}var oe=function(h,T){this.line=h,this.column=T};oe.prototype.offset=function(h){return new oe(this.line,this.column+h)};var Ae=function(h,T,q){this.start=T,this.end=q,h.sourceFile!==null&&(this.source=h.sourceFile)};function Ce(h,T){for(var q=1,z=0;;){N.lastIndex=z;var ie=N.exec(h);if(ie&&ie.index<T)++q,z=ie.index+ie[0].length;else return new oe(q,T-z)}}var re={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function G(h){var T={};for(var q in re)T[q]=h&&K(h,q)?h[q]:re[q];if(T.ecmaVersion>=2015&&(T.ecmaVersion-=2009),T.allowReserved==null&&(T.allowReserved=T.ecmaVersion<5),ne(T.onToken)){var z=T.onToken;T.onToken=function(ie){return z.push(ie)}}return ne(T.onComment)&&(T.onComment=he(T,T.onComment)),T}function he(h,T){return function(q,z,ie,Ee,xe,Je){var tt={type:q?"Block":"Line",value:z,start:ie,end:Ee};h.locations&&(tt.loc=new Ae(this,xe,Je)),h.ranges&&(tt.range=[ie,Ee]),T.push(tt)}}var De=1,_e=2,ge=De|_e,Ve=4,$e=8,lt=16,le=32,ke=64,Ue=128;function Ge(h,T){return _e|(h?Ve:0)|(T?$e:0)}var We=0,nt=1,it=2,pt=3,Bt=4,ur=5,mt=function(h,T,q){this.options=h=G(h),this.sourceFile=h.sourceFile,this.keywords=ae(a[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var z="";if(h.allowReserved!==!0){for(var ie=h.ecmaVersion;!(z=n[ie]);ie--);h.sourceType==="module"&&(z+=" await")}this.reservedWords=ae(z);var Ee=(z?z+" ":"")+n.strict;this.reservedWordsStrict=ae(Ee),this.reservedWordsStrictBind=ae(Ee+" "+n.strictBind),this.input=String(T),this.containsEsc=!1,q?(this.pos=q,this.lineStart=this.input.lastIndexOf(`
|
|
1053
|
+
`,q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(P).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(De),this.regexpState=null},Lt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};mt.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},Lt.inFunction.get=function(){return(this.currentVarScope().flags&_e)>0},Lt.inGenerator.get=function(){return(this.currentVarScope().flags&$e)>0},Lt.inAsync.get=function(){return(this.currentVarScope().flags&Ve)>0},Lt.allowSuper.get=function(){return(this.currentThisScope().flags&ke)>0},Lt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ue)>0},Lt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},mt.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&_e)>0},mt.extend=function(){for(var h=[],T=arguments.length;T--;)h[T]=arguments[T];for(var q=this,z=0;z<h.length;z++)q=h[z](q);return q},mt.parse=function(h,T){return new this(T,h).parse()},mt.parseExpressionAt=function(h,T,q){var z=new this(q,h,T);return z.nextToken(),z.parseExpression()},mt.tokenizer=function(h,T){return new this(T,h)},Object.defineProperties(mt.prototype,Lt);var At=mt.prototype,Vr=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;At.strictDirective=function(h){for(;;){H.lastIndex=h,h+=H.exec(this.input)[0].length;var T=Vr.exec(this.input.slice(h));if(!T)return!1;if((T[1]||T[2])==="use strict"){H.lastIndex=h+T[0].length;var q=H.exec(this.input),z=q.index+q[0].length,ie=this.input.charAt(z);return ie===";"||ie==="}"||P.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(ie)||ie==="!"&&this.input.charAt(z+1)==="=")}h+=T[0].length,H.lastIndex=h,h+=H.exec(this.input)[0].length,this.input[h]===";"&&h++}},At.eat=function(h){return this.type===h?(this.next(),!0):!1},At.isContextual=function(h){return this.type===E.name&&this.value===h&&!this.containsEsc},At.eatContextual=function(h){return this.isContextual(h)?(this.next(),!0):!1},At.expectContextual=function(h){this.eatContextual(h)||this.unexpected()},At.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||P.test(this.input.slice(this.lastTokEnd,this.start))},At.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},At.semicolon=function(){!this.eat(E.semi)&&!this.insertSemicolon()&&this.unexpected()},At.afterTrailingComma=function(h,T){if(this.type===h)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),T||this.next(),!0},At.expect=function(h){this.eat(h)||this.unexpected()},At.unexpected=function(h){this.raise(h??this.start,"Unexpected token")};function fr(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}At.checkPatternErrors=function(h,T){if(h){h.trailingComma>-1&&this.raiseRecoverable(h.trailingComma,"Comma is not permitted after the rest element");var q=T?h.parenthesizedAssign:h.parenthesizedBind;q>-1&&this.raiseRecoverable(q,"Parenthesized pattern")}},At.checkExpressionErrors=function(h,T){if(!h)return!1;var q=h.shorthandAssign,z=h.doubleProto;if(!T)return q>=0||z>=0;q>=0&&this.raise(q,"Shorthand property assignments are valid only in destructuring patterns"),z>=0&&this.raiseRecoverable(z,"Redefinition of __proto__ property")},At.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},At.isSimpleAssignTarget=function(h){return h.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(h.expression):h.type==="Identifier"||h.type==="MemberExpression"};var je=mt.prototype;je.parseTopLevel=function(h){var T={};for(h.body||(h.body=[]);this.type!==E.eof;){var q=this.parseStatement(null,!0,T);h.body.push(q)}if(this.inModule)for(var z=0,ie=Object.keys(this.undefinedExports);z<ie.length;z+=1){var Ee=ie[z];this.raiseRecoverable(this.undefinedExports[Ee].start,"Export '"+Ee+"' is not defined")}return this.adaptDirectivePrologue(h.body),this.next(),h.sourceType=this.options.sourceType,this.finishNode(h,"Program")};var Jt={kind:"loop"},at={kind:"switch"};je.isLet=function(h){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;H.lastIndex=this.pos;var T=H.exec(this.input),q=this.pos+T[0].length,z=this.input.charCodeAt(q);if(z===91)return!0;if(h)return!1;if(z===123)return!0;if(w(z,!0)){for(var ie=q+1;A(this.input.charCodeAt(ie),!0);)++ie;var Ee=this.input.slice(q,ie);if(!l.test(Ee))return!0}return!1},je.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;H.lastIndex=this.pos;var h=H.exec(this.input),T=this.pos+h[0].length;return!P.test(this.input.slice(this.pos,T))&&this.input.slice(T,T+8)==="function"&&(T+8===this.input.length||!A(this.input.charAt(T+8)))},je.parseStatement=function(h,T,q){var z=this.type,ie=this.startNode(),Ee;switch(this.isLet(h)&&(z=E._var,Ee="let"),z){case E._break:case E._continue:return this.parseBreakContinueStatement(ie,z.keyword);case E._debugger:return this.parseDebuggerStatement(ie);case E._do:return this.parseDoStatement(ie);case E._for:return this.parseForStatement(ie);case E._function:return h&&(this.strict||h!=="if"&&h!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ie,!1,!h);case E._class:return h&&this.unexpected(),this.parseClass(ie,!0);case E._if:return this.parseIfStatement(ie);case E._return:return this.parseReturnStatement(ie);case E._switch:return this.parseSwitchStatement(ie);case E._throw:return this.parseThrowStatement(ie);case E._try:return this.parseTryStatement(ie);case E._const:case E._var:return Ee=Ee||this.value,h&&Ee!=="var"&&this.unexpected(),this.parseVarStatement(ie,Ee);case E._while:return this.parseWhileStatement(ie);case E._with:return this.parseWithStatement(ie);case E.braceL:return this.parseBlock(!0,ie);case E.semi:return this.parseEmptyStatement(ie);case E._export:case E._import:if(this.options.ecmaVersion>10&&z===E._import){H.lastIndex=this.pos;var xe=H.exec(this.input),Je=this.pos+xe[0].length,tt=this.input.charCodeAt(Je);if(tt===40||tt===46)return this.parseExpressionStatement(ie,this.parseExpression())}return this.options.allowImportExportEverywhere||(T||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),z===E._import?this.parseImport(ie):this.parseExport(ie,q);default:if(this.isAsyncFunction())return h&&this.unexpected(),this.next(),this.parseFunctionStatement(ie,!0,!h);var xt=this.value,Kt=this.parseExpression();return z===E.name&&Kt.type==="Identifier"&&this.eat(E.colon)?this.parseLabeledStatement(ie,xt,Kt,h):this.parseExpressionStatement(ie,Kt)}},je.parseBreakContinueStatement=function(h,T){var q=T==="break";this.next(),this.eat(E.semi)||this.insertSemicolon()?h.label=null:this.type!==E.name?this.unexpected():(h.label=this.parseIdent(),this.semicolon());for(var z=0;z<this.labels.length;++z){var ie=this.labels[z];if((h.label==null||ie.name===h.label.name)&&(ie.kind!=null&&(q||ie.kind==="loop")||h.label&&q))break}return z===this.labels.length&&this.raise(h.start,"Unsyntactic "+T),this.finishNode(h,q?"BreakStatement":"ContinueStatement")},je.parseDebuggerStatement=function(h){return this.next(),this.semicolon(),this.finishNode(h,"DebuggerStatement")},je.parseDoStatement=function(h){return this.next(),this.labels.push(Jt),h.body=this.parseStatement("do"),this.labels.pop(),this.expect(E._while),h.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(E.semi):this.semicolon(),this.finishNode(h,"DoWhileStatement")},je.parseForStatement=function(h){this.next();var T=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Jt),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return T>-1&&this.unexpected(T),this.parseFor(h,null);var q=this.isLet();if(this.type===E._var||this.type===E._const||q){var z=this.startNode(),ie=q?"let":this.value;return this.next(),this.parseVar(z,!0,ie),this.finishNode(z,"VariableDeclaration"),(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&z.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===E._in?T>-1&&this.unexpected(T):h.await=T>-1),this.parseForIn(h,z)):(T>-1&&this.unexpected(T),this.parseFor(h,z))}var Ee=new fr,xe=this.parseExpression(!0,Ee);return this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===E._in?T>-1&&this.unexpected(T):h.await=T>-1),this.toAssignable(xe,!1,Ee),this.checkLVal(xe),this.parseForIn(h,xe)):(this.checkExpressionErrors(Ee,!0),T>-1&&this.unexpected(T),this.parseFor(h,xe))},je.parseFunctionStatement=function(h,T,q){return this.next(),this.parseFunction(h,Dt|(q?0:Ur),!1,T)},je.parseIfStatement=function(h){return this.next(),h.test=this.parseParenExpression(),h.consequent=this.parseStatement("if"),h.alternate=this.eat(E._else)?this.parseStatement("if"):null,this.finishNode(h,"IfStatement")},je.parseReturnStatement=function(h){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?h.argument=null:(h.argument=this.parseExpression(),this.semicolon()),this.finishNode(h,"ReturnStatement")},je.parseSwitchStatement=function(h){this.next(),h.discriminant=this.parseParenExpression(),h.cases=[],this.expect(E.braceL),this.labels.push(at),this.enterScope(0);for(var T,q=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var z=this.type===E._case;T&&this.finishNode(T,"SwitchCase"),h.cases.push(T=this.startNode()),T.consequent=[],this.next(),z?T.test=this.parseExpression():(q&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),q=!0,T.test=null),this.expect(E.colon)}else T||this.unexpected(),T.consequent.push(this.parseStatement(null));return this.exitScope(),T&&this.finishNode(T,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(h,"SwitchStatement")},je.parseThrowStatement=function(h){return this.next(),P.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),h.argument=this.parseExpression(),this.semicolon(),this.finishNode(h,"ThrowStatement")};var Ht=[];je.parseTryStatement=function(h){if(this.next(),h.block=this.parseBlock(),h.handler=null,this.type===E._catch){var T=this.startNode();if(this.next(),this.eat(E.parenL)){T.param=this.parseBindingAtom();var q=T.param.type==="Identifier";this.enterScope(q?le:0),this.checkLVal(T.param,q?Bt:it),this.expect(E.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),T.param=null,this.enterScope(0);T.body=this.parseBlock(!1),this.exitScope(),h.handler=this.finishNode(T,"CatchClause")}return h.finalizer=this.eat(E._finally)?this.parseBlock():null,!h.handler&&!h.finalizer&&this.raise(h.start,"Missing catch or finally clause"),this.finishNode(h,"TryStatement")},je.parseVarStatement=function(h,T){return this.next(),this.parseVar(h,!1,T),this.semicolon(),this.finishNode(h,"VariableDeclaration")},je.parseWhileStatement=function(h){return this.next(),h.test=this.parseParenExpression(),this.labels.push(Jt),h.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(h,"WhileStatement")},je.parseWithStatement=function(h){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),h.object=this.parseParenExpression(),h.body=this.parseStatement("with"),this.finishNode(h,"WithStatement")},je.parseEmptyStatement=function(h){return this.next(),this.finishNode(h,"EmptyStatement")},je.parseLabeledStatement=function(h,T,q,z){for(var ie=0,Ee=this.labels;ie<Ee.length;ie+=1){var xe=Ee[ie];xe.name===T&&this.raise(q.start,"Label '"+T+"' is already declared")}for(var Je=this.type.isLoop?"loop":this.type===E._switch?"switch":null,tt=this.labels.length-1;tt>=0;tt--){var xt=this.labels[tt];if(xt.statementStart===h.start)xt.statementStart=this.start,xt.kind=Je;else break}return this.labels.push({name:T,kind:Je,statementStart:this.start}),h.body=this.parseStatement(z?z.indexOf("label")===-1?z+"label":z:"label"),this.labels.pop(),h.label=q,this.finishNode(h,"LabeledStatement")},je.parseExpressionStatement=function(h,T){return h.expression=T,this.semicolon(),this.finishNode(h,"ExpressionStatement")},je.parseBlock=function(h,T,q){for(h===void 0&&(h=!0),T===void 0&&(T=this.startNode()),T.body=[],this.expect(E.braceL),h&&this.enterScope(0);this.type!==E.braceR;){var z=this.parseStatement(null);T.body.push(z)}return q&&(this.strict=!1),this.next(),h&&this.exitScope(),this.finishNode(T,"BlockStatement")},je.parseFor=function(h,T){return h.init=T,this.expect(E.semi),h.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),h.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),h.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(h,"ForStatement")},je.parseForIn=function(h,T){var q=this.type===E._in;return this.next(),T.type==="VariableDeclaration"&&T.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||T.kind!=="var"||T.declarations[0].id.type!=="Identifier")?this.raise(T.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer"):T.type==="AssignmentPattern"&&this.raise(T.start,"Invalid left-hand side in for-loop"),h.left=T,h.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),h.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(h,q?"ForInStatement":"ForOfStatement")},je.parseVar=function(h,T,q){for(h.declarations=[],h.kind=q;;){var z=this.startNode();if(this.parseVarId(z,q),this.eat(E.eq)?z.init=this.parseMaybeAssign(T):q==="const"&&!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():z.id.type!=="Identifier"&&!(T&&(this.type===E._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):z.init=null,h.declarations.push(this.finishNode(z,"VariableDeclarator")),!this.eat(E.comma))break}return h},je.parseVarId=function(h,T){h.id=this.parseBindingAtom(),this.checkLVal(h.id,T==="var"?nt:it,!1)};var Dt=1,Ur=2,Gr=4;je.parseFunction=function(h,T,q,z){this.initFunction(h),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!z)&&(this.type===E.star&&T&Ur&&this.unexpected(),h.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(h.async=!!z),T&Dt&&(h.id=T&Gr&&this.type!==E.name?null:this.parseIdent(),h.id&&!(T&Ur)&&this.checkLVal(h.id,this.strict||h.generator||h.async?this.treatFunctionsAsVar?nt:it:pt));var ie=this.yieldPos,Ee=this.awaitPos,xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ge(h.async,h.generator)),T&Dt||(h.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(h),this.parseFunctionBody(h,q,!1),this.yieldPos=ie,this.awaitPos=Ee,this.awaitIdentPos=xe,this.finishNode(h,T&Dt?"FunctionDeclaration":"FunctionExpression")},je.parseFunctionParams=function(h){this.expect(E.parenL),h.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},je.parseClass=function(h,T){this.next();var q=this.strict;this.strict=!0,this.parseClassId(h,T),this.parseClassSuper(h);var z=this.startNode(),ie=!1;for(z.body=[],this.expect(E.braceL);this.type!==E.braceR;){var Ee=this.parseClassElement(h.superClass!==null);Ee&&(z.body.push(Ee),Ee.type==="MethodDefinition"&&Ee.kind==="constructor"&&(ie&&this.raise(Ee.start,"Duplicate constructor in the same class"),ie=!0))}return this.strict=q,this.next(),h.body=this.finishNode(z,"ClassBody"),this.finishNode(h,T?"ClassDeclaration":"ClassExpression")},je.parseClassElement=function(h){var T=this;if(this.eat(E.semi))return null;var q=this.startNode(),z=function(tt,xt){xt===void 0&&(xt=!1);var Kt=T.start,xr=T.startLoc;return T.eatContextual(tt)?T.type!==E.parenL&&(!xt||!T.canInsertSemicolon())?!0:(q.key&&T.unexpected(),q.computed=!1,q.key=T.startNodeAt(Kt,xr),q.key.name=tt,T.finishNode(q.key,"Identifier"),!1):!1};q.kind="method",q.static=z("static");var ie=this.eat(E.star),Ee=!1;ie||(this.options.ecmaVersion>=8&&z("async",!0)?(Ee=!0,ie=this.options.ecmaVersion>=9&&this.eat(E.star)):z("get")?q.kind="get":z("set")&&(q.kind="set")),q.key||this.parsePropertyName(q);var xe=q.key,Je=!1;return!q.computed&&!q.static&&(xe.type==="Identifier"&&xe.name==="constructor"||xe.type==="Literal"&&xe.value==="constructor")?(q.kind!=="method"&&this.raise(xe.start,"Constructor can't have get/set modifier"),ie&&this.raise(xe.start,"Constructor can't be a generator"),Ee&&this.raise(xe.start,"Constructor can't be an async method"),q.kind="constructor",Je=h):q.static&&xe.type==="Identifier"&&xe.name==="prototype"&&this.raise(xe.start,"Classes may not have a static property named prototype"),this.parseClassMethod(q,ie,Ee,Je),q.kind==="get"&&q.value.params.length!==0&&this.raiseRecoverable(q.value.start,"getter should have no params"),q.kind==="set"&&q.value.params.length!==1&&this.raiseRecoverable(q.value.start,"setter should have exactly one param"),q.kind==="set"&&q.value.params[0].type==="RestElement"&&this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params"),q},je.parseClassMethod=function(h,T,q,z){return h.value=this.parseMethod(T,q,z),this.finishNode(h,"MethodDefinition")},je.parseClassId=function(h,T){this.type===E.name?(h.id=this.parseIdent(),T&&this.checkLVal(h.id,it,!1)):(T===!0&&this.unexpected(),h.id=null)},je.parseClassSuper=function(h){h.superClass=this.eat(E._extends)?this.parseExprSubscripts():null},je.parseExport=function(h,T){if(this.next(),this.eat(E.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(h.exported=this.parseIdent(!0),this.checkExport(T,h.exported.name,this.lastTokStart)):h.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),h.source=this.parseExprAtom(),this.semicolon(),this.finishNode(h,"ExportAllDeclaration");if(this.eat(E._default)){this.checkExport(T,"default",this.lastTokStart);var q;if(this.type===E._function||(q=this.isAsyncFunction())){var z=this.startNode();this.next(),q&&this.next(),h.declaration=this.parseFunction(z,Dt|Gr,!1,q)}else if(this.type===E._class){var ie=this.startNode();h.declaration=this.parseClass(ie,"nullableID")}else h.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(h,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())h.declaration=this.parseStatement(null),h.declaration.type==="VariableDeclaration"?this.checkVariableExport(T,h.declaration.declarations):this.checkExport(T,h.declaration.id.name,h.declaration.id.start),h.specifiers=[],h.source=null;else{if(h.declaration=null,h.specifiers=this.parseExportSpecifiers(T),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),h.source=this.parseExprAtom();else{for(var Ee=0,xe=h.specifiers;Ee<xe.length;Ee+=1){var Je=xe[Ee];this.checkUnreserved(Je.local),this.checkLocalExport(Je.local)}h.source=null}this.semicolon()}return this.finishNode(h,"ExportNamedDeclaration")},je.checkExport=function(h,T,q){h&&(K(h,T)&&this.raiseRecoverable(q,"Duplicate export '"+T+"'"),h[T]=!0)},je.checkPatternExport=function(h,T){var q=T.type;if(q==="Identifier")this.checkExport(h,T.name,T.start);else if(q==="ObjectPattern")for(var z=0,ie=T.properties;z<ie.length;z+=1){var Ee=ie[z];this.checkPatternExport(h,Ee)}else if(q==="ArrayPattern")for(var xe=0,Je=T.elements;xe<Je.length;xe+=1){var tt=Je[xe];tt&&this.checkPatternExport(h,tt)}else q==="Property"?this.checkPatternExport(h,T.value):q==="AssignmentPattern"?this.checkPatternExport(h,T.left):q==="RestElement"?this.checkPatternExport(h,T.argument):q==="ParenthesizedExpression"&&this.checkPatternExport(h,T.expression)},je.checkVariableExport=function(h,T){if(h)for(var q=0,z=T;q<z.length;q+=1){var ie=z[q];this.checkPatternExport(h,ie.id)}},je.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},je.parseExportSpecifiers=function(h){var T=[],q=!0;for(this.expect(E.braceL);!this.eat(E.braceR);){if(q)q=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var z=this.startNode();z.local=this.parseIdent(!0),z.exported=this.eatContextual("as")?this.parseIdent(!0):z.local,this.checkExport(h,z.exported.name,z.exported.start),T.push(this.finishNode(z,"ExportSpecifier"))}return T},je.parseImport=function(h){return this.next(),this.type===E.string?(h.specifiers=Ht,h.source=this.parseExprAtom()):(h.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),h.source=this.type===E.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(h,"ImportDeclaration")},je.parseImportSpecifiers=function(){var h=[],T=!0;if(this.type===E.name){var q=this.startNode();if(q.local=this.parseIdent(),this.checkLVal(q.local,it),h.push(this.finishNode(q,"ImportDefaultSpecifier")),!this.eat(E.comma))return h}if(this.type===E.star){var z=this.startNode();return this.next(),this.expectContextual("as"),z.local=this.parseIdent(),this.checkLVal(z.local,it),h.push(this.finishNode(z,"ImportNamespaceSpecifier")),h}for(this.expect(E.braceL);!this.eat(E.braceR);){if(T)T=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var ie=this.startNode();ie.imported=this.parseIdent(!0),this.eatContextual("as")?ie.local=this.parseIdent():(this.checkUnreserved(ie.imported),ie.local=ie.imported),this.checkLVal(ie.local,it),h.push(this.finishNode(ie,"ImportSpecifier"))}return h},je.adaptDirectivePrologue=function(h){for(var T=0;T<h.length&&this.isDirectiveCandidate(h[T]);++T)h[T].directive=h[T].expression.raw.slice(1,-1)},je.isDirectiveCandidate=function(h){return h.type==="ExpressionStatement"&&h.expression.type==="Literal"&&typeof h.expression.value=="string"&&(this.input[h.start]==='"'||this.input[h.start]==="'")};var Zt=mt.prototype;Zt.toAssignable=function(h,T,q){if(this.options.ecmaVersion>=6&&h)switch(h.type){case"Identifier":this.inAsync&&h.name==="await"&&this.raise(h.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":h.type="ObjectPattern",q&&this.checkPatternErrors(q,!0);for(var z=0,ie=h.properties;z<ie.length;z+=1){var Ee=ie[z];this.toAssignable(Ee,T),Ee.type==="RestElement"&&(Ee.argument.type==="ArrayPattern"||Ee.argument.type==="ObjectPattern")&&this.raise(Ee.argument.start,"Unexpected token")}break;case"Property":h.kind!=="init"&&this.raise(h.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(h.value,T);break;case"ArrayExpression":h.type="ArrayPattern",q&&this.checkPatternErrors(q,!0),this.toAssignableList(h.elements,T);break;case"SpreadElement":h.type="RestElement",this.toAssignable(h.argument,T),h.argument.type==="AssignmentPattern"&&this.raise(h.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":h.operator!=="="&&this.raise(h.left.end,"Only '=' operator can be used for specifying default value."),h.type="AssignmentPattern",delete h.operator,this.toAssignable(h.left,T);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(h.expression,T,q);break;case"ChainExpression":this.raiseRecoverable(h.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!T)break;default:this.raise(h.start,"Assigning to rvalue")}else q&&this.checkPatternErrors(q,!0);return h},Zt.toAssignableList=function(h,T){for(var q=h.length,z=0;z<q;z++){var ie=h[z];ie&&this.toAssignable(ie,T)}if(q){var Ee=h[q-1];this.options.ecmaVersion===6&&T&&Ee&&Ee.type==="RestElement"&&Ee.argument.type!=="Identifier"&&this.unexpected(Ee.argument.start)}return h},Zt.parseSpread=function(h){var T=this.startNode();return this.next(),T.argument=this.parseMaybeAssign(!1,h),this.finishNode(T,"SpreadElement")},Zt.parseRestBinding=function(){var h=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==E.name&&this.unexpected(),h.argument=this.parseBindingAtom(),this.finishNode(h,"RestElement")},Zt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case E.bracketL:var h=this.startNode();return this.next(),h.elements=this.parseBindingList(E.bracketR,!0,!0),this.finishNode(h,"ArrayPattern");case E.braceL:return this.parseObj(!0)}return this.parseIdent()},Zt.parseBindingList=function(h,T,q){for(var z=[],ie=!0;!this.eat(h);)if(ie?ie=!1:this.expect(E.comma),T&&this.type===E.comma)z.push(null);else{if(q&&this.afterTrailingComma(h))break;if(this.type===E.ellipsis){var Ee=this.parseRestBinding();this.parseBindingListItem(Ee),z.push(Ee),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(h);break}else{var xe=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(xe),z.push(xe)}}return z},Zt.parseBindingListItem=function(h){return h},Zt.parseMaybeDefault=function(h,T,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(E.eq))return q;var z=this.startNodeAt(h,T);return z.left=q,z.right=this.parseMaybeAssign(),this.finishNode(z,"AssignmentPattern")},Zt.checkLVal=function(h,T,q){switch(T===void 0&&(T=We),h.type){case"Identifier":T===it&&h.name==="let"&&this.raiseRecoverable(h.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(h.name)&&this.raiseRecoverable(h.start,(T?"Binding ":"Assigning to ")+h.name+" in strict mode"),q&&(K(q,h.name)&&this.raiseRecoverable(h.start,"Argument name clash"),q[h.name]=!0),T!==We&&T!==ur&&this.declareName(h.name,T,h.start);break;case"ChainExpression":this.raiseRecoverable(h.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":T&&this.raiseRecoverable(h.start,"Binding member expression");break;case"ObjectPattern":for(var z=0,ie=h.properties;z<ie.length;z+=1){var Ee=ie[z];this.checkLVal(Ee,T,q)}break;case"Property":this.checkLVal(h.value,T,q);break;case"ArrayPattern":for(var xe=0,Je=h.elements;xe<Je.length;xe+=1){var tt=Je[xe];tt&&this.checkLVal(tt,T,q)}break;case"AssignmentPattern":this.checkLVal(h.left,T,q);break;case"RestElement":this.checkLVal(h.argument,T,q);break;case"ParenthesizedExpression":this.checkLVal(h.expression,T,q);break;default:this.raise(h.start,(T?"Binding":"Assigning to")+" rvalue")}};var dt=mt.prototype;dt.checkPropClash=function(h,T,q){if(!(this.options.ecmaVersion>=9&&h.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(h.computed||h.method||h.shorthand))){var z=h.key,ie;switch(z.type){case"Identifier":ie=z.name;break;case"Literal":ie=String(z.value);break;default:return}var Ee=h.kind;if(this.options.ecmaVersion>=6){ie==="__proto__"&&Ee==="init"&&(T.proto&&(q?q.doubleProto<0&&(q.doubleProto=z.start):this.raiseRecoverable(z.start,"Redefinition of __proto__ property")),T.proto=!0);return}ie="$"+ie;var xe=T[ie];if(xe){var Je;Ee==="init"?Je=this.strict&&xe.init||xe.get||xe.set:Je=xe.init||xe[Ee],Je&&this.raiseRecoverable(z.start,"Redefinition of property")}else xe=T[ie]={init:!1,get:!1,set:!1};xe[Ee]=!0}},dt.parseExpression=function(h,T){var q=this.start,z=this.startLoc,ie=this.parseMaybeAssign(h,T);if(this.type===E.comma){var Ee=this.startNodeAt(q,z);for(Ee.expressions=[ie];this.eat(E.comma);)Ee.expressions.push(this.parseMaybeAssign(h,T));return this.finishNode(Ee,"SequenceExpression")}return ie},dt.parseMaybeAssign=function(h,T,q){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(h);this.exprAllowed=!1}var z=!1,ie=-1,Ee=-1;T?(ie=T.parenthesizedAssign,Ee=T.trailingComma,T.parenthesizedAssign=T.trailingComma=-1):(T=new fr,z=!0);var xe=this.start,Je=this.startLoc;(this.type===E.parenL||this.type===E.name)&&(this.potentialArrowAt=this.start);var tt=this.parseMaybeConditional(h,T);if(q&&(tt=q.call(this,tt,xe,Je)),this.type.isAssign){var xt=this.startNodeAt(xe,Je);return xt.operator=this.value,xt.left=this.type===E.eq?this.toAssignable(tt,!1,T):tt,z||(T.parenthesizedAssign=T.trailingComma=T.doubleProto=-1),T.shorthandAssign>=xt.left.start&&(T.shorthandAssign=-1),this.checkLVal(tt),this.next(),xt.right=this.parseMaybeAssign(h),this.finishNode(xt,"AssignmentExpression")}else z&&this.checkExpressionErrors(T,!0);return ie>-1&&(T.parenthesizedAssign=ie),Ee>-1&&(T.trailingComma=Ee),tt},dt.parseMaybeConditional=function(h,T){var q=this.start,z=this.startLoc,ie=this.parseExprOps(h,T);if(this.checkExpressionErrors(T))return ie;if(this.eat(E.question)){var Ee=this.startNodeAt(q,z);return Ee.test=ie,Ee.consequent=this.parseMaybeAssign(),this.expect(E.colon),Ee.alternate=this.parseMaybeAssign(h),this.finishNode(Ee,"ConditionalExpression")}return ie},dt.parseExprOps=function(h,T){var q=this.start,z=this.startLoc,ie=this.parseMaybeUnary(T,!1);return this.checkExpressionErrors(T)||ie.start===q&&ie.type==="ArrowFunctionExpression"?ie:this.parseExprOp(ie,q,z,-1,h)},dt.parseExprOp=function(h,T,q,z,ie){var Ee=this.type.binop;if(Ee!=null&&(!ie||this.type!==E._in)&&Ee>z){var xe=this.type===E.logicalOR||this.type===E.logicalAND,Je=this.type===E.coalesce;Je&&(Ee=E.logicalAND.binop);var tt=this.value;this.next();var xt=this.start,Kt=this.startLoc,xr=this.parseExprOp(this.parseMaybeUnary(null,!1),xt,Kt,Ee,ie),ui=this.buildBinary(T,q,h,xr,tt,xe||Je);return(xe&&this.type===E.coalesce||Je&&(this.type===E.logicalOR||this.type===E.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(ui,T,q,z,ie)}return h},dt.buildBinary=function(h,T,q,z,ie,Ee){var xe=this.startNodeAt(h,T);return xe.left=q,xe.operator=ie,xe.right=z,this.finishNode(xe,Ee?"LogicalExpression":"BinaryExpression")},dt.parseMaybeUnary=function(h,T){var q=this.start,z=this.startLoc,ie;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))ie=this.parseAwait(),T=!0;else if(this.type.prefix){var Ee=this.startNode(),xe=this.type===E.incDec;Ee.operator=this.value,Ee.prefix=!0,this.next(),Ee.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(h,!0),xe?this.checkLVal(Ee.argument):this.strict&&Ee.operator==="delete"&&Ee.argument.type==="Identifier"?this.raiseRecoverable(Ee.start,"Deleting local variable in strict mode"):T=!0,ie=this.finishNode(Ee,xe?"UpdateExpression":"UnaryExpression")}else{if(ie=this.parseExprSubscripts(h),this.checkExpressionErrors(h))return ie;for(;this.type.postfix&&!this.canInsertSemicolon();){var Je=this.startNodeAt(q,z);Je.operator=this.value,Je.prefix=!1,Je.argument=ie,this.checkLVal(ie),this.next(),ie=this.finishNode(Je,"UpdateExpression")}}return!T&&this.eat(E.starstar)?this.buildBinary(q,z,ie,this.parseMaybeUnary(null,!1),"**",!1):ie},dt.parseExprSubscripts=function(h){var T=this.start,q=this.startLoc,z=this.parseExprAtom(h);if(z.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return z;var ie=this.parseSubscripts(z,T,q);return h&&ie.type==="MemberExpression"&&(h.parenthesizedAssign>=ie.start&&(h.parenthesizedAssign=-1),h.parenthesizedBind>=ie.start&&(h.parenthesizedBind=-1)),ie},dt.parseSubscripts=function(h,T,q,z){for(var ie=this.options.ecmaVersion>=8&&h.type==="Identifier"&&h.name==="async"&&this.lastTokEnd===h.end&&!this.canInsertSemicolon()&&h.end-h.start===5&&this.potentialArrowAt===h.start,Ee=!1;;){var xe=this.parseSubscript(h,T,q,z,ie,Ee);if(xe.optional&&(Ee=!0),xe===h||xe.type==="ArrowFunctionExpression"){if(Ee){var Je=this.startNodeAt(T,q);Je.expression=xe,xe=this.finishNode(Je,"ChainExpression")}return xe}h=xe}},dt.parseSubscript=function(h,T,q,z,ie,Ee){var xe=this.options.ecmaVersion>=11,Je=xe&&this.eat(E.questionDot);z&&Je&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var tt=this.eat(E.bracketL);if(tt||Je&&this.type!==E.parenL&&this.type!==E.backQuote||this.eat(E.dot)){var xt=this.startNodeAt(T,q);xt.object=h,xt.property=tt?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),xt.computed=!!tt,tt&&this.expect(E.bracketR),xe&&(xt.optional=Je),h=this.finishNode(xt,"MemberExpression")}else if(!z&&this.eat(E.parenL)){var Kt=new fr,xr=this.yieldPos,ui=this.awaitPos,ci=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var di=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,Kt);if(ie&&!Je&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(Kt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=xr,this.awaitPos=ui,this.awaitIdentPos=ci,this.parseArrowExpression(this.startNodeAt(T,q),di,!0);this.checkExpressionErrors(Kt,!0),this.yieldPos=xr||this.yieldPos,this.awaitPos=ui||this.awaitPos,this.awaitIdentPos=ci||this.awaitIdentPos;var to=this.startNodeAt(T,q);to.callee=h,to.arguments=di,xe&&(to.optional=Je),h=this.finishNode(to,"CallExpression")}else if(this.type===E.backQuote){(Je||Ee)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var pi=this.startNodeAt(T,q);pi.tag=h,pi.quasi=this.parseTemplate({isTagged:!0}),h=this.finishNode(pi,"TaggedTemplateExpression")}return h},dt.parseExprAtom=function(h){this.type===E.slash&&this.readRegexp();var T,q=this.potentialArrowAt===this.start;switch(this.type){case E._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),T=this.startNode(),this.next(),this.type===E.parenL&&!this.allowDirectSuper&&this.raise(T.start,"super() call outside constructor of a subclass"),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(T,"Super");case E._this:return T=this.startNode(),this.next(),this.finishNode(T,"ThisExpression");case E.name:var z=this.start,ie=this.startLoc,Ee=this.containsEsc,xe=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!Ee&&xe.name==="async"&&!this.canInsertSemicolon()&&this.eat(E._function))return this.parseFunction(this.startNodeAt(z,ie),0,!1,!0);if(q&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(z,ie),[xe],!1);if(this.options.ecmaVersion>=8&&xe.name==="async"&&this.type===E.name&&!Ee)return xe=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(E.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(z,ie),[xe],!0)}return xe;case E.regexp:var Je=this.value;return T=this.parseLiteral(Je.value),T.regex={pattern:Je.pattern,flags:Je.flags},T;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return T=this.startNode(),T.value=this.type===E._null?null:this.type===E._true,T.raw=this.type.keyword,this.next(),this.finishNode(T,"Literal");case E.parenL:var tt=this.start,xt=this.parseParenAndDistinguishExpression(q);return h&&(h.parenthesizedAssign<0&&!this.isSimpleAssignTarget(xt)&&(h.parenthesizedAssign=tt),h.parenthesizedBind<0&&(h.parenthesizedBind=tt)),xt;case E.bracketL:return T=this.startNode(),this.next(),T.elements=this.parseExprList(E.bracketR,!0,!0,h),this.finishNode(T,"ArrayExpression");case E.braceL:return this.parseObj(!1,h);case E._function:return T=this.startNode(),this.next(),this.parseFunction(T,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},dt.parseExprImport=function(){var h=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var T=this.parseIdent(!0);switch(this.type){case E.parenL:return this.parseDynamicImport(h);case E.dot:return h.meta=T,this.parseImportMeta(h);default:this.unexpected()}},dt.parseDynamicImport=function(h){if(this.next(),h.source=this.parseMaybeAssign(),!this.eat(E.parenR)){var T=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(T,"Trailing comma is not allowed in import()"):this.unexpected(T)}return this.finishNode(h,"ImportExpression")},dt.parseImportMeta=function(h){this.next();var T=this.containsEsc;return h.property=this.parseIdent(!0),h.property.name!=="meta"&&this.raiseRecoverable(h.property.start,"The only valid meta property for import is 'import.meta'"),T&&this.raiseRecoverable(h.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(h.start,"Cannot use 'import.meta' outside a module"),this.finishNode(h,"MetaProperty")},dt.parseLiteral=function(h){var T=this.startNode();return T.value=h,T.raw=this.input.slice(this.start,this.end),T.raw.charCodeAt(T.raw.length-1)===110&&(T.bigint=T.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(T,"Literal")},dt.parseParenExpression=function(){this.expect(E.parenL);var h=this.parseExpression();return this.expect(E.parenR),h},dt.parseParenAndDistinguishExpression=function(h){var T=this.start,q=this.startLoc,z,ie=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Ee=this.start,xe=this.startLoc,Je=[],tt=!0,xt=!1,Kt=new fr,xr=this.yieldPos,ui=this.awaitPos,ci;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;)if(tt?tt=!1:this.expect(E.comma),ie&&this.afterTrailingComma(E.parenR,!0)){xt=!0;break}else if(this.type===E.ellipsis){ci=this.start,Je.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else Je.push(this.parseMaybeAssign(!1,Kt,this.parseParenItem));var di=this.start,to=this.startLoc;if(this.expect(E.parenR),h&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(Kt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=xr,this.awaitPos=ui,this.parseParenArrowList(T,q,Je);(!Je.length||xt)&&this.unexpected(this.lastTokStart),ci&&this.unexpected(ci),this.checkExpressionErrors(Kt,!0),this.yieldPos=xr||this.yieldPos,this.awaitPos=ui||this.awaitPos,Je.length>1?(z=this.startNodeAt(Ee,xe),z.expressions=Je,this.finishNodeAt(z,"SequenceExpression",di,to)):z=Je[0]}else z=this.parseParenExpression();if(this.options.preserveParens){var pi=this.startNodeAt(T,q);return pi.expression=z,this.finishNode(pi,"ParenthesizedExpression")}else return z},dt.parseParenItem=function(h){return h},dt.parseParenArrowList=function(h,T,q){return this.parseArrowExpression(this.startNodeAt(h,T),q)};var Jr=[];dt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var h=this.startNode(),T=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(E.dot)){h.meta=T;var q=this.containsEsc;return h.property=this.parseIdent(!0),h.property.name!=="target"&&this.raiseRecoverable(h.property.start,"The only valid meta property for new is 'new.target'"),q&&this.raiseRecoverable(h.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(h.start,"'new.target' can only be used in functions"),this.finishNode(h,"MetaProperty")}var z=this.start,ie=this.startLoc,Ee=this.type===E._import;return h.callee=this.parseSubscripts(this.parseExprAtom(),z,ie,!0),Ee&&h.callee.type==="ImportExpression"&&this.raise(z,"Cannot use new with import()"),this.eat(E.parenL)?h.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):h.arguments=Jr,this.finishNode(h,"NewExpression")},dt.parseTemplateElement=function(h){var T=h.isTagged,q=this.startNode();return this.type===E.invalidTemplate?(T||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),q.value={raw:this.value,cooked:null}):q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
1054
|
+
`),cooked:this.value},this.next(),q.tail=this.type===E.backQuote,this.finishNode(q,"TemplateElement")},dt.parseTemplate=function(h){h===void 0&&(h={});var T=h.isTagged;T===void 0&&(T=!1);var q=this.startNode();this.next(),q.expressions=[];var z=this.parseTemplateElement({isTagged:T});for(q.quasis=[z];!z.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(E.braceR),q.quasis.push(z=this.parseTemplateElement({isTagged:T}));return this.next(),this.finishNode(q,"TemplateLiteral")},dt.isAsyncProp=function(h){return!h.computed&&h.key.type==="Identifier"&&h.key.name==="async"&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!P.test(this.input.slice(this.lastTokEnd,this.start))},dt.parseObj=function(h,T){var q=this.startNode(),z=!0,ie={};for(q.properties=[],this.next();!this.eat(E.braceR);){if(z)z=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var Ee=this.parseProperty(h,T);h||this.checkPropClash(Ee,ie,T),q.properties.push(Ee)}return this.finishNode(q,h?"ObjectPattern":"ObjectExpression")},dt.parseProperty=function(h,T){var q=this.startNode(),z,ie,Ee,xe;if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return h?(q.argument=this.parseIdent(!1),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(q,"RestElement")):(this.type===E.parenL&&T&&(T.parenthesizedAssign<0&&(T.parenthesizedAssign=this.start),T.parenthesizedBind<0&&(T.parenthesizedBind=this.start)),q.argument=this.parseMaybeAssign(!1,T),this.type===E.comma&&T&&T.trailingComma<0&&(T.trailingComma=this.start),this.finishNode(q,"SpreadElement"));this.options.ecmaVersion>=6&&(q.method=!1,q.shorthand=!1,(h||T)&&(Ee=this.start,xe=this.startLoc),h||(z=this.eat(E.star)));var Je=this.containsEsc;return this.parsePropertyName(q),!h&&!Je&&this.options.ecmaVersion>=8&&!z&&this.isAsyncProp(q)?(ie=!0,z=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(q,T)):ie=!1,this.parsePropertyValue(q,h,z,ie,Ee,xe,T,Je),this.finishNode(q,"Property")},dt.parsePropertyValue=function(h,T,q,z,ie,Ee,xe,Je){if((q||z)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon))h.value=T?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,xe),h.kind="init";else if(this.options.ecmaVersion>=6&&this.type===E.parenL)T&&this.unexpected(),h.kind="init",h.method=!0,h.value=this.parseMethod(q,z);else if(!T&&!Je&&this.options.ecmaVersion>=5&&!h.computed&&h.key.type==="Identifier"&&(h.key.name==="get"||h.key.name==="set")&&this.type!==E.comma&&this.type!==E.braceR&&this.type!==E.eq){(q||z)&&this.unexpected(),h.kind=h.key.name,this.parsePropertyName(h),h.value=this.parseMethod(!1);var tt=h.kind==="get"?0:1;if(h.value.params.length!==tt){var xt=h.value.start;h.kind==="get"?this.raiseRecoverable(xt,"getter should have no params"):this.raiseRecoverable(xt,"setter should have exactly one param")}else h.kind==="set"&&h.value.params[0].type==="RestElement"&&this.raiseRecoverable(h.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!h.computed&&h.key.type==="Identifier"?((q||z)&&this.unexpected(),this.checkUnreserved(h.key),h.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ie),h.kind="init",T?h.value=this.parseMaybeDefault(ie,Ee,h.key):this.type===E.eq&&xe?(xe.shorthandAssign<0&&(xe.shorthandAssign=this.start),h.value=this.parseMaybeDefault(ie,Ee,h.key)):h.value=h.key,h.shorthand=!0):this.unexpected()},dt.parsePropertyName=function(h){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return h.computed=!0,h.key=this.parseMaybeAssign(),this.expect(E.bracketR),h.key;h.computed=!1}return h.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},dt.initFunction=function(h){h.id=null,this.options.ecmaVersion>=6&&(h.generator=h.expression=!1),this.options.ecmaVersion>=8&&(h.async=!1)},dt.parseMethod=function(h,T,q){var z=this.startNode(),ie=this.yieldPos,Ee=this.awaitPos,xe=this.awaitIdentPos;return this.initFunction(z),this.options.ecmaVersion>=6&&(z.generator=h),this.options.ecmaVersion>=8&&(z.async=!!T),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ge(T,z.generator)|ke|(q?Ue:0)),this.expect(E.parenL),z.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(z,!1,!0),this.yieldPos=ie,this.awaitPos=Ee,this.awaitIdentPos=xe,this.finishNode(z,"FunctionExpression")},dt.parseArrowExpression=function(h,T,q){var z=this.yieldPos,ie=this.awaitPos,Ee=this.awaitIdentPos;return this.enterScope(Ge(q,!1)|lt),this.initFunction(h),this.options.ecmaVersion>=8&&(h.async=!!q),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,h.params=this.toAssignableList(T,!0),this.parseFunctionBody(h,!0,!1),this.yieldPos=z,this.awaitPos=ie,this.awaitIdentPos=Ee,this.finishNode(h,"ArrowFunctionExpression")},dt.parseFunctionBody=function(h,T,q){var z=T&&this.type!==E.braceL,ie=this.strict,Ee=!1;if(z)h.body=this.parseMaybeAssign(),h.expression=!0,this.checkParams(h,!1);else{var xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(h.params);(!ie||xe)&&(Ee=this.strictDirective(this.end),Ee&&xe&&this.raiseRecoverable(h.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Je=this.labels;this.labels=[],Ee&&(this.strict=!0),this.checkParams(h,!ie&&!Ee&&!T&&!q&&this.isSimpleParamList(h.params)),this.strict&&h.id&&this.checkLVal(h.id,ur),h.body=this.parseBlock(!1,void 0,Ee&&!ie),h.expression=!1,this.adaptDirectivePrologue(h.body.body),this.labels=Je}this.exitScope()},dt.isSimpleParamList=function(h){for(var T=0,q=h;T<q.length;T+=1){var z=q[T];if(z.type!=="Identifier")return!1}return!0},dt.checkParams=function(h,T){for(var q={},z=0,ie=h.params;z<ie.length;z+=1){var Ee=ie[z];this.checkLVal(Ee,nt,T?null:q)}},dt.parseExprList=function(h,T,q,z){for(var ie=[],Ee=!0;!this.eat(h);){if(Ee)Ee=!1;else if(this.expect(E.comma),T&&this.afterTrailingComma(h))break;var xe=void 0;q&&this.type===E.comma?xe=null:this.type===E.ellipsis?(xe=this.parseSpread(z),z&&this.type===E.comma&&z.trailingComma<0&&(z.trailingComma=this.start)):xe=this.parseMaybeAssign(!1,z),ie.push(xe)}return ie},dt.checkUnreserved=function(h){var T=h.start,q=h.end,z=h.name;if(this.inGenerator&&z==="yield"&&this.raiseRecoverable(T,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&z==="await"&&this.raiseRecoverable(T,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(z)&&this.raise(T,"Unexpected keyword '"+z+"'"),!(this.options.ecmaVersion<6&&this.input.slice(T,q).indexOf("\\")!==-1)){var ie=this.strict?this.reservedWordsStrict:this.reservedWords;ie.test(z)&&(!this.inAsync&&z==="await"&&this.raiseRecoverable(T,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(T,"The keyword '"+z+"' is reserved"))}},dt.parseIdent=function(h,T){var q=this.startNode();return this.type===E.name?q.name=this.value:this.type.keyword?(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!h),this.finishNode(q,"Identifier"),h||(this.checkUnreserved(q),q.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=q.start)),q},dt.parseYield=function(h){this.yieldPos||(this.yieldPos=this.start);var T=this.startNode();return this.next(),this.type===E.semi||this.canInsertSemicolon()||this.type!==E.star&&!this.type.startsExpr?(T.delegate=!1,T.argument=null):(T.delegate=this.eat(E.star),T.argument=this.parseMaybeAssign(h)),this.finishNode(T,"YieldExpression")},dt.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var h=this.startNode();return this.next(),h.argument=this.parseMaybeUnary(null,!1),this.finishNode(h,"AwaitExpression")};var Mt=mt.prototype;Mt.raise=function(h,T){var q=Ce(this.input,h);T+=" ("+q.line+":"+q.column+")";var z=new SyntaxError(T);throw z.pos=h,z.loc=q,z.raisedAt=this.pos,z},Mt.raiseRecoverable=Mt.raise,Mt.curPosition=function(){if(this.options.locations)return new oe(this.curLine,this.pos-this.lineStart)};var Ar=mt.prototype,En=function(h){this.flags=h,this.var=[],this.lexical=[],this.functions=[]};Ar.enterScope=function(h){this.scopeStack.push(new En(h))},Ar.exitScope=function(){this.scopeStack.pop()},Ar.treatFunctionsAsVarInScope=function(h){return h.flags&_e||!this.inModule&&h.flags&De},Ar.declareName=function(h,T,q){var z=!1;if(T===it){var ie=this.currentScope();z=ie.lexical.indexOf(h)>-1||ie.functions.indexOf(h)>-1||ie.var.indexOf(h)>-1,ie.lexical.push(h),this.inModule&&ie.flags&De&&delete this.undefinedExports[h]}else if(T===Bt){var Ee=this.currentScope();Ee.lexical.push(h)}else if(T===pt){var xe=this.currentScope();this.treatFunctionsAsVar?z=xe.lexical.indexOf(h)>-1:z=xe.lexical.indexOf(h)>-1||xe.var.indexOf(h)>-1,xe.functions.push(h)}else for(var Je=this.scopeStack.length-1;Je>=0;--Je){var tt=this.scopeStack[Je];if(tt.lexical.indexOf(h)>-1&&!(tt.flags&le&&tt.lexical[0]===h)||!this.treatFunctionsAsVarInScope(tt)&&tt.functions.indexOf(h)>-1){z=!0;break}if(tt.var.push(h),this.inModule&&tt.flags&De&&delete this.undefinedExports[h],tt.flags&ge)break}z&&this.raiseRecoverable(q,"Identifier '"+h+"' has already been declared")},Ar.checkLocalExport=function(h){this.scopeStack[0].lexical.indexOf(h.name)===-1&&this.scopeStack[0].var.indexOf(h.name)===-1&&(this.undefinedExports[h.name]=h)},Ar.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ar.currentVarScope=function(){for(var h=this.scopeStack.length-1;;h--){var T=this.scopeStack[h];if(T.flags&ge)return T}},Ar.currentThisScope=function(){for(var h=this.scopeStack.length-1;;h--){var T=this.scopeStack[h];if(T.flags&ge&&!(T.flags<))return T}};var Pt=function(h,T,q){this.type="",this.start=T,this.end=0,h.options.locations&&(this.loc=new Ae(h,q)),h.options.directSourceFile&&(this.sourceFile=h.options.directSourceFile),h.options.ranges&&(this.range=[T,0])},Gt=mt.prototype;Gt.startNode=function(){return new Pt(this,this.start,this.startLoc)},Gt.startNodeAt=function(h,T){return new Pt(this,h,T)};function Br(h,T,q,z){return h.type=T,h.end=q,this.options.locations&&(h.loc.end=z),this.options.ranges&&(h.range[1]=q),h}Gt.finishNode=function(h,T){return Br.call(this,h,T,this.lastTokEnd,this.lastTokEndLoc)},Gt.finishNodeAt=function(h,T,q,z){return Br.call(this,h,T,q,z)};var qt=function(h,T,q,z,ie){this.token=h,this.isExpr=!!T,this.preserveSpace=!!q,this.override=z,this.generator=!!ie},Ct={b_stat:new qt("{",!1),b_expr:new qt("{",!0),b_tmpl:new qt("${",!1),p_stat:new qt("(",!1),p_expr:new qt("(",!0),q_tmpl:new qt("`",!0,!0,function(h){return h.tryReadTemplateToken()}),f_stat:new qt("function",!1),f_expr:new qt("function",!0),f_expr_gen:new qt("function",!0,!1,null,!0),f_gen:new qt("function",!1,!1,null,!0)},hr=mt.prototype;hr.initialContext=function(){return[Ct.b_stat]},hr.braceIsBlock=function(h){var T=this.curContext();return T===Ct.f_expr||T===Ct.f_stat?!0:h===E.colon&&(T===Ct.b_stat||T===Ct.b_expr)?!T.isExpr:h===E._return||h===E.name&&this.exprAllowed?P.test(this.input.slice(this.lastTokEnd,this.start)):h===E._else||h===E.semi||h===E.eof||h===E.parenR||h===E.arrow?!0:h===E.braceL?T===Ct.b_stat:h===E._var||h===E._const||h===E.name?!1:!this.exprAllowed},hr.inGeneratorContext=function(){for(var h=this.context.length-1;h>=1;h--){var T=this.context[h];if(T.token==="function")return T.generator}return!1},hr.updateContext=function(h){var T,q=this.type;q.keyword&&h===E.dot?this.exprAllowed=!1:(T=q.updateContext)?T.call(this,h):this.exprAllowed=q.beforeExpr},E.parenR.updateContext=E.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var h=this.context.pop();h===Ct.b_stat&&this.curContext().token==="function"&&(h=this.context.pop()),this.exprAllowed=!h.isExpr},E.braceL.updateContext=function(h){this.context.push(this.braceIsBlock(h)?Ct.b_stat:Ct.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(Ct.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(h){var T=h===E._if||h===E._for||h===E._with||h===E._while;this.context.push(T?Ct.p_stat:Ct.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(h){h.beforeExpr&&h!==E.semi&&h!==E._else&&!(h===E._return&&P.test(this.input.slice(this.lastTokEnd,this.start)))&&!((h===E.colon||h===E.braceL)&&this.curContext()===Ct.b_stat)?this.context.push(Ct.f_expr):this.context.push(Ct.f_stat),this.exprAllowed=!1},E.backQuote.updateContext=function(){this.curContext()===Ct.q_tmpl?this.context.pop():this.context.push(Ct.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(h){if(h===E._function){var T=this.context.length-1;this.context[T]===Ct.f_expr?this.context[T]=Ct.f_expr_gen:this.context[T]=Ct.f_gen}this.exprAllowed=!0},E.name.updateContext=function(h){var T=!1;this.options.ecmaVersion>=6&&h!==E.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(T=!0),this.exprAllowed=T};var st="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",D=st+" Extended_Pictographic",V=D,M={9:st,10:D,11:V},k="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Y="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ve=Y+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Te=ve+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Re={9:Y,10:ve,11:Te},Ke={};function ft(h){var T=Ke[h]={binary:ae(M[h]+" "+k),nonBinary:{General_Category:ae(k),Script:ae(Re[h])}};T.nonBinary.Script_Extensions=T.nonBinary.Script,T.nonBinary.gc=T.nonBinary.General_Category,T.nonBinary.sc=T.nonBinary.Script,T.nonBinary.scx=T.nonBinary.Script_Extensions}ft(9),ft(10),ft(11);var Le=mt.prototype,er=function(h){this.parser=h,this.validFlags="gim"+(h.options.ecmaVersion>=6?"uy":"")+(h.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ke[h.options.ecmaVersion>=11?11:h.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};er.prototype.reset=function(h,T,q){var z=q.indexOf("u")!==-1;this.start=h|0,this.source=T+"",this.flags=q,this.switchU=z&&this.parser.options.ecmaVersion>=6,this.switchN=z&&this.parser.options.ecmaVersion>=9},er.prototype.raise=function(h){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+h)},er.prototype.at=function(h,T){T===void 0&&(T=!1);var q=this.source,z=q.length;if(h>=z)return-1;var ie=q.charCodeAt(h);if(!(T||this.switchU)||ie<=55295||ie>=57344||h+1>=z)return ie;var Ee=q.charCodeAt(h+1);return Ee>=56320&&Ee<=57343?(ie<<10)+Ee-56613888:ie},er.prototype.nextIndex=function(h,T){T===void 0&&(T=!1);var q=this.source,z=q.length;if(h>=z)return z;var ie=q.charCodeAt(h),Ee;return!(T||this.switchU)||ie<=55295||ie>=57344||h+1>=z||(Ee=q.charCodeAt(h+1))<56320||Ee>57343?h+1:h+2},er.prototype.current=function(h){return h===void 0&&(h=!1),this.at(this.pos,h)},er.prototype.lookahead=function(h){return h===void 0&&(h=!1),this.at(this.nextIndex(this.pos,h),h)},er.prototype.advance=function(h){h===void 0&&(h=!1),this.pos=this.nextIndex(this.pos,h)},er.prototype.eat=function(h,T){return T===void 0&&(T=!1),this.current(T)===h?(this.advance(T),!0):!1};function mr(h){return h<=65535?String.fromCharCode(h):(h-=65536,String.fromCharCode((h>>10)+55296,(h&1023)+56320))}Le.validateRegExpFlags=function(h){for(var T=h.validFlags,q=h.flags,z=0;z<q.length;z++){var ie=q.charAt(z);T.indexOf(ie)===-1&&this.raise(h.start,"Invalid regular expression flag"),q.indexOf(ie,z+1)>-1&&this.raise(h.start,"Duplicate regular expression flag")}},Le.validateRegExpPattern=function(h){this.regexp_pattern(h),!h.switchN&&this.options.ecmaVersion>=9&&h.groupNames.length>0&&(h.switchN=!0,this.regexp_pattern(h))},Le.regexp_pattern=function(h){h.pos=0,h.lastIntValue=0,h.lastStringValue="",h.lastAssertionIsQuantifiable=!1,h.numCapturingParens=0,h.maxBackReference=0,h.groupNames.length=0,h.backReferenceNames.length=0,this.regexp_disjunction(h),h.pos!==h.source.length&&(h.eat(41)&&h.raise("Unmatched ')'"),(h.eat(93)||h.eat(125))&&h.raise("Lone quantifier brackets")),h.maxBackReference>h.numCapturingParens&&h.raise("Invalid escape");for(var T=0,q=h.backReferenceNames;T<q.length;T+=1){var z=q[T];h.groupNames.indexOf(z)===-1&&h.raise("Invalid named capture referenced")}},Le.regexp_disjunction=function(h){for(this.regexp_alternative(h);h.eat(124);)this.regexp_alternative(h);this.regexp_eatQuantifier(h,!0)&&h.raise("Nothing to repeat"),h.eat(123)&&h.raise("Lone quantifier brackets")},Le.regexp_alternative=function(h){for(;h.pos<h.source.length&&this.regexp_eatTerm(h););},Le.regexp_eatTerm=function(h){return this.regexp_eatAssertion(h)?(h.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(h)&&h.switchU&&h.raise("Invalid quantifier"),!0):(h.switchU?this.regexp_eatAtom(h):this.regexp_eatExtendedAtom(h))?(this.regexp_eatQuantifier(h),!0):!1},Le.regexp_eatAssertion=function(h){var T=h.pos;if(h.lastAssertionIsQuantifiable=!1,h.eat(94)||h.eat(36))return!0;if(h.eat(92)){if(h.eat(66)||h.eat(98))return!0;h.pos=T}if(h.eat(40)&&h.eat(63)){var q=!1;if(this.options.ecmaVersion>=9&&(q=h.eat(60)),h.eat(61)||h.eat(33))return this.regexp_disjunction(h),h.eat(41)||h.raise("Unterminated group"),h.lastAssertionIsQuantifiable=!q,!0}return h.pos=T,!1},Le.regexp_eatQuantifier=function(h,T){return T===void 0&&(T=!1),this.regexp_eatQuantifierPrefix(h,T)?(h.eat(63),!0):!1},Le.regexp_eatQuantifierPrefix=function(h,T){return h.eat(42)||h.eat(43)||h.eat(63)||this.regexp_eatBracedQuantifier(h,T)},Le.regexp_eatBracedQuantifier=function(h,T){var q=h.pos;if(h.eat(123)){var z=0,ie=-1;if(this.regexp_eatDecimalDigits(h)&&(z=h.lastIntValue,h.eat(44)&&this.regexp_eatDecimalDigits(h)&&(ie=h.lastIntValue),h.eat(125)))return ie!==-1&&ie<z&&!T&&h.raise("numbers out of order in {} quantifier"),!0;h.switchU&&!T&&h.raise("Incomplete quantifier"),h.pos=q}return!1},Le.regexp_eatAtom=function(h){return this.regexp_eatPatternCharacters(h)||h.eat(46)||this.regexp_eatReverseSolidusAtomEscape(h)||this.regexp_eatCharacterClass(h)||this.regexp_eatUncapturingGroup(h)||this.regexp_eatCapturingGroup(h)},Le.regexp_eatReverseSolidusAtomEscape=function(h){var T=h.pos;if(h.eat(92)){if(this.regexp_eatAtomEscape(h))return!0;h.pos=T}return!1},Le.regexp_eatUncapturingGroup=function(h){var T=h.pos;if(h.eat(40)){if(h.eat(63)&&h.eat(58)){if(this.regexp_disjunction(h),h.eat(41))return!0;h.raise("Unterminated group")}h.pos=T}return!1},Le.regexp_eatCapturingGroup=function(h){if(h.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(h):h.current()===63&&h.raise("Invalid group"),this.regexp_disjunction(h),h.eat(41))return h.numCapturingParens+=1,!0;h.raise("Unterminated group")}return!1},Le.regexp_eatExtendedAtom=function(h){return h.eat(46)||this.regexp_eatReverseSolidusAtomEscape(h)||this.regexp_eatCharacterClass(h)||this.regexp_eatUncapturingGroup(h)||this.regexp_eatCapturingGroup(h)||this.regexp_eatInvalidBracedQuantifier(h)||this.regexp_eatExtendedPatternCharacter(h)},Le.regexp_eatInvalidBracedQuantifier=function(h){return this.regexp_eatBracedQuantifier(h,!0)&&h.raise("Nothing to repeat"),!1},Le.regexp_eatSyntaxCharacter=function(h){var T=h.current();return Wn(T)?(h.lastIntValue=T,h.advance(),!0):!1};function Wn(h){return h===36||h>=40&&h<=43||h===46||h===63||h>=91&&h<=94||h>=123&&h<=125}Le.regexp_eatPatternCharacters=function(h){for(var T=h.pos,q=0;(q=h.current())!==-1&&!Wn(q);)h.advance();return h.pos!==T},Le.regexp_eatExtendedPatternCharacter=function(h){var T=h.current();return T!==-1&&T!==36&&!(T>=40&&T<=43)&&T!==46&&T!==63&&T!==91&&T!==94&&T!==124?(h.advance(),!0):!1},Le.regexp_groupSpecifier=function(h){if(h.eat(63)){if(this.regexp_eatGroupName(h)){h.groupNames.indexOf(h.lastStringValue)!==-1&&h.raise("Duplicate capture group name"),h.groupNames.push(h.lastStringValue);return}h.raise("Invalid group")}},Le.regexp_eatGroupName=function(h){if(h.lastStringValue="",h.eat(60)){if(this.regexp_eatRegExpIdentifierName(h)&&h.eat(62))return!0;h.raise("Invalid capture group name")}return!1},Le.regexp_eatRegExpIdentifierName=function(h){if(h.lastStringValue="",this.regexp_eatRegExpIdentifierStart(h)){for(h.lastStringValue+=mr(h.lastIntValue);this.regexp_eatRegExpIdentifierPart(h);)h.lastStringValue+=mr(h.lastIntValue);return!0}return!1},Le.regexp_eatRegExpIdentifierStart=function(h){var T=h.pos,q=this.options.ecmaVersion>=11,z=h.current(q);return h.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(h,q)&&(z=h.lastIntValue),si(z)?(h.lastIntValue=z,!0):(h.pos=T,!1)};function si(h){return w(h,!0)||h===36||h===95}Le.regexp_eatRegExpIdentifierPart=function(h){var T=h.pos,q=this.options.ecmaVersion>=11,z=h.current(q);return h.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(h,q)&&(z=h.lastIntValue),Lr(z)?(h.lastIntValue=z,!0):(h.pos=T,!1)};function Lr(h){return A(h,!0)||h===36||h===95||h===8204||h===8205}Le.regexp_eatAtomEscape=function(h){return this.regexp_eatBackReference(h)||this.regexp_eatCharacterClassEscape(h)||this.regexp_eatCharacterEscape(h)||h.switchN&&this.regexp_eatKGroupName(h)?!0:(h.switchU&&(h.current()===99&&h.raise("Invalid unicode escape"),h.raise("Invalid escape")),!1)},Le.regexp_eatBackReference=function(h){var T=h.pos;if(this.regexp_eatDecimalEscape(h)){var q=h.lastIntValue;if(h.switchU)return q>h.maxBackReference&&(h.maxBackReference=q),!0;if(q<=h.numCapturingParens)return!0;h.pos=T}return!1},Le.regexp_eatKGroupName=function(h){if(h.eat(107)){if(this.regexp_eatGroupName(h))return h.backReferenceNames.push(h.lastStringValue),!0;h.raise("Invalid named reference")}return!1},Le.regexp_eatCharacterEscape=function(h){return this.regexp_eatControlEscape(h)||this.regexp_eatCControlLetter(h)||this.regexp_eatZero(h)||this.regexp_eatHexEscapeSequence(h)||this.regexp_eatRegExpUnicodeEscapeSequence(h,!1)||!h.switchU&&this.regexp_eatLegacyOctalEscapeSequence(h)||this.regexp_eatIdentityEscape(h)},Le.regexp_eatCControlLetter=function(h){var T=h.pos;if(h.eat(99)){if(this.regexp_eatControlLetter(h))return!0;h.pos=T}return!1},Le.regexp_eatZero=function(h){return h.current()===48&&!I(h.lookahead())?(h.lastIntValue=0,h.advance(),!0):!1},Le.regexp_eatControlEscape=function(h){var T=h.current();return T===116?(h.lastIntValue=9,h.advance(),!0):T===110?(h.lastIntValue=10,h.advance(),!0):T===118?(h.lastIntValue=11,h.advance(),!0):T===102?(h.lastIntValue=12,h.advance(),!0):T===114?(h.lastIntValue=13,h.advance(),!0):!1},Le.regexp_eatControlLetter=function(h){var T=h.current();return Kr(T)?(h.lastIntValue=T%32,h.advance(),!0):!1};function Kr(h){return h>=65&&h<=90||h>=97&&h<=122}Le.regexp_eatRegExpUnicodeEscapeSequence=function(h,T){T===void 0&&(T=!1);var q=h.pos,z=T||h.switchU;if(h.eat(117)){if(this.regexp_eatFixedHexDigits(h,4)){var ie=h.lastIntValue;if(z&&ie>=55296&&ie<=56319){var Ee=h.pos;if(h.eat(92)&&h.eat(117)&&this.regexp_eatFixedHexDigits(h,4)){var xe=h.lastIntValue;if(xe>=56320&&xe<=57343)return h.lastIntValue=(ie-55296)*1024+(xe-56320)+65536,!0}h.pos=Ee,h.lastIntValue=ie}return!0}if(z&&h.eat(123)&&this.regexp_eatHexDigits(h)&&h.eat(125)&&On(h.lastIntValue))return!0;z&&h.raise("Invalid unicode escape"),h.pos=q}return!1};function On(h){return h>=0&&h<=1114111}Le.regexp_eatIdentityEscape=function(h){if(h.switchU)return this.regexp_eatSyntaxCharacter(h)?!0:h.eat(47)?(h.lastIntValue=47,!0):!1;var T=h.current();return T!==99&&(!h.switchN||T!==107)?(h.lastIntValue=T,h.advance(),!0):!1},Le.regexp_eatDecimalEscape=function(h){h.lastIntValue=0;var T=h.current();if(T>=49&&T<=57){do h.lastIntValue=10*h.lastIntValue+(T-48),h.advance();while((T=h.current())>=48&&T<=57);return!0}return!1},Le.regexp_eatCharacterClassEscape=function(h){var T=h.current();if(eo(T))return h.lastIntValue=-1,h.advance(),!0;if(h.switchU&&this.options.ecmaVersion>=9&&(T===80||T===112)){if(h.lastIntValue=-1,h.advance(),h.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(h)&&h.eat(125))return!0;h.raise("Invalid property name")}return!1};function eo(h){return h===100||h===68||h===115||h===83||h===119||h===87}Le.regexp_eatUnicodePropertyValueExpression=function(h){var T=h.pos;if(this.regexp_eatUnicodePropertyName(h)&&h.eat(61)){var q=h.lastStringValue;if(this.regexp_eatUnicodePropertyValue(h)){var z=h.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(h,q,z),!0}}if(h.pos=T,this.regexp_eatLoneUnicodePropertyNameOrValue(h)){var ie=h.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(h,ie),!0}return!1},Le.regexp_validateUnicodePropertyNameAndValue=function(h,T,q){K(h.unicodeProperties.nonBinary,T)||h.raise("Invalid property name"),h.unicodeProperties.nonBinary[T].test(q)||h.raise("Invalid property value")},Le.regexp_validateUnicodePropertyNameOrValue=function(h,T){h.unicodeProperties.binary.test(T)||h.raise("Invalid property name")},Le.regexp_eatUnicodePropertyName=function(h){var T=0;for(h.lastStringValue="";d(T=h.current());)h.lastStringValue+=mr(T),h.advance();return h.lastStringValue!==""};function d(h){return Kr(h)||h===95}Le.regexp_eatUnicodePropertyValue=function(h){var T=0;for(h.lastStringValue="";S(T=h.current());)h.lastStringValue+=mr(T),h.advance();return h.lastStringValue!==""};function S(h){return d(h)||I(h)}Le.regexp_eatLoneUnicodePropertyNameOrValue=function(h){return this.regexp_eatUnicodePropertyValue(h)},Le.regexp_eatCharacterClass=function(h){if(h.eat(91)){if(h.eat(94),this.regexp_classRanges(h),h.eat(93))return!0;h.raise("Unterminated character class")}return!1},Le.regexp_classRanges=function(h){for(;this.regexp_eatClassAtom(h);){var T=h.lastIntValue;if(h.eat(45)&&this.regexp_eatClassAtom(h)){var q=h.lastIntValue;h.switchU&&(T===-1||q===-1)&&h.raise("Invalid character class"),T!==-1&&q!==-1&&T>q&&h.raise("Range out of order in character class")}}},Le.regexp_eatClassAtom=function(h){var T=h.pos;if(h.eat(92)){if(this.regexp_eatClassEscape(h))return!0;if(h.switchU){var q=h.current();(q===99||Se(q))&&h.raise("Invalid class escape"),h.raise("Invalid escape")}h.pos=T}var z=h.current();return z!==93?(h.lastIntValue=z,h.advance(),!0):!1},Le.regexp_eatClassEscape=function(h){var T=h.pos;if(h.eat(98))return h.lastIntValue=8,!0;if(h.switchU&&h.eat(45))return h.lastIntValue=45,!0;if(!h.switchU&&h.eat(99)){if(this.regexp_eatClassControlLetter(h))return!0;h.pos=T}return this.regexp_eatCharacterClassEscape(h)||this.regexp_eatCharacterEscape(h)},Le.regexp_eatClassControlLetter=function(h){var T=h.current();return I(T)||T===95?(h.lastIntValue=T%32,h.advance(),!0):!1},Le.regexp_eatHexEscapeSequence=function(h){var T=h.pos;if(h.eat(120)){if(this.regexp_eatFixedHexDigits(h,2))return!0;h.switchU&&h.raise("Invalid escape"),h.pos=T}return!1},Le.regexp_eatDecimalDigits=function(h){var T=h.pos,q=0;for(h.lastIntValue=0;I(q=h.current());)h.lastIntValue=10*h.lastIntValue+(q-48),h.advance();return h.pos!==T};function I(h){return h>=48&&h<=57}Le.regexp_eatHexDigits=function(h){var T=h.pos,q=0;for(h.lastIntValue=0;J(q=h.current());)h.lastIntValue=16*h.lastIntValue+pe(q),h.advance();return h.pos!==T};function J(h){return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function pe(h){return h>=65&&h<=70?10+(h-65):h>=97&&h<=102?10+(h-97):h-48}Le.regexp_eatLegacyOctalEscapeSequence=function(h){if(this.regexp_eatOctalDigit(h)){var T=h.lastIntValue;if(this.regexp_eatOctalDigit(h)){var q=h.lastIntValue;T<=3&&this.regexp_eatOctalDigit(h)?h.lastIntValue=T*64+q*8+h.lastIntValue:h.lastIntValue=T*8+q}else h.lastIntValue=T;return!0}return!1},Le.regexp_eatOctalDigit=function(h){var T=h.current();return Se(T)?(h.lastIntValue=T-48,h.advance(),!0):(h.lastIntValue=0,!1)};function Se(h){return h>=48&&h<=55}Le.regexp_eatFixedHexDigits=function(h,T){var q=h.pos;h.lastIntValue=0;for(var z=0;z<T;++z){var ie=h.current();if(!J(ie))return h.pos=q,!1;h.lastIntValue=16*h.lastIntValue+pe(ie),h.advance()}return!0};var Fe=function(h){this.type=h.type,this.value=h.value,this.start=h.start,this.end=h.end,h.options.locations&&(this.loc=new Ae(h,h.startLoc,h.endLoc)),h.options.ranges&&(this.range=[h.start,h.end])},Pe=mt.prototype;Pe.next=function(h){!h&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Fe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Pe.getToken=function(){return this.next(),new Fe(this)},typeof Symbol<"u"&&(Pe[Symbol.iterator]=function(){var h=this;return{next:function(){var T=h.getToken();return{done:T.type===E.eof,value:T}}}}),Pe.curContext=function(){return this.context[this.context.length-1]},Pe.nextToken=function(){var h=this.curContext();if((!h||!h.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(E.eof);if(h.override)return h.override(this);this.readToken(this.fullCharCodeAtPos())},Pe.readToken=function(h){return w(h,this.options.ecmaVersion>=6)||h===92?this.readWord():this.getTokenFromCode(h)},Pe.fullCharCodeAtPos=function(){var h=this.input.charCodeAt(this.pos);if(h<=55295||h>=57344)return h;var T=this.input.charCodeAt(this.pos+1);return(h<<10)+T-56613888},Pe.skipBlockComment=function(){var h=this.options.onComment&&this.curPosition(),T=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations){N.lastIndex=T;for(var z;(z=N.exec(this.input))&&z.index<this.pos;)++this.curLine,this.lineStart=z.index+z[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(T+2,q),T,this.pos,h,this.curPosition())},Pe.skipLineComment=function(h){for(var T=this.pos,q=this.options.onComment&&this.curPosition(),z=this.input.charCodeAt(this.pos+=h);this.pos<this.input.length&&!L(z);)z=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(T+h,this.pos),T,this.pos,q,this.curPosition())},Pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var h=this.input.charCodeAt(this.pos);switch(h){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(h>8&&h<14||h>=5760&&Z.test(String.fromCharCode(h)))++this.pos;else break e}}},Pe.finishToken=function(h,T){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var q=this.type;this.type=h,this.value=T,this.updateContext(q)},Pe.readToken_dot=function(){var h=this.input.charCodeAt(this.pos+1);if(h>=48&&h<=57)return this.readNumber(!0);var T=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&h===46&&T===46?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},Pe.readToken_slash=function(){var h=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):h===61?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},Pe.readToken_mult_modulo_exp=function(h){var T=this.input.charCodeAt(this.pos+1),q=1,z=h===42?E.star:E.modulo;return this.options.ecmaVersion>=7&&h===42&&T===42&&(++q,z=E.starstar,T=this.input.charCodeAt(this.pos+2)),T===61?this.finishOp(E.assign,q+1):this.finishOp(z,q)},Pe.readToken_pipe_amp=function(h){var T=this.input.charCodeAt(this.pos+1);if(T===h){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(E.assign,3)}return this.finishOp(h===124?E.logicalOR:E.logicalAND,2)}return T===61?this.finishOp(E.assign,2):this.finishOp(h===124?E.bitwiseOR:E.bitwiseAND,1)},Pe.readToken_caret=function(){var h=this.input.charCodeAt(this.pos+1);return h===61?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},Pe.readToken_plus_min=function(h){var T=this.input.charCodeAt(this.pos+1);return T===h?T===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||P.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(E.incDec,2):T===61?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},Pe.readToken_lt_gt=function(h){var T=this.input.charCodeAt(this.pos+1),q=1;return T===h?(q=h===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61?this.finishOp(E.assign,q+1):this.finishOp(E.bitShift,q)):T===33&&h===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(T===61&&(q=2),this.finishOp(E.relational,q))},Pe.readToken_eq_excl=function(h){var T=this.input.charCodeAt(this.pos+1);return T===61?this.finishOp(E.equality,this.input.charCodeAt(this.pos+2)===61?3:2):h===61&&T===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(h===61?E.eq:E.prefix,1)},Pe.readToken_question=function(){var h=this.options.ecmaVersion;if(h>=11){var T=this.input.charCodeAt(this.pos+1);if(T===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(E.questionDot,2)}if(T===63){if(h>=12){var z=this.input.charCodeAt(this.pos+2);if(z===61)return this.finishOp(E.assign,3)}return this.finishOp(E.coalesce,2)}}return this.finishOp(E.question,1)},Pe.getTokenFromCode=function(h){switch(h){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var T=this.input.charCodeAt(this.pos+1);if(T===120||T===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(T===111||T===79)return this.readRadixNumber(8);if(T===98||T===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(h);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(h);case 124:case 38:return this.readToken_pipe_amp(h);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(h);case 60:case 62:return this.readToken_lt_gt(h);case 61:case 33:return this.readToken_eq_excl(h);case 63:return this.readToken_question();case 126:return this.finishOp(E.prefix,1)}this.raise(this.pos,"Unexpected character '"+tr(h)+"'")},Pe.finishOp=function(h,T){var q=this.input.slice(this.pos,this.pos+T);return this.pos+=T,this.finishToken(h,q)},Pe.readRegexp=function(){for(var h,T,q=this.pos;;){this.pos>=this.input.length&&this.raise(q,"Unterminated regular expression");var z=this.input.charAt(this.pos);if(P.test(z)&&this.raise(q,"Unterminated regular expression"),h)h=!1;else{if(z==="[")T=!0;else if(z==="]"&&T)T=!1;else if(z==="/"&&!T)break;h=z==="\\"}++this.pos}var ie=this.input.slice(q,this.pos);++this.pos;var Ee=this.pos,xe=this.readWord1();this.containsEsc&&this.unexpected(Ee);var Je=this.regexpState||(this.regexpState=new er(this));Je.reset(q,ie,xe),this.validateRegExpFlags(Je),this.validateRegExpPattern(Je);var tt=null;try{tt=new RegExp(ie,xe)}catch{}return this.finishToken(E.regexp,{pattern:ie,flags:xe,value:tt})},Pe.readInt=function(h,T,q){for(var z=this.options.ecmaVersion>=12&&T===void 0,ie=q&&this.input.charCodeAt(this.pos)===48,Ee=this.pos,xe=0,Je=0,tt=0,xt=T??1/0;tt<xt;++tt,++this.pos){var Kt=this.input.charCodeAt(this.pos),xr=void 0;if(z&&Kt===95){ie&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),Je===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),tt===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),Je=Kt;continue}if(Kt>=97?xr=Kt-97+10:Kt>=65?xr=Kt-65+10:Kt>=48&&Kt<=57?xr=Kt-48:xr=1/0,xr>=h)break;Je=Kt,xe=xe*h+xr}return z&&Je===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Ee||T!=null&&this.pos-Ee!==T?null:xe};function ht(h,T){return T?parseInt(h,8):parseFloat(h.replace(/_/g,""))}function wt(h){return typeof BigInt!="function"?null:BigInt(h.replace(/_/g,""))}Pe.readRadixNumber=function(h){var T=this.pos;this.pos+=2;var q=this.readInt(h);return q==null&&this.raise(this.start+2,"Expected number in radix "+h),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(q=wt(this.input.slice(T,this.pos)),++this.pos):w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,q)},Pe.readNumber=function(h){var T=this.pos;!h&&this.readInt(10,void 0,!0)===null&&this.raise(T,"Invalid number");var q=this.pos-T>=2&&this.input.charCodeAt(T)===48;q&&this.strict&&this.raise(T,"Invalid number");var z=this.input.charCodeAt(this.pos);if(!q&&!h&&this.options.ecmaVersion>=11&&z===110){var ie=wt(this.input.slice(T,this.pos));return++this.pos,w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,ie)}q&&/[89]/.test(this.input.slice(T,this.pos))&&(q=!1),z===46&&!q&&(++this.pos,this.readInt(10),z=this.input.charCodeAt(this.pos)),(z===69||z===101)&&!q&&(z=this.input.charCodeAt(++this.pos),(z===43||z===45)&&++this.pos,this.readInt(10)===null&&this.raise(T,"Invalid number")),w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Ee=ht(this.input.slice(T,this.pos),q);return this.finishToken(E.num,Ee)},Pe.readCodePoint=function(){var h=this.input.charCodeAt(this.pos),T;if(h===123){this.options.ecmaVersion<6&&this.unexpected();var q=++this.pos;T=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,T>1114111&&this.invalidStringToken(q,"Code point out of bounds")}else T=this.readHexChar(4);return T};function tr(h){return h<=65535?String.fromCharCode(h):(h-=65536,String.fromCharCode((h>>10)+55296,(h&1023)+56320))}Pe.readString=function(h){for(var T="",q=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var z=this.input.charCodeAt(this.pos);if(z===h)break;z===92?(T+=this.input.slice(q,this.pos),T+=this.readEscapedChar(!1),q=this.pos):(L(z,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return T+=this.input.slice(q,this.pos++),this.finishToken(E.string,T)};var Vt={};Pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(h){if(h===Vt)this.readInvalidTemplateToken();else throw h}this.inTemplateElement=!1},Pe.invalidStringToken=function(h,T){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Vt;this.raise(h,T)},Pe.readTmplToken=function(){for(var h="",T=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===E.template||this.type===E.invalidTemplate)?q===36?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote)):(h+=this.input.slice(T,this.pos),this.finishToken(E.template,h));if(q===92)h+=this.input.slice(T,this.pos),h+=this.readEscapedChar(!0),T=this.pos;else if(L(q)){switch(h+=this.input.slice(T,this.pos),++this.pos,q){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:h+=`
|
|
1055
|
+
`;break;default:h+=String.fromCharCode(q);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),T=this.pos}else++this.pos}},Pe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(E.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Pe.readEscapedChar=function(h){var T=this.input.charCodeAt(++this.pos);switch(++this.pos,T){case 110:return`
|
|
1056
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tr(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(h){var q=this.pos-1;return this.invalidStringToken(q,"Invalid escape sequence in template string"),null}default:if(T>=48&&T<=55){var z=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ie=parseInt(z,8);return ie>255&&(z=z.slice(0,-1),ie=parseInt(z,8)),this.pos+=z.length-1,T=this.input.charCodeAt(this.pos),(z!=="0"||T===56||T===57)&&(this.strict||h)&&this.invalidStringToken(this.pos-1-z.length,h?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ie)}return L(T)?"":String.fromCharCode(T)}},Pe.readHexChar=function(h){var T=this.pos,q=this.readInt(16,h);return q===null&&this.invalidStringToken(T,"Bad character escape sequence"),q},Pe.readWord1=function(){this.containsEsc=!1;for(var h="",T=!0,q=this.pos,z=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ie=this.fullCharCodeAtPos();if(A(ie,z))this.pos+=ie<=65535?1:2;else if(ie===92){this.containsEsc=!0,h+=this.input.slice(q,this.pos);var Ee=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var xe=this.readCodePoint();(T?w:A)(xe,z)||this.invalidStringToken(Ee,"Invalid Unicode escape"),h+=tr(xe),q=this.pos}else break;T=!1}return h+this.input.slice(q,this.pos)},Pe.readWord=function(){var h=this.readWord1(),T=E.name;return this.keywords.test(h)&&(T=B[h]),this.finishToken(T,h)};var Yr="7.4.1";mt.acorn={Parser:mt,version:Yr,defaultOptions:re,Position:oe,SourceLocation:Ae,getLineInfo:Ce,Node:Pt,TokenType:x,tokTypes:E,keywordTypes:B,TokContext:qt,tokContexts:Ct,isIdentifierChar:A,isIdentifierStart:w,Token:Fe,isNewLine:L,lineBreak:P,lineBreakG:N,nonASCIIwhitespace:Z};function li(h,T){return mt.parse(h,T)}function Fa(h,T,q){return mt.parseExpressionAt(h,T,q)}function Nn(h,T){return mt.tokenizer(h,T)}r.Node=Pt,r.Parser=mt,r.Position=oe,r.SourceLocation=Ae,r.TokContext=qt,r.Token=Fe,r.TokenType=x,r.defaultOptions=re,r.getLineInfo=Ce,r.isIdentifierChar=A,r.isIdentifierStart=w,r.isNewLine=L,r.keywordTypes=B,r.lineBreak=P,r.lineBreakG=N,r.nonASCIIwhitespace=Z,r.parse=li,r.parseExpressionAt=Fa,r.tokContexts=Ct,r.tokTypes=E,r.tokenizer=Nn,r.version=Yr,Object.defineProperty(r,"__esModule",{value:!0})}))}}),iee=ir({"node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}}}),oee=ir({"node_modules/acorn-jsx/index.js"(e,t){var r=iee(),n=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function l(c){c=c.Parser.acorn||c;let m=a.get(c);if(!m){let y=c.tokTypes,g=c.TokContext,b=c.TokenType,w=new g("<tag",!1),A=new g("</tag",!1),x=new g("<tag>...</tag>",!0,!0),_={tc_oTag:w,tc_cTag:A,tc_expr:x},R={jsxName:new b("jsxName"),jsxText:new b("jsxText",{beforeExpr:!0}),jsxTagStart:new b("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new b("jsxTagEnd")};R.jsxTagStart.updateContext=function(){this.context.push(x),this.context.push(w),this.exprAllowed=!1},R.jsxTagEnd.updateContext=function(j){let B=this.context.pop();B===w&&j===y.slash||B===A?(this.context.pop(),this.exprAllowed=this.curContext()===x):this.exprAllowed=!0},m={tokContexts:_,tokTypes:R},a.set(c,m)}return m}function u(c){if(!c)return c;if(c.type==="JSXIdentifier")return c.name;if(c.type==="JSXNamespacedName")return c.namespace.name+":"+c.name.name;if(c.type==="JSXMemberExpression")return u(c.object)+"."+u(c.property)}t.exports=function(c){return c=c||{},function(m){return p({allowNamespaces:c.allowNamespaces!==!1,allowNamespacedObjects:!!c.allowNamespacedObjects},m)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return l(Ny()).tokTypes},configurable:!0,enumerable:!0});function p(c,m){let y=m.acorn||Ny(),g=l(y),b=y.tokTypes,w=g.tokTypes,A=y.tokContexts,x=g.tokContexts.tc_oTag,_=g.tokContexts.tc_cTag,R=g.tokContexts.tc_expr,j=y.isNewLine,B=y.isIdentifierStart,F=y.isIdentifierChar;return class extends m{static get acornJsx(){return g}jsx_readToken(){let E="",P=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let N=this.input.charCodeAt(this.pos);switch(N){case 60:case 123:return this.pos===this.start?N===60&&this.exprAllowed?(++this.pos,this.finishToken(w.jsxTagStart)):this.getTokenFromCode(N):(E+=this.input.slice(P,this.pos),this.finishToken(w.jsxText,E));case 38:E+=this.input.slice(P,this.pos),E+=this.jsx_readEntity(),P=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(N===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:j(N)?(E+=this.input.slice(P,this.pos),E+=this.jsx_readNewLine(!0),P=this.pos):++this.pos}}}jsx_readNewLine(E){let P=this.input.charCodeAt(this.pos),N;return++this.pos,P===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,N=E?`
|
|
1057
|
+
`:`\r
|
|
1058
|
+
`):N=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),N}jsx_readString(E){let P="",N=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let L=this.input.charCodeAt(this.pos);if(L===E)break;L===38?(P+=this.input.slice(N,this.pos),P+=this.jsx_readEntity(),N=this.pos):j(L)?(P+=this.input.slice(N,this.pos),P+=this.jsx_readNewLine(!1),N=this.pos):++this.pos}return P+=this.input.slice(N,this.pos++),this.finishToken(b.string,P)}jsx_readEntity(){let E="",P=0,N,L=this.input[this.pos];L!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let Z=++this.pos;for(;this.pos<this.input.length&&P++<10;){if(L=this.input[this.pos++],L===";"){E[0]==="#"?E[1]==="x"?(E=E.substr(2),n.test(E)&&(N=String.fromCharCode(parseInt(E,16)))):(E=E.substr(1),i.test(E)&&(N=String.fromCharCode(parseInt(E,10)))):N=r[E];break}E+=L}return N||(this.pos=Z,"&")}jsx_readWord(){let E,P=this.pos;do E=this.input.charCodeAt(++this.pos);while(F(E)||E===45);return this.finishToken(w.jsxName,this.input.slice(P,this.pos))}jsx_parseIdentifier(){let E=this.startNode();return this.type===w.jsxName?E.name=this.value:this.type.keyword?E.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(E,"JSXIdentifier")}jsx_parseNamespacedName(){let E=this.start,P=this.startLoc,N=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(b.colon))return N;var L=this.startNodeAt(E,P);return L.namespace=N,L.name=this.jsx_parseIdentifier(),this.finishNode(L,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===w.jsxTagEnd)return"";let E=this.start,P=this.startLoc,N=this.jsx_parseNamespacedName();for(this.type===b.dot&&N.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(b.dot);){let L=this.startNodeAt(E,P);L.object=N,L.property=this.jsx_parseIdentifier(),N=this.finishNode(L,"JSXMemberExpression")}return N}jsx_parseAttributeValue(){switch(this.type){case b.braceL:let E=this.jsx_parseExpressionContainer();return E.expression.type==="JSXEmptyExpression"&&this.raise(E.start,"JSX attributes must only be assigned a non-empty expression"),E;case w.jsxTagStart:case b.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let E=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(E,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let E=this.startNode();return this.next(),E.expression=this.type===b.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(b.braceR),this.finishNode(E,"JSXExpressionContainer")}jsx_parseAttribute(){let E=this.startNode();return this.eat(b.braceL)?(this.expect(b.ellipsis),E.argument=this.parseMaybeAssign(),this.expect(b.braceR),this.finishNode(E,"JSXSpreadAttribute")):(E.name=this.jsx_parseNamespacedName(),E.value=this.eat(b.eq)?this.jsx_parseAttributeValue():null,this.finishNode(E,"JSXAttribute"))}jsx_parseOpeningElementAt(E,P){let N=this.startNodeAt(E,P);N.attributes=[];let L=this.jsx_parseElementName();for(L&&(N.name=L);this.type!==b.slash&&this.type!==w.jsxTagEnd;)N.attributes.push(this.jsx_parseAttribute());return N.selfClosing=this.eat(b.slash),this.expect(w.jsxTagEnd),this.finishNode(N,L?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(E,P){let N=this.startNodeAt(E,P),L=this.jsx_parseElementName();return L&&(N.name=L),this.expect(w.jsxTagEnd),this.finishNode(N,L?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(E,P){let N=this.startNodeAt(E,P),L=[],Z=this.jsx_parseOpeningElementAt(E,P),H=null;if(!Z.selfClosing){e:for(;;)switch(this.type){case w.jsxTagStart:if(E=this.start,P=this.startLoc,this.next(),this.eat(b.slash)){H=this.jsx_parseClosingElementAt(E,P);break e}L.push(this.jsx_parseElementAt(E,P));break;case w.jsxText:L.push(this.parseExprAtom());break;case b.braceL:L.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}u(H.name)!==u(Z.name)&&this.raise(H.start,"Expected corresponding JSX closing tag for <"+u(Z.name)+">")}let te=Z.name?"Element":"Fragment";return N["opening"+te]=Z,N["closing"+te]=H,N.children=L,this.type===b.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(N,"JSX"+te)}jsx_parseText(){let E=this.parseLiteral(this.value);return E.type="JSXText",E}jsx_parseElement(){let E=this.start,P=this.startLoc;return this.next(),this.jsx_parseElementAt(E,P)}parseExprAtom(E){return this.type===w.jsxText?this.jsx_parseText():this.type===w.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(E)}readToken(E){let P=this.curContext();if(P===R)return this.jsx_readToken();if(P===x||P===_){if(B(E))return this.jsx_readWord();if(E==62)return++this.pos,this.finishToken(w.jsxTagEnd);if((E===34||E===39)&&P==x)return this.jsx_readString(E)}return E===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(w.jsxTagStart)):super.readToken(E)}updateContext(E){if(this.type==b.braceL){var P=this.curContext();P==x?this.context.push(A.b_expr):P==R?this.context.push(A.b_tmpl):super.updateContext(E),this.exprAllowed=!0}else if(this.type===b.slash&&E===w.jsxTagStart)this.context.length-=2,this.context.push(_),this.exprAllowed=!1;else return super.updateContext(E)}}}}}),aee=ir({"../../../node_modules/html-tags/html-tags.json"(e,t){t.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]}}),see=ir({"../../../node_modules/html-tags/index.js"(e,t){t.exports=aee()}}),lee={};H0(lee,{argTypesEnhancers:()=>LN,parameters:()=>BN});var Iy="custom",Fu="object",Z0="array",uee="class",Ps="func",$s="element",cee=qs(nee(),1);function dee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(u,p){var c=p.match(/\n([\t ]+|(?!\s).)/g);return c?u.concat(c.map(function(m){var y,g;return(g=(y=m.match(/[\t ]/g))===null||y===void 0?void 0:y.length)!==null&&g!==void 0?g:0})):u},[]);if(i.length){var a=new RegExp(`
|
|
1059
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(u){return u.replace(a,`
|
|
1060
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var l=n[0];return t.forEach(function(u,p){var c=l.match(/(?:^|\n)( *)$/),m=c?c[1]:"",y=u;typeof u=="string"&&u.includes(`
|
|
1061
|
+
`)&&(y=String(u).split(`
|
|
1062
|
+
`).map(function(g,b){return b===0?g:""+m+g}).join(`
|
|
1063
|
+
`)),l+=y+n[p+1]}),l}var AN={format:{indent:{style:" "},semicolons:!1}},pee={...AN,format:{newline:""}},fee={...AN};function jo(e,t=!1){return(0,cee.generate)(e,t?pee:fee)}function Fy(e,t=!1){return t?hee(e):jo(e)}function hee(e){let t=jo(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function IA(e,t=!1){return t?yee(e):mee(e)}function mee(e){let t=jo(e);return t.endsWith(" }]")&&(t=dee(t)),t}function yee(e){let t=jo(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var gee=qs(Ny(),1),bee=qs(oee(),1);function _N(e,t,r,n,i){r||(r=ze),(function a(l,u,p){var c=p||l.type,m=t[c];r[c](l,u,a),m&&m(l,u)})(e,n,i)}function vee(e,t,r,n,i){var a=[];r||(r=ze),(function l(u,p,c){var m=c||u.type,y=t[m],g=u!==a[a.length-1];g&&a.push(u),r[m](u,p,l),y&&y(u,p||a,a),g&&a.pop()})(e,n,i)}function eb(e,t,r){r(e,t)}function Na(e,t,r){}var ze={};ze.Program=ze.BlockStatement=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var a=i[n];r(a,t,"Statement")}};ze.Statement=eb;ze.EmptyStatement=Na;ze.ExpressionStatement=ze.ParenthesizedExpression=ze.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};ze.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};ze.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};ze.BreakStatement=ze.ContinueStatement=Na;ze.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};ze.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var a=i[n];a.test&&r(a.test,t,"Expression");for(var l=0,u=a.consequent;l<u.length;l+=1){var p=u[l];r(p,t,"Statement")}}};ze.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1){var a=i[n];r(a,t,"Statement")}};ze.ReturnStatement=ze.YieldExpression=ze.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};ze.ThrowStatement=ze.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};ze.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};ze.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};ze.WhileStatement=ze.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};ze.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};ze.ForInStatement=ze.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};ze.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};ze.DebuggerStatement=Na;ze.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};ze.VariableDeclaration=function(e,t,r){for(var n=0,i=e.declarations;n<i.length;n+=1){var a=i[n];r(a,t)}};ze.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};ze.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1){var a=i[n];r(a,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};ze.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};ze.VariablePattern=Na;ze.MemberPattern=eb;ze.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};ze.ArrayPattern=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Pattern")}};ze.ObjectPattern=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];a.type==="Property"?(a.computed&&r(a.key,t,"Expression"),r(a.value,t,"Pattern")):a.type==="RestElement"&&r(a.argument,t,"Pattern")}};ze.Expression=eb;ze.ThisExpression=ze.Super=ze.MetaProperty=Na;ze.ArrayExpression=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Expression")}};ze.ObjectExpression=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];r(a,t)}};ze.FunctionExpression=ze.ArrowFunctionExpression=ze.FunctionDeclaration;ze.SequenceExpression=function(e,t,r){for(var n=0,i=e.expressions;n<i.length;n+=1){var a=i[n];r(a,t,"Expression")}};ze.TemplateLiteral=function(e,t,r){for(var n=0,i=e.quasis;n<i.length;n+=1){var a=i[n];r(a,t)}for(var l=0,u=e.expressions;l<u.length;l+=1){var p=u[l];r(p,t,"Expression")}};ze.TemplateElement=Na;ze.UnaryExpression=ze.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};ze.BinaryExpression=ze.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};ze.AssignmentExpression=ze.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};ze.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};ze.NewExpression=ze.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1){var a=i[n];r(a,t,"Expression")}};ze.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};ze.ExportNamedDeclaration=ze.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")};ze.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")};ze.ImportDeclaration=function(e,t,r){for(var n=0,i=e.specifiers;n<i.length;n+=1){var a=i[n];r(a,t)}r(e.source,t,"Expression")};ze.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};ze.ImportSpecifier=ze.ImportDefaultSpecifier=ze.ImportNamespaceSpecifier=ze.Identifier=ze.Literal=Na;ze.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};ze.ClassDeclaration=ze.ClassExpression=function(e,t,r){return r(e,t,"Class")};ze.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};ze.ClassBody=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var a=i[n];r(a,t)}};ze.MethodDefinition=ze.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")};var tb={...ze,JSXElement:()=>{}},Eee=gee.Parser.extend((0,bee.default)());function ku(e){return e!=null?e.name:null}function FA(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function CN(e){let t=[];return vee(e,{ObjectExpression(r,n){t.push(FA(n).length)},ArrayExpression(r,n){t.push(FA(n).length)}},tb),Math.max(...t)}function wee(e){return{inferredType:{type:"Identifier",identifier:ku(e)},ast:e}}function See(e){return{inferredType:{type:"Literal"},ast:e}}function Aee(e){let t;_N(e.body,{JSXElement(i){t=i}},tb);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},n=ku(e.id);return n!=null&&(r.identifier=n),{inferredType:r,ast:e}}function _ee(e){let t;return _N(e.body,{JSXElement(r){t=r}},tb),{inferredType:{type:t!=null?"Element":"Class",identifier:ku(e.id)},ast:e}}function Cee(e){let t={type:"Element"},r=ku(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function Tee(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return ku(t)==="shape"?TN(e.arguments[0]):null}function TN(e){return{inferredType:{type:"Object",depth:CN(e)},ast:e}}function xee(e){return{inferredType:{type:"Array",depth:CN(e)},ast:e}}function Ree(e){switch(e.type){case"Identifier":return wee(e);case"Literal":return See(e);case"FunctionExpression":case"ArrowFunctionExpression":return Aee(e);case"ClassExpression":return _ee(e);case"JSXElement":return Cee(e);case"CallExpression":return Tee(e);case"ObjectExpression":return TN(e);case"ArrayExpression":return xee(e);default:return null}}function Dee(e){let t=Eee.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let n=t.body[0];if(n.type==="ExpressionStatement"){let i=Ree(n.expression);i!=null&&(r=i)}}return r}function Uo(e){try{return{...Dee(e)}}catch{}return{inferredType:{type:"Unknown"}}}var Pee=qs(see(),1);function rb(e){return Pee.default.includes(e.toLowerCase())}function xN({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let n=IA(t,!0);if(!js(n))return gt(n)}return gt(Z0,IA(t))}function RN({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let n=Fy(t,!0);if(!js(n))return gt(n)}return gt(Fu,Fy(t))}function nb(e,t){return t?`${e}( ... )`:`${e}()`}function Pp(e){return`<${e} />`}function DN(e){let{type:t,identifier:r}=e;switch(t){case"Function":return nb(r,e.hasParams);case"Element":return Pp(r);default:return r}}function Oee({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return gt(DN(e),jo(t));let n=jo(t,!0);return js(n)?gt(Ps,jo(t)):gt(n)}function Nee(e,t){let{inferredType:r}=t,{identifier:n}=r;if(n!=null&&!rb(n)){let i=DN(r);return gt(i,e)}return js(e)?gt($s,e):gt(e)}function PN(e){try{let t=Uo(e);switch(t.inferredType.type){case"Object":return RN(t);case"Function":return Oee(t);case"Element":return Nee(e,t);case"Array":return xN(t);default:return null}}catch(t){console.error(t)}return null}function Iee(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function kA(e){return typeof e=="function"}function Fee(e){return typeof e=="string"}var BA=iN;function ON(e){return e.$$typeof!=null}function NN(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var kee=e=>gt(JSON.stringify(e));function Bee(e){let{type:t}=e,{displayName:r}=t,n=BA(e,{});if(r!=null){let i=Pp(r);return gt(i,n)}if(Fee(t)&&rb(t)){let i=BA(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!js(i))return gt(i)}return gt($s,n)}var Lee=e=>{if(ON(e)&&e.type!=null)return Bee(e);if(Iee(e)){let t=Uo(JSON.stringify(e));return RN(t)}if(Array.isArray(e)){let t=Uo(JSON.stringify(e));return xN(t)}return gt(Fu)},Mee=(e,t)=>{let r=!1,n;if(kA(e.render))r=!0;else if(e.prototype!=null&&kA(e.prototype.render))r=!0;else{let a;try{n=Uo(e.toString());let{hasParams:l,params:u}=n.inferredType;l?u.length===1&&u[0].type==="ObjectPattern"&&(a=e({})):a=e(),a!=null&&ON(a)&&(r=!0)}catch{}}let i=NN(e,t.name);if(i!=null){if(r)return gt(Pp(i));n!=null&&(n=Uo(e.toString()));let{hasParams:a}=n.inferredType;return gt(nb(i,a))}return gt(r?$s:Ps)},qee=e=>gt(e.toString()),IN={string:kee,object:Lee,function:Mee,default:qee};function jee(e={}){return{...IN,...e}}function $ee(e,t,r=IN){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(n){console.error(n)}return null}function Vee(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];if(r){let a=e.map(l=>{let u=l.getPrettyName(),p=l.getTypeName();return p!=null?`${u}: ${p}`:u});i.push(`(${a.join(", ")})`)}else i.push("()");return n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function Uee(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];return r?i.push("( ... )"):i.push("()"),n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function Jee(e){return e.replace(/,/g,`,\r
|
|
1064
|
+
`)}var zee=150;function nn({name:e,short:t,compact:r,full:n,inferredType:i}){return{name:e,short:t,compact:r,full:n??t,inferredType:i}}function FN(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function LA(e){return e.split(/\r?\n/)}function zd(e,t=!1){return FN(Fy(e,t))}function MA(e,t=!1){return FN(jo(e,t))}function Hee(e){switch(e){case"Object":return Fu;case"Array":return Z0;case"Class":return uee;case"Function":return Ps;case"Element":return $s;default:return Iy}}function kN(e,t){let{inferredType:r,ast:n}=Uo(e),{type:i}=r,a,l,u;switch(i){case"Identifier":case"Literal":a=e,l=e;break;case"Object":{let{depth:p}=r;a=Fu,l=p===1?zd(n,!0):null,u=zd(n);break}case"Element":{let{identifier:p}=r;a=p!=null&&!rb(p)?p:$s,l=LA(e).length===1?e:null,u=e;break}case"Array":{let{depth:p}=r;a=Z0,l=p<=2?MA(n,!0):null,u=MA(n);break}default:a=Hee(i),l=LA(e).length===1?e:null,u=e;break}return nn({name:t,short:a,compact:l,full:u,inferredType:i})}function Wee({raw:e}){return e!=null?kN(e,"custom"):nn({name:"custom",short:Iy,compact:Iy})}function Gee(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?nn({name:"func",short:Uee(t.params,t.returns),compact:null,full:Vee(t.params,t.returns)}):nn({name:"func",short:Ps,compact:Ps})}function Kee(e,t){let r=Object.keys(e.value).map(l=>`${l}: ${Os(e.value[l],t).full}`).join(", "),{inferredType:n,ast:i}=Uo(`{ ${r} }`),{depth:a}=n;return nn({name:"shape",short:Fu,compact:a===1&&i?zd(i,!0):null,full:i?zd(i):null})}function lm(e){return`objectOf(${e})`}function Yee(e,t){let{short:r,compact:n,full:i}=Os(e.value,t);return nn({name:"objectOf",short:lm(r),compact:n!=null?lm(n):null,full:i&&lm(i)})}function Xee(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((n,i)=>{let{short:a,compact:l,full:u}=Os(i,t);return n.short.push(a),n.compact.push(l),n.full.push(u),n},{short:[],compact:[],full:[]});return nn({name:"union",short:r.short.join(" | "),compact:r.compact.every(n=>n!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return nn({name:"union",short:e.value,compact:null})}function Qee({value:e,computed:t}){return t?kN(e,"enumvalue"):nn({name:"enumvalue",short:e,compact:e})}function Zee(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,n)=>{let{short:i,compact:a,full:l}=Qee(n);return r.short.push(i),r.compact.push(a),r.full.push(l),r},{short:[],compact:[],full:[]});return nn({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return nn({name:"enum",short:e.value,compact:e.value})}function ky(e){return`${e}[]`}function qA(e){return`[${e}]`}function jA(e,t,r){return nn({name:"arrayOf",short:ky(e),compact:t!=null?qA(t):null,full:r&&qA(r)})}function ete(e,t){let{name:r,short:n,compact:i,full:a,inferredType:l}=Os(e.value,t);if(r==="custom"){if(l==="Object")return jA(n,i,a)}else if(r==="shape")return jA(n,i,a);return nn({name:"arrayOf",short:ky(n),compact:ky(n)})}function Os(e,t){try{switch(e.name){case"custom":return Wee(e);case"func":return Gee(t);case"shape":return Kee(e,t);case"instanceOf":return nn({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return Yee(e,t);case"union":return Xee(e,t);case"enum":return Zee(e);case"arrayOf":return ete(e,t);default:return nn({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return nn({name:"unknown",short:"unknown",compact:"unknown"})}function tte(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:n,full:i}=Os(t,e);return n!=null&&!Q0(n)?gt(n):i?gt(r,i):gt(r)}case"func":{let{short:r,full:n}=Os(t,e),i=r,a;return n&&n.length<zee?i=n:n&&(a=Jee(n)),gt(i,a)}default:return null}}catch(r){console.error(r)}return null}var rte=(e,{name:t,type:r})=>{let n=r?.summary==="element"||r?.summary==="elementType",i=NN(e,t);if(i!=null){if(n)return gt(Pp(i));let{hasParams:a}=Uo(e.toString()).inferredType;return gt(nb(i,a))}return gt(n?$s:Ps)},nte=jee({function:rte});function ite(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(n=>e.find(i=>i.name===n)).filter(Boolean):e}function ote(e,t){let{propDef:r}=e,n=tte(e);n!=null&&(r.type=n);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let a=PN(i.value);a!=null&&(r.defaultValue=a)}else if(t!=null){let a=$ee(t,r,nte);a!=null&&(r.defaultValue=a)}return r}function ate(e,t){let r=t.defaultProps!=null?t.defaultProps:{},n=e.map(i=>ote(i,r[i.propDef.name]));return ite(n,t)}function ste(e,t){let{propDef:r}=e,{defaultValue:n}=e.docgenInfo;if(n!=null&&n.value!=null){let i=PN(n.value);i!=null&&(r.defaultValue=i)}return r}function lte(e){return e.map(t=>ste(t))}function ute(e,t){let r=e;!Y0(e)&&!e.propTypes&&QO(e)&&(r=e.type);let n=$Z(r,t);if(n.length===0)return[];switch(n[0].typeSystem){case Dy.JAVASCRIPT:return ate(n,e);case Dy.TYPESCRIPT:return lte(n);default:return n.map(i=>i.propDef)}}var cte=e=>({rows:ute(e,"props")}),dte=e=>{if(e){let{rows:t}=cte(e);if(t)return t.reduce((r,n)=>{let{name:i,description:a,type:l,sbType:u,defaultValue:p,jsDocTags:c,required:m}=n;return r[i]={name:i,description:a,type:{required:m,...u},table:{type:l??void 0,jsDocTags:c,defaultValue:p??void 0}},r},{})}return null},BN={docs:{extractArgTypes:dte,extractComponentDescription:VZ}},LN=[UZ];const pte=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:LN,parameters:BN},Symbol.toStringTag,{value:"Module"}));var fte={};H0(fte,{applyDecorators:()=>jN,decorators:()=>$N,parameters:()=>VN});const{logger:od}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:hte,useEffect:mte,useRef:yte}=__STORYBOOK_MODULE_PREVIEW_API__;var um=iN,gte=e=>e.charAt(0).toUpperCase()+e.slice(1),bte=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(gte).join("")).join(".");function By(e){if(Oe.isValidElement(e)){let t=Object.keys(e.props).reduce((r,n)=>(r[n]=By(e.props[n]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(By):e}var vte=(e,t)=>{if(typeof e>"u")return od.warn("Too many skip or undefined component"),null;let r=e,n=r.type;for(let l=0;l<t?.skip;l+=1){if(typeof r>"u")return od.warn("Cannot skip undefined element"),null;if(ue.Children.count(r)>1)return od.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(od.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=ue.createElement(n,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let i;typeof t?.displayName=="string"?i={showFunctions:!0,displayName:()=>t.displayName}:i={displayName:l=>l.type.displayName?l.type.displayName:Py(l.type,"displayName")?Py(l.type,"displayName"):l.type.render?.displayName?l.type.render.displayName:typeof l.type=="symbol"||l.type.$$typeof&&typeof l.type.$$typeof=="symbol"?bte(l.type):l.type.name&&l.type.name!=="_default"?l.type.name:typeof l.type=="function"?"No Display Name":TX(l.type)?l.type.render.name:QO(l.type)?l.type.type.name:l.type};let a={...i,filterProps:(l,u)=>l!==void 0,...t};return ue.Children.map(e,l=>{let u=typeof l=="number"?l.toString():l,p=(typeof um=="function"?um:um.default)(By(u),a);if(p.indexOf(""")>-1){let c=p.match(/\S+=\\"([^"]*)\\"/g);c&&c.forEach(m=>{p=p.replace(m,m.replace(/"/g,"'"))})}return p}).join(`
|
|
1065
|
+
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},Ete={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},wte=e=>{let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Oy.DYNAMIC?!1:!r||t?.code||t?.type===Oy.CODE},Ste=e=>e.type?.displayName==="MDXCreateElement"&&!!e.props?.mdxType,MN=e=>{if(!Ste(e))return e;let{mdxType:t,originalType:r,children:n,...i}=e.props,a=[];return n&&(a=(Array.isArray(n)?n:[n]).map(MN)),Oe.createElement(r,i,...a)},qN=(e,t)=>{let r=yte(void 0),n=e(),i=wte(t),a={...Ete,...t?.parameters.jsx||{}},l=t.originalStoryFn(t.args,t);return mte(()=>{if(i)return;let u=MN(l),p=vte(u,a);p&&r.current!==p&&(hte(p,t),r.current=p)}),n},jN=(e,t)=>{let r=t.findIndex(i=>i.originalFn===qN),n=r===-1?t:[...t.splice(r,1),...t];return J0(e,n)},$N="FEATURES"in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[qN],VN={docs:{story:{inline:!0}}};const Ate=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:jN,decorators:$N,parameters:VN},Symbol.toStringTag,{value:"Module"}));var _te=Object.create,ib=Object.defineProperty,Cte=Object.getOwnPropertyDescriptor,UN=Object.getOwnPropertyNames,Tte=Object.getPrototypeOf,xte=Object.prototype.hasOwnProperty,iie=(e,t)=>function(){return t||(0,e[UN(e)[0]])((t={exports:{}}).exports,t),t.exports},Rte=(e,t)=>{for(var r in t)ib(e,r,{get:t[r],enumerable:!0})},Dte=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UN(t))!xte.call(e,i)&&i!==r&&ib(e,i,{get:()=>t[i],enumerable:!(n=Cte(t,i))||n.enumerable});return e},oie=(e,t,r)=>(r=e!=null?_te(Tte(e)):{},Dte(ib(r,"default",{value:e,enumerable:!0}),e)),Pte={};Rte(Pte,{parameters:()=>JN});var Ote=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),JN={docs:{renderer:async()=>{let{DocsRenderer:e}=await vt(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-BOcEjZ28.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([43,1,42]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>Ote[t]).length===0&&!e.parameters.docs?.disable}}};const Nte=Object.freeze(Object.defineProperty({__proto__:null,parameters:JN},Symbol.toStringTag,{value:"Module"})),zN=e=>typeof e=="string"?{value:e,label:e}:e,Ite=e=>{const[t,r]=Oe.useState(!1);return Oe.useEffect(()=>{const n=({key:a})=>{a===e&&r(!0)},i=({key:a})=>{a===e&&r(!1)};return window.addEventListener("keydown",n),window.addEventListener("keyup",i),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",i)}},[e]),t},Fte='<svg xmlns="http://www.w3.org/2000/svg" width="69" height="69" viewBox="0 0 38 38"><defs><linearGradient id="iidd" x1="8.042%" x2="65.682%" y1="0%" y2="23.865%"><stop offset="0%" stop-color="#fff" stop-opacity="0"/><stop offset="63.146%" stop-color="#fff" stop-opacity=".631"/><stop offset="100%" stop-color="#fff"/></linearGradient></defs><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><path stroke="url(#iidd)" stroke-width="2" d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="0.9s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path><circle cx="36" cy="18" r="1" fill="#fff"><animateTransform attributeName="transform" dur="0.9s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></circle></g></svg>',kte=400,Bte="2rem",Lte="currentColor",HN=({size:e=Bte,color:t=Lte,speed:r=kte})=>{const n=Oe.useId();return Oe.useMemo(()=>{const i=Fte.replace(/iidd/gu,n).replace(/69/gu,String(e)).replace(/#fff/gu,t).replace(/0\.9s/gu,`${r}ms`);return`data:image/svg+xml,${encodeURIComponent(i).replace(/'/gu,"%27").replace(/"/gu,"%22")}`},[e,t,r,n])};var Xt="colors",cn="sizes",Ze="space",Mte={gap:Ze,gridGap:Ze,columnGap:Ze,gridColumnGap:Ze,rowGap:Ze,gridRowGap:Ze,inset:Ze,insetBlock:Ze,insetBlockEnd:Ze,insetBlockStart:Ze,insetInline:Ze,insetInlineEnd:Ze,insetInlineStart:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,marginBlock:Ze,marginBlockEnd:Ze,marginBlockStart:Ze,marginInline:Ze,marginInlineEnd:Ze,marginInlineStart:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,paddingBlock:Ze,paddingBlockEnd:Ze,paddingBlockStart:Ze,paddingInline:Ze,paddingInlineEnd:Ze,paddingInlineStart:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,scrollMargin:Ze,scrollMarginTop:Ze,scrollMarginRight:Ze,scrollMarginBottom:Ze,scrollMarginLeft:Ze,scrollMarginX:Ze,scrollMarginY:Ze,scrollMarginBlock:Ze,scrollMarginBlockEnd:Ze,scrollMarginBlockStart:Ze,scrollMarginInline:Ze,scrollMarginInlineEnd:Ze,scrollMarginInlineStart:Ze,scrollPadding:Ze,scrollPaddingTop:Ze,scrollPaddingRight:Ze,scrollPaddingBottom:Ze,scrollPaddingLeft:Ze,scrollPaddingX:Ze,scrollPaddingY:Ze,scrollPaddingBlock:Ze,scrollPaddingBlockEnd:Ze,scrollPaddingBlockStart:Ze,scrollPaddingInline:Ze,scrollPaddingInlineEnd:Ze,scrollPaddingInlineStart:Ze,fontSize:"fontSizes",background:Xt,backgroundColor:Xt,backgroundImage:Xt,borderImage:Xt,border:Xt,borderBlock:Xt,borderBlockEnd:Xt,borderBlockStart:Xt,borderBottom:Xt,borderBottomColor:Xt,borderColor:Xt,borderInline:Xt,borderInlineEnd:Xt,borderInlineStart:Xt,borderLeft:Xt,borderLeftColor:Xt,borderRight:Xt,borderRightColor:Xt,borderTop:Xt,borderTopColor:Xt,caretColor:Xt,color:Xt,columnRuleColor:Xt,fill:Xt,outline:Xt,outlineColor:Xt,stroke:Xt,textDecorationColor:Xt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:cn,minBlockSize:cn,maxBlockSize:cn,inlineSize:cn,minInlineSize:cn,maxInlineSize:cn,width:cn,minWidth:cn,maxWidth:cn,height:cn,minHeight:cn,maxHeight:cn,flexBasis:cn,gridTemplateColumns:cn,gridTemplateRows:cn,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},qte=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Vs=()=>{const e=Object.create(null);return(t,r,...n)=>{const i=(a=>JSON.stringify(a,qte))(t);return i in e?e[i]:e[i]=r(t,...n)}},va=Symbol.for("sxs.internal"),ob=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),$A=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:jte}=Object.prototype,Ly=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),$te=/\s+(?![^()]*\))/,os=e=>t=>e(...typeof t=="string"?String(t).split($te):[t]),VA={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:os(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:os(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:os(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:os(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:os(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:os(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},cm=/([\d.]+)([^]*)/,Vte=(e,t)=>e.length?e.reduce(((r,n)=>(r.push(...t.map((i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(i)?`:is(${n})`:n):n+" "+i))),r)),[]):t,Ute=(e,t)=>e in Jte&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((r,n,i,a)=>n+(i==="stretch"?`-moz-available${a};${Ly(e)}:${n}-webkit-fill-available`:`-moz-fit-content${a};${Ly(e)}:${n}fit-content`)+a)):String(t),Jte={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Ki=e=>e?e+"-":"",WN=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((n,i,a,l,u)=>l=="$"==!!a?n:(i||l=="--"?"calc(":"")+"var(--"+(l==="$"?Ki(t)+(u.includes("$")?"":Ki(r))+u.replace(/\$/g,"-"):u)+")"+(i||l=="--"?"*"+(i||"")+(a||"1")+")":""))),zte=/\s*,\s*(?![^()]*\))/,Hte=Object.prototype.toString,cs=(e,t,r,n,i)=>{let a,l,u;const p=(c,m,y)=>{let g,b;const w=A=>{for(g in A){const R=g.charCodeAt(0)===64,j=R&&Array.isArray(A[g])?A[g]:[A[g]];for(b of j){const B=/[A-Z]/.test(_=g)?_:_.replace(/-[^]/g,(E=>E[1].toUpperCase())),F=typeof b=="object"&&b&&b.toString===Hte&&(!n.utils[B]||!m.length);if(B in n.utils&&!F){const E=n.utils[B];if(E!==l){l=E,w(E(b)),l=null;continue}}else if(B in VA){const E=VA[B];if(E!==u){u=E,w(E(b)),u=null;continue}}if(R&&(x=g.slice(1)in n.media?"@media "+n.media[g.slice(1)]:g,g=x.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((E,P,N,L,Z,H)=>{const te=cm.test(P),W=.0625*(te?-1:1),[$,K]=te?[L,P]:[P,L];return"("+(N[0]==="="?"":N[0]===">"===te?"max-":"min-")+$+":"+(N[0]!=="="&&N.length===1?K.replace(cm,((ne,ae,oe)=>Number(ae)+W*(N===">"?1:-1)+oe)):K)+(Z?") and ("+(Z[0]===">"?"min-":"max-")+$+":"+(Z.length===1?H.replace(cm,((ne,ae,oe)=>Number(ae)+W*(Z===">"?-1:1)+oe)):H):"")+")"}))),F){const E=R?y.concat(g):[...y],P=R?[...m]:Vte(m,g.split(zte));a!==void 0&&i(UA(...a)),a=void 0,p(b,P,E)}else a===void 0&&(a=[[],m,y]),g=R||g.charCodeAt(0)!==36?g:`--${Ki(n.prefix)}${g.slice(1).replace(/\$/g,"-")}`,b=F?b:typeof b=="number"?b&&B in Wte?String(b)+"px":String(b):WN(Ute(B,b??""),n.prefix,n.themeMap[B]),a[0].push(`${R?`${g} `:`${Ly(g)}:`}${b}`)}}var x,_};w(c),a!==void 0&&i(UA(...a)),a=void 0};p(e,t,r)},UA=(e,t,r)=>`${r.map((n=>`${n}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,Wte={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},JA=e=>String.fromCharCode(e+(e>25?39:97)),Ea=e=>(t=>{let r,n="";for(r=Math.abs(t);r>52;r=r/52|0)n=JA(r%52)+n;return JA(r%52)+n})(((t,r)=>{let n=r.length;for(;n;)t=33*t^r.charCodeAt(--n);return t})(5381,JSON.stringify(e))>>>0),kl=["themed","global","styled","onevar","resonevar","allvar","inline"],Gte=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Kte=e=>{let t;const r=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,((a,l)=>{const{cssText:u}=a;let p="";if(u.startsWith("--sxs"))return"";if(i[l-1]&&(p=i[l-1].cssText).startsWith("--sxs")){if(!a.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===a)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${u}`;return a.cssRules.length?`${p}${u}`:""}return u})).join("")},n=()=>{if(t){const{rules:u,sheet:p}=t;if(!p.deleteRule){for(;Object(Object(p.cssRules)[0]).type===3;)p.cssRules.splice(0,1);p.cssRules=[]}for(const c in u)delete u[c]}const i=Object(e).styleSheets||[];for(const u of i)if(Gte(u)){for(let p=0,c=u.cssRules;c[p];++p){const m=Object(c[p]);if(m.type!==1)continue;const y=Object(c[p+1]);if(y.type!==4)continue;++p;const{cssText:g}=m;if(!g.startsWith("--sxs"))continue;const b=g.slice(14,-3).trim().split(/\s+/),w=kl[b[0]];w&&(t||(t={sheet:u,reset:n,rules:{},toString:r}),t.rules[w]={group:y,index:p,cache:new Set(b)})}if(t)break}if(!t){const u=(p,c)=>({type:c,cssRules:[],insertRule(m,y){this.cssRules.splice(y,0,u(m,{import:3,undefined:1}[(m.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return p==="@media{}"?`@media{${[].map.call(this.cssRules,(m=>m.cssText)).join("")}}`:p}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:u("","text/css"),rules:{},reset:n,toString:r}}const{sheet:a,rules:l}=t;for(let u=kl.length-1;u>=0;--u){const p=kl[u];if(!l[p]){const c=kl[u+1],m=l[c]?l[c].index:a.cssRules.length;a.insertRule("@media{}",m),a.insertRule(`--sxs{--sxs:${u}}`,m),l[p]={group:a.cssRules[m+1],index:m,cache:new Set([u])}}Yte(l[p])}};return n(),t},Yte=e=>{const t=e.group;let r=t.cssRules.length;e.apply=n=>{try{t.insertRule(n,r),++r}catch{}}},Rl=Symbol(),Xte=Vs(),zA=(e,t)=>Xte(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const i of r)if(i!=null)if(i[va]){n.type==null&&(n.type=i[va].type);for(const a of i[va].composers)n.composers.add(a)}else i.constructor!==Object||i.$$typeof?n.type==null&&(n.type=i):n.composers.add(Qte(i,e));return n.type==null&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),Zte(e,n,t)})),Qte=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{const a=`${Ki(i.prefix)}c-${Ea(n)}`,l=[],u=[],p=Object.create(null),c=[];for(const g in r)p[g]=String(r[g]);if(typeof e=="object"&&e)for(const g in e){m=p,y=g,jte.call(m,y)||(p[g]="undefined");const b=e[g];for(const w in b){const A={[g]:String(w)};String(w)==="undefined"&&c.push(g);const x=b[w],_=[A,x,!$A(x)];l.push(_)}}var m,y;if(typeof t=="object"&&t)for(const g of t){let{css:b,...w}=g;b=typeof b=="object"&&b||{};for(const x in w)w[x]=String(w[x]);const A=[w,b,!$A(b)];u.push(A)}return[a,n,l,u,p,c]},Zte=(e,t,r)=>{const[n,i,a,l]=ere(t.composers),u=typeof t.type=="function"||t.type.$$typeof?(y=>{function g(){for(let b=0;b<g[Rl].length;b++){const[w,A]=g[Rl][b];y.rules[w].apply(A)}return g[Rl]=[],null}return g[Rl]=[],g.rules={},kl.forEach((b=>g.rules[b]={apply:w=>g[Rl].push([b,w])})),g})(r):null,p=(u||r).rules,c=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,m=y=>{y=typeof y=="object"&&y||tre;const{css:g,...b}=y,w={};for(const _ in a)if(delete b[_],_ in y){let R=y[_];typeof R=="object"&&R?w[_]={"@initial":a[_],...R}:(R=String(R),w[_]=R!=="undefined"||l.has(_)?R:a[_])}else w[_]=a[_];const A=new Set([...i]);for(const[_,R,j,B]of t.composers){r.rules.styled.cache.has(_)||(r.rules.styled.cache.add(_),cs(R,[`.${_}`],[],e,(P=>{p.styled.apply(P)})));const F=HA(j,w,e.media),E=HA(B,w,e.media,!0);for(const P of F)if(P!==void 0)for(const[N,L,Z]of P){const H=`${_}-${Ea(L)}-${N}`;A.add(H);const te=(Z?r.rules.resonevar:r.rules.onevar).cache,W=Z?p.resonevar:p.onevar;te.has(H)||(te.add(H),cs(L,[`.${H}`],[],e,($=>{W.apply($)})))}for(const P of E)if(P!==void 0)for(const[N,L]of P){const Z=`${_}-${Ea(L)}-${N}`;A.add(Z),r.rules.allvar.cache.has(Z)||(r.rules.allvar.cache.add(Z),cs(L,[`.${Z}`],[],e,(H=>{p.allvar.apply(H)})))}}if(typeof g=="object"&&g){const _=`${n}-i${Ea(g)}-css`;A.add(_),r.rules.inline.cache.has(_)||(r.rules.inline.cache.add(_),cs(g,[`.${_}`],[],e,(R=>{p.inline.apply(R)})))}for(const _ of String(y.className||"").trim().split(/\s+/))_&&A.add(_);const x=b.className=[...A].join(" ");return{type:t.type,className:x,selector:c,props:b,toString:()=>x,deferredInjector:u}};return ob(m,{className:n,selector:c,[va]:t,toString:()=>(r.rules.styled.cache.has(n)||m(),n)})},ere=e=>{let t="";const r=[],n={},i=[];for(const[a,,,,l,u]of e){t===""&&(t=a),r.push(a),i.push(...u);for(const p in l){const c=l[p];(n[p]===void 0||c!=="undefined"||u.includes(c))&&(n[p]=c)}}return[t,r,n,new Set(i)]},HA=(e,t,r,n)=>{const i=[];e:for(let[a,l,u]of e){if(u)continue;let p,c=0,m=!1;for(p in a){const y=a[p];let g=t[p];if(g!==y){if(typeof g!="object"||!g)continue e;{let b,w,A=0;for(const x in g){if(y===String(g[x])){if(x!=="@initial"){const _=x.slice(1);(w=w||[]).push(_ in r?r[_]:x.replace(/^@media ?/,"")),m=!0}c+=A,b=!0}++A}if(w&&w.length&&(l={["@media "+w.join(", ")]:l}),!b)continue e}}}(i[c]=i[c]||[]).push([n?"cv":`${p}-${a[p]}`,l,m])}return i},tre={},rre=Vs(),nre=(e,t)=>rre(e,(()=>(...r)=>{const n=()=>{for(let i of r){i=typeof i=="object"&&i||{};let a=Ea(i);if(!t.rules.global.cache.has(a)){if(t.rules.global.cache.add(a),"@import"in i){let l=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let u of[].concat(i["@import"]))u=u.includes('"')||u.includes("'")?u:`"${u}"`,t.sheet.insertRule(`@import ${u};`,l++);delete i["@import"]}cs(i,[],[],e,(l=>{t.rules.global.apply(l)}))}}return""};return ob(n,{toString:n})})),ire=Vs(),ore=(e,t)=>ire(e,(()=>r=>{const n=`${Ki(e.prefix)}k-${Ea(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const a=[];cs(r,[],[],e,(u=>a.push(u)));const l=`@keyframes ${n}{${a.join("")}}`;t.rules.global.apply(l)}return n};return ob(i,{get name(){return i()},toString:i})})),are=class{constructor(e,t,r,n){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=r==null?"":String(r),this.prefix=n==null?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Ki(this.prefix)+Ki(this.scale)+this.token}toString(){return this.computedValue}},sre=Vs(),lre=(e,t)=>sre(e,(()=>(r,n)=>{n=typeof r=="object"&&r||Object(n);const i=`.${r=(r=typeof r=="string"?r:"")||`${Ki(e.prefix)}t-${Ea(n)}`}`,a={},l=[];for(const p in n){a[p]={};for(const c in n[p]){const m=`--${Ki(e.prefix)}${p}-${c}`,y=WN(String(n[p][c]),e.prefix,p);a[p][c]=new are(c,y,p,e.prefix),l.push(`${m}:${y}`)}}const u=()=>{if(l.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const p=`${n===e.theme?":root,":""}.${r}{${l.join(";")}}`;t.rules.themed.apply(p)}return r};return{...a,get className(){return u()},selector:i,toString:u}})),ure=Vs(),WA,cre=Vs(),GN=e=>{const t=(r=>{let n=!1;const i=ure(r,(a=>{n=!0;const l="prefix"in(a=typeof a=="object"&&a||{})?String(a.prefix):"",u=typeof a.media=="object"&&a.media||{},p=typeof a.root=="object"?a.root||null:globalThis.document||null,c=typeof a.theme=="object"&&a.theme||{},m={prefix:l,media:u,theme:c,themeMap:typeof a.themeMap=="object"&&a.themeMap||{...Mte},utils:typeof a.utils=="object"&&a.utils||{}},y=Kte(p),g={css:zA(m,y),globalCss:nre(m,y),keyframes:ore(m,y),createTheme:lre(m,y),reset(){y.reset(),g.theme.toString()},theme:{},sheet:y,config:m,prefix:l,getCssText:y.toString,toString:y.toString};return String(g.theme=g.createTheme(c)),g}));return n||i.reset(),i})(e);return t.styled=(({config:r,sheet:n})=>cre(r,(()=>{const i=zA(r,n);return(...a)=>{const l=i(...a),u=l[va].type,p=ue.forwardRef(((c,m)=>{const y=c&&c.as||u,{props:g,deferredInjector:b}=l(c);return delete g.as,g.ref=m,b?ue.createElement(ue.Fragment,null,ue.createElement(y,g),ue.createElement(b,null)):ue.createElement(y,g)}));return p.className=l.className,p.displayName=`Styled.${u.displayName||u.name||u}`,p.selector=l.selector,p.toString=()=>l.selector,p[va]=l[va],p}})))(t),t},KN=()=>WA||(WA=GN()),YN=(...e)=>KN().keyframes(...e),Op=(...e)=>KN().styled(...e);const ab={dimensions:3,border:1,font:1.666666},Ft=e=>`${e/16}rem`,Xe=e=>Ft(e/ab.dimensions),Wo=e=>Ft(e/ab.border),Pr=e=>Ft(e/ab.font),{styled:Me,css:Np,globalCss:dre,keyframes:sb,getCssText:aie,theme:sie,createTheme:pre,config:lie}=GN({theme:{colors:{background:"white",mainColor:"#008ad2",mainColorAlt:"#006AA9",activeBg:"#e7e7e7",inactiveBg:"#d3d3de",inactiveDarkBg:"#999",toggleHandleBg:"#e0e0e0",toggleHandleBorder:"#cdcdcd",toggleBgDisabled:"#f0f0f0",toggleHandleBorderDisabled:"#c29f7d",toggleHandleBgDisabled:"#deae84",icon:"#636363",border:"#d5d5d5",buttonBorder:"#bababa",headerBorder:"#c8c8c9",headerBg:"#efeff0",headerText:"#484848",text:"#323232",text2:"#181818",text3:"#000000",sub:"#959595",popText:"#666",toolbarBorder:"#ababab",toolbarBg:"#f8f8f8",modalBg:"#f7f7f7",modalButtonBg:"#f8f8f8",modalButtonBorder:"#c2c2c2",inputDisabledBg:"#f3f3f3",inputDisabledText:"#959595",choiceBg:"#ffffff",choiceText:"#999999",choiceActiveBg:"#f3f3f3",choiceActiveText:"#313131",choiceBorder:"#cfcfcf",selectorText:"#606060",selectorActive:"#008ad2",blue1:"#038bf4",blue2:"#b7d6f5",blue3:"#dbe6ff",blue4:"#33b4ff",blue5:"#30a2e6",orange1:"#ff7200",orange1Darker:"#cc5b00",purple1:"#7357e8",green1:"#3ec234",green1Darker:"#38af2f",pink1:"#ff388f",red1:"#ea2700",yellow1:"#ffde9d",yellow2:"#e4a429",yellow3:"#fff5db",pinky1:"#f5c0b7",pinky2:"#e07b67",pinky3:"#ffe1db",grey1:"#737373",focusColor:"#dcaf00",scrollbarsThumb:"#737373",scrollbarsBg:"transparent",tableStripedBg:"#fafafa",toolButtonText:"#666e80"}},utils:{mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),size:e=>({width:e,height:e})}});pre("theme-dark",{colors:{background:"#0f0f11",mainColor:"#5bb8ff",mainColorAlt:"#3a94d4",activeBg:"#2a2a2d",inactiveBg:"#1f1f23",inactiveDarkBg:"#141414",toggleHandleBg:"#2c2c2c",toggleHandleBorder:"#3a3a3a",toggleBgDisabled:"#1c1c1c",toggleHandleBorderDisabled:"#6a513c",toggleHandleBgDisabled:"#8a6447",icon:"#c6c6c6",border:"#2e2e2e",buttonBorder:"#3a3a3a",headerBorder:"#2c2c2d",headerBg:"#1b1b1c",headerText:"#e0e0e0",text:"#dcdcdc",text2:"#e0e0e0",text3:"#fff",sub:"#8b8b8b",popText:"#b0b0b0",toolbarBorder:"#2a2a2a",toolbarBg:"#161618",modalBg:"#1a1a1c",modalButtonBg:"#1c1c1e",modalButtonBorder:"#303030",inputDisabledBg:"#202024",inputDisabledText:"#777",choiceBg:"#1a1a1a",choiceText:"#999",choiceActiveBg:"#252525",choiceActiveText:"#efefef",choiceBorder:"#3a3a3a",selectorText:"#cdcdcd",selectorActive:"#5bb8ff",blue1:"#4fb4ff",blue2:"#3a5167",blue3:"#2b3242",blue4:"#69c7ff",blue5:"#4aaae4",orange1:"#ff8a33",orange1Darker:"#cc6b1f",purple1:"#8b73ff",green1:"#46d43a",green1Darker:"#3ab12f",pink1:"#ff5ca5",red1:"#ff3d1a",yellow1:"#caa562",yellow2:"#a77d2c",yellow3:"#4a3f28",pinky1:"#7d5a54",pinky2:"#8c4a39",pinky3:"#6b504b",grey1:"#9a9a9a",focusColor:"#e2c34a",scrollbarsThumb:"#575757",scrollbarsBg:"transparent",tableStripedBg:"#18181a",toolButtonText:"#b4b9c8"}});const XN=Me("div",{"--choice-bg":"$colors$choiceBg","--choice-text":"$colors$choiceText","--choice-active-bg":"$colors$choiceActiveBg","--choice-active-text":"$colors$choiceActiveText","--choice-border":"$colors$choiceBorder",input:{width:0,height:0,overflow:"hidden",opacity:0,margin:0,position:"absolute","&:checked + span":{color:"var(--choice-active-text)",background:"var(--choice-active-bg)"}},span:{display:"flex",padding:"0 1em",flex:1,height:"100%",alignItems:"center",justifyContent:"center",fontSize:Pr(24),color:"var(--choice-text)",background:"var(--choice-bg)",whiteSpace:"nowrap"},display:"flex",border:"1px solid var(--choice-border)",position:"relative",borderRadius:"8px",overflow:"hidden",width:"max-content",marginLeft:"auto",marginRight:"auto",label:{flex:1,height:Xe(89),display:"flex","+ label":{borderLeft:"1px solid var(--choice-border)"}},variants:{wide:{true:{width:"100%"}},unaligned:{true:{marginLeft:"unset",marginRight:"unset"}}}}),QN=Me("label",{"--StyledChoiceLabelDummyVar":"0"}),Ip=e=>{const{onChange:t}=e,r=Oe.useCallback(n=>{t(n.currentTarget.value)},[t]);return ue.createElement(QN,{key:e.value.value,tabIndex:0,className:e.className},ue.createElement("input",{type:"radio",name:e.name,value:e.value.value,checked:e.active,onChange:r}),ue.createElement("span",null,e.value.label))};Ip.toString=()=>QN.toString();Ip.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"ChoiceItem",props:{name:{required:!0,tsType:{name:"string"},description:""},value:{required:!0,tsType:{name:"ObjectValue"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: Exclude<Value<T>, ObjectValue>) => void",signature:{arguments:[{type:{name:"Exclude",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"T"},{name:"ObjectValue"}]},{name:"ObjectValue"}],raw:"Exclude<Value<T>, ObjectValue>"},name:"value"}],return:{name:"void"}}},description:""},active:{required:!0,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const lb=Oe.forwardRef(({value:e,values:t,name:r,onChange:n,...i},a)=>{const l=t.map(u=>{const p=zN(u);return ue.createElement(Ip,{key:p.value,name:r,value:p,onChange:n,active:e===p.value})});return ue.createElement(XN,{...i,ref:a},l)});lb.displayName="Choice";lb.toString=()=>XN.toString();Ip.toString();lb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Choice",props:{values:{required:!0,tsType:{name:"Array",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"string"},{name:"ObjectValue"}]}],raw:"Array<Value<string>>"},description:""},value:{required:!0,tsType:{name:"string"},description:""},name:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: Exclude<Value<string>, ObjectValue>) => void",signature:{arguments:[{type:{name:"Exclude",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"string"},{name:"ObjectValue"}]},{name:"ObjectValue"}],raw:"Exclude<Value<string>, ObjectValue>"},name:"value"}],return:{name:"void"}}},description:""},variant:{required:!1,tsType:{name:"union",raw:"Variant | Variant[]",elements:[{name:"union",raw:'"wide" | "left"',elements:[{name:"literal",value:'"wide"'},{name:"literal",value:'"left"'}]},{name:"Array",elements:[{name:"union",raw:'"wide" | "left"',elements:[{name:"literal",value:'"wide"'},{name:"literal",value:'"left"'}]}],raw:"Variant[]"}]},description:""}}};const Fp=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 26 18",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M26 1.6q0-.7-.4-1.15Q25.15 0 24.55 0q-.65 0-1.1.45L9.5 14.35l-6.95-7Q2.1 6.9 1.5 6.9q-.65 0-1.05.45Q0 7.8 0 8.4q0 .7.45 1.15l8 8.05q.45.4 1.05.4.6 0 1.05-.4l15-14.95Q26 2.2 26 1.6"})));Fp.displayName="Checkmark";Fp.__docgenInfo={description:"",methods:[],displayName:"Checkmark",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const fa=Me("span"),Hd=Me("div",{borderRadius:"100px",background:"none",border:"1px solid $inactiveBg",width:"18px",height:"18px",display:"inline-flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",boxSizing:"border-box","& svg":{display:"none",width:"9px",height:"9px",color:"white"},[`+ ${fa.toString()}`]:{verticalAlign:"middle"},":checked + &":{borderWidth:0,color:"var(--color)",background:"currentColor","& svg":{display:"inline-block"}},":checked:disabled":{background:"$inactiveDarkBg"},":disabled + &":{background:"$activeBg",[`+ ${fa.toString()}`]:{color:"$inputDisabledText"}},"[readonly] + &":{[`+ ${fa.toString()}`]:{color:"$inputDisabledText"}},"[data-error=true] + &":{borderColor:"$pinky2",[`+ ${fa.toString()}`]:{color:"$red1"}}}),ZN=Me("label",{"--color":"$colors$mainColor","& input":{width:0,height:0,transform:"scale(0)",margin:0,verticalAlign:"middle","&:focus-visible":{[`+ ${Hd.toString()}`]:{boxShadow:"0 0 5px black"}},[`+ ${Hd.toString()} + ${fa.toString()}:not(:empty)`]:{marginLeft:"0.75em"}}}),ub=Oe.forwardRef(({color:e,error:t,name:r,onChange:n,children:i,css:a,className:l,...u},p)=>{const c={};e&&(c["--color"]=e);const m={className:l};a&&(m.css=a);const y=Oe.useCallback(g=>{if(u.readOnly){g.currentTarget.checked=!g.currentTarget.checked;return}n?.(g)},[u.readOnly,n]);return ue.createElement(ZN,{...m},ue.createElement("input",{type:"checkbox",name:r,onChange:y,"data-error":t,ref:p,...u}),ue.createElement(Hd,{css:c},ue.createElement(Fp,null)),ue.createElement(fa,null,i))});ub.displayName="Checkbox";ub.toString=()=>ZN.toString();Hd.toString();fa.toString();ub.__docgenInfo={description:"Checkbox component",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Checkbox",props:{color:{required:!1,tsType:{name:"string"},description:"@deprecated use --color css variable instead"},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""}}};const fre=e=>{const t=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16);return(t*299+r*587+n*114)/1e3>128?"#000000":"#FFFFFF"},Gl=Me("div",{borderRadius:"50%",width:"24px",height:"24px",display:"inline-flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",boxSizing:"border-box",backgroundColor:"var(--selected-color, #000000)",border:"1px solid transparent",variants:{variant:{pill:{borderRadius:"8px",width:"auto",padding:"0 1em",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",color:"white",fontWeight:"500"}}}}),eI=Me("label",{"--selected-color":"#000000",display:"inline-flex",alignItems:"center","& input":{width:0,height:0,transform:"scale(0)",margin:0,position:"absolute",opacity:0,"&:focus-visible":{[`+ ${Gl.toString()}`]:{outline:"2px solid $focusColor",outlineOffset:"2px"}}},"&:has(input:disabled)":{cursor:"not-allowed",[Gl.toString()]:{opacity:.5}},[`&[data-error=true] > ${Gl.toString()}`]:{borderColor:"red"}}),cb=Oe.forwardRef(({error:e,css:t,className:r,variant:n,label:i,value:a="transparent",children:l,onChange:u,...p},c)=>{const m={"--selected-color":a,...a.startsWith("#")?{color:fre(a)}:{}},y={className:r};t&&(y.css=t);const g=Oe.useCallback(b=>{p.readOnly||u?.(b)},[p.readOnly,u]);return ue.createElement(eI,{...y,"data-error":e},ue.createElement("input",{type:"color",value:a,onChange:g,ref:c,...p}),ue.createElement(Gl,{css:m,variant:n},i))});cb.displayName="ColorPicker";cb.toString=()=>eI.toString();Gl.toString();cb.__docgenInfo={description:"ColorPicker component that uses native color input but with custom styling",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"ColorPicker",props:{children:{required:!1,tsType:{name:"never"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""},label:{required:!1,tsType:{name:"string"},description:""},value:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"transparent"',computed:!1}}}};const tI=Me("label",{"& + &":{marginTop:Xe(23),display:"block"}}),rI=Me("div",{fontSize:Pr(28),marginBottom:Xe(24),color:"$sub",variants:{variant:{big:{fontSize:Pr(34)}}}}),db=Oe.forwardRef((e,t)=>{const{label:r,variant:n,children:i,...a}=e,l=r?ue.createElement(rI,{...n?{variant:n}:void 0},r):null;return ue.createElement(tI,{...a,ref:t},l,i)});db.displayName="Label";db.toString=()=>tI.toString();rI.toString();db.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Label",props:{label:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},variant:{required:!1,tsType:{name:"literal",value:'"big"'},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const nI={height:Xe(103),fontSize:Pr(25),color:"$text",border:"none",display:"block",width:"100%",background:"none",fontFamily:"inherit",padding:"1.2em 0",flex:1,"&::placeholder":{color:"$sub"},"&:read-only, &:disabled, &[data-error=true]":{color:"inherit"}},iI={borderColor:"$focusColor"},oI={borderColor:"$pinky2",color:"$red1"},aI={background:"$background",display:"inline-flex",width:"100%",borderRadius:"2px",padding:`0 ${Xe(36)}`,border:`${Wo(1)} solid $border`,alignItems:"center",variants:{disabled:{true:{background:"$inputDisabledBg",color:"$inputDisabledText"}},readOnly:{true:{color:"$inputDisabledText"}},focused:{true:iI},error:{true:{"&":oI}}}},uie=Me("select",{boxSizing:"border-box",height:Xe(103),color:"$text",display:"flex",alignItems:"center",width:"100%",background:"$background",fontFamily:"inherit",borderRadius:Ft(2),padding:`0 ${Xe(36)}`,border:`${Wo(1)} solid $border`,appearance:"auto","&:where(:disabled)":{background:"$inputDisabledBg",color:"$inputDisabledText"},"&:focus":iI,variants:{error:{true:oI}}}),GA={background:"var(--scrollbars-thumb)",backgroundClip:"padding-box",border:"2px solid var(--scrollbars-bg)",borderRadius:"$1"},KA={background:"var(--scrollbars-thumb-active)",border:"2px solid var(--scrollbars-bg)"},hre={"--scrollbars-thumb":"$scrollbarsThumb","--scrollbars-thumb-active":"$scrollbarsThumb","--scrollbars-bg":"transparent","scrollbar-color":"var(--scrollbars-thumb) var(--scrollbars-bg)","scrollbar-width":"thin !important","&::-webkit-scrollbar":{height:Ft(7),width:Ft(7),backgroundColor:"transparent",borderRadius:Ft(7)},"&::-webkit-scrollbar-thumb:vertical":{...GA,minHeight:Ft(10),marginRight:Ft(2),"&:active":{...KA,minHeight:Ft(8),marginRight:Ft(4)}},"&::-webkit-scrollbar-thumb:horizontal":{...GA,minWidth:Ft(10),marginBottom:Ft(2),"&:active":{...KA,minWidth:Ft(8),marginBottom:Ft(4)}},"&::-webkit-scrollbar-corner":{backgroundColor:"transparent"}},sI=Me("textarea",{...hre,...nI,...aI,padding:`1.2em ${Xe(36)}`,height:"unset",resize:"vertical",minHeight:Xe(103)}),pb=Oe.forwardRef(({children:e,onFocus:t,onBlur:r,...n},i)=>{const[a,l]=Oe.useState(!1),u=Oe.useCallback(c=>{l(!0),t?.(c)},[t]),p=Oe.useCallback(c=>{l(!1),r?.(c)},[r]);return ue.createElement(sI,{...n,ref:i,disabled:!!n.disabled,readOnly:!!n.readOnly,focused:a,onFocus:u,onBlur:p})});pb.displayName="TextArea";pb.toString=()=>sI.toString();pb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"TextArea",props:{children:{required:!1,tsType:{name:"never"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""}}};const Kl=Me("div",{boxSizing:"border-box",borderRadius:"100px",display:"inline-block",width:Xe(44),height:Xe(44),border:`${Wo(1)} solid $orange1Darker`,background:"$orange1",transition:"transform 200ms, background-color 200ms, border-color 200ms",transform:`translateX(${Xe(48)})`}),lI=Me("label",{display:"inline-flex",alignItems:"center",border:"1px solid #ccc",borderRadius:"100px",position:"relative",lineHeight:0,width:Xe(110),height:Xe(62),paddingLeft:Xe(8),boxSizing:"border-box","& input":{position:"absolute",width:0,height:0,overflow:"hidden",visibility:"hidden",[`&:not(:checked) + ${Kl.toString()}`]:{transform:"translateX(0)",background:"$toggleHandleBg",borderColor:"$toggleHandleBorder"},[`&[data-undetermined=true] + ${Kl.toString()}`]:{transform:`translateX(${Xe(24)})`,background:"$toggleHandleBorder",borderColor:"$toggleHandleBorder"},[`&:disabled:checked + ${Kl.toString()}`]:{borderColor:"$toggleHandleBorderDisabled",background:"$toggleHandleBgDisabled"}},variants:{disabled:{true:{background:"$toggleBgDisabled"}}}}),fb=Oe.forwardRef((e,t)=>{const{onChange:r,onContextMenu:n,undeterminedClickValue:i,disabled:a,value:l,...u}=e,p=Oe.useCallback(c=>{if(l==null){typeof i=="boolean"&&r(i);return}r(c.target.checked)},[r,l,i]);return ue.createElement(lI,{...u,disabled:!!a,onContextMenu:n},ue.createElement("input",{type:"checkbox",checked:!!l,"data-undetermined":l==null,readOnly:l==null,disabled:a,onChange:p,ref:t}),ue.createElement(Kl,null))});fb.displayName="Toggle";fb.toString=()=>lI.toString();Kl.toString();fb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Toggle",props:{onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(newValue: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"newValue"}],return:{name:"void"}}},description:""},onContextMenu:{required:!1,tsType:{name:"ReactMouseEventHandler",raw:"React.MouseEventHandler"},description:""},undeterminedClickValue:{required:!1,tsType:{name:"boolean"},description:`If the toggle is in an undetermined state (value is null),
|
|
1066
|
+
clicking it will change the value to this.`},disabled:{required:!1,tsType:{name:"boolean"},description:"If true, the toggle is disabled and cannot be interacted with."},value:{required:!0,tsType:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}]},description:""}}};const uI=e=>{if(!e.suggestions)return null;const t=e.suggestions.map(r=>typeof r=="string"?ue.createElement("option",{value:r,key:r}):ue.createElement("option",{value:r.value,key:r.value},r.label));return ue.createElement("datalist",{id:e.id},t)};uI.__docgenInfo={description:"",methods:[],displayName:"Suggestions",props:{id:{required:!0,tsType:{name:"string"},description:""},suggestions:{required:!1,tsType:{name:"union",raw:"Array<Value<T>> | undefined",elements:[{name:"Array",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"T"},{name:"ObjectValue"}]}],raw:"Array<Value<T>>"},{name:"undefined"}]},description:""}}};const cI=Me("input",nI),dI=Me("div",aI),pI=Me("div",{marginRight:Xe(36),display:"flex",color:"$text"}),fI=Me("div",{marginLeft:Xe(36),display:"flex",color:"$text"}),mre=({className:e,children:t,prefix:r,suffix:n,onFocus:i,onBlur:a,onKeyDown:l,onChange:u,suggestions:p,onSuggestionMatch:c,error:m,...y},g)=>{const[b,w]=Oe.useState(!1),A=Oe.useId(),x=Oe.useRef({}),_=Oe.useCallback(N=>{w(!0),i?.(N)},[i]),R=Oe.useCallback(N=>{w(!1),a?.(N)},[a]),j=Oe.useCallback(N=>{N.code===void 0&&(x.current.picked=!0),l?.(N)},[l]),B=Oe.useCallback(N=>{if(!p){u?.(N);return}const L=N.currentTarget.value;p.find(H=>typeof H=="string"?H===L:H.value===L)&&c?.(L,!!x.current.picked),x.current.picked=!1,u?.(N)},[p,u,c]),F=r?ue.createElement(pI,null,r):null,E=n?ue.createElement(fI,null,n):null,P={};return p&&(P.list=A),ue.createElement(dI,{className:e,focused:b,disabled:!!y.disabled,readOnly:!!y.readOnly,error:!!m},F,ue.createElement(cI,{ref:g,...y,...P,onChange:B,onKeyDown:j,onFocus:_,onBlur:R,"data-error":!!m}),ue.createElement(uI,{id:A,suggestions:p}),E)},kp=ue.forwardRef(mre);kp.displayName="Input";kp.toString=()=>dI.toString();const cie=kp;cI.toString();pI.toString();fI.toString();kp.__docgenInfo={description:"Input component.",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Input",props:{children:{required:!1,tsType:{name:"never"},description:""},prefix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},suffix:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""},suggestions:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"T"},{name:"ObjectValue"}]}],raw:"Array<Value<T>>"},description:""},onSuggestionMatch:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: Exclude<Value<T>, ObjectValue>, __chromiumPickedFromList: boolean) => void",signature:{arguments:[{type:{name:"Exclude",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"T"},{name:"ObjectValue"}]},{name:"ObjectValue"}],raw:"Exclude<Value<T>, ObjectValue>"},name:"value"},{type:{name:"boolean"},name:"__chromiumPickedFromList"}],return:{name:"void"}}},description:""}}};const hb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 9 16",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M8.05.1L0 7.95l8.05 7.85v.05q.15.15.4.15t.4-.15q.15-.2.15-.4 0-.25-.15-.4V15H8.8L1.65 7.95l7.2-7Q9 .75 9 .55q0-.25-.2-.4Q8.65 0 8.4 0q-.2 0-.35.1"})));hb.displayName="Back";hb.__docgenInfo={description:"",methods:[],displayName:"Back",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const mb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 13 17",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.5 2.55q0-.6-.5-.55H9.25q-.65 0-.6-.7v-.2Q8.7.5 8.2.5H4.75q-.4 0-.4.4v.4q.05.75-.75.7H1.1q-.6-.05-.6.55V16q0 .5.6.5h11q.4 0 .4-.45V2.55"}),ue.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M8.9 8.6h-2V5.8l-3 4 1.95.05v2.75l3.05-4"})));mb.displayName="Battery";mb.__docgenInfo={description:"",methods:[],displayName:"Battery",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const yb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 90 90",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M87.55 26.85 85.2 21.5l-5.25.6q-2.4.3-3.7.25-1.3-.05-2.35-.65-1-.6-2.5-1.95-1.55-1.3-2.25-2.3-.75-1-.95-2.5-.25-1.45-.25-4.25l-.1-6.15L56.65 0l-4.1 4.5q-1.7 1.8-2.85 2.75-1.25.95-2.35 1.3-1.15.3-2.7.3-1.5 0-2.6-.3-1.2-.35-2.35-1.25-1.2-.9-2.85-2.65L32.75.4 28 2.25q-2.05.8-3.65 1.65-1.6.75-2 1.15-.4.45-.6 2.15-.25 1.75-.1 4 .1 2.1-.05 3.45-.15 1.35-.65 2.4-.45 1-1.45 2.1-1 1.25-1.95 1.8-.9.6-2.4.8-1.45.2-4.15.25l-6.1.1L.1 33 4 36.9q1.55 1.6 2.8 3.4 1.2 1.8 1.5 2.9.5 2.7-.95 5.55Q6 51.55 3.1 53.8L0 56.35 4.9 67.7h4.85q6.5 0 9.4 3 2.95 2.95 2.5 9.1-.25 2.25.1 3.55.3 1.2 1.75 2.1 1.45.85 4.6 2l4.85 1.95 3.5-3.7q8.75-9.1 17.2.7l3 3.6 11.4-4.85-.3-4.2q-.45-6.55 2.7-9.85 3.15-3.35 9.9-3.2l5.35.2 4.1-11.4-3.7-3q-3.25-2.7-4.2-6.2-.95-3.5.35-6.85 1.3-3.25 4.85-5.35 1.2-.65 2-1.35.85-.65.9-.95-.05-.35-.75-2.1-.6-1.7-1.7-4.05m-28.25.8q2 1.5 3.5 3.55 1.45 2.05 2.75 4.9 1.95 4.4 1.9 8.95-.1 4.5-2.2 9.05-2 4.35-5 7.15-2.9 2.75-7.1 4.45-8.65 3.25-17.25-.8-2.9-1.3-4.9-2.8-2.05-1.55-3.5-3.6-1.45-2-2.75-4.9-1.9-4.2-1.9-8.75 0-4.5 1.9-8.75 1.3-2.85 2.75-4.9 1.45-2.05 3.5-3.55 2-1.55 4.9-2.85 4.65-2.3 9.25-2.3t9.25 2.3q2.9 1.3 4.9 2.85"})));yb.displayName="Config";yb.__docgenInfo={description:"",methods:[],displayName:"Config",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const gb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 16 72",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M13.65 13.65Q16 11.3 16 8q0-3.3-2.35-5.65Q11.3 0 8 0 4.7 0 2.35 2.35 0 4.7 0 8q0 3.3 2.35 5.65Q4.7 16 8 16q3.3 0 5.65-2.35M8 44q3.3 0 5.65-2.35Q16 39.3 16 36q0-3.3-2.35-5.65Q11.3 28 8 28q-3.3 0-5.65 2.35Q0 32.7 0 36q0 3.3 2.35 5.65Q4.7 44 8 44M8 72q3.3 0 5.65-2.35Q16 67.3 16 64q0-3.3-2.35-5.65Q11.3 56 8 56q-3.3 0-5.65 2.35Q0 60.7 0 64q0 3.3 2.35 5.65Q4.7 72 8 72"})));gb.displayName="Dots";gb.__docgenInfo={description:"",methods:[],displayName:"Dots",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const bb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 9 16",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M.95.15Q.8 0 .55 0t-.4.15Q0 .3 0 .55t.15.4L7.35 8l-7.2 7.05Q0 15.2 0 15.4q0 .25.2.4.15.2.4.2.2 0 .35-.15L9 8 1 .2Q1 .15.95.15"})));bb.displayName="Forward";bb.__docgenInfo={description:"",methods:[],displayName:"Forward",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const vb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 55 46",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M54 8.5q-1.1-2.35-2.15-3.35Q50.9 4.2 49.4 3 47.75 1.65 44.9.75h-.05q-2.7-.85-5.55-.7-.05 0-.1.05-2.9.35-5.3 1.7-.8.35-1.9 1.15l.05-.05q-1.15.7-2.1 1.55-.75.55-1.55 1-.45.2-.9.15-.15-.05-.25-.05-.35-.05-.75-.35-.1-.05-.15-.1-.7-.4-1.35-.95l-.05-.05q-.85-.75-1.75-1.25-2.15-1.6-4.65-2.25Q15.9-.1 13.2.05q-.05 0-.15.05Q9.9.6 7 2.4h-.05q-2.7 1.75-4.5 4.45v.05Q.7 9.6.15 12.85q-.05.05-.05.1-.4 3.3 1.1 6.75v.1q1.25 2.45 3.2 4.6 1.6 2.05 3.55 4l3.8 3.8q0 .05.05.05 1.9 1.8 3.7 3.65v.05q3.9 3.75 6.05 5.8l.05.05q2.25 2.25 3.1 2.75l-.05-.05 1 .75q.85.75 2.05.75.3 0 .55-.1 1-.4 2-1.3.75-.75 2.1-1.85h.05q1.35-1.25 3-2.75h.05q1.6-1.55 3.35-3.2 1.75-1.65 3.7-3.7v.05l4.1-4 .05-.05q2.15-2.2 4-4.55v-.05q1.9-2.55 3.1-5.1h-.05q1.3-2.7 1.3-5.65 0-3-1-5.25m-4.25-1.25q.75.8 1.5 2.5t.75 4q0 2.25-1 4.35v.05q-1.05 2.25-2.7 4.55h-.05Q46.5 24.9 44.5 27l-4.1 4q-1.95 1.9-3.65 3.6-1.75 1.6-3.35 3.2-.05 0-.05.05-1.6 1.45-2.9 2.6-1.45 1.2-2.25 1.95-.35.3-.7.55-.5-.45-1.25-.95-.7-.45-2.6-2.35-2.15-2.1-6.05-5.9-1.8-1.8-3.75-3.7v.05l-3.8-3.8h.05q-1.85-1.9-3.4-3.85-.05-.1-.1-.1-1.65-1.8-2.7-3.9-1.1-2.6-.8-5.1.4-2.65 1.85-4.8 1.5-2.2 3.65-3.65 2.3-1.4 4.8-1.85 2.2-.15 4.35.45h.05q2 .55 3.7 1.8l.1.1q.7.45 1.45 1.05.85.65 1.65 1.15 1.25.95 2.4.95 1.4.25 2.75-.5l-.05.05q1.05-.6 2.1-1.35 0-.05.05-.05.75-.7 1.7-1.25 0-.05.05-.05.85-.6 1.45-.85.05-.05.15-.1 1.95-1.1 4.3-1.4h-.1q2.25-.15 4.45.55 2.3.75 3.6 1.75 1.35 1.05 2.2 1.9"})));vb.displayName="Heart";vb.__docgenInfo={description:"",methods:[],displayName:"Heart",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const Eb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M11.95 6.6q0 2.1-1.5 3.6m0-7.2q1.5 1.55 1.5 3.6M6.9 1.5q2.05 0 3.55 1.5m-7.2 0q1.5-1.5 3.65-1.5M1.75 6.6q0-2.05 1.5-3.6m0 7.2q-1.5-1.5-1.5-3.6m5.15 5.1q-2.15 0-3.65-1.5m6.95.2q-1.4 1.3-3.3 1.3m3.3-1.3l4.1 4.1m-3.85-4.3q-.1.1-.25.2"})));Eb.displayName="Search";Eb.__docgenInfo={description:"",methods:[],displayName:"Search",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const wb=Oe.forwardRef((e,t)=>ue.createElement("svg",{ref:t,width:"16",height:"16",viewBox:"0 0 41 37",xmlns:"http://www.w3.org/2000/svg",className:e.className},ue.createElement("path",{fill:"currentColor",d:"M35.7 9.25h3.95q1.4-.4 1.35-1.6-.1-1.2-1.35-1.45H25.6V1.25Q25.6 0 24.4 0h-8.7q-1.1-.05-1.2 1.25V6.2H1.35Q-.1 6.6 0 7.75.1 9 1.35 9.25H5.4v26.5q.15 1.2 1.25 1.25H34.5q1.1-.1 1.2-1.25V9.25M22.6 6.2h-5.05V3.1h5.05v3.1M8.45 33.9V9.25H32.7V33.9H8.45"})));wb.displayName="Trash";wb.__docgenInfo={description:"",methods:[],displayName:"Trash",props:{className:{required:!1,tsType:{name:"string"},description:""}}};var hI=(e=>(e.checkmark="checkmark",e.back="back",e.forward="forward",e.search="search",e.battery="battery",e.heart="heart",e.trash="trash",e.config="config",e.dots="dots",e))(hI||{});const yre=new Map([["checkmark",Fp],["back",hb],["forward",bb],["search",Eb],["battery",mb],["heart",vb],["trash",wb],["config",yb],["dots",gb]]),Bu=Oe.forwardRef(({name:e,...t},r)=>{const n=yre.get(e);if(!n)throw new TypeError("Unknown icon: "+e);return ue.createElement(n,{ref:r,...t})});Bu.displayName="Icon";Bu.__docgenInfo={description:"",methods:[],displayName:"Icon",props:{name:{required:!0,tsType:{name:"ICON"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const die=Me("div",{background:"$background",borderRadius:"5px",display:"flex",flexDirection:"column","& + &":{marginTop:"23px"},variants:{variant:{margin:{marginLeft:"23px",marginRight:"23px"}}}}),YA=(e,t,r)=>{if(r==null)return Math.min(e,t);if(t<r)throw new TypeError("upperLimit must be greater than lowerLimit");return Math.min(t,Math.max(r,e))},gre=(e,t)=>{if(!e||typeof e!="object"&&typeof e!="function")return{};if(!Array.isArray(t)||!t.length)return{...e};const r=t.map(String),n={};for(const i in e)r.includes(i)||(n[i]=e[i]);return n},XA=(e,t,r,n,i)=>r+(i-e)/(t-e)*(n-r),mI=Me("div",{height:Xe(102),width:Xe(102),borderRadius:Xe(102),border:`${Wo(1)} solid $buttonBorder`,background:"$background",padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"}),yI=Me("div",{position:"absolute",background:"$red1",color:"$background",fontWeight:"bold",top:"-25%",right:"-25%",overflow:"hidden",display:"flex",fontSize:Pr(17),padding:Xe(17),width:Xe(60),height:Xe(60),alignItems:"center",justifyContent:"center",borderRadius:"50%"}),gI={display:"inline-flex",flexDirection:"column",alignItems:"center",gap:Xe(18)},QA=Me("a",{...gI}),bI=Me("button",{...gI,border:"none",padding:0,background:"none"}),Lu=Oe.forwardRef((e,t)=>{const{icon:r,label:n,css:i,...a}=e,l=gre(a,["to","Link","href","type"]),u=i?{css:i}:{};let p=r;typeof r=="string"&&(p=ue.createElement(Bu,{name:r}));const c=n?ue.createElement("div",null,n):null,m=ue.createElement(ue.Fragment,null,ue.createElement(mI,null,e.badge?ue.createElement(yI,null,e.badge):null,p),c);if("to"in e){if(!("Link"in e))throw new TypeError("`to` prop given without `Link` component");return ue.createElement(e.Link,{href:e.to,...l},ue.createElement(QA,{ref:t,className:e.className,...u},m))}return"href"in e?ue.createElement(QA,{ref:t,href:e.href,className:e.className,...l,...u},m):ue.createElement(bI,{ref:t,onClick:e.onClick,className:e.className,...u,type:e.type??"button"},m)});Lu.displayName="Action";Lu.toString=()=>bI.toString();mI.toString();yI.toString();Lu.__docgenInfo={description:`Action is a round-shaped button or a link, usually used at headers/toolbars.
|
|
1067
|
+
|
|
1068
|
+
Its label is displayed below the circular shape.`,methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Action",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Standard onClick handler (with no event)"},icon:{required:!1,tsType:{name:"union",raw:"ICON | Exclude<ReactNode, string>",elements:[{name:"ICON"},{name:"Exclude",elements:[{name:"ReactNode"},{name:"string"}],raw:"Exclude<ReactNode, string>"}]},description:"Icon to be displayed"},label:{required:!1,tsType:{name:"ReactNode"},description:"Label to be displayed below the icon"},className:{required:!1,tsType:{name:"string"},description:"Custom class name"},css:{required:!1,tsType:{name:"StitchesCSS",elements:[{name:"config"}],raw:"StitchesCSS<typeof config>"},description:"Custom CSS"},badge:{required:!1,tsType:{name:"ReactNode"},description:""}}};const vI=Me("div",{"--actions-count":"1",display:"inline-grid",gridTemplateColumns:"repeat(var(--actions-count), 1fr)",gap:Xe(56),variants:{vertical:{true:{gridTemplateColumns:"auto",gridTemplateRows:"repeat(var(--actions-count), 1fr)"}}}}),Us=Oe.forwardRef((e,t)=>{ue.Children.forEach(e.children,i=>{if(!i||typeof i!="object"||!("type"in i)||i.type!==Lu)throw new TypeError("Every child of EqualActions must be an Action component")});const r={"--actions-count":ue.Children.count(e.children)},n=e.mode==="vertical";return ue.createElement(vI,{className:e.className,vertical:n,css:r,ref:t},e.children)});Us.displayName="EqualActions";Us.toString=()=>vI.toString();Us.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"EqualActions",props:{className:{required:!1,tsType:{name:"string"},description:""},mode:{required:!1,tsType:{name:"union",raw:'"horizontal" | "vertical"',elements:[{name:"literal",value:'"horizontal"'},{name:"literal",value:'"vertical"'}]},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Bp=Me("div",{flex:1,display:"flex",alignItems:"center"}),Lp=Me("div",{display:"flex"}),Mp=Me("div",{display:"flex"}),ZA={padding:"7px 0",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"},e_={padding:"0 7px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"},t_={padding:"0 16.666px",minHeight:Ft(45),[`& ${Lp.toString()}`]:ZA,[`& ${Mp.toString()}`]:ZA,[`& ${Us.toString()}`]:{margin:`${Xe(56)} 0`}},r_={padding:"16.666px 0",minWidth:Ft(45),flexDirection:"column",[`& ${Bp.toString()}`]:{flexDirection:"column",alignItems:"center"},[`& ${Lp.toString()}`]:{flexDirection:"column",...e_},[`& ${Mp.toString()}`]:{flexDirection:"column",...e_},[`& ${Us.toString()}`]:{margin:`0 ${Xe(56)}`}},EI=Me("div",{"--border-color":"$colors$headerBorder","--background-color":"$colors$headerBg",backgroundClip:"padding-box",background:"var(--background-color)",display:"flex",alignItems:"stretch",fontSize:Ft(15),fontWeight:"bold",boxSizing:"border-box",color:"$headerText",gap:Xe(50),variants:{variant:{toolbar:{"--border-color":"$colors$toolbarBorder","--background-color":"$colors$toolbarBg"},colored:{"--border-color":"var(--custom-header-color)","--background-color":"var(--custom-header-color)",color:"var(--custom-text-color)"}},position:{top:{borderBottom:"0.37px solid var(--border-color)",...t_},bottom:{borderTop:"0.37px solid var(--border-color)",order:2,...t_},left:{borderRight:"0.37px solid var(--border-color)",...r_},right:{borderLeft:"0.37px solid var(--border-color)",order:2,...r_}},center:{true:{[`& ${Bp.toString()}`]:{justifyContent:"center"}}}}}),qp=Oe.forwardRef((e,t)=>{const{position:r="top",before:n,after:i,children:a,...l}=e,p=ue.Children.toArray(e.children).every(g=>g&&typeof g=="object"&&"type"in g&&g.type===Lu);let c=a;if(p){const g=r==="top"||r==="bottom"?"horizontal":"vertical";c=ue.createElement(Us,{mode:g},c)}let m;e.before!=null&&(m=ue.createElement(Lp,null,e.before));let y;return e.after!=null&&(y=ue.createElement(Mp,null,e.after)),ue.createElement(EI,{...l,position:r,"data-header-position":r,ref:t},m,ue.createElement(Bp,null,c),y)});qp.displayName="Header";qp.toString=()=>EI.toString();Lp.toString();const pie=Bp.toString();Mp.toString();qp.__docgenInfo={description:"General purpose header component.\nIt has the main section, `before` and `after` sections.\nThe main section is left-aligned by default, but it can be centered with `center` prop.\n`before` and `after` sections are usually used for actions.",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Header",props:{center:{required:!1,tsType:{name:"boolean"},description:"Should the main content (children) be centered?"},variant:{required:!1,tsType:{name:"union",raw:'"toolbar" | "colored"',elements:[{name:"literal",value:'"toolbar"'},{name:"literal",value:'"colored"'}]},description:"Styling variant."},position:{required:!1,tsType:{name:"union",raw:'"top" | "left" | "right" | "bottom"',elements:[{name:"literal",value:'"top"'},{name:"literal",value:'"left"'},{name:"literal",value:'"right"'},{name:"literal",value:'"bottom"'}]},description:`This indicates just how the borders are drawn and how content is aligned, not the actual position on the screen.
|
|
1069
|
+
To set up position on the screen, you need to properly style the parent element.`},before:{required:!1,tsType:{name:"ReactNode"},description:"Content to be displayed before the main content."},after:{required:!1,tsType:{name:"ReactNode"},description:"Content to be displayed after the main content."}}};const Sb=Np({width:Ft(30),height:Ft(30),background:"none",borderRadius:"666px",display:"inline-flex",alignItems:"center",justifyContent:"center",border:Wo(2),color:"currentColor","&:hover":{background:"#00000022"},"&:active":{background:"#00000011",color:"currentColor"}}),bre=Me("button",Sb),n_=Me("a",Sb),wI=Me(Bu,{width:"16px",height:"16px",display:"block",fill:"currentColor"}),Ab=Oe.forwardRef((e,t)=>{const{icon:r,href:n,to:i,Link:a,className:l,...u}=e;let p=r;if(typeof r=="string"&&(p=ue.createElement(wI,{name:r})),i){if(!a)throw new TypeError("`to` prop given without `Link` component");return ue.createElement(a,{href:i,...u},ue.createElement(n_,{ref:t,className:e.className},p))}return n?ue.createElement(n_,{ref:t,href:n,className:e.className,...u},p):ue.createElement(bre,{ref:t,className:e.className,onClick:e.onClick},p)});Ab.displayName="HeaderIconAction";Ab.toString=()=>Sb.selector;wI.toString();Ab.__docgenInfo={description:`Use this component if you need a clickable icon that stylistically fits the header.
|
|
1070
|
+
It can be a simple link, a button or a custom link component.`,methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"HeaderIconAction",props:{icon:{required:!1,tsType:{name:"union",raw:"ICON | Exclude<ReactNode, string>",elements:[{name:"ICON"},{name:"Exclude",elements:[{name:"ReactNode"},{name:"string"}],raw:"Exclude<ReactNode, string>"}]},description:"Icon to display. Can be a string (for build in icons) or a ReactNode (any icon component)."},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Function to call when the icon is clicked."},href:{required:!1,tsType:{name:"string"},description:"If given it will make the icon a native link."},to:{required:!1,tsType:{name:"string"},description:"If given it will make the icon a custom link. `to` will be passed to given `Link` component as `href`."},Link:{required:!1,tsType:{name:"union",raw:"React.ComponentClass<LinkProps> | React.FC<LinkProps>",elements:[{name:"ReactComponentClass",raw:"React.ComponentClass<LinkProps>",elements:[{name:"LinkProps"}]},{name:"ReactFC",raw:"React.FC<LinkProps>",elements:[{name:"LinkProps"}]}]},description:"Custom link component to use. Use with `to` prop."},className:{required:!1,tsType:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}]},description:"Additional class name to apply."}}};const Ia=(e,t)=>Object.assign(e,t),ad=Me("div",{height:"100%",display:"flex",flexDirection:"column",variants:{position:{top:{},left:{flexDirection:"row"},bottom:{},right:{flexDirection:"row"}}}}),i_=Me("div",{flex:1,overflow:"auto",variants:{position:{top:{},bottom:{order:1},left:{},right:{order:1}}}}),o_=new TypeError("StickyHeader needs two children - Header and StickyHeader.Content"),vre=Ia(Oe.forwardRef((e,t)=>{const{children:r,position:n="top",__dangerouslyDisableChildrenGuard:i,...a}=e;if(i)return ue.createElement(ad,{ref:t,...a,position:n},r);const l=ue.Children.toArray(r);if(l.length!==2)throw o_;let u=l.find(c=>typeof c=="object"&&"type"in c&&c.type===qp),p=l.find(c=>typeof c=="object"&&"type"in c&&c.type===i_);if(!u||!p)throw o_;return u=u,p=p,ue.createElement(ad,{ref:t,...a,position:n},ue.cloneElement(u,{position:n}),ue.cloneElement(p,{position:n}))}),{displayName:"StickyHeader",Content:i_,selectors:{root:ad.toString()},toString:()=>ad.toString()});vre.__docgenInfo={description:"",methods:[],displayName:"StickyHeader",props:{position:{required:!1,tsType:{name:"union",raw:'"top" | "left" | "right" | "bottom"',elements:[{name:"literal",value:'"top"'},{name:"literal",value:'"left"'},{name:"literal",value:'"right"'},{name:"literal",value:'"bottom"'}]},description:"Position of the header"},className:{required:!1,tsType:{name:"string"},description:"Additional class name"},__dangerouslyDisableChildrenGuard:{required:!1,tsType:{name:"boolean"},description:`If you need to pass custom children for some reason and you are sure that you are doing it right - use this prop
|
|
1071
|
+
to disable children type check.`},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Bl=Me("div",{display:"flex",minHeight:Xe(174),alignItems:"center",gap:"1rem",border:"none",background:"none",width:"100%",textAlign:"left",fontFamily:"inherit",fontSize:"inherit"}),Ll=Me("li",{listStyleType:"none",margin:0,padding:0,fontSize:Pr(34),"&:not(:first-child)":{borderTop:"0.37px solid $headerBorder"},"> *":{display:"block",padding:0,textDecoration:"none"},variants:{inset:{true:{paddingLeft:Xe(37),paddingRight:Xe(37)}},selected:{true:{color:"$mainColor"}}}}),SI=Np({width:Ft(7),display:"inline-block"}),Ere=Me(Bu,SI),wre=Me("span",SI),Sre=Me("div",{fontSize:Pr(27),color:"$sub",marginTop:Pr(27/3)}),Are=Me("div",{padding:`${Xe(54)} 0`}),_b=({sub:e,...t})=>ue.createElement(Are,{...t},ue.createElement("div",null,t.children),e!=null&&ue.createElement(Sre,null,e));_b.__docgenInfo={description:"Use this to render a label within `Item`, optionally you can render a sublabel as well (with a tip message for\nexample).",methods:[],displayName:"Label",props:{sub:{required:!1,tsType:{name:"ReactNode"},description:""}}};const _re=Me("div",{color:"$icon",fontSize:Pr(26),display:"flex",justifyContent:"flex-end",flex:1}),Cre=ue.createElement(Ere,{name:hI.forward}),Tre=ue.createElement(wre,null),xre=Bl.toString(),Cb=Oe.forwardRef(({href:e,to:t,onClick:r,Link:n,ratio:i,...a},l)=>{const u=i?i.split("/"):[],p=typeof a.selected=="boolean"?ue.createElement(_b,null,a.selected?Cre:Tre):null,c=u.length?ue.Children.map(a.children,(m,y)=>{if(!m||typeof m!="object"||!("type"in m))return m;const g=u[y]??void 0;return g===void 0?m:ue.cloneElement(m,{style:{flex:g},css:{flex:g}})})??[]:a.children;if(t){if(!n)throw new TypeError("`to` prop given without `Link` component");return ue.createElement(Ll,{...a,ref:l},ue.createElement(n,{href:t},ue.createElement(Bl,{as:"a",href:t},p,c)))}return e?ue.createElement(Ll,{...a,ref:l},ue.createElement(Bl,{as:"a",href:e,onClick:r},p,c)):r?ue.createElement(Ll,{...a,ref:l},ue.createElement(Bl,{as:"button",onClick:r},p,c)):ue.createElement(Ll,{...a,ref:l},ue.createElement(Bl,null,p,c))});Cb.displayName="List.Item";const jp=Ia(Cb,{Label:_b,Value:_re});jp.toString=()=>Ll.toString();Cb.__docgenInfo={description:"Represents a single item in a list.\n\nIt has two subcomponents:\n- `Label`: for rendering the label with sublabel (usually on the left)\n- `Value`: for rendering the value (usually on the right)\nIt can be however used with any children.\n\n`ratio` prop can be used to set the flex ratio of each child. The child must support either `style` or `css` prop\nthat accept object like: `{ flex: 1 }`.\n\nList.Item has two variants:\n- `inset`: which adds padding to the left and right side of the item - it should be used when the list is inset (it's\napplied automatically if used within `List` component)\n- `selected`: which renders an arrow on the left side, useful when creating a radio-like list (please note that not\nsending `selected` is different from sending `false`)\n\nIt accepts few more props:\n- `href`: if given it will render an anchor tag with the given href\n- `to`: if given it will render an anchor tag wrapped in a link using the given `Link` component\n- `onClick`: if given it will render a button tag with the given onClick handler (it can be passed with `href` too)",methods:[],displayName:"List.Item",props:{href:{required:!1,tsType:{name:"string"},description:""},to:{required:!1,tsType:{name:"string"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},Link:{required:!1,tsType:{name:"union",raw:"React.ComponentClass<LinkProps> | React.FC<LinkProps>",elements:[{name:"ReactComponentClass",raw:"React.ComponentClass<LinkProps>",elements:[{name:"LinkProps"}]},{name:"ReactFC",raw:"React.FC<LinkProps>",elements:[{name:"LinkProps"}]}]},description:""},ratio:{required:!1,tsType:{name:"union",raw:"| Ratio\n| `${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`\n| `${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`",elements:[{name:"union",raw:'`${number}` | ""',elements:[{name:"literal",value:"`${number}`"},{name:"literal",value:'""'}]},{name:"literal",value:"`${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"},{name:"literal",value:"`${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}/${Ratio}`"}]},description:""}}};const AI=Me("div",{flex:1}),_I=Me(jp,{paddingTop:Xe(80),paddingBottom:Xe(40),fontSize:Pr(26),color:"$sub",textTransform:"uppercase",[`& ${xre}`]:{minHeight:0},variants:{inset:{true:{paddingLeft:0,paddingRight:0}}}}),Mu=Oe.forwardRef(({as:e,...t},r)=>ue.createElement(_I,{...t,ref:r},ue.createElement(AI,{...e?{as:e}:void 0},t.children)));Mu.displayName="List.Header";Mu.toString=()=>_I.toString();AI.toString();Mu.__docgenInfo={description:"Use this to render a header within a `List`.\nUse `as` prop to define which tag to use.",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"List.Header",props:{as:{required:!1,tsType:{name:"string"},description:""}}};const CI=Me("ul",{margin:`0 ${Ft(23)}`,padding:0,variants:{inset:{true:{margin:0}}}}),Tb=Oe.forwardRef((e,t)=>{const r=ue.Children.map(e.children,n=>n&&typeof n=="object"&&"type"in n&&(n.type===jp||n.type===Mu)?ue.cloneElement(n,{inset:e.inset}):n);return ue.createElement(CI,{...e,ref:t},r)});Tb.displayName="List";const Rre=Ia(Tb,{Header:Mu,Item:jp});Rre.toString=()=>CI.toString();Tb.__docgenInfo={description:"Component for rendering menu lists.\n\nIt has two subcomponents:\n- `Item`: for rendering list items\n- `Header`: for rendering list headers\n\nList has one variant: `inset`, which removes the margin from the list. If used it will be automatically applied to\nall children.\n\nSee `Item` and `Header` for more information about their usage.",methods:[],displayName:"List"};Me("div",{margin:12});const Dre=Me("div",{background:"$toolbarBg",flex:1,minHeight:"100%",display:"flex",flexDirection:"column",gap:23}),Pre=Me("div",{background:"$background",variants:{vertical:{true:{py:Ft(23)}},horizontal:{true:{px:Ft(23)}}}}),fie=Ia(Pre,{Container:Dre}),hie=Me("table",{borderSpacing:"10px",borderCollapse:"collapse","> * > tr > *":{textAlign:"left",padding:"0.75em 0.5em",borderBottom:"1px solid $border"},"> thead > tr:last-child > *":{borderBottom:"2px solid $border",boxShadow:"0 4px 10px -10px rgba(0, 0, 0, 0.6)"},variants:{striped:{true:{"> tbody > tr:nth-child(even) > *":{background:"$tableStripedBg"}}},centered:{true:{marginLeft:"auto",marginRight:"auto"}},wide:{true:{width:"100%"}}}}),mie=Me("button",{height:Xe(118),background:"$green1",border:`${Wo(1)} solid $green1Darker`,color:"$background",borderRadius:"1000px",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",fontSize:Pr(26),padding:"0 1em",gap:Ft(10),"&:disabled":{opacity:.5},variants:{inline:{true:{width:"auto",display:"inline-flex"}},outline:{true:{background:"$background",borderColor:"$buttonBorder",color:"$grey1"}}}}),TI=Me("button",{height:"50px",width:"50px",margin:"0",borderRadius:"666px",border:"none",display:"block",background:"none"}),xI=Me("span",{display:"block",width:"4px",height:"4px",borderRadius:"666px",background:"$text3",margin:"auto"}),Io=Oe.forwardRef((e,t)=>ue.createElement(TI,{...e,ref:t},ue.createElement(xI,null)));Io.displayName="PadButton";Io.toString=()=>TI.toString();xI.toString();Io.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"PadButton",props:{onClick:{required:!1,tsType:{name:"union",raw:"(() => void) | undefined",elements:[{name:"unknown"},{name:"undefined"}]},description:""}}};const RI=Me("button",{display:"flex",alignItems:"center",justifyContent:"center",margin:"0",height:"50px",width:"50px",border:"1px solid #999",boxSizing:"border-box",borderRadius:"666px",background:"none",textAlign:"center"}),qu=Oe.forwardRef((e,t)=>ue.createElement(RI,{onClick:e.onClick,ref:t},e.label));qu.displayName="PadMiddle";qu.toString=()=>RI.toString();qu.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"PadMiddle",props:{label:{required:!1,tsType:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}]},description:""},onClick:{required:!1,tsType:{name:"union",raw:"(() => void) | undefined",elements:[{name:"unknown"},{name:"undefined"}]},description:""}}};const DI=Me("div",{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"150px",borderRadius:"666px",width:"150px",border:"1px solid #aaa",background:"$background"}),bd=Me("div",{display:"flex"}),xb=Oe.forwardRef((e,t)=>ue.createElement(DI,{className:e.className,ref:t},ue.createElement(bd,null,ue.createElement(Io,{onClick:e.onUpPress})),ue.createElement(bd,null,ue.createElement(Io,{onClick:e.onLeftPress}),ue.createElement(qu,{onClick:e.onMiddlePress,label:e.middleLabel}),ue.createElement(Io,{onClick:e.onRightPress})),ue.createElement(bd,null,ue.createElement(Io,{onClick:e.onDownPress}))));xb.displayName="DirectionPad";xb.toString=()=>DI.toString();bd.toString();Io.toString();qu.toString();xb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"DirectionPad",props:{onUpPress:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onDownPress:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onLeftPress:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onRightPress:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onMiddlePress:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},middleLabel:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const a_=Math.pow(2,32)/2-1,s_=e=>{if(e!==1/0){if(e<0)throw new TypeError("Time must be a positive number");if(e>a_)throw new TypeError(`Time must not be greater than ${a_}`)}};class Ore{constructor(t,r,n=!1){this._started=0,s_(r),this._cb=t.bind(null),this._time=r,this._timerId=null,n&&this.start()}start(t){this._updateTime(t),this.stop(),this._start()}_start(){this._time!==1/0&&(this._timerId=setTimeout(()=>{const t=this._timerId;this._cb(),this._timerId===t&&this.stop()},this._time),this._started=Date.now())}_updateTime(t){t!=null&&(s_(t),this._time=t)}changeTime(t){this._time!==t&&(this._updateTime(t),this.restartOnly(t))}changeCallback(t){this._cb=t.bind(null)}startOnly(){return this._timerId!==null?!1:(this._start(),!0)}restartOnly(t){return this._updateTime(t),this._timerId===null?!1:(this.stop(),this._start(),!0)}stop(){this._timerId!==null&&(clearTimeout(this._timerId),this._timerId=null)}get started(){return this._timerId!==null}get timeLeft(){return this._timerId===null?0:this._started+this._time-Date.now()}}const PI=({onPress:e})=>{const t=Ite("Escape");return Oe.useEffect(()=>{t&&e()},[t,e]),null},OI=Me("div",{position:"fixed",top:0,left:0,right:0,bottom:0,background:"$background",zIndex:1,transition:"transform 300ms",overflow:"auto"}),NI=Me("div",{height:"100%"}),Nre=500,Rb=Oe.forwardRef((e,t)=>{const[r,n]=Oe.useState(!1),i=Oe.useRef(null);Oe.useEffect(()=>(i.current=new Ore(()=>{n(!1)},Nre),()=>{i.current?.stop(),i.current=null}),[]),Oe.useEffect(()=>{e.isOpen?(i.current?.stop(),n(!0)):i.current?.start()},[e.isOpen]);const l={transform:`translateY(${e.isOpen?0:100}%)`},u=e.isOpen||r,c=(e.closeOnEsc??!0)&&ue.createElement(PI,{onPress:e.onClose});return ue.createElement(OI,{className:e.className,style:l,ref:t},c,ue.createElement(NI,null,u&&e.children))});Rb.displayName="Drawer";Rb.toString=()=>OI.toString();NI.toString();Rb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Drawer",props:{isOpen:{required:!0,tsType:{name:"boolean"},description:""},closeOnEsc:{required:!1,tsType:{name:"boolean"},description:""},onClose:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Ire=Np({display:"inline-flex",boxSizing:"border-box",padding:"10px",alignItems:"center",gap:"10px",border:"none",background:"none"}),II=Me("div",{"--kv-border-color":"$colors$headerBorder","--kv-border":`${Wo(1)} solid var(--kv-border-color)`,"--kv-background-color":"$colors$background","--kv-hover-background-color":"$colors$activeBg",border:"1px solid var(--kv-border-color)",backgroundColor:"var(--kv-background-color)",borderRadius:"5px",display:"flex",flexWrap:"wrap"}),My=Me("div",Ire,{"&:is(button):hover":{background:"var(--kv-hover-background-color)"},variants:{notFirstRow:{true:{borderTop:"var(--kv-border)"}},notFirstCol:{true:{borderLeft:"var(--kv-border)"}}}}),FI=Me("div",{display:"flex",flexDirection:"column",gap:"3px"}),kI=Me("div",{fontSize:Pr(22),color:"$sub"}),BI=Me("div",{fontSize:Pr(29)}),LI=Me("div",{"--KeyValueStyledIconDummyVar":"0"}),Fre=2,Db=Oe.forwardRef((e,t)=>{const r=e.cols??Fre,n=e.items.map((l,u)=>{const c={width:`${100/r}%`},m=u<r,y=u%r===0,g=l.key!=null?ue.createElement(kI,null,l.key):null,b=l.value!=null?ue.createElement(BI,null,l.value):null,w=ue.createElement(FI,null,e.valueFirst?b:g,e.valueFirst?g:b),A=l.icon!=null?ue.createElement(LI,null,l.icon):null,x=l.onClick?"button":"div";return ue.createElement(My,{key:u,style:c,as:x,notFirstRow:!m,notFirstCol:!y},ue.createElement(ue.Fragment,null,A,w))}),i=n.length%r,a=i?r-i:0;if(a){const u={width:`${100/r*a}%`},p=n.length<r,c=n.length%r===0;n.push(ue.createElement(My,{key:"extra",css:u,notFirstCol:!c,notFirstRow:!p}))}return ue.createElement(II,{className:e.className,ref:t},n)});Db.displayName="KeyValue";Db.toString=()=>II.toString();My.toString();FI.toString();const yie=kI.toString(),gie=BI.toString(),bie=LI.toString();Db.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"KeyValue",props:{items:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{ key?: React.ReactNode; value?: React.ReactNode; icon?: React.ReactNode; onClick?: () => void }",signature:{properties:[{key:"key",value:{name:"ReactReactNode",raw:"React.ReactNode",required:!1}},{key:"value",value:{name:"ReactReactNode",raw:"React.ReactNode",required:!1}},{key:"icon",value:{name:"ReactReactNode",raw:"React.ReactNode",required:!1}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}}],raw:"Array<{ key?: React.ReactNode; value?: React.ReactNode; icon?: React.ReactNode; onClick?: () => void }>"},description:""},cols:{required:!1,tsType:{name:"number"},description:""},valueFirst:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const vie=Me("hr",{"--miui-line-size":"100px",width:"var(--miui-line-size)",maxWidth:"100%",height:1,backgroundColor:"$border",border:"none",margin:"auto",variants:{vertical:{true:{width:1,height:"var(--miui-line-size)",maxHeight:"100%"}}}});function kre(e){let[t,r]=ue.useState(e);const{current:n}=ue.useRef({current:t});return Object.defineProperty(n,"current",{get:()=>t,set:i=>{Object.is(t,i)||(t=i,r(i))}}),n}function Pb(e,t={isStateful:!0}){const r=kre(),n=Oe.useRef(),i=t.isStateful?r:n;return ue.useImperativeHandle(e,()=>i.current),i}const Bre=`pointer-events: none;
|
|
1072
|
+
touch-action: none;`,MI=Oe.forwardRef(({show:e,children:t,color:r,size:n,speed:i,mode:a="over",inertMode:l="block-interaction"},u)=>{const p=HN({size:n,color:r,speed:i}),c=Pb(u),m="miui-"+Oe.useId().replace(/:/gu,"-"),y=Oe.useRef();Oe.useEffect(()=>{const b=document.createElement("style");return document.head.appendChild(b),y.current=b,()=>{y.current?.remove()}},[]);const g=()=>{const b=c.current;if(b!==null&&!(b instanceof HTMLElement))throw new Error("CoveringLoader child ref is not an HTMLElement, got: ("+typeof b+") "+String(b));if(!b||!e)return;let w=null;if(a==="over"){const j=b.parentElement;w=document.createElement("div"),w.classList.add(m),j&&(j.classList.add("parent-"+m),j.appendChild(w),l==="block-interaction"&&(j.inert=!0))}else b.classList.add(m),l==="block-interaction"&&(b.inert=!0);const _=`z-index: 1;
|
|
1073
|
+
content: "";
|
|
1074
|
+
position: absolute;
|
|
1075
|
+
inset: 0;
|
|
1076
|
+
background: url('${p}') no-repeat center center;
|
|
1077
|
+
${a!=="over"?"background-color: rgba(255, 255, 255, 0.5); mix-blend-mode: luminosity;":""}
|
|
1078
|
+
${l==="pass-through"?Bre:""}`,R="position: relative;";return a!=="over"?y.current.textContent=`
|
|
1079
|
+
.${m}::${a} {
|
|
1080
|
+
${_}
|
|
1081
|
+
}
|
|
1082
|
+
.${m} {
|
|
1083
|
+
${R}
|
|
1084
|
+
}`:y.current.textContent=`
|
|
1085
|
+
.${m} {
|
|
1086
|
+
${_}
|
|
1087
|
+
}
|
|
1088
|
+
.parent-${m} {
|
|
1089
|
+
${R}
|
|
1090
|
+
}
|
|
1091
|
+
.parent-${m} > *:not(:last-child) {
|
|
1092
|
+
opacity: 0.5
|
|
1093
|
+
}`,()=>{if(y.current.textContent="",a==="over"){const j=b.parentElement;w?.remove(),j&&(j.classList.add("parent-"+m),l==="block-interaction"&&(j.inert=!1))}else b.classList.remove(m),l==="block-interaction"&&(b.inert=!1)}};return Oe.useEffect(g,[c.current,p,e,r,n,i,a,l,m]),Oe.cloneElement(Oe.Children.only(t),{ref:c})});MI.displayName="CoveringLoader";MI.__docgenInfo={description:`A loader that wraps an element and covers it with a loading spinner, decreasing visibility of the content and
|
|
1094
|
+
blocking interactions.
|
|
1095
|
+
It requires a single child element, whose ref will provide a DOM element.
|
|
1096
|
+
|
|
1097
|
+
It has 3 modes of operation:
|
|
1098
|
+
- before - will add the loader as ::before element of the ref node
|
|
1099
|
+
- after - will add the loader as ::after element of the ref node
|
|
1100
|
+
- cover (default) - will add itself to the parent of the ref node, setting position: relative to it
|
|
1101
|
+
|
|
1102
|
+
Before/after modes will cover the background with semi-transparent white.
|
|
1103
|
+
Over mode will decrease the opacity of the wrapped element.`,methods:[],displayName:"CoveringLoader",props:{speed:{required:!1,tsType:{name:"number"},description:"Time in ms for a full spin"},color:{required:!1,tsType:{name:"string"},description:"Color of the spinner, defaults to currentColor"},size:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"Size of the spinner, can be unitless, defaults to 2rem"},show:{required:!1,tsType:{name:"union",raw:"boolean | undefined | null",elements:[{name:"boolean"},{name:"undefined"},{name:"null"}]},description:"Whether to show the spinner or not"},className:{required:!1,tsType:{name:"string"},description:""},mode:{required:!1,tsType:{name:"union",raw:'"before" | "after" | "over"',elements:[{name:"literal",value:'"before"'},{name:"literal",value:'"after"'},{name:"literal",value:'"over"'}]},description:"",defaultValue:{value:'"over"',computed:!1}},inertMode:{required:!1,tsType:{name:"union",raw:'"block-interaction" | "cover-element" | "pass-through"',elements:[{name:"literal",value:'"block-interaction"'},{name:"literal",value:'"cover-element"'},{name:"literal",value:'"pass-through"'}]},description:"",defaultValue:{value:'"block-interaction"',computed:!1}},children:{required:!0,tsType:{name:"ReactReactElement",raw:"React.ReactElement"},description:""}}};const qI=Me("div",{"--DivDummyVar":"0"}),Lre=400,Mre="2rem",ju=Oe.forwardRef(({color:e="currentColor",speed:t=Lre,size:r=Mre,className:n,show:i,...a},l)=>{const u=HN({size:r,color:e,speed:t});return i===!1?null:ue.createElement(qI,{ref:l,className:n,css:{width:r,height:r,backgroundImage:`url('${u}')`}})});ju.displayName="Loader";ju.toString=()=>qI.toString();ju.__docgenInfo={description:`Basic spinner.
|
|
1104
|
+
|
|
1105
|
+
Based on MIT licensed code by Sam Herbert
|
|
1106
|
+
https://github.com/SamHerbert/SVG-Loaders/blob/master/svg-loaders/tail-spin.svg`,methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Loader",props:{speed:{required:!1,tsType:{name:"number"},description:"Time in ms for a full spin",defaultValue:{value:"400",computed:!1}},color:{required:!1,tsType:{name:"string"},description:"Color of the spinner, defaults to currentColor",defaultValue:{value:'"currentColor"',computed:!1}},size:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"Size of the spinner, can be unitless, defaults to 2rem",defaultValue:{value:'"2rem"',computed:!1}},show:{required:!1,tsType:{name:"union",raw:"boolean | undefined | null",elements:[{name:"boolean"},{name:"undefined"},{name:"null"}]},description:"Whether to show the spinner or not"},className:{required:!1,tsType:{name:"string"},description:""}}};const jI=Me("div",{height:"100%",flex:1,display:"flex",alignItems:"center",justifyContent:"center"}),$p=Oe.forwardRef(({className:e,...t},r)=>ue.createElement(jI,{ref:r,className:e},ue.createElement(ju,{...t})));$p.displayName="FullLoader";$p.toString=()=>jI.toString();$p.__docgenInfo={description:"A loader that renders in the middle of available space",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"FullLoader",props:{speed:{required:!1,tsType:{name:"number"},description:"Time in ms for a full spin"},color:{required:!1,tsType:{name:"string"},description:"Color of the spinner, defaults to currentColor"},size:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"Size of the spinner, can be unitless, defaults to 2rem"},show:{required:!1,tsType:{name:"union",raw:"boolean | undefined | null",elements:[{name:"boolean"},{name:"undefined"},{name:"null"}]},description:"Whether to show the spinner or not"},className:{required:!1,tsType:{name:"string"},description:""}}};const $I=Me("div",{position:"absolute",right:20,top:20,background:"$background",border:"1px solid $toolbarBorder",borderRadius:666,padding:10}),qre=Me(ju,{display:"block"}),Vp=Oe.forwardRef(({className:e,...t},r)=>ue.createElement($I,{ref:r,className:e},ue.createElement(qre,{size:"1rem",...t})));Vp.displayName="PopLoader";Vp.toString=()=>$I.toString();Vp.__docgenInfo={description:`Loader that renders in the top right corner.
|
|
1107
|
+
Suggested use: indicate data revalidation.
|
|
1108
|
+
|
|
1109
|
+
Requires a parent with \`position: relative\`.`,methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"PopLoader",props:{speed:{required:!1,tsType:{name:"number"},description:"Time in ms for a full spin"},color:{required:!1,tsType:{name:"string"},description:"Color of the spinner, defaults to currentColor"},size:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"Size of the spinner, can be unitless, defaults to 2rem"},show:{required:!1,tsType:{name:"union",raw:"boolean | undefined | null",elements:[{name:"boolean"},{name:"undefined"},{name:"null"}]},description:"Whether to show the spinner or not"},className:{required:!1,tsType:{name:"string"},description:""}}};const VI=e=>{if(!e.data&&e.isLoading)return ue.createElement($p,null);const t=e.isLoading?ue.createElement(Vp,null):null;return ue.createElement(ue.Fragment,null,t,e.children)};VI.displayName="Loading";VI.__docgenInfo={description:`A full-featured loader that can be used to wrap components that renders data.
|
|
1110
|
+
If not loading it will render whatever is passed in \`children\`.
|
|
1111
|
+
If loading when there is no data (initial data load) it will render a full screen loader.
|
|
1112
|
+
If loading when there is data (revalidation) it will render a small loader in the top right corner (PopLoader).
|
|
1113
|
+
|
|
1114
|
+
It requires a parent with \`position: relative\`.`,methods:[],displayName:"Loading",props:{data:{required:!1,tsType:{name:"unknown"},description:""},isLoading:{required:!1,tsType:{name:"boolean"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Eie=Me("div",{borderStyle:"solid",borderColor:"$border",borderWidth:0,borderTopWidth:Ft(1),borderBottomWidth:Ft(1),padding:`${Xe(47)} ${Xe(83)}`,fontWeight:500,lineHeight:1.25,variants:{variant:{box:{borderLeftWidth:Ft(1),borderRightWidth:Ft(1),margin:Ft(12)},stretch:{}},type:{warning:{backgroundColor:"$yellow3",borderColor:"$yellow1",color:"$yellow2"},error:{backgroundColor:"$pinky3",borderColor:"$pinky1",color:"$pinky2"},info:{backgroundColor:"$blue3",borderColor:"$blue2",color:"$blue1"},tip:{}}}});var dm={exports:{}},gn={},pm={exports:{}},fm={};var l_;function jre(){return l_||(l_=1,(function(e){function t(oe,Ae){var Ce=oe.length;oe.push(Ae);e:for(;0<Ce;){var re=Ce-1>>>1,G=oe[re];if(0<i(G,Ae))oe[re]=Ae,oe[Ce]=G,Ce=re;else break e}}function r(oe){return oe.length===0?null:oe[0]}function n(oe){if(oe.length===0)return null;var Ae=oe[0],Ce=oe.pop();if(Ce!==Ae){oe[0]=Ce;e:for(var re=0,G=oe.length,he=G>>>1;re<he;){var De=2*(re+1)-1,_e=oe[De],ge=De+1,Ve=oe[ge];if(0>i(_e,Ce))ge<G&&0>i(Ve,_e)?(oe[re]=Ve,oe[ge]=Ce,re=ge):(oe[re]=_e,oe[De]=Ce,re=De);else if(ge<G&&0>i(Ve,Ce))oe[re]=Ve,oe[ge]=Ce,re=ge;else break e}}return Ae}function i(oe,Ae){var Ce=oe.sortIndex-Ae.sortIndex;return Ce!==0?Ce:oe.id-Ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var p=[],c=[],m=1,y=null,g=3,b=!1,w=!1,A=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(oe){for(var Ae=r(c);Ae!==null;){if(Ae.callback===null)n(c);else if(Ae.startTime<=oe)n(c),Ae.sortIndex=Ae.expirationTime,t(p,Ae);else break;Ae=r(c)}}function B(oe){if(A=!1,j(oe),!w)if(r(p)!==null)w=!0,ne(F);else{var Ae=r(c);Ae!==null&&ae(B,Ae.startTime-oe)}}function F(oe,Ae){w=!1,A&&(A=!1,_(N),N=-1),b=!0;var Ce=g;try{for(j(Ae),y=r(p);y!==null&&(!(y.expirationTime>Ae)||oe&&!H());){var re=y.callback;if(typeof re=="function"){y.callback=null,g=y.priorityLevel;var G=re(y.expirationTime<=Ae);Ae=e.unstable_now(),typeof G=="function"?y.callback=G:y===r(p)&&n(p),j(Ae)}else n(p);y=r(p)}if(y!==null)var he=!0;else{var De=r(c);De!==null&&ae(B,De.startTime-Ae),he=!1}return he}finally{y=null,g=Ce,b=!1}}var E=!1,P=null,N=-1,L=5,Z=-1;function H(){return!(e.unstable_now()-Z<L)}function te(){if(P!==null){var oe=e.unstable_now();Z=oe;var Ae=!0;try{Ae=P(!0,oe)}finally{Ae?W():(E=!1,P=null)}}else E=!1}var W;if(typeof R=="function")W=function(){R(te)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,K=$.port2;$.port1.onmessage=te,W=function(){K.postMessage(null)}}else W=function(){x(te,0)};function ne(oe){P=oe,E||(E=!0,W())}function ae(oe,Ae){N=x(function(){oe(e.unstable_now())},Ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(oe){oe.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,ne(F))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(oe){switch(g){case 1:case 2:case 3:var Ae=3;break;default:Ae=g}var Ce=g;g=Ae;try{return oe()}finally{g=Ce}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,Ae){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Ce=g;g=oe;try{return Ae()}finally{g=Ce}},e.unstable_scheduleCallback=function(oe,Ae,Ce){var re=e.unstable_now();switch(typeof Ce=="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce=="number"&&0<Ce?re+Ce:re):Ce=re,oe){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=Ce+G,oe={id:m++,callback:Ae,priorityLevel:oe,startTime:Ce,expirationTime:G,sortIndex:-1},Ce>re?(oe.sortIndex=Ce,t(c,oe),r(p)===null&&oe===r(c)&&(A?(_(N),N=-1):A=!0,ae(B,Ce-re))):(oe.sortIndex=G,t(p,oe),w||b||(w=!0,ne(F))),oe},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(oe){var Ae=g;return function(){var Ce=g;g=Ae;try{return oe.apply(this,arguments)}finally{g=Ce}}}})(fm)),fm}var u_;function $re(){return u_||(u_=1,pm.exports=jre()),pm.exports}var c_;function Vre(){if(c_)return gn;c_=1;var e=VO(),t=$re();function r(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,f=1;f<arguments.length;f++)s+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(o,s){l(o,s),l(o+"Capture",s)}function l(o,s){for(i[o]=s,o=0;o<s.length;o++)n.add(s[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},y={};function g(o){return p.call(y,o)?!0:p.call(m,o)?!1:c.test(o)?y[o]=!0:(m[o]=!0,!1)}function b(o,s,f,v){if(f!==null&&f.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return v?!1:f!==null?!f.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,s,f,v){if(s===null||typeof s>"u"||b(o,s,f,v))return!0;if(v)return!1;if(f!==null)switch(f.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function A(o,s,f,v,C,O,U){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=v,this.attributeNamespace=C,this.mustUseProperty=f,this.propertyName=o,this.type=s,this.sanitizeURL=O,this.removeEmptyString=U}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){x[o]=new A(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];x[s]=new A(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){x[o]=new A(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){x[o]=new A(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){x[o]=new A(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){x[o]=new A(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){x[o]=new A(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){x[o]=new A(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){x[o]=new A(o,5,!1,o.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function R(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(_,R);x[s]=new A(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(_,R);x[s]=new A(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(_,R);x[s]=new A(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){x[o]=new A(o,1,!1,o.toLowerCase(),null,!1,!1)}),x.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){x[o]=new A(o,1,!1,o.toLowerCase(),null,!0,!0)});function j(o,s,f,v){var C=x.hasOwnProperty(s)?x[s]:null;(C!==null?C.type!==0:v||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,f,C,v)&&(f=null),v||C===null?g(s)&&(f===null?o.removeAttribute(s):o.setAttribute(s,""+f)):C.mustUseProperty?o[C.propertyName]=f===null?C.type===3?!1:"":f:(s=C.attributeName,v=C.attributeNamespace,f===null?o.removeAttribute(s):(C=C.type,f=C===3||C===4&&f===!0?"":""+f,v?o.setAttributeNS(v,s,f):o.setAttribute(s,f))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),E=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),H=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),oe=Symbol.iterator;function Ae(o){return o===null||typeof o!="object"?null:(o=oe&&o[oe]||o["@@iterator"],typeof o=="function"?o:null)}var Ce=Object.assign,re;function G(o){if(re===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);re=s&&s[1]||""}return`
|
|
1115
|
+
`+re+o}var he=!1;function De(o,s){if(!o||he)return"";he=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(we){var v=we}Reflect.construct(o,[],s)}else{try{s.call()}catch(we){v=we}o.call(s.prototype)}else{try{throw Error()}catch(we){v=we}o()}}catch(we){if(we&&v&&typeof we.stack=="string"){for(var C=we.stack.split(`
|
|
1116
|
+
`),O=v.stack.split(`
|
|
1117
|
+
`),U=C.length-1,ee=O.length-1;1<=U&&0<=ee&&C[U]!==O[ee];)ee--;for(;1<=U&&0<=ee;U--,ee--)if(C[U]!==O[ee]){if(U!==1||ee!==1)do if(U--,ee--,0>ee||C[U]!==O[ee]){var se=`
|
|
1118
|
+
`+C[U].replace(" at new "," at ");return o.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",o.displayName)),se}while(1<=U&&0<=ee);break}}}finally{he=!1,Error.prepareStackTrace=f}return(o=o?o.displayName||o.name:"")?G(o):""}function _e(o){switch(o.tag){case 5:return G(o.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return o=De(o.type,!1),o;case 11:return o=De(o.type.render,!1),o;case 1:return o=De(o.type,!0),o;default:return""}}function ge(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case P:return"Fragment";case E:return"Portal";case L:return"Profiler";case N:return"StrictMode";case W:return"Suspense";case $:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case H:return(o.displayName||"Context")+".Consumer";case Z:return(o._context.displayName||"Context")+".Provider";case te:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case K:return s=o.displayName||null,s!==null?s:ge(o.type)||"Memo";case ne:s=o._payload,o=o._init;try{return ge(o(s))}catch{}}return null}function Ve(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(s);case 8:return s===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function $e(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function lt(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function le(o){var s=lt(o)?"checked":"value",f=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),v=""+o[s];if(!o.hasOwnProperty(s)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var C=f.get,O=f.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return C.call(this)},set:function(U){v=""+U,O.call(this,U)}}),Object.defineProperty(o,s,{enumerable:f.enumerable}),{getValue:function(){return v},setValue:function(U){v=""+U},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function ke(o){o._valueTracker||(o._valueTracker=le(o))}function Ue(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var f=s.getValue(),v="";return o&&(v=lt(o)?o.checked?"true":"false":o.value),o=v,o!==f?(s.setValue(o),!0):!1}function Ge(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function We(o,s){var f=s.checked;return Ce({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??o._wrapperState.initialChecked})}function nt(o,s){var f=s.defaultValue==null?"":s.defaultValue,v=s.checked!=null?s.checked:s.defaultChecked;f=$e(s.value!=null?s.value:f),o._wrapperState={initialChecked:v,initialValue:f,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function it(o,s){s=s.checked,s!=null&&j(o,"checked",s,!1)}function pt(o,s){it(o,s);var f=$e(s.value),v=s.type;if(f!=null)v==="number"?(f===0&&o.value===""||o.value!=f)&&(o.value=""+f):o.value!==""+f&&(o.value=""+f);else if(v==="submit"||v==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?ur(o,s.type,f):s.hasOwnProperty("defaultValue")&&ur(o,s.type,$e(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Bt(o,s,f){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var v=s.type;if(!(v!=="submit"&&v!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,f||s===o.value||(o.value=s),o.defaultValue=s}f=o.name,f!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,f!==""&&(o.name=f)}function ur(o,s,f){(s!=="number"||Ge(o.ownerDocument)!==o)&&(f==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+f&&(o.defaultValue=""+f))}var mt=Array.isArray;function Lt(o,s,f,v){if(o=o.options,s){s={};for(var C=0;C<f.length;C++)s["$"+f[C]]=!0;for(f=0;f<o.length;f++)C=s.hasOwnProperty("$"+o[f].value),o[f].selected!==C&&(o[f].selected=C),C&&v&&(o[f].defaultSelected=!0)}else{for(f=""+$e(f),s=null,C=0;C<o.length;C++){if(o[C].value===f){o[C].selected=!0,v&&(o[C].defaultSelected=!0);return}s!==null||o[C].disabled||(s=o[C])}s!==null&&(s.selected=!0)}}function At(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return Ce({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Vr(o,s){var f=s.value;if(f==null){if(f=s.children,s=s.defaultValue,f!=null){if(s!=null)throw Error(r(92));if(mt(f)){if(1<f.length)throw Error(r(93));f=f[0]}s=f}s==null&&(s=""),f=s}o._wrapperState={initialValue:$e(f)}}function fr(o,s){var f=$e(s.value),v=$e(s.defaultValue);f!=null&&(f=""+f,f!==o.value&&(o.value=f),s.defaultValue==null&&o.defaultValue!==f&&(o.defaultValue=f)),v!=null&&(o.defaultValue=""+v)}function je(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Jt(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function at(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Jt(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Ht,Dt=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,f,v,C){MSApp.execUnsafeLocalFunction(function(){return o(s,f,v,C)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Ht=Ht||document.createElement("div"),Ht.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Ht.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Ur(o,s){if(s){var f=o.firstChild;if(f&&f===o.lastChild&&f.nodeType===3){f.nodeValue=s;return}}o.textContent=s}var Gr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zt=["Webkit","ms","Moz","O"];Object.keys(Gr).forEach(function(o){Zt.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Gr[s]=Gr[o]})});function dt(o,s,f){return s==null||typeof s=="boolean"||s===""?"":f||typeof s!="number"||s===0||Gr.hasOwnProperty(o)&&Gr[o]?(""+s).trim():s+"px"}function Jr(o,s){o=o.style;for(var f in s)if(s.hasOwnProperty(f)){var v=f.indexOf("--")===0,C=dt(f,s[f],v);f==="float"&&(f="cssFloat"),v?o.setProperty(f,C):o[f]=C}}var Mt=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ar(o,s){if(s){if(Mt[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function En(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pt=null;function Gt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Br=null,qt=null,Ct=null;function hr(o){if(o=al(o)){if(typeof Br!="function")throw Error(r(280));var s=o.stateNode;s&&(s=nc(s),Br(o.stateNode,o.type,s))}}function st(o){qt?Ct?Ct.push(o):Ct=[o]:qt=o}function D(){if(qt){var o=qt,s=Ct;if(Ct=qt=null,hr(o),s)for(o=0;o<s.length;o++)hr(s[o])}}function V(o,s){return o(s)}function M(){}var k=!1;function Y(o,s,f){if(k)return o(s,f);k=!0;try{return V(o,s,f)}finally{k=!1,(qt!==null||Ct!==null)&&(M(),D())}}function ve(o,s){var f=o.stateNode;if(f===null)return null;var v=nc(f);if(v===null)return null;f=v[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(o=o.type,v=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!v;break e;default:o=!1}if(o)return null;if(f&&typeof f!="function")throw Error(r(231,s,typeof f));return f}var Te=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{Te=!1}function Ke(o,s,f,v,C,O,U,ee,se){var we=Array.prototype.slice.call(arguments,3);try{s.apply(f,we)}catch(Ie){this.onError(Ie)}}var ft=!1,Le=null,er=!1,mr=null,Wn={onError:function(o){ft=!0,Le=o}};function si(o,s,f,v,C,O,U,ee,se){ft=!1,Le=null,Ke.apply(Wn,arguments)}function Lr(o,s,f,v,C,O,U,ee,se){if(si.apply(this,arguments),ft){if(ft){var we=Le;ft=!1,Le=null}else throw Error(r(198));er||(er=!0,mr=we)}}function Kr(o){var s=o,f=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(f=s.return),o=s.return;while(o)}return s.tag===3?f:null}function On(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function eo(o){if(Kr(o)!==o)throw Error(r(188))}function d(o){var s=o.alternate;if(!s){if(s=Kr(o),s===null)throw Error(r(188));return s!==o?null:o}for(var f=o,v=s;;){var C=f.return;if(C===null)break;var O=C.alternate;if(O===null){if(v=C.return,v!==null){f=v;continue}break}if(C.child===O.child){for(O=C.child;O;){if(O===f)return eo(C),o;if(O===v)return eo(C),s;O=O.sibling}throw Error(r(188))}if(f.return!==v.return)f=C,v=O;else{for(var U=!1,ee=C.child;ee;){if(ee===f){U=!0,f=C,v=O;break}if(ee===v){U=!0,v=C,f=O;break}ee=ee.sibling}if(!U){for(ee=O.child;ee;){if(ee===f){U=!0,f=O,v=C;break}if(ee===v){U=!0,v=O,f=C;break}ee=ee.sibling}if(!U)throw Error(r(189))}}if(f.alternate!==v)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?o:s}function S(o){return o=d(o),o!==null?I(o):null}function I(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=I(o);if(s!==null)return s;o=o.sibling}return null}var J=t.unstable_scheduleCallback,pe=t.unstable_cancelCallback,Se=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Pe=t.unstable_now,ht=t.unstable_getCurrentPriorityLevel,wt=t.unstable_ImmediatePriority,tr=t.unstable_UserBlockingPriority,Vt=t.unstable_NormalPriority,Yr=t.unstable_LowPriority,li=t.unstable_IdlePriority,Fa=null,Nn=null;function h(o){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Fa,o,void 0,(o.current.flags&128)===128)}catch{}}var T=Math.clz32?Math.clz32:ie,q=Math.log,z=Math.LN2;function ie(o){return o>>>=0,o===0?32:31-(q(o)/z|0)|0}var Ee=64,xe=4194304;function Je(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function tt(o,s){var f=o.pendingLanes;if(f===0)return 0;var v=0,C=o.suspendedLanes,O=o.pingedLanes,U=f&268435455;if(U!==0){var ee=U&~C;ee!==0?v=Je(ee):(O&=U,O!==0&&(v=Je(O)))}else U=f&~C,U!==0?v=Je(U):O!==0&&(v=Je(O));if(v===0)return 0;if(s!==0&&s!==v&&(s&C)===0&&(C=v&-v,O=s&-s,C>=O||C===16&&(O&4194240)!==0))return s;if((v&4)!==0&&(v|=f&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=v;0<s;)f=31-T(s),C=1<<f,v|=o[f],s&=~C;return v}function xt(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kt(o,s){for(var f=o.suspendedLanes,v=o.pingedLanes,C=o.expirationTimes,O=o.pendingLanes;0<O;){var U=31-T(O),ee=1<<U,se=C[U];se===-1?((ee&f)===0||(ee&v)!==0)&&(C[U]=xt(ee,s)):se<=s&&(o.expiredLanes|=ee),O&=~ee}}function xr(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function ui(){var o=Ee;return Ee<<=1,(Ee&4194240)===0&&(Ee=64),o}function ci(o){for(var s=[],f=0;31>f;f++)s.push(o);return s}function di(o,s,f){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-T(s),o[s]=f}function to(o,s){var f=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var v=o.eventTimes;for(o=o.expirationTimes;0<f;){var C=31-T(f),O=1<<C;s[C]=0,v[C]=-1,o[C]=-1,f&=~O}}function pi(o,s){var f=o.entangledLanes|=s;for(o=o.entanglements;f;){var v=31-T(f),C=1<<v;C&s|o[v]&s&&(o[v]|=s),f&=~C}}var Wt=0;function $b(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Vb,Jp,Ub,Jb,zb,zp=!1,Vu=[],ro=null,no=null,io=null,Js=new Map,zs=new Map,oo=[],dF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hb(o,s){switch(o){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":io=null;break;case"pointerover":case"pointerout":Js.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(s.pointerId)}}function Hs(o,s,f,v,C,O){return o===null||o.nativeEvent!==O?(o={blockedOn:s,domEventName:f,eventSystemFlags:v,nativeEvent:O,targetContainers:[C]},s!==null&&(s=al(s),s!==null&&Jp(s)),o):(o.eventSystemFlags|=v,s=o.targetContainers,C!==null&&s.indexOf(C)===-1&&s.push(C),o)}function pF(o,s,f,v,C){switch(s){case"focusin":return ro=Hs(ro,o,s,f,v,C),!0;case"dragenter":return no=Hs(no,o,s,f,v,C),!0;case"mouseover":return io=Hs(io,o,s,f,v,C),!0;case"pointerover":var O=C.pointerId;return Js.set(O,Hs(Js.get(O)||null,o,s,f,v,C)),!0;case"gotpointercapture":return O=C.pointerId,zs.set(O,Hs(zs.get(O)||null,o,s,f,v,C)),!0}return!1}function Wb(o){var s=Go(o.target);if(s!==null){var f=Kr(s);if(f!==null){if(s=f.tag,s===13){if(s=On(f),s!==null){o.blockedOn=s,zb(o.priority,function(){Ub(f)});return}}else if(s===3&&f.stateNode.current.memoizedState.isDehydrated){o.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Uu(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var f=Wp(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(f===null){f=o.nativeEvent;var v=new f.constructor(f.type,f);Pt=v,f.target.dispatchEvent(v),Pt=null}else return s=al(f),s!==null&&Jp(s),o.blockedOn=f,!1;s.shift()}return!0}function Gb(o,s,f){Uu(o)&&f.delete(s)}function fF(){zp=!1,ro!==null&&Uu(ro)&&(ro=null),no!==null&&Uu(no)&&(no=null),io!==null&&Uu(io)&&(io=null),Js.forEach(Gb),zs.forEach(Gb)}function Ws(o,s){o.blockedOn===s&&(o.blockedOn=null,zp||(zp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fF)))}function Gs(o){function s(C){return Ws(C,o)}if(0<Vu.length){Ws(Vu[0],o);for(var f=1;f<Vu.length;f++){var v=Vu[f];v.blockedOn===o&&(v.blockedOn=null)}}for(ro!==null&&Ws(ro,o),no!==null&&Ws(no,o),io!==null&&Ws(io,o),Js.forEach(s),zs.forEach(s),f=0;f<oo.length;f++)v=oo[f],v.blockedOn===o&&(v.blockedOn=null);for(;0<oo.length&&(f=oo[0],f.blockedOn===null);)Wb(f),f.blockedOn===null&&oo.shift()}var ka=B.ReactCurrentBatchConfig,Ju=!0;function hF(o,s,f,v){var C=Wt,O=ka.transition;ka.transition=null;try{Wt=1,Hp(o,s,f,v)}finally{Wt=C,ka.transition=O}}function mF(o,s,f,v){var C=Wt,O=ka.transition;ka.transition=null;try{Wt=4,Hp(o,s,f,v)}finally{Wt=C,ka.transition=O}}function Hp(o,s,f,v){if(Ju){var C=Wp(o,s,f,v);if(C===null)df(o,s,v,zu,f),Hb(o,v);else if(pF(C,o,s,f,v))v.stopPropagation();else if(Hb(o,v),s&4&&-1<dF.indexOf(o)){for(;C!==null;){var O=al(C);if(O!==null&&Vb(O),O=Wp(o,s,f,v),O===null&&df(o,s,v,zu,f),O===C)break;C=O}C!==null&&v.stopPropagation()}else df(o,s,v,null,f)}}var zu=null;function Wp(o,s,f,v){if(zu=null,o=Gt(v),o=Go(o),o!==null)if(s=Kr(o),s===null)o=null;else if(f=s.tag,f===13){if(o=On(s),o!==null)return o;o=null}else if(f===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return zu=o,null}function Kb(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ht()){case wt:return 1;case tr:return 4;case Vt:case Yr:return 16;case li:return 536870912;default:return 16}default:return 16}}var ao=null,Gp=null,Hu=null;function Yb(){if(Hu)return Hu;var o,s=Gp,f=s.length,v,C="value"in ao?ao.value:ao.textContent,O=C.length;for(o=0;o<f&&s[o]===C[o];o++);var U=f-o;for(v=1;v<=U&&s[f-v]===C[O-v];v++);return Hu=C.slice(o,1<v?1-v:void 0)}function Wu(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Gu(){return!0}function Xb(){return!1}function wn(o){function s(f,v,C,O,U){this._reactName=f,this._targetInst=C,this.type=v,this.nativeEvent=O,this.target=U,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(f=o[ee],this[ee]=f?f(O):O[ee]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Gu:Xb,this.isPropagationStopped=Xb,this}return Ce(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Gu)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Gu)},persist:function(){},isPersistent:Gu}),s}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kp=wn(Ba),Ks=Ce({},Ba,{view:0,detail:0}),yF=wn(Ks),Yp,Xp,Ys,Ku=Ce({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ys&&(Ys&&o.type==="mousemove"?(Yp=o.screenX-Ys.screenX,Xp=o.screenY-Ys.screenY):Xp=Yp=0,Ys=o),Yp)},movementY:function(o){return"movementY"in o?o.movementY:Xp}}),Qb=wn(Ku),gF=Ce({},Ku,{dataTransfer:0}),bF=wn(gF),vF=Ce({},Ks,{relatedTarget:0}),Qp=wn(vF),EF=Ce({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),wF=wn(EF),SF=Ce({},Ba,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),AF=wn(SF),_F=Ce({},Ba,{data:0}),Zb=wn(_F),CF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TF={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RF(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=xF[o])?!!s[o]:!1}function Zp(){return RF}var DF=Ce({},Ks,{key:function(o){if(o.key){var s=CF[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Wu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?TF[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zp,charCode:function(o){return o.type==="keypress"?Wu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Wu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),PF=wn(DF),OF=Ce({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ev=wn(OF),NF=Ce({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zp}),IF=wn(NF),FF=Ce({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),kF=wn(FF),BF=Ce({},Ku,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),LF=wn(BF),MF=[9,13,27,32],ef=u&&"CompositionEvent"in window,Xs=null;u&&"documentMode"in document&&(Xs=document.documentMode);var qF=u&&"TextEvent"in window&&!Xs,tv=u&&(!ef||Xs&&8<Xs&&11>=Xs),rv=" ",nv=!1;function iv(o,s){switch(o){case"keyup":return MF.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ov(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var La=!1;function jF(o,s){switch(o){case"compositionend":return ov(s);case"keypress":return s.which!==32?null:(nv=!0,rv);case"textInput":return o=s.data,o===rv&&nv?null:o;default:return null}}function $F(o,s){if(La)return o==="compositionend"||!ef&&iv(o,s)?(o=Yb(),Hu=Gp=ao=null,La=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return tv&&s.locale!=="ko"?null:s.data;default:return null}}var VF={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function av(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!VF[o.type]:s==="textarea"}function sv(o,s,f,v){st(v),s=ec(s,"onChange"),0<s.length&&(f=new Kp("onChange","change",null,f,v),o.push({event:f,listeners:s}))}var Qs=null,Zs=null;function UF(o){Cv(o,0)}function Yu(o){var s=Va(o);if(Ue(s))return o}function JF(o,s){if(o==="change")return s}var lv=!1;if(u){var tf;if(u){var rf="oninput"in document;if(!rf){var uv=document.createElement("div");uv.setAttribute("oninput","return;"),rf=typeof uv.oninput=="function"}tf=rf}else tf=!1;lv=tf&&(!document.documentMode||9<document.documentMode)}function cv(){Qs&&(Qs.detachEvent("onpropertychange",dv),Zs=Qs=null)}function dv(o){if(o.propertyName==="value"&&Yu(Zs)){var s=[];sv(s,Zs,o,Gt(o)),Y(UF,s)}}function zF(o,s,f){o==="focusin"?(cv(),Qs=s,Zs=f,Qs.attachEvent("onpropertychange",dv)):o==="focusout"&&cv()}function HF(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Yu(Zs)}function WF(o,s){if(o==="click")return Yu(s)}function GF(o,s){if(o==="input"||o==="change")return Yu(s)}function KF(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Gn=typeof Object.is=="function"?Object.is:KF;function el(o,s){if(Gn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var f=Object.keys(o),v=Object.keys(s);if(f.length!==v.length)return!1;for(v=0;v<f.length;v++){var C=f[v];if(!p.call(s,C)||!Gn(o[C],s[C]))return!1}return!0}function pv(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function fv(o,s){var f=pv(o);o=0;for(var v;f;){if(f.nodeType===3){if(v=o+f.textContent.length,o<=s&&v>=s)return{node:f,offset:s-o};o=v}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=pv(f)}}function hv(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?hv(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function mv(){for(var o=window,s=Ge();s instanceof o.HTMLIFrameElement;){try{var f=typeof s.contentWindow.location.href=="string"}catch{f=!1}if(f)o=s.contentWindow;else break;s=Ge(o.document)}return s}function nf(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function YF(o){var s=mv(),f=o.focusedElem,v=o.selectionRange;if(s!==f&&f&&f.ownerDocument&&hv(f.ownerDocument.documentElement,f)){if(v!==null&&nf(f)){if(s=v.start,o=v.end,o===void 0&&(o=s),"selectionStart"in f)f.selectionStart=s,f.selectionEnd=Math.min(o,f.value.length);else if(o=(s=f.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var C=f.textContent.length,O=Math.min(v.start,C);v=v.end===void 0?O:Math.min(v.end,C),!o.extend&&O>v&&(C=v,v=O,O=C),C=fv(f,O);var U=fv(f,v);C&&U&&(o.rangeCount!==1||o.anchorNode!==C.node||o.anchorOffset!==C.offset||o.focusNode!==U.node||o.focusOffset!==U.offset)&&(s=s.createRange(),s.setStart(C.node,C.offset),o.removeAllRanges(),O>v?(o.addRange(s),o.extend(U.node,U.offset)):(s.setEnd(U.node,U.offset),o.addRange(s)))}}for(s=[],o=f;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<s.length;f++)o=s[f],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var XF=u&&"documentMode"in document&&11>=document.documentMode,Ma=null,of=null,tl=null,af=!1;function yv(o,s,f){var v=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;af||Ma==null||Ma!==Ge(v)||(v=Ma,"selectionStart"in v&&nf(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),tl&&el(tl,v)||(tl=v,v=ec(of,"onSelect"),0<v.length&&(s=new Kp("onSelect","select",null,s,f),o.push({event:s,listeners:v}),s.target=Ma)))}function Xu(o,s){var f={};return f[o.toLowerCase()]=s.toLowerCase(),f["Webkit"+o]="webkit"+s,f["Moz"+o]="moz"+s,f}var qa={animationend:Xu("Animation","AnimationEnd"),animationiteration:Xu("Animation","AnimationIteration"),animationstart:Xu("Animation","AnimationStart"),transitionend:Xu("Transition","TransitionEnd")},sf={},gv={};u&&(gv=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function Qu(o){if(sf[o])return sf[o];if(!qa[o])return o;var s=qa[o],f;for(f in s)if(s.hasOwnProperty(f)&&f in gv)return sf[o]=s[f];return o}var bv=Qu("animationend"),vv=Qu("animationiteration"),Ev=Qu("animationstart"),wv=Qu("transitionend"),Sv=new Map,Av="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function so(o,s){Sv.set(o,s),a(s,[o])}for(var lf=0;lf<Av.length;lf++){var uf=Av[lf],QF=uf.toLowerCase(),ZF=uf[0].toUpperCase()+uf.slice(1);so(QF,"on"+ZF)}so(bv,"onAnimationEnd"),so(vv,"onAnimationIteration"),so(Ev,"onAnimationStart"),so("dblclick","onDoubleClick"),so("focusin","onFocus"),so("focusout","onBlur"),so(wv,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ek=new Set("cancel close invalid load scroll toggle".split(" ").concat(rl));function _v(o,s,f){var v=o.type||"unknown-event";o.currentTarget=f,Lr(v,s,void 0,o),o.currentTarget=null}function Cv(o,s){s=(s&4)!==0;for(var f=0;f<o.length;f++){var v=o[f],C=v.event;v=v.listeners;e:{var O=void 0;if(s)for(var U=v.length-1;0<=U;U--){var ee=v[U],se=ee.instance,we=ee.currentTarget;if(ee=ee.listener,se!==O&&C.isPropagationStopped())break e;_v(C,ee,we),O=se}else for(U=0;U<v.length;U++){if(ee=v[U],se=ee.instance,we=ee.currentTarget,ee=ee.listener,se!==O&&C.isPropagationStopped())break e;_v(C,ee,we),O=se}}}if(er)throw o=mr,er=!1,mr=null,o}function or(o,s){var f=s[gf];f===void 0&&(f=s[gf]=new Set);var v=o+"__bubble";f.has(v)||(Tv(s,o,2,!1),f.add(v))}function cf(o,s,f){var v=0;s&&(v|=4),Tv(f,o,v,s)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function nl(o){if(!o[Zu]){o[Zu]=!0,n.forEach(function(f){f!=="selectionchange"&&(ek.has(f)||cf(f,!1,o),cf(f,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Zu]||(s[Zu]=!0,cf("selectionchange",!1,s))}}function Tv(o,s,f,v){switch(Kb(s)){case 1:var C=hF;break;case 4:C=mF;break;default:C=Hp}f=C.bind(null,s,f,o),C=void 0,!Te||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(C=!0),v?C!==void 0?o.addEventListener(s,f,{capture:!0,passive:C}):o.addEventListener(s,f,!0):C!==void 0?o.addEventListener(s,f,{passive:C}):o.addEventListener(s,f,!1)}function df(o,s,f,v,C){var O=v;if((s&1)===0&&(s&2)===0&&v!==null)e:for(;;){if(v===null)return;var U=v.tag;if(U===3||U===4){var ee=v.stateNode.containerInfo;if(ee===C||ee.nodeType===8&&ee.parentNode===C)break;if(U===4)for(U=v.return;U!==null;){var se=U.tag;if((se===3||se===4)&&(se=U.stateNode.containerInfo,se===C||se.nodeType===8&&se.parentNode===C))return;U=U.return}for(;ee!==null;){if(U=Go(ee),U===null)return;if(se=U.tag,se===5||se===6){v=O=U;continue e}ee=ee.parentNode}}v=v.return}Y(function(){var we=O,Ie=Gt(f),Be=[];e:{var Ne=Sv.get(o);if(Ne!==void 0){var Ye=Kp,et=o;switch(o){case"keypress":if(Wu(f)===0)break e;case"keydown":case"keyup":Ye=PF;break;case"focusin":et="focus",Ye=Qp;break;case"focusout":et="blur",Ye=Qp;break;case"beforeblur":case"afterblur":Ye=Qp;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=Qb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=bF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=IF;break;case bv:case vv:case Ev:Ye=wF;break;case wv:Ye=kF;break;case"scroll":Ye=yF;break;case"wheel":Ye=LF;break;case"copy":case"cut":case"paste":Ye=AF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=ev}var rt=(s&4)!==0,_r=!rt&&o==="scroll",me=rt?Ne!==null?Ne+"Capture":null:Ne;rt=[];for(var ce=we,be;ce!==null;){be=ce;var qe=be.stateNode;if(be.tag===5&&qe!==null&&(be=qe,me!==null&&(qe=ve(ce,me),qe!=null&&rt.push(il(ce,qe,be)))),_r)break;ce=ce.return}0<rt.length&&(Ne=new Ye(Ne,et,null,f,Ie),Be.push({event:Ne,listeners:rt}))}}if((s&7)===0){e:{if(Ne=o==="mouseover"||o==="pointerover",Ye=o==="mouseout"||o==="pointerout",Ne&&f!==Pt&&(et=f.relatedTarget||f.fromElement)&&(Go(et)||et[Ti]))break e;if((Ye||Ne)&&(Ne=Ie.window===Ie?Ie:(Ne=Ie.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,Ye?(et=f.relatedTarget||f.toElement,Ye=we,et=et?Go(et):null,et!==null&&(_r=Kr(et),et!==_r||et.tag!==5&&et.tag!==6)&&(et=null)):(Ye=null,et=we),Ye!==et)){if(rt=Qb,qe="onMouseLeave",me="onMouseEnter",ce="mouse",(o==="pointerout"||o==="pointerover")&&(rt=ev,qe="onPointerLeave",me="onPointerEnter",ce="pointer"),_r=Ye==null?Ne:Va(Ye),be=et==null?Ne:Va(et),Ne=new rt(qe,ce+"leave",Ye,f,Ie),Ne.target=_r,Ne.relatedTarget=be,qe=null,Go(Ie)===we&&(rt=new rt(me,ce+"enter",et,f,Ie),rt.target=be,rt.relatedTarget=_r,qe=rt),_r=qe,Ye&&et)t:{for(rt=Ye,me=et,ce=0,be=rt;be;be=ja(be))ce++;for(be=0,qe=me;qe;qe=ja(qe))be++;for(;0<ce-be;)rt=ja(rt),ce--;for(;0<be-ce;)me=ja(me),be--;for(;ce--;){if(rt===me||me!==null&&rt===me.alternate)break t;rt=ja(rt),me=ja(me)}rt=null}else rt=null;Ye!==null&&xv(Be,Ne,Ye,rt,!1),et!==null&&_r!==null&&xv(Be,_r,et,rt,!0)}}e:{if(Ne=we?Va(we):window,Ye=Ne.nodeName&&Ne.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&Ne.type==="file")var ot=JF;else if(av(Ne))if(lv)ot=GF;else{ot=HF;var ut=zF}else(Ye=Ne.nodeName)&&Ye.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(ot=WF);if(ot&&(ot=ot(o,we))){sv(Be,ot,f,Ie);break e}ut&&ut(o,Ne,we),o==="focusout"&&(ut=Ne._wrapperState)&&ut.controlled&&Ne.type==="number"&&ur(Ne,"number",Ne.value)}switch(ut=we?Va(we):window,o){case"focusin":(av(ut)||ut.contentEditable==="true")&&(Ma=ut,of=we,tl=null);break;case"focusout":tl=of=Ma=null;break;case"mousedown":af=!0;break;case"contextmenu":case"mouseup":case"dragend":af=!1,yv(Be,f,Ie);break;case"selectionchange":if(XF)break;case"keydown":case"keyup":yv(Be,f,Ie)}var ct;if(ef)e:{switch(o){case"compositionstart":var yt="onCompositionStart";break e;case"compositionend":yt="onCompositionEnd";break e;case"compositionupdate":yt="onCompositionUpdate";break e}yt=void 0}else La?iv(o,f)&&(yt="onCompositionEnd"):o==="keydown"&&f.keyCode===229&&(yt="onCompositionStart");yt&&(tv&&f.locale!=="ko"&&(La||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&La&&(ct=Yb()):(ao=Ie,Gp="value"in ao?ao.value:ao.textContent,La=!0)),ut=ec(we,yt),0<ut.length&&(yt=new Zb(yt,o,null,f,Ie),Be.push({event:yt,listeners:ut}),ct?yt.data=ct:(ct=ov(f),ct!==null&&(yt.data=ct)))),(ct=qF?jF(o,f):$F(o,f))&&(we=ec(we,"onBeforeInput"),0<we.length&&(Ie=new Zb("onBeforeInput","beforeinput",null,f,Ie),Be.push({event:Ie,listeners:we}),Ie.data=ct))}Cv(Be,s)})}function il(o,s,f){return{instance:o,listener:s,currentTarget:f}}function ec(o,s){for(var f=s+"Capture",v=[];o!==null;){var C=o,O=C.stateNode;C.tag===5&&O!==null&&(C=O,O=ve(o,f),O!=null&&v.unshift(il(o,O,C)),O=ve(o,s),O!=null&&v.push(il(o,O,C))),o=o.return}return v}function ja(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function xv(o,s,f,v,C){for(var O=s._reactName,U=[];f!==null&&f!==v;){var ee=f,se=ee.alternate,we=ee.stateNode;if(se!==null&&se===v)break;ee.tag===5&&we!==null&&(ee=we,C?(se=ve(f,O),se!=null&&U.unshift(il(f,se,ee))):C||(se=ve(f,O),se!=null&&U.push(il(f,se,ee)))),f=f.return}U.length!==0&&o.push({event:s,listeners:U})}var tk=/\r\n?/g,rk=/\u0000|\uFFFD/g;function Rv(o){return(typeof o=="string"?o:""+o).replace(tk,`
|
|
1119
|
+
`).replace(rk,"")}function tc(o,s,f){if(s=Rv(s),Rv(o)!==s&&f)throw Error(r(425))}function rc(){}var pf=null,ff=null;function hf(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var mf=typeof setTimeout=="function"?setTimeout:void 0,nk=typeof clearTimeout=="function"?clearTimeout:void 0,Dv=typeof Promise=="function"?Promise:void 0,ik=typeof queueMicrotask=="function"?queueMicrotask:typeof Dv<"u"?function(o){return Dv.resolve(null).then(o).catch(ok)}:mf;function ok(o){setTimeout(function(){throw o})}function yf(o,s){var f=s,v=0;do{var C=f.nextSibling;if(o.removeChild(f),C&&C.nodeType===8)if(f=C.data,f==="/$"){if(v===0){o.removeChild(C),Gs(s);return}v--}else f!=="$"&&f!=="$?"&&f!=="$!"||v++;f=C}while(f);Gs(s)}function lo(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function Pv(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var f=o.data;if(f==="$"||f==="$!"||f==="$?"){if(s===0)return o;s--}else f==="/$"&&s++}o=o.previousSibling}return null}var $a=Math.random().toString(36).slice(2),fi="__reactFiber$"+$a,ol="__reactProps$"+$a,Ti="__reactContainer$"+$a,gf="__reactEvents$"+$a,ak="__reactListeners$"+$a,sk="__reactHandles$"+$a;function Go(o){var s=o[fi];if(s)return s;for(var f=o.parentNode;f;){if(s=f[Ti]||f[fi]){if(f=s.alternate,s.child!==null||f!==null&&f.child!==null)for(o=Pv(o);o!==null;){if(f=o[fi])return f;o=Pv(o)}return s}o=f,f=o.parentNode}return null}function al(o){return o=o[fi]||o[Ti],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Va(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function nc(o){return o[ol]||null}var bf=[],Ua=-1;function uo(o){return{current:o}}function ar(o){0>Ua||(o.current=bf[Ua],bf[Ua]=null,Ua--)}function rr(o,s){Ua++,bf[Ua]=o.current,o.current=s}var co={},Xr=uo(co),pn=uo(!1),Ko=co;function Ja(o,s){var f=o.type.contextTypes;if(!f)return co;var v=o.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===s)return v.__reactInternalMemoizedMaskedChildContext;var C={},O;for(O in f)C[O]=s[O];return v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=C),C}function fn(o){return o=o.childContextTypes,o!=null}function ic(){ar(pn),ar(Xr)}function Ov(o,s,f){if(Xr.current!==co)throw Error(r(168));rr(Xr,s),rr(pn,f)}function Nv(o,s,f){var v=o.stateNode;if(s=s.childContextTypes,typeof v.getChildContext!="function")return f;v=v.getChildContext();for(var C in v)if(!(C in s))throw Error(r(108,Ve(o)||"Unknown",C));return Ce({},f,v)}function oc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||co,Ko=Xr.current,rr(Xr,o),rr(pn,pn.current),!0}function Iv(o,s,f){var v=o.stateNode;if(!v)throw Error(r(169));f?(o=Nv(o,s,Ko),v.__reactInternalMemoizedMergedChildContext=o,ar(pn),ar(Xr),rr(Xr,o)):ar(pn),rr(pn,f)}var xi=null,ac=!1,vf=!1;function Fv(o){xi===null?xi=[o]:xi.push(o)}function lk(o){ac=!0,Fv(o)}function po(){if(!vf&&xi!==null){vf=!0;var o=0,s=Wt;try{var f=xi;for(Wt=1;o<f.length;o++){var v=f[o];do v=v(!0);while(v!==null)}xi=null,ac=!1}catch(C){throw xi!==null&&(xi=xi.slice(o+1)),J(wt,po),C}finally{Wt=s,vf=!1}}return null}var za=[],Ha=0,sc=null,lc=0,In=[],Fn=0,Yo=null,Ri=1,Di="";function Xo(o,s){za[Ha++]=lc,za[Ha++]=sc,sc=o,lc=s}function kv(o,s,f){In[Fn++]=Ri,In[Fn++]=Di,In[Fn++]=Yo,Yo=o;var v=Ri;o=Di;var C=32-T(v)-1;v&=~(1<<C),f+=1;var O=32-T(s)+C;if(30<O){var U=C-C%5;O=(v&(1<<U)-1).toString(32),v>>=U,C-=U,Ri=1<<32-T(s)+C|f<<C|v,Di=O+o}else Ri=1<<O|f<<C|v,Di=o}function Ef(o){o.return!==null&&(Xo(o,1),kv(o,1,0))}function wf(o){for(;o===sc;)sc=za[--Ha],za[Ha]=null,lc=za[--Ha],za[Ha]=null;for(;o===Yo;)Yo=In[--Fn],In[Fn]=null,Di=In[--Fn],In[Fn]=null,Ri=In[--Fn],In[Fn]=null}var Sn=null,An=null,cr=!1,Kn=null;function Bv(o,s){var f=Mn(5,null,null,0);f.elementType="DELETED",f.stateNode=s,f.return=o,s=o.deletions,s===null?(o.deletions=[f],o.flags|=16):s.push(f)}function Lv(o,s){switch(o.tag){case 5:var f=o.type;return s=s.nodeType!==1||f.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Sn=o,An=lo(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Sn=o,An=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(f=Yo!==null?{id:Ri,overflow:Di}:null,o.memoizedState={dehydrated:s,treeContext:f,retryLane:1073741824},f=Mn(18,null,null,0),f.stateNode=s,f.return=o,o.child=f,Sn=o,An=null,!0):!1;default:return!1}}function Sf(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Af(o){if(cr){var s=An;if(s){var f=s;if(!Lv(o,s)){if(Sf(o))throw Error(r(418));s=lo(f.nextSibling);var v=Sn;s&&Lv(o,s)?Bv(v,f):(o.flags=o.flags&-4097|2,cr=!1,Sn=o)}}else{if(Sf(o))throw Error(r(418));o.flags=o.flags&-4097|2,cr=!1,Sn=o}}}function Mv(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Sn=o}function uc(o){if(o!==Sn)return!1;if(!cr)return Mv(o),cr=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!hf(o.type,o.memoizedProps)),s&&(s=An)){if(Sf(o))throw qv(),Error(r(418));for(;s;)Bv(o,s),s=lo(s.nextSibling)}if(Mv(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var f=o.data;if(f==="/$"){if(s===0){An=lo(o.nextSibling);break e}s--}else f!=="$"&&f!=="$!"&&f!=="$?"||s++}o=o.nextSibling}An=null}}else An=Sn?lo(o.stateNode.nextSibling):null;return!0}function qv(){for(var o=An;o;)o=lo(o.nextSibling)}function Wa(){An=Sn=null,cr=!1}function _f(o){Kn===null?Kn=[o]:Kn.push(o)}var uk=B.ReactCurrentBatchConfig;function sl(o,s,f){if(o=f.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(r(309));var v=f.stateNode}if(!v)throw Error(r(147,o));var C=v,O=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===O?s.ref:(s=function(U){var ee=C.refs;U===null?delete ee[O]:ee[O]=U},s._stringRef=O,s)}if(typeof o!="string")throw Error(r(284));if(!f._owner)throw Error(r(290,o))}return o}function cc(o,s){throw o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function jv(o){var s=o._init;return s(o._payload)}function $v(o){function s(me,ce){if(o){var be=me.deletions;be===null?(me.deletions=[ce],me.flags|=16):be.push(ce)}}function f(me,ce){if(!o)return null;for(;ce!==null;)s(me,ce),ce=ce.sibling;return null}function v(me,ce){for(me=new Map;ce!==null;)ce.key!==null?me.set(ce.key,ce):me.set(ce.index,ce),ce=ce.sibling;return me}function C(me,ce){return me=Eo(me,ce),me.index=0,me.sibling=null,me}function O(me,ce,be){return me.index=be,o?(be=me.alternate,be!==null?(be=be.index,be<ce?(me.flags|=2,ce):be):(me.flags|=2,ce)):(me.flags|=1048576,ce)}function U(me){return o&&me.alternate===null&&(me.flags|=2),me}function ee(me,ce,be,qe){return ce===null||ce.tag!==6?(ce=mh(be,me.mode,qe),ce.return=me,ce):(ce=C(ce,be),ce.return=me,ce)}function se(me,ce,be,qe){var ot=be.type;return ot===P?Ie(me,ce,be.props.children,qe,be.key):ce!==null&&(ce.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ne&&jv(ot)===ce.type)?(qe=C(ce,be.props),qe.ref=sl(me,ce,be),qe.return=me,qe):(qe=Fc(be.type,be.key,be.props,null,me.mode,qe),qe.ref=sl(me,ce,be),qe.return=me,qe)}function we(me,ce,be,qe){return ce===null||ce.tag!==4||ce.stateNode.containerInfo!==be.containerInfo||ce.stateNode.implementation!==be.implementation?(ce=yh(be,me.mode,qe),ce.return=me,ce):(ce=C(ce,be.children||[]),ce.return=me,ce)}function Ie(me,ce,be,qe,ot){return ce===null||ce.tag!==7?(ce=oa(be,me.mode,qe,ot),ce.return=me,ce):(ce=C(ce,be),ce.return=me,ce)}function Be(me,ce,be){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ce=mh(""+ce,me.mode,be),ce.return=me,ce;if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case F:return be=Fc(ce.type,ce.key,ce.props,null,me.mode,be),be.ref=sl(me,null,ce),be.return=me,be;case E:return ce=yh(ce,me.mode,be),ce.return=me,ce;case ne:var qe=ce._init;return Be(me,qe(ce._payload),be)}if(mt(ce)||Ae(ce))return ce=oa(ce,me.mode,be,null),ce.return=me,ce;cc(me,ce)}return null}function Ne(me,ce,be,qe){var ot=ce!==null?ce.key:null;if(typeof be=="string"&&be!==""||typeof be=="number")return ot!==null?null:ee(me,ce,""+be,qe);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case F:return be.key===ot?se(me,ce,be,qe):null;case E:return be.key===ot?we(me,ce,be,qe):null;case ne:return ot=be._init,Ne(me,ce,ot(be._payload),qe)}if(mt(be)||Ae(be))return ot!==null?null:Ie(me,ce,be,qe,null);cc(me,be)}return null}function Ye(me,ce,be,qe,ot){if(typeof qe=="string"&&qe!==""||typeof qe=="number")return me=me.get(be)||null,ee(ce,me,""+qe,ot);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case F:return me=me.get(qe.key===null?be:qe.key)||null,se(ce,me,qe,ot);case E:return me=me.get(qe.key===null?be:qe.key)||null,we(ce,me,qe,ot);case ne:var ut=qe._init;return Ye(me,ce,be,ut(qe._payload),ot)}if(mt(qe)||Ae(qe))return me=me.get(be)||null,Ie(ce,me,qe,ot,null);cc(ce,qe)}return null}function et(me,ce,be,qe){for(var ot=null,ut=null,ct=ce,yt=ce=0,jr=null;ct!==null&&yt<be.length;yt++){ct.index>yt?(jr=ct,ct=null):jr=ct.sibling;var jt=Ne(me,ct,be[yt],qe);if(jt===null){ct===null&&(ct=jr);break}o&&ct&&jt.alternate===null&&s(me,ct),ce=O(jt,ce,yt),ut===null?ot=jt:ut.sibling=jt,ut=jt,ct=jr}if(yt===be.length)return f(me,ct),cr&&Xo(me,yt),ot;if(ct===null){for(;yt<be.length;yt++)ct=Be(me,be[yt],qe),ct!==null&&(ce=O(ct,ce,yt),ut===null?ot=ct:ut.sibling=ct,ut=ct);return cr&&Xo(me,yt),ot}for(ct=v(me,ct);yt<be.length;yt++)jr=Ye(ct,me,yt,be[yt],qe),jr!==null&&(o&&jr.alternate!==null&&ct.delete(jr.key===null?yt:jr.key),ce=O(jr,ce,yt),ut===null?ot=jr:ut.sibling=jr,ut=jr);return o&&ct.forEach(function(wo){return s(me,wo)}),cr&&Xo(me,yt),ot}function rt(me,ce,be,qe){var ot=Ae(be);if(typeof ot!="function")throw Error(r(150));if(be=ot.call(be),be==null)throw Error(r(151));for(var ut=ot=null,ct=ce,yt=ce=0,jr=null,jt=be.next();ct!==null&&!jt.done;yt++,jt=be.next()){ct.index>yt?(jr=ct,ct=null):jr=ct.sibling;var wo=Ne(me,ct,jt.value,qe);if(wo===null){ct===null&&(ct=jr);break}o&&ct&&wo.alternate===null&&s(me,ct),ce=O(wo,ce,yt),ut===null?ot=wo:ut.sibling=wo,ut=wo,ct=jr}if(jt.done)return f(me,ct),cr&&Xo(me,yt),ot;if(ct===null){for(;!jt.done;yt++,jt=be.next())jt=Be(me,jt.value,qe),jt!==null&&(ce=O(jt,ce,yt),ut===null?ot=jt:ut.sibling=jt,ut=jt);return cr&&Xo(me,yt),ot}for(ct=v(me,ct);!jt.done;yt++,jt=be.next())jt=Ye(ct,me,yt,jt.value,qe),jt!==null&&(o&&jt.alternate!==null&&ct.delete(jt.key===null?yt:jt.key),ce=O(jt,ce,yt),ut===null?ot=jt:ut.sibling=jt,ut=jt);return o&&ct.forEach(function(Vk){return s(me,Vk)}),cr&&Xo(me,yt),ot}function _r(me,ce,be,qe){if(typeof be=="object"&&be!==null&&be.type===P&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case F:e:{for(var ot=be.key,ut=ce;ut!==null;){if(ut.key===ot){if(ot=be.type,ot===P){if(ut.tag===7){f(me,ut.sibling),ce=C(ut,be.props.children),ce.return=me,me=ce;break e}}else if(ut.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ne&&jv(ot)===ut.type){f(me,ut.sibling),ce=C(ut,be.props),ce.ref=sl(me,ut,be),ce.return=me,me=ce;break e}f(me,ut);break}else s(me,ut);ut=ut.sibling}be.type===P?(ce=oa(be.props.children,me.mode,qe,be.key),ce.return=me,me=ce):(qe=Fc(be.type,be.key,be.props,null,me.mode,qe),qe.ref=sl(me,ce,be),qe.return=me,me=qe)}return U(me);case E:e:{for(ut=be.key;ce!==null;){if(ce.key===ut)if(ce.tag===4&&ce.stateNode.containerInfo===be.containerInfo&&ce.stateNode.implementation===be.implementation){f(me,ce.sibling),ce=C(ce,be.children||[]),ce.return=me,me=ce;break e}else{f(me,ce);break}else s(me,ce);ce=ce.sibling}ce=yh(be,me.mode,qe),ce.return=me,me=ce}return U(me);case ne:return ut=be._init,_r(me,ce,ut(be._payload),qe)}if(mt(be))return et(me,ce,be,qe);if(Ae(be))return rt(me,ce,be,qe);cc(me,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,ce!==null&&ce.tag===6?(f(me,ce.sibling),ce=C(ce,be),ce.return=me,me=ce):(f(me,ce),ce=mh(be,me.mode,qe),ce.return=me,me=ce),U(me)):f(me,ce)}return _r}var Ga=$v(!0),Vv=$v(!1),dc=uo(null),pc=null,Ka=null,Cf=null;function Tf(){Cf=Ka=pc=null}function xf(o){var s=dc.current;ar(dc),o._currentValue=s}function Rf(o,s,f){for(;o!==null;){var v=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,v!==null&&(v.childLanes|=s)):v!==null&&(v.childLanes&s)!==s&&(v.childLanes|=s),o===f)break;o=o.return}}function Ya(o,s){pc=o,Cf=Ka=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(hn=!0),o.firstContext=null)}function kn(o){var s=o._currentValue;if(Cf!==o)if(o={context:o,memoizedValue:s,next:null},Ka===null){if(pc===null)throw Error(r(308));Ka=o,pc.dependencies={lanes:0,firstContext:o}}else Ka=Ka.next=o;return s}var Qo=null;function Df(o){Qo===null?Qo=[o]:Qo.push(o)}function Uv(o,s,f,v){var C=s.interleaved;return C===null?(f.next=f,Df(s)):(f.next=C.next,C.next=f),s.interleaved=f,Pi(o,v)}function Pi(o,s){o.lanes|=s;var f=o.alternate;for(f!==null&&(f.lanes|=s),f=o,o=o.return;o!==null;)o.childLanes|=s,f=o.alternate,f!==null&&(f.childLanes|=s),f=o,o=o.return;return f.tag===3?f.stateNode:null}var fo=!1;function Pf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jv(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Oi(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function ho(o,s,f){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(It&2)!==0){var C=v.pending;return C===null?s.next=s:(s.next=C.next,C.next=s),v.pending=s,Pi(o,f)}return C=v.interleaved,C===null?(s.next=s,Df(v)):(s.next=C.next,C.next=s),v.interleaved=s,Pi(o,f)}function fc(o,s,f){if(s=s.updateQueue,s!==null&&(s=s.shared,(f&4194240)!==0)){var v=s.lanes;v&=o.pendingLanes,f|=v,s.lanes=f,pi(o,f)}}function zv(o,s){var f=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,f===v)){var C=null,O=null;if(f=f.firstBaseUpdate,f!==null){do{var U={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};O===null?C=O=U:O=O.next=U,f=f.next}while(f!==null);O===null?C=O=s:O=O.next=s}else C=O=s;f={baseState:v.baseState,firstBaseUpdate:C,lastBaseUpdate:O,shared:v.shared,effects:v.effects},o.updateQueue=f;return}o=f.lastBaseUpdate,o===null?f.firstBaseUpdate=s:o.next=s,f.lastBaseUpdate=s}function hc(o,s,f,v){var C=o.updateQueue;fo=!1;var O=C.firstBaseUpdate,U=C.lastBaseUpdate,ee=C.shared.pending;if(ee!==null){C.shared.pending=null;var se=ee,we=se.next;se.next=null,U===null?O=we:U.next=we,U=se;var Ie=o.alternate;Ie!==null&&(Ie=Ie.updateQueue,ee=Ie.lastBaseUpdate,ee!==U&&(ee===null?Ie.firstBaseUpdate=we:ee.next=we,Ie.lastBaseUpdate=se))}if(O!==null){var Be=C.baseState;U=0,Ie=we=se=null,ee=O;do{var Ne=ee.lane,Ye=ee.eventTime;if((v&Ne)===Ne){Ie!==null&&(Ie=Ie.next={eventTime:Ye,lane:0,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null});e:{var et=o,rt=ee;switch(Ne=s,Ye=f,rt.tag){case 1:if(et=rt.payload,typeof et=="function"){Be=et.call(Ye,Be,Ne);break e}Be=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=rt.payload,Ne=typeof et=="function"?et.call(Ye,Be,Ne):et,Ne==null)break e;Be=Ce({},Be,Ne);break e;case 2:fo=!0}}ee.callback!==null&&ee.lane!==0&&(o.flags|=64,Ne=C.effects,Ne===null?C.effects=[ee]:Ne.push(ee))}else Ye={eventTime:Ye,lane:Ne,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},Ie===null?(we=Ie=Ye,se=Be):Ie=Ie.next=Ye,U|=Ne;if(ee=ee.next,ee===null){if(ee=C.shared.pending,ee===null)break;Ne=ee,ee=Ne.next,Ne.next=null,C.lastBaseUpdate=Ne,C.shared.pending=null}}while(!0);if(Ie===null&&(se=Be),C.baseState=se,C.firstBaseUpdate=we,C.lastBaseUpdate=Ie,s=C.shared.interleaved,s!==null){C=s;do U|=C.lane,C=C.next;while(C!==s)}else O===null&&(C.shared.lanes=0);ta|=U,o.lanes=U,o.memoizedState=Be}}function Hv(o,s,f){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var v=o[s],C=v.callback;if(C!==null){if(v.callback=null,v=f,typeof C!="function")throw Error(r(191,C));C.call(v)}}}var ll={},hi=uo(ll),ul=uo(ll),cl=uo(ll);function Zo(o){if(o===ll)throw Error(r(174));return o}function Of(o,s){switch(rr(cl,s),rr(ul,o),rr(hi,ll),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:at(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=at(s,o)}ar(hi),rr(hi,s)}function Xa(){ar(hi),ar(ul),ar(cl)}function Wv(o){Zo(cl.current);var s=Zo(hi.current),f=at(s,o.type);s!==f&&(rr(ul,o),rr(hi,f))}function Nf(o){ul.current===o&&(ar(hi),ar(ul))}var yr=uo(0);function mc(o){for(var s=o;s!==null;){if(s.tag===13){var f=s.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var If=[];function Ff(){for(var o=0;o<If.length;o++)If[o]._workInProgressVersionPrimary=null;If.length=0}var yc=B.ReactCurrentDispatcher,kf=B.ReactCurrentBatchConfig,ea=0,gr=null,Or=null,Mr=null,gc=!1,dl=!1,pl=0,ck=0;function Qr(){throw Error(r(321))}function Bf(o,s){if(s===null)return!1;for(var f=0;f<s.length&&f<o.length;f++)if(!Gn(o[f],s[f]))return!1;return!0}function Lf(o,s,f,v,C,O){if(ea=O,gr=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,yc.current=o===null||o.memoizedState===null?hk:mk,o=f(v,C),dl){O=0;do{if(dl=!1,pl=0,25<=O)throw Error(r(301));O+=1,Mr=Or=null,s.updateQueue=null,yc.current=yk,o=f(v,C)}while(dl)}if(yc.current=Ec,s=Or!==null&&Or.next!==null,ea=0,Mr=Or=gr=null,gc=!1,s)throw Error(r(300));return o}function Mf(){var o=pl!==0;return pl=0,o}function mi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mr===null?gr.memoizedState=Mr=o:Mr=Mr.next=o,Mr}function Bn(){if(Or===null){var o=gr.alternate;o=o!==null?o.memoizedState:null}else o=Or.next;var s=Mr===null?gr.memoizedState:Mr.next;if(s!==null)Mr=s,Or=o;else{if(o===null)throw Error(r(310));Or=o,o={memoizedState:Or.memoizedState,baseState:Or.baseState,baseQueue:Or.baseQueue,queue:Or.queue,next:null},Mr===null?gr.memoizedState=Mr=o:Mr=Mr.next=o}return Mr}function fl(o,s){return typeof s=="function"?s(o):s}function qf(o){var s=Bn(),f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var v=Or,C=v.baseQueue,O=f.pending;if(O!==null){if(C!==null){var U=C.next;C.next=O.next,O.next=U}v.baseQueue=C=O,f.pending=null}if(C!==null){O=C.next,v=v.baseState;var ee=U=null,se=null,we=O;do{var Ie=we.lane;if((ea&Ie)===Ie)se!==null&&(se=se.next={lane:0,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),v=we.hasEagerState?we.eagerState:o(v,we.action);else{var Be={lane:Ie,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};se===null?(ee=se=Be,U=v):se=se.next=Be,gr.lanes|=Ie,ta|=Ie}we=we.next}while(we!==null&&we!==O);se===null?U=v:se.next=ee,Gn(v,s.memoizedState)||(hn=!0),s.memoizedState=v,s.baseState=U,s.baseQueue=se,f.lastRenderedState=v}if(o=f.interleaved,o!==null){C=o;do O=C.lane,gr.lanes|=O,ta|=O,C=C.next;while(C!==o)}else C===null&&(f.lanes=0);return[s.memoizedState,f.dispatch]}function jf(o){var s=Bn(),f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var v=f.dispatch,C=f.pending,O=s.memoizedState;if(C!==null){f.pending=null;var U=C=C.next;do O=o(O,U.action),U=U.next;while(U!==C);Gn(O,s.memoizedState)||(hn=!0),s.memoizedState=O,s.baseQueue===null&&(s.baseState=O),f.lastRenderedState=O}return[O,v]}function Gv(){}function Kv(o,s){var f=gr,v=Bn(),C=s(),O=!Gn(v.memoizedState,C);if(O&&(v.memoizedState=C,hn=!0),v=v.queue,$f(Qv.bind(null,f,v,o),[o]),v.getSnapshot!==s||O||Mr!==null&&Mr.memoizedState.tag&1){if(f.flags|=2048,hl(9,Xv.bind(null,f,v,C,s),void 0,null),qr===null)throw Error(r(349));(ea&30)!==0||Yv(f,s,C)}return C}function Yv(o,s,f){o.flags|=16384,o={getSnapshot:s,value:f},s=gr.updateQueue,s===null?(s={lastEffect:null,stores:null},gr.updateQueue=s,s.stores=[o]):(f=s.stores,f===null?s.stores=[o]:f.push(o))}function Xv(o,s,f,v){s.value=f,s.getSnapshot=v,Zv(s)&&eE(o)}function Qv(o,s,f){return f(function(){Zv(s)&&eE(o)})}function Zv(o){var s=o.getSnapshot;o=o.value;try{var f=s();return!Gn(o,f)}catch{return!0}}function eE(o){var s=Pi(o,1);s!==null&&Zn(s,o,1,-1)}function tE(o){var s=mi();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:o},s.queue=o,o=o.dispatch=fk.bind(null,gr,o),[s.memoizedState,o]}function hl(o,s,f,v){return o={tag:o,create:s,destroy:f,deps:v,next:null},s=gr.updateQueue,s===null?(s={lastEffect:null,stores:null},gr.updateQueue=s,s.lastEffect=o.next=o):(f=s.lastEffect,f===null?s.lastEffect=o.next=o:(v=f.next,f.next=o,o.next=v,s.lastEffect=o)),o}function rE(){return Bn().memoizedState}function bc(o,s,f,v){var C=mi();gr.flags|=o,C.memoizedState=hl(1|s,f,void 0,v===void 0?null:v)}function vc(o,s,f,v){var C=Bn();v=v===void 0?null:v;var O=void 0;if(Or!==null){var U=Or.memoizedState;if(O=U.destroy,v!==null&&Bf(v,U.deps)){C.memoizedState=hl(s,f,O,v);return}}gr.flags|=o,C.memoizedState=hl(1|s,f,O,v)}function nE(o,s){return bc(8390656,8,o,s)}function $f(o,s){return vc(2048,8,o,s)}function iE(o,s){return vc(4,2,o,s)}function oE(o,s){return vc(4,4,o,s)}function aE(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function sE(o,s,f){return f=f!=null?f.concat([o]):null,vc(4,4,aE.bind(null,s,o),f)}function Vf(){}function lE(o,s){var f=Bn();s=s===void 0?null:s;var v=f.memoizedState;return v!==null&&s!==null&&Bf(s,v[1])?v[0]:(f.memoizedState=[o,s],o)}function uE(o,s){var f=Bn();s=s===void 0?null:s;var v=f.memoizedState;return v!==null&&s!==null&&Bf(s,v[1])?v[0]:(o=o(),f.memoizedState=[o,s],o)}function cE(o,s,f){return(ea&21)===0?(o.baseState&&(o.baseState=!1,hn=!0),o.memoizedState=f):(Gn(f,s)||(f=ui(),gr.lanes|=f,ta|=f,o.baseState=!0),s)}function dk(o,s){var f=Wt;Wt=f!==0&&4>f?f:4,o(!0);var v=kf.transition;kf.transition={};try{o(!1),s()}finally{Wt=f,kf.transition=v}}function dE(){return Bn().memoizedState}function pk(o,s,f){var v=bo(o);if(f={lane:v,action:f,hasEagerState:!1,eagerState:null,next:null},pE(o))fE(s,f);else if(f=Uv(o,s,f,v),f!==null){var C=un();Zn(f,o,v,C),hE(f,s,v)}}function fk(o,s,f){var v=bo(o),C={lane:v,action:f,hasEagerState:!1,eagerState:null,next:null};if(pE(o))fE(s,C);else{var O=o.alternate;if(o.lanes===0&&(O===null||O.lanes===0)&&(O=s.lastRenderedReducer,O!==null))try{var U=s.lastRenderedState,ee=O(U,f);if(C.hasEagerState=!0,C.eagerState=ee,Gn(ee,U)){var se=s.interleaved;se===null?(C.next=C,Df(s)):(C.next=se.next,se.next=C),s.interleaved=C;return}}catch{}f=Uv(o,s,C,v),f!==null&&(C=un(),Zn(f,o,v,C),hE(f,s,v))}}function pE(o){var s=o.alternate;return o===gr||s!==null&&s===gr}function fE(o,s){dl=gc=!0;var f=o.pending;f===null?s.next=s:(s.next=f.next,f.next=s),o.pending=s}function hE(o,s,f){if((f&4194240)!==0){var v=s.lanes;v&=o.pendingLanes,f|=v,s.lanes=f,pi(o,f)}}var Ec={readContext:kn,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},hk={readContext:kn,useCallback:function(o,s){return mi().memoizedState=[o,s===void 0?null:s],o},useContext:kn,useEffect:nE,useImperativeHandle:function(o,s,f){return f=f!=null?f.concat([o]):null,bc(4194308,4,aE.bind(null,s,o),f)},useLayoutEffect:function(o,s){return bc(4194308,4,o,s)},useInsertionEffect:function(o,s){return bc(4,2,o,s)},useMemo:function(o,s){var f=mi();return s=s===void 0?null:s,o=o(),f.memoizedState=[o,s],o},useReducer:function(o,s,f){var v=mi();return s=f!==void 0?f(s):s,v.memoizedState=v.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},v.queue=o,o=o.dispatch=pk.bind(null,gr,o),[v.memoizedState,o]},useRef:function(o){var s=mi();return o={current:o},s.memoizedState=o},useState:tE,useDebugValue:Vf,useDeferredValue:function(o){return mi().memoizedState=o},useTransition:function(){var o=tE(!1),s=o[0];return o=dk.bind(null,o[1]),mi().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,f){var v=gr,C=mi();if(cr){if(f===void 0)throw Error(r(407));f=f()}else{if(f=s(),qr===null)throw Error(r(349));(ea&30)!==0||Yv(v,s,f)}C.memoizedState=f;var O={value:f,getSnapshot:s};return C.queue=O,nE(Qv.bind(null,v,O,o),[o]),v.flags|=2048,hl(9,Xv.bind(null,v,O,f,s),void 0,null),f},useId:function(){var o=mi(),s=qr.identifierPrefix;if(cr){var f=Di,v=Ri;f=(v&~(1<<32-T(v)-1)).toString(32)+f,s=":"+s+"R"+f,f=pl++,0<f&&(s+="H"+f.toString(32)),s+=":"}else f=ck++,s=":"+s+"r"+f.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},mk={readContext:kn,useCallback:lE,useContext:kn,useEffect:$f,useImperativeHandle:sE,useInsertionEffect:iE,useLayoutEffect:oE,useMemo:uE,useReducer:qf,useRef:rE,useState:function(){return qf(fl)},useDebugValue:Vf,useDeferredValue:function(o){var s=Bn();return cE(s,Or.memoizedState,o)},useTransition:function(){var o=qf(fl)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:Gv,useSyncExternalStore:Kv,useId:dE,unstable_isNewReconciler:!1},yk={readContext:kn,useCallback:lE,useContext:kn,useEffect:$f,useImperativeHandle:sE,useInsertionEffect:iE,useLayoutEffect:oE,useMemo:uE,useReducer:jf,useRef:rE,useState:function(){return jf(fl)},useDebugValue:Vf,useDeferredValue:function(o){var s=Bn();return Or===null?s.memoizedState=o:cE(s,Or.memoizedState,o)},useTransition:function(){var o=jf(fl)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:Gv,useSyncExternalStore:Kv,useId:dE,unstable_isNewReconciler:!1};function Yn(o,s){if(o&&o.defaultProps){s=Ce({},s),o=o.defaultProps;for(var f in o)s[f]===void 0&&(s[f]=o[f]);return s}return s}function Uf(o,s,f,v){s=o.memoizedState,f=f(v,s),f=f==null?s:Ce({},s,f),o.memoizedState=f,o.lanes===0&&(o.updateQueue.baseState=f)}var wc={isMounted:function(o){return(o=o._reactInternals)?Kr(o)===o:!1},enqueueSetState:function(o,s,f){o=o._reactInternals;var v=un(),C=bo(o),O=Oi(v,C);O.payload=s,f!=null&&(O.callback=f),s=ho(o,O,C),s!==null&&(Zn(s,o,C,v),fc(s,o,C))},enqueueReplaceState:function(o,s,f){o=o._reactInternals;var v=un(),C=bo(o),O=Oi(v,C);O.tag=1,O.payload=s,f!=null&&(O.callback=f),s=ho(o,O,C),s!==null&&(Zn(s,o,C,v),fc(s,o,C))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var f=un(),v=bo(o),C=Oi(f,v);C.tag=2,s!=null&&(C.callback=s),s=ho(o,C,v),s!==null&&(Zn(s,o,v,f),fc(s,o,v))}};function mE(o,s,f,v,C,O,U){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(v,O,U):s.prototype&&s.prototype.isPureReactComponent?!el(f,v)||!el(C,O):!0}function yE(o,s,f){var v=!1,C=co,O=s.contextType;return typeof O=="object"&&O!==null?O=kn(O):(C=fn(s)?Ko:Xr.current,v=s.contextTypes,O=(v=v!=null)?Ja(o,C):co),s=new s(f,O),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=wc,o.stateNode=s,s._reactInternals=o,v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=C,o.__reactInternalMemoizedMaskedChildContext=O),s}function gE(o,s,f,v){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(f,v),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(f,v),s.state!==o&&wc.enqueueReplaceState(s,s.state,null)}function Jf(o,s,f,v){var C=o.stateNode;C.props=f,C.state=o.memoizedState,C.refs={},Pf(o);var O=s.contextType;typeof O=="object"&&O!==null?C.context=kn(O):(O=fn(s)?Ko:Xr.current,C.context=Ja(o,O)),C.state=o.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(Uf(o,s,O,f),C.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(s=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),s!==C.state&&wc.enqueueReplaceState(C,C.state,null),hc(o,f,C,v),C.state=o.memoizedState),typeof C.componentDidMount=="function"&&(o.flags|=4194308)}function Qa(o,s){try{var f="",v=s;do f+=_e(v),v=v.return;while(v);var C=f}catch(O){C=`
|
|
1120
|
+
Error generating stack: `+O.message+`
|
|
1121
|
+
`+O.stack}return{value:o,source:s,stack:C,digest:null}}function zf(o,s,f){return{value:o,source:null,stack:f??null,digest:s??null}}function Hf(o,s){try{console.error(s.value)}catch(f){setTimeout(function(){throw f})}}var gk=typeof WeakMap=="function"?WeakMap:Map;function bE(o,s,f){f=Oi(-1,f),f.tag=3,f.payload={element:null};var v=s.value;return f.callback=function(){Rc||(Rc=!0,sh=v),Hf(o,s)},f}function vE(o,s,f){f=Oi(-1,f),f.tag=3;var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var C=s.value;f.payload=function(){return v(C)},f.callback=function(){Hf(o,s)}}var O=o.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(f.callback=function(){Hf(o,s),typeof v!="function"&&(yo===null?yo=new Set([this]):yo.add(this));var U=s.stack;this.componentDidCatch(s.value,{componentStack:U!==null?U:""})}),f}function EE(o,s,f){var v=o.pingCache;if(v===null){v=o.pingCache=new gk;var C=new Set;v.set(s,C)}else C=v.get(s),C===void 0&&(C=new Set,v.set(s,C));C.has(f)||(C.add(f),o=Ok.bind(null,o,s,f),s.then(o,o))}function wE(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function SE(o,s,f,v,C){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(s=Oi(-1,1),s.tag=2,ho(f,s,1))),f.lanes|=1),o):(o.flags|=65536,o.lanes=C,o)}var bk=B.ReactCurrentOwner,hn=!1;function ln(o,s,f,v){s.child=o===null?Vv(s,null,f,v):Ga(s,o.child,f,v)}function AE(o,s,f,v,C){f=f.render;var O=s.ref;return Ya(s,C),v=Lf(o,s,f,v,O,C),f=Mf(),o!==null&&!hn?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~C,Ni(o,s,C)):(cr&&f&&Ef(s),s.flags|=1,ln(o,s,v,C),s.child)}function _E(o,s,f,v,C){if(o===null){var O=f.type;return typeof O=="function"&&!hh(O)&&O.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(s.tag=15,s.type=O,CE(o,s,O,v,C)):(o=Fc(f.type,null,v,s,s.mode,C),o.ref=s.ref,o.return=s,s.child=o)}if(O=o.child,(o.lanes&C)===0){var U=O.memoizedProps;if(f=f.compare,f=f!==null?f:el,f(U,v)&&o.ref===s.ref)return Ni(o,s,C)}return s.flags|=1,o=Eo(O,v),o.ref=s.ref,o.return=s,s.child=o}function CE(o,s,f,v,C){if(o!==null){var O=o.memoizedProps;if(el(O,v)&&o.ref===s.ref)if(hn=!1,s.pendingProps=v=O,(o.lanes&C)!==0)(o.flags&131072)!==0&&(hn=!0);else return s.lanes=o.lanes,Ni(o,s,C)}return Wf(o,s,f,v,C)}function TE(o,s,f){var v=s.pendingProps,C=v.children,O=o!==null?o.memoizedState:null;if(v.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},rr(es,_n),_n|=f;else{if((f&1073741824)===0)return o=O!==null?O.baseLanes|f:f,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,rr(es,_n),_n|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=O!==null?O.baseLanes:f,rr(es,_n),_n|=v}else O!==null?(v=O.baseLanes|f,s.memoizedState=null):v=f,rr(es,_n),_n|=v;return ln(o,s,C,f),s.child}function xE(o,s){var f=s.ref;(o===null&&f!==null||o!==null&&o.ref!==f)&&(s.flags|=512,s.flags|=2097152)}function Wf(o,s,f,v,C){var O=fn(f)?Ko:Xr.current;return O=Ja(s,O),Ya(s,C),f=Lf(o,s,f,v,O,C),v=Mf(),o!==null&&!hn?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~C,Ni(o,s,C)):(cr&&v&&Ef(s),s.flags|=1,ln(o,s,f,C),s.child)}function RE(o,s,f,v,C){if(fn(f)){var O=!0;oc(s)}else O=!1;if(Ya(s,C),s.stateNode===null)Ac(o,s),yE(s,f,v),Jf(s,f,v,C),v=!0;else if(o===null){var U=s.stateNode,ee=s.memoizedProps;U.props=ee;var se=U.context,we=f.contextType;typeof we=="object"&&we!==null?we=kn(we):(we=fn(f)?Ko:Xr.current,we=Ja(s,we));var Ie=f.getDerivedStateFromProps,Be=typeof Ie=="function"||typeof U.getSnapshotBeforeUpdate=="function";Be||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(ee!==v||se!==we)&&gE(s,U,v,we),fo=!1;var Ne=s.memoizedState;U.state=Ne,hc(s,v,U,C),se=s.memoizedState,ee!==v||Ne!==se||pn.current||fo?(typeof Ie=="function"&&(Uf(s,f,Ie,v),se=s.memoizedState),(ee=fo||mE(s,f,ee,v,Ne,se,we))?(Be||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(s.flags|=4194308)):(typeof U.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=v,s.memoizedState=se),U.props=v,U.state=se,U.context=we,v=ee):(typeof U.componentDidMount=="function"&&(s.flags|=4194308),v=!1)}else{U=s.stateNode,Jv(o,s),ee=s.memoizedProps,we=s.type===s.elementType?ee:Yn(s.type,ee),U.props=we,Be=s.pendingProps,Ne=U.context,se=f.contextType,typeof se=="object"&&se!==null?se=kn(se):(se=fn(f)?Ko:Xr.current,se=Ja(s,se));var Ye=f.getDerivedStateFromProps;(Ie=typeof Ye=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(ee!==Be||Ne!==se)&&gE(s,U,v,se),fo=!1,Ne=s.memoizedState,U.state=Ne,hc(s,v,U,C);var et=s.memoizedState;ee!==Be||Ne!==et||pn.current||fo?(typeof Ye=="function"&&(Uf(s,f,Ye,v),et=s.memoizedState),(we=fo||mE(s,f,we,v,Ne,et,se)||!1)?(Ie||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(v,et,se),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(v,et,se)),typeof U.componentDidUpdate=="function"&&(s.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof U.componentDidUpdate!="function"||ee===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||ee===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=1024),s.memoizedProps=v,s.memoizedState=et),U.props=v,U.state=et,U.context=se,v=we):(typeof U.componentDidUpdate!="function"||ee===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||ee===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=1024),v=!1)}return Gf(o,s,f,v,O,C)}function Gf(o,s,f,v,C,O){xE(o,s);var U=(s.flags&128)!==0;if(!v&&!U)return C&&Iv(s,f,!1),Ni(o,s,O);v=s.stateNode,bk.current=s;var ee=U&&typeof f.getDerivedStateFromError!="function"?null:v.render();return s.flags|=1,o!==null&&U?(s.child=Ga(s,o.child,null,O),s.child=Ga(s,null,ee,O)):ln(o,s,ee,O),s.memoizedState=v.state,C&&Iv(s,f,!0),s.child}function DE(o){var s=o.stateNode;s.pendingContext?Ov(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Ov(o,s.context,!1),Of(o,s.containerInfo)}function PE(o,s,f,v,C){return Wa(),_f(C),s.flags|=256,ln(o,s,f,v),s.child}var Kf={dehydrated:null,treeContext:null,retryLane:0};function Yf(o){return{baseLanes:o,cachePool:null,transitions:null}}function OE(o,s,f){var v=s.pendingProps,C=yr.current,O=!1,U=(s.flags&128)!==0,ee;if((ee=U)||(ee=o!==null&&o.memoizedState===null?!1:(C&2)!==0),ee?(O=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(C|=1),rr(yr,C&1),o===null)return Af(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(U=v.children,o=v.fallback,O?(v=s.mode,O=s.child,U={mode:"hidden",children:U},(v&1)===0&&O!==null?(O.childLanes=0,O.pendingProps=U):O=kc(U,v,0,null),o=oa(o,v,f,null),O.return=s,o.return=s,O.sibling=o,s.child=O,s.child.memoizedState=Yf(f),s.memoizedState=Kf,o):Xf(s,U));if(C=o.memoizedState,C!==null&&(ee=C.dehydrated,ee!==null))return vk(o,s,U,v,ee,C,f);if(O){O=v.fallback,U=s.mode,C=o.child,ee=C.sibling;var se={mode:"hidden",children:v.children};return(U&1)===0&&s.child!==C?(v=s.child,v.childLanes=0,v.pendingProps=se,s.deletions=null):(v=Eo(C,se),v.subtreeFlags=C.subtreeFlags&14680064),ee!==null?O=Eo(ee,O):(O=oa(O,U,f,null),O.flags|=2),O.return=s,v.return=s,v.sibling=O,s.child=v,v=O,O=s.child,U=o.child.memoizedState,U=U===null?Yf(f):{baseLanes:U.baseLanes|f,cachePool:null,transitions:U.transitions},O.memoizedState=U,O.childLanes=o.childLanes&~f,s.memoizedState=Kf,v}return O=o.child,o=O.sibling,v=Eo(O,{mode:"visible",children:v.children}),(s.mode&1)===0&&(v.lanes=f),v.return=s,v.sibling=null,o!==null&&(f=s.deletions,f===null?(s.deletions=[o],s.flags|=16):f.push(o)),s.child=v,s.memoizedState=null,v}function Xf(o,s){return s=kc({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Sc(o,s,f,v){return v!==null&&_f(v),Ga(s,o.child,null,f),o=Xf(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function vk(o,s,f,v,C,O,U){if(f)return s.flags&256?(s.flags&=-257,v=zf(Error(r(422))),Sc(o,s,U,v)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(O=v.fallback,C=s.mode,v=kc({mode:"visible",children:v.children},C,0,null),O=oa(O,C,U,null),O.flags|=2,v.return=s,O.return=s,v.sibling=O,s.child=v,(s.mode&1)!==0&&Ga(s,o.child,null,U),s.child.memoizedState=Yf(U),s.memoizedState=Kf,O);if((s.mode&1)===0)return Sc(o,s,U,null);if(C.data==="$!"){if(v=C.nextSibling&&C.nextSibling.dataset,v)var ee=v.dgst;return v=ee,O=Error(r(419)),v=zf(O,v,void 0),Sc(o,s,U,v)}if(ee=(U&o.childLanes)!==0,hn||ee){if(v=qr,v!==null){switch(U&-U){case 4:C=2;break;case 16:C=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:C=32;break;case 536870912:C=268435456;break;default:C=0}C=(C&(v.suspendedLanes|U))!==0?0:C,C!==0&&C!==O.retryLane&&(O.retryLane=C,Pi(o,C),Zn(v,o,C,-1))}return fh(),v=zf(Error(r(421))),Sc(o,s,U,v)}return C.data==="$?"?(s.flags|=128,s.child=o.child,s=Nk.bind(null,o),C._reactRetry=s,null):(o=O.treeContext,An=lo(C.nextSibling),Sn=s,cr=!0,Kn=null,o!==null&&(In[Fn++]=Ri,In[Fn++]=Di,In[Fn++]=Yo,Ri=o.id,Di=o.overflow,Yo=s),s=Xf(s,v.children),s.flags|=4096,s)}function NE(o,s,f){o.lanes|=s;var v=o.alternate;v!==null&&(v.lanes|=s),Rf(o.return,s,f)}function Qf(o,s,f,v,C){var O=o.memoizedState;O===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:v,tail:f,tailMode:C}:(O.isBackwards=s,O.rendering=null,O.renderingStartTime=0,O.last=v,O.tail=f,O.tailMode=C)}function IE(o,s,f){var v=s.pendingProps,C=v.revealOrder,O=v.tail;if(ln(o,s,v.children,f),v=yr.current,(v&2)!==0)v=v&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&NE(o,f,s);else if(o.tag===19)NE(o,f,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}v&=1}if(rr(yr,v),(s.mode&1)===0)s.memoizedState=null;else switch(C){case"forwards":for(f=s.child,C=null;f!==null;)o=f.alternate,o!==null&&mc(o)===null&&(C=f),f=f.sibling;f=C,f===null?(C=s.child,s.child=null):(C=f.sibling,f.sibling=null),Qf(s,!1,C,f,O);break;case"backwards":for(f=null,C=s.child,s.child=null;C!==null;){if(o=C.alternate,o!==null&&mc(o)===null){s.child=C;break}o=C.sibling,C.sibling=f,f=C,C=o}Qf(s,!0,f,null,O);break;case"together":Qf(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ac(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Ni(o,s,f){if(o!==null&&(s.dependencies=o.dependencies),ta|=s.lanes,(f&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,f=Eo(o,o.pendingProps),s.child=f,f.return=s;o.sibling!==null;)o=o.sibling,f=f.sibling=Eo(o,o.pendingProps),f.return=s;f.sibling=null}return s.child}function Ek(o,s,f){switch(s.tag){case 3:DE(s),Wa();break;case 5:Wv(s);break;case 1:fn(s.type)&&oc(s);break;case 4:Of(s,s.stateNode.containerInfo);break;case 10:var v=s.type._context,C=s.memoizedProps.value;rr(dc,v._currentValue),v._currentValue=C;break;case 13:if(v=s.memoizedState,v!==null)return v.dehydrated!==null?(rr(yr,yr.current&1),s.flags|=128,null):(f&s.child.childLanes)!==0?OE(o,s,f):(rr(yr,yr.current&1),o=Ni(o,s,f),o!==null?o.sibling:null);rr(yr,yr.current&1);break;case 19:if(v=(f&s.childLanes)!==0,(o.flags&128)!==0){if(v)return IE(o,s,f);s.flags|=128}if(C=s.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),rr(yr,yr.current),v)break;return null;case 22:case 23:return s.lanes=0,TE(o,s,f)}return Ni(o,s,f)}var FE,Zf,kE,BE;FE=function(o,s){for(var f=s.child;f!==null;){if(f.tag===5||f.tag===6)o.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break;for(;f.sibling===null;){if(f.return===null||f.return===s)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Zf=function(){},kE=function(o,s,f,v){var C=o.memoizedProps;if(C!==v){o=s.stateNode,Zo(hi.current);var O=null;switch(f){case"input":C=We(o,C),v=We(o,v),O=[];break;case"select":C=Ce({},C,{value:void 0}),v=Ce({},v,{value:void 0}),O=[];break;case"textarea":C=At(o,C),v=At(o,v),O=[];break;default:typeof C.onClick!="function"&&typeof v.onClick=="function"&&(o.onclick=rc)}Ar(f,v);var U;f=null;for(we in C)if(!v.hasOwnProperty(we)&&C.hasOwnProperty(we)&&C[we]!=null)if(we==="style"){var ee=C[we];for(U in ee)ee.hasOwnProperty(U)&&(f||(f={}),f[U]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(i.hasOwnProperty(we)?O||(O=[]):(O=O||[]).push(we,null));for(we in v){var se=v[we];if(ee=C?.[we],v.hasOwnProperty(we)&&se!==ee&&(se!=null||ee!=null))if(we==="style")if(ee){for(U in ee)!ee.hasOwnProperty(U)||se&&se.hasOwnProperty(U)||(f||(f={}),f[U]="");for(U in se)se.hasOwnProperty(U)&&ee[U]!==se[U]&&(f||(f={}),f[U]=se[U])}else f||(O||(O=[]),O.push(we,f)),f=se;else we==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,ee=ee?ee.__html:void 0,se!=null&&ee!==se&&(O=O||[]).push(we,se)):we==="children"?typeof se!="string"&&typeof se!="number"||(O=O||[]).push(we,""+se):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(i.hasOwnProperty(we)?(se!=null&&we==="onScroll"&&or("scroll",o),O||ee===se||(O=[])):(O=O||[]).push(we,se))}f&&(O=O||[]).push("style",f);var we=O;(s.updateQueue=we)&&(s.flags|=4)}},BE=function(o,s,f,v){f!==v&&(s.flags|=4)};function ml(o,s){if(!cr)switch(o.tailMode){case"hidden":s=o.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?o.tail=null:f.sibling=null;break;case"collapsed":f=o.tail;for(var v=null;f!==null;)f.alternate!==null&&(v=f),f=f.sibling;v===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:v.sibling=null}}function Zr(o){var s=o.alternate!==null&&o.alternate.child===o.child,f=0,v=0;if(s)for(var C=o.child;C!==null;)f|=C.lanes|C.childLanes,v|=C.subtreeFlags&14680064,v|=C.flags&14680064,C.return=o,C=C.sibling;else for(C=o.child;C!==null;)f|=C.lanes|C.childLanes,v|=C.subtreeFlags,v|=C.flags,C.return=o,C=C.sibling;return o.subtreeFlags|=v,o.childLanes=f,s}function wk(o,s,f){var v=s.pendingProps;switch(wf(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zr(s),null;case 1:return fn(s.type)&&ic(),Zr(s),null;case 3:return v=s.stateNode,Xa(),ar(pn),ar(Xr),Ff(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(o===null||o.child===null)&&(uc(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Kn!==null&&(ch(Kn),Kn=null))),Zf(o,s),Zr(s),null;case 5:Nf(s);var C=Zo(cl.current);if(f=s.type,o!==null&&s.stateNode!=null)kE(o,s,f,v,C),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!v){if(s.stateNode===null)throw Error(r(166));return Zr(s),null}if(o=Zo(hi.current),uc(s)){v=s.stateNode,f=s.type;var O=s.memoizedProps;switch(v[fi]=s,v[ol]=O,o=(s.mode&1)!==0,f){case"dialog":or("cancel",v),or("close",v);break;case"iframe":case"object":case"embed":or("load",v);break;case"video":case"audio":for(C=0;C<rl.length;C++)or(rl[C],v);break;case"source":or("error",v);break;case"img":case"image":case"link":or("error",v),or("load",v);break;case"details":or("toggle",v);break;case"input":nt(v,O),or("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!O.multiple},or("invalid",v);break;case"textarea":Vr(v,O),or("invalid",v)}Ar(f,O),C=null;for(var U in O)if(O.hasOwnProperty(U)){var ee=O[U];U==="children"?typeof ee=="string"?v.textContent!==ee&&(O.suppressHydrationWarning!==!0&&tc(v.textContent,ee,o),C=["children",ee]):typeof ee=="number"&&v.textContent!==""+ee&&(O.suppressHydrationWarning!==!0&&tc(v.textContent,ee,o),C=["children",""+ee]):i.hasOwnProperty(U)&&ee!=null&&U==="onScroll"&&or("scroll",v)}switch(f){case"input":ke(v),Bt(v,O,!0);break;case"textarea":ke(v),je(v);break;case"select":case"option":break;default:typeof O.onClick=="function"&&(v.onclick=rc)}v=C,s.updateQueue=v,v!==null&&(s.flags|=4)}else{U=C.nodeType===9?C:C.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Jt(f)),o==="http://www.w3.org/1999/xhtml"?f==="script"?(o=U.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof v.is=="string"?o=U.createElement(f,{is:v.is}):(o=U.createElement(f),f==="select"&&(U=o,v.multiple?U.multiple=!0:v.size&&(U.size=v.size))):o=U.createElementNS(o,f),o[fi]=s,o[ol]=v,FE(o,s,!1,!1),s.stateNode=o;e:{switch(U=En(f,v),f){case"dialog":or("cancel",o),or("close",o),C=v;break;case"iframe":case"object":case"embed":or("load",o),C=v;break;case"video":case"audio":for(C=0;C<rl.length;C++)or(rl[C],o);C=v;break;case"source":or("error",o),C=v;break;case"img":case"image":case"link":or("error",o),or("load",o),C=v;break;case"details":or("toggle",o),C=v;break;case"input":nt(o,v),C=We(o,v),or("invalid",o);break;case"option":C=v;break;case"select":o._wrapperState={wasMultiple:!!v.multiple},C=Ce({},v,{value:void 0}),or("invalid",o);break;case"textarea":Vr(o,v),C=At(o,v),or("invalid",o);break;default:C=v}Ar(f,C),ee=C;for(O in ee)if(ee.hasOwnProperty(O)){var se=ee[O];O==="style"?Jr(o,se):O==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&Dt(o,se)):O==="children"?typeof se=="string"?(f!=="textarea"||se!=="")&&Ur(o,se):typeof se=="number"&&Ur(o,""+se):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(i.hasOwnProperty(O)?se!=null&&O==="onScroll"&&or("scroll",o):se!=null&&j(o,O,se,U))}switch(f){case"input":ke(o),Bt(o,v,!1);break;case"textarea":ke(o),je(o);break;case"option":v.value!=null&&o.setAttribute("value",""+$e(v.value));break;case"select":o.multiple=!!v.multiple,O=v.value,O!=null?Lt(o,!!v.multiple,O,!1):v.defaultValue!=null&&Lt(o,!!v.multiple,v.defaultValue,!0);break;default:typeof C.onClick=="function"&&(o.onclick=rc)}switch(f){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Zr(s),null;case 6:if(o&&s.stateNode!=null)BE(o,s,o.memoizedProps,v);else{if(typeof v!="string"&&s.stateNode===null)throw Error(r(166));if(f=Zo(cl.current),Zo(hi.current),uc(s)){if(v=s.stateNode,f=s.memoizedProps,v[fi]=s,(O=v.nodeValue!==f)&&(o=Sn,o!==null))switch(o.tag){case 3:tc(v.nodeValue,f,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&tc(v.nodeValue,f,(o.mode&1)!==0)}O&&(s.flags|=4)}else v=(f.nodeType===9?f:f.ownerDocument).createTextNode(v),v[fi]=s,s.stateNode=v}return Zr(s),null;case 13:if(ar(yr),v=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(cr&&An!==null&&(s.mode&1)!==0&&(s.flags&128)===0)qv(),Wa(),s.flags|=98560,O=!1;else if(O=uc(s),v!==null&&v.dehydrated!==null){if(o===null){if(!O)throw Error(r(318));if(O=s.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[fi]=s}else Wa(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Zr(s),O=!1}else Kn!==null&&(ch(Kn),Kn=null),O=!0;if(!O)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=f,s):(v=v!==null,v!==(o!==null&&o.memoizedState!==null)&&v&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(yr.current&1)!==0?Nr===0&&(Nr=3):fh())),s.updateQueue!==null&&(s.flags|=4),Zr(s),null);case 4:return Xa(),Zf(o,s),o===null&&nl(s.stateNode.containerInfo),Zr(s),null;case 10:return xf(s.type._context),Zr(s),null;case 17:return fn(s.type)&&ic(),Zr(s),null;case 19:if(ar(yr),O=s.memoizedState,O===null)return Zr(s),null;if(v=(s.flags&128)!==0,U=O.rendering,U===null)if(v)ml(O,!1);else{if(Nr!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(U=mc(o),U!==null){for(s.flags|=128,ml(O,!1),v=U.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),s.subtreeFlags=0,v=f,f=s.child;f!==null;)O=f,o=v,O.flags&=14680066,U=O.alternate,U===null?(O.childLanes=0,O.lanes=o,O.child=null,O.subtreeFlags=0,O.memoizedProps=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null,O.stateNode=null):(O.childLanes=U.childLanes,O.lanes=U.lanes,O.child=U.child,O.subtreeFlags=0,O.deletions=null,O.memoizedProps=U.memoizedProps,O.memoizedState=U.memoizedState,O.updateQueue=U.updateQueue,O.type=U.type,o=U.dependencies,O.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),f=f.sibling;return rr(yr,yr.current&1|2),s.child}o=o.sibling}O.tail!==null&&Pe()>ts&&(s.flags|=128,v=!0,ml(O,!1),s.lanes=4194304)}else{if(!v)if(o=mc(U),o!==null){if(s.flags|=128,v=!0,f=o.updateQueue,f!==null&&(s.updateQueue=f,s.flags|=4),ml(O,!0),O.tail===null&&O.tailMode==="hidden"&&!U.alternate&&!cr)return Zr(s),null}else 2*Pe()-O.renderingStartTime>ts&&f!==1073741824&&(s.flags|=128,v=!0,ml(O,!1),s.lanes=4194304);O.isBackwards?(U.sibling=s.child,s.child=U):(f=O.last,f!==null?f.sibling=U:s.child=U,O.last=U)}return O.tail!==null?(s=O.tail,O.rendering=s,O.tail=s.sibling,O.renderingStartTime=Pe(),s.sibling=null,f=yr.current,rr(yr,v?f&1|2:f&1),s):(Zr(s),null);case 22:case 23:return ph(),v=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==v&&(s.flags|=8192),v&&(s.mode&1)!==0?(_n&1073741824)!==0&&(Zr(s),s.subtreeFlags&6&&(s.flags|=8192)):Zr(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function Sk(o,s){switch(wf(s),s.tag){case 1:return fn(s.type)&&ic(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return Xa(),ar(pn),ar(Xr),Ff(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return Nf(s),null;case 13:if(ar(yr),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Wa()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return ar(yr),null;case 4:return Xa(),null;case 10:return xf(s.type._context),null;case 22:case 23:return ph(),null;case 24:return null;default:return null}}var _c=!1,en=!1,Ak=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Za(o,s){var f=o.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(v){vr(o,s,v)}else f.current=null}function eh(o,s,f){try{f()}catch(v){vr(o,s,v)}}var LE=!1;function _k(o,s){if(pf=Ju,o=mv(),nf(o)){if("selectionStart"in o)var f={start:o.selectionStart,end:o.selectionEnd};else e:{f=(f=o.ownerDocument)&&f.defaultView||window;var v=f.getSelection&&f.getSelection();if(v&&v.rangeCount!==0){f=v.anchorNode;var C=v.anchorOffset,O=v.focusNode;v=v.focusOffset;try{f.nodeType,O.nodeType}catch{f=null;break e}var U=0,ee=-1,se=-1,we=0,Ie=0,Be=o,Ne=null;t:for(;;){for(var Ye;Be!==f||C!==0&&Be.nodeType!==3||(ee=U+C),Be!==O||v!==0&&Be.nodeType!==3||(se=U+v),Be.nodeType===3&&(U+=Be.nodeValue.length),(Ye=Be.firstChild)!==null;)Ne=Be,Be=Ye;for(;;){if(Be===o)break t;if(Ne===f&&++we===C&&(ee=U),Ne===O&&++Ie===v&&(se=U),(Ye=Be.nextSibling)!==null)break;Be=Ne,Ne=Be.parentNode}Be=Ye}f=ee===-1||se===-1?null:{start:ee,end:se}}else f=null}f=f||{start:0,end:0}}else f=null;for(ff={focusedElem:o,selectionRange:f},Ju=!1,Qe=s;Qe!==null;)if(s=Qe,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Qe=o;else for(;Qe!==null;){s=Qe;try{var et=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var rt=et.memoizedProps,_r=et.memoizedState,me=s.stateNode,ce=me.getSnapshotBeforeUpdate(s.elementType===s.type?rt:Yn(s.type,rt),_r);me.__reactInternalSnapshotBeforeUpdate=ce}break;case 3:var be=s.stateNode.containerInfo;be.nodeType===1?be.textContent="":be.nodeType===9&&be.documentElement&&be.removeChild(be.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(qe){vr(s,s.return,qe)}if(o=s.sibling,o!==null){o.return=s.return,Qe=o;break}Qe=s.return}return et=LE,LE=!1,et}function yl(o,s,f){var v=s.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var C=v=v.next;do{if((C.tag&o)===o){var O=C.destroy;C.destroy=void 0,O!==void 0&&eh(s,f,O)}C=C.next}while(C!==v)}}function Cc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var f=s=s.next;do{if((f.tag&o)===o){var v=f.create;f.destroy=v()}f=f.next}while(f!==s)}}function th(o){var s=o.ref;if(s!==null){var f=o.stateNode;o.tag,o=f,typeof s=="function"?s(o):s.current=o}}function ME(o){var s=o.alternate;s!==null&&(o.alternate=null,ME(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[fi],delete s[ol],delete s[gf],delete s[ak],delete s[sk])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function qE(o){return o.tag===5||o.tag===3||o.tag===4}function jE(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||qE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function rh(o,s,f){var v=o.tag;if(v===5||v===6)o=o.stateNode,s?f.nodeType===8?f.parentNode.insertBefore(o,s):f.insertBefore(o,s):(f.nodeType===8?(s=f.parentNode,s.insertBefore(o,f)):(s=f,s.appendChild(o)),f=f._reactRootContainer,f!=null||s.onclick!==null||(s.onclick=rc));else if(v!==4&&(o=o.child,o!==null))for(rh(o,s,f),o=o.sibling;o!==null;)rh(o,s,f),o=o.sibling}function nh(o,s,f){var v=o.tag;if(v===5||v===6)o=o.stateNode,s?f.insertBefore(o,s):f.appendChild(o);else if(v!==4&&(o=o.child,o!==null))for(nh(o,s,f),o=o.sibling;o!==null;)nh(o,s,f),o=o.sibling}var zr=null,Xn=!1;function mo(o,s,f){for(f=f.child;f!==null;)$E(o,s,f),f=f.sibling}function $E(o,s,f){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Fa,f)}catch{}switch(f.tag){case 5:en||Za(f,s);case 6:var v=zr,C=Xn;zr=null,mo(o,s,f),zr=v,Xn=C,zr!==null&&(Xn?(o=zr,f=f.stateNode,o.nodeType===8?o.parentNode.removeChild(f):o.removeChild(f)):zr.removeChild(f.stateNode));break;case 18:zr!==null&&(Xn?(o=zr,f=f.stateNode,o.nodeType===8?yf(o.parentNode,f):o.nodeType===1&&yf(o,f),Gs(o)):yf(zr,f.stateNode));break;case 4:v=zr,C=Xn,zr=f.stateNode.containerInfo,Xn=!0,mo(o,s,f),zr=v,Xn=C;break;case 0:case 11:case 14:case 15:if(!en&&(v=f.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){C=v=v.next;do{var O=C,U=O.destroy;O=O.tag,U!==void 0&&((O&2)!==0||(O&4)!==0)&&eh(f,s,U),C=C.next}while(C!==v)}mo(o,s,f);break;case 1:if(!en&&(Za(f,s),v=f.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=f.memoizedProps,v.state=f.memoizedState,v.componentWillUnmount()}catch(ee){vr(f,s,ee)}mo(o,s,f);break;case 21:mo(o,s,f);break;case 22:f.mode&1?(en=(v=en)||f.memoizedState!==null,mo(o,s,f),en=v):mo(o,s,f);break;default:mo(o,s,f)}}function VE(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var f=o.stateNode;f===null&&(f=o.stateNode=new Ak),s.forEach(function(v){var C=Ik.bind(null,o,v);f.has(v)||(f.add(v),v.then(C,C))})}}function Qn(o,s){var f=s.deletions;if(f!==null)for(var v=0;v<f.length;v++){var C=f[v];try{var O=o,U=s,ee=U;e:for(;ee!==null;){switch(ee.tag){case 5:zr=ee.stateNode,Xn=!1;break e;case 3:zr=ee.stateNode.containerInfo,Xn=!0;break e;case 4:zr=ee.stateNode.containerInfo,Xn=!0;break e}ee=ee.return}if(zr===null)throw Error(r(160));$E(O,U,C),zr=null,Xn=!1;var se=C.alternate;se!==null&&(se.return=null),C.return=null}catch(we){vr(C,s,we)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)UE(s,o),s=s.sibling}function UE(o,s){var f=o.alternate,v=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Qn(s,o),yi(o),v&4){try{yl(3,o,o.return),Cc(3,o)}catch(rt){vr(o,o.return,rt)}try{yl(5,o,o.return)}catch(rt){vr(o,o.return,rt)}}break;case 1:Qn(s,o),yi(o),v&512&&f!==null&&Za(f,f.return);break;case 5:if(Qn(s,o),yi(o),v&512&&f!==null&&Za(f,f.return),o.flags&32){var C=o.stateNode;try{Ur(C,"")}catch(rt){vr(o,o.return,rt)}}if(v&4&&(C=o.stateNode,C!=null)){var O=o.memoizedProps,U=f!==null?f.memoizedProps:O,ee=o.type,se=o.updateQueue;if(o.updateQueue=null,se!==null)try{ee==="input"&&O.type==="radio"&&O.name!=null&&it(C,O),En(ee,U);var we=En(ee,O);for(U=0;U<se.length;U+=2){var Ie=se[U],Be=se[U+1];Ie==="style"?Jr(C,Be):Ie==="dangerouslySetInnerHTML"?Dt(C,Be):Ie==="children"?Ur(C,Be):j(C,Ie,Be,we)}switch(ee){case"input":pt(C,O);break;case"textarea":fr(C,O);break;case"select":var Ne=C._wrapperState.wasMultiple;C._wrapperState.wasMultiple=!!O.multiple;var Ye=O.value;Ye!=null?Lt(C,!!O.multiple,Ye,!1):Ne!==!!O.multiple&&(O.defaultValue!=null?Lt(C,!!O.multiple,O.defaultValue,!0):Lt(C,!!O.multiple,O.multiple?[]:"",!1))}C[ol]=O}catch(rt){vr(o,o.return,rt)}}break;case 6:if(Qn(s,o),yi(o),v&4){if(o.stateNode===null)throw Error(r(162));C=o.stateNode,O=o.memoizedProps;try{C.nodeValue=O}catch(rt){vr(o,o.return,rt)}}break;case 3:if(Qn(s,o),yi(o),v&4&&f!==null&&f.memoizedState.isDehydrated)try{Gs(s.containerInfo)}catch(rt){vr(o,o.return,rt)}break;case 4:Qn(s,o),yi(o);break;case 13:Qn(s,o),yi(o),C=o.child,C.flags&8192&&(O=C.memoizedState!==null,C.stateNode.isHidden=O,!O||C.alternate!==null&&C.alternate.memoizedState!==null||(ah=Pe())),v&4&&VE(o);break;case 22:if(Ie=f!==null&&f.memoizedState!==null,o.mode&1?(en=(we=en)||Ie,Qn(s,o),en=we):Qn(s,o),yi(o),v&8192){if(we=o.memoizedState!==null,(o.stateNode.isHidden=we)&&!Ie&&(o.mode&1)!==0)for(Qe=o,Ie=o.child;Ie!==null;){for(Be=Qe=Ie;Qe!==null;){switch(Ne=Qe,Ye=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:yl(4,Ne,Ne.return);break;case 1:Za(Ne,Ne.return);var et=Ne.stateNode;if(typeof et.componentWillUnmount=="function"){v=Ne,f=Ne.return;try{s=v,et.props=s.memoizedProps,et.state=s.memoizedState,et.componentWillUnmount()}catch(rt){vr(v,f,rt)}}break;case 5:Za(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){HE(Be);continue}}Ye!==null?(Ye.return=Ne,Qe=Ye):HE(Be)}Ie=Ie.sibling}e:for(Ie=null,Be=o;;){if(Be.tag===5){if(Ie===null){Ie=Be;try{C=Be.stateNode,we?(O=C.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none"):(ee=Be.stateNode,se=Be.memoizedProps.style,U=se!=null&&se.hasOwnProperty("display")?se.display:null,ee.style.display=dt("display",U))}catch(rt){vr(o,o.return,rt)}}}else if(Be.tag===6){if(Ie===null)try{Be.stateNode.nodeValue=we?"":Be.memoizedProps}catch(rt){vr(o,o.return,rt)}}else if((Be.tag!==22&&Be.tag!==23||Be.memoizedState===null||Be===o)&&Be.child!==null){Be.child.return=Be,Be=Be.child;continue}if(Be===o)break e;for(;Be.sibling===null;){if(Be.return===null||Be.return===o)break e;Ie===Be&&(Ie=null),Be=Be.return}Ie===Be&&(Ie=null),Be.sibling.return=Be.return,Be=Be.sibling}}break;case 19:Qn(s,o),yi(o),v&4&&VE(o);break;case 21:break;default:Qn(s,o),yi(o)}}function yi(o){var s=o.flags;if(s&2){try{e:{for(var f=o.return;f!==null;){if(qE(f)){var v=f;break e}f=f.return}throw Error(r(160))}switch(v.tag){case 5:var C=v.stateNode;v.flags&32&&(Ur(C,""),v.flags&=-33);var O=jE(o);nh(o,O,C);break;case 3:case 4:var U=v.stateNode.containerInfo,ee=jE(o);rh(o,ee,U);break;default:throw Error(r(161))}}catch(se){vr(o,o.return,se)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function Ck(o,s,f){Qe=o,JE(o)}function JE(o,s,f){for(var v=(o.mode&1)!==0;Qe!==null;){var C=Qe,O=C.child;if(C.tag===22&&v){var U=C.memoizedState!==null||_c;if(!U){var ee=C.alternate,se=ee!==null&&ee.memoizedState!==null||en;ee=_c;var we=en;if(_c=U,(en=se)&&!we)for(Qe=C;Qe!==null;)U=Qe,se=U.child,U.tag===22&&U.memoizedState!==null?WE(C):se!==null?(se.return=U,Qe=se):WE(C);for(;O!==null;)Qe=O,JE(O),O=O.sibling;Qe=C,_c=ee,en=we}zE(o)}else(C.subtreeFlags&8772)!==0&&O!==null?(O.return=C,Qe=O):zE(o)}}function zE(o){for(;Qe!==null;){var s=Qe;if((s.flags&8772)!==0){var f=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:en||Cc(5,s);break;case 1:var v=s.stateNode;if(s.flags&4&&!en)if(f===null)v.componentDidMount();else{var C=s.elementType===s.type?f.memoizedProps:Yn(s.type,f.memoizedProps);v.componentDidUpdate(C,f.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var O=s.updateQueue;O!==null&&Hv(s,O,v);break;case 3:var U=s.updateQueue;if(U!==null){if(f=null,s.child!==null)switch(s.child.tag){case 5:f=s.child.stateNode;break;case 1:f=s.child.stateNode}Hv(s,U,f)}break;case 5:var ee=s.stateNode;if(f===null&&s.flags&4){f=ee;var se=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&f.focus();break;case"img":se.src&&(f.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var we=s.alternate;if(we!==null){var Ie=we.memoizedState;if(Ie!==null){var Be=Ie.dehydrated;Be!==null&&Gs(Be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}en||s.flags&512&&th(s)}catch(Ne){vr(s,s.return,Ne)}}if(s===o){Qe=null;break}if(f=s.sibling,f!==null){f.return=s.return,Qe=f;break}Qe=s.return}}function HE(o){for(;Qe!==null;){var s=Qe;if(s===o){Qe=null;break}var f=s.sibling;if(f!==null){f.return=s.return,Qe=f;break}Qe=s.return}}function WE(o){for(;Qe!==null;){var s=Qe;try{switch(s.tag){case 0:case 11:case 15:var f=s.return;try{Cc(4,s)}catch(se){vr(s,f,se)}break;case 1:var v=s.stateNode;if(typeof v.componentDidMount=="function"){var C=s.return;try{v.componentDidMount()}catch(se){vr(s,C,se)}}var O=s.return;try{th(s)}catch(se){vr(s,O,se)}break;case 5:var U=s.return;try{th(s)}catch(se){vr(s,U,se)}}}catch(se){vr(s,s.return,se)}if(s===o){Qe=null;break}var ee=s.sibling;if(ee!==null){ee.return=s.return,Qe=ee;break}Qe=s.return}}var Tk=Math.ceil,Tc=B.ReactCurrentDispatcher,ih=B.ReactCurrentOwner,Ln=B.ReactCurrentBatchConfig,It=0,qr=null,Rr=null,Hr=0,_n=0,es=uo(0),Nr=0,gl=null,ta=0,xc=0,oh=0,bl=null,mn=null,ah=0,ts=1/0,Ii=null,Rc=!1,sh=null,yo=null,Dc=!1,go=null,Pc=0,vl=0,lh=null,Oc=-1,Nc=0;function un(){return(It&6)!==0?Pe():Oc!==-1?Oc:Oc=Pe()}function bo(o){return(o.mode&1)===0?1:(It&2)!==0&&Hr!==0?Hr&-Hr:uk.transition!==null?(Nc===0&&(Nc=ui()),Nc):(o=Wt,o!==0||(o=window.event,o=o===void 0?16:Kb(o.type)),o)}function Zn(o,s,f,v){if(50<vl)throw vl=0,lh=null,Error(r(185));di(o,f,v),((It&2)===0||o!==qr)&&(o===qr&&((It&2)===0&&(xc|=f),Nr===4&&vo(o,Hr)),yn(o,v),f===1&&It===0&&(s.mode&1)===0&&(ts=Pe()+500,ac&&po()))}function yn(o,s){var f=o.callbackNode;Kt(o,s);var v=tt(o,o===qr?Hr:0);if(v===0)f!==null&&pe(f),o.callbackNode=null,o.callbackPriority=0;else if(s=v&-v,o.callbackPriority!==s){if(f!=null&&pe(f),s===1)o.tag===0?lk(KE.bind(null,o)):Fv(KE.bind(null,o)),ik(function(){(It&6)===0&&po()}),f=null;else{switch($b(v)){case 1:f=wt;break;case 4:f=tr;break;case 16:f=Vt;break;case 536870912:f=li;break;default:f=Vt}f=n1(f,GE.bind(null,o))}o.callbackPriority=s,o.callbackNode=f}}function GE(o,s){if(Oc=-1,Nc=0,(It&6)!==0)throw Error(r(327));var f=o.callbackNode;if(rs()&&o.callbackNode!==f)return null;var v=tt(o,o===qr?Hr:0);if(v===0)return null;if((v&30)!==0||(v&o.expiredLanes)!==0||s)s=Ic(o,v);else{s=v;var C=It;It|=2;var O=XE();(qr!==o||Hr!==s)&&(Ii=null,ts=Pe()+500,na(o,s));do try{Dk();break}catch(ee){YE(o,ee)}while(!0);Tf(),Tc.current=O,It=C,Rr!==null?s=0:(qr=null,Hr=0,s=Nr)}if(s!==0){if(s===2&&(C=xr(o),C!==0&&(v=C,s=uh(o,C))),s===1)throw f=gl,na(o,0),vo(o,v),yn(o,Pe()),f;if(s===6)vo(o,v);else{if(C=o.current.alternate,(v&30)===0&&!xk(C)&&(s=Ic(o,v),s===2&&(O=xr(o),O!==0&&(v=O,s=uh(o,O))),s===1))throw f=gl,na(o,0),vo(o,v),yn(o,Pe()),f;switch(o.finishedWork=C,o.finishedLanes=v,s){case 0:case 1:throw Error(r(345));case 2:ia(o,mn,Ii);break;case 3:if(vo(o,v),(v&130023424)===v&&(s=ah+500-Pe(),10<s)){if(tt(o,0)!==0)break;if(C=o.suspendedLanes,(C&v)!==v){un(),o.pingedLanes|=o.suspendedLanes&C;break}o.timeoutHandle=mf(ia.bind(null,o,mn,Ii),s);break}ia(o,mn,Ii);break;case 4:if(vo(o,v),(v&4194240)===v)break;for(s=o.eventTimes,C=-1;0<v;){var U=31-T(v);O=1<<U,U=s[U],U>C&&(C=U),v&=~O}if(v=C,v=Pe()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*Tk(v/1960))-v,10<v){o.timeoutHandle=mf(ia.bind(null,o,mn,Ii),v);break}ia(o,mn,Ii);break;case 5:ia(o,mn,Ii);break;default:throw Error(r(329))}}}return yn(o,Pe()),o.callbackNode===f?GE.bind(null,o):null}function uh(o,s){var f=bl;return o.current.memoizedState.isDehydrated&&(na(o,s).flags|=256),o=Ic(o,s),o!==2&&(s=mn,mn=f,s!==null&&ch(s)),o}function ch(o){mn===null?mn=o:mn.push.apply(mn,o)}function xk(o){for(var s=o;;){if(s.flags&16384){var f=s.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var v=0;v<f.length;v++){var C=f[v],O=C.getSnapshot;C=C.value;try{if(!Gn(O(),C))return!1}catch{return!1}}}if(f=s.child,s.subtreeFlags&16384&&f!==null)f.return=s,s=f;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function vo(o,s){for(s&=~oh,s&=~xc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var f=31-T(s),v=1<<f;o[f]=-1,s&=~v}}function KE(o){if((It&6)!==0)throw Error(r(327));rs();var s=tt(o,0);if((s&1)===0)return yn(o,Pe()),null;var f=Ic(o,s);if(o.tag!==0&&f===2){var v=xr(o);v!==0&&(s=v,f=uh(o,v))}if(f===1)throw f=gl,na(o,0),vo(o,s),yn(o,Pe()),f;if(f===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,ia(o,mn,Ii),yn(o,Pe()),null}function dh(o,s){var f=It;It|=1;try{return o(s)}finally{It=f,It===0&&(ts=Pe()+500,ac&&po())}}function ra(o){go!==null&&go.tag===0&&(It&6)===0&&rs();var s=It;It|=1;var f=Ln.transition,v=Wt;try{if(Ln.transition=null,Wt=1,o)return o()}finally{Wt=v,Ln.transition=f,It=s,(It&6)===0&&po()}}function ph(){_n=es.current,ar(es)}function na(o,s){o.finishedWork=null,o.finishedLanes=0;var f=o.timeoutHandle;if(f!==-1&&(o.timeoutHandle=-1,nk(f)),Rr!==null)for(f=Rr.return;f!==null;){var v=f;switch(wf(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&ic();break;case 3:Xa(),ar(pn),ar(Xr),Ff();break;case 5:Nf(v);break;case 4:Xa();break;case 13:ar(yr);break;case 19:ar(yr);break;case 10:xf(v.type._context);break;case 22:case 23:ph()}f=f.return}if(qr=o,Rr=o=Eo(o.current,null),Hr=_n=s,Nr=0,gl=null,oh=xc=ta=0,mn=bl=null,Qo!==null){for(s=0;s<Qo.length;s++)if(f=Qo[s],v=f.interleaved,v!==null){f.interleaved=null;var C=v.next,O=f.pending;if(O!==null){var U=O.next;O.next=C,v.next=U}f.pending=v}Qo=null}return o}function YE(o,s){do{var f=Rr;try{if(Tf(),yc.current=Ec,gc){for(var v=gr.memoizedState;v!==null;){var C=v.queue;C!==null&&(C.pending=null),v=v.next}gc=!1}if(ea=0,Mr=Or=gr=null,dl=!1,pl=0,ih.current=null,f===null||f.return===null){Nr=1,gl=s,Rr=null;break}e:{var O=o,U=f.return,ee=f,se=s;if(s=Hr,ee.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var we=se,Ie=ee,Be=Ie.tag;if((Ie.mode&1)===0&&(Be===0||Be===11||Be===15)){var Ne=Ie.alternate;Ne?(Ie.updateQueue=Ne.updateQueue,Ie.memoizedState=Ne.memoizedState,Ie.lanes=Ne.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Ye=wE(U);if(Ye!==null){Ye.flags&=-257,SE(Ye,U,ee,O,s),Ye.mode&1&&EE(O,we,s),s=Ye,se=we;var et=s.updateQueue;if(et===null){var rt=new Set;rt.add(se),s.updateQueue=rt}else et.add(se);break e}else{if((s&1)===0){EE(O,we,s),fh();break e}se=Error(r(426))}}else if(cr&&ee.mode&1){var _r=wE(U);if(_r!==null){(_r.flags&65536)===0&&(_r.flags|=256),SE(_r,U,ee,O,s),_f(Qa(se,ee));break e}}O=se=Qa(se,ee),Nr!==4&&(Nr=2),bl===null?bl=[O]:bl.push(O),O=U;do{switch(O.tag){case 3:O.flags|=65536,s&=-s,O.lanes|=s;var me=bE(O,se,s);zv(O,me);break e;case 1:ee=se;var ce=O.type,be=O.stateNode;if((O.flags&128)===0&&(typeof ce.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&(yo===null||!yo.has(be)))){O.flags|=65536,s&=-s,O.lanes|=s;var qe=vE(O,ee,s);zv(O,qe);break e}}O=O.return}while(O!==null)}ZE(f)}catch(ot){s=ot,Rr===f&&f!==null&&(Rr=f=f.return);continue}break}while(!0)}function XE(){var o=Tc.current;return Tc.current=Ec,o===null?Ec:o}function fh(){(Nr===0||Nr===3||Nr===2)&&(Nr=4),qr===null||(ta&268435455)===0&&(xc&268435455)===0||vo(qr,Hr)}function Ic(o,s){var f=It;It|=2;var v=XE();(qr!==o||Hr!==s)&&(Ii=null,na(o,s));do try{Rk();break}catch(C){YE(o,C)}while(!0);if(Tf(),It=f,Tc.current=v,Rr!==null)throw Error(r(261));return qr=null,Hr=0,Nr}function Rk(){for(;Rr!==null;)QE(Rr)}function Dk(){for(;Rr!==null&&!Se();)QE(Rr)}function QE(o){var s=r1(o.alternate,o,_n);o.memoizedProps=o.pendingProps,s===null?ZE(o):Rr=s,ih.current=null}function ZE(o){var s=o;do{var f=s.alternate;if(o=s.return,(s.flags&32768)===0){if(f=wk(f,s,_n),f!==null){Rr=f;return}}else{if(f=Sk(f,s),f!==null){f.flags&=32767,Rr=f;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Nr=6,Rr=null;return}}if(s=s.sibling,s!==null){Rr=s;return}Rr=s=o}while(s!==null);Nr===0&&(Nr=5)}function ia(o,s,f){var v=Wt,C=Ln.transition;try{Ln.transition=null,Wt=1,Pk(o,s,f,v)}finally{Ln.transition=C,Wt=v}return null}function Pk(o,s,f,v){do rs();while(go!==null);if((It&6)!==0)throw Error(r(327));f=o.finishedWork;var C=o.finishedLanes;if(f===null)return null;if(o.finishedWork=null,o.finishedLanes=0,f===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var O=f.lanes|f.childLanes;if(to(o,O),o===qr&&(Rr=qr=null,Hr=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||Dc||(Dc=!0,n1(Vt,function(){return rs(),null})),O=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||O){O=Ln.transition,Ln.transition=null;var U=Wt;Wt=1;var ee=It;It|=4,ih.current=null,_k(o,f),UE(f,o),YF(ff),Ju=!!pf,ff=pf=null,o.current=f,Ck(f),Fe(),It=ee,Wt=U,Ln.transition=O}else o.current=f;if(Dc&&(Dc=!1,go=o,Pc=C),O=o.pendingLanes,O===0&&(yo=null),h(f.stateNode),yn(o,Pe()),s!==null)for(v=o.onRecoverableError,f=0;f<s.length;f++)C=s[f],v(C.value,{componentStack:C.stack,digest:C.digest});if(Rc)throw Rc=!1,o=sh,sh=null,o;return(Pc&1)!==0&&o.tag!==0&&rs(),O=o.pendingLanes,(O&1)!==0?o===lh?vl++:(vl=0,lh=o):vl=0,po(),null}function rs(){if(go!==null){var o=$b(Pc),s=Ln.transition,f=Wt;try{if(Ln.transition=null,Wt=16>o?16:o,go===null)var v=!1;else{if(o=go,go=null,Pc=0,(It&6)!==0)throw Error(r(331));var C=It;for(It|=4,Qe=o.current;Qe!==null;){var O=Qe,U=O.child;if((Qe.flags&16)!==0){var ee=O.deletions;if(ee!==null){for(var se=0;se<ee.length;se++){var we=ee[se];for(Qe=we;Qe!==null;){var Ie=Qe;switch(Ie.tag){case 0:case 11:case 15:yl(8,Ie,O)}var Be=Ie.child;if(Be!==null)Be.return=Ie,Qe=Be;else for(;Qe!==null;){Ie=Qe;var Ne=Ie.sibling,Ye=Ie.return;if(ME(Ie),Ie===we){Qe=null;break}if(Ne!==null){Ne.return=Ye,Qe=Ne;break}Qe=Ye}}}var et=O.alternate;if(et!==null){var rt=et.child;if(rt!==null){et.child=null;do{var _r=rt.sibling;rt.sibling=null,rt=_r}while(rt!==null)}}Qe=O}}if((O.subtreeFlags&2064)!==0&&U!==null)U.return=O,Qe=U;else e:for(;Qe!==null;){if(O=Qe,(O.flags&2048)!==0)switch(O.tag){case 0:case 11:case 15:yl(9,O,O.return)}var me=O.sibling;if(me!==null){me.return=O.return,Qe=me;break e}Qe=O.return}}var ce=o.current;for(Qe=ce;Qe!==null;){U=Qe;var be=U.child;if((U.subtreeFlags&2064)!==0&&be!==null)be.return=U,Qe=be;else e:for(U=ce;Qe!==null;){if(ee=Qe,(ee.flags&2048)!==0)try{switch(ee.tag){case 0:case 11:case 15:Cc(9,ee)}}catch(ot){vr(ee,ee.return,ot)}if(ee===U){Qe=null;break e}var qe=ee.sibling;if(qe!==null){qe.return=ee.return,Qe=qe;break e}Qe=ee.return}}if(It=C,po(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Fa,o)}catch{}v=!0}return v}finally{Wt=f,Ln.transition=s}}return!1}function e1(o,s,f){s=Qa(f,s),s=bE(o,s,1),o=ho(o,s,1),s=un(),o!==null&&(di(o,1,s),yn(o,s))}function vr(o,s,f){if(o.tag===3)e1(o,o,f);else for(;s!==null;){if(s.tag===3){e1(s,o,f);break}else if(s.tag===1){var v=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(yo===null||!yo.has(v))){o=Qa(f,o),o=vE(s,o,1),s=ho(s,o,1),o=un(),s!==null&&(di(s,1,o),yn(s,o));break}}s=s.return}}function Ok(o,s,f){var v=o.pingCache;v!==null&&v.delete(s),s=un(),o.pingedLanes|=o.suspendedLanes&f,qr===o&&(Hr&f)===f&&(Nr===4||Nr===3&&(Hr&130023424)===Hr&&500>Pe()-ah?na(o,0):oh|=f),yn(o,s)}function t1(o,s){s===0&&((o.mode&1)===0?s=1:(s=xe,xe<<=1,(xe&130023424)===0&&(xe=4194304)));var f=un();o=Pi(o,s),o!==null&&(di(o,s,f),yn(o,f))}function Nk(o){var s=o.memoizedState,f=0;s!==null&&(f=s.retryLane),t1(o,f)}function Ik(o,s){var f=0;switch(o.tag){case 13:var v=o.stateNode,C=o.memoizedState;C!==null&&(f=C.retryLane);break;case 19:v=o.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(s),t1(o,f)}var r1;r1=function(o,s,f){if(o!==null)if(o.memoizedProps!==s.pendingProps||pn.current)hn=!0;else{if((o.lanes&f)===0&&(s.flags&128)===0)return hn=!1,Ek(o,s,f);hn=(o.flags&131072)!==0}else hn=!1,cr&&(s.flags&1048576)!==0&&kv(s,lc,s.index);switch(s.lanes=0,s.tag){case 2:var v=s.type;Ac(o,s),o=s.pendingProps;var C=Ja(s,Xr.current);Ya(s,f),C=Lf(null,s,v,o,C,f);var O=Mf();return s.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,fn(v)?(O=!0,oc(s)):O=!1,s.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,Pf(s),C.updater=wc,s.stateNode=C,C._reactInternals=s,Jf(s,v,o,f),s=Gf(null,s,v,!0,O,f)):(s.tag=0,cr&&O&&Ef(s),ln(null,s,C,f),s=s.child),s;case 16:v=s.elementType;e:{switch(Ac(o,s),o=s.pendingProps,C=v._init,v=C(v._payload),s.type=v,C=s.tag=kk(v),o=Yn(v,o),C){case 0:s=Wf(null,s,v,o,f);break e;case 1:s=RE(null,s,v,o,f);break e;case 11:s=AE(null,s,v,o,f);break e;case 14:s=_E(null,s,v,Yn(v.type,o),f);break e}throw Error(r(306,v,""))}return s;case 0:return v=s.type,C=s.pendingProps,C=s.elementType===v?C:Yn(v,C),Wf(o,s,v,C,f);case 1:return v=s.type,C=s.pendingProps,C=s.elementType===v?C:Yn(v,C),RE(o,s,v,C,f);case 3:e:{if(DE(s),o===null)throw Error(r(387));v=s.pendingProps,O=s.memoizedState,C=O.element,Jv(o,s),hc(s,v,null,f);var U=s.memoizedState;if(v=U.element,O.isDehydrated)if(O={element:v,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},s.updateQueue.baseState=O,s.memoizedState=O,s.flags&256){C=Qa(Error(r(423)),s),s=PE(o,s,v,f,C);break e}else if(v!==C){C=Qa(Error(r(424)),s),s=PE(o,s,v,f,C);break e}else for(An=lo(s.stateNode.containerInfo.firstChild),Sn=s,cr=!0,Kn=null,f=Vv(s,null,v,f),s.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Wa(),v===C){s=Ni(o,s,f);break e}ln(o,s,v,f)}s=s.child}return s;case 5:return Wv(s),o===null&&Af(s),v=s.type,C=s.pendingProps,O=o!==null?o.memoizedProps:null,U=C.children,hf(v,C)?U=null:O!==null&&hf(v,O)&&(s.flags|=32),xE(o,s),ln(o,s,U,f),s.child;case 6:return o===null&&Af(s),null;case 13:return OE(o,s,f);case 4:return Of(s,s.stateNode.containerInfo),v=s.pendingProps,o===null?s.child=Ga(s,null,v,f):ln(o,s,v,f),s.child;case 11:return v=s.type,C=s.pendingProps,C=s.elementType===v?C:Yn(v,C),AE(o,s,v,C,f);case 7:return ln(o,s,s.pendingProps,f),s.child;case 8:return ln(o,s,s.pendingProps.children,f),s.child;case 12:return ln(o,s,s.pendingProps.children,f),s.child;case 10:e:{if(v=s.type._context,C=s.pendingProps,O=s.memoizedProps,U=C.value,rr(dc,v._currentValue),v._currentValue=U,O!==null)if(Gn(O.value,U)){if(O.children===C.children&&!pn.current){s=Ni(o,s,f);break e}}else for(O=s.child,O!==null&&(O.return=s);O!==null;){var ee=O.dependencies;if(ee!==null){U=O.child;for(var se=ee.firstContext;se!==null;){if(se.context===v){if(O.tag===1){se=Oi(-1,f&-f),se.tag=2;var we=O.updateQueue;if(we!==null){we=we.shared;var Ie=we.pending;Ie===null?se.next=se:(se.next=Ie.next,Ie.next=se),we.pending=se}}O.lanes|=f,se=O.alternate,se!==null&&(se.lanes|=f),Rf(O.return,f,s),ee.lanes|=f;break}se=se.next}}else if(O.tag===10)U=O.type===s.type?null:O.child;else if(O.tag===18){if(U=O.return,U===null)throw Error(r(341));U.lanes|=f,ee=U.alternate,ee!==null&&(ee.lanes|=f),Rf(U,f,s),U=O.sibling}else U=O.child;if(U!==null)U.return=O;else for(U=O;U!==null;){if(U===s){U=null;break}if(O=U.sibling,O!==null){O.return=U.return,U=O;break}U=U.return}O=U}ln(o,s,C.children,f),s=s.child}return s;case 9:return C=s.type,v=s.pendingProps.children,Ya(s,f),C=kn(C),v=v(C),s.flags|=1,ln(o,s,v,f),s.child;case 14:return v=s.type,C=Yn(v,s.pendingProps),C=Yn(v.type,C),_E(o,s,v,C,f);case 15:return CE(o,s,s.type,s.pendingProps,f);case 17:return v=s.type,C=s.pendingProps,C=s.elementType===v?C:Yn(v,C),Ac(o,s),s.tag=1,fn(v)?(o=!0,oc(s)):o=!1,Ya(s,f),yE(s,v,C),Jf(s,v,C,f),Gf(null,s,v,!0,o,f);case 19:return IE(o,s,f);case 22:return TE(o,s,f)}throw Error(r(156,s.tag))};function n1(o,s){return J(o,s)}function Fk(o,s,f,v){this.tag=o,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(o,s,f,v){return new Fk(o,s,f,v)}function hh(o){return o=o.prototype,!(!o||!o.isReactComponent)}function kk(o){if(typeof o=="function")return hh(o)?1:0;if(o!=null){if(o=o.$$typeof,o===te)return 11;if(o===K)return 14}return 2}function Eo(o,s){var f=o.alternate;return f===null?(f=Mn(o.tag,s,o.key,o.mode),f.elementType=o.elementType,f.type=o.type,f.stateNode=o.stateNode,f.alternate=o,o.alternate=f):(f.pendingProps=s,f.type=o.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=o.flags&14680064,f.childLanes=o.childLanes,f.lanes=o.lanes,f.child=o.child,f.memoizedProps=o.memoizedProps,f.memoizedState=o.memoizedState,f.updateQueue=o.updateQueue,s=o.dependencies,f.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},f.sibling=o.sibling,f.index=o.index,f.ref=o.ref,f}function Fc(o,s,f,v,C,O){var U=2;if(v=o,typeof o=="function")hh(o)&&(U=1);else if(typeof o=="string")U=5;else e:switch(o){case P:return oa(f.children,C,O,s);case N:U=8,C|=8;break;case L:return o=Mn(12,f,s,C|2),o.elementType=L,o.lanes=O,o;case W:return o=Mn(13,f,s,C),o.elementType=W,o.lanes=O,o;case $:return o=Mn(19,f,s,C),o.elementType=$,o.lanes=O,o;case ae:return kc(f,C,O,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Z:U=10;break e;case H:U=9;break e;case te:U=11;break e;case K:U=14;break e;case ne:U=16,v=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return s=Mn(U,f,s,C),s.elementType=o,s.type=v,s.lanes=O,s}function oa(o,s,f,v){return o=Mn(7,o,v,s),o.lanes=f,o}function kc(o,s,f,v){return o=Mn(22,o,v,s),o.elementType=ae,o.lanes=f,o.stateNode={isHidden:!1},o}function mh(o,s,f){return o=Mn(6,o,null,s),o.lanes=f,o}function yh(o,s,f){return s=Mn(4,o.children!==null?o.children:[],o.key,s),s.lanes=f,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function Bk(o,s,f,v,C){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ci(0),this.expirationTimes=ci(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ci(0),this.identifierPrefix=v,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function gh(o,s,f,v,C,O,U,ee,se){return o=new Bk(o,s,f,ee,se),s===1?(s=1,O===!0&&(s|=8)):s=0,O=Mn(3,null,null,s),o.current=O,O.stateNode=o,O.memoizedState={element:v,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pf(O),o}function Lk(o,s,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:v==null?null:""+v,children:o,containerInfo:s,implementation:f}}function i1(o){if(!o)return co;o=o._reactInternals;e:{if(Kr(o)!==o||o.tag!==1)throw Error(r(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(fn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(o.tag===1){var f=o.type;if(fn(f))return Nv(o,f,s)}return s}function o1(o,s,f,v,C,O,U,ee,se){return o=gh(f,v,!0,o,C,O,U,ee,se),o.context=i1(null),f=o.current,v=un(),C=bo(f),O=Oi(v,C),O.callback=s??null,ho(f,O,C),o.current.lanes=C,di(o,C,v),yn(o,v),o}function Bc(o,s,f,v){var C=s.current,O=un(),U=bo(C);return f=i1(f),s.context===null?s.context=f:s.pendingContext=f,s=Oi(O,U),s.payload={element:o},v=v===void 0?null:v,v!==null&&(s.callback=v),o=ho(C,s,U),o!==null&&(Zn(o,C,U,O),fc(o,C,U)),U}function Lc(o){return o=o.current,o.child?(o.child.tag===5,o.child.stateNode):null}function a1(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var f=o.retryLane;o.retryLane=f!==0&&f<s?f:s}}function bh(o,s){a1(o,s),(o=o.alternate)&&a1(o,s)}function Mk(){return null}var s1=typeof reportError=="function"?reportError:function(o){console.error(o)};function vh(o){this._internalRoot=o}Mc.prototype.render=vh.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));Bc(o,s,null,null)},Mc.prototype.unmount=vh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;ra(function(){Bc(null,o,null,null)}),s[Ti]=null}};function Mc(o){this._internalRoot=o}Mc.prototype.unstable_scheduleHydration=function(o){if(o){var s=Jb();o={blockedOn:null,target:o,priority:s};for(var f=0;f<oo.length&&s!==0&&s<oo[f].priority;f++);oo.splice(f,0,o),f===0&&Wb(o)}};function Eh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function qc(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function l1(){}function qk(o,s,f,v,C){if(C){if(typeof v=="function"){var O=v;v=function(){var we=Lc(U);O.call(we)}}var U=o1(s,v,o,0,null,!1,!1,"",l1);return o._reactRootContainer=U,o[Ti]=U.current,nl(o.nodeType===8?o.parentNode:o),ra(),U}for(;C=o.lastChild;)o.removeChild(C);if(typeof v=="function"){var ee=v;v=function(){var we=Lc(se);ee.call(we)}}var se=gh(o,0,!1,null,null,!1,!1,"",l1);return o._reactRootContainer=se,o[Ti]=se.current,nl(o.nodeType===8?o.parentNode:o),ra(function(){Bc(s,se,f,v)}),se}function jc(o,s,f,v,C){var O=f._reactRootContainer;if(O){var U=O;if(typeof C=="function"){var ee=C;C=function(){var se=Lc(U);ee.call(se)}}Bc(s,U,o,C)}else U=qk(f,s,o,C,v);return Lc(U)}Vb=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var f=Je(s.pendingLanes);f!==0&&(pi(s,f|1),yn(s,Pe()),(It&6)===0&&(ts=Pe()+500,po()))}break;case 13:ra(function(){var v=Pi(o,1);if(v!==null){var C=un();Zn(v,o,1,C)}}),bh(o,1)}},Jp=function(o){if(o.tag===13){var s=Pi(o,134217728);if(s!==null){var f=un();Zn(s,o,134217728,f)}bh(o,134217728)}},Ub=function(o){if(o.tag===13){var s=bo(o),f=Pi(o,s);if(f!==null){var v=un();Zn(f,o,s,v)}bh(o,s)}},Jb=function(){return Wt},zb=function(o,s){var f=Wt;try{return Wt=o,s()}finally{Wt=f}},Br=function(o,s,f){switch(s){case"input":if(pt(o,f),s=f.name,f.type==="radio"&&s!=null){for(f=o;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<f.length;s++){var v=f[s];if(v!==o&&v.form===o.form){var C=nc(v);if(!C)throw Error(r(90));Ue(v),pt(v,C)}}}break;case"textarea":fr(o,f);break;case"select":s=f.value,s!=null&&Lt(o,!!f.multiple,s,!1)}},V=dh,M=ra;var jk={usingClientEntryPoint:!1,Events:[al,Va,nc,st,D,dh]},El={findFiberByHostInstance:Go,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$k={bundleType:El.bundleType,version:El.version,rendererPackageName:El.rendererPackageName,rendererConfig:El.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=S(o),o===null?null:o.stateNode},findFiberByHostInstance:El.findFiberByHostInstance||Mk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$c.isDisabled&&$c.supportsFiber)try{Fa=$c.inject($k),Nn=$c}catch{}}return gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jk,gn.createPortal=function(o,s){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Eh(s))throw Error(r(200));return Lk(o,s,null,f)},gn.createRoot=function(o,s){if(!Eh(o))throw Error(r(299));var f=!1,v="",C=s1;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onRecoverableError!==void 0&&(C=s.onRecoverableError)),s=gh(o,1,!1,null,null,f,!1,v,C),o[Ti]=s.current,nl(o.nodeType===8?o.parentNode:o),new vh(s)},gn.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=S(s),o=o===null?null:o.stateNode,o},gn.flushSync=function(o){return ra(o)},gn.hydrate=function(o,s,f){if(!qc(s))throw Error(r(200));return jc(null,o,s,!0,f)},gn.hydrateRoot=function(o,s,f){if(!Eh(o))throw Error(r(405));var v=f!=null&&f.hydratedSources||null,C=!1,O="",U=s1;if(f!=null&&(f.unstable_strictMode===!0&&(C=!0),f.identifierPrefix!==void 0&&(O=f.identifierPrefix),f.onRecoverableError!==void 0&&(U=f.onRecoverableError)),s=o1(s,null,o,1,f??null,C,!1,O,U),o[Ti]=s.current,nl(o),v)for(o=0;o<v.length;o++)f=v[o],C=f._getVersion,C=C(f._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[f,C]:s.mutableSourceEagerHydrationData.push(f,C);return new Mc(s)},gn.render=function(o,s,f){if(!qc(s))throw Error(r(200));return jc(null,o,s,!1,f)},gn.unmountComponentAtNode=function(o){if(!qc(o))throw Error(r(40));return o._reactRootContainer?(ra(function(){jc(null,null,o,!1,function(){o._reactRootContainer=null,o[Ti]=null})}),!0):!1},gn.unstable_batchedUpdates=dh,gn.unstable_renderSubtreeIntoContainer=function(o,s,f,v){if(!qc(f))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return jc(o,s,f,!1,v)},gn.version="18.3.1-next-f1338f8080-20240426",gn}var d_;function Ure(){if(d_)return dm.exports;d_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dm.exports=Vre(),dm.exports}var UI=Ure();const wie=$O(UI),Jre=Ft(20),bu=Ft(-20),zre=sb({from:{background:"rgba($background, 0)"},to:{background:"rgba($background, 0.3)"}}),JI=Me("div",{position:"fixed",zIndex:4,top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",animation:`${zre.toString()} 300ms`,animationFillMode:"forwards",backdropFilter:"blur(5px)",variants:{position:{bottom:{alignItems:"flex-end",paddingBottom:Xe(24)}},isClosing:{true:{animationDirection:"reverse"}}}}),Hre=sb({from:{transform:"translateY(30px)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Ob=Me("div",{mx:bu}),zI=Me("div",{background:"$modalBg",borderRadius:Xe(12),maxWidth:Ft(333),maxHeight:"100%",width:"calc(100% - 30px)",padding:Jre,position:"relative",boxSizing:"border-box",animation:`${Hre.toString()} 300ms`,animationFillMode:"forwards",variants:{full:{true:{width:"calc(100vw - 30px)",maxWidth:Xe(1e3)}},isClosing:{true:{animationDirection:"reverse"}}}}),HI=Me("div",{fontSize:Pr(40),textAlign:"center",color:"$text3",margin:`${Xe(90)} 0`}),Nb=Oe.forwardRef(({children:e,onClose:t,isOpen:r,title:n,className:i,onOverlayClick:a="close",closeOnEsc:l=!0,portal:u=!0,position:p,full:c},m)=>{const[y,g]=Oe.useState(!1),[b,w]=Oe.useState(!1),A=Oe.useRef(null),x=Pb(m);Oe.useEffect(()=>{if(!r||!l)return;const L=Z=>{Z.key==="Escape"&&t()};return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[r,l,t]),Oe.useEffect(()=>{if(!r){g(!0);return}w(!0),g(!1)},[r]),Oe.useEffect(()=>{y&&(!A.current||!x.current||(A.current.style.animation="none",x.current.style.animation="none",A.current.offsetHeight,A.current.style.removeProperty("animation"),x.current.style.removeProperty("animation")))},[y,x]);const _=n?ue.createElement(HI,null,n):null,R=Oe.useCallback(L=>{L.target===L.currentTarget&&(a==="close"&&t(),typeof a=="function"&&a())},[a,t]),j=Oe.useCallback(()=>{r||w(!1)},[r]);if(!b)return null;const B={};y&&(B.isClosing=!0),p!=null&&(B.position=p);const F={};y&&(F.isClosing=!0),c!=null&&(F.full=c);const E=ue.Children.count(e),P=ue.Children.map(e,(L,Z)=>{if(ue.isValidElement(L)){if(L.type===Ob){const H=L.props.css??{};return Z===0&&_==null&&(H.marginTop=bu),Z===E-1&&(H.marginBottom=bu),ue.cloneElement(L,{css:H})}return L}return L}),N=ue.createElement(JI,{...B,onClick:R,ref:A,onAnimationEnd:j},ue.createElement(zI,{className:i,...F,ref:x},_,P));if(u){const L=typeof u=="boolean"?document.body:u;return UI.createPortal(N,L)}return N});Nb.displayName="Modal";const Wre=Ia(Nb,{RemovePadding:Ob});Wre.toString=()=>JI.toString();zI.toString();HI.toString();Ob.toString();Nb.__docgenInfo={description:"",methods:[],displayName:"Modal",props:{onOverlayClick:{required:!1,tsType:{name:"union",raw:'(() => void) | "close" | null',elements:[{name:"unknown"},{name:"literal",value:'"close"'},{name:"null"}]},description:"",defaultValue:{value:'"close"',computed:!1}},closeOnEsc:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},onClose:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isOpen:{required:!0,tsType:{name:"boolean"},description:""},title:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},className:{required:!1,tsType:{name:"string"},description:""},portal:{required:!1,tsType:{name:"union",raw:"boolean | HTMLElement",elements:[{name:"boolean"},{name:"HTMLElement"}]},description:"",defaultValue:{value:"true",computed:!1}},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},position:{required:!1,tsType:{name:'ReactComponentProps["position"]',raw:'OverlayProps["position"]'},description:""},full:{required:!1,tsType:{name:'ReactComponentProps["full"]',raw:'ContainerProps["full"]'},description:""}}};const Gre=Me("div",{display:"flex",marginTop:Xe(100),mx:bu,marginBottom:bu}),Kre=Me("button",{border:"none",borderTop:"1px solid $modalButtonBorder",background:"$modalButtonBg",flex:1,height:Xe(156),fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center","&:not(:first-child)":{borderLeft:"1px solid $modalButtonBorder"},"&:first-child":{borderBottomLeftRadius:Xe(12)},"&:last-child":{borderBottomRightRadius:Xe(12)},variants:{variant:{main:{color:"$mainColor"}}}}),Sie=Ia(Gre,{Button:Kre}),WI=Me("div",{height:Xe(20),position:"relative",overflow:"hidden",variants:{size:{big:{height:Xe(40)}}},"--value-border-color":"$colors$blue5","--value-background-color":"$colors$blue4","--container-border-color":"$colors$border","--container-background-color":"$colors$toggleBgDisabled"}),GI=Np({position:"absolute",top:0,height:"100%",borderRadius:"9999px",border:`${Wo(1)} solid $border`,background:"$background"}),Ib=Me("div",GI,{borderColor:"var(--value-border-color)",background:"var(--value-background-color)",transition:"right 0.3s, border-width 0.3s, left 0.3s",variants:{zero:{true:{borderWidth:0}}}}),Fb=Me("div",GI,{borderColor:"var(--container-border-color)",background:"var(--container-background-color)",width:"100%"}),kb=Oe.forwardRef((e,t)=>{const{value:r,valueFrom:n,scaleFrom:i=0,scaleTo:a=100,...l}=e,u=YA(n??i,a,i),p=YA(r??i,a,i),c=n!=null?XA(i,a,0,100,u):0,m=Math.max(c,0),y=r!=null?XA(a,i,0,100,p):100,g=Math.max(y,0),b=u>=p||m===100||g===100,w={right:`${g}%`,left:`${m}%`};return ue.createElement(WI,{ref:t,...l},ue.createElement(Fb,null),ue.createElement(Ib,{css:w,zero:b}))});kb.displayName="Progress";const Yre=Ia(kb,{selectors:{background:Fb.toString(),value:Ib.toString()}});Yre.toString=()=>WI.toString();Fb.toString();Ib.toString();kb.__docgenInfo={description:`Progress bar component, it can be filled from the start or from any arbitrary point.
|
|
1122
|
+
|
|
1123
|
+
At the moment, no value (undefined) means starting point, but in the future it will mean "undetermined" state.`,methods:[],displayName:"Progress",props:{value:{required:!1,tsType:{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]},description:"The value of the progress bar. If used alone, it's the percentage value of the progress bar."},valueFrom:{required:!1,tsType:{name:"number"},description:"Value from which the value bar starts. Default is equal to `scaleFrom`."},scaleFrom:{required:!1,tsType:{name:"number"},description:"Redefines the scale of the progress bar. By default, the scale is 0-100. This controls the starting point of the progress bar."},scaleTo:{required:!1,tsType:{name:"number"},description:"Redefines the scale of the progress bar. By default, the scale is 0-100. This controls the ending point of the progress bar."}}};const KI=e=>{const t=Oe.useRef(null),{onClick:r}=e;return Oe.useEffect(()=>{const n=t.current;if(!n)return;const i=a=>{a.target instanceof HTMLElement&&a.target.nodeName.toLowerCase()==="button"&&setTimeout(()=>{r()},0)};return n.addEventListener("click",i),()=>{n.removeEventListener("click",i)}},[r]),ue.createElement("div",{ref:t},e.children)};KI.__docgenInfo={description:"",methods:[],displayName:"OnButtonClick",props:{onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Bb=Me("div",{position:"fixed",background:"#0000004c",inset:0,zIndex:4}),YI=Me("ul",{zIndex:5,position:"absolute",background:"$background",margin:0,padding:0,listStyleType:"none"}),XI=Me("li",{margin:0,padding:0,listStyleType:"none","& + &":{borderTop:"1px solid $border"}}),QI=Me("button",{border:"none",background:"$background",height:Xe(116),padding:`0 ${Xe(42)}`,boxSizing:"border-box",width:"100%",minWidth:Xe(460),textAlign:"left",color:"$popText",fontSize:Pr(26),fontWeight:"revert",display:"flex",alignItems:"center","&:hover":{background:"$activeBg"}}),ZI=Me("div",{fill:"currentColor",marginRight:Xe(42)}),Xre=Me("span",{display:"inline-block",width:16,height:16,marginRight:Xe(42)}),Up=Oe.forwardRef((e,t)=>{const r=e.icon?ue.createElement(ZI,null,e.icon):e.forceEmptyIcon??!0?ue.createElement(Xre,null):null;return ue.createElement(XI,{ref:t,className:e.className},ue.createElement(QI,{onClick:e.onClick},r,e.children))});Up.displayName="PopOption";Up.toString=()=>XI.toString();QI.toString();ZI.toString();Up.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"PopOption",props:{icon:{required:!1,tsType:{name:"ReactReactElement",raw:"React.ReactElement"},description:""},forceEmptyIcon:{required:!1,tsType:{name:"boolean"},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const eF=typeof document=="object"?document.getElementsByTagName("html")[0]:null,tF=e=>({width:e.clientWidth,height:e.clientHeight}),Qre=(e,t=eF)=>{const r=tF(t),n=e.getBoundingClientRect(),i=r.height-n.bottom,l=n.top>i?"bottom":"top",u=n.left,p=r.width-n.right,c=u>p?"right":"left";return[l,c]},jb=class jb extends Oe.Component{constructor(t){super(t),this.onOpen=()=>{const r=this.getAnchorElement();if(!r){console.warn("PopOptions can not find anchor element");return}if(!(r instanceof HTMLElement)){console.warn("PopOptions anchor element not a HTMLElement");return}const[n,i]=Qre(r),a=tF(eF),l=r.getBoundingClientRect(),u=i==="left"?l.left:a.width-l.right,p=n==="top"?l.bottom:a.height-l.top;this.setState({vertical:n,horizontal:i,x:u,y:p})},this.handleOverlayClick=r=>{r.target===r.currentTarget&&this.props.onClose()},this.handleEsc=()=>{this.props.onClose()},this.state={x:0,y:0,vertical:"top",horizontal:"left"},this.rootRef=Oe.createRef()}componentDidUpdate(t){!t.open&&this.props.open&&this.onOpen()}getAnchorElement(){return this.props.anchor instanceof HTMLElement?this.props.anchor:this.rootRef.current?this.props.anchor==="prev"?this.rootRef.current.previousElementSibling:this.props.anchor==="next"?this.rootRef.current.nextElementSibling:null:null}render(){const t={};if(this.state.vertical==="top"?t.top=this.state.y:t.bottom=this.state.y,this.state.horizontal==="left"?t.left=this.state.x:t.right=this.state.x,!this.props.open)return null;const n=(this.props.closeOnEsc??!0)&&ue.createElement(PI,{onPress:this.handleEsc});return ue.createElement(Bb,{className:this.props.className,ref:this.rootRef,onClick:this.handleOverlayClick},n,ue.createElement(KI,{onClick:this.handleEsc},ue.createElement(YI,{css:t},this.props.children)))}};jb.Option=Up;let Wd=jb;Wd.toString=()=>Bb.toString();Bb.toString();YI.toString();Wd.__docgenInfo={description:`Popup menu component.
|
|
1124
|
+
|
|
1125
|
+
It has a bug that miscalculates the position inside Storybook.`,methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Pop",props:{open:{required:!0,tsType:{name:"boolean"},description:""},onClose:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},anchor:{required:!1,tsType:{name:"union",raw:'HTMLElement | "prev" | "next"',elements:[{name:"HTMLElement"},{name:"literal",value:'"prev"'},{name:"literal",value:'"next"'}]},description:""},closeOnEsc:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const rF=Me("ul",{"--stats-border":"1px solid rgba(255, 255, 255, .15)","--stats-bg":"rgba(255, 255, 255, .05)","--stats-value-color":"rgba(255, 255, 255, .9)","--stats-label-color":"rgba(255, 255, 255, .61)",display:"flex",width:"100%",padding:Xe(60),margin:"0",borderTop:"var(--stats-border)",background:"var(--stats-bg)",backgroundClip:"padding-box",listStyleType:"none",variants:{variant:{dark:{"--stats-border":"1px solid rgba(0, 0, 0, .15)","--stats-bg":"rgba(0, 0, 0, .05)","--stats-value-color":"rgba(0, 0, 0, .9)","--stats-label-color":"rgba(0, 0, 0, .61)"}}}}),nF=Me("li",{flex:1,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",textAlign:"center",gap:Xe(20)}),iF=Me("li",{borderLeft:"var(--stats-border)"}),oF=Me("span",{display:"block",color:"var(--stats-label-color)",fontSize:Pr(22)}),aF=Me("span",{display:"block",color:"var(--stats-value-color)",fontSize:Pr(30)}),Lb=Oe.forwardRef(({stats:e,...t},r)=>{const n=e.map((a,l)=>ue.createElement(nF,{key:l},ue.createElement(aF,null,a.value),ue.createElement(oF,null,a.label))),i=n.length;for(let a=0;a<i-1;a++)n.splice(a*2+1,0,ue.createElement(iF,{key:`separator${a}`}));return ue.createElement(rF,{...t,ref:r},n)});Lb.displayName="Stats";Lb.toString=()=>rF.toString();const Aie=nF.toString(),_ie=iF.toString(),Cie=oF.toString(),Tie=aF.toString();Lb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Stats",props:{stats:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
|
|
1126
|
+
label: string;
|
|
1127
|
+
value: React.ReactNode;
|
|
1128
|
+
}`,signature:{properties:[{key:"label",value:{name:"string",required:!0}},{key:"value",value:{name:"ReactReactNode",raw:"React.ReactNode",required:!0}}]}}],raw:"Stat[]"},description:""}}};const sF=Op("button",{border:"none",padding:0,fontSize:Pr(29),color:"var(--selector-text)",background:"none",whiteSpace:"nowrap",flexShrink:0,variants:{active:{true:{color:"var(--selector-active)"}}}}),$u=e=>{const{onClick:t,value:r}=e,n=Oe.useCallback(()=>{t(r.value)},[t,r.value]);return ue.createElement(sF,{onClick:n,active:e.active,type:"button","data-active":e.active},e.value.label)};$u.displayName="Item";$u.toString=()=>sF.toString();$u.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Item",props:{value:{required:!0,tsType:{name:"ObjectValue"},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},active:{required:!0,tsType:{name:"boolean"},description:""}}};const Zre=YN({"0%, 100%":{transform:"translateX(0)"},"50%":{transform:"translateX(3px)"}}),ene=YN({"0%, 100%":{transform:"translateX(0)"},"50%":{transform:"translateX(-3px)"}}),lF=Op("div",{"--selector-text":"$colors$selectorText","--selector-active":"$colors$selectorActive",display:"flex",flex:1,justifyContent:"center",gap:Xe(114),variants:{multiLine:{true:{flexWrap:"wrap",rowGap:Xe(60)},false:{flexWrap:"nowrap",overflowX:"auto",scrollbarWidth:"none",justifyContent:"flex-start",paddingRight:Xe(60),"&::-webkit-scrollbar":{display:"none"}}}}}),tne=Op("div",{position:"relative",display:"flex",flex:1,overflow:"hidden"}),p_=Op("div",{position:"absolute",top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",fontSize:Pr(29),color:"var(--selector-text)",opacity:0,transition:"opacity 0.2s ease",variants:{side:{right:{right:0,paddingRight:Xe(12),animation:`${String(Zre)} 1.5s ease-in-out 0.5s 2`},left:{left:0,paddingLeft:Xe(12),animation:`${String(ene)} 1.5s ease-in-out 0.5s 2`}},visible:{true:{opacity:.65}}}}),Gd="62px",rne=`linear-gradient(to right, black calc(100% - ${Gd}), transparent)`,nne=`linear-gradient(to left, black calc(100% - ${Gd}), transparent)`,ine=[`linear-gradient(to right, transparent, black ${Gd}, black calc(100% - ${Gd}), transparent)`].join(""),one=(e,t)=>{const[r,n]=Oe.useState(!1),[i,a]=Oe.useState(!1);return Oe.useEffect(()=>{if(!t)return;const l=e.current,u=()=>{const c=l.scrollWidth>l.clientWidth,m=l.scrollLeft<=1,y=l.scrollLeft+l.clientWidth>=l.scrollWidth-1,g=c&&!y,b=c&&!m;n(g),a(b);let w="";b&&g?w=ine:g?w=rne:b&&(w=nne),l.style.maskImage=w};u(),l.addEventListener("scroll",u,{passive:!0});const p=new ResizeObserver(u);return p.observe(l),()=>{l.removeEventListener("scroll",u),p.disconnect()}},[e,t]),{showRight:r,showLeft:i}},Mb=Oe.forwardRef((e,t)=>{const r=Pb(t),[n,i]=Oe.useState(e.value),{showRight:a,showLeft:l}=one(r,e.multiLine===!1),{onChange:u}=e,p=Oe.useCallback(b=>{i(b),u?.(b)},[u]),c=e.value??n,m=e.values.map(b=>{const w=zN(b);return ue.createElement($u,{key:w.value,value:w,onClick:p,active:c===w.value})}),y=e.multiLine!=null?{multiLine:e.multiLine}:{},g=ue.createElement(lF,{ref:r,className:e.className,...y},m);return e.multiLine===!1?ue.createElement(tne,null,ue.createElement(p_,{side:"left",visible:l},"‹"),g,ue.createElement(p_,{side:"right",visible:a},"›")):g});Mb.displayName="Selector";Mb.toString=()=>lF.toString();const xie=$u.toString();Mb.__docgenInfo={description:"",methods:[{name:"toString",docblock:null,modifiers:["static"],params:[],returns:null}],displayName:"Selector",props:{values:{required:!0,tsType:{name:"Array",elements:[{name:"union",raw:"T | ObjectValue",elements:[{name:"string"},{name:"ObjectValue"}]}],raw:"Array<Value<string>>"},description:""},value:{required:!1,tsType:{name:"string"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},multiLine:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const ane=sb({from:{transform:`translateY(calc(100% + ${Xe(190)}))`}}),sne=Me("div",{position:"fixed",bottom:0,display:"flex",justifyContent:"center",zIndex:6,left:"50%",transform:"translateX(-50%)","& span":{background:"rgba(56, 50, 46, 0.85)",color:"#F9F6F2",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.37)",borderRadius:"12px",display:"inline-block",padding:"1em 1em",animation:`${ane.toString()} 500ms 1`,animationFillMode:"forwards",marginBottom:Xe(190)},variants:{hide:{true:{transition:"opacity 300ms",opacity:0}}}}),uF=e=>{const[t,r]=Oe.useState(!1),n=e.toast.id,{onRemove:i}=e,a=Oe.useCallback(()=>{i(n)},[n,i]),l=Oe.useCallback(()=>{r(!0)},[]);return ue.createElement(sne,{hide:e.toast.hide||t,key:e.toast.id,onTransitionEnd:a,onClick:l},ue.createElement("span",null,e.toast.text))};uF.__docgenInfo={description:"",methods:[],displayName:"Notification",props:{toast:{required:!0,tsType:{name:"Toast"},description:""},onRemove:{required:!0,tsType:{name:"signature",type:"function",raw:'(id: Toast["id"]) => void',signature:{arguments:[{type:{name:'Toast["id"]',raw:'Toast["id"]'},name:"id"}],return:{name:"void"}}},description:""}}};const qb=Oe.createContext(()=>{throw new Error("Toaster Provider missing in the tree")});qb.displayName="ToasterContext";const lne=`${Date.now()}_`;let une=0;const cne=5e3;class cF extends ue.Component{constructor(t,r){super(t,r),this._add=(n,i=cne)=>{this._removeAllToasts();const a=lne+String(une++),l=!1;this.setState(u=>({...u,list:[...u.list,{id:a,text:n,hide:l}]})),setTimeout(()=>{this.setState(u=>({...u,list:u.list.map(p=>p.id!==a?p:{...p,hide:!0})}))},i)},this._handleRemove=n=>{this.setState(i=>({...i,list:i.list.filter(a=>a.id!==n)}))},this._removeAllToasts=()=>{this.setState(n=>({...n,list:n.list.map(i=>i.hide?i:{...i,hide:!0})}))},this.state={list:[]}}render(){const t=this.state.list.map(r=>ue.createElement(uF,{onRemove:this._handleRemove,key:r.id,toast:r}));return ue.createElement(qb.Provider,{value:this._add},t,this.props.children)}}const Rie=()=>Oe.useContext(qb);cF.__docgenInfo={description:"",methods:[],displayName:"ToasterProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Die=Me("button",{height:Xe(79),borderRadius:Xe(10),fontWeight:"bold",fontSize:Pr(23),display:"flex",alignItems:"center",justifyContent:"center",paddingInline:Xe(16),background:"white",boxSizing:"border-box",border:`${Xe(6)} solid transparent`,color:"$toolButtonText","&:hover":{background:"#ffffffcc"},variants:{inline:{true:{width:"auto",display:"inline-flex"}},variant:{secondary:{border:`${Xe(6)} solid #ffffff42`,background:"none","&:hover":{background:"#ffffff22"},color:"white"},secondaryOnLight:{border:`${Xe(6)} solid $border`,background:"none",color:"$text","&:hover":{borderColor:"$buttonBorder"}}}}}),Pie=Me("div",{display:"flex",gap:"10px",flexDirection:"column",variants:{row:{true:{flexDirection:"row"}}}});Me("div",{flex:1});const dne=`
|
|
1129
|
+
/*
|
|
1130
|
+
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
1131
|
+
- The "symbol *" part is to solve Firefox SVG sprite bug
|
|
1132
|
+
*/
|
|
1133
|
+
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
|
|
1134
|
+
all: unset;
|
|
1135
|
+
display: revert;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/* Preferred box-sizing value */
|
|
1139
|
+
*,
|
|
1140
|
+
*::before,
|
|
1141
|
+
*::after {
|
|
1142
|
+
box-sizing: border-box;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/* Reapply the pointer cursor for anchor tags */
|
|
1146
|
+
a, button {
|
|
1147
|
+
cursor: revert;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* Remove list styles (bullets/numbers) */
|
|
1151
|
+
ol, ul, menu {
|
|
1152
|
+
list-style: none;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/* For images to not be able to exceed their container */
|
|
1156
|
+
img {
|
|
1157
|
+
max-inline-size: 100%;
|
|
1158
|
+
max-block-size: 100%;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/* removes spacing between cells in tables */
|
|
1162
|
+
table {
|
|
1163
|
+
border-collapse: collapse;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
|
|
1167
|
+
input, textarea {
|
|
1168
|
+
-webkit-user-select: auto;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* revert the 'white-space' property for textarea elements on Safari */
|
|
1172
|
+
textarea {
|
|
1173
|
+
white-space: revert;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/* minimum style to allow to style meter element */
|
|
1177
|
+
meter {
|
|
1178
|
+
-webkit-appearance: revert;
|
|
1179
|
+
appearance: revert;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/* preformatted text - use only for this feature */
|
|
1183
|
+
:where(pre) {
|
|
1184
|
+
all: revert;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/* reset default text opacity of input placeholder */
|
|
1188
|
+
::placeholder {
|
|
1189
|
+
color: unset;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/* remove default dot (•) sign */
|
|
1193
|
+
::marker {
|
|
1194
|
+
content: initial;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/* fix the feature of 'hidden' attribute.
|
|
1198
|
+
display:revert; revert to element instead of attribute */
|
|
1199
|
+
:where([hidden]) {
|
|
1200
|
+
display: none;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/* revert for bug in Chromium browsers
|
|
1204
|
+
- fix for the content editable attribute will work properly.
|
|
1205
|
+
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
|
|
1206
|
+
:where([contenteditable]:not([contenteditable="false"])) {
|
|
1207
|
+
-moz-user-modify: read-write;
|
|
1208
|
+
-webkit-user-modify: read-write;
|
|
1209
|
+
overflow-wrap: break-word;
|
|
1210
|
+
-webkit-line-break: after-white-space;
|
|
1211
|
+
-webkit-user-select: auto;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/* apply back the draggable feature - exist only in Chromium and Safari */
|
|
1215
|
+
:where([draggable="true"]) {
|
|
1216
|
+
-webkit-user-drag: element;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/* Revert Modal native behavior */
|
|
1220
|
+
:where(dialog:modal) {
|
|
1221
|
+
all: revert;
|
|
1222
|
+
}`,pne=`*, *::before, *::after {
|
|
1223
|
+
box-sizing: border-box;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
html, body {
|
|
1227
|
+
height: 100%;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
body {
|
|
1231
|
+
-webkit-font-smoothing: antialiased;
|
|
1232
|
+
font-family: sans-serif;
|
|
1233
|
+
font-size: 16px;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
#root, #__next {
|
|
1237
|
+
isolation: isolate;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
small {
|
|
1241
|
+
font-size: smaller;
|
|
1242
|
+
}
|
|
1243
|
+
`,fne=dne+`
|
|
1244
|
+
`+pne,hne=dre({"*:focus":{outline:"none !important"},"*:focus-visible:focus-visible":{outline:"none !important",borderColor:"$focusColor",backgroundColor:"var(--focus-bg-set)"},body:{color:"$text"}}),mne={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}},decorators:[e=>(hne(),ue.createElement(ue.Fragment,null,ue.createElement("style",{id:"miui-css-reset",dangerouslySetInnerHTML:{__html:fne}}),ue.createElement("style",null,".docblock-argstable textarea[id] { box-sizing: content-box; }","#storybook-root { height: 100%; }"),ue.createElement(cF,null,ue.createElement(e,null))))]},yne=Object.freeze(Object.defineProperty({__proto__:null,default:mne},Symbol.toStringTag,{value:"Module"})),{composeConfigs:gne}=__STORYBOOK_MODULE_PREVIEW_API__;function bne(e=[]){const t=[e[0]??SX,e[1]??pte,e[2]??Ate,e[3]??Nte,e[4]??yne];return gne(t)}jO();const{PreviewWeb:vne}=__STORYBOOK_MODULE_PREVIEW_API__;window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new vne(oX,bne);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{hie as $,Lu as A,mie as B,ub as C,qI as D,Us as E,$p as F,Pie as G,qp as H,hI as I,uie as J,Db as K,db as L,Wre as M,Mb as N,xie as O,xb as P,Oy as Q,ue as R,nie as S,Lb as T,Aie as U,Cie as V,_ie as W,Tie as X,vre as Y,die as Z,Eie as _,lb as a,pb as a0,fb as a1,Die as a2,_re as a3,iie as a4,AQ as a5,rie as a6,tie as a7,oie as a8,CQ as a9,Qne as aA,UI as aB,Oe as aC,Tne as aD,VO as aE,Ure as aF,Fne as aG,xne as aH,Me as aI,One as aJ,eie as aK,Une as aL,Jne as aM,$ne as aN,Vne as aO,Rie as aP,Pne as aa,Lne as ab,kne as ac,Kne as ad,zne as ae,Dne as af,jne as ag,Nne as ah,qne as ai,Yne as aj,Xne as ak,Bne as al,$O as am,_ne as an,Cne as ao,Wne as ap,Gne as aq,Hne as ar,ba as as,Ine as at,gQ as au,ji as av,Rne as aw,Mne as ax,gre as ay,Zne as az,cb as b,MI as c,Rb as d,Mu as e,pie as f,Ab as g,Bu as h,cie as i,jp as j,bie as k,yie as l,gie as m,_b as n,vie as o,Rre as p,ju as q,VI as r,Sie as s,Wd as t,Vp as u,Yre as v,Ane as w,wie as x,Ob as y,fie as z};
|