@aussieljk/forkbook 0.0.1-2 → 0.0.1-21

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 (536) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +35 -53
  3. package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
  4. package/assets/browser/favicon-wrapper.svg +4 -4
  5. package/assets/browser/favicon.svg +1 -1
  6. package/assets/browser/inter-LICENSE.txt +92 -0
  7. package/assets/browser/inter-variable-italic.woff2 +0 -0
  8. package/assets/browser/inter-variable.woff2 +0 -0
  9. package/assets/browser/mirror-ball.png +0 -0
  10. package/assets/builder-vite/iframe.html +8 -24
  11. package/assets/create/rendererAssets/common/Configure.mdx +100 -100
  12. package/assets/create/rendererAssets/common/button.css +7 -7
  13. package/assets/create/rendererAssets/common/header.css +6 -6
  14. package/assets/create/rendererAssets/common/page.css +12 -12
  15. package/assets/create/templates/react-native/index.expo.js +4 -4
  16. package/assets/create/templates/react-native/index.js +5 -5
  17. package/assets/server/base-preview-body.html +32 -32
  18. package/assets/server/base-preview-head.html +86 -86
  19. package/assets/server/template.ejs +31 -26
  20. package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
  21. package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
  22. package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
  23. package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
  24. package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
  25. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
  26. package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
  27. package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
  28. package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
  29. package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
  30. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  31. package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
  32. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
  33. package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
  34. package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
  35. package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
  36. package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
  37. package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
  38. package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
  39. package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
  40. package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
  41. package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
  42. package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
  43. package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
  44. package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
  45. package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
  46. package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
  47. package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
  48. package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
  49. package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
  50. package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
  51. package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
  52. package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
  53. package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
  54. package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
  55. package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
  56. package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
  57. package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
  58. package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
  59. package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
  60. package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
  61. package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
  62. package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
  63. package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
  64. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  65. package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
  66. package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
  67. package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
  68. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
  69. package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
  70. package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
  71. package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
  72. package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
  73. package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
  74. package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
  75. package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
  76. package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
  77. package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
  78. package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
  79. package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
  80. package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
  81. package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
  82. package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
  83. package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
  84. package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
  85. package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
  86. package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
  87. package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
  88. package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
  89. package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
  90. package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
  91. package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
  92. package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
  93. package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
  94. package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
  95. package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
  96. package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
  97. package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
  98. package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
  99. package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
  100. package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
  101. package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
  102. package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
  103. package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
  104. package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
  105. package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
  106. package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
  107. package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
  108. package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
  109. package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
  110. package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
  111. package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
  112. package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
  113. package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
  114. package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
  115. package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
  116. package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
  117. package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
  118. package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
  119. package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
  120. package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
  121. package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
  122. package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
  123. package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
  124. package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
  125. package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
  126. package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
  127. package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
  128. package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
  129. package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
  130. package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
  131. package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
  132. package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
  133. package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
  134. package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
  135. package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
  136. package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
  137. package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
  138. package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
  139. package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
  140. package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
  141. package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
  142. package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
  143. package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
  144. package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
  145. package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
  146. package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
  147. package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
  148. package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
  149. package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
  150. package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
  151. package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
  152. package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
  153. package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
  154. package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
  155. package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
  156. package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
  157. package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
  158. package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
  159. package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
  160. package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
  161. package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
  162. package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
  163. package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
  164. package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
  165. package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
  166. package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
  167. package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
  168. package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
  169. package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
  170. package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
  171. package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
  172. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
  173. package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
  174. package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
  175. package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
  176. package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
  177. package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
  178. package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
  179. package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
  180. package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
  181. package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
  182. package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
  183. package/dist/actions/decorator.js +18 -22
  184. package/dist/actions/index.d.ts +4 -4
  185. package/dist/actions/index.js +3 -2
  186. package/dist/addon-a11y/index.d.ts +3 -3
  187. package/dist/addon-a11y/index.js +3 -2
  188. package/dist/addon-a11y/manager.js +41 -38
  189. package/dist/addon-a11y/preset.js +7 -7
  190. package/dist/addon-a11y/preview.d.ts +8 -2
  191. package/dist/addon-a11y/preview.js +3 -2
  192. package/dist/addon-comments/manager.js +353 -0
  193. package/dist/addon-comments/preset.js +80 -0
  194. package/dist/addon-comments/preview.js +101 -0
  195. package/dist/addon-docs/blocks.d.ts +123 -85
  196. package/dist/addon-docs/blocks.js +159 -85
  197. package/dist/addon-docs/index.d.ts +21 -21
  198. package/dist/addon-docs/index.js +3 -3
  199. package/dist/addon-docs/manager.js +6 -6
  200. package/dist/addon-docs/preset.js +12 -12
  201. package/dist/addon-docs/preview.d.ts +3 -1
  202. package/dist/addon-docs/preview.js +1 -1
  203. package/dist/addon-links/index.d.ts +2 -1
  204. package/dist/addon-links/index.js +5 -2
  205. package/dist/addon-links/preview.d.ts +1 -1
  206. package/dist/addon-links/preview.js +5 -2
  207. package/dist/addon-links/react/index.js +4 -1
  208. package/dist/addon-mcp/preset.js +203 -84
  209. package/dist/addon-mcp/preview.js +1 -1
  210. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
  211. package/dist/addon-ondevice-actions/index.js +5 -1
  212. package/dist/addon-ondevice-actions/register.js +5 -1
  213. package/dist/addon-ondevice-controls/index.js +1 -1
  214. package/dist/addon-ondevice-controls/register.js +1 -1
  215. package/dist/addon-pseudo-states/index.d.ts +1 -1
  216. package/dist/addon-pseudo-states/index.js +1 -1
  217. package/dist/addon-pseudo-states/manager.js +2 -2
  218. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  219. package/dist/addon-pseudo-states/preview.js +1 -1
  220. package/dist/addon-themes/index.d.ts +7 -6
  221. package/dist/addon-themes/index.js +2 -2
  222. package/dist/addon-themes/manager.js +4 -4
  223. package/dist/addon-themes/postinstall.js +7 -7
  224. package/dist/addon-themes/preview.js +2 -2
  225. package/dist/addon-vitest/constants.js +8 -8
  226. package/dist/addon-vitest/manager.js +32 -23
  227. package/dist/addon-vitest/node/coverage-reporter.js +11 -11
  228. package/dist/addon-vitest/node/vitest.js +37 -37
  229. package/dist/addon-vitest/postinstall.js +10 -10
  230. package/dist/addon-vitest/preset.js +26 -26
  231. package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
  232. package/dist/addon-vitest/vitest-plugin/index.js +83 -73
  233. package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
  234. package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
  235. package/dist/babel/index.d.ts +241 -995
  236. package/dist/babel/index.js +30583 -38
  237. package/dist/backgrounds/index.d.ts +1 -1
  238. package/dist/bin/core.js +122 -110
  239. package/dist/bin/dispatcher.js +18 -16
  240. package/dist/bin/loader.js +17 -16
  241. package/dist/builder-next/index.d.ts +59 -0
  242. package/dist/builder-next/index.js +201 -0
  243. package/dist/builder-vite/index.d.ts +8 -3
  244. package/dist/builder-vite/index.js +80 -25
  245. package/dist/builder-vite/preset.js +13 -13
  246. package/dist/channels/index.d.ts +3 -2
  247. package/dist/channels/index.js +97 -24
  248. package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
  249. package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
  250. package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
  251. package/dist/chunk-BcYKnZln.d.ts +10 -0
  252. package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
  253. package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
  254. package/dist/chunk-CFhJCPSB.d.ts +48 -0
  255. package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
  256. package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
  257. package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
  258. package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
  259. package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
  260. package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
  261. package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
  262. package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
  263. package/dist/chunk-DVIvUVkS.d.ts +195 -0
  264. package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
  265. package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
  266. package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
  267. package/dist/chunk-Susgfkap.d.ts +20 -0
  268. package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
  269. package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
  270. package/dist/cli/index.d.ts +15 -904
  271. package/dist/cli/index.js +49 -5209
  272. package/dist/cli/skills/content/index.d.ts +3 -3
  273. package/dist/cli/skills/content/index.js +3 -3
  274. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  275. package/dist/cli/tools/sdk/child-host.js +17 -17
  276. package/dist/cli/tools/sdk/index.d.ts +4 -4
  277. package/dist/cli/tools/sdk/index.js +18 -18
  278. package/dist/cli-commands/bin/index.js +7 -7
  279. package/dist/client-logger/index.d.ts +20 -21
  280. package/dist/client-logger/index.js +5 -2
  281. package/dist/common/index.d.ts +32 -44
  282. package/dist/common/index.js +89 -98
  283. package/dist/components/index.d.ts +86 -272
  284. package/dist/components/index.js +2759 -8547
  285. package/dist/core-events/index.d.ts +16 -7
  286. package/dist/core-events/index.js +5 -5
  287. package/dist/core-server/index.d.ts +95 -26
  288. package/dist/core-server/index.js +1675 -408
  289. package/dist/core-server/presets/common-manager.js +837 -1335
  290. package/dist/core-server/presets/common-override-preset.js +12 -10
  291. package/dist/core-server/presets/common-preset.js +100 -282
  292. package/dist/create/bin/index.js +7 -7
  293. package/dist/create/index.js +15 -15
  294. package/dist/csf/csf-utils.d.ts +1 -1
  295. package/dist/csf/index.d.ts +6 -6
  296. package/dist/csf/index.js +90 -159
  297. package/dist/csf-tools/index.d.ts +66 -54
  298. package/dist/csf-tools/index.js +19 -17
  299. package/dist/docs-tools/index.d.ts +332 -16
  300. package/dist/docs-tools/index.js +3 -3
  301. package/dist/highlight/index.d.ts +1 -1
  302. package/dist/instrumenter/index.d.ts +5 -5
  303. package/dist/instrumenter/index.js +31 -19
  304. package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
  305. package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
  306. package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
  307. package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
  308. package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
  309. package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
  310. package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
  311. package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
  312. package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
  313. package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
  314. package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
  315. package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
  316. package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
  317. package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
  318. package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
  319. package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
  320. package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
  321. package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
  322. package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
  323. package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
  324. package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
  325. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  326. package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
  327. package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
  328. package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
  329. package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
  330. package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
  331. package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
  332. package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
  333. package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
  334. package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
  335. package/dist/manager/globals-runtime.js +1 -1
  336. package/dist/manager/globals.d.ts +12 -12
  337. package/dist/manager/globals.js +12 -12
  338. package/dist/manager/runtime.js +1 -1
  339. package/dist/manager-api/index.d.ts +1 -1
  340. package/dist/manager-api/index.js +538 -528
  341. package/dist/manager-errors.d.ts +1 -1
  342. package/dist/manager-errors.js +2 -2
  343. package/dist/mcp/index.d.ts +10 -10
  344. package/dist/mcp/index.js +11 -11
  345. package/dist/mocking-utils/index.d.ts +7 -5
  346. package/dist/mocking-utils/index.js +34 -34
  347. package/dist/mocking-utils/mocker-runtime.js +2 -2
  348. package/dist/next/index.d.ts +231 -0
  349. package/dist/next/index.js +398 -0
  350. package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
  351. package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
  352. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
  353. package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
  354. package/dist/nextjs-vite/index.d.ts +4 -4
  355. package/dist/nextjs-vite/index.js +10 -5
  356. package/dist/nextjs-vite/node/index.d.ts +2 -2
  357. package/dist/nextjs-vite/node/index.js +7 -7
  358. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  359. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  360. package/dist/nextjs-vite/preset.js +117 -15
  361. package/dist/nextjs-vite/preview.d.ts +2 -1
  362. package/dist/nextjs-vite/preview.js +1 -1
  363. package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
  364. package/dist/nextjs-vite/vite-plugin/index.js +9 -9
  365. package/dist/nextjs-vite-plugin/index.d.ts +2 -3
  366. package/dist/nextjs-vite-plugin/index.js +24 -49
  367. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  368. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
  369. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
  370. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
  371. package/dist/node-logger/index.d.ts +89 -90
  372. package/dist/node-logger/index.js +11 -12
  373. package/dist/oxc-parser/index.js +15 -14
  374. package/dist/oxc-parser/worker.js +10 -10
  375. package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
  376. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
  377. package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
  378. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
  379. package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
  380. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
  381. package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
  382. package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
  383. package/dist/preview/globals.d.ts +10 -10
  384. package/dist/preview/globals.js +10 -10
  385. package/dist/preview/runtime.js +1 -1
  386. package/dist/preview-api/index.d.ts +3 -3
  387. package/dist/preview-api/index.js +12 -10
  388. package/dist/preview-errors.d.ts +1 -1
  389. package/dist/preview-errors.js +2 -2
  390. package/dist/react/docgen/docgen-worker.js +11 -12
  391. package/dist/react/entry-preview-argtypes.js +1 -1
  392. package/dist/react/entry-preview-docs.js +1 -1
  393. package/dist/react/entry-preview.js +2 -1
  394. package/dist/react/index.d.ts +9 -11
  395. package/dist/react/index.js +8 -6
  396. package/dist/react/preset.js +13 -14
  397. package/dist/react/preview.d.ts +1 -1
  398. package/dist/react/preview.js +5 -4
  399. package/dist/react-native/bin/get-stories.js +12 -12
  400. package/dist/react-native/index.d.ts +48 -47
  401. package/dist/react-native/index.js +64 -249
  402. package/dist/react-native/metro/node.d.ts +3 -3
  403. package/dist/react-native/metro/node.js +10 -9
  404. package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
  405. package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
  406. package/dist/react-native/preview.js +4 -1
  407. package/dist/react-native/scripts/generate.d.ts +1 -1
  408. package/dist/react-native/scripts/generate.js +8 -8
  409. package/dist/react-native/stub.js +1 -1
  410. package/dist/react-native-theming/index.d.ts +2 -58
  411. package/dist/react-native-theming/index.js +63 -2338
  412. package/dist/react-native-ui/index.d.ts +14 -14
  413. package/dist/react-native-ui/index.js +8 -15
  414. package/dist/react-native-ui-common/index.d.ts +32 -12
  415. package/dist/react-native-ui-common/index.js +26 -31
  416. package/dist/react-vite/index.d.ts +2 -2
  417. package/dist/react-vite/node/index.d.ts +3 -3
  418. package/dist/react-vite/node/index.js +7 -7
  419. package/dist/react-vite/preset.d.ts +3 -1
  420. package/dist/react-vite/preset.js +16 -9
  421. package/dist/router/index.d.ts +80 -3
  422. package/dist/router/index.js +66 -12
  423. package/dist/server-errors.d.ts +1 -1
  424. package/dist/server-errors.js +9 -9
  425. package/dist/shared/open-service/index.d.ts +3 -3
  426. package/dist/shared/open-service/index.js +2 -2
  427. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  428. package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
  429. package/dist/telemetry/index.d.ts +38 -274
  430. package/dist/telemetry/index.js +11 -68
  431. package/dist/test/index.d.ts +2 -2
  432. package/dist/test/index.js +765 -511
  433. package/dist/theming/create.d.ts +1 -1
  434. package/dist/theming/create.js +2 -1
  435. package/dist/theming/index.d.ts +6 -6
  436. package/dist/theming/index.js +41 -16
  437. package/dist/types/index.d.ts +2 -2
  438. package/dist/types/index.js +5 -5
  439. package/dist/viewport/index.d.ts +1 -1
  440. package/package.json +69 -69
  441. package/skills/setup/SKILL.md +14 -0
  442. package/skills/stories/SKILL.md +21 -0
  443. package/skills/write-story/SKILL.md +14 -0
  444. package/template/nextjs-vite/cli/js/Button.jsx +2 -2
  445. package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
  446. package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
  447. package/template/nextjs-vite/cli/js/Header.jsx +1 -1
  448. package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
  449. package/template/nextjs-vite/cli/js/Page.jsx +3 -3
  450. package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
  451. package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
  452. package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
  453. package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
  454. package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
  455. package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
  456. package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
  457. package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
  458. package/template/react/cli/js/Button.jsx +2 -2
  459. package/template/react/cli/js/Button.stories.js +6 -6
  460. package/template/react/cli/js/Header.jsx +1 -1
  461. package/template/react/cli/js/Header.stories.js +2 -2
  462. package/template/react/cli/js/Page.jsx +3 -3
  463. package/template/react/cli/js/Page.stories.js +2 -2
  464. package/template/react/cli/ts/Button.stories.ts +6 -6
  465. package/template/react/cli/ts/Button.tsx +2 -2
  466. package/template/react/cli/ts/Header.stories.ts +2 -2
  467. package/template/react/cli/ts/Header.tsx +1 -1
  468. package/template/react/cli/ts/Page.stories.ts +2 -2
  469. package/template/react/cli/ts/Page.tsx +3 -3
  470. package/template/react-vite/cli/js/Button.jsx +2 -2
  471. package/template/react-vite/cli/js/Button.stories.js +6 -6
  472. package/template/react-vite/cli/js/Header.jsx +1 -1
  473. package/template/react-vite/cli/js/Header.stories.js +2 -2
  474. package/template/react-vite/cli/js/Page.jsx +3 -3
  475. package/template/react-vite/cli/js/Page.stories.js +2 -2
  476. package/template/react-vite/cli/ts/Button.stories.ts +6 -6
  477. package/template/react-vite/cli/ts/Button.tsx +2 -2
  478. package/template/react-vite/cli/ts/Header.stories.ts +2 -2
  479. package/template/react-vite/cli/ts/Header.tsx +1 -1
  480. package/template/react-vite/cli/ts/Page.stories.ts +2 -2
  481. package/template/react-vite/cli/ts/Page.tsx +3 -3
  482. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  483. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  484. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  485. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  486. package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
  487. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  488. package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
  489. package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
  490. package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
  491. package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
  492. package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
  493. package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
  494. package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
  495. package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
  496. package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
  497. package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
  498. package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
  499. package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
  500. package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
  501. package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
  502. package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
  503. package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
  504. package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
  505. package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
  506. package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
  507. package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
  508. package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
  509. package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
  510. package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
  511. package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
  512. package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
  513. package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
  514. package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
  515. package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
  516. package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
  517. package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
  518. package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
  519. package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
  520. package/dist/chunk-BTVrWliM.d.ts +0 -115
  521. package/dist/chunk-BfBzpgct.d.ts +0 -916
  522. package/dist/chunk-BxWufQms.d.ts +0 -142
  523. package/dist/chunk-DaVb55-_.d.ts +0 -124
  524. package/dist/core-server/presets/common-manager.css +0 -170
  525. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
  526. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
  527. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
  528. package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
  529. package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
  530. package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
  531. package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
  532. package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
  533. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  534. package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
  535. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
  536. package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
@@ -1,9 +1,609 @@
1
- import { a as __toESM, n as __esmMin, r as __exportAll } from "./globals-runtime-BdGkqNEt.js";
2
- import { m as require_redent } from "./globals-runtime-eLPTIfX-.js";
3
- import { D as require_picocolors_browser } from "./globals-runtime-ZHrQFa3-.js";
4
- import { b as require_lib, y as require_css_escape } from "./globals-runtime-BvM-NY2g.js";
5
- import { d as a, f as init_adobe_css_tools } from "./globals-runtime-DwFqpqya.js";
6
- import { n as getConfig, r as init_dom_esm } from "./globals-runtime-DkAPXCvc.js";
1
+ import { a as __toESM, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./runtime-BdGkqNEt.js";
2
+ import { F as init_dist$1, H as require_css_escape, I as computeAccessibleName$1, P as require_lz_string, R as computeAccessibleDescription$1, W as require_redent, et as require_picocolors_browser } from "./runtime-Bvh_rfnQ.js";
3
+ import { i as require_lib, r as require_ansi_regex } from "./runtime-DS0s7U3c.js";
4
+ //#region ../../node_modules/@adobe/css-tools/dist/esm/adobe-css-tools.mjs
5
+ function o$1(t) {
6
+ return t ? t.trim() : "";
7
+ }
8
+ function c$1(t, i) {
9
+ const e = t && "string" == typeof t.type, s = e ? t : i;
10
+ for (const i in t) {
11
+ const e = t[i];
12
+ Array.isArray(e) ? e.forEach((t) => {
13
+ c$1(t, s);
14
+ }) : e && "object" == typeof e && c$1(e, s);
15
+ }
16
+ return e && Object.defineProperty(t, "parent", {
17
+ configurable: !0,
18
+ writable: !0,
19
+ enumerable: !1,
20
+ value: i || null
21
+ }), t;
22
+ }
23
+ var t$1, i$1, e$1, s$1, n$1, r$1, a$1;
24
+ function init_adobe_css_tools() {
25
+ return (init_adobe_css_tools = __esmMin((() => {
26
+ t$1 = class extends Error {
27
+ reason;
28
+ filename;
29
+ line;
30
+ column;
31
+ source;
32
+ constructor(t, i, e, s, n) {
33
+ super(`${t}:${e}:${s}: ${i}`), this.reason = i, this.filename = t, this.line = e, this.column = s, this.source = n;
34
+ }
35
+ };
36
+ i$1 = class {
37
+ start;
38
+ end;
39
+ source;
40
+ constructor(t, i, e) {
41
+ this.start = t, this.end = i, this.source = e;
42
+ }
43
+ };
44
+ (function(t) {
45
+ t.stylesheet = "stylesheet", t.rule = "rule", t.declaration = "declaration", t.comment = "comment", t.atRule = "at-rule", t.container = "container", t.charset = "charset", t.counterStyle = "counter-style", t.document = "document", t.customMedia = "custom-media", t.fontFace = "font-face", t.fontFeatureValues = "font-feature-values", t.host = "host", t.import = "import", t.keyframes = "keyframes", t.keyframe = "keyframe", t.layer = "layer", t.media = "media", t.namespace = "namespace", t.page = "page", t.pageMarginBox = "page-margin-box", t.positionTry = "position-try", t.property = "property", t.scope = "scope", t.startingStyle = "starting-style", t.supports = "supports", t.viewTransition = "view-transition";
46
+ })(e$1 || (e$1 = {}));
47
+ s$1 = (t, i, e) => {
48
+ let s = e, n = 1e4;
49
+ do {
50
+ const e = i.map((i) => t.indexOf(i, s));
51
+ e.push(t.indexOf("\\", s));
52
+ const r = e.filter((t) => -1 !== t);
53
+ if (0 === r.length) return -1;
54
+ const o = Math.min(...r);
55
+ if ("\\" !== t[o]) return o;
56
+ s = o + 2, n--;
57
+ } while (n > 0);
58
+ throw new Error("Too many escaping");
59
+ };
60
+ n$1 = (t, i, e) => {
61
+ let r = e, o = 1e4;
62
+ do {
63
+ const e = i.map((i) => t.indexOf(i, r));
64
+ e.push(t.indexOf("(", r)), e.push(t.indexOf("\"", r)), e.push(t.indexOf("'", r)), e.push(t.indexOf("\\", r));
65
+ const c = e.filter((t) => -1 !== t);
66
+ if (0 === c.length) return -1;
67
+ const h = Math.min(...c);
68
+ switch (t[h]) {
69
+ case "\\":
70
+ r = h + 2;
71
+ break;
72
+ case "(":
73
+ {
74
+ const i = n$1(t, [")"], h + 1);
75
+ if (-1 === i) return -1;
76
+ r = i + 1;
77
+ }
78
+ break;
79
+ case "\"":
80
+ {
81
+ const i = s$1(t, ["\""], h + 1);
82
+ if (-1 === i) return -1;
83
+ r = i + 1;
84
+ }
85
+ break;
86
+ case "'":
87
+ {
88
+ const i = s$1(t, ["'"], h + 1);
89
+ if (-1 === i) return -1;
90
+ r = i + 1;
91
+ }
92
+ break;
93
+ default: return h;
94
+ }
95
+ o--;
96
+ } while (o > 0);
97
+ throw new Error("Too many escaping");
98
+ };
99
+ r$1 = /\/\*[^]*?(?:\*\/|$)/g;
100
+ a$1 = (s, h) => {
101
+ h = h || {};
102
+ let a = 1, m = 1;
103
+ function u() {
104
+ const t = {
105
+ line: a,
106
+ column: m
107
+ };
108
+ return (e) => (e.position = new i$1(t, {
109
+ line: a,
110
+ column: m
111
+ }, h?.source || ""), g(), e);
112
+ }
113
+ const p = [];
114
+ function l(i) {
115
+ const e = new t$1(h?.source || "", i, a, m, s);
116
+ if (!h?.silent) throw e;
117
+ p.push(e);
118
+ }
119
+ function f() {
120
+ const t = /^{\s*/.exec(s);
121
+ return !!t && (y(t), !0);
122
+ }
123
+ function d() {
124
+ const t = /^}/.exec(s);
125
+ return !!t && (y(t), !0);
126
+ }
127
+ function y(t) {
128
+ const i = t[0];
129
+ return function(t) {
130
+ const i = t.match(/\n/g);
131
+ i && (a += i.length);
132
+ const e = t.lastIndexOf("\n");
133
+ m = ~e ? t.length - e : m + t.length;
134
+ }(i), s = s.slice(i.length), t;
135
+ }
136
+ function g() {
137
+ const t = /^\s*/.exec(s);
138
+ t && y(t);
139
+ }
140
+ function $(t) {
141
+ t = t || [];
142
+ let i = x();
143
+ for (; i;) t.push(i), i = x();
144
+ return t;
145
+ }
146
+ function x() {
147
+ const t = u();
148
+ if ("/" !== s.charAt(0) || "*" !== s.charAt(1)) return;
149
+ const i = /^\/\*[^]*?\*\//.exec(s);
150
+ return i ? (y(i), t({
151
+ type: e$1.comment,
152
+ comment: i[0].slice(2, -2)
153
+ })) : l("End of comment missing");
154
+ }
155
+ function V() {
156
+ const t = n$1(s, ["{"]);
157
+ if (-1 === t || 0 === t) return;
158
+ const i = s.substring(0, t);
159
+ y([i]);
160
+ return ((t, i) => {
161
+ const e = [];
162
+ let s = 0;
163
+ for (; s < t.length;) {
164
+ const r = n$1(t, i, s);
165
+ if (-1 === r) return e.push(t.substring(s)), e;
166
+ e.push(t.substring(s, r)), s = r + 1;
167
+ }
168
+ return e;
169
+ })(o$1(i).replace(r$1, ""), [","]).map((t) => o$1(t));
170
+ }
171
+ function v() {
172
+ const t = u(), i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(s);
173
+ if (!i) return;
174
+ y(i);
175
+ const c = o$1(i[0]), h = /^:\s*/.exec(s);
176
+ if (!h) return l("property missing ':'");
177
+ y(h);
178
+ let a = "";
179
+ const m = n$1(s, [";", "}"]);
180
+ if (-1 !== m) {
181
+ a = s.substring(0, m);
182
+ y([a]), a = o$1(a).replace(r$1, "");
183
+ }
184
+ const p = t({
185
+ type: e$1.declaration,
186
+ property: c.replace(r$1, ""),
187
+ value: a
188
+ }), f = /^[;\s]*/.exec(s);
189
+ return f && y(f), p;
190
+ }
191
+ function w() {
192
+ const t = [];
193
+ if (!f()) return l("missing '{'");
194
+ $(t);
195
+ let i = v();
196
+ for (; i;) t.push(i), $(t), i = v();
197
+ for (; h?.silent && s.length && "}" !== s.charAt(0);) {
198
+ const e = s.indexOf(";"), n = s.indexOf("}");
199
+ if (-1 === e || !(-1 === n || e < n)) break;
200
+ for (y([s.substring(0, e + 1)]), g(), $(t), i = v(); i;) t.push(i), $(t), i = v();
201
+ }
202
+ return d() ? t : l("missing '}'");
203
+ }
204
+ function b() {
205
+ const t = n$1(s, ["{"]);
206
+ if (-1 === t) return !1;
207
+ const i = n$1(s, [";"]), e = n$1(s, ["}"]);
208
+ return !(-1 !== i && i < t) && !(-1 !== e && e < t);
209
+ }
210
+ function k() {
211
+ const t = [];
212
+ if (!f()) return l("missing '{'");
213
+ for ($(t); s.length && "}" !== s.charAt(0);) {
214
+ if ("@" === s.charAt(0)) {
215
+ const i = E();
216
+ if (i) {
217
+ t.push(i), $(t);
218
+ continue;
219
+ }
220
+ }
221
+ if (b()) {
222
+ const i = R();
223
+ if (i) {
224
+ t.push(i), $(t);
225
+ continue;
226
+ }
227
+ }
228
+ const i = v();
229
+ if (!i) {
230
+ if (h?.silent) {
231
+ const i = s.indexOf(";"), e = s.indexOf("}");
232
+ if (-1 !== i && (-1 === e || i < e)) {
233
+ y([s.substring(0, i + 1)]), g(), $(t);
234
+ continue;
235
+ }
236
+ }
237
+ break;
238
+ }
239
+ t.push(i), $(t);
240
+ }
241
+ return d() ? t : l("missing '}'");
242
+ }
243
+ function A() {
244
+ const t = [];
245
+ for (g(), $(t); s.length && "}" !== s.charAt(0);) {
246
+ if ("@" === s.charAt(0)) {
247
+ const i = E();
248
+ if (i) {
249
+ t.push(i), $(t);
250
+ continue;
251
+ }
252
+ }
253
+ if (b()) {
254
+ const i = R();
255
+ if (i) {
256
+ t.push(i), $(t);
257
+ continue;
258
+ }
259
+ }
260
+ const i = v();
261
+ if (!i) {
262
+ if (h?.silent) {
263
+ const i = s.indexOf(";"), e = s.indexOf("}");
264
+ if (-1 !== i && (-1 === e || i < e)) {
265
+ y([s.substring(0, i + 1)]), g(), $(t);
266
+ continue;
267
+ }
268
+ }
269
+ break;
270
+ }
271
+ t.push(i), $(t);
272
+ }
273
+ return t;
274
+ }
275
+ function O() {
276
+ const t = [], i = u();
277
+ let n = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(s);
278
+ for (; n;) {
279
+ const i = y(n);
280
+ t.push(i[1]);
281
+ const e = /^,\s*/.exec(s);
282
+ e && y(e), n = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(s);
283
+ }
284
+ if (t.length) return i({
285
+ type: e$1.keyframe,
286
+ values: t,
287
+ declarations: w() || []
288
+ });
289
+ }
290
+ const F = new RegExp(`^@(${[
291
+ "top-left-corner",
292
+ "top-left",
293
+ "top-center",
294
+ "top-right",
295
+ "top-right-corner",
296
+ "bottom-left-corner",
297
+ "bottom-left",
298
+ "bottom-center",
299
+ "bottom-right",
300
+ "bottom-right-corner",
301
+ "left-top",
302
+ "left-middle",
303
+ "left-bottom",
304
+ "right-top",
305
+ "right-middle",
306
+ "right-bottom"
307
+ ].join("|")})(?![\\w-])\\s*`);
308
+ const j = S("import"), M = S("charset"), T = S("namespace");
309
+ function S(t) {
310
+ const i = new RegExp("^@" + t + "\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");
311
+ return () => {
312
+ const e = u(), n = i.exec(s);
313
+ if (!n) return;
314
+ const r = y(n), o = { type: t };
315
+ return o[t] = r[1].trim(), e(o);
316
+ };
317
+ }
318
+ function E() {
319
+ if ("@" === s[0]) return function() {
320
+ const t = u(), i = /^@([-\w]+)?keyframes\s*/.exec(s);
321
+ if (!i) return;
322
+ const n = y(i)[1], r = /^([-\w]+)\s*/.exec(s);
323
+ if (!r) return l("@keyframes missing name");
324
+ const o = y(r)[1];
325
+ if (!f()) return l("@keyframes missing '{'");
326
+ let c = $(), h = O();
327
+ for (; h;) c.push(h), c = c.concat($()), h = O();
328
+ return d() ? t({
329
+ type: e$1.keyframes,
330
+ name: o,
331
+ vendor: n,
332
+ keyframes: c
333
+ }) : l("@keyframes missing '}'");
334
+ }() || function() {
335
+ const t = u(), i = /^@media *([^{]+)/.exec(s);
336
+ if (!i) return;
337
+ const n = o$1(y(i)[1]);
338
+ if (!f()) return l("@media missing '{'");
339
+ const r = A();
340
+ return d() ? t({
341
+ type: e$1.media,
342
+ media: n,
343
+ rules: r
344
+ }) : l("@media missing '}'");
345
+ }() || function() {
346
+ const t = u(), i = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(s);
347
+ if (!i) return;
348
+ const n = y(i);
349
+ return t({
350
+ type: e$1.customMedia,
351
+ name: o$1(n[1]),
352
+ media: o$1(n[2])
353
+ });
354
+ }() || function() {
355
+ const t = u(), i = /^@supports *([^{]+)/.exec(s);
356
+ if (!i) return;
357
+ const n = o$1(y(i)[1]);
358
+ if (!f()) return l("@supports missing '{'");
359
+ const r = A();
360
+ return d() ? t({
361
+ type: e$1.supports,
362
+ supports: n,
363
+ rules: r
364
+ }) : l("@supports missing '}'");
365
+ }() || j() || M() || T() || function() {
366
+ const t = u(), i = /^@([-\w]+)?document *([^{]+)/.exec(s);
367
+ if (!i) return;
368
+ const n = y(i), r = o$1(n[1]), c = o$1(n[2]);
369
+ if (!f()) return l("@document missing '{'");
370
+ const h = A();
371
+ return d() ? t({
372
+ type: e$1.document,
373
+ document: c,
374
+ vendor: r,
375
+ rules: h
376
+ }) : l("@document missing '}'");
377
+ }() || function() {
378
+ const t = u(), i = /^@page */.exec(s);
379
+ if (!i) return;
380
+ y(i);
381
+ const n = V() || [];
382
+ if (!f()) return l("@page missing '{'");
383
+ const r = [];
384
+ for ($(r); s.length && "}" !== s.charAt(0);) {
385
+ if ("@" === s.charAt(0)) {
386
+ const t = E();
387
+ if (t) {
388
+ r.push(t), $(r);
389
+ continue;
390
+ }
391
+ }
392
+ const t = v();
393
+ if (!t) break;
394
+ r.push(t), $(r);
395
+ }
396
+ return d() ? t({
397
+ type: e$1.page,
398
+ selectors: n,
399
+ declarations: r
400
+ }) : l("@page missing '}'");
401
+ }() || function() {
402
+ const t = u(), i = /^@host\s*/.exec(s);
403
+ if (!i) return;
404
+ if (y(i), !f()) return l("@host missing '{'");
405
+ const n = A();
406
+ return d() ? t({
407
+ type: e$1.host,
408
+ rules: n
409
+ }) : l("@host missing '}'");
410
+ }() || function() {
411
+ const t = u(), i = /^@font-face\s*/.exec(s);
412
+ if (!i) return;
413
+ if (y(i), !f()) return l("@font-face missing '{'");
414
+ let n = $(), r = v();
415
+ for (; r;) n.push(r), n = n.concat($()), r = v();
416
+ return d() ? t({
417
+ type: e$1.fontFace,
418
+ declarations: n
419
+ }) : l("@font-face missing '}'");
420
+ }() || function() {
421
+ const t = u(), i = /^@font-feature-values\s+([^{]+)/.exec(s);
422
+ if (!i) return;
423
+ const n = o$1(y(i)[1]);
424
+ if (!f()) return l("@font-feature-values missing '{'");
425
+ const r = A();
426
+ return d() ? t({
427
+ type: e$1.fontFeatureValues,
428
+ fontFamily: n,
429
+ rules: r
430
+ }) : l("@font-feature-values missing '}'");
431
+ }() || function() {
432
+ const t = u(), i = /^@container *([^{]+)/.exec(s);
433
+ if (!i) return;
434
+ const n = o$1(y(i)[1]);
435
+ if (!f()) return l("@container missing '{'");
436
+ const r = A();
437
+ return d() ? t({
438
+ type: e$1.container,
439
+ container: n,
440
+ rules: r
441
+ }) : l("@container missing '}'");
442
+ }() || function() {
443
+ const t = u(), i = /^@starting-style\s*/.exec(s);
444
+ if (!i) return;
445
+ if (y(i), !f()) return l("@starting-style missing '{'");
446
+ const n = A();
447
+ return d() ? t({
448
+ type: e$1.startingStyle,
449
+ rules: n
450
+ }) : l("@starting-style missing '}'");
451
+ }() || function() {
452
+ const t = u(), i = /^@layer *([^{;@]+)/.exec(s);
453
+ if (!i) return;
454
+ const n = o$1(y(i)[1]);
455
+ if (!f()) {
456
+ const i = /^[;\s]*/.exec(s);
457
+ return i && y(i), t({
458
+ type: e$1.layer,
459
+ layer: n
460
+ });
461
+ }
462
+ const r = A();
463
+ return d() ? t({
464
+ type: e$1.layer,
465
+ layer: n,
466
+ rules: r
467
+ }) : l("@layer missing '}'");
468
+ }() || function() {
469
+ const t = u(), i = /^@property\s+(--[-\w]+)\s*/.exec(s);
470
+ if (!i) return;
471
+ const n = y(i)[1];
472
+ if (!f()) return l("@property missing '{'");
473
+ let r = $(), o = v();
474
+ for (; o;) r.push(o), r = r.concat($()), o = v();
475
+ return d() ? t({
476
+ type: e$1.property,
477
+ name: n,
478
+ declarations: r
479
+ }) : l("@property missing '}'");
480
+ }() || function() {
481
+ const t = u(), i = /^@counter-style\s+([-\w]+)\s*/.exec(s);
482
+ if (!i) return;
483
+ const n = y(i)[1];
484
+ if (!f()) return l("@counter-style missing '{'");
485
+ let r = $(), o = v();
486
+ for (; o;) r.push(o), r = r.concat($()), o = v();
487
+ return d() ? t({
488
+ type: e$1.counterStyle,
489
+ name: n,
490
+ declarations: r
491
+ }) : l("@counter-style missing '}'");
492
+ }() || function() {
493
+ const t = u(), i = /^@scope\s*([^{]*)/.exec(s);
494
+ if (!i) return;
495
+ const n = o$1(y(i)[1]);
496
+ if (!f()) return l("@scope missing '{'");
497
+ const r = A();
498
+ return d() ? t({
499
+ type: e$1.scope,
500
+ scope: n,
501
+ rules: r
502
+ }) : l("@scope missing '}'");
503
+ }() || function() {
504
+ const t = u(), i = /^@view-transition\s*/.exec(s);
505
+ if (!i) return;
506
+ if (y(i), !f()) return l("@view-transition missing '{'");
507
+ let n = $(), r = v();
508
+ for (; r;) n.push(r), n = n.concat($()), r = v();
509
+ return d() ? t({
510
+ type: e$1.viewTransition,
511
+ declarations: n
512
+ }) : l("@view-transition missing '}'");
513
+ }() || function() {
514
+ const t = u(), i = /^@position-try\s+(--[-\w]+)\s*/.exec(s);
515
+ if (!i) return;
516
+ const n = y(i)[1];
517
+ if (!f()) return l("@position-try missing '{'");
518
+ let r = $(), o = v();
519
+ for (; o;) r.push(o), r = r.concat($()), o = v();
520
+ return d() ? t({
521
+ type: e$1.positionTry,
522
+ name: n,
523
+ declarations: r
524
+ }) : l("@position-try missing '}'");
525
+ }() || function() {
526
+ const t = u(), i = F.exec(s);
527
+ if (!i) return;
528
+ const n = y(i)[1];
529
+ if (!f()) return l(`@${n} missing '{'`);
530
+ let r = $(), o = v();
531
+ for (; o;) r.push(o), r = r.concat($()), o = v();
532
+ return d() ? t({
533
+ type: e$1.pageMarginBox,
534
+ name: n,
535
+ declarations: r
536
+ }) : l(`@${n} missing '}'`);
537
+ }() || function() {
538
+ const t = u(), i = /^@([-\w]+)\s*/.exec(s);
539
+ if (!i) return;
540
+ const r = y(i)[1];
541
+ let c = "";
542
+ const h = n$1(s, ["{", ";"]);
543
+ -1 !== h && h > 0 && (c = o$1(s.substring(0, h)), y([s.substring(0, h)]));
544
+ if (f()) {
545
+ const i = A();
546
+ return d() ? t({
547
+ type: e$1.atRule,
548
+ name: r,
549
+ prelude: c,
550
+ rules: i
551
+ }) : l(`@${r} missing '}'`);
552
+ }
553
+ const a = /^[;\s]*/.exec(s);
554
+ return a && y(a), t({
555
+ type: e$1.atRule,
556
+ name: r,
557
+ prelude: c
558
+ });
559
+ }();
560
+ }
561
+ function R() {
562
+ const t = u(), i = V();
563
+ return i ? ($(), t({
564
+ type: e$1.rule,
565
+ selectors: i,
566
+ declarations: k() || []
567
+ })) : l("selector missing");
568
+ }
569
+ return c$1(function() {
570
+ const t = function() {
571
+ let t;
572
+ const i = [];
573
+ g(), $(i);
574
+ for (; s.length;) {
575
+ if ("}" === s.charAt(0)) {
576
+ if (h?.silent) {
577
+ l("extra '}'");
578
+ y(["}"]), g(), $(i);
579
+ continue;
580
+ }
581
+ break;
582
+ }
583
+ if (t = E() || R(), !t) {
584
+ if (h?.silent) {
585
+ y([s.charAt(0)]), g(), $(i);
586
+ continue;
587
+ }
588
+ break;
589
+ }
590
+ i.push(t), $(i);
591
+ }
592
+ return i;
593
+ }();
594
+ return {
595
+ type: e$1.stylesheet,
596
+ stylesheet: {
597
+ source: h?.source,
598
+ rules: t,
599
+ parsingErrors: p
600
+ }
601
+ };
602
+ }());
603
+ };
604
+ })))();
605
+ }
606
+ //#endregion
7
607
  //#region ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
8
608
  function isCallable(fn) {
9
609
  return typeof fn === "function" || toStr.call(fn) === "[object Function]";
@@ -580,7 +1180,7 @@ function getControlOfLabel(label) {
580
1180
  * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels
581
1181
  * @param element
582
1182
  */
583
- function getLabels(element) {
1183
+ function getLabels$1(element) {
584
1184
  var labelsProperty = element.labels;
585
1185
  if (labelsProperty === null) return labelsProperty;
586
1186
  if (labelsProperty !== void 0) return arrayFrom(labelsProperty);
@@ -694,7 +1294,7 @@ function computeTextAlternative(root) {
694
1294
  if (node.type === "submit") return "Submit";
695
1295
  if (node.type === "reset") return "Reset";
696
1296
  }
697
- var labels = getLabels(node);
1297
+ var labels = getLabels$1(node);
698
1298
  if (labels !== null && labels.length !== 0) {
699
1299
  consultedNodes.add(node);
700
1300
  return arrayFrom(labels).map(function(element) {
@@ -969,7 +1569,7 @@ function checkHtmlElement(htmlElement, ...args) {
969
1569
  if (!(htmlElement instanceof window.HTMLElement) && !(htmlElement instanceof window.SVGElement)) throw new HtmlElementTypeError(htmlElement, ...args);
970
1570
  }
971
1571
  function parseCSS(css, ...args) {
972
- const ast = a(`selector { ${css} }`, { silent: true }).stylesheet;
1572
+ const ast = a$1(`selector { ${css} }`, { silent: true }).stylesheet;
973
1573
  if (ast.parsingErrors && ast.parsingErrors.length > 0) {
974
1574
  const { reason, line } = ast.parsingErrors[0];
975
1575
  throw new InvalidCSSError({
@@ -989,14 +1589,14 @@ function getMessage(context, matcher, expectedLabel, expectedValue, receivedLabe
989
1589
  `${receivedLabel}:\n${context.utils.RECEIVED_COLOR((0, import_redent$1.default)(display(context, receivedValue), 2))}`
990
1590
  ].join("\n");
991
1591
  }
992
- function matches(textToMatch, matcher) {
1592
+ function matches$1(textToMatch, matcher) {
993
1593
  if (matcher instanceof RegExp) return matcher.test(textToMatch);
994
1594
  else return textToMatch.includes(String(matcher));
995
1595
  }
996
1596
  function deprecate(name, replacementText) {
997
1597
  console.warn(`Warning: ${name} has been deprecated and will be removed in future updates.`, replacementText);
998
1598
  }
999
- function normalize$1(text) {
1599
+ function normalize$2(text) {
1000
1600
  return text.replace(/\s+/g, " ").trim();
1001
1601
  }
1002
1602
  function getTag(element) {
@@ -1150,10 +1750,10 @@ function toContainHTML(container, htmlText) {
1150
1750
  }
1151
1751
  function toHaveTextContent(node, checkWith, options = { normalizeWhitespace: true }) {
1152
1752
  checkNode(node, toHaveTextContent, this);
1153
- const textContent = options.normalizeWhitespace ? normalize$1(node.textContent) : node.textContent.replace(/\u00a0/g, " ");
1753
+ const textContent = options.normalizeWhitespace ? normalize$2(node.textContent) : node.textContent.replace(/\u00a0/g, " ");
1154
1754
  const checkingWithEmptyString = textContent !== "" && checkWith === "";
1155
1755
  return {
1156
- pass: !checkingWithEmptyString && matches(textContent, checkWith),
1756
+ pass: !checkingWithEmptyString && matches$1(textContent, checkWith),
1157
1757
  message: () => {
1158
1758
  const to = this.isNot ? "not to" : "to";
1159
1759
  return getMessage(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveTextContent`, "element", ""), checkingWithEmptyString ? `Checking with empty string will always match, use .toBeEmptyDOMElement() instead` : `Expected element ${to} have text content`, checkWith, "Received", textContent);
@@ -1193,7 +1793,7 @@ function toHaveAccessibleErrorMessage(htmlElement, expectedAccessibleErrorMessag
1193
1793
  return getMessage(this, this.utils.matcherHint(method, "element"), "Expected element to be marked as invalid with attribute", `${ariaInvalidName}="${String(true)}"`, "Received", htmlElement.hasAttribute("aria-invalid") ? `${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}` : null);
1194
1794
  }
1195
1795
  };
1196
- const error = normalize$1(htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? "");
1796
+ const error = normalize$2(htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? "");
1197
1797
  return {
1198
1798
  pass: expectedAccessibleErrorMessage === void 0 ? Boolean(error) : expectedAccessibleErrorMessage instanceof RegExp ? expectedAccessibleErrorMessage.test(error) : this.equals(error, expectedAccessibleErrorMessage),
1199
1799
  message: () => {
@@ -1214,10 +1814,10 @@ function toHaveRole(htmlElement, expectedRole) {
1214
1814
  }
1215
1815
  function getExplicitOrImplicitRoles(htmlElement) {
1216
1816
  if (htmlElement.hasAttribute("role")) return htmlElement.getAttribute("role").split(" ").filter(Boolean);
1217
- return getImplicitAriaRoles(htmlElement);
1817
+ return getImplicitAriaRoles$1(htmlElement);
1218
1818
  }
1219
- function getImplicitAriaRoles(currentNode) {
1220
- for (const { match, roles } of elementRoleList) if (match(currentNode)) return [...roles];
1819
+ function getImplicitAriaRoles$1(currentNode) {
1820
+ for (const { match, roles } of elementRoleList$1) if (match(currentNode)) return [...roles];
1221
1821
  /* istanbul ignore next */
1222
1822
  return [];
1223
1823
  }
@@ -1235,7 +1835,7 @@ function getImplicitAriaRoles(currentNode) {
1235
1835
  * available in all jest-dom environments? Why do other matchers in this package
1236
1836
  * not use them like this?
1237
1837
  */
1238
- function buildElementRoleList(elementRolesMap) {
1838
+ function buildElementRoleList$1(elementRolesMap) {
1239
1839
  function makeElementSelector({ name, attributes }) {
1240
1840
  return `${name}${attributes.map(({ name: attributeName, value, constraints = [] }) => {
1241
1841
  if (constraints.indexOf("undefined") !== -1) return `:not([${attributeName}])`;
@@ -1500,12 +2100,12 @@ function isFirstLegendChildOfFieldset(element, parent) {
1500
2100
  function isElementDisabledByParent(element, parent) {
1501
2101
  return isElementDisabled(parent) && !isFirstLegendChildOfFieldset(element, parent);
1502
2102
  }
1503
- function isCustomElement(tag) {
2103
+ function isCustomElement$1(tag) {
1504
2104
  return tag.includes("-");
1505
2105
  }
1506
2106
  function canElementBeDisabled(element) {
1507
2107
  const tag = getTag(element);
1508
- return FORM_TAGS$2.includes(tag) || isCustomElement(tag);
2108
+ return FORM_TAGS$2.includes(tag) || isCustomElement$1(tag);
1509
2109
  }
1510
2110
  function isElementDisabled(element) {
1511
2111
  return canElementBeDisabled(element) && element.hasAttribute("disabled");
@@ -1695,10 +2295,10 @@ function supportedRolesSentence() {
1695
2295
  return toSentence(supportedRoles().map((role) => `role="${role}"`), { lastWordConnector: " or " });
1696
2296
  }
1697
2297
  function supportedRoles() {
1698
- return import_lib$1.roles.keys().filter(roleSupportsChecked);
2298
+ return import_lib$2.roles.keys().filter(roleSupportsChecked);
1699
2299
  }
1700
2300
  function roleSupportsChecked(role) {
1701
- return import_lib$1.roles.get(role)?.props["aria-checked"] !== void 0;
2301
+ return import_lib$2.roles.get(role)?.props["aria-checked"] !== void 0;
1702
2302
  }
1703
2303
  function toBePartiallyChecked(element) {
1704
2304
  checkHtmlElement(element, toBePartiallyChecked, this);
@@ -1738,7 +2338,7 @@ function toHaveDescription(htmlElement, checkWith) {
1738
2338
  let description = "";
1739
2339
  if (descriptionIDs.length > 0) {
1740
2340
  const document = htmlElement.ownerDocument;
1741
- description = normalize$1(descriptionIDs.map((descriptionID) => document.getElementById(descriptionID)).filter(Boolean).map((el) => el.textContent).join(" "));
2341
+ description = normalize$2(descriptionIDs.map((descriptionID) => document.getElementById(descriptionID)).filter(Boolean).map((el) => el.textContent).join(" "));
1742
2342
  }
1743
2343
  return {
1744
2344
  pass: expectsDescription ? checkWith instanceof RegExp ? checkWith.test(description) : this.equals(description, checkWith) : Boolean(description),
@@ -1765,7 +2365,7 @@ function toHaveErrorMessage(htmlElement, checkWith) {
1765
2365
  let errormessage = "";
1766
2366
  if (errormessageIDs.length > 0) {
1767
2367
  const document = htmlElement.ownerDocument;
1768
- errormessage = normalize$1(errormessageIDs.map((errormessageID) => document.getElementById(errormessageID)).filter(Boolean).map((el) => el.textContent).join(" "));
2368
+ errormessage = normalize$2(errormessageIDs.map((errormessageID) => document.getElementById(errormessageID)).filter(Boolean).map((el) => el.textContent).join(" "));
1769
2369
  }
1770
2370
  return {
1771
2371
  pass: expectsErrorMessage ? checkWith instanceof RegExp ? checkWith.test(errormessage) : this.equals(errormessage, checkWith) : Boolean(errormessage),
@@ -1893,13 +2493,13 @@ function toAppearBefore(element, secondElement) {
1893
2493
  function toAppearAfter(element, secondElement) {
1894
2494
  return checkToAppear("toAppearAfter", DOCUMENT_POSITION_PRECEDING).apply(this, [element, secondElement]);
1895
2495
  }
1896
- var import_redent$1, import_lib$1, import_picocolors_browser, import_css_escape$1, GenericTypeError, HtmlElementTypeError, NodeTypeError, InvalidCSSError, rolesSupportingValues, ariaInvalidName, validStates, elementRoleList, FORM_TAGS$2, FORM_TAGS$1, ARIA_FORM_TAGS, UNSUPPORTED_INPUT_TYPES, SUPPORTED_ARIA_ROLES, FORM_TAGS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITIONS_STRINGS;
2496
+ var import_redent$1, import_lib$2, import_picocolors_browser, import_css_escape$1, GenericTypeError, HtmlElementTypeError, NodeTypeError, InvalidCSSError, rolesSupportingValues, ariaInvalidName, validStates, elementRoleList$1, FORM_TAGS$2, FORM_TAGS$1, ARIA_FORM_TAGS, UNSUPPORTED_INPUT_TYPES, SUPPORTED_ARIA_ROLES, FORM_TAGS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITIONS_STRINGS;
1897
2497
  function init_matchers_35e4d3bd() {
1898
2498
  return (init_matchers_35e4d3bd = __esmMin((() => {
1899
2499
  import_redent$1 = /* @__PURE__ */ __toESM(require_redent(), 1);
1900
2500
  init_adobe_css_tools();
1901
2501
  init_dist();
1902
- import_lib$1 = require_lib();
2502
+ import_lib$2 = require_lib();
1903
2503
  import_picocolors_browser = /* @__PURE__ */ __toESM(require_picocolors_browser(), 1);
1904
2504
  import_css_escape$1 = /* @__PURE__ */ __toESM(require_css_escape(), 1);
1905
2505
  GenericTypeError = class extends Error {
@@ -1924,132 +2524,3370 @@ function init_matchers_35e4d3bd() {
1924
2524
  super("be an HTMLElement or an SVGElement", ...args);
1925
2525
  }
1926
2526
  };
1927
- NodeTypeError = class extends GenericTypeError {
1928
- constructor(...args) {
1929
- super("be a Node", ...args);
2527
+ NodeTypeError = class extends GenericTypeError {
2528
+ constructor(...args) {
2529
+ super("be a Node", ...args);
2530
+ }
2531
+ };
2532
+ InvalidCSSError = class extends Error {
2533
+ constructor(received, matcherFn, context) {
2534
+ super();
2535
+ /* istanbul ignore next */
2536
+ if (Error.captureStackTrace) Error.captureStackTrace(this, matcherFn);
2537
+ this.message = [
2538
+ received.message,
2539
+ "",
2540
+ context.utils.RECEIVED_COLOR(`Failing css:`),
2541
+ context.utils.RECEIVED_COLOR(`${received.css}`)
2542
+ ].join("\n");
2543
+ }
2544
+ };
2545
+ rolesSupportingValues = [
2546
+ "meter",
2547
+ "progressbar",
2548
+ "slider",
2549
+ "spinbutton"
2550
+ ];
2551
+ ariaInvalidName = "aria-invalid";
2552
+ validStates = ["false"];
2553
+ elementRoleList$1 = buildElementRoleList$1(import_lib$2.elementRoles);
2554
+ FORM_TAGS$2 = [
2555
+ "fieldset",
2556
+ "input",
2557
+ "select",
2558
+ "optgroup",
2559
+ "option",
2560
+ "button",
2561
+ "textarea"
2562
+ ];
2563
+ FORM_TAGS$1 = ["select", "textarea"];
2564
+ ARIA_FORM_TAGS = [
2565
+ "input",
2566
+ "select",
2567
+ "textarea"
2568
+ ];
2569
+ UNSUPPORTED_INPUT_TYPES = [
2570
+ "color",
2571
+ "hidden",
2572
+ "range",
2573
+ "submit",
2574
+ "image",
2575
+ "reset"
2576
+ ];
2577
+ SUPPORTED_ARIA_ROLES = [
2578
+ "checkbox",
2579
+ "combobox",
2580
+ "gridcell",
2581
+ "listbox",
2582
+ "radiogroup",
2583
+ "spinbutton",
2584
+ "textbox",
2585
+ "tree"
2586
+ ];
2587
+ FORM_TAGS = [
2588
+ "form",
2589
+ "input",
2590
+ "select",
2591
+ "textarea"
2592
+ ];
2593
+ DOCUMENT_POSITION_DISCONNECTED = 1;
2594
+ DOCUMENT_POSITION_PRECEDING = 2;
2595
+ DOCUMENT_POSITION_FOLLOWING = 4;
2596
+ DOCUMENT_POSITION_CONTAINS = 8;
2597
+ DOCUMENT_POSITION_CONTAINED_BY = 16;
2598
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;
2599
+ DOCUMENT_POSITIONS_STRINGS = {
2600
+ [DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED",
2601
+ [DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING",
2602
+ [DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING",
2603
+ [DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS",
2604
+ [DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
2605
+ [DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
2606
+ };
2607
+ })))();
2608
+ }
2609
+ //#endregion
2610
+ //#region ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
2611
+ var matchers_exports = /* @__PURE__ */ __exportAll({
2612
+ toAppearAfter: () => toAppearAfter,
2613
+ toAppearBefore: () => toAppearBefore,
2614
+ toBeChecked: () => toBeChecked,
2615
+ toBeDisabled: () => toBeDisabled,
2616
+ toBeEmpty: () => toBeEmpty,
2617
+ toBeEmptyDOMElement: () => toBeEmptyDOMElement,
2618
+ toBeEnabled: () => toBeEnabled,
2619
+ toBeInTheDOM: () => toBeInTheDOM,
2620
+ toBeInTheDocument: () => toBeInTheDocument,
2621
+ toBeInvalid: () => toBeInvalid,
2622
+ toBePartiallyChecked: () => toBePartiallyChecked,
2623
+ toBePartiallyPressed: () => toBePartiallyPressed,
2624
+ toBePressed: () => toBePressed,
2625
+ toBeRequired: () => toBeRequired,
2626
+ toBeValid: () => toBeValid,
2627
+ toBeVisible: () => toBeVisible,
2628
+ toContainElement: () => toContainElement,
2629
+ toContainHTML: () => toContainHTML,
2630
+ toHaveAccessibleDescription: () => toHaveAccessibleDescription,
2631
+ toHaveAccessibleErrorMessage: () => toHaveAccessibleErrorMessage,
2632
+ toHaveAccessibleName: () => toHaveAccessibleName,
2633
+ toHaveAttribute: () => toHaveAttribute,
2634
+ toHaveClass: () => toHaveClass,
2635
+ toHaveDescription: () => toHaveDescription,
2636
+ toHaveDisplayValue: () => toHaveDisplayValue,
2637
+ toHaveErrorMessage: () => toHaveErrorMessage,
2638
+ toHaveFocus: () => toHaveFocus,
2639
+ toHaveFormValues: () => toHaveFormValues,
2640
+ toHaveRole: () => toHaveRole,
2641
+ toHaveSelection: () => toHaveSelection,
2642
+ toHaveStyle: () => toHaveStyle,
2643
+ toHaveTextContent: () => toHaveTextContent,
2644
+ toHaveValue: () => toHaveValue
2645
+ });
2646
+ function init_matchers() {
2647
+ return (init_matchers = __esmMin((() => {
2648
+ init_matchers_35e4d3bd();
2649
+ require_redent();
2650
+ init_dist();
2651
+ require_lib();
2652
+ require_css_escape();
2653
+ })))();
2654
+ }
2655
+ //#endregion
2656
+ //#region ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
2657
+ function _objectWithoutPropertiesLoose(r, e) {
2658
+ if (null == r) return {};
2659
+ var t = {};
2660
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2661
+ if (-1 !== e.indexOf(n)) continue;
2662
+ t[n] = r[n];
2663
+ }
2664
+ return t;
2665
+ }
2666
+ //#endregion
2667
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/node_modules/ansi-styles/index.js
2668
+ var require_ansi_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2669
+ const ANSI_BACKGROUND_OFFSET = 10;
2670
+ const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
2671
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
2672
+ function assembleStyles() {
2673
+ const codes = /* @__PURE__ */ new Map();
2674
+ const styles = {
2675
+ modifier: {
2676
+ reset: [0, 0],
2677
+ bold: [1, 22],
2678
+ dim: [2, 22],
2679
+ italic: [3, 23],
2680
+ underline: [4, 24],
2681
+ overline: [53, 55],
2682
+ inverse: [7, 27],
2683
+ hidden: [8, 28],
2684
+ strikethrough: [9, 29]
2685
+ },
2686
+ color: {
2687
+ black: [30, 39],
2688
+ red: [31, 39],
2689
+ green: [32, 39],
2690
+ yellow: [33, 39],
2691
+ blue: [34, 39],
2692
+ magenta: [35, 39],
2693
+ cyan: [36, 39],
2694
+ white: [37, 39],
2695
+ blackBright: [90, 39],
2696
+ redBright: [91, 39],
2697
+ greenBright: [92, 39],
2698
+ yellowBright: [93, 39],
2699
+ blueBright: [94, 39],
2700
+ magentaBright: [95, 39],
2701
+ cyanBright: [96, 39],
2702
+ whiteBright: [97, 39]
2703
+ },
2704
+ bgColor: {
2705
+ bgBlack: [40, 49],
2706
+ bgRed: [41, 49],
2707
+ bgGreen: [42, 49],
2708
+ bgYellow: [43, 49],
2709
+ bgBlue: [44, 49],
2710
+ bgMagenta: [45, 49],
2711
+ bgCyan: [46, 49],
2712
+ bgWhite: [47, 49],
2713
+ bgBlackBright: [100, 49],
2714
+ bgRedBright: [101, 49],
2715
+ bgGreenBright: [102, 49],
2716
+ bgYellowBright: [103, 49],
2717
+ bgBlueBright: [104, 49],
2718
+ bgMagentaBright: [105, 49],
2719
+ bgCyanBright: [106, 49],
2720
+ bgWhiteBright: [107, 49]
2721
+ }
2722
+ };
2723
+ styles.color.gray = styles.color.blackBright;
2724
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2725
+ styles.color.grey = styles.color.blackBright;
2726
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2727
+ for (const [groupName, group] of Object.entries(styles)) {
2728
+ for (const [styleName, style] of Object.entries(group)) {
2729
+ styles[styleName] = {
2730
+ open: `\u001B[${style[0]}m`,
2731
+ close: `\u001B[${style[1]}m`
2732
+ };
2733
+ group[styleName] = styles[styleName];
2734
+ codes.set(style[0], style[1]);
2735
+ }
2736
+ Object.defineProperty(styles, groupName, {
2737
+ value: group,
2738
+ enumerable: false
2739
+ });
2740
+ }
2741
+ Object.defineProperty(styles, "codes", {
2742
+ value: codes,
2743
+ enumerable: false
2744
+ });
2745
+ styles.color.close = "\x1B[39m";
2746
+ styles.bgColor.close = "\x1B[49m";
2747
+ styles.color.ansi256 = wrapAnsi256();
2748
+ styles.color.ansi16m = wrapAnsi16m();
2749
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
2750
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
2751
+ Object.defineProperties(styles, {
2752
+ rgbToAnsi256: {
2753
+ value: (red, green, blue) => {
2754
+ if (red === green && green === blue) {
2755
+ if (red < 8) return 16;
2756
+ if (red > 248) return 231;
2757
+ return Math.round((red - 8) / 247 * 24) + 232;
2758
+ }
2759
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
2760
+ },
2761
+ enumerable: false
2762
+ },
2763
+ hexToRgb: {
2764
+ value: (hex) => {
2765
+ const matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
2766
+ if (!matches) return [
2767
+ 0,
2768
+ 0,
2769
+ 0
2770
+ ];
2771
+ let { colorString } = matches.groups;
2772
+ if (colorString.length === 3) colorString = colorString.split("").map((character) => character + character).join("");
2773
+ const integer = Number.parseInt(colorString, 16);
2774
+ return [
2775
+ integer >> 16 & 255,
2776
+ integer >> 8 & 255,
2777
+ integer & 255
2778
+ ];
2779
+ },
2780
+ enumerable: false
2781
+ },
2782
+ hexToAnsi256: {
2783
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
2784
+ enumerable: false
2785
+ }
2786
+ });
2787
+ return styles;
2788
+ }
2789
+ Object.defineProperty(module, "exports", {
2790
+ enumerable: true,
2791
+ get: assembleStyles
2792
+ });
2793
+ }));
2794
+ //#endregion
2795
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js
2796
+ var require_collections = /* @__PURE__ */ __commonJSMin(((exports) => {
2797
+ Object.defineProperty(exports, "__esModule", { value: true });
2798
+ exports.printIteratorEntries = printIteratorEntries;
2799
+ exports.printIteratorValues = printIteratorValues;
2800
+ exports.printListItems = printListItems;
2801
+ exports.printObjectProperties = printObjectProperties;
2802
+ /**
2803
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2804
+ *
2805
+ * This source code is licensed under the MIT license found in the
2806
+ * LICENSE file in the root directory of this source tree.
2807
+ *
2808
+ */
2809
+ const getKeysOfEnumerableProperties = (object, compareKeys) => {
2810
+ const keys = Object.keys(object).sort(compareKeys);
2811
+ if (Object.getOwnPropertySymbols) Object.getOwnPropertySymbols(object).forEach((symbol) => {
2812
+ if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) keys.push(symbol);
2813
+ });
2814
+ return keys;
2815
+ };
2816
+ /**
2817
+ * Return entries (for example, of a map)
2818
+ * with spacing, indentation, and comma
2819
+ * without surrounding punctuation (for example, braces)
2820
+ */
2821
+ function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
2822
+ let result = "";
2823
+ let current = iterator.next();
2824
+ if (!current.done) {
2825
+ result += config.spacingOuter;
2826
+ const indentationNext = indentation + config.indent;
2827
+ while (!current.done) {
2828
+ const name = printer(current.value[0], config, indentationNext, depth, refs);
2829
+ const value = printer(current.value[1], config, indentationNext, depth, refs);
2830
+ result += indentationNext + name + separator + value;
2831
+ current = iterator.next();
2832
+ if (!current.done) result += "," + config.spacingInner;
2833
+ else if (!config.min) result += ",";
2834
+ }
2835
+ result += config.spacingOuter + indentation;
2836
+ }
2837
+ return result;
2838
+ }
2839
+ /**
2840
+ * Return values (for example, of a set)
2841
+ * with spacing, indentation, and comma
2842
+ * without surrounding punctuation (braces or brackets)
2843
+ */
2844
+ function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
2845
+ let result = "";
2846
+ let current = iterator.next();
2847
+ if (!current.done) {
2848
+ result += config.spacingOuter;
2849
+ const indentationNext = indentation + config.indent;
2850
+ while (!current.done) {
2851
+ result += indentationNext + printer(current.value, config, indentationNext, depth, refs);
2852
+ current = iterator.next();
2853
+ if (!current.done) result += "," + config.spacingInner;
2854
+ else if (!config.min) result += ",";
2855
+ }
2856
+ result += config.spacingOuter + indentation;
2857
+ }
2858
+ return result;
2859
+ }
2860
+ /**
2861
+ * Return items (for example, of an array)
2862
+ * with spacing, indentation, and comma
2863
+ * without surrounding punctuation (for example, brackets)
2864
+ **/
2865
+ function printListItems(list, config, indentation, depth, refs, printer) {
2866
+ let result = "";
2867
+ if (list.length) {
2868
+ result += config.spacingOuter;
2869
+ const indentationNext = indentation + config.indent;
2870
+ for (let i = 0; i < list.length; i++) {
2871
+ result += indentationNext;
2872
+ if (i in list) result += printer(list[i], config, indentationNext, depth, refs);
2873
+ if (i < list.length - 1) result += "," + config.spacingInner;
2874
+ else if (!config.min) result += ",";
2875
+ }
2876
+ result += config.spacingOuter + indentation;
2877
+ }
2878
+ return result;
2879
+ }
2880
+ /**
2881
+ * Return properties of an object
2882
+ * with spacing, indentation, and comma
2883
+ * without surrounding punctuation (for example, braces)
2884
+ */
2885
+ function printObjectProperties(val, config, indentation, depth, refs, printer) {
2886
+ let result = "";
2887
+ const keys = getKeysOfEnumerableProperties(val, config.compareKeys);
2888
+ if (keys.length) {
2889
+ result += config.spacingOuter;
2890
+ const indentationNext = indentation + config.indent;
2891
+ for (let i = 0; i < keys.length; i++) {
2892
+ const key = keys[i];
2893
+ const name = printer(key, config, indentationNext, depth, refs);
2894
+ const value = printer(val[key], config, indentationNext, depth, refs);
2895
+ result += indentationNext + name + ": " + value;
2896
+ if (i < keys.length - 1) result += "," + config.spacingInner;
2897
+ else if (!config.min) result += ",";
2898
+ }
2899
+ result += config.spacingOuter + indentation;
2900
+ }
2901
+ return result;
2902
+ }
2903
+ }));
2904
+ //#endregion
2905
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
2906
+ var require_AsymmetricMatcher = /* @__PURE__ */ __commonJSMin(((exports) => {
2907
+ Object.defineProperty(exports, "__esModule", { value: true });
2908
+ exports.test = exports.serialize = exports.default = void 0;
2909
+ var _collections = require_collections();
2910
+ var global = (function() {
2911
+ if (typeof globalThis !== "undefined") return globalThis;
2912
+ else if (typeof global !== "undefined") return global;
2913
+ else if (typeof self !== "undefined") return self;
2914
+ else if (typeof window !== "undefined") return window;
2915
+ else return Function("return this")();
2916
+ })();
2917
+ var Symbol = global["jest-symbol-do-not-touch"] || global.Symbol;
2918
+ const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621;
2919
+ const SPACE = " ";
2920
+ const serialize = (val, config, indentation, depth, refs, printer) => {
2921
+ const stringedValue = val.toString();
2922
+ if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
2923
+ if (++depth > config.maxDepth) return "[" + stringedValue + "]";
2924
+ return stringedValue + " [" + (0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer) + "]";
2925
+ }
2926
+ if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
2927
+ if (++depth > config.maxDepth) return "[" + stringedValue + "]";
2928
+ return stringedValue + " {" + (0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer) + "}";
2929
+ }
2930
+ if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
2931
+ if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
2932
+ return val.toAsymmetricMatcher();
2933
+ };
2934
+ exports.serialize = serialize;
2935
+ const test = (val) => val && val.$$typeof === asymmetricMatcher;
2936
+ exports.test = test;
2937
+ exports.default = {
2938
+ serialize,
2939
+ test
2940
+ };
2941
+ }));
2942
+ //#endregion
2943
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js
2944
+ var require_ConvertAnsi = /* @__PURE__ */ __commonJSMin(((exports) => {
2945
+ Object.defineProperty(exports, "__esModule", { value: true });
2946
+ exports.test = exports.serialize = exports.default = void 0;
2947
+ var _ansiRegex = _interopRequireDefault(require_ansi_regex());
2948
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles());
2949
+ function _interopRequireDefault(obj) {
2950
+ return obj && obj.__esModule ? obj : { default: obj };
2951
+ }
2952
+ /**
2953
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2954
+ *
2955
+ * This source code is licensed under the MIT license found in the
2956
+ * LICENSE file in the root directory of this source tree.
2957
+ */
2958
+ const toHumanReadableAnsi = (text) => text.replace((0, _ansiRegex.default)(), (match) => {
2959
+ switch (match) {
2960
+ case _ansiStyles.default.red.close:
2961
+ case _ansiStyles.default.green.close:
2962
+ case _ansiStyles.default.cyan.close:
2963
+ case _ansiStyles.default.gray.close:
2964
+ case _ansiStyles.default.white.close:
2965
+ case _ansiStyles.default.yellow.close:
2966
+ case _ansiStyles.default.bgRed.close:
2967
+ case _ansiStyles.default.bgGreen.close:
2968
+ case _ansiStyles.default.bgYellow.close:
2969
+ case _ansiStyles.default.inverse.close:
2970
+ case _ansiStyles.default.dim.close:
2971
+ case _ansiStyles.default.bold.close:
2972
+ case _ansiStyles.default.reset.open:
2973
+ case _ansiStyles.default.reset.close: return "</>";
2974
+ case _ansiStyles.default.red.open: return "<red>";
2975
+ case _ansiStyles.default.green.open: return "<green>";
2976
+ case _ansiStyles.default.cyan.open: return "<cyan>";
2977
+ case _ansiStyles.default.gray.open: return "<gray>";
2978
+ case _ansiStyles.default.white.open: return "<white>";
2979
+ case _ansiStyles.default.yellow.open: return "<yellow>";
2980
+ case _ansiStyles.default.bgRed.open: return "<bgRed>";
2981
+ case _ansiStyles.default.bgGreen.open: return "<bgGreen>";
2982
+ case _ansiStyles.default.bgYellow.open: return "<bgYellow>";
2983
+ case _ansiStyles.default.inverse.open: return "<inverse>";
2984
+ case _ansiStyles.default.dim.open: return "<dim>";
2985
+ case _ansiStyles.default.bold.open: return "<bold>";
2986
+ default: return "";
2987
+ }
2988
+ });
2989
+ const test = (val) => typeof val === "string" && !!val.match((0, _ansiRegex.default)());
2990
+ exports.test = test;
2991
+ const serialize = (val, config, indentation, depth, refs, printer) => printer(toHumanReadableAnsi(val), config, indentation, depth, refs);
2992
+ exports.serialize = serialize;
2993
+ exports.default = {
2994
+ serialize,
2995
+ test
2996
+ };
2997
+ }));
2998
+ //#endregion
2999
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js
3000
+ var require_DOMCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
3001
+ Object.defineProperty(exports, "__esModule", { value: true });
3002
+ exports.test = exports.serialize = exports.default = void 0;
3003
+ var _collections = require_collections();
3004
+ /**
3005
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3006
+ *
3007
+ * This source code is licensed under the MIT license found in the
3008
+ * LICENSE file in the root directory of this source tree.
3009
+ */
3010
+ const SPACE = " ";
3011
+ const OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"];
3012
+ const ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/;
3013
+ const testName = (name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name);
3014
+ const test = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
3015
+ exports.test = test;
3016
+ const isNamedNodeMap = (collection) => collection.constructor.name === "NamedNodeMap";
3017
+ const serialize = (collection, config, indentation, depth, refs, printer) => {
3018
+ const name = collection.constructor.name;
3019
+ if (++depth > config.maxDepth) return "[" + name + "]";
3020
+ return (config.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? "{" + (0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
3021
+ props[attribute.name] = attribute.value;
3022
+ return props;
3023
+ }, {}) : { ...collection }, config, indentation, depth, refs, printer) + "}" : "[" + (0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer) + "]");
3024
+ };
3025
+ exports.serialize = serialize;
3026
+ exports.default = {
3027
+ serialize,
3028
+ test
3029
+ };
3030
+ }));
3031
+ //#endregion
3032
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
3033
+ var require_escapeHTML = /* @__PURE__ */ __commonJSMin(((exports) => {
3034
+ Object.defineProperty(exports, "__esModule", { value: true });
3035
+ exports.default = escapeHTML;
3036
+ /**
3037
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3038
+ *
3039
+ * This source code is licensed under the MIT license found in the
3040
+ * LICENSE file in the root directory of this source tree.
3041
+ */
3042
+ function escapeHTML(str) {
3043
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3044
+ }
3045
+ }));
3046
+ //#endregion
3047
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js
3048
+ var require_markup = /* @__PURE__ */ __commonJSMin(((exports) => {
3049
+ Object.defineProperty(exports, "__esModule", { value: true });
3050
+ exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
3051
+ var _escapeHTML = _interopRequireDefault(require_escapeHTML());
3052
+ function _interopRequireDefault(obj) {
3053
+ return obj && obj.__esModule ? obj : { default: obj };
3054
+ }
3055
+ /**
3056
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3057
+ *
3058
+ * This source code is licensed under the MIT license found in the
3059
+ * LICENSE file in the root directory of this source tree.
3060
+ */
3061
+ const printProps = (keys, props, config, indentation, depth, refs, printer) => {
3062
+ const indentationNext = indentation + config.indent;
3063
+ const colors = config.colors;
3064
+ return keys.map((key) => {
3065
+ const value = props[key];
3066
+ let printed = printer(value, config, indentationNext, depth, refs);
3067
+ if (typeof value !== "string") {
3068
+ if (printed.indexOf("\n") !== -1) printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
3069
+ printed = "{" + printed + "}";
3070
+ }
3071
+ return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + "=" + colors.value.open + printed + colors.value.close;
3072
+ }).join("");
3073
+ };
3074
+ exports.printProps = printProps;
3075
+ const 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("");
3076
+ exports.printChildren = printChildren;
3077
+ const printText = (text, config) => {
3078
+ const contentColor = config.colors.content;
3079
+ return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
3080
+ };
3081
+ exports.printText = printText;
3082
+ const printComment = (comment, config) => {
3083
+ const commentColor = config.colors.comment;
3084
+ return commentColor.open + "<!--" + (0, _escapeHTML.default)(comment) + "-->" + commentColor.close;
3085
+ };
3086
+ exports.printComment = printComment;
3087
+ const printElement = (type, printedProps, printedChildren, config, indentation) => {
3088
+ const tagColor = config.colors.tag;
3089
+ 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;
3090
+ };
3091
+ exports.printElement = printElement;
3092
+ const printElementAsLeaf = (type, config) => {
3093
+ const tagColor = config.colors.tag;
3094
+ return tagColor.open + "<" + type + tagColor.close + " …" + tagColor.open + " />" + tagColor.close;
3095
+ };
3096
+ exports.printElementAsLeaf = printElementAsLeaf;
3097
+ }));
3098
+ //#endregion
3099
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js
3100
+ var require_DOMElement = /* @__PURE__ */ __commonJSMin(((exports) => {
3101
+ Object.defineProperty(exports, "__esModule", { value: true });
3102
+ exports.test = exports.serialize = exports.default = void 0;
3103
+ var _markup = require_markup();
3104
+ /**
3105
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3106
+ *
3107
+ * This source code is licensed under the MIT license found in the
3108
+ * LICENSE file in the root directory of this source tree.
3109
+ */
3110
+ const ELEMENT_NODE = 1;
3111
+ const TEXT_NODE = 3;
3112
+ const COMMENT_NODE = 8;
3113
+ const FRAGMENT_NODE = 11;
3114
+ const ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
3115
+ const testHasAttribute = (val) => {
3116
+ try {
3117
+ return typeof val.hasAttribute === "function" && val.hasAttribute("is");
3118
+ } catch {
3119
+ return false;
3120
+ }
3121
+ };
3122
+ const testNode = (val) => {
3123
+ const constructorName = val.constructor.name;
3124
+ const { nodeType, tagName } = val;
3125
+ const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val);
3126
+ return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
3127
+ };
3128
+ const test = (val) => {
3129
+ var _val$constructor;
3130
+ return (val === null || val === void 0 ? void 0 : (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
3131
+ };
3132
+ exports.test = test;
3133
+ function nodeIsText(node) {
3134
+ return node.nodeType === TEXT_NODE;
3135
+ }
3136
+ function nodeIsComment(node) {
3137
+ return node.nodeType === COMMENT_NODE;
3138
+ }
3139
+ function nodeIsFragment(node) {
3140
+ return node.nodeType === FRAGMENT_NODE;
3141
+ }
3142
+ const serialize = (node, config, indentation, depth, refs, printer) => {
3143
+ if (nodeIsText(node)) return (0, _markup.printText)(node.data, config);
3144
+ if (nodeIsComment(node)) return (0, _markup.printComment)(node.data, config);
3145
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
3146
+ if (++depth > config.maxDepth) return (0, _markup.printElementAsLeaf)(type, config);
3147
+ return (0, _markup.printElement)(type, (0, _markup.printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
3148
+ props[attribute.name] = attribute.value;
3149
+ return props;
3150
+ }, {}), 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);
3151
+ };
3152
+ exports.serialize = serialize;
3153
+ exports.default = {
3154
+ serialize,
3155
+ test
3156
+ };
3157
+ }));
3158
+ //#endregion
3159
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js
3160
+ var require_Immutable = /* @__PURE__ */ __commonJSMin(((exports) => {
3161
+ Object.defineProperty(exports, "__esModule", { value: true });
3162
+ exports.test = exports.serialize = exports.default = void 0;
3163
+ var _collections = require_collections();
3164
+ /**
3165
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3166
+ *
3167
+ * This source code is licensed under the MIT license found in the
3168
+ * LICENSE file in the root directory of this source tree.
3169
+ */
3170
+ const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
3171
+ const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
3172
+ const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
3173
+ const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@";
3174
+ const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@";
3175
+ const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@";
3176
+ const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
3177
+ const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
3178
+ const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
3179
+ const getImmutableName = (name) => "Immutable." + name;
3180
+ const printAsLeaf = (name) => "[" + name + "]";
3181
+ const LAZY = "…";
3182
+ const printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + " {" + (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) + "}";
3183
+ function getRecordEntries(val) {
3184
+ let i = 0;
3185
+ return { next() {
3186
+ if (i < val._keys.length) {
3187
+ const key = val._keys[i++];
3188
+ return {
3189
+ done: false,
3190
+ value: [key, val.get(key)]
3191
+ };
3192
+ }
3193
+ return {
3194
+ done: true,
3195
+ value: void 0
3196
+ };
3197
+ } };
3198
+ }
3199
+ const printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
3200
+ const name = getImmutableName(val._name || "Record");
3201
+ return ++depth > config.maxDepth ? printAsLeaf(name) : name + " {" + (0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer) + "}";
3202
+ };
3203
+ const printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
3204
+ const name = getImmutableName("Seq");
3205
+ if (++depth > config.maxDepth) return printAsLeaf(name);
3206
+ if (val[IS_KEYED_SENTINEL]) return name + " {" + (val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY) + "}";
3207
+ return name + " [" + (val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY) + "]";
3208
+ };
3209
+ const printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + " [" + (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + "]";
3210
+ const serialize = (val, config, indentation, depth, refs, printer) => {
3211
+ if (val[IS_MAP_SENTINEL]) return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
3212
+ if (val[IS_LIST_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "List");
3213
+ if (val[IS_SET_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
3214
+ if (val[IS_STACK_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack");
3215
+ if (val[IS_SEQ_SENTINEL]) return printImmutableSeq(val, config, indentation, depth, refs, printer);
3216
+ return printImmutableRecord(val, config, indentation, depth, refs, printer);
3217
+ };
3218
+ exports.serialize = serialize;
3219
+ const test = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);
3220
+ exports.test = test;
3221
+ exports.default = {
3222
+ serialize,
3223
+ test
3224
+ };
3225
+ }));
3226
+ //#endregion
3227
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js
3228
+ /** @license React v17.0.2
3229
+ * react-is.production.min.js
3230
+ *
3231
+ * Copyright (c) Facebook, Inc. and its affiliates.
3232
+ *
3233
+ * This source code is licensed under the MIT license found in the
3234
+ * LICENSE file in the root directory of this source tree.
3235
+ */
3236
+ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3237
+ var b = 60103;
3238
+ var c = 60106;
3239
+ var d = 60107;
3240
+ var e = 60108;
3241
+ var f = 60114;
3242
+ var g = 60109;
3243
+ var h = 60110;
3244
+ var k = 60112;
3245
+ var l = 60113;
3246
+ var m = 60120;
3247
+ var n = 60115;
3248
+ var p = 60116;
3249
+ var q = 60121;
3250
+ var r = 60122;
3251
+ var u = 60117;
3252
+ var v = 60129;
3253
+ var w = 60131;
3254
+ if ("function" === typeof Symbol && Symbol.for) {
3255
+ var x = Symbol.for;
3256
+ b = x("react.element");
3257
+ c = x("react.portal");
3258
+ d = x("react.fragment");
3259
+ e = x("react.strict_mode");
3260
+ f = x("react.profiler");
3261
+ g = x("react.provider");
3262
+ h = x("react.context");
3263
+ k = x("react.forward_ref");
3264
+ l = x("react.suspense");
3265
+ m = x("react.suspense_list");
3266
+ n = x("react.memo");
3267
+ p = x("react.lazy");
3268
+ q = x("react.block");
3269
+ r = x("react.server.block");
3270
+ u = x("react.fundamental");
3271
+ v = x("react.debug_trace_mode");
3272
+ w = x("react.legacy_hidden");
3273
+ }
3274
+ function y(a) {
3275
+ if ("object" === typeof a && null !== a) {
3276
+ var t = a.$$typeof;
3277
+ switch (t) {
3278
+ case b: switch (a = a.type, a) {
3279
+ case d:
3280
+ case f:
3281
+ case e:
3282
+ case l:
3283
+ case m: return a;
3284
+ default: switch (a = a && a.$$typeof, a) {
3285
+ case h:
3286
+ case k:
3287
+ case p:
3288
+ case n:
3289
+ case g: return a;
3290
+ default: return t;
3291
+ }
3292
+ }
3293
+ case c: return t;
3294
+ }
3295
+ }
3296
+ }
3297
+ var z = g;
3298
+ var A = b;
3299
+ var B = k;
3300
+ var C = d;
3301
+ var D = p;
3302
+ var E = n;
3303
+ var F = c;
3304
+ var G = f;
3305
+ var H = e;
3306
+ var I = l;
3307
+ exports.ContextConsumer = h;
3308
+ exports.ContextProvider = z;
3309
+ exports.Element = A;
3310
+ exports.ForwardRef = B;
3311
+ exports.Fragment = C;
3312
+ exports.Lazy = D;
3313
+ exports.Memo = E;
3314
+ exports.Portal = F;
3315
+ exports.Profiler = G;
3316
+ exports.StrictMode = H;
3317
+ exports.Suspense = I;
3318
+ exports.isAsyncMode = function() {
3319
+ return !1;
3320
+ };
3321
+ exports.isConcurrentMode = function() {
3322
+ return !1;
3323
+ };
3324
+ exports.isContextConsumer = function(a) {
3325
+ return y(a) === h;
3326
+ };
3327
+ exports.isContextProvider = function(a) {
3328
+ return y(a) === g;
3329
+ };
3330
+ exports.isElement = function(a) {
3331
+ return "object" === typeof a && null !== a && a.$$typeof === b;
3332
+ };
3333
+ exports.isForwardRef = function(a) {
3334
+ return y(a) === k;
3335
+ };
3336
+ exports.isFragment = function(a) {
3337
+ return y(a) === d;
3338
+ };
3339
+ exports.isLazy = function(a) {
3340
+ return y(a) === p;
3341
+ };
3342
+ exports.isMemo = function(a) {
3343
+ return y(a) === n;
3344
+ };
3345
+ exports.isPortal = function(a) {
3346
+ return y(a) === c;
3347
+ };
3348
+ exports.isProfiler = function(a) {
3349
+ return y(a) === f;
3350
+ };
3351
+ exports.isStrictMode = function(a) {
3352
+ return y(a) === e;
3353
+ };
3354
+ exports.isSuspense = function(a) {
3355
+ return y(a) === l;
3356
+ };
3357
+ exports.isValidElementType = function(a) {
3358
+ return "string" === typeof a || "function" === typeof a || a === d || a === f || a === v || a === e || a === l || a === m || a === w || "object" === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? !0 : !1;
3359
+ };
3360
+ exports.typeOf = y;
3361
+ }));
3362
+ //#endregion
3363
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/node_modules/react-is/index.js
3364
+ var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3365
+ module.exports = require_react_is_production_min();
3366
+ }));
3367
+ //#endregion
3368
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js
3369
+ var require_ReactElement = /* @__PURE__ */ __commonJSMin(((exports) => {
3370
+ Object.defineProperty(exports, "__esModule", { value: true });
3371
+ exports.test = exports.serialize = exports.default = void 0;
3372
+ var ReactIs = _interopRequireWildcard(require_react_is());
3373
+ var _markup = require_markup();
3374
+ function _getRequireWildcardCache(nodeInterop) {
3375
+ if (typeof WeakMap !== "function") return null;
3376
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
3377
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
3378
+ return (_getRequireWildcardCache = function(nodeInterop) {
3379
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
3380
+ })(nodeInterop);
3381
+ }
3382
+ function _interopRequireWildcard(obj, nodeInterop) {
3383
+ if (!nodeInterop && obj && obj.__esModule) return obj;
3384
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
3385
+ var cache = _getRequireWildcardCache(nodeInterop);
3386
+ if (cache && cache.has(obj)) return cache.get(obj);
3387
+ var newObj = {};
3388
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
3389
+ for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
3390
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
3391
+ if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
3392
+ else newObj[key] = obj[key];
3393
+ }
3394
+ newObj.default = obj;
3395
+ if (cache) cache.set(obj, newObj);
3396
+ return newObj;
3397
+ }
3398
+ /**
3399
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3400
+ *
3401
+ * This source code is licensed under the MIT license found in the
3402
+ * LICENSE file in the root directory of this source tree.
3403
+ */
3404
+ const getChildren = (arg, children = []) => {
3405
+ if (Array.isArray(arg)) arg.forEach((item) => {
3406
+ getChildren(item, children);
3407
+ });
3408
+ else if (arg != null && arg !== false) children.push(arg);
3409
+ return children;
3410
+ };
3411
+ const getType = (element) => {
3412
+ const type = element.type;
3413
+ if (typeof type === "string") return type;
3414
+ if (typeof type === "function") return type.displayName || type.name || "Unknown";
3415
+ if (ReactIs.isFragment(element)) return "React.Fragment";
3416
+ if (ReactIs.isSuspense(element)) return "React.Suspense";
3417
+ if (typeof type === "object" && type !== null) {
3418
+ if (ReactIs.isContextProvider(element)) return "Context.Provider";
3419
+ if (ReactIs.isContextConsumer(element)) return "Context.Consumer";
3420
+ if (ReactIs.isForwardRef(element)) {
3421
+ if (type.displayName) return type.displayName;
3422
+ const functionName = type.render.displayName || type.render.name || "";
3423
+ return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef";
3424
+ }
3425
+ if (ReactIs.isMemo(element)) {
3426
+ const functionName = type.displayName || type.type.displayName || type.type.name || "";
3427
+ return functionName !== "" ? "Memo(" + functionName + ")" : "Memo";
3428
+ }
3429
+ }
3430
+ return "UNDEFINED";
3431
+ };
3432
+ const getPropKeys = (element) => {
3433
+ const { props } = element;
3434
+ return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
3435
+ };
3436
+ const serialize = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType(element), config) : (0, _markup.printElement)(getType(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);
3437
+ exports.serialize = serialize;
3438
+ const test = (val) => val != null && ReactIs.isElement(val);
3439
+ exports.test = test;
3440
+ exports.default = {
3441
+ serialize,
3442
+ test
3443
+ };
3444
+ }));
3445
+ //#endregion
3446
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js
3447
+ var require_ReactTestComponent = /* @__PURE__ */ __commonJSMin(((exports) => {
3448
+ Object.defineProperty(exports, "__esModule", { value: true });
3449
+ exports.test = exports.serialize = exports.default = void 0;
3450
+ var _markup = require_markup();
3451
+ var global = (function() {
3452
+ if (typeof globalThis !== "undefined") return globalThis;
3453
+ else if (typeof global !== "undefined") return global;
3454
+ else if (typeof self !== "undefined") return self;
3455
+ else if (typeof window !== "undefined") return window;
3456
+ else return Function("return this")();
3457
+ })();
3458
+ var Symbol = global["jest-symbol-do-not-touch"] || global.Symbol;
3459
+ const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
3460
+ const getPropKeys = (object) => {
3461
+ const { props } = object;
3462
+ return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
3463
+ };
3464
+ const 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);
3465
+ exports.serialize = serialize;
3466
+ const test = (val) => val && val.$$typeof === testSymbol;
3467
+ exports.test = test;
3468
+ exports.default = {
3469
+ serialize,
3470
+ test
3471
+ };
3472
+ }));
3473
+ //#endregion
3474
+ //#region ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js
3475
+ var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
3476
+ Object.defineProperty(exports, "__esModule", { value: true });
3477
+ exports.default = exports.DEFAULT_OPTIONS = void 0;
3478
+ exports.format = format;
3479
+ exports.plugins = void 0;
3480
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles());
3481
+ var _collections = require_collections();
3482
+ var _AsymmetricMatcher = _interopRequireDefault(require_AsymmetricMatcher());
3483
+ var _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi());
3484
+ var _DOMCollection = _interopRequireDefault(require_DOMCollection());
3485
+ var _DOMElement = _interopRequireDefault(require_DOMElement());
3486
+ var _Immutable = _interopRequireDefault(require_Immutable());
3487
+ var _ReactElement = _interopRequireDefault(require_ReactElement());
3488
+ var _ReactTestComponent = _interopRequireDefault(require_ReactTestComponent());
3489
+ function _interopRequireDefault(obj) {
3490
+ return obj && obj.__esModule ? obj : { default: obj };
3491
+ }
3492
+ /**
3493
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3494
+ *
3495
+ * This source code is licensed under the MIT license found in the
3496
+ * LICENSE file in the root directory of this source tree.
3497
+ */
3498
+ const toString = Object.prototype.toString;
3499
+ const toISOString = Date.prototype.toISOString;
3500
+ const errorToString = Error.prototype.toString;
3501
+ const regExpToString = RegExp.prototype.toString;
3502
+ /**
3503
+ * Explicitly comparing typeof constructor to function avoids undefined as name
3504
+ * when mock identity-obj-proxy returns the key as the value for any key.
3505
+ */
3506
+ const getConstructorName = (val) => typeof val.constructor === "function" && val.constructor.name || "Object";
3507
+ /** Is val is equal to global window object? Works even if it does not exist :) */
3508
+ const isWindow = (val) => typeof window !== "undefined" && val === window;
3509
+ const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
3510
+ const NEWLINE_REGEXP = /\n/gi;
3511
+ var PrettyFormatPluginError = class extends Error {
3512
+ constructor(message, stack) {
3513
+ super(message);
3514
+ this.stack = stack;
3515
+ this.name = this.constructor.name;
3516
+ }
3517
+ };
3518
+ function isToStringedArrayType(toStringed) {
3519
+ 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]";
3520
+ }
3521
+ function printNumber(val) {
3522
+ return Object.is(val, -0) ? "-0" : String(val);
3523
+ }
3524
+ function printBigInt(val) {
3525
+ return String(`${val}n`);
3526
+ }
3527
+ function printFunction(val, printFunctionName) {
3528
+ if (!printFunctionName) return "[Function]";
3529
+ return "[Function " + (val.name || "anonymous") + "]";
3530
+ }
3531
+ function printSymbol(val) {
3532
+ return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
3533
+ }
3534
+ function printError(val) {
3535
+ return "[" + errorToString.call(val) + "]";
3536
+ }
3537
+ /**
3538
+ * The first port of call for printing an object, handles most of the
3539
+ * data-types in JS.
3540
+ */
3541
+ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
3542
+ if (val === true || val === false) return "" + val;
3543
+ if (val === void 0) return "undefined";
3544
+ if (val === null) return "null";
3545
+ const typeOf = typeof val;
3546
+ if (typeOf === "number") return printNumber(val);
3547
+ if (typeOf === "bigint") return printBigInt(val);
3548
+ if (typeOf === "string") {
3549
+ if (escapeString) return "\"" + val.replace(/"|\\/g, "\\$&") + "\"";
3550
+ return "\"" + val + "\"";
3551
+ }
3552
+ if (typeOf === "function") return printFunction(val, printFunctionName);
3553
+ if (typeOf === "symbol") return printSymbol(val);
3554
+ const toStringed = toString.call(val);
3555
+ if (toStringed === "[object WeakMap]") return "WeakMap {}";
3556
+ if (toStringed === "[object WeakSet]") return "WeakSet {}";
3557
+ if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") return printFunction(val, printFunctionName);
3558
+ if (toStringed === "[object Symbol]") return printSymbol(val);
3559
+ if (toStringed === "[object Date]") return isNaN(+val) ? "Date { NaN }" : toISOString.call(val);
3560
+ if (toStringed === "[object Error]") return printError(val);
3561
+ if (toStringed === "[object RegExp]") {
3562
+ if (escapeRegex) return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&");
3563
+ return regExpToString.call(val);
3564
+ }
3565
+ if (val instanceof Error) return printError(val);
3566
+ return null;
3567
+ }
3568
+ /**
3569
+ * Handles more complex objects ( such as objects with circular references.
3570
+ * maps and sets etc )
3571
+ */
3572
+ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
3573
+ if (refs.indexOf(val) !== -1) return "[Circular]";
3574
+ refs = refs.slice();
3575
+ refs.push(val);
3576
+ const hitMaxDepth = ++depth > config.maxDepth;
3577
+ const min = config.min;
3578
+ if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) return printer(val.toJSON(), config, indentation, depth, refs, true);
3579
+ const toStringed = toString.call(val);
3580
+ if (toStringed === "[object Arguments]") return hitMaxDepth ? "[Arguments]" : (min ? "" : "Arguments ") + "[" + (0, _collections.printListItems)(val, config, indentation, depth, refs, printer) + "]";
3581
+ if (isToStringedArrayType(toStringed)) return hitMaxDepth ? "[" + val.constructor.name + "]" : (min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : val.constructor.name + " ") + "[" + (0, _collections.printListItems)(val, config, indentation, depth, refs, printer) + "]";
3582
+ if (toStringed === "[object Map]") return hitMaxDepth ? "[Map]" : "Map {" + (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ") + "}";
3583
+ if (toStringed === "[object Set]") return hitMaxDepth ? "[Set]" : "Set {" + (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + "}";
3584
+ return hitMaxDepth || isWindow(val) ? "[" + getConstructorName(val) + "]" : (min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : getConstructorName(val) + " ") + "{" + (0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer) + "}";
3585
+ }
3586
+ function isNewPlugin(plugin) {
3587
+ return plugin.serialize != null;
3588
+ }
3589
+ function printPlugin(plugin, val, config, indentation, depth, refs) {
3590
+ let printed;
3591
+ try {
3592
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
3593
+ const indentationNext = indentation + config.indent;
3594
+ return indentationNext + str.replace(NEWLINE_REGEXP, "\n" + indentationNext);
3595
+ }, {
3596
+ edgeSpacing: config.spacingOuter,
3597
+ min: config.min,
3598
+ spacing: config.spacingInner
3599
+ }, config.colors);
3600
+ } catch (error) {
3601
+ throw new PrettyFormatPluginError(error.message, error.stack);
3602
+ }
3603
+ if (typeof printed !== "string") throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
3604
+ return printed;
3605
+ }
3606
+ function findPlugin(plugins, val) {
3607
+ for (let p = 0; p < plugins.length; p++) try {
3608
+ if (plugins[p].test(val)) return plugins[p];
3609
+ } catch (error) {
3610
+ throw new PrettyFormatPluginError(error.message, error.stack);
3611
+ }
3612
+ return null;
3613
+ }
3614
+ function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
3615
+ const plugin = findPlugin(config.plugins, val);
3616
+ if (plugin !== null) return printPlugin(plugin, val, config, indentation, depth, refs);
3617
+ const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
3618
+ if (basicResult !== null) return basicResult;
3619
+ return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
3620
+ }
3621
+ const DEFAULT_THEME = {
3622
+ comment: "gray",
3623
+ content: "reset",
3624
+ prop: "yellow",
3625
+ tag: "cyan",
3626
+ value: "green"
3627
+ };
3628
+ const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
3629
+ const DEFAULT_OPTIONS = {
3630
+ callToJSON: true,
3631
+ compareKeys: void 0,
3632
+ escapeRegex: false,
3633
+ escapeString: true,
3634
+ highlight: false,
3635
+ indent: 2,
3636
+ maxDepth: Infinity,
3637
+ min: false,
3638
+ plugins: [],
3639
+ printBasicPrototype: true,
3640
+ printFunctionName: true,
3641
+ theme: DEFAULT_THEME
3642
+ };
3643
+ exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
3644
+ function validateOptions(options) {
3645
+ Object.keys(options).forEach((key) => {
3646
+ if (!DEFAULT_OPTIONS.hasOwnProperty(key)) throw new Error(`pretty-format: Unknown option "${key}".`);
3647
+ });
3648
+ if (options.min && options.indent !== void 0 && options.indent !== 0) throw new Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
3649
+ if (options.theme !== void 0) {
3650
+ if (options.theme === null) throw new Error("pretty-format: Option \"theme\" must not be null.");
3651
+ if (typeof options.theme !== "object") throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
3652
+ }
3653
+ }
3654
+ const getColorsHighlight = (options) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
3655
+ const value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME[key];
3656
+ const color = value && _ansiStyles.default[value];
3657
+ if (color && typeof color.close === "string" && typeof color.open === "string") colors[key] = color;
3658
+ else throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
3659
+ return colors;
3660
+ }, Object.create(null));
3661
+ const getColorsEmpty = () => DEFAULT_THEME_KEYS.reduce((colors, key) => {
3662
+ colors[key] = {
3663
+ close: "",
3664
+ open: ""
3665
+ };
3666
+ return colors;
3667
+ }, Object.create(null));
3668
+ const getPrintFunctionName = (options) => options && options.printFunctionName !== void 0 ? options.printFunctionName : DEFAULT_OPTIONS.printFunctionName;
3669
+ const getEscapeRegex = (options) => options && options.escapeRegex !== void 0 ? options.escapeRegex : DEFAULT_OPTIONS.escapeRegex;
3670
+ const getEscapeString = (options) => options && options.escapeString !== void 0 ? options.escapeString : DEFAULT_OPTIONS.escapeString;
3671
+ const getConfig = (options) => {
3672
+ var _options$printBasicPr;
3673
+ return {
3674
+ callToJSON: options && options.callToJSON !== void 0 ? options.callToJSON : DEFAULT_OPTIONS.callToJSON,
3675
+ colors: options && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
3676
+ compareKeys: options && typeof options.compareKeys === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
3677
+ escapeRegex: getEscapeRegex(options),
3678
+ escapeString: getEscapeString(options),
3679
+ indent: options && options.min ? "" : createIndent(options && options.indent !== void 0 ? options.indent : DEFAULT_OPTIONS.indent),
3680
+ maxDepth: options && options.maxDepth !== void 0 ? options.maxDepth : DEFAULT_OPTIONS.maxDepth,
3681
+ min: options && options.min !== void 0 ? options.min : DEFAULT_OPTIONS.min,
3682
+ plugins: options && options.plugins !== void 0 ? options.plugins : DEFAULT_OPTIONS.plugins,
3683
+ printBasicPrototype: (_options$printBasicPr = options === null || options === void 0 ? void 0 : options.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : true,
3684
+ printFunctionName: getPrintFunctionName(options),
3685
+ spacingInner: options && options.min ? " " : "\n",
3686
+ spacingOuter: options && options.min ? "" : "\n"
3687
+ };
3688
+ };
3689
+ function createIndent(indent) {
3690
+ return new Array(indent + 1).join(" ");
3691
+ }
3692
+ /**
3693
+ * Returns a presentation string of your `val` object
3694
+ * @param val any potential JavaScript object
3695
+ * @param options Custom settings
3696
+ */
3697
+ function format(val, options) {
3698
+ if (options) {
3699
+ validateOptions(options);
3700
+ if (options.plugins) {
3701
+ const plugin = findPlugin(options.plugins, val);
3702
+ if (plugin !== null) return printPlugin(plugin, val, getConfig(options), "", 0, []);
3703
+ }
3704
+ }
3705
+ const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
3706
+ if (basicResult !== null) return basicResult;
3707
+ return printComplexValue(val, getConfig(options), "", 0, []);
3708
+ }
3709
+ exports.plugins = {
3710
+ AsymmetricMatcher: _AsymmetricMatcher.default,
3711
+ ConvertAnsi: _ConvertAnsi.default,
3712
+ DOMCollection: _DOMCollection.default,
3713
+ DOMElement: _DOMElement.default,
3714
+ Immutable: _Immutable.default,
3715
+ ReactElement: _ReactElement.default,
3716
+ ReactTestComponent: _ReactTestComponent.default
3717
+ };
3718
+ exports.default = format;
3719
+ }));
3720
+ //#endregion
3721
+ //#region ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
3722
+ var dom_esm_exports = /* @__PURE__ */ __exportAll({
3723
+ buildQueries: () => buildQueries,
3724
+ configure: () => configure,
3725
+ createEvent: () => createEvent$1,
3726
+ findAllByAltText: () => findAllByAltText,
3727
+ findAllByDisplayValue: () => findAllByDisplayValue,
3728
+ findAllByLabelText: () => findAllByLabelText,
3729
+ findAllByPlaceholderText: () => findAllByPlaceholderText,
3730
+ findAllByRole: () => findAllByRole,
3731
+ findAllByTestId: () => findAllByTestId,
3732
+ findAllByText: () => findAllByText,
3733
+ findAllByTitle: () => findAllByTitle,
3734
+ findByAltText: () => findByAltText,
3735
+ findByDisplayValue: () => findByDisplayValue,
3736
+ findByLabelText: () => findByLabelText,
3737
+ findByPlaceholderText: () => findByPlaceholderText,
3738
+ findByRole: () => findByRole,
3739
+ findByTestId: () => findByTestId,
3740
+ findByText: () => findByText,
3741
+ findByTitle: () => findByTitle,
3742
+ fireEvent: () => fireEvent,
3743
+ getAllByAltText: () => getAllByAltText,
3744
+ getAllByDisplayValue: () => getAllByDisplayValue,
3745
+ getAllByLabelText: () => getAllByLabelTextWithSuggestions,
3746
+ getAllByPlaceholderText: () => getAllByPlaceholderText,
3747
+ getAllByRole: () => getAllByRole,
3748
+ getAllByTestId: () => getAllByTestId,
3749
+ getAllByText: () => getAllByText,
3750
+ getAllByTitle: () => getAllByTitle,
3751
+ getByAltText: () => getByAltText,
3752
+ getByDisplayValue: () => getByDisplayValue,
3753
+ getByLabelText: () => getByLabelTextWithSuggestions,
3754
+ getByPlaceholderText: () => getByPlaceholderText,
3755
+ getByRole: () => getByRole,
3756
+ getByTestId: () => getByTestId,
3757
+ getByText: () => getByText,
3758
+ getByTitle: () => getByTitle,
3759
+ getConfig: () => getConfig,
3760
+ getDefaultNormalizer: () => getDefaultNormalizer,
3761
+ getElementError: () => getElementError,
3762
+ getMultipleElementsFoundError: () => getMultipleElementsFoundError,
3763
+ getNodeText: () => getNodeText,
3764
+ getQueriesForElement: () => getQueriesForElement,
3765
+ getRoles: () => getRoles,
3766
+ getSuggestedQuery: () => getSuggestedQuery,
3767
+ isInaccessible: () => isInaccessible,
3768
+ logDOM: () => logDOM,
3769
+ logRoles: () => logRoles,
3770
+ makeFindQuery: () => makeFindQuery,
3771
+ makeGetAllQuery: () => makeGetAllQuery,
3772
+ makeSingleQuery: () => makeSingleQuery,
3773
+ prettyDOM: () => prettyDOM,
3774
+ prettyFormat: () => import_build,
3775
+ queries: () => queries,
3776
+ queryAllByAltText: () => queryAllByAltTextWithSuggestions,
3777
+ queryAllByAttribute: () => queryAllByAttribute,
3778
+ queryAllByDisplayValue: () => queryAllByDisplayValueWithSuggestions,
3779
+ queryAllByLabelText: () => queryAllByLabelTextWithSuggestions,
3780
+ queryAllByPlaceholderText: () => queryAllByPlaceholderTextWithSuggestions,
3781
+ queryAllByRole: () => queryAllByRoleWithSuggestions,
3782
+ queryAllByTestId: () => queryAllByTestIdWithSuggestions,
3783
+ queryAllByText: () => queryAllByTextWithSuggestions,
3784
+ queryAllByTitle: () => queryAllByTitleWithSuggestions,
3785
+ queryByAltText: () => queryByAltText,
3786
+ queryByAttribute: () => queryByAttribute,
3787
+ queryByDisplayValue: () => queryByDisplayValue,
3788
+ queryByLabelText: () => queryByLabelText,
3789
+ queryByPlaceholderText: () => queryByPlaceholderText,
3790
+ queryByRole: () => queryByRole,
3791
+ queryByTestId: () => queryByTestId,
3792
+ queryByText: () => queryByText,
3793
+ queryByTitle: () => queryByTitle,
3794
+ queryHelpers: () => queryHelpers,
3795
+ screen: () => screen,
3796
+ waitFor: () => waitForWrapper,
3797
+ waitForElementToBeRemoved: () => waitForElementToBeRemoved,
3798
+ within: () => getQueriesForElement,
3799
+ wrapAllByQueryWithSuggestion: () => wrapAllByQueryWithSuggestion,
3800
+ wrapSingleQueryWithSuggestion: () => wrapSingleQueryWithSuggestion
3801
+ });
3802
+ /**
3803
+ * Source: https://github.com/facebook/jest/blob/e7bb6a1e26ffab90611b2593912df15b69315611/packages/pretty-format/src/plugins/DOMElement.ts
3804
+ */
3805
+ /* istanbul ignore file */
3806
+ function escapeHTML(str) {
3807
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3808
+ }
3809
+ function nodeIsText(node) {
3810
+ return node.nodeType === TEXT_NODE$1;
3811
+ }
3812
+ function nodeIsComment(node) {
3813
+ return node.nodeType === COMMENT_NODE$1;
3814
+ }
3815
+ function nodeIsFragment(node) {
3816
+ return node.nodeType === FRAGMENT_NODE;
3817
+ }
3818
+ function createDOMElementFilter(filterNode) {
3819
+ return {
3820
+ test: (val) => {
3821
+ var _val$constructor2;
3822
+ return ((val == null || (_val$constructor2 = val.constructor) == null ? void 0 : _val$constructor2.name) || isCustomElement(val)) && testNode(val);
3823
+ },
3824
+ serialize: (node, config, indentation, depth, refs, printer) => {
3825
+ if (nodeIsText(node)) return printText(node.data, config);
3826
+ if (nodeIsComment(node)) return printComment(node.data, config);
3827
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
3828
+ if (++depth > config.maxDepth) return printElementAsLeaf(type, config);
3829
+ return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
3830
+ props[attribute.name] = attribute.value;
3831
+ return props;
3832
+ }, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children).filter(filterNode), config, indentation + config.indent, depth, refs, printer), config, indentation);
3833
+ }
3834
+ };
3835
+ }
3836
+ function getCodeFrame(frame) {
3837
+ const locationStart = frame.indexOf("(") + 1;
3838
+ const locationEnd = frame.indexOf(")");
3839
+ const frameLocation = frame.slice(locationStart, locationEnd);
3840
+ const frameLocationElements = frameLocation.split(":");
3841
+ const _ref = [
3842
+ frameLocationElements[0],
3843
+ parseInt(frameLocationElements[1], 10),
3844
+ parseInt(frameLocationElements[2], 10)
3845
+ ], filename = _ref[0], line = _ref[1], column = _ref[2];
3846
+ let rawFileContents = "";
3847
+ try {
3848
+ rawFileContents = readFileSync(filename, "utf-8");
3849
+ } catch {
3850
+ return "";
3851
+ }
3852
+ const codeFrame = codeFrameColumns(rawFileContents, { start: {
3853
+ line,
3854
+ column
3855
+ } }, {
3856
+ highlightCode: true,
3857
+ linesBelow: 0
3858
+ });
3859
+ return picocolors.dim(frameLocation) + "\n" + codeFrame + "\n";
3860
+ }
3861
+ function getUserCodeFrame() {
3862
+ /* istanbul ignore next */
3863
+ if (!readFileSync || !codeFrameColumns) return "";
3864
+ return getCodeFrame((/* @__PURE__ */ new Error()).stack.split("\n").slice(1).find((frame) => !frame.includes("node_modules/")));
3865
+ }
3866
+ function jestFakeTimersAreEnabled() {
3867
+ /* istanbul ignore else */
3868
+ if (typeof jest !== "undefined" && jest !== null) return setTimeout._isMockFunction === true || Object.prototype.hasOwnProperty.call(setTimeout, "clock");
3869
+ // istanbul ignore next
3870
+ return false;
3871
+ }
3872
+ function getDocument$1() {
3873
+ /* istanbul ignore if */
3874
+ if (typeof window === "undefined") throw new Error("Could not find default container");
3875
+ return window.document;
3876
+ }
3877
+ function getWindowFromNode(node) {
3878
+ if (node.defaultView) return node.defaultView;
3879
+ else if (node.ownerDocument && node.ownerDocument.defaultView) return node.ownerDocument.defaultView;
3880
+ else if (node.window) return node.window;
3881
+ else if (node.ownerDocument && node.ownerDocument.defaultView === null) throw new Error("It looks like the window object is not available for the provided node.");
3882
+ else if (node.then instanceof Function) throw new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?");
3883
+ else if (Array.isArray(node)) throw new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?");
3884
+ else if (typeof node.debug === "function" && typeof node.logTestingPlaygroundURL === "function") throw new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?");
3885
+ else throw new Error("The given node is not an Element, the node type is: " + typeof node + ".");
3886
+ }
3887
+ function checkContainerType(container) {
3888
+ if (!container || !(typeof container.querySelector === "function") || !(typeof container.querySelectorAll === "function")) throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
3889
+ function getTypeName(object) {
3890
+ if (typeof object === "object") return object === null ? "null" : object.constructor.name;
3891
+ return typeof object;
3892
+ }
3893
+ }
3894
+ function filterCommentsAndDefaultIgnoreTagsTags(value) {
3895
+ return value.nodeType !== COMMENT_NODE && (value.nodeType !== ELEMENT_NODE || !value.matches(getConfig().defaultIgnore));
3896
+ }
3897
+ function prettyDOM(dom, maxLength, options) {
3898
+ if (options === void 0) options = {};
3899
+ if (!dom) dom = getDocument$1().body;
3900
+ if (typeof maxLength !== "number") maxLength = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.DEBUG_PRINT_LIMIT || 7e3;
3901
+ if (maxLength === 0) return "";
3902
+ if (dom.documentElement) dom = dom.documentElement;
3903
+ let domTypeName = typeof dom;
3904
+ if (domTypeName === "object") domTypeName = dom.constructor.name;
3905
+ else dom = {};
3906
+ if (!("outerHTML" in dom)) throw new TypeError("Expected an element or document but got " + domTypeName);
3907
+ const _options = options, _options$filterNode = _options.filterNode, filterNode = _options$filterNode === void 0 ? filterCommentsAndDefaultIgnoreTagsTags : _options$filterNode, prettyFormatOptions = _objectWithoutPropertiesLoose(_options, _excluded$1);
3908
+ const debugContent = import_build.format(dom, {
3909
+ plugins: [createDOMElementFilter(filterNode), DOMCollection],
3910
+ printFunctionName: false,
3911
+ highlight: shouldHighlight(),
3912
+ ...prettyFormatOptions
3913
+ });
3914
+ return maxLength !== void 0 && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent;
3915
+ }
3916
+ function runWithExpensiveErrorDiagnosticsDisabled(callback) {
3917
+ try {
3918
+ config._disableExpensiveErrorDiagnostics = true;
3919
+ return callback();
3920
+ } finally {
3921
+ config._disableExpensiveErrorDiagnostics = false;
3922
+ }
3923
+ }
3924
+ function configure(newConfig) {
3925
+ if (typeof newConfig === "function") newConfig = newConfig(config);
3926
+ config = {
3927
+ ...config,
3928
+ ...newConfig
3929
+ };
3930
+ }
3931
+ function getConfig() {
3932
+ return config;
3933
+ }
3934
+ function getTextContent(node) {
3935
+ if (labelledNodeNames.includes(node.nodeName.toLowerCase())) return "";
3936
+ if (node.nodeType === TEXT_NODE) return node.textContent;
3937
+ return Array.from(node.childNodes).map((childNode) => getTextContent(childNode)).join("");
3938
+ }
3939
+ function getLabelContent(element) {
3940
+ let textContent;
3941
+ if (element.tagName.toLowerCase() === "label") textContent = getTextContent(element);
3942
+ else textContent = element.value || element.textContent;
3943
+ return textContent;
3944
+ }
3945
+ function getRealLabels(element) {
3946
+ if (element.labels !== void 0) {
3947
+ var _labels;
3948
+ return (_labels = element.labels) != null ? _labels : [];
3949
+ }
3950
+ if (!isLabelable(element)) return [];
3951
+ const labels = element.ownerDocument.querySelectorAll("label");
3952
+ return Array.from(labels).filter((label) => label.control === element);
3953
+ }
3954
+ function isLabelable(element) {
3955
+ return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === "INPUT" && element.getAttribute("type") !== "hidden";
3956
+ }
3957
+ function getLabels(container, element, _temp) {
3958
+ let _ref$selector = (_temp === void 0 ? {} : _temp).selector, selector = _ref$selector === void 0 ? "*" : _ref$selector;
3959
+ const ariaLabelledBy = element.getAttribute("aria-labelledby");
3960
+ const labelsId = ariaLabelledBy ? ariaLabelledBy.split(" ") : [];
3961
+ return labelsId.length ? labelsId.map((labelId) => {
3962
+ const labellingElement = container.querySelector("[id=\"" + labelId + "\"]");
3963
+ return labellingElement ? {
3964
+ content: getLabelContent(labellingElement),
3965
+ formControl: null
3966
+ } : {
3967
+ content: "",
3968
+ formControl: null
3969
+ };
3970
+ }) : Array.from(getRealLabels(element)).map((label) => {
3971
+ return {
3972
+ content: getLabelContent(label),
3973
+ formControl: Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement) => formControlElement.matches(selector))[0]
3974
+ };
3975
+ });
3976
+ }
3977
+ function assertNotNullOrUndefined(matcher) {
3978
+ if (matcher === null || matcher === void 0) throw new Error("It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?");
3979
+ }
3980
+ function fuzzyMatches(textToMatch, node, matcher, normalizer) {
3981
+ if (typeof textToMatch !== "string") return false;
3982
+ assertNotNullOrUndefined(matcher);
3983
+ const normalizedText = normalizer(textToMatch);
3984
+ if (typeof matcher === "string" || typeof matcher === "number") return normalizedText.toLowerCase().includes(matcher.toString().toLowerCase());
3985
+ else if (typeof matcher === "function") return matcher(normalizedText, node);
3986
+ else return matchRegExp(matcher, normalizedText);
3987
+ }
3988
+ function matches(textToMatch, node, matcher, normalizer) {
3989
+ if (typeof textToMatch !== "string") return false;
3990
+ assertNotNullOrUndefined(matcher);
3991
+ const normalizedText = normalizer(textToMatch);
3992
+ if (matcher instanceof Function) return matcher(normalizedText, node);
3993
+ else if (matcher instanceof RegExp) return matchRegExp(matcher, normalizedText);
3994
+ else return normalizedText === String(matcher);
3995
+ }
3996
+ function getDefaultNormalizer(_temp) {
3997
+ let _ref = _temp === void 0 ? {} : _temp, _ref$trim = _ref.trim, trim = _ref$trim === void 0 ? true : _ref$trim, _ref$collapseWhitespa = _ref.collapseWhitespace, collapseWhitespace = _ref$collapseWhitespa === void 0 ? true : _ref$collapseWhitespa;
3998
+ return (text) => {
3999
+ let normalizedText = text;
4000
+ normalizedText = trim ? normalizedText.trim() : normalizedText;
4001
+ normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, " ") : normalizedText;
4002
+ return normalizedText;
4003
+ };
4004
+ }
4005
+ /**
4006
+ * Constructs a normalizer to pass to functions in matches.js
4007
+ * @param {boolean|undefined} trim The user-specified value for `trim`, without
4008
+ * any defaulting having been applied
4009
+ * @param {boolean|undefined} collapseWhitespace The user-specified value for
4010
+ * `collapseWhitespace`, without any defaulting having been applied
4011
+ * @param {Function|undefined} normalizer The user-specified normalizer
4012
+ * @returns {Function} A normalizer
4013
+ */
4014
+ function makeNormalizer(_ref2) {
4015
+ let trim = _ref2.trim, collapseWhitespace = _ref2.collapseWhitespace, normalizer = _ref2.normalizer;
4016
+ if (!normalizer) return getDefaultNormalizer({
4017
+ trim,
4018
+ collapseWhitespace
4019
+ });
4020
+ if (typeof trim !== "undefined" || typeof collapseWhitespace !== "undefined") throw new Error("trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use \"getDefaultNormalizer({trim, collapseWhitespace})\" and compose that into your normalizer");
4021
+ return normalizer;
4022
+ }
4023
+ function matchRegExp(matcher, text) {
4024
+ const match = matcher.test(text);
4025
+ if (matcher.global && matcher.lastIndex !== 0) {
4026
+ console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp.");
4027
+ matcher.lastIndex = 0;
4028
+ }
4029
+ return match;
4030
+ }
4031
+ function getNodeText(node) {
4032
+ if (node.matches("input[type=submit], input[type=button], input[type=reset]")) return node.value;
4033
+ return Array.from(node.childNodes).filter((child) => child.nodeType === TEXT_NODE && Boolean(child.textContent)).map((c) => c.textContent).join("");
4034
+ }
4035
+ /**
4036
+ * @param {Element} element -
4037
+ * @returns {boolean} - `true` if `element` and its subtree are inaccessible
4038
+ */
4039
+ function isSubtreeInaccessible(element) {
4040
+ if (element.hidden === true) return true;
4041
+ if (element.getAttribute("aria-hidden") === "true") return true;
4042
+ if (element.ownerDocument.defaultView.getComputedStyle(element).display === "none") return true;
4043
+ return false;
4044
+ }
4045
+ /**
4046
+ * Partial implementation https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion
4047
+ * which should only be used for elements with a non-presentational role i.e.
4048
+ * `role="none"` and `role="presentation"` will not be excluded.
4049
+ *
4050
+ * Implements aria-hidden semantics (i.e. parent overrides child)
4051
+ * Ignores "Child Presentational: True" characteristics
4052
+ *
4053
+ * @param {Element} element -
4054
+ * @param {object} [options] -
4055
+ * @param {function (element: Element): boolean} options.isSubtreeInaccessible -
4056
+ * can be used to return cached results from previous isSubtreeInaccessible calls
4057
+ * @returns {boolean} true if excluded, otherwise false
4058
+ */
4059
+ function isInaccessible(element, options) {
4060
+ if (options === void 0) options = {};
4061
+ const _options$isSubtreeIna = options.isSubtreeInaccessible, isSubtreeInaccessibleImpl = _options$isSubtreeIna === void 0 ? isSubtreeInaccessible : _options$isSubtreeIna;
4062
+ if (element.ownerDocument.defaultView.getComputedStyle(element).visibility === "hidden") return true;
4063
+ let currentElement = element;
4064
+ while (currentElement) {
4065
+ if (isSubtreeInaccessibleImpl(currentElement)) return true;
4066
+ currentElement = currentElement.parentElement;
4067
+ }
4068
+ return false;
4069
+ }
4070
+ function getImplicitAriaRoles(currentNode) {
4071
+ for (const _ref of elementRoleList) {
4072
+ const match = _ref.match;
4073
+ const roles = _ref.roles;
4074
+ if (match(currentNode)) return [...roles];
4075
+ }
4076
+ return [];
4077
+ }
4078
+ function buildElementRoleList(elementRolesMap) {
4079
+ function makeElementSelector(_ref2) {
4080
+ let name = _ref2.name, attributes = _ref2.attributes;
4081
+ return "" + name + attributes.map((_ref3) => {
4082
+ let attributeName = _ref3.name, value = _ref3.value, _ref3$constraints = _ref3.constraints, constraints = _ref3$constraints === void 0 ? [] : _ref3$constraints;
4083
+ const shouldNotExist = constraints.indexOf("undefined") !== -1;
4084
+ const shouldBeNonEmpty = constraints.indexOf("set") !== -1;
4085
+ if (typeof value !== "undefined") return "[" + attributeName + "=\"" + value + "\"]";
4086
+ else if (shouldNotExist) return ":not([" + attributeName + "])";
4087
+ else if (shouldBeNonEmpty) return "[" + attributeName + "]:not([" + attributeName + "=\"\"])";
4088
+ return "[" + attributeName + "]";
4089
+ }).join("");
4090
+ }
4091
+ function getSelectorSpecificity(_ref4) {
4092
+ let _ref4$attributes = _ref4.attributes;
4093
+ return (_ref4$attributes === void 0 ? [] : _ref4$attributes).length;
4094
+ }
4095
+ function bySelectorSpecificity(_ref5, _ref6) {
4096
+ let leftSpecificity = _ref5.specificity;
4097
+ return _ref6.specificity - leftSpecificity;
4098
+ }
4099
+ function match(element) {
4100
+ let _element$attributes = element.attributes, attributes = _element$attributes === void 0 ? [] : _element$attributes;
4101
+ const typeTextIndex = attributes.findIndex((attribute) => attribute.value && attribute.name === "type" && attribute.value === "text");
4102
+ if (typeTextIndex >= 0) attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)];
4103
+ const selector = makeElementSelector({
4104
+ ...element,
4105
+ attributes
4106
+ });
4107
+ return (node) => {
4108
+ if (typeTextIndex >= 0 && node.type !== "text") return false;
4109
+ return node.matches(selector);
4110
+ };
4111
+ }
4112
+ let result = [];
4113
+ for (const _ref7 of elementRolesMap.entries()) {
4114
+ const element = _ref7[0];
4115
+ const roles = _ref7[1];
4116
+ result = [...result, {
4117
+ match: match(element),
4118
+ roles: Array.from(roles),
4119
+ specificity: getSelectorSpecificity(element)
4120
+ }];
4121
+ }
4122
+ return result.sort(bySelectorSpecificity);
4123
+ }
4124
+ function getRoles(container, _temp) {
4125
+ let _ref8$hidden = (_temp === void 0 ? {} : _temp).hidden, hidden = _ref8$hidden === void 0 ? false : _ref8$hidden;
4126
+ function flattenDOM(node) {
4127
+ return [node, ...Array.from(node.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])];
4128
+ }
4129
+ return flattenDOM(container).filter((element) => {
4130
+ return hidden === false ? isInaccessible(element) === false : true;
4131
+ }).reduce((acc, node) => {
4132
+ let roles = [];
4133
+ if (node.hasAttribute("role")) roles = node.getAttribute("role").split(" ").slice(0, 1);
4134
+ else roles = getImplicitAriaRoles(node);
4135
+ return roles.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? {
4136
+ ...rolesAcc,
4137
+ [role]: [...rolesAcc[role], node]
4138
+ } : {
4139
+ ...rolesAcc,
4140
+ [role]: [node]
4141
+ }, acc);
4142
+ }, {});
4143
+ }
4144
+ function prettyRoles(dom, _ref9) {
4145
+ let hidden = _ref9.hidden, includeDescription = _ref9.includeDescription;
4146
+ const roles = getRoles(dom, { hidden });
4147
+ return Object.entries(roles).filter((_ref0) => {
4148
+ return _ref0[0] !== "generic";
4149
+ }).map((_ref1) => {
4150
+ let role = _ref1[0], elements = _ref1[1];
4151
+ const delimiterBar = "-".repeat(50);
4152
+ const elementsString = elements.map((el) => {
4153
+ const nameString = "Name \"" + computeAccessibleName$1(el, { computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements }) + "\":\n";
4154
+ const domString = prettyDOM(el.cloneNode(false));
4155
+ if (includeDescription) {
4156
+ const descriptionString = "Description \"" + computeAccessibleDescription$1(el, { computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements }) + "\":\n";
4157
+ return "" + nameString + descriptionString + domString;
4158
+ }
4159
+ return "" + nameString + domString;
4160
+ }).join("\n\n");
4161
+ return role + ":\n\n" + elementsString + "\n\n" + delimiterBar;
4162
+ }).join("\n");
4163
+ }
4164
+ /**
4165
+ * @param {Element} element -
4166
+ * @returns {boolean | undefined} - false/true if (not)selected, undefined if not selectable
4167
+ */
4168
+ function computeAriaSelected(element) {
4169
+ if (element.tagName === "OPTION") return element.selected;
4170
+ return checkBooleanAttribute(element, "aria-selected");
4171
+ }
4172
+ /**
4173
+ * @param {Element} element -
4174
+ * @returns {boolean} -
4175
+ */
4176
+ function computeAriaBusy(element) {
4177
+ return element.getAttribute("aria-busy") === "true";
4178
+ }
4179
+ /**
4180
+ * @param {Element} element -
4181
+ * @returns {boolean | undefined} - false/true if (not)checked, undefined if not checked-able
4182
+ */
4183
+ function computeAriaChecked(element) {
4184
+ if ("indeterminate" in element && element.indeterminate) return;
4185
+ if ("checked" in element) return element.checked;
4186
+ return checkBooleanAttribute(element, "aria-checked");
4187
+ }
4188
+ /**
4189
+ * @param {Element} element -
4190
+ * @returns {boolean | undefined} - false/true if (not)pressed, undefined if not press-able
4191
+ */
4192
+ function computeAriaPressed(element) {
4193
+ return checkBooleanAttribute(element, "aria-pressed");
4194
+ }
4195
+ /**
4196
+ * @param {Element} element -
4197
+ * @returns {boolean | string | null} -
4198
+ */
4199
+ function computeAriaCurrent(element) {
4200
+ var _ref11, _checkBooleanAttribut;
4201
+ return (_ref11 = (_checkBooleanAttribut = checkBooleanAttribute(element, "aria-current")) != null ? _checkBooleanAttribut : element.getAttribute("aria-current")) != null ? _ref11 : false;
4202
+ }
4203
+ /**
4204
+ * @param {Element} element -
4205
+ * @returns {boolean | undefined} - false/true if (not)expanded, undefined if not expand-able
4206
+ */
4207
+ function computeAriaExpanded(element) {
4208
+ return checkBooleanAttribute(element, "aria-expanded");
4209
+ }
4210
+ function checkBooleanAttribute(element, attribute) {
4211
+ const attributeValue = element.getAttribute(attribute);
4212
+ if (attributeValue === "true") return true;
4213
+ if (attributeValue === "false") return false;
4214
+ }
4215
+ /**
4216
+ * @param {Element} element -
4217
+ * @returns {number | undefined} - number if implicit heading or aria-level present, otherwise undefined
4218
+ */
4219
+ function computeHeadingLevel(element) {
4220
+ return element.getAttribute("aria-level") && Number(element.getAttribute("aria-level")) || {
4221
+ H1: 1,
4222
+ H2: 2,
4223
+ H3: 3,
4224
+ H4: 4,
4225
+ H5: 5,
4226
+ H6: 6
4227
+ }[element.tagName];
4228
+ }
4229
+ /**
4230
+ * @param {Element} element -
4231
+ * @returns {number | undefined} -
4232
+ */
4233
+ function computeAriaValueNow(element) {
4234
+ const valueNow = element.getAttribute("aria-valuenow");
4235
+ return valueNow === null ? void 0 : +valueNow;
4236
+ }
4237
+ /**
4238
+ * @param {Element} element -
4239
+ * @returns {number | undefined} -
4240
+ */
4241
+ function computeAriaValueMax(element) {
4242
+ const valueMax = element.getAttribute("aria-valuemax");
4243
+ return valueMax === null ? void 0 : +valueMax;
4244
+ }
4245
+ /**
4246
+ * @param {Element} element -
4247
+ * @returns {number | undefined} -
4248
+ */
4249
+ function computeAriaValueMin(element) {
4250
+ const valueMin = element.getAttribute("aria-valuemin");
4251
+ return valueMin === null ? void 0 : +valueMin;
4252
+ }
4253
+ /**
4254
+ * @param {Element} element -
4255
+ * @returns {string | undefined} -
4256
+ */
4257
+ function computeAriaValueText(element) {
4258
+ const valueText = element.getAttribute("aria-valuetext");
4259
+ return valueText === null ? void 0 : valueText;
4260
+ }
4261
+ function escapeRegExp(string) {
4262
+ return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
4263
+ }
4264
+ function getRegExpMatcher(string) {
4265
+ return new RegExp(escapeRegExp(string.toLowerCase()), "i");
4266
+ }
4267
+ function makeSuggestion(queryName, element, content, _ref) {
4268
+ let variant = _ref.variant, name = _ref.name;
4269
+ let warning = "";
4270
+ const queryOptions = {};
4271
+ const queryArgs = [["Role", "TestId"].includes(queryName) ? content : getRegExpMatcher(content)];
4272
+ if (name) queryOptions.name = getRegExpMatcher(name);
4273
+ if (queryName === "Role" && isInaccessible(element)) {
4274
+ queryOptions.hidden = true;
4275
+ warning = "Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n ";
4276
+ }
4277
+ if (Object.keys(queryOptions).length > 0) queryArgs.push(queryOptions);
4278
+ const queryMethod = variant + "By" + queryName;
4279
+ return {
4280
+ queryName,
4281
+ queryMethod,
4282
+ queryArgs,
4283
+ variant,
4284
+ warning,
4285
+ toString() {
4286
+ if (warning) console.warn(warning);
4287
+ let text = queryArgs[0], options = queryArgs[1];
4288
+ text = typeof text === "string" ? "'" + text + "'" : text;
4289
+ options = options ? ", { " + Object.entries(options).map((_ref2) => {
4290
+ let k = _ref2[0], v = _ref2[1];
4291
+ return k + ": " + v;
4292
+ }).join(", ") + " }" : "";
4293
+ return queryMethod + "(" + text + options + ")";
4294
+ }
4295
+ };
4296
+ }
4297
+ function canSuggest(currentMethod, requestedMethod, data) {
4298
+ return data && (!requestedMethod || requestedMethod.toLowerCase() === currentMethod.toLowerCase());
4299
+ }
4300
+ function getSuggestedQuery(element, variant, method) {
4301
+ var _element$getAttribute, _getImplicitAriaRoles;
4302
+ if (variant === void 0) variant = "get";
4303
+ if (element.matches(getConfig().defaultIgnore)) return;
4304
+ const role = (_element$getAttribute = element.getAttribute("role")) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles(element)) == null ? void 0 : _getImplicitAriaRoles[0];
4305
+ if (role !== "generic" && canSuggest("Role", method, role)) return makeSuggestion("Role", element, role, {
4306
+ variant,
4307
+ name: computeAccessibleName$1(element, { computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements })
4308
+ });
4309
+ const labelText = getLabels(document, element).map((label) => label.content).join(" ");
4310
+ if (canSuggest("LabelText", method, labelText)) return makeSuggestion("LabelText", element, labelText, { variant });
4311
+ const placeholderText = element.getAttribute("placeholder");
4312
+ if (canSuggest("PlaceholderText", method, placeholderText)) return makeSuggestion("PlaceholderText", element, placeholderText, { variant });
4313
+ const textContent = normalize$1(getNodeText(element));
4314
+ if (canSuggest("Text", method, textContent)) return makeSuggestion("Text", element, textContent, { variant });
4315
+ if (canSuggest("DisplayValue", method, element.value)) return makeSuggestion("DisplayValue", element, normalize$1(element.value), { variant });
4316
+ const alt = element.getAttribute("alt");
4317
+ if (canSuggest("AltText", method, alt)) return makeSuggestion("AltText", element, alt, { variant });
4318
+ const title = element.getAttribute("title");
4319
+ if (canSuggest("Title", method, title)) return makeSuggestion("Title", element, title, { variant });
4320
+ const testId = element.getAttribute(getConfig().testIdAttribute);
4321
+ if (canSuggest("TestId", method, testId)) return makeSuggestion("TestId", element, testId, { variant });
4322
+ }
4323
+ function copyStackTrace(target, source) {
4324
+ target.stack = source.stack.replace(source.message, target.message);
4325
+ }
4326
+ function waitFor(callback, _ref) {
4327
+ let _ref$container = _ref.container, container = _ref$container === void 0 ? getDocument$1() : _ref$container, _ref$timeout = _ref.timeout, timeout = _ref$timeout === void 0 ? getConfig().asyncUtilTimeout : _ref$timeout, _ref$showOriginalStac = _ref.showOriginalStackTrace, showOriginalStackTrace = _ref$showOriginalStac === void 0 ? getConfig().showOriginalStackTrace : _ref$showOriginalStac, stackTraceError = _ref.stackTraceError, _ref$interval = _ref.interval, interval = _ref$interval === void 0 ? 50 : _ref$interval, _ref$onTimeout = _ref.onTimeout, onTimeout = _ref$onTimeout === void 0 ? (error) => {
4328
+ Object.defineProperty(error, "message", { value: getConfig().getElementError(error.message, container).message });
4329
+ return error;
4330
+ } : _ref$onTimeout, _ref$mutationObserver = _ref.mutationObserverOptions, mutationObserverOptions = _ref$mutationObserver === void 0 ? {
4331
+ subtree: true,
4332
+ childList: true,
4333
+ attributes: true,
4334
+ characterData: true
4335
+ } : _ref$mutationObserver;
4336
+ if (typeof callback !== "function") throw new TypeError("Received `callback` arg must be a function");
4337
+ return new Promise(async (resolve, reject) => {
4338
+ let lastError, intervalId, observer;
4339
+ let finished = false;
4340
+ let promiseStatus = "idle";
4341
+ const overallTimeoutTimer = setTimeout(handleTimeout, timeout);
4342
+ const usingJestFakeTimers = jestFakeTimersAreEnabled();
4343
+ if (usingJestFakeTimers) {
4344
+ const advanceTimersWrapper = getConfig().unstable_advanceTimersWrapper;
4345
+ checkCallback();
4346
+ while (!finished) {
4347
+ if (!jestFakeTimersAreEnabled()) {
4348
+ const error = /* @__PURE__ */ new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
4349
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
4350
+ reject(error);
4351
+ return;
4352
+ }
4353
+ await advanceTimersWrapper(async () => {
4354
+ jest.advanceTimersByTime(interval);
4355
+ });
4356
+ if (finished) break;
4357
+ checkCallback();
4358
+ }
4359
+ } else {
4360
+ try {
4361
+ checkContainerType(container);
4362
+ } catch (e) {
4363
+ reject(e);
4364
+ return;
4365
+ }
4366
+ intervalId = setInterval(checkRealTimersCallback, interval);
4367
+ const MutationObserver = getWindowFromNode(container).MutationObserver;
4368
+ observer = new MutationObserver(checkRealTimersCallback);
4369
+ observer.observe(container, mutationObserverOptions);
4370
+ checkCallback();
4371
+ }
4372
+ function onDone(error, result) {
4373
+ finished = true;
4374
+ clearTimeout(overallTimeoutTimer);
4375
+ if (!usingJestFakeTimers) {
4376
+ clearInterval(intervalId);
4377
+ observer.disconnect();
4378
+ }
4379
+ if (error) reject(error);
4380
+ else resolve(result);
4381
+ }
4382
+ function checkRealTimersCallback() {
4383
+ if (jestFakeTimersAreEnabled()) {
4384
+ const error = /* @__PURE__ */ new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
4385
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
4386
+ return reject(error);
4387
+ } else return checkCallback();
4388
+ }
4389
+ function checkCallback() {
4390
+ if (promiseStatus === "pending") return;
4391
+ try {
4392
+ const result = runWithExpensiveErrorDiagnosticsDisabled(callback);
4393
+ if (typeof (result == null ? void 0 : result.then) === "function") {
4394
+ promiseStatus = "pending";
4395
+ result.then((resolvedValue) => {
4396
+ promiseStatus = "resolved";
4397
+ onDone(null, resolvedValue);
4398
+ }, (rejectedValue) => {
4399
+ promiseStatus = "rejected";
4400
+ lastError = rejectedValue;
4401
+ });
4402
+ } else onDone(null, result);
4403
+ } catch (error) {
4404
+ lastError = error;
4405
+ }
4406
+ }
4407
+ function handleTimeout() {
4408
+ let error;
4409
+ if (lastError) {
4410
+ error = lastError;
4411
+ if (!showOriginalStackTrace && error.name === "TestingLibraryElementError") copyStackTrace(error, stackTraceError);
4412
+ } else {
4413
+ error = /* @__PURE__ */ new Error("Timed out in waitFor.");
4414
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
4415
+ }
4416
+ onDone(onTimeout(error), null);
4417
+ }
4418
+ });
4419
+ }
4420
+ function waitForWrapper(callback, options) {
4421
+ const stackTraceError = /* @__PURE__ */ new Error("STACK_TRACE_MESSAGE");
4422
+ return getConfig().asyncWrapper(() => waitFor(callback, {
4423
+ stackTraceError,
4424
+ ...options
4425
+ }));
4426
+ }
4427
+ function getElementError(message, container) {
4428
+ return getConfig().getElementError(message, container);
4429
+ }
4430
+ function getMultipleElementsFoundError(message, container) {
4431
+ return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container);
4432
+ }
4433
+ function queryAllByAttribute(attribute, container, text, _temp) {
4434
+ let _ref = _temp === void 0 ? {} : _temp, _ref$exact = _ref.exact, exact = _ref$exact === void 0 ? true : _ref$exact, collapseWhitespace = _ref.collapseWhitespace, trim = _ref.trim, normalizer = _ref.normalizer;
4435
+ const matcher = exact ? matches : fuzzyMatches;
4436
+ const matchNormalizer = makeNormalizer({
4437
+ collapseWhitespace,
4438
+ trim,
4439
+ normalizer
4440
+ });
4441
+ return Array.from(container.querySelectorAll("[" + attribute + "]")).filter((node) => matcher(node.getAttribute(attribute), node, text, matchNormalizer));
4442
+ }
4443
+ function queryByAttribute(attribute, container, text, options) {
4444
+ const els = queryAllByAttribute(attribute, container, text, options);
4445
+ if (els.length > 1) throw getMultipleElementsFoundError("Found multiple elements by [" + attribute + "=" + text + "]", container);
4446
+ return els[0] || null;
4447
+ }
4448
+ function makeSingleQuery(allQuery, getMultipleError) {
4449
+ return function(container) {
4450
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
4451
+ const els = allQuery(container, ...args);
4452
+ if (els.length > 1) {
4453
+ const elementStrings = els.map((element) => getElementError(null, element).message).join("\n\n");
4454
+ throw getMultipleElementsFoundError(getMultipleError(container, ...args) + "\n\nHere are the matching elements:\n\n" + elementStrings, container);
4455
+ }
4456
+ return els[0] || null;
4457
+ };
4458
+ }
4459
+ function getSuggestionError(suggestion, container) {
4460
+ return getConfig().getElementError("A better query is available, try this:\n" + suggestion.toString() + "\n", container);
4461
+ }
4462
+ function makeGetAllQuery(allQuery, getMissingError) {
4463
+ return function(container) {
4464
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
4465
+ const els = allQuery(container, ...args);
4466
+ if (!els.length) throw getConfig().getElementError(getMissingError(container, ...args), container);
4467
+ return els;
4468
+ };
4469
+ }
4470
+ function makeFindQuery(getter) {
4471
+ return (container, text, options, waitForOptions) => {
4472
+ return waitForWrapper(() => {
4473
+ return getter(container, text, options);
4474
+ }, {
4475
+ container,
4476
+ ...waitForOptions
4477
+ });
4478
+ };
4479
+ }
4480
+ function buildQueries(queryAllBy, getMultipleError, getMissingError) {
4481
+ const queryBy = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy, getMultipleError), queryAllBy.name, "query");
4482
+ const getAllBy = makeGetAllQuery(queryAllBy, getMissingError);
4483
+ const getBy = makeSingleQuery(getAllBy, getMultipleError);
4484
+ const getByWithSuggestions = wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "get");
4485
+ return [
4486
+ queryBy,
4487
+ wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name.replace("query", "get"), "getAll"),
4488
+ getByWithSuggestions,
4489
+ makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name, "findAll")),
4490
+ makeFindQuery(wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "find"))
4491
+ ];
4492
+ }
4493
+ function queryAllLabels(container) {
4494
+ return Array.from(container.querySelectorAll("label,input")).map((node) => {
4495
+ return {
4496
+ node,
4497
+ textToMatch: getLabelContent(node)
4498
+ };
4499
+ }).filter((_ref) => {
4500
+ return _ref.textToMatch !== null;
4501
+ });
4502
+ }
4503
+ function getTagNameOfElementAssociatedWithLabelViaFor(container, label) {
4504
+ const htmlFor = label.getAttribute("for");
4505
+ if (!htmlFor) return null;
4506
+ const element = container.querySelector("[id=\"" + htmlFor + "\"]");
4507
+ return element ? element.tagName.toLowerCase() : null;
4508
+ }
4509
+ function makeRoleSelector(role) {
4510
+ var _roleElements$get;
4511
+ const explicitRoleSelector = "*[role~=\"" + role + "\"]";
4512
+ const roleRelations = (_roleElements$get = import_lib.roleElements.get(role)) != null ? _roleElements$get : /* @__PURE__ */ new Set();
4513
+ const implicitRoleSelectors = new Set(Array.from(roleRelations).map((_ref2) => {
4514
+ return _ref2.name;
4515
+ }));
4516
+ return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",");
4517
+ }
4518
+ /**
4519
+ * @typedef {{[key: string]: Function}} FuncMap
4520
+ */
4521
+ /**
4522
+ * @param {HTMLElement} element container
4523
+ * @param {FuncMap} queries object of functions
4524
+ * @param {Object} initialValue for reducer
4525
+ * @returns {FuncMap} returns object of functions bound to container
4526
+ */
4527
+ function getQueriesForElement(element, queries$1, initialValue) {
4528
+ if (queries$1 === void 0) queries$1 = queries;
4529
+ if (initialValue === void 0) initialValue = {};
4530
+ return Object.keys(queries$1).reduce((helpers, key) => {
4531
+ helpers[key] = queries$1[key].bind(null, element);
4532
+ return helpers;
4533
+ }, initialValue);
4534
+ }
4535
+ function initialCheck(elements) {
4536
+ if (isRemoved(elements)) throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.");
4537
+ }
4538
+ async function waitForElementToBeRemoved(callback, options) {
4539
+ const timeoutError = /* @__PURE__ */ new Error("Timed out in waitForElementToBeRemoved.");
4540
+ if (typeof callback !== "function") {
4541
+ initialCheck(callback);
4542
+ const getRemainingElements = (Array.isArray(callback) ? callback : [callback]).map((element) => {
4543
+ let parent = element.parentElement;
4544
+ if (parent === null) return () => null;
4545
+ while (parent.parentElement) parent = parent.parentElement;
4546
+ return () => parent.contains(element) ? element : null;
4547
+ });
4548
+ callback = () => getRemainingElements.map((c) => c()).filter(Boolean);
4549
+ }
4550
+ initialCheck(callback());
4551
+ return waitForWrapper(() => {
4552
+ let result;
4553
+ try {
4554
+ result = callback();
4555
+ } catch (error) {
4556
+ if (error.name === "TestingLibraryElementError") return;
4557
+ throw error;
4558
+ }
4559
+ if (!isRemoved(result)) throw timeoutError;
4560
+ }, options);
4561
+ }
4562
+ function fireEvent(element, event) {
4563
+ return getConfig().eventWrapper(() => {
4564
+ if (!event) throw new Error("Unable to fire an event - please provide an event object.");
4565
+ if (!element) throw new Error("Unable to fire a \"" + event.type + "\" event - please provide a DOM element.");
4566
+ return element.dispatchEvent(event);
4567
+ });
4568
+ }
4569
+ function createEvent$1(eventName, node, init, _temp) {
4570
+ let _ref = _temp === void 0 ? {} : _temp, _ref$EventType = _ref.EventType, EventType = _ref$EventType === void 0 ? "Event" : _ref$EventType, _ref$defaultInit = _ref.defaultInit, defaultInit = _ref$defaultInit === void 0 ? {} : _ref$defaultInit;
4571
+ if (!node) throw new Error("Unable to fire a \"" + eventName + "\" event - please provide a DOM element.");
4572
+ const eventInit = {
4573
+ ...defaultInit,
4574
+ ...init
4575
+ };
4576
+ const _eventInit$target = eventInit.target, _eventInit$target2 = _eventInit$target === void 0 ? {} : _eventInit$target, value = _eventInit$target2.value, files = _eventInit$target2.files, targetProperties = _objectWithoutPropertiesLoose(_eventInit$target2, _excluded);
4577
+ if (value !== void 0) setNativeValue(node, value);
4578
+ if (files !== void 0) Object.defineProperty(node, "files", {
4579
+ configurable: true,
4580
+ enumerable: true,
4581
+ writable: true,
4582
+ value: files
4583
+ });
4584
+ Object.assign(node, targetProperties);
4585
+ const window = getWindowFromNode(node);
4586
+ const EventConstructor = window[EventType] || window.Event;
4587
+ let event;
4588
+ /* istanbul ignore else */
4589
+ if (typeof EventConstructor === "function") event = new EventConstructor(eventName, eventInit);
4590
+ else {
4591
+ event = window.document.createEvent(EventType);
4592
+ const bubbles = eventInit.bubbles, cancelable = eventInit.cancelable, detail = eventInit.detail, otherInit = _objectWithoutPropertiesLoose(eventInit, _excluded2);
4593
+ event.initEvent(eventName, bubbles, cancelable, detail);
4594
+ Object.keys(otherInit).forEach((eventKey) => {
4595
+ event[eventKey] = otherInit[eventKey];
4596
+ });
4597
+ }
4598
+ ["dataTransfer", "clipboardData"].forEach((dataTransferKey) => {
4599
+ const dataTransferValue = eventInit[dataTransferKey];
4600
+ if (typeof dataTransferValue === "object") {
4601
+ /* istanbul ignore if */
4602
+ if (typeof window.DataTransfer === "function") Object.defineProperty(event, dataTransferKey, { value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => {
4603
+ Object.defineProperty(acc, propName, { value: dataTransferValue[propName] });
4604
+ return acc;
4605
+ }, new window.DataTransfer()) });
4606
+ else Object.defineProperty(event, dataTransferKey, { value: dataTransferValue });
4607
+ }
4608
+ });
4609
+ return event;
4610
+ }
4611
+ function setNativeValue(element, value) {
4612
+ const valueSetter = (Object.getOwnPropertyDescriptor(element, "value") || {}).set;
4613
+ const prototype = Object.getPrototypeOf(element);
4614
+ const prototypeValueSetter = (Object.getOwnPropertyDescriptor(prototype, "value") || {}).set;
4615
+ if (prototypeValueSetter && valueSetter !== prototypeValueSetter) prototypeValueSetter.call(element, value);
4616
+ else if (valueSetter) valueSetter.call(element, value);
4617
+ else throw new Error("The given element does not have a value setter");
4618
+ }
4619
+ function unindent(string) {
4620
+ return string.replace(/[ \t]*[\n][ \t]*/g, "\n");
4621
+ }
4622
+ function encode(value) {
4623
+ return import_lz_string.default.compressToEncodedURIComponent(unindent(value));
4624
+ }
4625
+ function getPlaygroundUrl(markup) {
4626
+ return "https://testing-playground.com/#markup=" + encode(markup);
4627
+ }
4628
+ var import_build, import_lib, import_lz_string, printProps, NodeTypeTextNode, printChildren, printText, printComment, printElement, printElementAsLeaf, ELEMENT_NODE$1, TEXT_NODE$1, COMMENT_NODE$1, FRAGMENT_NODE, ELEMENT_REGEXP, isCustomElement, testNode, picocolors, readFileSync, codeFrameColumns, TEXT_NODE, _excluded$1, shouldHighlight, DOMCollection, ELEMENT_NODE, COMMENT_NODE, logDOM, config, labelledNodeNames, elementRoleList, logRoles, normalize$1, wrapSingleQueryWithSuggestion, wrapAllByQueryWithSuggestion, queryHelpers, queryAllLabelsByText, queryAllByLabelText, getAllByLabelText, getMultipleError$7, queryByLabelText, getByLabelText, findAllByLabelText, findByLabelText, getAllByLabelTextWithSuggestions, getByLabelTextWithSuggestions, queryAllByLabelTextWithSuggestions, queryAllByPlaceholderText, getMultipleError$6, getMissingError$6, queryAllByPlaceholderTextWithSuggestions, _buildQueries$6, queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText, queryAllByText, getMultipleError$5, getMissingError$5, queryAllByTextWithSuggestions, _buildQueries$5, queryByText, getAllByText, getByText, findAllByText, findByText, queryAllByDisplayValue, getMultipleError$4, getMissingError$4, queryAllByDisplayValueWithSuggestions, _buildQueries$4, queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue, VALID_TAG_REGEXP, queryAllByAltText, getMultipleError$3, getMissingError$3, queryAllByAltTextWithSuggestions, _buildQueries$3, queryByAltText, getAllByAltText, getByAltText, findAllByAltText, findByAltText, isSvgTitle, queryAllByTitle, getMultipleError$2, getMissingError$2, queryAllByTitleWithSuggestions, _buildQueries$2, queryByTitle, getAllByTitle, getByTitle, findAllByTitle, findByTitle, queryAllByRole, getNameHint, getMultipleError$1, getMissingError$1, queryAllByRoleWithSuggestions, _buildQueries$1, queryByRole, getAllByRole, getByRole, findAllByRole, findByRole, getTestIdAttribute, queryAllByTestId, getMultipleError, getMissingError, queryAllByTestIdWithSuggestions, _buildQueries, queryByTestId, getAllByTestId, getByTestId, findAllByTestId, findByTestId, queries, isRemoved, eventMap$1, eventAliasMap, _excluded, _excluded2, debug, logTestingPlaygroundURL, initialValue, screen;
4629
+ function init_dom_esm() {
4630
+ return (init_dom_esm = __esmMin((() => {
4631
+ import_build = /* @__PURE__ */ __toESM(require_build());
4632
+ init_dist$1();
4633
+ import_lib = require_lib();
4634
+ import_lz_string = /* @__PURE__ */ __toESM(require_lz_string());
4635
+ printProps = (keys, props, config, indentation, depth, refs, printer) => {
4636
+ const indentationNext = indentation + config.indent;
4637
+ const colors = config.colors;
4638
+ return keys.map((key) => {
4639
+ const value = props[key];
4640
+ let printed = printer(value, config, indentationNext, depth, refs);
4641
+ if (typeof value !== "string") {
4642
+ if (printed.indexOf("\n") !== -1) printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
4643
+ printed = "{" + printed + "}";
4644
+ }
4645
+ return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + "=" + colors.value.open + printed + colors.value.close;
4646
+ }).join("");
4647
+ };
4648
+ NodeTypeTextNode = 3;
4649
+ printChildren = (children, config, indentation, depth, refs, printer) => children.map((child) => {
4650
+ const printedChild = typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs);
4651
+ if (printedChild === "" && typeof child === "object" && child !== null && child.nodeType !== NodeTypeTextNode) return "";
4652
+ return config.spacingOuter + indentation + printedChild;
4653
+ }).join("");
4654
+ printText = (text, config) => {
4655
+ const contentColor = config.colors.content;
4656
+ return contentColor.open + escapeHTML(text) + contentColor.close;
4657
+ };
4658
+ printComment = (comment, config) => {
4659
+ const commentColor = config.colors.comment;
4660
+ return commentColor.open + "<!--" + escapeHTML(comment) + "-->" + commentColor.close;
4661
+ };
4662
+ printElement = (type, printedProps, printedChildren, config, indentation) => {
4663
+ const tagColor = config.colors.tag;
4664
+ 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;
4665
+ };
4666
+ printElementAsLeaf = (type, config) => {
4667
+ const tagColor = config.colors.tag;
4668
+ return tagColor.open + "<" + type + tagColor.close + " …" + tagColor.open + " />" + tagColor.close;
4669
+ };
4670
+ ELEMENT_NODE$1 = 1;
4671
+ TEXT_NODE$1 = 3;
4672
+ COMMENT_NODE$1 = 8;
4673
+ FRAGMENT_NODE = 11;
4674
+ ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
4675
+ isCustomElement = (val) => {
4676
+ const tagName = val.tagName;
4677
+ return Boolean(typeof tagName === "string" && tagName.includes("-") || typeof val.hasAttribute === "function" && val.hasAttribute("is"));
4678
+ };
4679
+ testNode = (val) => {
4680
+ const constructorName = val.constructor.name;
4681
+ const nodeType = val.nodeType;
4682
+ return nodeType === ELEMENT_NODE$1 && (ELEMENT_REGEXP.test(constructorName) || isCustomElement(val)) || nodeType === TEXT_NODE$1 && constructorName === "Text" || nodeType === COMMENT_NODE$1 && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
4683
+ };
4684
+ picocolors = null;
4685
+ readFileSync = null;
4686
+ codeFrameColumns = null;
4687
+ try {
4688
+ const nodeRequire = module && module.require;
4689
+ readFileSync = nodeRequire.call(module, "fs").readFileSync;
4690
+ codeFrameColumns = nodeRequire.call(module, "@babel/code-frame").codeFrameColumns;
4691
+ picocolors = nodeRequire.call(module, "picocolors");
4692
+ } catch {}
4693
+ TEXT_NODE = 3;
4694
+ _excluded$1 = ["filterNode"];
4695
+ shouldHighlight = () => {
4696
+ if (typeof process === "undefined") return false;
4697
+ let colors;
4698
+ try {
4699
+ var _process$env;
4700
+ const colorsJSON = (_process$env = process.env) == null ? void 0 : _process$env.COLORS;
4701
+ if (colorsJSON) colors = JSON.parse(colorsJSON);
4702
+ } catch {}
4703
+ if (typeof colors === "boolean") return colors;
4704
+ else return process.versions !== void 0 && process.versions.node !== void 0;
4705
+ };
4706
+ DOMCollection = import_build.plugins.DOMCollection;
4707
+ ELEMENT_NODE = 1;
4708
+ COMMENT_NODE = 8;
4709
+ logDOM = function() {
4710
+ const userCodeFrame = getUserCodeFrame();
4711
+ if (userCodeFrame) console.log(prettyDOM(...arguments) + "\n\n" + userCodeFrame);
4712
+ else console.log(prettyDOM(...arguments));
4713
+ };
4714
+ config = {
4715
+ testIdAttribute: "data-testid",
4716
+ asyncUtilTimeout: 1e3,
4717
+ asyncWrapper: (cb) => cb(),
4718
+ unstable_advanceTimersWrapper: (cb) => cb(),
4719
+ eventWrapper: (cb) => cb(),
4720
+ defaultHidden: false,
4721
+ defaultIgnore: "script, style",
4722
+ showOriginalStackTrace: false,
4723
+ throwSuggestions: false,
4724
+ getElementError(message, container) {
4725
+ const prettifiedDOM = prettyDOM(container);
4726
+ const error = new Error([message, "Ignored nodes: comments, " + config.defaultIgnore + "\n" + prettifiedDOM].filter(Boolean).join("\n\n"));
4727
+ error.name = "TestingLibraryElementError";
4728
+ return error;
4729
+ },
4730
+ _disableExpensiveErrorDiagnostics: false,
4731
+ computedStyleSupportsPseudoElements: false
4732
+ };
4733
+ labelledNodeNames = [
4734
+ "button",
4735
+ "meter",
4736
+ "output",
4737
+ "progress",
4738
+ "select",
4739
+ "textarea",
4740
+ "input"
4741
+ ];
4742
+ elementRoleList = buildElementRoleList(import_lib.elementRoles);
4743
+ logRoles = function(dom, _temp2) {
4744
+ let _ref10$hidden = (_temp2 === void 0 ? {} : _temp2).hidden;
4745
+ return console.log(prettyRoles(dom, { hidden: _ref10$hidden === void 0 ? false : _ref10$hidden }));
4746
+ };
4747
+ normalize$1 = getDefaultNormalizer();
4748
+ wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
4749
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];
4750
+ const element = query(container, ...args);
4751
+ const _ref2$ = args.slice(-1)[0], _ref2$2$suggest = (_ref2$ === void 0 ? {} : _ref2$).suggest, suggest = _ref2$2$suggest === void 0 ? getConfig().throwSuggestions : _ref2$2$suggest;
4752
+ if (element && suggest) {
4753
+ const suggestion = getSuggestedQuery(element, variant);
4754
+ if (suggestion && !queryAllByName.endsWith(suggestion.queryName)) throw getSuggestionError(suggestion.toString(), container);
4755
+ }
4756
+ return element;
4757
+ };
4758
+ wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
4759
+ for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) args[_key4 - 1] = arguments[_key4];
4760
+ const els = query(container, ...args);
4761
+ const _ref3$ = args.slice(-1)[0], _ref3$2$suggest = (_ref3$ === void 0 ? {} : _ref3$).suggest, suggest = _ref3$2$suggest === void 0 ? getConfig().throwSuggestions : _ref3$2$suggest;
4762
+ if (els.length && suggest) {
4763
+ const uniqueSuggestionMessages = [...new Set(els.map((element) => {
4764
+ var _getSuggestedQuery;
4765
+ return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? void 0 : _getSuggestedQuery.toString();
4766
+ }))];
4767
+ if (uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith(getSuggestedQuery(els[0], variant).queryName)) throw getSuggestionError(uniqueSuggestionMessages[0], container);
4768
+ }
4769
+ return els;
4770
+ };
4771
+ queryHelpers = /*#__PURE__*/ Object.freeze({
4772
+ __proto__: null,
4773
+ getElementError,
4774
+ wrapAllByQueryWithSuggestion,
4775
+ wrapSingleQueryWithSuggestion,
4776
+ getMultipleElementsFoundError,
4777
+ queryAllByAttribute,
4778
+ queryByAttribute,
4779
+ makeSingleQuery,
4780
+ makeGetAllQuery,
4781
+ makeFindQuery,
4782
+ buildQueries
4783
+ });
4784
+ queryAllLabelsByText = function(container, text, _temp) {
4785
+ let _ref2 = _temp === void 0 ? {} : _temp, _ref2$exact = _ref2.exact, exact = _ref2$exact === void 0 ? true : _ref2$exact, trim = _ref2.trim, collapseWhitespace = _ref2.collapseWhitespace, normalizer = _ref2.normalizer;
4786
+ const matcher = exact ? matches : fuzzyMatches;
4787
+ const matchNormalizer = makeNormalizer({
4788
+ collapseWhitespace,
4789
+ trim,
4790
+ normalizer
4791
+ });
4792
+ return queryAllLabels(container).filter((_ref3) => {
4793
+ let node = _ref3.node, textToMatch = _ref3.textToMatch;
4794
+ return matcher(textToMatch, node, text, matchNormalizer);
4795
+ }).map((_ref4) => {
4796
+ return _ref4.node;
4797
+ });
4798
+ };
4799
+ queryAllByLabelText = function(container, text, _temp2) {
4800
+ let _ref5 = _temp2 === void 0 ? {} : _temp2, _ref5$selector = _ref5.selector, selector = _ref5$selector === void 0 ? "*" : _ref5$selector, _ref5$exact = _ref5.exact, exact = _ref5$exact === void 0 ? true : _ref5$exact, collapseWhitespace = _ref5.collapseWhitespace, trim = _ref5.trim, normalizer = _ref5.normalizer;
4801
+ checkContainerType(container);
4802
+ const matcher = exact ? matches : fuzzyMatches;
4803
+ const matchNormalizer = makeNormalizer({
4804
+ collapseWhitespace,
4805
+ trim,
4806
+ normalizer
4807
+ });
4808
+ const matchingLabelledElements = Array.from(container.querySelectorAll("*")).filter((element) => {
4809
+ return getRealLabels(element).length || element.hasAttribute("aria-labelledby");
4810
+ }).reduce((labelledElements, labelledElement) => {
4811
+ const labelList = getLabels(container, labelledElement, { selector });
4812
+ labelList.filter((label) => Boolean(label.formControl)).forEach((label) => {
4813
+ if (matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl) labelledElements.push(label.formControl);
4814
+ });
4815
+ const labelsValue = labelList.filter((label) => Boolean(label.content)).map((label) => label.content);
4816
+ if (matcher(labelsValue.join(" "), labelledElement, text, matchNormalizer)) labelledElements.push(labelledElement);
4817
+ if (labelsValue.length > 1) labelsValue.forEach((labelValue, index) => {
4818
+ if (matcher(labelValue, labelledElement, text, matchNormalizer)) labelledElements.push(labelledElement);
4819
+ const labelsFiltered = [...labelsValue];
4820
+ labelsFiltered.splice(index, 1);
4821
+ if (labelsFiltered.length > 1) {
4822
+ if (matcher(labelsFiltered.join(" "), labelledElement, text, matchNormalizer)) labelledElements.push(labelledElement);
4823
+ }
4824
+ });
4825
+ return labelledElements;
4826
+ }, []).concat(queryAllByAttribute("aria-label", container, text, {
4827
+ exact,
4828
+ normalizer: matchNormalizer
4829
+ }));
4830
+ return Array.from(new Set(matchingLabelledElements)).filter((element) => element.matches(selector));
4831
+ };
4832
+ getAllByLabelText = function(container, text) {
4833
+ for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) rest[_key - 2] = arguments[_key];
4834
+ const els = queryAllByLabelText(container, text, ...rest);
4835
+ if (!els.length) {
4836
+ const labels = queryAllLabelsByText(container, text, ...rest);
4837
+ if (labels.length) {
4838
+ const tagNames = labels.map((label) => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter((tagName) => !!tagName);
4839
+ if (tagNames.length) throw getConfig().getElementError(tagNames.map((tagName) => "Found a label with the text of: " + text + ", however the element associated with this label (<" + tagName + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + tagName + " />, you can use aria-label or aria-labelledby instead.").join("\n\n"), container);
4840
+ else throw getConfig().getElementError("Found a label with the text of: " + text + ", however no form control was found associated to that label. Make sure you're using the \"for\" attribute or \"aria-labelledby\" attribute correctly.", container);
4841
+ } else throw getConfig().getElementError("Unable to find a label with the text of: " + text, container);
4842
+ }
4843
+ return els;
4844
+ };
4845
+ getMultipleError$7 = (c, text) => "Found multiple elements with the text of: " + text;
4846
+ queryByLabelText = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText, getMultipleError$7), queryAllByLabelText.name, "query");
4847
+ getByLabelText = makeSingleQuery(getAllByLabelText, getMultipleError$7);
4848
+ findAllByLabelText = makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "findAll"));
4849
+ findByLabelText = makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "find"));
4850
+ getAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "getAll");
4851
+ getByLabelTextWithSuggestions = wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "get");
4852
+ queryAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByLabelText, queryAllByLabelText.name, "queryAll");
4853
+ queryAllByPlaceholderText = function() {
4854
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
4855
+ checkContainerType(args[0]);
4856
+ return queryAllByAttribute("placeholder", ...args);
4857
+ };
4858
+ getMultipleError$6 = (c, text) => "Found multiple elements with the placeholder text of: " + text;
4859
+ getMissingError$6 = (c, text) => "Unable to find an element with the placeholder text of: " + text;
4860
+ queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByPlaceholderText, queryAllByPlaceholderText.name, "queryAll");
4861
+ _buildQueries$6 = buildQueries(queryAllByPlaceholderText, getMultipleError$6, getMissingError$6);
4862
+ queryByPlaceholderText = _buildQueries$6[0];
4863
+ getAllByPlaceholderText = _buildQueries$6[1];
4864
+ getByPlaceholderText = _buildQueries$6[2];
4865
+ findAllByPlaceholderText = _buildQueries$6[3];
4866
+ findByPlaceholderText = _buildQueries$6[4];
4867
+ queryAllByText = function(container, text, _temp) {
4868
+ let _ref = _temp === void 0 ? {} : _temp, _ref$selector = _ref.selector, selector = _ref$selector === void 0 ? "*" : _ref$selector, _ref$exact = _ref.exact, exact = _ref$exact === void 0 ? true : _ref$exact, collapseWhitespace = _ref.collapseWhitespace, trim = _ref.trim, _ref$ignore = _ref.ignore, ignore = _ref$ignore === void 0 ? getConfig().defaultIgnore : _ref$ignore, normalizer = _ref.normalizer;
4869
+ checkContainerType(container);
4870
+ const matcher = exact ? matches : fuzzyMatches;
4871
+ const matchNormalizer = makeNormalizer({
4872
+ collapseWhitespace,
4873
+ trim,
4874
+ normalizer
4875
+ });
4876
+ let baseArray = [];
4877
+ if (typeof container.matches === "function" && container.matches(selector)) baseArray = [container];
4878
+ return [...baseArray, ...Array.from(container.querySelectorAll(selector))].filter((node) => !ignore || !node.matches(ignore)).filter((node) => matcher(getNodeText(node), node, text, matchNormalizer));
4879
+ };
4880
+ getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text;
4881
+ getMissingError$5 = function(c, text, options) {
4882
+ if (options === void 0) options = {};
4883
+ const _options = options, collapseWhitespace = _options.collapseWhitespace, trim = _options.trim, normalizer = _options.normalizer, selector = _options.selector;
4884
+ const normalizedText = makeNormalizer({
4885
+ collapseWhitespace,
4886
+ trim,
4887
+ normalizer
4888
+ })(text.toString());
4889
+ const isNormalizedDifferent = normalizedText !== text.toString();
4890
+ const isCustomSelector = (selector != null ? selector : "*") !== "*";
4891
+ return "Unable to find an element with the text: " + (isNormalizedDifferent ? normalizedText + " (normalized from '" + text + "')" : text) + (isCustomSelector ? ", which matches selector '" + selector + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
4892
+ };
4893
+ queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, "queryAll");
4894
+ _buildQueries$5 = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5);
4895
+ queryByText = _buildQueries$5[0];
4896
+ getAllByText = _buildQueries$5[1];
4897
+ getByText = _buildQueries$5[2];
4898
+ findAllByText = _buildQueries$5[3];
4899
+ findByText = _buildQueries$5[4];
4900
+ queryAllByDisplayValue = function(container, value, _temp) {
4901
+ let _ref = _temp === void 0 ? {} : _temp, _ref$exact = _ref.exact, exact = _ref$exact === void 0 ? true : _ref$exact, collapseWhitespace = _ref.collapseWhitespace, trim = _ref.trim, normalizer = _ref.normalizer;
4902
+ checkContainerType(container);
4903
+ const matcher = exact ? matches : fuzzyMatches;
4904
+ const matchNormalizer = makeNormalizer({
4905
+ collapseWhitespace,
4906
+ trim,
4907
+ normalizer
4908
+ });
4909
+ return Array.from(container.querySelectorAll("input,textarea,select")).filter((node) => {
4910
+ if (node.tagName === "SELECT") return Array.from(node.options).filter((option) => option.selected).some((optionNode) => matcher(getNodeText(optionNode), optionNode, value, matchNormalizer));
4911
+ else return matcher(node.value, node, value, matchNormalizer);
4912
+ });
4913
+ };
4914
+ getMultipleError$4 = (c, value) => "Found multiple elements with the display value: " + value + ".";
4915
+ getMissingError$4 = (c, value) => "Unable to find an element with the display value: " + value + ".";
4916
+ queryAllByDisplayValueWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByDisplayValue, queryAllByDisplayValue.name, "queryAll");
4917
+ _buildQueries$4 = buildQueries(queryAllByDisplayValue, getMultipleError$4, getMissingError$4);
4918
+ queryByDisplayValue = _buildQueries$4[0];
4919
+ getAllByDisplayValue = _buildQueries$4[1];
4920
+ getByDisplayValue = _buildQueries$4[2];
4921
+ findAllByDisplayValue = _buildQueries$4[3];
4922
+ findByDisplayValue = _buildQueries$4[4];
4923
+ VALID_TAG_REGEXP = /^(img|input|area|.+-.+)$/i;
4924
+ queryAllByAltText = function(container, alt, options) {
4925
+ if (options === void 0) options = {};
4926
+ checkContainerType(container);
4927
+ return queryAllByAttribute("alt", container, alt, options).filter((node) => VALID_TAG_REGEXP.test(node.tagName));
4928
+ };
4929
+ getMultipleError$3 = (c, alt) => "Found multiple elements with the alt text: " + alt;
4930
+ getMissingError$3 = (c, alt) => "Unable to find an element with the alt text: " + alt;
4931
+ queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByAltText, queryAllByAltText.name, "queryAll");
4932
+ _buildQueries$3 = buildQueries(queryAllByAltText, getMultipleError$3, getMissingError$3);
4933
+ queryByAltText = _buildQueries$3[0];
4934
+ getAllByAltText = _buildQueries$3[1];
4935
+ getByAltText = _buildQueries$3[2];
4936
+ findAllByAltText = _buildQueries$3[3];
4937
+ findByAltText = _buildQueries$3[4];
4938
+ isSvgTitle = (node) => {
4939
+ var _node$parentElement;
4940
+ return node.tagName.toLowerCase() === "title" && ((_node$parentElement = node.parentElement) == null ? void 0 : _node$parentElement.tagName.toLowerCase()) === "svg";
4941
+ };
4942
+ queryAllByTitle = function(container, text, _temp) {
4943
+ let _ref = _temp === void 0 ? {} : _temp, _ref$exact = _ref.exact, exact = _ref$exact === void 0 ? true : _ref$exact, collapseWhitespace = _ref.collapseWhitespace, trim = _ref.trim, normalizer = _ref.normalizer;
4944
+ checkContainerType(container);
4945
+ const matcher = exact ? matches : fuzzyMatches;
4946
+ const matchNormalizer = makeNormalizer({
4947
+ collapseWhitespace,
4948
+ trim,
4949
+ normalizer
4950
+ });
4951
+ return Array.from(container.querySelectorAll("[title], svg > title")).filter((node) => matcher(node.getAttribute("title"), node, text, matchNormalizer) || isSvgTitle(node) && matcher(getNodeText(node), node, text, matchNormalizer));
4952
+ };
4953
+ getMultipleError$2 = (c, title) => "Found multiple elements with the title: " + title + ".";
4954
+ getMissingError$2 = (c, title) => "Unable to find an element with the title: " + title + ".";
4955
+ queryAllByTitleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTitle, queryAllByTitle.name, "queryAll");
4956
+ _buildQueries$2 = buildQueries(queryAllByTitle, getMultipleError$2, getMissingError$2);
4957
+ queryByTitle = _buildQueries$2[0];
4958
+ getAllByTitle = _buildQueries$2[1];
4959
+ getByTitle = _buildQueries$2[2];
4960
+ findAllByTitle = _buildQueries$2[3];
4961
+ findByTitle = _buildQueries$2[4];
4962
+ queryAllByRole = function(container, role, _temp) {
4963
+ let _ref = _temp === void 0 ? {} : _temp, _ref$hidden = _ref.hidden, hidden = _ref$hidden === void 0 ? getConfig().defaultHidden : _ref$hidden, name = _ref.name, description = _ref.description, _ref$queryFallbacks = _ref.queryFallbacks, queryFallbacks = _ref$queryFallbacks === void 0 ? false : _ref$queryFallbacks, selected = _ref.selected, busy = _ref.busy, checked = _ref.checked, pressed = _ref.pressed, current = _ref.current, level = _ref.level, expanded = _ref.expanded, _ref$value = _ref.value, _ref$value2 = _ref$value === void 0 ? {} : _ref$value, valueNow = _ref$value2.now, valueMin = _ref$value2.min, valueMax = _ref$value2.max, valueText = _ref$value2.text;
4964
+ checkContainerType(container);
4965
+ if (selected !== void 0) {
4966
+ var _allRoles$get;
4967
+ if (((_allRoles$get = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get.props["aria-selected"]) === void 0) throw new Error("\"aria-selected\" is not supported on role \"" + role + "\".");
4968
+ }
4969
+ if (busy !== void 0) {
4970
+ var _allRoles$get2;
4971
+ if (((_allRoles$get2 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get2.props["aria-busy"]) === void 0) throw new Error("\"aria-busy\" is not supported on role \"" + role + "\".");
4972
+ }
4973
+ if (checked !== void 0) {
4974
+ var _allRoles$get3;
4975
+ if (((_allRoles$get3 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get3.props["aria-checked"]) === void 0) throw new Error("\"aria-checked\" is not supported on role \"" + role + "\".");
4976
+ }
4977
+ if (pressed !== void 0) {
4978
+ var _allRoles$get4;
4979
+ if (((_allRoles$get4 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get4.props["aria-pressed"]) === void 0) throw new Error("\"aria-pressed\" is not supported on role \"" + role + "\".");
4980
+ }
4981
+ if (current !== void 0) {
4982
+ var _allRoles$get5;
4983
+ /* istanbul ignore next */
4984
+ if (((_allRoles$get5 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get5.props["aria-current"]) === void 0) throw new Error("\"aria-current\" is not supported on role \"" + role + "\".");
4985
+ }
4986
+ if (level !== void 0) {
4987
+ if (role !== "heading") throw new Error("Role \"" + role + "\" cannot have \"level\" property.");
4988
+ }
4989
+ if (valueNow !== void 0) {
4990
+ var _allRoles$get6;
4991
+ if (((_allRoles$get6 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get6.props["aria-valuenow"]) === void 0) throw new Error("\"aria-valuenow\" is not supported on role \"" + role + "\".");
4992
+ }
4993
+ if (valueMax !== void 0) {
4994
+ var _allRoles$get7;
4995
+ if (((_allRoles$get7 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get7.props["aria-valuemax"]) === void 0) throw new Error("\"aria-valuemax\" is not supported on role \"" + role + "\".");
4996
+ }
4997
+ if (valueMin !== void 0) {
4998
+ var _allRoles$get8;
4999
+ if (((_allRoles$get8 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get8.props["aria-valuemin"]) === void 0) throw new Error("\"aria-valuemin\" is not supported on role \"" + role + "\".");
5000
+ }
5001
+ if (valueText !== void 0) {
5002
+ var _allRoles$get9;
5003
+ if (((_allRoles$get9 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get9.props["aria-valuetext"]) === void 0) throw new Error("\"aria-valuetext\" is not supported on role \"" + role + "\".");
5004
+ }
5005
+ if (expanded !== void 0) {
5006
+ var _allRoles$get0;
5007
+ if (((_allRoles$get0 = import_lib.roles.get(role)) == null ? void 0 : _allRoles$get0.props["aria-expanded"]) === void 0) throw new Error("\"aria-expanded\" is not supported on role \"" + role + "\".");
5008
+ }
5009
+ const subtreeIsInaccessibleCache = /* @__PURE__ */ new WeakMap();
5010
+ function cachedIsSubtreeInaccessible(element) {
5011
+ if (!subtreeIsInaccessibleCache.has(element)) subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element));
5012
+ return subtreeIsInaccessibleCache.get(element);
5013
+ }
5014
+ return Array.from(container.querySelectorAll(makeRoleSelector(role))).filter((node) => {
5015
+ if (node.hasAttribute("role")) {
5016
+ const roleValue = node.getAttribute("role");
5017
+ if (queryFallbacks) return roleValue.split(" ").filter(Boolean).some((roleAttributeToken) => roleAttributeToken === role);
5018
+ return roleValue.split(" ")[0] === role;
5019
+ }
5020
+ return getImplicitAriaRoles(node).some((implicitRole) => {
5021
+ return implicitRole === role;
5022
+ });
5023
+ }).filter((element) => {
5024
+ if (selected !== void 0) return selected === computeAriaSelected(element);
5025
+ if (busy !== void 0) return busy === computeAriaBusy(element);
5026
+ if (checked !== void 0) return checked === computeAriaChecked(element);
5027
+ if (pressed !== void 0) return pressed === computeAriaPressed(element);
5028
+ if (current !== void 0) return current === computeAriaCurrent(element);
5029
+ if (expanded !== void 0) return expanded === computeAriaExpanded(element);
5030
+ if (level !== void 0) return level === computeHeadingLevel(element);
5031
+ if (valueNow !== void 0 || valueMax !== void 0 || valueMin !== void 0 || valueText !== void 0) {
5032
+ let valueMatches = true;
5033
+ if (valueNow !== void 0) valueMatches && (valueMatches = valueNow === computeAriaValueNow(element));
5034
+ if (valueMax !== void 0) valueMatches && (valueMatches = valueMax === computeAriaValueMax(element));
5035
+ if (valueMin !== void 0) valueMatches && (valueMatches = valueMin === computeAriaValueMin(element));
5036
+ if (valueText !== void 0) {
5037
+ var _computeAriaValueText;
5038
+ valueMatches && (valueMatches = matches((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, (text) => text));
5039
+ }
5040
+ return valueMatches;
5041
+ }
5042
+ return true;
5043
+ }).filter((element) => {
5044
+ if (name === void 0) return true;
5045
+ return matches(computeAccessibleName$1(element, { computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements }), element, name, (text) => text);
5046
+ }).filter((element) => {
5047
+ if (description === void 0) return true;
5048
+ return matches(computeAccessibleDescription$1(element, { computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements }), element, description, (text) => text);
5049
+ }).filter((element) => {
5050
+ return hidden === false ? isInaccessible(element, { isSubtreeInaccessible: cachedIsSubtreeInaccessible }) === false : true;
5051
+ });
5052
+ };
5053
+ getNameHint = (name) => {
5054
+ let nameHint = "";
5055
+ if (name === void 0) nameHint = "";
5056
+ else if (typeof name === "string") nameHint = " and name \"" + name + "\"";
5057
+ else nameHint = " and name `" + name + "`";
5058
+ return nameHint;
5059
+ };
5060
+ getMultipleError$1 = function(c, role, _temp2) {
5061
+ let name = (_temp2 === void 0 ? {} : _temp2).name;
5062
+ return "Found multiple elements with the role \"" + role + "\"" + getNameHint(name);
5063
+ };
5064
+ getMissingError$1 = function(container, role, _temp3) {
5065
+ let _ref4 = _temp3 === void 0 ? {} : _temp3, _ref4$hidden = _ref4.hidden, hidden = _ref4$hidden === void 0 ? getConfig().defaultHidden : _ref4$hidden, name = _ref4.name, description = _ref4.description;
5066
+ if (getConfig()._disableExpensiveErrorDiagnostics) return "Unable to find role=\"" + role + "\"" + getNameHint(name);
5067
+ let roles = "";
5068
+ Array.from(container.children).forEach((childElement) => {
5069
+ roles += prettyRoles(childElement, {
5070
+ hidden,
5071
+ includeDescription: description !== void 0
5072
+ });
5073
+ });
5074
+ let roleMessage;
5075
+ if (roles.length === 0) {
5076
+ if (hidden === false) roleMessage = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole";
5077
+ else roleMessage = "There are no available roles.";
5078
+ } else roleMessage = ("\nHere are the " + (hidden === false ? "accessible" : "available") + " roles:\n\n " + roles.replace(/\n/g, "\n ").replace(/\n\s\s\n/g, "\n\n") + "\n").trim();
5079
+ let nameHint = "";
5080
+ if (name === void 0) nameHint = "";
5081
+ else if (typeof name === "string") nameHint = " and name \"" + name + "\"";
5082
+ else nameHint = " and name `" + name + "`";
5083
+ let descriptionHint = "";
5084
+ if (description === void 0) descriptionHint = "";
5085
+ else if (typeof description === "string") descriptionHint = " and description \"" + description + "\"";
5086
+ else descriptionHint = " and description `" + description + "`";
5087
+ return ("\nUnable to find an " + (hidden === false ? "accessible " : "") + "element with the role \"" + role + "\"" + nameHint + descriptionHint + "\n\n" + roleMessage).trim();
5088
+ };
5089
+ queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, "queryAll");
5090
+ _buildQueries$1 = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1);
5091
+ queryByRole = _buildQueries$1[0];
5092
+ getAllByRole = _buildQueries$1[1];
5093
+ getByRole = _buildQueries$1[2];
5094
+ findAllByRole = _buildQueries$1[3];
5095
+ findByRole = _buildQueries$1[4];
5096
+ getTestIdAttribute = () => getConfig().testIdAttribute;
5097
+ queryAllByTestId = function() {
5098
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
5099
+ checkContainerType(args[0]);
5100
+ return queryAllByAttribute(getTestIdAttribute(), ...args);
5101
+ };
5102
+ getMultipleError = (c, id) => "Found multiple elements by: [" + getTestIdAttribute() + "=\"" + id + "\"]";
5103
+ getMissingError = (c, id) => "Unable to find an element by: [" + getTestIdAttribute() + "=\"" + id + "\"]";
5104
+ queryAllByTestIdWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTestId, queryAllByTestId.name, "queryAll");
5105
+ _buildQueries = buildQueries(queryAllByTestId, getMultipleError, getMissingError);
5106
+ queryByTestId = _buildQueries[0];
5107
+ getAllByTestId = _buildQueries[1];
5108
+ getByTestId = _buildQueries[2];
5109
+ findAllByTestId = _buildQueries[3];
5110
+ findByTestId = _buildQueries[4];
5111
+ queries = /*#__PURE__*/ Object.freeze({
5112
+ __proto__: null,
5113
+ queryAllByLabelText: queryAllByLabelTextWithSuggestions,
5114
+ queryByLabelText,
5115
+ getAllByLabelText: getAllByLabelTextWithSuggestions,
5116
+ getByLabelText: getByLabelTextWithSuggestions,
5117
+ findAllByLabelText,
5118
+ findByLabelText,
5119
+ queryByPlaceholderText,
5120
+ queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions,
5121
+ getByPlaceholderText,
5122
+ getAllByPlaceholderText,
5123
+ findAllByPlaceholderText,
5124
+ findByPlaceholderText,
5125
+ queryByText,
5126
+ queryAllByText: queryAllByTextWithSuggestions,
5127
+ getByText,
5128
+ getAllByText,
5129
+ findAllByText,
5130
+ findByText,
5131
+ queryByDisplayValue,
5132
+ queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions,
5133
+ getByDisplayValue,
5134
+ getAllByDisplayValue,
5135
+ findAllByDisplayValue,
5136
+ findByDisplayValue,
5137
+ queryByAltText,
5138
+ queryAllByAltText: queryAllByAltTextWithSuggestions,
5139
+ getByAltText,
5140
+ getAllByAltText,
5141
+ findAllByAltText,
5142
+ findByAltText,
5143
+ queryByTitle,
5144
+ queryAllByTitle: queryAllByTitleWithSuggestions,
5145
+ getByTitle,
5146
+ getAllByTitle,
5147
+ findAllByTitle,
5148
+ findByTitle,
5149
+ queryByRole,
5150
+ queryAllByRole: queryAllByRoleWithSuggestions,
5151
+ getAllByRole,
5152
+ getByRole,
5153
+ findAllByRole,
5154
+ findByRole,
5155
+ queryByTestId,
5156
+ queryAllByTestId: queryAllByTestIdWithSuggestions,
5157
+ getByTestId,
5158
+ getAllByTestId,
5159
+ findAllByTestId,
5160
+ findByTestId
5161
+ });
5162
+ isRemoved = (result) => !result || Array.isArray(result) && !result.length;
5163
+ eventMap$1 = {
5164
+ copy: {
5165
+ EventType: "ClipboardEvent",
5166
+ defaultInit: {
5167
+ bubbles: true,
5168
+ cancelable: true,
5169
+ composed: true
5170
+ }
5171
+ },
5172
+ cut: {
5173
+ EventType: "ClipboardEvent",
5174
+ defaultInit: {
5175
+ bubbles: true,
5176
+ cancelable: true,
5177
+ composed: true
5178
+ }
5179
+ },
5180
+ paste: {
5181
+ EventType: "ClipboardEvent",
5182
+ defaultInit: {
5183
+ bubbles: true,
5184
+ cancelable: true,
5185
+ composed: true
5186
+ }
5187
+ },
5188
+ compositionEnd: {
5189
+ EventType: "CompositionEvent",
5190
+ defaultInit: {
5191
+ bubbles: true,
5192
+ cancelable: true,
5193
+ composed: true
5194
+ }
5195
+ },
5196
+ compositionStart: {
5197
+ EventType: "CompositionEvent",
5198
+ defaultInit: {
5199
+ bubbles: true,
5200
+ cancelable: true,
5201
+ composed: true
5202
+ }
5203
+ },
5204
+ compositionUpdate: {
5205
+ EventType: "CompositionEvent",
5206
+ defaultInit: {
5207
+ bubbles: true,
5208
+ cancelable: true,
5209
+ composed: true
5210
+ }
5211
+ },
5212
+ keyDown: {
5213
+ EventType: "KeyboardEvent",
5214
+ defaultInit: {
5215
+ bubbles: true,
5216
+ cancelable: true,
5217
+ charCode: 0,
5218
+ composed: true
5219
+ }
5220
+ },
5221
+ keyPress: {
5222
+ EventType: "KeyboardEvent",
5223
+ defaultInit: {
5224
+ bubbles: true,
5225
+ cancelable: true,
5226
+ charCode: 0,
5227
+ composed: true
5228
+ }
5229
+ },
5230
+ keyUp: {
5231
+ EventType: "KeyboardEvent",
5232
+ defaultInit: {
5233
+ bubbles: true,
5234
+ cancelable: true,
5235
+ charCode: 0,
5236
+ composed: true
5237
+ }
5238
+ },
5239
+ focus: {
5240
+ EventType: "FocusEvent",
5241
+ defaultInit: {
5242
+ bubbles: false,
5243
+ cancelable: false,
5244
+ composed: true
5245
+ }
5246
+ },
5247
+ blur: {
5248
+ EventType: "FocusEvent",
5249
+ defaultInit: {
5250
+ bubbles: false,
5251
+ cancelable: false,
5252
+ composed: true
5253
+ }
5254
+ },
5255
+ focusIn: {
5256
+ EventType: "FocusEvent",
5257
+ defaultInit: {
5258
+ bubbles: true,
5259
+ cancelable: false,
5260
+ composed: true
5261
+ }
5262
+ },
5263
+ focusOut: {
5264
+ EventType: "FocusEvent",
5265
+ defaultInit: {
5266
+ bubbles: true,
5267
+ cancelable: false,
5268
+ composed: true
5269
+ }
5270
+ },
5271
+ change: {
5272
+ EventType: "Event",
5273
+ defaultInit: {
5274
+ bubbles: true,
5275
+ cancelable: false
5276
+ }
5277
+ },
5278
+ input: {
5279
+ EventType: "InputEvent",
5280
+ defaultInit: {
5281
+ bubbles: true,
5282
+ cancelable: false,
5283
+ composed: true
5284
+ }
5285
+ },
5286
+ invalid: {
5287
+ EventType: "Event",
5288
+ defaultInit: {
5289
+ bubbles: false,
5290
+ cancelable: true
5291
+ }
5292
+ },
5293
+ submit: {
5294
+ EventType: "Event",
5295
+ defaultInit: {
5296
+ bubbles: true,
5297
+ cancelable: true
5298
+ }
5299
+ },
5300
+ reset: {
5301
+ EventType: "Event",
5302
+ defaultInit: {
5303
+ bubbles: true,
5304
+ cancelable: true
5305
+ }
5306
+ },
5307
+ click: {
5308
+ EventType: "MouseEvent",
5309
+ defaultInit: {
5310
+ bubbles: true,
5311
+ cancelable: true,
5312
+ button: 0,
5313
+ composed: true
5314
+ }
5315
+ },
5316
+ contextMenu: {
5317
+ EventType: "MouseEvent",
5318
+ defaultInit: {
5319
+ bubbles: true,
5320
+ cancelable: true,
5321
+ composed: true
5322
+ }
5323
+ },
5324
+ dblClick: {
5325
+ EventType: "MouseEvent",
5326
+ defaultInit: {
5327
+ bubbles: true,
5328
+ cancelable: true,
5329
+ composed: true
5330
+ }
5331
+ },
5332
+ drag: {
5333
+ EventType: "DragEvent",
5334
+ defaultInit: {
5335
+ bubbles: true,
5336
+ cancelable: true,
5337
+ composed: true
5338
+ }
5339
+ },
5340
+ dragEnd: {
5341
+ EventType: "DragEvent",
5342
+ defaultInit: {
5343
+ bubbles: true,
5344
+ cancelable: false,
5345
+ composed: true
5346
+ }
5347
+ },
5348
+ dragEnter: {
5349
+ EventType: "DragEvent",
5350
+ defaultInit: {
5351
+ bubbles: true,
5352
+ cancelable: true,
5353
+ composed: true
5354
+ }
5355
+ },
5356
+ dragExit: {
5357
+ EventType: "DragEvent",
5358
+ defaultInit: {
5359
+ bubbles: true,
5360
+ cancelable: false,
5361
+ composed: true
5362
+ }
5363
+ },
5364
+ dragLeave: {
5365
+ EventType: "DragEvent",
5366
+ defaultInit: {
5367
+ bubbles: true,
5368
+ cancelable: false,
5369
+ composed: true
5370
+ }
5371
+ },
5372
+ dragOver: {
5373
+ EventType: "DragEvent",
5374
+ defaultInit: {
5375
+ bubbles: true,
5376
+ cancelable: true,
5377
+ composed: true
5378
+ }
5379
+ },
5380
+ dragStart: {
5381
+ EventType: "DragEvent",
5382
+ defaultInit: {
5383
+ bubbles: true,
5384
+ cancelable: true,
5385
+ composed: true
5386
+ }
5387
+ },
5388
+ drop: {
5389
+ EventType: "DragEvent",
5390
+ defaultInit: {
5391
+ bubbles: true,
5392
+ cancelable: true,
5393
+ composed: true
5394
+ }
5395
+ },
5396
+ mouseDown: {
5397
+ EventType: "MouseEvent",
5398
+ defaultInit: {
5399
+ bubbles: true,
5400
+ cancelable: true,
5401
+ composed: true
5402
+ }
5403
+ },
5404
+ mouseEnter: {
5405
+ EventType: "MouseEvent",
5406
+ defaultInit: {
5407
+ bubbles: false,
5408
+ cancelable: false,
5409
+ composed: true
5410
+ }
5411
+ },
5412
+ mouseLeave: {
5413
+ EventType: "MouseEvent",
5414
+ defaultInit: {
5415
+ bubbles: false,
5416
+ cancelable: false,
5417
+ composed: true
5418
+ }
5419
+ },
5420
+ mouseMove: {
5421
+ EventType: "MouseEvent",
5422
+ defaultInit: {
5423
+ bubbles: true,
5424
+ cancelable: true,
5425
+ composed: true
5426
+ }
5427
+ },
5428
+ mouseOut: {
5429
+ EventType: "MouseEvent",
5430
+ defaultInit: {
5431
+ bubbles: true,
5432
+ cancelable: true,
5433
+ composed: true
5434
+ }
5435
+ },
5436
+ mouseOver: {
5437
+ EventType: "MouseEvent",
5438
+ defaultInit: {
5439
+ bubbles: true,
5440
+ cancelable: true,
5441
+ composed: true
5442
+ }
5443
+ },
5444
+ mouseUp: {
5445
+ EventType: "MouseEvent",
5446
+ defaultInit: {
5447
+ bubbles: true,
5448
+ cancelable: true,
5449
+ composed: true
5450
+ }
5451
+ },
5452
+ select: {
5453
+ EventType: "Event",
5454
+ defaultInit: {
5455
+ bubbles: true,
5456
+ cancelable: false
5457
+ }
5458
+ },
5459
+ touchCancel: {
5460
+ EventType: "TouchEvent",
5461
+ defaultInit: {
5462
+ bubbles: true,
5463
+ cancelable: false,
5464
+ composed: true
5465
+ }
5466
+ },
5467
+ touchEnd: {
5468
+ EventType: "TouchEvent",
5469
+ defaultInit: {
5470
+ bubbles: true,
5471
+ cancelable: true,
5472
+ composed: true
5473
+ }
5474
+ },
5475
+ touchMove: {
5476
+ EventType: "TouchEvent",
5477
+ defaultInit: {
5478
+ bubbles: true,
5479
+ cancelable: true,
5480
+ composed: true
5481
+ }
5482
+ },
5483
+ touchStart: {
5484
+ EventType: "TouchEvent",
5485
+ defaultInit: {
5486
+ bubbles: true,
5487
+ cancelable: true,
5488
+ composed: true
5489
+ }
5490
+ },
5491
+ resize: {
5492
+ EventType: "UIEvent",
5493
+ defaultInit: {
5494
+ bubbles: false,
5495
+ cancelable: false
5496
+ }
5497
+ },
5498
+ scroll: {
5499
+ EventType: "UIEvent",
5500
+ defaultInit: {
5501
+ bubbles: false,
5502
+ cancelable: false
5503
+ }
5504
+ },
5505
+ wheel: {
5506
+ EventType: "WheelEvent",
5507
+ defaultInit: {
5508
+ bubbles: true,
5509
+ cancelable: true,
5510
+ composed: true
5511
+ }
5512
+ },
5513
+ abort: {
5514
+ EventType: "Event",
5515
+ defaultInit: {
5516
+ bubbles: false,
5517
+ cancelable: false
5518
+ }
5519
+ },
5520
+ canPlay: {
5521
+ EventType: "Event",
5522
+ defaultInit: {
5523
+ bubbles: false,
5524
+ cancelable: false
5525
+ }
5526
+ },
5527
+ canPlayThrough: {
5528
+ EventType: "Event",
5529
+ defaultInit: {
5530
+ bubbles: false,
5531
+ cancelable: false
5532
+ }
5533
+ },
5534
+ durationChange: {
5535
+ EventType: "Event",
5536
+ defaultInit: {
5537
+ bubbles: false,
5538
+ cancelable: false
5539
+ }
5540
+ },
5541
+ emptied: {
5542
+ EventType: "Event",
5543
+ defaultInit: {
5544
+ bubbles: false,
5545
+ cancelable: false
5546
+ }
5547
+ },
5548
+ encrypted: {
5549
+ EventType: "Event",
5550
+ defaultInit: {
5551
+ bubbles: false,
5552
+ cancelable: false
5553
+ }
5554
+ },
5555
+ ended: {
5556
+ EventType: "Event",
5557
+ defaultInit: {
5558
+ bubbles: false,
5559
+ cancelable: false
5560
+ }
5561
+ },
5562
+ loadedData: {
5563
+ EventType: "Event",
5564
+ defaultInit: {
5565
+ bubbles: false,
5566
+ cancelable: false
5567
+ }
5568
+ },
5569
+ loadedMetadata: {
5570
+ EventType: "Event",
5571
+ defaultInit: {
5572
+ bubbles: false,
5573
+ cancelable: false
5574
+ }
5575
+ },
5576
+ loadStart: {
5577
+ EventType: "ProgressEvent",
5578
+ defaultInit: {
5579
+ bubbles: false,
5580
+ cancelable: false
5581
+ }
5582
+ },
5583
+ pause: {
5584
+ EventType: "Event",
5585
+ defaultInit: {
5586
+ bubbles: false,
5587
+ cancelable: false
5588
+ }
5589
+ },
5590
+ play: {
5591
+ EventType: "Event",
5592
+ defaultInit: {
5593
+ bubbles: false,
5594
+ cancelable: false
5595
+ }
5596
+ },
5597
+ playing: {
5598
+ EventType: "Event",
5599
+ defaultInit: {
5600
+ bubbles: false,
5601
+ cancelable: false
5602
+ }
5603
+ },
5604
+ progress: {
5605
+ EventType: "ProgressEvent",
5606
+ defaultInit: {
5607
+ bubbles: false,
5608
+ cancelable: false
5609
+ }
5610
+ },
5611
+ rateChange: {
5612
+ EventType: "Event",
5613
+ defaultInit: {
5614
+ bubbles: false,
5615
+ cancelable: false
5616
+ }
5617
+ },
5618
+ seeked: {
5619
+ EventType: "Event",
5620
+ defaultInit: {
5621
+ bubbles: false,
5622
+ cancelable: false
5623
+ }
5624
+ },
5625
+ seeking: {
5626
+ EventType: "Event",
5627
+ defaultInit: {
5628
+ bubbles: false,
5629
+ cancelable: false
5630
+ }
5631
+ },
5632
+ stalled: {
5633
+ EventType: "Event",
5634
+ defaultInit: {
5635
+ bubbles: false,
5636
+ cancelable: false
5637
+ }
5638
+ },
5639
+ suspend: {
5640
+ EventType: "Event",
5641
+ defaultInit: {
5642
+ bubbles: false,
5643
+ cancelable: false
5644
+ }
5645
+ },
5646
+ timeUpdate: {
5647
+ EventType: "Event",
5648
+ defaultInit: {
5649
+ bubbles: false,
5650
+ cancelable: false
5651
+ }
5652
+ },
5653
+ volumeChange: {
5654
+ EventType: "Event",
5655
+ defaultInit: {
5656
+ bubbles: false,
5657
+ cancelable: false
5658
+ }
5659
+ },
5660
+ waiting: {
5661
+ EventType: "Event",
5662
+ defaultInit: {
5663
+ bubbles: false,
5664
+ cancelable: false
5665
+ }
5666
+ },
5667
+ load: {
5668
+ EventType: "Event",
5669
+ defaultInit: {
5670
+ bubbles: false,
5671
+ cancelable: false
5672
+ }
5673
+ },
5674
+ error: {
5675
+ EventType: "Event",
5676
+ defaultInit: {
5677
+ bubbles: false,
5678
+ cancelable: false
5679
+ }
5680
+ },
5681
+ animationStart: {
5682
+ EventType: "AnimationEvent",
5683
+ defaultInit: {
5684
+ bubbles: true,
5685
+ cancelable: false
5686
+ }
5687
+ },
5688
+ animationEnd: {
5689
+ EventType: "AnimationEvent",
5690
+ defaultInit: {
5691
+ bubbles: true,
5692
+ cancelable: false
5693
+ }
5694
+ },
5695
+ animationIteration: {
5696
+ EventType: "AnimationEvent",
5697
+ defaultInit: {
5698
+ bubbles: true,
5699
+ cancelable: false
5700
+ }
5701
+ },
5702
+ transitionCancel: {
5703
+ EventType: "TransitionEvent",
5704
+ defaultInit: {
5705
+ bubbles: true,
5706
+ cancelable: false
5707
+ }
5708
+ },
5709
+ transitionEnd: {
5710
+ EventType: "TransitionEvent",
5711
+ defaultInit: {
5712
+ bubbles: true,
5713
+ cancelable: true
5714
+ }
5715
+ },
5716
+ transitionRun: {
5717
+ EventType: "TransitionEvent",
5718
+ defaultInit: {
5719
+ bubbles: true,
5720
+ cancelable: false
5721
+ }
5722
+ },
5723
+ transitionStart: {
5724
+ EventType: "TransitionEvent",
5725
+ defaultInit: {
5726
+ bubbles: true,
5727
+ cancelable: false
5728
+ }
5729
+ },
5730
+ pointerOver: {
5731
+ EventType: "PointerEvent",
5732
+ defaultInit: {
5733
+ bubbles: true,
5734
+ cancelable: true,
5735
+ composed: true
5736
+ }
5737
+ },
5738
+ pointerEnter: {
5739
+ EventType: "PointerEvent",
5740
+ defaultInit: {
5741
+ bubbles: false,
5742
+ cancelable: false
5743
+ }
5744
+ },
5745
+ pointerDown: {
5746
+ EventType: "PointerEvent",
5747
+ defaultInit: {
5748
+ bubbles: true,
5749
+ cancelable: true,
5750
+ composed: true
5751
+ }
5752
+ },
5753
+ pointerMove: {
5754
+ EventType: "PointerEvent",
5755
+ defaultInit: {
5756
+ bubbles: true,
5757
+ cancelable: true,
5758
+ composed: true
5759
+ }
5760
+ },
5761
+ pointerUp: {
5762
+ EventType: "PointerEvent",
5763
+ defaultInit: {
5764
+ bubbles: true,
5765
+ cancelable: true,
5766
+ composed: true
5767
+ }
5768
+ },
5769
+ pointerCancel: {
5770
+ EventType: "PointerEvent",
5771
+ defaultInit: {
5772
+ bubbles: true,
5773
+ cancelable: false,
5774
+ composed: true
5775
+ }
5776
+ },
5777
+ pointerOut: {
5778
+ EventType: "PointerEvent",
5779
+ defaultInit: {
5780
+ bubbles: true,
5781
+ cancelable: true,
5782
+ composed: true
5783
+ }
5784
+ },
5785
+ pointerLeave: {
5786
+ EventType: "PointerEvent",
5787
+ defaultInit: {
5788
+ bubbles: false,
5789
+ cancelable: false
5790
+ }
5791
+ },
5792
+ gotPointerCapture: {
5793
+ EventType: "PointerEvent",
5794
+ defaultInit: {
5795
+ bubbles: true,
5796
+ cancelable: false,
5797
+ composed: true
5798
+ }
5799
+ },
5800
+ lostPointerCapture: {
5801
+ EventType: "PointerEvent",
5802
+ defaultInit: {
5803
+ bubbles: true,
5804
+ cancelable: false,
5805
+ composed: true
5806
+ }
5807
+ },
5808
+ popState: {
5809
+ EventType: "PopStateEvent",
5810
+ defaultInit: {
5811
+ bubbles: true,
5812
+ cancelable: false
5813
+ }
5814
+ },
5815
+ offline: {
5816
+ EventType: "Event",
5817
+ defaultInit: {
5818
+ bubbles: false,
5819
+ cancelable: false
5820
+ }
5821
+ },
5822
+ online: {
5823
+ EventType: "Event",
5824
+ defaultInit: {
5825
+ bubbles: false,
5826
+ cancelable: false
5827
+ }
5828
+ },
5829
+ pageHide: {
5830
+ EventType: "PageTransitionEvent",
5831
+ defaultInit: {
5832
+ bubbles: true,
5833
+ cancelable: true
5834
+ }
5835
+ },
5836
+ pageShow: {
5837
+ EventType: "PageTransitionEvent",
5838
+ defaultInit: {
5839
+ bubbles: true,
5840
+ cancelable: true
5841
+ }
5842
+ }
5843
+ };
5844
+ eventAliasMap = { doubleClick: "dblClick" };
5845
+ _excluded = ["value", "files"];
5846
+ _excluded2 = [
5847
+ "bubbles",
5848
+ "cancelable",
5849
+ "detail"
5850
+ ];
5851
+ Object.keys(eventMap$1).forEach((key) => {
5852
+ const _eventMap$key = eventMap$1[key], EventType = _eventMap$key.EventType, defaultInit = _eventMap$key.defaultInit;
5853
+ const eventName = key.toLowerCase();
5854
+ createEvent$1[key] = (node, init) => createEvent$1(eventName, node, init, {
5855
+ EventType,
5856
+ defaultInit
5857
+ });
5858
+ fireEvent[key] = (node, init) => fireEvent(node, createEvent$1[key](node, init));
5859
+ });
5860
+ Object.keys(eventAliasMap).forEach((aliasKey) => {
5861
+ const key = eventAliasMap[aliasKey];
5862
+ fireEvent[aliasKey] = function() {
5863
+ return fireEvent[key](...arguments);
5864
+ };
5865
+ });
5866
+ debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach((el) => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options);
5867
+ logTestingPlaygroundURL = function(element) {
5868
+ if (element === void 0) element = getDocument$1().body;
5869
+ if (!element || !("innerHTML" in element)) {
5870
+ console.log("The element you're providing isn't a valid DOM element.");
5871
+ return;
1930
5872
  }
1931
- };
1932
- InvalidCSSError = class extends Error {
1933
- constructor(received, matcherFn, context) {
1934
- super();
1935
- /* istanbul ignore next */
1936
- if (Error.captureStackTrace) Error.captureStackTrace(this, matcherFn);
1937
- this.message = [
1938
- received.message,
1939
- "",
1940
- context.utils.RECEIVED_COLOR(`Failing css:`),
1941
- context.utils.RECEIVED_COLOR(`${received.css}`)
1942
- ].join("\n");
5873
+ if (!element.innerHTML) {
5874
+ console.log("The provided element doesn't have any children.");
5875
+ return;
1943
5876
  }
5877
+ const playgroundUrl = getPlaygroundUrl(element.innerHTML);
5878
+ console.log("Open this URL in your browser\n\n" + playgroundUrl);
5879
+ return playgroundUrl;
1944
5880
  };
1945
- rolesSupportingValues = [
1946
- "meter",
1947
- "progressbar",
1948
- "slider",
1949
- "spinbutton"
1950
- ];
1951
- ariaInvalidName = "aria-invalid";
1952
- validStates = ["false"];
1953
- elementRoleList = buildElementRoleList(import_lib$1.elementRoles);
1954
- FORM_TAGS$2 = [
1955
- "fieldset",
1956
- "input",
1957
- "select",
1958
- "optgroup",
1959
- "option",
1960
- "button",
1961
- "textarea"
1962
- ];
1963
- FORM_TAGS$1 = ["select", "textarea"];
1964
- ARIA_FORM_TAGS = [
1965
- "input",
1966
- "select",
1967
- "textarea"
1968
- ];
1969
- UNSUPPORTED_INPUT_TYPES = [
1970
- "color",
1971
- "hidden",
1972
- "range",
1973
- "submit",
1974
- "image",
1975
- "reset"
1976
- ];
1977
- SUPPORTED_ARIA_ROLES = [
1978
- "checkbox",
1979
- "combobox",
1980
- "gridcell",
1981
- "listbox",
1982
- "radiogroup",
1983
- "spinbutton",
1984
- "textbox",
1985
- "tree"
1986
- ];
1987
- FORM_TAGS = [
1988
- "form",
1989
- "input",
1990
- "select",
1991
- "textarea"
1992
- ];
1993
- DOCUMENT_POSITION_DISCONNECTED = 1;
1994
- DOCUMENT_POSITION_PRECEDING = 2;
1995
- DOCUMENT_POSITION_FOLLOWING = 4;
1996
- DOCUMENT_POSITION_CONTAINS = 8;
1997
- DOCUMENT_POSITION_CONTAINED_BY = 16;
1998
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;
1999
- DOCUMENT_POSITIONS_STRINGS = {
2000
- [DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED",
2001
- [DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING",
2002
- [DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING",
2003
- [DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS",
2004
- [DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
2005
- [DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
5881
+ initialValue = {
5882
+ debug,
5883
+ logTestingPlaygroundURL
2006
5884
  };
2007
- })))();
2008
- }
2009
- //#endregion
2010
- //#region ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
2011
- var matchers_exports = /* @__PURE__ */ __exportAll({
2012
- toAppearAfter: () => toAppearAfter,
2013
- toAppearBefore: () => toAppearBefore,
2014
- toBeChecked: () => toBeChecked,
2015
- toBeDisabled: () => toBeDisabled,
2016
- toBeEmpty: () => toBeEmpty,
2017
- toBeEmptyDOMElement: () => toBeEmptyDOMElement,
2018
- toBeEnabled: () => toBeEnabled,
2019
- toBeInTheDOM: () => toBeInTheDOM,
2020
- toBeInTheDocument: () => toBeInTheDocument,
2021
- toBeInvalid: () => toBeInvalid,
2022
- toBePartiallyChecked: () => toBePartiallyChecked,
2023
- toBePartiallyPressed: () => toBePartiallyPressed,
2024
- toBePressed: () => toBePressed,
2025
- toBeRequired: () => toBeRequired,
2026
- toBeValid: () => toBeValid,
2027
- toBeVisible: () => toBeVisible,
2028
- toContainElement: () => toContainElement,
2029
- toContainHTML: () => toContainHTML,
2030
- toHaveAccessibleDescription: () => toHaveAccessibleDescription,
2031
- toHaveAccessibleErrorMessage: () => toHaveAccessibleErrorMessage,
2032
- toHaveAccessibleName: () => toHaveAccessibleName,
2033
- toHaveAttribute: () => toHaveAttribute,
2034
- toHaveClass: () => toHaveClass,
2035
- toHaveDescription: () => toHaveDescription,
2036
- toHaveDisplayValue: () => toHaveDisplayValue,
2037
- toHaveErrorMessage: () => toHaveErrorMessage,
2038
- toHaveFocus: () => toHaveFocus,
2039
- toHaveFormValues: () => toHaveFormValues,
2040
- toHaveRole: () => toHaveRole,
2041
- toHaveSelection: () => toHaveSelection,
2042
- toHaveStyle: () => toHaveStyle,
2043
- toHaveTextContent: () => toHaveTextContent,
2044
- toHaveValue: () => toHaveValue
2045
- });
2046
- function init_matchers() {
2047
- return (init_matchers = __esmMin((() => {
2048
- init_matchers_35e4d3bd();
2049
- require_redent();
2050
- init_dist();
2051
- require_lib();
2052
- require_css_escape();
5885
+ screen = typeof document !== "undefined" && document.body ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => {
5886
+ helpers[key] = () => {
5887
+ throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
5888
+ };
5889
+ return helpers;
5890
+ }, initialValue);
2053
5891
  })))();
2054
5892
  }
2055
5893
  //#endregion
@@ -2116,6 +5954,13 @@ function _define_property$8(obj, key, value) {
2116
5954
  else obj[key] = value;
2117
5955
  return obj;
2118
5956
  }
5957
+ function toAsciiLowercase(value) {
5958
+ return value.replace(/[A-Z]/g, (char) => char.toLowerCase());
5959
+ }
5960
+ function normalizeFormat(format) {
5961
+ const type = toAsciiLowercase(format);
5962
+ return type === "text" ? "text/plain" : type === "url" ? "text/uri-list" : type;
5963
+ }
2119
5964
  function getTypeMatcher(type, exact) {
2120
5965
  const [group, sub] = type.split("/");
2121
5966
  const isGroup = !sub || sub === "*";
@@ -2127,7 +5972,8 @@ function createDataTransferStub(window) {
2127
5972
  return new class DataTransferStub {
2128
5973
  getData(format) {
2129
5974
  var _this_items_find;
2130
- const match = (_this_items_find = this.items.find(getTypeMatcher(format, true))) !== null && _this_items_find !== void 0 ? _this_items_find : this.items.find(getTypeMatcher(format, false));
5975
+ const type = normalizeFormat(format);
5976
+ const match = (_this_items_find = this.items.find(getTypeMatcher(type, true))) !== null && _this_items_find !== void 0 ? _this_items_find : this.items.find(getTypeMatcher(type, false));
2131
5977
  let text = "";
2132
5978
  match === null || match === void 0 || match.getAsString((t) => {
2133
5979
  text = t;
@@ -2135,14 +5981,16 @@ function createDataTransferStub(window) {
2135
5981
  return text;
2136
5982
  }
2137
5983
  setData(format, data) {
2138
- const matchIndex = this.items.findIndex(getTypeMatcher(format, true));
2139
- const item = new DataTransferItemStub(data, format);
5984
+ const type = normalizeFormat(format);
5985
+ const matchIndex = this.items.findIndex(getTypeMatcher(type, true));
5986
+ const item = new DataTransferItemStub(data, type);
2140
5987
  if (matchIndex >= 0) this.items.splice(matchIndex, 1, item);
2141
5988
  else this.items.push(item);
2142
5989
  }
2143
5990
  clearData(format) {
2144
5991
  if (format) {
2145
- const matchIndex = this.items.findIndex(getTypeMatcher(format, true));
5992
+ const type = normalizeFormat(format);
5993
+ const matchIndex = this.items.findIndex(getTypeMatcher(type, true));
2146
5994
  if (matchIndex >= 0) this.items.remove(matchIndex);
2147
5995
  } else this.items.clear();
2148
5996
  }
@@ -2202,7 +6050,7 @@ function init_DataTransfer() {
2202
6050
  };
2203
6051
  DataTransferItemListStub = class extends Array {
2204
6052
  add(...args) {
2205
- const item = new DataTransferItemStub(args[0], args[1]);
6053
+ const item = typeof args[0] === "string" ? new DataTransferItemStub(args[0], toAsciiLowercase(args[1])) : new DataTransferItemStub(args[0]);
2206
6054
  this.push(item);
2207
6055
  return item;
2208
6056
  }
@@ -2325,16 +6173,16 @@ async function writeDataTransferToClipboard(document, clipboardData) {
2325
6173
  () => false
2326
6174
  ))) throw new Error("The Clipboard API is unavailable.");
2327
6175
  }
2328
- var ClipboardStubControl, g;
6176
+ var ClipboardStubControl, g$1;
2329
6177
  function init_Clipboard() {
2330
6178
  return (init_Clipboard = __esmMin((() => {
2331
6179
  init_DataTransfer();
2332
6180
  ClipboardStubControl = Symbol("Manage ClipboardSub");
2333
- g = globalThis;
2334
- /* istanbul ignore else */ if (typeof g.afterEach === "function") g.afterEach(() => {
6181
+ g$1 = globalThis;
6182
+ /* istanbul ignore else */ if (typeof g$1.afterEach === "function") g$1.afterEach(() => {
2335
6183
  if (typeof globalThis.window !== "undefined") resetClipboardStubOnView(globalThis.window);
2336
6184
  });
2337
- /* istanbul ignore else */ if (typeof g.afterAll === "function") g.afterAll(() => {
6185
+ /* istanbul ignore else */ if (typeof g$1.afterAll === "function") g$1.afterAll(() => {
2338
6186
  if (typeof globalThis.window !== "undefined") detachClipboardStubFromView(globalThis.window);
2339
6187
  });
2340
6188
  })))();
@@ -2402,6 +6250,9 @@ function getActiveElement(document) {
2402
6250
  if (activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) {
2403
6251
  const activeElementInShadowTree = getActiveElement(activeElement.shadowRoot);
2404
6252
  if (activeElementInShadowTree) return activeElementInShadowTree;
6253
+ } else if (activeElement && isElementType(activeElement, "iframe")) {
6254
+ const contentDocument = activeElement.contentDocument;
6255
+ if (contentDocument) return getActiveElement(contentDocument);
2405
6256
  }
2406
6257
  if (isDisabled(activeElement)) return document.ownerDocument ? /* istanbul ignore next */ document.ownerDocument.body : document.body;
2407
6258
  return activeElement;
@@ -2677,8 +6528,8 @@ function init_UI() {
2677
6528
  function buildTimeValue(value) {
2678
6529
  const onlyDigitsValue = value.replace(/\D/g, "");
2679
6530
  if (onlyDigitsValue.length < 2) return value;
2680
- const firstDigit = parseInt(onlyDigitsValue[0], 10);
2681
- const secondDigit = parseInt(onlyDigitsValue[1], 10);
6531
+ const firstDigit = parseInt$1(onlyDigitsValue[0], 10);
6532
+ const secondDigit = parseInt$1(onlyDigitsValue[1], 10);
2682
6533
  if (firstDigit >= 3 || firstDigit === 2 && secondDigit >= 4) {
2683
6534
  let index;
2684
6535
  if (firstDigit >= 3) index = 1;
@@ -2690,9 +6541,9 @@ function buildTimeValue(value) {
2690
6541
  }
2691
6542
  function build(onlyDigitsValue, index) {
2692
6543
  const hours = onlyDigitsValue.slice(0, index);
2693
- const validHours = Math.min(parseInt(hours, 10), 23);
6544
+ const validHours = Math.min(parseInt$1(hours, 10), 23);
2694
6545
  const minuteCharacters = onlyDigitsValue.slice(index);
2695
- const parsedMinutes = parseInt(minuteCharacters, 10);
6546
+ const parsedMinutes = parseInt$1(minuteCharacters, 10);
2696
6547
  const validMinutes = Math.min(parsedMinutes, 59);
2697
6548
  return `${validHours.toString().padStart(2, "0")}:${validMinutes.toString().padStart(2, "0")}`;
2698
6549
  }
@@ -2701,10 +6552,10 @@ function isValidDateOrTimeValue(element, value) {
2701
6552
  clone.value = value;
2702
6553
  return clone.value === value;
2703
6554
  }
2704
- var parseInt;
6555
+ var parseInt$1;
2705
6556
  function init_timeValue() {
2706
6557
  return (init_timeValue = __esmMin((() => {
2707
- parseInt = globalThis.parseInt;
6558
+ parseInt$1 = globalThis.parseInt;
2708
6559
  })))();
2709
6560
  }
2710
6561
  //#endregion
@@ -3249,6 +7100,7 @@ function init_keydown() {
3249
7100
  init_getValueOrTextContent();
3250
7101
  init_Clipboard();
3251
7102
  init_isEditable();
7103
+ init_getActiveElement();
3252
7104
  init_getTabDestination();
3253
7105
  init_selection();
3254
7106
  init_focus();
@@ -3314,7 +7166,7 @@ function init_keydown() {
3314
7166
  },
3315
7167
  Tab: (event, target, instance) => {
3316
7168
  return () => {
3317
- const dest = getTabDestination(target, instance.system.keyboard.modifiers.Shift);
7169
+ const dest = getTabDestination(getActiveElementOrBody(instance.config.document), instance.system.keyboard.modifiers.Shift);
3318
7170
  focusElement(dest);
3319
7171
  if (hasOwnSelection(dest)) setUISelection(dest, {
3320
7172
  anchorOffset: 0,
@@ -3695,12 +7547,7 @@ function createEvent(type, target, init) {
3695
7547
  const window = getWindow(target);
3696
7548
  const { EventType, defaultInit } = eventMap[type];
3697
7549
  const event = new (getEventConstructors(window))[EventType](type, defaultInit);
3698
- var eventInit = {};
3699
- for (var key in init) if (Object.prototype.hasOwnProperty.call(init, key)) eventInit[key] = init[key];
3700
- eventInit.view = window;
3701
- eventInitializer[EventType].forEach(function(f) {
3702
- f(event, eventInit);
3703
- });
7550
+ eventInitializer[EventType].forEach((f) => f(event, init !== null && init !== void 0 ? init : {}));
3704
7551
  return event;
3705
7552
  }
3706
7553
  /* istanbul ignore next */ function getEventConstructors(window) {
@@ -3821,7 +7668,7 @@ function initPointerEvent(event, { pointerId, width, height, pressure, tangentia
3821
7668
  tiltX: sanitizeNumber(tiltX),
3822
7669
  tiltY: sanitizeNumber(tiltY),
3823
7670
  twist: sanitizeNumber(twist),
3824
- pointerType: String(pointerType),
7671
+ pointerType: String(pointerType !== null && pointerType !== void 0 ? pointerType : ""),
3825
7672
  isPrimary: Boolean(isPrimary)
3826
7673
  });
3827
7674
  }
@@ -3974,7 +7821,8 @@ function prepareInterceptor(element, propName, interceptorImpl) {
3974
7821
  /* istanbul ignore if */ if (typeof (prototypeDescriptor === null || prototypeDescriptor === void 0 ? void 0 : prototypeDescriptor[target]) !== "function" || prototypeDescriptor[target][Interceptor]) throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);
3975
7822
  function intercept(...args) {
3976
7823
  const { applyNative = false, realArgs, then } = interceptorImpl.call(this, ...args);
3977
- const realFunc = (!applyNative && objectDescriptor || prototypeDescriptor)[target];
7824
+ const sourceDescriptor = !applyNative && objectDescriptor ? objectDescriptor : prototypeDescriptor;
7825
+ const realFunc = sourceDescriptor === null || sourceDescriptor === void 0 ? void 0 : sourceDescriptor[target];
3978
7826
  if (target === "set") realFunc.call(this, realArgs);
3979
7827
  else realFunc.call(this, ...realArgs);
3980
7828
  then === null || then === void 0 || then();
@@ -3987,12 +7835,13 @@ function prepareInterceptor(element, propName, interceptorImpl) {
3987
7835
  }
3988
7836
  function prepareValueInterceptor(element) {
3989
7837
  prepareInterceptor(element, "value", function interceptorImpl(v) {
3990
- const isUI = isUIValue(v);
7838
+ const value = v === null ? "" : v;
7839
+ const isUI = isUIValue(value);
3991
7840
  if (isUI) startTrackValue(this);
3992
7841
  return {
3993
7842
  applyNative: !!isUI,
3994
- realArgs: sanitizeValue(this, v),
3995
- then: isUI ? void 0 : () => trackOrSetValue(this, String(v))
7843
+ realArgs: sanitizeValue(this, value),
7844
+ then: isUI ? void 0 : () => trackOrSetValue(this, String(value))
3996
7845
  };
3997
7846
  });
3998
7847
  }
@@ -4200,7 +8049,7 @@ function init_keyboard() {
4200
8049
  getPressedKeys() {
4201
8050
  return this.pressed.values().map((p) => p.keyDef);
4202
8051
  }
4203
- /** Press a key */ async keydown(instance, keyDef) {
8052
+ /** Press a key */ async keydown(instance, keyDef, repeat = false) {
4204
8053
  const key = String(keyDef.key);
4205
8054
  const code = String(keyDef.code);
4206
8055
  const target = getActiveElementOrBody(instance.config.document);
@@ -4209,7 +8058,8 @@ function init_keyboard() {
4209
8058
  if (isModifierKey(key)) this.modifiers[key] = true;
4210
8059
  const unprevented = instance.dispatchUIEvent(target, "keydown", {
4211
8060
  key,
4212
- code
8061
+ code,
8062
+ repeat
4213
8063
  });
4214
8064
  if (isModifierLock(key) && !this.modifiers[key]) {
4215
8065
  this.modifiers[key] = true;
@@ -5479,7 +9329,7 @@ async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf,
5479
9329
  if (system.keyboard.isKeyPressed(keyDef)) await system.keyboard.keyup(instance, keyDef);
5480
9330
  if (!releasePrevious) {
5481
9331
  for (let i = 1; i <= repeat; i++) {
5482
- await system.keyboard.keydown(instance, keyDef);
9332
+ await system.keyboard.keydown(instance, keyDef, i > 1);
5483
9333
  if (i < repeat) await wait(instance.config);
5484
9334
  }
5485
9335
  if (releaseSelf) await system.keyboard.keyup(instance, keyDef);
@@ -6141,4 +9991,415 @@ function init_esm() {
6141
9991
  })))();
6142
9992
  }
6143
9993
  //#endregion
6144
- export { matchers_exports as a, init_matchers as i, init_setup$1 as n, userEvent as r, init_esm as t };
9994
+ //#region ../../node_modules/@preact/signals-core/dist/signals-core.module.js
9995
+ function t() {
9996
+ if (!(v > 1)) {
9997
+ var i, t = !1;
9998
+ (function() {
9999
+ var i = c;
10000
+ c = void 0;
10001
+ while (void 0 !== i) {
10002
+ var t = i.S;
10003
+ if (t.v === i.v) {
10004
+ for (var n = t.t; void 0 !== n; n = n.x) if (n.i === i.i) n.i = t.i;
10005
+ }
10006
+ i = i.o;
10007
+ }
10008
+ })();
10009
+ while (void 0 !== h) {
10010
+ var n = h;
10011
+ h = void 0;
10012
+ s++;
10013
+ while (void 0 !== n) {
10014
+ var r = n.u;
10015
+ n.u = void 0;
10016
+ n.f &= -3;
10017
+ if (!(8 & n.f) && w(n)) try {
10018
+ n.c();
10019
+ } catch (n) {
10020
+ if (!t) {
10021
+ i = n;
10022
+ t = !0;
10023
+ }
10024
+ }
10025
+ n = r;
10026
+ }
10027
+ }
10028
+ s = 0;
10029
+ v--;
10030
+ if (t) throw i;
10031
+ } else v--;
10032
+ }
10033
+ function n(i) {
10034
+ if (v > 0) return i();
10035
+ e = ++u;
10036
+ v++;
10037
+ try {
10038
+ return i();
10039
+ } finally {
10040
+ t();
10041
+ }
10042
+ }
10043
+ function f(i) {
10044
+ var t = o, n = r;
10045
+ o = void 0;
10046
+ r = void 0;
10047
+ try {
10048
+ return i();
10049
+ } finally {
10050
+ o = t;
10051
+ r = n;
10052
+ }
10053
+ }
10054
+ function a(i) {
10055
+ if (void 0 !== o) {
10056
+ var t = i.n;
10057
+ if (void 0 === t || t.t !== o) {
10058
+ t = {
10059
+ i: 0,
10060
+ S: i,
10061
+ p: o.s,
10062
+ n: void 0,
10063
+ t: o,
10064
+ e: void 0,
10065
+ x: void 0,
10066
+ r: t
10067
+ };
10068
+ if (void 0 !== o.s) o.s.n = t;
10069
+ o.s = t;
10070
+ i.n = t;
10071
+ if (32 & o.f) i.S(t);
10072
+ return t;
10073
+ } else if (-1 === t.i) {
10074
+ t.i = 0;
10075
+ if (void 0 !== t.n) {
10076
+ t.n.p = t.p;
10077
+ if (void 0 !== t.p) t.p.n = t.n;
10078
+ t.p = o.s;
10079
+ t.n = void 0;
10080
+ o.s.n = t;
10081
+ o.s = t;
10082
+ }
10083
+ return t;
10084
+ }
10085
+ }
10086
+ }
10087
+ function l(i, t) {
10088
+ this.v = i;
10089
+ this.i = 0;
10090
+ this.n = void 0;
10091
+ this.t = void 0;
10092
+ this.l = 0;
10093
+ this.W = null == t ? void 0 : t.watched;
10094
+ this.Z = null == t ? void 0 : t.unwatched;
10095
+ this.name = null == t ? void 0 : t.name;
10096
+ }
10097
+ function y(i, t) {
10098
+ return new l(i, t);
10099
+ }
10100
+ function w(i) {
10101
+ for (var t = i.s; void 0 !== t; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
10102
+ return !1;
10103
+ }
10104
+ function _(i) {
10105
+ for (var t = i.s; void 0 !== t; t = t.n) {
10106
+ var n = t.S.n;
10107
+ if (void 0 !== n) t.r = n;
10108
+ t.S.n = t;
10109
+ t.i = -1;
10110
+ if (void 0 === t.n) {
10111
+ i.s = t;
10112
+ break;
10113
+ }
10114
+ }
10115
+ }
10116
+ function b(i) {
10117
+ var t = i.s, n = void 0;
10118
+ while (void 0 !== t) {
10119
+ var r = t.p;
10120
+ if (-1 === t.i) {
10121
+ t.S.U(t);
10122
+ if (void 0 !== r) r.n = t.n;
10123
+ if (void 0 !== t.n) t.n.p = r;
10124
+ } else n = t;
10125
+ t.S.n = t.r;
10126
+ if (void 0 !== t.r) t.r = void 0;
10127
+ t = r;
10128
+ }
10129
+ i.s = n;
10130
+ }
10131
+ function p(i, t) {
10132
+ l.call(this, void 0, t);
10133
+ this.x = i;
10134
+ this.s = void 0;
10135
+ this.g = d - 1;
10136
+ this.f = 4;
10137
+ }
10138
+ function g(i, t) {
10139
+ return new p(i, t);
10140
+ }
10141
+ function S(i) {
10142
+ var n = i.m;
10143
+ i.m = void 0;
10144
+ if ("function" == typeof n) {
10145
+ v++;
10146
+ var r = o;
10147
+ o = void 0;
10148
+ try {
10149
+ n();
10150
+ } catch (t) {
10151
+ i.f &= -2;
10152
+ i.f |= 8;
10153
+ m(i);
10154
+ throw t;
10155
+ } finally {
10156
+ o = r;
10157
+ t();
10158
+ }
10159
+ }
10160
+ }
10161
+ function m(i) {
10162
+ for (var t = i.s; void 0 !== t; t = t.n) t.S.U(t);
10163
+ i.x = void 0;
10164
+ i.s = void 0;
10165
+ S(i);
10166
+ }
10167
+ function x(i) {
10168
+ if (o !== this) throw new Error("Out-of-order effect");
10169
+ b(this);
10170
+ o = i;
10171
+ this.f &= -2;
10172
+ if (8 & this.f) m(this);
10173
+ t();
10174
+ }
10175
+ function E(i, t) {
10176
+ this.x = i;
10177
+ this.m = void 0;
10178
+ this.s = void 0;
10179
+ this.u = void 0;
10180
+ this.f = 32;
10181
+ this.name = null == t ? void 0 : t.name;
10182
+ if (r) r.push(this);
10183
+ }
10184
+ function j(i, t) {
10185
+ var n = new E(i, t);
10186
+ try {
10187
+ n.c();
10188
+ } catch (i) {
10189
+ n.d();
10190
+ throw i;
10191
+ }
10192
+ var r = n.d.bind(n);
10193
+ r[Symbol.dispose] = r;
10194
+ return r;
10195
+ }
10196
+ var i, r, o, h, v, s, u, e, c, d;
10197
+ function init_signals_core_module() {
10198
+ return (init_signals_core_module = __esmMin((() => {
10199
+ i = Symbol.for("preact-signals");
10200
+ o = void 0;
10201
+ h = void 0;
10202
+ v = 0;
10203
+ s = 0;
10204
+ u = 0;
10205
+ e = 0;
10206
+ c = void 0;
10207
+ d = 0;
10208
+ l.prototype.brand = i;
10209
+ l.prototype.h = function() {
10210
+ return !0;
10211
+ };
10212
+ l.prototype.S = function(i) {
10213
+ var t = this, n = this.t;
10214
+ if (n !== i && void 0 === i.e) {
10215
+ i.x = n;
10216
+ this.t = i;
10217
+ if (void 0 !== n) n.e = i;
10218
+ else f(function() {
10219
+ var i;
10220
+ null == (i = t.W) || i.call(t);
10221
+ });
10222
+ }
10223
+ };
10224
+ l.prototype.U = function(i) {
10225
+ var t = this;
10226
+ if (void 0 !== this.t) {
10227
+ var n = i.e, r = i.x;
10228
+ if (void 0 !== n) {
10229
+ n.x = r;
10230
+ i.e = void 0;
10231
+ }
10232
+ if (void 0 !== r) {
10233
+ r.e = n;
10234
+ i.x = void 0;
10235
+ }
10236
+ if (i === this.t) {
10237
+ this.t = r;
10238
+ if (void 0 === r) f(function() {
10239
+ var i;
10240
+ null == (i = t.Z) || i.call(t);
10241
+ });
10242
+ }
10243
+ }
10244
+ };
10245
+ l.prototype.subscribe = function(i) {
10246
+ var t = this;
10247
+ return j(function() {
10248
+ var n = t.value;
10249
+ f(function() {
10250
+ return i(n);
10251
+ });
10252
+ }, { name: "sub" });
10253
+ };
10254
+ l.prototype.valueOf = function() {
10255
+ return this.value;
10256
+ };
10257
+ l.prototype.toString = function() {
10258
+ return this.value + "";
10259
+ };
10260
+ l.prototype.toJSON = function() {
10261
+ return this.value;
10262
+ };
10263
+ l.prototype.peek = function() {
10264
+ var i = this;
10265
+ return f(function() {
10266
+ return i.value;
10267
+ });
10268
+ };
10269
+ Object.defineProperty(l.prototype, "value", {
10270
+ get: function() {
10271
+ var i = a(this);
10272
+ if (void 0 !== i) i.i = this.i;
10273
+ return this.v;
10274
+ },
10275
+ set: function(i) {
10276
+ if (i !== this.v) {
10277
+ if (s > 100) throw new Error("Cycle detected");
10278
+ (function(i) {
10279
+ if (0 !== v && 0 === s) {
10280
+ if (i.l !== e) {
10281
+ i.l = e;
10282
+ c = {
10283
+ S: i,
10284
+ v: i.v,
10285
+ i: i.i,
10286
+ o: c
10287
+ };
10288
+ }
10289
+ }
10290
+ })(this);
10291
+ this.v = i;
10292
+ this.i++;
10293
+ d++;
10294
+ v++;
10295
+ try {
10296
+ for (var n = this.t; void 0 !== n; n = n.x) n.t.N();
10297
+ } finally {
10298
+ t();
10299
+ }
10300
+ }
10301
+ }
10302
+ });
10303
+ p.prototype = new l();
10304
+ p.prototype.h = function() {
10305
+ this.f &= -3;
10306
+ if (1 & this.f) return !1;
10307
+ if (32 == (36 & this.f)) return !0;
10308
+ this.f &= -5;
10309
+ if (this.g === d) return !0;
10310
+ this.g = d;
10311
+ this.f |= 1;
10312
+ if (this.i > 0 && !w(this)) {
10313
+ this.f &= -2;
10314
+ return !0;
10315
+ }
10316
+ var i = o;
10317
+ try {
10318
+ _(this);
10319
+ o = this;
10320
+ var t = this.x();
10321
+ if (16 & this.f || this.v !== t || 0 === this.i) {
10322
+ this.v = t;
10323
+ this.f &= -17;
10324
+ this.i++;
10325
+ }
10326
+ } catch (i) {
10327
+ this.v = i;
10328
+ this.f |= 16;
10329
+ this.i++;
10330
+ }
10331
+ o = i;
10332
+ b(this);
10333
+ this.f &= -2;
10334
+ return !0;
10335
+ };
10336
+ p.prototype.S = function(i) {
10337
+ if (void 0 === this.t) {
10338
+ this.f |= 36;
10339
+ for (var t = this.s; void 0 !== t; t = t.n) t.S.S(t);
10340
+ }
10341
+ l.prototype.S.call(this, i);
10342
+ };
10343
+ p.prototype.U = function(i) {
10344
+ if (void 0 !== this.t) {
10345
+ l.prototype.U.call(this, i);
10346
+ if (void 0 === this.t) {
10347
+ this.f &= -33;
10348
+ for (var t = this.s; void 0 !== t; t = t.n) t.S.U(t);
10349
+ }
10350
+ }
10351
+ };
10352
+ p.prototype.N = function() {
10353
+ if (!(2 & this.f)) {
10354
+ this.f |= 6;
10355
+ for (var i = this.t; void 0 !== i; i = i.x) i.t.N();
10356
+ }
10357
+ };
10358
+ Object.defineProperty(p.prototype, "value", { get: function() {
10359
+ if (1 & this.f) throw new Error("Cycle detected");
10360
+ var i = a(this);
10361
+ this.h();
10362
+ if (void 0 !== i) i.i = this.i;
10363
+ if (16 & this.f) throw this.v;
10364
+ return this.v;
10365
+ } });
10366
+ E.prototype.c = function() {
10367
+ var i = this.S();
10368
+ try {
10369
+ if (8 & this.f) return;
10370
+ if (void 0 === this.x) return;
10371
+ var t = this.x();
10372
+ if ("function" == typeof t) this.m = t;
10373
+ } finally {
10374
+ i();
10375
+ }
10376
+ };
10377
+ E.prototype.S = function() {
10378
+ if (1 & this.f) throw new Error("Cycle detected");
10379
+ this.f |= 1;
10380
+ this.f &= -9;
10381
+ S(this);
10382
+ _(this);
10383
+ v++;
10384
+ var i = o;
10385
+ o = this;
10386
+ return x.bind(this, i);
10387
+ };
10388
+ E.prototype.N = function() {
10389
+ if (!(2 & this.f)) {
10390
+ this.f |= 2;
10391
+ this.u = h;
10392
+ h = this;
10393
+ }
10394
+ };
10395
+ E.prototype.d = function() {
10396
+ this.f |= 8;
10397
+ if (!(1 & this.f)) m(this);
10398
+ };
10399
+ E.prototype.dispose = function() {
10400
+ this.d();
10401
+ };
10402
+ })))();
10403
+ }
10404
+ //#endregion
10405
+ export { l as a, init_esm as c, dom_esm_exports as d, init_dom_esm as f, j as i, init_setup$1 as l, matchers_exports as m, g as n, n as o, init_matchers as p, init_signals_core_module as r, y as s, f as t, userEvent as u };