govuk_publishing_components 35.3.2 → 35.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +11 -5
  3. data/app/assets/stylesheets/component_guide/application.scss +37 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +8 -59
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +10 -6
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
  7. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +24 -0
  8. data/app/views/govuk_publishing_components/component_guide/example.html.erb +1 -1
  9. data/app/views/govuk_publishing_components/component_guide/preview.html.erb +1 -1
  10. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +49 -57
  12. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +3 -3
  13. data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
  14. data/app/views/govuk_publishing_components/components/_share_links.html.erb +6 -2
  15. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -3
  17. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +5 -5
  18. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +1 -0
  19. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -0
  20. data/config/locales/cy.yml +1 -1
  21. data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +4 -0
  22. data/lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb +1 -1
  23. data/lib/govuk_publishing_components/version.rb +1 -1
  24. data/node_modules/axe-core/axe.d.ts +77 -6
  25. data/node_modules/axe-core/axe.js +955 -600
  26. data/node_modules/axe-core/axe.min.js +2 -2
  27. data/node_modules/axe-core/locales/_template.json +6 -6
  28. data/node_modules/axe-core/locales/ja.json +91 -11
  29. data/node_modules/axe-core/package.json +5 -5
  30. data/node_modules/axe-core/sri-history.json +4 -0
  31. data/node_modules/govuk-frontend/README.md +4 -5
  32. data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
  33. data/node_modules/govuk-frontend/govuk/all.js +738 -258
  34. data/node_modules/govuk-frontend/govuk/all.js.map +1 -1
  35. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +11 -7
  36. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js.map +1 -1
  37. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
  38. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js.map +1 -0
  39. data/node_modules/govuk-frontend/govuk/common/index.js +16 -4
  40. data/node_modules/govuk-frontend/govuk/common/index.js.map +1 -1
  41. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +20 -10
  42. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js.map +1 -1
  43. data/node_modules/govuk-frontend/govuk/common.js +16 -4
  44. data/node_modules/govuk-frontend/govuk/common.js.map +1 -1
  45. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +3 -3
  46. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +234 -86
  47. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js.map +1 -1
  48. data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +32 -13
  49. data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +8 -2
  50. data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +1 -0
  51. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +1 -1
  52. data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +1 -1
  53. data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +1 -1
  54. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -1
  55. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +12 -12
  56. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -1
  57. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +8 -6
  58. data/node_modules/govuk-frontend/govuk/components/button/button.js +54 -19
  59. data/node_modules/govuk-frontend/govuk/components/button/button.js.map +1 -1
  60. data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +11 -1
  61. data/node_modules/govuk-frontend/govuk/components/button/macro-options.json +7 -1
  62. data/node_modules/govuk-frontend/govuk/components/button/template.njk +1 -1
  63. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +170 -76
  64. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js.map +1 -1
  65. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +24 -24
  66. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +3 -3
  67. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
  68. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +75 -24
  69. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js.map +1 -1
  70. data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +47 -47
  71. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +1 -1
  72. data/node_modules/govuk-frontend/govuk/components/checkboxes/template.njk +3 -3
  73. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +24 -24
  74. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +1 -1
  75. data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +26 -26
  76. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
  77. data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
  78. data/node_modules/govuk-frontend/govuk/components/details/details.js +39 -13
  79. data/node_modules/govuk-frontend/govuk/components/details/details.js.map +1 -1
  80. data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +1 -1
  81. data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +1 -1
  82. data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +10 -10
  83. data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -1
  84. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +67 -27
  85. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js.map +1 -1
  86. data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +19 -19
  87. data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +1 -1
  88. data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +19 -19
  89. data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +1 -1
  90. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
  91. data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +14 -14
  92. data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +7 -1
  93. data/node_modules/govuk-frontend/govuk/components/file-upload/template.njk +2 -1
  94. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
  95. data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +24 -24
  96. data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +1 -1
  97. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +22 -22
  98. data/node_modules/govuk-frontend/govuk/components/header/header.js +46 -14
  99. data/node_modules/govuk-frontend/govuk/components/header/header.js.map +1 -1
  100. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +1 -1
  101. data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
  102. data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +1 -1
  103. data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +1 -1
  104. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
  105. data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +54 -41
  106. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +7 -1
  107. data/node_modules/govuk-frontend/govuk/components/input/template.njk +2 -1
  108. data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +1 -1
  109. data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +1 -1
  110. data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +6 -6
  111. data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
  112. data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +1 -1
  113. data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +1 -1
  114. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +49 -22
  115. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js.map +1 -1
  116. data/node_modules/govuk-frontend/govuk/components/pagination/fixtures.json +16 -16
  117. data/node_modules/govuk-frontend/govuk/components/pagination/macro-options.json +1 -1
  118. data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +10 -10
  119. data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +1 -1
  120. data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +1 -1
  121. data/node_modules/govuk-frontend/govuk/components/phase-banner/macro-options.json +1 -1
  122. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
  123. data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +46 -46
  124. data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +1 -1
  125. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +65 -22
  126. data/node_modules/govuk-frontend/govuk/components/radios/radios.js.map +1 -1
  127. data/node_modules/govuk-frontend/govuk/components/radios/template.njk +2 -2
  128. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
  129. data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +19 -20
  130. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +7 -1
  131. data/node_modules/govuk-frontend/govuk/components/select/template.njk +5 -2
  132. data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +1 -1
  133. data/node_modules/govuk-frontend/govuk/components/skip-link/macro-options.json +1 -1
  134. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +41 -13
  135. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js.map +1 -1
  136. data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +34 -34
  137. data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +1 -1
  138. data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +21 -21
  139. data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +1 -1
  140. data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +15 -15
  141. data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
  142. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +178 -60
  143. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js.map +1 -1
  144. data/node_modules/govuk-frontend/govuk/components/tabs/template.njk +1 -1
  145. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
  146. data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +1 -1
  147. data/node_modules/govuk-frontend/govuk/components/tag/macro-options.json +1 -1
  148. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
  149. data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +18 -18
  150. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +7 -1
  151. data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +2 -1
  152. data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +9 -5
  153. data/node_modules/govuk-frontend/govuk/components/warning-text/macro-options.json +3 -3
  154. data/node_modules/govuk-frontend/govuk/components/warning-text/template.njk +1 -1
  155. data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
  156. data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  157. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
  158. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  159. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
  160. data/node_modules/govuk-frontend/govuk/i18n.js +38 -30
  161. data/node_modules/govuk-frontend/govuk/i18n.js.map +1 -1
  162. data/node_modules/govuk-frontend/govuk/macros/i18n.njk +12 -11
  163. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
  164. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
  165. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
  166. data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
  167. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
  168. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +2 -1
  169. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js.map +1 -1
  170. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +2 -1
  171. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js.map +1 -1
  172. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +2 -1
  173. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js.map +1 -1
  174. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +10 -3
  175. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js.map +1 -1
  176. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +4 -1
  177. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js.map +1 -1
  178. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +13 -7
  179. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js.map +1 -1
  180. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +2 -1
  181. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js.map +1 -1
  182. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +8 -2
  183. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js.map +1 -1
  184. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +8 -2
  185. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js.map +1 -1
  186. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +4 -1
  187. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js.map +1 -1
  188. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +10 -3
  189. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js.map +1 -1
  190. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +4 -1
  191. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js.map +1 -1
  192. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +2 -1
  193. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js.map +1 -1
  194. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +3 -2
  195. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js.map +1 -1
  196. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +2 -1
  197. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js.map +1 -1
  198. data/node_modules/govuk-frontend/govuk-esm/all.mjs +81 -60
  199. data/node_modules/govuk-frontend/govuk-esm/all.mjs.map +1 -0
  200. data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs +12 -8
  201. data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs.map +1 -0
  202. data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs +9 -0
  203. data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs.map +1 -0
  204. data/node_modules/govuk-frontend/govuk-esm/common/index.mjs +44 -29
  205. data/node_modules/govuk-frontend/govuk-esm/common/index.mjs.map +1 -0
  206. data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs +15 -9
  207. data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs.map +1 -0
  208. data/node_modules/govuk-frontend/govuk-esm/common.mjs +3 -5
  209. data/node_modules/govuk-frontend/govuk-esm/common.mjs.map +1 -0
  210. data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs +319 -211
  211. data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs.map +1 -0
  212. data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs +47 -30
  213. data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs.map +1 -0
  214. data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs +169 -115
  215. data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs.map +1 -0
  216. data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs +88 -51
  217. data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs.map +1 -0
  218. data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs +64 -54
  219. data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs.map +1 -0
  220. data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs +69 -50
  221. data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs.map +1 -0
  222. data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs +59 -35
  223. data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs.map +1 -0
  224. data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs +36 -25
  225. data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs.map +1 -0
  226. data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs +67 -38
  227. data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs.map +1 -0
  228. data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs +49 -32
  229. data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs.map +1 -0
  230. data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs +263 -163
  231. data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs.map +1 -0
  232. data/node_modules/govuk-frontend/govuk-esm/i18n.mjs +68 -57
  233. data/node_modules/govuk-frontend/govuk-esm/i18n.mjs.map +1 -0
  234. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs +5 -3
  235. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs.map +1 -0
  236. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs +4 -2
  237. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs.map +1 -0
  238. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs +4 -2
  239. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs.map +1 -0
  240. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs +7 -4
  241. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs.map +1 -0
  242. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs +5 -2
  243. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs.map +1 -0
  244. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs +13 -10
  245. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs.map +1 -0
  246. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs +4 -2
  247. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs.map +1 -0
  248. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs +6 -3
  249. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs.map +1 -0
  250. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs +6 -3
  251. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs.map +1 -0
  252. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs +5 -2
  253. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs.map +1 -0
  254. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs +7 -4
  255. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs.map +1 -0
  256. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs +5 -2
  257. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs.map +1 -0
  258. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs +4 -2
  259. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs.map +1 -0
  260. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs +5 -3
  261. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs.map +1 -0
  262. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs +4 -2
  263. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs.map +1 -0
  264. data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
  265. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +2 -1
  266. data/node_modules/govuk-frontend/package.json +3 -2
  267. metadata +43 -6
  268. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px.png → dbt_crest_13px.png} +0 -0
  269. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px_x2.png → dbt_crest_13px_x2.png} +0 -0
  270. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px.png → dbt_crest_18px.png} +0 -0
  271. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px_x2.png → dbt_crest_18px_x2.png} +0 -0
@@ -1,4 +1,4 @@
1
- /*! axe v4.6.3
1
+ /*! axe v4.7.0
2
2
  * Copyright (c) 2023 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(obj);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.6.3';
25
+ axe.version = '4.7.0';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -7071,6 +7071,9 @@
7071
7071
  getElementStack: function getElementStack() {
7072
7072
  return get_element_stack_default;
7073
7073
  },
7074
+ getModalDialog: function getModalDialog() {
7075
+ return get_modal_dialog_default;
7076
+ },
7074
7077
  getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {
7075
7078
  return get_overflow_hidden_ancestors_default;
7076
7079
  },
@@ -7128,6 +7131,9 @@
7128
7131
  isInTextBlock: function isInTextBlock() {
7129
7132
  return is_in_text_block_default;
7130
7133
  },
7134
+ isInert: function isInert() {
7135
+ return _isInert;
7136
+ },
7131
7137
  isModalOpen: function isModalOpen() {
7132
7138
  return is_modal_open_default;
7133
7139
  },
@@ -7549,6 +7555,11 @@
7549
7555
  var top = _ref14.top, right = _ref14.right, bottom = _ref14.bottom, left = _ref14.left;
7550
7556
  return y >= top && x <= right && y <= bottom && x >= left;
7551
7557
  }
7558
+ var ROOT_ORDER = 0;
7559
+ var DEFAULT_ORDER = .1;
7560
+ var FLOAT_ORDER = .2;
7561
+ var POSITION_STATIC_ORDER = .3;
7562
+ var nodeIndex = 0;
7552
7563
  function _createGrid() {
7553
7564
  var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
7554
7565
  var rootGrid = arguments.length > 1 ? arguments[1] : undefined;
@@ -7563,7 +7574,8 @@
7563
7574
  if (!vNode) {
7564
7575
  vNode = new virtual_node_default(document.documentElement);
7565
7576
  }
7566
- vNode._stackingOrder = [ 0 ];
7577
+ nodeIndex = 0;
7578
+ vNode._stackingOrder = [ createContext(ROOT_ORDER, null) ];
7567
7579
  (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();
7568
7580
  addNodeToGrid(rootGrid, vNode);
7569
7581
  if (_getScroll(vNode.actualNode)) {
@@ -7587,7 +7599,7 @@
7587
7599
  if (!_vNode) {
7588
7600
  _vNode = new axe.VirtualNode(node, parentVNode);
7589
7601
  }
7590
- _vNode._stackingOrder = getStackingOrder(_vNode, parentVNode);
7602
+ _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);
7591
7603
  var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);
7592
7604
  var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
7593
7605
  if (_getScroll(_vNode.actualNode)) {
@@ -7663,39 +7675,60 @@
7663
7675
  if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) {
7664
7676
  return true;
7665
7677
  }
7666
- if (zIndex !== 'auto' && parentVNode) {
7667
- var parentDsiplay = parentVNode.getComputedStylePropertyValue('display');
7668
- if ([ 'flex', 'inline-flex', 'inline flex', 'grid', 'inline-grid', 'inline grid' ].includes(parentDsiplay)) {
7669
- return true;
7670
- }
7678
+ if (zIndex !== 'auto' && isFlexOrGridContainer(parentVNode)) {
7679
+ return true;
7671
7680
  }
7672
7681
  return false;
7673
7682
  }
7674
- function getStackingOrder(vNode, parentVNode) {
7683
+ function isFlexOrGridContainer(vNode) {
7684
+ if (!vNode) {
7685
+ return false;
7686
+ }
7687
+ var display = vNode.getComputedStylePropertyValue('display');
7688
+ return [ 'flex', 'inline-flex', 'grid', 'inline-grid' ].includes(display);
7689
+ }
7690
+ function createStackingOrder(vNode, parentVNode, nodeIndex3) {
7675
7691
  var stackingOrder = parentVNode._stackingOrder.slice();
7676
- var zIndex = vNode.getComputedStylePropertyValue('z-index');
7677
- var positioned = vNode.getComputedStylePropertyValue('position') !== 'static';
7678
- var floated = vNode.getComputedStylePropertyValue('float') !== 'none';
7679
- if (positioned && ![ 'auto', '0' ].includes(zIndex)) {
7680
- while (stackingOrder.find(function(value) {
7681
- return value % 1 !== 0;
7682
- })) {
7683
- var index = stackingOrder.findIndex(function(value) {
7684
- return value % 1 !== 0;
7685
- });
7686
- stackingOrder.splice(index, 1);
7692
+ if (!isStackingContext(vNode, parentVNode)) {
7693
+ if (vNode.getComputedStylePropertyValue('position') !== 'static') {
7694
+ stackingOrder.push(createContext(POSITION_STATIC_ORDER, vNode));
7695
+ } else if (vNode.getComputedStylePropertyValue('float') !== 'none') {
7696
+ stackingOrder.push(createContext(FLOAT_ORDER, vNode));
7687
7697
  }
7688
- stackingOrder[stackingOrder.length - 1] = parseInt(zIndex);
7698
+ return stackingOrder;
7689
7699
  }
7690
- if (isStackingContext(vNode, parentVNode)) {
7691
- stackingOrder.push(0);
7692
- } else if (positioned) {
7693
- stackingOrder.push(.5);
7694
- } else if (floated) {
7695
- stackingOrder.push(.25);
7700
+ var index = stackingOrder.findIndex(function(_ref15) {
7701
+ var value = _ref15.value;
7702
+ return [ ROOT_ORDER, FLOAT_ORDER, POSITION_STATIC_ORDER ].includes(value);
7703
+ });
7704
+ if (index !== -1) {
7705
+ stackingOrder.splice(index, stackingOrder.length - index);
7706
+ }
7707
+ var zIndex = getRealZIndex(vNode, parentVNode);
7708
+ if (![ 'auto', '0' ].includes(zIndex)) {
7709
+ stackingOrder.push(createContext(parseInt(zIndex), vNode));
7710
+ return stackingOrder;
7711
+ }
7712
+ var _float = nodeIndex3.toString();
7713
+ while (_float.length < 10) {
7714
+ _float = '0' + _float;
7696
7715
  }
7716
+ stackingOrder.push(createContext(parseFloat(''.concat(DEFAULT_ORDER).concat(_float)), vNode));
7697
7717
  return stackingOrder;
7698
7718
  }
7719
+ function createContext(value, vNode) {
7720
+ return {
7721
+ value: value,
7722
+ vNode: vNode
7723
+ };
7724
+ }
7725
+ function getRealZIndex(vNode, parentVNode) {
7726
+ var position = vNode.getComputedStylePropertyValue('position');
7727
+ if (position === 'static' && !isFlexOrGridContainer(parentVNode)) {
7728
+ return 'auto';
7729
+ }
7730
+ return vNode.getComputedStylePropertyValue('z-index');
7731
+ }
7699
7732
  function findScrollRegionParent(vNode, parentVNode) {
7700
7733
  var scrollRegionParent = null;
7701
7734
  var checkedNodes = [ vNode ];
@@ -7742,9 +7775,9 @@
7742
7775
  }
7743
7776
  }, {
7744
7777
  key: 'getCellFromPoint',
7745
- value: function getCellFromPoint(_ref15) {
7778
+ value: function getCellFromPoint(_ref16) {
7746
7779
  var _this$cells, _row;
7747
- var x = _ref15.x, y = _ref15.y;
7780
+ var x = _ref16.x, y = _ref16.y;
7748
7781
  assert_default(this.boundaries, 'Grid does not have cells added');
7749
7782
  var rowIndex = this.toGridIndex(y);
7750
7783
  var colIndex = this.toGridIndex(x);
@@ -7774,8 +7807,8 @@
7774
7807
  }
7775
7808
  }, {
7776
7809
  key: 'getGridPositionOfRect',
7777
- value: function getGridPositionOfRect(_ref16) {
7778
- var top = _ref16.top, right = _ref16.right, bottom = _ref16.bottom, left = _ref16.left;
7810
+ value: function getGridPositionOfRect(_ref17) {
7811
+ var top = _ref17.top, right = _ref17.right, bottom = _ref17.bottom, left = _ref17.left;
7779
7812
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
7780
7813
  top = this.toGridIndex(top - margin);
7781
7814
  right = this.toGridIndex(right + margin - 1);
@@ -7841,13 +7874,114 @@
7841
7874
  }
7842
7875
  return hasFixedPosition(vNode.parent);
7843
7876
  });
7877
+ function _getIntersectionRect(rect1, rect2) {
7878
+ var leftX = Math.max(rect1.left, rect2.left);
7879
+ var rightX = Math.min(rect1.right, rect2.right);
7880
+ var topY = Math.max(rect1.top, rect2.top);
7881
+ var bottomY = Math.min(rect1.bottom, rect2.bottom);
7882
+ if (leftX >= rightX || topY >= bottomY) {
7883
+ return null;
7884
+ }
7885
+ return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
7886
+ }
7887
+ var getModalDialog = memoize_default(function getModalDialogMemoized() {
7888
+ var _dialogs$find;
7889
+ if (!axe._tree) {
7890
+ return null;
7891
+ }
7892
+ var dialogs = query_selector_all_filter_default(axe._tree[0], 'dialog[open]', function(vNode) {
7893
+ var rect = vNode.boundingClientRect;
7894
+ var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);
7895
+ return stack.includes(vNode.actualNode) && _isVisibleOnScreen(vNode);
7896
+ });
7897
+ if (!dialogs.length) {
7898
+ return null;
7899
+ }
7900
+ var modalDialog = dialogs.find(function(dialog) {
7901
+ var rect = dialog.boundingClientRect;
7902
+ var stack = document.elementsFromPoint(rect.left - 10, rect.top - 10);
7903
+ return stack.includes(dialog.actualNode);
7904
+ });
7905
+ if (modalDialog) {
7906
+ return modalDialog;
7907
+ }
7908
+ return (_dialogs$find = dialogs.find(function(dialog) {
7909
+ var _getNodeFromGrid;
7910
+ var _ref18 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref18.vNode, rect = _ref18.rect;
7911
+ if (!vNode) {
7912
+ return false;
7913
+ }
7914
+ var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);
7915
+ return !stack.includes(vNode.actualNode);
7916
+ })) !== null && _dialogs$find !== void 0 ? _dialogs$find : null;
7917
+ });
7918
+ var get_modal_dialog_default = getModalDialog;
7919
+ function getNodeFromGrid(dialog) {
7920
+ _createGrid();
7921
+ var grid = axe._tree[0]._grid;
7922
+ var viewRect = new window.DOMRect(0, 0, window.innerWidth, window.innerHeight);
7923
+ if (!grid) {
7924
+ return;
7925
+ }
7926
+ for (var row = 0; row < grid.cells.length; row++) {
7927
+ var cols = grid.cells[row];
7928
+ if (!cols) {
7929
+ continue;
7930
+ }
7931
+ for (var col = 0; col < cols.length; col++) {
7932
+ var cells = cols[col];
7933
+ if (!cells) {
7934
+ continue;
7935
+ }
7936
+ for (var _i6 = 0; _i6 < cells.length; _i6++) {
7937
+ var vNode = cells[_i6];
7938
+ var rect = vNode.boundingClientRect;
7939
+ var intersection = _getIntersectionRect(rect, viewRect);
7940
+ if (vNode.props.nodeName !== 'html' && vNode !== dialog && vNode.getComputedStylePropertyValue('pointer-events') !== 'none' && intersection) {
7941
+ return {
7942
+ vNode: vNode,
7943
+ rect: intersection
7944
+ };
7945
+ }
7946
+ }
7947
+ }
7948
+ }
7949
+ }
7950
+ function _isInert(vNode) {
7951
+ var _ref19 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref19.skipAncestors, isAncestor = _ref19.isAncestor;
7952
+ if (skipAncestors) {
7953
+ return isInertSelf(vNode, isAncestor);
7954
+ }
7955
+ return isInertAncestors(vNode, isAncestor);
7956
+ }
7957
+ var isInertSelf = memoize_default(function isInertSelfMemoized(vNode, isAncestor) {
7958
+ if (vNode.hasAttr('inert')) {
7959
+ return true;
7960
+ }
7961
+ if (!isAncestor && vNode.actualNode) {
7962
+ var modalDialog = get_modal_dialog_default();
7963
+ if (modalDialog && !_contains(modalDialog, vNode)) {
7964
+ return true;
7965
+ }
7966
+ }
7967
+ return false;
7968
+ });
7969
+ var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode, isAncestor) {
7970
+ if (isInertSelf(vNode, isAncestor)) {
7971
+ return true;
7972
+ }
7973
+ if (!vNode.parent) {
7974
+ return false;
7975
+ }
7976
+ return isInertAncestors(vNode.parent, true);
7977
+ });
7844
7978
  var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];
7845
7979
  function isDisabledAttrAllowed(nodeName2) {
7846
7980
  return allowedDisabledNodeNames.includes(nodeName2);
7847
7981
  }
7848
7982
  function focusDisabled(el) {
7849
7983
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
7850
- if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled')) {
7984
+ if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) {
7851
7985
  return true;
7852
7986
  }
7853
7987
  var parentNode = vNode.parent;
@@ -7942,16 +8076,16 @@
7942
8076
  function _visuallySort(a, b) {
7943
8077
  _createGrid();
7944
8078
  var length = Math.max(a._stackingOrder.length, b._stackingOrder.length);
7945
- for (var _i6 = 0; _i6 < length; _i6++) {
7946
- if (typeof b._stackingOrder[_i6] === 'undefined') {
8079
+ for (var _i7 = 0; _i7 < length; _i7++) {
8080
+ if (typeof b._stackingOrder[_i7] === 'undefined') {
7947
8081
  return -1;
7948
- } else if (typeof a._stackingOrder[_i6] === 'undefined') {
8082
+ } else if (typeof a._stackingOrder[_i7] === 'undefined') {
7949
8083
  return 1;
7950
8084
  }
7951
- if (b._stackingOrder[_i6] > a._stackingOrder[_i6]) {
8085
+ if (b._stackingOrder[_i7].value > a._stackingOrder[_i7].value) {
7952
8086
  return 1;
7953
8087
  }
7954
- if (b._stackingOrder[_i6] < a._stackingOrder[_i6]) {
8088
+ if (b._stackingOrder[_i7].value < a._stackingOrder[_i7].value) {
7955
8089
  return -1;
7956
8090
  }
7957
8091
  }
@@ -8041,16 +8175,6 @@
8041
8175
  return _splitRects;
8042
8176
  }
8043
8177
  });
8044
- function _getIntersectionRect(rect1, rect2) {
8045
- var leftX = Math.max(rect1.left, rect2.left);
8046
- var rightX = Math.min(rect1.right, rect2.right);
8047
- var topY = Math.max(rect1.top, rect2.top);
8048
- var bottomY = Math.min(rect1.bottom, rect2.bottom);
8049
- if (leftX >= rightX || topY >= bottomY) {
8050
- return null;
8051
- }
8052
- return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
8053
- }
8054
8178
  function _getOffset(vNodeA, vNodeB) {
8055
8179
  var rectA = vNodeA.boundingClientRect;
8056
8180
  var rectB = vNodeB.boundingClientRect;
@@ -8061,8 +8185,8 @@
8061
8185
  function getFarthestPoint(rectA, rectB) {
8062
8186
  var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];
8063
8187
  var farthestPoint = {};
8064
- dimensionProps.forEach(function(_ref17) {
8065
- var _ref18 = _slicedToArray(_ref17, 4), axis = _ref18[0], start = _ref18[1], end = _ref18[2], diameter = _ref18[3];
8188
+ dimensionProps.forEach(function(_ref20) {
8189
+ var _ref21 = _slicedToArray(_ref20, 4), axis = _ref21[0], start = _ref21[1], end = _ref21[2], diameter = _ref21[3];
8066
8190
  if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {
8067
8191
  farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;
8068
8192
  return;
@@ -8078,8 +8202,8 @@
8078
8202
  });
8079
8203
  return farthestPoint;
8080
8204
  }
8081
- function getClosestPoint(_ref19, ownRect, adjacentRect) {
8082
- var x = _ref19.x, y = _ref19.y;
8205
+ function getClosestPoint(_ref22, ownRect, adjacentRect) {
8206
+ var x = _ref22.x, y = _ref22.y;
8083
8207
  if (pointInRect({
8084
8208
  x: x,
8085
8209
  y: y
@@ -8134,12 +8258,12 @@
8134
8258
  }
8135
8259
  return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
8136
8260
  }
8137
- function pointInRect(_ref20, rect) {
8138
- var x = _ref20.x, y = _ref20.y;
8261
+ function pointInRect(_ref23, rect) {
8262
+ var x = _ref23.x, y = _ref23.y;
8139
8263
  return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;
8140
8264
  }
8141
- function getCornerInAdjacentRect(_ref21, ownRect, adjacentRect) {
8142
- var x = _ref21.x, y = _ref21.y;
8265
+ function getCornerInAdjacentRect(_ref24, ownRect, adjacentRect) {
8266
+ var x = _ref24.x, y = _ref24.y;
8143
8267
  var closestX, closestY;
8144
8268
  if (x === ownRect.left && ownRect.right < adjacentRect.right) {
8145
8269
  closestX = ownRect.right;
@@ -8176,8 +8300,8 @@
8176
8300
  };
8177
8301
  }
8178
8302
  }
8179
- function _getRectCenter(_ref22) {
8180
- var left = _ref22.left, top = _ref22.top, width = _ref22.width, height = _ref22.height;
8303
+ function _getRectCenter(_ref25) {
8304
+ var left = _ref25.left, top = _ref25.top, width = _ref25.width, height = _ref25.height;
8181
8305
  return new window.DOMPoint(left + width / 2, top + height / 2);
8182
8306
  }
8183
8307
  function _hasVisualOverlap(vNodeA, vNodeB) {
@@ -8453,6 +8577,14 @@
8453
8577
  type: 'nmtoken',
8454
8578
  values: [ 'inline', 'list', 'both', 'none' ]
8455
8579
  },
8580
+ 'aria-braillelabel': {
8581
+ type: 'string',
8582
+ global: true
8583
+ },
8584
+ 'aria-brailleroledescription': {
8585
+ type: 'string',
8586
+ global: true
8587
+ },
8456
8588
  'aria-busy': {
8457
8589
  type: 'boolean',
8458
8590
  global: true
@@ -8489,6 +8621,11 @@
8489
8621
  allowEmpty: true,
8490
8622
  global: true
8491
8623
  },
8624
+ 'aria-description': {
8625
+ type: 'string',
8626
+ allowEmpty: true,
8627
+ global: true
8628
+ },
8492
8629
  'aria-details': {
8493
8630
  type: 'idref',
8494
8631
  allowEmpty: true,
@@ -8769,6 +8906,7 @@
8769
8906
  },
8770
8907
  directory: {
8771
8908
  type: 'structure',
8909
+ deprecated: true,
8772
8910
  allowedAttrs: [ 'aria-expanded' ],
8773
8911
  superclassRole: [ 'list' ],
8774
8912
  nameFromContent: true
@@ -9578,6 +9716,7 @@
9578
9716
  datalist: {
9579
9717
  contentTypes: [ 'phrasing', 'flow' ],
9580
9718
  allowedRoles: false,
9719
+ noAriaAttrs: true,
9581
9720
  implicitAttrs: {
9582
9721
  'aria-multiselectable': 'false'
9583
9722
  }
@@ -10339,7 +10478,7 @@
10339
10478
  }
10340
10479
  var is_unsupported_role_default = isUnsupportedRole;
10341
10480
  function isValidRole(role) {
10342
- var _ref23 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref23.allowAbstract, _ref23$flagUnsupporte = _ref23.flagUnsupported, flagUnsupported = _ref23$flagUnsupporte === void 0 ? false : _ref23$flagUnsupporte;
10481
+ var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref26.allowAbstract, _ref26$flagUnsupporte = _ref26.flagUnsupported, flagUnsupported = _ref26$flagUnsupporte === void 0 ? false : _ref26$flagUnsupporte;
10343
10482
  var roleDefinition = standards_default.ariaRoles[role];
10344
10483
  var isRoleUnsupported = is_unsupported_role_default(role);
10345
10484
  if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
@@ -10349,7 +10488,7 @@
10349
10488
  }
10350
10489
  var is_valid_role_default = isValidRole;
10351
10490
  function getExplicitRole(vNode) {
10352
- var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref24.fallback, abstracts = _ref24.abstracts, dpub = _ref24.dpub;
10491
+ var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref27.fallback, abstracts = _ref27.abstracts, dpub = _ref27.dpub;
10353
10492
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
10354
10493
  if (vNode.props.nodeType !== 1) {
10355
10494
  return null;
@@ -10787,7 +10926,7 @@
10787
10926
  matches_default2.semanticRole = semantic_role_default;
10788
10927
  var matches_default3 = matches_default2;
10789
10928
  function getElementSpec(vNode) {
10790
- var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref25$noMatchAccessi = _ref25.noMatchAccessibleName, noMatchAccessibleName = _ref25$noMatchAccessi === void 0 ? false : _ref25$noMatchAccessi;
10929
+ var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$noMatchAccessi = _ref28.noMatchAccessibleName, noMatchAccessibleName = _ref28$noMatchAccessi === void 0 ? false : _ref28$noMatchAccessi;
10791
10930
  var standard = standards_default.htmlElms[vNode.props.nodeName];
10792
10931
  if (!standard) {
10793
10932
  return {};
@@ -10802,8 +10941,8 @@
10802
10941
  }
10803
10942
  var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded3);
10804
10943
  var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
10805
- for (var _i7 = 0; _i7 < matchProperties.length && noMatchAccessibleName; _i7++) {
10806
- if (matchProperties[_i7].hasOwnProperty('hasAccessibleName')) {
10944
+ for (var _i8 = 0; _i8 < matchProperties.length && noMatchAccessibleName; _i8++) {
10945
+ if (matchProperties[_i8].hasOwnProperty('hasAccessibleName')) {
10807
10946
  return standard;
10808
10947
  }
10809
10948
  }
@@ -10824,7 +10963,7 @@
10824
10963
  }
10825
10964
  var get_element_spec_default = getElementSpec;
10826
10965
  function implicitRole2(node) {
10827
- var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref26.chromium;
10966
+ var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref29.chromium;
10828
10967
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
10829
10968
  node = vNode.actualNode;
10830
10969
  if (!vNode) {
@@ -10877,8 +11016,8 @@
10877
11016
  }
10878
11017
  return getInheritedRole(vNode.parent, explicitRoleOptions);
10879
11018
  }
10880
- function resolveImplicitRole(vNode, _ref27) {
10881
- var chromium = _ref27.chromium, explicitRoleOptions = _objectWithoutProperties(_ref27, _excluded4);
11019
+ function resolveImplicitRole(vNode, _ref30) {
11020
+ var chromium = _ref30.chromium, explicitRoleOptions = _objectWithoutProperties(_ref30, _excluded4);
10882
11021
  var implicitRole3 = implicit_role_default(vNode, {
10883
11022
  chromium: chromium
10884
11023
  });
@@ -10898,8 +11037,8 @@
10898
11037
  return hasGlobalAria || _isFocusable(vNode);
10899
11038
  }
10900
11039
  function resolveRole(node) {
10901
- var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10902
- var noImplicit = _ref28.noImplicit, roleOptions = _objectWithoutProperties(_ref28, _excluded5);
11040
+ var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11041
+ var noImplicit = _ref31.noImplicit, roleOptions = _objectWithoutProperties(_ref31, _excluded5);
10903
11042
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
10904
11043
  if (vNode.props.nodeType !== 1) {
10905
11044
  return null;
@@ -10917,8 +11056,8 @@
10917
11056
  return explicitRole2;
10918
11057
  }
10919
11058
  function getRole(node) {
10920
- var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10921
- var noPresentational = _ref29.noPresentational, options = _objectWithoutProperties(_ref29, _excluded6);
11059
+ var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11060
+ var noPresentational = _ref32.noPresentational, options = _objectWithoutProperties(_ref32, _excluded6);
10922
11061
  var role = resolveRole(node, options);
10923
11062
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
10924
11063
  return null;
@@ -10939,7 +11078,7 @@
10939
11078
  }
10940
11079
  var title_text_default = titleText;
10941
11080
  function namedFromContents(vNode) {
10942
- var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref30.strict;
11081
+ var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref33.strict;
10943
11082
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
10944
11083
  if (vNode.props.nodeType !== 1) {
10945
11084
  return false;
@@ -11064,12 +11203,12 @@
11064
11203
  button: ''
11065
11204
  };
11066
11205
  var nativeTextMethods = {
11067
- valueText: function valueText(_ref31) {
11068
- var actualNode = _ref31.actualNode;
11206
+ valueText: function valueText(_ref34) {
11207
+ var actualNode = _ref34.actualNode;
11069
11208
  return actualNode.value || '';
11070
11209
  },
11071
- buttonDefaultText: function buttonDefaultText(_ref32) {
11072
- var actualNode = _ref32.actualNode;
11210
+ buttonDefaultText: function buttonDefaultText(_ref35) {
11211
+ var actualNode = _ref35.actualNode;
11073
11212
  return defaultButtonValues[actualNode.type] || '';
11074
11213
  },
11075
11214
  tableCaptionText: descendantText.bind(null, 'caption'),
@@ -11089,8 +11228,8 @@
11089
11228
  function attrText(attr, vNode) {
11090
11229
  return vNode.attr(attr) || '';
11091
11230
  }
11092
- function descendantText(nodeName2, _ref33, context) {
11093
- var actualNode = _ref33.actualNode;
11231
+ function descendantText(nodeName2, _ref36, context) {
11232
+ var actualNode = _ref36.actualNode;
11094
11233
  nodeName2 = nodeName2.toLowerCase();
11095
11234
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
11096
11235
  var candidate = actualNode.querySelector(nodeNames2);
@@ -11134,7 +11273,10 @@
11134
11273
  return isVisibleToScreenReadersVirtual(vNode);
11135
11274
  }
11136
11275
  var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {
11137
- if (ariaHidden(vNode)) {
11276
+ if (ariaHidden(vNode) || _isInert(vNode, {
11277
+ skipAncestors: true,
11278
+ isAncestor: isAncestor
11279
+ })) {
11138
11280
  return false;
11139
11281
  }
11140
11282
  if (vNode.actualNode && vNode.props.nodeName === 'area') {
@@ -11334,7 +11476,9 @@
11334
11476
  return false;
11335
11477
  }
11336
11478
  var canvasContext = cache_default.get('canvasContext', function() {
11337
- return document.createElement('canvas').getContext('2d');
11479
+ return document.createElement('canvas').getContext('2d', {
11480
+ willReadFrequently: true
11481
+ });
11338
11482
  });
11339
11483
  var canvas = canvasContext.canvas;
11340
11484
  if (!cache_default.get('fonts')) {
@@ -11519,7 +11663,7 @@
11519
11663
  locations: [ 'billing', 'shipping' ]
11520
11664
  };
11521
11665
  function isValidAutocomplete(autocompleteValue) {
11522
- var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$looseTyped = _ref34.looseTyped, looseTyped = _ref34$looseTyped === void 0 ? false : _ref34$looseTyped, _ref34$stateTerms = _ref34.stateTerms, stateTerms = _ref34$stateTerms === void 0 ? [] : _ref34$stateTerms, _ref34$locations = _ref34.locations, locations = _ref34$locations === void 0 ? [] : _ref34$locations, _ref34$qualifiers = _ref34.qualifiers, qualifiers = _ref34$qualifiers === void 0 ? [] : _ref34$qualifiers, _ref34$standaloneTerm = _ref34.standaloneTerms, standaloneTerms = _ref34$standaloneTerm === void 0 ? [] : _ref34$standaloneTerm, _ref34$qualifiedTerms = _ref34.qualifiedTerms, qualifiedTerms = _ref34$qualifiedTerms === void 0 ? [] : _ref34$qualifiedTerms;
11666
+ var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref37$looseTyped = _ref37.looseTyped, looseTyped = _ref37$looseTyped === void 0 ? false : _ref37$looseTyped, _ref37$stateTerms = _ref37.stateTerms, stateTerms = _ref37$stateTerms === void 0 ? [] : _ref37$stateTerms, _ref37$locations = _ref37.locations, locations = _ref37$locations === void 0 ? [] : _ref37$locations, _ref37$qualifiers = _ref37.qualifiers, qualifiers = _ref37$qualifiers === void 0 ? [] : _ref37$qualifiers, _ref37$standaloneTerm = _ref37.standaloneTerms, standaloneTerms = _ref37$standaloneTerm === void 0 ? [] : _ref37$standaloneTerm, _ref37$qualifiedTerms = _ref37.qualifiedTerms, qualifiedTerms = _ref37$qualifiedTerms === void 0 ? [] : _ref37$qualifiedTerms;
11523
11667
  autocompleteValue = autocompleteValue.toLowerCase().trim();
11524
11668
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
11525
11669
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -11784,8 +11928,8 @@
11784
11928
  if (hiddenTextElms.includes(elm.props.nodeName)) {
11785
11929
  return false;
11786
11930
  }
11787
- return elm.children.some(function(_ref35) {
11788
- var props = _ref35.props;
11931
+ return elm.children.some(function(_ref38) {
11932
+ var props = _ref38.props;
11789
11933
  return props.nodeType === 3 && props.nodeValue.trim();
11790
11934
  });
11791
11935
  }
@@ -11986,8 +12130,8 @@
11986
12130
  var stacks = points.map(function(point) {
11987
12131
  return Array.from(document.elementsFromPoint(point.x, point.y));
11988
12132
  });
11989
- var _loop4 = function _loop4(_i8) {
11990
- var modalElement = stacks[_i8].find(function(elm) {
12133
+ var _loop4 = function _loop4(_i9) {
12134
+ var modalElement = stacks[_i9].find(function(elm) {
11991
12135
  var style = window.getComputedStyle(elm);
11992
12136
  return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
11993
12137
  });
@@ -12000,8 +12144,8 @@
12000
12144
  };
12001
12145
  }
12002
12146
  };
12003
- for (var _i8 = 0; _i8 < stacks.length; _i8++) {
12004
- var _ret = _loop4(_i8);
12147
+ for (var _i9 = 0; _i9 < stacks.length; _i9++) {
12148
+ var _ret = _loop4(_i9);
12005
12149
  if (_typeof(_ret) === 'object') {
12006
12150
  return _ret.v;
12007
12151
  }
@@ -12080,6 +12224,131 @@
12080
12224
  return hasBgImage;
12081
12225
  }
12082
12226
  var element_has_image_default = elementHasImage;
12227
+ var hexRegex = /^#[0-9a-f]{3,8}$/i;
12228
+ var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
12229
+ var Color = function() {
12230
+ function Color(red, green, blue) {
12231
+ var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
12232
+ _classCallCheck(this, Color);
12233
+ this.red = red;
12234
+ this.green = green;
12235
+ this.blue = blue;
12236
+ this.alpha = alpha;
12237
+ }
12238
+ _createClass(Color, [ {
12239
+ key: 'toHexString',
12240
+ value: function toHexString() {
12241
+ var redString = Math.round(this.red).toString(16);
12242
+ var greenString = Math.round(this.green).toString(16);
12243
+ var blueString = Math.round(this.blue).toString(16);
12244
+ return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
12245
+ }
12246
+ }, {
12247
+ key: 'toJSON',
12248
+ value: function toJSON() {
12249
+ var red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;
12250
+ return {
12251
+ red: red,
12252
+ green: green,
12253
+ blue: blue,
12254
+ alpha: alpha
12255
+ };
12256
+ }
12257
+ }, {
12258
+ key: 'parseString',
12259
+ value: function parseString(colorString) {
12260
+ if (standards_default.cssColors[colorString] || colorString === 'transparent') {
12261
+ var _ref39 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref40 = _slicedToArray(_ref39, 3), red = _ref40[0], green = _ref40[1], blue = _ref40[2];
12262
+ this.red = red;
12263
+ this.green = green;
12264
+ this.blue = blue;
12265
+ this.alpha = colorString === 'transparent' ? 0 : 1;
12266
+ return this;
12267
+ }
12268
+ if (colorString.match(colorFnRegex)) {
12269
+ this.parseColorFnString(colorString);
12270
+ return this;
12271
+ }
12272
+ if (colorString.match(hexRegex)) {
12273
+ this.parseHexString(colorString);
12274
+ return this;
12275
+ }
12276
+ throw new Error('Unable to parse color "'.concat(colorString, '"'));
12277
+ }
12278
+ }, {
12279
+ key: 'parseRgbString',
12280
+ value: function parseRgbString(colorString) {
12281
+ if (colorString === 'transparent') {
12282
+ this.red = 0;
12283
+ this.green = 0;
12284
+ this.blue = 0;
12285
+ this.alpha = 0;
12286
+ return;
12287
+ }
12288
+ this.parseColorFnString(colorString);
12289
+ }
12290
+ }, {
12291
+ key: 'parseHexString',
12292
+ value: function parseHexString(colorString) {
12293
+ if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
12294
+ return;
12295
+ }
12296
+ colorString = colorString.replace('#', '');
12297
+ if (colorString.length < 6) {
12298
+ var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];
12299
+ colorString = r + r + g + g + b + b;
12300
+ if (a) {
12301
+ colorString += a + a;
12302
+ }
12303
+ }
12304
+ var aRgbHex = colorString.match(/.{1,2}/g);
12305
+ this.red = parseInt(aRgbHex[0], 16);
12306
+ this.green = parseInt(aRgbHex[1], 16);
12307
+ this.blue = parseInt(aRgbHex[2], 16);
12308
+ if (aRgbHex[3]) {
12309
+ this.alpha = parseInt(aRgbHex[3], 16) / 255;
12310
+ } else {
12311
+ this.alpha = 1;
12312
+ }
12313
+ }
12314
+ }, {
12315
+ key: 'parseColorFnString',
12316
+ value: function parseColorFnString(colorString) {
12317
+ var _ref41 = colorString.match(colorFnRegex) || [], _ref42 = _slicedToArray(_ref41, 3), colorFunc = _ref42[1], colorValStr = _ref42[2];
12318
+ if (!colorFunc || !colorValStr) {
12319
+ return;
12320
+ }
12321
+ var colorVals = colorValStr.split(/\s*[,\/\s]\s*/).map(function(str) {
12322
+ return str.replace(',', '').trim();
12323
+ }).filter(function(str) {
12324
+ return str !== '';
12325
+ });
12326
+ var colorNums = colorVals.map(function(val, index) {
12327
+ return convertColorVal(colorFunc, val, index);
12328
+ });
12329
+ if (colorFunc.substr(0, 3) === 'hsl') {
12330
+ colorNums = hslToRgb(colorNums);
12331
+ }
12332
+ this.red = colorNums[0];
12333
+ this.green = colorNums[1];
12334
+ this.blue = colorNums[2];
12335
+ this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;
12336
+ }
12337
+ }, {
12338
+ key: 'getRelativeLuminance',
12339
+ value: function getRelativeLuminance() {
12340
+ var rSRGB = this.red / 255;
12341
+ var gSRGB = this.green / 255;
12342
+ var bSRGB = this.blue / 255;
12343
+ var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
12344
+ var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
12345
+ var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
12346
+ return .2126 * r + .7152 * g + .0722 * b;
12347
+ }
12348
+ } ]);
12349
+ return Color;
12350
+ }();
12351
+ var color_default = Color;
12083
12352
  function convertColorVal(colorFunc, value, index) {
12084
12353
  if (/%$/.test(value)) {
12085
12354
  if (index === 3) {
@@ -12097,8 +12366,8 @@
12097
12366
  }
12098
12367
  return parseFloat(value);
12099
12368
  }
12100
- function hslToRgb(_ref36) {
12101
- var _ref37 = _slicedToArray(_ref36, 4), hue = _ref37[0], saturation = _ref37[1], lightness = _ref37[2], alpha = _ref37[3];
12369
+ function hslToRgb(_ref43) {
12370
+ var _ref44 = _slicedToArray(_ref43, 4), hue = _ref44[0], saturation = _ref44[1], lightness = _ref44[2], alpha = _ref44[3];
12102
12371
  saturation /= 255;
12103
12372
  lightness /= 255;
12104
12373
  var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
@@ -12122,112 +12391,6 @@
12122
12391
  return Math.round((color + base) * 255);
12123
12392
  }).concat(alpha);
12124
12393
  }
12125
- function Color(red, green, blue) {
12126
- var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
12127
- this.red = red;
12128
- this.green = green;
12129
- this.blue = blue;
12130
- this.alpha = alpha;
12131
- this.toHexString = function toHexString() {
12132
- var redString = Math.round(this.red).toString(16);
12133
- var greenString = Math.round(this.green).toString(16);
12134
- var blueString = Math.round(this.blue).toString(16);
12135
- return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
12136
- };
12137
- this.toJSON = function toJSON() {
12138
- var red2 = this.red, green2 = this.green, blue2 = this.blue, alpha2 = this.alpha;
12139
- return {
12140
- red: red2,
12141
- green: green2,
12142
- blue: blue2,
12143
- alpha: alpha2
12144
- };
12145
- };
12146
- var hexRegex = /^#[0-9a-f]{3,8}$/i;
12147
- var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
12148
- this.parseString = function parseString(colorString) {
12149
- if (standards_default.cssColors[colorString] || colorString === 'transparent') {
12150
- var _ref38 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref39 = _slicedToArray(_ref38, 3), red2 = _ref39[0], green2 = _ref39[1], blue2 = _ref39[2];
12151
- this.red = red2;
12152
- this.green = green2;
12153
- this.blue = blue2;
12154
- this.alpha = colorString === 'transparent' ? 0 : 1;
12155
- return this;
12156
- }
12157
- if (colorString.match(colorFnRegex)) {
12158
- this.parseColorFnString(colorString);
12159
- return this;
12160
- }
12161
- if (colorString.match(hexRegex)) {
12162
- this.parseHexString(colorString);
12163
- return this;
12164
- }
12165
- throw new Error('Unable to parse color "'.concat(colorString, '"'));
12166
- };
12167
- this.parseRgbString = function parseRgbString(colorString) {
12168
- if (colorString === 'transparent') {
12169
- this.red = 0;
12170
- this.green = 0;
12171
- this.blue = 0;
12172
- this.alpha = 0;
12173
- return;
12174
- }
12175
- this.parseColorFnString(colorString);
12176
- };
12177
- this.parseHexString = function parseHexString(colorString) {
12178
- if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
12179
- return;
12180
- }
12181
- colorString = colorString.replace('#', '');
12182
- if (colorString.length < 6) {
12183
- var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];
12184
- colorString = r + r + g + g + b + b;
12185
- if (a) {
12186
- colorString += a + a;
12187
- }
12188
- }
12189
- var aRgbHex = colorString.match(/.{1,2}/g);
12190
- this.red = parseInt(aRgbHex[0], 16);
12191
- this.green = parseInt(aRgbHex[1], 16);
12192
- this.blue = parseInt(aRgbHex[2], 16);
12193
- if (aRgbHex[3]) {
12194
- this.alpha = parseInt(aRgbHex[3], 16) / 255;
12195
- } else {
12196
- this.alpha = 1;
12197
- }
12198
- };
12199
- this.parseColorFnString = function parseColorFnString(colorString) {
12200
- var _ref40 = colorString.match(colorFnRegex) || [], _ref41 = _slicedToArray(_ref40, 3), colorFunc = _ref41[1], colorValStr = _ref41[2];
12201
- if (!colorFunc || !colorValStr) {
12202
- return;
12203
- }
12204
- var colorVals = colorValStr.split(/\s*[,\/\s]\s*/).map(function(str) {
12205
- return str.replace(',', '').trim();
12206
- }).filter(function(str) {
12207
- return str !== '';
12208
- });
12209
- var colorNums = colorVals.map(function(val, index) {
12210
- return convertColorVal(colorFunc, val, index);
12211
- });
12212
- if (colorFunc.substr(0, 3) === 'hsl') {
12213
- colorNums = hslToRgb(colorNums);
12214
- }
12215
- this.red = colorNums[0];
12216
- this.green = colorNums[1];
12217
- this.blue = colorNums[2];
12218
- this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;
12219
- };
12220
- this.getRelativeLuminance = function getRelativeLuminance() {
12221
- var rSRGB = this.red / 255;
12222
- var gSRGB = this.green / 255;
12223
- var bSRGB = this.blue / 255;
12224
- var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
12225
- var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
12226
- var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
12227
- return .2126 * r + .7152 * g + .0722 * b;
12228
- };
12229
- }
12230
- var color_default = Color;
12231
12394
  function getOwnBackgroundColor(elmStyle) {
12232
12395
  var bgColor = new color_default();
12233
12396
  bgColor.parseString(elmStyle.getPropertyValue('background-color'));
@@ -12307,8 +12470,8 @@
12307
12470
  if (!refs || !refs.length) {
12308
12471
  return false;
12309
12472
  }
12310
- return refs.some(function(_ref42) {
12311
- var actualNode = _ref42.actualNode;
12473
+ return refs.some(function(_ref45) {
12474
+ var actualNode = _ref45.actualNode;
12312
12475
  return isVisible(actualNode, screenReader, recursed);
12313
12476
  });
12314
12477
  }
@@ -12320,7 +12483,7 @@
12320
12483
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
12321
12484
  el = vNode ? vNode.actualNode : el;
12322
12485
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
12323
- var _ref43 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref43.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref43.DOCUMENT_FRAGMENT_NODE;
12486
+ var _ref46 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref46.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref46.DOCUMENT_FRAGMENT_NODE;
12324
12487
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
12325
12488
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
12326
12489
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -12565,7 +12728,7 @@
12565
12728
  }
12566
12729
  var visually_overlaps_default = visuallyOverlaps;
12567
12730
  var isXHTMLGlobal;
12568
- var nodeIndex = 0;
12731
+ var nodeIndex2 = 0;
12569
12732
  var VirtualNode = function(_abstract_virtual_nod) {
12570
12733
  _inherits(VirtualNode, _abstract_virtual_nod);
12571
12734
  var _super = _createSuper(VirtualNode);
@@ -12578,9 +12741,9 @@
12578
12741
  _this.actualNode = node;
12579
12742
  _this.parent = parent;
12580
12743
  if (!parent) {
12581
- nodeIndex = 0;
12744
+ nodeIndex2 = 0;
12582
12745
  }
12583
- _this.nodeIndex = nodeIndex++;
12746
+ _this.nodeIndex = nodeIndex2++;
12584
12747
  _this._isHidden = null;
12585
12748
  _this._cache = {};
12586
12749
  if (typeof isXHTMLGlobal === 'undefined') {
@@ -12711,8 +12874,8 @@
12711
12874
  return;
12712
12875
  }
12713
12876
  var shadowId = domTree[0].shadowId;
12714
- for (var _i9 = 0; _i9 < expressions.length; _i9++) {
12715
- if (expressions[_i9].length > 1 && expressions[_i9].some(function(expression) {
12877
+ for (var _i10 = 0; _i10 < expressions.length; _i10++) {
12878
+ if (expressions[_i10].length > 1 && expressions[_i10].some(function(expression) {
12716
12879
  return isGlobalSelector(expression);
12717
12880
  })) {
12718
12881
  return;
@@ -12773,9 +12936,9 @@
12773
12936
  nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes;
12774
12937
  }
12775
12938
  if (exp.attributes) {
12776
- for (var _i10 = 0; _i10 < exp.attributes.length; _i10++) {
12939
+ for (var _i11 = 0; _i11 < exp.attributes.length; _i11++) {
12777
12940
  var _selectorMap;
12778
- var attr = exp.attributes[_i10];
12941
+ var attr = exp.attributes[_i11];
12779
12942
  if (attr.type === 'attrValue') {
12780
12943
  isComplexSelector = true;
12781
12944
  }
@@ -13131,7 +13294,7 @@
13131
13294
  return {};
13132
13295
  }
13133
13296
  var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
13134
- var _ref44 = getOrientation(win) || {}, angle = _ref44.angle, type = _ref44.type;
13297
+ var _ref47 = getOrientation(win) || {}, angle = _ref47.angle, type = _ref47.type;
13135
13298
  return {
13136
13299
  userAgent: navigator.userAgent,
13137
13300
  windowWidth: innerWidth,
@@ -13140,12 +13303,12 @@
13140
13303
  orientationType: type
13141
13304
  };
13142
13305
  }
13143
- function getOrientation(_ref45) {
13144
- var screen = _ref45.screen;
13306
+ function getOrientation(_ref48) {
13307
+ var screen = _ref48.screen;
13145
13308
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
13146
13309
  }
13147
- function createFrameContext(frame, _ref46) {
13148
- var focusable = _ref46.focusable, page = _ref46.page;
13310
+ function createFrameContext(frame, _ref49) {
13311
+ var focusable = _ref49.focusable, page = _ref49.page;
13149
13312
  return {
13150
13313
  node: frame,
13151
13314
  include: [],
@@ -13212,8 +13375,8 @@
13212
13375
  if (!isArrayLike(selectorList)) {
13213
13376
  selectorList = [ selectorList ];
13214
13377
  }
13215
- for (var _i11 = 0; _i11 < selectorList.length; _i11++) {
13216
- var normalizedSelector = normalizeContextSelector(selectorList[_i11]);
13378
+ for (var _i12 = 0; _i12 < selectorList.length; _i12++) {
13379
+ var normalizedSelector = normalizeContextSelector(selectorList[_i12]);
13217
13380
  if (normalizedSelector) {
13218
13381
  normalizedList.push(normalizedSelector);
13219
13382
  }
@@ -13309,8 +13472,8 @@
13309
13472
  }
13310
13473
  function parseSelectorArray(context, type) {
13311
13474
  var result = [];
13312
- for (var _i12 = 0, l = context[type].length; _i12 < l; _i12++) {
13313
- var item = context[type][_i12];
13475
+ for (var _i13 = 0, l = context[type].length; _i13 < l; _i13++) {
13476
+ var item = context[type][_i13];
13314
13477
  if (item instanceof window.Node) {
13315
13478
  if (item.documentElement instanceof window.Node) {
13316
13479
  result.push(context.flatTree[0]);
@@ -13384,8 +13547,8 @@
13384
13547
  }
13385
13548
  context.frames.push(createFrameContext(frame, context));
13386
13549
  }
13387
- function isPageContext(_ref47) {
13388
- var include = _ref47.include;
13550
+ function isPageContext(_ref50) {
13551
+ var include = _ref50.include;
13389
13552
  return include.length === 1 && include[0].actualNode === document.documentElement;
13390
13553
  }
13391
13554
  function validateContext(context) {
@@ -13394,11 +13557,11 @@
13394
13557
  throw new Error('No elements found for include in ' + env + ' Context');
13395
13558
  }
13396
13559
  }
13397
- function getRootNode2(_ref48) {
13398
- var include = _ref48.include, exclude = _ref48.exclude;
13560
+ function getRootNode2(_ref51) {
13561
+ var include = _ref51.include, exclude = _ref51.exclude;
13399
13562
  var selectors = Array.from(include).concat(Array.from(exclude));
13400
- for (var _i13 = 0; _i13 < selectors.length; _i13++) {
13401
- var item = selectors[_i13];
13563
+ for (var _i14 = 0; _i14 < selectors.length; _i14++) {
13564
+ var item = selectors[_i14];
13402
13565
  if (item instanceof window.Element) {
13403
13566
  return item.ownerDocument.documentElement;
13404
13567
  }
@@ -13414,8 +13577,8 @@
13414
13577
  return [];
13415
13578
  }
13416
13579
  var _Context = new Context(context), frames = _Context.frames;
13417
- return frames.map(function(_ref49) {
13418
- var node = _ref49.node, frameContext = _objectWithoutProperties(_ref49, _excluded7);
13580
+ return frames.map(function(_ref52) {
13581
+ var node = _ref52.node, frameContext = _objectWithoutProperties(_ref52, _excluded7);
13419
13582
  frameContext.initiator = false;
13420
13583
  var frameSelector = _getAncestry(node);
13421
13584
  return {
@@ -13564,8 +13727,8 @@
13564
13727
  return !!standards_default.htmlElms[nodeName2];
13565
13728
  }
13566
13729
  var is_html_element_default = isHtmlElement;
13567
- function _isNodeInContext(node, _ref50) {
13568
- var _ref50$include = _ref50.include, include = _ref50$include === void 0 ? [] : _ref50$include, _ref50$exclude = _ref50.exclude, exclude = _ref50$exclude === void 0 ? [] : _ref50$exclude;
13730
+ function _isNodeInContext(node, _ref53) {
13731
+ var _ref53$include = _ref53.include, include = _ref53$include === void 0 ? [] : _ref53$include, _ref53$exclude = _ref53.exclude, exclude = _ref53$exclude === void 0 ? [] : _ref53$exclude;
13569
13732
  var filterInclude = include.filter(function(candidate) {
13570
13733
  return _contains(candidate, node);
13571
13734
  });
@@ -14072,9 +14235,9 @@
14072
14235
  var childAny = null;
14073
14236
  var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);
14074
14237
  var added = false;
14075
- for (var _i14 = 0; _i14 < combinedLength; _i14++) {
14238
+ for (var _i15 = 0; _i15 < combinedLength; _i15++) {
14076
14239
  var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
14077
- var exp = _i14 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i14] : currentLevel.thisLevel[_i14 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
14240
+ var exp = _i15 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i15] : currentLevel.thisLevel[_i15 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
14078
14241
  if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
14079
14242
  if (exp.length === 1) {
14080
14243
  if (!added && (!filter || filter(vNode))) {
@@ -14118,8 +14281,8 @@
14118
14281
  return matchExpressions(domTree, expressions, filter);
14119
14282
  }
14120
14283
  var query_selector_all_filter_default = querySelectorAllFilter;
14121
- function preloadCssom(_ref51) {
14122
- var _ref51$treeRoot = _ref51.treeRoot, treeRoot = _ref51$treeRoot === void 0 ? axe._tree[0] : _ref51$treeRoot;
14284
+ function preloadCssom(_ref54) {
14285
+ var _ref54$treeRoot = _ref54.treeRoot, treeRoot = _ref54$treeRoot === void 0 ? axe._tree[0] : _ref54$treeRoot;
14123
14286
  var rootNodes = getAllRootNodesInTree(treeRoot);
14124
14287
  if (!rootNodes.length) {
14125
14288
  return Promise.resolve();
@@ -14149,8 +14312,8 @@
14149
14312
  }
14150
14313
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
14151
14314
  var promises = [];
14152
- rootNodes.forEach(function(_ref52, index) {
14153
- var rootNode = _ref52.rootNode, shadowId = _ref52.shadowId;
14315
+ rootNodes.forEach(function(_ref55, index) {
14316
+ var rootNode = _ref55.rootNode, shadowId = _ref55.shadowId;
14154
14317
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
14155
14318
  if (!sheets) {
14156
14319
  return Promise.all(promises);
@@ -14234,10 +14397,10 @@
14234
14397
  return true;
14235
14398
  });
14236
14399
  }
14237
- function preloadMedia(_ref53) {
14238
- var _ref53$treeRoot = _ref53.treeRoot, treeRoot = _ref53$treeRoot === void 0 ? axe._tree[0] : _ref53$treeRoot;
14239
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref54) {
14240
- var actualNode = _ref54.actualNode;
14400
+ function preloadMedia(_ref56) {
14401
+ var _ref56$treeRoot = _ref56.treeRoot, treeRoot = _ref56$treeRoot === void 0 ? axe._tree[0] : _ref56$treeRoot;
14402
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref57) {
14403
+ var actualNode = _ref57.actualNode;
14241
14404
  if (actualNode.hasAttribute('src')) {
14242
14405
  return !!actualNode.getAttribute('src');
14243
14406
  }
@@ -14249,8 +14412,8 @@
14249
14412
  }
14250
14413
  return true;
14251
14414
  });
14252
- return Promise.all(mediaVirtualNodes.map(function(_ref55) {
14253
- var actualNode = _ref55.actualNode;
14415
+ return Promise.all(mediaVirtualNodes.map(function(_ref58) {
14416
+ var actualNode = _ref58.actualNode;
14254
14417
  return isMediaElementReady(actualNode);
14255
14418
  }));
14256
14419
  }
@@ -14501,8 +14664,8 @@
14501
14664
  }
14502
14665
  var outerIncludes = getOuterIncludes(context.include);
14503
14666
  var isInContext = getContextFilter(context);
14504
- for (var _i15 = 0; _i15 < outerIncludes.length; _i15++) {
14505
- candidate = outerIncludes[_i15];
14667
+ for (var _i16 = 0; _i16 < outerIncludes.length; _i16++) {
14668
+ candidate = outerIncludes[_i16];
14506
14669
  var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
14507
14670
  result = mergeArrayUniques(result, nodes);
14508
14671
  }
@@ -14539,9 +14702,9 @@
14539
14702
  arr1 = arr2;
14540
14703
  arr2 = temp;
14541
14704
  }
14542
- for (var _i16 = 0, l = arr2.length; _i16 < l; _i16++) {
14543
- if (!arr1.includes(arr2[_i16])) {
14544
- arr1.push(arr2[_i16]);
14705
+ for (var _i17 = 0, l = arr2.length; _i17 < l; _i17++) {
14706
+ if (!arr1.includes(arr2[_i17])) {
14707
+ arr1.push(arr2[_i17]);
14545
14708
  }
14546
14709
  }
14547
14710
  return arr1;
@@ -14555,8 +14718,8 @@
14555
14718
  }
14556
14719
  }
14557
14720
  function setScrollState(scrollState) {
14558
- scrollState.forEach(function(_ref57) {
14559
- var elm = _ref57.elm, top = _ref57.top, left = _ref57.left;
14721
+ scrollState.forEach(function(_ref60) {
14722
+ var elm = _ref60.elm, top = _ref60.top, left = _ref60.left;
14560
14723
  return setScroll(elm, top, left);
14561
14724
  });
14562
14725
  }
@@ -14584,8 +14747,8 @@
14584
14747
  }
14585
14748
  return selectAllRecursive(selectorArr, doc);
14586
14749
  }
14587
- function selectAllRecursive(_ref58, doc) {
14588
- var _ref59 = _toArray(_ref58), selectorStr = _ref59[0], restSelector = _ref59.slice(1);
14750
+ function selectAllRecursive(_ref61, doc) {
14751
+ var _ref62 = _toArray(_ref61), selectorStr = _ref62[0], restSelector = _ref62.slice(1);
14589
14752
  var elms = doc.querySelectorAll(selectorStr);
14590
14753
  if (restSelector.length === 0) {
14591
14754
  return Array.from(elms);
@@ -14616,8 +14779,8 @@
14616
14779
  while (lang.length < 3) {
14617
14780
  lang += '`';
14618
14781
  }
14619
- for (var _i17 = 0; _i17 <= lang.length - 1; _i17++) {
14620
- var index = lang.charCodeAt(_i17) - 96;
14782
+ for (var _i18 = 0; _i18 <= lang.length - 1; _i18++) {
14783
+ var index = lang.charCodeAt(_i18) - 96;
14621
14784
  array = array[index];
14622
14785
  if (!array) {
14623
14786
  return false;
@@ -14689,9 +14852,9 @@
14689
14852
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
14690
14853
  });
14691
14854
  function normaliseProps(serialNode) {
14692
- var _serialNode$nodeName, _ref60, _serialNode$nodeType;
14855
+ var _serialNode$nodeName, _ref63, _serialNode$nodeType;
14693
14856
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
14694
- var nodeType = (_ref60 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref60 !== void 0 ? _ref60 : 1;
14857
+ var nodeType = (_ref63 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref63 !== void 0 ? _ref63 : 1;
14695
14858
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
14696
14859
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
14697
14860
  nodeName2 = nodeName2.toLowerCase();
@@ -14712,8 +14875,8 @@
14712
14875
  delete props.attributes;
14713
14876
  return Object.freeze(props);
14714
14877
  }
14715
- function normaliseAttrs(_ref61) {
14716
- var _ref61$attributes = _ref61.attributes, attributes2 = _ref61$attributes === void 0 ? {} : _ref61$attributes;
14878
+ function normaliseAttrs(_ref64) {
14879
+ var _ref64$attributes = _ref64.attributes, attributes2 = _ref64$attributes === void 0 ? {} : _ref64$attributes;
14717
14880
  var attrMap = {
14718
14881
  htmlFor: 'for',
14719
14882
  className: 'class'
@@ -14982,6 +15145,9 @@
14982
15145
  isAriaRoleAllowedOnElement: function isAriaRoleAllowedOnElement() {
14983
15146
  return is_aria_role_allowed_on_element_default;
14984
15147
  },
15148
+ isComboboxPopup: function isComboboxPopup() {
15149
+ return _isComboboxPopup;
15150
+ },
14985
15151
  isUnsupportedRole: function isUnsupportedRole() {
14986
15152
  return is_unsupported_role_default;
14987
15153
  },
@@ -15039,8 +15205,8 @@
15039
15205
  idRefs[id] = idRefs[id] || [];
15040
15206
  idRefs[id].push(node);
15041
15207
  }
15042
- for (var _i18 = 0; _i18 < refAttrs.length; ++_i18) {
15043
- var attr = refAttrs[_i18];
15208
+ for (var _i19 = 0; _i19 < refAttrs.length; ++_i19) {
15209
+ var attr = refAttrs[_i19];
15044
15210
  var attrValue = sanitize_default(node.getAttribute(attr) || '');
15045
15211
  if (!attrValue) {
15046
15212
  continue;
@@ -15052,9 +15218,9 @@
15052
15218
  }
15053
15219
  }
15054
15220
  }
15055
- for (var _i19 = 0; _i19 < node.childNodes.length; _i19++) {
15056
- if (node.childNodes[_i19].nodeType === 1) {
15057
- cacheIdRefs(node.childNodes[_i19], idRefs, refAttrs);
15221
+ for (var _i20 = 0; _i20 < node.childNodes.length; _i20++) {
15222
+ if (node.childNodes[_i20].nodeType === 1) {
15223
+ cacheIdRefs(node.childNodes[_i20], idRefs, refAttrs);
15058
15224
  }
15059
15225
  }
15060
15226
  }
@@ -16901,8 +17067,8 @@
16901
17067
  nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
16902
17068
  } ];
16903
17069
  lookupTable.evaluateRoleForElement = {
16904
- A: function A(_ref62) {
16905
- var node = _ref62.node, out = _ref62.out;
17070
+ A: function A(_ref65) {
17071
+ var node = _ref65.node, out = _ref65.out;
16906
17072
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
16907
17073
  return true;
16908
17074
  }
@@ -16911,19 +17077,19 @@
16911
17077
  }
16912
17078
  return true;
16913
17079
  },
16914
- AREA: function AREA(_ref63) {
16915
- var node = _ref63.node;
17080
+ AREA: function AREA(_ref66) {
17081
+ var node = _ref66.node;
16916
17082
  return !node.href;
16917
17083
  },
16918
- BUTTON: function BUTTON(_ref64) {
16919
- var node = _ref64.node, role = _ref64.role, out = _ref64.out;
17084
+ BUTTON: function BUTTON(_ref67) {
17085
+ var node = _ref67.node, role = _ref67.role, out = _ref67.out;
16920
17086
  if (node.getAttribute('type') === 'menu') {
16921
17087
  return role === 'menuitem';
16922
17088
  }
16923
17089
  return out;
16924
17090
  },
16925
- IMG: function IMG(_ref65) {
16926
- var node = _ref65.node, role = _ref65.role, out = _ref65.out;
17091
+ IMG: function IMG(_ref68) {
17092
+ var node = _ref68.node, role = _ref68.role, out = _ref68.out;
16927
17093
  switch (node.alt) {
16928
17094
  case null:
16929
17095
  return out;
@@ -16935,8 +17101,8 @@
16935
17101
  return role !== 'presentation' && role !== 'none';
16936
17102
  }
16937
17103
  },
16938
- INPUT: function INPUT(_ref66) {
16939
- var node = _ref66.node, role = _ref66.role, out = _ref66.out;
17104
+ INPUT: function INPUT(_ref69) {
17105
+ var node = _ref69.node, role = _ref69.role, out = _ref69.out;
16940
17106
  switch (node.type) {
16941
17107
  case 'button':
16942
17108
  case 'image':
@@ -16966,32 +17132,32 @@
16966
17132
  return false;
16967
17133
  }
16968
17134
  },
16969
- LI: function LI(_ref67) {
16970
- var node = _ref67.node, out = _ref67.out;
17135
+ LI: function LI(_ref70) {
17136
+ var node = _ref70.node, out = _ref70.out;
16971
17137
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
16972
17138
  if (hasImplicitListitemRole) {
16973
17139
  return out;
16974
17140
  }
16975
17141
  return true;
16976
17142
  },
16977
- MENU: function MENU(_ref68) {
16978
- var node = _ref68.node;
17143
+ MENU: function MENU(_ref71) {
17144
+ var node = _ref71.node;
16979
17145
  if (node.getAttribute('type') === 'context') {
16980
17146
  return false;
16981
17147
  }
16982
17148
  return true;
16983
17149
  },
16984
- OPTION: function OPTION(_ref69) {
16985
- var node = _ref69.node;
17150
+ OPTION: function OPTION(_ref72) {
17151
+ var node = _ref72.node;
16986
17152
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
16987
17153
  return !withinOptionList;
16988
17154
  },
16989
- SELECT: function SELECT(_ref70) {
16990
- var node = _ref70.node, role = _ref70.role;
17155
+ SELECT: function SELECT(_ref73) {
17156
+ var node = _ref73.node, role = _ref73.role;
16991
17157
  return !node.multiple && node.size <= 1 && role === 'menu';
16992
17158
  },
16993
- SVG: function SVG(_ref71) {
16994
- var node = _ref71.node, out = _ref71.out;
17159
+ SVG: function SVG(_ref74) {
17160
+ var node = _ref74.node, out = _ref74.out;
16995
17161
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
16996
17162
  return true;
16997
17163
  }
@@ -17015,6 +17181,42 @@
17015
17181
  return !!get_accessible_refs_default(node).length;
17016
17182
  }
17017
17183
  var is_accessible_ref_default = isAccessibleRef;
17184
+ function _isComboboxPopup(virtualNode) {
17185
+ var _popupRoles;
17186
+ var _ref75 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref75.popupRoles;
17187
+ var role = get_role_default(virtualNode);
17188
+ (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
17189
+ if (!popupRoles.includes(role)) {
17190
+ return false;
17191
+ }
17192
+ var vParent = nearestParentWithRole(virtualNode);
17193
+ if (isCombobox(vParent)) {
17194
+ return true;
17195
+ }
17196
+ var id = virtualNode.props.id;
17197
+ if (!id) {
17198
+ return false;
17199
+ }
17200
+ if (!virtualNode.actualNode) {
17201
+ throw new Error('Unable to determine combobox popup without an actualNode');
17202
+ }
17203
+ var root = get_root_node_default(virtualNode.actualNode);
17204
+ var ownedCombobox = root.querySelectorAll('[aria-owns~="'.concat(id, '"][role~="combobox"]:not(select),\n [aria-controls~="').concat(id, '"][role~="combobox"]:not(select)'));
17205
+ return Array.from(ownedCombobox).some(isCombobox);
17206
+ }
17207
+ var isCombobox = function isCombobox(node) {
17208
+ return node && get_role_default(node) === 'combobox';
17209
+ };
17210
+ function nearestParentWithRole(vNode) {
17211
+ while (vNode = vNode.parent) {
17212
+ if (get_role_default(vNode, {
17213
+ noPresentational: true
17214
+ }) !== null) {
17215
+ return vNode;
17216
+ }
17217
+ }
17218
+ return null;
17219
+ }
17018
17220
  function label2(node) {
17019
17221
  node = get_node_from_tree_default(node);
17020
17222
  return label_virtual_default(node);
@@ -17141,9 +17343,9 @@
17141
17343
  preChecks[attr] = validateRowAttrs;
17142
17344
  });
17143
17345
  if (allowed) {
17144
- for (var _i20 = 0; _i20 < attrs.length; _i20++) {
17346
+ for (var _i21 = 0; _i21 < attrs.length; _i21++) {
17145
17347
  var _preChecks$attrName;
17146
- var attrName = attrs[_i20];
17348
+ var attrName = attrs[_i21];
17147
17349
  if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {
17148
17350
  invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
17149
17351
  } else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
@@ -17339,37 +17541,82 @@
17339
17541
  function isClosedCombobox(vNode, role) {
17340
17542
  return role === 'combobox' && vNode.attr('aria-expanded') === 'false';
17341
17543
  }
17544
+ function ariaRequiredChildrenEvaluate(node, options, virtualNode) {
17545
+ var reviewEmpty = options && Array.isArray(options.reviewEmpty) ? options.reviewEmpty : [];
17546
+ var role = get_explicit_role_default(virtualNode, {
17547
+ dpub: true
17548
+ });
17549
+ var required = required_owned_default(role);
17550
+ if (required === null) {
17551
+ return true;
17552
+ }
17553
+ var ownedRoles = getOwnedRoles(virtualNode, required);
17554
+ var unallowed = ownedRoles.filter(function(_ref76) {
17555
+ var role2 = _ref76.role;
17556
+ return !required.includes(role2);
17557
+ });
17558
+ if (unallowed.length) {
17559
+ this.relatedNodes(unallowed.map(function(_ref77) {
17560
+ var ownedElement = _ref77.ownedElement;
17561
+ return ownedElement;
17562
+ }));
17563
+ this.data({
17564
+ messageKey: 'unallowed',
17565
+ values: unallowed.map(function(_ref78) {
17566
+ var ownedElement = _ref78.ownedElement, attr = _ref78.attr;
17567
+ return getUnallowedSelector(ownedElement, attr);
17568
+ }).filter(function(selector, index, array) {
17569
+ return array.indexOf(selector) === index;
17570
+ }).join(', ')
17571
+ });
17572
+ return false;
17573
+ }
17574
+ var missing = missingRequiredChildren(virtualNode, role, required, ownedRoles);
17575
+ if (!missing) {
17576
+ return true;
17577
+ }
17578
+ this.data(missing);
17579
+ if (reviewEmpty.includes(role) && !has_content_virtual_default(virtualNode, false, true) && !ownedRoles.length && (!virtualNode.hasAttr('aria-owns') || !idrefs_default(node, 'aria-owns').length)) {
17580
+ return void 0;
17581
+ }
17582
+ return false;
17583
+ }
17342
17584
  function getOwnedRoles(virtualNode, required) {
17343
17585
  var ownedRoles = [];
17344
17586
  var ownedElements = get_owned_virtual_default(virtualNode);
17345
- var _loop5 = function _loop5(_i21) {
17346
- var ownedElement = ownedElements[_i21];
17587
+ var _loop5 = function _loop5(_i22) {
17588
+ var ownedElement = ownedElements[_i22];
17589
+ if (ownedElement.props.nodeType !== 1) {
17590
+ return 'continue';
17591
+ }
17347
17592
  var role = get_role_default(ownedElement, {
17348
17593
  noPresentational: true
17349
17594
  });
17350
- var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
17351
- return ownedElement.hasAttr(attr);
17352
- });
17353
- var hasGlobalAriaOrFocusable = hasGlobalAria || _isFocusable(ownedElement);
17354
- if (!role && !hasGlobalAriaOrFocusable || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {
17595
+ var globalAriaAttr = getGlobalAriaAttr(ownedElement);
17596
+ var hasGlobalAriaOrFocusable = !!globalAriaAttr || _isFocusable(ownedElement);
17597
+ if (!_isVisibleToScreenReaders(ownedElement) || !role && !hasGlobalAriaOrFocusable || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {
17355
17598
  return requiredRole === role;
17356
17599
  })) {
17357
17600
  ownedElements.push.apply(ownedElements, _toConsumableArray(ownedElement.children));
17358
17601
  } else if (role || hasGlobalAriaOrFocusable) {
17359
17602
  ownedRoles.push({
17360
17603
  role: role,
17604
+ attr: globalAriaAttr || 'tabindex',
17361
17605
  ownedElement: ownedElement
17362
17606
  });
17363
17607
  }
17364
17608
  };
17365
- for (var _i21 = 0; _i21 < ownedElements.length; _i21++) {
17366
- _loop5(_i21);
17609
+ for (var _i22 = 0; _i22 < ownedElements.length; _i22++) {
17610
+ var _ret2 = _loop5(_i22);
17611
+ if (_ret2 === 'continue') {
17612
+ continue;
17613
+ }
17367
17614
  }
17368
17615
  return ownedRoles;
17369
17616
  }
17370
17617
  function missingRequiredChildren(virtualNode, role, required, ownedRoles) {
17371
- var _loop6 = function _loop6(_i22) {
17372
- var role2 = ownedRoles[_i22].role;
17618
+ var _loop6 = function _loop6(_i23) {
17619
+ var role2 = ownedRoles[_i23].role;
17373
17620
  if (required.includes(role2)) {
17374
17621
  required = required.filter(function(requiredRole) {
17375
17622
  return requiredRole !== role2;
@@ -17379,10 +17626,10 @@
17379
17626
  };
17380
17627
  }
17381
17628
  };
17382
- for (var _i22 = 0; _i22 < ownedRoles.length; _i22++) {
17383
- var _ret2 = _loop6(_i22);
17384
- if (_typeof(_ret2) === 'object') {
17385
- return _ret2.v;
17629
+ for (var _i23 = 0; _i23 < ownedRoles.length; _i23++) {
17630
+ var _ret3 = _loop6(_i23);
17631
+ if (_typeof(_ret3) === 'object') {
17632
+ return _ret3.v;
17386
17633
  }
17387
17634
  }
17388
17635
  if (required.length) {
@@ -17390,41 +17637,27 @@
17390
17637
  }
17391
17638
  return null;
17392
17639
  }
17393
- function ariaRequiredChildrenEvaluate(node, options, virtualNode) {
17394
- var reviewEmpty = options && Array.isArray(options.reviewEmpty) ? options.reviewEmpty : [];
17395
- var role = get_explicit_role_default(virtualNode, {
17396
- dpub: true
17640
+ function getGlobalAriaAttr(vNode) {
17641
+ return get_global_aria_attrs_default().find(function(attr) {
17642
+ return vNode.hasAttr(attr);
17397
17643
  });
17398
- var required = required_owned_default(role);
17399
- if (required === null) {
17400
- return true;
17644
+ }
17645
+ function getUnallowedSelector(vNode, attr) {
17646
+ var _vNode$props = vNode.props, nodeName2 = _vNode$props.nodeName, nodeType = _vNode$props.nodeType;
17647
+ if (nodeType === 3) {
17648
+ return '#text';
17401
17649
  }
17402
- var ownedRoles = getOwnedRoles(virtualNode, required);
17403
- var unallowed = ownedRoles.filter(function(_ref72) {
17404
- var role2 = _ref72.role;
17405
- return !required.includes(role2);
17650
+ var role = get_explicit_role_default(vNode, {
17651
+ dpub: true
17406
17652
  });
17407
- if (unallowed.length) {
17408
- this.relatedNodes(unallowed.map(function(_ref73) {
17409
- var ownedElement = _ref73.ownedElement;
17410
- return ownedElement;
17411
- }));
17412
- this.data({
17413
- messageKey: 'unallowed'
17414
- });
17415
- return false;
17416
- }
17417
- var missing = missingRequiredChildren(virtualNode, role, required, ownedRoles);
17418
- if (!missing) {
17419
- return true;
17653
+ if (role) {
17654
+ return '[role='.concat(role, ']');
17420
17655
  }
17421
- this.data(missing);
17422
- if (reviewEmpty.includes(role) && !has_content_virtual_default(virtualNode, false, true) && !ownedRoles.length && (!virtualNode.hasAttr('aria-owns') || !idrefs_default(node, 'aria-owns').length)) {
17423
- return void 0;
17656
+ if (attr) {
17657
+ return nodeName2 + '['.concat(attr, ']');
17424
17658
  }
17425
- return false;
17659
+ return nodeName2;
17426
17660
  }
17427
- var aria_required_children_evaluate_default = ariaRequiredChildrenEvaluate;
17428
17661
  function getMissingContext(virtualNode, ownGroupRoles, reqContext, includeElement) {
17429
17662
  var explicitRole2 = get_explicit_role_default(virtualNode);
17430
17663
  if (!reqContext) {
@@ -17480,8 +17713,8 @@
17480
17713
  }
17481
17714
  var owners = getAriaOwners(node);
17482
17715
  if (owners) {
17483
- for (var _i23 = 0, l = owners.length; _i23 < l; _i23++) {
17484
- missingParents = getMissingContext(get_node_from_tree_default(owners[_i23]), ownGroupRoles, missingParents, true);
17716
+ for (var _i24 = 0, l = owners.length; _i24 < l; _i24++) {
17717
+ missingParents = getMissingContext(get_node_from_tree_default(owners[_i24]), ownGroupRoles, missingParents, true);
17485
17718
  if (!missingParents) {
17486
17719
  return true;
17487
17720
  }
@@ -17718,6 +17951,7 @@
17718
17951
  };
17719
17952
  var VALID_ROLES_FOR_SCROLLABLE_REGIONS = {
17720
17953
  application: true,
17954
+ article: true,
17721
17955
  banner: false,
17722
17956
  complementary: true,
17723
17957
  contentinfo: true,
@@ -17783,6 +18017,9 @@
17783
18017
  getRectStack: function getRectStack() {
17784
18018
  return get_rect_stack_default;
17785
18019
  },
18020
+ getStackingContext: function getStackingContext() {
18021
+ return _getStackingContext;
18022
+ },
17786
18023
  getTextShadowColors: function getTextShadowColors() {
17787
18024
  return get_text_shadow_colors_default;
17788
18025
  },
@@ -17791,6 +18028,9 @@
17791
18028
  },
17792
18029
  incompleteData: function incompleteData() {
17793
18030
  return incomplete_data_default;
18031
+ },
18032
+ stackingContextToColor: function stackingContextToColor() {
18033
+ return _stackingContextToColor;
17794
18034
  }
17795
18035
  });
17796
18036
  function centerPointOfRect(rect) {
@@ -17931,12 +18171,12 @@
17931
18171
  function simpleAlphaCompositing(Cs, \u03b1s, Cb, \u03b1b, blendMode) {
17932
18172
  return \u03b1s * (1 - \u03b1b) * Cs + \u03b1s * \u03b1b * blendFunctions[blendMode](Cb / 255, Cs / 255) * 255 + (1 - \u03b1s) * \u03b1b * Cb;
17933
18173
  }
17934
- function flattenColors(fgColor, bgColor) {
18174
+ function flattenColors(sourceColor, backdrop) {
17935
18175
  var blendMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'normal';
17936
- var r = simpleAlphaCompositing(fgColor.red, fgColor.alpha, bgColor.red, bgColor.alpha, blendMode);
17937
- var g = simpleAlphaCompositing(fgColor.green, fgColor.alpha, bgColor.green, bgColor.alpha, blendMode);
17938
- var b = simpleAlphaCompositing(fgColor.blue, fgColor.alpha, bgColor.blue, bgColor.alpha, blendMode);
17939
- var \u03b1o = clamp(fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha), 0, 1);
18176
+ var r = simpleAlphaCompositing(sourceColor.red, sourceColor.alpha, backdrop.red, backdrop.alpha, blendMode);
18177
+ var g = simpleAlphaCompositing(sourceColor.green, sourceColor.alpha, backdrop.green, backdrop.alpha, blendMode);
18178
+ var b = simpleAlphaCompositing(sourceColor.blue, sourceColor.alpha, backdrop.blue, backdrop.alpha, blendMode);
18179
+ var \u03b1o = clamp(sourceColor.alpha + backdrop.alpha * (1 - sourceColor.alpha), 0, 1);
17940
18180
  if (\u03b1o === 0) {
17941
18181
  return new color_default(r, g, b, \u03b1o);
17942
18182
  }
@@ -18008,7 +18248,7 @@
18008
18248
  return true;
18009
18249
  }
18010
18250
  function getTextShadowColors(node) {
18011
- var _ref74 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref74.minRatio, maxRatio = _ref74.maxRatio;
18251
+ var _ref79 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref79.minRatio, maxRatio = _ref79.maxRatio;
18012
18252
  var style = window.getComputedStyle(node);
18013
18253
  var textShadow = style.getPropertyValue('text-shadow');
18014
18254
  if (textShadow === 'none') {
@@ -18019,8 +18259,8 @@
18019
18259
  assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
18020
18260
  var shadowColors = [];
18021
18261
  var shadows = parseTextShadows(textShadow);
18022
- shadows.forEach(function(_ref75) {
18023
- var colorStr = _ref75.colorStr, pixels = _ref75.pixels;
18262
+ shadows.forEach(function(_ref80) {
18263
+ var colorStr = _ref80.colorStr, pixels = _ref80.pixels;
18024
18264
  colorStr = colorStr || style.getPropertyValue('color');
18025
18265
  var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
18026
18266
  if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
@@ -18070,8 +18310,8 @@
18070
18310
  }
18071
18311
  return shadows;
18072
18312
  }
18073
- function textShadowColor(_ref76) {
18074
- var colorStr = _ref76.colorStr, offsetX = _ref76.offsetX, offsetY = _ref76.offsetY, blurRadius = _ref76.blurRadius, fontSize = _ref76.fontSize;
18313
+ function textShadowColor(_ref81) {
18314
+ var colorStr = _ref81.colorStr, offsetX = _ref81.offsetX, offsetY = _ref81.offsetY, blurRadius = _ref81.blurRadius, fontSize = _ref81.fontSize;
18075
18315
  if (offsetX > blurRadius || offsetY > blurRadius) {
18076
18316
  return new color_default(0, 0, 0, 0);
18077
18317
  }
@@ -18088,6 +18328,99 @@
18088
18328
  return .185 / (relativeBlur + .4);
18089
18329
  }
18090
18330
  var get_text_shadow_colors_default = getTextShadowColors;
18331
+ function _getStackingContext(elm, elmStack) {
18332
+ var _elmStack;
18333
+ var vNode = get_node_from_tree_default(elm);
18334
+ if (vNode._stackingContext) {
18335
+ return vNode._stackingContext;
18336
+ }
18337
+ var stackingContext = [];
18338
+ var contextMap = new Map();
18339
+ elmStack = (_elmStack = elmStack) !== null && _elmStack !== void 0 ? _elmStack : _getBackgroundStack(elm);
18340
+ elmStack.forEach(function(bgElm) {
18341
+ var _stackingOrder2;
18342
+ var bgVNode = get_node_from_tree_default(bgElm);
18343
+ var bgColor = getOwnBackgroundColor2(bgVNode);
18344
+ var stackingOrder = bgVNode._stackingOrder.filter(function(_ref82) {
18345
+ var vNode2 = _ref82.vNode;
18346
+ return !!vNode2;
18347
+ });
18348
+ stackingOrder.forEach(function(_ref83, index) {
18349
+ var _stackingOrder;
18350
+ var vNode2 = _ref83.vNode;
18351
+ var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
18352
+ var context2 = addToStackingContext(contextMap, vNode2, ancestorVNode2);
18353
+ if (index === 0 && !contextMap.get(vNode2)) {
18354
+ stackingContext.unshift(context2);
18355
+ }
18356
+ contextMap.set(vNode2, context2);
18357
+ });
18358
+ var ancestorVNode = (_stackingOrder2 = stackingOrder[stackingOrder.length - 1]) === null || _stackingOrder2 === void 0 ? void 0 : _stackingOrder2.vNode;
18359
+ var context = addToStackingContext(contextMap, bgVNode, ancestorVNode);
18360
+ if (!stackingOrder.length) {
18361
+ stackingContext.unshift(context);
18362
+ }
18363
+ context.bgColor = bgColor;
18364
+ });
18365
+ vNode._stackingContext = stackingContext;
18366
+ return stackingContext;
18367
+ }
18368
+ function _stackingContextToColor(context) {
18369
+ var _context$descendants;
18370
+ if (!((_context$descendants = context.descendants) !== null && _context$descendants !== void 0 && _context$descendants.length)) {
18371
+ var color2 = context.bgColor;
18372
+ color2.alpha *= context.opacity;
18373
+ return {
18374
+ color: color2,
18375
+ blendMode: context.blendMode
18376
+ };
18377
+ }
18378
+ var sourceColor = context.descendants.reduce(reduceToColor, createStackingContext());
18379
+ var color = flatten_colors_default(sourceColor, context.bgColor, context.descendants[0].blendMode);
18380
+ color.alpha *= context.opacity;
18381
+ return {
18382
+ color: color,
18383
+ blendMode: context.blendMode
18384
+ };
18385
+ }
18386
+ function reduceToColor(backdropContext, sourceContext) {
18387
+ var backdrop;
18388
+ if (backdropContext instanceof color_default) {
18389
+ backdrop = backdropContext;
18390
+ } else {
18391
+ backdrop = _stackingContextToColor(backdropContext).color;
18392
+ }
18393
+ var sourceColor = _stackingContextToColor(sourceContext).color;
18394
+ return flatten_colors_default(sourceColor, backdrop, sourceContext.blendMode);
18395
+ }
18396
+ function createStackingContext(vNode, ancestorContext) {
18397
+ var _vNode$getComputedSty;
18398
+ return {
18399
+ vNode: vNode,
18400
+ ancestor: ancestorContext,
18401
+ opacity: parseFloat((_vNode$getComputedSty = vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('opacity')) !== null && _vNode$getComputedSty !== void 0 ? _vNode$getComputedSty : 1),
18402
+ bgColor: new color_default(0, 0, 0, 0),
18403
+ blendMode: normalizeBlendMode(vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('mix-blend-mode')),
18404
+ descendants: []
18405
+ };
18406
+ }
18407
+ function normalizeBlendMode(blendmode) {
18408
+ return !!blendmode ? blendmode : void 0;
18409
+ }
18410
+ function addToStackingContext(contextMap, vNode, ancestorVNode) {
18411
+ var _contextMap$get;
18412
+ var ancestorContext = contextMap.get(ancestorVNode);
18413
+ var context = (_contextMap$get = contextMap.get(vNode)) !== null && _contextMap$get !== void 0 ? _contextMap$get : createStackingContext(vNode, ancestorContext);
18414
+ if (ancestorContext && ancestorVNode !== vNode && !ancestorContext.descendants.includes(context)) {
18415
+ ancestorContext.descendants.unshift(context);
18416
+ }
18417
+ return context;
18418
+ }
18419
+ function getOwnBackgroundColor2(vNode) {
18420
+ var bgColor = new color_default();
18421
+ bgColor.parseString(vNode.getComputedStylePropertyValue('background-color'));
18422
+ return bgColor;
18423
+ }
18091
18424
  function _getBackgroundColor2(elm) {
18092
18425
  var bgElms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
18093
18426
  var shadowOutlineEmMax = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .1;
@@ -18108,6 +18441,11 @@
18108
18441
  }
18109
18442
  function _getBackgroundColor(elm, bgElms, shadowOutlineEmMax) {
18110
18443
  var _bgColors;
18444
+ var elmStack = _getBackgroundStack(elm);
18445
+ if (!elmStack) {
18446
+ return null;
18447
+ }
18448
+ var textRects = get_visible_child_text_rects_default(elm);
18111
18449
  var bgColors = get_text_shadow_colors_default(elm, {
18112
18450
  minRatio: shadowOutlineEmMax
18113
18451
  });
@@ -18116,36 +18454,29 @@
18116
18454
  color: bgColors.reduce(_flattenShadowColors)
18117
18455
  } ];
18118
18456
  }
18119
- var elmStack = _getBackgroundStack(elm);
18120
- var textRects = get_visible_child_text_rects_default(elm);
18121
- (elmStack || []).some(function(bgElm) {
18457
+ for (var _i25 = 0; _i25 < elmStack.length; _i25++) {
18458
+ var bgElm = elmStack[_i25];
18122
18459
  var bgElmStyle = window.getComputedStyle(bgElm);
18123
18460
  if (element_has_image_default(bgElm, bgElmStyle)) {
18124
- bgColors = null;
18125
18461
  bgElms.push(bgElm);
18126
- return true;
18462
+ return null;
18127
18463
  }
18128
18464
  var bgColor = get_own_background_color_default(bgElmStyle);
18129
18465
  if (bgColor.alpha === 0) {
18130
- return false;
18466
+ continue;
18131
18467
  }
18132
18468
  if (bgElmStyle.getPropertyValue('display') !== 'inline' && !fullyEncompasses(bgElm, textRects)) {
18133
- bgColors = null;
18134
18469
  bgElms.push(bgElm);
18135
18470
  incomplete_data_default.set('bgColor', 'elmPartiallyObscured');
18136
- return true;
18471
+ return null;
18137
18472
  }
18138
18473
  bgElms.push(bgElm);
18139
- var blendMode = bgElmStyle.getPropertyValue('mix-blend-mode');
18140
- bgColors.unshift({
18141
- color: bgColor,
18142
- blendMode: normalizeBlendMode(blendMode)
18143
- });
18144
- return bgColor.alpha === 1;
18145
- });
18146
- if (bgColors === null || elmStack === null) {
18147
- return null;
18474
+ if (bgColor.alpha === 1) {
18475
+ break;
18476
+ }
18148
18477
  }
18478
+ var stackingContext = _getStackingContext(elm, elmStack);
18479
+ bgColors = stackingContext.map(_stackingContextToColor).concat(bgColors);
18149
18480
  var pageBgs = getPageBackgroundColors(elm, elmStack.includes(document.body));
18150
18481
  (_bgColors = bgColors).unshift.apply(_bgColors, _toConsumableArray(pageBgs));
18151
18482
  if (bgColors.length === 0) {
@@ -18170,7 +18501,7 @@
18170
18501
  return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right;
18171
18502
  });
18172
18503
  }
18173
- function normalizeBlendMode(blendmode) {
18504
+ function normalizeBlendMode2(blendmode) {
18174
18505
  return !!blendmode ? blendmode : void 0;
18175
18506
  }
18176
18507
  function getPageBackgroundColors(elm, stackContainsBody) {
@@ -18186,13 +18517,13 @@
18186
18517
  if (bodyBgColor.alpha !== 0 && htmlBgColor.alpha === 0 || bodyBgColorApplies && bodyBgColor.alpha !== 1) {
18187
18518
  pageColors.unshift({
18188
18519
  color: bodyBgColor,
18189
- blendMode: normalizeBlendMode(bodyStyle.getPropertyValue('mix-blend-mode'))
18520
+ blendMode: normalizeBlendMode2(bodyStyle.getPropertyValue('mix-blend-mode'))
18190
18521
  });
18191
18522
  }
18192
18523
  if (htmlBgColor.alpha !== 0 && (!bodyBgColorApplies || bodyBgColorApplies && bodyBgColor.alpha !== 1)) {
18193
18524
  pageColors.unshift({
18194
18525
  color: htmlBgColor,
18195
- blendMode: normalizeBlendMode(htmlStyle.getPropertyValue('mix-blend-mode'))
18526
+ blendMode: normalizeBlendMode2(htmlStyle.getPropertyValue('mix-blend-mode'))
18196
18527
  });
18197
18528
  }
18198
18529
  }
@@ -18214,42 +18545,45 @@
18214
18545
  var _bgColor;
18215
18546
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
18216
18547
  var nodeStyle = window.getComputedStyle(node);
18217
- var opacity = getOpacity(node, nodeStyle);
18218
- var strokeColor = getStrokeColor(nodeStyle, options);
18219
- if (strokeColor && strokeColor.alpha * opacity === 1) {
18220
- strokeColor.alpha = 1;
18221
- return strokeColor;
18222
- }
18223
- var textColor = getTextColor(nodeStyle);
18224
- var fgColor = strokeColor ? flatten_colors_default(strokeColor, textColor) : textColor;
18225
- if (fgColor.alpha * opacity === 1) {
18226
- fgColor.alpha = 1;
18227
- return fgColor;
18228
- }
18229
- var textShadowColors = get_text_shadow_colors_default(node, {
18230
- minRatio: 0
18231
- });
18232
- fgColor = textShadowColors.reduce(function(colorA, colorB) {
18233
- return flatten_colors_default(colorA, colorB);
18234
- }, fgColor);
18235
- if (fgColor.alpha * opacity === 1) {
18236
- fgColor.alpha = 1;
18237
- return fgColor;
18548
+ var colorStack = [ function() {
18549
+ return getStrokeColor(nodeStyle, options);
18550
+ }, function() {
18551
+ return getTextColor(nodeStyle);
18552
+ }, function() {
18553
+ return get_text_shadow_colors_default(node, {
18554
+ minRatio: 0
18555
+ });
18556
+ } ];
18557
+ var fgColors = [];
18558
+ for (var _i26 = 0, _colorStack = colorStack; _i26 < _colorStack.length; _i26++) {
18559
+ var colorFn = _colorStack[_i26];
18560
+ var color = colorFn();
18561
+ if (!color) {
18562
+ continue;
18563
+ }
18564
+ fgColors = fgColors.concat(color);
18565
+ if (color.alpha === 1) {
18566
+ break;
18567
+ }
18238
18568
  }
18569
+ var fgColor = fgColors.reduce(function(source, backdrop) {
18570
+ return flatten_colors_default(source, backdrop);
18571
+ });
18239
18572
  (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);
18240
18573
  if (bgColor === null) {
18241
18574
  var reason = incomplete_data_default.get('bgColor');
18242
18575
  incomplete_data_default.set('fgColor', reason);
18243
18576
  return null;
18244
18577
  }
18245
- fgColor.alpha = fgColor.alpha * opacity;
18246
- return flatten_colors_default(fgColor, bgColor);
18578
+ var stackingContexts = _getStackingContext(node);
18579
+ var context = findNodeInContexts(stackingContexts, node);
18580
+ return flatten_colors_default(calculateBlendedForegroundColor(fgColor, context, stackingContexts), new color_default(255, 255, 255, 1));
18247
18581
  }
18248
18582
  function getTextColor(nodeStyle) {
18249
18583
  return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
18250
18584
  }
18251
- function getStrokeColor(nodeStyle, _ref77) {
18252
- var _ref77$textStrokeEmMi = _ref77.textStrokeEmMin, textStrokeEmMin = _ref77$textStrokeEmMi === void 0 ? 0 : _ref77$textStrokeEmMi;
18585
+ function getStrokeColor(nodeStyle, _ref84) {
18586
+ var _ref84$textStrokeEmMi = _ref84.textStrokeEmMin, textStrokeEmMin = _ref84$textStrokeEmMi === void 0 ? 0 : _ref84$textStrokeEmMi;
18253
18587
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
18254
18588
  if (strokeWidth === 0) {
18255
18589
  return null;
@@ -18262,22 +18596,53 @@
18262
18596
  var strokeColor = nodeStyle.getPropertyValue('-webkit-text-stroke-color');
18263
18597
  return new color_default().parseString(strokeColor);
18264
18598
  }
18265
- function getOpacity(node, nodeStyle) {
18266
- var _nodeStyle;
18267
- if (!node) {
18268
- return 1;
18269
- }
18270
- var vNode = get_node_from_tree_default(node);
18271
- if (vNode && vNode._opacity !== void 0 && vNode._opacity !== null) {
18272
- return vNode._opacity;
18599
+ function calculateBlendedForegroundColor(fgColor, context, stackingContexts) {
18600
+ while (context) {
18601
+ var _context$ancestor;
18602
+ if (context.opacity === 1 && context.ancestor) {
18603
+ context = context.ancestor;
18604
+ continue;
18605
+ }
18606
+ fgColor.alpha *= context.opacity;
18607
+ var stack = ((_context$ancestor = context.ancestor) === null || _context$ancestor === void 0 ? void 0 : _context$ancestor.descendants) || stackingContexts;
18608
+ if (context.opacity !== 1) {
18609
+ stack = stack.slice(0, stack.indexOf(context));
18610
+ }
18611
+ var bgColors = stack.map(_stackingContextToColor);
18612
+ if (!bgColors.length) {
18613
+ context = context.ancestor;
18614
+ continue;
18615
+ }
18616
+ var bgColor = bgColors.reduce(function(backdrop, source) {
18617
+ return flatten_colors_default(source.color, backdrop.color instanceof color_default ? backdrop.color : backdrop);
18618
+ }, {
18619
+ color: new color_default(0, 0, 0, 0),
18620
+ blendMode: 'normal'
18621
+ });
18622
+ fgColor = flatten_colors_default(fgColor, bgColor);
18623
+ context = context.ancestor;
18273
18624
  }
18274
- (_nodeStyle = nodeStyle) !== null && _nodeStyle !== void 0 ? _nodeStyle : nodeStyle = window.getComputedStyle(node);
18275
- var opacity = nodeStyle.getPropertyValue('opacity');
18276
- var finalOpacity = opacity * getOpacity(node.parentElement);
18277
- if (vNode) {
18278
- vNode._opacity = finalOpacity;
18625
+ return fgColor;
18626
+ }
18627
+ function findNodeInContexts(contexts, node) {
18628
+ var _iterator8 = _createForOfIteratorHelper(contexts), _step8;
18629
+ try {
18630
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
18631
+ var _context$vNode;
18632
+ var context = _step8.value;
18633
+ if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) {
18634
+ return context;
18635
+ }
18636
+ var found = findNodeInContexts(context.descendants, node);
18637
+ if (found) {
18638
+ return found;
18639
+ }
18640
+ }
18641
+ } catch (err) {
18642
+ _iterator8.e(err);
18643
+ } finally {
18644
+ _iterator8.f();
18279
18645
  }
18280
- return finalOpacity;
18281
18646
  }
18282
18647
  function hasValidContrastRatio(bg, fg, fontSize, isBold) {
18283
18648
  var contrast = get_contrast_default(bg, fg);
@@ -18311,7 +18676,7 @@
18311
18676
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
18312
18677
  var ptSize = Math.ceil(fontSize * 72) / 96;
18313
18678
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
18314
- var _ref78 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref78.expected, minThreshold = _ref78.minThreshold, maxThreshold = _ref78.maxThreshold;
18679
+ var _ref85 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref85.expected, minThreshold = _ref85.minThreshold, maxThreshold = _ref85.maxThreshold;
18315
18680
  var pseudoElm = findPseudoElement(virtualNode, {
18316
18681
  ignorePseudo: ignorePseudo,
18317
18682
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -18390,8 +18755,8 @@
18390
18755
  }
18391
18756
  return isValid;
18392
18757
  }
18393
- function findPseudoElement(vNode, _ref79) {
18394
- var _ref79$pseudoSizeThre = _ref79.pseudoSizeThreshold, pseudoSizeThreshold = _ref79$pseudoSizeThre === void 0 ? .25 : _ref79$pseudoSizeThre, _ref79$ignorePseudo = _ref79.ignorePseudo, ignorePseudo = _ref79$ignorePseudo === void 0 ? false : _ref79$ignorePseudo;
18758
+ function findPseudoElement(vNode, _ref86) {
18759
+ var _ref86$pseudoSizeThre = _ref86.pseudoSizeThreshold, pseudoSizeThreshold = _ref86$pseudoSizeThre === void 0 ? .25 : _ref86$pseudoSizeThre, _ref86$ignorePseudo = _ref86.ignorePseudo, ignorePseudo = _ref86$ignorePseudo === void 0 ? false : _ref86$ignorePseudo;
18395
18760
  if (ignorePseudo) {
18396
18761
  return;
18397
18762
  }
@@ -18433,7 +18798,7 @@
18433
18798
  }
18434
18799
  function parseUnit(str) {
18435
18800
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
18436
- var _ref80 = str.match(unitRegex) || [], _ref81 = _slicedToArray(_ref80, 3), _ref81$ = _ref81[1], value = _ref81$ === void 0 ? '' : _ref81$, _ref81$2 = _ref81[2], unit = _ref81$2 === void 0 ? '' : _ref81$2;
18801
+ var _ref87 = str.match(unitRegex) || [], _ref88 = _slicedToArray(_ref87, 3), _ref88$ = _ref88[1], value = _ref88$ === void 0 ? '' : _ref88$, _ref88$2 = _ref88[2], unit = _ref88$2 === void 0 ? '' : _ref88$2;
18437
18802
  return {
18438
18803
  value: parseFloat(value),
18439
18804
  unit: unit.toLowerCase()
@@ -18777,8 +19142,8 @@
18777
19142
  }
18778
19143
  var focusable_element_evaluate_default = focusableElementEvaluate;
18779
19144
  function focusableModalOpenEvaluate(node, options, virtualNode) {
18780
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref82) {
18781
- var actualNode = _ref82.actualNode;
19145
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref89) {
19146
+ var actualNode = _ref89.actualNode;
18782
19147
  return actualNode;
18783
19148
  });
18784
19149
  if (!tabbableElements || !tabbableElements.length) {
@@ -19259,8 +19624,8 @@
19259
19624
  this.relatedNodes(relatedNodes);
19260
19625
  return true;
19261
19626
  }
19262
- function getInvalidSelector(vChild, nested, _ref83) {
19263
- var _ref83$validRoles = _ref83.validRoles, validRoles = _ref83$validRoles === void 0 ? [] : _ref83$validRoles, _ref83$validNodeNames = _ref83.validNodeNames, validNodeNames = _ref83$validNodeNames === void 0 ? [] : _ref83$validNodeNames;
19627
+ function getInvalidSelector(vChild, nested, _ref90) {
19628
+ var _ref90$validRoles = _ref90.validRoles, validRoles = _ref90$validRoles === void 0 ? [] : _ref90$validRoles, _ref90$validNodeNames = _ref90.validNodeNames, validNodeNames = _ref90$validNodeNames === void 0 ? [] : _ref90$validNodeNames;
19264
19629
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
19265
19630
  var selector = nested ? 'div > ' : '';
19266
19631
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -19493,8 +19858,8 @@
19493
19858
  }
19494
19859
  var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
19495
19860
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
19496
- var _ref84 = context || {}, _ref84$cssom = _ref84.cssom, cssom = _ref84$cssom === void 0 ? void 0 : _ref84$cssom;
19497
- var _ref85 = options || {}, _ref85$degreeThreshol = _ref85.degreeThreshold, degreeThreshold = _ref85$degreeThreshol === void 0 ? 0 : _ref85$degreeThreshol;
19861
+ var _ref91 = context || {}, _ref91$cssom = _ref91.cssom, cssom = _ref91$cssom === void 0 ? void 0 : _ref91$cssom;
19862
+ var _ref92 = options || {}, _ref92$degreeThreshol = _ref92.degreeThreshold, degreeThreshold = _ref92$degreeThreshol === void 0 ? 0 : _ref92$degreeThreshol;
19498
19863
  if (!cssom || !cssom.length) {
19499
19864
  return void 0;
19500
19865
  }
@@ -19502,14 +19867,14 @@
19502
19867
  var relatedElements = [];
19503
19868
  var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
19504
19869
  var _loop7 = function _loop7() {
19505
- var key = _Object$keys2[_i24];
19870
+ var key = _Object$keys2[_i27];
19506
19871
  var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
19507
19872
  var orientationRules = rules.filter(isMediaRuleWithOrientation);
19508
19873
  if (!orientationRules.length) {
19509
19874
  return 'continue';
19510
19875
  }
19511
- orientationRules.forEach(function(_ref86) {
19512
- var cssRules = _ref86.cssRules;
19876
+ orientationRules.forEach(function(_ref93) {
19877
+ var cssRules = _ref93.cssRules;
19513
19878
  Array.from(cssRules).forEach(function(cssRule) {
19514
19879
  var locked = getIsOrientationLocked(cssRule);
19515
19880
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -19520,9 +19885,9 @@
19520
19885
  });
19521
19886
  });
19522
19887
  };
19523
- for (var _i24 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i24 < _Object$keys2.length; _i24++) {
19524
- var _ret3 = _loop7();
19525
- if (_ret3 === 'continue') {
19888
+ for (var _i27 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i27 < _Object$keys2.length; _i27++) {
19889
+ var _ret4 = _loop7();
19890
+ if (_ret4 === 'continue') {
19526
19891
  continue;
19527
19892
  }
19528
19893
  }
@@ -19534,8 +19899,8 @@
19534
19899
  }
19535
19900
  return false;
19536
19901
  function groupCssomByDocument(cssObjectModel) {
19537
- return cssObjectModel.reduce(function(out, _ref87) {
19538
- var sheet = _ref87.sheet, root = _ref87.root, shadowId = _ref87.shadowId;
19902
+ return cssObjectModel.reduce(function(out, _ref94) {
19903
+ var sheet = _ref94.sheet, root = _ref94.root, shadowId = _ref94.shadowId;
19539
19904
  var key = shadowId ? shadowId : 'topDocument';
19540
19905
  if (!out[key]) {
19541
19906
  out[key] = {
@@ -19551,28 +19916,25 @@
19551
19916
  return out;
19552
19917
  }, {});
19553
19918
  }
19554
- function isMediaRuleWithOrientation(_ref88) {
19555
- var type = _ref88.type, cssText = _ref88.cssText;
19919
+ function isMediaRuleWithOrientation(_ref95) {
19920
+ var type = _ref95.type, cssText = _ref95.cssText;
19556
19921
  if (type !== 4) {
19557
19922
  return false;
19558
19923
  }
19559
19924
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
19560
19925
  }
19561
- function getIsOrientationLocked(_ref89) {
19562
- var selectorText = _ref89.selectorText, style = _ref89.style;
19926
+ function getIsOrientationLocked(_ref96) {
19927
+ var selectorText = _ref96.selectorText, style = _ref96.style;
19563
19928
  if (!selectorText || style.length <= 0) {
19564
19929
  return false;
19565
19930
  }
19566
19931
  var transformStyle = style.transform || style.webkitTransform || style.msTransform || false;
19567
- if (!transformStyle) {
19568
- return false;
19569
- }
19570
- var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
19571
- if (!matches4) {
19932
+ if (!transformStyle && !style.rotate) {
19572
19933
  return false;
19573
19934
  }
19574
- var _matches = _slicedToArray(matches4, 3), transformFn = _matches[1], transformFnValue = _matches[2];
19575
- var degrees = getRotationInDegrees(transformFn, transformFnValue);
19935
+ var transformDegrees = getTransformDegrees(transformStyle);
19936
+ var rotateDegrees = getRotationInDegrees('rotate', style.rotate);
19937
+ var degrees = transformDegrees + rotateDegrees;
19576
19938
  if (!degrees) {
19577
19939
  return false;
19578
19940
  }
@@ -19582,6 +19944,17 @@
19582
19944
  }
19583
19945
  return Math.abs(degrees - 90) % 90 <= degreeThreshold;
19584
19946
  }
19947
+ function getTransformDegrees(transformStyle) {
19948
+ if (!transformStyle) {
19949
+ return 0;
19950
+ }
19951
+ var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
19952
+ if (!matches4) {
19953
+ return 0;
19954
+ }
19955
+ var _matches = _slicedToArray(matches4, 3), transformFn = _matches[1], transformFnValue = _matches[2];
19956
+ return getRotationInDegrees(transformFn, transformFnValue);
19957
+ }
19585
19958
  function getRotationInDegrees(transformFunction, transformFnValue) {
19586
19959
  switch (transformFunction) {
19587
19960
  case 'rotate':
@@ -19602,13 +19975,13 @@
19602
19975
  return getAngleInDegreesFromMatrixTransform(transformFnValue);
19603
19976
 
19604
19977
  default:
19605
- return;
19978
+ return 0;
19606
19979
  }
19607
19980
  }
19608
19981
  function getAngleInDegrees(angleWithUnit) {
19609
- var _ref90 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref91 = _slicedToArray(_ref90, 1), unit = _ref91[0];
19982
+ var _ref97 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref98 = _slicedToArray(_ref97, 1), unit = _ref98[0];
19610
19983
  if (!unit) {
19611
- return;
19984
+ return 0;
19612
19985
  }
19613
19986
  var angle = parseFloat(angleWithUnit.replace(unit, ''));
19614
19987
  switch (unit) {
@@ -19655,7 +20028,7 @@
19655
20028
  }
19656
20029
  var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
19657
20030
  function metaViewportScaleEvaluate(node, options, virtualNode) {
19658
- var _ref92 = options || {}, _ref92$scaleMinimum = _ref92.scaleMinimum, scaleMinimum = _ref92$scaleMinimum === void 0 ? 2 : _ref92$scaleMinimum, _ref92$lowerBound = _ref92.lowerBound, lowerBound = _ref92$lowerBound === void 0 ? false : _ref92$lowerBound;
20031
+ var _ref99 = options || {}, _ref99$scaleMinimum = _ref99.scaleMinimum, scaleMinimum = _ref99$scaleMinimum === void 0 ? 2 : _ref99$scaleMinimum, _ref99$lowerBound = _ref99.lowerBound, lowerBound = _ref99$lowerBound === void 0 ? false : _ref99$lowerBound;
19659
20032
  var content = virtualNode.attr('content') || '';
19660
20033
  if (!content) {
19661
20034
  return true;
@@ -19704,10 +20077,10 @@
19704
20077
  var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
19705
20078
  var closeNeighbors = [];
19706
20079
  var closestOffset = minOffset;
19707
- var _iterator8 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step8;
20080
+ var _iterator9 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step9;
19708
20081
  try {
19709
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
19710
- var vNeighbor = _step8.value;
20082
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
20083
+ var vNeighbor = _step9.value;
19711
20084
  if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
19712
20085
  continue;
19713
20086
  }
@@ -19719,9 +20092,9 @@
19719
20092
  closeNeighbors.push(vNeighbor);
19720
20093
  }
19721
20094
  } catch (err) {
19722
- _iterator8.e(err);
20095
+ _iterator9.e(err);
19723
20096
  } finally {
19724
- _iterator8.f();
20097
+ _iterator9.f();
19725
20098
  }
19726
20099
  if (closeNeighbors.length === 0) {
19727
20100
  this.data({
@@ -19730,8 +20103,8 @@
19730
20103
  });
19731
20104
  return true;
19732
20105
  }
19733
- this.relatedNodes(closeNeighbors.map(function(_ref93) {
19734
- var actualNode = _ref93.actualNode;
20106
+ this.relatedNodes(closeNeighbors.map(function(_ref100) {
20107
+ var actualNode = _ref100.actualNode;
19735
20108
  return actualNode;
19736
20109
  }));
19737
20110
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -19809,10 +20182,10 @@
19809
20182
  function filterByElmsOverlap(vNode, nearbyElms) {
19810
20183
  var fullyObscuringElms = [];
19811
20184
  var partialObscuringElms = [];
19812
- var _iterator9 = _createForOfIteratorHelper(nearbyElms), _step9;
20185
+ var _iterator10 = _createForOfIteratorHelper(nearbyElms), _step10;
19813
20186
  try {
19814
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
19815
- var vNeighbor = _step9.value;
20187
+ for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
20188
+ var vNeighbor = _step10.value;
19816
20189
  if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
19817
20190
  if (isEnclosedRect(vNode, vNeighbor)) {
19818
20191
  fullyObscuringElms.push(vNeighbor);
@@ -19822,9 +20195,9 @@
19822
20195
  }
19823
20196
  }
19824
20197
  } catch (err) {
19825
- _iterator9.e(err);
20198
+ _iterator10.e(err);
19826
20199
  } finally {
19827
- _iterator9.f();
20200
+ _iterator10.f();
19828
20201
  }
19829
20202
  return {
19830
20203
  fullyObscuringElms: fullyObscuringElms,
@@ -19836,8 +20209,8 @@
19836
20209
  if (obscuredNodes.length === 0) {
19837
20210
  return null;
19838
20211
  }
19839
- var obscuringRects = obscuredNodes.map(function(_ref94) {
19840
- var rect = _ref94.boundingClientRect;
20212
+ var obscuringRects = obscuredNodes.map(function(_ref101) {
20213
+ var rect = _ref101.boundingClientRect;
19841
20214
  return rect;
19842
20215
  });
19843
20216
  var unobscuredRects = _splitRects(nodeRect, obscuringRects);
@@ -19877,13 +20250,13 @@
19877
20250
  function isDescendantNotInTabOrder(vAncestor, vNode) {
19878
20251
  return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
19879
20252
  }
19880
- function rectHasMinimumSize(minSize, _ref95) {
19881
- var width = _ref95.width, height = _ref95.height;
20253
+ function rectHasMinimumSize(minSize, _ref102) {
20254
+ var width = _ref102.width, height = _ref102.height;
19882
20255
  return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
19883
20256
  }
19884
20257
  function mapActualNodes(vNodes) {
19885
- return vNodes.map(function(_ref96) {
19886
- var actualNode = _ref96.actualNode;
20258
+ return vNodes.map(function(_ref103) {
20259
+ var actualNode = _ref103.actualNode;
19887
20260
  return actualNode;
19888
20261
  });
19889
20262
  }
@@ -19909,14 +20282,14 @@
19909
20282
  }
19910
20283
  function getHeadingOrder(results) {
19911
20284
  results = _toConsumableArray(results);
19912
- results.sort(function(_ref97, _ref98) {
19913
- var nodeA = _ref97.node;
19914
- var nodeB = _ref98.node;
20285
+ results.sort(function(_ref104, _ref105) {
20286
+ var nodeA = _ref104.node;
20287
+ var nodeB = _ref105.node;
19915
20288
  return nodeA.ancestry.length - nodeB.ancestry.length;
19916
20289
  });
19917
20290
  var headingOrder = results.reduce(mergeHeadingOrder, []);
19918
- return headingOrder.filter(function(_ref99) {
19919
- var level = _ref99.level;
20291
+ return headingOrder.filter(function(_ref106) {
20292
+ var level = _ref106.level;
19920
20293
  return level !== -1;
19921
20294
  });
19922
20295
  }
@@ -19967,7 +20340,7 @@
19967
20340
  var headingRole = role && role.includes('heading');
19968
20341
  var ariaHeadingLevel = vNode.attr('aria-level');
19969
20342
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
19970
- var _ref100 = vNode.props.nodeName.match(/h(\d)/) || [], _ref101 = _slicedToArray(_ref100, 2), headingLevel = _ref101[1];
20343
+ var _ref107 = vNode.props.nodeName.match(/h(\d)/) || [], _ref108 = _slicedToArray(_ref107, 2), headingLevel = _ref108[1];
19971
20344
  if (!headingRole) {
19972
20345
  return -1;
19973
20346
  }
@@ -20031,8 +20404,8 @@
20031
20404
  if (results.length < 2) {
20032
20405
  return results;
20033
20406
  }
20034
- var incompleteResults = results.filter(function(_ref102) {
20035
- var result = _ref102.result;
20407
+ var incompleteResults = results.filter(function(_ref109) {
20408
+ var result = _ref109.result;
20036
20409
  return result !== void 0;
20037
20410
  });
20038
20411
  var uniqueResults = [];
@@ -20044,12 +20417,12 @@
20044
20417
  if (nameMap[name]) {
20045
20418
  return 'continue';
20046
20419
  }
20047
- var sameNameResults = incompleteResults.filter(function(_ref103, resultNum) {
20048
- var data2 = _ref103.data;
20420
+ var sameNameResults = incompleteResults.filter(function(_ref110, resultNum) {
20421
+ var data2 = _ref110.data;
20049
20422
  return data2.name === name && resultNum !== index;
20050
20423
  });
20051
- var isSameUrl = sameNameResults.every(function(_ref104) {
20052
- var data2 = _ref104.data;
20424
+ var isSameUrl = sameNameResults.every(function(_ref111) {
20425
+ var data2 = _ref111.data;
20053
20426
  return isIdenticalObject(data2.urlProps, urlProps);
20054
20427
  });
20055
20428
  if (sameNameResults.length && !isSameUrl) {
@@ -20063,8 +20436,8 @@
20063
20436
  uniqueResults.push(currentResult);
20064
20437
  };
20065
20438
  for (var index = 0; index < incompleteResults.length; index++) {
20066
- var _ret4 = _loop8(index);
20067
- if (_ret4 === 'continue') {
20439
+ var _ret5 = _loop8(index);
20440
+ if (_ret5 === 'continue') {
20068
20441
  continue;
20069
20442
  }
20070
20443
  }
@@ -20468,7 +20841,7 @@
20468
20841
  var separatorRegex = /[;,\s]/;
20469
20842
  var validRedirectNumRegex = /^[0-9.]+$/;
20470
20843
  function metaRefreshEvaluate(node, options, virtualNode) {
20471
- var _ref105 = options || {}, minDelay = _ref105.minDelay, maxDelay = _ref105.maxDelay;
20844
+ var _ref112 = options || {}, minDelay = _ref112.minDelay, maxDelay = _ref112.maxDelay;
20472
20845
  var content = (virtualNode.attr('content') || '').trim();
20473
20846
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
20474
20847
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -20508,16 +20881,16 @@
20508
20881
  var outerText = elm.textContent.trim();
20509
20882
  var innerText = outerText;
20510
20883
  while (innerText === outerText && nextNode !== void 0) {
20511
- var _i25 = -1;
20884
+ var _i28 = -1;
20512
20885
  elm = nextNode;
20513
20886
  if (elm.children.length === 0) {
20514
20887
  return elm;
20515
20888
  }
20516
20889
  do {
20517
- _i25++;
20518
- innerText = elm.children[_i25].textContent.trim();
20519
- } while (innerText === '' && _i25 + 1 < elm.children.length);
20520
- nextNode = elm.children[_i25];
20890
+ _i28++;
20891
+ innerText = elm.children[_i28].textContent.trim();
20892
+ } while (innerText === '' && _i28 + 1 < elm.children.length);
20893
+ nextNode = elm.children[_i28];
20521
20894
  }
20522
20895
  return elm;
20523
20896
  }
@@ -20580,19 +20953,19 @@
20580
20953
  return;
20581
20954
  }
20582
20955
  var frameAncestry = r.node.ancestry.slice(0, -1);
20583
- var _iterator10 = _createForOfIteratorHelper(iframeResults), _step10;
20956
+ var _iterator11 = _createForOfIteratorHelper(iframeResults), _step11;
20584
20957
  try {
20585
- for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
20586
- var iframeResult = _step10.value;
20958
+ for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
20959
+ var iframeResult = _step11.value;
20587
20960
  if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
20588
20961
  r.result = iframeResult.result;
20589
20962
  break;
20590
20963
  }
20591
20964
  }
20592
20965
  } catch (err) {
20593
- _iterator10.e(err);
20966
+ _iterator11.e(err);
20594
20967
  } finally {
20595
- _iterator10.f();
20968
+ _iterator11.f();
20596
20969
  }
20597
20970
  });
20598
20971
  iframeResults.forEach(function(r) {
@@ -20640,8 +21013,8 @@
20640
21013
  } else if (node !== document.body && has_content_default(node, true)) {
20641
21014
  return [ virtualNode ];
20642
21015
  } else {
20643
- return virtualNode.children.filter(function(_ref106) {
20644
- var actualNode = _ref106.actualNode;
21016
+ return virtualNode.children.filter(function(_ref113) {
21017
+ var actualNode = _ref113.actualNode;
20645
21018
  return actualNode.nodeType === 1;
20646
21019
  }).map(function(vNode) {
20647
21020
  return findRegionlessElms(vNode, options);
@@ -20794,8 +21167,8 @@
20794
21167
  }
20795
21168
  return false;
20796
21169
  }
20797
- function getNumberValue(domNode, _ref107) {
20798
- var cssProperty = _ref107.cssProperty, absoluteValues = _ref107.absoluteValues, normalValue = _ref107.normalValue;
21170
+ function getNumberValue(domNode, _ref114) {
21171
+ var cssProperty = _ref114.cssProperty, absoluteValues = _ref114.absoluteValues, normalValue = _ref114.normalValue;
20799
21172
  var computedStyle = window.getComputedStyle(domNode);
20800
21173
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
20801
21174
  if (cssPropValue === 'normal') {
@@ -20872,8 +21245,8 @@
20872
21245
  if (!virtualNode.children) {
20873
21246
  return void 0;
20874
21247
  }
20875
- var titleNode = virtualNode.children.find(function(_ref108) {
20876
- var props = _ref108.props;
21248
+ var titleNode = virtualNode.children.find(function(_ref115) {
21249
+ var props = _ref115.props;
20877
21250
  return props.nodeName === 'title';
20878
21251
  });
20879
21252
  if (!titleNode) {
@@ -21075,8 +21448,8 @@
21075
21448
  var aria = /^aria-/;
21076
21449
  var attrs = virtualNode.attrNames;
21077
21450
  if (attrs.length) {
21078
- for (var _i26 = 0, l = attrs.length; _i26 < l; _i26++) {
21079
- if (aria.test(attrs[_i26])) {
21451
+ for (var _i29 = 0, l = attrs.length; _i29 < l; _i29++) {
21452
+ if (aria.test(attrs[_i29])) {
21080
21453
  return true;
21081
21454
  }
21082
21455
  }
@@ -21177,7 +21550,7 @@
21177
21550
  if (nodeName2 === 'input' && nonTextInput.includes(inputType)) {
21178
21551
  return false;
21179
21552
  }
21180
- if (is_disabled_default(virtualNode)) {
21553
+ if (is_disabled_default(virtualNode) || _isInert(virtualNode)) {
21181
21554
  return false;
21182
21555
  }
21183
21556
  var formElements = [ 'input', 'select', 'textarea' ];
@@ -21468,7 +21841,7 @@
21468
21841
  if (!role || [ 'none', 'presentation' ].includes(role)) {
21469
21842
  return true;
21470
21843
  }
21471
- var _ref109 = aria_roles_default[role] || {}, accessibleNameRequired = _ref109.accessibleNameRequired;
21844
+ var _ref116 = aria_roles_default[role] || {}, accessibleNameRequired = _ref116.accessibleNameRequired;
21472
21845
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
21473
21846
  return true;
21474
21847
  }
@@ -21483,6 +21856,11 @@
21483
21856
  if (get_explicit_role_default(virtualNode) === 'combobox' && query_selector_all_default(virtualNode, 'input:not([type="hidden"])').length) {
21484
21857
  return false;
21485
21858
  }
21859
+ if (_isComboboxPopup(virtualNode, {
21860
+ popupRoles: [ 'listbox' ]
21861
+ })) {
21862
+ return false;
21863
+ }
21486
21864
  return true;
21487
21865
  }
21488
21866
  var no_naming_method_matches_default = noNamingMethodMatches;
@@ -21534,37 +21912,13 @@
21534
21912
  }
21535
21913
  var presentation_role_conflict_matches_default = presentationRoleConflictMatches;
21536
21914
  function scrollableRegionFocusableMatches(node, virtualNode) {
21537
- if (!!_getScroll(node, 13) === false) {
21538
- return false;
21539
- }
21540
- var role = get_explicit_role_default(virtualNode);
21541
- if (aria_attrs_default['aria-haspopup'].values.includes(role)) {
21542
- if (closest_default(virtualNode, '[role~="combobox"]')) {
21543
- return false;
21544
- }
21545
- var id = virtualNode.attr('id');
21546
- if (id) {
21547
- var doc = get_root_node_default(node);
21548
- var owned = Array.from(doc.querySelectorAll('[aria-owns~="'.concat(id, '"], [aria-controls~="').concat(id, '"]')));
21549
- var comboboxOwned = owned.some(function(el) {
21550
- var roles = token_list_default(el.getAttribute('role'));
21551
- return roles.includes('combobox');
21552
- });
21553
- if (comboboxOwned) {
21554
- return false;
21555
- }
21556
- }
21557
- }
21558
- var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
21559
- var hasVisibleChildren = nodeAndDescendents.some(function(elm) {
21915
+ return _getScroll(node, 13) !== void 0 && _isComboboxPopup(virtualNode) === false && isNoneEmptyElement(virtualNode);
21916
+ }
21917
+ function isNoneEmptyElement(vNode) {
21918
+ return query_selector_all_default(vNode, '*').some(function(elm) {
21560
21919
  return has_content_virtual_default(elm, true, true);
21561
21920
  });
21562
- if (!hasVisibleChildren) {
21563
- return false;
21564
- }
21565
- return true;
21566
21921
  }
21567
- var scrollable_region_focusable_matches_default = scrollableRegionFocusableMatches;
21568
21922
  function skipLinkMatches(node) {
21569
21923
  return _isSkipLink(node) && is_offscreen_default(node);
21570
21924
  }
@@ -21637,7 +21991,7 @@
21637
21991
  'aria-level-evaluate': aria_level_evaluate_default,
21638
21992
  'aria-prohibited-attr-evaluate': ariaProhibitedAttrEvaluate,
21639
21993
  'aria-required-attr-evaluate': ariaRequiredAttrEvaluate,
21640
- 'aria-required-children-evaluate': aria_required_children_evaluate_default,
21994
+ 'aria-required-children-evaluate': ariaRequiredChildrenEvaluate,
21641
21995
  'aria-required-children-matches': aria_required_children_matches_default,
21642
21996
  'aria-required-parent-evaluate': aria_required_parent_evaluate_default,
21643
21997
  'aria-required-parent-matches': aria_required_parent_matches_default,
@@ -21753,7 +22107,7 @@
21753
22107
  'region-evaluate': regionEvaluate,
21754
22108
  'same-caption-summary-evaluate': same_caption_summary_evaluate_default,
21755
22109
  'scope-value-evaluate': scope_value_evaluate_default,
21756
- 'scrollable-region-focusable-matches': scrollable_region_focusable_matches_default,
22110
+ 'scrollable-region-focusable-matches': scrollableRegionFocusableMatches,
21757
22111
  'skip-link-evaluate': skip_link_evaluate_default,
21758
22112
  'skip-link-matches': skip_link_matches_default,
21759
22113
  'structured-dlitems-evaluate': structured_dlitems_evaluate_default,
@@ -22274,10 +22628,10 @@
22274
22628
  var import_dot2 = __toModule(require_doT());
22275
22629
  var dotRegex = /\{\{.+?\}\}/g;
22276
22630
  function getDefaultOrigin() {
22277
- if (window.origin) {
22631
+ if (window.origin && window.origin !== 'null') {
22278
22632
  return window.origin;
22279
22633
  }
22280
- if (window.location && window.location.origin) {
22634
+ if (window.location && window.location.origin && window.location.origin !== 'null') {
22281
22635
  return window.location.origin;
22282
22636
  }
22283
22637
  }
@@ -22376,8 +22730,8 @@
22376
22730
  lang: this.lang
22377
22731
  };
22378
22732
  var checkIDs = Object.keys(this.data.checks);
22379
- for (var _i27 = 0; _i27 < checkIDs.length; _i27++) {
22380
- var id = checkIDs[_i27];
22733
+ for (var _i30 = 0; _i30 < checkIDs.length; _i30++) {
22734
+ var id = checkIDs[_i30];
22381
22735
  var check = this.data.checks[id];
22382
22736
  var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
22383
22737
  locale.checks[id] = {
@@ -22387,8 +22741,8 @@
22387
22741
  };
22388
22742
  }
22389
22743
  var ruleIDs = Object.keys(this.data.rules);
22390
- for (var _i28 = 0; _i28 < ruleIDs.length; _i28++) {
22391
- var _id = ruleIDs[_i28];
22744
+ for (var _i31 = 0; _i31 < ruleIDs.length; _i31++) {
22745
+ var _id = ruleIDs[_i31];
22392
22746
  var rule = this.data.rules[_id];
22393
22747
  var description = rule.description, help = rule.help;
22394
22748
  locale.rules[_id] = {
@@ -22397,8 +22751,8 @@
22397
22751
  };
22398
22752
  }
22399
22753
  var failureSummaries = Object.keys(this.data.failureSummaries);
22400
- for (var _i29 = 0; _i29 < failureSummaries.length; _i29++) {
22401
- var type = failureSummaries[_i29];
22754
+ for (var _i32 = 0; _i32 < failureSummaries.length; _i32++) {
22755
+ var type = failureSummaries[_i32];
22402
22756
  var failureSummary2 = this.data.failureSummaries[type];
22403
22757
  var failureMessage = failureSummary2.failureMessage;
22404
22758
  locale.failureSummaries[type] = {
@@ -22421,8 +22775,8 @@
22421
22775
  key: '_applyCheckLocale',
22422
22776
  value: function _applyCheckLocale(checks) {
22423
22777
  var keys = Object.keys(checks);
22424
- for (var _i30 = 0; _i30 < keys.length; _i30++) {
22425
- var id = keys[_i30];
22778
+ for (var _i33 = 0; _i33 < keys.length; _i33++) {
22779
+ var id = keys[_i33];
22426
22780
  if (!this.data.checks[id]) {
22427
22781
  throw new Error('Locale provided for unknown check: "'.concat(id, '"'));
22428
22782
  }
@@ -22433,8 +22787,8 @@
22433
22787
  key: '_applyRuleLocale',
22434
22788
  value: function _applyRuleLocale(rules) {
22435
22789
  var keys = Object.keys(rules);
22436
- for (var _i31 = 0; _i31 < keys.length; _i31++) {
22437
- var id = keys[_i31];
22790
+ for (var _i34 = 0; _i34 < keys.length; _i34++) {
22791
+ var id = keys[_i34];
22438
22792
  if (!this.data.rules[id]) {
22439
22793
  throw new Error('Locale provided for unknown rule: "'.concat(id, '"'));
22440
22794
  }
@@ -22445,8 +22799,8 @@
22445
22799
  key: '_applyFailureSummaries',
22446
22800
  value: function _applyFailureSummaries(messages) {
22447
22801
  var keys = Object.keys(messages);
22448
- for (var _i32 = 0; _i32 < keys.length; _i32++) {
22449
- var key = keys[_i32];
22802
+ for (var _i35 = 0; _i35 < keys.length; _i35++) {
22803
+ var key = keys[_i35];
22450
22804
  if (!this.data.failureSummaries[key]) {
22451
22805
  throw new Error('Locale provided for unknown failureMessage: "'.concat(key, '"'));
22452
22806
  }
@@ -22478,10 +22832,10 @@
22478
22832
  value: function setAllowedOrigins(allowedOrigins) {
22479
22833
  var defaultOrigin = getDefaultOrigin();
22480
22834
  this.allowedOrigins = [];
22481
- var _iterator11 = _createForOfIteratorHelper(allowedOrigins), _step11;
22835
+ var _iterator12 = _createForOfIteratorHelper(allowedOrigins), _step12;
22482
22836
  try {
22483
- for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
22484
- var origin = _step11.value;
22837
+ for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
22838
+ var origin = _step12.value;
22485
22839
  if (origin === constants_default.allOrigins) {
22486
22840
  this.allowedOrigins = [ '*' ];
22487
22841
  return;
@@ -22492,9 +22846,9 @@
22492
22846
  }
22493
22847
  }
22494
22848
  } catch (err) {
22495
- _iterator11.e(err);
22849
+ _iterator12.e(err);
22496
22850
  } finally {
22497
- _iterator11.f();
22851
+ _iterator12.f();
22498
22852
  }
22499
22853
  }
22500
22854
  }, {
@@ -22795,8 +23149,8 @@
22795
23149
  });
22796
23150
  };
22797
23151
  }
22798
- function getHelpUrl(_ref110, ruleId, version) {
22799
- var brand = _ref110.brand, application = _ref110.application, lang = _ref110.lang;
23152
+ function getHelpUrl(_ref117, ruleId, version) {
23153
+ var brand = _ref117.brand, application = _ref117.application, lang = _ref117.lang;
22800
23154
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
22801
23155
  }
22802
23156
  var audit_default = Audit;
@@ -23012,9 +23366,9 @@
23012
23366
  toolOptions: options
23013
23367
  });
23014
23368
  }
23015
- function normalizeRunParams(_ref111) {
23016
- var _ref113, _options$reporter, _axe$_audit;
23017
- var _ref112 = _slicedToArray(_ref111, 3), context = _ref112[0], options = _ref112[1], callback = _ref112[2];
23369
+ function normalizeRunParams(_ref118) {
23370
+ var _ref120, _options$reporter, _axe$_audit;
23371
+ var _ref119 = _slicedToArray(_ref118, 3), context = _ref119[0], options = _ref119[1], callback = _ref119[2];
23018
23372
  var typeErr = new TypeError('axe.run arguments are invalid');
23019
23373
  if (!isContextSpec(context)) {
23020
23374
  if (callback !== void 0) {
@@ -23035,7 +23389,7 @@
23035
23389
  throw typeErr;
23036
23390
  }
23037
23391
  options = clone_default(options);
23038
- options.reporter = (_ref113 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref113 !== void 0 ? _ref113 : 'v1';
23392
+ options.reporter = (_ref120 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref120 !== void 0 ? _ref120 : 'v1';
23039
23393
  return {
23040
23394
  context: context,
23041
23395
  options: options,
@@ -23140,14 +23494,14 @@
23140
23494
  return new Promise(function(res, rej) {
23141
23495
  axe._audit.run(contextObj, options, res, rej);
23142
23496
  }).then(function(results) {
23143
- results = results.map(function(_ref114) {
23144
- var nodes = _ref114.nodes, result = _objectWithoutProperties(_ref114, _excluded8);
23497
+ results = results.map(function(_ref121) {
23498
+ var nodes = _ref121.nodes, result = _objectWithoutProperties(_ref121, _excluded8);
23145
23499
  return _extends({
23146
23500
  nodes: nodes.map(serializeNode)
23147
23501
  }, result);
23148
23502
  });
23149
- var frames = contextObj.frames.map(function(_ref115) {
23150
- var node = _ref115.node;
23503
+ var frames = contextObj.frames.map(function(_ref122) {
23504
+ var node = _ref122.node;
23151
23505
  return new dq_element_default(node, options).toJSON();
23152
23506
  });
23153
23507
  var environmentData;
@@ -23167,13 +23521,13 @@
23167
23521
  return Promise.reject(err2);
23168
23522
  });
23169
23523
  }
23170
- function serializeNode(_ref116) {
23171
- var node = _ref116.node, nodeResult = _objectWithoutProperties(_ref116, _excluded9);
23524
+ function serializeNode(_ref123) {
23525
+ var node = _ref123.node, nodeResult = _objectWithoutProperties(_ref123, _excluded9);
23172
23526
  nodeResult.node = node.toJSON();
23173
- for (var _i33 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i33 < _arr2.length; _i33++) {
23174
- var type = _arr2[_i33];
23175
- nodeResult[type] = nodeResult[type].map(function(_ref117) {
23176
- var relatedNodes = _ref117.relatedNodes, checkResult = _objectWithoutProperties(_ref117, _excluded10);
23527
+ for (var _i36 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i36 < _arr2.length; _i36++) {
23528
+ var type = _arr2[_i36];
23529
+ nodeResult[type] = nodeResult[type].map(function(_ref124) {
23530
+ var relatedNodes = _ref124.relatedNodes, checkResult = _objectWithoutProperties(_ref124, _excluded10);
23177
23531
  return _extends({}, checkResult, {
23178
23532
  relatedNodes: relatedNodes.map(function(node2) {
23179
23533
  return node2.toJSON();
@@ -23184,14 +23538,14 @@
23184
23538
  return nodeResult;
23185
23539
  }
23186
23540
  function finishRun(partialResults) {
23187
- var _ref119, _options$reporter2, _axe$_audit2;
23541
+ var _ref126, _options$reporter2, _axe$_audit2;
23188
23542
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
23189
23543
  options = clone_default(options);
23190
- var _ref118 = partialResults.find(function(r) {
23544
+ var _ref125 = partialResults.find(function(r) {
23191
23545
  return r.environmentData;
23192
- }) || {}, environmentData = _ref118.environmentData;
23546
+ }) || {}, environmentData = _ref125.environmentData;
23193
23547
  axe._audit.normalizeOptions(options);
23194
- options.reporter = (_ref119 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref119 !== void 0 ? _ref119 : 'v1';
23548
+ options.reporter = (_ref126 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref126 !== void 0 ? _ref126 : 'v1';
23195
23549
  setFrameSpec(partialResults);
23196
23550
  var results = merge_results_default(partialResults);
23197
23551
  results = axe._audit.after(results, options);
@@ -23203,10 +23557,10 @@
23203
23557
  }
23204
23558
  function setFrameSpec(partialResults) {
23205
23559
  var frameStack = [];
23206
- var _iterator12 = _createForOfIteratorHelper(partialResults), _step12;
23560
+ var _iterator13 = _createForOfIteratorHelper(partialResults), _step13;
23207
23561
  try {
23208
- for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
23209
- var partialResult = _step12.value;
23562
+ for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {
23563
+ var partialResult = _step13.value;
23210
23564
  var frameSpec = frameStack.shift();
23211
23565
  if (!partialResult) {
23212
23566
  continue;
@@ -23216,13 +23570,13 @@
23216
23570
  frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
23217
23571
  }
23218
23572
  } catch (err) {
23219
- _iterator12.e(err);
23573
+ _iterator13.e(err);
23220
23574
  } finally {
23221
- _iterator12.f();
23575
+ _iterator13.f();
23222
23576
  }
23223
23577
  }
23224
- function getMergedFrameSpecs(_ref120) {
23225
- var childFrameSpecs = _ref120.frames, parentFrameSpec = _ref120.frameSpec;
23578
+ function getMergedFrameSpecs(_ref127) {
23579
+ var childFrameSpecs = _ref127.frames, parentFrameSpec = _ref127.frameSpec;
23226
23580
  if (!parentFrameSpec) {
23227
23581
  return childFrameSpecs;
23228
23582
  }
@@ -23282,12 +23636,12 @@
23282
23636
  var transformedResults = results.map(function(result) {
23283
23637
  var transformedResult = _extends({}, result);
23284
23638
  var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
23285
- for (var _i34 = 0, _types = types; _i34 < _types.length; _i34++) {
23286
- var type = _types[_i34];
23639
+ for (var _i37 = 0, _types = types; _i37 < _types.length; _i37++) {
23640
+ var type = _types[_i37];
23287
23641
  if (transformedResult[type] && Array.isArray(transformedResult[type])) {
23288
- transformedResult[type] = transformedResult[type].map(function(_ref121) {
23642
+ transformedResult[type] = transformedResult[type].map(function(_ref128) {
23289
23643
  var _node;
23290
- var node = _ref121.node, typeResult = _objectWithoutProperties(_ref121, _excluded13);
23644
+ var node = _ref128.node, typeResult = _objectWithoutProperties(_ref128, _excluded13);
23291
23645
  node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
23292
23646
  return _extends({
23293
23647
  node: node
@@ -23540,12 +23894,12 @@
23540
23894
  help: 'Page must have means to bypass repeated blocks'
23541
23895
  },
23542
23896
  'color-contrast-enhanced': {
23543
- description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AAA contrast ratio thresholds',
23544
- help: 'Elements must have sufficient color contrast'
23897
+ description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds',
23898
+ help: 'Elements must meet enhanced color contrast ratio thresholds'
23545
23899
  },
23546
23900
  'color-contrast': {
23547
- description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds',
23548
- help: 'Elements must have sufficient color contrast'
23901
+ description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds',
23902
+ help: 'Elements must meet minimum color contrast ratio thresholds'
23549
23903
  },
23550
23904
  'css-orientation-lock': {
23551
23905
  description: 'Ensures content is not locked to any specific display orientation, and the content is operable in all display orientations',
@@ -23864,7 +24218,7 @@
23864
24218
  impact: 'serious',
23865
24219
  messages: {
23866
24220
  pass: 'Element has an aria-busy attribute',
23867
- fail: 'Element has no aria-busy="true" attribute'
24221
+ fail: 'Element uses aria-busy="true" while showing a loader'
23868
24222
  }
23869
24223
  },
23870
24224
  'aria-errormessage': {
@@ -23932,7 +24286,7 @@
23932
24286
  fail: {
23933
24287
  singular: 'Required ARIA child role not present: ${data.values}',
23934
24288
  plural: 'Required ARIA children role not present: ${data.values}',
23935
- unallowed: 'Element has children which are not allowed (see related nodes)'
24289
+ unallowed: 'Element has children which are not allowed: ${data.values}'
23936
24290
  },
23937
24291
  incomplete: {
23938
24292
  singular: 'Expecting ARIA child role to be added: ${data.values}',
@@ -24164,7 +24518,7 @@
24164
24518
  }
24165
24519
  },
24166
24520
  'focusable-content': {
24167
- impact: 'moderate',
24521
+ impact: 'serious',
24168
24522
  messages: {
24169
24523
  pass: 'Element contains focusable elements',
24170
24524
  fail: 'Element should have focusable content'
@@ -24179,7 +24533,7 @@
24179
24533
  }
24180
24534
  },
24181
24535
  'focusable-element': {
24182
- impact: 'moderate',
24536
+ impact: 'serious',
24183
24537
  messages: {
24184
24538
  pass: 'Element is focusable',
24185
24539
  fail: 'Element should be focusable'
@@ -24870,7 +25224,7 @@
24870
25224
  id: 'area-alt',
24871
25225
  selector: 'map area[href]',
24872
25226
  excludeHidden: false,
24873
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
25227
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT6.a' ],
24874
25228
  actIds: [ 'c487ae' ],
24875
25229
  all: [],
24876
25230
  any: [ {
@@ -24922,7 +25276,7 @@
24922
25276
  id: 'aria-command-name',
24923
25277
  selector: '[role="link"], [role="button"], [role="menuitem"]',
24924
25278
  matches: 'no-naming-method-matches',
24925
- tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
25279
+ tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT', 'TTv5', 'TT6.a' ],
24926
25280
  actIds: [ '97a4e1' ],
24927
25281
  all: [],
24928
25282
  any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -24968,7 +25322,7 @@
24968
25322
  id: 'aria-input-field-name',
24969
25323
  selector: '[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]',
24970
25324
  matches: 'no-naming-method-matches',
24971
- tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
25325
+ tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT', 'TTv5', 'TT5.c' ],
24972
25326
  actIds: [ 'e086e5' ],
24973
25327
  all: [],
24974
25328
  any: [ 'aria-label', 'aria-labelledby', {
@@ -25043,7 +25397,8 @@
25043
25397
  }, {
25044
25398
  id: 'aria-roledescription',
25045
25399
  selector: '[aria-roledescription]',
25046
- tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
25400
+ tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'deprecated' ],
25401
+ enabled: false,
25047
25402
  all: [],
25048
25403
  any: [ {
25049
25404
  options: {
@@ -25072,7 +25427,7 @@
25072
25427
  id: 'aria-toggle-field-name',
25073
25428
  selector: '[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',
25074
25429
  matches: 'no-naming-method-matches',
25075
- tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
25430
+ tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT', 'TTv5', 'TT5.c' ],
25076
25431
  actIds: [ 'e086e5' ],
25077
25432
  all: [],
25078
25433
  any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -25135,7 +25490,7 @@
25135
25490
  selector: 'audio',
25136
25491
  enabled: false,
25137
25492
  excludeHidden: false,
25138
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'section508', 'section508.22.a' ],
25493
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'section508', 'section508.22.a', 'deprecated' ],
25139
25494
  actIds: [ '2eb176', 'afb423' ],
25140
25495
  all: [],
25141
25496
  any: [],
@@ -25186,7 +25541,7 @@
25186
25541
  id: 'blink',
25187
25542
  selector: 'blink',
25188
25543
  excludeHidden: false,
25189
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j' ],
25544
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b' ],
25190
25545
  all: [],
25191
25546
  any: [],
25192
25547
  none: [ 'is-on-screen' ]
@@ -25194,7 +25549,7 @@
25194
25549
  id: 'button-name',
25195
25550
  selector: 'button',
25196
25551
  matches: 'no-explicit-name-required-matches',
25197
- tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
25552
+ tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT6.a' ],
25198
25553
  actIds: [ '97a4e1', 'm6b1q3' ],
25199
25554
  all: [],
25200
25555
  any: [ 'button-has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -25210,7 +25565,7 @@
25210
25565
  pageLevel: true,
25211
25566
  matches: 'bypass-matches',
25212
25567
  reviewOnFail: true,
25213
- tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o' ],
25568
+ tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a' ],
25214
25569
  actIds: [ 'cf77f2', '047fe0', 'b40fd1', '3e12e1', 'ye5d6e' ],
25215
25570
  all: [],
25216
25571
  any: [ 'internal-link-present', {
@@ -25262,7 +25617,7 @@
25262
25617
  id: 'color-contrast',
25263
25618
  matches: 'color-contrast-matches',
25264
25619
  excludeHidden: false,
25265
- tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'ACT' ],
25620
+ tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'ACT', 'TTv5', 'TT13.c' ],
25266
25621
  actIds: [ 'afw4f7', '09o5cg' ],
25267
25622
  all: [],
25268
25623
  any: [ {
@@ -25329,7 +25684,7 @@
25329
25684
  id: 'document-title',
25330
25685
  selector: 'html',
25331
25686
  matches: 'is-initiator-matches',
25332
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'ACT' ],
25687
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'ACT', 'TTv5', 'TT12.a' ],
25333
25688
  actIds: [ '2779a5' ],
25334
25689
  all: [],
25335
25690
  any: [ 'doc-has-title' ],
@@ -25406,7 +25761,7 @@
25406
25761
  id: 'form-field-multiple-labels',
25407
25762
  selector: 'input, select, textarea',
25408
25763
  matches: 'label-matches',
25409
- tags: [ 'cat.forms', 'wcag2a', 'wcag332' ],
25764
+ tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c' ],
25410
25765
  all: [],
25411
25766
  any: [],
25412
25767
  none: [ 'multiple-label' ]
@@ -25414,7 +25769,7 @@
25414
25769
  id: 'frame-focusable-content',
25415
25770
  selector: 'html',
25416
25771
  matches: 'frame-focusable-content-matches',
25417
- tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
25772
+ tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a' ],
25418
25773
  actIds: [ 'akn7bn' ],
25419
25774
  all: [],
25420
25775
  any: [ 'frame-focusable-content' ],
@@ -25435,7 +25790,7 @@
25435
25790
  id: 'frame-title-unique',
25436
25791
  selector: 'frame[title], iframe[title]',
25437
25792
  matches: 'frame-title-has-text-matches',
25438
- tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a' ],
25793
+ tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a', 'TTv5', 'TT12.c' ],
25439
25794
  actIds: [ '4b1c6c' ],
25440
25795
  all: [],
25441
25796
  any: [],
@@ -25445,7 +25800,7 @@
25445
25800
  id: 'frame-title',
25446
25801
  selector: 'frame, iframe',
25447
25802
  matches: 'no-negative-tabindex-matches',
25448
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i' ],
25803
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.c' ],
25449
25804
  actIds: [ 'cae760' ],
25450
25805
  all: [],
25451
25806
  any: [ {
@@ -25475,7 +25830,7 @@
25475
25830
  id: 'html-has-lang',
25476
25831
  selector: 'html',
25477
25832
  matches: 'is-initiator-matches',
25478
- tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
25833
+ tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT', 'TTv5', 'TT11.a' ],
25479
25834
  actIds: [ 'b5c3f8' ],
25480
25835
  all: [],
25481
25836
  any: [ {
@@ -25488,7 +25843,7 @@
25488
25843
  }, {
25489
25844
  id: 'html-lang-valid',
25490
25845
  selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',
25491
- tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
25846
+ tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT', 'TTv5', 'TT11.a' ],
25492
25847
  actIds: [ 'bf051a' ],
25493
25848
  all: [],
25494
25849
  any: [],
@@ -25522,7 +25877,7 @@
25522
25877
  id: 'image-alt',
25523
25878
  selector: 'img',
25524
25879
  matches: 'no-explicit-name-required-matches',
25525
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
25880
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT7.a', 'TT7.b' ],
25526
25881
  actIds: [ '23a2a8' ],
25527
25882
  all: [],
25528
25883
  any: [ 'has-alt', 'aria-label', 'aria-labelledby', {
@@ -25548,7 +25903,7 @@
25548
25903
  id: 'input-button-name',
25549
25904
  selector: 'input[type="button"], input[type="submit"], input[type="reset"]',
25550
25905
  matches: 'no-explicit-name-required-matches',
25551
- tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
25906
+ tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT5.c' ],
25552
25907
  actIds: [ '97a4e1' ],
25553
25908
  all: [],
25554
25909
  any: [ 'non-empty-if-present', {
@@ -25567,7 +25922,7 @@
25567
25922
  id: 'input-image-alt',
25568
25923
  selector: 'input[type="image"]',
25569
25924
  matches: 'no-explicit-name-required-matches',
25570
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
25925
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT7.a' ],
25571
25926
  actIds: [ '59796f' ],
25572
25927
  all: [],
25573
25928
  any: [ {
@@ -25608,7 +25963,7 @@
25608
25963
  id: 'label',
25609
25964
  selector: 'input, textarea',
25610
25965
  matches: 'label-matches',
25611
- tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
25966
+ tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT', 'TTv5', 'TT5.c' ],
25612
25967
  actIds: [ 'e086e5' ],
25613
25968
  all: [],
25614
25969
  any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
@@ -25717,7 +26072,7 @@
25717
26072
  selector: 'a[href], [role=link]',
25718
26073
  matches: 'link-in-text-block-matches',
25719
26074
  excludeHidden: false,
25720
- tags: [ 'cat.color', 'wcag2a', 'wcag141' ],
26075
+ tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a' ],
25721
26076
  all: [],
25722
26077
  any: [ {
25723
26078
  options: {
@@ -25730,7 +26085,7 @@
25730
26085
  }, {
25731
26086
  id: 'link-name',
25732
26087
  selector: 'a[href]',
25733
- tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'wcag244', 'section508', 'section508.22.a', 'ACT' ],
26088
+ tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'wcag244', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT6.a' ],
25734
26089
  actIds: [ 'c487ae' ],
25735
26090
  all: [],
25736
26091
  any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -25766,7 +26121,7 @@
25766
26121
  id: 'marquee',
25767
26122
  selector: 'marquee',
25768
26123
  excludeHidden: false,
25769
- tags: [ 'cat.parsing', 'wcag2a', 'wcag222' ],
26124
+ tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b' ],
25770
26125
  all: [],
25771
26126
  any: [],
25772
26127
  none: [ 'is-on-screen' ]
@@ -25790,7 +26145,7 @@
25790
26145
  id: 'meta-refresh',
25791
26146
  selector: 'meta[http-equiv="refresh"][content]',
25792
26147
  excludeHidden: false,
25793
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221' ],
26148
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT2.c' ],
25794
26149
  actIds: [ 'bc659a', 'bisz58' ],
25795
26150
  all: [],
25796
26151
  any: [ {
@@ -25834,7 +26189,7 @@
25834
26189
  }, {
25835
26190
  id: 'nested-interactive',
25836
26191
  matches: 'nested-interactive-matches',
25837
- tags: [ 'cat.keyboard', 'wcag2a', 'wcag412' ],
26192
+ tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT4.a' ],
25838
26193
  actIds: [ '307n5z' ],
25839
26194
  all: [],
25840
26195
  any: [ 'no-focusable-content' ],
@@ -25845,7 +26200,7 @@
25845
26200
  selector: 'audio[autoplay], video[autoplay]',
25846
26201
  matches: 'no-autoplay-audio-matches',
25847
26202
  reviewOnFail: true,
25848
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'ACT' ],
26203
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'ACT', 'TTv5', 'TT2.a' ],
25849
26204
  actIds: [ '80f0bf' ],
25850
26205
  preload: true,
25851
26206
  all: [ {
@@ -25934,7 +26289,7 @@
25934
26289
  id: 'role-img-alt',
25935
26290
  selector: '[role=\'img\']:not(img, area, input, object)',
25936
26291
  matches: 'html-namespace-matches',
25937
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
26292
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT7.a' ],
25938
26293
  actIds: [ '23a2a8' ],
25939
26294
  all: [],
25940
26295
  any: [ 'aria-label', 'aria-labelledby', {
@@ -25968,7 +26323,7 @@
25968
26323
  }, {
25969
26324
  id: 'select-name',
25970
26325
  selector: 'select',
25971
- tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
26326
+ tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT', 'TTv5', 'TT5.c' ],
25972
26327
  actIds: [ 'e086e5' ],
25973
26328
  all: [],
25974
26329
  any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
@@ -25997,7 +26352,7 @@
25997
26352
  id: 'svg-img-alt',
25998
26353
  selector: '[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]',
25999
26354
  matches: 'svg-namespace-matches',
26000
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
26355
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT', 'TTv5', 'TT7.a' ],
26001
26356
  actIds: [ '7d6734' ],
26002
26357
  all: [],
26003
26358
  any: [ 'svg-non-empty-title', 'aria-label', 'aria-labelledby', {
@@ -26052,7 +26407,7 @@
26052
26407
  id: 'td-has-header',
26053
26408
  selector: 'table',
26054
26409
  matches: 'data-table-large-matches',
26055
- tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
26410
+ tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b' ],
26056
26411
  all: [ 'td-has-header' ],
26057
26412
  any: [],
26058
26413
  none: []
@@ -26069,7 +26424,7 @@
26069
26424
  id: 'th-has-data-cells',
26070
26425
  selector: 'table',
26071
26426
  matches: 'data-table-matches',
26072
- tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
26427
+ tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', '14.b' ],
26073
26428
  actIds: [ 'd0f69e' ],
26074
26429
  all: [ 'th-has-data-cells' ],
26075
26430
  any: [],
@@ -26077,7 +26432,7 @@
26077
26432
  }, {
26078
26433
  id: 'valid-lang',
26079
26434
  selector: '[lang]:not(html), [xml\\:lang]:not(html)',
26080
- tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'ACT' ],
26435
+ tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'ACT', 'TTv5', 'TT11.b' ],
26081
26436
  actIds: [ 'de46e4' ],
26082
26437
  all: [],
26083
26438
  any: [],
@@ -26090,7 +26445,7 @@
26090
26445
  }, {
26091
26446
  id: 'video-caption',
26092
26447
  selector: 'video',
26093
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a' ],
26448
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a' ],
26094
26449
  actIds: [ 'eac66b' ],
26095
26450
  all: [],
26096
26451
  any: [],