@preply/ds-web-lib 10.0.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/dist/Accordion-B0hR-tcI.js +96 -0
  2. package/dist/AlertBannerProvider-Cf7w9AOq.js +76 -0
  3. package/dist/AlertDialog-BG-diKBi.js +475 -0
  4. package/dist/Avatar-B-JdqVyg.js +66 -0
  5. package/dist/AvatarWithStatus-CD9jEqEB.js +36 -0
  6. package/dist/Badge-Dd-CLBoW.js +50 -0
  7. package/dist/Box-BJBE9KNm.js +91 -0
  8. package/dist/BubbleCounter.module-BU2S0euA.js +16 -0
  9. package/dist/Button-C35BZJZT.js +91 -0
  10. package/dist/ButtonBase-8eUyTWxX.js +215 -0
  11. package/dist/Checkbox-CtolNbxI.js +108 -0
  12. package/dist/Chips-BRGw7Uup.js +99 -0
  13. package/dist/ChipsPrimitive-Bezq7ptE.js +1179 -0
  14. package/dist/CountryFlag-DVDKHmQH.js +43 -0
  15. package/dist/Dialog.module-Db2BJAn4.js +21 -0
  16. package/dist/DialogCloseButton-DjDd9Mid.js +98 -0
  17. package/dist/DialogDescription-8zw9t6pm.js +44 -0
  18. package/dist/DialogRoot-B67oJduC.js +335 -0
  19. package/dist/DialogRootContext-Bz8RW-Mq.js +12 -0
  20. package/dist/DialogTitle-C2Nn2ys-.js +43 -0
  21. package/dist/Divider-DvwDWB9_.js +17 -0
  22. package/dist/DropdownMenu.primitives-BrsTBvMk.js +4007 -0
  23. package/dist/FieldButton-B2slox8P.js +32 -0
  24. package/dist/FormControl-qnbQL1iF.js +128 -0
  25. package/dist/Heading-DA9gHfsx.js +71 -0
  26. package/dist/Icon-CixAeOSd.js +48 -0
  27. package/dist/IconButton-BPKpgfep.js +31 -0
  28. package/dist/InputContainer-CzzuOe_p.js +38 -0
  29. package/dist/LayoutFlex-e9auDvWD.js +86 -0
  30. package/dist/LayoutFlexItem-D9ziMmHe.js +48 -0
  31. package/dist/LayoutGridItem-Q8Lnvrri.js +34 -0
  32. package/dist/Link-CdoJVeER.js +66 -0
  33. package/dist/Loader-BMOxdJce.js +26 -0
  34. package/dist/OnboardingTooltip-B47_Yrsj.js +165 -0
  35. package/dist/OnboardingTour-DUUoI5WE.js +131 -0
  36. package/dist/PasswordField-Bx5YG62t.js +93 -0
  37. package/dist/PreplyLogo-abgOre30.js +112 -0
  38. package/dist/ProgressBar-CEU4GyHn.js +31 -0
  39. package/dist/ProgressSteps-BSqopxqv.js +45 -0
  40. package/dist/Select-Bo7PX_8V.js +124 -0
  41. package/dist/Slider-Crg4DEn_.js +64 -0
  42. package/dist/Spinner-Ck8KQA22.js +86 -0
  43. package/dist/Stars-D5QspUBE.js +72 -0
  44. package/dist/Steps-DbN5vFrP.js +173 -0
  45. package/dist/Switch-Ck_xB0ID.js +49 -0
  46. package/dist/Text-CaOF75Z-.js +121 -0
  47. package/dist/TextHighlighted-Dwq9Clgn.js +34 -0
  48. package/dist/TextInline-BcA4H2Tk.js +34 -0
  49. package/dist/Toast-wJAjSLfo.js +1019 -0
  50. package/dist/TokyoUIChevronDown-DGcVqR1z.js +14 -0
  51. package/dist/Tooltip-grvKQxTN.js +84 -0
  52. package/dist/VisuallyHidden-CtcHcZCK.js +29 -0
  53. package/dist/align-self-VrZUceie.js +42 -0
  54. package/dist/assets/Accordion.css +2 -2
  55. package/dist/assets/AlertBannerProvider.css +2 -2
  56. package/dist/assets/AlertDialog.css +2 -2
  57. package/dist/assets/Avatar.css +3 -3
  58. package/dist/assets/AvatarWithStatus.css +2 -2
  59. package/dist/assets/Badge.css +1 -1
  60. package/dist/assets/Box.css +3 -3
  61. package/dist/assets/BubbleCounter.css +1 -1
  62. package/dist/assets/Button.css +4 -4
  63. package/dist/assets/ButtonBase.css +40 -46
  64. package/dist/assets/Checkbox.css +1 -1
  65. package/dist/assets/Chips.css +2 -2
  66. package/dist/assets/ChipsPrimitive.css +2 -2
  67. package/dist/assets/CountryFlag.css +1 -1
  68. package/dist/assets/Dialog.css +13 -4
  69. package/dist/assets/Divider.css +1 -1
  70. package/dist/assets/DropdownMenu.css +2 -2
  71. package/dist/assets/FieldButton.css +3 -3
  72. package/dist/assets/FormControl.css +1 -1
  73. package/dist/assets/Heading.css +3 -3
  74. package/dist/assets/Icon.css +3 -3
  75. package/dist/assets/InputContainer.css +2 -2
  76. package/dist/assets/LayoutFlex.css +1 -1
  77. package/dist/assets/LayoutFlexItem.css +1 -1
  78. package/dist/assets/Link.css +3 -3
  79. package/dist/assets/Loader.css +1 -1
  80. package/dist/assets/OnboardingTooltip.css +6 -4
  81. package/dist/assets/OnboardingTour.css +3 -2
  82. package/dist/assets/PreplyLogo.css +1 -1
  83. package/dist/assets/ProgressBar.css +1 -1
  84. package/dist/assets/ProgressSteps.css +1 -1
  85. package/dist/assets/Select.css +2 -2
  86. package/dist/assets/Slider.css +1 -1
  87. package/dist/assets/Spinner.css +3 -3
  88. package/dist/assets/Stars.css +3 -3
  89. package/dist/assets/Steps.css +2 -2
  90. package/dist/assets/Switch.css +1 -1
  91. package/dist/assets/Text.css +3 -3
  92. package/dist/assets/TextHighlighted.css +3 -3
  93. package/dist/assets/TextInline.css +3 -3
  94. package/dist/assets/Toast.css +2 -2
  95. package/dist/assets/Tooltip.css +1 -1
  96. package/dist/assets/align-self.css +1 -1
  97. package/dist/assets/{IconTile.css → components.css} +9 -1
  98. package/dist/assets/exp-color.css +2 -2
  99. package/dist/assets/index.css +1 -1
  100. package/dist/assets/layout-gap.css +3 -3
  101. package/dist/assets/layout-grid.css +3 -3
  102. package/dist/assets/layout-hide.css +1 -1
  103. package/dist/assets/layout-padding.css +3 -3
  104. package/dist/assets/layout-relative.css +1 -1
  105. package/dist/assets/text-accent.css +2 -2
  106. package/dist/assets/text-centered.css +1 -1
  107. package/dist/assets/text-weight.css +2 -2
  108. package/dist/chunk-BVTlhY3a.js +24 -0
  109. package/dist/components/Accordion/Accordion.js +4 -60
  110. package/dist/components/Accordion/hooks/useOnOpenChange.js +19 -28
  111. package/dist/components/AlertBanner/AlertBanner.js +11 -26
  112. package/dist/components/AlertBanner/AlertBannerProvider.js +3 -8
  113. package/dist/components/AlertBanner/primitives/AlertBannerAction.js +11 -69
  114. package/dist/components/AlertBanner/primitives/AlertBannerIcon.js +77 -39
  115. package/dist/components/AlertBanner/primitives/AlertBannerRoot.js +26 -22
  116. package/dist/components/AlertBanner/primitives/AlertBannerText.js +11 -70
  117. package/dist/components/AlertDialog/AlertDialog.d.ts +3 -3
  118. package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
  119. package/dist/components/AlertDialog/AlertDialog.js +5 -94
  120. package/dist/components/Avatar/Avatar.js +3 -71
  121. package/dist/components/AvatarWithStatus/AvatarWithStatus.js +3 -43
  122. package/dist/components/Badge/Badge.js +4 -62
  123. package/dist/components/Box/Box.js +3 -95
  124. package/dist/components/BubbleCounter/BubbleCounter.js +23 -28
  125. package/dist/components/Button/Button.js +4 -80
  126. package/dist/components/CalloutBanner/CalloutBanner.js +61 -12
  127. package/dist/components/CalloutBanner/primitives/CalloutBannerDismissButton.js +50 -22
  128. package/dist/components/CalloutBanner/primitives/CalloutBannerIcon.js +86 -45
  129. package/dist/components/CalloutBanner/primitives/CalloutBannerRoot.js +50 -24
  130. package/dist/components/CalloutBanner/primitives/CalloutBannerText.js +41 -11
  131. package/dist/components/Checkbox/Checkbox.js +4 -78
  132. package/dist/components/Checkbox/hooks/useIndeterminate.js +24 -30
  133. package/dist/components/Chips/Chips.types.js +0 -1
  134. package/dist/components/Chips/DismissibleChips.js +117 -86
  135. package/dist/components/Chips/MultiSelectChips.js +98 -64
  136. package/dist/components/Chips/SingleSelectChips.js +94 -57
  137. package/dist/components/Chips/private/ChipsPrimitive.js +4 -17
  138. package/dist/components/CountryFlag/CountryFlag.js +3 -44
  139. package/dist/components/Dialog/Dialog.js +56 -31
  140. package/dist/components/Dialog/DialogSteps.js +40 -29
  141. package/dist/components/Dialog/primitives/DialogActions.js +26 -19
  142. package/dist/components/Dialog/primitives/DialogButtonStack.d.ts.map +1 -1
  143. package/dist/components/Dialog/primitives/DialogButtonStack.js +22 -15
  144. package/dist/components/Dialog/primitives/DialogCloseButton.d.ts +1 -1
  145. package/dist/components/Dialog/primitives/DialogCloseButton.d.ts.map +1 -1
  146. package/dist/components/Dialog/primitives/DialogCloseButton.js +4 -93
  147. package/dist/components/Dialog/primitives/DialogDescription.js +3 -43
  148. package/dist/components/Dialog/primitives/DialogFooter.js +37 -34
  149. package/dist/components/Dialog/primitives/DialogRoot.js +4 -1459
  150. package/dist/components/Dialog/primitives/DialogTitle.js +3 -42
  151. package/dist/components/Divider/Divider.js +3 -14
  152. package/dist/components/DropdownMenu/DropdownMenu.js +253 -188
  153. package/dist/components/DropdownMenu/primitives/DropdownMenu.primitives.js +5 -34
  154. package/dist/components/DropdownMenu/primitives/DropdownMenuSelectItem.primitives.js +121 -71
  155. package/dist/components/FieldButton/FieldButton.js +3 -37
  156. package/dist/components/FormControl/FormControl.js +3 -105
  157. package/dist/components/Heading/Heading.js +3 -78
  158. package/dist/components/Icon/Icon.js +4 -49
  159. package/dist/components/IconButton/IconButton.d.ts +5 -1
  160. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  161. package/dist/components/IconButton/IconButton.js +4 -28
  162. package/dist/components/IconTile/IconTile.js +11 -69
  163. package/dist/components/IntlFormatted/IntlFormattedAggregatedDateTime.js +16 -32
  164. package/dist/components/IntlFormatted/IntlFormattedCurrency.js +20 -42
  165. package/dist/components/IntlFormatted/IntlFormattedDate.js +73 -195
  166. package/dist/components/IntlFormatted/IntlFormattedTime.js +14 -24
  167. package/dist/components/IntlFormatted/Wrapper.js +14 -8
  168. package/dist/components/LayoutFlex/LayoutFlex.js +3 -100
  169. package/dist/components/LayoutFlex/style/getStyleAttrs.js +71 -143
  170. package/dist/components/LayoutFlex/tests/AlignItems.js +67 -97
  171. package/dist/components/LayoutFlex/tests/ColumnReverse.js +63 -100
  172. package/dist/components/LayoutFlex/tests/DataOverride.js +1498 -1093
  173. package/dist/components/LayoutFlex/tests/Default.js +19 -20
  174. package/dist/components/LayoutFlex/tests/Direction.js +65 -88
  175. package/dist/components/LayoutFlex/tests/Gap.js +115 -197
  176. package/dist/components/LayoutFlex/tests/HideInline.js +95 -136
  177. package/dist/components/LayoutFlex/tests/JustifyContent.js +75 -108
  178. package/dist/components/LayoutFlex/tests/Nowrap.js +35 -42
  179. package/dist/components/LayoutFlex/tests/Padding.js +207 -263
  180. package/dist/components/LayoutFlex/tests/Relative.js +49 -64
  181. package/dist/components/LayoutFlexItem/LayoutFlexItem.js +3 -54
  182. package/dist/components/LayoutGrid/LayoutGrid.js +26 -34
  183. package/dist/components/LayoutGridItem/LayoutGridItem.js +3 -41
  184. package/dist/components/Link/Link.js +3 -72
  185. package/dist/components/Loader/Loader.js +3 -32
  186. package/dist/components/NumberField/NumberField.js +33 -35
  187. package/dist/components/ObserveIntersection/ObserveIntersection.js +41 -42
  188. package/dist/components/OnboardingTooltip/OnboardingTooltip.js +4 -115
  189. package/dist/components/OnboardingTour/OnboardingTour.js +4 -114
  190. package/dist/components/PasswordField/PasswordField.js +3 -78
  191. package/dist/components/PreplyLogo/PreplyLogo.js +3 -81
  192. package/dist/components/ProgressBar/ProgressBar.js +3 -27
  193. package/dist/components/ProgressSteps/ProgressSteps.js +3 -48
  194. package/dist/components/Rating/Rating.js +29 -20
  195. package/dist/components/Rating/RatingInput.js +57 -59
  196. package/dist/components/Rating/Stars.js +4 -8
  197. package/dist/components/Rating/hooks/useHasError.js +11 -15
  198. package/dist/components/Rating/hooks/useHoverPercentage.js +37 -45
  199. package/dist/components/Rating/hooks/useInputState.js +18 -24
  200. package/dist/components/Rating/hooks/useLocalizations.js +12 -24
  201. package/dist/components/Rating/utils/roundToHalfDecimal.js +4 -4
  202. package/dist/components/SelectField/Select.js +5 -112
  203. package/dist/components/SelectField/SelectField.js +29 -24
  204. package/dist/components/SelectField/hooks/useBreakpointMatch.js +18 -19
  205. package/dist/components/ShowOnIntersection/ShowOnIntersection.js +32 -21
  206. package/dist/components/Slider/RangeSlider.js +62 -52
  207. package/dist/components/Slider/Slider.js +3 -10
  208. package/dist/components/Steps/Steps.js +4 -210
  209. package/dist/components/Switch/Switch.js +3 -51
  210. package/dist/components/Text/Text.js +3 -128
  211. package/dist/components/TextField/TextField.js +27 -29
  212. package/dist/components/TextHighlighted/TextHighlighted.js +3 -41
  213. package/dist/components/TextInline/TextInline.js +3 -40
  214. package/dist/components/TextareaField/TextareaField.js +26 -28
  215. package/dist/components/Toast/Toast.js +4 -1168
  216. package/dist/components/Tooltip/Tooltip.js +3 -66
  217. package/dist/components/deprecated/Chips/Chips.js +4 -76
  218. package/dist/components/deprecated/NativeSelectField/NativeSelect.js +40 -32
  219. package/dist/components/deprecated/NativeSelectField/NativeSelectField.js +34 -33
  220. package/dist/components/deprecated/index.js +5 -6
  221. package/dist/components/index.js +50 -150
  222. package/dist/components/private/ButtonBase/ButtonBase.d.ts +7 -11
  223. package/dist/components/private/ButtonBase/ButtonBase.d.ts.map +1 -1
  224. package/dist/components/private/ButtonBase/ButtonBase.js +3 -247
  225. package/dist/components/private/Input/Input.js +27 -19
  226. package/dist/components/private/Input/InputContainer.js +3 -5
  227. package/dist/components/private/Input/Textarea.js +24 -20
  228. package/dist/components/private/Input/index.js +2 -4
  229. package/dist/components/private/Spinner/Spinner.js +3 -52
  230. package/dist/components/private/VisuallyHidden/VisuallyHidden.js +3 -15
  231. package/dist/components-BIYP8wHJ.js +200 -0
  232. package/dist/exp-color-C5mKAN91.js +74 -0
  233. package/dist/floating-ui.utils.dom-CoeTbDZx.js +215 -0
  234. package/dist/index.js +50 -150
  235. package/dist/index.module-1c7ENvxc.js +7 -0
  236. package/dist/jsx-runtime-i4KUlhDu.js +743 -0
  237. package/dist/layout-gap.module-DLD8bcR4.js +95 -0
  238. package/dist/layout-grid.module-CZfhrKrB.js +101 -0
  239. package/dist/layout-hide.module-B1P0N4i3.js +53 -0
  240. package/dist/layout-padding-ugY-yd2q.js +389 -0
  241. package/dist/layout-relative.module-B5xrFD9j.js +6 -0
  242. package/dist/render-icon-Ch3b2dE0.js +290 -0
  243. package/dist/shared-styles/align-self/align-self.js +2 -36
  244. package/dist/shared-styles/exp-color/exp-color.js +2 -68
  245. package/dist/shared-styles/layout-gap/layout-gap.js +13 -7
  246. package/dist/shared-styles/layout-grid/layout-grid.js +28 -28
  247. package/dist/shared-styles/layout-grid-responsive-columns/layout-grid-responsive-columns.js +29 -43
  248. package/dist/shared-styles/layout-hide/layout-hide.js +8 -8
  249. package/dist/shared-styles/layout-padding/layout-padding.js +2 -5
  250. package/dist/shared-styles/layout-relative/layout-relative.js +14 -8
  251. package/dist/shared-styles/text-accent/text-accent.js +2 -25
  252. package/dist/shared-styles/text-centered/text-centered.js +2 -24
  253. package/dist/shared-styles/text-weight/text-weight.js +2 -15
  254. package/dist/store-sN_eYeZT.js +1064 -0
  255. package/dist/storybook-utils/consts.js +6 -8
  256. package/dist/storybook-utils/index.js +1 -5
  257. package/dist/text-accent-CfUFx-1K.js +30 -0
  258. package/dist/text-centered-Dwp2_-Yp.js +30 -0
  259. package/dist/text-weight-CwoqmM4o.js +21 -0
  260. package/dist/useBaseUiId-CWAD_PSs.js +13 -0
  261. package/dist/useBreakpointMatch-D9a3CTNK.js +338 -0
  262. package/dist/useButton-DHTh3Hm7.js +148 -0
  263. package/dist/useDialogClose-BzFIyWco.js +22 -0
  264. package/dist/useId-CJsH-2wV.js +34 -0
  265. package/dist/useOpenInteractionType-D8vA_ZKI.js +4104 -0
  266. package/dist/useRenderElement-ZBds6eRN.js +341 -0
  267. package/dist/utils/Orientation/OrientationProvider.js +54 -23
  268. package/dist/utils/Orientation/index.js +2 -4
  269. package/dist/utils/RovingTabIndex/RovingTabIndexProvider.js +70 -44
  270. package/dist/utils/RovingTabIndex/index.js +2 -4
  271. package/dist/utils/createRequiredContext.js +23 -13
  272. package/dist/utils/filterAttributesPassedByRadixUIAtRuntime.js +28 -25
  273. package/dist/utils/render-icon.js +3 -320
  274. package/dist/utils/shared-strings.js +24 -32
  275. package/dist/utils/useBreakpointMatch.d.ts.map +1 -1
  276. package/dist/utils/useBreakpointMatch.js +2 -183
  277. package/dist/utils/useControllableState/useControllableState.js +31 -25
  278. package/dist/utils/useMergeRefs.js +29 -14
  279. package/dist/utils/useStableCallback/useStableCallback.js +28 -13
  280. package/package.json +17 -22
  281. package/dist/AlertBannerProvider-DTx2Xp3V.js +0 -50
  282. package/dist/BubbleCounter.module-QMwXWFIS.js +0 -16
  283. package/dist/ChipsPrimitive-DzsaOWgY.js +0 -1244
  284. package/dist/Dialog.module-Ba1X7b3N.js +0 -29
  285. package/dist/DialogRootContext-BCXmmJAw.js +0 -15
  286. package/dist/DropdownMenu.primitives-CqJE9k4D.js +0 -5871
  287. package/dist/IconTile-D1G7MljH.js +0 -172
  288. package/dist/InputContainer-oHJlLWIi.js +0 -30
  289. package/dist/Slider-DB4Maswa.js +0 -55
  290. package/dist/Stars-C_mHop2H.js +0 -67
  291. package/dist/TokyoUIChevronDown-D_tD1yU8.js +0 -11
  292. package/dist/floating-ui.utils.dom-BvMNldxo.js +0 -234
  293. package/dist/index.module-Q9TzIR6B.js +0 -11
  294. package/dist/layout-gap.module-MKn_un_k.js +0 -97
  295. package/dist/layout-grid.module-P4B4WVUy.js +0 -103
  296. package/dist/layout-hide.module-Bpl3Pl-a.js +0 -55
  297. package/dist/layout-padding-D5I6rRlL.js +0 -373
  298. package/dist/layout-relative.module-1z75aSwo.js +0 -8
  299. package/dist/useBaseUiId-DavsGYu9.js +0 -8
  300. package/dist/useButton-fjQ0ak8m.js +0 -193
  301. package/dist/useId-BhIOp2JG.js +0 -28
  302. package/dist/useOpenInteractionType-DNYFqf-a.js +0 -2880
  303. package/dist/useRenderElement-BSthtPOr.js +0 -350
@@ -1,43 +1,67 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import React__default, { useRef, useContext, useDebugValue, createElement } from "react";
3
- import { LayoutFlex } from "../LayoutFlex.js";
1
+ import { n as __toESM, t as __commonJSMin } from "../../../chunk-BVTlhY3a.js";
2
+ import { t as require_jsx_runtime } from "../../../jsx-runtime-i4KUlhDu.js";
3
+ import { t as LayoutFlex } from "../../../LayoutFlex-e9auDvWD.js";
4
+ import React, { createElement, useContext, useDebugValue, useEffect, useMemo, useRef, useState } from "react";
5
+ //#region ../../node_modules/styled-components/node_modules/tslib/tslib.es6.mjs
4
6
  var __assign = function() {
5
- __assign = Object.assign || function __assign2(t) {
6
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7
- s = arguments[i];
8
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
10
- return t;
11
- };
12
- return __assign.apply(this, arguments);
13
- };
14
- function __spreadArray(to, from2, pack) {
15
- if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
16
- if (ar || !(i in from2)) {
17
- if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
18
- ar[i] = from2[i];
19
- }
20
- }
21
- return to.concat(ar || Array.prototype.slice.call(from2));
22
- }
23
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
24
- var e = new Error(message);
25
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
7
+ __assign = Object.assign || function __assign(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
26
15
  };
16
+ function __spreadArray(to, from, pack) {
17
+ if (pack || arguments.length === 2) {
18
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
19
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
20
+ ar[i] = from[i];
21
+ }
22
+ }
23
+ return to.concat(ar || Array.prototype.slice.call(from));
24
+ }
25
+ //#endregion
26
+ //#region ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
27
27
  function memoize(fn) {
28
- var cache = /* @__PURE__ */ Object.create(null);
29
- return function(arg) {
30
- if (cache[arg] === void 0) cache[arg] = fn(arg);
31
- return cache[arg];
32
- };
33
- }
28
+ var cache = Object.create(null);
29
+ return function(arg) {
30
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
31
+ return cache[arg];
32
+ };
33
+ }
34
+ //#endregion
35
+ //#region ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
34
36
  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
35
- var isPropValid = /* @__PURE__ */ memoize(
36
- function(prop) {
37
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
38
- }
39
- /* Z+1 */
40
- );
37
+ var isPropValid = /* @__PURE__ */ memoize(function(prop) {
38
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
39
+ });
40
+ //#endregion
41
+ //#region ../../node_modules/shallowequal/index.js
42
+ var require_shallowequal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43
+ module.exports = function shallowEqual(objA, objB, compare, compareContext) {
44
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
45
+ if (ret !== void 0) return !!ret;
46
+ if (objA === objB) return true;
47
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) return false;
48
+ var keysA = Object.keys(objA);
49
+ var keysB = Object.keys(objB);
50
+ if (keysA.length !== keysB.length) return false;
51
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
52
+ for (var idx = 0; idx < keysA.length; idx++) {
53
+ var key = keysA[idx];
54
+ if (!bHasOwnProperty(key)) return false;
55
+ var valueA = objA[key];
56
+ var valueB = objB[key];
57
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
58
+ if (ret === false || ret === void 0 && valueA !== valueB) return false;
59
+ }
60
+ return true;
61
+ };
62
+ }));
63
+ //#endregion
64
+ //#region ../../node_modules/stylis/src/Enum.js
41
65
  var MS = "-ms-";
42
66
  var MOZ = "-moz-";
43
67
  var WEBKIT = "-webkit-";
@@ -47,1218 +71,1599 @@ var DECLARATION = "decl";
47
71
  var IMPORT = "@import";
48
72
  var KEYFRAMES = "@keyframes";
49
73
  var LAYER = "@layer";
74
+ //#endregion
75
+ //#region ../../node_modules/stylis/src/Utility.js
76
+ /**
77
+ * @param {number}
78
+ * @return {number}
79
+ */
50
80
  var abs = Math.abs;
81
+ /**
82
+ * @param {number}
83
+ * @return {string}
84
+ */
51
85
  var from = String.fromCharCode;
86
+ /**
87
+ * @param {object}
88
+ * @return {object}
89
+ */
52
90
  var assign = Object.assign;
53
- function hash(value, length2) {
54
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
55
- }
91
+ /**
92
+ * @param {string} value
93
+ * @param {number} length
94
+ * @return {number}
95
+ */
96
+ function hash(value, length) {
97
+ return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
98
+ }
99
+ /**
100
+ * @param {string} value
101
+ * @return {string}
102
+ */
56
103
  function trim(value) {
57
- return value.trim();
104
+ return value.trim();
58
105
  }
106
+ /**
107
+ * @param {string} value
108
+ * @param {RegExp} pattern
109
+ * @return {string?}
110
+ */
59
111
  function match(value, pattern) {
60
- return (value = pattern.exec(value)) ? value[0] : value;
61
- }
112
+ return (value = pattern.exec(value)) ? value[0] : value;
113
+ }
114
+ /**
115
+ * @param {string} value
116
+ * @param {(string|RegExp)} pattern
117
+ * @param {string} replacement
118
+ * @return {string}
119
+ */
62
120
  function replace(value, pattern, replacement) {
63
- return value.replace(pattern, replacement);
64
- }
65
- function indexof(value, search, position2) {
66
- return value.indexOf(search, position2);
67
- }
121
+ return value.replace(pattern, replacement);
122
+ }
123
+ /**
124
+ * @param {string} value
125
+ * @param {string} search
126
+ * @param {number} position
127
+ * @return {number}
128
+ */
129
+ function indexof(value, search, position) {
130
+ return value.indexOf(search, position);
131
+ }
132
+ /**
133
+ * @param {string} value
134
+ * @param {number} index
135
+ * @return {number}
136
+ */
68
137
  function charat(value, index) {
69
- return value.charCodeAt(index) | 0;
70
- }
138
+ return value.charCodeAt(index) | 0;
139
+ }
140
+ /**
141
+ * @param {string} value
142
+ * @param {number} begin
143
+ * @param {number} end
144
+ * @return {string}
145
+ */
71
146
  function substr(value, begin, end) {
72
- return value.slice(begin, end);
147
+ return value.slice(begin, end);
73
148
  }
149
+ /**
150
+ * @param {string} value
151
+ * @return {number}
152
+ */
74
153
  function strlen(value) {
75
- return value.length;
154
+ return value.length;
76
155
  }
156
+ /**
157
+ * @param {any[]} value
158
+ * @return {number}
159
+ */
77
160
  function sizeof(value) {
78
- return value.length;
161
+ return value.length;
79
162
  }
163
+ /**
164
+ * @param {any} value
165
+ * @param {any[]} array
166
+ * @return {any}
167
+ */
80
168
  function append(value, array) {
81
- return array.push(value), value;
169
+ return array.push(value), value;
82
170
  }
171
+ /**
172
+ * @param {string[]} array
173
+ * @param {function} callback
174
+ * @return {string}
175
+ */
83
176
  function combine(array, callback) {
84
- return array.map(callback).join("");
177
+ return array.map(callback).join("");
85
178
  }
179
+ /**
180
+ * @param {string[]} array
181
+ * @param {RegExp} pattern
182
+ * @return {string[]}
183
+ */
86
184
  function filter(array, pattern) {
87
- return array.filter(function(value) {
88
- return !match(value, pattern);
89
- });
185
+ return array.filter(function(value) {
186
+ return !match(value, pattern);
187
+ });
90
188
  }
189
+ //#endregion
190
+ //#region ../../node_modules/stylis/src/Tokenizer.js
91
191
  var line = 1;
92
192
  var column = 1;
93
193
  var length = 0;
94
194
  var position = 0;
95
195
  var character = 0;
96
196
  var characters = "";
97
- function node(value, root, parent, type, props, children, length2, siblings) {
98
- return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
99
- }
197
+ /**
198
+ * @param {string} value
199
+ * @param {object | null} root
200
+ * @param {object | null} parent
201
+ * @param {string} type
202
+ * @param {string[] | string} props
203
+ * @param {object[] | string} children
204
+ * @param {object[]} siblings
205
+ * @param {number} length
206
+ */
207
+ function node(value, root, parent, type, props, children, length, siblings) {
208
+ return {
209
+ value,
210
+ root,
211
+ parent,
212
+ type,
213
+ props,
214
+ children,
215
+ line,
216
+ column,
217
+ length,
218
+ return: "",
219
+ siblings
220
+ };
221
+ }
222
+ /**
223
+ * @param {object} root
224
+ * @param {object} props
225
+ * @return {object}
226
+ */
100
227
  function copy(root, props) {
101
- return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
228
+ return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
102
229
  }
230
+ /**
231
+ * @param {object} root
232
+ */
103
233
  function lift(root) {
104
- while (root.root)
105
- root = copy(root.root, { children: [root] });
106
- append(root, root.siblings);
234
+ while (root.root) root = copy(root.root, { children: [root] });
235
+ append(root, root.siblings);
107
236
  }
237
+ /**
238
+ * @return {number}
239
+ */
108
240
  function char() {
109
- return character;
241
+ return character;
110
242
  }
243
+ /**
244
+ * @return {number}
245
+ */
111
246
  function prev() {
112
- character = position > 0 ? charat(characters, --position) : 0;
113
- if (column--, character === 10)
114
- column = 1, line--;
115
- return character;
247
+ character = position > 0 ? charat(characters, --position) : 0;
248
+ if (column--, character === 10) column = 1, line--;
249
+ return character;
116
250
  }
251
+ /**
252
+ * @return {number}
253
+ */
117
254
  function next() {
118
- character = position < length ? charat(characters, position++) : 0;
119
- if (column++, character === 10)
120
- column = 1, line++;
121
- return character;
255
+ character = position < length ? charat(characters, position++) : 0;
256
+ if (column++, character === 10) column = 1, line++;
257
+ return character;
122
258
  }
259
+ /**
260
+ * @return {number}
261
+ */
123
262
  function peek() {
124
- return charat(characters, position);
263
+ return charat(characters, position);
125
264
  }
265
+ /**
266
+ * @return {number}
267
+ */
126
268
  function caret() {
127
- return position;
269
+ return position;
128
270
  }
271
+ /**
272
+ * @param {number} begin
273
+ * @param {number} end
274
+ * @return {string}
275
+ */
129
276
  function slice(begin, end) {
130
- return substr(characters, begin, end);
277
+ return substr(characters, begin, end);
131
278
  }
279
+ /**
280
+ * @param {number} type
281
+ * @return {number}
282
+ */
132
283
  function token(type) {
133
- switch (type) {
134
- // \0 \t \n \r \s whitespace token
135
- case 0:
136
- case 9:
137
- case 10:
138
- case 13:
139
- case 32:
140
- return 5;
141
- // ! + , / > @ ~ isolate token
142
- case 33:
143
- case 43:
144
- case 44:
145
- case 47:
146
- case 62:
147
- case 64:
148
- case 126:
149
- // ; { } breakpoint token
150
- case 59:
151
- case 123:
152
- case 125:
153
- return 4;
154
- // : accompanied token
155
- case 58:
156
- return 3;
157
- // " ' ( [ opening delimit token
158
- case 34:
159
- case 39:
160
- case 40:
161
- case 91:
162
- return 2;
163
- // ) ] closing delimit token
164
- case 41:
165
- case 93:
166
- return 1;
167
- }
168
- return 0;
169
- }
284
+ switch (type) {
285
+ case 0:
286
+ case 9:
287
+ case 10:
288
+ case 13:
289
+ case 32: return 5;
290
+ case 33:
291
+ case 43:
292
+ case 44:
293
+ case 47:
294
+ case 62:
295
+ case 64:
296
+ case 126:
297
+ case 59:
298
+ case 123:
299
+ case 125: return 4;
300
+ case 58: return 3;
301
+ case 34:
302
+ case 39:
303
+ case 40:
304
+ case 91: return 2;
305
+ case 41:
306
+ case 93: return 1;
307
+ }
308
+ return 0;
309
+ }
310
+ /**
311
+ * @param {string} value
312
+ * @return {any[]}
313
+ */
170
314
  function alloc(value) {
171
- return line = column = 1, length = strlen(characters = value), position = 0, [];
315
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
172
316
  }
317
+ /**
318
+ * @param {any} value
319
+ * @return {any}
320
+ */
173
321
  function dealloc(value) {
174
- return characters = "", value;
322
+ return characters = "", value;
175
323
  }
324
+ /**
325
+ * @param {number} type
326
+ * @return {string}
327
+ */
176
328
  function delimit(type) {
177
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
329
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
178
330
  }
331
+ /**
332
+ * @param {number} type
333
+ * @return {string}
334
+ */
179
335
  function whitespace(type) {
180
- while (character = peek())
181
- if (character < 33)
182
- next();
183
- else
184
- break;
185
- return token(type) > 2 || token(character) > 3 ? "" : " ";
186
- }
336
+ while (character = peek()) if (character < 33) next();
337
+ else break;
338
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
339
+ }
340
+ /**
341
+ * @param {number} index
342
+ * @param {number} count
343
+ * @return {string}
344
+ */
187
345
  function escaping(index, count) {
188
- while (--count && next())
189
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
190
- break;
191
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
346
+ while (--count && next()) if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
347
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
192
348
  }
349
+ /**
350
+ * @param {number} type
351
+ * @return {number}
352
+ */
193
353
  function delimiter(type) {
194
- while (next())
195
- switch (character) {
196
- // ] ) " '
197
- case type:
198
- return position;
199
- // " '
200
- case 34:
201
- case 39:
202
- if (type !== 34 && type !== 39)
203
- delimiter(character);
204
- break;
205
- // (
206
- case 40:
207
- if (type === 41)
208
- delimiter(type);
209
- break;
210
- // \
211
- case 92:
212
- next();
213
- break;
214
- }
215
- return position;
216
- }
354
+ while (next()) switch (character) {
355
+ case type: return position;
356
+ case 34:
357
+ case 39:
358
+ if (type !== 34 && type !== 39) delimiter(character);
359
+ break;
360
+ case 40:
361
+ if (type === 41) delimiter(type);
362
+ break;
363
+ case 92:
364
+ next();
365
+ break;
366
+ }
367
+ return position;
368
+ }
369
+ /**
370
+ * @param {number} type
371
+ * @param {number} index
372
+ * @return {number}
373
+ */
217
374
  function commenter(type, index) {
218
- while (next())
219
- if (type + character === 47 + 10)
220
- break;
221
- else if (type + character === 42 + 42 && peek() === 47)
222
- break;
223
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
224
- }
375
+ while (next()) if (type + character === 57) break;
376
+ else if (type + character === 84 && peek() === 47) break;
377
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
378
+ }
379
+ /**
380
+ * @param {number} index
381
+ * @return {string}
382
+ */
225
383
  function identifier(index) {
226
- while (!token(peek()))
227
- next();
228
- return slice(index, position);
229
- }
384
+ while (!token(peek())) next();
385
+ return slice(index, position);
386
+ }
387
+ //#endregion
388
+ //#region ../../node_modules/stylis/src/Parser.js
389
+ /**
390
+ * @param {string} value
391
+ * @return {object[]}
392
+ */
230
393
  function compile(value) {
231
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
232
- }
394
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
395
+ }
396
+ /**
397
+ * @param {string} value
398
+ * @param {object} root
399
+ * @param {object?} parent
400
+ * @param {string[]} rule
401
+ * @param {string[]} rules
402
+ * @param {string[]} rulesets
403
+ * @param {number[]} pseudo
404
+ * @param {number[]} points
405
+ * @param {string[]} declarations
406
+ * @return {object}
407
+ */
233
408
  function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
234
- var index = 0;
235
- var offset = 0;
236
- var length2 = pseudo;
237
- var atrule = 0;
238
- var property = 0;
239
- var previous = 0;
240
- var variable = 1;
241
- var scanning = 1;
242
- var ampersand = 1;
243
- var character2 = 0;
244
- var type = "";
245
- var props = rules;
246
- var children = rulesets;
247
- var reference = rule;
248
- var characters2 = type;
249
- while (scanning)
250
- switch (previous = character2, character2 = next()) {
251
- // (
252
- case 40:
253
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
254
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
255
- ampersand = -1;
256
- break;
257
- }
258
- // " ' [
259
- case 34:
260
- case 39:
261
- case 91:
262
- characters2 += delimit(character2);
263
- break;
264
- // \t \n \r \s
265
- case 9:
266
- case 10:
267
- case 13:
268
- case 32:
269
- characters2 += whitespace(previous);
270
- break;
271
- // \
272
- case 92:
273
- characters2 += escaping(caret() - 1, 7);
274
- continue;
275
- // /
276
- case 47:
277
- switch (peek()) {
278
- case 42:
279
- case 47:
280
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
281
- break;
282
- default:
283
- characters2 += "/";
284
- }
285
- break;
286
- // {
287
- case 123 * variable:
288
- points[index++] = strlen(characters2) * ampersand;
289
- // } ; \0
290
- case 125 * variable:
291
- case 59:
292
- case 0:
293
- switch (character2) {
294
- // \0 }
295
- case 0:
296
- case 125:
297
- scanning = 0;
298
- // ;
299
- case 59 + offset:
300
- if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
301
- if (property > 0 && strlen(characters2) - length2)
302
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
303
- break;
304
- // @ ;
305
- case 59:
306
- characters2 += ";";
307
- // { rule/at-rule
308
- default:
309
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
310
- if (character2 === 123)
311
- if (offset === 0)
312
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
313
- else
314
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
315
- // d l m s
316
- case 100:
317
- case 108:
318
- case 109:
319
- case 115:
320
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
321
- break;
322
- default:
323
- parse(characters2, reference, reference, reference, [""], children, 0, points, children);
324
- }
325
- }
326
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
327
- break;
328
- // :
329
- case 58:
330
- length2 = 1 + strlen(characters2), property = previous;
331
- default:
332
- if (variable < 1) {
333
- if (character2 == 123)
334
- --variable;
335
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
336
- continue;
337
- }
338
- switch (characters2 += from(character2), character2 * variable) {
339
- // &
340
- case 38:
341
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
342
- break;
343
- // ,
344
- case 44:
345
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
346
- break;
347
- // @
348
- case 64:
349
- if (peek() === 45)
350
- characters2 += delimit(next());
351
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
352
- break;
353
- // -
354
- case 45:
355
- if (previous === 45 && strlen(characters2) == 2)
356
- variable = 0;
357
- }
358
- }
359
- return rulesets;
360
- }
361
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
362
- var post = offset - 1;
363
- var rule = offset === 0 ? rules : [""];
364
- var size = sizeof(rule);
365
- for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
366
- for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
367
- if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
368
- props[k2++] = z2;
369
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
370
- }
409
+ var index = 0;
410
+ var offset = 0;
411
+ var length = pseudo;
412
+ var atrule = 0;
413
+ var property = 0;
414
+ var previous = 0;
415
+ var variable = 1;
416
+ var scanning = 1;
417
+ var ampersand = 1;
418
+ var character = 0;
419
+ var type = "";
420
+ var props = rules;
421
+ var children = rulesets;
422
+ var reference = rule;
423
+ var characters = type;
424
+ while (scanning) switch (previous = character, character = next()) {
425
+ case 40: if (previous != 108 && charat(characters, length - 1) == 58) {
426
+ if (indexof(characters += replace(delimit(character), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
427
+ break;
428
+ }
429
+ case 34:
430
+ case 39:
431
+ case 91:
432
+ characters += delimit(character);
433
+ break;
434
+ case 9:
435
+ case 10:
436
+ case 13:
437
+ case 32:
438
+ characters += whitespace(previous);
439
+ break;
440
+ case 92:
441
+ characters += escaping(caret() - 1, 7);
442
+ continue;
443
+ case 47:
444
+ switch (peek()) {
445
+ case 42:
446
+ case 47:
447
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
448
+ break;
449
+ default: characters += "/";
450
+ }
451
+ break;
452
+ case 123 * variable: points[index++] = strlen(characters) * ampersand;
453
+ case 125 * variable:
454
+ case 59:
455
+ case 0:
456
+ switch (character) {
457
+ case 0:
458
+ case 125: scanning = 0;
459
+ case 59 + offset:
460
+ if (ampersand == -1) characters = replace(characters, /\f/g, "");
461
+ if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ";", rule, parent, length - 1, declarations) : declaration(replace(characters, " ", "") + ";", rule, parent, length - 2, declarations), declarations);
462
+ break;
463
+ case 59: characters += ";";
464
+ default:
465
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
466
+ if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);
467
+ else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
468
+ case 100:
469
+ case 108:
470
+ case 109:
471
+ case 115:
472
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
473
+ break;
474
+ default: parse(characters, reference, reference, reference, [""], children, 0, points, children);
475
+ }
476
+ }
477
+ index = offset = property = 0, variable = ampersand = 1, type = characters = "", length = pseudo;
478
+ break;
479
+ case 58: length = 1 + strlen(characters), property = previous;
480
+ default:
481
+ if (variable < 1) {
482
+ if (character == 123) --variable;
483
+ else if (character == 125 && variable++ == 0 && prev() == 125) continue;
484
+ }
485
+ switch (characters += from(character), character * variable) {
486
+ case 38:
487
+ ampersand = offset > 0 ? 1 : (characters += "\f", -1);
488
+ break;
489
+ case 44:
490
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
491
+ break;
492
+ case 64:
493
+ if (peek() === 45) characters += delimit(next());
494
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
495
+ break;
496
+ case 45: if (previous === 45 && strlen(characters) == 2) variable = 0;
497
+ }
498
+ }
499
+ return rulesets;
500
+ }
501
+ /**
502
+ * @param {string} value
503
+ * @param {object} root
504
+ * @param {object?} parent
505
+ * @param {number} index
506
+ * @param {number} offset
507
+ * @param {string[]} rules
508
+ * @param {number[]} points
509
+ * @param {string} type
510
+ * @param {string[]} props
511
+ * @param {string[]} children
512
+ * @param {number} length
513
+ * @param {object[]} siblings
514
+ * @return {object}
515
+ */
516
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
517
+ var post = offset - 1;
518
+ var rule = offset === 0 ? rules : [""];
519
+ var size = sizeof(rule);
520
+ for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
521
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
522
+ }
523
+ /**
524
+ * @param {number} value
525
+ * @param {object} root
526
+ * @param {object?} parent
527
+ * @param {object[]} siblings
528
+ * @return {object}
529
+ */
371
530
  function comment(value, root, parent, siblings) {
372
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
373
- }
374
- function declaration(value, root, parent, length2, siblings) {
375
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
376
- }
377
- function prefix(value, length2, children) {
378
- switch (hash(value, length2)) {
379
- // color-adjust
380
- case 5103:
381
- return WEBKIT + "print-" + value + value;
382
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
383
- case 5737:
384
- case 4201:
385
- case 3177:
386
- case 3433:
387
- case 1641:
388
- case 4457:
389
- case 2921:
390
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
391
- case 5572:
392
- case 6356:
393
- case 5844:
394
- case 3191:
395
- case 6645:
396
- case 3005:
397
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
398
- case 6391:
399
- case 5879:
400
- case 5623:
401
- case 6135:
402
- case 4599:
403
- case 4855:
404
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
405
- case 4215:
406
- case 6389:
407
- case 5109:
408
- case 5365:
409
- case 5621:
410
- case 3829:
411
- return WEBKIT + value + value;
412
- // tab-size
413
- case 4789:
414
- return MOZ + value + value;
415
- // appearance, user-select, transform, hyphens, text-size-adjust
416
- case 5349:
417
- case 4246:
418
- case 4810:
419
- case 6968:
420
- case 2756:
421
- return WEBKIT + value + MOZ + value + MS + value + value;
422
- // writing-mode
423
- case 5936:
424
- switch (charat(value, length2 + 11)) {
425
- // vertical-l(r)
426
- case 114:
427
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
428
- // vertical-r(l)
429
- case 108:
430
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
431
- // horizontal(-)tb
432
- case 45:
433
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
434
- }
435
- // flex, flex-direction, scroll-snap-type, writing-mode
436
- case 6828:
437
- case 4268:
438
- case 2903:
439
- return WEBKIT + value + MS + value + value;
440
- // order
441
- case 6165:
442
- return WEBKIT + value + MS + "flex-" + value + value;
443
- // align-items
444
- case 5187:
445
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
446
- // align-self
447
- case 5443:
448
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
449
- // align-content
450
- case 4675:
451
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
452
- // flex-shrink
453
- case 5548:
454
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
455
- // flex-basis
456
- case 5292:
457
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
458
- // flex-grow
459
- case 6060:
460
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
461
- // transition
462
- case 4554:
463
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
464
- // cursor
465
- case 6187:
466
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
467
- // background, background-image
468
- case 5495:
469
- case 3959:
470
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
471
- // justify-content
472
- case 4968:
473
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
474
- // justify-self
475
- case 4200:
476
- if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
477
- break;
478
- // grid-template-(columns|rows)
479
- case 2592:
480
- case 3360:
481
- return MS + replace(value, "template-", "") + value;
482
- // grid-(row|column)-start
483
- case 4384:
484
- case 3616:
485
- if (children && children.some(function(element, index) {
486
- return length2 = index, match(element.props, /grid-\w+-end/);
487
- })) {
488
- return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
489
- }
490
- return MS + replace(value, "-start", "") + value;
491
- // grid-(row|column)-end
492
- case 4896:
493
- case 4128:
494
- return children && children.some(function(element) {
495
- return match(element.props, /grid-\w+-start/);
496
- }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
497
- // (margin|padding)-inline-(start|end)
498
- case 4095:
499
- case 3583:
500
- case 4068:
501
- case 2532:
502
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
503
- // (min|max)?(width|height|inline-size|block-size)
504
- case 8116:
505
- case 7059:
506
- case 5753:
507
- case 5535:
508
- case 5445:
509
- case 5701:
510
- case 4933:
511
- case 4677:
512
- case 5533:
513
- case 5789:
514
- case 5021:
515
- case 4765:
516
- if (strlen(value) - 1 - length2 > 6)
517
- switch (charat(value, length2 + 1)) {
518
- // (m)ax-content, (m)in-content
519
- case 109:
520
- if (charat(value, length2 + 4) !== 45)
521
- break;
522
- // (f)ill-available, (f)it-content
523
- case 102:
524
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
525
- // (s)tretch
526
- case 115:
527
- return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
528
- }
529
- break;
530
- // grid-(column|row)
531
- case 5152:
532
- case 5920:
533
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a, b2, c, d, e, f2) {
534
- return MS + a + ":" + b2 + f2 + (c ? MS + a + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
535
- });
536
- // position: sticky
537
- case 4949:
538
- if (charat(value, length2 + 6) === 121)
539
- return replace(value, ":", ":" + WEBKIT) + value;
540
- break;
541
- // display: (flex|inline-flex|grid|inline-grid)
542
- case 6444:
543
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
544
- // (inline-)?fle(x)
545
- case 120:
546
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
547
- // (inline-)?gri(d)
548
- case 100:
549
- return replace(value, ":", ":" + MS) + value;
550
- }
551
- break;
552
- // scroll-margin, scroll-margin-(top|right|bottom|left)
553
- case 5719:
554
- case 2647:
555
- case 2135:
556
- case 3927:
557
- case 2391:
558
- return replace(value, "scroll-", "scroll-snap-") + value;
559
- }
560
- return value;
561
- }
531
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
532
+ }
533
+ /**
534
+ * @param {string} value
535
+ * @param {object} root
536
+ * @param {object?} parent
537
+ * @param {number} length
538
+ * @param {object[]} siblings
539
+ * @return {object}
540
+ */
541
+ function declaration(value, root, parent, length, siblings) {
542
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
543
+ }
544
+ //#endregion
545
+ //#region ../../node_modules/stylis/src/Prefixer.js
546
+ /**
547
+ * @param {string} value
548
+ * @param {number} length
549
+ * @param {object[]} children
550
+ * @return {string}
551
+ */
552
+ function prefix(value, length, children) {
553
+ switch (hash(value, length)) {
554
+ case 5103: return WEBKIT + "print-" + value + value;
555
+ case 5737:
556
+ case 4201:
557
+ case 3177:
558
+ case 3433:
559
+ case 1641:
560
+ case 4457:
561
+ case 2921:
562
+ case 5572:
563
+ case 6356:
564
+ case 5844:
565
+ case 3191:
566
+ case 6645:
567
+ case 3005:
568
+ case 6391:
569
+ case 5879:
570
+ case 5623:
571
+ case 6135:
572
+ case 4599:
573
+ case 4855:
574
+ case 4215:
575
+ case 6389:
576
+ case 5109:
577
+ case 5365:
578
+ case 5621:
579
+ case 3829: return WEBKIT + value + value;
580
+ case 4789: return MOZ + value + value;
581
+ case 5349:
582
+ case 4246:
583
+ case 4810:
584
+ case 6968:
585
+ case 2756: return WEBKIT + value + MOZ + value + MS + value + value;
586
+ case 5936: switch (charat(value, length + 11)) {
587
+ case 114: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
588
+ case 108: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
589
+ case 45: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
590
+ }
591
+ case 6828:
592
+ case 4268:
593
+ case 2903: return WEBKIT + value + MS + value + value;
594
+ case 6165: return WEBKIT + value + MS + "flex-" + value + value;
595
+ case 5187: return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
596
+ case 5443: return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
597
+ case 4675: return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
598
+ case 5548: return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
599
+ case 5292: return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
600
+ case 6060: return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
601
+ case 4554: return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
602
+ case 6187: return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
603
+ case 5495:
604
+ case 3959: return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
605
+ case 4968: return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
606
+ case 4200:
607
+ if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length) + value;
608
+ break;
609
+ case 2592:
610
+ case 3360: return MS + replace(value, "template-", "") + value;
611
+ case 4384:
612
+ case 3616:
613
+ if (children && children.some(function(element, index) {
614
+ return length = index, match(element.props, /grid-\w+-end/);
615
+ })) return ~indexof(value + (children = children[length].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
616
+ return MS + replace(value, "-start", "") + value;
617
+ case 4896:
618
+ case 4128: return children && children.some(function(element) {
619
+ return match(element.props, /grid-\w+-start/);
620
+ }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
621
+ case 4095:
622
+ case 3583:
623
+ case 4068:
624
+ case 2532: return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
625
+ case 8116:
626
+ case 7059:
627
+ case 5753:
628
+ case 5535:
629
+ case 5445:
630
+ case 5701:
631
+ case 4933:
632
+ case 4677:
633
+ case 5533:
634
+ case 5789:
635
+ case 5021:
636
+ case 4765:
637
+ if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
638
+ case 109: if (charat(value, length + 4) !== 45) break;
639
+ case 102: return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length + 3) == 108 ? "$3" : "$2-$3")) + value;
640
+ case 115: return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length, children) + value : value;
641
+ }
642
+ break;
643
+ case 5152:
644
+ case 5920: return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_, a, b, c, d, e, f) {
645
+ return MS + a + ":" + b + f + (c ? MS + a + "-span:" + (d ? e : +e - +b) + f : "") + value;
646
+ });
647
+ case 4949:
648
+ if (charat(value, length + 6) === 121) return replace(value, ":", ":" + WEBKIT) + value;
649
+ break;
650
+ case 6444:
651
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
652
+ case 120: return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
653
+ case 100: return replace(value, ":", ":" + MS) + value;
654
+ }
655
+ break;
656
+ case 5719:
657
+ case 2647:
658
+ case 2135:
659
+ case 3927:
660
+ case 2391: return replace(value, "scroll-", "scroll-snap-") + value;
661
+ }
662
+ return value;
663
+ }
664
+ //#endregion
665
+ //#region ../../node_modules/stylis/src/Serializer.js
666
+ /**
667
+ * @param {object[]} children
668
+ * @param {function} callback
669
+ * @return {string}
670
+ */
562
671
  function serialize(children, callback) {
563
- var output = "";
564
- for (var i = 0; i < children.length; i++)
565
- output += callback(children[i], i, children, callback) || "";
566
- return output;
567
- }
672
+ var output = "";
673
+ for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || "";
674
+ return output;
675
+ }
676
+ /**
677
+ * @param {object} element
678
+ * @param {number} index
679
+ * @param {object[]} children
680
+ * @param {function} callback
681
+ * @return {string}
682
+ */
568
683
  function stringify(element, index, children, callback) {
569
- switch (element.type) {
570
- case LAYER:
571
- if (element.children.length) break;
572
- case IMPORT:
573
- case DECLARATION:
574
- return element.return = element.return || element.value;
575
- case COMMENT:
576
- return "";
577
- case KEYFRAMES:
578
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
579
- case RULESET:
580
- if (!strlen(element.value = element.props.join(","))) return "";
581
- }
582
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
583
- }
684
+ switch (element.type) {
685
+ case LAYER: if (element.children.length) break;
686
+ case IMPORT:
687
+ case DECLARATION: return element.return = element.return || element.value;
688
+ case COMMENT: return "";
689
+ case KEYFRAMES: return element.return = element.value + "{" + serialize(element.children, callback) + "}";
690
+ case RULESET: if (!strlen(element.value = element.props.join(","))) return "";
691
+ }
692
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
693
+ }
694
+ //#endregion
695
+ //#region ../../node_modules/stylis/src/Middleware.js
696
+ /**
697
+ * @param {function[]} collection
698
+ * @return {function}
699
+ */
584
700
  function middleware(collection) {
585
- var length2 = sizeof(collection);
586
- return function(element, index, children, callback) {
587
- var output = "";
588
- for (var i = 0; i < length2; i++)
589
- output += collection[i](element, index, children, callback) || "";
590
- return output;
591
- };
592
- }
701
+ var length = sizeof(collection);
702
+ return function(element, index, children, callback) {
703
+ var output = "";
704
+ for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || "";
705
+ return output;
706
+ };
707
+ }
708
+ /**
709
+ * @param {function} callback
710
+ * @return {function}
711
+ */
593
712
  function rulesheet(callback) {
594
- return function(element) {
595
- if (!element.root) {
596
- if (element = element.return)
597
- callback(element);
598
- }
599
- };
600
- }
713
+ return function(element) {
714
+ if (!element.root) {
715
+ if (element = element.return) callback(element);
716
+ }
717
+ };
718
+ }
719
+ /**
720
+ * @param {object} element
721
+ * @param {number} index
722
+ * @param {object[]} children
723
+ * @param {function} callback
724
+ */
601
725
  function prefixer(element, index, children, callback) {
602
- if (element.length > -1) {
603
- if (!element.return)
604
- switch (element.type) {
605
- case DECLARATION:
606
- element.return = prefix(element.value, element.length, children);
607
- return;
608
- case KEYFRAMES:
609
- return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
610
- case RULESET:
611
- if (element.length)
612
- return combine(children = element.props, function(value) {
613
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
614
- // :read-(only|write)
615
- case ":read-only":
616
- case ":read-write":
617
- lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
618
- lift(copy(element, { props: [value] }));
619
- assign(element, { props: filter(children, callback) });
620
- break;
621
- // :placeholder
622
- case "::placeholder":
623
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
624
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
625
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
626
- lift(copy(element, { props: [value] }));
627
- assign(element, { props: filter(children, callback) });
628
- break;
629
- }
630
- return "";
631
- });
632
- }
633
- }
634
- }
726
+ if (element.length > -1) {
727
+ if (!element.return) switch (element.type) {
728
+ case DECLARATION:
729
+ element.return = prefix(element.value, element.length, children);
730
+ return;
731
+ case KEYFRAMES: return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
732
+ case RULESET: if (element.length) return combine(children = element.props, function(value) {
733
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
734
+ case ":read-only":
735
+ case ":read-write":
736
+ lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
737
+ lift(copy(element, { props: [value] }));
738
+ assign(element, { props: filter(children, callback) });
739
+ break;
740
+ case "::placeholder":
741
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
742
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
743
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
744
+ lift(copy(element, { props: [value] }));
745
+ assign(element, { props: filter(children, callback) });
746
+ break;
747
+ }
748
+ return "";
749
+ });
750
+ }
751
+ }
752
+ }
753
+ //#endregion
754
+ //#region ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
755
+ var import_shallowequal = /* @__PURE__ */ __toESM(require_shallowequal());
635
756
  var unitlessKeys = {
636
- animationIterationCount: 1,
637
- aspectRatio: 1,
638
- borderImageOutset: 1,
639
- borderImageSlice: 1,
640
- borderImageWidth: 1,
641
- boxFlex: 1,
642
- boxFlexGroup: 1,
643
- boxOrdinalGroup: 1,
644
- columnCount: 1,
645
- columns: 1,
646
- flex: 1,
647
- flexGrow: 1,
648
- flexPositive: 1,
649
- flexShrink: 1,
650
- flexNegative: 1,
651
- flexOrder: 1,
652
- gridRow: 1,
653
- gridRowEnd: 1,
654
- gridRowSpan: 1,
655
- gridRowStart: 1,
656
- gridColumn: 1,
657
- gridColumnEnd: 1,
658
- gridColumnSpan: 1,
659
- gridColumnStart: 1,
660
- msGridRow: 1,
661
- msGridRowSpan: 1,
662
- msGridColumn: 1,
663
- msGridColumnSpan: 1,
664
- fontWeight: 1,
665
- lineHeight: 1,
666
- opacity: 1,
667
- order: 1,
668
- orphans: 1,
669
- tabSize: 1,
670
- widows: 1,
671
- zIndex: 1,
672
- zoom: 1,
673
- WebkitLineClamp: 1,
674
- // SVG-related properties
675
- fillOpacity: 1,
676
- floodOpacity: 1,
677
- stopOpacity: 1,
678
- strokeDasharray: 1,
679
- strokeDashoffset: 1,
680
- strokeMiterlimit: 1,
681
- strokeOpacity: 1,
682
- strokeWidth: 1
757
+ animationIterationCount: 1,
758
+ aspectRatio: 1,
759
+ borderImageOutset: 1,
760
+ borderImageSlice: 1,
761
+ borderImageWidth: 1,
762
+ boxFlex: 1,
763
+ boxFlexGroup: 1,
764
+ boxOrdinalGroup: 1,
765
+ columnCount: 1,
766
+ columns: 1,
767
+ flex: 1,
768
+ flexGrow: 1,
769
+ flexPositive: 1,
770
+ flexShrink: 1,
771
+ flexNegative: 1,
772
+ flexOrder: 1,
773
+ gridRow: 1,
774
+ gridRowEnd: 1,
775
+ gridRowSpan: 1,
776
+ gridRowStart: 1,
777
+ gridColumn: 1,
778
+ gridColumnEnd: 1,
779
+ gridColumnSpan: 1,
780
+ gridColumnStart: 1,
781
+ msGridRow: 1,
782
+ msGridRowSpan: 1,
783
+ msGridColumn: 1,
784
+ msGridColumnSpan: 1,
785
+ fontWeight: 1,
786
+ lineHeight: 1,
787
+ opacity: 1,
788
+ order: 1,
789
+ orphans: 1,
790
+ tabSize: 1,
791
+ widows: 1,
792
+ zIndex: 1,
793
+ zoom: 1,
794
+ WebkitLineClamp: 1,
795
+ fillOpacity: 1,
796
+ floodOpacity: 1,
797
+ stopOpacity: 1,
798
+ strokeDasharray: 1,
799
+ strokeDashoffset: 1,
800
+ strokeMiterlimit: 1,
801
+ strokeOpacity: 1,
802
+ strokeWidth: 1
683
803
  };
804
+ //#endregion
805
+ //#region ../../node_modules/styled-components/dist/styled-components.browser.esm.js
684
806
  var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.19", g = "/*!sc*/\n", S = "undefined" != typeof window && "undefined" != typeof document, w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), b = {}, E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(t, n) {
685
- if ("production" !== process.env.NODE_ENV) {
686
- var o = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
687
- try {
688
- var a = true;
689
- console.error = function(t2) {
690
- for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2];
691
- E.test(t2) ? (a = false, N.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
692
- }, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
693
- } catch (e) {
694
- E.test(e.message) && N.delete(s);
695
- } finally {
696
- console.error = i;
697
- }
698
- }
807
+ if ("production" !== process.env.NODE_ENV) {
808
+ var o = n ? " with the id of \"".concat(n, "\"") : "", s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
809
+ try {
810
+ var a = !0;
811
+ console.error = function(t) {
812
+ for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
813
+ E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
814
+ }, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
815
+ } catch (e) {
816
+ E.test(e.message) && N.delete(s);
817
+ } finally {
818
+ console.error = i;
819
+ }
820
+ }
699
821
  }, _ = Object.freeze([]), C = Object.freeze({});
700
822
  function I(e, t, n) {
701
- return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
702
- }
703
- var A = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D = /(^-|-$)/g;
823
+ return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
824
+ }
825
+ var A = new Set([
826
+ "a",
827
+ "abbr",
828
+ "address",
829
+ "area",
830
+ "article",
831
+ "aside",
832
+ "audio",
833
+ "b",
834
+ "base",
835
+ "bdi",
836
+ "bdo",
837
+ "big",
838
+ "blockquote",
839
+ "body",
840
+ "br",
841
+ "button",
842
+ "canvas",
843
+ "caption",
844
+ "cite",
845
+ "code",
846
+ "col",
847
+ "colgroup",
848
+ "data",
849
+ "datalist",
850
+ "dd",
851
+ "del",
852
+ "details",
853
+ "dfn",
854
+ "dialog",
855
+ "div",
856
+ "dl",
857
+ "dt",
858
+ "em",
859
+ "embed",
860
+ "fieldset",
861
+ "figcaption",
862
+ "figure",
863
+ "footer",
864
+ "form",
865
+ "h1",
866
+ "h2",
867
+ "h3",
868
+ "h4",
869
+ "h5",
870
+ "h6",
871
+ "header",
872
+ "hgroup",
873
+ "hr",
874
+ "html",
875
+ "i",
876
+ "iframe",
877
+ "img",
878
+ "input",
879
+ "ins",
880
+ "kbd",
881
+ "keygen",
882
+ "label",
883
+ "legend",
884
+ "li",
885
+ "link",
886
+ "main",
887
+ "map",
888
+ "mark",
889
+ "menu",
890
+ "menuitem",
891
+ "meta",
892
+ "meter",
893
+ "nav",
894
+ "noscript",
895
+ "object",
896
+ "ol",
897
+ "optgroup",
898
+ "option",
899
+ "output",
900
+ "p",
901
+ "param",
902
+ "picture",
903
+ "pre",
904
+ "progress",
905
+ "q",
906
+ "rp",
907
+ "rt",
908
+ "ruby",
909
+ "s",
910
+ "samp",
911
+ "script",
912
+ "section",
913
+ "select",
914
+ "small",
915
+ "source",
916
+ "span",
917
+ "strong",
918
+ "style",
919
+ "sub",
920
+ "summary",
921
+ "sup",
922
+ "table",
923
+ "tbody",
924
+ "td",
925
+ "textarea",
926
+ "tfoot",
927
+ "th",
928
+ "thead",
929
+ "time",
930
+ "tr",
931
+ "track",
932
+ "u",
933
+ "ul",
934
+ "use",
935
+ "var",
936
+ "video",
937
+ "wbr",
938
+ "circle",
939
+ "clipPath",
940
+ "defs",
941
+ "ellipse",
942
+ "foreignObject",
943
+ "g",
944
+ "image",
945
+ "line",
946
+ "linearGradient",
947
+ "marker",
948
+ "mask",
949
+ "path",
950
+ "pattern",
951
+ "polygon",
952
+ "polyline",
953
+ "radialGradient",
954
+ "rect",
955
+ "stop",
956
+ "svg",
957
+ "text",
958
+ "tspan"
959
+ ]), O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D = /(^-|-$)/g;
704
960
  function R(e) {
705
- return e.replace(O, "-").replace(D, "");
961
+ return e.replace(O, "-").replace(D, "");
706
962
  }
707
963
  var T = /(a)(d)/gi, k = 52, j = function(e) {
708
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
964
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
709
965
  };
710
966
  function x(e) {
711
- var t, n = "";
712
- for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
713
- return (j(t % k) + n).replace(T, "$1-$2");
967
+ var t, n = "";
968
+ for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
969
+ return (j(t % k) + n).replace(T, "$1-$2");
714
970
  }
715
971
  var V, F = 5381, M = function(e, t) {
716
- for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
717
- return e;
972
+ for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
973
+ return e;
718
974
  }, z = function(e) {
719
- return M(F, e);
975
+ return M(F, e);
720
976
  };
721
977
  function $(e) {
722
- return x(z(e) >>> 0);
978
+ return x(z(e) >>> 0);
723
979
  }
724
980
  function B(e) {
725
- return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
981
+ return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
726
982
  }
727
983
  function L(e) {
728
- return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
729
- }
730
- var G = "function" == typeof Symbol && Symbol.for, Y = G ? Symbol.for("react.memo") : 60115, W = G ? Symbol.for("react.forward_ref") : 60112, q = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, J = ((V = {})[W] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
984
+ return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
985
+ }
986
+ var G = "function" == typeof Symbol && Symbol.for, Y = G ? Symbol.for("react.memo") : 60115, W = G ? Symbol.for("react.forward_ref") : 60112, q = {
987
+ childContextTypes: !0,
988
+ contextType: !0,
989
+ contextTypes: !0,
990
+ defaultProps: !0,
991
+ displayName: !0,
992
+ getDefaultProps: !0,
993
+ getDerivedStateFromError: !0,
994
+ getDerivedStateFromProps: !0,
995
+ mixins: !0,
996
+ propTypes: !0,
997
+ type: !0
998
+ }, H = {
999
+ name: !0,
1000
+ length: !0,
1001
+ prototype: !0,
1002
+ caller: !0,
1003
+ callee: !0,
1004
+ arguments: !0,
1005
+ arity: !0
1006
+ }, U = {
1007
+ $$typeof: !0,
1008
+ compare: !0,
1009
+ defaultProps: !0,
1010
+ displayName: !0,
1011
+ propTypes: !0,
1012
+ type: !0
1013
+ }, J = ((V = {})[W] = {
1014
+ $$typeof: !0,
1015
+ render: !0,
1016
+ defaultProps: !0,
1017
+ displayName: !0,
1018
+ propTypes: !0
1019
+ }, V[Y] = U, V);
731
1020
  function X(e) {
732
- return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
733
- var t;
1021
+ return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
1022
+ var t;
734
1023
  }
735
1024
  var Z = Object.defineProperty, K = Object.getOwnPropertyNames, Q = Object.getOwnPropertySymbols, ee = Object.getOwnPropertyDescriptor, te = Object.getPrototypeOf, ne = Object.prototype;
736
1025
  function oe(e, t, n) {
737
- if ("string" != typeof t) {
738
- if (ne) {
739
- var o = te(t);
740
- o && o !== ne && oe(e, o, n);
741
- }
742
- var r = K(t);
743
- Q && (r = r.concat(Q(t)));
744
- for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
745
- var c = r[a];
746
- if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
747
- var l = ee(t, c);
748
- try {
749
- Z(e, c, l);
750
- } catch (e2) {
751
- }
752
- }
753
- }
754
- }
755
- return e;
1026
+ if ("string" != typeof t) {
1027
+ if (ne) {
1028
+ var o = te(t);
1029
+ o && o !== ne && oe(e, o, n);
1030
+ }
1031
+ var r = K(t);
1032
+ Q && (r = r.concat(Q(t)));
1033
+ for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
1034
+ var c = r[a];
1035
+ if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
1036
+ var l = ee(t, c);
1037
+ try {
1038
+ Z(e, c, l);
1039
+ } catch (e) {}
1040
+ }
1041
+ }
1042
+ }
1043
+ return e;
756
1044
  }
757
1045
  function re(e) {
758
- return "function" == typeof e;
1046
+ return "function" == typeof e;
759
1047
  }
760
1048
  function se(e) {
761
- return "object" == typeof e && "styledComponentId" in e;
1049
+ return "object" == typeof e && "styledComponentId" in e;
762
1050
  }
763
1051
  function ie(e, t) {
764
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1052
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
765
1053
  }
766
1054
  function ae(e, t) {
767
- if (0 === e.length) return "";
768
- for (var n = e[0], o = 1; o < e.length; o++) n += e[o];
769
- return n;
1055
+ if (0 === e.length) return "";
1056
+ for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
1057
+ return n;
770
1058
  }
771
1059
  function ce(e) {
772
- return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1060
+ return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
773
1061
  }
774
1062
  function le(e, t, n) {
775
- if (void 0 === n && (n = false), !n && !ce(e) && !Array.isArray(e)) return t;
776
- if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = le(e[o], t[o]);
777
- else if (ce(t)) for (var o in t) e[o] = le(e[o], t[o]);
778
- return e;
1063
+ if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
1064
+ if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = le(e[o], t[o]);
1065
+ else if (ce(t)) for (var o in t) e[o] = le(e[o], t[o]);
1066
+ return e;
779
1067
  }
780
1068
  function ue(e, t) {
781
- Object.defineProperty(e, "toString", { value: t });
782
- }
783
- var pe = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 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\n\n", 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.\n\n", 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", 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.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 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", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1069
+ Object.defineProperty(e, "toString", { value: t });
1070
+ }
1071
+ var pe = "production" !== process.env.NODE_ENV ? {
1072
+ 1: "Cannot create styled-component for component: %s.\n\n",
1073
+ 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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
1074
+ 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
1075
+ 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
1076
+ 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
1077
+ 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
1078
+ 7: "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
1079
+ 8: "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
1080
+ 9: "Missing document `<head>`\n\n",
1081
+ 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\n\n",
1082
+ 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.\n\n",
1083
+ 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",
1084
+ 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.\n\n",
1085
+ 14: "ThemeProvider: \"theme\" prop is required.\n\n",
1086
+ 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",
1087
+ 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
1088
+ 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
1089
+ 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
1090
+ } : {};
784
1091
  function de() {
785
- for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
786
- for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
787
- return o.forEach(function(e2) {
788
- n = n.replace(/%[a-z]/, e2);
789
- }), n;
1092
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1093
+ for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
1094
+ return o.forEach(function(e) {
1095
+ n = n.replace(/%[a-z]/, e);
1096
+ }), n;
790
1097
  }
791
1098
  function he(t) {
792
- for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
793
- return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, false)).trim());
794
- }
795
- var fe = (function() {
796
- function e(e2) {
797
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
798
- }
799
- return e.prototype.indexOfGroup = function(e2) {
800
- for (var t = 0, n = 0; n < e2; n++) t += this.groupSizes[n];
801
- return t;
802
- }, e.prototype.insertRules = function(e2, t) {
803
- if (e2 >= this.groupSizes.length) {
804
- for (var n = this.groupSizes, o = n.length, r = o; e2 >= r; ) if ((r <<= 1) < 0) throw he(16, "".concat(e2));
805
- this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
806
- for (var s = o; s < r; s++) this.groupSizes[s] = 0;
807
- }
808
- for (var i = this.indexOfGroup(e2 + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++);
809
- }, e.prototype.clearGroup = function(e2) {
810
- if (e2 < this.length) {
811
- var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o = n + t;
812
- this.groupSizes[e2] = 0;
813
- for (var r = n; r < o; r++) this.tag.deleteRule(n);
814
- }
815
- }, e.prototype.getGroup = function(e2) {
816
- var t = "";
817
- if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
818
- for (var n = this.groupSizes[e2], o = this.indexOfGroup(e2), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
819
- return t;
820
- }, e;
821
- })(), me = 1 << 30, ye = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), ge = 1, Se = function(e) {
822
- if (ye.has(e)) return ye.get(e);
823
- for (; ve.has(ge); ) ge++;
824
- var t = ge++;
825
- if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > me)) throw he(16, "".concat(t));
826
- return ye.set(e, t), ve.set(t, e), t;
1099
+ for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
1100
+ return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, !1)).trim());
1101
+ }
1102
+ var fe = function() {
1103
+ function e(e) {
1104
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
1105
+ }
1106
+ return e.prototype.indexOfGroup = function(e) {
1107
+ for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
1108
+ return t;
1109
+ }, e.prototype.insertRules = function(e, t) {
1110
+ if (e >= this.groupSizes.length) {
1111
+ for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
1112
+ this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
1113
+ for (var s = o; s < r; s++) this.groupSizes[s] = 0;
1114
+ }
1115
+ for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
1116
+ }, e.prototype.clearGroup = function(e) {
1117
+ if (e < this.length) {
1118
+ var t = this.groupSizes[e], n = this.indexOfGroup(e), o = n + t;
1119
+ this.groupSizes[e] = 0;
1120
+ for (var r = n; r < o; r++) this.tag.deleteRule(n);
1121
+ }
1122
+ }, e.prototype.getGroup = function(e) {
1123
+ var t = "";
1124
+ if (e >= this.length || 0 === this.groupSizes[e]) return t;
1125
+ for (var n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
1126
+ return t;
1127
+ }, e;
1128
+ }(), me = 1 << 30, ye = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), ge = 1, Se = function(e) {
1129
+ if (ye.has(e)) return ye.get(e);
1130
+ for (; ve.has(ge);) ge++;
1131
+ var t = ge++;
1132
+ if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > me)) throw he(16, "".concat(t));
1133
+ return ye.set(e, t), ve.set(t, e), t;
827
1134
  }, we = function(e, t) {
828
- ge = t + 1, ye.set(e, t), ve.set(t, e);
829
- }, be = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'), Ee = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ne = function(e, t, n) {
830
- for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
1135
+ ge = t + 1, ye.set(e, t), ve.set(t, e);
1136
+ }, be = "style[".concat(f, "][").concat(y, "=\"").concat(v, "\"]"), Ee = new RegExp("^".concat(f, "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)")), Ne = function(e, t, n) {
1137
+ for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
831
1138
  }, Pe = function(e, t) {
832
- for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
833
- var a = o[s].trim();
834
- if (a) {
835
- var c = a.match(Ee);
836
- if (c) {
837
- var l = 0 | parseInt(c[1], 10), u = c[2];
838
- 0 !== l && (we(u, l), Ne(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
839
- } else r.push(a);
840
- }
841
- }
1139
+ for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
1140
+ var a = o[s].trim();
1141
+ if (a) {
1142
+ var c = a.match(Ee);
1143
+ if (c) {
1144
+ var l = 0 | parseInt(c[1], 10), u = c[2];
1145
+ 0 !== l && (we(u, l), Ne(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
1146
+ } else r.push(a);
1147
+ }
1148
+ }
842
1149
  }, _e = function(e) {
843
- for (var t = document.querySelectorAll(be), n = 0, o = t.length; n < o; n++) {
844
- var r = t[n];
845
- r && r.getAttribute(f) !== m && (Pe(e, r), r.parentNode && r.parentNode.removeChild(r));
846
- }
1150
+ for (var t = document.querySelectorAll(be), n = 0, o = t.length; n < o; n++) {
1151
+ var r = t[n];
1152
+ r && r.getAttribute(f) !== m && (Pe(e, r), r.parentNode && r.parentNode.removeChild(r));
1153
+ }
847
1154
  };
848
1155
  function Ce() {
849
- return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
1156
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
850
1157
  }
851
1158
  var Ie = function(e) {
852
- var t = document.head, n = e || t, o = document.createElement("style"), r = (function(e2) {
853
- var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
854
- return t2[t2.length - 1];
855
- })(n), s = void 0 !== r ? r.nextSibling : null;
856
- o.setAttribute(f, m), o.setAttribute(y, v);
857
- var i = Ce();
858
- return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
859
- }, Ae = (function() {
860
- function e(e2) {
861
- this.element = Ie(e2), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e3) {
862
- if (e3.sheet) return e3.sheet;
863
- for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
864
- var r = t[n];
865
- if (r.ownerNode === e3) return r;
866
- }
867
- throw he(17);
868
- })(this.element), this.length = 0;
869
- }
870
- return e.prototype.insertRule = function(e2, t) {
871
- try {
872
- return this.sheet.insertRule(t, e2), this.length++, true;
873
- } catch (e3) {
874
- return false;
875
- }
876
- }, e.prototype.deleteRule = function(e2) {
877
- this.sheet.deleteRule(e2), this.length--;
878
- }, e.prototype.getRule = function(e2) {
879
- var t = this.sheet.cssRules[e2];
880
- return t && t.cssText ? t.cssText : "";
881
- }, e;
882
- })(), Oe = (function() {
883
- function e(e2) {
884
- this.element = Ie(e2), this.nodes = this.element.childNodes, this.length = 0;
885
- }
886
- return e.prototype.insertRule = function(e2, t) {
887
- if (e2 <= this.length && e2 >= 0) {
888
- var n = document.createTextNode(t);
889
- return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
890
- }
891
- return false;
892
- }, e.prototype.deleteRule = function(e2) {
893
- this.element.removeChild(this.nodes[e2]), this.length--;
894
- }, e.prototype.getRule = function(e2) {
895
- return e2 < this.length ? this.nodes[e2].textContent : "";
896
- }, e;
897
- })(), De = (function() {
898
- function e(e2) {
899
- this.rules = [], this.length = 0;
900
- }
901
- return e.prototype.insertRule = function(e2, t) {
902
- return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
903
- }, e.prototype.deleteRule = function(e2) {
904
- this.rules.splice(e2, 1), this.length--;
905
- }, e.prototype.getRule = function(e2) {
906
- return e2 < this.length ? this.rules[e2] : "";
907
- }, e;
908
- })(), Re = S, Te = { isServer: !S, useCSSOMInjection: !w }, ke = (function() {
909
- function e(e2, n, o) {
910
- void 0 === e2 && (e2 = C), void 0 === n && (n = {});
911
- var r = this;
912
- this.options = __assign(__assign({}, Te), e2), this.gs = n, this.names = new Map(o), this.server = !!e2.isServer, !this.server && S && Re && (Re = false, _e(this)), ue(this, function() {
913
- return (function(e3) {
914
- for (var t = e3.getTag(), n2 = t.length, o2 = "", r2 = function(n3) {
915
- var r3 = (function(e4) {
916
- return ve.get(e4);
917
- })(n3);
918
- if (void 0 === r3) return "continue";
919
- var s2 = e3.names.get(r3), i = t.getGroup(n3);
920
- if (void 0 === s2 || !s2.size || 0 === i.length) return "continue";
921
- var a = "".concat(f, ".g").concat(n3, '[id="').concat(r3, '"]'), c = "";
922
- void 0 !== s2 && s2.forEach(function(e4) {
923
- e4.length > 0 && (c += "".concat(e4, ","));
924
- }), o2 += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
925
- }, s = 0; s < n2; s++) r2(s);
926
- return o2;
927
- })(r);
928
- });
929
- }
930
- return e.registerId = function(e2) {
931
- return Se(e2);
932
- }, e.prototype.rehydrate = function() {
933
- !this.server && S && _e(this);
934
- }, e.prototype.reconstructWithOptions = function(n, o) {
935
- return void 0 === o && (o = true), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
936
- }, e.prototype.allocateGSInstance = function(e2) {
937
- return this.gs[e2] = (this.gs[e2] || 0) + 1;
938
- }, e.prototype.getTag = function() {
939
- return this.tag || (this.tag = (e2 = (function(e3) {
940
- var t = e3.useCSSOMInjection, n = e3.target;
941
- return e3.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
942
- })(this.options), new fe(e2)));
943
- var e2;
944
- }, e.prototype.hasNameForId = function(e2, t) {
945
- return this.names.has(e2) && this.names.get(e2).has(t);
946
- }, e.prototype.registerName = function(e2, t) {
947
- if (Se(e2), this.names.has(e2)) this.names.get(e2).add(t);
948
- else {
949
- var n = /* @__PURE__ */ new Set();
950
- n.add(t), this.names.set(e2, n);
951
- }
952
- }, e.prototype.insertRules = function(e2, t, n) {
953
- this.registerName(e2, t), this.getTag().insertRules(Se(e2), n);
954
- }, e.prototype.clearNames = function(e2) {
955
- this.names.has(e2) && this.names.get(e2).clear();
956
- }, e.prototype.clearRules = function(e2) {
957
- this.getTag().clearGroup(Se(e2)), this.clearNames(e2);
958
- }, e.prototype.clearTag = function() {
959
- this.tag = void 0;
960
- }, e;
961
- })(), je = /&/g, xe = /^\s*\/\/.*$/gm;
1159
+ var t = document.head, n = e || t, o = document.createElement("style"), r = function(e) {
1160
+ var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
1161
+ return t[t.length - 1];
1162
+ }(n), s = void 0 !== r ? r.nextSibling : null;
1163
+ o.setAttribute(f, m), o.setAttribute(y, v);
1164
+ var i = Ce();
1165
+ return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
1166
+ }, Ae = function() {
1167
+ function e(e) {
1168
+ this.element = Ie(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(e) {
1169
+ if (e.sheet) return e.sheet;
1170
+ for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
1171
+ var r = t[n];
1172
+ if (r.ownerNode === e) return r;
1173
+ }
1174
+ throw he(17);
1175
+ }(this.element), this.length = 0;
1176
+ }
1177
+ return e.prototype.insertRule = function(e, t) {
1178
+ try {
1179
+ return this.sheet.insertRule(t, e), this.length++, !0;
1180
+ } catch (e) {
1181
+ return !1;
1182
+ }
1183
+ }, e.prototype.deleteRule = function(e) {
1184
+ this.sheet.deleteRule(e), this.length--;
1185
+ }, e.prototype.getRule = function(e) {
1186
+ var t = this.sheet.cssRules[e];
1187
+ return t && t.cssText ? t.cssText : "";
1188
+ }, e;
1189
+ }(), Oe = function() {
1190
+ function e(e) {
1191
+ this.element = Ie(e), this.nodes = this.element.childNodes, this.length = 0;
1192
+ }
1193
+ return e.prototype.insertRule = function(e, t) {
1194
+ if (e <= this.length && e >= 0) {
1195
+ var n = document.createTextNode(t);
1196
+ return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
1197
+ }
1198
+ return !1;
1199
+ }, e.prototype.deleteRule = function(e) {
1200
+ this.element.removeChild(this.nodes[e]), this.length--;
1201
+ }, e.prototype.getRule = function(e) {
1202
+ return e < this.length ? this.nodes[e].textContent : "";
1203
+ }, e;
1204
+ }(), De = function() {
1205
+ function e(e) {
1206
+ this.rules = [], this.length = 0;
1207
+ }
1208
+ return e.prototype.insertRule = function(e, t) {
1209
+ return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
1210
+ }, e.prototype.deleteRule = function(e) {
1211
+ this.rules.splice(e, 1), this.length--;
1212
+ }, e.prototype.getRule = function(e) {
1213
+ return e < this.length ? this.rules[e] : "";
1214
+ }, e;
1215
+ }(), Re = S, Te = {
1216
+ isServer: !S,
1217
+ useCSSOMInjection: !w
1218
+ }, ke = function() {
1219
+ function e(e, n, o) {
1220
+ void 0 === e && (e = C), void 0 === n && (n = {});
1221
+ var r = this;
1222
+ this.options = __assign(__assign({}, Te), e), this.gs = n, this.names = new Map(o), this.server = !!e.isServer, !this.server && S && Re && (Re = !1, _e(this)), ue(this, function() {
1223
+ return function(e) {
1224
+ for (var t = e.getTag(), n = t.length, o = "", r = function(n) {
1225
+ var r = function(e) {
1226
+ return ve.get(e);
1227
+ }(n);
1228
+ if (void 0 === r) return "continue";
1229
+ var s = e.names.get(r), i = t.getGroup(n);
1230
+ if (void 0 === s || !s.size || 0 === i.length) return "continue";
1231
+ var a = "".concat(f, ".g").concat(n, "[id=\"").concat(r, "\"]"), c = "";
1232
+ void 0 !== s && s.forEach(function(e) {
1233
+ e.length > 0 && (c += "".concat(e, ","));
1234
+ }), o += "".concat(i).concat(a, "{content:\"").concat(c, "\"}").concat(g);
1235
+ }, s = 0; s < n; s++) r(s);
1236
+ return o;
1237
+ }(r);
1238
+ });
1239
+ }
1240
+ return e.registerId = function(e) {
1241
+ return Se(e);
1242
+ }, e.prototype.rehydrate = function() {
1243
+ !this.server && S && _e(this);
1244
+ }, e.prototype.reconstructWithOptions = function(n, o) {
1245
+ return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
1246
+ }, e.prototype.allocateGSInstance = function(e) {
1247
+ return this.gs[e] = (this.gs[e] || 0) + 1;
1248
+ }, e.prototype.getTag = function() {
1249
+ return this.tag || (this.tag = (e = function(e) {
1250
+ var t = e.useCSSOMInjection, n = e.target;
1251
+ return e.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
1252
+ }(this.options), new fe(e)));
1253
+ var e;
1254
+ }, e.prototype.hasNameForId = function(e, t) {
1255
+ return this.names.has(e) && this.names.get(e).has(t);
1256
+ }, e.prototype.registerName = function(e, t) {
1257
+ if (Se(e), this.names.has(e)) this.names.get(e).add(t);
1258
+ else {
1259
+ var n = /* @__PURE__ */ new Set();
1260
+ n.add(t), this.names.set(e, n);
1261
+ }
1262
+ }, e.prototype.insertRules = function(e, t, n) {
1263
+ this.registerName(e, t), this.getTag().insertRules(Se(e), n);
1264
+ }, e.prototype.clearNames = function(e) {
1265
+ this.names.has(e) && this.names.get(e).clear();
1266
+ }, e.prototype.clearRules = function(e) {
1267
+ this.getTag().clearGroup(Se(e)), this.clearNames(e);
1268
+ }, e.prototype.clearTag = function() {
1269
+ this.tag = void 0;
1270
+ }, e;
1271
+ }(), je = /&/g, xe = /^\s*\/\/.*$/gm;
962
1272
  function Ve(e, t) {
963
- return e.map(function(e2) {
964
- return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
965
- return "".concat(t, " ").concat(e3);
966
- })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Ve(e2.children, t)), e2;
967
- });
1273
+ return e.map(function(e) {
1274
+ return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function(e) {
1275
+ return "".concat(t, " ").concat(e);
1276
+ })), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = Ve(e.children, t)), e;
1277
+ });
968
1278
  }
969
1279
  function Fe(e) {
970
- var t, n, o, r = C, s = r.options, i = void 0 === s ? C : s, a = r.plugins, c = void 0 === a ? _ : a, l = function(e2, o2, r2) {
971
- return r2.startsWith(n) && r2.endsWith(n) && r2.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
972
- }, u = c.slice();
973
- u.push(function(e2) {
974
- e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(je, n).replace(o, l));
975
- }), i.prefix && u.push(prefixer), u.push(stringify);
976
- var p = function(e2, r2, s2, a2) {
977
- void 0 === r2 && (r2 = ""), void 0 === s2 && (s2 = ""), void 0 === a2 && (a2 = "&"), t = a2, n = r2, o = new RegExp("\\".concat(n, "\\b"), "g");
978
- var c2 = e2.replace(xe, ""), l2 = compile(s2 || r2 ? "".concat(s2, " ").concat(r2, " { ").concat(c2, " }") : c2);
979
- i.namespace && (l2 = Ve(l2, i.namespace));
980
- var p2 = [];
981
- return serialize(l2, middleware(u.concat(rulesheet(function(e3) {
982
- return p2.push(e3);
983
- })))), p2;
984
- };
985
- return p.hash = c.length ? c.reduce(function(e2, t2) {
986
- return t2.name || he(15), M(e2, t2.name);
987
- }, F).toString() : "", p;
988
- }
989
- var Me = new ke(), ze = Fe(), $e = React__default.createContext({ shouldForwardProp: void 0, styleSheet: Me, stylis: ze });
1280
+ var t, n, o, r = void 0 === e ? C : e, s = r.options, i = void 0 === s ? C : s, a = r.plugins, c = void 0 === a ? _ : a, l = function(e, o, r) {
1281
+ return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
1282
+ }, u = c.slice();
1283
+ u.push(function(e) {
1284
+ e.type === "rule" && e.value.includes("&") && (e.props[0] = e.props[0].replace(je, n).replace(o, l));
1285
+ }), i.prefix && u.push(prefixer), u.push(stringify);
1286
+ var p = function(e, r, s, a) {
1287
+ void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
1288
+ var c = e.replace(xe, ""), l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
1289
+ i.namespace && (l = Ve(l, i.namespace));
1290
+ var p = [];
1291
+ return serialize(l, middleware(u.concat(rulesheet(function(e) {
1292
+ return p.push(e);
1293
+ })))), p;
1294
+ };
1295
+ return p.hash = c.length ? c.reduce(function(e, t) {
1296
+ return t.name || he(15), M(e, t.name);
1297
+ }, F).toString() : "", p;
1298
+ }
1299
+ var Me = new ke(), ze = Fe(), $e = React.createContext({
1300
+ shouldForwardProp: void 0,
1301
+ styleSheet: Me,
1302
+ stylis: ze
1303
+ });
990
1304
  $e.Consumer;
991
- React__default.createContext(void 0);
1305
+ var Le = React.createContext(void 0);
992
1306
  function Ge() {
993
- return useContext($e);
994
- }
995
- var We = (function() {
996
- function e(e2, t) {
997
- var n = this;
998
- this.inject = function(e3, t2) {
999
- void 0 === t2 && (t2 = ze);
1000
- var o = n.name + t2.hash;
1001
- e3.hasNameForId(n.id, o) || e3.insertRules(n.id, o, t2(n.rules, o, "@keyframes"));
1002
- }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ue(this, function() {
1003
- throw he(12, String(n.name));
1004
- });
1005
- }
1006
- return e.prototype.getName = function(e2) {
1007
- return void 0 === e2 && (e2 = ze), this.name + e2.hash;
1008
- }, e;
1009
- })(), qe = function(e) {
1010
- return e >= "A" && e <= "Z";
1307
+ return useContext($e);
1308
+ }
1309
+ function Ye(e) {
1310
+ var t = useState(e.stylisPlugins), n = t[0], r = t[1], c = Ge().styleSheet, l = useMemo(function() {
1311
+ var t = c;
1312
+ return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({ useCSSOMInjection: !1 })), t;
1313
+ }, [
1314
+ e.disableCSSOMInjection,
1315
+ e.sheet,
1316
+ e.target,
1317
+ c
1318
+ ]), u = useMemo(function() {
1319
+ return Fe({
1320
+ options: {
1321
+ namespace: e.namespace,
1322
+ prefix: e.enableVendorPrefixes
1323
+ },
1324
+ plugins: n
1325
+ });
1326
+ }, [
1327
+ e.enableVendorPrefixes,
1328
+ e.namespace,
1329
+ n
1330
+ ]);
1331
+ useEffect(function() {
1332
+ (0, import_shallowequal.default)(n, e.stylisPlugins) || r(e.stylisPlugins);
1333
+ }, [e.stylisPlugins]);
1334
+ var d = useMemo(function() {
1335
+ return {
1336
+ shouldForwardProp: e.shouldForwardProp,
1337
+ styleSheet: l,
1338
+ stylis: u
1339
+ };
1340
+ }, [
1341
+ e.shouldForwardProp,
1342
+ l,
1343
+ u
1344
+ ]);
1345
+ return React.createElement($e.Provider, { value: d }, React.createElement(Le.Provider, { value: u }, e.children));
1346
+ }
1347
+ var We = function() {
1348
+ function e(e, t) {
1349
+ var n = this;
1350
+ this.inject = function(e, t) {
1351
+ void 0 === t && (t = ze);
1352
+ var o = n.name + t.hash;
1353
+ e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
1354
+ }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function() {
1355
+ throw he(12, String(n.name));
1356
+ });
1357
+ }
1358
+ return e.prototype.getName = function(e) {
1359
+ return void 0 === e && (e = ze), this.name + e.hash;
1360
+ }, e;
1361
+ }(), qe = function(e) {
1362
+ return e >= "A" && e <= "Z";
1011
1363
  };
1012
1364
  function He(e) {
1013
- for (var t = "", n = 0; n < e.length; n++) {
1014
- var o = e[n];
1015
- if (1 === n && "-" === o && "-" === e[0]) return e;
1016
- qe(o) ? t += "-" + o.toLowerCase() : t += o;
1017
- }
1018
- return t.startsWith("ms-") ? "-" + t : t;
1365
+ for (var t = "", n = 0; n < e.length; n++) {
1366
+ var o = e[n];
1367
+ if (1 === n && "-" === o && "-" === e[0]) return e;
1368
+ qe(o) ? t += "-" + o.toLowerCase() : t += o;
1369
+ }
1370
+ return t.startsWith("ms-") ? "-" + t : t;
1019
1371
  }
1020
1372
  var Ue = function(e) {
1021
- return null == e || false === e || "" === e;
1373
+ return null == e || !1 === e || "" === e;
1022
1374
  }, Je = function(t) {
1023
- var n, o, r = [];
1024
- for (var s in t) {
1025
- var i = t[s];
1026
- t.hasOwnProperty(s) && !Ue(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(He(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Je(i), false), ["}"], false)) : r.push("".concat(He(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
1027
- }
1028
- return r;
1375
+ var n, o, r = [];
1376
+ for (var s in t) {
1377
+ var i = t[s];
1378
+ t.hasOwnProperty(s) && !Ue(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(He(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Je(i), !1), ["}"], !1)) : r.push("".concat(He(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
1379
+ }
1380
+ return r;
1029
1381
  };
1030
1382
  function Xe(e, t, n, o) {
1031
- if (Ue(e)) return [];
1032
- if (se(e)) return [".".concat(e.styledComponentId)];
1033
- if (re(e)) {
1034
- if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
1035
- var r = e(t);
1036
- return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof We || ce(r) || null === r || console.error("".concat(B(e), " 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.")), Xe(r, t, n, o);
1037
- }
1038
- var s;
1039
- return e instanceof We ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e2) {
1040
- return Xe(e2, t, n, o);
1041
- })) : [e.toString()];
1383
+ if (Ue(e)) return [];
1384
+ if (se(e)) return [".".concat(e.styledComponentId)];
1385
+ if (re(e)) {
1386
+ if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
1387
+ var r = e(t);
1388
+ return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof We || ce(r) || null === r || console.error("".concat(B(e), " 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.")), Xe(r, t, n, o);
1389
+ }
1390
+ var s;
1391
+ return e instanceof We ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e) {
1392
+ return Xe(e, t, n, o);
1393
+ })) : [e.toString()];
1042
1394
  }
1043
1395
  function Ze(e) {
1044
- for (var t = 0; t < e.length; t += 1) {
1045
- var n = e[t];
1046
- if (re(n) && !se(n)) return false;
1047
- }
1048
- return true;
1049
- }
1050
- var Ke = z(v), Qe = (function() {
1051
- function e(e2, t, n) {
1052
- this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e2), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
1053
- }
1054
- return e.prototype.generateAndInjectStyles = function(e2, t, n) {
1055
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
1056
- if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);
1057
- else {
1058
- var r = ae(Xe(this.rules, e2, t, n)), s = x(M(this.baseHash, r) >>> 0);
1059
- if (!t.hasNameForId(this.componentId, s)) {
1060
- var i = n(r, ".".concat(s), void 0, this.componentId);
1061
- t.insertRules(this.componentId, s, i);
1062
- }
1063
- o = ie(o, s), this.staticRulesId = s;
1064
- }
1065
- else {
1066
- for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
1067
- var u = this.rules[l];
1068
- if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));
1069
- else if (u) {
1070
- var p = ae(Xe(u, e2, t, n));
1071
- a = M(a, p + l), c += p;
1072
- }
1073
- }
1074
- if (c) {
1075
- var d = x(a >>> 0);
1076
- t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
1077
- }
1078
- }
1079
- return o;
1080
- }, e;
1081
- })(), et = React__default.createContext(void 0);
1396
+ for (var t = 0; t < e.length; t += 1) {
1397
+ var n = e[t];
1398
+ if (re(n) && !se(n)) return !1;
1399
+ }
1400
+ return !0;
1401
+ }
1402
+ var Ke = z(v), Qe = function() {
1403
+ function e(e, t, n) {
1404
+ this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
1405
+ }
1406
+ return e.prototype.generateAndInjectStyles = function(e, t, n) {
1407
+ var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
1408
+ if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);
1409
+ else {
1410
+ var r = ae(Xe(this.rules, e, t, n)), s = x(M(this.baseHash, r) >>> 0);
1411
+ if (!t.hasNameForId(this.componentId, s)) {
1412
+ var i = n(r, ".".concat(s), void 0, this.componentId);
1413
+ t.insertRules(this.componentId, s, i);
1414
+ }
1415
+ o = ie(o, s), this.staticRulesId = s;
1416
+ }
1417
+ else {
1418
+ for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
1419
+ var u = this.rules[l];
1420
+ if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));
1421
+ else if (u) {
1422
+ var p = ae(Xe(u, e, t, n));
1423
+ a = M(a, p + l), c += p;
1424
+ }
1425
+ }
1426
+ if (c) {
1427
+ var d = x(a >>> 0);
1428
+ t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
1429
+ }
1430
+ }
1431
+ return o;
1432
+ }, e;
1433
+ }(), et = React.createContext(void 0);
1082
1434
  et.Consumer;
1083
1435
  var rt = {}, st = /* @__PURE__ */ new Set();
1084
1436
  function it(e, r, s) {
1085
- var i = se(e), a = e, c = !L(e), p = r.attrs, d = void 0 === p ? _ : p, h = r.componentId, f2 = void 0 === h ? (function(e2, t) {
1086
- var n = "string" != typeof e2 ? "sc" : R(e2);
1087
- rt[n] = (rt[n] || 0) + 1;
1088
- var o = "".concat(n, "-").concat($(v + n + rt[n]));
1089
- return t ? "".concat(t, "-").concat(o) : o;
1090
- })(r.displayName, r.parentComponentId) : h, m2 = r.displayName, y2 = void 0 === m2 ? (function(e2) {
1091
- return L(e2) ? "styled.".concat(e2) : "Styled(".concat(B(e2), ")");
1092
- })(e) : m2, g2 = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f2, S2 = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, w2 = r.shouldForwardProp;
1093
- if (i && a.shouldForwardProp) {
1094
- var b2 = a.shouldForwardProp;
1095
- if (r.shouldForwardProp) {
1096
- var E2 = r.shouldForwardProp;
1097
- w2 = function(e2, t) {
1098
- return b2(e2, t) && E2(e2, t);
1099
- };
1100
- } else w2 = b2;
1101
- }
1102
- var N2 = new Qe(s, g2, i ? a.componentStyle : void 0);
1103
- function O2(e2, r2) {
1104
- return (function(e3, r3, s2) {
1105
- var i2 = e3.attrs, a2 = e3.componentStyle, c2 = e3.defaultProps, p2 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = React__default.useContext(et), m3 = Ge(), y3 = e3.shouldForwardProp || m3.shouldForwardProp;
1106
- "production" !== process.env.NODE_ENV && useDebugValue(d2);
1107
- var v2 = I(r3, f3, c2) || C, g3 = (function(e4, n, o) {
1108
- for (var r4, s3 = __assign(__assign({}, n), { className: void 0, theme: o }), i3 = 0; i3 < e4.length; i3 += 1) {
1109
- var a3 = re(r4 = e4[i3]) ? r4(s3) : r4;
1110
- for (var c3 in a3) s3[c3] = "className" === c3 ? ie(s3[c3], a3[c3]) : "style" === c3 ? __assign(__assign({}, s3[c3]), a3[c3]) : a3[c3];
1111
- }
1112
- return n.className && (s3.className = ie(s3.className, n.className)), s3;
1113
- })(i2, r3, v2), S3 = g3.as || h2, w3 = {};
1114
- for (var b3 in g3) void 0 === g3[b3] || "$" === b3[0] || "as" === b3 || "theme" === b3 && g3.theme === v2 || ("forwardedAs" === b3 ? w3.as = g3.forwardedAs : y3 && !y3(b3, S3) || (w3[b3] = g3[b3], y3 || "development" !== process.env.NODE_ENV || isPropValid(b3) || st.has(b3) || !A.has(S3) || (st.add(b3), console.warn('styled-components: it looks like an unknown prop "'.concat(b3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1115
- var E3 = (function(e4, t) {
1116
- var n = Ge(), o = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1117
- return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
1118
- })(a2, g3);
1119
- "production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
1120
- var N3 = ie(p2, d2);
1121
- return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, s2 && (w3.ref = s2), createElement(S3, w3);
1122
- })(D2, e2, r2);
1123
- }
1124
- O2.displayName = y2;
1125
- var D2 = React__default.forwardRef(O2);
1126
- return D2.attrs = S2, D2.componentStyle = N2, D2.displayName = y2, D2.shouldForwardProp = w2, D2.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D2.styledComponentId = g2, D2.target = i ? a.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
1127
- return this._foldedDefaultProps;
1128
- }, set: function(e2) {
1129
- this._foldedDefaultProps = i ? (function(e3) {
1130
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1131
- for (var o = 0, r2 = t; o < r2.length; o++) le(e3, r2[o], true);
1132
- return e3;
1133
- })({}, a.defaultProps, e2) : e2;
1134
- } }), "production" !== process.env.NODE_ENV && (P(y2, g2), D2.warnTooManyClasses = /* @__PURE__ */ (function(e2, t) {
1135
- var n = {}, o = false;
1136
- return function(r2) {
1137
- if (!o && (n[r2] = true, Object.keys(n).length >= 200)) {
1138
- var s2 = t ? ' with the id of "'.concat(t, '"') : "";
1139
- console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = true, n = {};
1140
- }
1141
- };
1142
- })(y2, g2)), ue(D2, function() {
1143
- return ".".concat(D2.styledComponentId);
1144
- }), c && oe(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
1437
+ var i = se(e), a = e, c = !L(e), p = r.attrs, d = void 0 === p ? _ : p, h = r.componentId, f = void 0 === h ? function(e, t) {
1438
+ var n = "string" != typeof e ? "sc" : R(e);
1439
+ rt[n] = (rt[n] || 0) + 1;
1440
+ var o = "".concat(n, "-").concat($(v + n + rt[n]));
1441
+ return t ? "".concat(t, "-").concat(o) : o;
1442
+ }(r.displayName, r.parentComponentId) : h, m = r.displayName, y = void 0 === m ? function(e) {
1443
+ return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
1444
+ }(e) : m, g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f, S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, w = r.shouldForwardProp;
1445
+ if (i && a.shouldForwardProp) {
1446
+ var b = a.shouldForwardProp;
1447
+ if (r.shouldForwardProp) {
1448
+ var E = r.shouldForwardProp;
1449
+ w = function(e, t) {
1450
+ return b(e, t) && E(e, t);
1451
+ };
1452
+ } else w = b;
1453
+ }
1454
+ var N = new Qe(s, g, i ? a.componentStyle : void 0);
1455
+ function O(e, r) {
1456
+ return function(e, r, s) {
1457
+ var i = e.attrs, a = e.componentStyle, c = e.defaultProps, p = e.foldedComponentIds, d = e.styledComponentId, h = e.target, f = React.useContext(et), m = Ge(), y = e.shouldForwardProp || m.shouldForwardProp;
1458
+ "production" !== process.env.NODE_ENV && useDebugValue(d);
1459
+ var v = I(r, f, c) || C, g = function(e, n, o) {
1460
+ for (var r, s = __assign(__assign({}, n), {
1461
+ className: void 0,
1462
+ theme: o
1463
+ }), i = 0; i < e.length; i += 1) {
1464
+ var a = re(r = e[i]) ? r(s) : r;
1465
+ for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
1466
+ }
1467
+ return n.className && (s.className = ie(s.className, n.className)), s;
1468
+ }(i, r, v), S = g.as || h, w = {};
1469
+ for (var b in g) void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || st.has(b) || !A.has(S) || (st.add(b), console.warn("styled-components: it looks like an unknown prop \"".concat(b, "\" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)")))));
1470
+ var E = function(e, t) {
1471
+ var n = Ge(), o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1472
+ return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
1473
+ }(a, g);
1474
+ "production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
1475
+ var N = ie(p, d);
1476
+ return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), createElement(S, w);
1477
+ }(D, e, r);
1478
+ }
1479
+ O.displayName = y;
1480
+ var D = React.forwardRef(O);
1481
+ return D.attrs = S, D.componentStyle = N, D.displayName = y, D.shouldForwardProp = w, D.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
1482
+ get: function() {
1483
+ return this._foldedDefaultProps;
1484
+ },
1485
+ set: function(e) {
1486
+ this._foldedDefaultProps = i ? function(e) {
1487
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1488
+ for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
1489
+ return e;
1490
+ }({}, a.defaultProps, e) : e;
1491
+ }
1492
+ }), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function(e, t) {
1493
+ var n = {}, o = !1;
1494
+ return function(r) {
1495
+ if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
1496
+ var s = t ? " with the id of \"".concat(t, "\"") : "";
1497
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = !0, n = {};
1498
+ }
1499
+ };
1500
+ }(y, g)), ue(D, function() {
1501
+ return ".".concat(D.styledComponentId);
1502
+ }), c && oe(D, e, {
1503
+ attrs: !0,
1504
+ componentStyle: !0,
1505
+ displayName: !0,
1506
+ foldedComponentIds: !0,
1507
+ shouldForwardProp: !0,
1508
+ styledComponentId: !0,
1509
+ target: !0
1510
+ }), D;
1145
1511
  }
1146
1512
  function at(e, t) {
1147
- for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
1148
- return n;
1513
+ for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
1514
+ return n;
1149
1515
  }
1150
1516
  var ct = function(e) {
1151
- return Object.assign(e, { isCss: true });
1517
+ return Object.assign(e, { isCss: !0 });
1152
1518
  };
1153
1519
  function lt(t) {
1154
- for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
1155
- if (re(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, true))));
1156
- var r = t;
1157
- return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Xe(r) : ct(Xe(at(r, n)));
1520
+ for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
1521
+ if (re(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, !0))));
1522
+ var r = t;
1523
+ return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Xe(r) : ct(Xe(at(r, n)));
1158
1524
  }
1159
1525
  function ut(n, o, r) {
1160
- if (void 0 === r && (r = C), !o) throw he(1, o);
1161
- var s = function(t) {
1162
- for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
1163
- return n(o, r, lt.apply(void 0, __spreadArray([t], s2, false)));
1164
- };
1165
- return s.attrs = function(e) {
1166
- return ut(n, o, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
1167
- }, s.withConfig = function(e) {
1168
- return ut(n, o, __assign(__assign({}, r), e));
1169
- }, s;
1526
+ if (void 0 === r && (r = C), !o) throw he(1, o);
1527
+ var s = function(t) {
1528
+ for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
1529
+ return n(o, r, lt.apply(void 0, __spreadArray([t], s, !1)));
1530
+ };
1531
+ return s.attrs = function(e) {
1532
+ return ut(n, o, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
1533
+ }, s.withConfig = function(e) {
1534
+ return ut(n, o, __assign(__assign({}, r), e));
1535
+ }, s;
1170
1536
  }
1171
1537
  var pt = function(e) {
1172
- return ut(it, e);
1538
+ return ut(it, e);
1173
1539
  }, dt = pt;
1174
1540
  A.forEach(function(e) {
1175
- dt[e] = pt(e);
1541
+ dt[e] = pt(e);
1176
1542
  });
1177
- var ht = (function() {
1178
- function e(e2, t) {
1179
- this.rules = e2, this.componentId = t, this.isStatic = Ze(e2), ke.registerId(this.componentId + 1);
1180
- }
1181
- return e.prototype.createStyles = function(e2, t, n, o) {
1182
- var r = o(ae(Xe(this.rules, t, n, o)), ""), s = this.componentId + e2;
1183
- n.insertRules(s, s, r);
1184
- }, e.prototype.removeStyles = function(e2, t) {
1185
- t.clearRules(this.componentId + e2);
1186
- }, e.prototype.renderStyles = function(e2, t, n, o) {
1187
- e2 > 2 && ke.registerId(this.componentId + e2), this.removeStyles(e2, n), this.createStyles(e2, t, n, o);
1188
- }, e;
1189
- })();
1543
+ var ht = function() {
1544
+ function e(e, t) {
1545
+ this.rules = e, this.componentId = t, this.isStatic = Ze(e), ke.registerId(this.componentId + 1);
1546
+ }
1547
+ return e.prototype.createStyles = function(e, t, n, o) {
1548
+ var r = o(ae(Xe(this.rules, t, n, o)), ""), s = this.componentId + e;
1549
+ n.insertRules(s, s, r);
1550
+ }, e.prototype.removeStyles = function(e, t) {
1551
+ t.clearRules(this.componentId + e);
1552
+ }, e.prototype.renderStyles = function(e, t, n, o) {
1553
+ e > 2 && ke.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, o);
1554
+ }, e;
1555
+ }();
1190
1556
  function ft(n) {
1191
- for (var r = [], s = 1; s < arguments.length; s++) r[s - 1] = arguments[s];
1192
- var i = lt.apply(void 0, __spreadArray([n], r, false)), a = "sc-global-".concat($(JSON.stringify(i))), c = new ht(i, a);
1193
- "production" !== process.env.NODE_ENV && P(a);
1194
- var l = function(e) {
1195
- var t = Ge(), n2 = React__default.useContext(et), r2 = React__default.useRef(t.styleSheet.allocateGSInstance(a)).current;
1196
- return "production" !== process.env.NODE_ENV && React__default.Children.count(e.children) && console.warn("The global style component ".concat(a, " was given child JSX. createGlobalStyle does not render children.")), "production" !== process.env.NODE_ENV && i.some(function(e2) {
1197
- return "string" == typeof e2 && -1 !== e2.indexOf("@import");
1198
- }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t.styleSheet.server && u(r2, e, t.styleSheet, n2, t.stylis), React__default.useLayoutEffect(function() {
1199
- if (!t.styleSheet.server) return u(r2, e, t.styleSheet, n2, t.stylis), function() {
1200
- return c.removeStyles(r2, t.styleSheet);
1201
- };
1202
- }, [r2, e, t.styleSheet, n2, t.stylis]), null;
1203
- };
1204
- function u(e, n2, o, r2, s2) {
1205
- if (c.isStatic) c.renderStyles(e, b, o, s2);
1206
- else {
1207
- var i2 = __assign(__assign({}, n2), { theme: I(n2, r2, l.defaultProps) });
1208
- c.renderStyles(e, i2, o, s2);
1209
- }
1210
- }
1211
- return React__default.memo(l);
1212
- }
1557
+ for (var r = [], s = 1; s < arguments.length; s++) r[s - 1] = arguments[s];
1558
+ var i = lt.apply(void 0, __spreadArray([n], r, !1)), a = "sc-global-".concat($(JSON.stringify(i))), c = new ht(i, a);
1559
+ "production" !== process.env.NODE_ENV && P(a);
1560
+ var l = function(e) {
1561
+ var t = Ge(), n = React.useContext(et), r = React.useRef(t.styleSheet.allocateGSInstance(a)).current;
1562
+ return "production" !== process.env.NODE_ENV && React.Children.count(e.children) && console.warn("The global style component ".concat(a, " was given child JSX. createGlobalStyle does not render children.")), "production" !== process.env.NODE_ENV && i.some(function(e) {
1563
+ return "string" == typeof e && -1 !== e.indexOf("@import");
1564
+ }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t.styleSheet.server && u(r, e, t.styleSheet, n, t.stylis), React.useLayoutEffect(function() {
1565
+ if (!t.styleSheet.server) return u(r, e, t.styleSheet, n, t.stylis), function() {
1566
+ return c.removeStyles(r, t.styleSheet);
1567
+ };
1568
+ }, [
1569
+ r,
1570
+ e,
1571
+ t.styleSheet,
1572
+ n,
1573
+ t.stylis
1574
+ ]), null;
1575
+ };
1576
+ function u(e, n, o, r, s) {
1577
+ if (c.isStatic) c.renderStyles(e, b, o, s);
1578
+ else {
1579
+ var i = __assign(__assign({}, n), { theme: I(n, r, l.defaultProps) });
1580
+ c.renderStyles(e, i, o, s);
1581
+ }
1582
+ }
1583
+ return React.memo(l);
1584
+ }
1585
+ (function() {
1586
+ function e() {
1587
+ var e = this;
1588
+ this._emitSheetCSS = function() {
1589
+ var t = e.instance.toString();
1590
+ if (!t) return "";
1591
+ var n = Ce(), o = ae([
1592
+ n && "nonce=\"".concat(n, "\""),
1593
+ "".concat(f, "=\"true\""),
1594
+ "".concat(y, "=\"").concat(v, "\"")
1595
+ ].filter(Boolean), " ");
1596
+ return "<style ".concat(o, ">").concat(t, "</style>");
1597
+ }, this.getStyleTags = function() {
1598
+ if (e.sealed) throw he(2);
1599
+ return e._emitSheetCSS();
1600
+ }, this.getStyleElement = function() {
1601
+ var n;
1602
+ if (e.sealed) throw he(2);
1603
+ var r = e.instance.toString();
1604
+ if (!r) return [];
1605
+ var s = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: r }, n), i = Ce();
1606
+ return i && (s.nonce = i), [React.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
1607
+ }, this.seal = function() {
1608
+ e.sealed = !0;
1609
+ }, this.instance = new ke({ isServer: !0 }), this.sealed = !1;
1610
+ }
1611
+ return e.prototype.collectStyles = function(e) {
1612
+ if (this.sealed) throw he(2);
1613
+ return React.createElement(Ye, { sheet: this.instance }, e);
1614
+ }, e.prototype.interleaveWithNodeStream = function(e) {
1615
+ throw he(3);
1616
+ }, e;
1617
+ })();
1213
1618
  "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
1214
1619
  var St = "__sc-".concat(f, "__");
1215
1620
  "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[St] || (window[St] = 0), 1 === window[St] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[St] += 1);
1621
+ //#endregion
1622
+ //#region src/components/LayoutFlex/tests/DataOverride.tsx
1623
+ var import_jsx_runtime = require_jsx_runtime();
1216
1624
  function Div1(props) {
1217
- return /* @__PURE__ */ jsx("div", { style: {
1218
- background: "yellow"
1219
- }, children: props.children });
1625
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1626
+ style: { background: "yellow" },
1627
+ children: props.children
1628
+ });
1220
1629
  }
1221
1630
  function Div2(props) {
1222
- return /* @__PURE__ */ jsx("div", { style: {
1223
- background: "orange"
1224
- }, children: props.children });
1631
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1632
+ style: { background: "orange" },
1633
+ children: props.children
1634
+ });
1225
1635
  }
1226
- const GlobalStyle = ft`
1636
+ var GlobalStyle = ft`
1227
1637
  div[data-override='true'] {
1228
1638
  display:grid;
1229
1639
  }
1230
1640
  `;
1231
1641
  function DataOverrideGlobalClass() {
1232
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1233
- /* @__PURE__ */ jsx(GlobalStyle, {}),
1234
- /* @__PURE__ */ jsx("span", { children: "DataOverrideGlobalClass" }),
1235
- /* @__PURE__ */ jsxs(LayoutFlex, { dataset: {
1236
- testid: "DataOverrideGlobalClass",
1237
- override: true
1238
- }, children: [
1239
- /* @__PURE__ */ jsx(Div1, { children: "a" }),
1240
- /* @__PURE__ */ jsx(Div2, { children: "b" })
1241
- ] })
1242
- ] });
1243
- }
1244
- const LocalStyle = dt.div`
1642
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1643
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GlobalStyle, {}),
1644
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "DataOverrideGlobalClass" }),
1645
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LayoutFlex, {
1646
+ dataset: {
1647
+ testid: "DataOverrideGlobalClass",
1648
+ override: true
1649
+ },
1650
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div1, { children: "a" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div2, { children: "b" })]
1651
+ })
1652
+ ] });
1653
+ }
1654
+ var LocalStyle = dt.div`
1245
1655
  div[data-override='true'] {
1246
1656
  display: grid;
1247
1657
  }
1248
1658
  `;
1249
1659
  function DataOverrideLocalClass() {
1250
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1251
- /* @__PURE__ */ jsx("span", { children: "DataOverrideLocalClass" }),
1252
- /* @__PURE__ */ jsx(LocalStyle, { children: /* @__PURE__ */ jsxs(LayoutFlex, { dataset: {
1253
- testid: "DataOverrideLocalClass",
1254
- override: true
1255
- }, children: [
1256
- /* @__PURE__ */ jsx(Div1, { children: "a" }),
1257
- /* @__PURE__ */ jsx(Div2, { children: "b" })
1258
- ] }) })
1259
- ] });
1260
- }
1261
- export {
1262
- DataOverrideGlobalClass,
1263
- DataOverrideLocalClass
1264
- };
1660
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "DataOverrideLocalClass" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LocalStyle, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LayoutFlex, {
1661
+ dataset: {
1662
+ testid: "DataOverrideLocalClass",
1663
+ override: true
1664
+ },
1665
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div1, { children: "a" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div2, { children: "b" })]
1666
+ }) })] });
1667
+ }
1668
+ //#endregion
1669
+ export { DataOverrideGlobalClass, DataOverrideLocalClass };