@ovotech/element-native 3.8.1 → 4.0.0-canary-a872093-246
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/components/package.json +6 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -3
- package/dist/components/Accordion/Accordion.js +130 -97
- package/dist/components/Accordion/Group.js +21 -21
- package/dist/components/Accordion/Icon.js +60 -59
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Accordion/index.js +9 -19
- package/dist/components/Accordion/styles.d.ts +20 -2
- package/dist/components/Accordion/styles.js +59 -50
- package/dist/components/Accordion/types.d.ts +2 -2
- package/dist/components/Accordion/types.js +2 -1
- package/dist/components/ActionCard/ActionCard.d.ts +1 -1
- package/dist/components/ActionCard/ActionCard.js +104 -376
- package/dist/components/ActionCard/CloseIconShape.js +40 -14
- package/dist/components/ActionCard/IndicatorIconShape.js +40 -11
- package/dist/components/ActionCard/index.js +5 -185
- package/dist/components/ActionList/ActionList.d.ts +3 -4
- package/dist/components/ActionList/ActionList.js +56 -202
- package/dist/components/ActionList/index.js +6 -100
- package/dist/components/ActionList/styled.d.ts +523 -5
- package/dist/components/ActionList/styled.js +65 -152
- package/dist/components/Badge/Badge.d.ts +9 -3
- package/dist/components/Badge/Badge.js +96 -39
- package/dist/components/Badge/index.js +5 -8
- package/dist/components/CTAButton/CTAButton.d.ts +9 -8
- package/dist/components/CTAButton/CTAButton.js +118 -181
- package/dist/components/CTAButton/index.js +8 -100
- package/dist/components/CTALink/CTALink.d.ts +5 -5
- package/dist/components/CTALink/CTALink.js +22 -105
- package/dist/components/CTALink/index.js +7 -100
- package/dist/components/Card/Card.d.ts +7 -483
- package/dist/components/Card/Card.js +43 -17
- package/dist/components/Card/index.js +5 -7
- package/dist/components/Checkbox/Checkbox.js +78 -173
- package/dist/components/Checkbox/CheckboxField.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxField.js +43 -39
- package/dist/components/Checkbox/index.js +7 -105
- package/dist/components/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/components/CurrencyField/CurrencyField.js +32 -109
- package/dist/components/CurrencyField/index.js +5 -108
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -2
- package/dist/components/CurrencyInput/CurrencyInput.js +36 -118
- package/dist/components/CurrencyInput/index.d.ts +1 -1
- package/dist/components/CurrencyInput/index.js +5 -100
- package/dist/components/DataTable/DataTable.js +45 -62
- package/dist/components/DataTable/TableRow.js +35 -44
- package/dist/components/DataTable/index.js +20 -25
- package/dist/components/DataTable/styles.d.ts +78 -0
- package/dist/components/DataTable/styles.js +86 -119
- package/dist/components/DataTable/types.d.ts +4 -4
- package/dist/components/DataTable/types.js +2 -1
- package/dist/components/DateField/DateField.d.ts +3 -4
- package/dist/components/DateField/DateField.js +87 -229
- package/dist/components/DateField/index.js +5 -107
- package/dist/components/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionList.js +43 -25
- package/dist/components/DescriptionList/index.js +6 -13
- package/dist/components/DescriptionList/styled.d.ts +6 -0
- package/dist/components/DescriptionList/styled.js +85 -42
- package/dist/components/Disclosure/Disclosure.js +79 -153
- package/dist/components/Disclosure/index.js +16 -96
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +43 -12
- package/dist/components/Divider/index.js +5 -7
- package/dist/components/Em/Em.d.ts +6 -0
- package/dist/components/Em/Em.js +12 -8
- package/dist/components/Em/index.js +5 -6
- package/dist/components/EmailField/EmailField.d.ts +1 -1
- package/dist/components/EmailField/EmailField.js +32 -108
- package/dist/components/EmailField/index.js +5 -107
- package/dist/components/EmailInput/EmailInput.d.ts +1 -1
- package/dist/components/EmailInput/EmailInput.js +18 -106
- package/dist/components/EmailInput/index.js +5 -98
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +2 -2
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +50 -115
- package/dist/components/ErrorSummaryNotification/index.js +5 -104
- package/dist/components/ErrorText/ErrorText.d.ts +6 -0
- package/dist/components/ErrorText/ErrorText.js +42 -22
- package/dist/components/ErrorText/index.js +5 -11
- package/dist/components/Field/Field.d.ts +2 -2
- package/dist/components/Field/Field.js +58 -62
- package/dist/components/Field/index.js +16 -16
- package/dist/components/FilterSelect/FilterSelect.d.ts +2 -2
- package/dist/components/FilterSelect/FilterSelect.js +77 -201
- package/dist/components/FilterSelect/index.js +5 -102
- package/dist/components/FormGroup/FormGroup.d.ts +1 -1
- package/dist/components/FormGroup/FormGroup.js +42 -9
- package/dist/components/FormGroup/index.js +5 -8
- package/dist/components/Grid/Col.d.ts +7 -1
- package/dist/components/Grid/Col.js +58 -32
- package/dist/components/Grid/Row.d.ts +6 -0
- package/dist/components/Grid/Row.js +72 -34
- package/dist/components/Grid/index.js +7 -13
- package/dist/components/Heading1/Heading1.js +70 -36
- package/dist/components/Heading1/index.js +5 -10
- package/dist/components/Heading2/Heading2.js +70 -36
- package/dist/components/Heading2/index.js +5 -10
- package/dist/components/Heading3/Heading3.js +70 -36
- package/dist/components/Heading3/index.js +5 -10
- package/dist/components/Heading4/Heading4.js +70 -36
- package/dist/components/Heading4/index.js +5 -10
- package/dist/components/HintText/HintText.d.ts +6 -0
- package/dist/components/HintText/HintText.js +42 -22
- package/dist/components/HintText/index.js +5 -11
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.js +38 -103
- package/dist/components/Icon/index.js +5 -93
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +97 -198
- package/dist/components/Label/Label.js +50 -18
- package/dist/components/Label/index.js +5 -8
- package/dist/components/LabelText/LabelText.d.ts +6 -0
- package/dist/components/LabelText/LabelText.js +42 -20
- package/dist/components/LabelText/index.js +5 -11
- package/dist/components/Lead/Lead.js +52 -18
- package/dist/components/Lead/index.js +5 -8
- package/dist/components/LineThrough/LineThrough.d.ts +6 -0
- package/dist/components/LineThrough/LineThrough.js +12 -7
- package/dist/components/LineThrough/index.js +5 -6
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +32 -38
- package/dist/components/List/index.js +7 -16
- package/dist/components/List/styled.d.ts +25 -0
- package/dist/components/List/styled.js +52 -37
- package/dist/components/Margin/Margin.d.ts +8 -2
- package/dist/components/Margin/Margin.js +50 -68
- package/dist/components/Margin/index.js +5 -11
- package/dist/components/NavHeader/IconButton.d.ts +2 -2
- package/dist/components/NavHeader/IconButton.js +18 -119
- package/dist/components/NavHeader/NavHeader.d.ts +11 -3
- package/dist/components/NavHeader/NavHeader.js +65 -181
- package/dist/components/NavHeader/NavHeader.styles.d.ts +543 -7
- package/dist/components/NavHeader/NavHeader.styles.js +72 -81
- package/dist/components/NavHeader/index.d.ts +1 -1
- package/dist/components/NavHeader/index.js +5 -104
- package/dist/components/Notification/Notification.d.ts +14 -2
- package/dist/components/Notification/Notification.js +103 -190
- package/dist/components/Notification/index.js +9 -100
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.js +32 -108
- package/dist/components/NumberField/index.js +5 -107
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +18 -106
- package/dist/components/NumberInput/index.js +5 -98
- package/dist/components/P/P.js +54 -23
- package/dist/components/P/index.js +5 -10
- package/dist/components/PasswordField/PasswordField.d.ts +1 -1
- package/dist/components/PasswordField/PasswordField.js +32 -110
- package/dist/components/PasswordField/index.js +5 -109
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +33 -123
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +7 -1
- package/dist/components/PasswordInput/PasswordInput.styled.js +37 -18
- package/dist/components/PasswordInput/PasswordVisibilityToggle.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +26 -128
- package/dist/components/PasswordInput/index.js +5 -100
- package/dist/components/PhoneField/PhoneField.d.ts +1 -1
- package/dist/components/PhoneField/PhoneField.js +32 -108
- package/dist/components/PhoneField/index.js +5 -107
- package/dist/components/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +17 -106
- package/dist/components/PhoneInput/index.js +5 -98
- package/dist/components/ProductCarousel/NavigationDots.js +74 -57
- package/dist/components/ProductCarousel/ProductCarousel.js +126 -2174
- package/dist/components/ProductCarousel/anchor-point.js +51 -31
- package/dist/components/ProductCarousel/index.js +5 -101
- package/dist/components/Radio/Radio.js +67 -69
- package/dist/components/Radio/RadioField.d.ts +1 -1
- package/dist/components/Radio/RadioField.js +47 -46
- package/dist/components/Radio/index.js +7 -18
- package/dist/components/RadioCard/RadioCard.js +71 -68
- package/dist/components/RadioCard/index.js +5 -13
- package/dist/components/SelectField/Select.d.ts +8 -2
- package/dist/components/SelectField/Select.js +93 -852
- package/dist/components/SelectField/SelectField.d.ts +1 -1
- package/dist/components/SelectField/SelectField.js +32 -125
- package/dist/components/SelectField/index.js +5 -108
- package/dist/components/SkeletonAnimation/SkeletonAnimation.js +34 -47
- package/dist/components/SkeletonAnimation/index.js +5 -7
- package/dist/components/SkeletonCTA/SkeletonCTA.d.ts +1 -1
- package/dist/components/SkeletonCTA/SkeletonCTA.js +41 -17
- package/dist/components/SkeletonCTA/index.js +5 -12
- package/dist/components/SkeletonCircle/SkeletonCircle.d.ts +1 -1
- package/dist/components/SkeletonCircle/SkeletonCircle.js +44 -16
- package/dist/components/SkeletonCircle/index.js +5 -10
- package/dist/components/SkeletonHeading/SkeletonHeading.d.ts +1 -1
- package/dist/components/SkeletonHeading/SkeletonHeading.js +40 -29
- package/dist/components/SkeletonHeading/index.js +5 -12
- package/dist/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/dist/components/SkeletonText/SkeletonText.js +50 -33
- package/dist/components/SkeletonText/index.js +5 -12
- package/dist/components/Small/Small.d.ts +6 -0
- package/dist/components/Small/Small.js +38 -17
- package/dist/components/Small/index.js +5 -11
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +68 -61
- package/dist/components/Spinner/index.js +5 -9
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/Stack.js +48 -30
- package/dist/components/Stack/index.js +5 -11
- package/dist/components/Stretch/Stretch.d.ts +1 -1
- package/dist/components/Stretch/Stretch.js +55 -11
- package/dist/components/Stretch/index.js +16 -8
- package/dist/components/Strong/Strong.d.ts +6 -0
- package/dist/components/Strong/Strong.js +10 -9
- package/dist/components/Strong/index.js +5 -6
- package/dist/components/SubLabelText/SubLabelText.d.ts +6 -0
- package/dist/components/SubLabelText/SubLabelText.js +42 -20
- package/dist/components/SubLabelText/index.js +5 -11
- package/dist/components/Tabs/Tab.d.ts +1 -2
- package/dist/components/Tabs/Tab.js +76 -60
- package/dist/components/Tabs/TabList.d.ts +2 -2
- package/dist/components/Tabs/TabList.js +77 -37
- package/dist/components/Tabs/TabPanel.js +64 -15
- package/dist/components/Tabs/Tabs.d.ts +2 -3
- package/dist/components/Tabs/Tabs.js +97 -46
- package/dist/components/Tabs/index.js +11 -19
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/TextField.js +32 -108
- package/dist/components/TextField/index.js +5 -107
- package/dist/components/TextGroup/TextGroup.js +40 -23
- package/dist/components/TextGroup/index.js +5 -7
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.js +18 -97
- package/dist/components/TextInput/index.js +5 -98
- package/dist/components/TextLink/TextLink.js +74 -118
- package/dist/components/TextLink/index.js +5 -97
- package/dist/components/TextareaField/TextareaField.d.ts +1 -1
- package/dist/components/TextareaField/TextareaField.js +32 -108
- package/dist/components/TextareaField/index.js +5 -107
- package/dist/components/TextareaInput/TextareaInput.d.ts +2 -2
- package/dist/components/TextareaInput/TextareaInput.js +65 -114
- package/dist/components/TextareaInput/index.d.ts +1 -1
- package/dist/components/TextareaInput/index.js +5 -98
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +159 -730
- package/dist/components/Toast/index.js +6 -105
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +55 -73
- package/dist/components/Toggle/index.js +5 -14
- package/dist/components/Toggle/styles.d.ts +25 -1
- package/dist/components/Toggle/styles.js +28 -38
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +77 -296
- package/dist/esm/components/Accordion/Accordion.js +106 -0
- package/dist/esm/components/Accordion/Group.js +18 -0
- package/dist/esm/components/Accordion/Icon.js +35 -0
- package/dist/esm/components/Accordion/index.js +3 -0
- package/dist/esm/components/Accordion/styles.js +31 -0
- package/dist/esm/components/ActionCard/ActionCard.js +77 -0
- package/dist/esm/components/ActionCard/CloseIconShape.js +11 -0
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +11 -0
- package/dist/esm/components/ActionCard/index.js +1 -0
- package/dist/esm/components/ActionList/ActionList.js +54 -0
- package/dist/esm/components/ActionList/index.js +1 -0
- package/dist/esm/components/ActionList/styled.js +40 -0
- package/dist/esm/components/Badge/Badge.js +70 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/CTAButton/CTAButton.js +90 -0
- package/dist/esm/components/CTAButton/index.js +1 -0
- package/dist/esm/components/CTALink/CTALink.js +18 -0
- package/dist/esm/components/CTALink/index.js +1 -0
- package/dist/esm/components/Card/Card.js +37 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +74 -0
- package/dist/esm/components/Checkbox/CheckboxField.js +42 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CurrencyField/CurrencyField.js +30 -0
- package/dist/esm/components/CurrencyField/index.js +1 -0
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +34 -0
- package/dist/esm/components/CurrencyInput/index.js +1 -0
- package/dist/esm/components/DataTable/DataTable.js +43 -0
- package/dist/esm/components/DataTable/TableRow.js +33 -0
- package/dist/esm/components/DataTable/index.js +3 -0
- package/dist/esm/components/DataTable/styles.js +61 -0
- package/dist/esm/components/DataTable/types.js +1 -0
- package/dist/esm/components/DateField/DateField.js +63 -0
- package/dist/esm/components/DateField/index.js +1 -0
- package/dist/esm/components/DescriptionList/DescriptionList.js +40 -0
- package/dist/esm/components/DescriptionList/index.js +1 -0
- package/dist/esm/components/DescriptionList/styled.js +58 -0
- package/dist/esm/components/Disclosure/Disclosure.js +55 -0
- package/dist/esm/components/Disclosure/index.js +1 -0
- package/dist/esm/components/Divider/Divider.js +17 -0
- package/dist/esm/components/Divider/index.js +1 -0
- package/dist/esm/components/Em/Em.js +7 -0
- package/dist/esm/components/Em/index.js +1 -0
- package/dist/esm/components/EmailField/EmailField.js +30 -0
- package/dist/esm/components/EmailField/index.js +1 -0
- package/dist/esm/components/EmailInput/EmailInput.js +16 -0
- package/dist/esm/components/EmailInput/index.js +1 -0
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +49 -0
- package/dist/esm/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/esm/components/ErrorText/ErrorText.js +17 -0
- package/dist/esm/components/ErrorText/index.js +1 -0
- package/dist/esm/components/Field/Field.js +58 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/FilterSelect/FilterSelect.js +52 -0
- package/dist/esm/components/FilterSelect/index.js +1 -0
- package/dist/esm/components/FormGroup/FormGroup.js +37 -0
- package/dist/esm/components/FormGroup/index.js +1 -0
- package/dist/esm/components/Grid/Col.js +33 -0
- package/dist/esm/components/Grid/Row.js +47 -0
- package/dist/esm/components/Grid/index.js +2 -0
- package/dist/esm/components/Heading1/Heading1.js +46 -0
- package/dist/esm/components/Heading1/index.js +1 -0
- package/dist/esm/components/Heading2/Heading2.js +46 -0
- package/dist/esm/components/Heading2/index.js +1 -0
- package/dist/esm/components/Heading3/Heading3.js +46 -0
- package/dist/esm/components/Heading3/index.js +1 -0
- package/dist/esm/components/Heading4/Heading4.js +46 -0
- package/dist/esm/components/Heading4/index.js +1 -0
- package/dist/esm/components/HintText/HintText.js +17 -0
- package/dist/esm/components/HintText/index.js +1 -0
- package/dist/esm/components/Icon/Icon.js +36 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/Input.js +74 -0
- package/dist/esm/components/Label/Label.js +25 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/LabelText/LabelText.js +17 -0
- package/dist/esm/components/LabelText/index.js +1 -0
- package/dist/esm/components/Lead/Lead.js +27 -0
- package/dist/esm/components/Lead/index.js +1 -0
- package/dist/esm/components/LineThrough/LineThrough.js +7 -0
- package/dist/esm/components/LineThrough/index.js +1 -0
- package/dist/esm/components/List/List.js +29 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/List/styled.js +27 -0
- package/dist/esm/components/Margin/Margin.js +46 -0
- package/dist/esm/components/Margin/index.js +1 -0
- package/dist/esm/components/NavHeader/IconButton.js +16 -0
- package/dist/esm/components/NavHeader/NavHeader.js +42 -0
- package/dist/esm/components/NavHeader/NavHeader.styles.js +44 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +78 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/NumberField/NumberField.js +30 -0
- package/dist/esm/components/NumberField/index.js +1 -0
- package/dist/esm/components/NumberInput/NumberInput.js +16 -0
- package/dist/esm/components/NumberInput/index.js +1 -0
- package/dist/esm/components/P/P.js +29 -0
- package/dist/esm/components/P/index.js +1 -0
- package/dist/esm/components/PasswordField/PasswordField.js +30 -0
- package/dist/esm/components/PasswordField/index.js +1 -0
- package/dist/esm/components/PasswordInput/PasswordInput.js +32 -0
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +12 -0
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +23 -0
- package/dist/esm/components/PasswordInput/index.js +1 -0
- package/dist/esm/components/PhoneField/PhoneField.js +30 -0
- package/dist/esm/components/PhoneField/index.js +1 -0
- package/dist/esm/components/PhoneInput/PhoneInput.js +15 -0
- package/dist/esm/components/PhoneInput/index.js +1 -0
- package/dist/esm/components/ProductCarousel/NavigationDots.js +50 -0
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +98 -0
- package/dist/esm/components/ProductCarousel/anchor-point.js +49 -0
- package/dist/esm/components/ProductCarousel/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +62 -0
- package/dist/esm/components/Radio/RadioField.js +46 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/RadioCard/RadioCard.js +66 -0
- package/dist/esm/components/RadioCard/index.js +1 -0
- package/dist/esm/components/SelectField/Select.js +66 -0
- package/dist/esm/components/SelectField/SelectField.js +29 -0
- package/dist/esm/components/SelectField/index.js +1 -0
- package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +31 -0
- package/dist/esm/components/SkeletonAnimation/index.js +1 -0
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +35 -0
- package/dist/esm/components/SkeletonCTA/index.js +1 -0
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +38 -0
- package/dist/esm/components/SkeletonCircle/index.js +1 -0
- package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +34 -0
- package/dist/esm/components/SkeletonHeading/index.js +1 -0
- package/dist/esm/components/SkeletonText/SkeletonText.js +45 -0
- package/dist/esm/components/SkeletonText/index.js +1 -0
- package/dist/esm/components/Small/Small.js +13 -0
- package/dist/esm/components/Small/index.js +1 -0
- package/dist/esm/components/Spinner/Spinner.js +44 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Stack/Stack.js +43 -0
- package/dist/esm/components/Stack/index.js +1 -0
- package/dist/esm/components/Stretch/Stretch.js +29 -0
- package/dist/esm/components/Stretch/index.js +1 -0
- package/dist/esm/components/Strong/Strong.js +5 -0
- package/dist/esm/components/Strong/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +17 -0
- package/dist/esm/components/SubLabelText/index.js +1 -0
- package/dist/esm/components/Tabs/Tab.js +53 -0
- package/dist/esm/components/Tabs/TabList.js +51 -0
- package/dist/esm/components/Tabs/TabPanel.js +38 -0
- package/dist/esm/components/Tabs/Tabs.js +72 -0
- package/dist/esm/components/Tabs/index.js +4 -0
- package/dist/esm/components/TextField/TextField.js +30 -0
- package/dist/esm/components/TextField/index.js +1 -0
- package/dist/esm/components/TextGroup/TextGroup.js +39 -0
- package/dist/esm/components/TextGroup/index.js +1 -0
- package/dist/esm/components/TextInput/TextInput.js +16 -0
- package/dist/esm/components/TextInput/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +49 -0
- package/dist/esm/components/TextLink/index.js +1 -0
- package/dist/esm/components/TextareaField/TextareaField.js +30 -0
- package/dist/esm/components/TextareaField/index.js +1 -0
- package/dist/esm/components/TextareaInput/TextareaInput.js +41 -0
- package/dist/esm/components/TextareaInput/index.js +1 -0
- package/dist/esm/components/Toast/Toast.js +141 -0
- package/dist/esm/components/Toast/index.js +1 -0
- package/dist/esm/components/Toggle/Toggle.js +53 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +23 -0
- package/dist/esm/components/index.js +62 -0
- package/dist/esm/hooks/index.js +2 -0
- package/dist/esm/hooks/use-breakpoint.js +12 -0
- package/dist/esm/hooks/use-full-width.js +16 -0
- package/dist/esm/hooks/use-layout.js +16 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/providers/IconsProvider.js +115 -0
- package/dist/esm/providers/icons/Address.js +14 -0
- package/dist/esm/providers/icons/Advice.js +14 -0
- package/dist/esm/providers/icons/Archive.js +14 -0
- package/dist/esm/providers/icons/ArrowDown.js +14 -0
- package/dist/esm/providers/icons/ArrowLeft.js +14 -0
- package/dist/esm/providers/icons/ArrowRight.js +14 -0
- package/dist/esm/providers/icons/ArrowUp.js +14 -0
- package/dist/esm/providers/icons/Award.js +14 -0
- package/dist/esm/providers/icons/Battery.js +14 -0
- package/dist/esm/providers/icons/Cal.js +14 -0
- package/dist/esm/providers/icons/CalBook.js +14 -0
- package/dist/esm/providers/icons/CaretDown.js +14 -0
- package/dist/esm/providers/icons/CaretLeft.js +14 -0
- package/dist/esm/providers/icons/CaretRight.js +14 -0
- package/dist/esm/providers/icons/CaretUp.js +14 -0
- package/dist/esm/providers/icons/Chart.js +14 -0
- package/dist/esm/providers/icons/ChartFilled.js +14 -0
- package/dist/esm/providers/icons/Check.js +14 -0
- package/dist/esm/providers/icons/CheckCircle.js +14 -0
- package/dist/esm/providers/icons/ChevronDown.js +14 -0
- package/dist/esm/providers/icons/ChevronLeft.js +14 -0
- package/dist/esm/providers/icons/ChevronLeftSmall.js +14 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +14 -0
- package/dist/esm/providers/icons/ChevronRight.js +14 -0
- package/dist/esm/providers/icons/ChevronRightSmall.js +14 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +14 -0
- package/dist/esm/providers/icons/ChevronUp.js +14 -0
- package/dist/esm/providers/icons/Circle.js +14 -0
- package/dist/esm/providers/icons/CloseCircle.js +14 -0
- package/dist/esm/providers/icons/Cross.js +14 -0
- package/dist/esm/providers/icons/Doc.js +14 -0
- package/dist/esm/providers/icons/Dollar.js +14 -0
- package/dist/esm/providers/icons/Download.js +14 -0
- package/dist/esm/providers/icons/Eco.js +14 -0
- package/dist/esm/providers/icons/EcoHome.js +14 -0
- package/dist/esm/providers/icons/Edit.js +14 -0
- package/dist/esm/providers/icons/ElectricCar.js +14 -0
- package/dist/esm/providers/icons/ElectricHome.js +14 -0
- package/dist/esm/providers/icons/Electricity.js +14 -0
- package/dist/esm/providers/icons/EnergyAdvice.js +14 -0
- package/dist/esm/providers/icons/Equals.js +14 -0
- package/dist/esm/providers/icons/Euro.js +14 -0
- package/dist/esm/providers/icons/Gas.js +14 -0
- package/dist/esm/providers/icons/GlobeAddress.js +14 -0
- package/dist/esm/providers/icons/Help.js +14 -0
- package/dist/esm/providers/icons/HelpFilled.js +14 -0
- package/dist/esm/providers/icons/Hide.js +14 -0
- package/dist/esm/providers/icons/Home.js +14 -0
- package/dist/esm/providers/icons/HomeFilled.js +14 -0
- package/dist/esm/providers/icons/HydroPower.js +14 -0
- package/dist/esm/providers/icons/Info.js +14 -0
- package/dist/esm/providers/icons/Link.js +14 -0
- package/dist/esm/providers/icons/Logo.js +14 -0
- package/dist/esm/providers/icons/Mail.js +14 -0
- package/dist/esm/providers/icons/MailOpen.js +14 -0
- package/dist/esm/providers/icons/Menu.js +14 -0
- package/dist/esm/providers/icons/Message.js +14 -0
- package/dist/esm/providers/icons/MessageFilled.js +14 -0
- package/dist/esm/providers/icons/Minus.js +14 -0
- package/dist/esm/providers/icons/Mobile.js +14 -0
- package/dist/esm/providers/icons/NewWindow.js +14 -0
- package/dist/esm/providers/icons/PaymentCard.js +14 -0
- package/dist/esm/providers/icons/PaymentCardFilled.js +14 -0
- package/dist/esm/providers/icons/Phone.js +14 -0
- package/dist/esm/providers/icons/Plus.js +14 -0
- package/dist/esm/providers/icons/Pound.js +14 -0
- package/dist/esm/providers/icons/Pricing.js +14 -0
- package/dist/esm/providers/icons/Search.js +14 -0
- package/dist/esm/providers/icons/Security.js +14 -0
- package/dist/esm/providers/icons/Show.js +14 -0
- package/dist/esm/providers/icons/SmartHome.js +14 -0
- package/dist/esm/providers/icons/SmartMeter.js +14 -0
- package/dist/esm/providers/icons/Solar.js +14 -0
- package/dist/esm/providers/icons/Star.js +14 -0
- package/dist/esm/providers/icons/StarFilled.js +14 -0
- package/dist/esm/providers/icons/Sun.js +14 -0
- package/dist/esm/providers/icons/Torch.js +14 -0
- package/dist/esm/providers/icons/Trees.js +14 -0
- package/dist/esm/providers/icons/Tune.js +14 -0
- package/dist/esm/providers/icons/User.js +14 -0
- package/dist/esm/providers/icons/UserFilled.js +14 -0
- package/dist/esm/providers/icons/Wallet.js +14 -0
- package/dist/esm/providers/icons/WalletFilled.js +14 -0
- package/dist/esm/providers/icons/WarmHome.js +14 -0
- package/dist/esm/providers/icons/Warning.js +14 -0
- package/dist/esm/providers/icons/WebAddress.js +14 -0
- package/dist/esm/providers/icons/WindPower.js +14 -0
- package/dist/esm/providers/icons/index.js +87 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/types.js +1 -0
- package/dist/esm/styled.native.js +4 -0
- package/dist/esm/theme/index.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/utils.js +95 -0
- package/dist/hooks/index.js +17 -8
- package/dist/hooks/use-breakpoint.d.ts +2 -2
- package/dist/hooks/use-breakpoint.js +15 -15
- package/dist/hooks/use-full-width.d.ts +1 -1
- package/dist/hooks/use-full-width.js +19 -16
- package/dist/hooks/use-layout.js +19 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.js +18 -320
- package/dist/providers/IconsProvider.js +118 -189
- package/dist/providers/icons/Address.js +40 -13
- package/dist/providers/icons/Advice.js +40 -11
- package/dist/providers/icons/Archive.js +40 -13
- package/dist/providers/icons/ArrowDown.js +40 -11
- package/dist/providers/icons/ArrowLeft.js +40 -11
- package/dist/providers/icons/ArrowRight.js +40 -11
- package/dist/providers/icons/ArrowUp.js +40 -11
- package/dist/providers/icons/Award.js +40 -13
- package/dist/providers/icons/Battery.js +40 -13
- package/dist/providers/icons/Cal.js +40 -11
- package/dist/providers/icons/CalBook.js +40 -13
- package/dist/providers/icons/CaretDown.js +40 -5
- package/dist/providers/icons/CaretLeft.js +40 -5
- package/dist/providers/icons/CaretRight.js +40 -5
- package/dist/providers/icons/CaretUp.js +40 -5
- package/dist/providers/icons/Chart.js +40 -13
- package/dist/providers/icons/ChartFilled.js +40 -11
- package/dist/providers/icons/Check.js +40 -11
- package/dist/providers/icons/CheckCircle.js +40 -13
- package/dist/providers/icons/ChevronDown.js +40 -11
- package/dist/providers/icons/ChevronLeft.js +40 -11
- package/dist/providers/icons/ChevronLeftSmall.js +40 -11
- package/dist/providers/icons/ChevronLeftSmallFirst.js +40 -13
- package/dist/providers/icons/ChevronRight.js +40 -11
- package/dist/providers/icons/ChevronRightSmall.js +40 -11
- package/dist/providers/icons/ChevronRightSmallLast.js +40 -13
- package/dist/providers/icons/ChevronUp.js +40 -11
- package/dist/providers/icons/Circle.js +17 -5
- package/dist/providers/icons/CloseCircle.js +40 -13
- package/dist/providers/icons/Cross.js +40 -11
- package/dist/providers/icons/Doc.js +40 -11
- package/dist/providers/icons/Dollar.js +40 -13
- package/dist/providers/icons/Download.js +40 -13
- package/dist/providers/icons/Eco.js +40 -11
- package/dist/providers/icons/EcoHome.js +40 -13
- package/dist/providers/icons/Edit.js +40 -13
- package/dist/providers/icons/ElectricCar.js +40 -13
- package/dist/providers/icons/ElectricHome.js +40 -13
- package/dist/providers/icons/Electricity.js +40 -11
- package/dist/providers/icons/EnergyAdvice.js +40 -13
- package/dist/providers/icons/Equals.js +40 -13
- package/dist/providers/icons/Euro.js +40 -13
- package/dist/providers/icons/Gas.js +40 -11
- package/dist/providers/icons/GlobeAddress.js +40 -11
- package/dist/providers/icons/Help.js +40 -13
- package/dist/providers/icons/HelpFilled.d.ts +2 -0
- package/dist/providers/icons/HelpFilled.js +41 -0
- package/dist/providers/icons/Hide.js +40 -11
- package/dist/providers/icons/Home.js +40 -11
- package/dist/providers/icons/HomeFilled.js +40 -11
- package/dist/providers/icons/HydroPower.js +40 -13
- package/dist/providers/icons/Info.js +40 -13
- package/dist/providers/icons/Link.js +39 -40
- package/dist/providers/icons/Logo.js +17 -11
- package/dist/providers/icons/Mail.js +40 -11
- package/dist/providers/icons/MailOpen.js +40 -11
- package/dist/providers/icons/Menu.js +40 -13
- package/dist/providers/icons/Message.js +40 -11
- package/dist/providers/icons/MessageFilled.js +40 -11
- package/dist/providers/icons/Minus.js +40 -5
- package/dist/providers/icons/Mobile.js +40 -13
- package/dist/providers/icons/NewWindow.js +39 -22
- package/dist/providers/icons/PaymentCard.js +40 -13
- package/dist/providers/icons/PaymentCardFilled.d.ts +2 -0
- package/dist/providers/icons/PaymentCardFilled.js +41 -0
- package/dist/providers/icons/Phone.js +40 -11
- package/dist/providers/icons/Plus.js +40 -11
- package/dist/providers/icons/Pound.js +40 -13
- package/dist/providers/icons/Pricing.js +40 -11
- package/dist/providers/icons/Search.js +40 -11
- package/dist/providers/icons/Security.js +40 -13
- package/dist/providers/icons/Show.js +40 -13
- package/dist/providers/icons/SmartHome.js +40 -13
- package/dist/providers/icons/SmartMeter.js +40 -13
- package/dist/providers/icons/Solar.js +40 -11
- package/dist/providers/icons/Star.js +40 -11
- package/dist/providers/icons/StarFilled.d.ts +2 -0
- package/dist/providers/icons/StarFilled.js +41 -0
- package/dist/providers/icons/Sun.js +40 -13
- package/dist/providers/icons/Torch.js +39 -13
- package/dist/providers/icons/Trees.js +40 -13
- package/dist/providers/icons/Tune.js +40 -13
- package/dist/providers/icons/User.js +40 -13
- package/dist/providers/icons/UserFilled.js +40 -11
- package/dist/providers/icons/Wallet.js +40 -13
- package/dist/providers/icons/WalletFilled.js +40 -11
- package/dist/providers/icons/WarmHome.js +40 -13
- package/dist/providers/icons/Warning.js +40 -13
- package/dist/providers/icons/WebAddress.js +40 -11
- package/dist/providers/icons/WindPower.js +40 -11
- package/dist/providers/icons/index.d.ts +3 -0
- package/dist/providers/icons/index.js +102 -171
- package/dist/providers/index.js +17 -92
- package/dist/providers/types.d.ts +3 -3
- package/dist/providers/types.js +2 -1
- package/dist/styled.native.d.ts +36 -0
- package/dist/styled.native.js +32 -8
- package/dist/theme/index.js +15 -970
- package/dist/utils/index.js +16 -14
- package/dist/utils/utils.d.ts +2 -1
- package/dist/utils/utils.js +104 -57
- package/package.json +13 -21
- package/dist/components/components.spec.native.js +0 -199
- package/dist/index-zQHKJ0fC.js +0 -180
- package/dist/styled.native-KEscfVp7.js +0 -3872
- package/dist/test/utils.d.ts +0 -4
- package/dist/test/utils.js +0 -16127
- package/dist/theme-native--5aKgQLJ.js +0 -482
- package/dist/theme-web-MrdqV6Ln.js +0 -482
- package/dist/utils-HsZygzDh.js +0 -26
- /package/dist/{components/components.spec.native.d.ts → esm/components/Accordion/types.js} +0 -0
|
@@ -1,3872 +0,0 @@
|
|
|
1
|
-
import ge, { useContext as Pr, useMemo as kn, createElement as Fn, Component as Dn } from "react";
|
|
2
|
-
var Tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
-
function Nr(s) {
|
|
4
|
-
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
5
|
-
}
|
|
6
|
-
var Et = {}, hr = 40, dr = 41, Ye = 39, pr = 34, vr = 92, Ie = 47, mr = 44, wr = 58, We = 42, Mn = 117, Ln = 85, Vn = 43, Un = /^[a-f0-9?-]+$/i, Bn = function(s) {
|
|
7
|
-
for (var a = [], t = s, e, r, n, i, o, u, h, v, d = 0, m = t.charCodeAt(d), _ = t.length, E = [{ nodes: a }], M = 0, k, $ = "", N = "", C = ""; d < _; )
|
|
8
|
-
if (m <= 32) {
|
|
9
|
-
e = d;
|
|
10
|
-
do
|
|
11
|
-
e += 1, m = t.charCodeAt(e);
|
|
12
|
-
while (m <= 32);
|
|
13
|
-
i = t.slice(d, e), n = a[a.length - 1], m === dr && M ? C = i : n && n.type === "div" ? (n.after = i, n.sourceEndIndex += i.length) : m === mr || m === wr || m === Ie && t.charCodeAt(e + 1) !== We && (!k || k && k.type === "function" && k.value !== "calc") ? N = i : a.push({
|
|
14
|
-
type: "space",
|
|
15
|
-
sourceIndex: d,
|
|
16
|
-
sourceEndIndex: e,
|
|
17
|
-
value: i
|
|
18
|
-
}), d = e;
|
|
19
|
-
} else if (m === Ye || m === pr) {
|
|
20
|
-
e = d, r = m === Ye ? "'" : '"', i = {
|
|
21
|
-
type: "string",
|
|
22
|
-
sourceIndex: d,
|
|
23
|
-
quote: r
|
|
24
|
-
};
|
|
25
|
-
do
|
|
26
|
-
if (o = !1, e = t.indexOf(r, e + 1), ~e)
|
|
27
|
-
for (u = e; t.charCodeAt(u - 1) === vr; )
|
|
28
|
-
u -= 1, o = !o;
|
|
29
|
-
else
|
|
30
|
-
t += r, e = t.length - 1, i.unclosed = !0;
|
|
31
|
-
while (o);
|
|
32
|
-
i.value = t.slice(d + 1, e), i.sourceEndIndex = i.unclosed ? e : e + 1, a.push(i), d = e + 1, m = t.charCodeAt(d);
|
|
33
|
-
} else if (m === Ie && t.charCodeAt(d + 1) === We)
|
|
34
|
-
e = t.indexOf("*/", d), i = {
|
|
35
|
-
type: "comment",
|
|
36
|
-
sourceIndex: d,
|
|
37
|
-
sourceEndIndex: e + 2
|
|
38
|
-
}, e === -1 && (i.unclosed = !0, e = t.length, i.sourceEndIndex = e), i.value = t.slice(d + 2, e), a.push(i), d = e + 2, m = t.charCodeAt(d);
|
|
39
|
-
else if ((m === Ie || m === We) && k && k.type === "function" && k.value === "calc")
|
|
40
|
-
i = t[d], a.push({
|
|
41
|
-
type: "word",
|
|
42
|
-
sourceIndex: d - N.length,
|
|
43
|
-
sourceEndIndex: d + i.length,
|
|
44
|
-
value: i
|
|
45
|
-
}), d += 1, m = t.charCodeAt(d);
|
|
46
|
-
else if (m === Ie || m === mr || m === wr)
|
|
47
|
-
i = t[d], a.push({
|
|
48
|
-
type: "div",
|
|
49
|
-
sourceIndex: d - N.length,
|
|
50
|
-
sourceEndIndex: d + i.length,
|
|
51
|
-
value: i,
|
|
52
|
-
before: N,
|
|
53
|
-
after: ""
|
|
54
|
-
}), N = "", d += 1, m = t.charCodeAt(d);
|
|
55
|
-
else if (hr === m) {
|
|
56
|
-
e = d;
|
|
57
|
-
do
|
|
58
|
-
e += 1, m = t.charCodeAt(e);
|
|
59
|
-
while (m <= 32);
|
|
60
|
-
if (v = d, i = {
|
|
61
|
-
type: "function",
|
|
62
|
-
sourceIndex: d - $.length,
|
|
63
|
-
value: $,
|
|
64
|
-
before: t.slice(v + 1, e)
|
|
65
|
-
}, d = e, $ === "url" && m !== Ye && m !== pr) {
|
|
66
|
-
e -= 1;
|
|
67
|
-
do
|
|
68
|
-
if (o = !1, e = t.indexOf(")", e + 1), ~e)
|
|
69
|
-
for (u = e; t.charCodeAt(u - 1) === vr; )
|
|
70
|
-
u -= 1, o = !o;
|
|
71
|
-
else
|
|
72
|
-
t += ")", e = t.length - 1, i.unclosed = !0;
|
|
73
|
-
while (o);
|
|
74
|
-
h = e;
|
|
75
|
-
do
|
|
76
|
-
h -= 1, m = t.charCodeAt(h);
|
|
77
|
-
while (m <= 32);
|
|
78
|
-
v < h ? (d !== h + 1 ? i.nodes = [
|
|
79
|
-
{
|
|
80
|
-
type: "word",
|
|
81
|
-
sourceIndex: d,
|
|
82
|
-
sourceEndIndex: h + 1,
|
|
83
|
-
value: t.slice(d, h + 1)
|
|
84
|
-
}
|
|
85
|
-
] : i.nodes = [], i.unclosed && h + 1 !== e ? (i.after = "", i.nodes.push({
|
|
86
|
-
type: "space",
|
|
87
|
-
sourceIndex: h + 1,
|
|
88
|
-
sourceEndIndex: e,
|
|
89
|
-
value: t.slice(h + 1, e)
|
|
90
|
-
})) : (i.after = t.slice(h + 1, e), i.sourceEndIndex = e)) : (i.after = "", i.nodes = []), d = e + 1, i.sourceEndIndex = i.unclosed ? e : d, m = t.charCodeAt(d), a.push(i);
|
|
91
|
-
} else
|
|
92
|
-
M += 1, i.after = "", i.sourceEndIndex = d + 1, a.push(i), E.push(i), a = i.nodes = [], k = i;
|
|
93
|
-
$ = "";
|
|
94
|
-
} else if (dr === m && M)
|
|
95
|
-
d += 1, m = t.charCodeAt(d), k.after = C, k.sourceEndIndex += C.length, C = "", M -= 1, E[E.length - 1].sourceEndIndex = d, E.pop(), k = E[M], a = k.nodes;
|
|
96
|
-
else {
|
|
97
|
-
e = d;
|
|
98
|
-
do
|
|
99
|
-
m === vr && (e += 1), e += 1, m = t.charCodeAt(e);
|
|
100
|
-
while (e < _ && !(m <= 32 || m === Ye || m === pr || m === mr || m === wr || m === Ie || m === hr || m === We && k && k.type === "function" && k.value === "calc" || m === Ie && k.type === "function" && k.value === "calc" || m === dr && M));
|
|
101
|
-
i = t.slice(d, e), hr === m ? $ = i : (Mn === i.charCodeAt(0) || Ln === i.charCodeAt(0)) && Vn === i.charCodeAt(1) && Un.test(i.slice(2)) ? a.push({
|
|
102
|
-
type: "unicode-range",
|
|
103
|
-
sourceIndex: d,
|
|
104
|
-
sourceEndIndex: e,
|
|
105
|
-
value: i
|
|
106
|
-
}) : a.push({
|
|
107
|
-
type: "word",
|
|
108
|
-
sourceIndex: d,
|
|
109
|
-
sourceEndIndex: e,
|
|
110
|
-
value: i
|
|
111
|
-
}), d = e;
|
|
112
|
-
}
|
|
113
|
-
for (d = E.length - 1; d; d -= 1)
|
|
114
|
-
E[d].unclosed = !0, E[d].sourceEndIndex = t.length;
|
|
115
|
-
return E[0].nodes;
|
|
116
|
-
}, zn = function s(a, t, e) {
|
|
117
|
-
var r, n, i, o;
|
|
118
|
-
for (r = 0, n = a.length; r < n; r += 1)
|
|
119
|
-
i = a[r], e || (o = t(i, r, a)), o !== !1 && i.type === "function" && Array.isArray(i.nodes) && s(i.nodes, t, e), e && t(i, r, a);
|
|
120
|
-
};
|
|
121
|
-
function et(s, a) {
|
|
122
|
-
var t = s.type, e = s.value, r, n;
|
|
123
|
-
return a && (n = a(s)) !== void 0 ? n : t === "word" || t === "space" ? e : t === "string" ? (r = s.quote || "", r + e + (s.unclosed ? "" : r)) : t === "comment" ? "/*" + e + (s.unclosed ? "" : "*/") : t === "div" ? (s.before || "") + e + (s.after || "") : Array.isArray(s.nodes) ? (r = St(s.nodes, a), t !== "function" ? r : e + "(" + (s.before || "") + r + (s.after || "") + (s.unclosed ? "" : ")")) : e;
|
|
124
|
-
}
|
|
125
|
-
function St(s, a) {
|
|
126
|
-
var t, e;
|
|
127
|
-
if (Array.isArray(s)) {
|
|
128
|
-
for (t = "", e = s.length - 1; ~e; e -= 1)
|
|
129
|
-
t = et(s[e], a) + t;
|
|
130
|
-
return t;
|
|
131
|
-
}
|
|
132
|
-
return et(s, a);
|
|
133
|
-
}
|
|
134
|
-
var jn = St, gr, rt;
|
|
135
|
-
function Yn() {
|
|
136
|
-
if (rt)
|
|
137
|
-
return gr;
|
|
138
|
-
rt = 1;
|
|
139
|
-
var s = 45, a = 43, t = 46, e = 101, r = 69;
|
|
140
|
-
function n(i) {
|
|
141
|
-
var o = i.charCodeAt(0), u;
|
|
142
|
-
if (o === a || o === s) {
|
|
143
|
-
if (u = i.charCodeAt(1), u >= 48 && u <= 57)
|
|
144
|
-
return !0;
|
|
145
|
-
var h = i.charCodeAt(2);
|
|
146
|
-
return u === t && h >= 48 && h <= 57;
|
|
147
|
-
}
|
|
148
|
-
return o === t ? (u = i.charCodeAt(1), u >= 48 && u <= 57) : o >= 48 && o <= 57;
|
|
149
|
-
}
|
|
150
|
-
return gr = function(i) {
|
|
151
|
-
var o = 0, u = i.length, h, v, d;
|
|
152
|
-
if (u === 0 || !n(i))
|
|
153
|
-
return !1;
|
|
154
|
-
for (h = i.charCodeAt(o), (h === a || h === s) && o++; o < u && (h = i.charCodeAt(o), !(h < 48 || h > 57)); )
|
|
155
|
-
o += 1;
|
|
156
|
-
if (h = i.charCodeAt(o), v = i.charCodeAt(o + 1), h === t && v >= 48 && v <= 57)
|
|
157
|
-
for (o += 2; o < u && (h = i.charCodeAt(o), !(h < 48 || h > 57)); )
|
|
158
|
-
o += 1;
|
|
159
|
-
if (h = i.charCodeAt(o), v = i.charCodeAt(o + 1), d = i.charCodeAt(o + 2), (h === e || h === r) && (v >= 48 && v <= 57 || (v === a || v === s) && d >= 48 && d <= 57))
|
|
160
|
-
for (o += v === a || v === s ? 3 : 2; o < u && (h = i.charCodeAt(o), !(h < 48 || h > 57)); )
|
|
161
|
-
o += 1;
|
|
162
|
-
return {
|
|
163
|
-
number: i.slice(0, o),
|
|
164
|
-
unit: i.slice(o)
|
|
165
|
-
};
|
|
166
|
-
}, gr;
|
|
167
|
-
}
|
|
168
|
-
var Wn = Bn, Rt = zn, Tt = jn;
|
|
169
|
-
function be(s) {
|
|
170
|
-
return this instanceof be ? (this.nodes = Wn(s), this) : new be(s);
|
|
171
|
-
}
|
|
172
|
-
be.prototype.toString = function() {
|
|
173
|
-
return Array.isArray(this.nodes) ? Tt(this.nodes) : "";
|
|
174
|
-
};
|
|
175
|
-
be.prototype.walk = function(s, a) {
|
|
176
|
-
return Rt(this.nodes, s, a), this;
|
|
177
|
-
};
|
|
178
|
-
be.unit = Yn();
|
|
179
|
-
be.walk = Rt;
|
|
180
|
-
be.stringify = Tt;
|
|
181
|
-
var Gn = be, Hn = function(s) {
|
|
182
|
-
return typeof s == "string" ? _t(s) : Cr(s);
|
|
183
|
-
};
|
|
184
|
-
function Cr(s) {
|
|
185
|
-
return !s || typeof s != "object" || Xn(s) || Kn(s) ? s : qn(s) ? Jn(s, Cr) : ei(Zn(s), function(a, t) {
|
|
186
|
-
var e = _t(t);
|
|
187
|
-
return a[e] = Cr(s[t]), a;
|
|
188
|
-
}, {});
|
|
189
|
-
}
|
|
190
|
-
function _t(s) {
|
|
191
|
-
return s.replace(/[_.-](\w|$)/g, function(a, t) {
|
|
192
|
-
return t.toUpperCase();
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
var qn = Array.isArray || function(s) {
|
|
196
|
-
return Object.prototype.toString.call(s) === "[object Array]";
|
|
197
|
-
}, Xn = function(s) {
|
|
198
|
-
return Object.prototype.toString.call(s) === "[object Date]";
|
|
199
|
-
}, Kn = function(s) {
|
|
200
|
-
return Object.prototype.toString.call(s) === "[object RegExp]";
|
|
201
|
-
}, Qn = Object.prototype.hasOwnProperty, Zn = Object.keys || function(s) {
|
|
202
|
-
var a = [];
|
|
203
|
-
for (var t in s)
|
|
204
|
-
Qn.call(s, t) && a.push(t);
|
|
205
|
-
return a;
|
|
206
|
-
};
|
|
207
|
-
function Jn(s, a) {
|
|
208
|
-
if (s.map)
|
|
209
|
-
return s.map(a);
|
|
210
|
-
for (var t = [], e = 0; e < s.length; e++)
|
|
211
|
-
t.push(a(s[e], e));
|
|
212
|
-
return t;
|
|
213
|
-
}
|
|
214
|
-
function ei(s, a, t) {
|
|
215
|
-
if (s.reduce)
|
|
216
|
-
return s.reduce(a, t);
|
|
217
|
-
for (var e = 0; e < s.length; e++)
|
|
218
|
-
t = a(t, s[e], e);
|
|
219
|
-
return t;
|
|
220
|
-
}
|
|
221
|
-
const ri = "#000000", ti = "#c0c0c0", ni = "#808080", ii = "#ffffff", ai = "#800000", si = "#ff0000", oi = "#800080", ci = "#ff00ff", ui = "#008000", fi = "#00ff00", li = "#808000", hi = "#ffff00", di = "#000080", pi = "#0000ff", vi = "#008080", mi = "#00ffff", wi = "#ffa500", gi = "#f0f8ff", yi = "#faebd7", bi = "#7fffd4", Ci = "#f0ffff", xi = "#f5f5dc", Ai = "#ffe4c4", Ei = "#ffebcd", Si = "#8a2be2", Ri = "#a52a2a", Ti = "#deb887", _i = "#5f9ea0", Oi = "#7fff00", Pi = "#d2691e", Ni = "#ff7f50", Ii = "#6495ed", $i = "#fff8dc", ki = "#dc143c", Fi = "#00008b", Di = "#008b8b", Mi = "#b8860b", Li = "#a9a9a9", Vi = "#006400", Ui = "#a9a9a9", Bi = "#bdb76b", zi = "#8b008b", ji = "#556b2f", Yi = "#ff8c00", Wi = "#9932cc", Gi = "#8b0000", Hi = "#e9967a", qi = "#8fbc8f", Xi = "#483d8b", Ki = "#2f4f4f", Qi = "#2f4f4f", Zi = "#00ced1", Ji = "#9400d3", ea = "#ff1493", ra = "#00bfff", ta = "#696969", na = "#696969", ia = "#1e90ff", aa = "#b22222", sa = "#fffaf0", oa = "#228b22", ca = "#dcdcdc", ua = "#f8f8ff", fa = "#ffd700", la = "#daa520", ha = "#adff2f", da = "#808080", pa = "#f0fff0", va = "#ff69b4", ma = "#cd5c5c", wa = "#4b0082", ga = "#fffff0", ya = "#f0e68c", ba = "#e6e6fa", Ca = "#fff0f5", xa = "#7cfc00", Aa = "#fffacd", Ea = "#add8e6", Sa = "#f08080", Ra = "#e0ffff", Ta = "#fafad2", _a = "#d3d3d3", Oa = "#90ee90", Pa = "#d3d3d3", Na = "#ffb6c1", Ia = "#ffa07a", $a = "#20b2aa", ka = "#87cefa", Fa = "#778899", Da = "#778899", Ma = "#b0c4de", La = "#ffffe0", Va = "#32cd32", Ua = "#faf0e6", Ba = "#66cdaa", za = "#0000cd", ja = "#ba55d3", Ya = "#9370db", Wa = "#3cb371", Ga = "#7b68ee", Ha = "#00fa9a", qa = "#48d1cc", Xa = "#c71585", Ka = "#191970", Qa = "#f5fffa", Za = "#ffe4e1", Ja = "#ffe4b5", es = "#ffdead", rs = "#fdf5e6", ts = "#6b8e23", ns = "#ff4500", is = "#da70d6", as = "#eee8aa", ss = "#98fb98", os = "#afeeee", cs = "#db7093", us = "#ffefd5", fs = "#ffdab9", ls = "#cd853f", hs = "#ffc0cb", ds = "#dda0dd", ps = "#b0e0e6", vs = "#bc8f8f", ms = "#4169e1", ws = "#8b4513", gs = "#fa8072", ys = "#f4a460", bs = "#2e8b57", Cs = "#fff5ee", xs = "#a0522d", As = "#87ceeb", Es = "#6a5acd", Ss = "#708090", Rs = "#708090", Ts = "#fffafa", _s = "#00ff7f", Os = "#4682b4", Ps = "#d2b48c", Ns = "#d8bfd8", Is = "#ff6347", $s = "#40e0d0", ks = "#ee82ee", Fs = "#f5deb3", Ds = "#f5f5f5", Ms = "#9acd32", Ls = "#663399", Vs = {
|
|
222
|
-
black: ri,
|
|
223
|
-
silver: ti,
|
|
224
|
-
gray: ni,
|
|
225
|
-
white: ii,
|
|
226
|
-
maroon: ai,
|
|
227
|
-
red: si,
|
|
228
|
-
purple: oi,
|
|
229
|
-
fuchsia: ci,
|
|
230
|
-
green: ui,
|
|
231
|
-
lime: fi,
|
|
232
|
-
olive: li,
|
|
233
|
-
yellow: hi,
|
|
234
|
-
navy: di,
|
|
235
|
-
blue: pi,
|
|
236
|
-
teal: vi,
|
|
237
|
-
aqua: mi,
|
|
238
|
-
orange: wi,
|
|
239
|
-
aliceblue: gi,
|
|
240
|
-
antiquewhite: yi,
|
|
241
|
-
aquamarine: bi,
|
|
242
|
-
azure: Ci,
|
|
243
|
-
beige: xi,
|
|
244
|
-
bisque: Ai,
|
|
245
|
-
blanchedalmond: Ei,
|
|
246
|
-
blueviolet: Si,
|
|
247
|
-
brown: Ri,
|
|
248
|
-
burlywood: Ti,
|
|
249
|
-
cadetblue: _i,
|
|
250
|
-
chartreuse: Oi,
|
|
251
|
-
chocolate: Pi,
|
|
252
|
-
coral: Ni,
|
|
253
|
-
cornflowerblue: Ii,
|
|
254
|
-
cornsilk: $i,
|
|
255
|
-
crimson: ki,
|
|
256
|
-
darkblue: Fi,
|
|
257
|
-
darkcyan: Di,
|
|
258
|
-
darkgoldenrod: Mi,
|
|
259
|
-
darkgray: Li,
|
|
260
|
-
darkgreen: Vi,
|
|
261
|
-
darkgrey: Ui,
|
|
262
|
-
darkkhaki: Bi,
|
|
263
|
-
darkmagenta: zi,
|
|
264
|
-
darkolivegreen: ji,
|
|
265
|
-
darkorange: Yi,
|
|
266
|
-
darkorchid: Wi,
|
|
267
|
-
darkred: Gi,
|
|
268
|
-
darksalmon: Hi,
|
|
269
|
-
darkseagreen: qi,
|
|
270
|
-
darkslateblue: Xi,
|
|
271
|
-
darkslategray: Ki,
|
|
272
|
-
darkslategrey: Qi,
|
|
273
|
-
darkturquoise: Zi,
|
|
274
|
-
darkviolet: Ji,
|
|
275
|
-
deeppink: ea,
|
|
276
|
-
deepskyblue: ra,
|
|
277
|
-
dimgray: ta,
|
|
278
|
-
dimgrey: na,
|
|
279
|
-
dodgerblue: ia,
|
|
280
|
-
firebrick: aa,
|
|
281
|
-
floralwhite: sa,
|
|
282
|
-
forestgreen: oa,
|
|
283
|
-
gainsboro: ca,
|
|
284
|
-
ghostwhite: ua,
|
|
285
|
-
gold: fa,
|
|
286
|
-
goldenrod: la,
|
|
287
|
-
greenyellow: ha,
|
|
288
|
-
grey: da,
|
|
289
|
-
honeydew: pa,
|
|
290
|
-
hotpink: va,
|
|
291
|
-
indianred: ma,
|
|
292
|
-
indigo: wa,
|
|
293
|
-
ivory: ga,
|
|
294
|
-
khaki: ya,
|
|
295
|
-
lavender: ba,
|
|
296
|
-
lavenderblush: Ca,
|
|
297
|
-
lawngreen: xa,
|
|
298
|
-
lemonchiffon: Aa,
|
|
299
|
-
lightblue: Ea,
|
|
300
|
-
lightcoral: Sa,
|
|
301
|
-
lightcyan: Ra,
|
|
302
|
-
lightgoldenrodyellow: Ta,
|
|
303
|
-
lightgray: _a,
|
|
304
|
-
lightgreen: Oa,
|
|
305
|
-
lightgrey: Pa,
|
|
306
|
-
lightpink: Na,
|
|
307
|
-
lightsalmon: Ia,
|
|
308
|
-
lightseagreen: $a,
|
|
309
|
-
lightskyblue: ka,
|
|
310
|
-
lightslategray: Fa,
|
|
311
|
-
lightslategrey: Da,
|
|
312
|
-
lightsteelblue: Ma,
|
|
313
|
-
lightyellow: La,
|
|
314
|
-
limegreen: Va,
|
|
315
|
-
linen: Ua,
|
|
316
|
-
mediumaquamarine: Ba,
|
|
317
|
-
mediumblue: za,
|
|
318
|
-
mediumorchid: ja,
|
|
319
|
-
mediumpurple: Ya,
|
|
320
|
-
mediumseagreen: Wa,
|
|
321
|
-
mediumslateblue: Ga,
|
|
322
|
-
mediumspringgreen: Ha,
|
|
323
|
-
mediumturquoise: qa,
|
|
324
|
-
mediumvioletred: Xa,
|
|
325
|
-
midnightblue: Ka,
|
|
326
|
-
mintcream: Qa,
|
|
327
|
-
mistyrose: Za,
|
|
328
|
-
moccasin: Ja,
|
|
329
|
-
navajowhite: es,
|
|
330
|
-
oldlace: rs,
|
|
331
|
-
olivedrab: ts,
|
|
332
|
-
orangered: ns,
|
|
333
|
-
orchid: is,
|
|
334
|
-
palegoldenrod: as,
|
|
335
|
-
palegreen: ss,
|
|
336
|
-
paleturquoise: os,
|
|
337
|
-
palevioletred: cs,
|
|
338
|
-
papayawhip: us,
|
|
339
|
-
peachpuff: fs,
|
|
340
|
-
peru: ls,
|
|
341
|
-
pink: hs,
|
|
342
|
-
plum: ds,
|
|
343
|
-
powderblue: ps,
|
|
344
|
-
rosybrown: vs,
|
|
345
|
-
royalblue: ms,
|
|
346
|
-
saddlebrown: ws,
|
|
347
|
-
salmon: gs,
|
|
348
|
-
sandybrown: ys,
|
|
349
|
-
seagreen: bs,
|
|
350
|
-
seashell: Cs,
|
|
351
|
-
sienna: xs,
|
|
352
|
-
skyblue: As,
|
|
353
|
-
slateblue: Es,
|
|
354
|
-
slategray: Ss,
|
|
355
|
-
slategrey: Rs,
|
|
356
|
-
snow: Ts,
|
|
357
|
-
springgreen: _s,
|
|
358
|
-
steelblue: Os,
|
|
359
|
-
tan: Ps,
|
|
360
|
-
thistle: Ns,
|
|
361
|
-
tomato: Is,
|
|
362
|
-
turquoise: $s,
|
|
363
|
-
violet: ks,
|
|
364
|
-
wheat: Fs,
|
|
365
|
-
whitesmoke: Ds,
|
|
366
|
-
yellowgreen: Ms,
|
|
367
|
-
rebeccapurple: Ls
|
|
368
|
-
};
|
|
369
|
-
var Us = Vs;
|
|
370
|
-
(function(s) {
|
|
371
|
-
Object.defineProperty(s, "__esModule", {
|
|
372
|
-
value: !0
|
|
373
|
-
});
|
|
374
|
-
function a(T) {
|
|
375
|
-
return T && typeof T == "object" && "default" in T ? T.default : T;
|
|
376
|
-
}
|
|
377
|
-
var t = Gn, e = a(t), r = a(Hn), n = a(Us), i = function(c) {
|
|
378
|
-
return c.type !== "string" ? null : c.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi, function(p, g) {
|
|
379
|
-
return String.fromCharCode(parseInt(g, 16));
|
|
380
|
-
}).replace(/\\/g, "");
|
|
381
|
-
}, o = /^(#(?:[0-9a-f]{3,4}){1,2})$/i, u = /^(rgba?|hsla?|hwb|lab|lch|gray|color)$/, h = function(c) {
|
|
382
|
-
return c.type === "word" && (o.test(c.value) || c.value in n || c.value === "transparent") ? c.value : c.type === "function" && u.test(c.value) ? t.stringify(c) : null;
|
|
383
|
-
}, v = /^(none)$/i, d = /^(auto)$/i, m = /(^-?[_a-z][_a-z0-9-]*$)/i, _ = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i, E = /^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i, M = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i, k = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i, $ = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i, N = function(c) {
|
|
384
|
-
return function(p) {
|
|
385
|
-
return c(p) ? "<token>" : null;
|
|
386
|
-
};
|
|
387
|
-
}, C = function(c) {
|
|
388
|
-
return function(p) {
|
|
389
|
-
return p.type === c ? p.value : null;
|
|
390
|
-
};
|
|
391
|
-
}, y = function(c, p) {
|
|
392
|
-
return p === void 0 && (p = String), function(g) {
|
|
393
|
-
if (g.type !== "word")
|
|
394
|
-
return null;
|
|
395
|
-
var x = g.value.match(c);
|
|
396
|
-
if (x === null)
|
|
397
|
-
return null;
|
|
398
|
-
var P = p(x[1]);
|
|
399
|
-
return P;
|
|
400
|
-
};
|
|
401
|
-
}, f = N(function(T) {
|
|
402
|
-
return T.type === "space";
|
|
403
|
-
}), Q = N(function(T) {
|
|
404
|
-
return T.type === "div" && T.value === "/";
|
|
405
|
-
}), ue = N(function(T) {
|
|
406
|
-
return T.type === "div" && T.value === ",";
|
|
407
|
-
}), ie = C("word"), te = y(v), pe = y(d), ye = y(_, Number), Y = y(E, Number), H = y(M), se = y(k, function(T) {
|
|
408
|
-
return T.toLowerCase();
|
|
409
|
-
}), re = y($), ve = y(m), xe = i, Z = h, me = y(/^(none|underline|line-through)$/i), Ae = y(/^(solid|dashed|dotted)$/), Ee = 1, S = "black", A = "solid", R = function(c) {
|
|
410
|
-
var p, g, x;
|
|
411
|
-
if (c.matches(te))
|
|
412
|
-
return c.expectEmpty(), {
|
|
413
|
-
borderWidth: 0,
|
|
414
|
-
borderColor: "black",
|
|
415
|
-
borderStyle: "solid"
|
|
416
|
-
};
|
|
417
|
-
for (var P = 0; P < 3 && c.hasTokens(); )
|
|
418
|
-
P !== 0 && c.expect(f), p === void 0 && c.matches(Y, H) ? p = c.lastValue : g === void 0 && c.matches(Z) ? g = c.lastValue : x === void 0 && c.matches(Ae) ? x = c.lastValue : c.throw(), P += 1;
|
|
419
|
-
return c.expectEmpty(), p === void 0 && (p = Ee), g === void 0 && (g = S), x === void 0 && (x = A), {
|
|
420
|
-
borderWidth: p,
|
|
421
|
-
borderColor: g,
|
|
422
|
-
borderStyle: x
|
|
423
|
-
};
|
|
424
|
-
}, I = function(c) {
|
|
425
|
-
var p = c.types, g = p === void 0 ? [Y, H, re] : p, x = c.directions, P = x === void 0 ? ["Top", "Right", "Bottom", "Left"] : x, U = c.prefix, ne = U === void 0 ? "" : U, le = c.suffix, fr = le === void 0 ? "" : le;
|
|
426
|
-
return function(he) {
|
|
427
|
-
var Ne, Te = [];
|
|
428
|
-
for (Te.push(he.expect.apply(he, g)); Te.length < 4 && he.hasTokens(); )
|
|
429
|
-
he.expect(f), Te.push(he.expect.apply(he, g));
|
|
430
|
-
he.expectEmpty();
|
|
431
|
-
var lr = Te[0], Kr = Te[1], Qr = Kr === void 0 ? lr : Kr, Zr = Te[2], Nn = Zr === void 0 ? lr : Zr, Jr = Te[3], In = Jr === void 0 ? Qr : Jr, je = function($n) {
|
|
432
|
-
return "" + ne + P[$n] + fr;
|
|
433
|
-
};
|
|
434
|
-
return Ne = {}, Ne[je(0)] = lr, Ne[je(1)] = Qr, Ne[je(2)] = Nn, Ne[je(3)] = In, Ne;
|
|
435
|
-
};
|
|
436
|
-
}, l = function(c) {
|
|
437
|
-
var p = c.expect(Y), g = c.matches(f) ? c.expect(Y) : p;
|
|
438
|
-
return c.expectEmpty(), {
|
|
439
|
-
width: p,
|
|
440
|
-
height: g
|
|
441
|
-
};
|
|
442
|
-
}, V = function(c) {
|
|
443
|
-
var p, g, x, P;
|
|
444
|
-
if (c.matches(te))
|
|
445
|
-
return c.expectEmpty(), {
|
|
446
|
-
offset: {
|
|
447
|
-
width: 0,
|
|
448
|
-
height: 0
|
|
449
|
-
},
|
|
450
|
-
radius: 0,
|
|
451
|
-
color: "black"
|
|
452
|
-
};
|
|
453
|
-
for (var U = !1; c.hasTokens(); )
|
|
454
|
-
U && c.expect(f), p === void 0 && c.matches(Y, H) ? (p = c.lastValue, c.expect(f), g = c.expect(Y, H), c.saveRewindPoint(), c.matches(f) && c.matches(Y, H) ? x = c.lastValue : c.rewind()) : P === void 0 && c.matches(Z) ? P = c.lastValue : c.throw(), U = !0;
|
|
455
|
-
return p === void 0 && c.throw(), {
|
|
456
|
-
offset: {
|
|
457
|
-
width: p,
|
|
458
|
-
height: g
|
|
459
|
-
},
|
|
460
|
-
radius: x !== void 0 ? x : 0,
|
|
461
|
-
color: P !== void 0 ? P : "black"
|
|
462
|
-
};
|
|
463
|
-
}, b = function(c) {
|
|
464
|
-
var p = V(c), g = p.offset, x = p.radius, P = p.color;
|
|
465
|
-
return {
|
|
466
|
-
shadowOffset: g,
|
|
467
|
-
shadowRadius: x,
|
|
468
|
-
shadowColor: P,
|
|
469
|
-
shadowOpacity: 1
|
|
470
|
-
};
|
|
471
|
-
}, X = 1, j = 1, W = 0, w = function(c) {
|
|
472
|
-
var p, g, x;
|
|
473
|
-
if (c.matches(te))
|
|
474
|
-
return c.expectEmpty(), {
|
|
475
|
-
flexGrow: 0,
|
|
476
|
-
flexShrink: 0,
|
|
477
|
-
flexBasis: "auto"
|
|
478
|
-
};
|
|
479
|
-
if (c.saveRewindPoint(), c.matches(pe) && !c.hasTokens())
|
|
480
|
-
return {
|
|
481
|
-
flexGrow: 1,
|
|
482
|
-
flexShrink: 1,
|
|
483
|
-
flexBasis: "auto"
|
|
484
|
-
};
|
|
485
|
-
c.rewind();
|
|
486
|
-
for (var P = 0; P < 2 && c.hasTokens(); )
|
|
487
|
-
P !== 0 && c.expect(f), p === void 0 && c.matches(ye) ? (p = c.lastValue, c.saveRewindPoint(), c.matches(f) && c.matches(ye) ? g = c.lastValue : c.rewind()) : x === void 0 && c.matches(Y, H, re) ? x = c.lastValue : x === void 0 && c.matches(pe) ? x = "auto" : c.throw(), P += 1;
|
|
488
|
-
return c.expectEmpty(), p === void 0 && (p = X), g === void 0 && (g = j), x === void 0 && (x = W), {
|
|
489
|
-
flexGrow: p,
|
|
490
|
-
flexShrink: g,
|
|
491
|
-
flexBasis: x
|
|
492
|
-
};
|
|
493
|
-
}, J = y(/(nowrap|wrap|wrap-reverse)/), ae = y(/(row|row-reverse|column|column-reverse)/), F = "nowrap", ee = "row", L = function(c) {
|
|
494
|
-
for (var p, g, x = 0; x < 2 && c.hasTokens(); )
|
|
495
|
-
x !== 0 && c.expect(f), p === void 0 && c.matches(J) ? p = c.lastValue : g === void 0 && c.matches(ae) ? g = c.lastValue : c.throw(), x += 1;
|
|
496
|
-
return c.expectEmpty(), p === void 0 && (p = F), g === void 0 && (g = ee), {
|
|
497
|
-
flexWrap: p,
|
|
498
|
-
flexDirection: g
|
|
499
|
-
};
|
|
500
|
-
}, q = function(c) {
|
|
501
|
-
var p;
|
|
502
|
-
if (c.matches(xe))
|
|
503
|
-
p = c.lastValue;
|
|
504
|
-
else
|
|
505
|
-
for (p = c.expect(ve); c.hasTokens(); ) {
|
|
506
|
-
c.expect(f);
|
|
507
|
-
var g = c.expect(ve);
|
|
508
|
-
p += " " + g;
|
|
509
|
-
}
|
|
510
|
-
return c.expectEmpty(), {
|
|
511
|
-
fontFamily: p
|
|
512
|
-
};
|
|
513
|
-
}, Se = y(/^(normal)$/), K = y(/^(italic)$/), Oe = y(/^([1-9]00|bold)$/), Re = y(/^(small-caps)$/), oe = "normal", O = "normal", G = [], De = function(c) {
|
|
514
|
-
for (var p, g, x, P, U = 0; U < 3 && c.hasTokens(); ) {
|
|
515
|
-
if (!c.matches(Se))
|
|
516
|
-
if (p === void 0 && c.matches(K))
|
|
517
|
-
p = c.lastValue;
|
|
518
|
-
else if (g === void 0 && c.matches(Oe))
|
|
519
|
-
g = c.lastValue;
|
|
520
|
-
else if (x === void 0 && c.matches(Re))
|
|
521
|
-
x = [c.lastValue];
|
|
522
|
-
else
|
|
523
|
-
break;
|
|
524
|
-
c.expect(f), U += 1;
|
|
525
|
-
}
|
|
526
|
-
var ne = c.expect(Y, H);
|
|
527
|
-
c.matches(Q) && (P = c.expect(Y, H)), c.expect(f);
|
|
528
|
-
var le = q(c), fr = le.fontFamily;
|
|
529
|
-
p === void 0 && (p = oe), g === void 0 && (g = O), x === void 0 && (x = G);
|
|
530
|
-
var he = {
|
|
531
|
-
fontStyle: p,
|
|
532
|
-
fontWeight: g,
|
|
533
|
-
fontVariant: x,
|
|
534
|
-
fontSize: ne,
|
|
535
|
-
fontFamily: fr
|
|
536
|
-
};
|
|
537
|
-
return P !== void 0 && (he.lineHeight = P), he;
|
|
538
|
-
}, Me = y(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/), fe = y(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/), Zt = function(c) {
|
|
539
|
-
var p = c.expect(Me), g;
|
|
540
|
-
return c.hasTokens() ? (c.expect(f), g = c.expect(fe)) : g = "stretch", c.expectEmpty(), {
|
|
541
|
-
alignContent: p,
|
|
542
|
-
justifyContent: g
|
|
543
|
-
};
|
|
544
|
-
}, Jt = y(/^(solid|double|dotted|dashed)$/), en = "none", rn = "solid", tn = "black", nn = function(c) {
|
|
545
|
-
for (var p, g, x, P = !1; c.hasTokens(); ) {
|
|
546
|
-
if (P && c.expect(f), p === void 0 && c.matches(me)) {
|
|
547
|
-
var U = [c.lastValue.toLowerCase()];
|
|
548
|
-
c.saveRewindPoint(), U[0] !== "none" && c.matches(f) && c.matches(me) ? (U.push(c.lastValue.toLowerCase()), U.sort().reverse()) : c.rewind(), p = U.join(" ");
|
|
549
|
-
} else
|
|
550
|
-
g === void 0 && c.matches(Jt) ? g = c.lastValue : x === void 0 && c.matches(Z) ? x = c.lastValue : c.throw();
|
|
551
|
-
P = !0;
|
|
552
|
-
}
|
|
553
|
-
return {
|
|
554
|
-
textDecorationLine: p !== void 0 ? p : en,
|
|
555
|
-
textDecorationColor: x !== void 0 ? x : tn,
|
|
556
|
-
textDecorationStyle: g !== void 0 ? g : rn
|
|
557
|
-
};
|
|
558
|
-
}, an = function(c) {
|
|
559
|
-
for (var p = [], g = !1; c.hasTokens(); )
|
|
560
|
-
g && c.expect(f), p.push(c.expect(me).toLowerCase()), g = !0;
|
|
561
|
-
return p.sort().reverse(), {
|
|
562
|
-
textDecorationLine: p.join(" ")
|
|
563
|
-
};
|
|
564
|
-
}, sn = function(c) {
|
|
565
|
-
var p = V(c), g = p.offset, x = p.radius, P = p.color;
|
|
566
|
-
return {
|
|
567
|
-
textShadowOffset: g,
|
|
568
|
-
textShadowRadius: x,
|
|
569
|
-
textShadowColor: P
|
|
570
|
-
};
|
|
571
|
-
}, ar = function(c) {
|
|
572
|
-
return function(p) {
|
|
573
|
-
var g = p.expect(c);
|
|
574
|
-
return p.expectEmpty(), g;
|
|
575
|
-
};
|
|
576
|
-
}, sr = ar(ye), Yr = ar(Y), Pe = ar(se), or = function(c) {
|
|
577
|
-
return function(p, g) {
|
|
578
|
-
return function(x) {
|
|
579
|
-
var P, U, ne = x.expect(c), le;
|
|
580
|
-
if (x.hasTokens())
|
|
581
|
-
x.expect(ue), le = x.expect(c);
|
|
582
|
-
else if (g !== void 0)
|
|
583
|
-
le = g;
|
|
584
|
-
else
|
|
585
|
-
return ne;
|
|
586
|
-
return x.expectEmpty(), [(P = {}, P[p + "Y"] = le, P), (U = {}, U[p + "X"] = ne, U)];
|
|
587
|
-
};
|
|
588
|
-
};
|
|
589
|
-
}, on = or(ye), cn = or(Y), un = or(se), fn = {
|
|
590
|
-
perspective: sr,
|
|
591
|
-
scale: on("scale"),
|
|
592
|
-
scaleX: sr,
|
|
593
|
-
scaleY: sr,
|
|
594
|
-
translate: cn("translate", 0),
|
|
595
|
-
translateX: Yr,
|
|
596
|
-
translateY: Yr,
|
|
597
|
-
rotate: Pe,
|
|
598
|
-
rotateX: Pe,
|
|
599
|
-
rotateY: Pe,
|
|
600
|
-
rotateZ: Pe,
|
|
601
|
-
skewX: Pe,
|
|
602
|
-
skewY: Pe,
|
|
603
|
-
skew: un("skew", "0deg")
|
|
604
|
-
}, ln = function(c) {
|
|
605
|
-
for (var p = [], g = !1; c.hasTokens(); ) {
|
|
606
|
-
g && c.expect(f);
|
|
607
|
-
var x = c.expectFunction(), P = x.functionName, U = fn[P](x);
|
|
608
|
-
if (!Array.isArray(U)) {
|
|
609
|
-
var ne;
|
|
610
|
-
U = [(ne = {}, ne[P] = U, ne)];
|
|
611
|
-
}
|
|
612
|
-
p = U.concat(p), g = !0;
|
|
613
|
-
}
|
|
614
|
-
return {
|
|
615
|
-
transform: p
|
|
616
|
-
};
|
|
617
|
-
}, hn = function(c) {
|
|
618
|
-
return {
|
|
619
|
-
backgroundColor: c.expect(Z)
|
|
620
|
-
};
|
|
621
|
-
}, dn = I({
|
|
622
|
-
types: [Z],
|
|
623
|
-
prefix: "border",
|
|
624
|
-
suffix: "Color"
|
|
625
|
-
}), pn = I({
|
|
626
|
-
directions: ["TopLeft", "TopRight", "BottomRight", "BottomLeft"],
|
|
627
|
-
prefix: "border",
|
|
628
|
-
suffix: "Radius"
|
|
629
|
-
}), vn = I({
|
|
630
|
-
prefix: "border",
|
|
631
|
-
suffix: "Width"
|
|
632
|
-
}), mn = I({
|
|
633
|
-
types: [Y, H, re, pe],
|
|
634
|
-
prefix: "margin"
|
|
635
|
-
}), wn = I({
|
|
636
|
-
prefix: "padding"
|
|
637
|
-
}), gn = function(c) {
|
|
638
|
-
return {
|
|
639
|
-
fontVariant: [c.expect(ve)]
|
|
640
|
-
};
|
|
641
|
-
}, yn = function(c) {
|
|
642
|
-
return {
|
|
643
|
-
fontWeight: c.expect(ie)
|
|
644
|
-
// Also match numbers as strings
|
|
645
|
-
};
|
|
646
|
-
}, bn = function(c) {
|
|
647
|
-
return {
|
|
648
|
-
shadowOffset: l(c)
|
|
649
|
-
};
|
|
650
|
-
}, Cn = function(c) {
|
|
651
|
-
return {
|
|
652
|
-
textShadowOffset: l(c)
|
|
653
|
-
};
|
|
654
|
-
}, Wr = {
|
|
655
|
-
background: hn,
|
|
656
|
-
border: R,
|
|
657
|
-
borderColor: dn,
|
|
658
|
-
borderRadius: pn,
|
|
659
|
-
borderWidth: vn,
|
|
660
|
-
boxShadow: b,
|
|
661
|
-
flex: w,
|
|
662
|
-
flexFlow: L,
|
|
663
|
-
font: De,
|
|
664
|
-
fontFamily: q,
|
|
665
|
-
fontVariant: gn,
|
|
666
|
-
fontWeight: yn,
|
|
667
|
-
margin: mn,
|
|
668
|
-
padding: wn,
|
|
669
|
-
placeContent: Zt,
|
|
670
|
-
shadowOffset: bn,
|
|
671
|
-
textShadow: sn,
|
|
672
|
-
textShadowOffset: Cn,
|
|
673
|
-
textDecoration: nn,
|
|
674
|
-
textDecorationLine: an,
|
|
675
|
-
transform: ln
|
|
676
|
-
}, cr;
|
|
677
|
-
process.env.NODE_ENV !== "production" && (cr = ["aspectRatio", "elevation", "flexGrow", "flexShrink", "opacity", "shadowOpacity", "zIndex"]);
|
|
678
|
-
var xn = cr != null ? new RegExp(cr.join("|")) : null, ur = "SYMBOL_MATCH", An = /* @__PURE__ */ function() {
|
|
679
|
-
function T(p, g) {
|
|
680
|
-
this.index = 0, this.nodes = p, this.functionName = g != null ? g.value : null, this.lastValue = null, this.rewindIndex = -1;
|
|
681
|
-
}
|
|
682
|
-
var c = T.prototype;
|
|
683
|
-
return c.hasTokens = function() {
|
|
684
|
-
return this.index <= this.nodes.length - 1;
|
|
685
|
-
}, c[ur] = function() {
|
|
686
|
-
if (!this.hasTokens())
|
|
687
|
-
return null;
|
|
688
|
-
for (var p = this.nodes[this.index], g = 0; g < arguments.length; g += 1) {
|
|
689
|
-
var x = g < 0 || arguments.length <= g ? void 0 : arguments[g], P = x(p);
|
|
690
|
-
if (P !== null)
|
|
691
|
-
return this.index += 1, this.lastValue = P, P;
|
|
692
|
-
}
|
|
693
|
-
return null;
|
|
694
|
-
}, c.matches = function() {
|
|
695
|
-
return this[ur].apply(this, arguments) !== null;
|
|
696
|
-
}, c.expect = function() {
|
|
697
|
-
var g = this[ur].apply(this, arguments);
|
|
698
|
-
return g !== null ? g : this.throw();
|
|
699
|
-
}, c.matchesFunction = function() {
|
|
700
|
-
var g = this.nodes[this.index];
|
|
701
|
-
if (g.type !== "function")
|
|
702
|
-
return null;
|
|
703
|
-
var x = new T(g.nodes, g);
|
|
704
|
-
return this.index += 1, this.lastValue = null, x;
|
|
705
|
-
}, c.expectFunction = function() {
|
|
706
|
-
var g = this.matchesFunction();
|
|
707
|
-
return g !== null ? g : this.throw();
|
|
708
|
-
}, c.expectEmpty = function() {
|
|
709
|
-
this.hasTokens() && this.throw();
|
|
710
|
-
}, c.throw = function() {
|
|
711
|
-
throw new Error("Unexpected token type: " + this.nodes[this.index].type);
|
|
712
|
-
}, c.saveRewindPoint = function() {
|
|
713
|
-
this.rewindIndex = this.index;
|
|
714
|
-
}, c.rewind = function() {
|
|
715
|
-
if (this.rewindIndex === -1)
|
|
716
|
-
throw new Error("Internal error");
|
|
717
|
-
this.index = this.rewindIndex, this.lastValue = null;
|
|
718
|
-
}, T;
|
|
719
|
-
}(), En = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i, Sn = /^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i, Rn = /^true|false$/i, Tn = /^null$/i, _n = /^undefined$/i, Gr = function(c, p) {
|
|
720
|
-
if (process.env.NODE_ENV !== "production") {
|
|
721
|
-
var g = !xn.test(c), x = Sn.test(p);
|
|
722
|
-
g && x && console.warn('Expected style "' + c + ": " + p + '" to contain units'), !g && p !== "0" && !x && console.warn('Expected style "' + c + ": " + p + '" to be unitless');
|
|
723
|
-
}
|
|
724
|
-
var P = p.match(En);
|
|
725
|
-
if (P !== null)
|
|
726
|
-
return Number(P[1]);
|
|
727
|
-
var U = p.match(Rn);
|
|
728
|
-
if (U !== null)
|
|
729
|
-
return U[0].toLowerCase() === "true";
|
|
730
|
-
var ne = p.match(Tn);
|
|
731
|
-
if (ne !== null)
|
|
732
|
-
return null;
|
|
733
|
-
var le = p.match(_n);
|
|
734
|
-
if (le === null)
|
|
735
|
-
return p;
|
|
736
|
-
}, Hr = function(c, p) {
|
|
737
|
-
var g = e(p), x = new An(g.nodes);
|
|
738
|
-
return Wr[c](x);
|
|
739
|
-
}, On = process.env.NODE_ENV === "production" ? Hr : function(T, c) {
|
|
740
|
-
try {
|
|
741
|
-
return Hr(T, c);
|
|
742
|
-
} catch {
|
|
743
|
-
throw new Error('Failed to parse declaration "' + T + ": " + c + '"');
|
|
744
|
-
}
|
|
745
|
-
}, qr = function(c, p, g) {
|
|
746
|
-
var x, P = g === !1 || !(c in Wr), U = p.trim(), ne = P ? (x = {}, x[c] = Gr(c, U), x) : On(c, U);
|
|
747
|
-
return ne;
|
|
748
|
-
}, Xr = function(c) {
|
|
749
|
-
var p = /^--\w+/.test(c);
|
|
750
|
-
return p ? c : r(c);
|
|
751
|
-
}, Pn = function(c, p) {
|
|
752
|
-
return p === void 0 && (p = []), c.reduce(function(g, x) {
|
|
753
|
-
var P = Xr(x[0]), U = x[1], ne = p.indexOf(P) === -1;
|
|
754
|
-
return Object.assign(g, qr(P, U, ne));
|
|
755
|
-
}, {});
|
|
756
|
-
};
|
|
757
|
-
s.default = Pn, s.getPropertyName = Xr, s.getStylesForProperty = qr, s.transformRawValue = Gr;
|
|
758
|
-
})(Et);
|
|
759
|
-
const Bs = /* @__PURE__ */ Nr(Et);
|
|
760
|
-
var xr = { exports: {} }, B = {};
|
|
761
|
-
/** @license React v16.13.1
|
|
762
|
-
* react-is.development.js
|
|
763
|
-
*
|
|
764
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
765
|
-
*
|
|
766
|
-
* This source code is licensed under the MIT license found in the
|
|
767
|
-
* LICENSE file in the root directory of this source tree.
|
|
768
|
-
*/
|
|
769
|
-
var tt;
|
|
770
|
-
function zs() {
|
|
771
|
-
return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
772
|
-
var s = typeof Symbol == "function" && Symbol.for, a = s ? Symbol.for("react.element") : 60103, t = s ? Symbol.for("react.portal") : 60106, e = s ? Symbol.for("react.fragment") : 60107, r = s ? Symbol.for("react.strict_mode") : 60108, n = s ? Symbol.for("react.profiler") : 60114, i = s ? Symbol.for("react.provider") : 60109, o = s ? Symbol.for("react.context") : 60110, u = s ? Symbol.for("react.async_mode") : 60111, h = s ? Symbol.for("react.concurrent_mode") : 60111, v = s ? Symbol.for("react.forward_ref") : 60112, d = s ? Symbol.for("react.suspense") : 60113, m = s ? Symbol.for("react.suspense_list") : 60120, _ = s ? Symbol.for("react.memo") : 60115, E = s ? Symbol.for("react.lazy") : 60116, M = s ? Symbol.for("react.block") : 60121, k = s ? Symbol.for("react.fundamental") : 60117, $ = s ? Symbol.for("react.responder") : 60118, N = s ? Symbol.for("react.scope") : 60119;
|
|
773
|
-
function C(w) {
|
|
774
|
-
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
775
|
-
w === e || w === h || w === n || w === r || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === E || w.$$typeof === _ || w.$$typeof === i || w.$$typeof === o || w.$$typeof === v || w.$$typeof === k || w.$$typeof === $ || w.$$typeof === N || w.$$typeof === M);
|
|
776
|
-
}
|
|
777
|
-
function y(w) {
|
|
778
|
-
if (typeof w == "object" && w !== null) {
|
|
779
|
-
var J = w.$$typeof;
|
|
780
|
-
switch (J) {
|
|
781
|
-
case a:
|
|
782
|
-
var ae = w.type;
|
|
783
|
-
switch (ae) {
|
|
784
|
-
case u:
|
|
785
|
-
case h:
|
|
786
|
-
case e:
|
|
787
|
-
case n:
|
|
788
|
-
case r:
|
|
789
|
-
case d:
|
|
790
|
-
return ae;
|
|
791
|
-
default:
|
|
792
|
-
var F = ae && ae.$$typeof;
|
|
793
|
-
switch (F) {
|
|
794
|
-
case o:
|
|
795
|
-
case v:
|
|
796
|
-
case E:
|
|
797
|
-
case _:
|
|
798
|
-
case i:
|
|
799
|
-
return F;
|
|
800
|
-
default:
|
|
801
|
-
return J;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
case t:
|
|
805
|
-
return J;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
var f = u, Q = h, ue = o, ie = i, te = a, pe = v, ye = e, Y = E, H = _, se = t, re = n, ve = r, xe = d, Z = !1;
|
|
810
|
-
function me(w) {
|
|
811
|
-
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ae(w) || y(w) === u;
|
|
812
|
-
}
|
|
813
|
-
function Ae(w) {
|
|
814
|
-
return y(w) === h;
|
|
815
|
-
}
|
|
816
|
-
function Ee(w) {
|
|
817
|
-
return y(w) === o;
|
|
818
|
-
}
|
|
819
|
-
function S(w) {
|
|
820
|
-
return y(w) === i;
|
|
821
|
-
}
|
|
822
|
-
function A(w) {
|
|
823
|
-
return typeof w == "object" && w !== null && w.$$typeof === a;
|
|
824
|
-
}
|
|
825
|
-
function R(w) {
|
|
826
|
-
return y(w) === v;
|
|
827
|
-
}
|
|
828
|
-
function I(w) {
|
|
829
|
-
return y(w) === e;
|
|
830
|
-
}
|
|
831
|
-
function l(w) {
|
|
832
|
-
return y(w) === E;
|
|
833
|
-
}
|
|
834
|
-
function V(w) {
|
|
835
|
-
return y(w) === _;
|
|
836
|
-
}
|
|
837
|
-
function b(w) {
|
|
838
|
-
return y(w) === t;
|
|
839
|
-
}
|
|
840
|
-
function X(w) {
|
|
841
|
-
return y(w) === n;
|
|
842
|
-
}
|
|
843
|
-
function j(w) {
|
|
844
|
-
return y(w) === r;
|
|
845
|
-
}
|
|
846
|
-
function W(w) {
|
|
847
|
-
return y(w) === d;
|
|
848
|
-
}
|
|
849
|
-
B.AsyncMode = f, B.ConcurrentMode = Q, B.ContextConsumer = ue, B.ContextProvider = ie, B.Element = te, B.ForwardRef = pe, B.Fragment = ye, B.Lazy = Y, B.Memo = H, B.Portal = se, B.Profiler = re, B.StrictMode = ve, B.Suspense = xe, B.isAsyncMode = me, B.isConcurrentMode = Ae, B.isContextConsumer = Ee, B.isContextProvider = S, B.isElement = A, B.isForwardRef = R, B.isFragment = I, B.isLazy = l, B.isMemo = V, B.isPortal = b, B.isProfiler = X, B.isStrictMode = j, B.isSuspense = W, B.isValidElementType = C, B.typeOf = y;
|
|
850
|
-
}()), B;
|
|
851
|
-
}
|
|
852
|
-
var z = {};
|
|
853
|
-
/** @license React v16.13.1
|
|
854
|
-
* react-is.production.min.js
|
|
855
|
-
*
|
|
856
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
857
|
-
*
|
|
858
|
-
* This source code is licensed under the MIT license found in the
|
|
859
|
-
* LICENSE file in the root directory of this source tree.
|
|
860
|
-
*/
|
|
861
|
-
var nt;
|
|
862
|
-
function js() {
|
|
863
|
-
if (nt)
|
|
864
|
-
return z;
|
|
865
|
-
nt = 1;
|
|
866
|
-
var s = typeof Symbol == "function" && Symbol.for, a = s ? Symbol.for("react.element") : 60103, t = s ? Symbol.for("react.portal") : 60106, e = s ? Symbol.for("react.fragment") : 60107, r = s ? Symbol.for("react.strict_mode") : 60108, n = s ? Symbol.for("react.profiler") : 60114, i = s ? Symbol.for("react.provider") : 60109, o = s ? Symbol.for("react.context") : 60110, u = s ? Symbol.for("react.async_mode") : 60111, h = s ? Symbol.for("react.concurrent_mode") : 60111, v = s ? Symbol.for("react.forward_ref") : 60112, d = s ? Symbol.for("react.suspense") : 60113, m = s ? Symbol.for("react.suspense_list") : 60120, _ = s ? Symbol.for("react.memo") : 60115, E = s ? Symbol.for("react.lazy") : 60116, M = s ? Symbol.for("react.block") : 60121, k = s ? Symbol.for("react.fundamental") : 60117, $ = s ? Symbol.for("react.responder") : 60118, N = s ? Symbol.for("react.scope") : 60119;
|
|
867
|
-
function C(f) {
|
|
868
|
-
if (typeof f == "object" && f !== null) {
|
|
869
|
-
var Q = f.$$typeof;
|
|
870
|
-
switch (Q) {
|
|
871
|
-
case a:
|
|
872
|
-
switch (f = f.type, f) {
|
|
873
|
-
case u:
|
|
874
|
-
case h:
|
|
875
|
-
case e:
|
|
876
|
-
case n:
|
|
877
|
-
case r:
|
|
878
|
-
case d:
|
|
879
|
-
return f;
|
|
880
|
-
default:
|
|
881
|
-
switch (f = f && f.$$typeof, f) {
|
|
882
|
-
case o:
|
|
883
|
-
case v:
|
|
884
|
-
case E:
|
|
885
|
-
case _:
|
|
886
|
-
case i:
|
|
887
|
-
return f;
|
|
888
|
-
default:
|
|
889
|
-
return Q;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
case t:
|
|
893
|
-
return Q;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
function y(f) {
|
|
898
|
-
return C(f) === h;
|
|
899
|
-
}
|
|
900
|
-
return z.AsyncMode = u, z.ConcurrentMode = h, z.ContextConsumer = o, z.ContextProvider = i, z.Element = a, z.ForwardRef = v, z.Fragment = e, z.Lazy = E, z.Memo = _, z.Portal = t, z.Profiler = n, z.StrictMode = r, z.Suspense = d, z.isAsyncMode = function(f) {
|
|
901
|
-
return y(f) || C(f) === u;
|
|
902
|
-
}, z.isConcurrentMode = y, z.isContextConsumer = function(f) {
|
|
903
|
-
return C(f) === o;
|
|
904
|
-
}, z.isContextProvider = function(f) {
|
|
905
|
-
return C(f) === i;
|
|
906
|
-
}, z.isElement = function(f) {
|
|
907
|
-
return typeof f == "object" && f !== null && f.$$typeof === a;
|
|
908
|
-
}, z.isForwardRef = function(f) {
|
|
909
|
-
return C(f) === v;
|
|
910
|
-
}, z.isFragment = function(f) {
|
|
911
|
-
return C(f) === e;
|
|
912
|
-
}, z.isLazy = function(f) {
|
|
913
|
-
return C(f) === E;
|
|
914
|
-
}, z.isMemo = function(f) {
|
|
915
|
-
return C(f) === _;
|
|
916
|
-
}, z.isPortal = function(f) {
|
|
917
|
-
return C(f) === t;
|
|
918
|
-
}, z.isProfiler = function(f) {
|
|
919
|
-
return C(f) === n;
|
|
920
|
-
}, z.isStrictMode = function(f) {
|
|
921
|
-
return C(f) === r;
|
|
922
|
-
}, z.isSuspense = function(f) {
|
|
923
|
-
return C(f) === d;
|
|
924
|
-
}, z.isValidElementType = function(f) {
|
|
925
|
-
return typeof f == "string" || typeof f == "function" || f === e || f === h || f === n || f === r || f === d || f === m || typeof f == "object" && f !== null && (f.$$typeof === E || f.$$typeof === _ || f.$$typeof === i || f.$$typeof === o || f.$$typeof === v || f.$$typeof === k || f.$$typeof === $ || f.$$typeof === N || f.$$typeof === M);
|
|
926
|
-
}, z.typeOf = C, z;
|
|
927
|
-
}
|
|
928
|
-
process.env.NODE_ENV === "production" ? xr.exports = js() : xr.exports = zs();
|
|
929
|
-
var ir = xr.exports;
|
|
930
|
-
function Ys(s) {
|
|
931
|
-
function a(S, A, R, I, l) {
|
|
932
|
-
for (var V = 0, b = 0, X = 0, j = 0, W, w, J = 0, ae = 0, F, ee = F = W = 0, L = 0, q = 0, Se = 0, K = 0, Oe = R.length, Re = Oe - 1, oe, O = "", G = "", De = "", Me = "", fe; L < Oe; ) {
|
|
933
|
-
if (w = R.charCodeAt(L), L === Re && b + j + X + V !== 0 && (b !== 0 && (w = b === 47 ? 10 : 47), j = X = V = 0, Oe++, Re++), b + j + X + V === 0) {
|
|
934
|
-
if (L === Re && (0 < q && (O = O.replace(m, "")), 0 < O.trim().length)) {
|
|
935
|
-
switch (w) {
|
|
936
|
-
case 32:
|
|
937
|
-
case 9:
|
|
938
|
-
case 59:
|
|
939
|
-
case 13:
|
|
940
|
-
case 10:
|
|
941
|
-
break;
|
|
942
|
-
default:
|
|
943
|
-
O += R.charAt(L);
|
|
944
|
-
}
|
|
945
|
-
w = 59;
|
|
946
|
-
}
|
|
947
|
-
switch (w) {
|
|
948
|
-
case 123:
|
|
949
|
-
for (O = O.trim(), W = O.charCodeAt(0), F = 1, K = ++L; L < Oe; ) {
|
|
950
|
-
switch (w = R.charCodeAt(L)) {
|
|
951
|
-
case 123:
|
|
952
|
-
F++;
|
|
953
|
-
break;
|
|
954
|
-
case 125:
|
|
955
|
-
F--;
|
|
956
|
-
break;
|
|
957
|
-
case 47:
|
|
958
|
-
switch (w = R.charCodeAt(L + 1)) {
|
|
959
|
-
case 42:
|
|
960
|
-
case 47:
|
|
961
|
-
e: {
|
|
962
|
-
for (ee = L + 1; ee < Re; ++ee)
|
|
963
|
-
switch (R.charCodeAt(ee)) {
|
|
964
|
-
case 47:
|
|
965
|
-
if (w === 42 && R.charCodeAt(ee - 1) === 42 && L + 2 !== ee) {
|
|
966
|
-
L = ee + 1;
|
|
967
|
-
break e;
|
|
968
|
-
}
|
|
969
|
-
break;
|
|
970
|
-
case 10:
|
|
971
|
-
if (w === 47) {
|
|
972
|
-
L = ee + 1;
|
|
973
|
-
break e;
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
L = ee;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
break;
|
|
980
|
-
case 91:
|
|
981
|
-
w++;
|
|
982
|
-
case 40:
|
|
983
|
-
w++;
|
|
984
|
-
case 34:
|
|
985
|
-
case 39:
|
|
986
|
-
for (; L++ < Re && R.charCodeAt(L) !== w; )
|
|
987
|
-
;
|
|
988
|
-
}
|
|
989
|
-
if (F === 0)
|
|
990
|
-
break;
|
|
991
|
-
L++;
|
|
992
|
-
}
|
|
993
|
-
switch (F = R.substring(K, L), W === 0 && (W = (O = O.replace(d, "").trim()).charCodeAt(0)), W) {
|
|
994
|
-
case 64:
|
|
995
|
-
switch (0 < q && (O = O.replace(m, "")), w = O.charCodeAt(1), w) {
|
|
996
|
-
case 100:
|
|
997
|
-
case 109:
|
|
998
|
-
case 115:
|
|
999
|
-
case 45:
|
|
1000
|
-
q = A;
|
|
1001
|
-
break;
|
|
1002
|
-
default:
|
|
1003
|
-
q = ve;
|
|
1004
|
-
}
|
|
1005
|
-
if (F = a(A, q, F, w, l + 1), K = F.length, 0 < Z && (q = t(ve, O, Se), fe = o(3, F, q, A, H, Y, K, w, l, I), O = q.join(""), fe !== void 0 && (K = (F = fe.trim()).length) === 0 && (w = 0, F = "")), 0 < K)
|
|
1006
|
-
switch (w) {
|
|
1007
|
-
case 115:
|
|
1008
|
-
O = O.replace(Q, i);
|
|
1009
|
-
case 100:
|
|
1010
|
-
case 109:
|
|
1011
|
-
case 45:
|
|
1012
|
-
F = O + "{" + F + "}";
|
|
1013
|
-
break;
|
|
1014
|
-
case 107:
|
|
1015
|
-
O = O.replace(N, "$1 $2"), F = O + "{" + F + "}", F = re === 1 || re === 2 && n("@" + F, 3) ? "@-webkit-" + F + "@" + F : "@" + F;
|
|
1016
|
-
break;
|
|
1017
|
-
default:
|
|
1018
|
-
F = O + F, I === 112 && (F = (G += F, ""));
|
|
1019
|
-
}
|
|
1020
|
-
else
|
|
1021
|
-
F = "";
|
|
1022
|
-
break;
|
|
1023
|
-
default:
|
|
1024
|
-
F = a(A, t(A, O, Se), F, I, l + 1);
|
|
1025
|
-
}
|
|
1026
|
-
De += F, F = Se = q = ee = W = 0, O = "", w = R.charCodeAt(++L);
|
|
1027
|
-
break;
|
|
1028
|
-
case 125:
|
|
1029
|
-
case 59:
|
|
1030
|
-
if (O = (0 < q ? O.replace(m, "") : O).trim(), 1 < (K = O.length))
|
|
1031
|
-
switch (ee === 0 && (W = O.charCodeAt(0), W === 45 || 96 < W && 123 > W) && (K = (O = O.replace(" ", ":")).length), 0 < Z && (fe = o(1, O, A, S, H, Y, G.length, I, l, I)) !== void 0 && (K = (O = fe.trim()).length) === 0 && (O = "\0\0"), W = O.charCodeAt(0), w = O.charCodeAt(1), W) {
|
|
1032
|
-
case 0:
|
|
1033
|
-
break;
|
|
1034
|
-
case 64:
|
|
1035
|
-
if (w === 105 || w === 99) {
|
|
1036
|
-
Me += O + R.charAt(L);
|
|
1037
|
-
break;
|
|
1038
|
-
}
|
|
1039
|
-
default:
|
|
1040
|
-
O.charCodeAt(K - 1) !== 58 && (G += r(O, W, w, O.charCodeAt(2)));
|
|
1041
|
-
}
|
|
1042
|
-
Se = q = ee = W = 0, O = "", w = R.charCodeAt(++L);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
switch (w) {
|
|
1046
|
-
case 13:
|
|
1047
|
-
case 10:
|
|
1048
|
-
b === 47 ? b = 0 : 1 + W === 0 && I !== 107 && 0 < O.length && (q = 1, O += "\0"), 0 < Z * Ae && o(0, O, A, S, H, Y, G.length, I, l, I), Y = 1, H++;
|
|
1049
|
-
break;
|
|
1050
|
-
case 59:
|
|
1051
|
-
case 125:
|
|
1052
|
-
if (b + j + X + V === 0) {
|
|
1053
|
-
Y++;
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
default:
|
|
1057
|
-
switch (Y++, oe = R.charAt(L), w) {
|
|
1058
|
-
case 9:
|
|
1059
|
-
case 32:
|
|
1060
|
-
if (j + V + b === 0)
|
|
1061
|
-
switch (J) {
|
|
1062
|
-
case 44:
|
|
1063
|
-
case 58:
|
|
1064
|
-
case 9:
|
|
1065
|
-
case 32:
|
|
1066
|
-
oe = "";
|
|
1067
|
-
break;
|
|
1068
|
-
default:
|
|
1069
|
-
w !== 32 && (oe = " ");
|
|
1070
|
-
}
|
|
1071
|
-
break;
|
|
1072
|
-
case 0:
|
|
1073
|
-
oe = "\\0";
|
|
1074
|
-
break;
|
|
1075
|
-
case 12:
|
|
1076
|
-
oe = "\\f";
|
|
1077
|
-
break;
|
|
1078
|
-
case 11:
|
|
1079
|
-
oe = "\\v";
|
|
1080
|
-
break;
|
|
1081
|
-
case 38:
|
|
1082
|
-
j + b + V === 0 && (q = Se = 1, oe = "\f" + oe);
|
|
1083
|
-
break;
|
|
1084
|
-
case 108:
|
|
1085
|
-
if (j + b + V + se === 0 && 0 < ee)
|
|
1086
|
-
switch (L - ee) {
|
|
1087
|
-
case 2:
|
|
1088
|
-
J === 112 && R.charCodeAt(L - 3) === 58 && (se = J);
|
|
1089
|
-
case 8:
|
|
1090
|
-
ae === 111 && (se = ae);
|
|
1091
|
-
}
|
|
1092
|
-
break;
|
|
1093
|
-
case 58:
|
|
1094
|
-
j + b + V === 0 && (ee = L);
|
|
1095
|
-
break;
|
|
1096
|
-
case 44:
|
|
1097
|
-
b + X + j + V === 0 && (q = 1, oe += "\r");
|
|
1098
|
-
break;
|
|
1099
|
-
case 34:
|
|
1100
|
-
case 39:
|
|
1101
|
-
b === 0 && (j = j === w ? 0 : j === 0 ? w : j);
|
|
1102
|
-
break;
|
|
1103
|
-
case 91:
|
|
1104
|
-
j + b + X === 0 && V++;
|
|
1105
|
-
break;
|
|
1106
|
-
case 93:
|
|
1107
|
-
j + b + X === 0 && V--;
|
|
1108
|
-
break;
|
|
1109
|
-
case 41:
|
|
1110
|
-
j + b + V === 0 && X--;
|
|
1111
|
-
break;
|
|
1112
|
-
case 40:
|
|
1113
|
-
if (j + b + V === 0) {
|
|
1114
|
-
if (W === 0)
|
|
1115
|
-
switch (2 * J + 3 * ae) {
|
|
1116
|
-
case 533:
|
|
1117
|
-
break;
|
|
1118
|
-
default:
|
|
1119
|
-
W = 1;
|
|
1120
|
-
}
|
|
1121
|
-
X++;
|
|
1122
|
-
}
|
|
1123
|
-
break;
|
|
1124
|
-
case 64:
|
|
1125
|
-
b + X + j + V + ee + F === 0 && (F = 1);
|
|
1126
|
-
break;
|
|
1127
|
-
case 42:
|
|
1128
|
-
case 47:
|
|
1129
|
-
if (!(0 < j + V + X))
|
|
1130
|
-
switch (b) {
|
|
1131
|
-
case 0:
|
|
1132
|
-
switch (2 * w + 3 * R.charCodeAt(L + 1)) {
|
|
1133
|
-
case 235:
|
|
1134
|
-
b = 47;
|
|
1135
|
-
break;
|
|
1136
|
-
case 220:
|
|
1137
|
-
K = L, b = 42;
|
|
1138
|
-
}
|
|
1139
|
-
break;
|
|
1140
|
-
case 42:
|
|
1141
|
-
w === 47 && J === 42 && K + 2 !== L && (R.charCodeAt(K + 2) === 33 && (G += R.substring(K, L + 1)), oe = "", b = 0);
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
b === 0 && (O += oe);
|
|
1145
|
-
}
|
|
1146
|
-
ae = J, J = w, L++;
|
|
1147
|
-
}
|
|
1148
|
-
if (K = G.length, 0 < K) {
|
|
1149
|
-
if (q = A, 0 < Z && (fe = o(2, G, q, S, H, Y, K, I, l, I), fe !== void 0 && (G = fe).length === 0))
|
|
1150
|
-
return Me + G + De;
|
|
1151
|
-
if (G = q.join(",") + "{" + G + "}", re * se !== 0) {
|
|
1152
|
-
switch (re !== 2 || n(G, 2) || (se = 0), se) {
|
|
1153
|
-
case 111:
|
|
1154
|
-
G = G.replace(y, ":-moz-$1") + G;
|
|
1155
|
-
break;
|
|
1156
|
-
case 112:
|
|
1157
|
-
G = G.replace(C, "::-webkit-input-$1") + G.replace(C, "::-moz-$1") + G.replace(C, ":-ms-input-$1") + G;
|
|
1158
|
-
}
|
|
1159
|
-
se = 0;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
return Me + G + De;
|
|
1163
|
-
}
|
|
1164
|
-
function t(S, A, R) {
|
|
1165
|
-
var I = A.trim().split(k);
|
|
1166
|
-
A = I;
|
|
1167
|
-
var l = I.length, V = S.length;
|
|
1168
|
-
switch (V) {
|
|
1169
|
-
case 0:
|
|
1170
|
-
case 1:
|
|
1171
|
-
var b = 0;
|
|
1172
|
-
for (S = V === 0 ? "" : S[0] + " "; b < l; ++b)
|
|
1173
|
-
A[b] = e(S, A[b], R).trim();
|
|
1174
|
-
break;
|
|
1175
|
-
default:
|
|
1176
|
-
var X = b = 0;
|
|
1177
|
-
for (A = []; b < l; ++b)
|
|
1178
|
-
for (var j = 0; j < V; ++j)
|
|
1179
|
-
A[X++] = e(S[j] + " ", I[b], R).trim();
|
|
1180
|
-
}
|
|
1181
|
-
return A;
|
|
1182
|
-
}
|
|
1183
|
-
function e(S, A, R) {
|
|
1184
|
-
var I = A.charCodeAt(0);
|
|
1185
|
-
switch (33 > I && (I = (A = A.trim()).charCodeAt(0)), I) {
|
|
1186
|
-
case 38:
|
|
1187
|
-
return A.replace($, "$1" + S.trim());
|
|
1188
|
-
case 58:
|
|
1189
|
-
return S.trim() + A.replace($, "$1" + S.trim());
|
|
1190
|
-
default:
|
|
1191
|
-
if (0 < 1 * R && 0 < A.indexOf("\f"))
|
|
1192
|
-
return A.replace($, (S.charCodeAt(0) === 58 ? "" : "$1") + S.trim());
|
|
1193
|
-
}
|
|
1194
|
-
return S + A;
|
|
1195
|
-
}
|
|
1196
|
-
function r(S, A, R, I) {
|
|
1197
|
-
var l = S + ";", V = 2 * A + 3 * R + 4 * I;
|
|
1198
|
-
if (V === 944) {
|
|
1199
|
-
S = l.indexOf(":", 9) + 1;
|
|
1200
|
-
var b = l.substring(S, l.length - 1).trim();
|
|
1201
|
-
return b = l.substring(0, S).trim() + b + ";", re === 1 || re === 2 && n(b, 1) ? "-webkit-" + b + b : b;
|
|
1202
|
-
}
|
|
1203
|
-
if (re === 0 || re === 2 && !n(l, 1))
|
|
1204
|
-
return l;
|
|
1205
|
-
switch (V) {
|
|
1206
|
-
case 1015:
|
|
1207
|
-
return l.charCodeAt(10) === 97 ? "-webkit-" + l + l : l;
|
|
1208
|
-
case 951:
|
|
1209
|
-
return l.charCodeAt(3) === 116 ? "-webkit-" + l + l : l;
|
|
1210
|
-
case 963:
|
|
1211
|
-
return l.charCodeAt(5) === 110 ? "-webkit-" + l + l : l;
|
|
1212
|
-
case 1009:
|
|
1213
|
-
if (l.charCodeAt(4) !== 100)
|
|
1214
|
-
break;
|
|
1215
|
-
case 969:
|
|
1216
|
-
case 942:
|
|
1217
|
-
return "-webkit-" + l + l;
|
|
1218
|
-
case 978:
|
|
1219
|
-
return "-webkit-" + l + "-moz-" + l + l;
|
|
1220
|
-
case 1019:
|
|
1221
|
-
case 983:
|
|
1222
|
-
return "-webkit-" + l + "-moz-" + l + "-ms-" + l + l;
|
|
1223
|
-
case 883:
|
|
1224
|
-
if (l.charCodeAt(8) === 45)
|
|
1225
|
-
return "-webkit-" + l + l;
|
|
1226
|
-
if (0 < l.indexOf("image-set(", 11))
|
|
1227
|
-
return l.replace(ye, "$1-webkit-$2") + l;
|
|
1228
|
-
break;
|
|
1229
|
-
case 932:
|
|
1230
|
-
if (l.charCodeAt(4) === 45)
|
|
1231
|
-
switch (l.charCodeAt(5)) {
|
|
1232
|
-
case 103:
|
|
1233
|
-
return "-webkit-box-" + l.replace("-grow", "") + "-webkit-" + l + "-ms-" + l.replace("grow", "positive") + l;
|
|
1234
|
-
case 115:
|
|
1235
|
-
return "-webkit-" + l + "-ms-" + l.replace("shrink", "negative") + l;
|
|
1236
|
-
case 98:
|
|
1237
|
-
return "-webkit-" + l + "-ms-" + l.replace("basis", "preferred-size") + l;
|
|
1238
|
-
}
|
|
1239
|
-
return "-webkit-" + l + "-ms-" + l + l;
|
|
1240
|
-
case 964:
|
|
1241
|
-
return "-webkit-" + l + "-ms-flex-" + l + l;
|
|
1242
|
-
case 1023:
|
|
1243
|
-
if (l.charCodeAt(8) !== 99)
|
|
1244
|
-
break;
|
|
1245
|
-
return b = l.substring(l.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + b + "-webkit-" + l + "-ms-flex-pack" + b + l;
|
|
1246
|
-
case 1005:
|
|
1247
|
-
return E.test(l) ? l.replace(_, ":-webkit-") + l.replace(_, ":-moz-") + l : l;
|
|
1248
|
-
case 1e3:
|
|
1249
|
-
switch (b = l.substring(13).trim(), A = b.indexOf("-") + 1, b.charCodeAt(0) + b.charCodeAt(A)) {
|
|
1250
|
-
case 226:
|
|
1251
|
-
b = l.replace(f, "tb");
|
|
1252
|
-
break;
|
|
1253
|
-
case 232:
|
|
1254
|
-
b = l.replace(f, "tb-rl");
|
|
1255
|
-
break;
|
|
1256
|
-
case 220:
|
|
1257
|
-
b = l.replace(f, "lr");
|
|
1258
|
-
break;
|
|
1259
|
-
default:
|
|
1260
|
-
return l;
|
|
1261
|
-
}
|
|
1262
|
-
return "-webkit-" + l + "-ms-" + b + l;
|
|
1263
|
-
case 1017:
|
|
1264
|
-
if (l.indexOf("sticky", 9) === -1)
|
|
1265
|
-
break;
|
|
1266
|
-
case 975:
|
|
1267
|
-
switch (A = (l = S).length - 10, b = (l.charCodeAt(A) === 33 ? l.substring(0, A) : l).substring(S.indexOf(":", 7) + 1).trim(), V = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
1268
|
-
case 203:
|
|
1269
|
-
if (111 > b.charCodeAt(8))
|
|
1270
|
-
break;
|
|
1271
|
-
case 115:
|
|
1272
|
-
l = l.replace(b, "-webkit-" + b) + ";" + l;
|
|
1273
|
-
break;
|
|
1274
|
-
case 207:
|
|
1275
|
-
case 102:
|
|
1276
|
-
l = l.replace(b, "-webkit-" + (102 < V ? "inline-" : "") + "box") + ";" + l.replace(b, "-webkit-" + b) + ";" + l.replace(b, "-ms-" + b + "box") + ";" + l;
|
|
1277
|
-
}
|
|
1278
|
-
return l + ";";
|
|
1279
|
-
case 938:
|
|
1280
|
-
if (l.charCodeAt(5) === 45)
|
|
1281
|
-
switch (l.charCodeAt(6)) {
|
|
1282
|
-
case 105:
|
|
1283
|
-
return b = l.replace("-items", ""), "-webkit-" + l + "-webkit-box-" + b + "-ms-flex-" + b + l;
|
|
1284
|
-
case 115:
|
|
1285
|
-
return "-webkit-" + l + "-ms-flex-item-" + l.replace(ie, "") + l;
|
|
1286
|
-
default:
|
|
1287
|
-
return "-webkit-" + l + "-ms-flex-line-pack" + l.replace("align-content", "").replace(ie, "") + l;
|
|
1288
|
-
}
|
|
1289
|
-
break;
|
|
1290
|
-
case 973:
|
|
1291
|
-
case 989:
|
|
1292
|
-
if (l.charCodeAt(3) !== 45 || l.charCodeAt(4) === 122)
|
|
1293
|
-
break;
|
|
1294
|
-
case 931:
|
|
1295
|
-
case 953:
|
|
1296
|
-
if (pe.test(S) === !0)
|
|
1297
|
-
return (b = S.substring(S.indexOf(":") + 1)).charCodeAt(0) === 115 ? r(S.replace("stretch", "fill-available"), A, R, I).replace(":fill-available", ":stretch") : l.replace(b, "-webkit-" + b) + l.replace(b, "-moz-" + b.replace("fill-", "")) + l;
|
|
1298
|
-
break;
|
|
1299
|
-
case 962:
|
|
1300
|
-
if (l = "-webkit-" + l + (l.charCodeAt(5) === 102 ? "-ms-" + l : "") + l, R + I === 211 && l.charCodeAt(13) === 105 && 0 < l.indexOf("transform", 10))
|
|
1301
|
-
return l.substring(0, l.indexOf(";", 27) + 1).replace(M, "$1-webkit-$2") + l;
|
|
1302
|
-
}
|
|
1303
|
-
return l;
|
|
1304
|
-
}
|
|
1305
|
-
function n(S, A) {
|
|
1306
|
-
var R = S.indexOf(A === 1 ? ":" : "{"), I = S.substring(0, A !== 3 ? R : 10);
|
|
1307
|
-
return R = S.substring(R + 1, S.length - 1), me(A !== 2 ? I : I.replace(te, "$1"), R, A);
|
|
1308
|
-
}
|
|
1309
|
-
function i(S, A) {
|
|
1310
|
-
var R = r(A, A.charCodeAt(0), A.charCodeAt(1), A.charCodeAt(2));
|
|
1311
|
-
return R !== A + ";" ? R.replace(ue, " or ($1)").substring(4) : "(" + A + ")";
|
|
1312
|
-
}
|
|
1313
|
-
function o(S, A, R, I, l, V, b, X, j, W) {
|
|
1314
|
-
for (var w = 0, J = A, ae; w < Z; ++w)
|
|
1315
|
-
switch (ae = xe[w].call(v, S, J, R, I, l, V, b, X, j, W)) {
|
|
1316
|
-
case void 0:
|
|
1317
|
-
case !1:
|
|
1318
|
-
case !0:
|
|
1319
|
-
case null:
|
|
1320
|
-
break;
|
|
1321
|
-
default:
|
|
1322
|
-
J = ae;
|
|
1323
|
-
}
|
|
1324
|
-
if (J !== A)
|
|
1325
|
-
return J;
|
|
1326
|
-
}
|
|
1327
|
-
function u(S) {
|
|
1328
|
-
switch (S) {
|
|
1329
|
-
case void 0:
|
|
1330
|
-
case null:
|
|
1331
|
-
Z = xe.length = 0;
|
|
1332
|
-
break;
|
|
1333
|
-
default:
|
|
1334
|
-
if (typeof S == "function")
|
|
1335
|
-
xe[Z++] = S;
|
|
1336
|
-
else if (typeof S == "object")
|
|
1337
|
-
for (var A = 0, R = S.length; A < R; ++A)
|
|
1338
|
-
u(S[A]);
|
|
1339
|
-
else
|
|
1340
|
-
Ae = !!S | 0;
|
|
1341
|
-
}
|
|
1342
|
-
return u;
|
|
1343
|
-
}
|
|
1344
|
-
function h(S) {
|
|
1345
|
-
return S = S.prefix, S !== void 0 && (me = null, S ? typeof S != "function" ? re = 1 : (re = 2, me = S) : re = 0), h;
|
|
1346
|
-
}
|
|
1347
|
-
function v(S, A) {
|
|
1348
|
-
var R = S;
|
|
1349
|
-
if (33 > R.charCodeAt(0) && (R = R.trim()), Ee = R, R = [Ee], 0 < Z) {
|
|
1350
|
-
var I = o(-1, A, R, R, H, Y, 0, 0, 0, 0);
|
|
1351
|
-
I !== void 0 && typeof I == "string" && (A = I);
|
|
1352
|
-
}
|
|
1353
|
-
var l = a(ve, R, A, 0, 0);
|
|
1354
|
-
return 0 < Z && (I = o(-2, l, R, R, H, Y, l.length, 0, 0, 0), I !== void 0 && (l = I)), Ee = "", se = 0, Y = H = 1, l;
|
|
1355
|
-
}
|
|
1356
|
-
var d = /^\0+/g, m = /[\0\r\f]/g, _ = /: */g, E = /zoo|gra/, M = /([,: ])(transform)/g, k = /,\r+?/g, $ = /([\t\r\n ])*\f?&/g, N = /@(k\w+)\s*(\S*)\s*/, C = /::(place)/g, y = /:(read-only)/g, f = /[svh]\w+-[tblr]{2}/, Q = /\(\s*(.*)\s*\)/g, ue = /([\s\S]*?);/g, ie = /-self|flex-/g, te = /[^]*?(:[rp][el]a[\w-]+)[^]*/, pe = /stretch|:\s*\w+\-(?:conte|avail)/, ye = /([^-])(image-set\()/, Y = 1, H = 1, se = 0, re = 1, ve = [], xe = [], Z = 0, me = null, Ae = 0, Ee = "";
|
|
1357
|
-
return v.use = u, v.set = h, s !== void 0 && h(s), v;
|
|
1358
|
-
}
|
|
1359
|
-
var Ws = {
|
|
1360
|
-
animationIterationCount: 1,
|
|
1361
|
-
borderImageOutset: 1,
|
|
1362
|
-
borderImageSlice: 1,
|
|
1363
|
-
borderImageWidth: 1,
|
|
1364
|
-
boxFlex: 1,
|
|
1365
|
-
boxFlexGroup: 1,
|
|
1366
|
-
boxOrdinalGroup: 1,
|
|
1367
|
-
columnCount: 1,
|
|
1368
|
-
columns: 1,
|
|
1369
|
-
flex: 1,
|
|
1370
|
-
flexGrow: 1,
|
|
1371
|
-
flexPositive: 1,
|
|
1372
|
-
flexShrink: 1,
|
|
1373
|
-
flexNegative: 1,
|
|
1374
|
-
flexOrder: 1,
|
|
1375
|
-
gridRow: 1,
|
|
1376
|
-
gridRowEnd: 1,
|
|
1377
|
-
gridRowSpan: 1,
|
|
1378
|
-
gridRowStart: 1,
|
|
1379
|
-
gridColumn: 1,
|
|
1380
|
-
gridColumnEnd: 1,
|
|
1381
|
-
gridColumnSpan: 1,
|
|
1382
|
-
gridColumnStart: 1,
|
|
1383
|
-
msGridRow: 1,
|
|
1384
|
-
msGridRowSpan: 1,
|
|
1385
|
-
msGridColumn: 1,
|
|
1386
|
-
msGridColumnSpan: 1,
|
|
1387
|
-
fontWeight: 1,
|
|
1388
|
-
lineHeight: 1,
|
|
1389
|
-
opacity: 1,
|
|
1390
|
-
order: 1,
|
|
1391
|
-
orphans: 1,
|
|
1392
|
-
tabSize: 1,
|
|
1393
|
-
widows: 1,
|
|
1394
|
-
zIndex: 1,
|
|
1395
|
-
zoom: 1,
|
|
1396
|
-
WebkitLineClamp: 1,
|
|
1397
|
-
// SVG-related properties
|
|
1398
|
-
fillOpacity: 1,
|
|
1399
|
-
floodOpacity: 1,
|
|
1400
|
-
stopOpacity: 1,
|
|
1401
|
-
strokeDasharray: 1,
|
|
1402
|
-
strokeDashoffset: 1,
|
|
1403
|
-
strokeMiterlimit: 1,
|
|
1404
|
-
strokeOpacity: 1,
|
|
1405
|
-
strokeWidth: 1
|
|
1406
|
-
}, Gs = {
|
|
1407
|
-
stdout: !1,
|
|
1408
|
-
stderr: !1
|
|
1409
|
-
};
|
|
1410
|
-
const Hs = /* @__PURE__ */ Nr(Gs);
|
|
1411
|
-
var Ir = ir, qs = {
|
|
1412
|
-
childContextTypes: !0,
|
|
1413
|
-
contextType: !0,
|
|
1414
|
-
contextTypes: !0,
|
|
1415
|
-
defaultProps: !0,
|
|
1416
|
-
displayName: !0,
|
|
1417
|
-
getDefaultProps: !0,
|
|
1418
|
-
getDerivedStateFromError: !0,
|
|
1419
|
-
getDerivedStateFromProps: !0,
|
|
1420
|
-
mixins: !0,
|
|
1421
|
-
propTypes: !0,
|
|
1422
|
-
type: !0
|
|
1423
|
-
}, Xs = {
|
|
1424
|
-
name: !0,
|
|
1425
|
-
length: !0,
|
|
1426
|
-
prototype: !0,
|
|
1427
|
-
caller: !0,
|
|
1428
|
-
callee: !0,
|
|
1429
|
-
arguments: !0,
|
|
1430
|
-
arity: !0
|
|
1431
|
-
}, Ks = {
|
|
1432
|
-
$$typeof: !0,
|
|
1433
|
-
render: !0,
|
|
1434
|
-
defaultProps: !0,
|
|
1435
|
-
displayName: !0,
|
|
1436
|
-
propTypes: !0
|
|
1437
|
-
}, Ot = {
|
|
1438
|
-
$$typeof: !0,
|
|
1439
|
-
compare: !0,
|
|
1440
|
-
defaultProps: !0,
|
|
1441
|
-
displayName: !0,
|
|
1442
|
-
propTypes: !0,
|
|
1443
|
-
type: !0
|
|
1444
|
-
}, $r = {};
|
|
1445
|
-
$r[Ir.ForwardRef] = Ks;
|
|
1446
|
-
$r[Ir.Memo] = Ot;
|
|
1447
|
-
function it(s) {
|
|
1448
|
-
return Ir.isMemo(s) ? Ot : $r[s.$$typeof] || qs;
|
|
1449
|
-
}
|
|
1450
|
-
var Qs = Object.defineProperty, Zs = Object.getOwnPropertyNames, at = Object.getOwnPropertySymbols, Js = Object.getOwnPropertyDescriptor, eo = Object.getPrototypeOf, st = Object.prototype;
|
|
1451
|
-
function Pt(s, a, t) {
|
|
1452
|
-
if (typeof a != "string") {
|
|
1453
|
-
if (st) {
|
|
1454
|
-
var e = eo(a);
|
|
1455
|
-
e && e !== st && Pt(s, e, t);
|
|
1456
|
-
}
|
|
1457
|
-
var r = Zs(a);
|
|
1458
|
-
at && (r = r.concat(at(a)));
|
|
1459
|
-
for (var n = it(s), i = it(a), o = 0; o < r.length; ++o) {
|
|
1460
|
-
var u = r[o];
|
|
1461
|
-
if (!Xs[u] && !(t && t[u]) && !(i && i[u]) && !(n && n[u])) {
|
|
1462
|
-
var h = Js(a, u);
|
|
1463
|
-
try {
|
|
1464
|
-
Qs(s, u, h);
|
|
1465
|
-
} catch {
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
return s;
|
|
1471
|
-
}
|
|
1472
|
-
var ro = Pt;
|
|
1473
|
-
const Nt = /* @__PURE__ */ Nr(ro);
|
|
1474
|
-
var to = /(a)(d)/gi, Ge = 52, ot = function(a) {
|
|
1475
|
-
return String.fromCharCode(a + (a > 25 ? 39 : 97));
|
|
1476
|
-
};
|
|
1477
|
-
function no(s) {
|
|
1478
|
-
var a = "", t;
|
|
1479
|
-
for (t = Math.abs(s); t > Ge; t = t / Ge | 0)
|
|
1480
|
-
a = ot(t % Ge) + a;
|
|
1481
|
-
return (ot(t % Ge) + a).replace(to, "$1-$2");
|
|
1482
|
-
}
|
|
1483
|
-
var It = 5381, $t = function(a, t) {
|
|
1484
|
-
for (var e = t.length; e; )
|
|
1485
|
-
a = a * 33 ^ t.charCodeAt(--e);
|
|
1486
|
-
return a;
|
|
1487
|
-
}, io = function(a) {
|
|
1488
|
-
return $t(It, a);
|
|
1489
|
-
}, ao = function(s) {
|
|
1490
|
-
return no(io(s) >>> 0);
|
|
1491
|
-
};
|
|
1492
|
-
function er(s) {
|
|
1493
|
-
return (process.env.NODE_ENV !== "production" ? typeof s == "string" && s : !1) || // $FlowFixMe
|
|
1494
|
-
s.displayName || // $FlowFixMe
|
|
1495
|
-
s.name || "Component";
|
|
1496
|
-
}
|
|
1497
|
-
function ze(s) {
|
|
1498
|
-
return typeof s == "function";
|
|
1499
|
-
}
|
|
1500
|
-
function so(s) {
|
|
1501
|
-
return typeof s == "function" && !(s.prototype && s.prototype.isReactComponent);
|
|
1502
|
-
}
|
|
1503
|
-
var kr = function(s) {
|
|
1504
|
-
return s !== null && typeof s == "object" && (s.toString ? s.toString() : Object.prototype.toString.call(s)) === "[object Object]" && !ir.typeOf(s);
|
|
1505
|
-
};
|
|
1506
|
-
function Fr(s) {
|
|
1507
|
-
return s && typeof s.styledComponentId == "string";
|
|
1508
|
-
}
|
|
1509
|
-
function ct(s, a) {
|
|
1510
|
-
for (var t = 0; t < a.length; t++) {
|
|
1511
|
-
var e = a[t];
|
|
1512
|
-
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(s, e.key, e);
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
function de(s, a, t) {
|
|
1516
|
-
return a && ct(s.prototype, a), t && ct(s, t), s;
|
|
1517
|
-
}
|
|
1518
|
-
function ce() {
|
|
1519
|
-
return ce = Object.assign || function(s) {
|
|
1520
|
-
for (var a = 1; a < arguments.length; a++) {
|
|
1521
|
-
var t = arguments[a];
|
|
1522
|
-
for (var e in t)
|
|
1523
|
-
Object.prototype.hasOwnProperty.call(t, e) && (s[e] = t[e]);
|
|
1524
|
-
}
|
|
1525
|
-
return s;
|
|
1526
|
-
}, ce.apply(this, arguments);
|
|
1527
|
-
}
|
|
1528
|
-
function Ce(s, a) {
|
|
1529
|
-
s.prototype = Object.create(a.prototype), s.prototype.constructor = s, s.__proto__ = a;
|
|
1530
|
-
}
|
|
1531
|
-
function kt(s, a) {
|
|
1532
|
-
if (s == null)
|
|
1533
|
-
return {};
|
|
1534
|
-
var t = {}, e = Object.keys(s), r, n;
|
|
1535
|
-
for (n = 0; n < e.length; n++)
|
|
1536
|
-
r = e[n], !(a.indexOf(r) >= 0) && (t[r] = s[r]);
|
|
1537
|
-
return t;
|
|
1538
|
-
}
|
|
1539
|
-
var Fe = typeof process < "u" && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Ft = "active", Dt = "data-styled-version", Mt = "5.3.6", Dr = `/*!sc*/
|
|
1540
|
-
`, Mr = typeof window < "u" && "HTMLElement" in window, oo = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && typeof process.env.REACT_APP_SC_DISABLE_SPEEDY < "u" && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && typeof process.env.SC_DISABLE_SPEEDY < "u" && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Lr = Object.freeze([]), $e = Object.freeze({}), co = {
|
|
1541
|
-
1: `Cannot create styled-component for component: %s.
|
|
1542
|
-
|
|
1543
|
-
`,
|
|
1544
|
-
2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1545
|
-
|
|
1546
|
-
- Are you trying to reuse it across renders?
|
|
1547
|
-
- Are you accidentally calling collectStyles twice?
|
|
1548
|
-
|
|
1549
|
-
`,
|
|
1550
|
-
3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1551
|
-
|
|
1552
|
-
`,
|
|
1553
|
-
4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1554
|
-
|
|
1555
|
-
- Does this error occur on the client and is your target falsy?
|
|
1556
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
1557
|
-
|
|
1558
|
-
`,
|
|
1559
|
-
5: `The clone method cannot be used on the client!
|
|
1560
|
-
|
|
1561
|
-
- Are you running in a client-like environment on the server?
|
|
1562
|
-
- Are you trying to run SSR on the client?
|
|
1563
|
-
|
|
1564
|
-
`,
|
|
1565
|
-
6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1566
|
-
|
|
1567
|
-
- Are you using a custom target that isn't mounted?
|
|
1568
|
-
- Does your document not have a valid head element?
|
|
1569
|
-
- Have you accidentally removed a style tag manually?
|
|
1570
|
-
|
|
1571
|
-
`,
|
|
1572
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1573
|
-
8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1574
|
-
|
|
1575
|
-
`,
|
|
1576
|
-
9: "Missing document `<head>`\n\n",
|
|
1577
|
-
10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1578
|
-
|
|
1579
|
-
`,
|
|
1580
|
-
11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1581
|
-
|
|
1582
|
-
`,
|
|
1583
|
-
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
1584
|
-
13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1585
|
-
|
|
1586
|
-
`,
|
|
1587
|
-
14: `ThemeProvider: "theme" prop is required.
|
|
1588
|
-
|
|
1589
|
-
`,
|
|
1590
|
-
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
1591
|
-
16: `Reached the limit of how many styled components may be created at group %s.
|
|
1592
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1593
|
-
as for instance in your render method then you may be running into this limitation.
|
|
1594
|
-
|
|
1595
|
-
`,
|
|
1596
|
-
17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1597
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
1598
|
-
`
|
|
1599
|
-
}, uo = process.env.NODE_ENV !== "production" ? co : {};
|
|
1600
|
-
function fo() {
|
|
1601
|
-
for (var s = arguments.length <= 0 ? void 0 : arguments[0], a = [], t = 1, e = arguments.length; t < e; t += 1)
|
|
1602
|
-
a.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
|
|
1603
|
-
return a.forEach(function(r) {
|
|
1604
|
-
s = s.replace(/%[a-z]/, r);
|
|
1605
|
-
}), s;
|
|
1606
|
-
}
|
|
1607
|
-
function we(s) {
|
|
1608
|
-
for (var a = arguments.length, t = new Array(a > 1 ? a - 1 : 0), e = 1; e < a; e++)
|
|
1609
|
-
t[e - 1] = arguments[e];
|
|
1610
|
-
throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + s + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(fo.apply(void 0, [uo[s]].concat(t)).trim());
|
|
1611
|
-
}
|
|
1612
|
-
var lo = function(a) {
|
|
1613
|
-
return new ho(a);
|
|
1614
|
-
}, ut = 512, ho = /* @__PURE__ */ function() {
|
|
1615
|
-
function s(t) {
|
|
1616
|
-
this.groupSizes = new Uint32Array(ut), this.length = ut, this.tag = t;
|
|
1617
|
-
}
|
|
1618
|
-
var a = s.prototype;
|
|
1619
|
-
return a.indexOfGroup = function(e) {
|
|
1620
|
-
for (var r = 0, n = 0; n < e; n++)
|
|
1621
|
-
r += this.groupSizes[n];
|
|
1622
|
-
return r;
|
|
1623
|
-
}, a.insertRules = function(e, r) {
|
|
1624
|
-
if (e >= this.groupSizes.length) {
|
|
1625
|
-
for (var n = this.groupSizes, i = n.length, o = i; e >= o; )
|
|
1626
|
-
o <<= 1, o < 0 && we(16, "" + e);
|
|
1627
|
-
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
1628
|
-
for (var u = i; u < o; u++)
|
|
1629
|
-
this.groupSizes[u] = 0;
|
|
1630
|
-
}
|
|
1631
|
-
for (var h = this.indexOfGroup(e + 1), v = 0, d = r.length; v < d; v++)
|
|
1632
|
-
this.tag.insertRule(h, r[v]) && (this.groupSizes[e]++, h++);
|
|
1633
|
-
}, a.clearGroup = function(e) {
|
|
1634
|
-
if (e < this.length) {
|
|
1635
|
-
var r = this.groupSizes[e], n = this.indexOfGroup(e), i = n + r;
|
|
1636
|
-
this.groupSizes[e] = 0;
|
|
1637
|
-
for (var o = n; o < i; o++)
|
|
1638
|
-
this.tag.deleteRule(n);
|
|
1639
|
-
}
|
|
1640
|
-
}, a.getGroup = function(e) {
|
|
1641
|
-
var r = "";
|
|
1642
|
-
if (e >= this.length || this.groupSizes[e] === 0)
|
|
1643
|
-
return r;
|
|
1644
|
-
for (var n = this.groupSizes[e], i = this.indexOfGroup(e), o = i + n, u = i; u < o; u++)
|
|
1645
|
-
r += "" + this.tag.getRule(u) + Dr;
|
|
1646
|
-
return r;
|
|
1647
|
-
}, s;
|
|
1648
|
-
}(), po = 1 << 30, Je = /* @__PURE__ */ new Map(), rr = /* @__PURE__ */ new Map(), Ue = 1, He = function(a) {
|
|
1649
|
-
if (Je.has(a))
|
|
1650
|
-
return Je.get(a);
|
|
1651
|
-
for (; rr.has(Ue); )
|
|
1652
|
-
Ue++;
|
|
1653
|
-
var t = Ue++;
|
|
1654
|
-
return process.env.NODE_ENV !== "production" && ((t | 0) < 0 || t > po) && we(16, "" + t), Je.set(a, t), rr.set(t, a), t;
|
|
1655
|
-
}, vo = function(a) {
|
|
1656
|
-
return rr.get(a);
|
|
1657
|
-
}, mo = function(a, t) {
|
|
1658
|
-
t >= Ue && (Ue = t + 1), Je.set(a, t), rr.set(t, a);
|
|
1659
|
-
}, wo = "style[" + Fe + "][" + Dt + '="' + Mt + '"]', go = new RegExp("^" + Fe + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), yo = function(a) {
|
|
1660
|
-
for (var t = a.getTag(), e = t.length, r = "", n = 0; n < e; n++) {
|
|
1661
|
-
var i = vo(n);
|
|
1662
|
-
if (i !== void 0) {
|
|
1663
|
-
var o = a.names.get(i), u = t.getGroup(n);
|
|
1664
|
-
if (!(!o || !u || !o.size)) {
|
|
1665
|
-
var h = Fe + ".g" + n + '[id="' + i + '"]', v = "";
|
|
1666
|
-
o !== void 0 && o.forEach(function(d) {
|
|
1667
|
-
d.length > 0 && (v += d + ",");
|
|
1668
|
-
}), r += "" + u + h + '{content:"' + v + '"}' + Dr;
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
return r;
|
|
1673
|
-
}, bo = function(a, t, e) {
|
|
1674
|
-
for (var r = e.split(","), n, i = 0, o = r.length; i < o; i++)
|
|
1675
|
-
(n = r[i]) && a.registerName(t, n);
|
|
1676
|
-
}, Co = function(a, t) {
|
|
1677
|
-
for (var e = (t.textContent || "").split(Dr), r = [], n = 0, i = e.length; n < i; n++) {
|
|
1678
|
-
var o = e[n].trim();
|
|
1679
|
-
if (o) {
|
|
1680
|
-
var u = o.match(go);
|
|
1681
|
-
if (u) {
|
|
1682
|
-
var h = parseInt(u[1], 10) | 0, v = u[2];
|
|
1683
|
-
h !== 0 && (mo(v, h), bo(a, v, u[3]), a.getTag().insertRules(h, r)), r.length = 0;
|
|
1684
|
-
} else
|
|
1685
|
-
r.push(o);
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
}, xo = function(a) {
|
|
1689
|
-
for (var t = document.querySelectorAll(wo), e = 0, r = t.length; e < r; e++) {
|
|
1690
|
-
var n = t[e];
|
|
1691
|
-
n && n.getAttribute(Fe) !== Ft && (Co(a, n), n.parentNode && n.parentNode.removeChild(n));
|
|
1692
|
-
}
|
|
1693
|
-
}, Ao = function() {
|
|
1694
|
-
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1695
|
-
}, Eo = 1, So = function(a) {
|
|
1696
|
-
for (var t = a.childNodes, e = t.length; e >= 0; e--) {
|
|
1697
|
-
var r = t[e];
|
|
1698
|
-
if (r && r.nodeType === Eo && r.hasAttribute(Fe))
|
|
1699
|
-
return r;
|
|
1700
|
-
}
|
|
1701
|
-
}, Lt = function(a) {
|
|
1702
|
-
var t = document.head, e = a || t, r = document.createElement("style"), n = So(e), i = n !== void 0 ? n.nextSibling : null;
|
|
1703
|
-
r.setAttribute(Fe, Ft), r.setAttribute(Dt, Mt);
|
|
1704
|
-
var o = Ao();
|
|
1705
|
-
return o && r.setAttribute("nonce", o), e.insertBefore(r, i), r;
|
|
1706
|
-
}, Ro = function(a) {
|
|
1707
|
-
if (a.sheet)
|
|
1708
|
-
return a.sheet;
|
|
1709
|
-
for (var t = document, e = t.styleSheets, r = 0, n = e.length; r < n; r++) {
|
|
1710
|
-
var i = e[r];
|
|
1711
|
-
if (i.ownerNode === a)
|
|
1712
|
-
return i;
|
|
1713
|
-
}
|
|
1714
|
-
we(17);
|
|
1715
|
-
}, To = function(a) {
|
|
1716
|
-
var t = a.isServer, e = a.useCSSOMInjection, r = a.target;
|
|
1717
|
-
return t ? new Po(r) : e ? new _o(r) : new Oo(r);
|
|
1718
|
-
}, _o = /* @__PURE__ */ function() {
|
|
1719
|
-
function s(t) {
|
|
1720
|
-
var e = this.element = Lt(t);
|
|
1721
|
-
e.appendChild(document.createTextNode("")), this.sheet = Ro(e), this.length = 0;
|
|
1722
|
-
}
|
|
1723
|
-
var a = s.prototype;
|
|
1724
|
-
return a.insertRule = function(e, r) {
|
|
1725
|
-
try {
|
|
1726
|
-
return this.sheet.insertRule(r, e), this.length++, !0;
|
|
1727
|
-
} catch {
|
|
1728
|
-
return !1;
|
|
1729
|
-
}
|
|
1730
|
-
}, a.deleteRule = function(e) {
|
|
1731
|
-
this.sheet.deleteRule(e), this.length--;
|
|
1732
|
-
}, a.getRule = function(e) {
|
|
1733
|
-
var r = this.sheet.cssRules[e];
|
|
1734
|
-
return r !== void 0 && typeof r.cssText == "string" ? r.cssText : "";
|
|
1735
|
-
}, s;
|
|
1736
|
-
}(), Oo = /* @__PURE__ */ function() {
|
|
1737
|
-
function s(t) {
|
|
1738
|
-
var e = this.element = Lt(t);
|
|
1739
|
-
this.nodes = e.childNodes, this.length = 0;
|
|
1740
|
-
}
|
|
1741
|
-
var a = s.prototype;
|
|
1742
|
-
return a.insertRule = function(e, r) {
|
|
1743
|
-
if (e <= this.length && e >= 0) {
|
|
1744
|
-
var n = document.createTextNode(r), i = this.nodes[e];
|
|
1745
|
-
return this.element.insertBefore(n, i || null), this.length++, !0;
|
|
1746
|
-
} else
|
|
1747
|
-
return !1;
|
|
1748
|
-
}, a.deleteRule = function(e) {
|
|
1749
|
-
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1750
|
-
}, a.getRule = function(e) {
|
|
1751
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1752
|
-
}, s;
|
|
1753
|
-
}(), Po = /* @__PURE__ */ function() {
|
|
1754
|
-
function s(t) {
|
|
1755
|
-
this.rules = [], this.length = 0;
|
|
1756
|
-
}
|
|
1757
|
-
var a = s.prototype;
|
|
1758
|
-
return a.insertRule = function(e, r) {
|
|
1759
|
-
return e <= this.length ? (this.rules.splice(e, 0, r), this.length++, !0) : !1;
|
|
1760
|
-
}, a.deleteRule = function(e) {
|
|
1761
|
-
this.rules.splice(e, 1), this.length--;
|
|
1762
|
-
}, a.getRule = function(e) {
|
|
1763
|
-
return e < this.length ? this.rules[e] : "";
|
|
1764
|
-
}, s;
|
|
1765
|
-
}(), ft = Mr, No = {
|
|
1766
|
-
isServer: !Mr,
|
|
1767
|
-
useCSSOMInjection: !oo
|
|
1768
|
-
}, Io = /* @__PURE__ */ function() {
|
|
1769
|
-
s.registerId = function(e) {
|
|
1770
|
-
return He(e);
|
|
1771
|
-
};
|
|
1772
|
-
function s(t, e, r) {
|
|
1773
|
-
t === void 0 && (t = $e), e === void 0 && (e = {}), this.options = ce({}, No, {}, t), this.gs = e, this.names = new Map(r), this.server = !!t.isServer, !this.server && Mr && ft && (ft = !1, xo(this));
|
|
1774
|
-
}
|
|
1775
|
-
var a = s.prototype;
|
|
1776
|
-
return a.reconstructWithOptions = function(e, r) {
|
|
1777
|
-
return r === void 0 && (r = !0), new s(ce({}, this.options, {}, e), this.gs, r && this.names || void 0);
|
|
1778
|
-
}, a.allocateGSInstance = function(e) {
|
|
1779
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1780
|
-
}, a.getTag = function() {
|
|
1781
|
-
return this.tag || (this.tag = lo(To(this.options)));
|
|
1782
|
-
}, a.hasNameForId = function(e, r) {
|
|
1783
|
-
return this.names.has(e) && this.names.get(e).has(r);
|
|
1784
|
-
}, a.registerName = function(e, r) {
|
|
1785
|
-
if (He(e), this.names.has(e))
|
|
1786
|
-
this.names.get(e).add(r);
|
|
1787
|
-
else {
|
|
1788
|
-
var n = /* @__PURE__ */ new Set();
|
|
1789
|
-
n.add(r), this.names.set(e, n);
|
|
1790
|
-
}
|
|
1791
|
-
}, a.insertRules = function(e, r, n) {
|
|
1792
|
-
this.registerName(e, r), this.getTag().insertRules(He(e), n);
|
|
1793
|
-
}, a.clearNames = function(e) {
|
|
1794
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1795
|
-
}, a.clearRules = function(e) {
|
|
1796
|
-
this.getTag().clearGroup(He(e)), this.clearNames(e);
|
|
1797
|
-
}, a.clearTag = function() {
|
|
1798
|
-
this.tag = void 0;
|
|
1799
|
-
}, a.toString = function() {
|
|
1800
|
-
return yo(this);
|
|
1801
|
-
}, s;
|
|
1802
|
-
}();
|
|
1803
|
-
function $o(s) {
|
|
1804
|
-
var a = "/*|*/", t = a + "}";
|
|
1805
|
-
function e(r) {
|
|
1806
|
-
if (r)
|
|
1807
|
-
try {
|
|
1808
|
-
s(r + "}");
|
|
1809
|
-
} catch {
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
return function(n, i, o, u, h, v, d, m, _, E) {
|
|
1813
|
-
switch (n) {
|
|
1814
|
-
case 1:
|
|
1815
|
-
if (_ === 0 && i.charCodeAt(0) === 64)
|
|
1816
|
-
return s(i + ";"), "";
|
|
1817
|
-
break;
|
|
1818
|
-
case 2:
|
|
1819
|
-
if (m === 0)
|
|
1820
|
-
return i + a;
|
|
1821
|
-
break;
|
|
1822
|
-
case 3:
|
|
1823
|
-
switch (m) {
|
|
1824
|
-
case 102:
|
|
1825
|
-
case 112:
|
|
1826
|
-
return s(o[0] + i), "";
|
|
1827
|
-
default:
|
|
1828
|
-
return i + (E === 0 ? a : "");
|
|
1829
|
-
}
|
|
1830
|
-
case -2:
|
|
1831
|
-
i.split(t).forEach(e);
|
|
1832
|
-
}
|
|
1833
|
-
};
|
|
1834
|
-
}
|
|
1835
|
-
var ko = /^\s*\/\/.*$/gm, Fo = [":", "[", ".", "#"];
|
|
1836
|
-
function Do(s) {
|
|
1837
|
-
var a = s === void 0 ? $e : s, t = a.options, e = t === void 0 ? $e : t, r = a.plugins, n = r === void 0 ? Lr : r, i = new Ys(e), o = [], u = function(N) {
|
|
1838
|
-
if (N === -2) {
|
|
1839
|
-
var C = o;
|
|
1840
|
-
return o = [], C;
|
|
1841
|
-
}
|
|
1842
|
-
}, h = $o(function($) {
|
|
1843
|
-
o.push($);
|
|
1844
|
-
}), v, d, m, _, E = function(N, C, y) {
|
|
1845
|
-
return (
|
|
1846
|
-
// do not replace the first occurrence if it is complex (has a modifier)
|
|
1847
|
-
(C !== 0 || Fo.indexOf(y[d.length]) === -1) && // no consecutive self refs (.b.b); that is a precedence boost and treated differently
|
|
1848
|
-
!y.match(_) ? "." + v : N
|
|
1849
|
-
);
|
|
1850
|
-
}, M = function(N, C, y) {
|
|
1851
|
-
N === 2 && y.length && y[0].lastIndexOf(d) > 0 && (y[0] = y[0].replace(m, E));
|
|
1852
|
-
};
|
|
1853
|
-
i.use([].concat(n, [M, h, u]));
|
|
1854
|
-
function k($, N, C, y) {
|
|
1855
|
-
y === void 0 && (y = "&");
|
|
1856
|
-
var f = $.replace(ko, ""), Q = N && C ? C + " " + N + " { " + f + " }" : f;
|
|
1857
|
-
return v = y, d = N, m = new RegExp("\\" + d + "\\b", "g"), _ = new RegExp("(\\" + d + "\\b){2,}"), i(C || !N ? "" : N, Q);
|
|
1858
|
-
}
|
|
1859
|
-
return k.hash = n.length ? n.reduce(function($, N) {
|
|
1860
|
-
return N.name || we(15), $t($, N.name);
|
|
1861
|
-
}, It).toString() : "", k;
|
|
1862
|
-
}
|
|
1863
|
-
var Mo = ge.createContext();
|
|
1864
|
-
Mo.Consumer;
|
|
1865
|
-
var Lo = ge.createContext();
|
|
1866
|
-
Lo.Consumer;
|
|
1867
|
-
new Io();
|
|
1868
|
-
var lt = Do(), Vo = /* @__PURE__ */ function() {
|
|
1869
|
-
function s(t, e) {
|
|
1870
|
-
var r = this;
|
|
1871
|
-
this.inject = function(n, i) {
|
|
1872
|
-
i === void 0 && (i = lt);
|
|
1873
|
-
var o = r.name + i.hash;
|
|
1874
|
-
n.hasNameForId(r.id, o) || n.insertRules(r.id, o, i(r.rules, o, "@keyframes"));
|
|
1875
|
-
}, this.toString = function() {
|
|
1876
|
-
return we(12, String(r.name));
|
|
1877
|
-
}, this.name = t, this.id = "sc-keyframes-" + t, this.rules = e;
|
|
1878
|
-
}
|
|
1879
|
-
var a = s.prototype;
|
|
1880
|
-
return a.getName = function(e) {
|
|
1881
|
-
return e === void 0 && (e = lt), this.name + e.hash;
|
|
1882
|
-
}, s;
|
|
1883
|
-
}(), Uo = /([A-Z])/, Bo = /([A-Z])/g, zo = /^ms-/, jo = function(a) {
|
|
1884
|
-
return "-" + a.toLowerCase();
|
|
1885
|
-
};
|
|
1886
|
-
function ht(s) {
|
|
1887
|
-
return Uo.test(s) ? s.replace(Bo, jo).replace(zo, "-ms-") : s;
|
|
1888
|
-
}
|
|
1889
|
-
function Yo(s, a) {
|
|
1890
|
-
return a == null || typeof a == "boolean" || a === "" ? "" : typeof a == "number" && a !== 0 && !(s in Ws) ? a + "px" : String(a).trim();
|
|
1891
|
-
}
|
|
1892
|
-
var Vt = function(a) {
|
|
1893
|
-
return a == null || a === !1 || a === "";
|
|
1894
|
-
}, Wo = function s(a, t) {
|
|
1895
|
-
var e = [];
|
|
1896
|
-
for (var r in a)
|
|
1897
|
-
!a.hasOwnProperty(r) || Vt(a[r]) || (Array.isArray(a[r]) && a[r].isCss || ze(a[r]) ? e.push(ht(r) + ":", a[r], ";") : kr(a[r]) ? e.push.apply(e, s(a[r], r)) : e.push(ht(r) + ": " + Yo(r, a[r]) + ";"));
|
|
1898
|
-
return t ? [t + " {"].concat(e, ["}"]) : e;
|
|
1899
|
-
};
|
|
1900
|
-
function Be(s, a, t, e) {
|
|
1901
|
-
if (Array.isArray(s)) {
|
|
1902
|
-
for (var r = [], n = 0, i = s.length, o; n < i; n += 1)
|
|
1903
|
-
o = Be(s[n], a, t, e), o !== "" && (Array.isArray(o) ? r.push.apply(r, o) : r.push(o));
|
|
1904
|
-
return r;
|
|
1905
|
-
}
|
|
1906
|
-
if (Vt(s))
|
|
1907
|
-
return "";
|
|
1908
|
-
if (Fr(s))
|
|
1909
|
-
return "." + s.styledComponentId;
|
|
1910
|
-
if (ze(s))
|
|
1911
|
-
if (so(s) && a) {
|
|
1912
|
-
var u = s(a);
|
|
1913
|
-
return process.env.NODE_ENV !== "production" && ir.isElement(u) && console.warn(er(s) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), Be(u, a, t, e);
|
|
1914
|
-
} else
|
|
1915
|
-
return s;
|
|
1916
|
-
return s instanceof Vo ? t ? (s.inject(t, e), s.getName(e)) : s : kr(s) ? Wo(s) : s.toString();
|
|
1917
|
-
}
|
|
1918
|
-
var dt = {};
|
|
1919
|
-
function D(s) {
|
|
1920
|
-
dt[s] || (dt[s] = !0, typeof console < "u" && console.warn && console.warn(s));
|
|
1921
|
-
}
|
|
1922
|
-
var yr = 39, pt = 34, qe = 92, vt = 47, _e = 10, Xe = 32, Le = 12, Ke = 9, Ve = 13, Go = 91, Ho = 93, qo = 40, Xo = 41, Ko = 123, Qo = 125, Zo = 59, Jo = 42, ec = 58, rc = 64, Qe = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g, Ze = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g, tc = /.[\\\/\("'\n]/;
|
|
1923
|
-
function Vr(s, a) {
|
|
1924
|
-
a === void 0 && (a = {});
|
|
1925
|
-
var t = [], e = s.css.valueOf(), r = a.ignoreErrors, n, i, o, u, h, v, d, m, _, E, M, k, $, N = e.length, C = -1, y = 1, f = 0;
|
|
1926
|
-
function Q(ue) {
|
|
1927
|
-
throw s.error("Unclosed " + ue, y, f - C);
|
|
1928
|
-
}
|
|
1929
|
-
for (; f < N; ) {
|
|
1930
|
-
switch (n = e.charCodeAt(f), (n === _e || n === Le || n === Ve && e.charCodeAt(f + 1) !== _e) && (C = f, y += 1), n) {
|
|
1931
|
-
case _e:
|
|
1932
|
-
case Xe:
|
|
1933
|
-
case Ke:
|
|
1934
|
-
case Ve:
|
|
1935
|
-
case Le:
|
|
1936
|
-
i = f;
|
|
1937
|
-
do
|
|
1938
|
-
i += 1, n = e.charCodeAt(i), n === _e && (C = i, y += 1);
|
|
1939
|
-
while (n === Xe || n === _e || n === Ke || n === Ve || n === Le);
|
|
1940
|
-
t.push(["space", e.slice(f, i)]), f = i - 1;
|
|
1941
|
-
break;
|
|
1942
|
-
case Go:
|
|
1943
|
-
t.push(["[", "[", y, f - C]);
|
|
1944
|
-
break;
|
|
1945
|
-
case Ho:
|
|
1946
|
-
t.push(["]", "]", y, f - C]);
|
|
1947
|
-
break;
|
|
1948
|
-
case Ko:
|
|
1949
|
-
t.push(["{", "{", y, f - C]);
|
|
1950
|
-
break;
|
|
1951
|
-
case Qo:
|
|
1952
|
-
t.push(["}", "}", y, f - C]);
|
|
1953
|
-
break;
|
|
1954
|
-
case ec:
|
|
1955
|
-
t.push([":", ":", y, f - C]);
|
|
1956
|
-
break;
|
|
1957
|
-
case Zo:
|
|
1958
|
-
t.push([";", ";", y, f - C]);
|
|
1959
|
-
break;
|
|
1960
|
-
case qo:
|
|
1961
|
-
if (k = t.length ? t[t.length - 1][1] : "", $ = e.charCodeAt(f + 1), k === "url" && $ !== yr && $ !== pt && $ !== Xe && $ !== _e && $ !== Ke && $ !== Le && $ !== Ve) {
|
|
1962
|
-
i = f;
|
|
1963
|
-
do {
|
|
1964
|
-
if (E = !1, i = e.indexOf(")", i + 1), i === -1)
|
|
1965
|
-
if (r) {
|
|
1966
|
-
i = f;
|
|
1967
|
-
break;
|
|
1968
|
-
} else
|
|
1969
|
-
Q("bracket");
|
|
1970
|
-
for (M = i; e.charCodeAt(M - 1) === qe; )
|
|
1971
|
-
M -= 1, E = !E;
|
|
1972
|
-
} while (E);
|
|
1973
|
-
t.push(["brackets", e.slice(f, i + 1), y, f - C, y, i - C]), f = i;
|
|
1974
|
-
} else
|
|
1975
|
-
i = e.indexOf(")", f + 1), v = e.slice(f, i + 1), i === -1 || tc.test(v) ? t.push(["(", "(", y, f - C]) : (t.push(["brackets", v, y, f - C, y, i - C]), f = i);
|
|
1976
|
-
break;
|
|
1977
|
-
case Xo:
|
|
1978
|
-
t.push([")", ")", y, f - C]);
|
|
1979
|
-
break;
|
|
1980
|
-
case yr:
|
|
1981
|
-
case pt:
|
|
1982
|
-
o = n === yr ? "'" : '"', i = f;
|
|
1983
|
-
do {
|
|
1984
|
-
if (E = !1, i = e.indexOf(o, i + 1), i === -1)
|
|
1985
|
-
if (r) {
|
|
1986
|
-
i = f + 1;
|
|
1987
|
-
break;
|
|
1988
|
-
} else
|
|
1989
|
-
Q("quote");
|
|
1990
|
-
for (M = i; e.charCodeAt(M - 1) === qe; )
|
|
1991
|
-
M -= 1, E = !E;
|
|
1992
|
-
} while (E);
|
|
1993
|
-
v = e.slice(f, i + 1), u = v.split(`
|
|
1994
|
-
`), h = u.length - 1, h > 0 ? (m = y + h, _ = i - u[h].length) : (m = y, _ = C), t.push(["string", e.slice(f, i + 1), y, f - C, m, i - _]), C = _, y = m, f = i;
|
|
1995
|
-
break;
|
|
1996
|
-
case rc:
|
|
1997
|
-
Qe.lastIndex = f + 1, Qe.test(e), Qe.lastIndex === 0 ? i = e.length - 1 : i = Qe.lastIndex - 2, t.push(["at-word", e.slice(f, i + 1), y, f - C, y, i - C]), f = i;
|
|
1998
|
-
break;
|
|
1999
|
-
case qe:
|
|
2000
|
-
for (i = f, d = !0; e.charCodeAt(i + 1) === qe; )
|
|
2001
|
-
i += 1, d = !d;
|
|
2002
|
-
n = e.charCodeAt(i + 1), d && n !== vt && n !== Xe && n !== _e && n !== Ke && n !== Ve && n !== Le && (i += 1), t.push(["word", e.slice(f, i + 1), y, f - C, y, i - C]), f = i;
|
|
2003
|
-
break;
|
|
2004
|
-
default:
|
|
2005
|
-
n === vt && e.charCodeAt(f + 1) === Jo ? (i = e.indexOf("*/", f + 2) + 1, i === 0 && (r ? i = e.length : Q("comment")), v = e.slice(f, i + 1), u = v.split(`
|
|
2006
|
-
`), h = u.length - 1, h > 0 ? (m = y + h, _ = i - u[h].length) : (m = y, _ = C), t.push(["comment", v, y, f - C, m, i - _]), C = _, y = m, f = i) : (Ze.lastIndex = f + 1, Ze.test(e), Ze.lastIndex === 0 ? i = e.length - 1 : i = Ze.lastIndex - 2, t.push(["word", e.slice(f, i + 1), y, f - C, y, i - C]), f = i);
|
|
2007
|
-
break;
|
|
2008
|
-
}
|
|
2009
|
-
f++;
|
|
2010
|
-
}
|
|
2011
|
-
return t;
|
|
2012
|
-
}
|
|
2013
|
-
var nc = {
|
|
2014
|
-
brackets: [36, 39],
|
|
2015
|
-
// cyan
|
|
2016
|
-
string: [31, 39],
|
|
2017
|
-
// red
|
|
2018
|
-
"at-word": [31, 39],
|
|
2019
|
-
// red
|
|
2020
|
-
comment: [90, 39],
|
|
2021
|
-
// gray
|
|
2022
|
-
"{": [32, 39],
|
|
2023
|
-
// green
|
|
2024
|
-
"}": [32, 39],
|
|
2025
|
-
// green
|
|
2026
|
-
":": [1, 22],
|
|
2027
|
-
// bold
|
|
2028
|
-
";": [1, 22],
|
|
2029
|
-
// bold
|
|
2030
|
-
"(": [1, 22],
|
|
2031
|
-
// bold
|
|
2032
|
-
")": [1, 22]
|
|
2033
|
-
// bold
|
|
2034
|
-
};
|
|
2035
|
-
function mt(s) {
|
|
2036
|
-
return "\x1B[" + s + "m";
|
|
2037
|
-
}
|
|
2038
|
-
function ic(s) {
|
|
2039
|
-
var a = Vr(new zr(s), {
|
|
2040
|
-
ignoreErrors: !0
|
|
2041
|
-
}), t = [];
|
|
2042
|
-
return a.forEach(function(e) {
|
|
2043
|
-
var r = nc[e[0]];
|
|
2044
|
-
r ? t.push(e[1].split(/\r?\n/).map(function(n) {
|
|
2045
|
-
return mt(r[0]) + n + mt(r[1]);
|
|
2046
|
-
}).join(`
|
|
2047
|
-
`)) : t.push(e[1]);
|
|
2048
|
-
}), t.join("");
|
|
2049
|
-
}
|
|
2050
|
-
var Ar = /* @__PURE__ */ function() {
|
|
2051
|
-
function s(t, e, r, n, i, o) {
|
|
2052
|
-
this.name = "CssSyntaxError", this.reason = t, i && (this.file = i), n && (this.source = n), o && (this.plugin = o), typeof e < "u" && typeof r < "u" && (this.line = e, this.column = r), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, s);
|
|
2053
|
-
}
|
|
2054
|
-
var a = s.prototype;
|
|
2055
|
-
return a.setMessage = function() {
|
|
2056
|
-
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
|
|
2057
|
-
}, a.showSourceCode = function(e) {
|
|
2058
|
-
var r = this;
|
|
2059
|
-
if (!this.source)
|
|
2060
|
-
return "";
|
|
2061
|
-
var n = this.source;
|
|
2062
|
-
typeof e > "u" && (e = Hs), e && (n = ic(n));
|
|
2063
|
-
var i = n.split(/\r?\n/), o = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, i.length), h = String(u).length;
|
|
2064
|
-
return i.slice(o, u).map(function(v, d) {
|
|
2065
|
-
var m = o + 1 + d, _ = (" " + m).slice(-h), E = " " + _ + " | ";
|
|
2066
|
-
if (m === r.line) {
|
|
2067
|
-
var M = E.replace(/\d/g, " ") + v.slice(0, r.column - 1).replace(/[^\t]/g, " ");
|
|
2068
|
-
return ">" + E + v + `
|
|
2069
|
-
` + M + "^";
|
|
2070
|
-
} else
|
|
2071
|
-
return " " + E + v;
|
|
2072
|
-
}).join(`
|
|
2073
|
-
`);
|
|
2074
|
-
}, a.toString = function() {
|
|
2075
|
-
var e = this.showSourceCode();
|
|
2076
|
-
return e && (e = `
|
|
2077
|
-
|
|
2078
|
-
` + e + `
|
|
2079
|
-
`), this.name + ": " + this.message + e;
|
|
2080
|
-
}, de(s, [{
|
|
2081
|
-
key: "generated",
|
|
2082
|
-
get: function() {
|
|
2083
|
-
return D("CssSyntaxError#generated is deprecated. Use input instead."), this.input;
|
|
2084
|
-
}
|
|
2085
|
-
/**
|
|
2086
|
-
* @memberof CssSyntaxError#
|
|
2087
|
-
* @member {Input} input - Input object with PostCSS internal information
|
|
2088
|
-
* about input file. If input has source map
|
|
2089
|
-
* from previous tool, PostCSS will use origin
|
|
2090
|
-
* (for example, Sass) source. You can use this
|
|
2091
|
-
* object to get PostCSS input source.
|
|
2092
|
-
*
|
|
2093
|
-
* @example
|
|
2094
|
-
* error.input.file //=> 'a.css'
|
|
2095
|
-
* error.file //=> 'a.sass'
|
|
2096
|
-
*/
|
|
2097
|
-
}]), s;
|
|
2098
|
-
}(), wt = {
|
|
2099
|
-
colon: ": ",
|
|
2100
|
-
indent: " ",
|
|
2101
|
-
beforeDecl: `
|
|
2102
|
-
`,
|
|
2103
|
-
beforeRule: `
|
|
2104
|
-
`,
|
|
2105
|
-
beforeOpen: " ",
|
|
2106
|
-
beforeClose: `
|
|
2107
|
-
`,
|
|
2108
|
-
beforeComment: `
|
|
2109
|
-
`,
|
|
2110
|
-
after: `
|
|
2111
|
-
`,
|
|
2112
|
-
emptyBody: "",
|
|
2113
|
-
commentLeft: " ",
|
|
2114
|
-
commentRight: " "
|
|
2115
|
-
};
|
|
2116
|
-
function ac(s) {
|
|
2117
|
-
return s[0].toUpperCase() + s.slice(1);
|
|
2118
|
-
}
|
|
2119
|
-
var Ut = /* @__PURE__ */ function() {
|
|
2120
|
-
function s(t) {
|
|
2121
|
-
this.builder = t;
|
|
2122
|
-
}
|
|
2123
|
-
var a = s.prototype;
|
|
2124
|
-
return a.stringify = function(e, r) {
|
|
2125
|
-
this[e.type](e, r);
|
|
2126
|
-
}, a.root = function(e) {
|
|
2127
|
-
this.body(e), e.raws.after && this.builder(e.raws.after);
|
|
2128
|
-
}, a.comment = function(e) {
|
|
2129
|
-
var r = this.raw(e, "left", "commentLeft"), n = this.raw(e, "right", "commentRight");
|
|
2130
|
-
this.builder("/*" + r + e.text + n + "*/", e);
|
|
2131
|
-
}, a.decl = function(e, r) {
|
|
2132
|
-
var n = this.raw(e, "between", "colon"), i = e.prop + n + this.rawValue(e, "value");
|
|
2133
|
-
e.important && (i += e.raws.important || " !important"), r && (i += ";"), this.builder(i, e);
|
|
2134
|
-
}, a.rule = function(e) {
|
|
2135
|
-
this.block(e, this.rawValue(e, "selector"));
|
|
2136
|
-
}, a.atrule = function(e, r) {
|
|
2137
|
-
var n = "@" + e.name, i = e.params ? this.rawValue(e, "params") : "";
|
|
2138
|
-
if (typeof e.raws.afterName < "u" ? n += e.raws.afterName : i && (n += " "), e.nodes)
|
|
2139
|
-
this.block(e, n + i);
|
|
2140
|
-
else {
|
|
2141
|
-
var o = (e.raws.between || "") + (r ? ";" : "");
|
|
2142
|
-
this.builder(n + i + o, e);
|
|
2143
|
-
}
|
|
2144
|
-
}, a.body = function(e) {
|
|
2145
|
-
for (var r = e.nodes.length - 1; r > 0 && e.nodes[r].type === "comment"; )
|
|
2146
|
-
r -= 1;
|
|
2147
|
-
for (var n = this.raw(e, "semicolon"), i = 0; i < e.nodes.length; i++) {
|
|
2148
|
-
var o = e.nodes[i], u = this.raw(o, "before");
|
|
2149
|
-
u && this.builder(u), this.stringify(o, r !== i || n);
|
|
2150
|
-
}
|
|
2151
|
-
}, a.block = function(e, r) {
|
|
2152
|
-
var n = this.raw(e, "between", "beforeOpen");
|
|
2153
|
-
this.builder(r + n + "{", e, "start");
|
|
2154
|
-
var i;
|
|
2155
|
-
e.nodes && e.nodes.length ? (this.body(e), i = this.raw(e, "after")) : i = this.raw(e, "after", "emptyBody"), i && this.builder(i), this.builder("}", e, "end");
|
|
2156
|
-
}, a.raw = function(e, r, n) {
|
|
2157
|
-
var i;
|
|
2158
|
-
if (n || (n = r), r && (i = e.raws[r], typeof i < "u"))
|
|
2159
|
-
return i;
|
|
2160
|
-
var o = e.parent;
|
|
2161
|
-
if (n === "before" && (!o || o.type === "root" && o.first === e))
|
|
2162
|
-
return "";
|
|
2163
|
-
if (!o)
|
|
2164
|
-
return wt[n];
|
|
2165
|
-
var u = e.root();
|
|
2166
|
-
if (u.rawCache || (u.rawCache = {}), typeof u.rawCache[n] < "u")
|
|
2167
|
-
return u.rawCache[n];
|
|
2168
|
-
if (n === "before" || n === "after")
|
|
2169
|
-
return this.beforeAfter(e, n);
|
|
2170
|
-
var h = "raw" + ac(n);
|
|
2171
|
-
return this[h] ? i = this[h](u, e) : u.walk(function(v) {
|
|
2172
|
-
if (i = v.raws[r], typeof i < "u")
|
|
2173
|
-
return !1;
|
|
2174
|
-
}), typeof i > "u" && (i = wt[n]), u.rawCache[n] = i, i;
|
|
2175
|
-
}, a.rawSemicolon = function(e) {
|
|
2176
|
-
var r;
|
|
2177
|
-
return e.walk(function(n) {
|
|
2178
|
-
if (n.nodes && n.nodes.length && n.last.type === "decl" && (r = n.raws.semicolon, typeof r < "u"))
|
|
2179
|
-
return !1;
|
|
2180
|
-
}), r;
|
|
2181
|
-
}, a.rawEmptyBody = function(e) {
|
|
2182
|
-
var r;
|
|
2183
|
-
return e.walk(function(n) {
|
|
2184
|
-
if (n.nodes && n.nodes.length === 0 && (r = n.raws.after, typeof r < "u"))
|
|
2185
|
-
return !1;
|
|
2186
|
-
}), r;
|
|
2187
|
-
}, a.rawIndent = function(e) {
|
|
2188
|
-
if (e.raws.indent)
|
|
2189
|
-
return e.raws.indent;
|
|
2190
|
-
var r;
|
|
2191
|
-
return e.walk(function(n) {
|
|
2192
|
-
var i = n.parent;
|
|
2193
|
-
if (i && i !== e && i.parent && i.parent === e && typeof n.raws.before < "u") {
|
|
2194
|
-
var o = n.raws.before.split(`
|
|
2195
|
-
`);
|
|
2196
|
-
return r = o[o.length - 1], r = r.replace(/[^\s]/g, ""), !1;
|
|
2197
|
-
}
|
|
2198
|
-
}), r;
|
|
2199
|
-
}, a.rawBeforeComment = function(e, r) {
|
|
2200
|
-
var n;
|
|
2201
|
-
return e.walkComments(function(i) {
|
|
2202
|
-
if (typeof i.raws.before < "u")
|
|
2203
|
-
return n = i.raws.before, n.indexOf(`
|
|
2204
|
-
`) !== -1 && (n = n.replace(/[^\n]+$/, "")), !1;
|
|
2205
|
-
}), typeof n > "u" && (n = this.raw(r, null, "beforeDecl")), n;
|
|
2206
|
-
}, a.rawBeforeDecl = function(e, r) {
|
|
2207
|
-
var n;
|
|
2208
|
-
return e.walkDecls(function(i) {
|
|
2209
|
-
if (typeof i.raws.before < "u")
|
|
2210
|
-
return n = i.raws.before, n.indexOf(`
|
|
2211
|
-
`) !== -1 && (n = n.replace(/[^\n]+$/, "")), !1;
|
|
2212
|
-
}), typeof n > "u" && (n = this.raw(r, null, "beforeRule")), n;
|
|
2213
|
-
}, a.rawBeforeRule = function(e) {
|
|
2214
|
-
var r;
|
|
2215
|
-
return e.walk(function(n) {
|
|
2216
|
-
if (n.nodes && (n.parent !== e || e.first !== n) && typeof n.raws.before < "u")
|
|
2217
|
-
return r = n.raws.before, r.indexOf(`
|
|
2218
|
-
`) !== -1 && (r = r.replace(/[^\n]+$/, "")), !1;
|
|
2219
|
-
}), r;
|
|
2220
|
-
}, a.rawBeforeClose = function(e) {
|
|
2221
|
-
var r;
|
|
2222
|
-
return e.walk(function(n) {
|
|
2223
|
-
if (n.nodes && n.nodes.length > 0 && typeof n.raws.after < "u")
|
|
2224
|
-
return r = n.raws.after, r.indexOf(`
|
|
2225
|
-
`) !== -1 && (r = r.replace(/[^\n]+$/, "")), !1;
|
|
2226
|
-
}), r;
|
|
2227
|
-
}, a.rawBeforeOpen = function(e) {
|
|
2228
|
-
var r;
|
|
2229
|
-
return e.walk(function(n) {
|
|
2230
|
-
if (n.type !== "decl" && (r = n.raws.between, typeof r < "u"))
|
|
2231
|
-
return !1;
|
|
2232
|
-
}), r;
|
|
2233
|
-
}, a.rawColon = function(e) {
|
|
2234
|
-
var r;
|
|
2235
|
-
return e.walkDecls(function(n) {
|
|
2236
|
-
if (typeof n.raws.between < "u")
|
|
2237
|
-
return r = n.raws.between.replace(/[^\s:]/g, ""), !1;
|
|
2238
|
-
}), r;
|
|
2239
|
-
}, a.beforeAfter = function(e, r) {
|
|
2240
|
-
var n;
|
|
2241
|
-
e.type === "decl" ? n = this.raw(e, null, "beforeDecl") : e.type === "comment" ? n = this.raw(e, null, "beforeComment") : r === "before" ? n = this.raw(e, null, "beforeRule") : n = this.raw(e, null, "beforeClose");
|
|
2242
|
-
for (var i = e.parent, o = 0; i && i.type !== "root"; )
|
|
2243
|
-
o += 1, i = i.parent;
|
|
2244
|
-
if (n.indexOf(`
|
|
2245
|
-
`) !== -1) {
|
|
2246
|
-
var u = this.raw(e, null, "indent");
|
|
2247
|
-
if (u.length)
|
|
2248
|
-
for (var h = 0; h < o; h++)
|
|
2249
|
-
n += u;
|
|
2250
|
-
}
|
|
2251
|
-
return n;
|
|
2252
|
-
}, a.rawValue = function(e, r) {
|
|
2253
|
-
var n = e[r], i = e.raws[r];
|
|
2254
|
-
return i && i.value === n ? i.raw : n;
|
|
2255
|
-
}, s;
|
|
2256
|
-
}();
|
|
2257
|
-
function Bt(s, a) {
|
|
2258
|
-
var t = new Ut(a);
|
|
2259
|
-
t.stringify(s);
|
|
2260
|
-
}
|
|
2261
|
-
var sc = function s(a, t) {
|
|
2262
|
-
var e = new a.constructor();
|
|
2263
|
-
for (var r in a)
|
|
2264
|
-
if (a.hasOwnProperty(r)) {
|
|
2265
|
-
var n = a[r], i = typeof n;
|
|
2266
|
-
r === "parent" && i === "object" ? t && (e[r] = t) : r === "source" ? e[r] = n : n instanceof Array ? e[r] = n.map(function(o) {
|
|
2267
|
-
return s(o, e);
|
|
2268
|
-
}) : r !== "before" && r !== "after" && r !== "between" && r !== "semicolon" && (i === "object" && n !== null && (n = s(n)), e[r] = n);
|
|
2269
|
-
}
|
|
2270
|
-
return e;
|
|
2271
|
-
}, Ur = /* @__PURE__ */ function() {
|
|
2272
|
-
function s(t) {
|
|
2273
|
-
t === void 0 && (t = {}), this.raws = {};
|
|
2274
|
-
for (var e in t)
|
|
2275
|
-
this[e] = t[e];
|
|
2276
|
-
}
|
|
2277
|
-
var a = s.prototype;
|
|
2278
|
-
return a.error = function(e, r) {
|
|
2279
|
-
if (r === void 0 && (r = {}), this.source) {
|
|
2280
|
-
var n = this.positionBy(r);
|
|
2281
|
-
return this.source.input.error(e, n.line, n.column, r);
|
|
2282
|
-
} else
|
|
2283
|
-
return new Ar(e);
|
|
2284
|
-
}, a.warn = function(e, r, n) {
|
|
2285
|
-
var i = {
|
|
2286
|
-
node: this
|
|
2287
|
-
};
|
|
2288
|
-
for (var o in n)
|
|
2289
|
-
i[o] = n[o];
|
|
2290
|
-
return e.warn(r, i);
|
|
2291
|
-
}, a.remove = function() {
|
|
2292
|
-
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
|
|
2293
|
-
}, a.toString = function(e) {
|
|
2294
|
-
e === void 0 && (e = Bt), e.stringify && (e = e.stringify);
|
|
2295
|
-
var r = "";
|
|
2296
|
-
return e(this, function(n) {
|
|
2297
|
-
r += n;
|
|
2298
|
-
}), r;
|
|
2299
|
-
}, a.clone = function(e) {
|
|
2300
|
-
e === void 0 && (e = {});
|
|
2301
|
-
var r = sc(this);
|
|
2302
|
-
for (var n in e)
|
|
2303
|
-
r[n] = e[n];
|
|
2304
|
-
return r;
|
|
2305
|
-
}, a.cloneBefore = function(e) {
|
|
2306
|
-
e === void 0 && (e = {});
|
|
2307
|
-
var r = this.clone(e);
|
|
2308
|
-
return this.parent.insertBefore(this, r), r;
|
|
2309
|
-
}, a.cloneAfter = function(e) {
|
|
2310
|
-
e === void 0 && (e = {});
|
|
2311
|
-
var r = this.clone(e);
|
|
2312
|
-
return this.parent.insertAfter(this, r), r;
|
|
2313
|
-
}, a.replaceWith = function() {
|
|
2314
|
-
var e = this;
|
|
2315
|
-
if (this.parent) {
|
|
2316
|
-
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
2317
|
-
n[i] = arguments[i];
|
|
2318
|
-
n.forEach(function(o) {
|
|
2319
|
-
e.parent.insertBefore(e, o);
|
|
2320
|
-
}), this.remove();
|
|
2321
|
-
}
|
|
2322
|
-
return this;
|
|
2323
|
-
}, a.moveTo = function(e) {
|
|
2324
|
-
return this.cleanRaws(this.root() === e.root()), this.remove(), e.append(this), this;
|
|
2325
|
-
}, a.moveBefore = function(e) {
|
|
2326
|
-
return this.cleanRaws(this.root() === e.root()), this.remove(), e.parent.insertBefore(e, this), this;
|
|
2327
|
-
}, a.moveAfter = function(e) {
|
|
2328
|
-
return this.cleanRaws(this.root() === e.root()), this.remove(), e.parent.insertAfter(e, this), this;
|
|
2329
|
-
}, a.next = function() {
|
|
2330
|
-
var e = this.parent.index(this);
|
|
2331
|
-
return this.parent.nodes[e + 1];
|
|
2332
|
-
}, a.prev = function() {
|
|
2333
|
-
var e = this.parent.index(this);
|
|
2334
|
-
return this.parent.nodes[e - 1];
|
|
2335
|
-
}, a.toJSON = function() {
|
|
2336
|
-
var e = {};
|
|
2337
|
-
for (var r in this)
|
|
2338
|
-
if (this.hasOwnProperty(r) && r !== "parent") {
|
|
2339
|
-
var n = this[r];
|
|
2340
|
-
n instanceof Array ? e[r] = n.map(function(i) {
|
|
2341
|
-
return typeof i == "object" && i.toJSON ? i.toJSON() : i;
|
|
2342
|
-
}) : typeof n == "object" && n.toJSON ? e[r] = n.toJSON() : e[r] = n;
|
|
2343
|
-
}
|
|
2344
|
-
return e;
|
|
2345
|
-
}, a.raw = function(e, r) {
|
|
2346
|
-
var n = new Ut();
|
|
2347
|
-
return n.raw(this, e, r);
|
|
2348
|
-
}, a.root = function() {
|
|
2349
|
-
for (var e = this; e.parent; )
|
|
2350
|
-
e = e.parent;
|
|
2351
|
-
return e;
|
|
2352
|
-
}, a.cleanRaws = function(e) {
|
|
2353
|
-
delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
|
|
2354
|
-
}, a.positionInside = function(e) {
|
|
2355
|
-
for (var r = this.toString(), n = this.source.start.column, i = this.source.start.line, o = 0; o < e; o++)
|
|
2356
|
-
r[o] === `
|
|
2357
|
-
` ? (n = 1, i += 1) : n += 1;
|
|
2358
|
-
return {
|
|
2359
|
-
line: i,
|
|
2360
|
-
column: n
|
|
2361
|
-
};
|
|
2362
|
-
}, a.positionBy = function(e) {
|
|
2363
|
-
var r = this.source.start;
|
|
2364
|
-
if (e.index)
|
|
2365
|
-
r = this.positionInside(e.index);
|
|
2366
|
-
else if (e.word) {
|
|
2367
|
-
var n = this.toString().indexOf(e.word);
|
|
2368
|
-
n !== -1 && (r = this.positionInside(n));
|
|
2369
|
-
}
|
|
2370
|
-
return r;
|
|
2371
|
-
}, a.removeSelf = function() {
|
|
2372
|
-
return D("Node#removeSelf is deprecated. Use Node#remove."), this.remove();
|
|
2373
|
-
}, a.replace = function(e) {
|
|
2374
|
-
return D("Node#replace is deprecated. Use Node#replaceWith"), this.replaceWith(e);
|
|
2375
|
-
}, a.style = function(e, r) {
|
|
2376
|
-
return D("Node#style() is deprecated. Use Node#raw()"), this.raw(e, r);
|
|
2377
|
-
}, a.cleanStyles = function(e) {
|
|
2378
|
-
return D("Node#cleanStyles() is deprecated. Use Node#cleanRaws()"), this.cleanRaws(e);
|
|
2379
|
-
}, de(s, [{
|
|
2380
|
-
key: "before",
|
|
2381
|
-
get: function() {
|
|
2382
|
-
return D("Node#before is deprecated. Use Node#raws.before"), this.raws.before;
|
|
2383
|
-
},
|
|
2384
|
-
set: function(e) {
|
|
2385
|
-
D("Node#before is deprecated. Use Node#raws.before"), this.raws.before = e;
|
|
2386
|
-
}
|
|
2387
|
-
}, {
|
|
2388
|
-
key: "between",
|
|
2389
|
-
get: function() {
|
|
2390
|
-
return D("Node#between is deprecated. Use Node#raws.between"), this.raws.between;
|
|
2391
|
-
},
|
|
2392
|
-
set: function(e) {
|
|
2393
|
-
D("Node#between is deprecated. Use Node#raws.between"), this.raws.between = e;
|
|
2394
|
-
}
|
|
2395
|
-
/**
|
|
2396
|
-
* @memberof Node#
|
|
2397
|
-
* @member {string} type - String representing the node’s type.
|
|
2398
|
-
* Possible values are `root`, `atrule`, `rule`,
|
|
2399
|
-
* `decl`, or `comment`.
|
|
2400
|
-
*
|
|
2401
|
-
* @example
|
|
2402
|
-
* postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl'
|
|
2403
|
-
*/
|
|
2404
|
-
/**
|
|
2405
|
-
* @memberof Node#
|
|
2406
|
-
* @member {Container} parent - the node’s parent node.
|
|
2407
|
-
*
|
|
2408
|
-
* @example
|
|
2409
|
-
* root.nodes[0].parent == root;
|
|
2410
|
-
*/
|
|
2411
|
-
/**
|
|
2412
|
-
* @memberof Node#
|
|
2413
|
-
* @member {source} source - the input source of the node
|
|
2414
|
-
*
|
|
2415
|
-
* The property is used in source map generation.
|
|
2416
|
-
*
|
|
2417
|
-
* If you create a node manually (e.g., with `postcss.decl()`),
|
|
2418
|
-
* that node will not have a `source` property and will be absent
|
|
2419
|
-
* from the source map. For this reason, the plugin developer should
|
|
2420
|
-
* consider cloning nodes to create new ones (in which case the new node’s
|
|
2421
|
-
* source will reference the original, cloned node) or setting
|
|
2422
|
-
* the `source` property manually.
|
|
2423
|
-
*
|
|
2424
|
-
* ```js
|
|
2425
|
-
* // Bad
|
|
2426
|
-
* const prefixed = postcss.decl({
|
|
2427
|
-
* prop: '-moz-' + decl.prop,
|
|
2428
|
-
* value: decl.value
|
|
2429
|
-
* });
|
|
2430
|
-
*
|
|
2431
|
-
* // Good
|
|
2432
|
-
* const prefixed = decl.clone({ prop: '-moz-' + decl.prop });
|
|
2433
|
-
* ```
|
|
2434
|
-
*
|
|
2435
|
-
* ```js
|
|
2436
|
-
* if ( atrule.name == 'add-link' ) {
|
|
2437
|
-
* const rule = postcss.rule({ selector: 'a', source: atrule.source });
|
|
2438
|
-
* atrule.parent.insertBefore(atrule, rule);
|
|
2439
|
-
* }
|
|
2440
|
-
* ```
|
|
2441
|
-
*
|
|
2442
|
-
* @example
|
|
2443
|
-
* decl.source.input.from //=> '/home/ai/a.sass'
|
|
2444
|
-
* decl.source.start //=> { line: 10, column: 2 }
|
|
2445
|
-
* decl.source.end //=> { line: 10, column: 12 }
|
|
2446
|
-
*/
|
|
2447
|
-
/**
|
|
2448
|
-
* @memberof Node#
|
|
2449
|
-
* @member {object} raws - Information to generate byte-to-byte equal
|
|
2450
|
-
* node string as it was in the origin input.
|
|
2451
|
-
*
|
|
2452
|
-
* Every parser saves its own properties,
|
|
2453
|
-
* but the default CSS parser uses:
|
|
2454
|
-
*
|
|
2455
|
-
* * `before`: the space symbols before the node. It also stores `*`
|
|
2456
|
-
* and `_` symbols before the declaration (IE hack).
|
|
2457
|
-
* * `after`: the space symbols after the last child of the node
|
|
2458
|
-
* to the end of the node.
|
|
2459
|
-
* * `between`: the symbols between the property and value
|
|
2460
|
-
* for declarations, selector and `{` for rules, or last parameter
|
|
2461
|
-
* and `{` for at-rules.
|
|
2462
|
-
* * `semicolon`: contains true if the last child has
|
|
2463
|
-
* an (optional) semicolon.
|
|
2464
|
-
* * `afterName`: the space between the at-rule name and its parameters.
|
|
2465
|
-
* * `left`: the space symbols between `/*` and the comment’s text.
|
|
2466
|
-
* * `right`: the space symbols between the comment’s text
|
|
2467
|
-
* and <code>*/</code>.
|
|
2468
|
-
* * `important`: the content of the important statement,
|
|
2469
|
-
* if it is not just `!important`.
|
|
2470
|
-
*
|
|
2471
|
-
* PostCSS cleans selectors, declaration values and at-rule parameters
|
|
2472
|
-
* from comments and extra spaces, but it stores origin content in raws
|
|
2473
|
-
* properties. As such, if you don’t change a declaration’s value,
|
|
2474
|
-
* PostCSS will use the raw value with comments.
|
|
2475
|
-
*
|
|
2476
|
-
* @example
|
|
2477
|
-
* const root = postcss.parse('a {\n color:black\n}')
|
|
2478
|
-
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
|
2479
|
-
*/
|
|
2480
|
-
}]), s;
|
|
2481
|
-
}(), Er = /* @__PURE__ */ function(s) {
|
|
2482
|
-
Ce(a, s);
|
|
2483
|
-
function a(t) {
|
|
2484
|
-
var e;
|
|
2485
|
-
return e = s.call(this, t) || this, e.type = "decl", e;
|
|
2486
|
-
}
|
|
2487
|
-
return de(a, [{
|
|
2488
|
-
key: "_value",
|
|
2489
|
-
get: function() {
|
|
2490
|
-
return D("Node#_value was deprecated. Use Node#raws.value"), this.raws.value;
|
|
2491
|
-
},
|
|
2492
|
-
set: function(e) {
|
|
2493
|
-
D("Node#_value was deprecated. Use Node#raws.value"), this.raws.value = e;
|
|
2494
|
-
}
|
|
2495
|
-
}, {
|
|
2496
|
-
key: "_important",
|
|
2497
|
-
get: function() {
|
|
2498
|
-
return D("Node#_important was deprecated. Use Node#raws.important"), this.raws.important;
|
|
2499
|
-
},
|
|
2500
|
-
set: function(e) {
|
|
2501
|
-
D("Node#_important was deprecated. Use Node#raws.important"), this.raws.important = e;
|
|
2502
|
-
}
|
|
2503
|
-
/**
|
|
2504
|
-
* @memberof Declaration#
|
|
2505
|
-
* @member {string} prop - the declaration’s property name
|
|
2506
|
-
*
|
|
2507
|
-
* @example
|
|
2508
|
-
* const root = postcss.parse('a { color: black }');
|
|
2509
|
-
* const decl = root.first.first;
|
|
2510
|
-
* decl.prop //=> 'color'
|
|
2511
|
-
*/
|
|
2512
|
-
/**
|
|
2513
|
-
* @memberof Declaration#
|
|
2514
|
-
* @member {string} value - the declaration’s value
|
|
2515
|
-
*
|
|
2516
|
-
* @example
|
|
2517
|
-
* const root = postcss.parse('a { color: black }');
|
|
2518
|
-
* const decl = root.first.first;
|
|
2519
|
-
* decl.value //=> 'black'
|
|
2520
|
-
*/
|
|
2521
|
-
/**
|
|
2522
|
-
* @memberof Declaration#
|
|
2523
|
-
* @member {boolean} important - `true` if the declaration
|
|
2524
|
-
* has an !important annotation.
|
|
2525
|
-
*
|
|
2526
|
-
* @example
|
|
2527
|
-
* const root = postcss.parse('a { color: black !important; color: red }');
|
|
2528
|
-
* root.first.first.important //=> true
|
|
2529
|
-
* root.first.last.important //=> undefined
|
|
2530
|
-
*/
|
|
2531
|
-
/**
|
|
2532
|
-
* @memberof Declaration#
|
|
2533
|
-
* @member {object} raws - Information to generate byte-to-byte equal
|
|
2534
|
-
* node string as it was in the origin input.
|
|
2535
|
-
*
|
|
2536
|
-
* Every parser saves its own properties,
|
|
2537
|
-
* but the default CSS parser uses:
|
|
2538
|
-
*
|
|
2539
|
-
* * `before`: the space symbols before the node. It also stores `*`
|
|
2540
|
-
* and `_` symbols before the declaration (IE hack).
|
|
2541
|
-
* * `between`: the symbols between the property and value
|
|
2542
|
-
* for declarations, selector and `{` for rules, or last parameter
|
|
2543
|
-
* and `{` for at-rules.
|
|
2544
|
-
* * `important`: the content of the important statement,
|
|
2545
|
-
* if it is not just `!important`.
|
|
2546
|
-
*
|
|
2547
|
-
* PostCSS cleans declaration from comments and extra spaces,
|
|
2548
|
-
* but it stores origin content in raws properties.
|
|
2549
|
-
* As such, if you don’t change a declaration’s value,
|
|
2550
|
-
* PostCSS will use the raw value with comments.
|
|
2551
|
-
*
|
|
2552
|
-
* @example
|
|
2553
|
-
* const root = postcss.parse('a {\n color:black\n}')
|
|
2554
|
-
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
|
2555
|
-
*/
|
|
2556
|
-
}]), a;
|
|
2557
|
-
}(Ur), tr = /* @__PURE__ */ function(s) {
|
|
2558
|
-
Ce(a, s);
|
|
2559
|
-
function a(t) {
|
|
2560
|
-
var e;
|
|
2561
|
-
return e = s.call(this, t) || this, e.type = "comment", e;
|
|
2562
|
-
}
|
|
2563
|
-
return de(a, [{
|
|
2564
|
-
key: "left",
|
|
2565
|
-
get: function() {
|
|
2566
|
-
return D("Comment#left was deprecated. Use Comment#raws.left"), this.raws.left;
|
|
2567
|
-
},
|
|
2568
|
-
set: function(e) {
|
|
2569
|
-
D("Comment#left was deprecated. Use Comment#raws.left"), this.raws.left = e;
|
|
2570
|
-
}
|
|
2571
|
-
}, {
|
|
2572
|
-
key: "right",
|
|
2573
|
-
get: function() {
|
|
2574
|
-
return D("Comment#right was deprecated. Use Comment#raws.right"), this.raws.right;
|
|
2575
|
-
},
|
|
2576
|
-
set: function(e) {
|
|
2577
|
-
D("Comment#right was deprecated. Use Comment#raws.right"), this.raws.right = e;
|
|
2578
|
-
}
|
|
2579
|
-
/**
|
|
2580
|
-
* @memberof Comment#
|
|
2581
|
-
* @member {string} text - the comment’s text
|
|
2582
|
-
*/
|
|
2583
|
-
/**
|
|
2584
|
-
* @memberof Comment#
|
|
2585
|
-
* @member {object} raws - Information to generate byte-to-byte equal
|
|
2586
|
-
* node string as it was in the origin input.
|
|
2587
|
-
*
|
|
2588
|
-
* Every parser saves its own properties,
|
|
2589
|
-
* but the default CSS parser uses:
|
|
2590
|
-
*
|
|
2591
|
-
* * `before`: the space symbols before the node.
|
|
2592
|
-
* * `left`: the space symbols between `/*` and the comment’s text.
|
|
2593
|
-
* * `right`: the space symbols between the comment’s text.
|
|
2594
|
-
*/
|
|
2595
|
-
}]), a;
|
|
2596
|
-
}(Ur), zt = /* @__PURE__ */ function() {
|
|
2597
|
-
function s(t) {
|
|
2598
|
-
this.input = t, this.pos = 0, this.root = new Gt(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.root.source = {
|
|
2599
|
-
input: t,
|
|
2600
|
-
start: {
|
|
2601
|
-
line: 1,
|
|
2602
|
-
column: 1
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
|
-
}
|
|
2606
|
-
var a = s.prototype;
|
|
2607
|
-
return a.tokenize = function() {
|
|
2608
|
-
this.tokens = Vr(this.input);
|
|
2609
|
-
}, a.loop = function() {
|
|
2610
|
-
for (var e; this.pos < this.tokens.length; ) {
|
|
2611
|
-
switch (e = this.tokens[this.pos], e[0]) {
|
|
2612
|
-
case "space":
|
|
2613
|
-
case ";":
|
|
2614
|
-
this.spaces += e[1];
|
|
2615
|
-
break;
|
|
2616
|
-
case "}":
|
|
2617
|
-
this.end(e);
|
|
2618
|
-
break;
|
|
2619
|
-
case "comment":
|
|
2620
|
-
this.comment(e);
|
|
2621
|
-
break;
|
|
2622
|
-
case "at-word":
|
|
2623
|
-
this.atrule(e);
|
|
2624
|
-
break;
|
|
2625
|
-
case "{":
|
|
2626
|
-
this.emptyRule(e);
|
|
2627
|
-
break;
|
|
2628
|
-
default:
|
|
2629
|
-
this.other();
|
|
2630
|
-
break;
|
|
2631
|
-
}
|
|
2632
|
-
this.pos += 1;
|
|
2633
|
-
}
|
|
2634
|
-
this.endFile();
|
|
2635
|
-
}, a.comment = function(e) {
|
|
2636
|
-
var r = new tr();
|
|
2637
|
-
this.init(r, e[2], e[3]), r.source.end = {
|
|
2638
|
-
line: e[4],
|
|
2639
|
-
column: e[5]
|
|
2640
|
-
};
|
|
2641
|
-
var n = e[1].slice(2, -2);
|
|
2642
|
-
if (/^\s*$/.test(n))
|
|
2643
|
-
r.text = "", r.raws.left = n, r.raws.right = "";
|
|
2644
|
-
else {
|
|
2645
|
-
var i = n.match(/^(\s*)([^]*[^\s])(\s*)$/);
|
|
2646
|
-
r.text = i[2], r.raws.left = i[1], r.raws.right = i[3];
|
|
2647
|
-
}
|
|
2648
|
-
}, a.emptyRule = function(e) {
|
|
2649
|
-
var r = new nr();
|
|
2650
|
-
this.init(r, e[2], e[3]), r.selector = "", r.raws.between = "", this.current = r;
|
|
2651
|
-
}, a.other = function() {
|
|
2652
|
-
for (var e, r = !1, n = null, i = !1, o = null, u = [], h = this.pos; this.pos < this.tokens.length; ) {
|
|
2653
|
-
if (e = this.tokens[this.pos], n = e[0], n === "(" || n === "[")
|
|
2654
|
-
o || (o = e), u.push(n === "(" ? ")" : "]");
|
|
2655
|
-
else if (u.length === 0)
|
|
2656
|
-
if (n === ";")
|
|
2657
|
-
if (i) {
|
|
2658
|
-
this.decl(this.tokens.slice(h, this.pos + 1));
|
|
2659
|
-
return;
|
|
2660
|
-
} else
|
|
2661
|
-
break;
|
|
2662
|
-
else if (n === "{") {
|
|
2663
|
-
this.rule(this.tokens.slice(h, this.pos + 1));
|
|
2664
|
-
return;
|
|
2665
|
-
} else if (n === "}") {
|
|
2666
|
-
this.pos -= 1, r = !0;
|
|
2667
|
-
break;
|
|
2668
|
-
} else
|
|
2669
|
-
n === ":" && (i = !0);
|
|
2670
|
-
else
|
|
2671
|
-
n === u[u.length - 1] && (u.pop(), u.length === 0 && (o = null));
|
|
2672
|
-
this.pos += 1;
|
|
2673
|
-
}
|
|
2674
|
-
if (this.pos === this.tokens.length && (this.pos -= 1, r = !0), u.length > 0 && this.unclosedBracket(o), r && i) {
|
|
2675
|
-
for (; this.pos > h && (e = this.tokens[this.pos][0], !(e !== "space" && e !== "comment")); )
|
|
2676
|
-
this.pos -= 1;
|
|
2677
|
-
this.decl(this.tokens.slice(h, this.pos + 1));
|
|
2678
|
-
return;
|
|
2679
|
-
}
|
|
2680
|
-
this.unknownWord(h);
|
|
2681
|
-
}, a.rule = function(e) {
|
|
2682
|
-
e.pop();
|
|
2683
|
-
var r = new nr();
|
|
2684
|
-
this.init(r, e[0][2], e[0][3]), r.raws.between = this.spacesFromEnd(e), this.raw(r, "selector", e), this.current = r;
|
|
2685
|
-
}, a.decl = function(e) {
|
|
2686
|
-
var r = new Er();
|
|
2687
|
-
this.init(r);
|
|
2688
|
-
var n = e[e.length - 1];
|
|
2689
|
-
for (n[0] === ";" && (this.semicolon = !0, e.pop()), n[4] ? r.source.end = {
|
|
2690
|
-
line: n[4],
|
|
2691
|
-
column: n[5]
|
|
2692
|
-
} : r.source.end = {
|
|
2693
|
-
line: n[2],
|
|
2694
|
-
column: n[3]
|
|
2695
|
-
}; e[0][0] !== "word"; )
|
|
2696
|
-
r.raws.before += e.shift()[1];
|
|
2697
|
-
for (r.source.start = {
|
|
2698
|
-
line: e[0][2],
|
|
2699
|
-
column: e[0][3]
|
|
2700
|
-
}, r.prop = ""; e.length; ) {
|
|
2701
|
-
var i = e[0][0];
|
|
2702
|
-
if (i === ":" || i === "space" || i === "comment")
|
|
2703
|
-
break;
|
|
2704
|
-
r.prop += e.shift()[1];
|
|
2705
|
-
}
|
|
2706
|
-
r.raws.between = "";
|
|
2707
|
-
for (var o; e.length; )
|
|
2708
|
-
if (o = e.shift(), o[0] === ":") {
|
|
2709
|
-
r.raws.between += o[1];
|
|
2710
|
-
break;
|
|
2711
|
-
} else
|
|
2712
|
-
r.raws.between += o[1];
|
|
2713
|
-
(r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1)), r.raws.between += this.spacesFromStart(e), this.precheckMissedSemicolon(e);
|
|
2714
|
-
for (var u = e.length - 1; u > 0; u--) {
|
|
2715
|
-
if (o = e[u], o[1] === "!important") {
|
|
2716
|
-
r.important = !0;
|
|
2717
|
-
var h = this.stringFrom(e, u);
|
|
2718
|
-
h = this.spacesFromEnd(e) + h, h !== " !important" && (r.raws.important = h);
|
|
2719
|
-
break;
|
|
2720
|
-
} else if (o[1] === "important") {
|
|
2721
|
-
for (var v = e.slice(0), d = "", m = u; m > 0; m--) {
|
|
2722
|
-
var _ = v[m][0];
|
|
2723
|
-
if (d.trim().indexOf("!") === 0 && _ !== "space")
|
|
2724
|
-
break;
|
|
2725
|
-
d = v.pop()[1] + d;
|
|
2726
|
-
}
|
|
2727
|
-
d.trim().indexOf("!") === 0 && (r.important = !0, r.raws.important = d, e = v);
|
|
2728
|
-
}
|
|
2729
|
-
if (o[0] !== "space" && o[0] !== "comment")
|
|
2730
|
-
break;
|
|
2731
|
-
}
|
|
2732
|
-
this.raw(r, "value", e), r.value.indexOf(":") !== -1 && this.checkMissedSemicolon(e);
|
|
2733
|
-
}, a.atrule = function(e) {
|
|
2734
|
-
var r = new Sr();
|
|
2735
|
-
r.name = e[1].slice(1), r.name === "" && this.unnamedAtrule(r, e), this.init(r, e[2], e[3]);
|
|
2736
|
-
var n = !1, i = !1, o = [];
|
|
2737
|
-
for (this.pos += 1; this.pos < this.tokens.length; ) {
|
|
2738
|
-
if (e = this.tokens[this.pos], e[0] === ";") {
|
|
2739
|
-
r.source.end = {
|
|
2740
|
-
line: e[2],
|
|
2741
|
-
column: e[3]
|
|
2742
|
-
}, this.semicolon = !0;
|
|
2743
|
-
break;
|
|
2744
|
-
} else if (e[0] === "{") {
|
|
2745
|
-
i = !0;
|
|
2746
|
-
break;
|
|
2747
|
-
} else if (e[0] === "}") {
|
|
2748
|
-
this.end(e);
|
|
2749
|
-
break;
|
|
2750
|
-
} else
|
|
2751
|
-
o.push(e);
|
|
2752
|
-
this.pos += 1;
|
|
2753
|
-
}
|
|
2754
|
-
this.pos === this.tokens.length && (n = !0), r.raws.between = this.spacesFromEnd(o), o.length ? (r.raws.afterName = this.spacesFromStart(o), this.raw(r, "params", o), n && (e = o[o.length - 1], r.source.end = {
|
|
2755
|
-
line: e[4],
|
|
2756
|
-
column: e[5]
|
|
2757
|
-
}, this.spaces = r.raws.between, r.raws.between = "")) : (r.raws.afterName = "", r.params = ""), i && (r.nodes = [], this.current = r);
|
|
2758
|
-
}, a.end = function(e) {
|
|
2759
|
-
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = {
|
|
2760
|
-
line: e[2],
|
|
2761
|
-
column: e[3]
|
|
2762
|
-
}, this.current = this.current.parent) : this.unexpectedClose(e);
|
|
2763
|
-
}, a.endFile = function() {
|
|
2764
|
-
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces;
|
|
2765
|
-
}, a.init = function(e, r, n) {
|
|
2766
|
-
this.current.push(e), e.source = {
|
|
2767
|
-
start: {
|
|
2768
|
-
line: r,
|
|
2769
|
-
column: n
|
|
2770
|
-
},
|
|
2771
|
-
input: this.input
|
|
2772
|
-
}, e.raws.before = this.spaces, this.spaces = "", e.type !== "comment" && (this.semicolon = !1);
|
|
2773
|
-
}, a.raw = function(e, r, n) {
|
|
2774
|
-
for (var i, o, u = n.length, h = "", v = !0, d = 0; d < u; d += 1)
|
|
2775
|
-
i = n[d], o = i[0], o === "comment" || o === "space" && d === u - 1 ? v = !1 : h += i[1];
|
|
2776
|
-
if (!v) {
|
|
2777
|
-
var m = n.reduce(function(_, E) {
|
|
2778
|
-
return _ + E[1];
|
|
2779
|
-
}, "");
|
|
2780
|
-
e.raws[r] = {
|
|
2781
|
-
value: h,
|
|
2782
|
-
raw: m
|
|
2783
|
-
};
|
|
2784
|
-
}
|
|
2785
|
-
e[r] = h;
|
|
2786
|
-
}, a.spacesFromEnd = function(e) {
|
|
2787
|
-
for (var r, n = ""; e.length && (r = e[e.length - 1][0], !(r !== "space" && r !== "comment")); )
|
|
2788
|
-
n = e.pop()[1] + n;
|
|
2789
|
-
return n;
|
|
2790
|
-
}, a.spacesFromStart = function(e) {
|
|
2791
|
-
for (var r, n = ""; e.length && (r = e[0][0], !(r !== "space" && r !== "comment")); )
|
|
2792
|
-
n += e.shift()[1];
|
|
2793
|
-
return n;
|
|
2794
|
-
}, a.stringFrom = function(e, r) {
|
|
2795
|
-
for (var n = "", i = r; i < e.length; i++)
|
|
2796
|
-
n += e[i][1];
|
|
2797
|
-
return e.splice(r, e.length - r), n;
|
|
2798
|
-
}, a.colon = function(e) {
|
|
2799
|
-
for (var r = 0, n, i, o, u = 0; u < e.length; u++) {
|
|
2800
|
-
if (n = e[u], i = n[0], i === "(")
|
|
2801
|
-
r += 1;
|
|
2802
|
-
else if (i === ")")
|
|
2803
|
-
r -= 1;
|
|
2804
|
-
else if (r === 0 && i === ":")
|
|
2805
|
-
if (!o)
|
|
2806
|
-
this.doubleColon(n);
|
|
2807
|
-
else {
|
|
2808
|
-
if (o[0] === "word" && o[1] === "progid")
|
|
2809
|
-
continue;
|
|
2810
|
-
return u;
|
|
2811
|
-
}
|
|
2812
|
-
o = n;
|
|
2813
|
-
}
|
|
2814
|
-
return !1;
|
|
2815
|
-
}, a.unclosedBracket = function(e) {
|
|
2816
|
-
throw this.input.error("Unclosed bracket", e[2], e[3]);
|
|
2817
|
-
}, a.unknownWord = function(e) {
|
|
2818
|
-
var r = this.tokens[e];
|
|
2819
|
-
throw this.input.error("Unknown word", r[2], r[3]);
|
|
2820
|
-
}, a.unexpectedClose = function(e) {
|
|
2821
|
-
throw this.input.error("Unexpected }", e[2], e[3]);
|
|
2822
|
-
}, a.unclosedBlock = function() {
|
|
2823
|
-
var e = this.current.source.start;
|
|
2824
|
-
throw this.input.error("Unclosed block", e.line, e.column);
|
|
2825
|
-
}, a.doubleColon = function(e) {
|
|
2826
|
-
throw this.input.error("Double colon", e[2], e[3]);
|
|
2827
|
-
}, a.unnamedAtrule = function(e, r) {
|
|
2828
|
-
throw this.input.error("At-rule without name", r[2], r[3]);
|
|
2829
|
-
}, a.precheckMissedSemicolon = function(e) {
|
|
2830
|
-
}, a.checkMissedSemicolon = function(e) {
|
|
2831
|
-
var r = this.colon(e);
|
|
2832
|
-
if (r !== !1) {
|
|
2833
|
-
for (var n = 0, i, o = r - 1; o >= 0 && (i = e[o], !(i[0] !== "space" && (n += 1, n === 2))); o--)
|
|
2834
|
-
;
|
|
2835
|
-
throw this.input.error("Missed semicolon", i[2], i[3]);
|
|
2836
|
-
}
|
|
2837
|
-
}, s;
|
|
2838
|
-
}();
|
|
2839
|
-
function jt(s, a) {
|
|
2840
|
-
if (a && a.safe)
|
|
2841
|
-
throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');
|
|
2842
|
-
var t = new zr(s, a), e = new zt(t);
|
|
2843
|
-
try {
|
|
2844
|
-
e.tokenize(), e.loop();
|
|
2845
|
-
} catch (r) {
|
|
2846
|
-
throw r.name === "CssSyntaxError" && a && a.from && (/\.scss$/i.test(a.from) ? r.message += `
|
|
2847
|
-
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.less$/i.test(a.from) && (r.message += `
|
|
2848
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), r;
|
|
2849
|
-
}
|
|
2850
|
-
return e.root;
|
|
2851
|
-
}
|
|
2852
|
-
function Yt(s) {
|
|
2853
|
-
return s.map(function(a) {
|
|
2854
|
-
return a.nodes && (a.nodes = Yt(a.nodes)), delete a.source, a;
|
|
2855
|
-
});
|
|
2856
|
-
}
|
|
2857
|
-
var Br = /* @__PURE__ */ function(s) {
|
|
2858
|
-
Ce(a, s);
|
|
2859
|
-
function a() {
|
|
2860
|
-
return s.apply(this, arguments) || this;
|
|
2861
|
-
}
|
|
2862
|
-
var t = a.prototype;
|
|
2863
|
-
return t.push = function(r) {
|
|
2864
|
-
return r.parent = this, this.nodes.push(r), this;
|
|
2865
|
-
}, t.each = function(r) {
|
|
2866
|
-
this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
|
|
2867
|
-
var n = this.lastEach;
|
|
2868
|
-
if (this.indexes[n] = 0, !!this.nodes) {
|
|
2869
|
-
for (var i, o; this.indexes[n] < this.nodes.length && (i = this.indexes[n], o = r(this.nodes[i], i), o !== !1); )
|
|
2870
|
-
this.indexes[n] += 1;
|
|
2871
|
-
return delete this.indexes[n], o;
|
|
2872
|
-
}
|
|
2873
|
-
}, t.walk = function(r) {
|
|
2874
|
-
return this.each(function(n, i) {
|
|
2875
|
-
var o = r(n, i);
|
|
2876
|
-
return o !== !1 && n.walk && (o = n.walk(r)), o;
|
|
2877
|
-
});
|
|
2878
|
-
}, t.walkDecls = function(r, n) {
|
|
2879
|
-
return n ? r instanceof RegExp ? this.walk(function(i, o) {
|
|
2880
|
-
if (i.type === "decl" && r.test(i.prop))
|
|
2881
|
-
return n(i, o);
|
|
2882
|
-
}) : this.walk(function(i, o) {
|
|
2883
|
-
if (i.type === "decl" && i.prop === r)
|
|
2884
|
-
return n(i, o);
|
|
2885
|
-
}) : (n = r, this.walk(function(i, o) {
|
|
2886
|
-
if (i.type === "decl")
|
|
2887
|
-
return n(i, o);
|
|
2888
|
-
}));
|
|
2889
|
-
}, t.walkRules = function(r, n) {
|
|
2890
|
-
return n ? r instanceof RegExp ? this.walk(function(i, o) {
|
|
2891
|
-
if (i.type === "rule" && r.test(i.selector))
|
|
2892
|
-
return n(i, o);
|
|
2893
|
-
}) : this.walk(function(i, o) {
|
|
2894
|
-
if (i.type === "rule" && i.selector === r)
|
|
2895
|
-
return n(i, o);
|
|
2896
|
-
}) : (n = r, this.walk(function(i, o) {
|
|
2897
|
-
if (i.type === "rule")
|
|
2898
|
-
return n(i, o);
|
|
2899
|
-
}));
|
|
2900
|
-
}, t.walkAtRules = function(r, n) {
|
|
2901
|
-
return n ? r instanceof RegExp ? this.walk(function(i, o) {
|
|
2902
|
-
if (i.type === "atrule" && r.test(i.name))
|
|
2903
|
-
return n(i, o);
|
|
2904
|
-
}) : this.walk(function(i, o) {
|
|
2905
|
-
if (i.type === "atrule" && i.name === r)
|
|
2906
|
-
return n(i, o);
|
|
2907
|
-
}) : (n = r, this.walk(function(i, o) {
|
|
2908
|
-
if (i.type === "atrule")
|
|
2909
|
-
return n(i, o);
|
|
2910
|
-
}));
|
|
2911
|
-
}, t.walkComments = function(r) {
|
|
2912
|
-
return this.walk(function(n, i) {
|
|
2913
|
-
if (n.type === "comment")
|
|
2914
|
-
return r(n, i);
|
|
2915
|
-
});
|
|
2916
|
-
}, t.append = function() {
|
|
2917
|
-
for (var r = this, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
2918
|
-
i[o] = arguments[o];
|
|
2919
|
-
return i.forEach(function(u) {
|
|
2920
|
-
var h = r.normalize(u, r.last);
|
|
2921
|
-
h.forEach(function(v) {
|
|
2922
|
-
return r.nodes.push(v);
|
|
2923
|
-
});
|
|
2924
|
-
}), this;
|
|
2925
|
-
}, t.prepend = function() {
|
|
2926
|
-
for (var r = this, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
2927
|
-
i[o] = arguments[o];
|
|
2928
|
-
return i = i.reverse(), i.forEach(function(u) {
|
|
2929
|
-
var h = r.normalize(u, r.first, "prepend").reverse();
|
|
2930
|
-
h.forEach(function(d) {
|
|
2931
|
-
return r.nodes.unshift(d);
|
|
2932
|
-
});
|
|
2933
|
-
for (var v in r.indexes)
|
|
2934
|
-
r.indexes[v] = r.indexes[v] + h.length;
|
|
2935
|
-
}), this;
|
|
2936
|
-
}, t.cleanRaws = function(r) {
|
|
2937
|
-
s.prototype.cleanRaws.call(this, r), this.nodes && this.nodes.forEach(function(n) {
|
|
2938
|
-
return n.cleanRaws(r);
|
|
2939
|
-
});
|
|
2940
|
-
}, t.insertBefore = function(r, n) {
|
|
2941
|
-
var i = this;
|
|
2942
|
-
r = this.index(r);
|
|
2943
|
-
var o = r === 0 ? "prepend" : !1, u = this.normalize(n, this.nodes[r], o).reverse();
|
|
2944
|
-
u.forEach(function(d) {
|
|
2945
|
-
return i.nodes.splice(r, 0, d);
|
|
2946
|
-
});
|
|
2947
|
-
var h;
|
|
2948
|
-
for (var v in this.indexes)
|
|
2949
|
-
h = this.indexes[v], r <= h && (this.indexes[v] = h + u.length);
|
|
2950
|
-
return this;
|
|
2951
|
-
}, t.insertAfter = function(r, n) {
|
|
2952
|
-
var i = this;
|
|
2953
|
-
r = this.index(r);
|
|
2954
|
-
var o = this.normalize(n, this.nodes[r]).reverse();
|
|
2955
|
-
o.forEach(function(v) {
|
|
2956
|
-
return i.nodes.splice(r + 1, 0, v);
|
|
2957
|
-
});
|
|
2958
|
-
var u;
|
|
2959
|
-
for (var h in this.indexes)
|
|
2960
|
-
u = this.indexes[h], r < u && (this.indexes[h] = u + o.length);
|
|
2961
|
-
return this;
|
|
2962
|
-
}, t.remove = function(r) {
|
|
2963
|
-
return typeof r < "u" ? (D("Container#remove is deprecated. Use Container#removeChild"), this.removeChild(r)) : s.prototype.remove.call(this), this;
|
|
2964
|
-
}, t.removeChild = function(r) {
|
|
2965
|
-
r = this.index(r), this.nodes[r].parent = void 0, this.nodes.splice(r, 1);
|
|
2966
|
-
var n;
|
|
2967
|
-
for (var i in this.indexes)
|
|
2968
|
-
n = this.indexes[i], n >= r && (this.indexes[i] = n - 1);
|
|
2969
|
-
return this;
|
|
2970
|
-
}, t.removeAll = function() {
|
|
2971
|
-
return this.nodes.forEach(function(r) {
|
|
2972
|
-
return r.parent = void 0;
|
|
2973
|
-
}), this.nodes = [], this;
|
|
2974
|
-
}, t.replaceValues = function(r, n, i) {
|
|
2975
|
-
return i || (i = n, n = {}), this.walkDecls(function(o) {
|
|
2976
|
-
n.props && n.props.indexOf(o.prop) === -1 || n.fast && o.value.indexOf(n.fast) === -1 || (o.value = o.value.replace(r, i));
|
|
2977
|
-
}), this;
|
|
2978
|
-
}, t.every = function(r) {
|
|
2979
|
-
return this.nodes.every(r);
|
|
2980
|
-
}, t.some = function(r) {
|
|
2981
|
-
return this.nodes.some(r);
|
|
2982
|
-
}, t.index = function(r) {
|
|
2983
|
-
return typeof r == "number" ? r : this.nodes.indexOf(r);
|
|
2984
|
-
}, t.normalize = function(r, n) {
|
|
2985
|
-
var i = this;
|
|
2986
|
-
if (typeof r == "string")
|
|
2987
|
-
r = Yt(jt(r).nodes);
|
|
2988
|
-
else if (!Array.isArray(r))
|
|
2989
|
-
if (r.type === "root")
|
|
2990
|
-
r = r.nodes;
|
|
2991
|
-
else if (r.type)
|
|
2992
|
-
r = [r];
|
|
2993
|
-
else if (r.prop) {
|
|
2994
|
-
if (typeof r.value > "u")
|
|
2995
|
-
throw new Error("Value field is missed in node creation");
|
|
2996
|
-
typeof r.value != "string" && (r.value = String(r.value)), r = [new Er(r)];
|
|
2997
|
-
} else if (r.selector)
|
|
2998
|
-
r = [new nr(r)];
|
|
2999
|
-
else if (r.name)
|
|
3000
|
-
r = [new Sr(r)];
|
|
3001
|
-
else if (r.text)
|
|
3002
|
-
r = [new tr(r)];
|
|
3003
|
-
else
|
|
3004
|
-
throw new Error("Unknown node type in node creation");
|
|
3005
|
-
var o = r.map(function(u) {
|
|
3006
|
-
return typeof u.raws > "u" && (u = i.rebuild(u)), u.parent && (u = u.clone()), typeof u.raws.before > "u" && n && typeof n.raws.before < "u" && (u.raws.before = n.raws.before.replace(/[^\s]/g, "")), u.parent = i, u;
|
|
3007
|
-
});
|
|
3008
|
-
return o;
|
|
3009
|
-
}, t.rebuild = function(r, n) {
|
|
3010
|
-
var i = this, o;
|
|
3011
|
-
r.type === "root" ? o = new Gt() : r.type === "atrule" ? o = new Sr() : r.type === "rule" ? o = new nr() : r.type === "decl" ? o = new Er() : r.type === "comment" && (o = new tr());
|
|
3012
|
-
for (var u in r)
|
|
3013
|
-
u === "nodes" ? o.nodes = r.nodes.map(function(h) {
|
|
3014
|
-
return i.rebuild(h, o);
|
|
3015
|
-
}) : u === "parent" && n ? o.parent = n : r.hasOwnProperty(u) && (o[u] = r[u]);
|
|
3016
|
-
return o;
|
|
3017
|
-
}, t.eachInside = function(r) {
|
|
3018
|
-
return D("Container#eachInside is deprecated. Use Container#walk instead."), this.walk(r);
|
|
3019
|
-
}, t.eachDecl = function(r, n) {
|
|
3020
|
-
return D("Container#eachDecl is deprecated. Use Container#walkDecls instead."), this.walkDecls(r, n);
|
|
3021
|
-
}, t.eachRule = function(r, n) {
|
|
3022
|
-
return D("Container#eachRule is deprecated. Use Container#walkRules instead."), this.walkRules(r, n);
|
|
3023
|
-
}, t.eachAtRule = function(r, n) {
|
|
3024
|
-
return D("Container#eachAtRule is deprecated. Use Container#walkAtRules instead."), this.walkAtRules(r, n);
|
|
3025
|
-
}, t.eachComment = function(r) {
|
|
3026
|
-
return D("Container#eachComment is deprecated. Use Container#walkComments instead."), this.walkComments(r);
|
|
3027
|
-
}, de(a, [{
|
|
3028
|
-
key: "first",
|
|
3029
|
-
get: function() {
|
|
3030
|
-
if (this.nodes)
|
|
3031
|
-
return this.nodes[0];
|
|
3032
|
-
}
|
|
3033
|
-
/**
|
|
3034
|
-
* The container’s last child.
|
|
3035
|
-
*
|
|
3036
|
-
* @type {Node}
|
|
3037
|
-
*
|
|
3038
|
-
* @example
|
|
3039
|
-
* rule.last == rule.nodes[rule.nodes.length - 1];
|
|
3040
|
-
*/
|
|
3041
|
-
}, {
|
|
3042
|
-
key: "last",
|
|
3043
|
-
get: function() {
|
|
3044
|
-
if (this.nodes)
|
|
3045
|
-
return this.nodes[this.nodes.length - 1];
|
|
3046
|
-
}
|
|
3047
|
-
}, {
|
|
3048
|
-
key: "semicolon",
|
|
3049
|
-
get: function() {
|
|
3050
|
-
return D("Node#semicolon is deprecated. Use Node#raws.semicolon"), this.raws.semicolon;
|
|
3051
|
-
},
|
|
3052
|
-
set: function(r) {
|
|
3053
|
-
D("Node#semicolon is deprecated. Use Node#raws.semicolon"), this.raws.semicolon = r;
|
|
3054
|
-
}
|
|
3055
|
-
}, {
|
|
3056
|
-
key: "after",
|
|
3057
|
-
get: function() {
|
|
3058
|
-
return D("Node#after is deprecated. Use Node#raws.after"), this.raws.after;
|
|
3059
|
-
},
|
|
3060
|
-
set: function(r) {
|
|
3061
|
-
D("Node#after is deprecated. Use Node#raws.after"), this.raws.after = r;
|
|
3062
|
-
}
|
|
3063
|
-
/**
|
|
3064
|
-
* @memberof Container#
|
|
3065
|
-
* @member {Node[]} nodes - an array containing the container’s children
|
|
3066
|
-
*
|
|
3067
|
-
* @example
|
|
3068
|
-
* const root = postcss.parse('a { color: black }');
|
|
3069
|
-
* root.nodes.length //=> 1
|
|
3070
|
-
* root.nodes[0].selector //=> 'a'
|
|
3071
|
-
* root.nodes[0].nodes[0].prop //=> 'color'
|
|
3072
|
-
*/
|
|
3073
|
-
}]), a;
|
|
3074
|
-
}(Ur), Sr = /* @__PURE__ */ function(s) {
|
|
3075
|
-
Ce(a, s);
|
|
3076
|
-
function a(e) {
|
|
3077
|
-
var r;
|
|
3078
|
-
return r = s.call(this, e) || this, r.type = "atrule", r;
|
|
3079
|
-
}
|
|
3080
|
-
var t = a.prototype;
|
|
3081
|
-
return t.append = function() {
|
|
3082
|
-
var r;
|
|
3083
|
-
this.nodes || (this.nodes = []);
|
|
3084
|
-
for (var n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
3085
|
-
i[o] = arguments[o];
|
|
3086
|
-
return (r = s.prototype.append).call.apply(r, [this].concat(i));
|
|
3087
|
-
}, t.prepend = function() {
|
|
3088
|
-
var r;
|
|
3089
|
-
this.nodes || (this.nodes = []);
|
|
3090
|
-
for (var n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
3091
|
-
i[o] = arguments[o];
|
|
3092
|
-
return (r = s.prototype.prepend).call.apply(r, [this].concat(i));
|
|
3093
|
-
}, de(a, [{
|
|
3094
|
-
key: "afterName",
|
|
3095
|
-
get: function() {
|
|
3096
|
-
return D("AtRule#afterName was deprecated. Use AtRule#raws.afterName"), this.raws.afterName;
|
|
3097
|
-
},
|
|
3098
|
-
set: function(r) {
|
|
3099
|
-
D("AtRule#afterName was deprecated. Use AtRule#raws.afterName"), this.raws.afterName = r;
|
|
3100
|
-
}
|
|
3101
|
-
}, {
|
|
3102
|
-
key: "_params",
|
|
3103
|
-
get: function() {
|
|
3104
|
-
return D("AtRule#_params was deprecated. Use AtRule#raws.params"), this.raws.params;
|
|
3105
|
-
},
|
|
3106
|
-
set: function(r) {
|
|
3107
|
-
D("AtRule#_params was deprecated. Use AtRule#raws.params"), this.raws.params = r;
|
|
3108
|
-
}
|
|
3109
|
-
/**
|
|
3110
|
-
* @memberof AtRule#
|
|
3111
|
-
* @member {string} name - the at-rule’s name immediately follows the `@`
|
|
3112
|
-
*
|
|
3113
|
-
* @example
|
|
3114
|
-
* const root = postcss.parse('@media print {}');
|
|
3115
|
-
* media.name //=> 'media'
|
|
3116
|
-
* const media = root.first;
|
|
3117
|
-
*/
|
|
3118
|
-
/**
|
|
3119
|
-
* @memberof AtRule#
|
|
3120
|
-
* @member {string} params - the at-rule’s parameters, the values
|
|
3121
|
-
* that follow the at-rule’s name but precede
|
|
3122
|
-
* any {} block
|
|
3123
|
-
*
|
|
3124
|
-
* @example
|
|
3125
|
-
* const root = postcss.parse('@media print, screen {}');
|
|
3126
|
-
* const media = root.first;
|
|
3127
|
-
* media.params //=> 'print, screen'
|
|
3128
|
-
*/
|
|
3129
|
-
/**
|
|
3130
|
-
* @memberof AtRule#
|
|
3131
|
-
* @member {object} raws - Information to generate byte-to-byte equal
|
|
3132
|
-
* node string as it was in the origin input.
|
|
3133
|
-
*
|
|
3134
|
-
* Every parser saves its own properties,
|
|
3135
|
-
* but the default CSS parser uses:
|
|
3136
|
-
*
|
|
3137
|
-
* * `before`: the space symbols before the node. It also stores `*`
|
|
3138
|
-
* and `_` symbols before the declaration (IE hack).
|
|
3139
|
-
* * `after`: the space symbols after the last child of the node
|
|
3140
|
-
* to the end of the node.
|
|
3141
|
-
* * `between`: the symbols between the property and value
|
|
3142
|
-
* for declarations, selector and `{` for rules, or last parameter
|
|
3143
|
-
* and `{` for at-rules.
|
|
3144
|
-
* * `semicolon`: contains true if the last child has
|
|
3145
|
-
* an (optional) semicolon.
|
|
3146
|
-
* * `afterName`: the space between the at-rule name and its parameters.
|
|
3147
|
-
*
|
|
3148
|
-
* PostCSS cleans at-rule parameters from comments and extra spaces,
|
|
3149
|
-
* but it stores origin content in raws properties.
|
|
3150
|
-
* As such, if you don’t change a declaration’s value,
|
|
3151
|
-
* PostCSS will use the raw value with comments.
|
|
3152
|
-
*
|
|
3153
|
-
* @example
|
|
3154
|
-
* const root = postcss.parse(' @media\nprint {\n}')
|
|
3155
|
-
* root.first.first.raws //=> { before: ' ',
|
|
3156
|
-
* // between: ' ',
|
|
3157
|
-
* // afterName: '\n',
|
|
3158
|
-
* // after: '\n' }
|
|
3159
|
-
*/
|
|
3160
|
-
}]), a;
|
|
3161
|
-
}(Br), Rr = {
|
|
3162
|
-
split: function(a, t, e) {
|
|
3163
|
-
for (var r = [], n = "", i = !1, o = 0, u = !1, h = !1, v = 0; v < a.length; v++) {
|
|
3164
|
-
var d = a[v];
|
|
3165
|
-
u ? h ? h = !1 : d === "\\" ? h = !0 : d === u && (u = !1) : d === '"' || d === "'" ? u = d : d === "(" ? o += 1 : d === ")" ? o > 0 && (o -= 1) : o === 0 && t.indexOf(d) !== -1 && (i = !0), i ? (n !== "" && r.push(n.trim()), n = "", i = !1) : n += d;
|
|
3166
|
-
}
|
|
3167
|
-
return (e || n !== "") && r.push(n.trim()), r;
|
|
3168
|
-
},
|
|
3169
|
-
/**
|
|
3170
|
-
* Safely splits space-separated values (such as those for `background`,
|
|
3171
|
-
* `border-radius`, and other shorthand properties).
|
|
3172
|
-
*
|
|
3173
|
-
* @param {string} string - space-separated values
|
|
3174
|
-
*
|
|
3175
|
-
* @return {string[]} splitted values
|
|
3176
|
-
*
|
|
3177
|
-
* @example
|
|
3178
|
-
* postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)']
|
|
3179
|
-
*/
|
|
3180
|
-
space: function(a) {
|
|
3181
|
-
var t = [" ", `
|
|
3182
|
-
`, " "];
|
|
3183
|
-
return Rr.split(a, t);
|
|
3184
|
-
},
|
|
3185
|
-
/**
|
|
3186
|
-
* Safely splits comma-separated values (such as those for `transition-*`
|
|
3187
|
-
* and `background` properties).
|
|
3188
|
-
*
|
|
3189
|
-
* @param {string} string - comma-separated values
|
|
3190
|
-
*
|
|
3191
|
-
* @return {string[]} splitted values
|
|
3192
|
-
*
|
|
3193
|
-
* @example
|
|
3194
|
-
* postcss.list.comma('black, linear-gradient(white, black)')
|
|
3195
|
-
* //=> ['black', 'linear-gradient(white, black)']
|
|
3196
|
-
*/
|
|
3197
|
-
comma: function(a) {
|
|
3198
|
-
var t = ",";
|
|
3199
|
-
return Rr.split(a, [t], !0);
|
|
3200
|
-
}
|
|
3201
|
-
}, nr = /* @__PURE__ */ function(s) {
|
|
3202
|
-
Ce(a, s);
|
|
3203
|
-
function a(t) {
|
|
3204
|
-
var e;
|
|
3205
|
-
return e = s.call(this, t) || this, e.type = "rule", e.nodes || (e.nodes = []), e;
|
|
3206
|
-
}
|
|
3207
|
-
return de(a, [{
|
|
3208
|
-
key: "selectors",
|
|
3209
|
-
get: function() {
|
|
3210
|
-
return Rr.comma(this.selector);
|
|
3211
|
-
},
|
|
3212
|
-
set: function(e) {
|
|
3213
|
-
var r = this.selector ? this.selector.match(/,\s*/) : null, n = r ? r[0] : "," + this.raw("between", "beforeOpen");
|
|
3214
|
-
this.selector = e.join(n);
|
|
3215
|
-
}
|
|
3216
|
-
}, {
|
|
3217
|
-
key: "_selector",
|
|
3218
|
-
get: function() {
|
|
3219
|
-
return D("Rule#_selector is deprecated. Use Rule#raws.selector"), this.raws.selector;
|
|
3220
|
-
},
|
|
3221
|
-
set: function(e) {
|
|
3222
|
-
D("Rule#_selector is deprecated. Use Rule#raws.selector"), this.raws.selector = e;
|
|
3223
|
-
}
|
|
3224
|
-
/**
|
|
3225
|
-
* @memberof Rule#
|
|
3226
|
-
* @member {string} selector - the rule’s full selector represented
|
|
3227
|
-
* as a string
|
|
3228
|
-
*
|
|
3229
|
-
* @example
|
|
3230
|
-
* const root = postcss.parse('a, b { }');
|
|
3231
|
-
* const rule = root.first;
|
|
3232
|
-
* rule.selector //=> 'a, b'
|
|
3233
|
-
*/
|
|
3234
|
-
/**
|
|
3235
|
-
* @memberof Rule#
|
|
3236
|
-
* @member {object} raws - Information to generate byte-to-byte equal
|
|
3237
|
-
* node string as it was in the origin input.
|
|
3238
|
-
*
|
|
3239
|
-
* Every parser saves its own properties,
|
|
3240
|
-
* but the default CSS parser uses:
|
|
3241
|
-
*
|
|
3242
|
-
* * `before`: the space symbols before the node. It also stores `*`
|
|
3243
|
-
* and `_` symbols before the declaration (IE hack).
|
|
3244
|
-
* * `after`: the space symbols after the last child of the node
|
|
3245
|
-
* to the end of the node.
|
|
3246
|
-
* * `between`: the symbols between the property and value
|
|
3247
|
-
* for declarations, selector and `{` for rules, or last parameter
|
|
3248
|
-
* and `{` for at-rules.
|
|
3249
|
-
* * `semicolon`: contains true if the last child has
|
|
3250
|
-
* an (optional) semicolon.
|
|
3251
|
-
*
|
|
3252
|
-
* PostCSS cleans selectors from comments and extra spaces,
|
|
3253
|
-
* but it stores origin content in raws properties.
|
|
3254
|
-
* As such, if you don’t change a declaration’s value,
|
|
3255
|
-
* PostCSS will use the raw value with comments.
|
|
3256
|
-
*
|
|
3257
|
-
* @example
|
|
3258
|
-
* const root = postcss.parse('a {\n color:black\n}')
|
|
3259
|
-
* root.first.first.raws //=> { before: '', between: ' ', after: '\n' }
|
|
3260
|
-
*/
|
|
3261
|
-
}]), a;
|
|
3262
|
-
}(Br), oc = /* @__PURE__ */ function() {
|
|
3263
|
-
function s(t, e) {
|
|
3264
|
-
if (e === void 0 && (e = {}), this.type = "warning", this.text = t, e.node && e.node.source) {
|
|
3265
|
-
var r = e.node.positionBy(e);
|
|
3266
|
-
this.line = r.line, this.column = r.column;
|
|
3267
|
-
}
|
|
3268
|
-
for (var n in e)
|
|
3269
|
-
this[n] = e[n];
|
|
3270
|
-
}
|
|
3271
|
-
var a = s.prototype;
|
|
3272
|
-
return a.toString = function() {
|
|
3273
|
-
return this.node ? this.node.error(this.text, {
|
|
3274
|
-
plugin: this.plugin,
|
|
3275
|
-
index: this.index,
|
|
3276
|
-
word: this.word
|
|
3277
|
-
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
3278
|
-
}, s;
|
|
3279
|
-
}(), gt = /* @__PURE__ */ function() {
|
|
3280
|
-
function s(t, e, r) {
|
|
3281
|
-
this.processor = t, this.messages = [], this.root = e, this.opts = r, this.css = void 0, this.map = void 0;
|
|
3282
|
-
}
|
|
3283
|
-
var a = s.prototype;
|
|
3284
|
-
return a.toString = function() {
|
|
3285
|
-
return this.css;
|
|
3286
|
-
}, a.warn = function(e, r) {
|
|
3287
|
-
r === void 0 && (r = {}), r.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (r.plugin = this.lastPlugin.postcssPlugin);
|
|
3288
|
-
var n = new oc(e, r);
|
|
3289
|
-
return this.messages.push(n), n;
|
|
3290
|
-
}, a.warnings = function() {
|
|
3291
|
-
return this.messages.filter(function(e) {
|
|
3292
|
-
return e.type === "warning";
|
|
3293
|
-
});
|
|
3294
|
-
}, de(s, [{
|
|
3295
|
-
key: "content",
|
|
3296
|
-
get: function() {
|
|
3297
|
-
return this.css;
|
|
3298
|
-
}
|
|
3299
|
-
}]), s;
|
|
3300
|
-
}();
|
|
3301
|
-
function yt(s) {
|
|
3302
|
-
return typeof s == "object" && typeof s.then == "function";
|
|
3303
|
-
}
|
|
3304
|
-
var Wt = /* @__PURE__ */ function() {
|
|
3305
|
-
function s(t, e, r) {
|
|
3306
|
-
this.stringified = !1, this.processed = !1;
|
|
3307
|
-
var n;
|
|
3308
|
-
if (typeof e == "object" && e.type === "root")
|
|
3309
|
-
n = e;
|
|
3310
|
-
else if (e instanceof s || e instanceof gt)
|
|
3311
|
-
n = e.root, e.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = e.map);
|
|
3312
|
-
else {
|
|
3313
|
-
var i = jt;
|
|
3314
|
-
r.syntax && (i = r.syntax.parse), r.parser && (i = r.parser), i.parse && (i = i.parse);
|
|
3315
|
-
try {
|
|
3316
|
-
n = i(e, r);
|
|
3317
|
-
} catch (o) {
|
|
3318
|
-
this.error = o;
|
|
3319
|
-
}
|
|
3320
|
-
}
|
|
3321
|
-
this.result = new gt(t, n, r);
|
|
3322
|
-
}
|
|
3323
|
-
var a = s.prototype;
|
|
3324
|
-
return a.warnings = function() {
|
|
3325
|
-
return this.sync().warnings();
|
|
3326
|
-
}, a.toString = function() {
|
|
3327
|
-
return this.css;
|
|
3328
|
-
}, a.then = function(e, r) {
|
|
3329
|
-
return this.async().then(e, r);
|
|
3330
|
-
}, a.catch = function(e) {
|
|
3331
|
-
return this.async().catch(e);
|
|
3332
|
-
}, a.handleError = function(e, r) {
|
|
3333
|
-
try {
|
|
3334
|
-
if (this.error = e, e.name === "CssSyntaxError" && !e.plugin)
|
|
3335
|
-
e.plugin = r.postcssPlugin, e.setMessage();
|
|
3336
|
-
else if (r.postcssVersion) {
|
|
3337
|
-
var n = r.postcssPlugin, i = r.postcssVersion, o = this.result.processor.version, u = i.split("."), h = o.split(".");
|
|
3338
|
-
(u[0] !== h[0] || parseInt(u[1]) > parseInt(h[1])) && D("Your current PostCSS version is " + o + ", but " + n + " " + ("uses " + i + ". Perhaps this is ") + "the source of the error below.");
|
|
3339
|
-
}
|
|
3340
|
-
} catch (v) {
|
|
3341
|
-
console && console.error && console.error(v);
|
|
3342
|
-
}
|
|
3343
|
-
}, a.asyncTick = function(e, r) {
|
|
3344
|
-
var n = this;
|
|
3345
|
-
if (this.plugin >= this.processor.plugins.length)
|
|
3346
|
-
return this.processed = !0, e();
|
|
3347
|
-
try {
|
|
3348
|
-
var i = this.processor.plugins[this.plugin], o = this.run(i);
|
|
3349
|
-
this.plugin += 1, yt(o) ? o.then(function() {
|
|
3350
|
-
n.asyncTick(e, r);
|
|
3351
|
-
}).catch(function(u) {
|
|
3352
|
-
n.handleError(u, i), n.processed = !0, r(u);
|
|
3353
|
-
}) : this.asyncTick(e, r);
|
|
3354
|
-
} catch (u) {
|
|
3355
|
-
this.processed = !0, r(u);
|
|
3356
|
-
}
|
|
3357
|
-
}, a.async = function() {
|
|
3358
|
-
var e = this;
|
|
3359
|
-
return this.processed ? new Promise(function(r, n) {
|
|
3360
|
-
e.error ? n(e.error) : r(e.stringify());
|
|
3361
|
-
}) : this.processing ? this.processing : (this.processing = new Promise(function(r, n) {
|
|
3362
|
-
if (e.error)
|
|
3363
|
-
return n(e.error);
|
|
3364
|
-
e.plugin = 0, e.asyncTick(r, n);
|
|
3365
|
-
}).then(function() {
|
|
3366
|
-
return e.processed = !0, e.stringify();
|
|
3367
|
-
}), this.processing);
|
|
3368
|
-
}, a.sync = function() {
|
|
3369
|
-
var e = this;
|
|
3370
|
-
if (this.processed)
|
|
3371
|
-
return this.result;
|
|
3372
|
-
if (this.processed = !0, this.processing)
|
|
3373
|
-
throw new Error("Use process(css).then(cb) to work with async plugins");
|
|
3374
|
-
if (this.error)
|
|
3375
|
-
throw this.error;
|
|
3376
|
-
return this.result.processor.plugins.forEach(function(r) {
|
|
3377
|
-
var n = e.run(r);
|
|
3378
|
-
if (yt(n))
|
|
3379
|
-
throw new Error("Use process(css).then(cb) to work with async plugins");
|
|
3380
|
-
}), this.result;
|
|
3381
|
-
}, a.run = function(e) {
|
|
3382
|
-
this.result.lastPlugin = e;
|
|
3383
|
-
try {
|
|
3384
|
-
return e(this.result.root, this.result);
|
|
3385
|
-
} catch (r) {
|
|
3386
|
-
throw this.handleError(r, e), r;
|
|
3387
|
-
}
|
|
3388
|
-
}, a.stringify = function() {
|
|
3389
|
-
if (this.stringified)
|
|
3390
|
-
return this.result;
|
|
3391
|
-
this.stringified = !0, this.sync();
|
|
3392
|
-
var e = this.result.opts, r = Bt;
|
|
3393
|
-
e.syntax && (r = e.syntax.stringify), e.stringifier && (r = e.stringifier), r.stringify && (r = r.stringify);
|
|
3394
|
-
var n = "";
|
|
3395
|
-
return r(this.root, function(i) {
|
|
3396
|
-
n += i;
|
|
3397
|
-
}), this.result.css = n, this.result;
|
|
3398
|
-
}, de(s, [{
|
|
3399
|
-
key: "processor",
|
|
3400
|
-
get: function() {
|
|
3401
|
-
return this.result.processor;
|
|
3402
|
-
}
|
|
3403
|
-
/**
|
|
3404
|
-
* Options from the {@link Processor#process} call.
|
|
3405
|
-
* @type {processOptions}
|
|
3406
|
-
*/
|
|
3407
|
-
}, {
|
|
3408
|
-
key: "opts",
|
|
3409
|
-
get: function() {
|
|
3410
|
-
return this.result.opts;
|
|
3411
|
-
}
|
|
3412
|
-
/**
|
|
3413
|
-
* Processes input CSS through synchronous plugins, converts `Root`
|
|
3414
|
-
* to a CSS string and returns {@link Result#css}.
|
|
3415
|
-
*
|
|
3416
|
-
* This property will only work with synchronous plugins.
|
|
3417
|
-
* If the processor contains any asynchronous plugins
|
|
3418
|
-
* it will throw an error. This is why this method is only
|
|
3419
|
-
* for debug purpose, you should always use {@link LazyResult#then}.
|
|
3420
|
-
*
|
|
3421
|
-
* @type {string}
|
|
3422
|
-
* @see Result#css
|
|
3423
|
-
*/
|
|
3424
|
-
}, {
|
|
3425
|
-
key: "css",
|
|
3426
|
-
get: function() {
|
|
3427
|
-
return this.stringify().css;
|
|
3428
|
-
}
|
|
3429
|
-
/**
|
|
3430
|
-
* An alias for the `css` property. Use it with syntaxes
|
|
3431
|
-
* that generate non-CSS output.
|
|
3432
|
-
*
|
|
3433
|
-
* This property will only work with synchronous plugins.
|
|
3434
|
-
* If the processor contains any asynchronous plugins
|
|
3435
|
-
* it will throw an error. This is why this method is only
|
|
3436
|
-
* for debug purpose, you should always use {@link LazyResult#then}.
|
|
3437
|
-
*
|
|
3438
|
-
* @type {string}
|
|
3439
|
-
* @see Result#content
|
|
3440
|
-
*/
|
|
3441
|
-
}, {
|
|
3442
|
-
key: "content",
|
|
3443
|
-
get: function() {
|
|
3444
|
-
return this.stringify().content;
|
|
3445
|
-
}
|
|
3446
|
-
/**
|
|
3447
|
-
* Processes input CSS through synchronous plugins
|
|
3448
|
-
* and returns {@link Result#map}.
|
|
3449
|
-
*
|
|
3450
|
-
* This property will only work with synchronous plugins.
|
|
3451
|
-
* If the processor contains any asynchronous plugins
|
|
3452
|
-
* it will throw an error. This is why this method is only
|
|
3453
|
-
* for debug purpose, you should always use {@link LazyResult#then}.
|
|
3454
|
-
*
|
|
3455
|
-
* @type {SourceMapGenerator}
|
|
3456
|
-
* @see Result#map
|
|
3457
|
-
*/
|
|
3458
|
-
}, {
|
|
3459
|
-
key: "map",
|
|
3460
|
-
get: function() {
|
|
3461
|
-
return this.stringify().map;
|
|
3462
|
-
}
|
|
3463
|
-
/**
|
|
3464
|
-
* Processes input CSS through synchronous plugins
|
|
3465
|
-
* and returns {@link Result#root}.
|
|
3466
|
-
*
|
|
3467
|
-
* This property will only work with synchronous plugins. If the processor
|
|
3468
|
-
* contains any asynchronous plugins it will throw an error.
|
|
3469
|
-
*
|
|
3470
|
-
* This is why this method is only for debug purpose,
|
|
3471
|
-
* you should always use {@link LazyResult#then}.
|
|
3472
|
-
*
|
|
3473
|
-
* @type {Root}
|
|
3474
|
-
* @see Result#root
|
|
3475
|
-
*/
|
|
3476
|
-
}, {
|
|
3477
|
-
key: "root",
|
|
3478
|
-
get: function() {
|
|
3479
|
-
return this.sync().root;
|
|
3480
|
-
}
|
|
3481
|
-
/**
|
|
3482
|
-
* Processes input CSS through synchronous plugins
|
|
3483
|
-
* and returns {@link Result#messages}.
|
|
3484
|
-
*
|
|
3485
|
-
* This property will only work with synchronous plugins. If the processor
|
|
3486
|
-
* contains any asynchronous plugins it will throw an error.
|
|
3487
|
-
*
|
|
3488
|
-
* This is why this method is only for debug purpose,
|
|
3489
|
-
* you should always use {@link LazyResult#then}.
|
|
3490
|
-
*
|
|
3491
|
-
* @type {Message[]}
|
|
3492
|
-
* @see Result#messages
|
|
3493
|
-
*/
|
|
3494
|
-
}, {
|
|
3495
|
-
key: "messages",
|
|
3496
|
-
get: function() {
|
|
3497
|
-
return this.sync().messages;
|
|
3498
|
-
}
|
|
3499
|
-
}]), s;
|
|
3500
|
-
}(), cc = /* @__PURE__ */ function() {
|
|
3501
|
-
function s(t) {
|
|
3502
|
-
t === void 0 && (t = []), this.version = "5.2.0", this.plugins = this.normalize(t);
|
|
3503
|
-
}
|
|
3504
|
-
var a = s.prototype;
|
|
3505
|
-
return a.use = function(e) {
|
|
3506
|
-
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
3507
|
-
}, a.process = function(e, r) {
|
|
3508
|
-
return r === void 0 && (r = {}), new Wt(this, e, r);
|
|
3509
|
-
}, a.normalize = function(e) {
|
|
3510
|
-
var r = [];
|
|
3511
|
-
return e.forEach(function(n) {
|
|
3512
|
-
if (n.postcss && (n = n.postcss), typeof n == "object" && Array.isArray(n.plugins))
|
|
3513
|
-
r = r.concat(n.plugins);
|
|
3514
|
-
else if (typeof n == "function")
|
|
3515
|
-
r.push(n);
|
|
3516
|
-
else
|
|
3517
|
-
throw new Error(n + " is not a PostCSS plugin");
|
|
3518
|
-
}), r;
|
|
3519
|
-
}, s;
|
|
3520
|
-
}(), Gt = /* @__PURE__ */ function(s) {
|
|
3521
|
-
Ce(a, s);
|
|
3522
|
-
function a(e) {
|
|
3523
|
-
var r;
|
|
3524
|
-
return r = s.call(this, e) || this, r.type = "root", r.nodes || (r.nodes = []), r;
|
|
3525
|
-
}
|
|
3526
|
-
var t = a.prototype;
|
|
3527
|
-
return t.removeChild = function(r) {
|
|
3528
|
-
return r = this.index(r), r === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), s.prototype.removeChild.call(this, r);
|
|
3529
|
-
}, t.normalize = function(r, n, i) {
|
|
3530
|
-
var o = s.prototype.normalize.call(this, r);
|
|
3531
|
-
return n && (i === "prepend" ? this.nodes.length > 1 ? n.raws.before = this.nodes[1].raws.before : delete n.raws.before : this.first !== n && o.forEach(function(u) {
|
|
3532
|
-
u.raws.before = n.raws.before;
|
|
3533
|
-
})), o;
|
|
3534
|
-
}, t.toResult = function(r) {
|
|
3535
|
-
r === void 0 && (r = {});
|
|
3536
|
-
var n = new Wt(new cc(), this, r);
|
|
3537
|
-
return n.stringify();
|
|
3538
|
-
}, t.remove = function(r) {
|
|
3539
|
-
D("Root#remove is deprecated. Use Root#removeChild"), this.removeChild(r);
|
|
3540
|
-
}, t.prevMap = function() {
|
|
3541
|
-
return D("Root#prevMap is deprecated. Use Root#source.input.map"), this.source.input.map;
|
|
3542
|
-
}, a;
|
|
3543
|
-
}(Br), bt = 0, zr = /* @__PURE__ */ function() {
|
|
3544
|
-
function s(t, e) {
|
|
3545
|
-
e === void 0 && (e = {}), this.css = t.toString(), (this.css[0] === "\uFEFF" || this.css[0] === "") && (this.css = this.css.slice(1)), e.from && (/^\w+:\/\//.test(e.from) ? this.file = e.from : this.file = path.resolve(e.from)), this.file || (bt += 1, this.id = "<input css " + bt + ">"), this.map && (this.map.file = this.from);
|
|
3546
|
-
}
|
|
3547
|
-
var a = s.prototype;
|
|
3548
|
-
return a.error = function(e, r, n, i) {
|
|
3549
|
-
i === void 0 && (i = {});
|
|
3550
|
-
var o, u = this.origin(r, n);
|
|
3551
|
-
return u ? o = new Ar(e, u.line, u.column, u.source, u.file, i.plugin) : o = new Ar(e, r, n, this.css, this.file, i.plugin), o.input = {
|
|
3552
|
-
line: r,
|
|
3553
|
-
column: n,
|
|
3554
|
-
source: this.css
|
|
3555
|
-
}, this.file && (o.input.file = this.file), o;
|
|
3556
|
-
}, a.origin = function(e, r) {
|
|
3557
|
-
if (!this.map)
|
|
3558
|
-
return !1;
|
|
3559
|
-
var n = this.map.consumer(), i = n.originalPositionFor({
|
|
3560
|
-
line: e,
|
|
3561
|
-
column: r
|
|
3562
|
-
});
|
|
3563
|
-
if (!i.source)
|
|
3564
|
-
return !1;
|
|
3565
|
-
var o = {
|
|
3566
|
-
file: this.mapResolve(i.source),
|
|
3567
|
-
line: i.line,
|
|
3568
|
-
column: i.column
|
|
3569
|
-
}, u = n.sourceContentFor(i.source);
|
|
3570
|
-
return u && (o.source = u), o;
|
|
3571
|
-
}, a.mapResolve = function(e) {
|
|
3572
|
-
return /^\w+:\/\//.test(e) ? e : path.resolve(this.map.consumer().sourceRoot || ".", e);
|
|
3573
|
-
}, de(s, [{
|
|
3574
|
-
key: "from",
|
|
3575
|
-
get: function() {
|
|
3576
|
-
return this.file || this.id;
|
|
3577
|
-
}
|
|
3578
|
-
}]), s;
|
|
3579
|
-
}(), uc = /* @__PURE__ */ function(s) {
|
|
3580
|
-
Ce(a, s);
|
|
3581
|
-
function a() {
|
|
3582
|
-
return s.apply(this, arguments) || this;
|
|
3583
|
-
}
|
|
3584
|
-
var t = a.prototype;
|
|
3585
|
-
return t.tokenize = function() {
|
|
3586
|
-
this.tokens = Vr(this.input, {
|
|
3587
|
-
ignoreErrors: !0
|
|
3588
|
-
});
|
|
3589
|
-
}, t.comment = function(r) {
|
|
3590
|
-
var n = new tr();
|
|
3591
|
-
this.init(n, r[2], r[3]), n.source.end = {
|
|
3592
|
-
line: r[4],
|
|
3593
|
-
column: r[5]
|
|
3594
|
-
};
|
|
3595
|
-
var i = r[1].slice(2);
|
|
3596
|
-
if (i.slice(-2) === "*/" && (i = i.slice(0, -2)), /^\s*$/.test(i))
|
|
3597
|
-
n.text = "", n.raws.left = i, n.raws.right = "";
|
|
3598
|
-
else {
|
|
3599
|
-
var o = i.match(/^(\s*)([^]*[^\s])(\s*)$/);
|
|
3600
|
-
n.text = o[2], n.raws.left = o[1], n.raws.right = o[3];
|
|
3601
|
-
}
|
|
3602
|
-
}, t.unclosedBracket = function() {
|
|
3603
|
-
}, t.unknownWord = function(r) {
|
|
3604
|
-
var n = this.tokens.slice(r, this.pos + 1);
|
|
3605
|
-
this.spaces += n.map(function(i) {
|
|
3606
|
-
return i[1];
|
|
3607
|
-
}).join("");
|
|
3608
|
-
}, t.unexpectedClose = function() {
|
|
3609
|
-
this.current.raws.after += "}";
|
|
3610
|
-
}, t.doubleColon = function() {
|
|
3611
|
-
}, t.unnamedAtrule = function(r) {
|
|
3612
|
-
r.name = "";
|
|
3613
|
-
}, t.precheckMissedSemicolon = function(r) {
|
|
3614
|
-
var n = this.colon(r);
|
|
3615
|
-
if (n !== !1) {
|
|
3616
|
-
var i;
|
|
3617
|
-
for (i = n - 1; i >= 0 && r[i][0] !== "word"; i--)
|
|
3618
|
-
;
|
|
3619
|
-
for (i -= 1; i >= 0; i--)
|
|
3620
|
-
if (r[i][0] !== "space") {
|
|
3621
|
-
i += 1;
|
|
3622
|
-
break;
|
|
3623
|
-
}
|
|
3624
|
-
var o = r.splice(i, r.length - i);
|
|
3625
|
-
this.decl(o);
|
|
3626
|
-
}
|
|
3627
|
-
}, t.checkMissedSemicolon = function() {
|
|
3628
|
-
}, t.endFile = function() {
|
|
3629
|
-
for (this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces; this.current.parent; )
|
|
3630
|
-
this.current = this.current.parent, this.current.raws.after = "";
|
|
3631
|
-
}, a;
|
|
3632
|
-
}(zt);
|
|
3633
|
-
function fc(s, a) {
|
|
3634
|
-
var t = new zr(s, a), e = new uc(t);
|
|
3635
|
-
return e.tokenize(), e.loop(), e.root;
|
|
3636
|
-
}
|
|
3637
|
-
var br = {}, lc = function(s) {
|
|
3638
|
-
var a = /* @__PURE__ */ function() {
|
|
3639
|
-
function t(r) {
|
|
3640
|
-
this.rules = r;
|
|
3641
|
-
}
|
|
3642
|
-
var e = t.prototype;
|
|
3643
|
-
return e.generateStyleObject = function(n) {
|
|
3644
|
-
var i = Be(this.rules, n).join(""), o = ao(i);
|
|
3645
|
-
if (!br[o]) {
|
|
3646
|
-
var u = fc(i), h = [];
|
|
3647
|
-
u.each(function(m) {
|
|
3648
|
-
m.type === "decl" ? h.push([m.prop, m.value]) : process.env.NODE_ENV !== "production" && m.type !== "comment" && console.warn("Node of type " + m.type + " not supported as an inline style");
|
|
3649
|
-
});
|
|
3650
|
-
var v = Bs(h, ["borderRadius", "borderWidth", "borderColor", "borderStyle"]), d = s.create({
|
|
3651
|
-
generated: v
|
|
3652
|
-
});
|
|
3653
|
-
br[o] = d.generated;
|
|
3654
|
-
}
|
|
3655
|
-
return br[o];
|
|
3656
|
-
}, t;
|
|
3657
|
-
}();
|
|
3658
|
-
return a;
|
|
3659
|
-
}, Tr = function(a) {
|
|
3660
|
-
return typeof a == "function" || typeof a == "object" && a !== null && !Array.isArray(a);
|
|
3661
|
-
}, hc = function(a) {
|
|
3662
|
-
return a !== "__proto__" && a !== "constructor" && a !== "prototype";
|
|
3663
|
-
};
|
|
3664
|
-
function dc(s, a, t) {
|
|
3665
|
-
var e = s[t];
|
|
3666
|
-
Tr(a) && Tr(e) ? Ht(e, a) : s[t] = a;
|
|
3667
|
-
}
|
|
3668
|
-
function Ht(s) {
|
|
3669
|
-
for (var a = arguments.length, t = new Array(a > 1 ? a - 1 : 0), e = 1; e < a; e++)
|
|
3670
|
-
t[e - 1] = arguments[e];
|
|
3671
|
-
for (var r = 0, n = t; r < n.length; r++) {
|
|
3672
|
-
var i = n[r];
|
|
3673
|
-
if (Tr(i))
|
|
3674
|
-
for (var o in i)
|
|
3675
|
-
hc(o) && dc(s, i[o], o);
|
|
3676
|
-
}
|
|
3677
|
-
return s;
|
|
3678
|
-
}
|
|
3679
|
-
var qt = function(s, a, t) {
|
|
3680
|
-
return t === void 0 && (t = $e), s.theme !== t.theme && s.theme || a || t.theme;
|
|
3681
|
-
};
|
|
3682
|
-
function jr(s) {
|
|
3683
|
-
return typeof s == "string" && (process.env.NODE_ENV !== "production" ? s.charAt(0) === s.charAt(0).toLowerCase() : !0);
|
|
3684
|
-
}
|
|
3685
|
-
function pc(s) {
|
|
3686
|
-
return jr(s) ? "styled." + s : "Styled(" + er(s) + ")";
|
|
3687
|
-
}
|
|
3688
|
-
var ke = ge.createContext(), Xt = ke.Consumer;
|
|
3689
|
-
function vc(s, a) {
|
|
3690
|
-
if (!s)
|
|
3691
|
-
return we(14);
|
|
3692
|
-
if (ze(s)) {
|
|
3693
|
-
var t = s(a);
|
|
3694
|
-
return process.env.NODE_ENV !== "production" && (t === null || Array.isArray(t) || typeof t != "object") ? we(7) : t;
|
|
3695
|
-
}
|
|
3696
|
-
return Array.isArray(s) || typeof s != "object" ? we(8) : a ? ce({}, a, {}, s) : s;
|
|
3697
|
-
}
|
|
3698
|
-
function mc(s) {
|
|
3699
|
-
var a = Pr(ke), t = kn(function() {
|
|
3700
|
-
return vc(s.theme, a);
|
|
3701
|
-
}, [s.theme, a]);
|
|
3702
|
-
return s.children ? /* @__PURE__ */ ge.createElement(ke.Provider, {
|
|
3703
|
-
value: t
|
|
3704
|
-
}, s.children) : null;
|
|
3705
|
-
}
|
|
3706
|
-
var Ct = function() {
|
|
3707
|
-
return !0;
|
|
3708
|
-
}, wc = /* @__PURE__ */ function(s) {
|
|
3709
|
-
Ce(a, s);
|
|
3710
|
-
function a() {
|
|
3711
|
-
for (var e, r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
3712
|
-
n[i] = arguments[i];
|
|
3713
|
-
return e = s.call.apply(s, [this].concat(n)) || this, e.attrs = {}, e;
|
|
3714
|
-
}
|
|
3715
|
-
var t = a.prototype;
|
|
3716
|
-
return t.render = function() {
|
|
3717
|
-
var r = this;
|
|
3718
|
-
return /* @__PURE__ */ ge.createElement(Xt, null, function(n) {
|
|
3719
|
-
var i = r.props, o = i.$as, u = i.as, h = i.forwardedComponent, v = i.forwardedAs, d = i.forwardedRef, m = i.testID, _ = i.style, E = _ === void 0 ? [] : _, M = kt(i, ["$as", "as", "forwardedComponent", "forwardedAs", "forwardedRef", "testID", "style"]), k = h.defaultProps, $ = h.target, N = h.shouldForwardProp, C = r.attrs.$as || r.attrs.as || o || u || $, y = r.generateAndInjectStyles(qt(r.props, n, k) || $e, r.props), f = jr(C), Q = r.attrs !== M ? ce({}, M, {}, r.attrs) : M, ue = N || f && Ct, ie = {}, te;
|
|
3720
|
-
for (te in Q)
|
|
3721
|
-
te[0] === "$" || te === "as" || (te === "forwardedAs" ? ie.as = M[te] : (!ue || ue(te, Ct)) && (ie[te] = Q[te]));
|
|
3722
|
-
return ie.style = typeof E == "function" ? function(pe) {
|
|
3723
|
-
return [y].concat(E(pe));
|
|
3724
|
-
} : [y].concat(E), ie.testID = m, d && (ie.ref = d), v && (ie.as = v), Fn(C, ie);
|
|
3725
|
-
});
|
|
3726
|
-
}, t.buildExecutionContext = function(r, n, i) {
|
|
3727
|
-
var o = this, u = ce({}, n, {
|
|
3728
|
-
theme: r
|
|
3729
|
-
});
|
|
3730
|
-
return i.length && (this.attrs = {}, i.forEach(function(h) {
|
|
3731
|
-
var v = h, d, m;
|
|
3732
|
-
ze(v) && (v = v(u));
|
|
3733
|
-
for (m in v)
|
|
3734
|
-
d = v[m], o.attrs[m] = d, u[m] = d;
|
|
3735
|
-
})), u;
|
|
3736
|
-
}, t.generateAndInjectStyles = function(r, n) {
|
|
3737
|
-
var i = n.forwardedComponent.inlineStyle, o = this.buildExecutionContext(r, n, n.forwardedComponent.attrs);
|
|
3738
|
-
return i.generateStyleObject(o);
|
|
3739
|
-
}, t.setNativeProps = function(r) {
|
|
3740
|
-
this.root !== void 0 ? this.root.setNativeProps(r) : process.env.NODE_ENV !== "production" && console.warn("setNativeProps was called on a Styled Component wrapping a stateless functional component.");
|
|
3741
|
-
}, a;
|
|
3742
|
-
}(Dn), gc = function(s) {
|
|
3743
|
-
var a = function t(e, r, n) {
|
|
3744
|
-
var i = r.attrs, o = i === void 0 ? Lr : i, u = r.displayName, h = u === void 0 ? pc(e) : u, v = r.ParentComponent, d = v === void 0 ? wc : v, m = !jr(e), _ = Fr(e), E = ge.forwardRef(function($, N) {
|
|
3745
|
-
return /* @__PURE__ */ ge.createElement(d, ce({}, $, {
|
|
3746
|
-
forwardedComponent: E,
|
|
3747
|
-
forwardedRef: N
|
|
3748
|
-
}));
|
|
3749
|
-
}), M = (
|
|
3750
|
-
// $FlowFixMe
|
|
3751
|
-
_ && e.attrs ? Array.prototype.concat(e.attrs, o).filter(Boolean) : o
|
|
3752
|
-
), k = r.shouldForwardProp;
|
|
3753
|
-
return _ && e.shouldForwardProp && (k ? k = function(N, C, y) {
|
|
3754
|
-
return (
|
|
3755
|
-
// $FlowFixMe
|
|
3756
|
-
e.shouldForwardProp(N, C, y) && r.shouldForwardProp(N, C, y)
|
|
3757
|
-
);
|
|
3758
|
-
} : k = e.shouldForwardProp), E.attrs = M, E.displayName = h, E.shouldForwardProp = k, E.inlineStyle = new s(
|
|
3759
|
-
// $FlowFixMe
|
|
3760
|
-
_ ? e.inlineStyle.rules.concat(n) : n
|
|
3761
|
-
), E.styledComponentId = "StyledNativeComponent", E.target = _ ? (
|
|
3762
|
-
// $FlowFixMe
|
|
3763
|
-
e.target
|
|
3764
|
-
) : e, E.withComponent = function(N) {
|
|
3765
|
-
r.displayName, r.componentId;
|
|
3766
|
-
var C = kt(r, ["displayName", "componentId"]), y = ce({}, C, {
|
|
3767
|
-
attrs: M,
|
|
3768
|
-
ParentComponent: d
|
|
3769
|
-
});
|
|
3770
|
-
return t(N, y, n);
|
|
3771
|
-
}, Object.defineProperty(E, "defaultProps", {
|
|
3772
|
-
get: function() {
|
|
3773
|
-
return this._foldedDefaultProps;
|
|
3774
|
-
},
|
|
3775
|
-
set: function(N) {
|
|
3776
|
-
this._foldedDefaultProps = _ ? Ht({}, e.defaultProps, N) : N;
|
|
3777
|
-
}
|
|
3778
|
-
}), m && Nt(E, e, {
|
|
3779
|
-
// all SC-specific things should not be hoisted
|
|
3780
|
-
attrs: !0,
|
|
3781
|
-
displayName: !0,
|
|
3782
|
-
shouldForwardProp: !0,
|
|
3783
|
-
inlineStyle: !0,
|
|
3784
|
-
styledComponentId: !0,
|
|
3785
|
-
target: !0,
|
|
3786
|
-
withComponent: !0
|
|
3787
|
-
}), E;
|
|
3788
|
-
};
|
|
3789
|
-
return a;
|
|
3790
|
-
}, xt = function(s, a) {
|
|
3791
|
-
for (var t = [s[0]], e = 0, r = a.length; e < r; e += 1)
|
|
3792
|
-
t.push(a[e], s[e + 1]);
|
|
3793
|
-
return t;
|
|
3794
|
-
}, At = function(a) {
|
|
3795
|
-
return Array.isArray(a) && (a.isCss = !0), a;
|
|
3796
|
-
};
|
|
3797
|
-
function Kt(s) {
|
|
3798
|
-
for (var a = arguments.length, t = new Array(a > 1 ? a - 1 : 0), e = 1; e < a; e++)
|
|
3799
|
-
t[e - 1] = arguments[e];
|
|
3800
|
-
return ze(s) || kr(s) ? At(Be(xt(Lr, [s].concat(t)))) : t.length === 0 && s.length === 1 && typeof s[0] == "string" ? s : At(Be(xt(s, t)));
|
|
3801
|
-
}
|
|
3802
|
-
function _r(s, a, t) {
|
|
3803
|
-
if (t === void 0 && (t = $e), !ir.isValidElementType(a))
|
|
3804
|
-
return we(1, String(a));
|
|
3805
|
-
var e = function() {
|
|
3806
|
-
return s(a, t, Kt.apply(void 0, arguments));
|
|
3807
|
-
};
|
|
3808
|
-
return e.withConfig = function(r) {
|
|
3809
|
-
return _r(s, a, ce({}, t, {}, r));
|
|
3810
|
-
}, e.attrs = function(r) {
|
|
3811
|
-
return _r(s, a, ce({}, t, {
|
|
3812
|
-
attrs: Array.prototype.concat(t.attrs, r).filter(Boolean)
|
|
3813
|
-
}));
|
|
3814
|
-
}, e;
|
|
3815
|
-
}
|
|
3816
|
-
var yc = function(s) {
|
|
3817
|
-
var a = ge.forwardRef(function(t, e) {
|
|
3818
|
-
var r = Pr(ke), n = s.defaultProps, i = qt(t, r, n);
|
|
3819
|
-
return process.env.NODE_ENV !== "production" && i === void 0 && console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "' + er(s) + '"'), /* @__PURE__ */ ge.createElement(s, ce({}, t, {
|
|
3820
|
-
theme: i,
|
|
3821
|
-
ref: e
|
|
3822
|
-
}));
|
|
3823
|
-
});
|
|
3824
|
-
return Nt(a, s), a.displayName = "WithTheme(" + er(s) + ")", a;
|
|
3825
|
-
}, bc = function() {
|
|
3826
|
-
return Pr(ke);
|
|
3827
|
-
}, Qt = require("react-native"), Cc = lc(Qt.StyleSheet), xc = gc(Cc), Or = function(a) {
|
|
3828
|
-
return _r(xc, a);
|
|
3829
|
-
}, Ac = `ActivityIndicator ActivityIndicatorIOS ART Button DatePickerIOS DrawerLayoutAndroid
|
|
3830
|
-
Image ImageBackground ImageEditor ImageStore KeyboardAvoidingView ListView MapView Modal NavigatorIOS
|
|
3831
|
-
Picker PickerIOS ProgressBarAndroid ProgressViewIOS ScrollView SegmentedControlIOS Slider
|
|
3832
|
-
SliderIOS SnapshotViewIOS Switch RecyclerViewBackedScrollView RefreshControl SafeAreaView StatusBar
|
|
3833
|
-
SwipeableListView SwitchAndroid SwitchIOS TabBarIOS Text TextInput ToastAndroid ToolbarAndroid
|
|
3834
|
-
Touchable TouchableHighlight TouchableNativeFeedback TouchableOpacity TouchableWithoutFeedback
|
|
3835
|
-
View ViewPagerAndroid WebView FlatList SectionList VirtualizedList Pressable`;
|
|
3836
|
-
Ac.split(/\s+/m).forEach(function(s) {
|
|
3837
|
-
return Object.defineProperty(Or, s, {
|
|
3838
|
-
enumerable: !0,
|
|
3839
|
-
configurable: !1,
|
|
3840
|
-
get: function() {
|
|
3841
|
-
return Or(Qt[s]);
|
|
3842
|
-
}
|
|
3843
|
-
});
|
|
3844
|
-
});
|
|
3845
|
-
const Ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3846
|
-
__proto__: null,
|
|
3847
|
-
ThemeConsumer: Xt,
|
|
3848
|
-
ThemeContext: ke,
|
|
3849
|
-
ThemeProvider: mc,
|
|
3850
|
-
css: Kt,
|
|
3851
|
-
default: Or,
|
|
3852
|
-
isStyledComponent: Fr,
|
|
3853
|
-
useTheme: bc,
|
|
3854
|
-
withTheme: yc
|
|
3855
|
-
}, Symbol.toStringTag, { value: "Module" })), {
|
|
3856
|
-
default: _c,
|
|
3857
|
-
css: Oc,
|
|
3858
|
-
ThemeProvider: Pc,
|
|
3859
|
-
ThemeContext: Nc,
|
|
3860
|
-
useTheme: Ic
|
|
3861
|
-
} = Ec;
|
|
3862
|
-
export {
|
|
3863
|
-
Nc as T,
|
|
3864
|
-
Tc as a,
|
|
3865
|
-
Pc as b,
|
|
3866
|
-
Oc as c,
|
|
3867
|
-
ke as d,
|
|
3868
|
-
Nr as g,
|
|
3869
|
-
ir as r,
|
|
3870
|
-
_c as s,
|
|
3871
|
-
Ic as u
|
|
3872
|
-
};
|