@noma.to/qwik-testing-library 1.0.1

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 (695) hide show
  1. package/lib/_virtual/AsymmetricMatcher.qwik.cjs +4 -0
  2. package/lib/_virtual/AsymmetricMatcher.qwik.mjs +4 -0
  3. package/lib/_virtual/ConvertAnsi.qwik.cjs +4 -0
  4. package/lib/_virtual/ConvertAnsi.qwik.mjs +4 -0
  5. package/lib/_virtual/DOMCollection.qwik.cjs +4 -0
  6. package/lib/_virtual/DOMCollection.qwik.mjs +4 -0
  7. package/lib/_virtual/DOMElement.qwik.cjs +4 -0
  8. package/lib/_virtual/DOMElement.qwik.mjs +4 -0
  9. package/lib/_virtual/Immutable.qwik.cjs +4 -0
  10. package/lib/_virtual/Immutable.qwik.mjs +4 -0
  11. package/lib/_virtual/ReactElement.qwik.cjs +4 -0
  12. package/lib/_virtual/ReactElement.qwik.mjs +4 -0
  13. package/lib/_virtual/ReactTestComponent.qwik.cjs +4 -0
  14. package/lib/_virtual/ReactTestComponent.qwik.mjs +4 -0
  15. package/lib/_virtual/_commonjsHelpers.qwik.cjs +6 -0
  16. package/lib/_virtual/_commonjsHelpers.qwik.mjs +6 -0
  17. package/lib/_virtual/alertRole.qwik.cjs +4 -0
  18. package/lib/_virtual/alertRole.qwik.mjs +4 -0
  19. package/lib/_virtual/alertdialogRole.qwik.cjs +4 -0
  20. package/lib/_virtual/alertdialogRole.qwik.mjs +4 -0
  21. package/lib/_virtual/applicationRole.qwik.cjs +4 -0
  22. package/lib/_virtual/applicationRole.qwik.mjs +4 -0
  23. package/lib/_virtual/ariaAbstractRoles.qwik.cjs +4 -0
  24. package/lib/_virtual/ariaAbstractRoles.qwik.mjs +4 -0
  25. package/lib/_virtual/ariaDpubRoles.qwik.cjs +4 -0
  26. package/lib/_virtual/ariaDpubRoles.qwik.mjs +4 -0
  27. package/lib/_virtual/ariaGraphicsRoles.qwik.cjs +4 -0
  28. package/lib/_virtual/ariaGraphicsRoles.qwik.mjs +4 -0
  29. package/lib/_virtual/ariaLiteralRoles.qwik.cjs +4 -0
  30. package/lib/_virtual/ariaLiteralRoles.qwik.mjs +4 -0
  31. package/lib/_virtual/ariaPropsMap.qwik.cjs +4 -0
  32. package/lib/_virtual/ariaPropsMap.qwik.mjs +4 -0
  33. package/lib/_virtual/articleRole.qwik.cjs +4 -0
  34. package/lib/_virtual/articleRole.qwik.mjs +4 -0
  35. package/lib/_virtual/bannerRole.qwik.cjs +4 -0
  36. package/lib/_virtual/bannerRole.qwik.mjs +4 -0
  37. package/lib/_virtual/blockquoteRole.qwik.cjs +4 -0
  38. package/lib/_virtual/blockquoteRole.qwik.mjs +4 -0
  39. package/lib/_virtual/buttonRole.qwik.cjs +4 -0
  40. package/lib/_virtual/buttonRole.qwik.mjs +4 -0
  41. package/lib/_virtual/captionRole.qwik.cjs +4 -0
  42. package/lib/_virtual/captionRole.qwik.mjs +4 -0
  43. package/lib/_virtual/cellRole.qwik.cjs +4 -0
  44. package/lib/_virtual/cellRole.qwik.mjs +4 -0
  45. package/lib/_virtual/checkboxRole.qwik.cjs +4 -0
  46. package/lib/_virtual/checkboxRole.qwik.mjs +4 -0
  47. package/lib/_virtual/codeRole.qwik.cjs +4 -0
  48. package/lib/_virtual/codeRole.qwik.mjs +4 -0
  49. package/lib/_virtual/collections.qwik.cjs +4 -0
  50. package/lib/_virtual/collections.qwik.mjs +4 -0
  51. package/lib/_virtual/columnheaderRole.qwik.cjs +4 -0
  52. package/lib/_virtual/columnheaderRole.qwik.mjs +4 -0
  53. package/lib/_virtual/comboboxRole.qwik.cjs +4 -0
  54. package/lib/_virtual/comboboxRole.qwik.mjs +4 -0
  55. package/lib/_virtual/commandRole.qwik.cjs +4 -0
  56. package/lib/_virtual/commandRole.qwik.mjs +4 -0
  57. package/lib/_virtual/complementaryRole.qwik.cjs +4 -0
  58. package/lib/_virtual/complementaryRole.qwik.mjs +4 -0
  59. package/lib/_virtual/compositeRole.qwik.cjs +4 -0
  60. package/lib/_virtual/compositeRole.qwik.mjs +4 -0
  61. package/lib/_virtual/contentinfoRole.qwik.cjs +4 -0
  62. package/lib/_virtual/contentinfoRole.qwik.mjs +4 -0
  63. package/lib/_virtual/definitionRole.qwik.cjs +4 -0
  64. package/lib/_virtual/definitionRole.qwik.mjs +4 -0
  65. package/lib/_virtual/deletionRole.qwik.cjs +4 -0
  66. package/lib/_virtual/deletionRole.qwik.mjs +4 -0
  67. package/lib/_virtual/dialogRole.qwik.cjs +4 -0
  68. package/lib/_virtual/dialogRole.qwik.mjs +4 -0
  69. package/lib/_virtual/directoryRole.qwik.cjs +4 -0
  70. package/lib/_virtual/directoryRole.qwik.mjs +4 -0
  71. package/lib/_virtual/docAbstractRole.qwik.cjs +4 -0
  72. package/lib/_virtual/docAbstractRole.qwik.mjs +4 -0
  73. package/lib/_virtual/docAcknowledgmentsRole.qwik.cjs +4 -0
  74. package/lib/_virtual/docAcknowledgmentsRole.qwik.mjs +4 -0
  75. package/lib/_virtual/docAfterwordRole.qwik.cjs +4 -0
  76. package/lib/_virtual/docAfterwordRole.qwik.mjs +4 -0
  77. package/lib/_virtual/docAppendixRole.qwik.cjs +4 -0
  78. package/lib/_virtual/docAppendixRole.qwik.mjs +4 -0
  79. package/lib/_virtual/docBacklinkRole.qwik.cjs +4 -0
  80. package/lib/_virtual/docBacklinkRole.qwik.mjs +4 -0
  81. package/lib/_virtual/docBiblioentryRole.qwik.cjs +4 -0
  82. package/lib/_virtual/docBiblioentryRole.qwik.mjs +4 -0
  83. package/lib/_virtual/docBibliographyRole.qwik.cjs +4 -0
  84. package/lib/_virtual/docBibliographyRole.qwik.mjs +4 -0
  85. package/lib/_virtual/docBibliorefRole.qwik.cjs +4 -0
  86. package/lib/_virtual/docBibliorefRole.qwik.mjs +4 -0
  87. package/lib/_virtual/docChapterRole.qwik.cjs +4 -0
  88. package/lib/_virtual/docChapterRole.qwik.mjs +4 -0
  89. package/lib/_virtual/docColophonRole.qwik.cjs +4 -0
  90. package/lib/_virtual/docColophonRole.qwik.mjs +4 -0
  91. package/lib/_virtual/docConclusionRole.qwik.cjs +4 -0
  92. package/lib/_virtual/docConclusionRole.qwik.mjs +4 -0
  93. package/lib/_virtual/docCoverRole.qwik.cjs +4 -0
  94. package/lib/_virtual/docCoverRole.qwik.mjs +4 -0
  95. package/lib/_virtual/docCreditRole.qwik.cjs +4 -0
  96. package/lib/_virtual/docCreditRole.qwik.mjs +4 -0
  97. package/lib/_virtual/docCreditsRole.qwik.cjs +4 -0
  98. package/lib/_virtual/docCreditsRole.qwik.mjs +4 -0
  99. package/lib/_virtual/docDedicationRole.qwik.cjs +4 -0
  100. package/lib/_virtual/docDedicationRole.qwik.mjs +4 -0
  101. package/lib/_virtual/docEndnoteRole.qwik.cjs +4 -0
  102. package/lib/_virtual/docEndnoteRole.qwik.mjs +4 -0
  103. package/lib/_virtual/docEndnotesRole.qwik.cjs +4 -0
  104. package/lib/_virtual/docEndnotesRole.qwik.mjs +4 -0
  105. package/lib/_virtual/docEpigraphRole.qwik.cjs +4 -0
  106. package/lib/_virtual/docEpigraphRole.qwik.mjs +4 -0
  107. package/lib/_virtual/docEpilogueRole.qwik.cjs +4 -0
  108. package/lib/_virtual/docEpilogueRole.qwik.mjs +4 -0
  109. package/lib/_virtual/docErrataRole.qwik.cjs +4 -0
  110. package/lib/_virtual/docErrataRole.qwik.mjs +4 -0
  111. package/lib/_virtual/docExampleRole.qwik.cjs +4 -0
  112. package/lib/_virtual/docExampleRole.qwik.mjs +4 -0
  113. package/lib/_virtual/docFootnoteRole.qwik.cjs +4 -0
  114. package/lib/_virtual/docFootnoteRole.qwik.mjs +4 -0
  115. package/lib/_virtual/docForewordRole.qwik.cjs +4 -0
  116. package/lib/_virtual/docForewordRole.qwik.mjs +4 -0
  117. package/lib/_virtual/docGlossaryRole.qwik.cjs +4 -0
  118. package/lib/_virtual/docGlossaryRole.qwik.mjs +4 -0
  119. package/lib/_virtual/docGlossrefRole.qwik.cjs +4 -0
  120. package/lib/_virtual/docGlossrefRole.qwik.mjs +4 -0
  121. package/lib/_virtual/docIndexRole.qwik.cjs +4 -0
  122. package/lib/_virtual/docIndexRole.qwik.mjs +4 -0
  123. package/lib/_virtual/docIntroductionRole.qwik.cjs +4 -0
  124. package/lib/_virtual/docIntroductionRole.qwik.mjs +4 -0
  125. package/lib/_virtual/docNoterefRole.qwik.cjs +4 -0
  126. package/lib/_virtual/docNoterefRole.qwik.mjs +4 -0
  127. package/lib/_virtual/docNoticeRole.qwik.cjs +4 -0
  128. package/lib/_virtual/docNoticeRole.qwik.mjs +4 -0
  129. package/lib/_virtual/docPagebreakRole.qwik.cjs +4 -0
  130. package/lib/_virtual/docPagebreakRole.qwik.mjs +4 -0
  131. package/lib/_virtual/docPagelistRole.qwik.cjs +4 -0
  132. package/lib/_virtual/docPagelistRole.qwik.mjs +4 -0
  133. package/lib/_virtual/docPartRole.qwik.cjs +4 -0
  134. package/lib/_virtual/docPartRole.qwik.mjs +4 -0
  135. package/lib/_virtual/docPrefaceRole.qwik.cjs +4 -0
  136. package/lib/_virtual/docPrefaceRole.qwik.mjs +4 -0
  137. package/lib/_virtual/docPrologueRole.qwik.cjs +4 -0
  138. package/lib/_virtual/docPrologueRole.qwik.mjs +4 -0
  139. package/lib/_virtual/docPullquoteRole.qwik.cjs +4 -0
  140. package/lib/_virtual/docPullquoteRole.qwik.mjs +4 -0
  141. package/lib/_virtual/docQnaRole.qwik.cjs +4 -0
  142. package/lib/_virtual/docQnaRole.qwik.mjs +4 -0
  143. package/lib/_virtual/docSubtitleRole.qwik.cjs +4 -0
  144. package/lib/_virtual/docSubtitleRole.qwik.mjs +4 -0
  145. package/lib/_virtual/docTipRole.qwik.cjs +4 -0
  146. package/lib/_virtual/docTipRole.qwik.mjs +4 -0
  147. package/lib/_virtual/docTocRole.qwik.cjs +4 -0
  148. package/lib/_virtual/docTocRole.qwik.mjs +4 -0
  149. package/lib/_virtual/documentRole.qwik.cjs +4 -0
  150. package/lib/_virtual/documentRole.qwik.mjs +4 -0
  151. package/lib/_virtual/domMap.qwik.cjs +4 -0
  152. package/lib/_virtual/domMap.qwik.mjs +4 -0
  153. package/lib/_virtual/elementRoleMap.qwik.cjs +4 -0
  154. package/lib/_virtual/elementRoleMap.qwik.mjs +4 -0
  155. package/lib/_virtual/emphasisRole.qwik.cjs +4 -0
  156. package/lib/_virtual/emphasisRole.qwik.mjs +4 -0
  157. package/lib/_virtual/escapeHTML.qwik.cjs +4 -0
  158. package/lib/_virtual/escapeHTML.qwik.mjs +4 -0
  159. package/lib/_virtual/feedRole.qwik.cjs +4 -0
  160. package/lib/_virtual/feedRole.qwik.mjs +4 -0
  161. package/lib/_virtual/figureRole.qwik.cjs +4 -0
  162. package/lib/_virtual/figureRole.qwik.mjs +4 -0
  163. package/lib/_virtual/formRole.qwik.cjs +4 -0
  164. package/lib/_virtual/formRole.qwik.mjs +4 -0
  165. package/lib/_virtual/genericRole.qwik.cjs +4 -0
  166. package/lib/_virtual/genericRole.qwik.mjs +4 -0
  167. package/lib/_virtual/graphicsDocumentRole.qwik.cjs +4 -0
  168. package/lib/_virtual/graphicsDocumentRole.qwik.mjs +4 -0
  169. package/lib/_virtual/graphicsObjectRole.qwik.cjs +4 -0
  170. package/lib/_virtual/graphicsObjectRole.qwik.mjs +4 -0
  171. package/lib/_virtual/graphicsSymbolRole.qwik.cjs +4 -0
  172. package/lib/_virtual/graphicsSymbolRole.qwik.mjs +4 -0
  173. package/lib/_virtual/gridRole.qwik.cjs +4 -0
  174. package/lib/_virtual/gridRole.qwik.mjs +4 -0
  175. package/lib/_virtual/gridcellRole.qwik.cjs +4 -0
  176. package/lib/_virtual/gridcellRole.qwik.mjs +4 -0
  177. package/lib/_virtual/groupRole.qwik.cjs +4 -0
  178. package/lib/_virtual/groupRole.qwik.mjs +4 -0
  179. package/lib/_virtual/headingRole.qwik.cjs +4 -0
  180. package/lib/_virtual/headingRole.qwik.mjs +4 -0
  181. package/lib/_virtual/imgRole.qwik.cjs +4 -0
  182. package/lib/_virtual/imgRole.qwik.mjs +4 -0
  183. package/lib/_virtual/index.qwik.cjs +4 -0
  184. package/lib/_virtual/index.qwik.mjs +4 -0
  185. package/lib/_virtual/index.qwik2.cjs +4 -0
  186. package/lib/_virtual/index.qwik2.mjs +4 -0
  187. package/lib/_virtual/index.qwik3.cjs +4 -0
  188. package/lib/_virtual/index.qwik3.mjs +4 -0
  189. package/lib/_virtual/index.qwik4.cjs +4 -0
  190. package/lib/_virtual/index.qwik4.mjs +4 -0
  191. package/lib/_virtual/index.qwik5.cjs +4 -0
  192. package/lib/_virtual/index.qwik5.mjs +4 -0
  193. package/lib/_virtual/inputRole.qwik.cjs +4 -0
  194. package/lib/_virtual/inputRole.qwik.mjs +4 -0
  195. package/lib/_virtual/insertionRole.qwik.cjs +4 -0
  196. package/lib/_virtual/insertionRole.qwik.mjs +4 -0
  197. package/lib/_virtual/iterationDecorator.qwik.cjs +4 -0
  198. package/lib/_virtual/iterationDecorator.qwik.mjs +4 -0
  199. package/lib/_virtual/iteratorProxy.qwik.cjs +4 -0
  200. package/lib/_virtual/iteratorProxy.qwik.mjs +4 -0
  201. package/lib/_virtual/landmarkRole.qwik.cjs +4 -0
  202. package/lib/_virtual/landmarkRole.qwik.mjs +4 -0
  203. package/lib/_virtual/linkRole.qwik.cjs +4 -0
  204. package/lib/_virtual/linkRole.qwik.mjs +4 -0
  205. package/lib/_virtual/listRole.qwik.cjs +4 -0
  206. package/lib/_virtual/listRole.qwik.mjs +4 -0
  207. package/lib/_virtual/listboxRole.qwik.cjs +4 -0
  208. package/lib/_virtual/listboxRole.qwik.mjs +4 -0
  209. package/lib/_virtual/listitemRole.qwik.cjs +4 -0
  210. package/lib/_virtual/listitemRole.qwik.mjs +4 -0
  211. package/lib/_virtual/logRole.qwik.cjs +4 -0
  212. package/lib/_virtual/logRole.qwik.mjs +4 -0
  213. package/lib/_virtual/lz-string.qwik.cjs +4 -0
  214. package/lib/_virtual/lz-string.qwik.mjs +4 -0
  215. package/lib/_virtual/mainRole.qwik.cjs +4 -0
  216. package/lib/_virtual/mainRole.qwik.mjs +4 -0
  217. package/lib/_virtual/markRole.qwik.cjs +4 -0
  218. package/lib/_virtual/markRole.qwik.mjs +4 -0
  219. package/lib/_virtual/markup.qwik.cjs +4 -0
  220. package/lib/_virtual/markup.qwik.mjs +4 -0
  221. package/lib/_virtual/marqueeRole.qwik.cjs +4 -0
  222. package/lib/_virtual/marqueeRole.qwik.mjs +4 -0
  223. package/lib/_virtual/mathRole.qwik.cjs +4 -0
  224. package/lib/_virtual/mathRole.qwik.mjs +4 -0
  225. package/lib/_virtual/menuRole.qwik.cjs +4 -0
  226. package/lib/_virtual/menuRole.qwik.mjs +4 -0
  227. package/lib/_virtual/menubarRole.qwik.cjs +4 -0
  228. package/lib/_virtual/menubarRole.qwik.mjs +4 -0
  229. package/lib/_virtual/menuitemRole.qwik.cjs +4 -0
  230. package/lib/_virtual/menuitemRole.qwik.mjs +4 -0
  231. package/lib/_virtual/menuitemcheckboxRole.qwik.cjs +4 -0
  232. package/lib/_virtual/menuitemcheckboxRole.qwik.mjs +4 -0
  233. package/lib/_virtual/menuitemradioRole.qwik.cjs +4 -0
  234. package/lib/_virtual/menuitemradioRole.qwik.mjs +4 -0
  235. package/lib/_virtual/meterRole.qwik.cjs +4 -0
  236. package/lib/_virtual/meterRole.qwik.mjs +4 -0
  237. package/lib/_virtual/navigationRole.qwik.cjs +4 -0
  238. package/lib/_virtual/navigationRole.qwik.mjs +4 -0
  239. package/lib/_virtual/noneRole.qwik.cjs +4 -0
  240. package/lib/_virtual/noneRole.qwik.mjs +4 -0
  241. package/lib/_virtual/noteRole.qwik.cjs +4 -0
  242. package/lib/_virtual/noteRole.qwik.mjs +4 -0
  243. package/lib/_virtual/optionRole.qwik.cjs +4 -0
  244. package/lib/_virtual/optionRole.qwik.mjs +4 -0
  245. package/lib/_virtual/paragraphRole.qwik.cjs +4 -0
  246. package/lib/_virtual/paragraphRole.qwik.mjs +4 -0
  247. package/lib/_virtual/presentationRole.qwik.cjs +4 -0
  248. package/lib/_virtual/presentationRole.qwik.mjs +4 -0
  249. package/lib/_virtual/progressbarRole.qwik.cjs +4 -0
  250. package/lib/_virtual/progressbarRole.qwik.mjs +4 -0
  251. package/lib/_virtual/radioRole.qwik.cjs +4 -0
  252. package/lib/_virtual/radioRole.qwik.mjs +4 -0
  253. package/lib/_virtual/radiogroupRole.qwik.cjs +4 -0
  254. package/lib/_virtual/radiogroupRole.qwik.mjs +4 -0
  255. package/lib/_virtual/rangeRole.qwik.cjs +4 -0
  256. package/lib/_virtual/rangeRole.qwik.mjs +4 -0
  257. package/lib/_virtual/react-is.development.qwik.cjs +4 -0
  258. package/lib/_virtual/react-is.development.qwik.mjs +4 -0
  259. package/lib/_virtual/react-is.production.min.qwik.cjs +4 -0
  260. package/lib/_virtual/react-is.production.min.qwik.mjs +4 -0
  261. package/lib/_virtual/regionRole.qwik.cjs +4 -0
  262. package/lib/_virtual/regionRole.qwik.mjs +4 -0
  263. package/lib/_virtual/roleElementMap.qwik.cjs +4 -0
  264. package/lib/_virtual/roleElementMap.qwik.mjs +4 -0
  265. package/lib/_virtual/rolesMap.qwik.cjs +4 -0
  266. package/lib/_virtual/rolesMap.qwik.mjs +4 -0
  267. package/lib/_virtual/roletypeRole.qwik.cjs +4 -0
  268. package/lib/_virtual/roletypeRole.qwik.mjs +4 -0
  269. package/lib/_virtual/rowRole.qwik.cjs +4 -0
  270. package/lib/_virtual/rowRole.qwik.mjs +4 -0
  271. package/lib/_virtual/rowgroupRole.qwik.cjs +4 -0
  272. package/lib/_virtual/rowgroupRole.qwik.mjs +4 -0
  273. package/lib/_virtual/rowheaderRole.qwik.cjs +4 -0
  274. package/lib/_virtual/rowheaderRole.qwik.mjs +4 -0
  275. package/lib/_virtual/scrollbarRole.qwik.cjs +4 -0
  276. package/lib/_virtual/scrollbarRole.qwik.mjs +4 -0
  277. package/lib/_virtual/searchRole.qwik.cjs +4 -0
  278. package/lib/_virtual/searchRole.qwik.mjs +4 -0
  279. package/lib/_virtual/searchboxRole.qwik.cjs +4 -0
  280. package/lib/_virtual/searchboxRole.qwik.mjs +4 -0
  281. package/lib/_virtual/sectionRole.qwik.cjs +4 -0
  282. package/lib/_virtual/sectionRole.qwik.mjs +4 -0
  283. package/lib/_virtual/sectionheadRole.qwik.cjs +4 -0
  284. package/lib/_virtual/sectionheadRole.qwik.mjs +4 -0
  285. package/lib/_virtual/selectRole.qwik.cjs +4 -0
  286. package/lib/_virtual/selectRole.qwik.mjs +4 -0
  287. package/lib/_virtual/separatorRole.qwik.cjs +4 -0
  288. package/lib/_virtual/separatorRole.qwik.mjs +4 -0
  289. package/lib/_virtual/sliderRole.qwik.cjs +4 -0
  290. package/lib/_virtual/sliderRole.qwik.mjs +4 -0
  291. package/lib/_virtual/spinbuttonRole.qwik.cjs +4 -0
  292. package/lib/_virtual/spinbuttonRole.qwik.mjs +4 -0
  293. package/lib/_virtual/statusRole.qwik.cjs +4 -0
  294. package/lib/_virtual/statusRole.qwik.mjs +4 -0
  295. package/lib/_virtual/strongRole.qwik.cjs +4 -0
  296. package/lib/_virtual/strongRole.qwik.mjs +4 -0
  297. package/lib/_virtual/structureRole.qwik.cjs +4 -0
  298. package/lib/_virtual/structureRole.qwik.mjs +4 -0
  299. package/lib/_virtual/subscriptRole.qwik.cjs +4 -0
  300. package/lib/_virtual/subscriptRole.qwik.mjs +4 -0
  301. package/lib/_virtual/superscriptRole.qwik.cjs +4 -0
  302. package/lib/_virtual/superscriptRole.qwik.mjs +4 -0
  303. package/lib/_virtual/switchRole.qwik.cjs +4 -0
  304. package/lib/_virtual/switchRole.qwik.mjs +4 -0
  305. package/lib/_virtual/tabRole.qwik.cjs +4 -0
  306. package/lib/_virtual/tabRole.qwik.mjs +4 -0
  307. package/lib/_virtual/tableRole.qwik.cjs +4 -0
  308. package/lib/_virtual/tableRole.qwik.mjs +4 -0
  309. package/lib/_virtual/tablistRole.qwik.cjs +4 -0
  310. package/lib/_virtual/tablistRole.qwik.mjs +4 -0
  311. package/lib/_virtual/tabpanelRole.qwik.cjs +4 -0
  312. package/lib/_virtual/tabpanelRole.qwik.mjs +4 -0
  313. package/lib/_virtual/termRole.qwik.cjs +4 -0
  314. package/lib/_virtual/termRole.qwik.mjs +4 -0
  315. package/lib/_virtual/textboxRole.qwik.cjs +4 -0
  316. package/lib/_virtual/textboxRole.qwik.mjs +4 -0
  317. package/lib/_virtual/timeRole.qwik.cjs +4 -0
  318. package/lib/_virtual/timeRole.qwik.mjs +4 -0
  319. package/lib/_virtual/timerRole.qwik.cjs +4 -0
  320. package/lib/_virtual/timerRole.qwik.mjs +4 -0
  321. package/lib/_virtual/toolbarRole.qwik.cjs +4 -0
  322. package/lib/_virtual/toolbarRole.qwik.mjs +4 -0
  323. package/lib/_virtual/tooltipRole.qwik.cjs +4 -0
  324. package/lib/_virtual/tooltipRole.qwik.mjs +4 -0
  325. package/lib/_virtual/treeRole.qwik.cjs +4 -0
  326. package/lib/_virtual/treeRole.qwik.mjs +4 -0
  327. package/lib/_virtual/treegridRole.qwik.cjs +4 -0
  328. package/lib/_virtual/treegridRole.qwik.mjs +4 -0
  329. package/lib/_virtual/treeitemRole.qwik.cjs +4 -0
  330. package/lib/_virtual/treeitemRole.qwik.mjs +4 -0
  331. package/lib/_virtual/widgetRole.qwik.cjs +4 -0
  332. package/lib/_virtual/widgetRole.qwik.mjs +4 -0
  333. package/lib/_virtual/windowRole.qwik.cjs +4 -0
  334. package/lib/_virtual/windowRole.qwik.mjs +4 -0
  335. package/lib/index.qwik.cjs +85 -0
  336. package/lib/index.qwik.mjs +85 -0
  337. package/lib/lib/qwik-testing-library.qwik.cjs +159 -0
  338. package/lib/lib/qwik-testing-library.qwik.mjs +138 -0
  339. package/lib/lib/qwikloader.qwik.cjs +252 -0
  340. package/lib/lib/qwikloader.qwik.mjs +252 -0
  341. package/lib/node_modules/.pnpm/@testing-library_dom@10.4.0/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.qwik.cjs +2600 -0
  342. package/lib/node_modules/.pnpm/@testing-library_dom@10.4.0/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.qwik.mjs +2601 -0
  343. package/lib/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.qwik.cjs +10 -0
  344. package/lib/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.qwik.mjs +10 -0
  345. package/lib/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.qwik.cjs +139 -0
  346. package/lib/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.qwik.mjs +139 -0
  347. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/ariaPropsMap.qwik.cjs +253 -0
  348. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/ariaPropsMap.qwik.mjs +252 -0
  349. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/domMap.qwik.cjs +396 -0
  350. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/domMap.qwik.mjs +395 -0
  351. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/elementRoleMap.qwik.cjs +182 -0
  352. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/elementRoleMap.qwik.mjs +181 -0
  353. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/commandRole.qwik.cjs +23 -0
  354. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/commandRole.qwik.mjs +22 -0
  355. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.qwik.cjs +26 -0
  356. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.qwik.mjs +25 -0
  357. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/inputRole.qwik.cjs +30 -0
  358. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/inputRole.qwik.mjs +29 -0
  359. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.qwik.cjs +23 -0
  360. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.qwik.mjs +22 -0
  361. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.qwik.cjs +27 -0
  362. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.qwik.mjs +26 -0
  363. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.qwik.cjs +51 -0
  364. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.qwik.mjs +50 -0
  365. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.qwik.cjs +38 -0
  366. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.qwik.mjs +37 -0
  367. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.qwik.cjs +23 -0
  368. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.qwik.mjs +22 -0
  369. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/selectRole.qwik.cjs +25 -0
  370. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/selectRole.qwik.mjs +24 -0
  371. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/structureRole.qwik.cjs +23 -0
  372. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/structureRole.qwik.mjs +22 -0
  373. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.qwik.cjs +23 -0
  374. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.qwik.mjs +22 -0
  375. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/windowRole.qwik.cjs +25 -0
  376. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/windowRole.qwik.mjs +24 -0
  377. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.qwik.cjs +48 -0
  378. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.qwik.mjs +47 -0
  379. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.qwik.cjs +129 -0
  380. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.qwik.mjs +128 -0
  381. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.qwik.cjs +21 -0
  382. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.qwik.mjs +20 -0
  383. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.qwik.cjs +261 -0
  384. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.qwik.mjs +260 -0
  385. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.qwik.cjs +34 -0
  386. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.qwik.mjs +33 -0
  387. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.qwik.cjs +34 -0
  388. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.qwik.mjs +33 -0
  389. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.qwik.cjs +34 -0
  390. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.qwik.mjs +33 -0
  391. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.qwik.cjs +34 -0
  392. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.qwik.mjs +33 -0
  393. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.qwik.cjs +31 -0
  394. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.qwik.mjs +30 -0
  395. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.qwik.cjs +34 -0
  396. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.qwik.mjs +33 -0
  397. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.qwik.cjs +34 -0
  398. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.qwik.mjs +33 -0
  399. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.qwik.cjs +31 -0
  400. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.qwik.mjs +30 -0
  401. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.qwik.cjs +34 -0
  402. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.qwik.mjs +33 -0
  403. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.qwik.cjs +34 -0
  404. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.qwik.mjs +33 -0
  405. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.qwik.cjs +34 -0
  406. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.qwik.mjs +33 -0
  407. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.qwik.cjs +34 -0
  408. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.qwik.mjs +33 -0
  409. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.qwik.cjs +34 -0
  410. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.qwik.mjs +33 -0
  411. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.qwik.cjs +34 -0
  412. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.qwik.mjs +33 -0
  413. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.qwik.cjs +34 -0
  414. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.qwik.mjs +33 -0
  415. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.qwik.cjs +34 -0
  416. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.qwik.mjs +33 -0
  417. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.qwik.cjs +34 -0
  418. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.qwik.mjs +33 -0
  419. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.qwik.cjs +34 -0
  420. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.qwik.mjs +33 -0
  421. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.qwik.cjs +34 -0
  422. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.qwik.mjs +33 -0
  423. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.qwik.cjs +34 -0
  424. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.qwik.mjs +33 -0
  425. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.qwik.cjs +29 -0
  426. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.qwik.mjs +28 -0
  427. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.qwik.cjs +34 -0
  428. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.qwik.mjs +33 -0
  429. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.qwik.cjs +34 -0
  430. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.qwik.mjs +33 -0
  431. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.qwik.cjs +34 -0
  432. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.qwik.mjs +33 -0
  433. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.qwik.cjs +31 -0
  434. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.qwik.mjs +30 -0
  435. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.qwik.cjs +34 -0
  436. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.qwik.mjs +33 -0
  437. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.qwik.cjs +34 -0
  438. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.qwik.mjs +33 -0
  439. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.qwik.cjs +31 -0
  440. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.qwik.mjs +30 -0
  441. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.qwik.cjs +34 -0
  442. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.qwik.mjs +33 -0
  443. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.qwik.cjs +33 -0
  444. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.qwik.mjs +32 -0
  445. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.qwik.cjs +34 -0
  446. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.qwik.mjs +33 -0
  447. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.qwik.cjs +34 -0
  448. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.qwik.mjs +33 -0
  449. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.qwik.cjs +34 -0
  450. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.qwik.mjs +33 -0
  451. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.qwik.cjs +34 -0
  452. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.qwik.mjs +33 -0
  453. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.qwik.cjs +28 -0
  454. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.qwik.mjs +27 -0
  455. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.qwik.cjs +34 -0
  456. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.qwik.mjs +33 -0
  457. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.qwik.cjs +34 -0
  458. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.qwik.mjs +33 -0
  459. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.qwik.cjs +34 -0
  460. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.qwik.mjs +33 -0
  461. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.qwik.cjs +34 -0
  462. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.qwik.mjs +33 -0
  463. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.qwik.cjs +44 -0
  464. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.qwik.mjs +43 -0
  465. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.qwik.cjs +48 -0
  466. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.qwik.mjs +47 -0
  467. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.qwik.cjs +29 -0
  468. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.qwik.mjs +28 -0
  469. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertRole.qwik.cjs +31 -0
  470. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertRole.qwik.mjs +30 -0
  471. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.qwik.cjs +28 -0
  472. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.qwik.mjs +27 -0
  473. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/applicationRole.qwik.cjs +34 -0
  474. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/applicationRole.qwik.mjs +33 -0
  475. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/articleRole.qwik.cjs +31 -0
  476. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/articleRole.qwik.mjs +30 -0
  477. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/bannerRole.qwik.cjs +29 -0
  478. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/bannerRole.qwik.mjs +28 -0
  479. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.qwik.cjs +28 -0
  480. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.qwik.mjs +27 -0
  481. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/buttonRole.qwik.cjs +74 -0
  482. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/buttonRole.qwik.mjs +73 -0
  483. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/captionRole.qwik.cjs +28 -0
  484. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/captionRole.qwik.mjs +27 -0
  485. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/cellRole.qwik.cjs +34 -0
  486. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/cellRole.qwik.mjs +33 -0
  487. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.qwik.cjs +46 -0
  488. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.qwik.mjs +45 -0
  489. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/codeRole.qwik.cjs +28 -0
  490. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/codeRole.qwik.mjs +27 -0
  491. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.qwik.cjs +48 -0
  492. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.qwik.mjs +47 -0
  493. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.qwik.cjs +125 -0
  494. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.qwik.mjs +124 -0
  495. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.qwik.cjs +48 -0
  496. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.qwik.mjs +47 -0
  497. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.qwik.cjs +29 -0
  498. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.qwik.mjs +28 -0
  499. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/definitionRole.qwik.cjs +28 -0
  500. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/definitionRole.qwik.mjs +27 -0
  501. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/deletionRole.qwik.cjs +28 -0
  502. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/deletionRole.qwik.mjs +27 -0
  503. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/dialogRole.qwik.cjs +28 -0
  504. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/dialogRole.qwik.mjs +27 -0
  505. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/directoryRole.qwik.cjs +25 -0
  506. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/directoryRole.qwik.mjs +24 -0
  507. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/documentRole.qwik.cjs +32 -0
  508. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/documentRole.qwik.mjs +31 -0
  509. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.qwik.cjs +28 -0
  510. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.qwik.mjs +27 -0
  511. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/feedRole.qwik.cjs +23 -0
  512. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/feedRole.qwik.mjs +22 -0
  513. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/figureRole.qwik.cjs +28 -0
  514. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/figureRole.qwik.mjs +27 -0
  515. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/formRole.qwik.cjs +50 -0
  516. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/formRole.qwik.mjs +49 -0
  517. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/genericRole.qwik.cjs +120 -0
  518. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/genericRole.qwik.mjs +119 -0
  519. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridRole.qwik.cjs +26 -0
  520. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridRole.qwik.mjs +25 -0
  521. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.qwik.cjs +38 -0
  522. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.qwik.mjs +37 -0
  523. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/groupRole.qwik.cjs +46 -0
  524. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/groupRole.qwik.mjs +45 -0
  525. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/headingRole.qwik.cjs +57 -0
  526. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/headingRole.qwik.mjs +56 -0
  527. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/imgRole.qwik.cjs +46 -0
  528. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/imgRole.qwik.mjs +45 -0
  529. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/insertionRole.qwik.cjs +28 -0
  530. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/insertionRole.qwik.mjs +27 -0
  531. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/linkRole.qwik.cjs +45 -0
  532. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/linkRole.qwik.mjs +44 -0
  533. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listRole.qwik.cjs +38 -0
  534. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listRole.qwik.mjs +37 -0
  535. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listboxRole.qwik.cjs +64 -0
  536. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listboxRole.qwik.mjs +63 -0
  537. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listitemRole.qwik.cjs +38 -0
  538. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listitemRole.qwik.mjs +37 -0
  539. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/logRole.qwik.cjs +25 -0
  540. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/logRole.qwik.mjs +24 -0
  541. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mainRole.qwik.cjs +28 -0
  542. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mainRole.qwik.mjs +27 -0
  543. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/markRole.qwik.cjs +32 -0
  544. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/markRole.qwik.mjs +31 -0
  545. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.qwik.cjs +23 -0
  546. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.qwik.mjs +22 -0
  547. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mathRole.qwik.cjs +28 -0
  548. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mathRole.qwik.mjs +27 -0
  549. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuRole.qwik.cjs +45 -0
  550. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuRole.qwik.mjs +44 -0
  551. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menubarRole.qwik.cjs +30 -0
  552. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menubarRole.qwik.mjs +29 -0
  553. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.qwik.cjs +44 -0
  554. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.qwik.mjs +43 -0
  555. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.qwik.cjs +30 -0
  556. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.qwik.mjs +29 -0
  557. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.qwik.cjs +30 -0
  558. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.qwik.mjs +29 -0
  559. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/meterRole.qwik.cjs +34 -0
  560. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/meterRole.qwik.mjs +33 -0
  561. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/navigationRole.qwik.cjs +28 -0
  562. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/navigationRole.qwik.mjs +27 -0
  563. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noneRole.qwik.cjs +23 -0
  564. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noneRole.qwik.mjs +22 -0
  565. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noteRole.qwik.cjs +23 -0
  566. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noteRole.qwik.mjs +22 -0
  567. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/optionRole.qwik.cjs +45 -0
  568. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/optionRole.qwik.mjs +44 -0
  569. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.qwik.cjs +28 -0
  570. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.qwik.mjs +27 -0
  571. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/presentationRole.qwik.cjs +32 -0
  572. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/presentationRole.qwik.mjs +31 -0
  573. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.qwik.cjs +35 -0
  574. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.qwik.mjs +34 -0
  575. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radioRole.qwik.cjs +38 -0
  576. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radioRole.qwik.mjs +37 -0
  577. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.qwik.cjs +33 -0
  578. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.qwik.mjs +32 -0
  579. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/regionRole.qwik.cjs +45 -0
  580. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/regionRole.qwik.mjs +44 -0
  581. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowRole.qwik.cjs +36 -0
  582. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowRole.qwik.mjs +35 -0
  583. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.qwik.cjs +38 -0
  584. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.qwik.mjs +37 -0
  585. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.qwik.cjs +43 -0
  586. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.qwik.mjs +42 -0
  587. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.qwik.cjs +32 -0
  588. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.qwik.mjs +31 -0
  589. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchRole.qwik.cjs +23 -0
  590. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchRole.qwik.mjs +22 -0
  591. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.qwik.cjs +36 -0
  592. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.qwik.mjs +35 -0
  593. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/separatorRole.qwik.cjs +35 -0
  594. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/separatorRole.qwik.mjs +34 -0
  595. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/sliderRole.qwik.cjs +43 -0
  596. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/sliderRole.qwik.mjs +42 -0
  597. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.qwik.cjs +39 -0
  598. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.qwik.mjs +38 -0
  599. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/statusRole.qwik.cjs +31 -0
  600. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/statusRole.qwik.mjs +30 -0
  601. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/strongRole.qwik.cjs +28 -0
  602. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/strongRole.qwik.mjs +27 -0
  603. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.qwik.cjs +28 -0
  604. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.qwik.mjs +27 -0
  605. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.qwik.cjs +28 -0
  606. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.qwik.mjs +27 -0
  607. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/switchRole.qwik.cjs +30 -0
  608. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/switchRole.qwik.mjs +29 -0
  609. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabRole.qwik.cjs +30 -0
  610. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabRole.qwik.mjs +29 -0
  611. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tableRole.qwik.cjs +31 -0
  612. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tableRole.qwik.mjs +30 -0
  613. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tablistRole.qwik.cjs +32 -0
  614. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tablistRole.qwik.mjs +31 -0
  615. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.qwik.cjs +23 -0
  616. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.qwik.mjs +22 -0
  617. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/termRole.qwik.cjs +33 -0
  618. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/termRole.qwik.mjs +32 -0
  619. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/textboxRole.qwik.cjs +108 -0
  620. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/textboxRole.qwik.mjs +107 -0
  621. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timeRole.qwik.cjs +28 -0
  622. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timeRole.qwik.mjs +27 -0
  623. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timerRole.qwik.cjs +23 -0
  624. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timerRole.qwik.mjs +22 -0
  625. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.qwik.cjs +30 -0
  626. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.qwik.mjs +29 -0
  627. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.qwik.cjs +23 -0
  628. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.qwik.mjs +22 -0
  629. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeRole.qwik.cjs +29 -0
  630. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeRole.qwik.mjs +28 -0
  631. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treegridRole.qwik.cjs +23 -0
  632. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treegridRole.qwik.mjs +22 -0
  633. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.qwik.cjs +28 -0
  634. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.qwik.mjs +27 -0
  635. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/index.qwik.cjs +36 -0
  636. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/index.qwik.mjs +39 -0
  637. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/roleElementMap.qwik.cjs +162 -0
  638. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/roleElementMap.qwik.mjs +161 -0
  639. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/rolesMap.qwik.cjs +200 -0
  640. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/rolesMap.qwik.mjs +199 -0
  641. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iterationDecorator.qwik.cjs +28 -0
  642. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iterationDecorator.qwik.mjs +27 -0
  643. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iteratorProxy.qwik.cjs +32 -0
  644. package/lib/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iteratorProxy.qwik.mjs +31 -0
  645. package/lib/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/lite/index.qwik.cjs +28 -0
  646. package/lib/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/lite/index.qwik.mjs +29 -0
  647. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.qwik.cjs +70 -0
  648. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.qwik.mjs +70 -0
  649. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name-and-description.qwik.cjs +374 -0
  650. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name-and-description.qwik.mjs +374 -0
  651. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.qwik.cjs +15 -0
  652. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.qwik.mjs +15 -0
  653. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/getRole.qwik.cjs +185 -0
  654. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/getRole.qwik.mjs +185 -0
  655. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/SetLike.qwik.cjs +103 -0
  656. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/SetLike.qwik.mjs +104 -0
  657. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/array.from.qwik.cjs +41 -0
  658. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/array.from.qwik.mjs +42 -0
  659. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/util.qwik.cjs +87 -0
  660. package/lib/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/util.qwik.mjs +87 -0
  661. package/lib/node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.qwik.cjs +453 -0
  662. package/lib/node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.qwik.mjs +454 -0
  663. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/collections.qwik.cjs +114 -0
  664. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/collections.qwik.mjs +115 -0
  665. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.qwik.cjs +388 -0
  666. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.qwik.mjs +391 -0
  667. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/AsymmetricMatcher.qwik.cjs +70 -0
  668. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/AsymmetricMatcher.qwik.mjs +69 -0
  669. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ConvertAnsi.qwik.cjs +68 -0
  670. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ConvertAnsi.qwik.mjs +67 -0
  671. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMCollection.qwik.cjs +47 -0
  672. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMCollection.qwik.mjs +46 -0
  673. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMElement.qwik.cjs +85 -0
  674. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMElement.qwik.mjs +84 -0
  675. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/Immutable.qwik.cjs +154 -0
  676. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/Immutable.qwik.mjs +153 -0
  677. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactElement.qwik.cjs +128 -0
  678. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactElement.qwik.mjs +127 -0
  679. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactTestComponent.qwik.cjs +59 -0
  680. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactTestComponent.qwik.mjs +58 -0
  681. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/escapeHTML.qwik.cjs +9 -0
  682. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/escapeHTML.qwik.mjs +8 -0
  683. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/markup.qwik.cjs +53 -0
  684. package/lib/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/markup.qwik.mjs +54 -0
  685. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.development.qwik.cjs +199 -0
  686. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.development.qwik.mjs +199 -0
  687. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.production.min.qwik.cjs +123 -0
  688. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.production.min.qwik.mjs +123 -0
  689. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.qwik.cjs +12 -0
  690. package/lib/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.qwik.mjs +12 -0
  691. package/lib-types/index.d.ts +1 -0
  692. package/lib-types/lib/qwik-testing-library.d.ts +6 -0
  693. package/lib-types/lib/qwikloader.d.ts +1 -0
  694. package/lib-types/lib/types.d.ts +21 -0
  695. package/package.json +48 -0
@@ -0,0 +1,2600 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const index = require("../../../../../../pretty-format@27.5.1/node_modules/pretty-format/build/index.qwik.cjs");
4
+ const accessibleDescription = require("../../../../../../dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.qwik.cjs");
5
+ const accessibleName = require("../../../../../../dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.qwik.cjs");
6
+ const index$1 = require("../../../../../../aria-query@5.3.0/node_modules/aria-query/lib/index.qwik.cjs");
7
+ const lzString = require("../../../../../../lz-string@1.5.0/node_modules/lz-string/libs/lz-string.qwik.cjs");
8
+ function escapeHTML(str) {
9
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
10
+ }
11
+ const printProps = (keys, props, config2, indentation, depth, refs, printer) => {
12
+ const indentationNext = indentation + config2.indent;
13
+ const colors = config2.colors;
14
+ return keys.map((key) => {
15
+ const value = props[key];
16
+ let printed = printer(value, config2, indentationNext, depth, refs);
17
+ if (typeof value !== "string") {
18
+ if (printed.indexOf("\n") !== -1) {
19
+ printed = config2.spacingOuter + indentationNext + printed + config2.spacingOuter + indentation;
20
+ }
21
+ printed = "{" + printed + "}";
22
+ }
23
+ return config2.spacingInner + indentation + colors.prop.open + key + colors.prop.close + "=" + colors.value.open + printed + colors.value.close;
24
+ }).join("");
25
+ };
26
+ const NodeTypeTextNode = 3;
27
+ const printChildren = (children, config2, indentation, depth, refs, printer) => children.map((child) => {
28
+ const printedChild = typeof child === "string" ? printText(child, config2) : printer(child, config2, indentation, depth, refs);
29
+ if (printedChild === "" && typeof child === "object" && child !== null && child.nodeType !== NodeTypeTextNode) {
30
+ return "";
31
+ }
32
+ return config2.spacingOuter + indentation + printedChild;
33
+ }).join("");
34
+ const printText = (text, config2) => {
35
+ const contentColor = config2.colors.content;
36
+ return contentColor.open + escapeHTML(text) + contentColor.close;
37
+ };
38
+ const printComment = (comment, config2) => {
39
+ const commentColor = config2.colors.comment;
40
+ return commentColor.open + "<!--" + escapeHTML(comment) + "-->" + commentColor.close;
41
+ };
42
+ const printElement = (type, printedProps, printedChildren, config2, indentation) => {
43
+ const tagColor = config2.colors.tag;
44
+ return tagColor.open + "<" + type + (printedProps && tagColor.close + printedProps + config2.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config2.spacingOuter + indentation + tagColor.open + "</" + type : (printedProps && !config2.min ? "" : " ") + "/") + ">" + tagColor.close;
45
+ };
46
+ const printElementAsLeaf = (type, config2) => {
47
+ const tagColor = config2.colors.tag;
48
+ return tagColor.open + "<" + type + tagColor.close + " …" + tagColor.open + " />" + tagColor.close;
49
+ };
50
+ const ELEMENT_NODE$1 = 1;
51
+ const TEXT_NODE$1 = 3;
52
+ const COMMENT_NODE$1 = 8;
53
+ const FRAGMENT_NODE = 11;
54
+ const ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
55
+ const isCustomElement = (val) => {
56
+ const {
57
+ tagName
58
+ } = val;
59
+ return Boolean(typeof tagName === "string" && tagName.includes("-") || typeof val.hasAttribute === "function" && val.hasAttribute("is"));
60
+ };
61
+ const testNode = (val) => {
62
+ const constructorName = val.constructor.name;
63
+ const {
64
+ nodeType
65
+ } = val;
66
+ 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";
67
+ };
68
+ function nodeIsText(node) {
69
+ return node.nodeType === TEXT_NODE$1;
70
+ }
71
+ function nodeIsComment(node) {
72
+ return node.nodeType === COMMENT_NODE$1;
73
+ }
74
+ function nodeIsFragment(node) {
75
+ return node.nodeType === FRAGMENT_NODE;
76
+ }
77
+ function createDOMElementFilter(filterNode) {
78
+ return {
79
+ test: (val) => {
80
+ var _val$constructor2;
81
+ return ((val == null || (_val$constructor2 = val.constructor) == null ? void 0 : _val$constructor2.name) || isCustomElement(val)) && testNode(val);
82
+ },
83
+ serialize: (node, config2, indentation, depth, refs, printer) => {
84
+ if (nodeIsText(node)) {
85
+ return printText(node.data, config2);
86
+ }
87
+ if (nodeIsComment(node)) {
88
+ return printComment(node.data, config2);
89
+ }
90
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
91
+ if (++depth > config2.maxDepth) {
92
+ return printElementAsLeaf(type, config2);
93
+ }
94
+ return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
95
+ props[attribute.name] = attribute.value;
96
+ return props;
97
+ }, {}), config2, indentation + config2.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children).filter(filterNode), config2, indentation + config2.indent, depth, refs, printer), config2, indentation);
98
+ }
99
+ };
100
+ }
101
+ let chalk = null;
102
+ let readFileSync = null;
103
+ let codeFrameColumns = null;
104
+ try {
105
+ const nodeRequire = module && module.require;
106
+ readFileSync = nodeRequire.call(module, "fs").readFileSync;
107
+ codeFrameColumns = nodeRequire.call(module, "@babel/code-frame").codeFrameColumns;
108
+ chalk = nodeRequire.call(module, "chalk");
109
+ } catch {
110
+ }
111
+ function getCodeFrame(frame) {
112
+ const locationStart = frame.indexOf("(") + 1;
113
+ const locationEnd = frame.indexOf(")");
114
+ const frameLocation = frame.slice(locationStart, locationEnd);
115
+ const frameLocationElements = frameLocation.split(":");
116
+ const [filename, line, column] = [frameLocationElements[0], parseInt(frameLocationElements[1], 10), parseInt(frameLocationElements[2], 10)];
117
+ let rawFileContents = "";
118
+ try {
119
+ rawFileContents = readFileSync(filename, "utf-8");
120
+ } catch {
121
+ return "";
122
+ }
123
+ const codeFrame = codeFrameColumns(rawFileContents, {
124
+ start: {
125
+ line,
126
+ column
127
+ }
128
+ }, {
129
+ highlightCode: true,
130
+ linesBelow: 0
131
+ });
132
+ return chalk.dim(frameLocation) + "\n" + codeFrame + "\n";
133
+ }
134
+ function getUserCodeFrame() {
135
+ if (!readFileSync || !codeFrameColumns) {
136
+ return "";
137
+ }
138
+ const err = new Error();
139
+ const firstClientCodeFrame = err.stack.split("\n").slice(1).find((frame) => !frame.includes("node_modules/"));
140
+ return getCodeFrame(firstClientCodeFrame);
141
+ }
142
+ const TEXT_NODE = 3;
143
+ function jestFakeTimersAreEnabled() {
144
+ if (typeof jest !== "undefined" && jest !== null) {
145
+ return (
146
+ // legacy timers
147
+ setTimeout._isMockFunction === true || // modern timers
148
+ // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
149
+ Object.prototype.hasOwnProperty.call(setTimeout, "clock")
150
+ );
151
+ }
152
+ return false;
153
+ }
154
+ function getDocument() {
155
+ if (typeof window === "undefined") {
156
+ throw new Error("Could not find default container");
157
+ }
158
+ return window.document;
159
+ }
160
+ function getWindowFromNode(node) {
161
+ if (node.defaultView) {
162
+ return node.defaultView;
163
+ } else if (node.ownerDocument && node.ownerDocument.defaultView) {
164
+ return node.ownerDocument.defaultView;
165
+ } else if (node.window) {
166
+ return node.window;
167
+ } else if (node.ownerDocument && node.ownerDocument.defaultView === null) {
168
+ throw new Error("It looks like the window object is not available for the provided node.");
169
+ } else if (node.then instanceof Function) {
170
+ 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...`?");
171
+ } else if (Array.isArray(node)) {
172
+ 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...`?");
173
+ } else if (typeof node.debug === "function" && typeof node.logTestingPlaygroundURL === "function") {
174
+ 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..., `?");
175
+ } else {
176
+ throw new Error("The given node is not an Element, the node type is: " + typeof node + ".");
177
+ }
178
+ }
179
+ function checkContainerType(container) {
180
+ if (!container || !(typeof container.querySelector === "function") || !(typeof container.querySelectorAll === "function")) {
181
+ throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
182
+ }
183
+ function getTypeName(object) {
184
+ if (typeof object === "object") {
185
+ return object === null ? "null" : object.constructor.name;
186
+ }
187
+ return typeof object;
188
+ }
189
+ }
190
+ const shouldHighlight = () => {
191
+ if (typeof process === "undefined") {
192
+ return false;
193
+ }
194
+ let colors;
195
+ try {
196
+ var _process$env;
197
+ const colorsJSON = (_process$env = process.env) == null ? void 0 : _process$env.COLORS;
198
+ if (colorsJSON) {
199
+ colors = JSON.parse(colorsJSON);
200
+ }
201
+ } catch {
202
+ }
203
+ if (typeof colors === "boolean") {
204
+ return colors;
205
+ } else {
206
+ return process.versions !== void 0 && process.versions.node !== void 0;
207
+ }
208
+ };
209
+ const {
210
+ DOMCollection
211
+ } = index.plugins;
212
+ const ELEMENT_NODE = 1;
213
+ const COMMENT_NODE = 8;
214
+ function filterCommentsAndDefaultIgnoreTagsTags(value) {
215
+ return value.nodeType !== COMMENT_NODE && (value.nodeType !== ELEMENT_NODE || !value.matches(getConfig().defaultIgnore));
216
+ }
217
+ function prettyDOM(dom, maxLength, options) {
218
+ if (options === void 0) {
219
+ options = {};
220
+ }
221
+ if (!dom) {
222
+ dom = getDocument().body;
223
+ }
224
+ if (typeof maxLength !== "number") {
225
+ maxLength = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.DEBUG_PRINT_LIMIT || 7e3;
226
+ }
227
+ if (maxLength === 0) {
228
+ return "";
229
+ }
230
+ if (dom.documentElement) {
231
+ dom = dom.documentElement;
232
+ }
233
+ let domTypeName = typeof dom;
234
+ if (domTypeName === "object") {
235
+ domTypeName = dom.constructor.name;
236
+ } else {
237
+ dom = {};
238
+ }
239
+ if (!("outerHTML" in dom)) {
240
+ throw new TypeError("Expected an element or document but got " + domTypeName);
241
+ }
242
+ const {
243
+ filterNode = filterCommentsAndDefaultIgnoreTagsTags,
244
+ ...prettyFormatOptions
245
+ } = options;
246
+ const debugContent = index.format(dom, {
247
+ plugins: [createDOMElementFilter(filterNode), DOMCollection],
248
+ printFunctionName: false,
249
+ highlight: shouldHighlight(),
250
+ ...prettyFormatOptions
251
+ });
252
+ return maxLength !== void 0 && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent;
253
+ }
254
+ const logDOM = function() {
255
+ const userCodeFrame = getUserCodeFrame();
256
+ if (userCodeFrame) {
257
+ console.log(prettyDOM(...arguments) + "\n\n" + userCodeFrame);
258
+ } else {
259
+ console.log(prettyDOM(...arguments));
260
+ }
261
+ };
262
+ let config = {
263
+ testIdAttribute: "data-testid",
264
+ asyncUtilTimeout: 1e3,
265
+ // asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
266
+ // forcing react-testing-library to wrap all async functions would've been
267
+ // a total nightmare (consider wrapping every findBy* query and then also
268
+ // updating `within` so those would be wrapped too. Total nightmare).
269
+ // so we have this config option that's really only intended for
270
+ // react-testing-library to use. For that reason, this feature will remain
271
+ // undocumented.
272
+ asyncWrapper: (cb) => cb(),
273
+ unstable_advanceTimersWrapper: (cb) => cb(),
274
+ eventWrapper: (cb) => cb(),
275
+ // default value for the `hidden` option in `ByRole` queries
276
+ defaultHidden: false,
277
+ // default value for the `ignore` option in `ByText` queries
278
+ defaultIgnore: "script, style",
279
+ // showOriginalStackTrace flag to show the full error stack traces for async errors
280
+ showOriginalStackTrace: false,
281
+ // throw errors w/ suggestions for better queries. Opt in so off by default.
282
+ throwSuggestions: false,
283
+ // called when getBy* queries fail. (message, container) => Error
284
+ getElementError(message, container) {
285
+ const prettifiedDOM = prettyDOM(container);
286
+ const error = new Error([message, "Ignored nodes: comments, " + config.defaultIgnore + "\n" + prettifiedDOM].filter(Boolean).join("\n\n"));
287
+ error.name = "TestingLibraryElementError";
288
+ return error;
289
+ },
290
+ _disableExpensiveErrorDiagnostics: false,
291
+ computedStyleSupportsPseudoElements: false
292
+ };
293
+ function runWithExpensiveErrorDiagnosticsDisabled(callback) {
294
+ try {
295
+ config._disableExpensiveErrorDiagnostics = true;
296
+ return callback();
297
+ } finally {
298
+ config._disableExpensiveErrorDiagnostics = false;
299
+ }
300
+ }
301
+ function configure(newConfig) {
302
+ if (typeof newConfig === "function") {
303
+ newConfig = newConfig(config);
304
+ }
305
+ config = {
306
+ ...config,
307
+ ...newConfig
308
+ };
309
+ }
310
+ function getConfig() {
311
+ return config;
312
+ }
313
+ const labelledNodeNames = ["button", "meter", "output", "progress", "select", "textarea", "input"];
314
+ function getTextContent(node) {
315
+ if (labelledNodeNames.includes(node.nodeName.toLowerCase())) {
316
+ return "";
317
+ }
318
+ if (node.nodeType === TEXT_NODE) return node.textContent;
319
+ return Array.from(node.childNodes).map((childNode) => getTextContent(childNode)).join("");
320
+ }
321
+ function getLabelContent(element) {
322
+ let textContent;
323
+ if (element.tagName.toLowerCase() === "label") {
324
+ textContent = getTextContent(element);
325
+ } else {
326
+ textContent = element.value || element.textContent;
327
+ }
328
+ return textContent;
329
+ }
330
+ function getRealLabels(element) {
331
+ if (element.labels !== void 0) {
332
+ var _labels;
333
+ return (_labels = element.labels) != null ? _labels : [];
334
+ }
335
+ if (!isLabelable(element)) return [];
336
+ const labels = element.ownerDocument.querySelectorAll("label");
337
+ return Array.from(labels).filter((label) => label.control === element);
338
+ }
339
+ function isLabelable(element) {
340
+ return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === "INPUT" && element.getAttribute("type") !== "hidden";
341
+ }
342
+ function getLabels(container, element, _temp) {
343
+ let {
344
+ selector = "*"
345
+ } = _temp === void 0 ? {} : _temp;
346
+ const ariaLabelledBy = element.getAttribute("aria-labelledby");
347
+ const labelsId = ariaLabelledBy ? ariaLabelledBy.split(" ") : [];
348
+ return labelsId.length ? labelsId.map((labelId) => {
349
+ const labellingElement = container.querySelector('[id="' + labelId + '"]');
350
+ return labellingElement ? {
351
+ content: getLabelContent(labellingElement),
352
+ formControl: null
353
+ } : {
354
+ content: "",
355
+ formControl: null
356
+ };
357
+ }) : Array.from(getRealLabels(element)).map((label) => {
358
+ const textToMatch = getLabelContent(label);
359
+ const formControlSelector = "button, input, meter, output, progress, select, textarea";
360
+ const labelledFormControl = Array.from(label.querySelectorAll(formControlSelector)).filter((formControlElement) => formControlElement.matches(selector))[0];
361
+ return {
362
+ content: textToMatch,
363
+ formControl: labelledFormControl
364
+ };
365
+ });
366
+ }
367
+ function assertNotNullOrUndefined(matcher) {
368
+ if (matcher === null || matcher === void 0) {
369
+ throw new Error(
370
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
371
+ "It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?"
372
+ );
373
+ }
374
+ }
375
+ function fuzzyMatches(textToMatch, node, matcher, normalizer) {
376
+ if (typeof textToMatch !== "string") {
377
+ return false;
378
+ }
379
+ assertNotNullOrUndefined(matcher);
380
+ const normalizedText = normalizer(textToMatch);
381
+ if (typeof matcher === "string" || typeof matcher === "number") {
382
+ return normalizedText.toLowerCase().includes(matcher.toString().toLowerCase());
383
+ } else if (typeof matcher === "function") {
384
+ return matcher(normalizedText, node);
385
+ } else {
386
+ return matchRegExp(matcher, normalizedText);
387
+ }
388
+ }
389
+ function matches(textToMatch, node, matcher, normalizer) {
390
+ if (typeof textToMatch !== "string") {
391
+ return false;
392
+ }
393
+ assertNotNullOrUndefined(matcher);
394
+ const normalizedText = normalizer(textToMatch);
395
+ if (matcher instanceof Function) {
396
+ return matcher(normalizedText, node);
397
+ } else if (matcher instanceof RegExp) {
398
+ return matchRegExp(matcher, normalizedText);
399
+ } else {
400
+ return normalizedText === String(matcher);
401
+ }
402
+ }
403
+ function getDefaultNormalizer(_temp) {
404
+ let {
405
+ trim = true,
406
+ collapseWhitespace = true
407
+ } = _temp === void 0 ? {} : _temp;
408
+ return (text) => {
409
+ let normalizedText = text;
410
+ normalizedText = trim ? normalizedText.trim() : normalizedText;
411
+ normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, " ") : normalizedText;
412
+ return normalizedText;
413
+ };
414
+ }
415
+ function makeNormalizer(_ref) {
416
+ let {
417
+ trim,
418
+ collapseWhitespace,
419
+ normalizer
420
+ } = _ref;
421
+ if (!normalizer) {
422
+ return getDefaultNormalizer({
423
+ trim,
424
+ collapseWhitespace
425
+ });
426
+ }
427
+ if (typeof trim !== "undefined" || typeof collapseWhitespace !== "undefined") {
428
+ 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');
429
+ }
430
+ return normalizer;
431
+ }
432
+ function matchRegExp(matcher, text) {
433
+ const match = matcher.test(text);
434
+ if (matcher.global && matcher.lastIndex !== 0) {
435
+ 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.");
436
+ matcher.lastIndex = 0;
437
+ }
438
+ return match;
439
+ }
440
+ function getNodeText(node) {
441
+ if (node.matches("input[type=submit], input[type=button], input[type=reset]")) {
442
+ return node.value;
443
+ }
444
+ return Array.from(node.childNodes).filter((child) => child.nodeType === TEXT_NODE && Boolean(child.textContent)).map((c) => c.textContent).join("");
445
+ }
446
+ const elementRoleList = buildElementRoleList(index$1.elementRoles);
447
+ function isSubtreeInaccessible(element) {
448
+ if (element.hidden === true) {
449
+ return true;
450
+ }
451
+ if (element.getAttribute("aria-hidden") === "true") {
452
+ return true;
453
+ }
454
+ const window2 = element.ownerDocument.defaultView;
455
+ if (window2.getComputedStyle(element).display === "none") {
456
+ return true;
457
+ }
458
+ return false;
459
+ }
460
+ function isInaccessible(element, options) {
461
+ if (options === void 0) {
462
+ options = {};
463
+ }
464
+ const {
465
+ isSubtreeInaccessible: isSubtreeInaccessibleImpl = isSubtreeInaccessible
466
+ } = options;
467
+ const window2 = element.ownerDocument.defaultView;
468
+ if (window2.getComputedStyle(element).visibility === "hidden") {
469
+ return true;
470
+ }
471
+ let currentElement = element;
472
+ while (currentElement) {
473
+ if (isSubtreeInaccessibleImpl(currentElement)) {
474
+ return true;
475
+ }
476
+ currentElement = currentElement.parentElement;
477
+ }
478
+ return false;
479
+ }
480
+ function getImplicitAriaRoles(currentNode) {
481
+ for (const {
482
+ match,
483
+ roles
484
+ } of elementRoleList) {
485
+ if (match(currentNode)) {
486
+ return [...roles];
487
+ }
488
+ }
489
+ return [];
490
+ }
491
+ function buildElementRoleList(elementRolesMap) {
492
+ function makeElementSelector(_ref) {
493
+ let {
494
+ name,
495
+ attributes
496
+ } = _ref;
497
+ return "" + name + attributes.map((_ref2) => {
498
+ let {
499
+ name: attributeName,
500
+ value,
501
+ constraints = []
502
+ } = _ref2;
503
+ const shouldNotExist = constraints.indexOf("undefined") !== -1;
504
+ const shouldBeNonEmpty = constraints.indexOf("set") !== -1;
505
+ const hasExplicitValue = typeof value !== "undefined";
506
+ if (hasExplicitValue) {
507
+ return "[" + attributeName + '="' + value + '"]';
508
+ } else if (shouldNotExist) {
509
+ return ":not([" + attributeName + "])";
510
+ } else if (shouldBeNonEmpty) {
511
+ return "[" + attributeName + "]:not([" + attributeName + '=""])';
512
+ }
513
+ return "[" + attributeName + "]";
514
+ }).join("");
515
+ }
516
+ function getSelectorSpecificity(_ref3) {
517
+ let {
518
+ attributes = []
519
+ } = _ref3;
520
+ return attributes.length;
521
+ }
522
+ function bySelectorSpecificity(_ref4, _ref5) {
523
+ let {
524
+ specificity: leftSpecificity
525
+ } = _ref4;
526
+ let {
527
+ specificity: rightSpecificity
528
+ } = _ref5;
529
+ return rightSpecificity - leftSpecificity;
530
+ }
531
+ function match(element) {
532
+ let {
533
+ attributes = []
534
+ } = element;
535
+ const typeTextIndex = attributes.findIndex((attribute) => attribute.value && attribute.name === "type" && attribute.value === "text");
536
+ if (typeTextIndex >= 0) {
537
+ attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)];
538
+ }
539
+ const selector = makeElementSelector({
540
+ ...element,
541
+ attributes
542
+ });
543
+ return (node) => {
544
+ if (typeTextIndex >= 0 && node.type !== "text") {
545
+ return false;
546
+ }
547
+ return node.matches(selector);
548
+ };
549
+ }
550
+ let result = [];
551
+ for (const [element, roles] of elementRolesMap.entries()) {
552
+ result = [...result, {
553
+ match: match(element),
554
+ roles: Array.from(roles),
555
+ specificity: getSelectorSpecificity(element)
556
+ }];
557
+ }
558
+ return result.sort(bySelectorSpecificity);
559
+ }
560
+ function getRoles(container, _temp) {
561
+ let {
562
+ hidden = false
563
+ } = _temp === void 0 ? {} : _temp;
564
+ function flattenDOM(node) {
565
+ return [node, ...Array.from(node.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])];
566
+ }
567
+ return flattenDOM(container).filter((element) => {
568
+ return hidden === false ? isInaccessible(element) === false : true;
569
+ }).reduce((acc, node) => {
570
+ let roles = [];
571
+ if (node.hasAttribute("role")) {
572
+ roles = node.getAttribute("role").split(" ").slice(0, 1);
573
+ } else {
574
+ roles = getImplicitAriaRoles(node);
575
+ }
576
+ return roles.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? {
577
+ ...rolesAcc,
578
+ [role]: [...rolesAcc[role], node]
579
+ } : {
580
+ ...rolesAcc,
581
+ [role]: [node]
582
+ }, acc);
583
+ }, {});
584
+ }
585
+ function prettyRoles(dom, _ref6) {
586
+ let {
587
+ hidden,
588
+ includeDescription
589
+ } = _ref6;
590
+ const roles = getRoles(dom, {
591
+ hidden
592
+ });
593
+ return Object.entries(roles).filter((_ref7) => {
594
+ let [role] = _ref7;
595
+ return role !== "generic";
596
+ }).map((_ref8) => {
597
+ let [role, elements] = _ref8;
598
+ const delimiterBar = "-".repeat(50);
599
+ const elementsString = elements.map((el) => {
600
+ const nameString = 'Name "' + accessibleName.computeAccessibleName(el, {
601
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
602
+ }) + '":\n';
603
+ const domString = prettyDOM(el.cloneNode(false));
604
+ if (includeDescription) {
605
+ const descriptionString = 'Description "' + accessibleDescription.computeAccessibleDescription(el, {
606
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
607
+ }) + '":\n';
608
+ return "" + nameString + descriptionString + domString;
609
+ }
610
+ return "" + nameString + domString;
611
+ }).join("\n\n");
612
+ return role + ":\n\n" + elementsString + "\n\n" + delimiterBar;
613
+ }).join("\n");
614
+ }
615
+ const logRoles = function(dom, _temp2) {
616
+ let {
617
+ hidden = false
618
+ } = _temp2 === void 0 ? {} : _temp2;
619
+ return console.log(prettyRoles(dom, {
620
+ hidden
621
+ }));
622
+ };
623
+ function computeAriaSelected(element) {
624
+ if (element.tagName === "OPTION") {
625
+ return element.selected;
626
+ }
627
+ return checkBooleanAttribute(element, "aria-selected");
628
+ }
629
+ function computeAriaBusy(element) {
630
+ return element.getAttribute("aria-busy") === "true";
631
+ }
632
+ function computeAriaChecked(element) {
633
+ if ("indeterminate" in element && element.indeterminate) {
634
+ return void 0;
635
+ }
636
+ if ("checked" in element) {
637
+ return element.checked;
638
+ }
639
+ return checkBooleanAttribute(element, "aria-checked");
640
+ }
641
+ function computeAriaPressed(element) {
642
+ return checkBooleanAttribute(element, "aria-pressed");
643
+ }
644
+ function computeAriaCurrent(element) {
645
+ var _ref9, _checkBooleanAttribut;
646
+ return (_ref9 = (_checkBooleanAttribut = checkBooleanAttribute(element, "aria-current")) != null ? _checkBooleanAttribut : element.getAttribute("aria-current")) != null ? _ref9 : false;
647
+ }
648
+ function computeAriaExpanded(element) {
649
+ return checkBooleanAttribute(element, "aria-expanded");
650
+ }
651
+ function checkBooleanAttribute(element, attribute) {
652
+ const attributeValue = element.getAttribute(attribute);
653
+ if (attributeValue === "true") {
654
+ return true;
655
+ }
656
+ if (attributeValue === "false") {
657
+ return false;
658
+ }
659
+ return void 0;
660
+ }
661
+ function computeHeadingLevel(element) {
662
+ const implicitHeadingLevels = {
663
+ H1: 1,
664
+ H2: 2,
665
+ H3: 3,
666
+ H4: 4,
667
+ H5: 5,
668
+ H6: 6
669
+ };
670
+ const ariaLevelAttribute = element.getAttribute("aria-level") && Number(element.getAttribute("aria-level"));
671
+ return ariaLevelAttribute || implicitHeadingLevels[element.tagName];
672
+ }
673
+ function computeAriaValueNow(element) {
674
+ const valueNow = element.getAttribute("aria-valuenow");
675
+ return valueNow === null ? void 0 : +valueNow;
676
+ }
677
+ function computeAriaValueMax(element) {
678
+ const valueMax = element.getAttribute("aria-valuemax");
679
+ return valueMax === null ? void 0 : +valueMax;
680
+ }
681
+ function computeAriaValueMin(element) {
682
+ const valueMin = element.getAttribute("aria-valuemin");
683
+ return valueMin === null ? void 0 : +valueMin;
684
+ }
685
+ function computeAriaValueText(element) {
686
+ const valueText = element.getAttribute("aria-valuetext");
687
+ return valueText === null ? void 0 : valueText;
688
+ }
689
+ const normalize = getDefaultNormalizer();
690
+ function escapeRegExp(string) {
691
+ return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
692
+ }
693
+ function getRegExpMatcher(string) {
694
+ return new RegExp(escapeRegExp(string.toLowerCase()), "i");
695
+ }
696
+ function makeSuggestion(queryName, element, content, _ref) {
697
+ let {
698
+ variant,
699
+ name
700
+ } = _ref;
701
+ let warning = "";
702
+ const queryOptions = {};
703
+ const queryArgs = [["Role", "TestId"].includes(queryName) ? content : getRegExpMatcher(content)];
704
+ if (name) {
705
+ queryOptions.name = getRegExpMatcher(name);
706
+ }
707
+ if (queryName === "Role" && isInaccessible(element)) {
708
+ queryOptions.hidden = true;
709
+ 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 ";
710
+ }
711
+ if (Object.keys(queryOptions).length > 0) {
712
+ queryArgs.push(queryOptions);
713
+ }
714
+ const queryMethod = variant + "By" + queryName;
715
+ return {
716
+ queryName,
717
+ queryMethod,
718
+ queryArgs,
719
+ variant,
720
+ warning,
721
+ toString() {
722
+ if (warning) {
723
+ console.warn(warning);
724
+ }
725
+ let [text, options] = queryArgs;
726
+ text = typeof text === "string" ? "'" + text + "'" : text;
727
+ options = options ? ", { " + Object.entries(options).map((_ref2) => {
728
+ let [k, v] = _ref2;
729
+ return k + ": " + v;
730
+ }).join(", ") + " }" : "";
731
+ return queryMethod + "(" + text + options + ")";
732
+ }
733
+ };
734
+ }
735
+ function canSuggest(currentMethod, requestedMethod, data) {
736
+ return data && (!requestedMethod || requestedMethod.toLowerCase() === currentMethod.toLowerCase());
737
+ }
738
+ function getSuggestedQuery(element, variant, method) {
739
+ var _element$getAttribute, _getImplicitAriaRoles;
740
+ if (variant === void 0) {
741
+ variant = "get";
742
+ }
743
+ if (element.matches(getConfig().defaultIgnore)) {
744
+ return void 0;
745
+ }
746
+ const role = (_element$getAttribute = element.getAttribute("role")) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles(element)) == null ? void 0 : _getImplicitAriaRoles[0];
747
+ if (role !== "generic" && canSuggest("Role", method, role)) {
748
+ return makeSuggestion("Role", element, role, {
749
+ variant,
750
+ name: accessibleName.computeAccessibleName(element, {
751
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
752
+ })
753
+ });
754
+ }
755
+ const labelText = getLabels(document, element).map((label) => label.content).join(" ");
756
+ if (canSuggest("LabelText", method, labelText)) {
757
+ return makeSuggestion("LabelText", element, labelText, {
758
+ variant
759
+ });
760
+ }
761
+ const placeholderText = element.getAttribute("placeholder");
762
+ if (canSuggest("PlaceholderText", method, placeholderText)) {
763
+ return makeSuggestion("PlaceholderText", element, placeholderText, {
764
+ variant
765
+ });
766
+ }
767
+ const textContent = normalize(getNodeText(element));
768
+ if (canSuggest("Text", method, textContent)) {
769
+ return makeSuggestion("Text", element, textContent, {
770
+ variant
771
+ });
772
+ }
773
+ if (canSuggest("DisplayValue", method, element.value)) {
774
+ return makeSuggestion("DisplayValue", element, normalize(element.value), {
775
+ variant
776
+ });
777
+ }
778
+ const alt = element.getAttribute("alt");
779
+ if (canSuggest("AltText", method, alt)) {
780
+ return makeSuggestion("AltText", element, alt, {
781
+ variant
782
+ });
783
+ }
784
+ const title = element.getAttribute("title");
785
+ if (canSuggest("Title", method, title)) {
786
+ return makeSuggestion("Title", element, title, {
787
+ variant
788
+ });
789
+ }
790
+ const testId = element.getAttribute(getConfig().testIdAttribute);
791
+ if (canSuggest("TestId", method, testId)) {
792
+ return makeSuggestion("TestId", element, testId, {
793
+ variant
794
+ });
795
+ }
796
+ return void 0;
797
+ }
798
+ function copyStackTrace(target, source) {
799
+ target.stack = source.stack.replace(source.message, target.message);
800
+ }
801
+ function waitFor(callback, _ref) {
802
+ let {
803
+ container = getDocument(),
804
+ timeout = getConfig().asyncUtilTimeout,
805
+ showOriginalStackTrace = getConfig().showOriginalStackTrace,
806
+ stackTraceError,
807
+ interval = 50,
808
+ onTimeout = (error) => {
809
+ Object.defineProperty(error, "message", {
810
+ value: getConfig().getElementError(error.message, container).message
811
+ });
812
+ return error;
813
+ },
814
+ mutationObserverOptions = {
815
+ subtree: true,
816
+ childList: true,
817
+ attributes: true,
818
+ characterData: true
819
+ }
820
+ } = _ref;
821
+ if (typeof callback !== "function") {
822
+ throw new TypeError("Received `callback` arg must be a function");
823
+ }
824
+ return new Promise(async (resolve, reject) => {
825
+ let lastError, intervalId, observer;
826
+ let finished = false;
827
+ let promiseStatus = "idle";
828
+ const overallTimeoutTimer = setTimeout(handleTimeout, timeout);
829
+ const usingJestFakeTimers = jestFakeTimersAreEnabled();
830
+ if (usingJestFakeTimers) {
831
+ const {
832
+ unstable_advanceTimersWrapper: advanceTimersWrapper
833
+ } = getConfig();
834
+ checkCallback();
835
+ while (!finished) {
836
+ if (!jestFakeTimersAreEnabled()) {
837
+ const error = 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");
838
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
839
+ reject(error);
840
+ return;
841
+ }
842
+ await advanceTimersWrapper(async () => {
843
+ jest.advanceTimersByTime(interval);
844
+ });
845
+ if (finished) {
846
+ break;
847
+ }
848
+ checkCallback();
849
+ }
850
+ } else {
851
+ try {
852
+ checkContainerType(container);
853
+ } catch (e) {
854
+ reject(e);
855
+ return;
856
+ }
857
+ intervalId = setInterval(checkRealTimersCallback, interval);
858
+ const {
859
+ MutationObserver
860
+ } = getWindowFromNode(container);
861
+ observer = new MutationObserver(checkRealTimersCallback);
862
+ observer.observe(container, mutationObserverOptions);
863
+ checkCallback();
864
+ }
865
+ function onDone(error, result) {
866
+ finished = true;
867
+ clearTimeout(overallTimeoutTimer);
868
+ if (!usingJestFakeTimers) {
869
+ clearInterval(intervalId);
870
+ observer.disconnect();
871
+ }
872
+ if (error) {
873
+ reject(error);
874
+ } else {
875
+ resolve(result);
876
+ }
877
+ }
878
+ function checkRealTimersCallback() {
879
+ if (jestFakeTimersAreEnabled()) {
880
+ const error = 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");
881
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
882
+ return reject(error);
883
+ } else {
884
+ return checkCallback();
885
+ }
886
+ }
887
+ function checkCallback() {
888
+ if (promiseStatus === "pending") return;
889
+ try {
890
+ const result = runWithExpensiveErrorDiagnosticsDisabled(callback);
891
+ if (typeof (result == null ? void 0 : result.then) === "function") {
892
+ promiseStatus = "pending";
893
+ result.then((resolvedValue) => {
894
+ promiseStatus = "resolved";
895
+ onDone(null, resolvedValue);
896
+ }, (rejectedValue) => {
897
+ promiseStatus = "rejected";
898
+ lastError = rejectedValue;
899
+ });
900
+ } else {
901
+ onDone(null, result);
902
+ }
903
+ } catch (error) {
904
+ lastError = error;
905
+ }
906
+ }
907
+ function handleTimeout() {
908
+ let error;
909
+ if (lastError) {
910
+ error = lastError;
911
+ if (!showOriginalStackTrace && error.name === "TestingLibraryElementError") {
912
+ copyStackTrace(error, stackTraceError);
913
+ }
914
+ } else {
915
+ error = new Error("Timed out in waitFor.");
916
+ if (!showOriginalStackTrace) {
917
+ copyStackTrace(error, stackTraceError);
918
+ }
919
+ }
920
+ onDone(onTimeout(error), null);
921
+ }
922
+ });
923
+ }
924
+ function waitForWrapper(callback, options) {
925
+ const stackTraceError = new Error("STACK_TRACE_MESSAGE");
926
+ return getConfig().asyncWrapper(() => waitFor(callback, {
927
+ stackTraceError,
928
+ ...options
929
+ }));
930
+ }
931
+ function getElementError(message, container) {
932
+ return getConfig().getElementError(message, container);
933
+ }
934
+ function getMultipleElementsFoundError(message, container) {
935
+ return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container);
936
+ }
937
+ function queryAllByAttribute(attribute, container, text, _temp) {
938
+ let {
939
+ exact = true,
940
+ collapseWhitespace,
941
+ trim,
942
+ normalizer
943
+ } = _temp === void 0 ? {} : _temp;
944
+ const matcher = exact ? matches : fuzzyMatches;
945
+ const matchNormalizer = makeNormalizer({
946
+ collapseWhitespace,
947
+ trim,
948
+ normalizer
949
+ });
950
+ return Array.from(container.querySelectorAll("[" + attribute + "]")).filter((node) => matcher(node.getAttribute(attribute), node, text, matchNormalizer));
951
+ }
952
+ function queryByAttribute(attribute, container, text, options) {
953
+ const els = queryAllByAttribute(attribute, container, text, options);
954
+ if (els.length > 1) {
955
+ throw getMultipleElementsFoundError("Found multiple elements by [" + attribute + "=" + text + "]", container);
956
+ }
957
+ return els[0] || null;
958
+ }
959
+ function makeSingleQuery(allQuery, getMultipleError2) {
960
+ return function(container) {
961
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
962
+ args[_key - 1] = arguments[_key];
963
+ }
964
+ const els = allQuery(container, ...args);
965
+ if (els.length > 1) {
966
+ const elementStrings = els.map((element) => getElementError(null, element).message).join("\n\n");
967
+ throw getMultipleElementsFoundError(getMultipleError2(container, ...args) + "\n\nHere are the matching elements:\n\n" + elementStrings, container);
968
+ }
969
+ return els[0] || null;
970
+ };
971
+ }
972
+ function getSuggestionError(suggestion, container) {
973
+ return getConfig().getElementError("A better query is available, try this:\n" + suggestion.toString() + "\n", container);
974
+ }
975
+ function makeGetAllQuery(allQuery, getMissingError2) {
976
+ return function(container) {
977
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
978
+ args[_key2 - 1] = arguments[_key2];
979
+ }
980
+ const els = allQuery(container, ...args);
981
+ if (!els.length) {
982
+ throw getConfig().getElementError(getMissingError2(container, ...args), container);
983
+ }
984
+ return els;
985
+ };
986
+ }
987
+ function makeFindQuery(getter) {
988
+ return (container, text, options, waitForOptions) => {
989
+ return waitForWrapper(() => {
990
+ return getter(container, text, options);
991
+ }, {
992
+ container,
993
+ ...waitForOptions
994
+ });
995
+ };
996
+ }
997
+ const wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
998
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
999
+ args[_key3 - 1] = arguments[_key3];
1000
+ }
1001
+ const element = query(container, ...args);
1002
+ const [{
1003
+ suggest = getConfig().throwSuggestions
1004
+ } = {}] = args.slice(-1);
1005
+ if (element && suggest) {
1006
+ const suggestion = getSuggestedQuery(element, variant);
1007
+ if (suggestion && !queryAllByName.endsWith(suggestion.queryName)) {
1008
+ throw getSuggestionError(suggestion.toString(), container);
1009
+ }
1010
+ }
1011
+ return element;
1012
+ };
1013
+ const wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
1014
+ for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
1015
+ args[_key4 - 1] = arguments[_key4];
1016
+ }
1017
+ const els = query(container, ...args);
1018
+ const [{
1019
+ suggest = getConfig().throwSuggestions
1020
+ } = {}] = args.slice(-1);
1021
+ if (els.length && suggest) {
1022
+ const uniqueSuggestionMessages = [...new Set(els.map((element) => {
1023
+ var _getSuggestedQuery;
1024
+ return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? void 0 : _getSuggestedQuery.toString();
1025
+ }))];
1026
+ if (
1027
+ // only want to suggest if all the els have the same suggestion.
1028
+ uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith(
1029
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
1030
+ getSuggestedQuery(els[0], variant).queryName
1031
+ )
1032
+ ) {
1033
+ throw getSuggestionError(uniqueSuggestionMessages[0], container);
1034
+ }
1035
+ }
1036
+ return els;
1037
+ };
1038
+ function buildQueries(queryAllBy, getMultipleError2, getMissingError2) {
1039
+ const queryBy = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy, getMultipleError2), queryAllBy.name, "query");
1040
+ const getAllBy = makeGetAllQuery(queryAllBy, getMissingError2);
1041
+ const getBy = makeSingleQuery(getAllBy, getMultipleError2);
1042
+ const getByWithSuggestions = wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "get");
1043
+ const getAllWithSuggestions = wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name.replace("query", "get"), "getAll");
1044
+ const findAllBy = makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name, "findAll"));
1045
+ const findBy = makeFindQuery(wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "find"));
1046
+ return [queryBy, getAllWithSuggestions, getByWithSuggestions, findAllBy, findBy];
1047
+ }
1048
+ var queryHelpers = /* @__PURE__ */ Object.freeze({
1049
+ __proto__: null,
1050
+ getElementError,
1051
+ wrapAllByQueryWithSuggestion,
1052
+ wrapSingleQueryWithSuggestion,
1053
+ getMultipleElementsFoundError,
1054
+ queryAllByAttribute,
1055
+ queryByAttribute,
1056
+ makeSingleQuery,
1057
+ makeGetAllQuery,
1058
+ makeFindQuery,
1059
+ buildQueries
1060
+ });
1061
+ function queryAllLabels(container) {
1062
+ return Array.from(container.querySelectorAll("label,input")).map((node) => {
1063
+ return {
1064
+ node,
1065
+ textToMatch: getLabelContent(node)
1066
+ };
1067
+ }).filter((_ref) => {
1068
+ let {
1069
+ textToMatch
1070
+ } = _ref;
1071
+ return textToMatch !== null;
1072
+ });
1073
+ }
1074
+ const queryAllLabelsByText = function(container, text, _temp) {
1075
+ let {
1076
+ exact = true,
1077
+ trim,
1078
+ collapseWhitespace,
1079
+ normalizer
1080
+ } = _temp === void 0 ? {} : _temp;
1081
+ const matcher = exact ? matches : fuzzyMatches;
1082
+ const matchNormalizer = makeNormalizer({
1083
+ collapseWhitespace,
1084
+ trim,
1085
+ normalizer
1086
+ });
1087
+ const textToMatchByLabels = queryAllLabels(container);
1088
+ return textToMatchByLabels.filter((_ref2) => {
1089
+ let {
1090
+ node,
1091
+ textToMatch
1092
+ } = _ref2;
1093
+ return matcher(textToMatch, node, text, matchNormalizer);
1094
+ }).map((_ref3) => {
1095
+ let {
1096
+ node
1097
+ } = _ref3;
1098
+ return node;
1099
+ });
1100
+ };
1101
+ const queryAllByLabelText = function(container, text, _temp2) {
1102
+ let {
1103
+ selector = "*",
1104
+ exact = true,
1105
+ collapseWhitespace,
1106
+ trim,
1107
+ normalizer
1108
+ } = _temp2 === void 0 ? {} : _temp2;
1109
+ checkContainerType(container);
1110
+ const matcher = exact ? matches : fuzzyMatches;
1111
+ const matchNormalizer = makeNormalizer({
1112
+ collapseWhitespace,
1113
+ trim,
1114
+ normalizer
1115
+ });
1116
+ const matchingLabelledElements = Array.from(container.querySelectorAll("*")).filter((element) => {
1117
+ return getRealLabels(element).length || element.hasAttribute("aria-labelledby");
1118
+ }).reduce((labelledElements, labelledElement) => {
1119
+ const labelList = getLabels(container, labelledElement, {
1120
+ selector
1121
+ });
1122
+ labelList.filter((label) => Boolean(label.formControl)).forEach((label) => {
1123
+ if (matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl) {
1124
+ labelledElements.push(label.formControl);
1125
+ }
1126
+ });
1127
+ const labelsValue = labelList.filter((label) => Boolean(label.content)).map((label) => label.content);
1128
+ if (matcher(labelsValue.join(" "), labelledElement, text, matchNormalizer)) {
1129
+ labelledElements.push(labelledElement);
1130
+ }
1131
+ if (labelsValue.length > 1) {
1132
+ labelsValue.forEach((labelValue, index2) => {
1133
+ if (matcher(labelValue, labelledElement, text, matchNormalizer)) {
1134
+ labelledElements.push(labelledElement);
1135
+ }
1136
+ const labelsFiltered = [...labelsValue];
1137
+ labelsFiltered.splice(index2, 1);
1138
+ if (labelsFiltered.length > 1) {
1139
+ if (matcher(labelsFiltered.join(" "), labelledElement, text, matchNormalizer)) {
1140
+ labelledElements.push(labelledElement);
1141
+ }
1142
+ }
1143
+ });
1144
+ }
1145
+ return labelledElements;
1146
+ }, []).concat(queryAllByAttribute("aria-label", container, text, {
1147
+ exact,
1148
+ normalizer: matchNormalizer
1149
+ }));
1150
+ return Array.from(new Set(matchingLabelledElements)).filter((element) => element.matches(selector));
1151
+ };
1152
+ const getAllByLabelText = function(container, text) {
1153
+ for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1154
+ rest[_key - 2] = arguments[_key];
1155
+ }
1156
+ const els = queryAllByLabelText(container, text, ...rest);
1157
+ if (!els.length) {
1158
+ const labels = queryAllLabelsByText(container, text, ...rest);
1159
+ if (labels.length) {
1160
+ const tagNames = labels.map((label) => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter((tagName) => !!tagName);
1161
+ if (tagNames.length) {
1162
+ 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);
1163
+ } else {
1164
+ 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);
1165
+ }
1166
+ } else {
1167
+ throw getConfig().getElementError("Unable to find a label with the text of: " + text, container);
1168
+ }
1169
+ }
1170
+ return els;
1171
+ };
1172
+ function getTagNameOfElementAssociatedWithLabelViaFor(container, label) {
1173
+ const htmlFor = label.getAttribute("for");
1174
+ if (!htmlFor) {
1175
+ return null;
1176
+ }
1177
+ const element = container.querySelector('[id="' + htmlFor + '"]');
1178
+ return element ? element.tagName.toLowerCase() : null;
1179
+ }
1180
+ const getMultipleError$7 = (c, text) => "Found multiple elements with the text of: " + text;
1181
+ const queryByLabelText = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText, getMultipleError$7), queryAllByLabelText.name, "query");
1182
+ const getByLabelText = makeSingleQuery(getAllByLabelText, getMultipleError$7);
1183
+ const findAllByLabelText = makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "findAll"));
1184
+ const findByLabelText = makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "find"));
1185
+ const getAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "getAll");
1186
+ const getByLabelTextWithSuggestions = wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "get");
1187
+ const queryAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByLabelText, queryAllByLabelText.name, "queryAll");
1188
+ const queryAllByPlaceholderText = function() {
1189
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1190
+ args[_key] = arguments[_key];
1191
+ }
1192
+ checkContainerType(args[0]);
1193
+ return queryAllByAttribute("placeholder", ...args);
1194
+ };
1195
+ const getMultipleError$6 = (c, text) => "Found multiple elements with the placeholder text of: " + text;
1196
+ const getMissingError$6 = (c, text) => "Unable to find an element with the placeholder text of: " + text;
1197
+ const queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByPlaceholderText, queryAllByPlaceholderText.name, "queryAll");
1198
+ const [queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText] = buildQueries(queryAllByPlaceholderText, getMultipleError$6, getMissingError$6);
1199
+ const queryAllByText = function(container, text, _temp) {
1200
+ let {
1201
+ selector = "*",
1202
+ exact = true,
1203
+ collapseWhitespace,
1204
+ trim,
1205
+ ignore = getConfig().defaultIgnore,
1206
+ normalizer
1207
+ } = _temp === void 0 ? {} : _temp;
1208
+ checkContainerType(container);
1209
+ const matcher = exact ? matches : fuzzyMatches;
1210
+ const matchNormalizer = makeNormalizer({
1211
+ collapseWhitespace,
1212
+ trim,
1213
+ normalizer
1214
+ });
1215
+ let baseArray = [];
1216
+ if (typeof container.matches === "function" && container.matches(selector)) {
1217
+ baseArray = [container];
1218
+ }
1219
+ return [...baseArray, ...Array.from(container.querySelectorAll(selector))].filter((node) => !ignore || !node.matches(ignore)).filter((node) => matcher(getNodeText(node), node, text, matchNormalizer));
1220
+ };
1221
+ const getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text;
1222
+ const getMissingError$5 = function(c, text, options) {
1223
+ if (options === void 0) {
1224
+ options = {};
1225
+ }
1226
+ const {
1227
+ collapseWhitespace,
1228
+ trim,
1229
+ normalizer,
1230
+ selector
1231
+ } = options;
1232
+ const matchNormalizer = makeNormalizer({
1233
+ collapseWhitespace,
1234
+ trim,
1235
+ normalizer
1236
+ });
1237
+ const normalizedText = matchNormalizer(text.toString());
1238
+ const isNormalizedDifferent = normalizedText !== text.toString();
1239
+ const isCustomSelector = (selector != null ? selector : "*") !== "*";
1240
+ 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.";
1241
+ };
1242
+ const queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, "queryAll");
1243
+ const [queryByText, getAllByText, getByText, findAllByText, findByText] = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5);
1244
+ const queryAllByDisplayValue = function(container, value, _temp) {
1245
+ let {
1246
+ exact = true,
1247
+ collapseWhitespace,
1248
+ trim,
1249
+ normalizer
1250
+ } = _temp === void 0 ? {} : _temp;
1251
+ checkContainerType(container);
1252
+ const matcher = exact ? matches : fuzzyMatches;
1253
+ const matchNormalizer = makeNormalizer({
1254
+ collapseWhitespace,
1255
+ trim,
1256
+ normalizer
1257
+ });
1258
+ return Array.from(container.querySelectorAll("input,textarea,select")).filter((node) => {
1259
+ if (node.tagName === "SELECT") {
1260
+ const selectedOptions = Array.from(node.options).filter((option) => option.selected);
1261
+ return selectedOptions.some((optionNode) => matcher(getNodeText(optionNode), optionNode, value, matchNormalizer));
1262
+ } else {
1263
+ return matcher(node.value, node, value, matchNormalizer);
1264
+ }
1265
+ });
1266
+ };
1267
+ const getMultipleError$4 = (c, value) => "Found multiple elements with the display value: " + value + ".";
1268
+ const getMissingError$4 = (c, value) => "Unable to find an element with the display value: " + value + ".";
1269
+ const queryAllByDisplayValueWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByDisplayValue, queryAllByDisplayValue.name, "queryAll");
1270
+ const [queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue] = buildQueries(queryAllByDisplayValue, getMultipleError$4, getMissingError$4);
1271
+ const VALID_TAG_REGEXP = /^(img|input|area|.+-.+)$/i;
1272
+ const queryAllByAltText = function(container, alt, options) {
1273
+ if (options === void 0) {
1274
+ options = {};
1275
+ }
1276
+ checkContainerType(container);
1277
+ return queryAllByAttribute("alt", container, alt, options).filter((node) => VALID_TAG_REGEXP.test(node.tagName));
1278
+ };
1279
+ const getMultipleError$3 = (c, alt) => "Found multiple elements with the alt text: " + alt;
1280
+ const getMissingError$3 = (c, alt) => "Unable to find an element with the alt text: " + alt;
1281
+ const queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByAltText, queryAllByAltText.name, "queryAll");
1282
+ const [queryByAltText, getAllByAltText, getByAltText, findAllByAltText, findByAltText] = buildQueries(queryAllByAltText, getMultipleError$3, getMissingError$3);
1283
+ const isSvgTitle = (node) => {
1284
+ var _node$parentElement;
1285
+ return node.tagName.toLowerCase() === "title" && ((_node$parentElement = node.parentElement) == null ? void 0 : _node$parentElement.tagName.toLowerCase()) === "svg";
1286
+ };
1287
+ const queryAllByTitle = function(container, text, _temp) {
1288
+ let {
1289
+ exact = true,
1290
+ collapseWhitespace,
1291
+ trim,
1292
+ normalizer
1293
+ } = _temp === void 0 ? {} : _temp;
1294
+ checkContainerType(container);
1295
+ const matcher = exact ? matches : fuzzyMatches;
1296
+ const matchNormalizer = makeNormalizer({
1297
+ collapseWhitespace,
1298
+ trim,
1299
+ normalizer
1300
+ });
1301
+ 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));
1302
+ };
1303
+ const getMultipleError$2 = (c, title) => "Found multiple elements with the title: " + title + ".";
1304
+ const getMissingError$2 = (c, title) => "Unable to find an element with the title: " + title + ".";
1305
+ const queryAllByTitleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTitle, queryAllByTitle.name, "queryAll");
1306
+ const [queryByTitle, getAllByTitle, getByTitle, findAllByTitle, findByTitle] = buildQueries(queryAllByTitle, getMultipleError$2, getMissingError$2);
1307
+ const queryAllByRole = function(container, role, _temp) {
1308
+ let {
1309
+ hidden = getConfig().defaultHidden,
1310
+ name,
1311
+ description,
1312
+ queryFallbacks = false,
1313
+ selected,
1314
+ busy,
1315
+ checked,
1316
+ pressed,
1317
+ current,
1318
+ level,
1319
+ expanded,
1320
+ value: {
1321
+ now: valueNow,
1322
+ min: valueMin,
1323
+ max: valueMax,
1324
+ text: valueText
1325
+ } = {}
1326
+ } = _temp === void 0 ? {} : _temp;
1327
+ checkContainerType(container);
1328
+ if (selected !== void 0) {
1329
+ var _allRoles$get;
1330
+ if (((_allRoles$get = index$1.roles.get(role)) == null ? void 0 : _allRoles$get.props["aria-selected"]) === void 0) {
1331
+ throw new Error('"aria-selected" is not supported on role "' + role + '".');
1332
+ }
1333
+ }
1334
+ if (busy !== void 0) {
1335
+ var _allRoles$get2;
1336
+ if (((_allRoles$get2 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get2.props["aria-busy"]) === void 0) {
1337
+ throw new Error('"aria-busy" is not supported on role "' + role + '".');
1338
+ }
1339
+ }
1340
+ if (checked !== void 0) {
1341
+ var _allRoles$get3;
1342
+ if (((_allRoles$get3 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get3.props["aria-checked"]) === void 0) {
1343
+ throw new Error('"aria-checked" is not supported on role "' + role + '".');
1344
+ }
1345
+ }
1346
+ if (pressed !== void 0) {
1347
+ var _allRoles$get4;
1348
+ if (((_allRoles$get4 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get4.props["aria-pressed"]) === void 0) {
1349
+ throw new Error('"aria-pressed" is not supported on role "' + role + '".');
1350
+ }
1351
+ }
1352
+ if (current !== void 0) {
1353
+ var _allRoles$get5;
1354
+ if (((_allRoles$get5 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get5.props["aria-current"]) === void 0) {
1355
+ throw new Error('"aria-current" is not supported on role "' + role + '".');
1356
+ }
1357
+ }
1358
+ if (level !== void 0) {
1359
+ if (role !== "heading") {
1360
+ throw new Error('Role "' + role + '" cannot have "level" property.');
1361
+ }
1362
+ }
1363
+ if (valueNow !== void 0) {
1364
+ var _allRoles$get6;
1365
+ if (((_allRoles$get6 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get6.props["aria-valuenow"]) === void 0) {
1366
+ throw new Error('"aria-valuenow" is not supported on role "' + role + '".');
1367
+ }
1368
+ }
1369
+ if (valueMax !== void 0) {
1370
+ var _allRoles$get7;
1371
+ if (((_allRoles$get7 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get7.props["aria-valuemax"]) === void 0) {
1372
+ throw new Error('"aria-valuemax" is not supported on role "' + role + '".');
1373
+ }
1374
+ }
1375
+ if (valueMin !== void 0) {
1376
+ var _allRoles$get8;
1377
+ if (((_allRoles$get8 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get8.props["aria-valuemin"]) === void 0) {
1378
+ throw new Error('"aria-valuemin" is not supported on role "' + role + '".');
1379
+ }
1380
+ }
1381
+ if (valueText !== void 0) {
1382
+ var _allRoles$get9;
1383
+ if (((_allRoles$get9 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get9.props["aria-valuetext"]) === void 0) {
1384
+ throw new Error('"aria-valuetext" is not supported on role "' + role + '".');
1385
+ }
1386
+ }
1387
+ if (expanded !== void 0) {
1388
+ var _allRoles$get10;
1389
+ if (((_allRoles$get10 = index$1.roles.get(role)) == null ? void 0 : _allRoles$get10.props["aria-expanded"]) === void 0) {
1390
+ throw new Error('"aria-expanded" is not supported on role "' + role + '".');
1391
+ }
1392
+ }
1393
+ const subtreeIsInaccessibleCache = /* @__PURE__ */ new WeakMap();
1394
+ function cachedIsSubtreeInaccessible(element) {
1395
+ if (!subtreeIsInaccessibleCache.has(element)) {
1396
+ subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element));
1397
+ }
1398
+ return subtreeIsInaccessibleCache.get(element);
1399
+ }
1400
+ return Array.from(container.querySelectorAll(
1401
+ // Only query elements that can be matched by the following filters
1402
+ makeRoleSelector(role)
1403
+ )).filter((node) => {
1404
+ const isRoleSpecifiedExplicitly = node.hasAttribute("role");
1405
+ if (isRoleSpecifiedExplicitly) {
1406
+ const roleValue = node.getAttribute("role");
1407
+ if (queryFallbacks) {
1408
+ return roleValue.split(" ").filter(Boolean).some((roleAttributeToken) => roleAttributeToken === role);
1409
+ }
1410
+ const [firstRoleAttributeToken] = roleValue.split(" ");
1411
+ return firstRoleAttributeToken === role;
1412
+ }
1413
+ const implicitRoles = getImplicitAriaRoles(node);
1414
+ return implicitRoles.some((implicitRole) => {
1415
+ return implicitRole === role;
1416
+ });
1417
+ }).filter((element) => {
1418
+ if (selected !== void 0) {
1419
+ return selected === computeAriaSelected(element);
1420
+ }
1421
+ if (busy !== void 0) {
1422
+ return busy === computeAriaBusy(element);
1423
+ }
1424
+ if (checked !== void 0) {
1425
+ return checked === computeAriaChecked(element);
1426
+ }
1427
+ if (pressed !== void 0) {
1428
+ return pressed === computeAriaPressed(element);
1429
+ }
1430
+ if (current !== void 0) {
1431
+ return current === computeAriaCurrent(element);
1432
+ }
1433
+ if (expanded !== void 0) {
1434
+ return expanded === computeAriaExpanded(element);
1435
+ }
1436
+ if (level !== void 0) {
1437
+ return level === computeHeadingLevel(element);
1438
+ }
1439
+ if (valueNow !== void 0 || valueMax !== void 0 || valueMin !== void 0 || valueText !== void 0) {
1440
+ let valueMatches = true;
1441
+ if (valueNow !== void 0) {
1442
+ valueMatches && (valueMatches = valueNow === computeAriaValueNow(element));
1443
+ }
1444
+ if (valueMax !== void 0) {
1445
+ valueMatches && (valueMatches = valueMax === computeAriaValueMax(element));
1446
+ }
1447
+ if (valueMin !== void 0) {
1448
+ valueMatches && (valueMatches = valueMin === computeAriaValueMin(element));
1449
+ }
1450
+ if (valueText !== void 0) {
1451
+ var _computeAriaValueText;
1452
+ valueMatches && (valueMatches = matches((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, (text) => text));
1453
+ }
1454
+ return valueMatches;
1455
+ }
1456
+ return true;
1457
+ }).filter((element) => {
1458
+ if (name === void 0) {
1459
+ return true;
1460
+ }
1461
+ return matches(accessibleName.computeAccessibleName(element, {
1462
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
1463
+ }), element, name, (text) => text);
1464
+ }).filter((element) => {
1465
+ if (description === void 0) {
1466
+ return true;
1467
+ }
1468
+ return matches(accessibleDescription.computeAccessibleDescription(element, {
1469
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
1470
+ }), element, description, (text) => text);
1471
+ }).filter((element) => {
1472
+ return hidden === false ? isInaccessible(element, {
1473
+ isSubtreeInaccessible: cachedIsSubtreeInaccessible
1474
+ }) === false : true;
1475
+ });
1476
+ };
1477
+ function makeRoleSelector(role) {
1478
+ var _roleElements$get;
1479
+ const explicitRoleSelector = '*[role~="' + role + '"]';
1480
+ const roleRelations = (_roleElements$get = index$1.roleElements.get(role)) != null ? _roleElements$get : /* @__PURE__ */ new Set();
1481
+ const implicitRoleSelectors = new Set(Array.from(roleRelations).map((_ref) => {
1482
+ let {
1483
+ name
1484
+ } = _ref;
1485
+ return name;
1486
+ }));
1487
+ return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",");
1488
+ }
1489
+ const getNameHint = (name) => {
1490
+ let nameHint = "";
1491
+ if (name === void 0) {
1492
+ nameHint = "";
1493
+ } else if (typeof name === "string") {
1494
+ nameHint = ' and name "' + name + '"';
1495
+ } else {
1496
+ nameHint = " and name `" + name + "`";
1497
+ }
1498
+ return nameHint;
1499
+ };
1500
+ const getMultipleError$1 = function(c, role, _temp2) {
1501
+ let {
1502
+ name
1503
+ } = _temp2 === void 0 ? {} : _temp2;
1504
+ return 'Found multiple elements with the role "' + role + '"' + getNameHint(name);
1505
+ };
1506
+ const getMissingError$1 = function(container, role, _temp3) {
1507
+ let {
1508
+ hidden = getConfig().defaultHidden,
1509
+ name,
1510
+ description
1511
+ } = _temp3 === void 0 ? {} : _temp3;
1512
+ if (getConfig()._disableExpensiveErrorDiagnostics) {
1513
+ return 'Unable to find role="' + role + '"' + getNameHint(name);
1514
+ }
1515
+ let roles = "";
1516
+ Array.from(container.children).forEach((childElement) => {
1517
+ roles += prettyRoles(childElement, {
1518
+ hidden,
1519
+ includeDescription: description !== void 0
1520
+ });
1521
+ });
1522
+ let roleMessage;
1523
+ if (roles.length === 0) {
1524
+ if (hidden === false) {
1525
+ 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";
1526
+ } else {
1527
+ roleMessage = "There are no available roles.";
1528
+ }
1529
+ } else {
1530
+ 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();
1531
+ }
1532
+ let nameHint = "";
1533
+ if (name === void 0) {
1534
+ nameHint = "";
1535
+ } else if (typeof name === "string") {
1536
+ nameHint = ' and name "' + name + '"';
1537
+ } else {
1538
+ nameHint = " and name `" + name + "`";
1539
+ }
1540
+ let descriptionHint = "";
1541
+ if (description === void 0) {
1542
+ descriptionHint = "";
1543
+ } else if (typeof description === "string") {
1544
+ descriptionHint = ' and description "' + description + '"';
1545
+ } else {
1546
+ descriptionHint = " and description `" + description + "`";
1547
+ }
1548
+ return ("\nUnable to find an " + (hidden === false ? "accessible " : "") + 'element with the role "' + role + '"' + nameHint + descriptionHint + "\n\n" + roleMessage).trim();
1549
+ };
1550
+ const queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, "queryAll");
1551
+ const [queryByRole, getAllByRole, getByRole, findAllByRole, findByRole] = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1);
1552
+ const getTestIdAttribute = () => getConfig().testIdAttribute;
1553
+ const queryAllByTestId = function() {
1554
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1555
+ args[_key] = arguments[_key];
1556
+ }
1557
+ checkContainerType(args[0]);
1558
+ return queryAllByAttribute(getTestIdAttribute(), ...args);
1559
+ };
1560
+ const getMultipleError = (c, id) => "Found multiple elements by: [" + getTestIdAttribute() + '="' + id + '"]';
1561
+ const getMissingError = (c, id) => "Unable to find an element by: [" + getTestIdAttribute() + '="' + id + '"]';
1562
+ const queryAllByTestIdWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTestId, queryAllByTestId.name, "queryAll");
1563
+ const [queryByTestId, getAllByTestId, getByTestId, findAllByTestId, findByTestId] = buildQueries(queryAllByTestId, getMultipleError, getMissingError);
1564
+ var queries = /* @__PURE__ */ Object.freeze({
1565
+ __proto__: null,
1566
+ queryAllByLabelText: queryAllByLabelTextWithSuggestions,
1567
+ queryByLabelText,
1568
+ getAllByLabelText: getAllByLabelTextWithSuggestions,
1569
+ getByLabelText: getByLabelTextWithSuggestions,
1570
+ findAllByLabelText,
1571
+ findByLabelText,
1572
+ queryByPlaceholderText,
1573
+ queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions,
1574
+ getByPlaceholderText,
1575
+ getAllByPlaceholderText,
1576
+ findAllByPlaceholderText,
1577
+ findByPlaceholderText,
1578
+ queryByText,
1579
+ queryAllByText: queryAllByTextWithSuggestions,
1580
+ getByText,
1581
+ getAllByText,
1582
+ findAllByText,
1583
+ findByText,
1584
+ queryByDisplayValue,
1585
+ queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions,
1586
+ getByDisplayValue,
1587
+ getAllByDisplayValue,
1588
+ findAllByDisplayValue,
1589
+ findByDisplayValue,
1590
+ queryByAltText,
1591
+ queryAllByAltText: queryAllByAltTextWithSuggestions,
1592
+ getByAltText,
1593
+ getAllByAltText,
1594
+ findAllByAltText,
1595
+ findByAltText,
1596
+ queryByTitle,
1597
+ queryAllByTitle: queryAllByTitleWithSuggestions,
1598
+ getByTitle,
1599
+ getAllByTitle,
1600
+ findAllByTitle,
1601
+ findByTitle,
1602
+ queryByRole,
1603
+ queryAllByRole: queryAllByRoleWithSuggestions,
1604
+ getAllByRole,
1605
+ getByRole,
1606
+ findAllByRole,
1607
+ findByRole,
1608
+ queryByTestId,
1609
+ queryAllByTestId: queryAllByTestIdWithSuggestions,
1610
+ getByTestId,
1611
+ getAllByTestId,
1612
+ findAllByTestId,
1613
+ findByTestId
1614
+ });
1615
+ function getQueriesForElement(element, queries$1, initialValue2) {
1616
+ if (queries$1 === void 0) {
1617
+ queries$1 = queries;
1618
+ }
1619
+ if (initialValue2 === void 0) {
1620
+ initialValue2 = {};
1621
+ }
1622
+ return Object.keys(queries$1).reduce((helpers, key) => {
1623
+ const fn = queries$1[key];
1624
+ helpers[key] = fn.bind(null, element);
1625
+ return helpers;
1626
+ }, initialValue2);
1627
+ }
1628
+ const isRemoved = (result) => !result || Array.isArray(result) && !result.length;
1629
+ function initialCheck(elements) {
1630
+ if (isRemoved(elements)) {
1631
+ throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.");
1632
+ }
1633
+ }
1634
+ async function waitForElementToBeRemoved(callback, options) {
1635
+ const timeoutError = new Error("Timed out in waitForElementToBeRemoved.");
1636
+ if (typeof callback !== "function") {
1637
+ initialCheck(callback);
1638
+ const elements = Array.isArray(callback) ? callback : [callback];
1639
+ const getRemainingElements = elements.map((element) => {
1640
+ let parent = element.parentElement;
1641
+ if (parent === null) return () => null;
1642
+ while (parent.parentElement) parent = parent.parentElement;
1643
+ return () => parent.contains(element) ? element : null;
1644
+ });
1645
+ callback = () => getRemainingElements.map((c) => c()).filter(Boolean);
1646
+ }
1647
+ initialCheck(callback());
1648
+ return waitForWrapper(() => {
1649
+ let result;
1650
+ try {
1651
+ result = callback();
1652
+ } catch (error) {
1653
+ if (error.name === "TestingLibraryElementError") {
1654
+ return void 0;
1655
+ }
1656
+ throw error;
1657
+ }
1658
+ if (!isRemoved(result)) {
1659
+ throw timeoutError;
1660
+ }
1661
+ return void 0;
1662
+ }, options);
1663
+ }
1664
+ const eventMap = {
1665
+ // Clipboard Events
1666
+ copy: {
1667
+ EventType: "ClipboardEvent",
1668
+ defaultInit: {
1669
+ bubbles: true,
1670
+ cancelable: true,
1671
+ composed: true
1672
+ }
1673
+ },
1674
+ cut: {
1675
+ EventType: "ClipboardEvent",
1676
+ defaultInit: {
1677
+ bubbles: true,
1678
+ cancelable: true,
1679
+ composed: true
1680
+ }
1681
+ },
1682
+ paste: {
1683
+ EventType: "ClipboardEvent",
1684
+ defaultInit: {
1685
+ bubbles: true,
1686
+ cancelable: true,
1687
+ composed: true
1688
+ }
1689
+ },
1690
+ // Composition Events
1691
+ compositionEnd: {
1692
+ EventType: "CompositionEvent",
1693
+ defaultInit: {
1694
+ bubbles: true,
1695
+ cancelable: true,
1696
+ composed: true
1697
+ }
1698
+ },
1699
+ compositionStart: {
1700
+ EventType: "CompositionEvent",
1701
+ defaultInit: {
1702
+ bubbles: true,
1703
+ cancelable: true,
1704
+ composed: true
1705
+ }
1706
+ },
1707
+ compositionUpdate: {
1708
+ EventType: "CompositionEvent",
1709
+ defaultInit: {
1710
+ bubbles: true,
1711
+ cancelable: true,
1712
+ composed: true
1713
+ }
1714
+ },
1715
+ // Keyboard Events
1716
+ keyDown: {
1717
+ EventType: "KeyboardEvent",
1718
+ defaultInit: {
1719
+ bubbles: true,
1720
+ cancelable: true,
1721
+ charCode: 0,
1722
+ composed: true
1723
+ }
1724
+ },
1725
+ keyPress: {
1726
+ EventType: "KeyboardEvent",
1727
+ defaultInit: {
1728
+ bubbles: true,
1729
+ cancelable: true,
1730
+ charCode: 0,
1731
+ composed: true
1732
+ }
1733
+ },
1734
+ keyUp: {
1735
+ EventType: "KeyboardEvent",
1736
+ defaultInit: {
1737
+ bubbles: true,
1738
+ cancelable: true,
1739
+ charCode: 0,
1740
+ composed: true
1741
+ }
1742
+ },
1743
+ // Focus Events
1744
+ focus: {
1745
+ EventType: "FocusEvent",
1746
+ defaultInit: {
1747
+ bubbles: false,
1748
+ cancelable: false,
1749
+ composed: true
1750
+ }
1751
+ },
1752
+ blur: {
1753
+ EventType: "FocusEvent",
1754
+ defaultInit: {
1755
+ bubbles: false,
1756
+ cancelable: false,
1757
+ composed: true
1758
+ }
1759
+ },
1760
+ focusIn: {
1761
+ EventType: "FocusEvent",
1762
+ defaultInit: {
1763
+ bubbles: true,
1764
+ cancelable: false,
1765
+ composed: true
1766
+ }
1767
+ },
1768
+ focusOut: {
1769
+ EventType: "FocusEvent",
1770
+ defaultInit: {
1771
+ bubbles: true,
1772
+ cancelable: false,
1773
+ composed: true
1774
+ }
1775
+ },
1776
+ // Form Events
1777
+ change: {
1778
+ EventType: "Event",
1779
+ defaultInit: {
1780
+ bubbles: true,
1781
+ cancelable: false
1782
+ }
1783
+ },
1784
+ input: {
1785
+ EventType: "InputEvent",
1786
+ defaultInit: {
1787
+ bubbles: true,
1788
+ cancelable: false,
1789
+ composed: true
1790
+ }
1791
+ },
1792
+ invalid: {
1793
+ EventType: "Event",
1794
+ defaultInit: {
1795
+ bubbles: false,
1796
+ cancelable: true
1797
+ }
1798
+ },
1799
+ submit: {
1800
+ EventType: "Event",
1801
+ defaultInit: {
1802
+ bubbles: true,
1803
+ cancelable: true
1804
+ }
1805
+ },
1806
+ reset: {
1807
+ EventType: "Event",
1808
+ defaultInit: {
1809
+ bubbles: true,
1810
+ cancelable: true
1811
+ }
1812
+ },
1813
+ // Mouse Events
1814
+ click: {
1815
+ EventType: "MouseEvent",
1816
+ defaultInit: {
1817
+ bubbles: true,
1818
+ cancelable: true,
1819
+ button: 0,
1820
+ composed: true
1821
+ }
1822
+ },
1823
+ contextMenu: {
1824
+ EventType: "MouseEvent",
1825
+ defaultInit: {
1826
+ bubbles: true,
1827
+ cancelable: true,
1828
+ composed: true
1829
+ }
1830
+ },
1831
+ dblClick: {
1832
+ EventType: "MouseEvent",
1833
+ defaultInit: {
1834
+ bubbles: true,
1835
+ cancelable: true,
1836
+ composed: true
1837
+ }
1838
+ },
1839
+ drag: {
1840
+ EventType: "DragEvent",
1841
+ defaultInit: {
1842
+ bubbles: true,
1843
+ cancelable: true,
1844
+ composed: true
1845
+ }
1846
+ },
1847
+ dragEnd: {
1848
+ EventType: "DragEvent",
1849
+ defaultInit: {
1850
+ bubbles: true,
1851
+ cancelable: false,
1852
+ composed: true
1853
+ }
1854
+ },
1855
+ dragEnter: {
1856
+ EventType: "DragEvent",
1857
+ defaultInit: {
1858
+ bubbles: true,
1859
+ cancelable: true,
1860
+ composed: true
1861
+ }
1862
+ },
1863
+ dragExit: {
1864
+ EventType: "DragEvent",
1865
+ defaultInit: {
1866
+ bubbles: true,
1867
+ cancelable: false,
1868
+ composed: true
1869
+ }
1870
+ },
1871
+ dragLeave: {
1872
+ EventType: "DragEvent",
1873
+ defaultInit: {
1874
+ bubbles: true,
1875
+ cancelable: false,
1876
+ composed: true
1877
+ }
1878
+ },
1879
+ dragOver: {
1880
+ EventType: "DragEvent",
1881
+ defaultInit: {
1882
+ bubbles: true,
1883
+ cancelable: true,
1884
+ composed: true
1885
+ }
1886
+ },
1887
+ dragStart: {
1888
+ EventType: "DragEvent",
1889
+ defaultInit: {
1890
+ bubbles: true,
1891
+ cancelable: true,
1892
+ composed: true
1893
+ }
1894
+ },
1895
+ drop: {
1896
+ EventType: "DragEvent",
1897
+ defaultInit: {
1898
+ bubbles: true,
1899
+ cancelable: true,
1900
+ composed: true
1901
+ }
1902
+ },
1903
+ mouseDown: {
1904
+ EventType: "MouseEvent",
1905
+ defaultInit: {
1906
+ bubbles: true,
1907
+ cancelable: true,
1908
+ composed: true
1909
+ }
1910
+ },
1911
+ mouseEnter: {
1912
+ EventType: "MouseEvent",
1913
+ defaultInit: {
1914
+ bubbles: false,
1915
+ cancelable: false,
1916
+ composed: true
1917
+ }
1918
+ },
1919
+ mouseLeave: {
1920
+ EventType: "MouseEvent",
1921
+ defaultInit: {
1922
+ bubbles: false,
1923
+ cancelable: false,
1924
+ composed: true
1925
+ }
1926
+ },
1927
+ mouseMove: {
1928
+ EventType: "MouseEvent",
1929
+ defaultInit: {
1930
+ bubbles: true,
1931
+ cancelable: true,
1932
+ composed: true
1933
+ }
1934
+ },
1935
+ mouseOut: {
1936
+ EventType: "MouseEvent",
1937
+ defaultInit: {
1938
+ bubbles: true,
1939
+ cancelable: true,
1940
+ composed: true
1941
+ }
1942
+ },
1943
+ mouseOver: {
1944
+ EventType: "MouseEvent",
1945
+ defaultInit: {
1946
+ bubbles: true,
1947
+ cancelable: true,
1948
+ composed: true
1949
+ }
1950
+ },
1951
+ mouseUp: {
1952
+ EventType: "MouseEvent",
1953
+ defaultInit: {
1954
+ bubbles: true,
1955
+ cancelable: true,
1956
+ composed: true
1957
+ }
1958
+ },
1959
+ // Selection Events
1960
+ select: {
1961
+ EventType: "Event",
1962
+ defaultInit: {
1963
+ bubbles: true,
1964
+ cancelable: false
1965
+ }
1966
+ },
1967
+ // Touch Events
1968
+ touchCancel: {
1969
+ EventType: "TouchEvent",
1970
+ defaultInit: {
1971
+ bubbles: true,
1972
+ cancelable: false,
1973
+ composed: true
1974
+ }
1975
+ },
1976
+ touchEnd: {
1977
+ EventType: "TouchEvent",
1978
+ defaultInit: {
1979
+ bubbles: true,
1980
+ cancelable: true,
1981
+ composed: true
1982
+ }
1983
+ },
1984
+ touchMove: {
1985
+ EventType: "TouchEvent",
1986
+ defaultInit: {
1987
+ bubbles: true,
1988
+ cancelable: true,
1989
+ composed: true
1990
+ }
1991
+ },
1992
+ touchStart: {
1993
+ EventType: "TouchEvent",
1994
+ defaultInit: {
1995
+ bubbles: true,
1996
+ cancelable: true,
1997
+ composed: true
1998
+ }
1999
+ },
2000
+ // UI Events
2001
+ resize: {
2002
+ EventType: "UIEvent",
2003
+ defaultInit: {
2004
+ bubbles: false,
2005
+ cancelable: false
2006
+ }
2007
+ },
2008
+ scroll: {
2009
+ EventType: "UIEvent",
2010
+ defaultInit: {
2011
+ bubbles: false,
2012
+ cancelable: false
2013
+ }
2014
+ },
2015
+ // Wheel Events
2016
+ wheel: {
2017
+ EventType: "WheelEvent",
2018
+ defaultInit: {
2019
+ bubbles: true,
2020
+ cancelable: true,
2021
+ composed: true
2022
+ }
2023
+ },
2024
+ // Media Events
2025
+ abort: {
2026
+ EventType: "Event",
2027
+ defaultInit: {
2028
+ bubbles: false,
2029
+ cancelable: false
2030
+ }
2031
+ },
2032
+ canPlay: {
2033
+ EventType: "Event",
2034
+ defaultInit: {
2035
+ bubbles: false,
2036
+ cancelable: false
2037
+ }
2038
+ },
2039
+ canPlayThrough: {
2040
+ EventType: "Event",
2041
+ defaultInit: {
2042
+ bubbles: false,
2043
+ cancelable: false
2044
+ }
2045
+ },
2046
+ durationChange: {
2047
+ EventType: "Event",
2048
+ defaultInit: {
2049
+ bubbles: false,
2050
+ cancelable: false
2051
+ }
2052
+ },
2053
+ emptied: {
2054
+ EventType: "Event",
2055
+ defaultInit: {
2056
+ bubbles: false,
2057
+ cancelable: false
2058
+ }
2059
+ },
2060
+ encrypted: {
2061
+ EventType: "Event",
2062
+ defaultInit: {
2063
+ bubbles: false,
2064
+ cancelable: false
2065
+ }
2066
+ },
2067
+ ended: {
2068
+ EventType: "Event",
2069
+ defaultInit: {
2070
+ bubbles: false,
2071
+ cancelable: false
2072
+ }
2073
+ },
2074
+ loadedData: {
2075
+ EventType: "Event",
2076
+ defaultInit: {
2077
+ bubbles: false,
2078
+ cancelable: false
2079
+ }
2080
+ },
2081
+ loadedMetadata: {
2082
+ EventType: "Event",
2083
+ defaultInit: {
2084
+ bubbles: false,
2085
+ cancelable: false
2086
+ }
2087
+ },
2088
+ loadStart: {
2089
+ EventType: "ProgressEvent",
2090
+ defaultInit: {
2091
+ bubbles: false,
2092
+ cancelable: false
2093
+ }
2094
+ },
2095
+ pause: {
2096
+ EventType: "Event",
2097
+ defaultInit: {
2098
+ bubbles: false,
2099
+ cancelable: false
2100
+ }
2101
+ },
2102
+ play: {
2103
+ EventType: "Event",
2104
+ defaultInit: {
2105
+ bubbles: false,
2106
+ cancelable: false
2107
+ }
2108
+ },
2109
+ playing: {
2110
+ EventType: "Event",
2111
+ defaultInit: {
2112
+ bubbles: false,
2113
+ cancelable: false
2114
+ }
2115
+ },
2116
+ progress: {
2117
+ EventType: "ProgressEvent",
2118
+ defaultInit: {
2119
+ bubbles: false,
2120
+ cancelable: false
2121
+ }
2122
+ },
2123
+ rateChange: {
2124
+ EventType: "Event",
2125
+ defaultInit: {
2126
+ bubbles: false,
2127
+ cancelable: false
2128
+ }
2129
+ },
2130
+ seeked: {
2131
+ EventType: "Event",
2132
+ defaultInit: {
2133
+ bubbles: false,
2134
+ cancelable: false
2135
+ }
2136
+ },
2137
+ seeking: {
2138
+ EventType: "Event",
2139
+ defaultInit: {
2140
+ bubbles: false,
2141
+ cancelable: false
2142
+ }
2143
+ },
2144
+ stalled: {
2145
+ EventType: "Event",
2146
+ defaultInit: {
2147
+ bubbles: false,
2148
+ cancelable: false
2149
+ }
2150
+ },
2151
+ suspend: {
2152
+ EventType: "Event",
2153
+ defaultInit: {
2154
+ bubbles: false,
2155
+ cancelable: false
2156
+ }
2157
+ },
2158
+ timeUpdate: {
2159
+ EventType: "Event",
2160
+ defaultInit: {
2161
+ bubbles: false,
2162
+ cancelable: false
2163
+ }
2164
+ },
2165
+ volumeChange: {
2166
+ EventType: "Event",
2167
+ defaultInit: {
2168
+ bubbles: false,
2169
+ cancelable: false
2170
+ }
2171
+ },
2172
+ waiting: {
2173
+ EventType: "Event",
2174
+ defaultInit: {
2175
+ bubbles: false,
2176
+ cancelable: false
2177
+ }
2178
+ },
2179
+ // Events
2180
+ load: {
2181
+ // TODO: load events can be UIEvent or Event depending on what generated them
2182
+ // This is where this abstraction breaks down.
2183
+ // But the common targets are <img />, <script /> and window.
2184
+ // Neither of these targets receive a UIEvent
2185
+ EventType: "Event",
2186
+ defaultInit: {
2187
+ bubbles: false,
2188
+ cancelable: false
2189
+ }
2190
+ },
2191
+ error: {
2192
+ EventType: "Event",
2193
+ defaultInit: {
2194
+ bubbles: false,
2195
+ cancelable: false
2196
+ }
2197
+ },
2198
+ // Animation Events
2199
+ animationStart: {
2200
+ EventType: "AnimationEvent",
2201
+ defaultInit: {
2202
+ bubbles: true,
2203
+ cancelable: false
2204
+ }
2205
+ },
2206
+ animationEnd: {
2207
+ EventType: "AnimationEvent",
2208
+ defaultInit: {
2209
+ bubbles: true,
2210
+ cancelable: false
2211
+ }
2212
+ },
2213
+ animationIteration: {
2214
+ EventType: "AnimationEvent",
2215
+ defaultInit: {
2216
+ bubbles: true,
2217
+ cancelable: false
2218
+ }
2219
+ },
2220
+ // Transition Events
2221
+ transitionCancel: {
2222
+ EventType: "TransitionEvent",
2223
+ defaultInit: {
2224
+ bubbles: true,
2225
+ cancelable: false
2226
+ }
2227
+ },
2228
+ transitionEnd: {
2229
+ EventType: "TransitionEvent",
2230
+ defaultInit: {
2231
+ bubbles: true,
2232
+ cancelable: true
2233
+ }
2234
+ },
2235
+ transitionRun: {
2236
+ EventType: "TransitionEvent",
2237
+ defaultInit: {
2238
+ bubbles: true,
2239
+ cancelable: false
2240
+ }
2241
+ },
2242
+ transitionStart: {
2243
+ EventType: "TransitionEvent",
2244
+ defaultInit: {
2245
+ bubbles: true,
2246
+ cancelable: false
2247
+ }
2248
+ },
2249
+ // pointer events
2250
+ pointerOver: {
2251
+ EventType: "PointerEvent",
2252
+ defaultInit: {
2253
+ bubbles: true,
2254
+ cancelable: true,
2255
+ composed: true
2256
+ }
2257
+ },
2258
+ pointerEnter: {
2259
+ EventType: "PointerEvent",
2260
+ defaultInit: {
2261
+ bubbles: false,
2262
+ cancelable: false
2263
+ }
2264
+ },
2265
+ pointerDown: {
2266
+ EventType: "PointerEvent",
2267
+ defaultInit: {
2268
+ bubbles: true,
2269
+ cancelable: true,
2270
+ composed: true
2271
+ }
2272
+ },
2273
+ pointerMove: {
2274
+ EventType: "PointerEvent",
2275
+ defaultInit: {
2276
+ bubbles: true,
2277
+ cancelable: true,
2278
+ composed: true
2279
+ }
2280
+ },
2281
+ pointerUp: {
2282
+ EventType: "PointerEvent",
2283
+ defaultInit: {
2284
+ bubbles: true,
2285
+ cancelable: true,
2286
+ composed: true
2287
+ }
2288
+ },
2289
+ pointerCancel: {
2290
+ EventType: "PointerEvent",
2291
+ defaultInit: {
2292
+ bubbles: true,
2293
+ cancelable: false,
2294
+ composed: true
2295
+ }
2296
+ },
2297
+ pointerOut: {
2298
+ EventType: "PointerEvent",
2299
+ defaultInit: {
2300
+ bubbles: true,
2301
+ cancelable: true,
2302
+ composed: true
2303
+ }
2304
+ },
2305
+ pointerLeave: {
2306
+ EventType: "PointerEvent",
2307
+ defaultInit: {
2308
+ bubbles: false,
2309
+ cancelable: false
2310
+ }
2311
+ },
2312
+ gotPointerCapture: {
2313
+ EventType: "PointerEvent",
2314
+ defaultInit: {
2315
+ bubbles: true,
2316
+ cancelable: false,
2317
+ composed: true
2318
+ }
2319
+ },
2320
+ lostPointerCapture: {
2321
+ EventType: "PointerEvent",
2322
+ defaultInit: {
2323
+ bubbles: true,
2324
+ cancelable: false,
2325
+ composed: true
2326
+ }
2327
+ },
2328
+ // history events
2329
+ popState: {
2330
+ EventType: "PopStateEvent",
2331
+ defaultInit: {
2332
+ bubbles: true,
2333
+ cancelable: false
2334
+ }
2335
+ },
2336
+ // window events
2337
+ offline: {
2338
+ EventType: "Event",
2339
+ defaultInit: {
2340
+ bubbles: false,
2341
+ cancelable: false
2342
+ }
2343
+ },
2344
+ online: {
2345
+ EventType: "Event",
2346
+ defaultInit: {
2347
+ bubbles: false,
2348
+ cancelable: false
2349
+ }
2350
+ },
2351
+ pageHide: {
2352
+ EventType: "PageTransitionEvent",
2353
+ defaultInit: {
2354
+ bubbles: true,
2355
+ cancelable: true
2356
+ }
2357
+ },
2358
+ pageShow: {
2359
+ EventType: "PageTransitionEvent",
2360
+ defaultInit: {
2361
+ bubbles: true,
2362
+ cancelable: true
2363
+ }
2364
+ }
2365
+ };
2366
+ const eventAliasMap = {
2367
+ doubleClick: "dblClick"
2368
+ };
2369
+ function fireEvent(element, event) {
2370
+ return getConfig().eventWrapper(() => {
2371
+ if (!event) {
2372
+ throw new Error("Unable to fire an event - please provide an event object.");
2373
+ }
2374
+ if (!element) {
2375
+ throw new Error('Unable to fire a "' + event.type + '" event - please provide a DOM element.');
2376
+ }
2377
+ return element.dispatchEvent(event);
2378
+ });
2379
+ }
2380
+ function createEvent(eventName, node, init, _temp) {
2381
+ let {
2382
+ EventType = "Event",
2383
+ defaultInit = {}
2384
+ } = _temp === void 0 ? {} : _temp;
2385
+ if (!node) {
2386
+ throw new Error('Unable to fire a "' + eventName + '" event - please provide a DOM element.');
2387
+ }
2388
+ const eventInit = {
2389
+ ...defaultInit,
2390
+ ...init
2391
+ };
2392
+ const {
2393
+ target: {
2394
+ value,
2395
+ files,
2396
+ ...targetProperties
2397
+ } = {}
2398
+ } = eventInit;
2399
+ if (value !== void 0) {
2400
+ setNativeValue(node, value);
2401
+ }
2402
+ if (files !== void 0) {
2403
+ Object.defineProperty(node, "files", {
2404
+ configurable: true,
2405
+ enumerable: true,
2406
+ writable: true,
2407
+ value: files
2408
+ });
2409
+ }
2410
+ Object.assign(node, targetProperties);
2411
+ const window2 = getWindowFromNode(node);
2412
+ const EventConstructor = window2[EventType] || window2.Event;
2413
+ let event;
2414
+ if (typeof EventConstructor === "function") {
2415
+ event = new EventConstructor(eventName, eventInit);
2416
+ } else {
2417
+ event = window2.document.createEvent(EventType);
2418
+ const {
2419
+ bubbles,
2420
+ cancelable,
2421
+ detail,
2422
+ ...otherInit
2423
+ } = eventInit;
2424
+ event.initEvent(eventName, bubbles, cancelable, detail);
2425
+ Object.keys(otherInit).forEach((eventKey) => {
2426
+ event[eventKey] = otherInit[eventKey];
2427
+ });
2428
+ }
2429
+ const dataTransferProperties = ["dataTransfer", "clipboardData"];
2430
+ dataTransferProperties.forEach((dataTransferKey) => {
2431
+ const dataTransferValue = eventInit[dataTransferKey];
2432
+ if (typeof dataTransferValue === "object") {
2433
+ if (typeof window2.DataTransfer === "function") {
2434
+ Object.defineProperty(event, dataTransferKey, {
2435
+ value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => {
2436
+ Object.defineProperty(acc, propName, {
2437
+ value: dataTransferValue[propName]
2438
+ });
2439
+ return acc;
2440
+ }, new window2.DataTransfer())
2441
+ });
2442
+ } else {
2443
+ Object.defineProperty(event, dataTransferKey, {
2444
+ value: dataTransferValue
2445
+ });
2446
+ }
2447
+ }
2448
+ });
2449
+ return event;
2450
+ }
2451
+ Object.keys(eventMap).forEach((key) => {
2452
+ const {
2453
+ EventType,
2454
+ defaultInit
2455
+ } = eventMap[key];
2456
+ const eventName = key.toLowerCase();
2457
+ createEvent[key] = (node, init) => createEvent(eventName, node, init, {
2458
+ EventType,
2459
+ defaultInit
2460
+ });
2461
+ fireEvent[key] = (node, init) => fireEvent(node, createEvent[key](node, init));
2462
+ });
2463
+ function setNativeValue(element, value) {
2464
+ const {
2465
+ set: valueSetter
2466
+ } = Object.getOwnPropertyDescriptor(element, "value") || {};
2467
+ const prototype = Object.getPrototypeOf(element);
2468
+ const {
2469
+ set: prototypeValueSetter
2470
+ } = Object.getOwnPropertyDescriptor(prototype, "value") || {};
2471
+ if (prototypeValueSetter && valueSetter !== prototypeValueSetter) {
2472
+ prototypeValueSetter.call(element, value);
2473
+ } else {
2474
+ if (valueSetter) {
2475
+ valueSetter.call(element, value);
2476
+ } else {
2477
+ throw new Error("The given element does not have a value setter");
2478
+ }
2479
+ }
2480
+ }
2481
+ Object.keys(eventAliasMap).forEach((aliasKey) => {
2482
+ const key = eventAliasMap[aliasKey];
2483
+ fireEvent[aliasKey] = function() {
2484
+ return fireEvent[key](...arguments);
2485
+ };
2486
+ });
2487
+ function unindent(string) {
2488
+ return string.replace(/[ \t]*[\n][ \t]*/g, "\n");
2489
+ }
2490
+ function encode(value) {
2491
+ return lzString.compressToEncodedURIComponent(unindent(value));
2492
+ }
2493
+ function getPlaygroundUrl(markup) {
2494
+ return "https://testing-playground.com/#markup=" + encode(markup);
2495
+ }
2496
+ const debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach((el) => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options);
2497
+ const logTestingPlaygroundURL = function(element) {
2498
+ if (element === void 0) {
2499
+ element = getDocument().body;
2500
+ }
2501
+ if (!element || !("innerHTML" in element)) {
2502
+ console.log("The element you're providing isn't a valid DOM element.");
2503
+ return;
2504
+ }
2505
+ if (!element.innerHTML) {
2506
+ console.log("The provided element doesn't have any children.");
2507
+ return;
2508
+ }
2509
+ const playgroundUrl = getPlaygroundUrl(element.innerHTML);
2510
+ console.log("Open this URL in your browser\n\n" + playgroundUrl);
2511
+ return playgroundUrl;
2512
+ };
2513
+ const initialValue = {
2514
+ debug,
2515
+ logTestingPlaygroundURL
2516
+ };
2517
+ const screen = typeof document !== "undefined" && document.body ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => {
2518
+ helpers[key] = () => {
2519
+ 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");
2520
+ };
2521
+ return helpers;
2522
+ }, initialValue);
2523
+ exports.prettyFormat = index;
2524
+ exports.buildQueries = buildQueries;
2525
+ exports.configure = configure;
2526
+ exports.createEvent = createEvent;
2527
+ exports.findAllByAltText = findAllByAltText;
2528
+ exports.findAllByDisplayValue = findAllByDisplayValue;
2529
+ exports.findAllByLabelText = findAllByLabelText;
2530
+ exports.findAllByPlaceholderText = findAllByPlaceholderText;
2531
+ exports.findAllByRole = findAllByRole;
2532
+ exports.findAllByTestId = findAllByTestId;
2533
+ exports.findAllByText = findAllByText;
2534
+ exports.findAllByTitle = findAllByTitle;
2535
+ exports.findByAltText = findByAltText;
2536
+ exports.findByDisplayValue = findByDisplayValue;
2537
+ exports.findByLabelText = findByLabelText;
2538
+ exports.findByPlaceholderText = findByPlaceholderText;
2539
+ exports.findByRole = findByRole;
2540
+ exports.findByTestId = findByTestId;
2541
+ exports.findByText = findByText;
2542
+ exports.findByTitle = findByTitle;
2543
+ exports.fireEvent = fireEvent;
2544
+ exports.getAllByAltText = getAllByAltText;
2545
+ exports.getAllByDisplayValue = getAllByDisplayValue;
2546
+ exports.getAllByLabelText = getAllByLabelTextWithSuggestions;
2547
+ exports.getAllByPlaceholderText = getAllByPlaceholderText;
2548
+ exports.getAllByRole = getAllByRole;
2549
+ exports.getAllByTestId = getAllByTestId;
2550
+ exports.getAllByText = getAllByText;
2551
+ exports.getAllByTitle = getAllByTitle;
2552
+ exports.getByAltText = getByAltText;
2553
+ exports.getByDisplayValue = getByDisplayValue;
2554
+ exports.getByLabelText = getByLabelTextWithSuggestions;
2555
+ exports.getByPlaceholderText = getByPlaceholderText;
2556
+ exports.getByRole = getByRole;
2557
+ exports.getByTestId = getByTestId;
2558
+ exports.getByText = getByText;
2559
+ exports.getByTitle = getByTitle;
2560
+ exports.getConfig = getConfig;
2561
+ exports.getDefaultNormalizer = getDefaultNormalizer;
2562
+ exports.getElementError = getElementError;
2563
+ exports.getMultipleElementsFoundError = getMultipleElementsFoundError;
2564
+ exports.getNodeText = getNodeText;
2565
+ exports.getQueriesForElement = getQueriesForElement;
2566
+ exports.getRoles = getRoles;
2567
+ exports.getSuggestedQuery = getSuggestedQuery;
2568
+ exports.isInaccessible = isInaccessible;
2569
+ exports.logDOM = logDOM;
2570
+ exports.logRoles = logRoles;
2571
+ exports.makeFindQuery = makeFindQuery;
2572
+ exports.makeGetAllQuery = makeGetAllQuery;
2573
+ exports.makeSingleQuery = makeSingleQuery;
2574
+ exports.prettyDOM = prettyDOM;
2575
+ exports.queries = queries;
2576
+ exports.queryAllByAltText = queryAllByAltTextWithSuggestions;
2577
+ exports.queryAllByAttribute = queryAllByAttribute;
2578
+ exports.queryAllByDisplayValue = queryAllByDisplayValueWithSuggestions;
2579
+ exports.queryAllByLabelText = queryAllByLabelTextWithSuggestions;
2580
+ exports.queryAllByPlaceholderText = queryAllByPlaceholderTextWithSuggestions;
2581
+ exports.queryAllByRole = queryAllByRoleWithSuggestions;
2582
+ exports.queryAllByTestId = queryAllByTestIdWithSuggestions;
2583
+ exports.queryAllByText = queryAllByTextWithSuggestions;
2584
+ exports.queryAllByTitle = queryAllByTitleWithSuggestions;
2585
+ exports.queryByAltText = queryByAltText;
2586
+ exports.queryByAttribute = queryByAttribute;
2587
+ exports.queryByDisplayValue = queryByDisplayValue;
2588
+ exports.queryByLabelText = queryByLabelText;
2589
+ exports.queryByPlaceholderText = queryByPlaceholderText;
2590
+ exports.queryByRole = queryByRole;
2591
+ exports.queryByTestId = queryByTestId;
2592
+ exports.queryByText = queryByText;
2593
+ exports.queryByTitle = queryByTitle;
2594
+ exports.queryHelpers = queryHelpers;
2595
+ exports.screen = screen;
2596
+ exports.waitFor = waitForWrapper;
2597
+ exports.waitForElementToBeRemoved = waitForElementToBeRemoved;
2598
+ exports.within = getQueriesForElement;
2599
+ exports.wrapAllByQueryWithSuggestion = wrapAllByQueryWithSuggestion;
2600
+ exports.wrapSingleQueryWithSuggestion = wrapSingleQueryWithSuggestion;