impact-ui 5.0.2-beta.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index4.js +2 -4
- package/dist/_virtual/index5.js +2 -4
- package/dist/_virtual/index7.js +2 -4
- package/dist/_virtual/index8.js +2 -4
- package/dist/_virtual/react-is3.production.min.js +4 -0
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionModern/SortableAccordionComp.js +2 -2
- package/dist/components/AccordionModern/index.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.js +41 -34
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +1 -1
- package/dist/components/BottomSheet/index.js +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.js +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +2 -8
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -5
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts.map +1 -1
- package/dist/components/Chart/ChartSkeleton.js +17 -24
- package/dist/components/Chart/index.d.ts +4 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +69 -85
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +5 -12
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +9 -7
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +62 -69
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +12 -12
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +3 -11
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +7 -8
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chips/index.d.ts.map +1 -1
- package/dist/components/Chips/index.js +3 -9
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +4 -5
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +8 -11
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +1 -1
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +2 -5
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DateRangePicker/dateRangePickerInput.js +7 -6
- package/dist/components/DateRangePicker/index.js +2 -2
- package/dist/components/DynamicLayout/index.js +1 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts +1 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyStateImage.js +13 -26
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +1 -29
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts +1 -0
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUploadAssets.loader.js +1 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +11 -27
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +43 -67
- package/dist/components/FiltersStrip/FilterSlider.js +1 -1
- package/dist/components/FiltersStrip/index.js +1 -1
- package/dist/components/Header/Header.types.d.ts +5 -22
- package/dist/components/Header/Header.types.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +57 -88
- package/dist/components/HomePage/HomePage.types.d.ts +2 -3
- package/dist/components/HomePage/HomePage.types.d.ts.map +1 -1
- package/dist/components/HomePage/constants.d.ts.map +1 -1
- package/dist/components/HomePage/constants.js +45 -24
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +53 -48
- package/dist/components/Input/HelperText.d.ts.map +1 -1
- package/dist/components/Input/HelperText.js +1 -3
- package/dist/components/Input/InputWithIcon.js +1 -1
- package/dist/components/Input/VanillaInput.js +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +4 -5
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +2 -2
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +3 -4
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +16 -12
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +2 -3
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +1 -3
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +2 -10
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +14 -5
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.js +4 -10
- package/dist/components/MonthRangePicker/constants.d.ts +0 -4
- package/dist/components/MonthRangePicker/constants.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/constants.js +1 -15
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +30 -68
- package/dist/components/NewCreateItemFlow/index.js +1 -1
- package/dist/components/NewDynamicLayout/index.d.ts.map +1 -1
- package/dist/components/NewDynamicLayout/index.js +15 -13
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +1 -3
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +16 -12
- package/dist/components/Notification/NotificationBody/NotificationTaskList.js +2 -4
- package/dist/components/Notification/NotificationHeader.d.ts.map +1 -1
- package/dist/components/Notification/NotificationHeader.js +3 -13
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/index.js +4 -10
- package/dist/components/OnboardingTour/productTourList.js +4 -4
- package/dist/components/OnboardingTour/tooltipCard.d.ts.map +1 -1
- package/dist/components/OnboardingTour/tooltipCard.js +2 -2
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +7 -13
- package/dist/components/Popover/Popover.types.d.ts +0 -5
- package/dist/components/Popover/Popover.types.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +4 -12
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +2 -10
- package/dist/components/RadioButtonGroup/index.js +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +34 -64
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +1 -2
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutHint.js +18 -4
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +3 -3
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +6 -8
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +10 -11
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +5 -6
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +37 -19
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +21 -13
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +13 -24
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +11 -23
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +24 -21
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +6 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.js +6 -6
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.js +5 -5
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +5 -12
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +7 -2
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.js +42 -42
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +11 -21
- package/dist/components/TableV36/CommentsPortal.d.ts.map +1 -1
- package/dist/components/TableV36/CommentsPortal.js +4 -7
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -5
- package/dist/components/TableV36/NoComments.js +1 -1
- package/dist/components/TableV36/Table.types.d.ts +2 -2
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.js +15 -3
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +13 -30
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +31 -45
- package/dist/components/TableV36/tableHeader.d.ts +3 -1
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
- package/dist/components/TableV36/tableHeader.js +4 -5
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/TableV36/tableMoreOptions.js +18 -36
- package/dist/components/TableV36/tableSettings.d.ts.map +1 -1
- package/dist/components/TableV36/tableSettings.js +9 -8
- package/dist/components/TableV36/withCommentIcon.d.ts.map +1 -1
- package/dist/components/TableV36/withCommentIcon.js +5 -13
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/index.js +3 -3
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/common/HelperText/index.js +1 -1
- package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -48
- package/dist/components/shared/tableColumnSettings/columnsTabV36.d.ts.map +1 -1
- package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts.map +1 -1
- package/dist/locales/de-DE.json.d.ts +0 -42
- package/dist/locales/de-DE.json.js +0 -42
- package/dist/locales/en-US.json.d.ts +0 -42
- package/dist/locales/en-US.json.js +0 -42
- package/dist/locales/es-ES.json.d.ts +0 -42
- package/dist/locales/es-ES.json.js +0 -42
- package/dist/mcp-component-registry.json +139 -183
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +4 -4
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +1 -2
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -2
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +1 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +364 -636
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize.js +15 -21
- package/dist/node_modules/@mui/icons-material/Add.js +3 -2
- package/dist/node_modules/@mui/icons-material/AttachFile.js +3 -2
- package/dist/node_modules/@mui/icons-material/AutoFixHigh.js +3 -2
- package/dist/node_modules/@mui/icons-material/Block.js +3 -2
- package/dist/node_modules/@mui/icons-material/BookmarkBorderOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/Brush.js +3 -2
- package/dist/node_modules/@mui/icons-material/Cancel.js +3 -2
- package/dist/node_modules/@mui/icons-material/CheckCircle.js +3 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeft.js +2 -1
- package/dist/node_modules/@mui/icons-material/ChevronLeftOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/ChevronRight.js +2 -1
- package/dist/node_modules/@mui/icons-material/ChevronRightOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/Clear.js +2 -1
- package/dist/node_modules/@mui/icons-material/Close.js +2 -1
- package/dist/node_modules/@mui/icons-material/CloseOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/CloseRounded.js +3 -2
- package/dist/node_modules/@mui/icons-material/DeleteOutlineOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/DeleteOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/DragIndicator.js +3 -2
- package/dist/node_modules/@mui/icons-material/ErrorOutline.js +3 -2
- package/dist/node_modules/@mui/icons-material/ExpandLess.js +2 -1
- package/dist/node_modules/@mui/icons-material/ExpandLessOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/ExpandMore.js +2 -1
- package/dist/node_modules/@mui/icons-material/ExpandMoreOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FileDownloadOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FilterAltOffOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FilterAltOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FilterList.js +3 -2
- package/dist/node_modules/@mui/icons-material/FilterListOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FormatBold.js +3 -2
- package/dist/node_modules/@mui/icons-material/FormatColorTextOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/FormatItalic.js +2 -1
- package/dist/node_modules/@mui/icons-material/FormatListBulleted.js +3 -2
- package/dist/node_modules/@mui/icons-material/FormatListNumbered.js +3 -2
- package/dist/node_modules/@mui/icons-material/Image.js +3 -2
- package/dist/node_modules/@mui/icons-material/Info.js +3 -2
- package/dist/node_modules/@mui/icons-material/InfoOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/InsertEmoticon.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDown.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDownOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowLeft.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRight.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRightOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowUp.js +2 -1
- package/dist/node_modules/@mui/icons-material/KeyboardRounded.js +3 -2
- package/dist/node_modules/@mui/icons-material/Link.js +3 -2
- package/dist/node_modules/@mui/icons-material/Looks3.js +3 -2
- package/dist/node_modules/@mui/icons-material/Looks4.js +3 -2
- package/dist/node_modules/@mui/icons-material/Looks5.js +3 -2
- package/dist/node_modules/@mui/icons-material/Looks6.js +3 -2
- package/dist/node_modules/@mui/icons-material/LooksOne.js +3 -2
- package/dist/node_modules/@mui/icons-material/LooksTwo.js +3 -2
- package/dist/node_modules/@mui/icons-material/MoreHoriz.js +3 -2
- package/dist/node_modules/@mui/icons-material/MoreHorizOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/MoreVert.js +3 -2
- package/dist/node_modules/@mui/icons-material/North.js +3 -2
- package/dist/node_modules/@mui/icons-material/NotificationsOff.js +3 -2
- package/dist/node_modules/@mui/icons-material/RemoveRounded.js +3 -2
- package/dist/node_modules/@mui/icons-material/SaveOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/Search.js +3 -2
- package/dist/node_modules/@mui/icons-material/SearchOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/SettingsOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/StrikethroughS.js +3 -2
- package/dist/node_modules/@mui/icons-material/TableChartOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/Tune.js +3 -2
- package/dist/node_modules/@mui/icons-material/ViewColumnOutlined.js +3 -2
- package/dist/node_modules/@mui/icons-material/Warning.js +3 -2
- package/dist/node_modules/@mui/icons-material/esm/AddOutlined.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/DragIndicator.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/FileDownload.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/HighlightOff.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/Replay.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +43 -82
- package/dist/node_modules/@mui/material/Accordion/accordionClasses.js +2 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +8 -8
- package/dist/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js +2 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +29 -35
- package/dist/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js +2 -2
- package/dist/node_modules/@mui/material/Alert/Alert.js +66 -88
- package/dist/node_modules/@mui/material/Alert/alertClasses.js +3 -3
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +8 -8
- package/dist/node_modules/@mui/material/AlertTitle/alertTitleClasses.js +2 -2
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +31 -76
- package/dist/node_modules/@mui/material/Avatar/avatarClasses.js +2 -2
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +7 -7
- package/dist/node_modules/@mui/material/Backdrop/backdropClasses.js +2 -2
- package/dist/node_modules/@mui/material/Badge/Badge.js +117 -178
- package/dist/node_modules/@mui/material/Badge/badgeClasses.js +2 -2
- package/dist/node_modules/@mui/material/Box/Box.js +6 -7
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +4 -6
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +10 -10
- package/dist/node_modules/@mui/material/Breadcrumbs/breadcrumbsClasses.js +2 -2
- package/dist/node_modules/@mui/material/Button/Button.js +20 -24
- package/dist/node_modules/@mui/material/Button/buttonClasses.js +3 -3
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +12 -12
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js +1 -0
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +17 -10
- package/dist/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/touchRippleClasses.js +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js +8 -8
- package/dist/node_modules/@mui/material/Card/cardClasses.js +2 -2
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +14 -15
- package/dist/node_modules/@mui/material/Checkbox/checkboxClasses.js +2 -2
- package/dist/node_modules/@mui/material/Chip/Chip.js +22 -30
- package/dist/node_modules/@mui/material/Chip/chipClasses.js +2 -2
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +11 -11
- package/dist/node_modules/@mui/material/CircularProgress/circularProgressClasses.js +2 -2
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +18 -16
- package/dist/node_modules/@mui/material/Collapse/collapseClasses.js +2 -2
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +12 -20
- package/dist/node_modules/@mui/material/Dialog/dialogClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +8 -8
- package/dist/node_modules/@mui/material/DialogActions/dialogActionsClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +7 -7
- package/dist/node_modules/@mui/material/DialogContent/dialogContentClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +8 -9
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +7 -7
- package/dist/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js +2 -2
- package/dist/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +13 -22
- package/dist/node_modules/@mui/material/Drawer/drawerClasses.js +2 -2
- package/dist/node_modules/@mui/material/Fade/Fade.js +7 -8
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +10 -10
- package/dist/node_modules/@mui/material/FormControl/formControlClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +11 -10
- package/dist/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +7 -7
- package/dist/node_modules/@mui/material/FormGroup/formGroupClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +8 -8
- package/dist/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js +2 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +4 -4
- package/dist/node_modules/@mui/material/Grow/Grow.js +14 -11
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +15 -15
- package/dist/node_modules/@mui/material/IconButton/iconButtonClasses.js +2 -2
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +18 -18
- package/dist/node_modules/@mui/material/InputBase/inputBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +15 -15
- package/dist/node_modules/@mui/material/LinearProgress/linearProgressClasses.js +2 -2
- package/dist/node_modules/@mui/material/Link/Link.js +11 -11
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js +2 -2
- package/dist/node_modules/@mui/material/Link/linkClasses.js +2 -2
- package/dist/node_modules/@mui/material/List/List.js +7 -7
- package/dist/node_modules/@mui/material/List/listClasses.js +2 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +7 -7
- package/dist/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/ListItemText/listItemTextClasses.js +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js +16 -18
- package/dist/node_modules/@mui/material/Menu/menuClasses.js +2 -2
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +15 -16
- package/dist/node_modules/@mui/material/MenuItem/menuItemClasses.js +2 -2
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +11 -13
- package/dist/node_modules/@mui/material/Modal/Modal.js +46 -107
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +3 -9
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +10 -11
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +2 -2
- package/dist/node_modules/@mui/material/Paper/Paper.js +11 -11
- package/dist/node_modules/@mui/material/Paper/paperClasses.js +2 -2
- package/dist/node_modules/@mui/material/Popover/Popover.js +25 -39
- package/dist/node_modules/@mui/material/Popover/popoverClasses.js +2 -2
- package/dist/node_modules/@mui/material/Popper/Popper.js +11 -14
- package/dist/node_modules/@mui/material/Radio/Radio.js +17 -19
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +4 -11
- package/dist/node_modules/@mui/material/Radio/radioClasses.js +3 -3
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +9 -30
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +9 -9
- package/dist/node_modules/@mui/material/Skeleton/skeletonClasses.js +2 -2
- package/dist/node_modules/@mui/material/Slide/Slide.js +11 -12
- package/dist/node_modules/@mui/material/Slider/Slider.js +320 -434
- package/dist/node_modules/@mui/material/Slider/sliderClasses.js +3 -3
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +18 -18
- package/dist/node_modules/@mui/material/Snackbar/snackbarClasses.js +2 -2
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +9 -9
- package/dist/node_modules/@mui/material/SnackbarContent/snackbarContentClasses.js +2 -2
- package/dist/node_modules/@mui/material/Stack/Stack.js +6 -6
- package/dist/node_modules/@mui/material/Step/Step.js +8 -8
- package/dist/node_modules/@mui/material/Step/stepClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +8 -8
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +7 -7
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +7 -7
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses.js +2 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +10 -12
- package/dist/node_modules/@mui/material/Stepper/stepperClasses.js +3 -3
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +10 -10
- package/dist/node_modules/@mui/material/SvgIcon/svgIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/Switch/Switch.js +52 -71
- package/dist/node_modules/@mui/material/Switch/switchClasses.js +2 -2
- package/dist/node_modules/@mui/material/Tab/Tab.js +10 -12
- package/dist/node_modules/@mui/material/Tab/tabClasses.js +2 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +11 -10
- package/dist/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +5 -6
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +27 -46
- package/dist/node_modules/@mui/material/Tabs/tabsClasses.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +13 -25
- package/dist/node_modules/@mui/material/ToggleButton/toggleButtonClasses.js +3 -3
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +52 -94
- package/dist/node_modules/@mui/material/ToggleButtonGroup/toggleButtonGroupClasses.js +3 -3
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +71 -61
- package/dist/node_modules/@mui/material/Tooltip/tooltipClasses.js +2 -2
- package/dist/node_modules/@mui/material/Typography/Typography.js +8 -8
- package/dist/node_modules/@mui/material/Typography/typographyClasses.js +2 -2
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +7 -12
- package/dist/node_modules/@mui/material/internal/switchBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/{ClickAwayListener → node_modules/@mui/base/ClickAwayListener}/ClickAwayListener.js +15 -12
- package/dist/node_modules/@mui/material/{Unstable_TrapFocus → node_modules/@mui/base/FocusTrap}/FocusTrap.js +53 -56
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Modal/Modal.js +250 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Modal/modalClasses.js +9 -0
- package/dist/node_modules/@mui/material/{Popper/BasePopper.js → node_modules/@mui/base/Popper/Popper.js} +19 -24
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Popper/popperClasses.js +9 -0
- package/dist/node_modules/@mui/material/{Portal → node_modules/@mui/base/Portal}/Portal.js +12 -16
- package/dist/node_modules/@mui/material/node_modules/@mui/base/TextareaAutosize/TextareaAutosize.js +226 -0
- package/dist/node_modules/@mui/material/{Modal → node_modules/@mui/base/unstable_useModal}/ModalManager.js +3 -3
- package/dist/node_modules/@mui/material/{Modal → node_modules/@mui/base/unstable_useModal}/useModal.js +11 -12
- package/dist/node_modules/@mui/material/{Badge → node_modules/@mui/base/useBadge}/useBadge.js +2 -2
- package/dist/node_modules/@mui/material/{Slider → node_modules/@mui/base/useSlider}/useSlider.js +60 -86
- package/dist/node_modules/@mui/material/{Snackbar → node_modules/@mui/base/useSnackbar}/useSnackbar.js +27 -22
- package/dist/node_modules/@mui/material/node_modules/@mui/base/utils/ClassNameConfigurator.js +20 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/appendOwnerState → base/utils}/appendOwnerState.js +2 -2
- package/dist/node_modules/@mui/material/{utils → node_modules/@mui/base/utils}/areArraysEqual.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/extractEventHandlers → base/utils}/extractEventHandlers.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/isHostComponent → base/utils}/isHostComponent.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/mergeSlotProps → base/utils}/mergeSlotProps.js +5 -5
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/omitEventHandlers → base/utils}/omitEventHandlers.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/resolveComponentProps → base/utils}/resolveComponentProps.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{utils/esm/useSlotProps → base/utils}/useSlotProps.js +5 -5
- package/dist/node_modules/{hoist-non-react-statics → @mui/material}/node_modules/react-is/cjs/react-is.development.js +60 -32
- package/dist/node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.min.js +109 -0
- package/dist/node_modules/{hoist-non-react-statics → @mui/material}/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette.js +7 -7
- package/dist/node_modules/@mui/material/styles/createTheme.js +4 -6
- package/dist/node_modules/@mui/material/styles/createTypography.js +1 -1
- package/dist/node_modules/@mui/material/styles/styled.js +6 -4
- package/dist/node_modules/@mui/material/styles/useThemeProps.js +17 -0
- package/dist/node_modules/@mui/material/utils/capitalize.js +1 -1
- package/dist/node_modules/@mui/material/utils/createChainedFunction.js +1 -1
- package/dist/node_modules/@mui/material/utils/debounce.js +1 -1
- package/dist/node_modules/@mui/material/utils/deprecatedPropType.js +1 -1
- package/dist/node_modules/@mui/material/utils/getScrollbarSize.js +1 -1
- package/dist/node_modules/@mui/material/utils/index.js +17 -17
- package/dist/node_modules/@mui/material/utils/isMuiElement.js +1 -1
- package/dist/node_modules/@mui/material/utils/ownerDocument.js +1 -1
- package/dist/node_modules/@mui/material/utils/ownerWindow.js +1 -1
- package/dist/node_modules/@mui/material/utils/requirePropFactory.js +1 -1
- package/dist/node_modules/@mui/material/utils/setRef.js +1 -1
- package/dist/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -1
- package/dist/node_modules/@mui/material/utils/unsupportedProp.js +1 -1
- package/dist/node_modules/@mui/material/utils/useControlled.js +1 -1
- package/dist/node_modules/@mui/material/utils/useEnhancedEffect.js +1 -1
- package/dist/node_modules/@mui/material/utils/useEventCallback.js +1 -1
- package/dist/node_modules/@mui/material/utils/useForkRef.js +1 -1
- package/dist/node_modules/@mui/material/utils/useId.js +1 -1
- package/dist/node_modules/@mui/material/utils/useIsFocusVisible.js +1 -1
- package/dist/node_modules/@mui/styled-engine/index.js +2 -18
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +5 -29
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +3 -3
- package/dist/node_modules/@mui/system/esm/borders.js +47 -23
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@mui/system/esm/colorManipulator.js +78 -5
- package/dist/node_modules/@mui/system/esm/createStyled.js +79 -92
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -3
- package/dist/node_modules/@mui/system/esm/merge.js +1 -1
- package/dist/node_modules/@mui/system/esm/propsToClassKey.js +23 -0
- package/dist/node_modules/@mui/system/esm/sizing.js +2 -12
- package/dist/node_modules/@mui/system/esm/style.js +1 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -7
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +1 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +3 -10
- package/dist/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -1
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/deepmerge/deepmerge.js +5 -6
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/{system/node_modules/@mui/utils/esm → utils}/getDisplayName/getDisplayName.js +1 -1
- package/dist/node_modules/{prop-types → @mui/utils}/node_modules/react-is/cjs/react-is.development.js +60 -32
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +109 -0
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/refType/refType.js +1 -1
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useControlled/useControlled.js +1 -1
- package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useTimeout/useTimeout.js +1 -9
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/moment/dist/locale/de.js +1 -21
- package/dist/node_modules/moment/dist/moment.js +754 -982
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +148 -88
- package/dist/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/react-is/index.js +13 -8
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/node_modules/stylis/src/Parser.js +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/stories/tableV36ChatApiMock.d.ts +29 -10
- package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
- package/dist/storybook-utils/rootAttributes.d.ts +1 -1
- package/dist/storybook-utils/rootAttributes.d.ts.map +1 -1
- package/dist/styles/style.css +1 -1
- package/package.json +3 -12
- package/dist/_virtual/colorManipulator.js +0 -4
- package/dist/_virtual/createStyled.js +0 -4
- package/dist/_virtual/index10.js +0 -6
- package/dist/_virtual/index11.js +0 -6
- package/dist/_virtual/index12.js +0 -6
- package/dist/_virtual/index13.js +0 -4
- package/dist/_virtual/index14.js +0 -4
- package/dist/_virtual/index15.js +0 -4
- package/dist/_virtual/index16.js +0 -4
- package/dist/_virtual/index9.js +0 -6
- package/dist/_virtual/react-is.production.js +0 -4
- package/dist/_virtual/useThemeWithoutDefault.js +0 -4
- package/dist/assets/animated-bar.lottie.js +0 -4
- package/dist/assets/animated-bulb.lottie.js +0 -4
- package/dist/assets/animated-chip.lottie.js +0 -4
- package/dist/assets/confetti-cone.lottie.js +0 -4
- package/dist/assets/halloween_devil_morning_final.html.js +0 -1304
- package/dist/assets/halloween_devil_night_Final.html.js +0 -1299
- package/dist/components/Chips/chipLeadingIcon.d.ts +0 -6
- package/dist/components/Chips/chipLeadingIcon.d.ts.map +0 -1
- package/dist/components/Chips/chipLeadingIcon.js +0 -46
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.d.ts +0 -14
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.d.ts.map +0 -1
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.js +0 -131
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.d.ts +0 -13
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.d.ts.map +0 -1
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.js +0 -9
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.d.ts +0 -15
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.d.ts.map +0 -1
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.js +0 -141
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.test.d.ts +0 -2
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.test.d.ts.map +0 -1
- package/dist/components/HalloweenStyleIntro/index.d.ts +0 -4
- package/dist/components/HalloweenStyleIntro/index.d.ts.map +0 -1
- package/dist/components/ImpactIcon/index.d.ts +0 -19
- package/dist/components/ImpactIcon/index.d.ts.map +0 -1
- package/dist/components/ImpactIcon/index.js +0 -52
- package/dist/components/Loader/HalloweenLoaderSlides.d.ts +0 -13
- package/dist/components/Loader/HalloweenLoaderSlides.d.ts.map +0 -1
- package/dist/components/Loader/HalloweenLoaderSlides.js +0 -109
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts +0 -55
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts.map +0 -1
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts +0 -12
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts.map +0 -1
- package/dist/components/ProfileMenu/ProfileMenuListItem.js +0 -42
- package/dist/components/ProfileMenu/index.d.ts +0 -11
- package/dist/components/ProfileMenu/index.d.ts.map +0 -1
- package/dist/components/ProfileMenu/index.js +0 -164
- package/dist/components/Slider/sliderValueLabel.d.ts +0 -7
- package/dist/components/Slider/sliderValueLabel.d.ts.map +0 -1
- package/dist/components/Slider/sliderValueLabel.js +0 -31
- package/dist/components/ThemingPanel/AccentColorSection.d.ts +0 -11
- package/dist/components/ThemingPanel/AccentColorSection.d.ts.map +0 -1
- package/dist/components/ThemingPanel/AccentColorSection.js +0 -45
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts +0 -11
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts.map +0 -1
- package/dist/components/ThemingPanel/EnhanceContrastSection.js +0 -42
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts +0 -13
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts.map +0 -1
- package/dist/components/ThemingPanel/InterfaceThemeSection.js +0 -118
- package/dist/components/ThemingPanel/StylesSection.d.ts +0 -11
- package/dist/components/ThemingPanel/StylesSection.d.ts.map +0 -1
- package/dist/components/ThemingPanel/StylesSection.js +0 -44
- package/dist/components/ThemingPanel/ThemesTab.d.ts +0 -23
- package/dist/components/ThemingPanel/ThemesTab.d.ts.map +0 -1
- package/dist/components/ThemingPanel/ThemesTab.js +0 -49
- package/dist/components/ThemingPanel/ThemingPanel.d.ts +0 -10
- package/dist/components/ThemingPanel/ThemingPanel.d.ts.map +0 -1
- package/dist/components/ThemingPanel/ThemingPanel.js +0 -233
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts +0 -33
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts.map +0 -1
- package/dist/components/ThemingPanel/ThemingPanel.types.js +0 -8
- package/dist/components/ThemingPanel/index.d.ts +0 -10
- package/dist/components/ThemingPanel/index.d.ts.map +0 -1
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts +0 -24
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts.map +0 -1
- package/dist/components/ThemingPanel/themingPanel.constants.js +0 -49
- package/dist/components/common/DotLottiePlayer/index.d.ts +0 -5
- package/dist/components/common/DotLottiePlayer/index.d.ts.map +0 -1
- package/dist/components/common/DotLottiePlayer/index.js +0 -9
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +0 -87
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +0 -1871
- package/dist/node_modules/@mui/material/Box/boxClasses.js +0 -5
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +0 -8
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +0 -25
- package/dist/node_modules/@mui/material/Modal/modalClasses.js +0 -9
- package/dist/node_modules/@mui/material/Popper/popperClasses.js +0 -9
- package/dist/node_modules/@mui/material/RadioGroup/radioGroupClasses.js +0 -9
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +0 -216
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +0 -8
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.js +0 -8
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/clamp/clamp.js +0 -6
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js +0 -11
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js +0 -7
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js +0 -12
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useOnMount/useOnMount.js +0 -8
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +0 -43
- package/dist/node_modules/@mui/material/styles/rootShouldForwardProp.js +0 -5
- package/dist/node_modules/@mui/material/styles/slotShouldForwardProp.js +0 -6
- package/dist/node_modules/@mui/material/utils/useSlot.js +0 -55
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +0 -59
- package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +0 -5
- package/dist/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js +0 -19
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +0 -8
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +0 -12
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +0 -65
- package/dist/node_modules/@mui/system/colorManipulator.js +0 -271
- package/dist/node_modules/@mui/system/createStyled.js +0 -265
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +0 -63
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +0 -27
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +0 -86
- package/dist/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +0 -50
- package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +0 -16
- package/dist/node_modules/@mui/system/esm/createTheme/index.js +0 -8
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/index.js +0 -9
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -19
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -10
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/index.js +0 -4
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js +0 -6
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js +0 -4
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -25
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +0 -43
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/index.js +0 -5
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js +0 -19
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -10
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js +0 -4
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -23
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/index.js +0 -5
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +0 -29
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -5
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js +0 -24
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +0 -39
- package/dist/node_modules/@mui/utils/esm/debounce/debounce.js +0 -17
- package/dist/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -6
- package/dist/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js +0 -8
- package/dist/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -5
- package/dist/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -42
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -106
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -17
- package/dist/node_modules/react-is/cjs/react-is.production.js +0 -103
- package/dist/stories/designTokensStoryHelpers.d.ts +0 -2
- package/dist/stories/designTokensStoryHelpers.d.ts.map +0 -1
- package/dist/styles/tokens/accent-palettes.generated.d.ts +0 -13
- package/dist/styles/tokens/accent-palettes.generated.d.ts.map +0 -1
- package/dist/styles/tokens/accent-palettes.generated.js +0 -8
- package/dist/styles/tokens/effects.generated.d.ts +0 -60
- package/dist/styles/tokens/effects.generated.d.ts.map +0 -1
- package/dist/styles/tokens/effects.generated.js +0 -80
- package/dist/styles/tokens/tokens.generated.d.ts +0 -438
- package/dist/styles/tokens/tokens.generated.d.ts.map +0 -1
- package/dist/styles/tokens/tokens.generated.js +0 -431
- package/dist/tokens/ImpactUiAppProviders.d.ts +0 -18
- package/dist/tokens/ImpactUiAppProviders.d.ts.map +0 -1
- package/dist/tokens/ImpactUiAppProviders.js +0 -23
- package/dist/tokens/ImpactUiThemeProvider.d.ts +0 -17
- package/dist/tokens/ImpactUiThemeProvider.d.ts.map +0 -1
- package/dist/tokens/ImpactUiThemeProvider.js +0 -86
- package/dist/tokens/accentDom.d.ts +0 -17
- package/dist/tokens/accentDom.d.ts.map +0 -1
- package/dist/tokens/accentDom.js +0 -44
- package/dist/tokens/accentDom.test.d.ts +0 -2
- package/dist/tokens/accentDom.test.d.ts.map +0 -1
- package/dist/tokens/contrastDom.d.ts +0 -18
- package/dist/tokens/contrastDom.d.ts.map +0 -1
- package/dist/tokens/contrastDom.js +0 -34
- package/dist/tokens/contrastDom.test.d.ts +0 -2
- package/dist/tokens/contrastDom.test.d.ts.map +0 -1
- package/dist/tokens/createImpactUiMuiTheme.d.ts +0 -13
- package/dist/tokens/createImpactUiMuiTheme.d.ts.map +0 -1
- package/dist/tokens/createImpactUiMuiTheme.js +0 -122
- package/dist/tokens/impactUiPreferences.d.ts +0 -25
- package/dist/tokens/impactUiPreferences.d.ts.map +0 -1
- package/dist/tokens/impactUiPreferences.js +0 -109
- package/dist/tokens/impactUiPreferences.test.d.ts +0 -2
- package/dist/tokens/impactUiPreferences.test.d.ts.map +0 -1
- package/dist/tokens/index.d.ts +0 -22
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/interfaceStyleDom.d.ts +0 -26
- package/dist/tokens/interfaceStyleDom.d.ts.map +0 -1
- package/dist/tokens/interfaceStyleDom.js +0 -58
- package/dist/tokens/theme.types.d.ts +0 -19
- package/dist/tokens/theme.types.d.ts.map +0 -1
- package/dist/tokens/themeDom.d.ts +0 -34
- package/dist/tokens/themeDom.d.ts.map +0 -1
- package/dist/tokens/themeDom.js +0 -97
- package/dist/tokens/useImpactUiInterfaceStyle.d.ts +0 -7
- package/dist/tokens/useImpactUiInterfaceStyle.d.ts.map +0 -1
- package/dist/tokens/useImpactUiInterfaceStyle.js +0 -19
- package/dist/tokens/useImpactUiTheme.d.ts +0 -9
- package/dist/tokens/useImpactUiTheme.d.ts.map +0 -1
- package/dist/tokens/useImpactUiTheme.js +0 -46
- /package/dist/node_modules/@emotion/{unitless → serialize/node_modules/@emotion/unitless}/dist/emotion-unitless.esm.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/ClassNameGenerator/ClassNameGenerator.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/HTMLElementType/HTMLElementType.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/capitalize/capitalize.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/chainPropTypes/chainPropTypes.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/composeClasses/composeClasses.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/createChainedFunction/createChainedFunction.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/debounce/debounce.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/deprecatedPropType/deprecatedPropType.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/exactProp/exactProp.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/generateUtilityClass/generateUtilityClass.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/generateUtilityClasses/generateUtilityClasses.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/getScrollbarSize/getScrollbarSize.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/integerPropType/integerPropType.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/isMuiElement/isMuiElement.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/ownerDocument/ownerDocument.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/ownerWindow/ownerWindow.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/requirePropFactory/requirePropFactory.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/resolveProps/resolveProps.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/scrollLeft/scrollLeft.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/setRef/setRef.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/unsupportedProp/unsupportedProp.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useEnhancedEffect/useEnhancedEffect.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useEventCallback/useEventCallback.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useForkRef/useForkRef.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useId/useId.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/useIsFocusVisible/useIsFocusVisible.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/usePreviousProps/usePreviousProps.js +0 -0
- /package/dist/node_modules/@mui/{material/node_modules/@mui/utils/esm → utils}/visuallyHidden/visuallyHidden.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//! moment.js
|
|
2
|
-
//! version : 2.
|
|
2
|
+
//! version : 2.29.4
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
@@ -75,7 +75,6 @@ function defaultParsingFlags() {
|
|
|
75
75
|
nullInput: false,
|
|
76
76
|
invalidEra: null,
|
|
77
77
|
invalidMonth: null,
|
|
78
|
-
invalidOffset: null,
|
|
79
78
|
invalidFormat: false,
|
|
80
79
|
userInvalidated: false,
|
|
81
80
|
iso: false,
|
|
@@ -106,26 +105,23 @@ if (Array.prototype.some) {
|
|
|
106
105
|
return false;
|
|
107
106
|
};
|
|
108
107
|
}
|
|
109
|
-
function isValid
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
flags = getParsingFlags(m);
|
|
113
|
-
parsedParts = some.call(flags.parsedDateParts, function(i) {
|
|
108
|
+
function isValid(m) {
|
|
109
|
+
if (m._isValid == null) {
|
|
110
|
+
var flags = getParsingFlags(m), parsedParts = some.call(flags.parsedDateParts, function(i) {
|
|
114
111
|
return i != null;
|
|
115
|
-
});
|
|
116
|
-
isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidOffset && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
112
|
+
}), isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
117
113
|
if (m._strict) {
|
|
118
114
|
isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
|
|
119
115
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
|
117
|
+
m._isValid = isNowValid;
|
|
118
|
+
} else {
|
|
119
|
+
return isNowValid;
|
|
120
|
+
}
|
|
125
121
|
}
|
|
126
122
|
return m._isValid;
|
|
127
123
|
}
|
|
128
|
-
function createInvalid
|
|
124
|
+
function createInvalid(flags) {
|
|
129
125
|
var m = createUTC(NaN);
|
|
130
126
|
if (flags != null) {
|
|
131
127
|
extend(getParsingFlags(m), flags);
|
|
@@ -235,7 +231,7 @@ function deprecateSimple(name, msg) {
|
|
|
235
231
|
hooks.deprecationHandler(name, msg);
|
|
236
232
|
}
|
|
237
233
|
if (!deprecations[name]) {
|
|
238
|
-
warn(msg
|
|
234
|
+
warn(msg);
|
|
239
235
|
deprecations[name] = true;
|
|
240
236
|
}
|
|
241
237
|
}
|
|
@@ -244,106 +240,81 @@ hooks.deprecationHandler = null;
|
|
|
244
240
|
function isFunction(input) {
|
|
245
241
|
return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
|
246
242
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
weekday: "weekday",
|
|
257
|
-
E: "isoWeekday",
|
|
258
|
-
isoweekdays: "isoWeekday",
|
|
259
|
-
isoweekday: "isoWeekday",
|
|
260
|
-
DDD: "dayOfYear",
|
|
261
|
-
dayofyears: "dayOfYear",
|
|
262
|
-
dayofyear: "dayOfYear",
|
|
263
|
-
h: "hour",
|
|
264
|
-
hours: "hour",
|
|
265
|
-
hour: "hour",
|
|
266
|
-
ms: "millisecond",
|
|
267
|
-
milliseconds: "millisecond",
|
|
268
|
-
millisecond: "millisecond",
|
|
269
|
-
m: "minute",
|
|
270
|
-
minutes: "minute",
|
|
271
|
-
minute: "minute",
|
|
272
|
-
M: "month",
|
|
273
|
-
months: "month",
|
|
274
|
-
month: "month",
|
|
275
|
-
Q: "quarter",
|
|
276
|
-
quarters: "quarter",
|
|
277
|
-
quarter: "quarter",
|
|
278
|
-
s: "second",
|
|
279
|
-
seconds: "second",
|
|
280
|
-
second: "second",
|
|
281
|
-
gg: "weekYear",
|
|
282
|
-
weekyears: "weekYear",
|
|
283
|
-
weekyear: "weekYear",
|
|
284
|
-
GG: "isoWeekYear",
|
|
285
|
-
isoweekyears: "isoWeekYear",
|
|
286
|
-
isoweekyear: "isoWeekYear",
|
|
287
|
-
w: "week",
|
|
288
|
-
weeks: "week",
|
|
289
|
-
week: "week",
|
|
290
|
-
W: "isoWeek",
|
|
291
|
-
isoweeks: "isoWeek",
|
|
292
|
-
isoweek: "isoWeek",
|
|
293
|
-
y: "year",
|
|
294
|
-
years: "year",
|
|
295
|
-
year: "year"
|
|
296
|
-
};
|
|
297
|
-
function normalizeUnits(units) {
|
|
298
|
-
return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
|
299
|
-
}
|
|
300
|
-
function normalizeObjectUnits(inputObject) {
|
|
301
|
-
var normalizedInput = {}, normalizedProp, prop;
|
|
302
|
-
for (prop in inputObject) {
|
|
303
|
-
if (hasOwnProp(inputObject, prop)) {
|
|
304
|
-
normalizedProp = normalizeUnits(prop);
|
|
305
|
-
if (normalizedProp) {
|
|
306
|
-
normalizedInput[normalizedProp] = inputObject[prop];
|
|
243
|
+
function set(config) {
|
|
244
|
+
var prop, i;
|
|
245
|
+
for (i in config) {
|
|
246
|
+
if (hasOwnProp(config, i)) {
|
|
247
|
+
prop = config[i];
|
|
248
|
+
if (isFunction(prop)) {
|
|
249
|
+
this[i] = prop;
|
|
250
|
+
} else {
|
|
251
|
+
this["_" + i] = prop;
|
|
307
252
|
}
|
|
308
253
|
}
|
|
309
254
|
}
|
|
310
|
-
|
|
255
|
+
this._config = config;
|
|
256
|
+
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
257
|
+
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
258
|
+
);
|
|
311
259
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
isoWeekYear: 1,
|
|
326
|
-
week: 5,
|
|
327
|
-
isoWeek: 5,
|
|
328
|
-
year: 1
|
|
329
|
-
};
|
|
330
|
-
function getPrioritizedUnits(unitsObj) {
|
|
331
|
-
var units = [], u;
|
|
332
|
-
for (u in unitsObj) {
|
|
333
|
-
if (hasOwnProp(unitsObj, u)) {
|
|
334
|
-
units.push({ unit: u, priority: priorities[u] });
|
|
260
|
+
function mergeConfigs(parentConfig, childConfig) {
|
|
261
|
+
var res = extend({}, parentConfig), prop;
|
|
262
|
+
for (prop in childConfig) {
|
|
263
|
+
if (hasOwnProp(childConfig, prop)) {
|
|
264
|
+
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
265
|
+
res[prop] = {};
|
|
266
|
+
extend(res[prop], parentConfig[prop]);
|
|
267
|
+
extend(res[prop], childConfig[prop]);
|
|
268
|
+
} else if (childConfig[prop] != null) {
|
|
269
|
+
res[prop] = childConfig[prop];
|
|
270
|
+
} else {
|
|
271
|
+
delete res[prop];
|
|
272
|
+
}
|
|
335
273
|
}
|
|
336
274
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
275
|
+
for (prop in parentConfig) {
|
|
276
|
+
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
277
|
+
res[prop] = extend({}, res[prop]);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return res;
|
|
281
|
+
}
|
|
282
|
+
function Locale(config) {
|
|
283
|
+
if (config != null) {
|
|
284
|
+
this.set(config);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
var keys;
|
|
288
|
+
if (Object.keys) {
|
|
289
|
+
keys = Object.keys;
|
|
290
|
+
} else {
|
|
291
|
+
keys = function(obj) {
|
|
292
|
+
var i, res = [];
|
|
293
|
+
for (i in obj) {
|
|
294
|
+
if (hasOwnProp(obj, i)) {
|
|
295
|
+
res.push(i);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return res;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
var defaultCalendar = {
|
|
302
|
+
sameDay: "[Today at] LT",
|
|
303
|
+
nextDay: "[Tomorrow at] LT",
|
|
304
|
+
nextWeek: "dddd [at] LT",
|
|
305
|
+
lastDay: "[Yesterday at] LT",
|
|
306
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
307
|
+
sameElse: "L"
|
|
308
|
+
};
|
|
309
|
+
function calendar(key, mom, now2) {
|
|
310
|
+
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
311
|
+
return isFunction(output) ? output.call(mom, now2) : output;
|
|
341
312
|
}
|
|
342
313
|
function zeroFill(number, targetLength, forceSign) {
|
|
343
314
|
var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
|
344
315
|
return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
|
345
316
|
}
|
|
346
|
-
var formattingTokens = /(\[[^\[]*\])|(\\
|
|
317
|
+
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
|
347
318
|
function addFormatToken(token2, padded, ordinal2, callback) {
|
|
348
319
|
var func = callback;
|
|
349
320
|
if (typeof callback === "string") {
|
|
@@ -396,11 +367,8 @@ function formatMoment(m, format2) {
|
|
|
396
367
|
return m.localeData().invalidDate();
|
|
397
368
|
}
|
|
398
369
|
format2 = expandFormat(format2, m.localeData());
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
formatFunctions[cacheKey] = makeFormatFunction(format2);
|
|
402
|
-
}
|
|
403
|
-
return formatFunctions[cacheKey](m);
|
|
370
|
+
formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2);
|
|
371
|
+
return formatFunctions[format2](m);
|
|
404
372
|
}
|
|
405
373
|
function expandFormat(format2, locale2) {
|
|
406
374
|
var i = 5;
|
|
@@ -418,7 +386,165 @@ function expandFormat(format2, locale2) {
|
|
|
418
386
|
}
|
|
419
387
|
return format2;
|
|
420
388
|
}
|
|
421
|
-
var
|
|
389
|
+
var defaultLongDateFormat = {
|
|
390
|
+
LTS: "h:mm:ss A",
|
|
391
|
+
LT: "h:mm A",
|
|
392
|
+
L: "MM/DD/YYYY",
|
|
393
|
+
LL: "MMMM D, YYYY",
|
|
394
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
395
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
396
|
+
};
|
|
397
|
+
function longDateFormat(key) {
|
|
398
|
+
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];
|
|
399
|
+
if (format2 || !formatUpper) {
|
|
400
|
+
return format2;
|
|
401
|
+
}
|
|
402
|
+
this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {
|
|
403
|
+
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
404
|
+
return tok.slice(1);
|
|
405
|
+
}
|
|
406
|
+
return tok;
|
|
407
|
+
}).join("");
|
|
408
|
+
return this._longDateFormat[key];
|
|
409
|
+
}
|
|
410
|
+
var defaultInvalidDate = "Invalid date";
|
|
411
|
+
function invalidDate() {
|
|
412
|
+
return this._invalidDate;
|
|
413
|
+
}
|
|
414
|
+
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
415
|
+
function ordinal(number) {
|
|
416
|
+
return this._ordinal.replace("%d", number);
|
|
417
|
+
}
|
|
418
|
+
var defaultRelativeTime = {
|
|
419
|
+
future: "in %s",
|
|
420
|
+
past: "%s ago",
|
|
421
|
+
s: "a few seconds",
|
|
422
|
+
ss: "%d seconds",
|
|
423
|
+
m: "a minute",
|
|
424
|
+
mm: "%d minutes",
|
|
425
|
+
h: "an hour",
|
|
426
|
+
hh: "%d hours",
|
|
427
|
+
d: "a day",
|
|
428
|
+
dd: "%d days",
|
|
429
|
+
w: "a week",
|
|
430
|
+
ww: "%d weeks",
|
|
431
|
+
M: "a month",
|
|
432
|
+
MM: "%d months",
|
|
433
|
+
y: "a year",
|
|
434
|
+
yy: "%d years"
|
|
435
|
+
};
|
|
436
|
+
function relativeTime(number, withoutSuffix, string, isFuture) {
|
|
437
|
+
var output = this._relativeTime[string];
|
|
438
|
+
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
439
|
+
}
|
|
440
|
+
function pastFuture(diff2, output) {
|
|
441
|
+
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
442
|
+
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
443
|
+
}
|
|
444
|
+
var aliases = {};
|
|
445
|
+
function addUnitAlias(unit, shorthand) {
|
|
446
|
+
var lowerCase = unit.toLowerCase();
|
|
447
|
+
aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit;
|
|
448
|
+
}
|
|
449
|
+
function normalizeUnits(units) {
|
|
450
|
+
return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
|
451
|
+
}
|
|
452
|
+
function normalizeObjectUnits(inputObject) {
|
|
453
|
+
var normalizedInput = {}, normalizedProp, prop;
|
|
454
|
+
for (prop in inputObject) {
|
|
455
|
+
if (hasOwnProp(inputObject, prop)) {
|
|
456
|
+
normalizedProp = normalizeUnits(prop);
|
|
457
|
+
if (normalizedProp) {
|
|
458
|
+
normalizedInput[normalizedProp] = inputObject[prop];
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
return normalizedInput;
|
|
463
|
+
}
|
|
464
|
+
var priorities = {};
|
|
465
|
+
function addUnitPriority(unit, priority) {
|
|
466
|
+
priorities[unit] = priority;
|
|
467
|
+
}
|
|
468
|
+
function getPrioritizedUnits(unitsObj) {
|
|
469
|
+
var units = [], u;
|
|
470
|
+
for (u in unitsObj) {
|
|
471
|
+
if (hasOwnProp(unitsObj, u)) {
|
|
472
|
+
units.push({ unit: u, priority: priorities[u] });
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
units.sort(function(a, b) {
|
|
476
|
+
return a.priority - b.priority;
|
|
477
|
+
});
|
|
478
|
+
return units;
|
|
479
|
+
}
|
|
480
|
+
function isLeapYear(year) {
|
|
481
|
+
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
482
|
+
}
|
|
483
|
+
function absFloor(number) {
|
|
484
|
+
if (number < 0) {
|
|
485
|
+
return Math.ceil(number) || 0;
|
|
486
|
+
} else {
|
|
487
|
+
return Math.floor(number);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function toInt(argumentForCoercion) {
|
|
491
|
+
var coercedNumber = +argumentForCoercion, value = 0;
|
|
492
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
493
|
+
value = absFloor(coercedNumber);
|
|
494
|
+
}
|
|
495
|
+
return value;
|
|
496
|
+
}
|
|
497
|
+
function makeGetSet(unit, keepTime) {
|
|
498
|
+
return function(value) {
|
|
499
|
+
if (value != null) {
|
|
500
|
+
set$1(this, unit, value);
|
|
501
|
+
hooks.updateOffset(this, keepTime);
|
|
502
|
+
return this;
|
|
503
|
+
} else {
|
|
504
|
+
return get(this, unit);
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
function get(mom, unit) {
|
|
509
|
+
return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit]() : NaN;
|
|
510
|
+
}
|
|
511
|
+
function set$1(mom, unit, value) {
|
|
512
|
+
if (mom.isValid() && !isNaN(value)) {
|
|
513
|
+
if (unit === "FullYear" && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
|
|
514
|
+
value = toInt(value);
|
|
515
|
+
mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](
|
|
516
|
+
value,
|
|
517
|
+
mom.month(),
|
|
518
|
+
daysInMonth(value, mom.month())
|
|
519
|
+
);
|
|
520
|
+
} else {
|
|
521
|
+
mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
function stringGet(units) {
|
|
526
|
+
units = normalizeUnits(units);
|
|
527
|
+
if (isFunction(this[units])) {
|
|
528
|
+
return this[units]();
|
|
529
|
+
}
|
|
530
|
+
return this;
|
|
531
|
+
}
|
|
532
|
+
function stringSet(units, value) {
|
|
533
|
+
if (typeof units === "object") {
|
|
534
|
+
units = normalizeObjectUnits(units);
|
|
535
|
+
var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;
|
|
536
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
537
|
+
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
538
|
+
}
|
|
539
|
+
} else {
|
|
540
|
+
units = normalizeUnits(units);
|
|
541
|
+
if (isFunction(this[units])) {
|
|
542
|
+
return this[units](value);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
return this;
|
|
546
|
+
}
|
|
547
|
+
var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes;
|
|
422
548
|
regexes = {};
|
|
423
549
|
function addRegexToken(token2, regex, strictRegex) {
|
|
424
550
|
regexes[token2] = isFunction(regex) ? regex : function(isStrict, localeData2) {
|
|
@@ -444,20 +570,6 @@ function unescapeFormat(s) {
|
|
|
444
570
|
function regexEscape(s) {
|
|
445
571
|
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
446
572
|
}
|
|
447
|
-
function absFloor(number) {
|
|
448
|
-
if (number < 0) {
|
|
449
|
-
return Math.ceil(number) || 0;
|
|
450
|
-
} else {
|
|
451
|
-
return Math.floor(number);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function toInt(argumentForCoercion) {
|
|
455
|
-
var coercedNumber = +argumentForCoercion, value = 0;
|
|
456
|
-
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
457
|
-
value = absFloor(coercedNumber);
|
|
458
|
-
}
|
|
459
|
-
return value;
|
|
460
|
-
}
|
|
461
573
|
var tokens = {};
|
|
462
574
|
function addParseToken(token2, callback) {
|
|
463
575
|
var i, func = callback, tokenLen;
|
|
@@ -485,134 +597,8 @@ function addTimeToArrayFromToken(token2, input, config) {
|
|
|
485
597
|
tokens[token2](input, config._a, config, token2);
|
|
486
598
|
}
|
|
487
599
|
}
|
|
488
|
-
function isLeapYear(year) {
|
|
489
|
-
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
490
|
-
}
|
|
491
600
|
var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;
|
|
492
|
-
|
|
493
|
-
var y = this.year();
|
|
494
|
-
return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
|
495
|
-
});
|
|
496
|
-
addFormatToken(0, ["YY", 2], 0, function() {
|
|
497
|
-
return this.year() % 100;
|
|
498
|
-
});
|
|
499
|
-
addFormatToken(0, ["YYYY", 4], 0, "year");
|
|
500
|
-
addFormatToken(0, ["YYYYY", 5], 0, "year");
|
|
501
|
-
addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
|
|
502
|
-
addRegexToken("Y", matchSigned);
|
|
503
|
-
addRegexToken("YY", match1to2, match2);
|
|
504
|
-
addRegexToken("YYYY", match1to4, match4);
|
|
505
|
-
addRegexToken("YYYYY", match1to6, match6);
|
|
506
|
-
addRegexToken("YYYYYY", match1to6, match6);
|
|
507
|
-
addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
|
508
|
-
addParseToken("YYYY", function(input, array) {
|
|
509
|
-
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
510
|
-
});
|
|
511
|
-
addParseToken("YY", function(input, array) {
|
|
512
|
-
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
513
|
-
});
|
|
514
|
-
addParseToken("Y", function(input, array) {
|
|
515
|
-
array[YEAR] = parseInt(input, 10);
|
|
516
|
-
});
|
|
517
|
-
function daysInYear(year) {
|
|
518
|
-
return isLeapYear(year) ? 366 : 365;
|
|
519
|
-
}
|
|
520
|
-
hooks.parseTwoDigitYear = function(input) {
|
|
521
|
-
return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
|
522
|
-
};
|
|
523
|
-
var getSetYear = makeGetSet("FullYear", true);
|
|
524
|
-
function getIsLeapYear() {
|
|
525
|
-
return isLeapYear(this.year());
|
|
526
|
-
}
|
|
527
|
-
function makeGetSet(unit, keepTime) {
|
|
528
|
-
return function(value) {
|
|
529
|
-
if (value != null) {
|
|
530
|
-
set$1(this, unit, value);
|
|
531
|
-
hooks.updateOffset(this, keepTime);
|
|
532
|
-
return this;
|
|
533
|
-
} else {
|
|
534
|
-
return get$2(this, unit);
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
function get$2(mom, unit) {
|
|
539
|
-
if (!mom.isValid()) {
|
|
540
|
-
return NaN;
|
|
541
|
-
}
|
|
542
|
-
var d = mom._d, isUTC = mom._isUTC;
|
|
543
|
-
switch (unit) {
|
|
544
|
-
case "Milliseconds":
|
|
545
|
-
return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
546
|
-
case "Seconds":
|
|
547
|
-
return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
548
|
-
case "Minutes":
|
|
549
|
-
return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
550
|
-
case "Hours":
|
|
551
|
-
return isUTC ? d.getUTCHours() : d.getHours();
|
|
552
|
-
case "Date":
|
|
553
|
-
return isUTC ? d.getUTCDate() : d.getDate();
|
|
554
|
-
case "Day":
|
|
555
|
-
return isUTC ? d.getUTCDay() : d.getDay();
|
|
556
|
-
case "Month":
|
|
557
|
-
return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
558
|
-
case "FullYear":
|
|
559
|
-
return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
560
|
-
default:
|
|
561
|
-
return NaN;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function set$1(mom, unit, value) {
|
|
565
|
-
var d, isUTC, year, month, date;
|
|
566
|
-
if (!mom.isValid() || isNaN(value)) {
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
d = mom._d;
|
|
570
|
-
isUTC = mom._isUTC;
|
|
571
|
-
switch (unit) {
|
|
572
|
-
case "Milliseconds":
|
|
573
|
-
return void (isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value));
|
|
574
|
-
case "Seconds":
|
|
575
|
-
return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
|
|
576
|
-
case "Minutes":
|
|
577
|
-
return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
|
|
578
|
-
case "Hours":
|
|
579
|
-
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
580
|
-
case "Date":
|
|
581
|
-
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
582
|
-
case "FullYear":
|
|
583
|
-
break;
|
|
584
|
-
default:
|
|
585
|
-
return;
|
|
586
|
-
}
|
|
587
|
-
year = value;
|
|
588
|
-
month = mom.month();
|
|
589
|
-
date = mom.date();
|
|
590
|
-
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
591
|
-
void (isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date));
|
|
592
|
-
}
|
|
593
|
-
function stringGet(units) {
|
|
594
|
-
units = normalizeUnits(units);
|
|
595
|
-
if (isFunction(this[units])) {
|
|
596
|
-
return this[units]();
|
|
597
|
-
}
|
|
598
|
-
return this;
|
|
599
|
-
}
|
|
600
|
-
function stringSet(units, value) {
|
|
601
|
-
if (typeof units === "object") {
|
|
602
|
-
units = normalizeObjectUnits(units);
|
|
603
|
-
var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;
|
|
604
|
-
for (i = 0; i < prioritizedLen; i++) {
|
|
605
|
-
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
606
|
-
}
|
|
607
|
-
} else {
|
|
608
|
-
units = normalizeUnits(units);
|
|
609
|
-
if (isFunction(this[units])) {
|
|
610
|
-
return this[units](value);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return this;
|
|
614
|
-
}
|
|
615
|
-
function mod$1(n, x) {
|
|
601
|
+
function mod(n, x) {
|
|
616
602
|
return (n % x + x) % x;
|
|
617
603
|
}
|
|
618
604
|
var indexOf;
|
|
@@ -633,7 +619,7 @@ function daysInMonth(year, month) {
|
|
|
633
619
|
if (isNaN(year) || isNaN(month)) {
|
|
634
620
|
return NaN;
|
|
635
621
|
}
|
|
636
|
-
var modMonth = mod
|
|
622
|
+
var modMonth = mod(month, 12);
|
|
637
623
|
year += (month - modMonth) / 12;
|
|
638
624
|
return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
|
639
625
|
}
|
|
@@ -646,7 +632,9 @@ addFormatToken("MMM", 0, 0, function(format2) {
|
|
|
646
632
|
addFormatToken("MMMM", 0, 0, function(format2) {
|
|
647
633
|
return this.localeData().months(this, format2);
|
|
648
634
|
});
|
|
649
|
-
|
|
635
|
+
addUnitAlias("month", "M");
|
|
636
|
+
addUnitPriority("month", 8);
|
|
637
|
+
addRegexToken("M", match1to2);
|
|
650
638
|
addRegexToken("MM", match1to2, match2);
|
|
651
639
|
addRegexToken("MMM", function(isStrict, locale2) {
|
|
652
640
|
return locale2.monthsShortRegex(isStrict);
|
|
@@ -667,24 +655,7 @@ addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
|
|
|
667
655
|
});
|
|
668
656
|
var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
669
657
|
"_"
|
|
670
|
-
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord
|
|
671
|
-
"monthsParse",
|
|
672
|
-
"longMonthsParse",
|
|
673
|
-
"shortMonthsParse",
|
|
674
|
-
"monthsRegex",
|
|
675
|
-
"monthsShortRegex",
|
|
676
|
-
"monthsStrictRegex",
|
|
677
|
-
"monthsShortStrictRegex"
|
|
678
|
-
];
|
|
679
|
-
function clearMonthsParseCache(locale2, config) {
|
|
680
|
-
var i, prop;
|
|
681
|
-
for (i = 0; i < monthsParseProperties.length; i++) {
|
|
682
|
-
prop = monthsParseProperties[i];
|
|
683
|
-
if (!hasOwnProp(config, prop)) {
|
|
684
|
-
delete locale2["_" + prop];
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
658
|
+
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
|
|
688
659
|
function localeMonths(m, format2) {
|
|
689
660
|
if (!m) {
|
|
690
661
|
return isArray(this._months) ? this._months : this._months["standalone"];
|
|
@@ -697,7 +668,7 @@ function localeMonthsShort(m, format2) {
|
|
|
697
668
|
}
|
|
698
669
|
return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
|
|
699
670
|
}
|
|
700
|
-
function handleStrictParse
|
|
671
|
+
function handleStrictParse(monthName, format2, strict) {
|
|
701
672
|
var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
|
702
673
|
if (!this._monthsParse) {
|
|
703
674
|
this._monthsParse = [];
|
|
@@ -741,7 +712,7 @@ function handleStrictParse$1(monthName, format2, strict) {
|
|
|
741
712
|
function localeMonthsParse(monthName, format2, strict) {
|
|
742
713
|
var i, mom, regex;
|
|
743
714
|
if (this._monthsParseExact) {
|
|
744
|
-
return handleStrictParse
|
|
715
|
+
return handleStrictParse.call(this, monthName, format2, strict);
|
|
745
716
|
}
|
|
746
717
|
if (!this._monthsParse) {
|
|
747
718
|
this._monthsParse = [];
|
|
@@ -774,6 +745,7 @@ function localeMonthsParse(monthName, format2, strict) {
|
|
|
774
745
|
}
|
|
775
746
|
}
|
|
776
747
|
function setMonth(mom, value) {
|
|
748
|
+
var dayOfMonth;
|
|
777
749
|
if (!mom.isValid()) {
|
|
778
750
|
return mom;
|
|
779
751
|
}
|
|
@@ -787,9 +759,8 @@ function setMonth(mom, value) {
|
|
|
787
759
|
}
|
|
788
760
|
}
|
|
789
761
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
void (mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date));
|
|
762
|
+
dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
|
|
763
|
+
mom._d["set" + (mom._isUTC ? "UTC" : "") + "Month"](value, dayOfMonth);
|
|
793
764
|
return mom;
|
|
794
765
|
}
|
|
795
766
|
function getSetMonth(value) {
|
|
@@ -798,7 +769,7 @@ function getSetMonth(value) {
|
|
|
798
769
|
hooks.updateOffset(this, true);
|
|
799
770
|
return this;
|
|
800
771
|
} else {
|
|
801
|
-
return get
|
|
772
|
+
return get(this, "Month");
|
|
802
773
|
}
|
|
803
774
|
}
|
|
804
775
|
function getDaysInMonth() {
|
|
@@ -842,19 +813,24 @@ function computeMonthsParse() {
|
|
|
842
813
|
function cmpLenRev(a, b) {
|
|
843
814
|
return b.length - a.length;
|
|
844
815
|
}
|
|
845
|
-
var shortPieces = [], longPieces = [], mixedPieces = [], i, mom
|
|
816
|
+
var shortPieces = [], longPieces = [], mixedPieces = [], i, mom;
|
|
846
817
|
for (i = 0; i < 12; i++) {
|
|
847
818
|
mom = createUTC([2e3, i]);
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
mixedPieces.push(longP);
|
|
853
|
-
mixedPieces.push(shortP);
|
|
819
|
+
shortPieces.push(this.monthsShort(mom, ""));
|
|
820
|
+
longPieces.push(this.months(mom, ""));
|
|
821
|
+
mixedPieces.push(this.months(mom, ""));
|
|
822
|
+
mixedPieces.push(this.monthsShort(mom, ""));
|
|
854
823
|
}
|
|
855
824
|
shortPieces.sort(cmpLenRev);
|
|
856
825
|
longPieces.sort(cmpLenRev);
|
|
857
826
|
mixedPieces.sort(cmpLenRev);
|
|
827
|
+
for (i = 0; i < 12; i++) {
|
|
828
|
+
shortPieces[i] = regexEscape(shortPieces[i]);
|
|
829
|
+
longPieces[i] = regexEscape(longPieces[i]);
|
|
830
|
+
}
|
|
831
|
+
for (i = 0; i < 24; i++) {
|
|
832
|
+
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
|
833
|
+
}
|
|
858
834
|
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
859
835
|
this._monthsShortRegex = this._monthsRegex;
|
|
860
836
|
this._monthsStrictRegex = new RegExp(
|
|
@@ -866,6 +842,150 @@ function computeMonthsParse() {
|
|
|
866
842
|
"i"
|
|
867
843
|
);
|
|
868
844
|
}
|
|
845
|
+
addFormatToken("Y", 0, 0, function() {
|
|
846
|
+
var y = this.year();
|
|
847
|
+
return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
|
848
|
+
});
|
|
849
|
+
addFormatToken(0, ["YY", 2], 0, function() {
|
|
850
|
+
return this.year() % 100;
|
|
851
|
+
});
|
|
852
|
+
addFormatToken(0, ["YYYY", 4], 0, "year");
|
|
853
|
+
addFormatToken(0, ["YYYYY", 5], 0, "year");
|
|
854
|
+
addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
|
|
855
|
+
addUnitAlias("year", "y");
|
|
856
|
+
addUnitPriority("year", 1);
|
|
857
|
+
addRegexToken("Y", matchSigned);
|
|
858
|
+
addRegexToken("YY", match1to2, match2);
|
|
859
|
+
addRegexToken("YYYY", match1to4, match4);
|
|
860
|
+
addRegexToken("YYYYY", match1to6, match6);
|
|
861
|
+
addRegexToken("YYYYYY", match1to6, match6);
|
|
862
|
+
addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
|
863
|
+
addParseToken("YYYY", function(input, array) {
|
|
864
|
+
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
865
|
+
});
|
|
866
|
+
addParseToken("YY", function(input, array) {
|
|
867
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
868
|
+
});
|
|
869
|
+
addParseToken("Y", function(input, array) {
|
|
870
|
+
array[YEAR] = parseInt(input, 10);
|
|
871
|
+
});
|
|
872
|
+
function daysInYear(year) {
|
|
873
|
+
return isLeapYear(year) ? 366 : 365;
|
|
874
|
+
}
|
|
875
|
+
hooks.parseTwoDigitYear = function(input) {
|
|
876
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
|
877
|
+
};
|
|
878
|
+
var getSetYear = makeGetSet("FullYear", true);
|
|
879
|
+
function getIsLeapYear() {
|
|
880
|
+
return isLeapYear(this.year());
|
|
881
|
+
}
|
|
882
|
+
function createDate(y, m, d, h, M, s, ms) {
|
|
883
|
+
var date;
|
|
884
|
+
if (y < 100 && y >= 0) {
|
|
885
|
+
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
886
|
+
if (isFinite(date.getFullYear())) {
|
|
887
|
+
date.setFullYear(y);
|
|
888
|
+
}
|
|
889
|
+
} else {
|
|
890
|
+
date = new Date(y, m, d, h, M, s, ms);
|
|
891
|
+
}
|
|
892
|
+
return date;
|
|
893
|
+
}
|
|
894
|
+
function createUTCDate(y) {
|
|
895
|
+
var date, args;
|
|
896
|
+
if (y < 100 && y >= 0) {
|
|
897
|
+
args = Array.prototype.slice.call(arguments);
|
|
898
|
+
args[0] = y + 400;
|
|
899
|
+
date = new Date(Date.UTC.apply(null, args));
|
|
900
|
+
if (isFinite(date.getUTCFullYear())) {
|
|
901
|
+
date.setUTCFullYear(y);
|
|
902
|
+
}
|
|
903
|
+
} else {
|
|
904
|
+
date = new Date(Date.UTC.apply(null, arguments));
|
|
905
|
+
}
|
|
906
|
+
return date;
|
|
907
|
+
}
|
|
908
|
+
function firstWeekOffset(year, dow, doy) {
|
|
909
|
+
var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
|
910
|
+
return -fwdlw + fwd - 1;
|
|
911
|
+
}
|
|
912
|
+
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
913
|
+
var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
|
914
|
+
if (dayOfYear <= 0) {
|
|
915
|
+
resYear = year - 1;
|
|
916
|
+
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
917
|
+
} else if (dayOfYear > daysInYear(year)) {
|
|
918
|
+
resYear = year + 1;
|
|
919
|
+
resDayOfYear = dayOfYear - daysInYear(year);
|
|
920
|
+
} else {
|
|
921
|
+
resYear = year;
|
|
922
|
+
resDayOfYear = dayOfYear;
|
|
923
|
+
}
|
|
924
|
+
return {
|
|
925
|
+
year: resYear,
|
|
926
|
+
dayOfYear: resDayOfYear
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
function weekOfYear(mom, dow, doy) {
|
|
930
|
+
var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
|
931
|
+
if (week < 1) {
|
|
932
|
+
resYear = mom.year() - 1;
|
|
933
|
+
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
934
|
+
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
|
935
|
+
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
|
936
|
+
resYear = mom.year() + 1;
|
|
937
|
+
} else {
|
|
938
|
+
resYear = mom.year();
|
|
939
|
+
resWeek = week;
|
|
940
|
+
}
|
|
941
|
+
return {
|
|
942
|
+
week: resWeek,
|
|
943
|
+
year: resYear
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
function weeksInYear(year, dow, doy) {
|
|
947
|
+
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
948
|
+
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
949
|
+
}
|
|
950
|
+
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
951
|
+
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
952
|
+
addUnitAlias("week", "w");
|
|
953
|
+
addUnitAlias("isoWeek", "W");
|
|
954
|
+
addUnitPriority("week", 5);
|
|
955
|
+
addUnitPriority("isoWeek", 5);
|
|
956
|
+
addRegexToken("w", match1to2);
|
|
957
|
+
addRegexToken("ww", match1to2, match2);
|
|
958
|
+
addRegexToken("W", match1to2);
|
|
959
|
+
addRegexToken("WW", match1to2, match2);
|
|
960
|
+
addWeekParseToken(
|
|
961
|
+
["w", "ww", "W", "WW"],
|
|
962
|
+
function(input, week, config, token2) {
|
|
963
|
+
week[token2.substr(0, 1)] = toInt(input);
|
|
964
|
+
}
|
|
965
|
+
);
|
|
966
|
+
function localeWeek(mom) {
|
|
967
|
+
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
968
|
+
}
|
|
969
|
+
var defaultLocaleWeek = {
|
|
970
|
+
dow: 0,
|
|
971
|
+
// Sunday is the first day of the week.
|
|
972
|
+
doy: 6
|
|
973
|
+
// The week that contains Jan 6th is the first week of the year.
|
|
974
|
+
};
|
|
975
|
+
function localeFirstDayOfWeek() {
|
|
976
|
+
return this._week.dow;
|
|
977
|
+
}
|
|
978
|
+
function localeFirstDayOfYear() {
|
|
979
|
+
return this._week.doy;
|
|
980
|
+
}
|
|
981
|
+
function getSetWeek(input) {
|
|
982
|
+
var week = this.localeData().week(this);
|
|
983
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
984
|
+
}
|
|
985
|
+
function getSetISOWeek(input) {
|
|
986
|
+
var week = weekOfYear(this, 1, 4).week;
|
|
987
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
988
|
+
}
|
|
869
989
|
addFormatToken("d", 0, "do", "day");
|
|
870
990
|
addFormatToken("dd", 0, 0, function(format2) {
|
|
871
991
|
return this.localeData().weekdaysMin(this, format2);
|
|
@@ -878,13 +998,15 @@ addFormatToken("dddd", 0, 0, function(format2) {
|
|
|
878
998
|
});
|
|
879
999
|
addFormatToken("e", 0, 0, "weekday");
|
|
880
1000
|
addFormatToken("E", 0, 0, "isoWeekday");
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1001
|
+
addUnitAlias("day", "d");
|
|
1002
|
+
addUnitAlias("weekday", "e");
|
|
1003
|
+
addUnitAlias("isoWeekday", "E");
|
|
1004
|
+
addUnitPriority("day", 11);
|
|
1005
|
+
addUnitPriority("weekday", 11);
|
|
1006
|
+
addUnitPriority("isoWeekday", 11);
|
|
884
1007
|
addRegexToken("d", match1to2);
|
|
885
1008
|
addRegexToken("e", match1to2);
|
|
886
1009
|
addRegexToken("E", match1to2);
|
|
887
|
-
addRegexToken("eHHmm", match5to6);
|
|
888
1010
|
addRegexToken("dd", function(isStrict, locale2) {
|
|
889
1011
|
return locale2.weekdaysMinRegex(isStrict);
|
|
890
1012
|
});
|
|
@@ -905,12 +1027,6 @@ addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) {
|
|
|
905
1027
|
addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) {
|
|
906
1028
|
week[token2] = toInt(input);
|
|
907
1029
|
});
|
|
908
|
-
addWeekParseToken("eHHmm", function(input, week, config) {
|
|
909
|
-
var weekdayEnd = input.length - 4;
|
|
910
|
-
week.e = toInt(input.substr(0, weekdayEnd));
|
|
911
|
-
config._a[HOUR] = toInt(input.substr(weekdayEnd, 2));
|
|
912
|
-
config._a[MINUTE] = toInt(input.substr(weekdayEnd + 2));
|
|
913
|
-
});
|
|
914
1030
|
function parseWeekday(input, locale2) {
|
|
915
1031
|
if (typeof input !== "string") {
|
|
916
1032
|
return input;
|
|
@@ -933,27 +1049,7 @@ function parseIsoWeekday(input, locale2) {
|
|
|
933
1049
|
function shiftWeekdays(ws, n) {
|
|
934
1050
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
935
1051
|
}
|
|
936
|
-
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord
|
|
937
|
-
"weekdaysParse",
|
|
938
|
-
"fullWeekdaysParse",
|
|
939
|
-
"shortWeekdaysParse",
|
|
940
|
-
"minWeekdaysParse",
|
|
941
|
-
"weekdaysRegex",
|
|
942
|
-
"weekdaysShortRegex",
|
|
943
|
-
"weekdaysMinRegex",
|
|
944
|
-
"weekdaysStrictRegex",
|
|
945
|
-
"weekdaysShortStrictRegex",
|
|
946
|
-
"weekdaysMinStrictRegex"
|
|
947
|
-
];
|
|
948
|
-
function clearWeekdaysParseCache(locale2, config) {
|
|
949
|
-
var i, prop;
|
|
950
|
-
for (i = 0; i < weekdaysParseProperties.length; i++) {
|
|
951
|
-
prop = weekdaysParseProperties[i];
|
|
952
|
-
if (!hasOwnProp(config, prop)) {
|
|
953
|
-
delete locale2["_" + prop];
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
1052
|
+
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
|
|
957
1053
|
function localeWeekdays(m, format2) {
|
|
958
1054
|
var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
|
|
959
1055
|
return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
|
@@ -964,7 +1060,7 @@ function localeWeekdaysShort(m) {
|
|
|
964
1060
|
function localeWeekdaysMin(m) {
|
|
965
1061
|
return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
|
966
1062
|
}
|
|
967
|
-
function handleStrictParse(weekdayName, format2, strict) {
|
|
1063
|
+
function handleStrictParse$1(weekdayName, format2, strict) {
|
|
968
1064
|
var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
|
|
969
1065
|
if (!this._weekdaysParse) {
|
|
970
1066
|
this._weekdaysParse = [];
|
|
@@ -1034,7 +1130,7 @@ function handleStrictParse(weekdayName, format2, strict) {
|
|
|
1034
1130
|
function localeWeekdaysParse(weekdayName, format2, strict) {
|
|
1035
1131
|
var i, mom, regex;
|
|
1036
1132
|
if (this._weekdaysParseExact) {
|
|
1037
|
-
return handleStrictParse.call(this, weekdayName, format2, strict);
|
|
1133
|
+
return handleStrictParse$1.call(this, weekdayName, format2, strict);
|
|
1038
1134
|
}
|
|
1039
1135
|
if (!this._weekdaysParse) {
|
|
1040
1136
|
this._weekdaysParse = [];
|
|
@@ -1063,398 +1159,133 @@ function localeWeekdaysParse(weekdayName, format2, strict) {
|
|
|
1063
1159
|
this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i");
|
|
1064
1160
|
}
|
|
1065
1161
|
if (strict && format2 === "dddd" && this._fullWeekdaysParse[i].test(weekdayName)) {
|
|
1066
|
-
return i;
|
|
1067
|
-
} else if (strict && format2 === "ddd" && this._shortWeekdaysParse[i].test(weekdayName)) {
|
|
1068
|
-
return i;
|
|
1069
|
-
} else if (strict && format2 === "dd" && this._minWeekdaysParse[i].test(weekdayName)) {
|
|
1070
|
-
return i;
|
|
1071
|
-
} else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
|
|
1072
|
-
return i;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
function getSetDayOfWeek(input) {
|
|
1077
|
-
if (!this.isValid()) {
|
|
1078
|
-
return input != null ? this : NaN;
|
|
1079
|
-
}
|
|
1080
|
-
var day = get$2(this, "Day");
|
|
1081
|
-
if (input != null) {
|
|
1082
|
-
input = parseWeekday(input, this.localeData());
|
|
1083
|
-
return this.add(input - day, "d");
|
|
1084
|
-
} else {
|
|
1085
|
-
return day;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
function getSetLocaleDayOfWeek(input) {
|
|
1089
|
-
if (!this.isValid()) {
|
|
1090
|
-
return input != null ? this : NaN;
|
|
1091
|
-
}
|
|
1092
|
-
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1093
|
-
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1094
|
-
}
|
|
1095
|
-
function getSetISODayOfWeek(input) {
|
|
1096
|
-
if (!this.isValid()) {
|
|
1097
|
-
return input != null ? this : NaN;
|
|
1098
|
-
}
|
|
1099
|
-
if (input != null) {
|
|
1100
|
-
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1101
|
-
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1102
|
-
} else {
|
|
1103
|
-
return this.day() || 7;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
function weekdaysRegex(isStrict) {
|
|
1107
|
-
if (this._weekdaysParseExact) {
|
|
1108
|
-
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1109
|
-
computeWeekdaysParse.call(this);
|
|
1110
|
-
}
|
|
1111
|
-
if (isStrict) {
|
|
1112
|
-
return this._weekdaysStrictRegex;
|
|
1113
|
-
} else {
|
|
1114
|
-
return this._weekdaysRegex;
|
|
1115
|
-
}
|
|
1116
|
-
} else {
|
|
1117
|
-
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1118
|
-
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1119
|
-
}
|
|
1120
|
-
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
function weekdaysShortRegex(isStrict) {
|
|
1124
|
-
if (this._weekdaysParseExact) {
|
|
1125
|
-
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1126
|
-
computeWeekdaysParse.call(this);
|
|
1127
|
-
}
|
|
1128
|
-
if (isStrict) {
|
|
1129
|
-
return this._weekdaysShortStrictRegex;
|
|
1130
|
-
} else {
|
|
1131
|
-
return this._weekdaysShortRegex;
|
|
1132
|
-
}
|
|
1133
|
-
} else {
|
|
1134
|
-
if (!hasOwnProp(this, "_weekdaysShortRegex")) {
|
|
1135
|
-
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1136
|
-
}
|
|
1137
|
-
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
function weekdaysMinRegex(isStrict) {
|
|
1141
|
-
if (this._weekdaysParseExact) {
|
|
1142
|
-
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1143
|
-
computeWeekdaysParse.call(this);
|
|
1144
|
-
}
|
|
1145
|
-
if (isStrict) {
|
|
1146
|
-
return this._weekdaysMinStrictRegex;
|
|
1147
|
-
} else {
|
|
1148
|
-
return this._weekdaysMinRegex;
|
|
1149
|
-
}
|
|
1150
|
-
} else {
|
|
1151
|
-
if (!hasOwnProp(this, "_weekdaysMinRegex")) {
|
|
1152
|
-
this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
|
1153
|
-
}
|
|
1154
|
-
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
function computeWeekdaysParse() {
|
|
1158
|
-
function cmpLenRev(a, b) {
|
|
1159
|
-
return b.length - a.length;
|
|
1160
|
-
}
|
|
1161
|
-
var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
|
|
1162
|
-
for (i = 0; i < 7; i++) {
|
|
1163
|
-
mom = createUTC([2e3, 1]).day(i);
|
|
1164
|
-
minp = regexEscape(this.weekdaysMin(mom, ""));
|
|
1165
|
-
shortp = regexEscape(this.weekdaysShort(mom, ""));
|
|
1166
|
-
longp = regexEscape(this.weekdays(mom, ""));
|
|
1167
|
-
minPieces.push(minp);
|
|
1168
|
-
shortPieces.push(shortp);
|
|
1169
|
-
longPieces.push(longp);
|
|
1170
|
-
mixedPieces.push(minp);
|
|
1171
|
-
mixedPieces.push(shortp);
|
|
1172
|
-
mixedPieces.push(longp);
|
|
1173
|
-
}
|
|
1174
|
-
minPieces.sort(cmpLenRev);
|
|
1175
|
-
shortPieces.sort(cmpLenRev);
|
|
1176
|
-
longPieces.sort(cmpLenRev);
|
|
1177
|
-
mixedPieces.sort(cmpLenRev);
|
|
1178
|
-
this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
1179
|
-
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
1180
|
-
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
1181
|
-
this._weekdaysStrictRegex = new RegExp(
|
|
1182
|
-
"^(" + longPieces.join("|") + ")",
|
|
1183
|
-
"i"
|
|
1184
|
-
);
|
|
1185
|
-
this._weekdaysShortStrictRegex = new RegExp(
|
|
1186
|
-
"^(" + shortPieces.join("|") + ")",
|
|
1187
|
-
"i"
|
|
1188
|
-
);
|
|
1189
|
-
this._weekdaysMinStrictRegex = new RegExp(
|
|
1190
|
-
"^(" + minPieces.join("|") + ")",
|
|
1191
|
-
"i"
|
|
1192
|
-
);
|
|
1193
|
-
}
|
|
1194
|
-
function set(config) {
|
|
1195
|
-
var prop, i;
|
|
1196
|
-
clearMonthsParseCache(this, config);
|
|
1197
|
-
clearWeekdaysParseCache(this, config);
|
|
1198
|
-
for (i in config) {
|
|
1199
|
-
if (hasOwnProp(config, i)) {
|
|
1200
|
-
prop = config[i];
|
|
1201
|
-
if (isFunction(prop)) {
|
|
1202
|
-
this[i] = prop;
|
|
1203
|
-
} else {
|
|
1204
|
-
this["_" + i] = prop;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
this._config = config;
|
|
1209
|
-
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
1210
|
-
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1211
|
-
);
|
|
1212
|
-
}
|
|
1213
|
-
function mergeConfigs(parentConfig, childConfig) {
|
|
1214
|
-
var res = extend({}, parentConfig), prop;
|
|
1215
|
-
for (prop in childConfig) {
|
|
1216
|
-
if (hasOwnProp(childConfig, prop)) {
|
|
1217
|
-
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
1218
|
-
res[prop] = {};
|
|
1219
|
-
extend(res[prop], parentConfig[prop]);
|
|
1220
|
-
extend(res[prop], childConfig[prop]);
|
|
1221
|
-
} else if (childConfig[prop] != null) {
|
|
1222
|
-
res[prop] = childConfig[prop];
|
|
1223
|
-
} else {
|
|
1224
|
-
delete res[prop];
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
for (prop in parentConfig) {
|
|
1229
|
-
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
1230
|
-
res[prop] = extend({}, res[prop]);
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
return res;
|
|
1234
|
-
}
|
|
1235
|
-
function Locale(config) {
|
|
1236
|
-
if (config != null) {
|
|
1237
|
-
this.set(config);
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
var keys;
|
|
1241
|
-
if (Object.keys) {
|
|
1242
|
-
keys = Object.keys;
|
|
1243
|
-
} else {
|
|
1244
|
-
keys = function(obj) {
|
|
1245
|
-
var i, res = [];
|
|
1246
|
-
for (i in obj) {
|
|
1247
|
-
if (hasOwnProp(obj, i)) {
|
|
1248
|
-
res.push(i);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
return res;
|
|
1252
|
-
};
|
|
1253
|
-
}
|
|
1254
|
-
var defaultCalendar = {
|
|
1255
|
-
sameDay: "[Today at] LT",
|
|
1256
|
-
nextDay: "[Tomorrow at] LT",
|
|
1257
|
-
nextWeek: "dddd [at] LT",
|
|
1258
|
-
lastDay: "[Yesterday at] LT",
|
|
1259
|
-
lastWeek: "[Last] dddd [at] LT",
|
|
1260
|
-
sameElse: "L"
|
|
1261
|
-
};
|
|
1262
|
-
function calendar$1(key, mom, now2) {
|
|
1263
|
-
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
1264
|
-
return isFunction(output) ? output.call(mom, now2) : output;
|
|
1265
|
-
}
|
|
1266
|
-
var defaultLongDateFormat = {
|
|
1267
|
-
LTS: "h:mm:ss A",
|
|
1268
|
-
LT: "h:mm A",
|
|
1269
|
-
L: "MM/DD/YYYY",
|
|
1270
|
-
LL: "MMMM D, YYYY",
|
|
1271
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
1272
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1273
|
-
};
|
|
1274
|
-
function longDateFormat(key) {
|
|
1275
|
-
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()], formatCache = this._longDateFormatCache;
|
|
1276
|
-
if (format2 || !formatUpper) {
|
|
1277
|
-
return format2;
|
|
1278
|
-
}
|
|
1279
|
-
if (formatCache && formatCache[key] && formatCache[key].formatUpper === formatUpper) {
|
|
1280
|
-
return formatCache[key].format;
|
|
1281
|
-
}
|
|
1282
|
-
format2 = formatUpper.match(formattingTokens).map(function(tok) {
|
|
1283
|
-
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
1284
|
-
return tok.slice(1);
|
|
1285
|
-
}
|
|
1286
|
-
return tok;
|
|
1287
|
-
}).join("");
|
|
1288
|
-
if (!formatCache) {
|
|
1289
|
-
formatCache = this._longDateFormatCache = {};
|
|
1290
|
-
}
|
|
1291
|
-
formatCache[key] = {
|
|
1292
|
-
formatUpper,
|
|
1293
|
-
format: format2
|
|
1294
|
-
};
|
|
1295
|
-
return format2;
|
|
1296
|
-
}
|
|
1297
|
-
var defaultInvalidDate = "Invalid date";
|
|
1298
|
-
function invalidDate() {
|
|
1299
|
-
return this._invalidDate;
|
|
1300
|
-
}
|
|
1301
|
-
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
1302
|
-
function ordinal(number) {
|
|
1303
|
-
return this._ordinal.replace("%d", number);
|
|
1304
|
-
}
|
|
1305
|
-
var defaultRelativeTime = {
|
|
1306
|
-
future: "in %s",
|
|
1307
|
-
past: "%s ago",
|
|
1308
|
-
s: "a few seconds",
|
|
1309
|
-
ss: "%d seconds",
|
|
1310
|
-
m: "a minute",
|
|
1311
|
-
mm: "%d minutes",
|
|
1312
|
-
h: "an hour",
|
|
1313
|
-
hh: "%d hours",
|
|
1314
|
-
d: "a day",
|
|
1315
|
-
dd: "%d days",
|
|
1316
|
-
w: "a week",
|
|
1317
|
-
ww: "%d weeks",
|
|
1318
|
-
M: "a month",
|
|
1319
|
-
MM: "%d months",
|
|
1320
|
-
y: "a year",
|
|
1321
|
-
yy: "%d years"
|
|
1322
|
-
};
|
|
1323
|
-
function relativeTimeWithoutPostformat(number, withoutSuffix, string, isFuture) {
|
|
1324
|
-
var output = this._relativeTime[string];
|
|
1325
|
-
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
1326
|
-
}
|
|
1327
|
-
function relativeTime$1(number, withoutSuffix, string, isFuture) {
|
|
1328
|
-
return this.postformat(
|
|
1329
|
-
relativeTimeWithoutPostformat.call(
|
|
1330
|
-
this,
|
|
1331
|
-
number,
|
|
1332
|
-
withoutSuffix,
|
|
1333
|
-
string,
|
|
1334
|
-
isFuture
|
|
1335
|
-
)
|
|
1336
|
-
);
|
|
1337
|
-
}
|
|
1338
|
-
function pastFutureWithoutPostformat(diff2, output) {
|
|
1339
|
-
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
1340
|
-
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
1341
|
-
}
|
|
1342
|
-
function pastFuture(diff2, output) {
|
|
1343
|
-
return this.postformat(
|
|
1344
|
-
pastFutureWithoutPostformat.call(this, diff2, output)
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
function createDate(y, m, d, h, M, s, ms) {
|
|
1348
|
-
var date;
|
|
1349
|
-
if (y < 100 && y >= 0) {
|
|
1350
|
-
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
1351
|
-
if (isFinite(date.getFullYear())) {
|
|
1352
|
-
date.setFullYear(y);
|
|
1162
|
+
return i;
|
|
1163
|
+
} else if (strict && format2 === "ddd" && this._shortWeekdaysParse[i].test(weekdayName)) {
|
|
1164
|
+
return i;
|
|
1165
|
+
} else if (strict && format2 === "dd" && this._minWeekdaysParse[i].test(weekdayName)) {
|
|
1166
|
+
return i;
|
|
1167
|
+
} else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
|
|
1168
|
+
return i;
|
|
1353
1169
|
}
|
|
1354
|
-
} else {
|
|
1355
|
-
date = new Date(y, m, d, h, M, s, ms);
|
|
1356
1170
|
}
|
|
1357
|
-
return date;
|
|
1358
1171
|
}
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1172
|
+
function getSetDayOfWeek(input) {
|
|
1173
|
+
if (!this.isValid()) {
|
|
1174
|
+
return input != null ? this : NaN;
|
|
1175
|
+
}
|
|
1176
|
+
var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
|
|
1177
|
+
if (input != null) {
|
|
1178
|
+
input = parseWeekday(input, this.localeData());
|
|
1179
|
+
return this.add(input - day, "d");
|
|
1368
1180
|
} else {
|
|
1369
|
-
|
|
1181
|
+
return day;
|
|
1370
1182
|
}
|
|
1371
|
-
return date;
|
|
1372
1183
|
}
|
|
1373
|
-
function
|
|
1374
|
-
|
|
1375
|
-
|
|
1184
|
+
function getSetLocaleDayOfWeek(input) {
|
|
1185
|
+
if (!this.isValid()) {
|
|
1186
|
+
return input != null ? this : NaN;
|
|
1187
|
+
}
|
|
1188
|
+
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1189
|
+
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1376
1190
|
}
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
resDayOfYear = dayOfYear - daysInYear(year);
|
|
1191
|
+
function getSetISODayOfWeek(input) {
|
|
1192
|
+
if (!this.isValid()) {
|
|
1193
|
+
return input != null ? this : NaN;
|
|
1194
|
+
}
|
|
1195
|
+
if (input != null) {
|
|
1196
|
+
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1197
|
+
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1385
1198
|
} else {
|
|
1386
|
-
|
|
1387
|
-
resDayOfYear = dayOfYear;
|
|
1199
|
+
return this.day() || 7;
|
|
1388
1200
|
}
|
|
1389
|
-
return {
|
|
1390
|
-
year: resYear,
|
|
1391
|
-
dayOfYear: resDayOfYear
|
|
1392
|
-
};
|
|
1393
1201
|
}
|
|
1394
|
-
function
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1202
|
+
function weekdaysRegex(isStrict) {
|
|
1203
|
+
if (this._weekdaysParseExact) {
|
|
1204
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1205
|
+
computeWeekdaysParse.call(this);
|
|
1206
|
+
}
|
|
1207
|
+
if (isStrict) {
|
|
1208
|
+
return this._weekdaysStrictRegex;
|
|
1209
|
+
} else {
|
|
1210
|
+
return this._weekdaysRegex;
|
|
1211
|
+
}
|
|
1402
1212
|
} else {
|
|
1403
|
-
|
|
1404
|
-
|
|
1213
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1214
|
+
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1215
|
+
}
|
|
1216
|
+
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1405
1217
|
}
|
|
1406
|
-
return {
|
|
1407
|
-
week: resWeek,
|
|
1408
|
-
year: resYear
|
|
1409
|
-
};
|
|
1410
|
-
}
|
|
1411
|
-
function weekOfYear(mom, dow, doy) {
|
|
1412
|
-
return weekOfYearFromDayOfYear(mom.year(), mom.dayOfYear(), dow, doy);
|
|
1413
|
-
}
|
|
1414
|
-
function weekOfYearFromDate(year, month, date, dow, doy) {
|
|
1415
|
-
var dayOfYear = Math.round(
|
|
1416
|
-
(createUTCDate(year, month, date) - createUTCDate(year, 0, 1)) / 864e5
|
|
1417
|
-
) + 1;
|
|
1418
|
-
return weekOfYearFromDayOfYear(year, dayOfYear, dow, doy);
|
|
1419
|
-
}
|
|
1420
|
-
function weeksInYear(year, dow, doy) {
|
|
1421
|
-
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
1422
|
-
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
1423
1218
|
}
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1219
|
+
function weekdaysShortRegex(isStrict) {
|
|
1220
|
+
if (this._weekdaysParseExact) {
|
|
1221
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1222
|
+
computeWeekdaysParse.call(this);
|
|
1223
|
+
}
|
|
1224
|
+
if (isStrict) {
|
|
1225
|
+
return this._weekdaysShortStrictRegex;
|
|
1226
|
+
} else {
|
|
1227
|
+
return this._weekdaysShortRegex;
|
|
1228
|
+
}
|
|
1229
|
+
} else {
|
|
1230
|
+
if (!hasOwnProp(this, "_weekdaysShortRegex")) {
|
|
1231
|
+
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1232
|
+
}
|
|
1233
|
+
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1434
1234
|
}
|
|
1435
|
-
);
|
|
1436
|
-
function localeWeek(mom) {
|
|
1437
|
-
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
1438
|
-
}
|
|
1439
|
-
var defaultLocaleWeek = {
|
|
1440
|
-
dow: 0,
|
|
1441
|
-
// Sunday is the first day of the week.
|
|
1442
|
-
doy: 6
|
|
1443
|
-
// The week that contains Jan 6th is the first week of the year.
|
|
1444
|
-
};
|
|
1445
|
-
function localeFirstDayOfWeek() {
|
|
1446
|
-
return this._week.dow;
|
|
1447
1235
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1236
|
+
function weekdaysMinRegex(isStrict) {
|
|
1237
|
+
if (this._weekdaysParseExact) {
|
|
1238
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1239
|
+
computeWeekdaysParse.call(this);
|
|
1240
|
+
}
|
|
1241
|
+
if (isStrict) {
|
|
1242
|
+
return this._weekdaysMinStrictRegex;
|
|
1243
|
+
} else {
|
|
1244
|
+
return this._weekdaysMinRegex;
|
|
1245
|
+
}
|
|
1246
|
+
} else {
|
|
1247
|
+
if (!hasOwnProp(this, "_weekdaysMinRegex")) {
|
|
1248
|
+
this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
|
1249
|
+
}
|
|
1250
|
+
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1251
|
+
}
|
|
1454
1252
|
}
|
|
1455
|
-
function
|
|
1456
|
-
|
|
1457
|
-
|
|
1253
|
+
function computeWeekdaysParse() {
|
|
1254
|
+
function cmpLenRev(a, b) {
|
|
1255
|
+
return b.length - a.length;
|
|
1256
|
+
}
|
|
1257
|
+
var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
|
|
1258
|
+
for (i = 0; i < 7; i++) {
|
|
1259
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1260
|
+
minp = regexEscape(this.weekdaysMin(mom, ""));
|
|
1261
|
+
shortp = regexEscape(this.weekdaysShort(mom, ""));
|
|
1262
|
+
longp = regexEscape(this.weekdays(mom, ""));
|
|
1263
|
+
minPieces.push(minp);
|
|
1264
|
+
shortPieces.push(shortp);
|
|
1265
|
+
longPieces.push(longp);
|
|
1266
|
+
mixedPieces.push(minp);
|
|
1267
|
+
mixedPieces.push(shortp);
|
|
1268
|
+
mixedPieces.push(longp);
|
|
1269
|
+
}
|
|
1270
|
+
minPieces.sort(cmpLenRev);
|
|
1271
|
+
shortPieces.sort(cmpLenRev);
|
|
1272
|
+
longPieces.sort(cmpLenRev);
|
|
1273
|
+
mixedPieces.sort(cmpLenRev);
|
|
1274
|
+
this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
1275
|
+
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
1276
|
+
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
1277
|
+
this._weekdaysStrictRegex = new RegExp(
|
|
1278
|
+
"^(" + longPieces.join("|") + ")",
|
|
1279
|
+
"i"
|
|
1280
|
+
);
|
|
1281
|
+
this._weekdaysShortStrictRegex = new RegExp(
|
|
1282
|
+
"^(" + shortPieces.join("|") + ")",
|
|
1283
|
+
"i"
|
|
1284
|
+
);
|
|
1285
|
+
this._weekdaysMinStrictRegex = new RegExp(
|
|
1286
|
+
"^(" + minPieces.join("|") + ")",
|
|
1287
|
+
"i"
|
|
1288
|
+
);
|
|
1458
1289
|
}
|
|
1459
1290
|
function hFormat() {
|
|
1460
1291
|
return this.hours() % 12 || 12;
|
|
@@ -1488,14 +1319,16 @@ function meridiem(token2, lowercase) {
|
|
|
1488
1319
|
}
|
|
1489
1320
|
meridiem("a", true);
|
|
1490
1321
|
meridiem("A", false);
|
|
1322
|
+
addUnitAlias("hour", "h");
|
|
1323
|
+
addUnitPriority("hour", 13);
|
|
1491
1324
|
function matchMeridiem(isStrict, locale2) {
|
|
1492
1325
|
return locale2._meridiemParse;
|
|
1493
1326
|
}
|
|
1494
1327
|
addRegexToken("a", matchMeridiem);
|
|
1495
1328
|
addRegexToken("A", matchMeridiem);
|
|
1496
|
-
addRegexToken("H", match1to2
|
|
1497
|
-
addRegexToken("h", match1to2
|
|
1498
|
-
addRegexToken("k", match1to2
|
|
1329
|
+
addRegexToken("H", match1to2);
|
|
1330
|
+
addRegexToken("h", match1to2);
|
|
1331
|
+
addRegexToken("k", match1to2);
|
|
1499
1332
|
addRegexToken("HH", match1to2, match2);
|
|
1500
1333
|
addRegexToken("hh", match1to2, match2);
|
|
1501
1334
|
addRegexToken("kk", match1to2, match2);
|
|
@@ -1601,30 +1434,21 @@ function chooseLocale(names) {
|
|
|
1601
1434
|
return globalLocale;
|
|
1602
1435
|
}
|
|
1603
1436
|
function isLocaleNameSane(name) {
|
|
1604
|
-
return
|
|
1437
|
+
return name.match("^[^/\\\\]*$") != null;
|
|
1605
1438
|
}
|
|
1606
1439
|
function loadLocale(name) {
|
|
1607
|
-
var oldLocale = null, aliasedRequire
|
|
1608
|
-
if (
|
|
1609
|
-
return locales[name];
|
|
1610
|
-
}
|
|
1611
|
-
normalizedName = normalizeLocale(name);
|
|
1612
|
-
if (hasOwnProp(locales, normalizedName)) {
|
|
1613
|
-
return locales[normalizedName];
|
|
1614
|
-
}
|
|
1615
|
-
if (typeof module !== "undefined" && module && module.exports && isLocaleNameSane(normalizedName)) {
|
|
1440
|
+
var oldLocale = null, aliasedRequire;
|
|
1441
|
+
if (locales[name] === void 0 && typeof module !== "undefined" && module && module.exports && isLocaleNameSane(name)) {
|
|
1616
1442
|
try {
|
|
1617
1443
|
oldLocale = globalLocale._abbr;
|
|
1618
1444
|
aliasedRequire = require;
|
|
1619
|
-
aliasedRequire("./locale/" +
|
|
1445
|
+
aliasedRequire("./locale/" + name);
|
|
1620
1446
|
getSetGlobalLocale(oldLocale);
|
|
1621
1447
|
} catch (e) {
|
|
1622
|
-
locales[
|
|
1448
|
+
locales[name] = null;
|
|
1623
1449
|
}
|
|
1624
1450
|
}
|
|
1625
|
-
|
|
1626
|
-
return locales[normalizedName];
|
|
1627
|
-
}
|
|
1451
|
+
return locales[name];
|
|
1628
1452
|
}
|
|
1629
1453
|
function getSetGlobalLocale(key, values) {
|
|
1630
1454
|
var data;
|
|
@@ -1689,14 +1513,12 @@ function defineLocale(name, config) {
|
|
|
1689
1513
|
}
|
|
1690
1514
|
}
|
|
1691
1515
|
function updateLocale(name, config) {
|
|
1692
|
-
var locale2, tmpLocale = loadLocale(name), parentConfig = baseConfig;
|
|
1693
|
-
if (tmpLocale != null) {
|
|
1694
|
-
name = tmpLocale._abbr;
|
|
1695
|
-
}
|
|
1696
1516
|
if (config != null) {
|
|
1517
|
+
var locale2, tmpLocale, parentConfig = baseConfig;
|
|
1697
1518
|
if (locales[name] != null && locales[name].parentLocale != null) {
|
|
1698
1519
|
locales[name].set(mergeConfigs(locales[name]._config, config));
|
|
1699
1520
|
} else {
|
|
1521
|
+
tmpLocale = loadLocale(name);
|
|
1700
1522
|
if (tmpLocale != null) {
|
|
1701
1523
|
parentConfig = tmpLocale._config;
|
|
1702
1524
|
}
|
|
@@ -1953,38 +1775,8 @@ function defaults(a, b, c) {
|
|
|
1953
1775
|
}
|
|
1954
1776
|
return c;
|
|
1955
1777
|
}
|
|
1956
|
-
function currentDateArray(config
|
|
1957
|
-
var
|
|
1958
|
-
config,
|
|
1959
|
-
"_isDefaultDatePartsForWeek"
|
|
1960
|
-
), weekContext = config._isDefaultDatePartsForWeek;
|
|
1961
|
-
config._isDefaultDatePartsForWeek = !!forWeek;
|
|
1962
|
-
try {
|
|
1963
|
-
return hooks._getDefaultDateParts(config, now2, forWeek);
|
|
1964
|
-
} finally {
|
|
1965
|
-
if (hadWeekContext) {
|
|
1966
|
-
config._isDefaultDatePartsForWeek = weekContext;
|
|
1967
|
-
} else {
|
|
1968
|
-
delete config._isDefaultDatePartsForWeek;
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
function currentDateNow(config) {
|
|
1973
|
-
var now2 = config._defaultDatePartsNow;
|
|
1974
|
-
if (!now2) {
|
|
1975
|
-
return hooks.now();
|
|
1976
|
-
}
|
|
1977
|
-
if (!now2.hasValue) {
|
|
1978
|
-
now2.value = hooks.now();
|
|
1979
|
-
now2.hasValue = true;
|
|
1980
|
-
}
|
|
1981
|
-
return now2.value;
|
|
1982
|
-
}
|
|
1983
|
-
function getDefaultDateParts(config, now2, forWeek) {
|
|
1984
|
-
var useWeekDefaults = forWeek || config._isDefaultDatePartsForWeek, nowValue = useWeekDefaults ? createLocal(now2) : new Date(now2);
|
|
1985
|
-
if (useWeekDefaults) {
|
|
1986
|
-
return [nowValue.year(), nowValue.month(), nowValue.date()];
|
|
1987
|
-
}
|
|
1778
|
+
function currentDateArray(config) {
|
|
1779
|
+
var nowValue = new Date(hooks.now());
|
|
1988
1780
|
if (config._useUTC) {
|
|
1989
1781
|
return [
|
|
1990
1782
|
nowValue.getUTCFullYear(),
|
|
@@ -1994,21 +1786,17 @@ function getDefaultDateParts(config, now2, forWeek) {
|
|
|
1994
1786
|
}
|
|
1995
1787
|
return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
|
|
1996
1788
|
}
|
|
1997
|
-
hooks._getDefaultDateParts = getDefaultDateParts;
|
|
1998
1789
|
function configFromArray(config) {
|
|
1999
|
-
var i, date, input = [],
|
|
1790
|
+
var i, date, input = [], currentDate, expectedWeekday, yearToUse;
|
|
2000
1791
|
if (config._d) {
|
|
2001
1792
|
return;
|
|
2002
1793
|
}
|
|
2003
|
-
|
|
2004
|
-
now2 = currentDateNow(config);
|
|
2005
|
-
currentDate = currentDateArray(config, now2);
|
|
2006
|
-
}
|
|
1794
|
+
currentDate = currentDateArray(config);
|
|
2007
1795
|
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
|
|
2008
|
-
dayOfYearFromWeekInfo(config
|
|
1796
|
+
dayOfYearFromWeekInfo(config);
|
|
2009
1797
|
}
|
|
2010
1798
|
if (config._dayOfYear != null) {
|
|
2011
|
-
yearToUse = config._a[YEAR]
|
|
1799
|
+
yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
|
|
2012
1800
|
if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
|
|
2013
1801
|
getParsingFlags(config)._overflowDayOfYear = true;
|
|
2014
1802
|
}
|
|
@@ -2016,7 +1804,6 @@ function configFromArray(config) {
|
|
|
2016
1804
|
config._a[MONTH] = date.getUTCMonth();
|
|
2017
1805
|
config._a[DATE] = date.getUTCDate();
|
|
2018
1806
|
}
|
|
2019
|
-
dateIsDefaulted = config._a[YEAR] == null || config._a[MONTH] == null || config._a[DATE] == null;
|
|
2020
1807
|
for (i = 0; i < 3 && config._a[i] == null; ++i) {
|
|
2021
1808
|
config._a[i] = input[i] = currentDate[i];
|
|
2022
1809
|
}
|
|
@@ -2038,11 +1825,11 @@ function configFromArray(config) {
|
|
|
2038
1825
|
if (config._nextDay) {
|
|
2039
1826
|
config._a[HOUR] = 24;
|
|
2040
1827
|
}
|
|
2041
|
-
if (config._w && typeof config._w.d !== "undefined" &&
|
|
1828
|
+
if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) {
|
|
2042
1829
|
getParsingFlags(config).weekdayMismatch = true;
|
|
2043
1830
|
}
|
|
2044
1831
|
}
|
|
2045
|
-
function dayOfYearFromWeekInfo(config
|
|
1832
|
+
function dayOfYearFromWeekInfo(config) {
|
|
2046
1833
|
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
|
|
2047
1834
|
w = config._w;
|
|
2048
1835
|
if (w.GG != null || w.W != null || w.E != null) {
|
|
@@ -2051,13 +1838,7 @@ function dayOfYearFromWeekInfo(config, currentDate) {
|
|
|
2051
1838
|
weekYear = defaults(
|
|
2052
1839
|
w.GG,
|
|
2053
1840
|
config._a[YEAR],
|
|
2054
|
-
|
|
2055
|
-
currentDate[YEAR],
|
|
2056
|
-
currentDate[MONTH],
|
|
2057
|
-
currentDate[DATE],
|
|
2058
|
-
1,
|
|
2059
|
-
4
|
|
2060
|
-
).year
|
|
1841
|
+
weekOfYear(createLocal(), 1, 4).year
|
|
2061
1842
|
);
|
|
2062
1843
|
week = defaults(w.W, 1);
|
|
2063
1844
|
weekday = defaults(w.E, 1);
|
|
@@ -2067,13 +1848,7 @@ function dayOfYearFromWeekInfo(config, currentDate) {
|
|
|
2067
1848
|
} else {
|
|
2068
1849
|
dow = config._locale._week.dow;
|
|
2069
1850
|
doy = config._locale._week.doy;
|
|
2070
|
-
curWeek =
|
|
2071
|
-
currentDate[YEAR],
|
|
2072
|
-
currentDate[MONTH],
|
|
2073
|
-
currentDate[DATE],
|
|
2074
|
-
dow,
|
|
2075
|
-
doy
|
|
2076
|
-
);
|
|
1851
|
+
curWeek = weekOfYear(createLocal(), dow, doy);
|
|
2077
1852
|
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
|
|
2078
1853
|
week = defaults(w.w, curWeek.week);
|
|
2079
1854
|
if (w.d != null) {
|
|
@@ -2184,7 +1959,7 @@ function meridiemFixWrap(locale2, hour, meridiem2) {
|
|
|
2184
1959
|
}
|
|
2185
1960
|
}
|
|
2186
1961
|
function configFromStringAndArray(config) {
|
|
2187
|
-
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false,
|
|
1962
|
+
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;
|
|
2188
1963
|
if (configfLen === 0) {
|
|
2189
1964
|
getParsingFlags(config).invalidFormat = true;
|
|
2190
1965
|
config._d = /* @__PURE__ */ new Date(NaN);
|
|
@@ -2197,10 +1972,9 @@ function configFromStringAndArray(config) {
|
|
|
2197
1972
|
if (config._useUTC != null) {
|
|
2198
1973
|
tempConfig._useUTC = config._useUTC;
|
|
2199
1974
|
}
|
|
2200
|
-
tempConfig._defaultDatePartsNow = defaultDatePartsNow;
|
|
2201
1975
|
tempConfig._f = config._f[i];
|
|
2202
1976
|
configFromStringAndFormat(tempConfig);
|
|
2203
|
-
if (isValid
|
|
1977
|
+
if (isValid(tempConfig)) {
|
|
2204
1978
|
validFormatFound = true;
|
|
2205
1979
|
}
|
|
2206
1980
|
currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
|
@@ -2248,7 +2022,7 @@ function prepareConfig(config) {
|
|
|
2248
2022
|
var input = config._i, format2 = config._f;
|
|
2249
2023
|
config._locale = config._locale || getLocale(config._l);
|
|
2250
2024
|
if (input === null || format2 === void 0 && input === "") {
|
|
2251
|
-
return createInvalid
|
|
2025
|
+
return createInvalid({ nullInput: true });
|
|
2252
2026
|
}
|
|
2253
2027
|
if (typeof input === "string") {
|
|
2254
2028
|
config._i = input = config._locale.preparse(input);
|
|
@@ -2264,7 +2038,7 @@ function prepareConfig(config) {
|
|
|
2264
2038
|
} else {
|
|
2265
2039
|
configFromInput(config);
|
|
2266
2040
|
}
|
|
2267
|
-
if (!isValid
|
|
2041
|
+
if (!isValid(config)) {
|
|
2268
2042
|
config._d = null;
|
|
2269
2043
|
}
|
|
2270
2044
|
return config;
|
|
@@ -2321,7 +2095,7 @@ var prototypeMin = deprecate(
|
|
|
2321
2095
|
if (this.isValid() && other.isValid()) {
|
|
2322
2096
|
return other < this ? this : other;
|
|
2323
2097
|
} else {
|
|
2324
|
-
return createInvalid
|
|
2098
|
+
return createInvalid();
|
|
2325
2099
|
}
|
|
2326
2100
|
}
|
|
2327
2101
|
), prototypeMax = deprecate(
|
|
@@ -2331,7 +2105,7 @@ var prototypeMin = deprecate(
|
|
|
2331
2105
|
if (this.isValid() && other.isValid()) {
|
|
2332
2106
|
return other > this ? this : other;
|
|
2333
2107
|
} else {
|
|
2334
|
-
return createInvalid
|
|
2108
|
+
return createInvalid();
|
|
2335
2109
|
}
|
|
2336
2110
|
}
|
|
2337
2111
|
);
|
|
@@ -2343,17 +2117,9 @@ function pickBy(fn, moments) {
|
|
|
2343
2117
|
if (!moments.length) {
|
|
2344
2118
|
return createLocal();
|
|
2345
2119
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
break;
|
|
2350
|
-
}
|
|
2351
|
-
}
|
|
2352
|
-
if (!res) {
|
|
2353
|
-
return createInvalid$1();
|
|
2354
|
-
}
|
|
2355
|
-
for (++i; i < moments.length; ++i) {
|
|
2356
|
-
if (isMoment(moments[i]) && (!moments[i].isValid() || moments[i][fn](res))) {
|
|
2120
|
+
res = moments[0];
|
|
2121
|
+
for (i = 1; i < moments.length; ++i) {
|
|
2122
|
+
if (!moments[i].isValid() || moments[i][fn](res)) {
|
|
2357
2123
|
res = moments[i];
|
|
2358
2124
|
}
|
|
2359
2125
|
}
|
|
@@ -2403,7 +2169,7 @@ function isDurationValid(m) {
|
|
|
2403
2169
|
function isValid$1() {
|
|
2404
2170
|
return this._isValid;
|
|
2405
2171
|
}
|
|
2406
|
-
function createInvalid() {
|
|
2172
|
+
function createInvalid$1() {
|
|
2407
2173
|
return createDuration(NaN);
|
|
2408
2174
|
}
|
|
2409
2175
|
function Duration(duration) {
|
|
@@ -2452,12 +2218,8 @@ offset("ZZ", "");
|
|
|
2452
2218
|
addRegexToken("Z", matchShortOffset);
|
|
2453
2219
|
addRegexToken("ZZ", matchShortOffset);
|
|
2454
2220
|
addParseToken(["Z", "ZZ"], function(input, array, config) {
|
|
2455
|
-
var offset2 = offsetFromString(matchShortOffset, input);
|
|
2456
2221
|
config._useUTC = true;
|
|
2457
|
-
config._tzm =
|
|
2458
|
-
if (offset2 === null) {
|
|
2459
|
-
getParsingFlags(config).invalidOffset = input;
|
|
2460
|
-
}
|
|
2222
|
+
config._tzm = offsetFromString(matchShortOffset, input);
|
|
2461
2223
|
});
|
|
2462
2224
|
var chunkOffset = /([\+\-]|\d\d)/gi;
|
|
2463
2225
|
function offsetFromString(matcher, string) {
|
|
@@ -2468,9 +2230,6 @@ function offsetFromString(matcher, string) {
|
|
|
2468
2230
|
chunk = matches[matches.length - 1] || [];
|
|
2469
2231
|
parts = (chunk + "").match(chunkOffset) || ["-", 0, 0];
|
|
2470
2232
|
minutes2 = +(parts[1] * 60) + toInt(parts[2]);
|
|
2471
|
-
if (toInt(parts[2]) > 59 || (parts[0] === "+" ? minutes2 > 14 * 60 : minutes2 > 12 * 60)) {
|
|
2472
|
-
return null;
|
|
2473
|
-
}
|
|
2474
2233
|
return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
|
|
2475
2234
|
}
|
|
2476
2235
|
function cloneWithOffset(input, model) {
|
|
@@ -2514,7 +2273,7 @@ function getSetOffset(input, keepLocalTime, keepMinutes) {
|
|
|
2514
2273
|
}
|
|
2515
2274
|
if (offset2 !== input) {
|
|
2516
2275
|
if (!keepLocalTime || this._changeInProgress) {
|
|
2517
|
-
addSubtract
|
|
2276
|
+
addSubtract(
|
|
2518
2277
|
this,
|
|
2519
2278
|
createDuration(input - offset2, "m"),
|
|
2520
2279
|
1,
|
|
@@ -2661,7 +2420,7 @@ function createDuration(input, key) {
|
|
|
2661
2420
|
return ret;
|
|
2662
2421
|
}
|
|
2663
2422
|
createDuration.fn = Duration.prototype;
|
|
2664
|
-
createDuration.invalid = createInvalid;
|
|
2423
|
+
createDuration.invalid = createInvalid$1;
|
|
2665
2424
|
function parseIso(inp, sign2) {
|
|
2666
2425
|
var res = inp && parseFloat(inp.replace(",", "."));
|
|
2667
2426
|
return (isNaN(res) ? 0 : res) * sign2;
|
|
@@ -2703,21 +2462,21 @@ function createAdder(direction, name) {
|
|
|
2703
2462
|
period = tmp;
|
|
2704
2463
|
}
|
|
2705
2464
|
dur = createDuration(val, period);
|
|
2706
|
-
addSubtract
|
|
2465
|
+
addSubtract(this, dur, direction);
|
|
2707
2466
|
return this;
|
|
2708
2467
|
};
|
|
2709
2468
|
}
|
|
2710
|
-
function addSubtract
|
|
2469
|
+
function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
2711
2470
|
var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months);
|
|
2712
2471
|
if (!mom.isValid()) {
|
|
2713
2472
|
return;
|
|
2714
2473
|
}
|
|
2715
2474
|
updateOffset = updateOffset == null ? true : updateOffset;
|
|
2716
2475
|
if (months2) {
|
|
2717
|
-
setMonth(mom, get
|
|
2476
|
+
setMonth(mom, get(mom, "Month") + months2 * isAdding);
|
|
2718
2477
|
}
|
|
2719
2478
|
if (days2) {
|
|
2720
|
-
set$1(mom, "Date", get
|
|
2479
|
+
set$1(mom, "Date", get(mom, "Date") + days2 * isAdding);
|
|
2721
2480
|
}
|
|
2722
2481
|
if (milliseconds2) {
|
|
2723
2482
|
mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding);
|
|
@@ -2726,7 +2485,7 @@ function addSubtract$1(mom, duration, isAdding, updateOffset) {
|
|
|
2726
2485
|
hooks.updateOffset(mom, days2 || months2);
|
|
2727
2486
|
}
|
|
2728
2487
|
}
|
|
2729
|
-
var add
|
|
2488
|
+
var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
|
2730
2489
|
function isString(input) {
|
|
2731
2490
|
return typeof input === "string" || input instanceof String;
|
|
2732
2491
|
}
|
|
@@ -2794,7 +2553,7 @@ function getCalendarFormat(myMoment, now2) {
|
|
|
2794
2553
|
var diff2 = myMoment.diff(now2, "days", true);
|
|
2795
2554
|
return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
|
2796
2555
|
}
|
|
2797
|
-
function calendar(time, formats) {
|
|
2556
|
+
function calendar$1(time, formats) {
|
|
2798
2557
|
if (arguments.length === 1) {
|
|
2799
2558
|
if (!arguments[0]) {
|
|
2800
2559
|
time = void 0;
|
|
@@ -2812,7 +2571,7 @@ function calendar(time, formats) {
|
|
|
2812
2571
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
|
2813
2572
|
);
|
|
2814
2573
|
}
|
|
2815
|
-
function clone
|
|
2574
|
+
function clone() {
|
|
2816
2575
|
return new Moment(this);
|
|
2817
2576
|
}
|
|
2818
2577
|
function isAfter(input, units) {
|
|
@@ -2926,7 +2685,7 @@ hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
2926
2685
|
function toString() {
|
|
2927
2686
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
2928
2687
|
}
|
|
2929
|
-
function toISOString
|
|
2688
|
+
function toISOString(keepOffset) {
|
|
2930
2689
|
if (!this.isValid()) {
|
|
2931
2690
|
return null;
|
|
2932
2691
|
}
|
|
@@ -3017,7 +2776,7 @@ function localeData() {
|
|
|
3017
2776
|
return this._locale;
|
|
3018
2777
|
}
|
|
3019
2778
|
var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
|
3020
|
-
function mod(dividend, divisor) {
|
|
2779
|
+
function mod$1(dividend, divisor) {
|
|
3021
2780
|
return (dividend % divisor + divisor) % divisor;
|
|
3022
2781
|
}
|
|
3023
2782
|
function localStartOfDate(y, m, d) {
|
|
@@ -3075,18 +2834,18 @@ function startOf(units) {
|
|
|
3075
2834
|
break;
|
|
3076
2835
|
case "hour":
|
|
3077
2836
|
time = this._d.valueOf();
|
|
3078
|
-
time -= mod(
|
|
2837
|
+
time -= mod$1(
|
|
3079
2838
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
3080
2839
|
MS_PER_HOUR
|
|
3081
2840
|
);
|
|
3082
2841
|
break;
|
|
3083
2842
|
case "minute":
|
|
3084
2843
|
time = this._d.valueOf();
|
|
3085
|
-
time -= mod(time, MS_PER_MINUTE);
|
|
2844
|
+
time -= mod$1(time, MS_PER_MINUTE);
|
|
3086
2845
|
break;
|
|
3087
2846
|
case "second":
|
|
3088
2847
|
time = this._d.valueOf();
|
|
3089
|
-
time -= mod(time, MS_PER_SECOND);
|
|
2848
|
+
time -= mod$1(time, MS_PER_SECOND);
|
|
3090
2849
|
break;
|
|
3091
2850
|
}
|
|
3092
2851
|
this._d.setTime(time);
|
|
@@ -3134,25 +2893,25 @@ function endOf(units) {
|
|
|
3134
2893
|
break;
|
|
3135
2894
|
case "hour":
|
|
3136
2895
|
time = this._d.valueOf();
|
|
3137
|
-
time += MS_PER_HOUR - mod(
|
|
2896
|
+
time += MS_PER_HOUR - mod$1(
|
|
3138
2897
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
3139
2898
|
MS_PER_HOUR
|
|
3140
2899
|
) - 1;
|
|
3141
2900
|
break;
|
|
3142
2901
|
case "minute":
|
|
3143
2902
|
time = this._d.valueOf();
|
|
3144
|
-
time += MS_PER_MINUTE - mod(time, MS_PER_MINUTE) - 1;
|
|
2903
|
+
time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
|
|
3145
2904
|
break;
|
|
3146
2905
|
case "second":
|
|
3147
2906
|
time = this._d.valueOf();
|
|
3148
|
-
time += MS_PER_SECOND - mod(time, MS_PER_SECOND) - 1;
|
|
2907
|
+
time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
|
|
3149
2908
|
break;
|
|
3150
2909
|
}
|
|
3151
2910
|
this._d.setTime(time);
|
|
3152
2911
|
hooks.updateOffset(this, true);
|
|
3153
2912
|
return this;
|
|
3154
2913
|
}
|
|
3155
|
-
function valueOf
|
|
2914
|
+
function valueOf() {
|
|
3156
2915
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
3157
2916
|
}
|
|
3158
2917
|
function unix() {
|
|
@@ -3188,8 +2947,8 @@ function toObject() {
|
|
|
3188
2947
|
function toJSON() {
|
|
3189
2948
|
return this.isValid() ? this.toISOString() : null;
|
|
3190
2949
|
}
|
|
3191
|
-
function isValid() {
|
|
3192
|
-
return isValid
|
|
2950
|
+
function isValid$2() {
|
|
2951
|
+
return isValid(this);
|
|
3193
2952
|
}
|
|
3194
2953
|
function parsingFlags() {
|
|
3195
2954
|
return extend({}, getParsingFlags(this));
|
|
@@ -3390,17 +3149,14 @@ function matchEraYearOrdinal(isStrict, locale2) {
|
|
|
3390
3149
|
return locale2._eraYearOrdinalRegex || matchUnsigned;
|
|
3391
3150
|
}
|
|
3392
3151
|
function computeErasParse() {
|
|
3393
|
-
var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l,
|
|
3152
|
+
var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras();
|
|
3394
3153
|
for (i = 0, l = eras.length; i < l; ++i) {
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
mixedPieces.push(erasName);
|
|
3402
|
-
mixedPieces.push(erasAbbr);
|
|
3403
|
-
mixedPieces.push(erasNarrow);
|
|
3154
|
+
namePieces.push(regexEscape(eras[i].name));
|
|
3155
|
+
abbrPieces.push(regexEscape(eras[i].abbr));
|
|
3156
|
+
narrowPieces.push(regexEscape(eras[i].narrow));
|
|
3157
|
+
mixedPieces.push(regexEscape(eras[i].name));
|
|
3158
|
+
mixedPieces.push(regexEscape(eras[i].abbr));
|
|
3159
|
+
mixedPieces.push(regexEscape(eras[i].narrow));
|
|
3404
3160
|
}
|
|
3405
3161
|
this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
3406
3162
|
this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i");
|
|
@@ -3423,6 +3179,10 @@ addWeekYearFormatToken("gggg", "weekYear");
|
|
|
3423
3179
|
addWeekYearFormatToken("ggggg", "weekYear");
|
|
3424
3180
|
addWeekYearFormatToken("GGGG", "isoWeekYear");
|
|
3425
3181
|
addWeekYearFormatToken("GGGGG", "isoWeekYear");
|
|
3182
|
+
addUnitAlias("weekYear", "gg");
|
|
3183
|
+
addUnitAlias("isoWeekYear", "GG");
|
|
3184
|
+
addUnitPriority("weekYear", 1);
|
|
3185
|
+
addUnitPriority("isoWeekYear", 1);
|
|
3426
3186
|
addRegexToken("G", matchSigned);
|
|
3427
3187
|
addRegexToken("g", matchSigned);
|
|
3428
3188
|
addRegexToken("GG", match1to2, match2);
|
|
@@ -3445,7 +3205,7 @@ function getSetWeekYear(input) {
|
|
|
3445
3205
|
this,
|
|
3446
3206
|
input,
|
|
3447
3207
|
this.week(),
|
|
3448
|
-
this.weekday()
|
|
3208
|
+
this.weekday(),
|
|
3449
3209
|
this.localeData()._week.dow,
|
|
3450
3210
|
this.localeData()._week.doy
|
|
3451
3211
|
);
|
|
@@ -3494,6 +3254,8 @@ function setWeekAll(weekYear, week, weekday, dow, doy) {
|
|
|
3494
3254
|
return this;
|
|
3495
3255
|
}
|
|
3496
3256
|
addFormatToken("Q", 0, "Qo", "quarter");
|
|
3257
|
+
addUnitAlias("quarter", "Q");
|
|
3258
|
+
addUnitPriority("quarter", 7);
|
|
3497
3259
|
addRegexToken("Q", match1);
|
|
3498
3260
|
addParseToken("Q", function(input, array) {
|
|
3499
3261
|
array[MONTH] = (toInt(input) - 1) * 3;
|
|
@@ -3502,7 +3264,9 @@ function getSetQuarter(input) {
|
|
|
3502
3264
|
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
|
3503
3265
|
}
|
|
3504
3266
|
addFormatToken("D", ["DD", 2], "Do", "date");
|
|
3505
|
-
|
|
3267
|
+
addUnitAlias("date", "D");
|
|
3268
|
+
addUnitPriority("date", 9);
|
|
3269
|
+
addRegexToken("D", match1to2);
|
|
3506
3270
|
addRegexToken("DD", match1to2, match2);
|
|
3507
3271
|
addRegexToken("Do", function(isStrict, locale2) {
|
|
3508
3272
|
return isStrict ? locale2._dayOfMonthOrdinalParse || locale2._ordinalParse : locale2._dayOfMonthOrdinalParseLenient;
|
|
@@ -3513,6 +3277,8 @@ addParseToken("Do", function(input, array) {
|
|
|
3513
3277
|
});
|
|
3514
3278
|
var getSetDayOfMonth = makeGetSet("Date", true);
|
|
3515
3279
|
addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3280
|
+
addUnitAlias("dayOfYear", "DDD");
|
|
3281
|
+
addUnitPriority("dayOfYear", 4);
|
|
3516
3282
|
addRegexToken("DDD", match1to3);
|
|
3517
3283
|
addRegexToken("DDDD", match3);
|
|
3518
3284
|
addParseToken(["DDD", "DDDD"], function(input, array, config) {
|
|
@@ -3525,12 +3291,16 @@ function getSetDayOfYear(input) {
|
|
|
3525
3291
|
return input == null ? dayOfYear : this.add(input - dayOfYear, "d");
|
|
3526
3292
|
}
|
|
3527
3293
|
addFormatToken("m", ["mm", 2], 0, "minute");
|
|
3528
|
-
|
|
3294
|
+
addUnitAlias("minute", "m");
|
|
3295
|
+
addUnitPriority("minute", 14);
|
|
3296
|
+
addRegexToken("m", match1to2);
|
|
3529
3297
|
addRegexToken("mm", match1to2, match2);
|
|
3530
3298
|
addParseToken(["m", "mm"], MINUTE);
|
|
3531
3299
|
var getSetMinute = makeGetSet("Minutes", false);
|
|
3532
3300
|
addFormatToken("s", ["ss", 2], 0, "second");
|
|
3533
|
-
|
|
3301
|
+
addUnitAlias("second", "s");
|
|
3302
|
+
addUnitPriority("second", 15);
|
|
3303
|
+
addRegexToken("s", match1to2);
|
|
3534
3304
|
addRegexToken("ss", match1to2, match2);
|
|
3535
3305
|
addParseToken(["s", "ss"], SECOND);
|
|
3536
3306
|
var getSetSecond = makeGetSet("Seconds", false);
|
|
@@ -3559,6 +3329,8 @@ addFormatToken(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
3559
3329
|
addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3560
3330
|
return this.millisecond() * 1e6;
|
|
3561
3331
|
});
|
|
3332
|
+
addUnitAlias("millisecond", "ms");
|
|
3333
|
+
addUnitPriority("millisecond", 16);
|
|
3562
3334
|
addRegexToken("S", match1to3, match1);
|
|
3563
3335
|
addRegexToken("SS", match1to3, match2);
|
|
3564
3336
|
addRegexToken("SSS", match1to3, match3);
|
|
@@ -3581,105 +3353,105 @@ function getZoneAbbr() {
|
|
|
3581
3353
|
function getZoneName() {
|
|
3582
3354
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3583
3355
|
}
|
|
3584
|
-
var proto
|
|
3585
|
-
proto
|
|
3586
|
-
proto
|
|
3587
|
-
proto
|
|
3588
|
-
proto
|
|
3589
|
-
proto
|
|
3590
|
-
proto
|
|
3591
|
-
proto
|
|
3592
|
-
proto
|
|
3593
|
-
proto
|
|
3594
|
-
proto
|
|
3595
|
-
proto
|
|
3596
|
-
proto
|
|
3597
|
-
proto
|
|
3598
|
-
proto
|
|
3599
|
-
proto
|
|
3600
|
-
proto
|
|
3601
|
-
proto
|
|
3602
|
-
proto
|
|
3603
|
-
proto
|
|
3604
|
-
proto
|
|
3605
|
-
proto
|
|
3606
|
-
proto
|
|
3607
|
-
proto
|
|
3608
|
-
proto
|
|
3609
|
-
proto
|
|
3610
|
-
proto
|
|
3611
|
-
proto
|
|
3612
|
-
proto
|
|
3613
|
-
proto
|
|
3614
|
-
proto
|
|
3615
|
-
proto
|
|
3616
|
-
proto
|
|
3617
|
-
proto
|
|
3356
|
+
var proto = Moment.prototype;
|
|
3357
|
+
proto.add = add;
|
|
3358
|
+
proto.calendar = calendar$1;
|
|
3359
|
+
proto.clone = clone;
|
|
3360
|
+
proto.diff = diff;
|
|
3361
|
+
proto.endOf = endOf;
|
|
3362
|
+
proto.format = format;
|
|
3363
|
+
proto.from = from;
|
|
3364
|
+
proto.fromNow = fromNow;
|
|
3365
|
+
proto.to = to;
|
|
3366
|
+
proto.toNow = toNow;
|
|
3367
|
+
proto.get = stringGet;
|
|
3368
|
+
proto.invalidAt = invalidAt;
|
|
3369
|
+
proto.isAfter = isAfter;
|
|
3370
|
+
proto.isBefore = isBefore;
|
|
3371
|
+
proto.isBetween = isBetween;
|
|
3372
|
+
proto.isSame = isSame;
|
|
3373
|
+
proto.isSameOrAfter = isSameOrAfter;
|
|
3374
|
+
proto.isSameOrBefore = isSameOrBefore;
|
|
3375
|
+
proto.isValid = isValid$2;
|
|
3376
|
+
proto.lang = lang;
|
|
3377
|
+
proto.locale = locale;
|
|
3378
|
+
proto.localeData = localeData;
|
|
3379
|
+
proto.max = prototypeMax;
|
|
3380
|
+
proto.min = prototypeMin;
|
|
3381
|
+
proto.parsingFlags = parsingFlags;
|
|
3382
|
+
proto.set = stringSet;
|
|
3383
|
+
proto.startOf = startOf;
|
|
3384
|
+
proto.subtract = subtract;
|
|
3385
|
+
proto.toArray = toArray;
|
|
3386
|
+
proto.toObject = toObject;
|
|
3387
|
+
proto.toDate = toDate;
|
|
3388
|
+
proto.toISOString = toISOString;
|
|
3389
|
+
proto.inspect = inspect;
|
|
3618
3390
|
if (typeof Symbol !== "undefined" && Symbol.for != null) {
|
|
3619
|
-
proto
|
|
3391
|
+
proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3620
3392
|
return "Moment<" + this.format() + ">";
|
|
3621
3393
|
};
|
|
3622
3394
|
}
|
|
3623
|
-
proto
|
|
3624
|
-
proto
|
|
3625
|
-
proto
|
|
3626
|
-
proto
|
|
3627
|
-
proto
|
|
3628
|
-
proto
|
|
3629
|
-
proto
|
|
3630
|
-
proto
|
|
3631
|
-
proto
|
|
3632
|
-
proto
|
|
3633
|
-
proto
|
|
3634
|
-
proto
|
|
3635
|
-
proto
|
|
3636
|
-
proto
|
|
3637
|
-
proto
|
|
3638
|
-
proto
|
|
3639
|
-
proto
|
|
3640
|
-
proto
|
|
3641
|
-
proto
|
|
3642
|
-
proto
|
|
3643
|
-
proto
|
|
3644
|
-
proto
|
|
3645
|
-
proto
|
|
3646
|
-
proto
|
|
3647
|
-
proto
|
|
3648
|
-
proto
|
|
3649
|
-
proto
|
|
3650
|
-
proto
|
|
3651
|
-
proto
|
|
3652
|
-
proto
|
|
3653
|
-
proto
|
|
3654
|
-
proto
|
|
3655
|
-
proto
|
|
3656
|
-
proto
|
|
3657
|
-
proto
|
|
3658
|
-
proto
|
|
3659
|
-
proto
|
|
3660
|
-
proto
|
|
3661
|
-
proto
|
|
3662
|
-
proto
|
|
3663
|
-
proto
|
|
3664
|
-
proto
|
|
3665
|
-
proto
|
|
3666
|
-
proto
|
|
3395
|
+
proto.toJSON = toJSON;
|
|
3396
|
+
proto.toString = toString;
|
|
3397
|
+
proto.unix = unix;
|
|
3398
|
+
proto.valueOf = valueOf;
|
|
3399
|
+
proto.creationData = creationData;
|
|
3400
|
+
proto.eraName = getEraName;
|
|
3401
|
+
proto.eraNarrow = getEraNarrow;
|
|
3402
|
+
proto.eraAbbr = getEraAbbr;
|
|
3403
|
+
proto.eraYear = getEraYear;
|
|
3404
|
+
proto.year = getSetYear;
|
|
3405
|
+
proto.isLeapYear = getIsLeapYear;
|
|
3406
|
+
proto.weekYear = getSetWeekYear;
|
|
3407
|
+
proto.isoWeekYear = getSetISOWeekYear;
|
|
3408
|
+
proto.quarter = proto.quarters = getSetQuarter;
|
|
3409
|
+
proto.month = getSetMonth;
|
|
3410
|
+
proto.daysInMonth = getDaysInMonth;
|
|
3411
|
+
proto.week = proto.weeks = getSetWeek;
|
|
3412
|
+
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
|
3413
|
+
proto.weeksInYear = getWeeksInYear;
|
|
3414
|
+
proto.weeksInWeekYear = getWeeksInWeekYear;
|
|
3415
|
+
proto.isoWeeksInYear = getISOWeeksInYear;
|
|
3416
|
+
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3417
|
+
proto.date = getSetDayOfMonth;
|
|
3418
|
+
proto.day = proto.days = getSetDayOfWeek;
|
|
3419
|
+
proto.weekday = getSetLocaleDayOfWeek;
|
|
3420
|
+
proto.isoWeekday = getSetISODayOfWeek;
|
|
3421
|
+
proto.dayOfYear = getSetDayOfYear;
|
|
3422
|
+
proto.hour = proto.hours = getSetHour;
|
|
3423
|
+
proto.minute = proto.minutes = getSetMinute;
|
|
3424
|
+
proto.second = proto.seconds = getSetSecond;
|
|
3425
|
+
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
|
3426
|
+
proto.utcOffset = getSetOffset;
|
|
3427
|
+
proto.utc = setOffsetToUTC;
|
|
3428
|
+
proto.local = setOffsetToLocal;
|
|
3429
|
+
proto.parseZone = setOffsetToParsedOffset;
|
|
3430
|
+
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3431
|
+
proto.isDST = isDaylightSavingTime;
|
|
3432
|
+
proto.isLocal = isLocal;
|
|
3433
|
+
proto.isUtcOffset = isUtcOffset;
|
|
3434
|
+
proto.isUtc = isUtc;
|
|
3435
|
+
proto.isUTC = isUtc;
|
|
3436
|
+
proto.zoneAbbr = getZoneAbbr;
|
|
3437
|
+
proto.zoneName = getZoneName;
|
|
3438
|
+
proto.dates = deprecate(
|
|
3667
3439
|
"dates accessor is deprecated. Use date instead.",
|
|
3668
3440
|
getSetDayOfMonth
|
|
3669
3441
|
);
|
|
3670
|
-
proto
|
|
3442
|
+
proto.months = deprecate(
|
|
3671
3443
|
"months accessor is deprecated. Use month instead",
|
|
3672
3444
|
getSetMonth
|
|
3673
3445
|
);
|
|
3674
|
-
proto
|
|
3446
|
+
proto.years = deprecate(
|
|
3675
3447
|
"years accessor is deprecated. Use year instead",
|
|
3676
3448
|
getSetYear
|
|
3677
3449
|
);
|
|
3678
|
-
proto
|
|
3450
|
+
proto.zone = deprecate(
|
|
3679
3451
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3680
3452
|
getSetZone
|
|
3681
3453
|
);
|
|
3682
|
-
proto
|
|
3454
|
+
proto.isDSTShifted = deprecate(
|
|
3683
3455
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3684
3456
|
isDaylightSavingTimeShifted
|
|
3685
3457
|
);
|
|
@@ -3693,13 +3465,13 @@ function preParsePostFormat(string) {
|
|
|
3693
3465
|
return string;
|
|
3694
3466
|
}
|
|
3695
3467
|
var proto$1 = Locale.prototype;
|
|
3696
|
-
proto$1.calendar = calendar
|
|
3468
|
+
proto$1.calendar = calendar;
|
|
3697
3469
|
proto$1.longDateFormat = longDateFormat;
|
|
3698
3470
|
proto$1.invalidDate = invalidDate;
|
|
3699
3471
|
proto$1.ordinal = ordinal;
|
|
3700
3472
|
proto$1.preparse = preParsePostFormat;
|
|
3701
3473
|
proto$1.postformat = preParsePostFormat;
|
|
3702
|
-
proto$1.relativeTime = relativeTime
|
|
3474
|
+
proto$1.relativeTime = relativeTime;
|
|
3703
3475
|
proto$1.pastFuture = pastFuture;
|
|
3704
3476
|
proto$1.set = set;
|
|
3705
3477
|
proto$1.eras = localeEras;
|
|
@@ -3819,7 +3591,7 @@ hooks.langData = deprecate(
|
|
|
3819
3591
|
getLocale
|
|
3820
3592
|
);
|
|
3821
3593
|
var mathAbs = Math.abs;
|
|
3822
|
-
function abs
|
|
3594
|
+
function abs() {
|
|
3823
3595
|
var data = this._data;
|
|
3824
3596
|
this._milliseconds = mathAbs(this._milliseconds);
|
|
3825
3597
|
this._days = mathAbs(this._days);
|
|
@@ -3832,18 +3604,18 @@ function abs$1() {
|
|
|
3832
3604
|
data.years = mathAbs(data.years);
|
|
3833
3605
|
return this;
|
|
3834
3606
|
}
|
|
3835
|
-
function addSubtract(duration, input, value, direction) {
|
|
3607
|
+
function addSubtract$1(duration, input, value, direction) {
|
|
3836
3608
|
var other = createDuration(input, value);
|
|
3837
3609
|
duration._milliseconds += direction * other._milliseconds;
|
|
3838
3610
|
duration._days += direction * other._days;
|
|
3839
3611
|
duration._months += direction * other._months;
|
|
3840
3612
|
return duration._bubble();
|
|
3841
3613
|
}
|
|
3842
|
-
function add(input, value) {
|
|
3843
|
-
return addSubtract(this, input, value, 1);
|
|
3614
|
+
function add$1(input, value) {
|
|
3615
|
+
return addSubtract$1(this, input, value, 1);
|
|
3844
3616
|
}
|
|
3845
|
-
function subtract(input, value) {
|
|
3846
|
-
return addSubtract(this, input, value, -1);
|
|
3617
|
+
function subtract$1(input, value) {
|
|
3618
|
+
return addSubtract$1(this, input, value, -1);
|
|
3847
3619
|
}
|
|
3848
3620
|
function absCeil(number) {
|
|
3849
3621
|
if (number < 0) {
|
|
@@ -3920,16 +3692,22 @@ function as(units) {
|
|
|
3920
3692
|
}
|
|
3921
3693
|
}
|
|
3922
3694
|
}
|
|
3695
|
+
function valueOf$1() {
|
|
3696
|
+
if (!this.isValid()) {
|
|
3697
|
+
return NaN;
|
|
3698
|
+
}
|
|
3699
|
+
return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
|
|
3700
|
+
}
|
|
3923
3701
|
function makeAs(alias) {
|
|
3924
3702
|
return function() {
|
|
3925
3703
|
return this.as(alias);
|
|
3926
3704
|
};
|
|
3927
3705
|
}
|
|
3928
|
-
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y")
|
|
3929
|
-
function clone() {
|
|
3706
|
+
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y");
|
|
3707
|
+
function clone$1() {
|
|
3930
3708
|
return createDuration(this);
|
|
3931
3709
|
}
|
|
3932
|
-
function get(units) {
|
|
3710
|
+
function get$2(units) {
|
|
3933
3711
|
units = normalizeUnits(units);
|
|
3934
3712
|
return this.isValid() ? this[units + "s"]() : NaN;
|
|
3935
3713
|
}
|
|
@@ -3959,15 +3737,9 @@ var round = Math.round, thresholds = {
|
|
|
3959
3737
|
// months to year
|
|
3960
3738
|
};
|
|
3961
3739
|
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) {
|
|
3962
|
-
return
|
|
3963
|
-
locale2,
|
|
3964
|
-
number || 1,
|
|
3965
|
-
!!withoutSuffix,
|
|
3966
|
-
string,
|
|
3967
|
-
isFuture
|
|
3968
|
-
);
|
|
3740
|
+
return locale2.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
|
|
3969
3741
|
}
|
|
3970
|
-
function relativeTime(posNegDuration, withoutSuffix, thresholds2, locale2) {
|
|
3742
|
+
function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale2) {
|
|
3971
3743
|
var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2];
|
|
3972
3744
|
if (thresholds2.w != null) {
|
|
3973
3745
|
a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2];
|
|
@@ -4014,27 +3786,27 @@ function humanize(argWithSuffix, argThresholds) {
|
|
|
4014
3786
|
withSuffix = argWithSuffix;
|
|
4015
3787
|
}
|
|
4016
3788
|
if (typeof argThresholds === "object") {
|
|
4017
|
-
th =
|
|
3789
|
+
th = Object.assign({}, thresholds, argThresholds);
|
|
4018
3790
|
if (argThresholds.s != null && argThresholds.ss == null) {
|
|
4019
3791
|
th.ss = argThresholds.s - 1;
|
|
4020
3792
|
}
|
|
4021
3793
|
}
|
|
4022
3794
|
locale2 = this.localeData();
|
|
4023
|
-
output = relativeTime(this, !withSuffix, th, locale2);
|
|
3795
|
+
output = relativeTime$1(this, !withSuffix, th, locale2);
|
|
4024
3796
|
if (withSuffix) {
|
|
4025
|
-
output =
|
|
3797
|
+
output = locale2.pastFuture(+this, output);
|
|
4026
3798
|
}
|
|
4027
3799
|
return locale2.postformat(output);
|
|
4028
3800
|
}
|
|
4029
|
-
var abs = Math.abs;
|
|
3801
|
+
var abs$1 = Math.abs;
|
|
4030
3802
|
function sign(x) {
|
|
4031
3803
|
return (x > 0) - (x < 0) || +x;
|
|
4032
3804
|
}
|
|
4033
|
-
function toISOString() {
|
|
3805
|
+
function toISOString$1() {
|
|
4034
3806
|
if (!this.isValid()) {
|
|
4035
3807
|
return this.localeData().invalidDate();
|
|
4036
3808
|
}
|
|
4037
|
-
var seconds2 = abs(this._milliseconds) / 1e3, days2 = abs(this._days), months2 = abs(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
|
3809
|
+
var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months2 = abs$1(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
|
4038
3810
|
if (!total) {
|
|
4039
3811
|
return "P0D";
|
|
4040
3812
|
}
|
|
@@ -4051,44 +3823,44 @@ function toISOString() {
|
|
|
4051
3823
|
hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
|
|
4052
3824
|
return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : "");
|
|
4053
3825
|
}
|
|
4054
|
-
var proto = Duration.prototype;
|
|
4055
|
-
proto.isValid = isValid$1;
|
|
4056
|
-
proto.abs = abs
|
|
4057
|
-
proto.add = add;
|
|
4058
|
-
proto.subtract = subtract;
|
|
4059
|
-
proto.as = as;
|
|
4060
|
-
proto.asMilliseconds = asMilliseconds;
|
|
4061
|
-
proto.asSeconds = asSeconds;
|
|
4062
|
-
proto.asMinutes = asMinutes;
|
|
4063
|
-
proto.asHours = asHours;
|
|
4064
|
-
proto.asDays = asDays;
|
|
4065
|
-
proto.asWeeks = asWeeks;
|
|
4066
|
-
proto.asMonths = asMonths;
|
|
4067
|
-
proto.asQuarters = asQuarters;
|
|
4068
|
-
proto.asYears = asYears;
|
|
4069
|
-
proto.valueOf = valueOf;
|
|
4070
|
-
proto._bubble = bubble;
|
|
4071
|
-
proto.clone = clone;
|
|
4072
|
-
proto.get = get;
|
|
4073
|
-
proto.milliseconds = milliseconds;
|
|
4074
|
-
proto.seconds = seconds;
|
|
4075
|
-
proto.minutes = minutes;
|
|
4076
|
-
proto.hours = hours;
|
|
4077
|
-
proto.days = days;
|
|
4078
|
-
proto.weeks = weeks;
|
|
4079
|
-
proto.months = months;
|
|
4080
|
-
proto.years = years;
|
|
4081
|
-
proto.humanize = humanize;
|
|
4082
|
-
proto.toISOString = toISOString;
|
|
4083
|
-
proto.toString = toISOString;
|
|
4084
|
-
proto.toJSON = toISOString;
|
|
4085
|
-
proto.locale = locale;
|
|
4086
|
-
proto.localeData = localeData;
|
|
4087
|
-
proto.toIsoString = deprecate(
|
|
3826
|
+
var proto$2 = Duration.prototype;
|
|
3827
|
+
proto$2.isValid = isValid$1;
|
|
3828
|
+
proto$2.abs = abs;
|
|
3829
|
+
proto$2.add = add$1;
|
|
3830
|
+
proto$2.subtract = subtract$1;
|
|
3831
|
+
proto$2.as = as;
|
|
3832
|
+
proto$2.asMilliseconds = asMilliseconds;
|
|
3833
|
+
proto$2.asSeconds = asSeconds;
|
|
3834
|
+
proto$2.asMinutes = asMinutes;
|
|
3835
|
+
proto$2.asHours = asHours;
|
|
3836
|
+
proto$2.asDays = asDays;
|
|
3837
|
+
proto$2.asWeeks = asWeeks;
|
|
3838
|
+
proto$2.asMonths = asMonths;
|
|
3839
|
+
proto$2.asQuarters = asQuarters;
|
|
3840
|
+
proto$2.asYears = asYears;
|
|
3841
|
+
proto$2.valueOf = valueOf$1;
|
|
3842
|
+
proto$2._bubble = bubble;
|
|
3843
|
+
proto$2.clone = clone$1;
|
|
3844
|
+
proto$2.get = get$2;
|
|
3845
|
+
proto$2.milliseconds = milliseconds;
|
|
3846
|
+
proto$2.seconds = seconds;
|
|
3847
|
+
proto$2.minutes = minutes;
|
|
3848
|
+
proto$2.hours = hours;
|
|
3849
|
+
proto$2.days = days;
|
|
3850
|
+
proto$2.weeks = weeks;
|
|
3851
|
+
proto$2.months = months;
|
|
3852
|
+
proto$2.years = years;
|
|
3853
|
+
proto$2.humanize = humanize;
|
|
3854
|
+
proto$2.toISOString = toISOString$1;
|
|
3855
|
+
proto$2.toString = toISOString$1;
|
|
3856
|
+
proto$2.toJSON = toISOString$1;
|
|
3857
|
+
proto$2.locale = locale;
|
|
3858
|
+
proto$2.localeData = localeData;
|
|
3859
|
+
proto$2.toIsoString = deprecate(
|
|
4088
3860
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4089
|
-
toISOString
|
|
3861
|
+
toISOString$1
|
|
4090
3862
|
);
|
|
4091
|
-
proto.lang = lang;
|
|
3863
|
+
proto$2.lang = lang;
|
|
4092
3864
|
addFormatToken("X", 0, 0, "unix");
|
|
4093
3865
|
addFormatToken("x", 0, 0, "valueOf");
|
|
4094
3866
|
addRegexToken("x", matchSigned);
|
|
@@ -4100,9 +3872,9 @@ addParseToken("x", function(input, array, config) {
|
|
|
4100
3872
|
config._d = new Date(toInt(input));
|
|
4101
3873
|
});
|
|
4102
3874
|
//! moment.js
|
|
4103
|
-
hooks.version = "2.
|
|
3875
|
+
hooks.version = "2.29.4";
|
|
4104
3876
|
setHookCallback(createLocal);
|
|
4105
|
-
hooks.fn = proto
|
|
3877
|
+
hooks.fn = proto;
|
|
4106
3878
|
hooks.min = min;
|
|
4107
3879
|
hooks.max = max;
|
|
4108
3880
|
hooks.now = now;
|
|
@@ -4111,7 +3883,7 @@ hooks.unix = createUnix;
|
|
|
4111
3883
|
hooks.months = listMonths;
|
|
4112
3884
|
hooks.isDate = isDate;
|
|
4113
3885
|
hooks.locale = getSetGlobalLocale;
|
|
4114
|
-
hooks.invalid = createInvalid
|
|
3886
|
+
hooks.invalid = createInvalid;
|
|
4115
3887
|
hooks.duration = createDuration;
|
|
4116
3888
|
hooks.isMoment = isMoment;
|
|
4117
3889
|
hooks.weekdays = listWeekdays;
|
|
@@ -4128,7 +3900,7 @@ hooks.normalizeUnits = normalizeUnits;
|
|
|
4128
3900
|
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
|
4129
3901
|
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
|
4130
3902
|
hooks.calendarFormat = getCalendarFormat;
|
|
4131
|
-
hooks.prototype = proto
|
|
3903
|
+
hooks.prototype = proto;
|
|
4132
3904
|
hooks.HTML5_FMT = {
|
|
4133
3905
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
4134
3906
|
// <input type="datetime-local" />
|