trepur_components 2.3.3 → 2.3.4

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 (356) hide show
  1. package/.eslintrc.cjs +43 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.prettierrc.json +22 -0
  4. package/archive/Breadcrumbs/Breadcrumbs.stories.tsx +46 -0
  5. package/archive/Breadcrumbs/index.tsx +42 -0
  6. package/archive/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +52 -0
  7. package/archive/BreadcrumbsBordered/index.tsx +44 -0
  8. package/archive/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +40 -0
  9. package/archive/BreadcrumbsItem/index.tsx +149 -0
  10. package/archive/Button/Button.stories.tsx +150 -0
  11. package/archive/Button/index.tsx +111 -0
  12. package/archive/Button/style.module.css +76 -0
  13. package/archive/Calendar/Calendar.stories.tsx +82 -0
  14. package/archive/Calendar/index.tsx +76 -0
  15. package/archive/Calendar/style.css +233 -0
  16. package/archive/Card/Card.stories.tsx +75 -0
  17. package/archive/Card/index.tsx +102 -0
  18. package/archive/Card/style.module.css +75 -0
  19. package/archive/CardWithTopImage/CardWithTopImage.stories.tsx +50 -0
  20. package/archive/CardWithTopImage/index.tsx +39 -0
  21. package/archive/CardWithTopImage/style.module.css +11 -0
  22. package/archive/Carousel/Carousel.stories.tsx +451 -0
  23. package/archive/Carousel/index.tsx +388 -0
  24. package/archive/Carousel/style.module.css +99 -0
  25. package/archive/CarouselThumbnail/CarouselThumbnail.stories.tsx +350 -0
  26. package/archive/CarouselThumbnail/index.tsx +302 -0
  27. package/archive/CarouselThumbnail/style.module.css +67 -0
  28. package/archive/Checkbox/Checkbox.mdx +33 -0
  29. package/archive/Checkbox/Checkbox.stories.tsx +34 -0
  30. package/archive/Checkbox/index.tsx +51 -0
  31. package/archive/Checkbox/style.module.css +15 -0
  32. package/archive/Collapsible/Collapsible.stories.tsx +67 -0
  33. package/archive/Collapsible/index.tsx +116 -0
  34. package/archive/Collapsible/style.module.css +47 -0
  35. package/archive/Column/Column.stories.tsx +89 -0
  36. package/archive/Column/index.tsx +119 -0
  37. package/archive/Column/style.module.css +151 -0
  38. package/archive/ComponentWrapper/ComponentWrapper.stories.tsx +40 -0
  39. package/archive/ComponentWrapper/index.tsx +55 -0
  40. package/archive/ComponentWrapper/style.module.css +40 -0
  41. package/archive/Container/Container.stories.tsx +40 -0
  42. package/archive/Container/index.tsx +24 -0
  43. package/archive/Container/style.module.css +4 -0
  44. package/archive/Counter/Counter.stories.tsx +19 -0
  45. package/archive/Counter/index.tsx +66 -0
  46. package/archive/Counter/style.module.css +19 -0
  47. package/archive/DetailUpdater/DetailUpdater.stories.tsx +96 -0
  48. package/archive/DetailUpdater/index.tsx +112 -0
  49. package/archive/DetailUpdater/style.module.css +31 -0
  50. package/archive/Dialog/Dialog.stories.tsx +131 -0
  51. package/archive/Dialog/index.tsx +91 -0
  52. package/archive/Dialog/style.module.css +44 -0
  53. package/archive/DropdownMenu/DropdownMenu.stories.tsx +59 -0
  54. package/archive/DropdownMenu/index.tsx +51 -0
  55. package/archive/DropdownMenu/style.module.css +38 -0
  56. package/archive/DynamicTextSection/DynamicTextSection.stories.tsx +74 -0
  57. package/archive/DynamicTextSection/index.tsx +36 -0
  58. package/archive/DynamicTextSection/style.module.css +0 -0
  59. package/archive/FileUploader/FilePreview.tsx +48 -0
  60. package/archive/FileUploader/FileUploader.stories.tsx +28 -0
  61. package/archive/FileUploader/index.tsx +135 -0
  62. package/archive/FileUploader/style.module.css +54 -0
  63. package/archive/FilterItem/FilterItem.stories.tsx +33 -0
  64. package/archive/FilterItem/index.tsx +101 -0
  65. package/archive/FilterItem/style.module.css +27 -0
  66. package/archive/Footer/Footer.stories.tsx +59 -0
  67. package/archive/Footer/index.tsx +50 -0
  68. package/archive/Footer/style.module.css +19 -0
  69. package/archive/FooterNav/FooterNav.stories.tsx +125 -0
  70. package/archive/FooterNav/index.tsx +57 -0
  71. package/archive/FooterNav/style.module.css +32 -0
  72. package/archive/FooterNavItem/FooterNavItem.stories.tsx +53 -0
  73. package/archive/FooterNavItem/index.tsx +80 -0
  74. package/archive/FooterNavItem/style.module.css +139 -0
  75. package/archive/Form/Form.stories.tsx +86 -0
  76. package/archive/Form/index.tsx +61 -0
  77. package/archive/Form/style.module.css +0 -0
  78. package/archive/FyreCard/FyreCard.stories.tsx +31 -0
  79. package/archive/FyreCard/index.tsx +52 -0
  80. package/archive/FyreCard/style.module.css +19 -0
  81. package/archive/Greeting/Greeting.stories.tsx +41 -0
  82. package/archive/Greeting/index.tsx +32 -0
  83. package/archive/HamburgerIcon/HamburgerIcon.stories.tsx +32 -0
  84. package/archive/HamburgerIcon/index.tsx +103 -0
  85. package/archive/HamburgerIcon/style.module.css +85 -0
  86. package/archive/HorizontalLine/HorizontalLine.stories.tsx +54 -0
  87. package/archive/HorizontalLine/index.tsx +40 -0
  88. package/archive/HorizontalLine/style.module.css +55 -0
  89. package/archive/Icon/Icon.stories.tsx +164 -0
  90. package/archive/Icon/index.tsx +115 -0
  91. package/archive/Icon/style.module.css +253 -0
  92. package/archive/IconCard/IconCard.stories.tsx +46 -0
  93. package/archive/IconCard/index.tsx +57 -0
  94. package/archive/IconCard/style.module.css +18 -0
  95. package/archive/Image/Image.stories.tsx +87 -0
  96. package/archive/Image/index.tsx +132 -0
  97. package/archive/Image/style.module.css +109 -0
  98. package/archive/ImageInfo/ImageInfo.stories.tsx +39 -0
  99. package/archive/ImageInfo/index.tsx +95 -0
  100. package/archive/ImageInfo/style.module.css +47 -0
  101. package/archive/ImageLink/ImageLink.stories.tsx +37 -0
  102. package/archive/ImageLink/index.tsx +49 -0
  103. package/archive/ImageLink/style.module.css +23 -0
  104. package/archive/ImageLinkList/ImageLinkList.stories.tsx +34 -0
  105. package/archive/ImageLinkList/index.tsx +33 -0
  106. package/archive/ImageLinkList/style.module.css +3 -0
  107. package/archive/InformationIcon/InformationIcon.stories.tsx +83 -0
  108. package/archive/InformationIcon/index.tsx +128 -0
  109. package/archive/InformationIcon/style.module.css +71 -0
  110. package/archive/InformationIconBlock/InformationIconBlock.stories.tsx +32 -0
  111. package/archive/InformationIconBlock/index.tsx +63 -0
  112. package/archive/InformationIconBlock/style.module.css +7 -0
  113. package/archive/Input/Input.stories.tsx +84 -0
  114. package/archive/Input/index.tsx +131 -0
  115. package/archive/Input/style.module.css +60 -0
  116. package/archive/Jumbotron/Jumbotron.stories.tsx +21 -0
  117. package/archive/Jumbotron/index.tsx +31 -0
  118. package/archive/Jumbotron/style.module.css +8 -0
  119. package/archive/MenuButton/MenuButton.stories.tsx +46 -0
  120. package/archive/MenuButton/index.tsx +82 -0
  121. package/archive/MenuButton/style.module.css +45 -0
  122. package/archive/Modal/Modal.stories.tsx +86 -0
  123. package/archive/Modal/index.tsx +74 -0
  124. package/archive/Modal/style.module.css +35 -0
  125. package/archive/NavItem/NavItem.stories.tsx +90 -0
  126. package/archive/NavItem/index.tsx +65 -0
  127. package/archive/NavItem/style.module.css +71 -0
  128. package/archive/NavOld/NavOld.stories.tsx +193 -0
  129. package/archive/NavOld/StickyNav.tsx +191 -0
  130. package/archive/NavOld/index.tsx +273 -0
  131. package/archive/NavOld/style.module.css +156 -0
  132. package/archive/NavTwo/Dropdown.tsx +35 -0
  133. package/archive/NavTwo/Nav.stories.tsx +38 -0
  134. package/archive/NavTwo/Sidebar.tsx +34 -0
  135. package/archive/NavTwo/StickyNav.tsx +34 -0
  136. package/archive/NavTwo/index.tsx +45 -0
  137. package/archive/NavTwo/style.module.css +35 -0
  138. package/archive/NewsCard/NewsCard.stories.tsx +72 -0
  139. package/archive/NewsCard/index.tsx +57 -0
  140. package/archive/NewsCard/style.module.css +15 -0
  141. package/archive/Pill/Pill.stories.tsx +44 -0
  142. package/archive/Pill/index.tsx +64 -0
  143. package/archive/Pill/style.module.css +32 -0
  144. package/archive/ProductCard/ProductCard.stories.tsx +61 -0
  145. package/archive/ProductCard/index.tsx +111 -0
  146. package/archive/ProductCard/style.module.css +53 -0
  147. package/archive/ProductCardV2/ProductCardV2.stories.tsx +50 -0
  148. package/archive/ProductCardV2/index.tsx +119 -0
  149. package/archive/ProductCardV2/style.module.css +59 -0
  150. package/archive/Proficiencies/Proficiencies.stories.tsx +50 -0
  151. package/archive/Proficiencies/index.tsx +63 -0
  152. package/archive/Proficiencies/style.module.css +31 -0
  153. package/archive/Profile/Profile.stories.tsx +49 -0
  154. package/archive/Profile/index.tsx +103 -0
  155. package/archive/Profile/style.module.css +47 -0
  156. package/archive/Row/Row.stories.tsx +53 -0
  157. package/archive/Row/index.tsx +23 -0
  158. package/archive/Row/style.module.css +3 -0
  159. package/archive/Search/Search.stories.tsx +63 -0
  160. package/archive/Search/index.tsx +68 -0
  161. package/archive/Search/style.module.css +23 -0
  162. package/archive/Select/Select.stories.tsx +56 -0
  163. package/archive/Select/index.tsx +106 -0
  164. package/archive/Select/style.module.css +52 -0
  165. package/archive/Showcase/Showcase.stories.tsx +30 -0
  166. package/archive/Showcase/index.tsx +75 -0
  167. package/archive/Showcase/style.module.css +47 -0
  168. package/archive/SideNav/SideNav.stories.tsx +50 -0
  169. package/archive/SideNav/index.tsx +46 -0
  170. package/archive/SideNav/style.module.css +43 -0
  171. package/archive/SocialBlock/SocialBlock.stories.tsx +58 -0
  172. package/archive/SocialBlock/index.tsx +63 -0
  173. package/archive/SocialButton/SocialButton.stories.tsx +88 -0
  174. package/archive/SocialButton/index.tsx +71 -0
  175. package/archive/SocialButton/style.module.css +77 -0
  176. package/archive/StarRating/StarRating.stories.tsx +23 -0
  177. package/archive/StarRating/index.tsx +71 -0
  178. package/archive/Testimonial/Testimonial.stories.tsx +110 -0
  179. package/archive/Testimonial/index.tsx +61 -0
  180. package/archive/Testimonial/style.module.css +27 -0
  181. package/archive/TextAndTitle/TextAndTitle.stories.tsx +70 -0
  182. package/archive/TextAndTitle/index.tsx +123 -0
  183. package/archive/TextAndTitle/style.module.css +75 -0
  184. package/archive/TextArea/TextArea.stories.tsx +55 -0
  185. package/archive/TextArea/index.tsx +125 -0
  186. package/archive/TextArea/style.module.css +60 -0
  187. package/archive/Timeline/Timeline.stories.tsx +92 -0
  188. package/archive/Timeline/index.tsx +254 -0
  189. package/archive/Timeline/style.module.css +134 -0
  190. package/archive/TimelineV2/TimelineV2.stories.tsx +95 -0
  191. package/archive/TimelineV2/index.tsx +70 -0
  192. package/archive/TimelineV2/style.module.css +28 -0
  193. package/archive/Tubestops/Tubestops.stories.tsx +42 -0
  194. package/archive/Tubestops/index.tsx +58 -0
  195. package/archive/Tubestops/style.module.css +54 -0
  196. package/archive/UserIcon/UserIcon.stories.tsx +52 -0
  197. package/archive/UserIcon/index.tsx +46 -0
  198. package/archive/UserIcon/style.module.css +19 -0
  199. package/archive/Video/Video.stories.tsx +23 -0
  200. package/archive/Video/index.tsx +47 -0
  201. package/archive/fonts/Sora/OFL.txt +93 -0
  202. package/archive/fonts/Sora/README.txt +70 -0
  203. package/archive/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  204. package/archive/fonts/Sora/static/Sora-Bold.ttf +0 -0
  205. package/archive/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  206. package/archive/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  207. package/archive/fonts/Sora/static/Sora-Light.ttf +0 -0
  208. package/archive/fonts/Sora/static/Sora-Medium.ttf +0 -0
  209. package/archive/fonts/Sora/static/Sora-Regular.ttf +0 -0
  210. package/archive/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  211. package/archive/fonts/Sora/static/Sora-Thin.ttf +0 -0
  212. package/archive/theme.ts +39 -0
  213. package/archive/typography/Fonts/Fonts.stories.tsx +14 -0
  214. package/archive/typography/Fonts/Fonts.tsx +181 -0
  215. package/lib/components/Accordion/index.js +10 -10
  216. package/lib/components/AlertBar/index.js +10 -10
  217. package/lib/components/index.d.ts +4 -0
  218. package/lib/index.js +1 -7
  219. package/package.json +6 -8
  220. package/src/components/Accordion/Accordion.stories.tsx +116 -0
  221. package/src/components/Accordion/index.tsx +30 -0
  222. package/src/components/AlertBar/AlertBar.stories.tsx +95 -0
  223. package/src/components/AlertBar/index.tsx +115 -0
  224. package/src/components/Avatar/Avatar.stories.tsx +19 -0
  225. package/src/components/Avatar/index.tsx +495 -0
  226. package/src/components/index.ts +119 -0
  227. package/src/documentation/Colours.mdx +192 -0
  228. package/src/documentation/Introduction.mdx +9 -0
  229. package/src/index.ts +1 -0
  230. package/src/styles/base.css +116 -0
  231. package/src/utils/controls.ts +44 -0
  232. package/src/utils/matchMedia.ts +9 -0
  233. package/src/utils/screens.ts +7 -0
  234. package/storybook-build/assets/Accordion.stories-Cn994N1H.js +103 -0
  235. package/storybook-build/assets/AlertBar.stories-BkzNXFBh.js +202 -0
  236. package/storybook-build/assets/Avatar.stories-CpH6xVwM.js +418 -0
  237. package/storybook-build/assets/Color-6VNJS4EI-DQV2onvt.js +1378 -0
  238. package/storybook-build/assets/Colours-r29qjFlW.js +324 -0
  239. package/storybook-build/assets/DocsRenderer-NNNQARDV-OgWasCIs.js +44 -0
  240. package/storybook-build/assets/Introduction-Bs1PgnBZ.js +40 -0
  241. package/storybook-build/assets/WithTooltip-V3YHNWJZ-vi2V5TOO.js +15 -0
  242. package/storybook-build/assets/_commonjsHelpers-LQfde5yM.js +35 -0
  243. package/storybook-build/assets/axe-DnFZVv9V.js +32561 -0
  244. package/storybook-build/assets/chunk-EIRT5I3Z-DFD8udmD.js +480 -0
  245. package/storybook-build/assets/context-CIRBAiUz.js +20 -0
  246. package/storybook-build/assets/controls-DJSGrQKd.js +23 -0
  247. package/storybook-build/assets/entry-preview-DmlPV4-3.js +41 -0
  248. package/storybook-build/assets/entry-preview-docs-D46Drugi.js +11861 -0
  249. package/storybook-build/assets/formatter-SWP5E3XI-BWIasvKP.js +14427 -0
  250. package/storybook-build/assets/iframe-Dzzzanqi.js +144 -0
  251. package/storybook-build/assets/index-0FT4HXk-.js +7222 -0
  252. package/storybook-build/assets/index-B9Tccxv4.js +107 -0
  253. package/storybook-build/assets/index-BdOSk9or.js +41 -0
  254. package/storybook-build/assets/index-CU7cYjZD.js +9604 -0
  255. package/storybook-build/assets/index-Clz-aGG3.js +39 -0
  256. package/storybook-build/assets/index-CpyNLP69.js +63 -0
  257. package/storybook-build/assets/index-DM9bPmif.js +319 -0
  258. package/storybook-build/assets/index-ex9_VrIg.js +3734 -0
  259. package/storybook-build/assets/jsx-runtime-D2-sc1j1.js +35 -0
  260. package/storybook-build/assets/preview-3kSipVgK.js +430 -0
  261. package/storybook-build/assets/preview-B4rAxPmB.js +27 -0
  262. package/storybook-build/assets/preview-BMkwWyrh.js +2920 -0
  263. package/storybook-build/assets/preview-BeQelhbu.js +204 -0
  264. package/storybook-build/assets/preview-BiG-rflf.js +2444 -0
  265. package/storybook-build/assets/preview-BiYUJ7TP.js +22 -0
  266. package/storybook-build/assets/preview-C4ItOQzM.js +34 -0
  267. package/storybook-build/assets/preview-CWyhKACi.css +886 -0
  268. package/storybook-build/assets/preview-CtOV68TG.js +10 -0
  269. package/storybook-build/assets/preview-De9E9xaR.js +140 -0
  270. package/storybook-build/assets/preview-bL4x2zrN.js +99 -0
  271. package/storybook-build/assets/preview-gxqyGMHu.js +323 -0
  272. package/storybook-build/assets/react-18-B-gfo82w.js +29 -0
  273. package/storybook-build/assets/syntaxhighlighter-B5GMVT5T-DrY_Dc6-.js +15 -0
  274. package/storybook-build/favicon.svg +7 -0
  275. package/storybook-build/iframe.html +458 -0
  276. package/storybook-build/index.html +163 -0
  277. package/storybook-build/index.json +1 -0
  278. package/storybook-build/preview-stats.json +172 -0
  279. package/storybook-build/project.json +1 -0
  280. package/storybook-build/sb-addons/a11y-9/manager-bundle.js +3 -0
  281. package/storybook-build/sb-addons/a11y-9/manager-bundle.js.LEGAL.txt +0 -0
  282. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  283. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  284. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  285. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  286. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
  287. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  288. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  289. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  290. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  291. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  292. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  293. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  294. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  295. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  296. package/storybook-build/sb-addons/interactions-8/manager-bundle.js +12 -0
  297. package/storybook-build/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  298. package/storybook-build/sb-addons/links-0/manager-bundle.js +3 -0
  299. package/storybook-build/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  300. package/storybook-build/sb-addons/storybook-12/manager-bundle.js +151 -0
  301. package/storybook-build/sb-addons/storybook-12/manager-bundle.js.LEGAL.txt +0 -0
  302. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js +3 -0
  303. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js.LEGAL.txt +0 -0
  304. package/storybook-build/sb-addons/themes-10/register-bundle.js +5 -0
  305. package/storybook-build/sb-addons/themes-10/register-bundle.js.LEGAL.txt +0 -0
  306. package/storybook-build/sb-common-assets/fonts.css +31 -0
  307. package/storybook-build/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  308. package/storybook-build/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  309. package/storybook-build/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  310. package/storybook-build/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  311. package/storybook-build/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js +1 -0
  312. package/storybook-build/sb-manager/chunk-4IYAVH3S.js +348 -0
  313. package/storybook-build/sb-manager/chunk-CXYKRFSY.js +9 -0
  314. package/storybook-build/sb-manager/chunk-KZYAAUOR.js +406 -0
  315. package/storybook-build/sb-manager/chunk-LVLAH4SI.js +7 -0
  316. package/storybook-build/sb-manager/chunk-ZEU7PDD3.js +1 -0
  317. package/storybook-build/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  318. package/storybook-build/sb-manager/globals-module-info.js +1 -0
  319. package/storybook-build/sb-manager/globals.js +1 -0
  320. package/storybook-build/sb-manager/index.js +1 -0
  321. package/storybook-build/sb-manager/runtime.js +1 -0
  322. package/storybook-build/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js +1 -0
  323. package/storybook-build/sb-preview/globals.js +1 -0
  324. package/storybook-build/sb-preview/runtime.js +112 -0
  325. package/storybook-build/src/components/Accordion/Accordion.stories.d.ts +94 -0
  326. package/storybook-build/src/components/Accordion/index.d.ts +9 -0
  327. package/storybook-build/src/components/AlertBar/AlertBar.stories.d.ts +162 -0
  328. package/storybook-build/src/components/AlertBar/index.d.ts +13 -0
  329. package/storybook-build/src/components/Avatar/Avatar.stories.d.ts +44 -0
  330. package/storybook-build/src/components/Avatar/index.d.ts +4 -0
  331. package/storybook-build/src/index.d.ts +1 -0
  332. package/storybook-build/src/utils/controls.d.ts +36 -0
  333. package/storybook-build/src/utils/matchMedia.d.ts +2 -0
  334. package/storybook-build/src/utils/screens.d.ts +7 -0
  335. package/storybook-build/src/utils/theme.d.ts +3 -0
  336. package/storybook-build/stories.json +1 -0
  337. package/storybook-build/styles/base.css +116 -0
  338. package/svg.d.ts +4 -0
  339. package/tailwind.config.ts +81 -0
  340. package/tsconfig.json +43 -0
  341. package/tsconfig.node.json +12 -0
  342. package/vite.config.mjs +64 -0
  343. package/lib/archive/Breadcrumbs/index.js +0 -12
  344. package/lib/archive/BreadcrumbsBordered/index.js +0 -25
  345. package/lib/archive/BreadcrumbsItem/index.js +0 -117
  346. /package/lib/{src/components → components}/Accordion/Accordion.stories.d.ts +0 -0
  347. /package/lib/{src/components → components}/Accordion/index.d.ts +0 -0
  348. /package/lib/{src/components → components}/AlertBar/AlertBar.stories.d.ts +0 -0
  349. /package/lib/{src/components → components}/AlertBar/index.d.ts +0 -0
  350. /package/lib/{src/components → components}/Avatar/Avatar.stories.d.ts +0 -0
  351. /package/lib/{src/components → components}/Avatar/index.d.ts +0 -0
  352. /package/lib/{src/index.d.ts → index.d.ts} +0 -0
  353. /package/lib/{src/utils → utils}/controls.d.ts +0 -0
  354. /package/lib/{src/utils → utils}/matchMedia.d.ts +0 -0
  355. /package/lib/{src/utils → utils}/screens.d.ts +0 -0
  356. /package/{lib → storybook-build}/src/components/index.d.ts +0 -0
@@ -0,0 +1,2444 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { c as commonjsGlobal } from "./_commonjsHelpers-LQfde5yM.js";
8
+ var build = {};
9
+ Object.defineProperty(build, "__esModule", {
10
+ value: true
11
+ });
12
+ build.spyOn = build.mocked = build.fn = ModuleMocker_1 = build.ModuleMocker = void 0;
13
+ function _defineProperty(obj, key, value) {
14
+ if (key in obj) {
15
+ Object.defineProperty(obj, key, {
16
+ value,
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true
20
+ });
21
+ } else {
22
+ obj[key] = value;
23
+ }
24
+ return obj;
25
+ }
26
+ const MOCK_CONSTRUCTOR_NAME = "mockConstructor";
27
+ const FUNCTION_NAME_RESERVED_PATTERN = /[\s!-\/:-@\[-`{-~]/;
28
+ const FUNCTION_NAME_RESERVED_REPLACE = new RegExp(
29
+ FUNCTION_NAME_RESERVED_PATTERN.source,
30
+ "g"
31
+ );
32
+ const RESERVED_KEYWORDS = /* @__PURE__ */ new Set([
33
+ "arguments",
34
+ "await",
35
+ "break",
36
+ "case",
37
+ "catch",
38
+ "class",
39
+ "const",
40
+ "continue",
41
+ "debugger",
42
+ "default",
43
+ "delete",
44
+ "do",
45
+ "else",
46
+ "enum",
47
+ "eval",
48
+ "export",
49
+ "extends",
50
+ "false",
51
+ "finally",
52
+ "for",
53
+ "function",
54
+ "if",
55
+ "implements",
56
+ "import",
57
+ "in",
58
+ "instanceof",
59
+ "interface",
60
+ "let",
61
+ "new",
62
+ "null",
63
+ "package",
64
+ "private",
65
+ "protected",
66
+ "public",
67
+ "return",
68
+ "static",
69
+ "super",
70
+ "switch",
71
+ "this",
72
+ "throw",
73
+ "true",
74
+ "try",
75
+ "typeof",
76
+ "var",
77
+ "void",
78
+ "while",
79
+ "with",
80
+ "yield"
81
+ ]);
82
+ function matchArity(fn2, length) {
83
+ let mockConstructor;
84
+ switch (length) {
85
+ case 1:
86
+ mockConstructor = function(_a) {
87
+ return fn2.apply(this, arguments);
88
+ };
89
+ break;
90
+ case 2:
91
+ mockConstructor = function(_a, _b) {
92
+ return fn2.apply(this, arguments);
93
+ };
94
+ break;
95
+ case 3:
96
+ mockConstructor = function(_a, _b, _c) {
97
+ return fn2.apply(this, arguments);
98
+ };
99
+ break;
100
+ case 4:
101
+ mockConstructor = function(_a, _b, _c, _d) {
102
+ return fn2.apply(this, arguments);
103
+ };
104
+ break;
105
+ case 5:
106
+ mockConstructor = function(_a, _b, _c, _d, _e) {
107
+ return fn2.apply(this, arguments);
108
+ };
109
+ break;
110
+ case 6:
111
+ mockConstructor = function(_a, _b, _c, _d, _e, _f) {
112
+ return fn2.apply(this, arguments);
113
+ };
114
+ break;
115
+ case 7:
116
+ mockConstructor = function(_a, _b, _c, _d, _e, _f, _g) {
117
+ return fn2.apply(this, arguments);
118
+ };
119
+ break;
120
+ case 8:
121
+ mockConstructor = function(_a, _b, _c, _d, _e, _f, _g, _h) {
122
+ return fn2.apply(this, arguments);
123
+ };
124
+ break;
125
+ case 9:
126
+ mockConstructor = function(_a, _b, _c, _d, _e, _f, _g, _h, _i) {
127
+ return fn2.apply(this, arguments);
128
+ };
129
+ break;
130
+ default:
131
+ mockConstructor = function() {
132
+ return fn2.apply(this, arguments);
133
+ };
134
+ break;
135
+ }
136
+ return mockConstructor;
137
+ }
138
+ function getObjectType(value) {
139
+ return Object.prototype.toString.apply(value).slice(8, -1);
140
+ }
141
+ function getType$1(ref) {
142
+ const typeName = getObjectType(ref);
143
+ if (typeName === "Function" || typeName === "AsyncFunction" || typeName === "GeneratorFunction") {
144
+ return "function";
145
+ } else if (Array.isArray(ref)) {
146
+ return "array";
147
+ } else if (typeName === "Object") {
148
+ return "object";
149
+ } else if (typeName === "Number" || typeName === "String" || typeName === "Boolean" || typeName === "Symbol") {
150
+ return "constant";
151
+ } else if (typeName === "Map" || typeName === "WeakMap" || typeName === "Set") {
152
+ return "collection";
153
+ } else if (typeName === "RegExp") {
154
+ return "regexp";
155
+ } else if (ref === void 0) {
156
+ return "undefined";
157
+ } else if (ref === null) {
158
+ return "null";
159
+ } else {
160
+ return null;
161
+ }
162
+ }
163
+ function isReadonlyProp(object, prop) {
164
+ if (prop === "arguments" || prop === "caller" || prop === "callee" || prop === "name" || prop === "length") {
165
+ const typeName = getObjectType(object);
166
+ return typeName === "Function" || typeName === "AsyncFunction" || typeName === "GeneratorFunction";
167
+ }
168
+ if (prop === "source" || prop === "global" || prop === "ignoreCase" || prop === "multiline") {
169
+ return getObjectType(object) === "RegExp";
170
+ }
171
+ return false;
172
+ }
173
+ class ModuleMocker {
174
+ /**
175
+ * @see README.md
176
+ * @param global Global object of the test environment, used to create
177
+ * mocks
178
+ */
179
+ constructor(global2) {
180
+ _defineProperty(this, "_environmentGlobal", void 0);
181
+ _defineProperty(this, "_mockState", void 0);
182
+ _defineProperty(this, "_mockConfigRegistry", void 0);
183
+ _defineProperty(this, "_spyState", void 0);
184
+ _defineProperty(this, "_invocationCallCounter", void 0);
185
+ this._environmentGlobal = global2;
186
+ this._mockState = /* @__PURE__ */ new WeakMap();
187
+ this._mockConfigRegistry = /* @__PURE__ */ new WeakMap();
188
+ this._spyState = /* @__PURE__ */ new Set();
189
+ this._invocationCallCounter = 1;
190
+ }
191
+ _getSlots(object) {
192
+ if (!object) {
193
+ return [];
194
+ }
195
+ const slots = /* @__PURE__ */ new Set();
196
+ const EnvObjectProto = this._environmentGlobal.Object.prototype;
197
+ const EnvFunctionProto = this._environmentGlobal.Function.prototype;
198
+ const EnvRegExpProto = this._environmentGlobal.RegExp.prototype;
199
+ const ObjectProto = Object.prototype;
200
+ const FunctionProto = Function.prototype;
201
+ const RegExpProto = RegExp.prototype;
202
+ while (object != null && object !== EnvObjectProto && object !== EnvFunctionProto && object !== EnvRegExpProto && object !== ObjectProto && object !== FunctionProto && object !== RegExpProto) {
203
+ const ownNames = Object.getOwnPropertyNames(object);
204
+ for (let i = 0; i < ownNames.length; i++) {
205
+ const prop = ownNames[i];
206
+ if (!isReadonlyProp(object, prop)) {
207
+ const propDesc = Object.getOwnPropertyDescriptor(object, prop);
208
+ if (propDesc !== void 0 && !propDesc.get || object.__esModule) {
209
+ slots.add(prop);
210
+ }
211
+ }
212
+ }
213
+ object = Object.getPrototypeOf(object);
214
+ }
215
+ return Array.from(slots);
216
+ }
217
+ _ensureMockConfig(f) {
218
+ let config = this._mockConfigRegistry.get(f);
219
+ if (!config) {
220
+ config = this._defaultMockConfig();
221
+ this._mockConfigRegistry.set(f, config);
222
+ }
223
+ return config;
224
+ }
225
+ _ensureMockState(f) {
226
+ let state = this._mockState.get(f);
227
+ if (!state) {
228
+ state = this._defaultMockState();
229
+ this._mockState.set(f, state);
230
+ }
231
+ if (state.calls.length > 0) {
232
+ state.lastCall = state.calls[state.calls.length - 1];
233
+ }
234
+ return state;
235
+ }
236
+ _defaultMockConfig() {
237
+ return {
238
+ mockImpl: void 0,
239
+ mockName: "jest.fn()",
240
+ specificMockImpls: [],
241
+ specificReturnValues: []
242
+ };
243
+ }
244
+ _defaultMockState() {
245
+ return {
246
+ calls: [],
247
+ instances: [],
248
+ invocationCallOrder: [],
249
+ results: []
250
+ };
251
+ }
252
+ _makeComponent(metadata, restore) {
253
+ if (metadata.type === "object") {
254
+ return new this._environmentGlobal.Object();
255
+ } else if (metadata.type === "array") {
256
+ return new this._environmentGlobal.Array();
257
+ } else if (metadata.type === "regexp") {
258
+ return new this._environmentGlobal.RegExp("");
259
+ } else if (metadata.type === "constant" || metadata.type === "collection" || metadata.type === "null" || metadata.type === "undefined") {
260
+ return metadata.value;
261
+ } else if (metadata.type === "function") {
262
+ const prototype = metadata.members && metadata.members.prototype && metadata.members.prototype.members || {};
263
+ const prototypeSlots = this._getSlots(prototype);
264
+ const mocker = this;
265
+ const mockConstructor = matchArity(function(...args) {
266
+ const mockState = mocker._ensureMockState(f);
267
+ const mockConfig = mocker._ensureMockConfig(f);
268
+ mockState.instances.push(this);
269
+ mockState.calls.push(args);
270
+ const mockResult = {
271
+ type: "incomplete",
272
+ value: void 0
273
+ };
274
+ mockState.results.push(mockResult);
275
+ mockState.invocationCallOrder.push(mocker._invocationCallCounter++);
276
+ let finalReturnValue;
277
+ let thrownError;
278
+ let callDidThrowError = false;
279
+ try {
280
+ finalReturnValue = (() => {
281
+ if (this instanceof f) {
282
+ prototypeSlots.forEach((slot) => {
283
+ if (prototype[slot].type === "function") {
284
+ const protoImpl = this[slot];
285
+ this[slot] = mocker.generateFromMetadata(prototype[slot]);
286
+ this[slot]._protoImpl = protoImpl;
287
+ }
288
+ });
289
+ const mockImpl = mockConfig.specificMockImpls.length ? mockConfig.specificMockImpls.shift() : mockConfig.mockImpl;
290
+ return mockImpl && mockImpl.apply(this, arguments);
291
+ }
292
+ let specificMockImpl = mockConfig.specificMockImpls.shift();
293
+ if (specificMockImpl === void 0) {
294
+ specificMockImpl = mockConfig.mockImpl;
295
+ }
296
+ if (specificMockImpl) {
297
+ return specificMockImpl.apply(this, arguments);
298
+ }
299
+ if (f._protoImpl) {
300
+ return f._protoImpl.apply(this, arguments);
301
+ }
302
+ return void 0;
303
+ })();
304
+ } catch (error) {
305
+ thrownError = error;
306
+ callDidThrowError = true;
307
+ throw error;
308
+ } finally {
309
+ mockResult.type = callDidThrowError ? "throw" : "return";
310
+ mockResult.value = callDidThrowError ? thrownError : finalReturnValue;
311
+ }
312
+ return finalReturnValue;
313
+ }, metadata.length || 0);
314
+ const f = this._createMockFunction(metadata, mockConstructor);
315
+ f._isMockFunction = true;
316
+ f.getMockImplementation = () => this._ensureMockConfig(f).mockImpl;
317
+ if (typeof restore === "function") {
318
+ this._spyState.add(restore);
319
+ }
320
+ this._mockState.set(f, this._defaultMockState());
321
+ this._mockConfigRegistry.set(f, this._defaultMockConfig());
322
+ Object.defineProperty(f, "mock", {
323
+ configurable: false,
324
+ enumerable: true,
325
+ get: () => this._ensureMockState(f),
326
+ set: (val) => this._mockState.set(f, val)
327
+ });
328
+ f.mockClear = () => {
329
+ this._mockState.delete(f);
330
+ return f;
331
+ };
332
+ f.mockReset = () => {
333
+ f.mockClear();
334
+ this._mockConfigRegistry.delete(f);
335
+ return f;
336
+ };
337
+ f.mockRestore = () => {
338
+ f.mockReset();
339
+ return restore ? restore() : void 0;
340
+ };
341
+ f.mockReturnValueOnce = (value) => f.mockImplementationOnce(() => value);
342
+ f.mockResolvedValueOnce = (value) => f.mockImplementationOnce(() => Promise.resolve(value));
343
+ f.mockRejectedValueOnce = (value) => f.mockImplementationOnce(() => Promise.reject(value));
344
+ f.mockReturnValue = (value) => f.mockImplementation(() => value);
345
+ f.mockResolvedValue = (value) => f.mockImplementation(() => Promise.resolve(value));
346
+ f.mockRejectedValue = (value) => f.mockImplementation(() => Promise.reject(value));
347
+ f.mockImplementationOnce = (fn2) => {
348
+ const mockConfig = this._ensureMockConfig(f);
349
+ mockConfig.specificMockImpls.push(fn2);
350
+ return f;
351
+ };
352
+ f.mockImplementation = (fn2) => {
353
+ const mockConfig = this._ensureMockConfig(f);
354
+ mockConfig.mockImpl = fn2;
355
+ return f;
356
+ };
357
+ f.mockReturnThis = () => f.mockImplementation(function() {
358
+ return this;
359
+ });
360
+ f.mockName = (name) => {
361
+ if (name) {
362
+ const mockConfig = this._ensureMockConfig(f);
363
+ mockConfig.mockName = name;
364
+ }
365
+ return f;
366
+ };
367
+ f.getMockName = () => {
368
+ const mockConfig = this._ensureMockConfig(f);
369
+ return mockConfig.mockName || "jest.fn()";
370
+ };
371
+ if (metadata.mockImpl) {
372
+ f.mockImplementation(metadata.mockImpl);
373
+ }
374
+ return f;
375
+ } else {
376
+ const unknownType = metadata.type || "undefined type";
377
+ throw new Error("Unrecognized type " + unknownType);
378
+ }
379
+ }
380
+ _createMockFunction(metadata, mockConstructor) {
381
+ let name = metadata.name;
382
+ if (!name) {
383
+ return mockConstructor;
384
+ }
385
+ const boundFunctionPrefix = "bound ";
386
+ let bindCall = "";
387
+ if (name && name.startsWith(boundFunctionPrefix)) {
388
+ do {
389
+ name = name.substring(boundFunctionPrefix.length);
390
+ bindCall = ".bind(null)";
391
+ } while (name && name.startsWith(boundFunctionPrefix));
392
+ }
393
+ if (name === MOCK_CONSTRUCTOR_NAME) {
394
+ return mockConstructor;
395
+ }
396
+ if (
397
+ // It's a syntax error to define functions with a reserved keyword
398
+ // as name.
399
+ RESERVED_KEYWORDS.has(name) || // It's also a syntax error to define functions with a name that starts with a number
400
+ /^\d/.test(name)
401
+ ) {
402
+ name = "$" + name;
403
+ }
404
+ if (FUNCTION_NAME_RESERVED_PATTERN.test(name)) {
405
+ name = name.replace(FUNCTION_NAME_RESERVED_REPLACE, "$");
406
+ }
407
+ const body = "return function " + name + "() {return " + MOCK_CONSTRUCTOR_NAME + ".apply(this,arguments);}" + bindCall;
408
+ const createConstructor = new this._environmentGlobal.Function(
409
+ MOCK_CONSTRUCTOR_NAME,
410
+ body
411
+ );
412
+ return createConstructor(mockConstructor);
413
+ }
414
+ _generateMock(metadata, callbacks, refs) {
415
+ const mock = this._makeComponent(metadata);
416
+ if (metadata.refID != null) {
417
+ refs[metadata.refID] = mock;
418
+ }
419
+ this._getSlots(metadata.members).forEach((slot) => {
420
+ const slotMetadata = metadata.members && metadata.members[slot] || {};
421
+ if (slotMetadata.ref != null) {
422
+ callbacks.push(
423
+ /* @__PURE__ */ function(ref) {
424
+ return () => mock[slot] = refs[ref];
425
+ }(slotMetadata.ref)
426
+ );
427
+ } else {
428
+ mock[slot] = this._generateMock(slotMetadata, callbacks, refs);
429
+ }
430
+ });
431
+ if (metadata.type !== "undefined" && metadata.type !== "null" && mock.prototype && typeof mock.prototype === "object") {
432
+ mock.prototype.constructor = mock;
433
+ }
434
+ return mock;
435
+ }
436
+ /**
437
+ * @see README.md
438
+ * @param _metadata Metadata for the mock in the schema returned by the
439
+ * getMetadata method of this module.
440
+ */
441
+ generateFromMetadata(_metadata) {
442
+ const callbacks = [];
443
+ const refs = {};
444
+ const mock = this._generateMock(_metadata, callbacks, refs);
445
+ callbacks.forEach((setter) => setter());
446
+ return mock;
447
+ }
448
+ /**
449
+ * @see README.md
450
+ * @param component The component for which to retrieve metadata.
451
+ */
452
+ getMetadata(component, _refs) {
453
+ const refs = _refs || /* @__PURE__ */ new Map();
454
+ const ref = refs.get(component);
455
+ if (ref != null) {
456
+ return {
457
+ ref
458
+ };
459
+ }
460
+ const type = getType$1(component);
461
+ if (!type) {
462
+ return null;
463
+ }
464
+ const metadata = {
465
+ type
466
+ };
467
+ if (type === "constant" || type === "collection" || type === "undefined" || type === "null") {
468
+ metadata.value = component;
469
+ return metadata;
470
+ } else if (type === "function") {
471
+ metadata.name = component.name;
472
+ if (component._isMockFunction === true) {
473
+ metadata.mockImpl = component.getMockImplementation();
474
+ }
475
+ }
476
+ metadata.refID = refs.size;
477
+ refs.set(component, metadata.refID);
478
+ let members = null;
479
+ if (type !== "array") {
480
+ this._getSlots(component).forEach((slot) => {
481
+ if (type === "function" && // @ts-expect-error may be a mock
482
+ component._isMockFunction === true && slot.match(/^mock/)) {
483
+ return;
484
+ }
485
+ const slotMetadata = this.getMetadata(component[slot], refs);
486
+ if (slotMetadata) {
487
+ if (!members) {
488
+ members = {};
489
+ }
490
+ members[slot] = slotMetadata;
491
+ }
492
+ });
493
+ }
494
+ if (members) {
495
+ metadata.members = members;
496
+ }
497
+ return metadata;
498
+ }
499
+ isMockFunction(fn2) {
500
+ return !!fn2 && fn2._isMockFunction === true;
501
+ }
502
+ fn(implementation) {
503
+ const length = implementation ? implementation.length : 0;
504
+ const fn2 = this._makeComponent({
505
+ length,
506
+ type: "function"
507
+ });
508
+ if (implementation) {
509
+ fn2.mockImplementation(implementation);
510
+ }
511
+ return fn2;
512
+ }
513
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
514
+ spyOn(object, methodName, accessType) {
515
+ if (accessType) {
516
+ return this._spyOnProperty(object, methodName, accessType);
517
+ }
518
+ if (typeof object !== "object" && typeof object !== "function") {
519
+ throw new Error(
520
+ "Cannot spyOn on a primitive value; " + this._typeOf(object) + " given"
521
+ );
522
+ }
523
+ const original = object[methodName];
524
+ if (!this.isMockFunction(original)) {
525
+ if (typeof original !== "function") {
526
+ throw new Error(
527
+ "Cannot spy the " + methodName + " property because it is not a function; " + this._typeOf(original) + " given instead"
528
+ );
529
+ }
530
+ const isMethodOwner = Object.prototype.hasOwnProperty.call(
531
+ object,
532
+ methodName
533
+ );
534
+ let descriptor = Object.getOwnPropertyDescriptor(object, methodName);
535
+ let proto = Object.getPrototypeOf(object);
536
+ while (!descriptor && proto !== null) {
537
+ descriptor = Object.getOwnPropertyDescriptor(proto, methodName);
538
+ proto = Object.getPrototypeOf(proto);
539
+ }
540
+ let mock;
541
+ if (descriptor && descriptor.get) {
542
+ const originalGet = descriptor.get;
543
+ mock = this._makeComponent(
544
+ {
545
+ type: "function"
546
+ },
547
+ () => {
548
+ descriptor.get = originalGet;
549
+ Object.defineProperty(object, methodName, descriptor);
550
+ }
551
+ );
552
+ descriptor.get = () => mock;
553
+ Object.defineProperty(object, methodName, descriptor);
554
+ } else {
555
+ mock = this._makeComponent(
556
+ {
557
+ type: "function"
558
+ },
559
+ () => {
560
+ if (isMethodOwner) {
561
+ object[methodName] = original;
562
+ } else {
563
+ delete object[methodName];
564
+ }
565
+ }
566
+ );
567
+ object[methodName] = mock;
568
+ }
569
+ mock.mockImplementation(function() {
570
+ return original.apply(this, arguments);
571
+ });
572
+ }
573
+ return object[methodName];
574
+ }
575
+ _spyOnProperty(obj, propertyName, accessType = "get") {
576
+ if (typeof obj !== "object" && typeof obj !== "function") {
577
+ throw new Error(
578
+ "Cannot spyOn on a primitive value; " + this._typeOf(obj) + " given"
579
+ );
580
+ }
581
+ if (!obj) {
582
+ throw new Error(
583
+ "spyOn could not find an object to spy upon for " + propertyName
584
+ );
585
+ }
586
+ if (!propertyName) {
587
+ throw new Error("No property name supplied");
588
+ }
589
+ let descriptor = Object.getOwnPropertyDescriptor(obj, propertyName);
590
+ let proto = Object.getPrototypeOf(obj);
591
+ while (!descriptor && proto !== null) {
592
+ descriptor = Object.getOwnPropertyDescriptor(proto, propertyName);
593
+ proto = Object.getPrototypeOf(proto);
594
+ }
595
+ if (!descriptor) {
596
+ throw new Error(propertyName + " property does not exist");
597
+ }
598
+ if (!descriptor.configurable) {
599
+ throw new Error(propertyName + " is not declared configurable");
600
+ }
601
+ if (!descriptor[accessType]) {
602
+ throw new Error(
603
+ "Property " + propertyName + " does not have access type " + accessType
604
+ );
605
+ }
606
+ const original = descriptor[accessType];
607
+ if (!this.isMockFunction(original)) {
608
+ if (typeof original !== "function") {
609
+ throw new Error(
610
+ "Cannot spy the " + propertyName + " property because it is not a function; " + this._typeOf(original) + " given instead"
611
+ );
612
+ }
613
+ descriptor[accessType] = this._makeComponent(
614
+ {
615
+ type: "function"
616
+ },
617
+ () => {
618
+ descriptor[accessType] = original;
619
+ Object.defineProperty(obj, propertyName, descriptor);
620
+ }
621
+ );
622
+ descriptor[accessType].mockImplementation(function() {
623
+ return original.apply(this, arguments);
624
+ });
625
+ }
626
+ Object.defineProperty(obj, propertyName, descriptor);
627
+ return descriptor[accessType];
628
+ }
629
+ clearAllMocks() {
630
+ this._mockState = /* @__PURE__ */ new WeakMap();
631
+ }
632
+ resetAllMocks() {
633
+ this._mockConfigRegistry = /* @__PURE__ */ new WeakMap();
634
+ this._mockState = /* @__PURE__ */ new WeakMap();
635
+ }
636
+ restoreAllMocks() {
637
+ this._spyState.forEach((restore) => restore());
638
+ this._spyState = /* @__PURE__ */ new Set();
639
+ }
640
+ _typeOf(value) {
641
+ return value == null ? "" + value : typeof value;
642
+ }
643
+ // the typings test helper
644
+ mocked(item, _deep = false) {
645
+ return item;
646
+ }
647
+ }
648
+ var ModuleMocker_1 = build.ModuleMocker = ModuleMocker;
649
+ const JestMock$1 = new ModuleMocker(commonjsGlobal);
650
+ const fn$1 = JestMock$1.fn.bind(JestMock$1);
651
+ build.fn = fn$1;
652
+ const spyOn = JestMock$1.spyOn.bind(JestMock$1);
653
+ build.spyOn = spyOn;
654
+ const mocked = JestMock$1.mocked.bind(JestMock$1);
655
+ build.mocked = mocked;
656
+ const { addons } = __STORYBOOK_MODULE_PREVIEW_API__;
657
+ const { global } = __STORYBOOK_MODULE_GLOBAL__;
658
+ const { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED, SET_CURRENT_STORY, IGNORED_EXCEPTION } = __STORYBOOK_MODULE_CORE_EVENTS__;
659
+ const { once, logger } = __STORYBOOK_MODULE_CLIENT_LOGGER__;
660
+ var __require = ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, { get: (a, b) => (typeof require < "u" ? require : a)[b] }) : x)(function(x) {
661
+ if (typeof require < "u")
662
+ return require.apply(this, arguments);
663
+ throw Error('Dynamic require of "' + x + '" is not supported');
664
+ });
665
+ var __create = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __require2 = ((x) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(x, { get: (a, b) => (typeof __require < "u" ? __require : a)[b] }) : x)(function(x) {
666
+ if (typeof __require < "u")
667
+ return __require.apply(this, arguments);
668
+ throw Error('Dynamic require of "' + x + '" is not supported');
669
+ }), __commonJS = (cb, mod) => function() {
670
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
671
+ }, __copyProps = (to, from, except, desc) => {
672
+ if (from && typeof from == "object" || typeof from == "function")
673
+ for (let key of __getOwnPropNames(from))
674
+ !__hasOwnProp.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
675
+ return to;
676
+ }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(__defProp2(target, "default", { value: mod, enumerable: true }), mod)), require_ansi_styles = __commonJS({ "../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module) {
677
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
678
+ function assembleStyles() {
679
+ let codes = /* @__PURE__ */ new Map(), styles = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
680
+ styles.color.gray = styles.color.blackBright, styles.bgColor.bgGray = styles.bgColor.bgBlackBright, styles.color.grey = styles.color.blackBright, styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
681
+ for (let [groupName, group] of Object.entries(styles)) {
682
+ for (let [styleName, style] of Object.entries(group))
683
+ styles[styleName] = { open: `\x1B[${style[0]}m`, close: `\x1B[${style[1]}m` }, group[styleName] = styles[styleName], codes.set(style[0], style[1]);
684
+ Object.defineProperty(styles, groupName, { value: group, enumerable: false });
685
+ }
686
+ return Object.defineProperty(styles, "codes", { value: codes, enumerable: false }), styles.color.close = "\x1B[39m", styles.bgColor.close = "\x1B[49m", styles.color.ansi256 = wrapAnsi256(), styles.color.ansi16m = wrapAnsi16m(), styles.bgColor.ansi256 = wrapAnsi256(10), styles.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles, { rgbToAnsi256: { value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5), enumerable: false }, hexToRgb: { value: (hex) => {
687
+ let matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
688
+ if (!matches)
689
+ return [0, 0, 0];
690
+ let { colorString } = matches.groups;
691
+ colorString.length === 3 && (colorString = colorString.split("").map((character) => character + character).join(""));
692
+ let integer = Number.parseInt(colorString, 16);
693
+ return [integer >> 16 & 255, integer >> 8 & 255, integer & 255];
694
+ }, enumerable: false }, hexToAnsi256: { value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), enumerable: false } }), styles;
695
+ }
696
+ Object.defineProperty(module, "exports", { enumerable: true, get: assembleStyles });
697
+ } }), require_collections = __commonJS({ "../../node_modules/pretty-format/build/collections.js"(exports) {
698
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.printIteratorEntries = printIteratorEntries, exports.printIteratorValues = printIteratorValues, exports.printListItems = printListItems, exports.printObjectProperties = printObjectProperties;
699
+ var getKeysOfEnumerableProperties = (object, compareKeys) => {
700
+ let rawKeys = Object.keys(object), keys = compareKeys !== null ? rawKeys.sort(compareKeys) : rawKeys;
701
+ return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object).forEach((symbol) => {
702
+ Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys.push(symbol);
703
+ }), keys;
704
+ };
705
+ function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
706
+ let result = "", width = 0, current = iterator.next();
707
+ if (!current.done) {
708
+ result += config.spacingOuter;
709
+ let indentationNext = indentation + config.indent;
710
+ for (; !current.done; ) {
711
+ if (result += indentationNext, width++ === config.maxWidth) {
712
+ result += "…";
713
+ break;
714
+ }
715
+ let name = printer(current.value[0], config, indentationNext, depth, refs), value = printer(current.value[1], config, indentationNext, depth, refs);
716
+ result += name + separator + value, current = iterator.next(), current.done ? config.min || (result += ",") : result += `,${config.spacingInner}`;
717
+ }
718
+ result += config.spacingOuter + indentation;
719
+ }
720
+ return result;
721
+ }
722
+ function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
723
+ let result = "", width = 0, current = iterator.next();
724
+ if (!current.done) {
725
+ result += config.spacingOuter;
726
+ let indentationNext = indentation + config.indent;
727
+ for (; !current.done; ) {
728
+ if (result += indentationNext, width++ === config.maxWidth) {
729
+ result += "…";
730
+ break;
731
+ }
732
+ result += printer(current.value, config, indentationNext, depth, refs), current = iterator.next(), current.done ? config.min || (result += ",") : result += `,${config.spacingInner}`;
733
+ }
734
+ result += config.spacingOuter + indentation;
735
+ }
736
+ return result;
737
+ }
738
+ function printListItems(list, config, indentation, depth, refs, printer) {
739
+ let result = "";
740
+ if (list.length) {
741
+ result += config.spacingOuter;
742
+ let indentationNext = indentation + config.indent;
743
+ for (let i = 0; i < list.length; i++) {
744
+ if (result += indentationNext, i === config.maxWidth) {
745
+ result += "…";
746
+ break;
747
+ }
748
+ i in list && (result += printer(list[i], config, indentationNext, depth, refs)), i < list.length - 1 ? result += `,${config.spacingInner}` : config.min || (result += ",");
749
+ }
750
+ result += config.spacingOuter + indentation;
751
+ }
752
+ return result;
753
+ }
754
+ function printObjectProperties(val, config, indentation, depth, refs, printer) {
755
+ let result = "", keys = getKeysOfEnumerableProperties(val, config.compareKeys);
756
+ if (keys.length) {
757
+ result += config.spacingOuter;
758
+ let indentationNext = indentation + config.indent;
759
+ for (let i = 0; i < keys.length; i++) {
760
+ let key = keys[i], name = printer(key, config, indentationNext, depth, refs), value = printer(val[key], config, indentationNext, depth, refs);
761
+ result += `${indentationNext + name}: ${value}`, i < keys.length - 1 ? result += `,${config.spacingInner}` : config.min || (result += ",");
762
+ }
763
+ result += config.spacingOuter + indentation;
764
+ }
765
+ return result;
766
+ }
767
+ } }), require_AsymmetricMatcher = __commonJS({ "../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
768
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
769
+ var _collections = require_collections(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, asymmetricMatcher = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621, SPACE = " ", serialize = (val, config, indentation, depth, refs, printer) => {
770
+ let stringedValue = val.toString();
771
+ if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
772
+ return ++depth > config.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
773
+ if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
774
+ return ++depth > config.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
775
+ if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
776
+ return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
777
+ if (typeof val.toAsymmetricMatcher != "function")
778
+ throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
779
+ return val.toAsymmetricMatcher();
780
+ };
781
+ exports.serialize = serialize;
782
+ var test = (val) => val && val.$$typeof === asymmetricMatcher;
783
+ exports.test = test;
784
+ var plugin = { serialize, test }, _default = plugin;
785
+ exports.default = _default;
786
+ } }), require_DOMCollection = __commonJS({ "../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
787
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
788
+ var _collections = require_collections(), SPACE = " ", OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"], ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/, testName = (name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name), test = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
789
+ exports.test = test;
790
+ var isNamedNodeMap = (collection) => collection.constructor.name === "NamedNodeMap", serialize = (collection, config, indentation, depth, refs, printer) => {
791
+ let name = collection.constructor.name;
792
+ return ++depth > config.maxDepth ? `[${name}]` : (config.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
793
+ };
794
+ exports.serialize = serialize;
795
+ var plugin = { serialize, test }, _default = plugin;
796
+ exports.default = _default;
797
+ } }), require_escapeHTML = __commonJS({ "../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
798
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.default = escapeHTML;
799
+ function escapeHTML(str) {
800
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
801
+ }
802
+ } }), require_markup = __commonJS({ "../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
803
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
804
+ var _escapeHTML = _interopRequireDefault(require_escapeHTML());
805
+ function _interopRequireDefault(obj) {
806
+ return obj && obj.__esModule ? obj : { default: obj };
807
+ }
808
+ var printProps = (keys, props, config, indentation, depth, refs, printer) => {
809
+ let indentationNext = indentation + config.indent, colors = config.colors;
810
+ return keys.map((key) => {
811
+ let value = props[key], printed = printer(value, config, indentationNext, depth, refs);
812
+ return typeof value != "string" && (printed.indexOf(`
813
+ `) !== -1 && (printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation), printed = `{${printed}}`), `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
814
+ }).join("");
815
+ };
816
+ exports.printProps = printProps;
817
+ var printChildren = (children, config, indentation, depth, refs, printer) => children.map((child) => config.spacingOuter + indentation + (typeof child == "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join("");
818
+ exports.printChildren = printChildren;
819
+ var printText = (text, config) => {
820
+ let contentColor = config.colors.content;
821
+ return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
822
+ };
823
+ exports.printText = printText;
824
+ var printComment = (comment, config) => {
825
+ let commentColor = config.colors.comment;
826
+ return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
827
+ };
828
+ exports.printComment = printComment;
829
+ var printElement = (type, printedProps, printedChildren, config, indentation) => {
830
+ let tagColor = config.colors.tag;
831
+ return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
832
+ };
833
+ exports.printElement = printElement;
834
+ var printElementAsLeaf = (type, config) => {
835
+ let tagColor = config.colors.tag;
836
+ return `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;
837
+ };
838
+ exports.printElementAsLeaf = printElementAsLeaf;
839
+ } }), require_DOMElement = __commonJS({ "../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
840
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
841
+ var _markup = require_markup(), ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/, testHasAttribute = (val) => {
842
+ try {
843
+ return typeof val.hasAttribute == "function" && val.hasAttribute("is");
844
+ } catch {
845
+ return false;
846
+ }
847
+ }, testNode = (val) => {
848
+ let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val);
849
+ return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
850
+ }, test = (val) => {
851
+ var _a;
852
+ return ((_a = val == null ? void 0 : val.constructor) == null ? void 0 : _a.name) && testNode(val);
853
+ };
854
+ exports.test = test;
855
+ function nodeIsText(node) {
856
+ return node.nodeType === TEXT_NODE;
857
+ }
858
+ function nodeIsComment(node) {
859
+ return node.nodeType === COMMENT_NODE;
860
+ }
861
+ function nodeIsFragment(node) {
862
+ return node.nodeType === FRAGMENT_NODE;
863
+ }
864
+ var serialize = (node, config, indentation, depth, refs, printer) => {
865
+ if (nodeIsText(node))
866
+ return (0, _markup.printText)(node.data, config);
867
+ if (nodeIsComment(node))
868
+ return (0, _markup.printComment)(node.data, config);
869
+ let type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
870
+ return ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(type, config) : (0, _markup.printElement)(type, (0, _markup.printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
871
+ };
872
+ exports.serialize = serialize;
873
+ var plugin = { serialize, test }, _default = plugin;
874
+ exports.default = _default;
875
+ } }), require_Immutable = __commonJS({ "../../node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
876
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
877
+ var _collections = require_collections(), IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "…", printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`;
878
+ function getRecordEntries(val) {
879
+ let i = 0;
880
+ return { next() {
881
+ if (i < val._keys.length) {
882
+ let key = val._keys[i++];
883
+ return { done: false, value: [key, val.get(key)] };
884
+ }
885
+ return { done: true, value: void 0 };
886
+ } };
887
+ }
888
+ var printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
889
+ let name = getImmutableName(val._name || "Record");
890
+ return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
891
+ }, printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
892
+ let name = getImmutableName("Seq");
893
+ return ++depth > config.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL] ? `${name + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}` : `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
894
+ }, printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`, serialize = (val, config, indentation, depth, refs, printer) => val[IS_MAP_SENTINEL] ? printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map") : val[IS_LIST_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, "List") : val[IS_SET_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set") : val[IS_STACK_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, "Stack") : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config, indentation, depth, refs, printer) : printImmutableRecord(val, config, indentation, depth, refs, printer);
895
+ exports.serialize = serialize;
896
+ var test = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);
897
+ exports.test = test;
898
+ var plugin = { serialize, test }, _default = plugin;
899
+ exports.default = _default;
900
+ } }), require_react_is_development = __commonJS({ "../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(exports) {
901
+ (function() {
902
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), enableScopeAPI = false, enableCacheElement = false, enableTransitionTracing = false, enableLegacyHidden = false, enableDebugTracing = false, REACT_MODULE_REFERENCE;
903
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
904
+ function isValidElementType(type) {
905
+ return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0));
906
+ }
907
+ function typeOf(object) {
908
+ if (typeof object == "object" && object !== null) {
909
+ var $$typeof = object.$$typeof;
910
+ switch ($$typeof) {
911
+ case REACT_ELEMENT_TYPE:
912
+ var type = object.type;
913
+ switch (type) {
914
+ case REACT_FRAGMENT_TYPE:
915
+ case REACT_PROFILER_TYPE:
916
+ case REACT_STRICT_MODE_TYPE:
917
+ case REACT_SUSPENSE_TYPE:
918
+ case REACT_SUSPENSE_LIST_TYPE:
919
+ return type;
920
+ default:
921
+ var $$typeofType = type && type.$$typeof;
922
+ switch ($$typeofType) {
923
+ case REACT_SERVER_CONTEXT_TYPE:
924
+ case REACT_CONTEXT_TYPE:
925
+ case REACT_FORWARD_REF_TYPE:
926
+ case REACT_LAZY_TYPE:
927
+ case REACT_MEMO_TYPE:
928
+ case REACT_PROVIDER_TYPE:
929
+ return $$typeofType;
930
+ default:
931
+ return $$typeof;
932
+ }
933
+ }
934
+ case REACT_PORTAL_TYPE:
935
+ return $$typeof;
936
+ }
937
+ }
938
+ }
939
+ var ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element2 = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, SuspenseList = REACT_SUSPENSE_LIST_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = false, hasWarnedAboutDeprecatedIsConcurrentMode = false;
940
+ function isAsyncMode(object) {
941
+ return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), false;
942
+ }
943
+ function isConcurrentMode(object) {
944
+ return hasWarnedAboutDeprecatedIsConcurrentMode || (hasWarnedAboutDeprecatedIsConcurrentMode = true, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), false;
945
+ }
946
+ function isContextConsumer(object) {
947
+ return typeOf(object) === REACT_CONTEXT_TYPE;
948
+ }
949
+ function isContextProvider(object) {
950
+ return typeOf(object) === REACT_PROVIDER_TYPE;
951
+ }
952
+ function isElement(object) {
953
+ return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
954
+ }
955
+ function isForwardRef(object) {
956
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
957
+ }
958
+ function isFragment(object) {
959
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
960
+ }
961
+ function isLazy(object) {
962
+ return typeOf(object) === REACT_LAZY_TYPE;
963
+ }
964
+ function isMemo(object) {
965
+ return typeOf(object) === REACT_MEMO_TYPE;
966
+ }
967
+ function isPortal(object) {
968
+ return typeOf(object) === REACT_PORTAL_TYPE;
969
+ }
970
+ function isProfiler(object) {
971
+ return typeOf(object) === REACT_PROFILER_TYPE;
972
+ }
973
+ function isStrictMode(object) {
974
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
975
+ }
976
+ function isSuspense(object) {
977
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
978
+ }
979
+ function isSuspenseList(object) {
980
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
981
+ }
982
+ exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element2, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.SuspenseList = SuspenseList, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isSuspenseList = isSuspenseList, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
983
+ })();
984
+ } }), require_react_is = __commonJS({ "../../node_modules/pretty-format/node_modules/react-is/index.js"(exports, module) {
985
+ module.exports = require_react_is_development();
986
+ } }), require_ReactElement = __commonJS({ "../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
987
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
988
+ var ReactIs = _interopRequireWildcard(require_react_is()), _markup = require_markup();
989
+ function _getRequireWildcardCache(nodeInterop) {
990
+ if (typeof WeakMap != "function")
991
+ return null;
992
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
993
+ return (_getRequireWildcardCache = function(nodeInterop2) {
994
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
995
+ })(nodeInterop);
996
+ }
997
+ function _interopRequireWildcard(obj, nodeInterop) {
998
+ if (obj && obj.__esModule)
999
+ return obj;
1000
+ if (obj === null || typeof obj != "object" && typeof obj != "function")
1001
+ return { default: obj };
1002
+ var cache = _getRequireWildcardCache(nodeInterop);
1003
+ if (cache && cache.has(obj))
1004
+ return cache.get(obj);
1005
+ var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
1006
+ for (var key in obj)
1007
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
1008
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
1009
+ desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
1010
+ }
1011
+ return newObj.default = obj, cache && cache.set(obj, newObj), newObj;
1012
+ }
1013
+ var getChildren = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => {
1014
+ getChildren(item, children);
1015
+ }) : arg != null && arg !== false && children.push(arg), children), getType3 = (element) => {
1016
+ let type = element.type;
1017
+ if (typeof type == "string")
1018
+ return type;
1019
+ if (typeof type == "function")
1020
+ return type.displayName || type.name || "Unknown";
1021
+ if (ReactIs.isFragment(element))
1022
+ return "React.Fragment";
1023
+ if (ReactIs.isSuspense(element))
1024
+ return "React.Suspense";
1025
+ if (typeof type == "object" && type !== null) {
1026
+ if (ReactIs.isContextProvider(element))
1027
+ return "Context.Provider";
1028
+ if (ReactIs.isContextConsumer(element))
1029
+ return "Context.Consumer";
1030
+ if (ReactIs.isForwardRef(element)) {
1031
+ if (type.displayName)
1032
+ return type.displayName;
1033
+ let functionName = type.render.displayName || type.render.name || "";
1034
+ return functionName !== "" ? `ForwardRef(${functionName})` : "ForwardRef";
1035
+ }
1036
+ if (ReactIs.isMemo(element)) {
1037
+ let functionName = type.displayName || type.type.displayName || type.type.name || "";
1038
+ return functionName !== "" ? `Memo(${functionName})` : "Memo";
1039
+ }
1040
+ }
1041
+ return "UNDEFINED";
1042
+ }, getPropKeys = (element) => {
1043
+ let { props } = element;
1044
+ return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
1045
+ }, serialize = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType3(element), config) : (0, _markup.printElement)(getType3(element), (0, _markup.printProps)(getPropKeys(element), element.props, config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
1046
+ exports.serialize = serialize;
1047
+ var test = (val) => val != null && ReactIs.isElement(val);
1048
+ exports.test = test;
1049
+ var plugin = { serialize, test }, _default = plugin;
1050
+ exports.default = _default;
1051
+ } }), require_ReactTestComponent = __commonJS({ "../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1052
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.test = exports.serialize = exports.default = void 0;
1053
+ var _markup = require_markup(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, testSymbol = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487, getPropKeys = (object) => {
1054
+ let { props } = object;
1055
+ return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
1056
+ }, serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config) : (0, _markup.printElement)(object.type, object.props ? (0, _markup.printProps)(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? (0, _markup.printChildren)(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation);
1057
+ exports.serialize = serialize;
1058
+ var test = (val) => val && val.$$typeof === testSymbol;
1059
+ exports.test = test;
1060
+ var plugin = { serialize, test }, _default = plugin;
1061
+ exports.default = _default;
1062
+ } }), require_build = __commonJS({ "../../node_modules/pretty-format/build/index.js"(exports) {
1063
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.default = exports.DEFAULT_OPTIONS = void 0, exports.format = format3, exports.plugins = void 0;
1064
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault(require_AsymmetricMatcher()), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault(require_ReactTestComponent());
1065
+ function _interopRequireDefault(obj) {
1066
+ return obj && obj.__esModule ? obj : { default: obj };
1067
+ }
1068
+ var toString = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString, getConstructorName = (val) => typeof val.constructor == "function" && val.constructor.name || "Object", isWindow = (val) => typeof window < "u" && val === window, SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/gi, PrettyFormatPluginError = class extends Error {
1069
+ constructor(message, stack) {
1070
+ super(message), this.stack = stack, this.name = this.constructor.name;
1071
+ }
1072
+ };
1073
+ function isToStringedArrayType(toStringed) {
1074
+ return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
1075
+ }
1076
+ function printNumber(val) {
1077
+ return Object.is(val, -0) ? "-0" : String(val);
1078
+ }
1079
+ function printBigInt(val) {
1080
+ return `${val}n`;
1081
+ }
1082
+ function printFunction(val, printFunctionName) {
1083
+ return printFunctionName ? `[Function ${val.name || "anonymous"}]` : "[Function]";
1084
+ }
1085
+ function printSymbol(val) {
1086
+ return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
1087
+ }
1088
+ function printError(val) {
1089
+ return `[${errorToString.call(val)}]`;
1090
+ }
1091
+ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
1092
+ if (val === true || val === false)
1093
+ return `${val}`;
1094
+ if (val === void 0)
1095
+ return "undefined";
1096
+ if (val === null)
1097
+ return "null";
1098
+ let typeOf = typeof val;
1099
+ if (typeOf === "number")
1100
+ return printNumber(val);
1101
+ if (typeOf === "bigint")
1102
+ return printBigInt(val);
1103
+ if (typeOf === "string")
1104
+ return escapeString ? `"${val.replace(/"|\\/g, "\\$&")}"` : `"${val}"`;
1105
+ if (typeOf === "function")
1106
+ return printFunction(val, printFunctionName);
1107
+ if (typeOf === "symbol")
1108
+ return printSymbol(val);
1109
+ let toStringed = toString.call(val);
1110
+ return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol(val) : toStringed === "[object Date]" ? isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
1111
+ }
1112
+ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
1113
+ if (refs.indexOf(val) !== -1)
1114
+ return "[Circular]";
1115
+ refs = refs.slice(), refs.push(val);
1116
+ let hitMaxDepth = ++depth > config.maxDepth, min = config.min;
1117
+ if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
1118
+ return printer(val.toJSON(), config, indentation, depth, refs, true);
1119
+ let toStringed = toString.call(val);
1120
+ return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min || !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min || !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
1121
+ }
1122
+ function isNewPlugin(plugin) {
1123
+ return plugin.serialize != null;
1124
+ }
1125
+ function printPlugin(plugin, val, config, indentation, depth, refs) {
1126
+ let printed;
1127
+ try {
1128
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
1129
+ let indentationNext = indentation + config.indent;
1130
+ return indentationNext + str.replace(NEWLINE_REGEXP, `
1131
+ ${indentationNext}`);
1132
+ }, { edgeSpacing: config.spacingOuter, min: config.min, spacing: config.spacingInner }, config.colors);
1133
+ } catch (error) {
1134
+ throw new PrettyFormatPluginError(error.message, error.stack);
1135
+ }
1136
+ if (typeof printed != "string")
1137
+ throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
1138
+ return printed;
1139
+ }
1140
+ function findPlugin(plugins4, val) {
1141
+ for (let p = 0; p < plugins4.length; p++)
1142
+ try {
1143
+ if (plugins4[p].test(val))
1144
+ return plugins4[p];
1145
+ } catch (error) {
1146
+ throw new PrettyFormatPluginError(error.message, error.stack);
1147
+ }
1148
+ return null;
1149
+ }
1150
+ function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
1151
+ let plugin = findPlugin(config.plugins, val);
1152
+ if (plugin !== null)
1153
+ return printPlugin(plugin, val, config, indentation, depth, refs);
1154
+ let basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
1155
+ return basicResult !== null ? basicResult : printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
1156
+ }
1157
+ var DEFAULT_THEME = { comment: "gray", content: "reset", prop: "yellow", tag: "cyan", value: "green" }, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), toOptionsSubtype = (options) => options, DEFAULT_OPTIONS = toOptionsSubtype({ callToJSON: true, compareKeys: void 0, escapeRegex: false, escapeString: true, highlight: false, indent: 2, maxDepth: 1 / 0, maxWidth: 1 / 0, min: false, plugins: [], printBasicPrototype: true, printFunctionName: true, theme: DEFAULT_THEME });
1158
+ exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
1159
+ function validateOptions(options) {
1160
+ if (Object.keys(options).forEach((key) => {
1161
+ if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key))
1162
+ throw new Error(`pretty-format: Unknown option "${key}".`);
1163
+ }), options.min && options.indent !== void 0 && options.indent !== 0)
1164
+ throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
1165
+ if (options.theme !== void 0) {
1166
+ if (options.theme === null)
1167
+ throw new Error('pretty-format: Option "theme" must not be null.');
1168
+ if (typeof options.theme != "object")
1169
+ throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
1170
+ }
1171
+ }
1172
+ var getColorsHighlight = (options) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
1173
+ let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME[key], color = value && _ansiStyles.default[value];
1174
+ if (color && typeof color.close == "string" && typeof color.open == "string")
1175
+ colors[key] = color;
1176
+ else
1177
+ throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
1178
+ return colors;
1179
+ }, /* @__PURE__ */ Object.create(null)), getColorsEmpty = () => DEFAULT_THEME_KEYS.reduce((colors, key) => (colors[key] = { close: "", open: "" }, colors), /* @__PURE__ */ Object.create(null)), getPrintFunctionName = (options) => (options == null ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName, getEscapeRegex = (options) => (options == null ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex, getEscapeString = (options) => (options == null ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString, getConfig = (options) => ({ callToJSON: (options == null ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON, colors: (options == null ? void 0 : options.highlight) ? getColorsHighlight(options) : getColorsEmpty(), compareKeys: typeof (options == null ? void 0 : options.compareKeys) == "function" || (options == null ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys, escapeRegex: getEscapeRegex(options), escapeString: getEscapeString(options), indent: (options == null ? void 0 : options.min) ? "" : createIndent((options == null ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent), maxDepth: (options == null ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth, maxWidth: (options == null ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth, min: (options == null ? void 0 : options.min) ?? DEFAULT_OPTIONS.min, plugins: (options == null ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins, printBasicPrototype: (options == null ? void 0 : options.printBasicPrototype) ?? true, printFunctionName: getPrintFunctionName(options), spacingInner: (options == null ? void 0 : options.min) ? " " : `
1180
+ `, spacingOuter: (options == null ? void 0 : options.min) ? "" : `
1181
+ ` });
1182
+ function createIndent(indent) {
1183
+ return new Array(indent + 1).join(" ");
1184
+ }
1185
+ function format3(val, options) {
1186
+ if (options && (validateOptions(options), options.plugins)) {
1187
+ let plugin = findPlugin(options.plugins, val);
1188
+ if (plugin !== null)
1189
+ return printPlugin(plugin, val, getConfig(options), "", 0, []);
1190
+ }
1191
+ let basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
1192
+ return basicResult !== null ? basicResult : printComplexValue(val, getConfig(options), "", 0, []);
1193
+ }
1194
+ var plugins3 = { AsymmetricMatcher: _AsymmetricMatcher.default, DOMCollection: _DOMCollection.default, DOMElement: _DOMElement.default, Immutable: _Immutable.default, ReactElement: _ReactElement.default, ReactTestComponent: _ReactTestComponent.default };
1195
+ exports.plugins = plugins3;
1196
+ var _default = format3;
1197
+ exports.default = _default;
1198
+ } }), require_build2 = __commonJS({ "../../node_modules/diff-sequences/build/index.js"(exports) {
1199
+ Object.defineProperty(exports, "__esModule", { value: true }), exports.default = diffSequence;
1200
+ var pkg = "diff-sequences", NOT_YET_SET = 0, countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {
1201
+ let nCommon = 0;
1202
+ for (; aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex); )
1203
+ aIndex += 1, bIndex += 1, nCommon += 1;
1204
+ return nCommon;
1205
+ }, countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => {
1206
+ let nCommon = 0;
1207
+ for (; aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex); )
1208
+ aIndex -= 1, bIndex -= 1, nCommon += 1;
1209
+ return nCommon;
1210
+ }, extendPathsF = (d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => {
1211
+ let iF = 0, kF = -d, aFirst = aIndexesF[iF], aIndexPrev1 = aFirst;
1212
+ aIndexesF[iF] += countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);
1213
+ let nF = d < iMaxF ? d : iMaxF;
1214
+ for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {
1215
+ if (iF !== d && aIndexPrev1 < aIndexesF[iF])
1216
+ aFirst = aIndexesF[iF];
1217
+ else if (aFirst = aIndexPrev1 + 1, aEnd <= aFirst)
1218
+ return iF - 1;
1219
+ aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aFirst + countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);
1220
+ }
1221
+ return iMaxF;
1222
+ }, extendPathsR = (d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => {
1223
+ let iR = 0, kR = d, aFirst = aIndexesR[iR], aIndexPrev1 = aFirst;
1224
+ aIndexesR[iR] -= countCommonItemsR(aStart, aFirst - 1, bStart, bR + aFirst - kR - 1, isCommon);
1225
+ let nR = d < iMaxR ? d : iMaxR;
1226
+ for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {
1227
+ if (iR !== d && aIndexesR[iR] < aIndexPrev1)
1228
+ aFirst = aIndexesR[iR];
1229
+ else if (aFirst = aIndexPrev1 - 1, aFirst < aStart)
1230
+ return iR - 1;
1231
+ aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aFirst - countCommonItemsR(aStart, aFirst - 1, bStart, bR + aFirst - kR - 1, isCommon);
1232
+ }
1233
+ return iMaxR;
1234
+ }, extendOverlappablePathsF = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
1235
+ let bF = bStart - aStart, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapF = -baDeltaLength - (d - 1), kMaxOverlapF = -baDeltaLength + (d - 1), aIndexPrev1 = NOT_YET_SET, nF = d < iMaxF ? d : iMaxF;
1236
+ for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {
1237
+ let insert = iF === 0 || iF !== d && aIndexPrev1 < aIndexesF[iF], aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev + 1, bFirst = bF + aFirst - kF, nCommonF = countCommonItemsF(aFirst + 1, aEnd, bFirst + 1, bEnd, isCommon), aLast = aFirst + nCommonF;
1238
+ if (aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aLast, kMinOverlapF <= kF && kF <= kMaxOverlapF) {
1239
+ let iR = (d - 1 - (kF + baDeltaLength)) / 2;
1240
+ if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {
1241
+ let bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1), nCommonR = countCommonItemsR(aStart, aLastPrev, bStart, bLastPrev, isCommon), aIndexPrevFirst = aLastPrev - nCommonR, bIndexPrevFirst = bLastPrev - nCommonR, aEndPreceding = aIndexPrevFirst + 1, bEndPreceding = bIndexPrevFirst + 1;
1242
+ division.nChangePreceding = d - 1, d - 1 === aEndPreceding + bEndPreceding - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aEndPreceding, division.bEndPreceding = bEndPreceding), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aEndPreceding, division.bCommonPreceding = bEndPreceding), division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aFirst + 1, division.bCommonFollowing = bFirst + 1);
1243
+ let aStartFollowing = aLast + 1, bStartFollowing = bFirst + nCommonF + 1;
1244
+ return division.nChangeFollowing = d - 1, d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing), true;
1245
+ }
1246
+ }
1247
+ }
1248
+ return false;
1249
+ }, extendOverlappablePathsR = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
1250
+ let bR = bEnd - aEnd, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapR = baDeltaLength - d, kMaxOverlapR = baDeltaLength + d, aIndexPrev1 = NOT_YET_SET, nR = d < iMaxR ? d : iMaxR;
1251
+ for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {
1252
+ let insert = iR === 0 || iR !== d && aIndexesR[iR] < aIndexPrev1, aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev - 1, bFirst = bR + aFirst - kR, nCommonR = countCommonItemsR(aStart, aFirst - 1, bStart, bFirst - 1, isCommon), aLast = aFirst - nCommonR;
1253
+ if (aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aLast, kMinOverlapR <= kR && kR <= kMaxOverlapR) {
1254
+ let iF = (d + (kR - baDeltaLength)) / 2;
1255
+ if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {
1256
+ let bLast = bFirst - nCommonR;
1257
+ if (division.nChangePreceding = d, d === aLast + bLast - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aLast, division.bEndPreceding = bLast), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aLast, division.bCommonPreceding = bLast), division.nChangeFollowing = d - 1, d === 1)
1258
+ division.nCommonFollowing = 0, division.aStartFollowing = aEnd, division.bStartFollowing = bEnd;
1259
+ else {
1260
+ let bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1), nCommonF = countCommonItemsF(aLastPrev, aEnd, bLastPrev, bEnd, isCommon);
1261
+ division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aLastPrev, division.bCommonFollowing = bLastPrev);
1262
+ let aStartFollowing = aLastPrev + nCommonF, bStartFollowing = bLastPrev + nCommonF;
1263
+ d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing);
1264
+ }
1265
+ return true;
1266
+ }
1267
+ }
1268
+ }
1269
+ return false;
1270
+ }, divide = (nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division) => {
1271
+ let bF = bStart - aStart, bR = bEnd - aEnd, aLength = aEnd - aStart, bLength = bEnd - bStart, baDeltaLength = bLength - aLength, iMaxF = aLength, iMaxR = aLength;
1272
+ if (aIndexesF[0] = aStart - 1, aIndexesR[0] = aEnd, baDeltaLength % 2 === 0) {
1273
+ let dMin = (nChange || baDeltaLength) / 2, dMax = (aLength + bLength) / 2;
1274
+ for (let d = 1; d <= dMax; d += 1)
1275
+ if (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d < dMin)
1276
+ iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
1277
+ else if (extendOverlappablePathsR(d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division))
1278
+ return;
1279
+ } else {
1280
+ let dMin = ((nChange || baDeltaLength) + 1) / 2, dMax = (aLength + bLength + 1) / 2, d = 1;
1281
+ for (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d += 1; d <= dMax; d += 1)
1282
+ if (iMaxR = extendPathsR(d - 1, aStart, bStart, bR, isCommon, aIndexesR, iMaxR), d < dMin)
1283
+ iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
1284
+ else if (extendOverlappablePathsF(d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division))
1285
+ return;
1286
+ }
1287
+ throw new Error(`${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`);
1288
+ }, findSubsequences = (nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division) => {
1289
+ if (bEnd - bStart < aEnd - aStart) {
1290
+ if (transposed = !transposed, transposed && callbacks.length === 1) {
1291
+ let { foundSubsequence: foundSubsequence2, isCommon: isCommon2 } = callbacks[0];
1292
+ callbacks[1] = { foundSubsequence: (nCommon, bCommon, aCommon) => {
1293
+ foundSubsequence2(nCommon, aCommon, bCommon);
1294
+ }, isCommon: (bIndex, aIndex) => isCommon2(aIndex, bIndex) };
1295
+ }
1296
+ let tStart = aStart, tEnd = aEnd;
1297
+ aStart = bStart, aEnd = bEnd, bStart = tStart, bEnd = tEnd;
1298
+ }
1299
+ let { foundSubsequence, isCommon } = callbacks[transposed ? 1 : 0];
1300
+ divide(nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division);
1301
+ let { nChangePreceding, aEndPreceding, bEndPreceding, nCommonPreceding, aCommonPreceding, bCommonPreceding, nCommonFollowing, aCommonFollowing, bCommonFollowing, nChangeFollowing, aStartFollowing, bStartFollowing } = division;
1302
+ aStart < aEndPreceding && bStart < bEndPreceding && findSubsequences(nChangePreceding, aStart, aEndPreceding, bStart, bEndPreceding, transposed, callbacks, aIndexesF, aIndexesR, division), nCommonPreceding !== 0 && foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding), nCommonFollowing !== 0 && foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing), aStartFollowing < aEnd && bStartFollowing < bEnd && findSubsequences(nChangeFollowing, aStartFollowing, aEnd, bStartFollowing, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division);
1303
+ }, validateLength = (name, arg) => {
1304
+ if (typeof arg != "number")
1305
+ throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);
1306
+ if (!Number.isSafeInteger(arg))
1307
+ throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);
1308
+ if (arg < 0)
1309
+ throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);
1310
+ }, validateCallback = (name, arg) => {
1311
+ let type = typeof arg;
1312
+ if (type !== "function")
1313
+ throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`);
1314
+ };
1315
+ function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
1316
+ validateLength("aLength", aLength), validateLength("bLength", bLength), validateCallback("isCommon", isCommon), validateCallback("foundSubsequence", foundSubsequence);
1317
+ let nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon);
1318
+ if (nCommonF !== 0 && foundSubsequence(nCommonF, 0, 0), aLength !== nCommonF || bLength !== nCommonF) {
1319
+ let aStart = nCommonF, bStart = nCommonF, nCommonR = countCommonItemsR(aStart, aLength - 1, bStart, bLength - 1, isCommon), aEnd = aLength - nCommonR, bEnd = bLength - nCommonR, nCommonFR = nCommonF + nCommonR;
1320
+ aLength !== nCommonFR && bLength !== nCommonFR && findSubsequences(0, aStart, aEnd, bStart, bEnd, false, [{ foundSubsequence, isCommon }], [NOT_YET_SET], [NOT_YET_SET], { aCommonFollowing: NOT_YET_SET, aCommonPreceding: NOT_YET_SET, aEndPreceding: NOT_YET_SET, aStartFollowing: NOT_YET_SET, bCommonFollowing: NOT_YET_SET, bCommonPreceding: NOT_YET_SET, bEndPreceding: NOT_YET_SET, bStartFollowing: NOT_YET_SET, nChangeFollowing: NOT_YET_SET, nChangePreceding: NOT_YET_SET, nCommonFollowing: NOT_YET_SET, nCommonPreceding: NOT_YET_SET }), nCommonR !== 0 && foundSubsequence(nCommonR, aEnd, bEnd);
1321
+ }
1322
+ }
1323
+ } }), require_loupe = __commonJS({ "../../node_modules/loupe/loupe.js"(exports, module) {
1324
+ (function(global22, factory) {
1325
+ typeof exports == "object" && typeof module < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global22 = typeof globalThis < "u" ? globalThis : global22 || self, factory(global22.loupe = {}));
1326
+ })(exports, function(exports2) {
1327
+ function _typeof(obj) {
1328
+ "@babel/helpers - typeof";
1329
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof = function(obj2) {
1330
+ return typeof obj2;
1331
+ } : _typeof = function(obj2) {
1332
+ return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
1333
+ }, _typeof(obj);
1334
+ }
1335
+ function _slicedToArray(arr, i) {
1336
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1337
+ }
1338
+ function _arrayWithHoles(arr) {
1339
+ if (Array.isArray(arr))
1340
+ return arr;
1341
+ }
1342
+ function _iterableToArrayLimit(arr, i) {
1343
+ if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(arr)))) {
1344
+ var _arr = [], _n = true, _d = false, _e = void 0;
1345
+ try {
1346
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = true)
1347
+ ;
1348
+ } catch (err) {
1349
+ _d = true, _e = err;
1350
+ } finally {
1351
+ try {
1352
+ !_n && _i.return != null && _i.return();
1353
+ } finally {
1354
+ if (_d)
1355
+ throw _e;
1356
+ }
1357
+ }
1358
+ return _arr;
1359
+ }
1360
+ }
1361
+ function _unsupportedIterableToArray(o, minLen) {
1362
+ if (o) {
1363
+ if (typeof o == "string")
1364
+ return _arrayLikeToArray(o, minLen);
1365
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1366
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
1367
+ return Array.from(o);
1368
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1369
+ return _arrayLikeToArray(o, minLen);
1370
+ }
1371
+ }
1372
+ function _arrayLikeToArray(arr, len) {
1373
+ (len == null || len > arr.length) && (len = arr.length);
1374
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
1375
+ arr2[i] = arr[i];
1376
+ return arr2;
1377
+ }
1378
+ function _nonIterableRest() {
1379
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1380
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1381
+ }
1382
+ var ansiColors = { bold: ["1", "22"], dim: ["2", "22"], italic: ["3", "23"], underline: ["4", "24"], inverse: ["7", "27"], hidden: ["8", "28"], strike: ["9", "29"], black: ["30", "39"], red: ["31", "39"], green: ["32", "39"], yellow: ["33", "39"], blue: ["34", "39"], magenta: ["35", "39"], cyan: ["36", "39"], white: ["37", "39"], brightblack: ["30;1", "39"], brightred: ["31;1", "39"], brightgreen: ["32;1", "39"], brightyellow: ["33;1", "39"], brightblue: ["34;1", "39"], brightmagenta: ["35;1", "39"], brightcyan: ["36;1", "39"], brightwhite: ["37;1", "39"], grey: ["90", "39"] }, styles = { special: "cyan", number: "yellow", bigint: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", symbol: "green", date: "magenta", regexp: "red" }, truncator = "…";
1383
+ function colorise(value, styleType) {
1384
+ var color = ansiColors[styles[styleType]] || ansiColors[styleType];
1385
+ return color ? "\x1B[".concat(color[0], "m").concat(String(value), "\x1B[").concat(color[1], "m") : String(value);
1386
+ }
1387
+ function normaliseOptions() {
1388
+ var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref$showHidden = _ref.showHidden, showHidden = _ref$showHidden === void 0 ? false : _ref$showHidden, _ref$depth = _ref.depth, depth = _ref$depth === void 0 ? 2 : _ref$depth, _ref$colors = _ref.colors, colors = _ref$colors === void 0 ? false : _ref$colors, _ref$customInspect = _ref.customInspect, customInspect = _ref$customInspect === void 0 ? true : _ref$customInspect, _ref$showProxy = _ref.showProxy, showProxy = _ref$showProxy === void 0 ? false : _ref$showProxy, _ref$maxArrayLength = _ref.maxArrayLength, maxArrayLength = _ref$maxArrayLength === void 0 ? 1 / 0 : _ref$maxArrayLength, _ref$breakLength = _ref.breakLength, breakLength = _ref$breakLength === void 0 ? 1 / 0 : _ref$breakLength, _ref$seen = _ref.seen, seen2 = _ref$seen === void 0 ? [] : _ref$seen, _ref$truncate = _ref.truncate, truncate2 = _ref$truncate === void 0 ? 1 / 0 : _ref$truncate, _ref$stylize = _ref.stylize, stylize = _ref$stylize === void 0 ? String : _ref$stylize, options = { showHidden: !!showHidden, depth: Number(depth), colors: !!colors, customInspect: !!customInspect, showProxy: !!showProxy, maxArrayLength: Number(maxArrayLength), breakLength: Number(breakLength), truncate: Number(truncate2), seen: seen2, stylize };
1389
+ return options.colors && (options.stylize = colorise), options;
1390
+ }
1391
+ function truncate(string2, length) {
1392
+ var tail = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : truncator;
1393
+ string2 = String(string2);
1394
+ var tailLength = tail.length, stringLength = string2.length;
1395
+ return tailLength > length && stringLength > tailLength ? tail : stringLength > length && stringLength > tailLength ? "".concat(string2.slice(0, length - tailLength)).concat(tail) : string2;
1396
+ }
1397
+ function inspectList(list, options, inspectItem) {
1398
+ var separator = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ", ";
1399
+ inspectItem = inspectItem || options.inspect;
1400
+ var size = list.length;
1401
+ if (size === 0)
1402
+ return "";
1403
+ for (var originalLength = options.truncate, output = "", peek = "", truncated = "", i = 0; i < size; i += 1) {
1404
+ var last = i + 1 === list.length, secondToLast = i + 2 === list.length;
1405
+ truncated = "".concat(truncator, "(").concat(list.length - i, ")");
1406
+ var value = list[i];
1407
+ options.truncate = originalLength - output.length - (last ? 0 : separator.length);
1408
+ var string2 = peek || inspectItem(value, options) + (last ? "" : separator), nextLength = output.length + string2.length, truncatedLength = nextLength + truncated.length;
1409
+ if (last && nextLength > originalLength && output.length + truncated.length <= originalLength || !last && !secondToLast && truncatedLength > originalLength || (peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator), !last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength))
1410
+ break;
1411
+ if (output += string2, !last && !secondToLast && nextLength + peek.length >= originalLength) {
1412
+ truncated = "".concat(truncator, "(").concat(list.length - i - 1, ")");
1413
+ break;
1414
+ }
1415
+ truncated = "";
1416
+ }
1417
+ return "".concat(output).concat(truncated);
1418
+ }
1419
+ function quoteComplexKey(key) {
1420
+ return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
1421
+ }
1422
+ function inspectProperty(_ref2, options) {
1423
+ var _ref3 = _slicedToArray(_ref2, 2), key = _ref3[0], value = _ref3[1];
1424
+ return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey(key) : typeof key != "number" && (key = "[".concat(options.inspect(key, options), "]")), options.truncate -= key.length, value = options.inspect(value, options), "".concat(key, ": ").concat(value);
1425
+ }
1426
+ function inspectArray(array, options) {
1427
+ var nonIndexProperties = Object.keys(array).slice(array.length);
1428
+ if (!array.length && !nonIndexProperties.length)
1429
+ return "[]";
1430
+ options.truncate -= 4;
1431
+ var listContents = inspectList(array, options);
1432
+ options.truncate -= listContents.length;
1433
+ var propertyContents = "";
1434
+ return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map(function(key) {
1435
+ return [key, array[key]];
1436
+ }), options, inspectProperty)), "[ ".concat(listContents).concat(propertyContents ? ", ".concat(propertyContents) : "", " ]");
1437
+ }
1438
+ var toString = Function.prototype.toString, functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/, maxFunctionSourceLength = 512;
1439
+ function getFuncName(aFunc) {
1440
+ if (typeof aFunc != "function")
1441
+ return null;
1442
+ var name = "";
1443
+ if (typeof Function.prototype.name > "u" && typeof aFunc.name > "u") {
1444
+ var functionSource = toString.call(aFunc);
1445
+ if (functionSource.indexOf("(") > maxFunctionSourceLength)
1446
+ return name;
1447
+ var match = functionSource.match(functionNameMatch);
1448
+ match && (name = match[1]);
1449
+ } else
1450
+ name = aFunc.name;
1451
+ return name;
1452
+ }
1453
+ var getFuncName_1 = getFuncName, getArrayName = function(array) {
1454
+ return typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : getFuncName_1(array.constructor);
1455
+ };
1456
+ function inspectTypedArray(array, options) {
1457
+ var name = getArrayName(array);
1458
+ options.truncate -= name.length + 4;
1459
+ var nonIndexProperties = Object.keys(array).slice(array.length);
1460
+ if (!array.length && !nonIndexProperties.length)
1461
+ return "".concat(name, "[]");
1462
+ for (var output = "", i = 0; i < array.length; i++) {
1463
+ var string2 = "".concat(options.stylize(truncate(array[i], options.truncate), "number")).concat(i === array.length - 1 ? "" : ", ");
1464
+ if (options.truncate -= string2.length, array[i] !== array.length && options.truncate <= 3) {
1465
+ output += "".concat(truncator, "(").concat(array.length - array[i] + 1, ")");
1466
+ break;
1467
+ }
1468
+ output += string2;
1469
+ }
1470
+ var propertyContents = "";
1471
+ return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map(function(key) {
1472
+ return [key, array[key]];
1473
+ }), options, inspectProperty)), "".concat(name, "[ ").concat(output).concat(propertyContents ? ", ".concat(propertyContents) : "", " ]");
1474
+ }
1475
+ function inspectDate(dateObject, options) {
1476
+ var stringRepresentation = dateObject.toJSON();
1477
+ if (stringRepresentation === null)
1478
+ return "Invalid Date";
1479
+ var split = stringRepresentation.split("T"), date = split[0];
1480
+ return options.stylize("".concat(date, "T").concat(truncate(split[1], options.truncate - date.length - 1)), "date");
1481
+ }
1482
+ function inspectFunction(func, options) {
1483
+ var name = getFuncName_1(func);
1484
+ return name ? options.stylize("[Function ".concat(truncate(name, options.truncate - 11), "]"), "special") : options.stylize("[Function]", "special");
1485
+ }
1486
+ function inspectMapEntry(_ref, options) {
1487
+ var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
1488
+ return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), "".concat(key, " => ").concat(value);
1489
+ }
1490
+ function mapToEntries(map) {
1491
+ var entries = [];
1492
+ return map.forEach(function(value, key) {
1493
+ entries.push([key, value]);
1494
+ }), entries;
1495
+ }
1496
+ function inspectMap(map, options) {
1497
+ var size = map.size - 1;
1498
+ return size <= 0 ? "Map{}" : (options.truncate -= 7, "Map{ ".concat(inspectList(mapToEntries(map), options, inspectMapEntry), " }"));
1499
+ }
1500
+ var isNaN2 = Number.isNaN || function(i) {
1501
+ return i !== i;
1502
+ };
1503
+ function inspectNumber(number, options) {
1504
+ return isNaN2(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate(number, options.truncate), "number");
1505
+ }
1506
+ function inspectBigInt(number, options) {
1507
+ var nums = truncate(number.toString(), options.truncate - 1);
1508
+ return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint");
1509
+ }
1510
+ function inspectRegExp(value, options) {
1511
+ var flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
1512
+ return options.stylize("/".concat(truncate(source, sourceLength), "/").concat(flags), "regexp");
1513
+ }
1514
+ function arrayFromSet(set) {
1515
+ var values = [];
1516
+ return set.forEach(function(value) {
1517
+ values.push(value);
1518
+ }), values;
1519
+ }
1520
+ function inspectSet(set, options) {
1521
+ return set.size === 0 ? "Set{}" : (options.truncate -= 7, "Set{ ".concat(inspectList(arrayFromSet(set), options), " }"));
1522
+ }
1523
+ var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", "'": "\\'", "\\": "\\\\" }, hex = 16, unicodeLength = 4;
1524
+ function escape(char) {
1525
+ return escapeCharacters[char] || "\\u".concat("0000".concat(char.charCodeAt(0).toString(hex)).slice(-unicodeLength));
1526
+ }
1527
+ function inspectString(string2, options) {
1528
+ return stringEscapeChars.test(string2) && (string2 = string2.replace(stringEscapeChars, escape)), options.stylize("'".concat(truncate(string2, options.truncate - 2), "'"), "string");
1529
+ }
1530
+ function inspectSymbol(value) {
1531
+ return "description" in Symbol.prototype ? value.description ? "Symbol(".concat(value.description, ")") : "Symbol()" : value.toString();
1532
+ }
1533
+ var getPromiseValue = function() {
1534
+ return "Promise{…}";
1535
+ };
1536
+ try {
1537
+ var _process$binding = process.binding("util"), getPromiseDetails = _process$binding.getPromiseDetails, kPending = _process$binding.kPending, kRejected = _process$binding.kRejected;
1538
+ Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = function(value, options) {
1539
+ var _getPromiseDetails = getPromiseDetails(value), _getPromiseDetails2 = _slicedToArray(_getPromiseDetails, 2), state = _getPromiseDetails2[0], innerValue = _getPromiseDetails2[1];
1540
+ return state === kPending ? "Promise{<pending>}" : "Promise".concat(state === kRejected ? "!" : "", "{").concat(options.inspect(innerValue, options), "}");
1541
+ });
1542
+ } catch {
1543
+ }
1544
+ var inspectPromise = getPromiseValue;
1545
+ function inspectObject(object, options) {
1546
+ var properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
1547
+ if (properties.length === 0 && symbols.length === 0)
1548
+ return "{}";
1549
+ if (options.truncate -= 4, options.seen = options.seen || [], options.seen.indexOf(object) >= 0)
1550
+ return "[Circular]";
1551
+ options.seen.push(object);
1552
+ var propertyContents = inspectList(properties.map(function(key) {
1553
+ return [key, object[key]];
1554
+ }), options, inspectProperty), symbolContents = inspectList(symbols.map(function(key) {
1555
+ return [key, object[key]];
1556
+ }), options, inspectProperty);
1557
+ options.seen.pop();
1558
+ var sep = "";
1559
+ return propertyContents && symbolContents && (sep = ", "), "{ ".concat(propertyContents).concat(sep).concat(symbolContents, " }");
1560
+ }
1561
+ var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : false;
1562
+ function inspectClass(value, options) {
1563
+ var name = "";
1564
+ return toStringTag && toStringTag in value && (name = value[toStringTag]), name = name || getFuncName_1(value.constructor), (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, "".concat(name).concat(inspectObject(value, options));
1565
+ }
1566
+ function inspectArguments(args, options) {
1567
+ return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, "Arguments[ ".concat(inspectList(args, options), " ]"));
1568
+ }
1569
+ var errorKeys = ["stack", "line", "column", "name", "message", "fileName", "lineNumber", "columnNumber", "number", "description"];
1570
+ function inspectObject$1(error, options) {
1571
+ var properties = Object.getOwnPropertyNames(error).filter(function(key) {
1572
+ return errorKeys.indexOf(key) === -1;
1573
+ }), name = error.name;
1574
+ options.truncate -= name.length;
1575
+ var message = "";
1576
+ typeof error.message == "string" ? message = truncate(error.message, options.truncate) : properties.unshift("message"), message = message ? ": ".concat(message) : "", options.truncate -= message.length + 5;
1577
+ var propertyContents = inspectList(properties.map(function(key) {
1578
+ return [key, error[key]];
1579
+ }), options, inspectProperty);
1580
+ return "".concat(name).concat(message).concat(propertyContents ? " { ".concat(propertyContents, " }") : "");
1581
+ }
1582
+ function inspectAttribute(_ref, options) {
1583
+ var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
1584
+ return options.truncate -= 3, value ? "".concat(options.stylize(key, "yellow"), "=").concat(options.stylize('"'.concat(value, '"'), "string")) : "".concat(options.stylize(key, "yellow"));
1585
+ }
1586
+ function inspectHTMLCollection(collection, options) {
1587
+ return inspectList(collection, options, inspectHTML, `
1588
+ `);
1589
+ }
1590
+ function inspectHTML(element, options) {
1591
+ var properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head = options.stylize("<".concat(name), "special"), headClose = options.stylize(">", "special"), tail = options.stylize("</".concat(name, ">"), "special");
1592
+ options.truncate -= name.length * 2 + 5;
1593
+ var propertyContents = "";
1594
+ properties.length > 0 && (propertyContents += " ", propertyContents += inspectList(properties.map(function(key) {
1595
+ return [key, element.getAttribute(key)];
1596
+ }), options, inspectAttribute, " ")), options.truncate -= propertyContents.length;
1597
+ var truncate2 = options.truncate, children = inspectHTMLCollection(element.children, options);
1598
+ return children && children.length > truncate2 && (children = "".concat(truncator, "(").concat(element.children.length, ")")), "".concat(head).concat(propertyContents).concat(headClose).concat(children).concat(tail);
1599
+ }
1600
+ var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = false;
1601
+ try {
1602
+ var nodeUtil = __require2("util");
1603
+ nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
1604
+ } catch {
1605
+ nodeInspect = false;
1606
+ }
1607
+ function FakeMap() {
1608
+ this.key = "chai/loupe__" + Math.random() + Date.now();
1609
+ }
1610
+ FakeMap.prototype = { get: function(key) {
1611
+ return key[this.key];
1612
+ }, has: function(key) {
1613
+ return this.key in key;
1614
+ }, set: function(key, value) {
1615
+ Object.isExtensible(key) && Object.defineProperty(key, this.key, { value, configurable: true });
1616
+ } };
1617
+ var constructorMap = new (typeof WeakMap == "function" ? WeakMap : FakeMap)(), stringTagMap = {}, baseTypesMap = { undefined: function(value, options) {
1618
+ return options.stylize("undefined", "undefined");
1619
+ }, null: function(value, options) {
1620
+ return options.stylize(null, "null");
1621
+ }, boolean: function(value, options) {
1622
+ return options.stylize(value, "boolean");
1623
+ }, Boolean: function(value, options) {
1624
+ return options.stylize(value, "boolean");
1625
+ }, number: inspectNumber, Number: inspectNumber, bigint: inspectBigInt, BigInt: inspectBigInt, string: inspectString, String: inspectString, function: inspectFunction, Function: inspectFunction, symbol: inspectSymbol, Symbol: inspectSymbol, Array: inspectArray, Date: inspectDate, Map: inspectMap, Set: inspectSet, RegExp: inspectRegExp, Promise: inspectPromise, WeakSet: function(value, options) {
1626
+ return options.stylize("WeakSet{…}", "special");
1627
+ }, WeakMap: function(value, options) {
1628
+ return options.stylize("WeakMap{…}", "special");
1629
+ }, Arguments: inspectArguments, Int8Array: inspectTypedArray, Uint8Array: inspectTypedArray, Uint8ClampedArray: inspectTypedArray, Int16Array: inspectTypedArray, Uint16Array: inspectTypedArray, Int32Array: inspectTypedArray, Uint32Array: inspectTypedArray, Float32Array: inspectTypedArray, Float64Array: inspectTypedArray, Generator: function() {
1630
+ return "";
1631
+ }, DataView: function() {
1632
+ return "";
1633
+ }, ArrayBuffer: function() {
1634
+ return "";
1635
+ }, Error: inspectObject$1, HTMLCollection: inspectHTMLCollection, NodeList: inspectHTMLCollection }, inspectCustom = function(value, options, type) {
1636
+ return chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect && nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type] ? stringTagMap[type](value, options) : "";
1637
+ }, toString$1 = Object.prototype.toString;
1638
+ function inspect2(value, options) {
1639
+ options = normaliseOptions(options), options.inspect = inspect2;
1640
+ var _options = options, customInspect = _options.customInspect, type = value === null ? "null" : _typeof(value);
1641
+ if (type === "object" && (type = toString$1.call(value).slice(8, -1)), baseTypesMap[type])
1642
+ return baseTypesMap[type](value, options);
1643
+ if (customInspect && value) {
1644
+ var output = inspectCustom(value, options, type);
1645
+ if (output)
1646
+ return typeof output == "string" ? output : inspect2(output, options);
1647
+ }
1648
+ var proto = value ? Object.getPrototypeOf(value) : false;
1649
+ return proto === Object.prototype || proto === null ? inspectObject(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass(value, options) : inspectObject(value, options) : value === Object(value) ? inspectObject(value, options) : options.stylize(String(value), type);
1650
+ }
1651
+ function registerConstructor(constructor, inspector) {
1652
+ return constructorMap.has(constructor) ? false : (constructorMap.set(constructor, inspector), true);
1653
+ }
1654
+ function registerStringTag(stringTag, inspector) {
1655
+ return stringTag in stringTagMap ? false : (stringTagMap[stringTag] = inspector, true);
1656
+ }
1657
+ var custom = chaiInspect;
1658
+ exports2.custom = custom, exports2.default = inspect2, exports2.inspect = inspect2, exports2.registerConstructor = registerConstructor, exports2.registerStringTag = registerStringTag, Object.defineProperty(exports2, "__esModule", { value: true });
1659
+ });
1660
+ } }), import_pretty_format = __toESM(require_build()), diff$1 = __toESM(require_build2()), SAFE_COLORS_SYMBOL = Symbol("vitest:SAFE_COLORS"), colorsMap = { bold: ["\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"], dim: ["\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"], italic: ["\x1B[3m", "\x1B[23m"], underline: ["\x1B[4m", "\x1B[24m"], inverse: ["\x1B[7m", "\x1B[27m"], hidden: ["\x1B[8m", "\x1B[28m"], strikethrough: ["\x1B[9m", "\x1B[29m"], black: ["\x1B[30m", "\x1B[39m"], red: ["\x1B[31m", "\x1B[39m"], green: ["\x1B[32m", "\x1B[39m"], yellow: ["\x1B[33m", "\x1B[39m"], blue: ["\x1B[34m", "\x1B[39m"], magenta: ["\x1B[35m", "\x1B[39m"], cyan: ["\x1B[36m", "\x1B[39m"], white: ["\x1B[37m", "\x1B[39m"], gray: ["\x1B[90m", "\x1B[39m"], bgBlack: ["\x1B[40m", "\x1B[49m"], bgRed: ["\x1B[41m", "\x1B[49m"], bgGreen: ["\x1B[42m", "\x1B[49m"], bgYellow: ["\x1B[43m", "\x1B[49m"], bgBlue: ["\x1B[44m", "\x1B[49m"], bgMagenta: ["\x1B[45m", "\x1B[49m"], bgCyan: ["\x1B[46m", "\x1B[49m"], bgWhite: ["\x1B[47m", "\x1B[49m"] }, colorsEntries = Object.entries(colorsMap);
1661
+ function string(str) {
1662
+ return String(str);
1663
+ }
1664
+ string.open = "";
1665
+ string.close = "";
1666
+ var defaultColors = colorsEntries.reduce((acc, [key]) => (acc[key] = string, acc), { isColorSupported: false });
1667
+ function getColors() {
1668
+ return globalThis[SAFE_COLORS_SYMBOL] || defaultColors;
1669
+ }
1670
+ function getType(value) {
1671
+ if (value === void 0)
1672
+ return "undefined";
1673
+ if (value === null)
1674
+ return "null";
1675
+ if (Array.isArray(value))
1676
+ return "array";
1677
+ if (typeof value == "boolean")
1678
+ return "boolean";
1679
+ if (typeof value == "function")
1680
+ return "function";
1681
+ if (typeof value == "number")
1682
+ return "number";
1683
+ if (typeof value == "string")
1684
+ return "string";
1685
+ if (typeof value == "bigint")
1686
+ return "bigint";
1687
+ if (typeof value == "object") {
1688
+ if (value != null) {
1689
+ if (value.constructor === RegExp)
1690
+ return "regexp";
1691
+ if (value.constructor === Map)
1692
+ return "map";
1693
+ if (value.constructor === Set)
1694
+ return "set";
1695
+ if (value.constructor === Date)
1696
+ return "date";
1697
+ }
1698
+ return "object";
1699
+ } else if (typeof value == "symbol")
1700
+ return "symbol";
1701
+ throw new Error(`value of unknown type: ${value}`);
1702
+ }
1703
+ var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class {
1704
+ constructor(op, text) {
1705
+ __publicField(this, 0);
1706
+ __publicField(this, 1);
1707
+ this[0] = op, this[1] = text;
1708
+ }
1709
+ }, NO_DIFF_MESSAGE = "Compared values have no visual difference.", SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";
1710
+ function formatTrailingSpaces(line, trailingSpaceFormatter) {
1711
+ return line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
1712
+ }
1713
+ function printDiffLine(line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) {
1714
+ return line.length !== 0 ? color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
1715
+ }
1716
+ function printDeleteLine(line, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
1717
+ return printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
1718
+ }
1719
+ function printInsertLine(line, isFirstOrLast, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
1720
+ return printDiffLine(line, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
1721
+ }
1722
+ function printCommonLine(line, isFirstOrLast, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
1723
+ return printDiffLine(line, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
1724
+ }
1725
+ function createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) {
1726
+ return patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`);
1727
+ }
1728
+ function joinAlignedDiffsNoExpand(diffs, options) {
1729
+ let iLength = diffs.length, nContextLines = options.contextLines, nContextLines2 = nContextLines + nContextLines, jLength = iLength, hasExcessAtStartOrEnd = false, nExcessesBetweenChanges = 0, i = 0;
1730
+ for (; i !== iLength; ) {
1731
+ let iStart = i;
1732
+ for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
1733
+ i += 1;
1734
+ if (iStart !== i)
1735
+ if (iStart === 0)
1736
+ i > nContextLines && (jLength -= i - nContextLines, hasExcessAtStartOrEnd = true);
1737
+ else if (i === iLength) {
1738
+ let n = i - iStart;
1739
+ n > nContextLines && (jLength -= n - nContextLines, hasExcessAtStartOrEnd = true);
1740
+ } else {
1741
+ let n = i - iStart;
1742
+ n > nContextLines2 && (jLength -= n - nContextLines2, nExcessesBetweenChanges += 1);
1743
+ }
1744
+ for (; i !== iLength && diffs[i][0] !== DIFF_EQUAL; )
1745
+ i += 1;
1746
+ }
1747
+ let hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;
1748
+ nExcessesBetweenChanges !== 0 ? jLength += nExcessesBetweenChanges + 1 : hasExcessAtStartOrEnd && (jLength += 1);
1749
+ let jLast = jLength - 1, lines = [], jPatchMark = 0;
1750
+ hasPatch && lines.push("");
1751
+ let aStart = 0, bStart = 0, aEnd = 0, bEnd = 0, pushCommonLine = (line) => {
1752
+ let j = lines.length;
1753
+ lines.push(printCommonLine(line, j === 0 || j === jLast, options)), aEnd += 1, bEnd += 1;
1754
+ }, pushDeleteLine = (line) => {
1755
+ let j = lines.length;
1756
+ lines.push(printDeleteLine(line, j === 0 || j === jLast, options)), aEnd += 1;
1757
+ }, pushInsertLine = (line) => {
1758
+ let j = lines.length;
1759
+ lines.push(printInsertLine(line, j === 0 || j === jLast, options)), bEnd += 1;
1760
+ };
1761
+ for (i = 0; i !== iLength; ) {
1762
+ let iStart = i;
1763
+ for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
1764
+ i += 1;
1765
+ if (iStart !== i)
1766
+ if (iStart === 0) {
1767
+ i > nContextLines && (iStart = i - nContextLines, aStart = iStart, bStart = iStart, aEnd = aStart, bEnd = bStart);
1768
+ for (let iCommon = iStart; iCommon !== i; iCommon += 1)
1769
+ pushCommonLine(diffs[iCommon][1]);
1770
+ } else if (i === iLength) {
1771
+ let iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;
1772
+ for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
1773
+ pushCommonLine(diffs[iCommon][1]);
1774
+ } else {
1775
+ let nCommon = i - iStart;
1776
+ if (nCommon > nContextLines2) {
1777
+ let iEnd = iStart + nContextLines;
1778
+ for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
1779
+ pushCommonLine(diffs[iCommon][1]);
1780
+ lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options), jPatchMark = lines.length, lines.push("");
1781
+ let nOmit = nCommon - nContextLines2;
1782
+ aStart = aEnd + nOmit, bStart = bEnd + nOmit, aEnd = aStart, bEnd = bStart;
1783
+ for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1)
1784
+ pushCommonLine(diffs[iCommon][1]);
1785
+ } else
1786
+ for (let iCommon = iStart; iCommon !== i; iCommon += 1)
1787
+ pushCommonLine(diffs[iCommon][1]);
1788
+ }
1789
+ for (; i !== iLength && diffs[i][0] === DIFF_DELETE; )
1790
+ pushDeleteLine(diffs[i][1]), i += 1;
1791
+ for (; i !== iLength && diffs[i][0] === DIFF_INSERT; )
1792
+ pushInsertLine(diffs[i][1]), i += 1;
1793
+ }
1794
+ return hasPatch && (lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options)), lines.join(`
1795
+ `);
1796
+ }
1797
+ function joinAlignedDiffsExpand(diffs, options) {
1798
+ return diffs.map((diff2, i, diffs2) => {
1799
+ let line = diff2[1], isFirstOrLast = i === 0 || i === diffs2.length - 1;
1800
+ switch (diff2[0]) {
1801
+ case DIFF_DELETE:
1802
+ return printDeleteLine(line, isFirstOrLast, options);
1803
+ case DIFF_INSERT:
1804
+ return printInsertLine(line, isFirstOrLast, options);
1805
+ default:
1806
+ return printCommonLine(line, isFirstOrLast, options);
1807
+ }
1808
+ }).join(`
1809
+ `);
1810
+ }
1811
+ var noColor = (string2) => string2, DIFF_CONTEXT_DEFAULT = 5;
1812
+ function getDefaultOptions() {
1813
+ let c = getColors();
1814
+ return { aAnnotation: "Expected", aColor: c.green, aIndicator: "-", bAnnotation: "Received", bColor: c.red, bIndicator: "+", changeColor: c.inverse, changeLineTrailingSpaceColor: noColor, commonColor: c.dim, commonIndicator: " ", commonLineTrailingSpaceColor: noColor, compareKeys: void 0, contextLines: DIFF_CONTEXT_DEFAULT, emptyFirstOrLastLinePlaceholder: "", expand: true, includeChangeCounts: false, omitAnnotationLines: false, patchColor: c.yellow };
1815
+ }
1816
+ function getCompareKeys(compareKeys) {
1817
+ return compareKeys && typeof compareKeys == "function" ? compareKeys : void 0;
1818
+ }
1819
+ function getContextLines(contextLines) {
1820
+ return typeof contextLines == "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;
1821
+ }
1822
+ function normalizeDiffOptions(options = {}) {
1823
+ return { ...getDefaultOptions(), ...options, compareKeys: getCompareKeys(options.compareKeys), contextLines: getContextLines(options.contextLines) };
1824
+ }
1825
+ function isEmptyString(lines) {
1826
+ return lines.length === 1 && lines[0].length === 0;
1827
+ }
1828
+ function countChanges(diffs) {
1829
+ let a = 0, b = 0;
1830
+ return diffs.forEach((diff2) => {
1831
+ switch (diff2[0]) {
1832
+ case DIFF_DELETE:
1833
+ a += 1;
1834
+ break;
1835
+ case DIFF_INSERT:
1836
+ b += 1;
1837
+ break;
1838
+ }
1839
+ }), { a, b };
1840
+ }
1841
+ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
1842
+ if (omitAnnotationLines)
1843
+ return "";
1844
+ let aRest = "", bRest = "";
1845
+ if (includeChangeCounts) {
1846
+ let aCount = String(changeCounts.a), bCount = String(changeCounts.b), baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length, aAnnotationPadding = " ".repeat(Math.max(0, baAnnotationLengthDiff)), bAnnotationPadding = " ".repeat(Math.max(0, -baAnnotationLengthDiff)), baCountLengthDiff = bCount.length - aCount.length, aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff)), bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
1847
+ aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`, bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
1848
+ }
1849
+ let a = `${aIndicator} ${aAnnotation}${aRest}`, b = `${bIndicator} ${bAnnotation}${bRest}`;
1850
+ return `${aColor(a)}
1851
+ ${bColor(b)}
1852
+
1853
+ `;
1854
+ }
1855
+ function printDiffLines(diffs, options) {
1856
+ return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options));
1857
+ }
1858
+ function diffLinesUnified(aLines, bLines, options) {
1859
+ return printDiffLines(diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines), normalizeDiffOptions(options));
1860
+ }
1861
+ function diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) {
1862
+ if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare) && (aLinesDisplay = [], aLinesCompare = []), isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare) && (bLinesDisplay = [], bLinesCompare = []), aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length)
1863
+ return diffLinesUnified(aLinesDisplay, bLinesDisplay, options);
1864
+ let diffs = diffLinesRaw(aLinesCompare, bLinesCompare), aIndex = 0, bIndex = 0;
1865
+ return diffs.forEach((diff2) => {
1866
+ switch (diff2[0]) {
1867
+ case DIFF_DELETE:
1868
+ diff2[1] = aLinesDisplay[aIndex], aIndex += 1;
1869
+ break;
1870
+ case DIFF_INSERT:
1871
+ diff2[1] = bLinesDisplay[bIndex], bIndex += 1;
1872
+ break;
1873
+ default:
1874
+ diff2[1] = bLinesDisplay[bIndex], aIndex += 1, bIndex += 1;
1875
+ }
1876
+ }), printDiffLines(diffs, normalizeDiffOptions(options));
1877
+ }
1878
+ function diffLinesRaw(aLines, bLines) {
1879
+ let aLength = aLines.length, bLength = bLines.length, isCommon = (aIndex2, bIndex2) => aLines[aIndex2] === bLines[bIndex2], diffs = [], aIndex = 0, bIndex = 0, foundSubsequence = (nCommon, aCommon, bCommon) => {
1880
+ for (; aIndex !== aCommon; aIndex += 1)
1881
+ diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
1882
+ for (; bIndex !== bCommon; bIndex += 1)
1883
+ diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
1884
+ for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1)
1885
+ diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex]));
1886
+ };
1887
+ for ((diff$1.default.default || diff$1.default)(aLength, bLength, isCommon, foundSubsequence); aIndex !== aLength; aIndex += 1)
1888
+ diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
1889
+ for (; bIndex !== bLength; bIndex += 1)
1890
+ diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
1891
+ return diffs;
1892
+ }
1893
+ function getCommonMessage(message, options) {
1894
+ let { commonColor } = normalizeDiffOptions(options);
1895
+ return commonColor(message);
1896
+ }
1897
+ var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = import_pretty_format.plugins, PLUGINS = [ReactTestComponent, ReactElement, DOMElement, DOMCollection, Immutable, AsymmetricMatcher], FORMAT_OPTIONS = { plugins: PLUGINS }, FALLBACK_FORMAT_OPTIONS = { callToJSON: false, maxDepth: 10, plugins: PLUGINS };
1898
+ function diff(a, b, options) {
1899
+ if (Object.is(a, b))
1900
+ return "";
1901
+ let aType = getType(a), expectedType = aType, omitDifference = false;
1902
+ if (aType === "object" && typeof a.asymmetricMatch == "function") {
1903
+ if (a.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof a.getExpectedType != "function")
1904
+ return null;
1905
+ expectedType = a.getExpectedType(), omitDifference = expectedType === "string";
1906
+ }
1907
+ if (expectedType !== getType(b)) {
1908
+ let { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options), formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), aDisplay = (0, import_pretty_format.format)(a, formatOptions), bDisplay = (0, import_pretty_format.format)(b, formatOptions), aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
1909
+ ${aDisplay}`, bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
1910
+ ${bDisplay}`;
1911
+ return `${aDiff}
1912
+
1913
+ ${bDiff}`;
1914
+ }
1915
+ if (omitDifference)
1916
+ return null;
1917
+ switch (aType) {
1918
+ case "string":
1919
+ return diffLinesUnified(a.split(`
1920
+ `), b.split(`
1921
+ `), options);
1922
+ case "boolean":
1923
+ case "number":
1924
+ return comparePrimitive(a, b, options);
1925
+ case "map":
1926
+ return compareObjects(sortMap(a), sortMap(b), options);
1927
+ case "set":
1928
+ return compareObjects(sortSet(a), sortSet(b), options);
1929
+ default:
1930
+ return compareObjects(a, b, options);
1931
+ }
1932
+ }
1933
+ function comparePrimitive(a, b, options) {
1934
+ let aFormat = (0, import_pretty_format.format)(a, FORMAT_OPTIONS), bFormat = (0, import_pretty_format.format)(b, FORMAT_OPTIONS);
1935
+ return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split(`
1936
+ `), bFormat.split(`
1937
+ `), options);
1938
+ }
1939
+ function sortMap(map) {
1940
+ return new Map(Array.from(map.entries()).sort());
1941
+ }
1942
+ function sortSet(set) {
1943
+ return new Set(Array.from(set.values()).sort());
1944
+ }
1945
+ function compareObjects(a, b, options) {
1946
+ let difference, hasThrown = false;
1947
+ try {
1948
+ let formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
1949
+ difference = getObjectsDifference(a, b, formatOptions, options);
1950
+ } catch {
1951
+ hasThrown = true;
1952
+ }
1953
+ let noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
1954
+ if (difference === void 0 || difference === noDiffMessage) {
1955
+ let formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
1956
+ difference = getObjectsDifference(a, b, formatOptions, options), difference !== noDiffMessage && !hasThrown && (difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}
1957
+
1958
+ ${difference}`);
1959
+ }
1960
+ return difference;
1961
+ }
1962
+ function getFormatOptions(formatOptions, options) {
1963
+ let { compareKeys } = normalizeDiffOptions(options);
1964
+ return { ...formatOptions, compareKeys };
1965
+ }
1966
+ function getObjectsDifference(a, b, formatOptions, options) {
1967
+ let formatOptionsZeroIndent = { ...formatOptions, indent: 0 }, aCompare = (0, import_pretty_format.format)(a, formatOptionsZeroIndent), bCompare = (0, import_pretty_format.format)(b, formatOptionsZeroIndent);
1968
+ if (aCompare === bCompare)
1969
+ return getCommonMessage(NO_DIFF_MESSAGE, options);
1970
+ {
1971
+ let aDisplay = (0, import_pretty_format.format)(a, formatOptions), bDisplay = (0, import_pretty_format.format)(b, formatOptions);
1972
+ return diffLinesUnified2(aDisplay.split(`
1973
+ `), bDisplay.split(`
1974
+ `), aCompare.split(`
1975
+ `), bCompare.split(`
1976
+ `), options);
1977
+ }
1978
+ }
1979
+ var import_pretty_format2 = __toESM(require_build()), import_loupe = __toESM(require_loupe()), { AsymmetricMatcher: AsymmetricMatcher2, DOMCollection: DOMCollection2, DOMElement: DOMElement2, Immutable: Immutable2, ReactElement: ReactElement2, ReactTestComponent: ReactTestComponent2 } = import_pretty_format2.plugins, PLUGINS2 = [ReactTestComponent2, ReactElement2, DOMElement2, DOMCollection2, Immutable2, AsymmetricMatcher2];
1980
+ function stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {
1981
+ let MAX_LENGTH = maxLength ?? 1e4, result;
1982
+ try {
1983
+ result = (0, import_pretty_format2.format)(object, { maxDepth, escapeString: false, plugins: PLUGINS2, ...options });
1984
+ } catch {
1985
+ result = (0, import_pretty_format2.format)(object, { callToJSON: false, maxDepth, escapeString: false, plugins: PLUGINS2, ...options });
1986
+ }
1987
+ return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result;
1988
+ }
1989
+ var formatRegExp = /%[sdjifoOcj%]/g;
1990
+ function format2(...args) {
1991
+ if (typeof args[0] != "string") {
1992
+ let objects = [];
1993
+ for (let i2 = 0; i2 < args.length; i2++)
1994
+ objects.push(inspect(args[i2], { depth: 0, colors: false, compact: 3 }));
1995
+ return objects.join(" ");
1996
+ }
1997
+ let len = args.length, i = 1, template = args[0], str = String(template).replace(formatRegExp, (x) => {
1998
+ if (x === "%%")
1999
+ return "%";
2000
+ if (i >= len)
2001
+ return x;
2002
+ switch (x) {
2003
+ case "%s": {
2004
+ let value = args[i++];
2005
+ return typeof value == "bigint" ? `${value.toString()}n` : typeof value == "number" && value === 0 && 1 / value < 0 ? "-0" : typeof value == "object" && value !== null ? inspect(value, { depth: 0, colors: false, compact: 3 }) : String(value);
2006
+ }
2007
+ case "%d": {
2008
+ let value = args[i++];
2009
+ return typeof value == "bigint" ? `${value.toString()}n` : Number(value).toString();
2010
+ }
2011
+ case "%i": {
2012
+ let value = args[i++];
2013
+ return typeof value == "bigint" ? `${value.toString()}n` : Number.parseInt(String(value)).toString();
2014
+ }
2015
+ case "%f":
2016
+ return Number.parseFloat(String(args[i++])).toString();
2017
+ case "%o":
2018
+ return inspect(args[i++], { showHidden: true, showProxy: true });
2019
+ case "%O":
2020
+ return inspect(args[i++]);
2021
+ case "%c":
2022
+ return i++, "";
2023
+ case "%j":
2024
+ try {
2025
+ return JSON.stringify(args[i++]);
2026
+ } catch (err) {
2027
+ let m = err.message;
2028
+ if (m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object"))
2029
+ return "[Circular]";
2030
+ throw err;
2031
+ }
2032
+ default:
2033
+ return x;
2034
+ }
2035
+ });
2036
+ for (let x = args[i]; i < len; x = args[++i])
2037
+ x === null || typeof x != "object" ? str += ` ${x}` : str += ` ${inspect(x)}`;
2038
+ return str;
2039
+ }
2040
+ function inspect(obj, options = {}) {
2041
+ return options.truncate === 0 && (options.truncate = Number.POSITIVE_INFINITY), (0, import_loupe.inspect)(obj, options);
2042
+ }
2043
+ function isFinalObj(obj) {
2044
+ return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;
2045
+ }
2046
+ function getType2(value) {
2047
+ return Object.prototype.toString.apply(value).slice(8, -1);
2048
+ }
2049
+ function collectOwnProperties(obj, collector) {
2050
+ let collect = typeof collector == "function" ? collector : (key) => collector.add(key);
2051
+ Object.getOwnPropertyNames(obj).forEach(collect), Object.getOwnPropertySymbols(obj).forEach(collect);
2052
+ }
2053
+ function getOwnProperties(obj) {
2054
+ let ownProps = /* @__PURE__ */ new Set();
2055
+ return isFinalObj(obj) ? [] : (collectOwnProperties(obj, ownProps), Array.from(ownProps));
2056
+ }
2057
+ var defaultCloneOptions = { forceWritable: false };
2058
+ function deepClone(val, options = defaultCloneOptions) {
2059
+ return clone(val, /* @__PURE__ */ new WeakMap(), options);
2060
+ }
2061
+ function clone(val, seen2, options = defaultCloneOptions) {
2062
+ let k, out;
2063
+ if (seen2.has(val))
2064
+ return seen2.get(val);
2065
+ if (Array.isArray(val)) {
2066
+ for (out = Array(k = val.length), seen2.set(val, out); k--; )
2067
+ out[k] = clone(val[k], seen2);
2068
+ return out;
2069
+ }
2070
+ if (Object.prototype.toString.call(val) === "[object Object]") {
2071
+ out = Object.create(Object.getPrototypeOf(val)), seen2.set(val, out);
2072
+ let props = getOwnProperties(val);
2073
+ for (let k2 of props) {
2074
+ let descriptor = Object.getOwnPropertyDescriptor(val, k2);
2075
+ if (!descriptor)
2076
+ continue;
2077
+ let cloned = clone(val[k2], seen2);
2078
+ "get" in descriptor ? Object.defineProperty(out, k2, { ...descriptor, get() {
2079
+ return cloned;
2080
+ } }) : Object.defineProperty(out, k2, { ...descriptor, writable: options.forceWritable ? true : descriptor.writable, value: cloned });
2081
+ }
2082
+ return out;
2083
+ }
2084
+ return val;
2085
+ }
2086
+ __toESM(require_build());
2087
+ __toESM(require_build2());
2088
+ __toESM(require_loupe());
2089
+ var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
2090
+ function isImmutable(v) {
2091
+ return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
2092
+ }
2093
+ var OBJECT_PROTO = Object.getPrototypeOf({});
2094
+ function getUnserializableMessage(err) {
2095
+ return err instanceof Error ? `<unserializable>: ${err.message}` : typeof err == "string" ? `<unserializable>: ${err}` : "<unserializable>";
2096
+ }
2097
+ function serializeError(val, seen2 = /* @__PURE__ */ new WeakMap()) {
2098
+ if (!val || typeof val == "string")
2099
+ return val;
2100
+ if (typeof val == "function")
2101
+ return `Function<${val.name || "anonymous"}>`;
2102
+ if (typeof val == "symbol")
2103
+ return val.toString();
2104
+ if (typeof val != "object")
2105
+ return val;
2106
+ if (isImmutable(val))
2107
+ return serializeError(val.toJSON(), seen2);
2108
+ if (val instanceof Promise || val.constructor && val.constructor.prototype === "AsyncFunction")
2109
+ return "Promise";
2110
+ if (typeof Element < "u" && val instanceof Element)
2111
+ return val.tagName;
2112
+ if (typeof val.asymmetricMatch == "function")
2113
+ return `${val.toString()} ${format2(val.sample)}`;
2114
+ if (seen2.has(val))
2115
+ return seen2.get(val);
2116
+ if (Array.isArray(val)) {
2117
+ let clone2 = new Array(val.length);
2118
+ return seen2.set(val, clone2), val.forEach((e, i) => {
2119
+ try {
2120
+ clone2[i] = serializeError(e, seen2);
2121
+ } catch (err) {
2122
+ clone2[i] = getUnserializableMessage(err);
2123
+ }
2124
+ }), clone2;
2125
+ } else {
2126
+ let clone2 = /* @__PURE__ */ Object.create(null);
2127
+ seen2.set(val, clone2);
2128
+ let obj = val;
2129
+ for (; obj && obj !== OBJECT_PROTO; )
2130
+ Object.getOwnPropertyNames(obj).forEach((key) => {
2131
+ if (!(key in clone2))
2132
+ try {
2133
+ clone2[key] = serializeError(val[key], seen2);
2134
+ } catch (err) {
2135
+ delete clone2[key], clone2[key] = getUnserializableMessage(err);
2136
+ }
2137
+ }), obj = Object.getPrototypeOf(obj);
2138
+ return clone2;
2139
+ }
2140
+ }
2141
+ function normalizeErrorMessage(message) {
2142
+ return message.replace(/__vite_ssr_import_\d+__\./g, "");
2143
+ }
2144
+ function processError(err, diffOptions) {
2145
+ if (!err || typeof err != "object")
2146
+ return { message: err };
2147
+ if (err.stack && (err.stackStr = String(err.stack)), err.name && (err.nameStr = String(err.name)), err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) {
2148
+ let clonedActual = deepClone(err.actual, { forceWritable: true }), clonedExpected = deepClone(err.expected, { forceWritable: true }), { replacedActual, replacedExpected } = replaceAsymmetricMatcher(clonedActual, clonedExpected);
2149
+ err.diff = diff(replacedExpected, replacedActual, diffOptions);
2150
+ }
2151
+ typeof err.expected != "string" && (err.expected = stringify(err.expected, 10)), typeof err.actual != "string" && (err.actual = stringify(err.actual, 10));
2152
+ try {
2153
+ typeof err.message == "string" && (err.message = normalizeErrorMessage(err.message)), typeof err.cause == "object" && typeof err.cause.message == "string" && (err.cause.message = normalizeErrorMessage(err.cause.message));
2154
+ } catch {
2155
+ }
2156
+ try {
2157
+ return serializeError(err);
2158
+ } catch (e) {
2159
+ return serializeError(new Error(`Failed to fully serialize error: ${e == null ? void 0 : e.message}
2160
+ Inner error message: ${err == null ? void 0 : err.message}`));
2161
+ }
2162
+ }
2163
+ function isAsymmetricMatcher(data) {
2164
+ return getType2(data) === "Object" && typeof data.asymmetricMatch == "function";
2165
+ }
2166
+ function isReplaceable(obj1, obj2) {
2167
+ let obj1Type = getType2(obj1), obj2Type = getType2(obj2);
2168
+ return obj1Type === obj2Type && obj1Type === "Object";
2169
+ }
2170
+ function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
2171
+ return isReplaceable(actual, expected) ? actualReplaced.has(actual) || expectedReplaced.has(expected) ? { replacedActual: actual, replacedExpected: expected } : (actualReplaced.add(actual), expectedReplaced.add(expected), getOwnProperties(expected).forEach((key) => {
2172
+ let expectedValue = expected[key], actualValue = actual[key];
2173
+ if (isAsymmetricMatcher(expectedValue))
2174
+ expectedValue.asymmetricMatch(actualValue) && (actual[key] = expectedValue);
2175
+ else if (isAsymmetricMatcher(actualValue))
2176
+ actualValue.asymmetricMatch(expectedValue) && (expected[key] = actualValue);
2177
+ else if (isReplaceable(actualValue, expectedValue)) {
2178
+ let replaced = replaceAsymmetricMatcher(actualValue, expectedValue, actualReplaced, expectedReplaced);
2179
+ actual[key] = replaced.replacedActual, expected[key] = replaced.replacedExpected;
2180
+ }
2181
+ }), { replacedActual: actual, replacedExpected: expected }) : { replacedActual: actual, replacedExpected: expected };
2182
+ }
2183
+ var CallStates = ((CallStates2) => (CallStates2.DONE = "done", CallStates2.ERROR = "error", CallStates2.ACTIVE = "active", CallStates2.WAITING = "waiting", CallStates2))(CallStates || {}), EVENTS = { CALL: "storybook/instrumenter/call", SYNC: "storybook/instrumenter/sync", START: "storybook/instrumenter/start", BACK: "storybook/instrumenter/back", GOTO: "storybook/instrumenter/goto", NEXT: "storybook/instrumenter/next", END: "storybook/instrumenter/end" }, controlsDisabled = { start: false, back: false, goto: false, next: false, end: false }, alreadyCompletedException = new Error("This function ran after the play function completed. Did you forget to `await` it?"), isObject = (o) => Object.prototype.toString.call(o) === "[object Object]", isModule = (o) => Object.prototype.toString.call(o) === "[object Module]", isInstrumentable = (o) => {
2184
+ if (!isObject(o) && !isModule(o))
2185
+ return false;
2186
+ if (o.constructor === void 0)
2187
+ return true;
2188
+ let proto = o.constructor.prototype;
2189
+ return !!isObject(proto);
2190
+ }, construct = (obj) => {
2191
+ try {
2192
+ return new obj.constructor();
2193
+ } catch {
2194
+ return {};
2195
+ }
2196
+ }, getInitialState = () => ({ renderPhase: void 0, isDebugging: false, isPlaying: false, isLocked: false, cursor: 0, calls: [], shadowCalls: [], callRefsByResult: /* @__PURE__ */ new Map(), chainedCallIds: /* @__PURE__ */ new Set(), ancestors: [], playUntil: void 0, resolvers: {}, syncTimeout: void 0 }), getRetainedState = (state, isDebugging = false) => {
2197
+ let calls = (isDebugging ? state.shadowCalls : state.calls).filter((call) => call.retain);
2198
+ if (!calls.length)
2199
+ return;
2200
+ let callRefsByResult = new Map(Array.from(state.callRefsByResult.entries()).filter(([, ref]) => ref.retain));
2201
+ return { cursor: calls.length, calls, callRefsByResult };
2202
+ }, Instrumenter = class {
2203
+ constructor() {
2204
+ this.initialized = false, this.channel = addons.getChannel(), this.state = global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
2205
+ let resetState = ({ storyId, isPlaying = true, isDebugging = false }) => {
2206
+ let state = this.getState(storyId);
2207
+ this.setState(storyId, { ...getInitialState(), ...getRetainedState(state, isDebugging), shadowCalls: isDebugging ? state.shadowCalls : [], chainedCallIds: isDebugging ? state.chainedCallIds : /* @__PURE__ */ new Set(), playUntil: isDebugging ? state.playUntil : void 0, isPlaying, isDebugging }), this.sync(storyId);
2208
+ };
2209
+ this.channel.on(FORCE_REMOUNT, resetState), this.channel.on(STORY_RENDER_PHASE_CHANGED, ({ storyId, newPhase }) => {
2210
+ let { isDebugging } = this.getState(storyId);
2211
+ this.setState(storyId, { renderPhase: newPhase }), newPhase === "preparing" && isDebugging && resetState({ storyId }), newPhase === "playing" && resetState({ storyId, isDebugging }), newPhase === "played" && this.setState(storyId, { isLocked: false, isPlaying: false, isDebugging: false }), newPhase === "errored" && this.setState(storyId, { isLocked: false, isPlaying: false });
2212
+ }), this.channel.on(SET_CURRENT_STORY, () => {
2213
+ this.initialized ? this.cleanup() : this.initialized = true;
2214
+ });
2215
+ let start = ({ storyId, playUntil }) => {
2216
+ this.getState(storyId).isDebugging || this.setState(storyId, ({ calls }) => ({ calls: [], shadowCalls: calls.map((call) => ({ ...call, status: "waiting" })), isDebugging: true }));
2217
+ let log = this.getLog(storyId);
2218
+ this.setState(storyId, ({ shadowCalls }) => {
2219
+ var _a;
2220
+ if (playUntil || !log.length)
2221
+ return { playUntil };
2222
+ let firstRowIndex = shadowCalls.findIndex((call) => call.id === log[0].callId);
2223
+ return { playUntil: (_a = shadowCalls.slice(0, firstRowIndex).filter((call) => call.interceptable && !call.ancestors.length).slice(-1)[0]) == null ? void 0 : _a.id };
2224
+ }), this.channel.emit(FORCE_REMOUNT, { storyId, isDebugging: true });
2225
+ }, back = ({ storyId }) => {
2226
+ var _a;
2227
+ let log = this.getLog(storyId).filter((call) => !call.ancestors.length), last = log.reduceRight((res, item, index) => res >= 0 || item.status === "waiting" ? res : index, -1);
2228
+ start({ storyId, playUntil: (_a = log[last - 1]) == null ? void 0 : _a.callId });
2229
+ }, goto = ({ storyId, callId }) => {
2230
+ var _a;
2231
+ let { calls, shadowCalls, resolvers } = this.getState(storyId), call = calls.find(({ id }) => id === callId), shadowCall = shadowCalls.find(({ id }) => id === callId);
2232
+ if (!call && shadowCall && Object.values(resolvers).length > 0) {
2233
+ let nextId = (_a = this.getLog(storyId).find((c) => c.status === "waiting")) == null ? void 0 : _a.callId;
2234
+ shadowCall.id !== nextId && this.setState(storyId, { playUntil: shadowCall.id }), Object.values(resolvers).forEach((resolve) => resolve());
2235
+ } else
2236
+ start({ storyId, playUntil: callId });
2237
+ }, next = ({ storyId }) => {
2238
+ var _a;
2239
+ let { resolvers } = this.getState(storyId);
2240
+ if (Object.values(resolvers).length > 0)
2241
+ Object.values(resolvers).forEach((resolve) => resolve());
2242
+ else {
2243
+ let nextId = (_a = this.getLog(storyId).find((c) => c.status === "waiting")) == null ? void 0 : _a.callId;
2244
+ nextId ? start({ storyId, playUntil: nextId }) : end({ storyId });
2245
+ }
2246
+ }, end = ({ storyId }) => {
2247
+ this.setState(storyId, { playUntil: void 0, isDebugging: false }), Object.values(this.getState(storyId).resolvers).forEach((resolve) => resolve());
2248
+ };
2249
+ this.channel.on(EVENTS.START, start), this.channel.on(EVENTS.BACK, back), this.channel.on(EVENTS.GOTO, goto), this.channel.on(EVENTS.NEXT, next), this.channel.on(EVENTS.END, end);
2250
+ }
2251
+ getState(storyId) {
2252
+ return this.state[storyId] || getInitialState();
2253
+ }
2254
+ setState(storyId, update) {
2255
+ let state = this.getState(storyId), patch = typeof update == "function" ? update(state) : update;
2256
+ this.state = { ...this.state, [storyId]: { ...state, ...patch } }, global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
2257
+ }
2258
+ cleanup() {
2259
+ this.state = Object.entries(this.state).reduce((acc, [storyId, state]) => {
2260
+ let retainedState = getRetainedState(state);
2261
+ return retainedState && (acc[storyId] = Object.assign(getInitialState(), retainedState)), acc;
2262
+ }, {});
2263
+ let payload = { controlStates: controlsDisabled, logItems: [] };
2264
+ this.channel.emit(EVENTS.SYNC, payload), global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
2265
+ }
2266
+ getLog(storyId) {
2267
+ let { calls, shadowCalls } = this.getState(storyId), merged = [...shadowCalls];
2268
+ calls.forEach((call, index) => {
2269
+ merged[index] = call;
2270
+ });
2271
+ let seen2 = /* @__PURE__ */ new Set();
2272
+ return merged.reduceRight((acc, call) => (call.args.forEach((arg) => {
2273
+ (arg == null ? void 0 : arg.__callId__) && seen2.add(arg.__callId__);
2274
+ }), call.path.forEach((node) => {
2275
+ node.__callId__ && seen2.add(node.__callId__);
2276
+ }), (call.interceptable || call.exception) && !seen2.has(call.id) && (acc.unshift({ callId: call.id, status: call.status, ancestors: call.ancestors }), seen2.add(call.id)), acc), []);
2277
+ }
2278
+ instrument(obj, options, depth = 0) {
2279
+ if (!isInstrumentable(obj))
2280
+ return obj;
2281
+ let { mutate = false, path = [] } = options, keys = options.getKeys ? options.getKeys(obj, depth) : Object.keys(obj);
2282
+ return depth += 1, keys.reduce((acc, key) => {
2283
+ let descriptor = getPropertyDescriptor(obj, key);
2284
+ if (typeof (descriptor == null ? void 0 : descriptor.get) == "function") {
2285
+ let getter = () => {
2286
+ var _a, _b;
2287
+ return (_b = (_a = descriptor == null ? void 0 : descriptor.get) == null ? void 0 : _a.bind(obj)) == null ? void 0 : _b();
2288
+ };
2289
+ return Object.defineProperty(acc, key, { get: () => this.instrument(getter(), { ...options, path: path.concat(key) }, depth) }), acc;
2290
+ }
2291
+ let value = obj[key];
2292
+ return typeof value != "function" ? (acc[key] = this.instrument(value, { ...options, path: path.concat(key) }, depth), acc) : "__originalFn__" in value && typeof value.__originalFn__ == "function" ? (acc[key] = value, acc) : (acc[key] = (...args) => this.track(key, value, obj, args, options), acc[key].__originalFn__ = value, Object.defineProperty(acc[key], "name", { value: key, writable: false }), Object.keys(value).length > 0 && Object.assign(acc[key], this.instrument({ ...value }, { ...options, path: path.concat(key) }, depth)), acc);
2293
+ }, mutate ? obj : construct(obj));
2294
+ }
2295
+ track(method, fn2, object, args, options) {
2296
+ var _a, _b, _c, _d;
2297
+ let storyId = ((_a = args == null ? void 0 : args[0]) == null ? void 0 : _a.__storyId__) || ((_d = (_c = (_b = global.__STORYBOOK_PREVIEW__) == null ? void 0 : _b.selectionStore) == null ? void 0 : _c.selection) == null ? void 0 : _d.storyId), { cursor, ancestors } = this.getState(storyId);
2298
+ this.setState(storyId, { cursor: cursor + 1 });
2299
+ let id = `${ancestors.slice(-1)[0] || storyId} [${cursor}] ${method}`, { path = [], intercept = false, retain = false } = options, interceptable = typeof intercept == "function" ? intercept(method, path) : intercept, call = { id, cursor, storyId, ancestors, path, method, args, interceptable, retain }, result = (interceptable && !ancestors.length ? this.intercept : this.invoke).call(this, fn2, object, call, options);
2300
+ return this.instrument(result, { ...options, mutate: true, path: [{ __callId__: call.id }] });
2301
+ }
2302
+ intercept(fn2, object, call, options) {
2303
+ let { chainedCallIds, isDebugging, playUntil } = this.getState(call.storyId), isChainedUpon = chainedCallIds.has(call.id);
2304
+ return !isDebugging || isChainedUpon || playUntil ? (playUntil === call.id && this.setState(call.storyId, { playUntil: void 0 }), this.invoke(fn2, object, call, options)) : new Promise((resolve) => {
2305
+ this.setState(call.storyId, ({ resolvers }) => ({ isLocked: false, resolvers: { ...resolvers, [call.id]: resolve } }));
2306
+ }).then(() => (this.setState(call.storyId, (state) => {
2307
+ let { [call.id]: _, ...resolvers } = state.resolvers;
2308
+ return { isLocked: true, resolvers };
2309
+ }), this.invoke(fn2, object, call, options)));
2310
+ }
2311
+ invoke(fn2, object, call, options) {
2312
+ let { callRefsByResult, renderPhase } = this.getState(call.storyId), serializeValues = (value) => {
2313
+ var _a, _b;
2314
+ if (callRefsByResult.has(value))
2315
+ return callRefsByResult.get(value);
2316
+ if (value instanceof Array)
2317
+ return value.map(serializeValues);
2318
+ if (value instanceof Date)
2319
+ return { __date__: { value: value.toISOString() } };
2320
+ if (value instanceof Error) {
2321
+ let { name, message, stack } = value;
2322
+ return { __error__: { name, message, stack } };
2323
+ }
2324
+ if (value instanceof RegExp) {
2325
+ let { flags, source } = value;
2326
+ return { __regexp__: { flags, source } };
2327
+ }
2328
+ if (value instanceof global.window.HTMLElement) {
2329
+ let { prefix, localName, id, classList, innerText } = value, classNames = Array.from(classList);
2330
+ return { __element__: { prefix, localName, id, classNames, innerText } };
2331
+ }
2332
+ return typeof value == "function" ? { __function__: { name: value.name } } : typeof value == "symbol" ? { __symbol__: { description: value.description } } : typeof value == "object" && ((_a = value == null ? void 0 : value.constructor) == null ? void 0 : _a.name) && ((_b = value == null ? void 0 : value.constructor) == null ? void 0 : _b.name) !== "Object" ? { __class__: { name: value.constructor.name } } : Object.prototype.toString.call(value) === "[object Object]" ? Object.fromEntries(Object.entries(value).map(([key, val]) => [key, serializeValues(val)])) : value;
2333
+ }, info = { ...call, args: call.args.map(serializeValues) };
2334
+ call.path.forEach((ref) => {
2335
+ (ref == null ? void 0 : ref.__callId__) && this.setState(call.storyId, ({ chainedCallIds }) => ({ chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__)) }));
2336
+ });
2337
+ let handleException = (e) => {
2338
+ if (e instanceof Error) {
2339
+ let { name, message, stack, callId = call.id } = e, { showDiff = void 0, diff: diff2 = void 0, actual = void 0, expected = void 0 } = processError(e), exception = { name, message, stack, callId, showDiff, diff: diff2, actual, expected };
2340
+ if (this.update({ ...info, status: "error", exception }), this.setState(call.storyId, (state) => ({ callRefsByResult: new Map([...Array.from(state.callRefsByResult.entries()), [e, { __callId__: call.id, retain: call.retain }]]) })), call.ancestors.length)
2341
+ throw Object.prototype.hasOwnProperty.call(e, "callId") || Object.defineProperty(e, "callId", { value: call.id }), e;
2342
+ if (e !== alreadyCompletedException)
2343
+ throw logger.warn(e), IGNORED_EXCEPTION;
2344
+ }
2345
+ throw e;
2346
+ };
2347
+ try {
2348
+ if (renderPhase === "played" && !call.retain)
2349
+ throw alreadyCompletedException;
2350
+ let finalArgs = (options.getArgs ? options.getArgs(call, this.getState(call.storyId)) : call.args).map((arg) => typeof arg != "function" || Object.keys(arg).length ? arg : (...args) => {
2351
+ let { cursor, ancestors } = this.getState(call.storyId);
2352
+ this.setState(call.storyId, { cursor: 0, ancestors: [...ancestors, call.id] });
2353
+ let restore = () => this.setState(call.storyId, { cursor, ancestors }), willRestore = false;
2354
+ try {
2355
+ let res = arg(...args);
2356
+ return res instanceof Promise ? (willRestore = true, res.finally(restore)) : res;
2357
+ } finally {
2358
+ willRestore || restore();
2359
+ }
2360
+ }), result = fn2.apply(object, finalArgs);
2361
+ return result && ["object", "function", "symbol"].includes(typeof result) && this.setState(call.storyId, (state) => ({ callRefsByResult: new Map([...Array.from(state.callRefsByResult.entries()), [result, { __callId__: call.id, retain: call.retain }]]) })), this.update({ ...info, status: result instanceof Promise ? "active" : "done" }), result instanceof Promise ? result.then((value) => (this.update({ ...info, status: "done" }), value), handleException) : result;
2362
+ } catch (e) {
2363
+ return handleException(e);
2364
+ }
2365
+ }
2366
+ update(call) {
2367
+ this.channel.emit(EVENTS.CALL, call), this.setState(call.storyId, ({ calls }) => {
2368
+ let callsById = calls.concat(call).reduce((a, c) => Object.assign(a, { [c.id]: c }), {});
2369
+ return { calls: Object.values(callsById).sort((a, b) => a.id.localeCompare(b.id, void 0, { numeric: true })) };
2370
+ }), this.sync(call.storyId);
2371
+ }
2372
+ sync(storyId) {
2373
+ let synchronize = () => {
2374
+ var _a;
2375
+ let { isLocked, isPlaying } = this.getState(storyId), logItems = this.getLog(storyId), pausedAt = (_a = logItems.filter(({ ancestors }) => !ancestors.length).find((item) => item.status === "waiting")) == null ? void 0 : _a.callId, hasActive = logItems.some((item) => item.status === "active");
2376
+ if (isLocked || hasActive || logItems.length === 0) {
2377
+ let payload2 = { controlStates: controlsDisabled, logItems };
2378
+ this.channel.emit(EVENTS.SYNC, payload2);
2379
+ return;
2380
+ }
2381
+ let hasPrevious = logItems.some((item) => item.status === "done" || item.status === "error"), payload = { controlStates: { start: hasPrevious, back: hasPrevious, goto: true, next: isPlaying, end: isPlaying }, logItems, pausedAt };
2382
+ this.channel.emit(EVENTS.SYNC, payload);
2383
+ };
2384
+ this.setState(storyId, ({ syncTimeout }) => (clearTimeout(syncTimeout), { syncTimeout: setTimeout(synchronize, 0) }));
2385
+ }
2386
+ };
2387
+ function instrument(obj, options = {}) {
2388
+ var _a, _b, _c, _d;
2389
+ try {
2390
+ let forceInstrument = false, skipInstrument = false;
2391
+ return ((_b = (_a = global.window.location) == null ? void 0 : _a.search) == null ? void 0 : _b.includes("instrument=true")) ? forceInstrument = true : ((_d = (_c = global.window.location) == null ? void 0 : _c.search) == null ? void 0 : _d.includes("instrument=false")) && (skipInstrument = true), global.window.parent === global.window && !forceInstrument || skipInstrument ? obj : (global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ || (global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Instrumenter()), global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__.instrument(obj, options));
2392
+ } catch (e) {
2393
+ return once.warn(e), obj;
2394
+ }
2395
+ }
2396
+ function getPropertyDescriptor(obj, propName) {
2397
+ let target = obj;
2398
+ for (; target != null; ) {
2399
+ let descriptor = Object.getOwnPropertyDescriptor(target, propName);
2400
+ if (descriptor)
2401
+ return descriptor;
2402
+ target = Object.getPrototypeOf(target);
2403
+ }
2404
+ }
2405
+ var JestMock = new ModuleMocker_1(global), fn = JestMock.fn.bind(JestMock), { action } = instrument({ action: fn }, { retain: true }), channel = addons.getChannel(), seen = /* @__PURE__ */ new Set(), spies = [];
2406
+ channel.on(FORCE_REMOUNT, () => spies.forEach((mock) => {
2407
+ var _a;
2408
+ return (_a = mock == null ? void 0 : mock.mockClear) == null ? void 0 : _a.call(mock);
2409
+ }));
2410
+ channel.on(STORY_RENDER_PHASE_CHANGED, ({ newPhase }) => {
2411
+ newPhase === "loading" && spies.forEach((mock) => {
2412
+ var _a;
2413
+ return (_a = mock == null ? void 0 : mock.mockClear) == null ? void 0 : _a.call(mock);
2414
+ });
2415
+ });
2416
+ var addSpies = (id, val, key) => {
2417
+ if (seen.has(val))
2418
+ return val;
2419
+ seen.add(val);
2420
+ try {
2421
+ if (Object.prototype.toString.call(val) === "[object Object]") {
2422
+ for (let [k, v] of Object.entries(val))
2423
+ val[k] = addSpies(id, v, k);
2424
+ return val;
2425
+ }
2426
+ if (Array.isArray(val))
2427
+ return val.map((item, index) => addSpies(id, item, `${key}[${index}]`));
2428
+ if (typeof val == "function" && val.isAction && !val._isMockFunction) {
2429
+ Object.defineProperty(val, "name", { value: key, writable: false }), Object.defineProperty(val, "__storyId__", { value: id, writable: false });
2430
+ let spy = action(val);
2431
+ return spies.push(spy), spy;
2432
+ }
2433
+ } catch {
2434
+ }
2435
+ return val;
2436
+ }, addActionsFromArgTypes = ({ id, initialArgs }) => addSpies(id, initialArgs), instrumentSpies = ({ initialArgs }) => Object.entries(initialArgs).filter(([, value]) => typeof value == "function" && "_isMockFunction" in value && value._isMockFunction && !value._instrumented).reduce((acc, [key, value]) => {
2437
+ let instrumented = instrument({ [key]: () => value }, { retain: true })[key];
2438
+ return acc[key] = instrumented(), value._instrumented = true, acc;
2439
+ }, {}), argsEnhancers = [addActionsFromArgTypes, instrumentSpies], { step: runStep } = instrument({ step: (label, play, context) => play(context) }, { intercept: true }), parameters = { throwPlayFunctionExceptions: false };
2440
+ export {
2441
+ argsEnhancers,
2442
+ parameters,
2443
+ runStep
2444
+ };