@baloise/ds-core 20.0.0-next.10 → 20.0.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1748) hide show
  1. package/components/ds-accordion.js +1 -1
  2. package/components/ds-alert-container.js +1 -1
  3. package/components/ds-app-footer.js +1 -1
  4. package/components/ds-app-navbar.js +1 -1
  5. package/components/ds-badge.js +1 -1
  6. package/components/ds-brand-icon.js +1 -1
  7. package/components/ds-button-group.js +1 -1
  8. package/components/ds-button.js +1 -1
  9. package/components/ds-card-actions.js +1 -1
  10. package/components/ds-card-content.js +1 -1
  11. package/components/ds-card-header.js +1 -1
  12. package/components/ds-card-subtitle.js +1 -1
  13. package/components/ds-card-title.js +1 -1
  14. package/components/ds-card.js +1 -1
  15. package/components/ds-carousel.js +1 -1
  16. package/components/ds-checkbox-group.js +1 -1
  17. package/components/ds-checkbox.js +1 -1
  18. package/components/ds-close.js +1 -1
  19. package/components/ds-content.js +1 -1
  20. package/components/ds-counter.js +1 -1
  21. package/components/ds-data-item.js +1 -1
  22. package/components/ds-data-label.js +1 -1
  23. package/components/ds-data-value.js +1 -1
  24. package/components/ds-data.js +1 -1
  25. package/components/ds-datepicker.js +1 -1
  26. package/components/ds-divider.js +1 -1
  27. package/components/ds-drawer.js +1 -1
  28. package/components/ds-file-upload.js +1 -1
  29. package/components/ds-heading.js +1 -1
  30. package/components/ds-hint-text.js +1 -1
  31. package/components/ds-hint-title.js +1 -1
  32. package/components/ds-hint.js +1 -1
  33. package/components/ds-icon.js +1 -1
  34. package/components/ds-input-phone.js +1 -1
  35. package/components/ds-input.js +1 -1
  36. package/components/ds-item.js +1 -1
  37. package/components/ds-label.js +1 -1
  38. package/components/ds-list.js +1 -1
  39. package/components/ds-logo.js +1 -1
  40. package/components/ds-modal-body.js +1 -1
  41. package/components/ds-modal-header.js +1 -1
  42. package/components/ds-modal.js +1 -1
  43. package/components/ds-notification.js +1 -1
  44. package/components/ds-number-input.js +1 -1
  45. package/components/ds-pagination.js +1 -1
  46. package/components/ds-popup.js +1 -1
  47. package/components/ds-progress-bar.js +1 -1
  48. package/components/ds-radio-group.js +1 -1
  49. package/components/ds-radio.js +1 -1
  50. package/components/ds-root.js +1 -1
  51. package/components/ds-segment-item.js +1 -1
  52. package/components/ds-segment.js +1 -1
  53. package/components/ds-select-optgroup.js +1 -1
  54. package/components/ds-select-option.js +1 -1
  55. package/components/ds-select.js +1 -1
  56. package/components/ds-shape.js +1 -1
  57. package/components/ds-sheet.js +1 -1
  58. package/components/ds-slider.js +1 -1
  59. package/components/ds-snackbar.js +1 -1
  60. package/components/ds-spinner.js +1 -1
  61. package/components/ds-stack.js +1 -1
  62. package/components/ds-step-panel.js +1 -1
  63. package/components/ds-step.js +1 -1
  64. package/components/ds-steps.js +1 -1
  65. package/components/ds-tab-panel.js +1 -1
  66. package/components/ds-tabs.js +1 -1
  67. package/components/ds-tag-group.js +1 -1
  68. package/components/ds-tag.js +1 -1
  69. package/components/ds-text.js +1 -1
  70. package/components/ds-textarea.js +1 -1
  71. package/components/ds-toast.js +1 -1
  72. package/components/ds-toggle.js +1 -1
  73. package/components/ds-tooltip.js +1 -1
  74. package/components/index.js +1 -1
  75. package/components/p--lHz7LHt.js +4 -0
  76. package/components/p-969JOO-P.js +4 -0
  77. package/components/p-B8ePrJmu.js +4 -0
  78. package/components/p-BjRmjZLl.js +4 -0
  79. package/components/p-Bpb7oyeB.js +5 -0
  80. package/components/p-BvNfYE1d.js +4 -0
  81. package/components/p-CCZcjYyi.js +4 -0
  82. package/components/p-CcE-lfae.js +4 -0
  83. package/components/p-Cqxk0zrf.js +4 -0
  84. package/components/p-CvR0-1OR.js +4 -0
  85. package/components/p-D5xcWCOJ.js +4 -0
  86. package/components/p-D7y4TSm5.js +5 -0
  87. package/components/p-DH2edJBY.js +4 -0
  88. package/components/p-DS10p3U4.js +4 -0
  89. package/components/p-DxZ-rfGs.js +4 -0
  90. package/components/p-DxfQopAD.js +4 -0
  91. package/components/p-XvusBTPw.js +4 -0
  92. package/components/p-mahwWXn2.js +4 -0
  93. package/components/p-oyOklwcz.js +5 -0
  94. package/components/p-uDKYb4sQ.js +4 -0
  95. package/components/p-wwsneo3e.js +4 -0
  96. package/components/p-yDxcfq5h.js +4 -0
  97. package/dist/cjs/array-BLkdw464.js +25 -0
  98. package/dist/cjs/breakpoints.decorator-Bb2joxtH.js +22 -0
  99. package/dist/cjs/breakpoints.subject-5q3_3VmC.js +284 -0
  100. package/dist/cjs/config.utils-DCs-qJCq.js +148 -0
  101. package/dist/cjs/create-validator-decorator-C4BA-l0Q.js +212 -0
  102. package/dist/cjs/design-system.cjs.js +2 -2
  103. package/dist/cjs/device-DzT8Jy_P.js +57 -0
  104. package/dist/cjs/dom-CPxHYIDv.js +14 -0
  105. package/dist/cjs/ds-accordion.cjs.entry.js +11 -11
  106. package/dist/cjs/ds-alert-container.cjs.entry.js +8 -8
  107. package/dist/cjs/ds-app-footer.cjs.entry.js +8 -8
  108. package/dist/cjs/ds-app-navbar.cjs.entry.js +17 -17
  109. package/dist/cjs/ds-badge.cjs.entry.js +8 -8
  110. package/dist/cjs/ds-brand-icon_3.cjs.entry.js +13 -13
  111. package/dist/cjs/ds-button-group.cjs.entry.js +8 -8
  112. package/dist/cjs/ds-card-actions.cjs.entry.js +5 -5
  113. package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
  114. package/dist/cjs/ds-card-header.cjs.entry.js +6 -6
  115. package/dist/cjs/ds-card-subtitle.cjs.entry.js +9 -9
  116. package/dist/cjs/ds-card-title.cjs.entry.js +7 -7
  117. package/dist/cjs/ds-card.cjs.entry.js +9 -9
  118. package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
  119. package/dist/cjs/ds-carousel.cjs.entry.js +15 -14
  120. package/dist/cjs/ds-checkbox-group.cjs.entry.js +17 -16
  121. package/dist/cjs/ds-checkbox.cjs.entry.js +14 -13
  122. package/dist/cjs/ds-content_2.cjs.entry.js +10 -10
  123. package/dist/cjs/ds-counter.cjs.entry.js +52 -12
  124. package/dist/cjs/ds-data-item.cjs.entry.js +7 -7
  125. package/dist/cjs/ds-data-label.cjs.entry.js +5 -5
  126. package/dist/cjs/ds-data-value.cjs.entry.js +3 -3
  127. package/dist/cjs/ds-data.cjs.entry.js +6 -6
  128. package/dist/cjs/ds-datepicker.cjs.entry.js +13 -12
  129. package/dist/cjs/ds-divider_2.cjs.entry.js +15 -15
  130. package/dist/cjs/ds-drawer_2.cjs.entry.js +11 -11
  131. package/dist/cjs/ds-file-upload.cjs.entry.js +15 -14
  132. package/dist/cjs/ds-heading.cjs.entry.js +8 -8
  133. package/dist/cjs/ds-hint-text.cjs.entry.js +3 -3
  134. package/dist/cjs/ds-hint-title.cjs.entry.js +3 -3
  135. package/dist/cjs/ds-hint.cjs.entry.js +11 -11
  136. package/dist/cjs/ds-icon_2.cjs.entry.js +14 -14
  137. package/dist/cjs/ds-input-phone.cjs.entry.js +13 -12
  138. package/dist/cjs/ds-input.cjs.entry.js +13 -12
  139. package/dist/cjs/ds-item.cjs.entry.js +8 -8
  140. package/dist/cjs/ds-label.cjs.entry.js +9 -9
  141. package/dist/cjs/ds-list.cjs.entry.js +7 -7
  142. package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
  143. package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
  144. package/dist/cjs/ds-modal.cjs.entry.js +8 -8
  145. package/dist/cjs/ds-notification.cjs.entry.js +12 -11
  146. package/dist/cjs/ds-number-input.cjs.entry.js +15 -14
  147. package/dist/cjs/ds-pagination.cjs.entry.js +16 -16
  148. package/dist/cjs/ds-progress-bar.cjs.entry.js +13 -13
  149. package/dist/cjs/ds-radio-group.cjs.entry.js +16 -15
  150. package/dist/cjs/ds-radio.cjs.entry.js +11 -11
  151. package/dist/cjs/ds-root.cjs.entry.js +11 -11
  152. package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
  153. package/dist/cjs/ds-segment.cjs.entry.js +17 -16
  154. package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
  155. package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
  156. package/dist/cjs/ds-select.cjs.entry.js +22 -13
  157. package/dist/cjs/ds-shape.cjs.entry.js +5 -5
  158. package/dist/cjs/ds-sheet.cjs.entry.js +6 -6
  159. package/dist/cjs/ds-slider.cjs.entry.js +16 -14
  160. package/dist/cjs/ds-snackbar.cjs.entry.js +15 -15
  161. package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
  162. package/dist/cjs/ds-step.cjs.entry.js +5 -5
  163. package/dist/cjs/ds-steps.cjs.entry.js +9 -8
  164. package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
  165. package/dist/cjs/ds-tab.cjs.entry.js +5 -5
  166. package/dist/cjs/ds-tabs.cjs.entry.js +14 -13
  167. package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
  168. package/dist/cjs/ds-tag.cjs.entry.js +8 -8
  169. package/dist/cjs/ds-text.cjs.entry.js +9 -9
  170. package/dist/cjs/ds-textarea.cjs.entry.js +11 -10
  171. package/dist/cjs/ds-toast.cjs.entry.js +13 -21
  172. package/dist/cjs/ds-toggle.cjs.entry.js +11 -10
  173. package/dist/cjs/ds-tooltip.cjs.entry.js +7 -7
  174. package/dist/cjs/field.util-eBnmJNBK.js +19 -0
  175. package/dist/cjs/focus-CQPlKX45.js +1958 -0
  176. package/dist/cjs/form-control-DSel6gP-.js +131 -0
  177. package/dist/cjs/has-value-CnygFgyg.js +12 -0
  178. package/dist/cjs/index-NTRiwz5O.js +7864 -0
  179. package/dist/cjs/index.cjs.js +6 -6
  180. package/dist/cjs/invalid-text-slot-D_fJ9XCX.js +39 -0
  181. package/dist/cjs/isNaN-IIpdS7oH.js +105 -0
  182. package/dist/cjs/isNil-CB9gi3c4.js +46 -0
  183. package/dist/cjs/listener-D8KLaDvy.js +92 -0
  184. package/dist/cjs/loader.cjs.js +2 -2
  185. package/dist/cjs/logo.animation-BBQpQlWB.js +2610 -0
  186. package/dist/cjs/lottie_light_html-SJ6i8hj4.js +13651 -0
  187. package/dist/cjs/one-of-Maip98c6.js +30 -0
  188. package/dist/cjs/required-CPhwWuV4.js +38 -0
  189. package/dist/cjs/resize.decorator-WFmbV4im.js +98 -0
  190. package/dist/cjs/scroll-DL8b2hGh.js +93 -0
  191. package/dist/cjs/spinner.animation-BeatLeZQ.js +2605 -0
  192. package/dist/cjs/svg-D4xRC7if.js +2744 -0
  193. package/dist/cjs/tslib.es6-JZhzHA9W.js +117 -0
  194. package/dist/cjs/type-xjbuaDB_.js +33 -0
  195. package/dist/collection/collection-manifest.json +75 -75
  196. package/dist/collection/components/actions/button/button-group/button-group.js +181 -0
  197. package/dist/collection/components/actions/button/button.interfaces.js +25 -0
  198. package/dist/collection/components/actions/button/button.js +1104 -0
  199. package/dist/collection/components/actions/button/test/button-group.visual.play.js +29 -0
  200. package/dist/collection/components/actions/button/test/button.a11y.play.js +32 -0
  201. package/dist/collection/components/actions/button/test/button.component.play.js +32 -0
  202. package/dist/collection/components/actions/button/test/button.ssr.play.js +22 -0
  203. package/dist/collection/components/actions/button/test/button.visual.play.js +48 -0
  204. package/dist/collection/components/actions/close/close.js +294 -0
  205. package/dist/collection/components/actions/close/test/close.a11y.play.js +12 -0
  206. package/dist/collection/components/actions/close/test/close.component.play.js +20 -0
  207. package/dist/collection/components/actions/close/test/close.ssr.play.js +12 -0
  208. package/dist/collection/components/actions/close/test/close.visual.play.js +16 -0
  209. package/dist/collection/components/actions/link/test/link.a11y.play.js +8 -0
  210. package/dist/collection/components/actions/link/test/link.visual.play.js +16 -0
  211. package/dist/collection/components/forms/checkbox/checkbox-group/checkbox-group.js +1019 -0
  212. package/dist/collection/components/forms/checkbox/checkbox.js +727 -0
  213. package/dist/collection/components/forms/checkbox/test/checkbox.a11y.play.js +36 -0
  214. package/dist/collection/components/forms/checkbox/test/checkbox.component.play.js +157 -0
  215. package/dist/collection/components/forms/checkbox/test/checkbox.ssr.play.js +21 -0
  216. package/dist/collection/components/forms/checkbox/test/checkbox.visual.play.js +62 -0
  217. package/dist/collection/components/forms/counter/counter.host.css +1 -0
  218. package/dist/collection/components/forms/counter/counter.js +989 -0
  219. package/dist/collection/components/forms/counter/test/counter.a11y.play.js +44 -0
  220. package/dist/collection/components/forms/counter/test/counter.component.play.js +177 -0
  221. package/dist/collection/components/forms/counter/test/counter.ssr.play.js +12 -0
  222. package/dist/collection/components/forms/counter/test/counter.visual.play.js +30 -0
  223. package/dist/collection/components/forms/datepicker/datepicker.js +1361 -0
  224. package/dist/collection/components/forms/datepicker/datepicker.picker.js +531 -0
  225. package/dist/collection/components/forms/datepicker/test/datepicker.a11y.play.js +32 -0
  226. package/dist/collection/components/forms/datepicker/test/datepicker.component.play.js +180 -0
  227. package/dist/collection/components/forms/datepicker/test/datepicker.ssr.play.js +12 -0
  228. package/dist/collection/components/forms/datepicker/test/datepicker.visual.play.js +50 -0
  229. package/dist/collection/components/forms/file-upload/file-upload.js +1043 -0
  230. package/dist/collection/components/forms/file-upload/test/file-upload.a11y.play.js +52 -0
  231. package/dist/collection/components/forms/file-upload/test/file-upload.component.play.js +153 -0
  232. package/dist/collection/components/forms/file-upload/test/file-upload.ssr.play.js +12 -0
  233. package/dist/collection/components/forms/file-upload/test/file-upload.visual.play.js +27 -0
  234. package/dist/collection/components/forms/form/test/form.visual.play.js +28 -0
  235. package/dist/collection/components/forms/input/field.util.js +14 -0
  236. package/dist/collection/components/forms/input/input.js +1360 -0
  237. package/dist/collection/components/forms/input/masks/basic-contract-number.js +58 -0
  238. package/dist/collection/components/forms/input/masks/be-enterprise-number.js +48 -0
  239. package/dist/collection/components/forms/input/masks/be-iban.js +55 -0
  240. package/dist/collection/components/forms/input/masks/claim-number.js +59 -0
  241. package/dist/collection/components/forms/input/masks/contract-number.js +59 -0
  242. package/dist/collection/components/forms/input/masks/offer-number.js +55 -0
  243. package/dist/collection/components/forms/input/masks/vehicle-registration-number.js +55 -0
  244. package/dist/collection/components/forms/input/test/input.a11y.play.js +32 -0
  245. package/dist/collection/components/forms/input/test/input.component.play.js +119 -0
  246. package/dist/collection/components/forms/input/test/input.ssr.play.js +12 -0
  247. package/dist/collection/components/forms/input/test/input.visual.play.js +44 -0
  248. package/dist/collection/components/forms/input-phone/input-phone.js +1177 -0
  249. package/dist/collection/components/forms/input-phone/test/input-phone.a11y.play.js +80 -0
  250. package/dist/collection/components/forms/input-phone/test/input-phone.component.play.js +259 -0
  251. package/dist/collection/components/forms/input-phone/test/input-phone.ssr.play.js +12 -0
  252. package/dist/collection/components/forms/input-phone/test/input-phone.visual.play.js +58 -0
  253. package/dist/collection/components/forms/label/label.js +356 -0
  254. package/dist/collection/components/forms/label/test/label.a11y.play.js +30 -0
  255. package/dist/collection/components/forms/label/test/label.component.play.js +14 -0
  256. package/dist/collection/components/forms/label/test/label.ssr.play.js +13 -0
  257. package/dist/collection/components/forms/label/test/label.visual.play.js +31 -0
  258. package/dist/collection/components/forms/number-input/number-input.js +1096 -0
  259. package/dist/collection/components/forms/number-input/number-input.utils.js +109 -0
  260. package/dist/collection/components/forms/number-input/test/number-input.a11y.play.js +32 -0
  261. package/dist/collection/components/forms/number-input/test/number-input.component.play.js +119 -0
  262. package/dist/collection/components/forms/number-input/test/number-input.ssr.play.js +12 -0
  263. package/dist/collection/components/forms/number-input/test/number-input.visual.play.js +18 -0
  264. package/dist/collection/components/forms/radio/radio-group/radio-group.js +1076 -0
  265. package/dist/collection/components/forms/radio/radio.js +886 -0
  266. package/dist/collection/components/forms/radio/test/radio.a11y.play.js +37 -0
  267. package/dist/collection/components/forms/radio/test/radio.component.play.js +158 -0
  268. package/dist/collection/components/forms/radio/test/radio.ssr.play.js +21 -0
  269. package/dist/collection/components/forms/radio/test/radio.visual.play.js +62 -0
  270. package/dist/collection/components/forms/segment/segment/segment.js +883 -0
  271. package/dist/collection/components/forms/segment/segment-item.js +216 -0
  272. package/dist/collection/components/forms/segment/test/segment.a11y.play.js +37 -0
  273. package/dist/collection/components/forms/segment/test/segment.component.play.js +117 -0
  274. package/dist/collection/components/forms/segment/test/segment.ssr.play.js +16 -0
  275. package/dist/collection/components/forms/segment/test/segment.visual.play.js +51 -0
  276. package/dist/collection/components/forms/select/select-optgroup.js +82 -0
  277. package/dist/collection/components/forms/select/select-option.js +112 -0
  278. package/dist/collection/components/forms/select/select.js +1051 -0
  279. package/dist/collection/components/forms/select/test/select.a11y.play.js +81 -0
  280. package/dist/collection/components/forms/select/test/select.component.play.js +197 -0
  281. package/dist/collection/components/forms/select/test/select.ssr.play.js +21 -0
  282. package/dist/collection/components/forms/select/test/select.visual.play.js +70 -0
  283. package/dist/collection/components/forms/slider/slider.js +977 -0
  284. package/dist/collection/components/forms/slider/test/slider.a11y.play.js +36 -0
  285. package/dist/collection/components/forms/slider/test/slider.component.play.js +127 -0
  286. package/dist/collection/components/forms/slider/test/slider.ssr.play.js +12 -0
  287. package/dist/collection/components/forms/slider/test/slider.visual.play.js +28 -0
  288. package/dist/collection/components/forms/textarea/test/textarea.a11y.play.js +32 -0
  289. package/dist/collection/components/forms/textarea/test/textarea.component.play.js +58 -0
  290. package/dist/collection/components/forms/textarea/test/textarea.ssr.play.js +12 -0
  291. package/dist/collection/components/forms/textarea/test/textarea.visual.play.js +29 -0
  292. package/dist/collection/components/forms/textarea/textarea.js +1028 -0
  293. package/dist/collection/components/forms/time-input/test/time-input.visual.play.js +18 -0
  294. package/dist/collection/components/forms/toggle/test/toggle.a11y.play.js +28 -0
  295. package/dist/collection/components/forms/toggle/test/toggle.component.play.js +90 -0
  296. package/dist/collection/components/forms/toggle/test/toggle.ssr.play.js +12 -0
  297. package/dist/collection/components/forms/toggle/test/toggle.visual.play.js +30 -0
  298. package/dist/collection/components/forms/toggle/toggle.js +514 -0
  299. package/dist/collection/components/indicators/badge/badge.js +206 -0
  300. package/dist/collection/components/indicators/badge/test/badge.a11y.play.js +17 -0
  301. package/dist/collection/components/indicators/badge/test/badge.component.play.js +22 -0
  302. package/dist/collection/components/indicators/badge/test/badge.ssr.play.js +13 -0
  303. package/dist/collection/components/indicators/badge/test/badge.visual.play.js +16 -0
  304. package/dist/collection/components/indicators/hint/hint-text/hint-text.js +32 -0
  305. package/dist/collection/components/indicators/hint/hint-title/hint-title.js +35 -0
  306. package/dist/collection/components/indicators/hint/hint.js +414 -0
  307. package/dist/collection/components/indicators/hint/test/hint.a11y.play.js +41 -0
  308. package/dist/collection/components/indicators/hint/test/hint.component.play.js +110 -0
  309. package/dist/collection/components/indicators/hint/test/hint.ssr.play.js +17 -0
  310. package/dist/collection/components/indicators/hint/test/hint.visual.play.js +39 -0
  311. package/dist/collection/components/indicators/progress-bar/progress-bar.js +274 -0
  312. package/dist/collection/components/indicators/progress-bar/test/progress-bar.a11y.play.js +8 -0
  313. package/dist/collection/components/indicators/progress-bar/test/progress-bar.ssr.play.js +11 -0
  314. package/dist/collection/components/indicators/progress-bar/test/progress-bar.visual.play.js +16 -0
  315. package/dist/collection/components/indicators/spinner/spinner.js +430 -0
  316. package/dist/collection/components/indicators/spinner/test/spinner.a11y.play.js +8 -0
  317. package/dist/collection/components/indicators/spinner/test/spinner.ssr.play.js +12 -0
  318. package/dist/collection/components/indicators/spinner/test/spinner.visual.play.js +16 -0
  319. package/dist/collection/components/indicators/tag/tag-group/tag-group.js +42 -0
  320. package/dist/collection/components/indicators/tag/tag.js +268 -0
  321. package/dist/collection/components/indicators/tag/test/tag.a11y.play.js +42 -0
  322. package/dist/collection/components/indicators/tag/test/tag.component.play.js +22 -0
  323. package/dist/collection/components/indicators/tag/test/tag.ssr.play.js +22 -0
  324. package/dist/collection/components/indicators/tag/test/tag.visual.play.js +29 -0
  325. package/dist/collection/components/media/brand-icon/brand-icon.js +293 -0
  326. package/dist/collection/components/media/brand-icon/test/brand-icon.component.play.js +26 -0
  327. package/dist/collection/components/media/brand-icon/test/brand-icon.ssr.play.js +12 -0
  328. package/dist/collection/components/media/brand-icon/test/brand-icon.visual.play.js +16 -0
  329. package/dist/collection/components/media/icon/icon.host.css +1 -0
  330. package/dist/collection/components/media/icon/icon.js +481 -0
  331. package/dist/collection/components/media/icon/test/icon.a11y.play.js +8 -0
  332. package/dist/collection/components/media/icon/test/icon.component.play.js +35 -0
  333. package/dist/collection/components/media/icon/test/icon.ssr.play.js +12 -0
  334. package/dist/collection/components/media/icon/test/icon.visual.play.js +16 -0
  335. package/dist/collection/components/media/logo/logo.js +347 -0
  336. package/dist/collection/components/media/logo/test/logo.a11y.play.js +8 -0
  337. package/dist/collection/components/media/logo/test/logo.component.play.js +13 -0
  338. package/dist/collection/components/media/logo/test/logo.ssr.play.js +12 -0
  339. package/dist/collection/components/media/logo/test/logo.visual.play.js +16 -0
  340. package/dist/collection/components/media/shape/shape.js +160 -0
  341. package/dist/collection/components/media/shape/test/shape.component.play.js +13 -0
  342. package/dist/collection/components/media/shape/test/shape.ssr.play.js +12 -0
  343. package/dist/collection/components/media/shape/test/shape.visual.play.js +16 -0
  344. package/dist/collection/components/navigation/app-navbar/app-navbar.interfaces.js +6 -0
  345. package/dist/collection/components/navigation/app-navbar/app-navbar.js +538 -0
  346. package/dist/collection/components/navigation/app-navbar/test/app-navbar.a11y.play.js +27 -0
  347. package/dist/collection/components/navigation/app-navbar/test/app-navbar.component.play.js +76 -0
  348. package/dist/collection/components/navigation/app-navbar/test/app-navbar.ssr.play.js +17 -0
  349. package/dist/collection/components/navigation/app-navbar/test/app-navbar.visual.play.js +14 -0
  350. package/dist/collection/components/navigation/pagination/pagination.js +625 -0
  351. package/dist/collection/components/navigation/pagination/test/pagination.a11y.play.js +32 -0
  352. package/dist/collection/components/navigation/pagination/test/pagination.component.play.js +98 -0
  353. package/dist/collection/components/navigation/pagination/test/pagination.ssr.play.js +12 -0
  354. package/dist/collection/components/navigation/pagination/test/pagination.visual.play.js +18 -0
  355. package/dist/collection/components/navigation/steps/step/step.js +431 -0
  356. package/dist/collection/components/navigation/steps/step-panel/step-panel.js +104 -0
  357. package/dist/collection/components/navigation/steps/steps/steps.js +343 -0
  358. package/dist/collection/components/navigation/steps/test/steps.a11y.play.js +73 -0
  359. package/dist/collection/components/navigation/steps/test/steps.component.play.js +210 -0
  360. package/dist/collection/components/navigation/steps/test/steps.ssr.play.js +19 -0
  361. package/dist/collection/components/navigation/steps/test/steps.visual.play.js +18 -0
  362. package/dist/collection/components/navigation/tabs/tab/tab.js +278 -0
  363. package/dist/collection/components/navigation/tabs/tab-panel/tab-panel.js +104 -0
  364. package/dist/collection/components/navigation/tabs/tabs/tabs.js +551 -0
  365. package/dist/collection/components/navigation/tabs/test/tabs.a11y.play.js +60 -0
  366. package/dist/collection/components/navigation/tabs/test/tabs.component.play.js +129 -0
  367. package/dist/collection/components/navigation/tabs/test/tabs.ssr.play.js +19 -0
  368. package/dist/collection/components/navigation/tabs/test/tabs.visual.play.js +31 -0
  369. package/dist/collection/components/overlays/alert/alert-container.js +320 -0
  370. package/dist/collection/components/overlays/alert/alert.controller.js +43 -0
  371. package/dist/collection/components/overlays/alert/snackbar/snackbar.js +636 -0
  372. package/dist/collection/components/overlays/alert/test/alert.visual.play.js +65 -0
  373. package/dist/collection/components/overlays/alert/test/snackbar.a11y.play.js +18 -0
  374. package/dist/collection/components/overlays/alert/test/snackbar.component.play.js +29 -0
  375. package/dist/collection/components/overlays/alert/test/snackbar.ssr.play.js +22 -0
  376. package/dist/collection/components/overlays/alert/test/snackbar.visual.play.js +26 -0
  377. package/dist/collection/components/overlays/alert/test/toast.a11y.play.js +17 -0
  378. package/dist/collection/components/overlays/alert/test/toast.visual.play.js +16 -0
  379. package/dist/collection/components/overlays/alert/toast/toast.js +741 -0
  380. package/dist/collection/components/overlays/drawer/drawer.js +492 -0
  381. package/dist/collection/components/overlays/drawer/test/drawer.a11y.play.js +39 -0
  382. package/dist/collection/components/overlays/drawer/test/drawer.component.play.js +131 -0
  383. package/dist/collection/components/overlays/drawer/test/drawer.ssr.play.js +16 -0
  384. package/dist/collection/components/overlays/drawer/test/drawer.visual.play.js +31 -0
  385. package/dist/collection/components/overlays/modal/modal-body/modal-body.js +45 -0
  386. package/dist/collection/components/overlays/modal/modal-header/modal-header.js +36 -0
  387. package/dist/collection/components/overlays/modal/modal.controller.js +35 -0
  388. package/dist/collection/components/overlays/modal/modal.js +463 -0
  389. package/dist/collection/components/overlays/modal/test/modal.a11y.play.js +59 -0
  390. package/dist/collection/components/overlays/modal/test/modal.component.play.js +196 -0
  391. package/dist/collection/components/overlays/modal/test/modal.ssr.play.js +17 -0
  392. package/dist/collection/components/overlays/modal/test/modal.visual.play.js +36 -0
  393. package/dist/collection/components/overlays/notification/notification.js +361 -0
  394. package/dist/collection/components/overlays/notification/test/notification.a11y.play.js +28 -0
  395. package/dist/collection/components/overlays/notification/test/notification.component.play.js +23 -0
  396. package/dist/collection/components/overlays/notification/test/notification.ssr.play.js +13 -0
  397. package/dist/collection/components/overlays/notification/test/notification.visual.play.js +29 -0
  398. package/dist/collection/components/overlays/popup/popup.js +869 -0
  399. package/dist/collection/components/overlays/popup/test/popup.a11y.play.js +50 -0
  400. package/dist/collection/components/overlays/popup/test/popup.component.play.js +168 -0
  401. package/dist/collection/components/overlays/popup/test/popup.ssr.play.js +17 -0
  402. package/dist/collection/components/overlays/popup/test/popup.visual.play.js +33 -0
  403. package/dist/collection/components/overlays/sheet/sheet.js +85 -0
  404. package/dist/collection/components/overlays/sheet/test/sheet.a11y.play.js +32 -0
  405. package/dist/collection/components/overlays/sheet/test/sheet.component.play.js +65 -0
  406. package/dist/collection/components/overlays/sheet/test/sheet.ssr.play.js +13 -0
  407. package/dist/collection/components/overlays/sheet/test/sheet.visual.play.js +18 -0
  408. package/dist/collection/components/overlays/tooltip/test/tooltip.a11y.play.js +32 -0
  409. package/dist/collection/components/overlays/tooltip/test/tooltip.component.play.js +51 -0
  410. package/dist/collection/components/overlays/tooltip/test/tooltip.ssr.play.js +15 -0
  411. package/dist/collection/components/overlays/tooltip/test/tooltip.visual.play.js +16 -0
  412. package/dist/collection/components/overlays/tooltip/tooltip.host.css +1 -0
  413. package/dist/collection/components/overlays/tooltip/tooltip.js +423 -0
  414. package/dist/collection/components/structure/accordion/accordion.js +704 -0
  415. package/dist/collection/components/structure/accordion/test/accordion.a11y.play.js +20 -0
  416. package/dist/collection/components/structure/accordion/test/accordion.component.play.js +65 -0
  417. package/dist/collection/components/structure/accordion/test/accordion.ssr.play.js +17 -0
  418. package/dist/collection/components/structure/accordion/test/accordion.visual.play.js +32 -0
  419. package/dist/collection/components/structure/app-footer/app-footer.js +342 -0
  420. package/dist/collection/components/structure/app-footer/test/app-footer.a11y.play.js +17 -0
  421. package/dist/collection/components/structure/app-footer/test/app-footer.component.play.js +74 -0
  422. package/dist/collection/components/structure/app-footer/test/app-footer.ssr.play.js +16 -0
  423. package/dist/collection/components/structure/app-footer/test/app-footer.visual.play.js +16 -0
  424. package/dist/collection/components/structure/card/card-actions/card-actions.js +68 -0
  425. package/dist/collection/components/structure/card/card-content/card-content.js +43 -0
  426. package/dist/collection/components/structure/card/card-header/card-header.js +90 -0
  427. package/dist/collection/components/structure/card/card-subtitle/card-subtitle.js +147 -0
  428. package/dist/collection/components/structure/card/card-title/card-title.js +148 -0
  429. package/dist/collection/components/structure/card/card.js +410 -0
  430. package/dist/collection/components/structure/card/test/card.a11y.play.js +84 -0
  431. package/dist/collection/components/structure/card/test/card.component.play.js +65 -0
  432. package/dist/collection/components/structure/card/test/card.ssr.play.js +33 -0
  433. package/dist/collection/components/structure/card/test/card.visual.play.js +39 -0
  434. package/dist/collection/components/structure/carousel/carousel/carousel.js +692 -0
  435. package/dist/collection/components/structure/carousel/carousel-item/carousel-item.js +300 -0
  436. package/dist/collection/components/structure/carousel/test/carousel.a11y.play.js +35 -0
  437. package/dist/collection/components/structure/carousel/test/carousel.component.play.js +57 -0
  438. package/dist/collection/components/structure/carousel/test/carousel.ssr.play.js +16 -0
  439. package/dist/collection/components/structure/carousel/test/carousel.visual.play.js +24 -0
  440. package/dist/collection/components/structure/container/test/container.visual.play.js +16 -0
  441. package/dist/collection/components/structure/content/content.js +260 -0
  442. package/dist/collection/components/structure/content/test/content.component.play.js +14 -0
  443. package/dist/collection/components/structure/content/test/content.ssr.play.js +13 -0
  444. package/dist/collection/components/structure/content/test/content.visual.play.js +29 -0
  445. package/dist/collection/components/structure/data/data-item.js +244 -0
  446. package/dist/collection/components/structure/data/data-label.js +72 -0
  447. package/dist/collection/components/structure/data/data-value.js +38 -0
  448. package/dist/collection/components/structure/data/data.js +75 -0
  449. package/dist/collection/components/structure/data/test/data.a11y.play.js +32 -0
  450. package/dist/collection/components/structure/data/test/data.component.play.js +104 -0
  451. package/dist/collection/components/structure/data/test/data.ssr.play.js +19 -0
  452. package/dist/collection/components/structure/data/test/data.visual.play.js +25 -0
  453. package/dist/collection/components/structure/divider/divider.js +193 -0
  454. package/dist/collection/components/structure/divider/test/divider.a11y.play.js +31 -0
  455. package/dist/collection/components/structure/divider/test/divider.component.play.js +13 -0
  456. package/dist/collection/components/structure/divider/test/divider.ssr.play.js +12 -0
  457. package/dist/collection/components/structure/divider/test/divider.visual.play.js +29 -0
  458. package/dist/collection/components/structure/grid/test/grid.visual.play.js +25 -0
  459. package/dist/collection/components/structure/heading/heading.js +418 -0
  460. package/dist/collection/components/structure/heading/test/heading.a11y.play.js +41 -0
  461. package/dist/collection/components/structure/heading/test/heading.component.play.js +14 -0
  462. package/dist/collection/components/structure/heading/test/heading.ssr.play.js +13 -0
  463. package/dist/collection/components/structure/heading/test/heading.visual.play.js +29 -0
  464. package/dist/collection/components/structure/list/item/item.js +733 -0
  465. package/dist/collection/components/structure/list/list.js +145 -0
  466. package/dist/collection/components/structure/list/test/list-native.visual.play.js +15 -0
  467. package/dist/collection/components/structure/list/test/list.component.play.js +61 -0
  468. package/dist/collection/components/structure/list/test/list.ssr.play.js +18 -0
  469. package/dist/collection/components/structure/list/test/list.visual.play.js +30 -0
  470. package/dist/collection/components/structure/root/root.js +876 -0
  471. package/dist/collection/components/structure/root/test/root.component.play.js +238 -0
  472. package/dist/collection/components/structure/root/test/root.ssr.play.js +13 -0
  473. package/dist/collection/components/structure/stack/stack.js +411 -0
  474. package/dist/collection/components/structure/stack/test/stack.component.play.js +14 -0
  475. package/dist/collection/components/structure/stack/test/stack.ssr.play.js +13 -0
  476. package/dist/collection/components/structure/stack/test/stack.visual.play.js +44 -0
  477. package/dist/collection/components/structure/table/test/table.visual.play.js +16 -0
  478. package/dist/collection/components/structure/text/test/text.a11y.play.js +40 -0
  479. package/dist/collection/components/structure/text/test/text.component.play.js +14 -0
  480. package/dist/collection/components/structure/text/test/text.ssr.play.js +13 -0
  481. package/dist/collection/components/structure/text/test/text.visual.play.js +40 -0
  482. package/dist/collection/components/structure/text/text.js +439 -0
  483. package/dist/collection/global/constants/version.constant.js +1 -1
  484. package/dist/collection/global/initialize.js +2 -2
  485. package/dist/collection/index.js +9 -9
  486. package/dist/collection/utils/dom.js +9 -0
  487. package/dist/collection/utils/form-control.js +12 -2
  488. package/dist/collection/utils/index.js +1 -0
  489. package/dist/collection/utils/invalid-text-slot.js +8 -5
  490. package/dist/collection/utils/scroll.js +8 -4
  491. package/dist/collection/utils/svg.js +5 -1
  492. package/dist/design-system/design-system.esm.js +1 -1
  493. package/dist/design-system/index.esm.js +1 -1
  494. package/dist/design-system/p-02cec19abc.entry.js +4 -0
  495. package/dist/design-system/p-08310c30a4.entry.js +4 -0
  496. package/dist/design-system/p-0fd4d514c5.entry.js +4 -0
  497. package/dist/design-system/p-1173c66664.entry.js +4 -0
  498. package/dist/design-system/p-121ca8f971.entry.js +4 -0
  499. package/dist/design-system/p-1871ccf907.entry.js +4 -0
  500. package/dist/design-system/p-1e569c482f.entry.js +4 -0
  501. package/dist/design-system/p-221a9b580c.entry.js +4 -0
  502. package/dist/design-system/p-228c7ea1e2.entry.js +4 -0
  503. package/dist/design-system/p-25cd8f36cd.entry.js +4 -0
  504. package/dist/design-system/p-270aebfa09.entry.js +4 -0
  505. package/dist/design-system/p-2d792092e0.entry.js +4 -0
  506. package/dist/design-system/p-31e027aac8.entry.js +4 -0
  507. package/dist/design-system/p-3a9747c951.entry.js +4 -0
  508. package/dist/design-system/p-3bbfb06268.entry.js +4 -0
  509. package/dist/design-system/p-3bec90da09.entry.js +4 -0
  510. package/dist/design-system/p-3ee15ee98d.entry.js +4 -0
  511. package/dist/design-system/p-464e9a634b.entry.js +4 -0
  512. package/dist/design-system/p-47a6dc8d06.entry.js +4 -0
  513. package/dist/design-system/p-486130c34c.entry.js +4 -0
  514. package/dist/design-system/p-4b8996e66f.entry.js +4 -0
  515. package/dist/design-system/p-4bfde56112.entry.js +4 -0
  516. package/dist/design-system/p-4c9302de98.entry.js +4 -0
  517. package/dist/design-system/p-51cf36e7ff.entry.js +4 -0
  518. package/dist/design-system/p-553215604a.entry.js +4 -0
  519. package/dist/design-system/p-561a436f82.entry.js +4 -0
  520. package/dist/design-system/p-56257e2856.entry.js +4 -0
  521. package/dist/design-system/p-5635427ff8.entry.js +4 -0
  522. package/dist/design-system/p-5847453cd5.entry.js +4 -0
  523. package/dist/design-system/p-64424bea46.entry.js +4 -0
  524. package/dist/design-system/p-667bf8ed3a.entry.js +4 -0
  525. package/dist/design-system/p-6ae1cffa9a.entry.js +4 -0
  526. package/dist/design-system/p-6d8a8f7076.entry.js +4 -0
  527. package/dist/design-system/p-6dafcc313f.entry.js +4 -0
  528. package/dist/design-system/p-6f348de504.entry.js +4 -0
  529. package/dist/design-system/p-728ae1f621.entry.js +4 -0
  530. package/dist/design-system/p-75e0250836.entry.js +4 -0
  531. package/dist/design-system/p-7a5f9d305c.entry.js +4 -0
  532. package/dist/design-system/p-7e9e4075b0.entry.js +4 -0
  533. package/dist/design-system/p-856f567570.entry.js +4 -0
  534. package/dist/design-system/p-85dfc1c756.entry.js +4 -0
  535. package/dist/design-system/p-862ca0488c.entry.js +4 -0
  536. package/dist/design-system/p-89fabc6013.entry.js +4 -0
  537. package/dist/design-system/p-8ff9ce5416.entry.js +4 -0
  538. package/dist/design-system/p-9094d56bab.entry.js +4 -0
  539. package/dist/design-system/p-959b5338a6.entry.js +4 -0
  540. package/dist/design-system/p-966f40f6cf.entry.js +4 -0
  541. package/dist/design-system/p-969JOO-P.js +4 -0
  542. package/dist/design-system/p-96aef58c17.entry.js +4 -0
  543. package/dist/design-system/p-9932051f3e.entry.js +4 -0
  544. package/dist/design-system/p-9cec692e9f.entry.js +4 -0
  545. package/dist/design-system/p-B7mBNKMT.js +4 -0
  546. package/dist/design-system/p-B8TmUwRu.js +4 -0
  547. package/dist/design-system/p-BKh0Vkl1.js +4 -0
  548. package/dist/design-system/p-BMKTRh5p.js +4 -0
  549. package/dist/design-system/p-BUqqUp-r.js +4 -0
  550. package/dist/design-system/p-B_GE_aHN.js +4 -0
  551. package/dist/design-system/p-Bm_jsWv8.js +4 -0
  552. package/dist/design-system/p-BvNfYE1d.js +4 -0
  553. package/dist/design-system/p-Bw8JQ-9n.js +4 -0
  554. package/dist/design-system/p-C4x_tAIC.js +4 -0
  555. package/dist/design-system/p-CNqH2mE-.js +4 -0
  556. package/dist/design-system/p-CZJ32hZb.js +4 -0
  557. package/dist/design-system/p-Ciy8Z0QT.js +4 -0
  558. package/dist/design-system/p-CnwtEwKG.js +4 -0
  559. package/dist/design-system/p-Cy9j3Fev.js +4 -0
  560. package/dist/design-system/p-D7y4TSm5.js +5 -0
  561. package/dist/design-system/p-DJ2Pimd2.js +14 -0
  562. package/dist/design-system/p-DKLpQJYH.js +4 -0
  563. package/dist/design-system/p-DUF2uMuK.js +4 -0
  564. package/dist/design-system/p-DgAuNSoV.js +4 -0
  565. package/dist/design-system/p-Dx9AKVXh.js +4 -0
  566. package/dist/design-system/p-DxEN1zze.js +6 -0
  567. package/dist/design-system/p-JXoY2RpA.js +4 -0
  568. package/dist/design-system/p-Xula5_E9.js +4 -0
  569. package/dist/design-system/p-ZG7-AWt8.js +4 -0
  570. package/dist/design-system/p-a3c8eb7821.entry.js +4 -0
  571. package/dist/design-system/p-a6288b1239.entry.js +4 -0
  572. package/dist/design-system/p-ac1ecd7950.entry.js +4 -0
  573. package/dist/design-system/p-b339ecca1c.entry.js +4 -0
  574. package/dist/design-system/p-b660899c3a.entry.js +4 -0
  575. package/dist/design-system/p-b67ae5126a.entry.js +4 -0
  576. package/dist/design-system/p-b6c06da686.entry.js +4 -0
  577. package/dist/design-system/p-bb555a3033.entry.js +4 -0
  578. package/dist/design-system/p-bc087ec408.entry.js +4 -0
  579. package/dist/design-system/p-cbe2820343.entry.js +4 -0
  580. package/dist/design-system/p-d16f264c0b.entry.js +4 -0
  581. package/dist/design-system/p-d34009f900.entry.js +4 -0
  582. package/dist/design-system/p-d3c7a7e967.entry.js +4 -0
  583. package/dist/design-system/p-d8c362c21f.entry.js +4 -0
  584. package/dist/design-system/p-dded738638.entry.js +4 -0
  585. package/dist/design-system/p-e401998af1.entry.js +4 -0
  586. package/dist/design-system/p-f9771c0502.entry.js +4 -0
  587. package/dist/design-system/p-fb7871f395.entry.js +4 -0
  588. package/dist/design-system/p-ff290ae85b.entry.js +4 -0
  589. package/dist/esm/array-BuADVVBi.js +23 -0
  590. package/dist/esm/breakpoints.decorator-BVrXmMXt.js +20 -0
  591. package/dist/esm/breakpoints.subject-Dft-o__O.js +269 -0
  592. package/dist/esm/config.utils-RtLdZ8k8.js +129 -0
  593. package/dist/esm/create-validator-decorator-Da-m3zPX.js +208 -0
  594. package/dist/esm/design-system.js +3 -3
  595. package/dist/esm/device-DNizTY2o.js +54 -0
  596. package/dist/esm/dom-969JOO-P.js +11 -0
  597. package/dist/esm/ds-accordion.entry.js +11 -11
  598. package/dist/esm/ds-alert-container.entry.js +8 -8
  599. package/dist/esm/ds-app-footer.entry.js +8 -8
  600. package/dist/esm/ds-app-navbar.entry.js +17 -17
  601. package/dist/esm/ds-badge.entry.js +8 -8
  602. package/dist/esm/ds-brand-icon_3.entry.js +13 -13
  603. package/dist/esm/ds-button-group.entry.js +8 -8
  604. package/dist/esm/ds-card-actions.entry.js +5 -5
  605. package/dist/esm/ds-card-content.entry.js +3 -3
  606. package/dist/esm/ds-card-header.entry.js +6 -6
  607. package/dist/esm/ds-card-subtitle.entry.js +9 -9
  608. package/dist/esm/ds-card-title.entry.js +7 -7
  609. package/dist/esm/ds-card.entry.js +9 -9
  610. package/dist/esm/ds-carousel-item.entry.js +6 -6
  611. package/dist/esm/ds-carousel.entry.js +15 -14
  612. package/dist/esm/ds-checkbox-group.entry.js +17 -16
  613. package/dist/esm/ds-checkbox.entry.js +14 -13
  614. package/dist/esm/ds-content_2.entry.js +10 -10
  615. package/dist/esm/ds-counter.entry.js +52 -12
  616. package/dist/esm/ds-data-item.entry.js +7 -7
  617. package/dist/esm/ds-data-label.entry.js +5 -5
  618. package/dist/esm/ds-data-value.entry.js +3 -3
  619. package/dist/esm/ds-data.entry.js +6 -6
  620. package/dist/esm/ds-datepicker.entry.js +13 -12
  621. package/dist/esm/ds-divider_2.entry.js +15 -15
  622. package/dist/esm/ds-drawer_2.entry.js +11 -11
  623. package/dist/esm/ds-file-upload.entry.js +15 -14
  624. package/dist/esm/ds-heading.entry.js +8 -8
  625. package/dist/esm/ds-hint-text.entry.js +3 -3
  626. package/dist/esm/ds-hint-title.entry.js +3 -3
  627. package/dist/esm/ds-hint.entry.js +11 -11
  628. package/dist/esm/ds-icon_2.entry.js +14 -14
  629. package/dist/esm/ds-input-phone.entry.js +13 -12
  630. package/dist/esm/ds-input.entry.js +13 -12
  631. package/dist/esm/ds-item.entry.js +8 -8
  632. package/dist/esm/ds-label.entry.js +9 -9
  633. package/dist/esm/ds-list.entry.js +7 -7
  634. package/dist/esm/ds-modal-body.entry.js +3 -3
  635. package/dist/esm/ds-modal-header.entry.js +3 -3
  636. package/dist/esm/ds-modal.entry.js +8 -8
  637. package/dist/esm/ds-notification.entry.js +12 -11
  638. package/dist/esm/ds-number-input.entry.js +15 -14
  639. package/dist/esm/ds-pagination.entry.js +16 -16
  640. package/dist/esm/ds-progress-bar.entry.js +13 -13
  641. package/dist/esm/ds-radio-group.entry.js +16 -15
  642. package/dist/esm/ds-radio.entry.js +11 -11
  643. package/dist/esm/ds-root.entry.js +11 -11
  644. package/dist/esm/ds-segment-item.entry.js +5 -5
  645. package/dist/esm/ds-segment.entry.js +17 -16
  646. package/dist/esm/ds-select-optgroup.entry.js +5 -5
  647. package/dist/esm/ds-select-option.entry.js +5 -5
  648. package/dist/esm/ds-select.entry.js +22 -13
  649. package/dist/esm/ds-shape.entry.js +5 -5
  650. package/dist/esm/ds-sheet.entry.js +6 -6
  651. package/dist/esm/ds-slider.entry.js +16 -14
  652. package/dist/esm/ds-snackbar.entry.js +15 -15
  653. package/dist/esm/ds-step-panel.entry.js +6 -6
  654. package/dist/esm/ds-step.entry.js +5 -5
  655. package/dist/esm/ds-steps.entry.js +9 -8
  656. package/dist/esm/ds-tab-panel.entry.js +6 -6
  657. package/dist/esm/ds-tab.entry.js +5 -5
  658. package/dist/esm/ds-tabs.entry.js +14 -13
  659. package/dist/esm/ds-tag-group.entry.js +3 -3
  660. package/dist/esm/ds-tag.entry.js +8 -8
  661. package/dist/esm/ds-text.entry.js +9 -9
  662. package/dist/esm/ds-textarea.entry.js +11 -10
  663. package/dist/esm/ds-toast.entry.js +13 -21
  664. package/dist/esm/ds-toggle.entry.js +11 -10
  665. package/dist/esm/ds-tooltip.entry.js +7 -7
  666. package/dist/esm/field.util-DmVa8E0M.js +17 -0
  667. package/dist/esm/focus-CQdRWMQM.js +1956 -0
  668. package/dist/esm/form-control-RKlnnjxO.js +127 -0
  669. package/dist/esm/has-value-uy_-jH0L.js +10 -0
  670. package/dist/esm/index-DxEN1zze.js +7786 -0
  671. package/dist/esm/index.js +8 -8
  672. package/dist/esm/invalid-text-slot-DamnLE0v.js +37 -0
  673. package/dist/esm/isNaN-B9kO8LAw.js +103 -0
  674. package/dist/esm/isNil-DxRbUK54.js +44 -0
  675. package/dist/esm/listener-CAqZogmy.js +88 -0
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/logo.animation-8yIYvVix.js +2608 -0
  678. package/dist/esm/lottie_light_html-CqMVCLHG.js +13648 -0
  679. package/dist/esm/one-of-dTNN7cqg.js +28 -0
  680. package/dist/esm/required-CSFFkdXm.js +36 -0
  681. package/dist/esm/resize.decorator-ylONZx9a.js +96 -0
  682. package/dist/esm/scroll-BQR4AN2V.js +91 -0
  683. package/dist/esm/spinner.animation-C2JtTvoK.js +2603 -0
  684. package/dist/esm/svg-D7y4TSm5.js +2741 -0
  685. package/dist/esm/tslib.es6-CoU9H0PW.js +113 -0
  686. package/dist/esm/type-3Im_fSnq.js +31 -0
  687. package/dist/types/components/actions/button/button-group/button-group.d.ts +41 -0
  688. package/dist/types/components/actions/button/button.d.ts +192 -0
  689. package/dist/types/components/actions/button/button.interfaces.d.ts +35 -0
  690. package/dist/types/components/actions/close/close.d.ts +59 -0
  691. package/dist/types/components/actions/close/close.i18n.d.ts +6 -0
  692. package/dist/types/components/forms/checkbox/checkbox-group/checkbox-group.d.ts +173 -0
  693. package/dist/types/components/forms/checkbox/checkbox.d.ts +137 -0
  694. package/dist/types/components/forms/counter/counter.d.ts +202 -0
  695. package/dist/types/components/forms/counter/counter.i18n.d.ts +6 -0
  696. package/dist/types/components/forms/datepicker/datepicker.d.ts +234 -0
  697. package/dist/types/components/forms/datepicker/datepicker.i18n.d.ts +13 -0
  698. package/dist/types/components/forms/datepicker/datepicker.mask.d.ts +43 -0
  699. package/dist/types/components/forms/datepicker/datepicker.picker.d.ts +67 -0
  700. package/dist/types/components/forms/file-upload/file-upload.d.ts +196 -0
  701. package/dist/types/components/forms/file-upload/file-upload.i18n.d.ts +8 -0
  702. package/dist/types/components/forms/input/clear-button.i18n.d.ts +6 -0
  703. package/dist/types/components/forms/input/clear-button.util.d.ts +10 -0
  704. package/dist/types/components/forms/input/field.util.d.ts +22 -0
  705. package/dist/types/components/forms/input/input.d.ts +251 -0
  706. package/dist/types/components/forms/input/trigger-button.i18n.d.ts +7 -0
  707. package/dist/types/components/forms/input-phone/input-phone.d.ts +213 -0
  708. package/dist/types/components/forms/input-phone/input-phone.i18n.d.ts +9 -0
  709. package/dist/types/components/forms/label/label.d.ts +72 -0
  710. package/dist/types/components/forms/label/label.i18n.d.ts +6 -0
  711. package/dist/types/components/forms/number-input/number-input.d.ts +203 -0
  712. package/dist/types/components/forms/radio/radio-group/radio-group.d.ts +185 -0
  713. package/dist/types/components/forms/radio/radio.d.ts +168 -0
  714. package/dist/types/components/forms/segment/segment/segment.d.ts +168 -0
  715. package/dist/types/components/forms/segment/segment-item.d.ts +63 -0
  716. package/dist/types/components/forms/select/select-optgroup.d.ts +28 -0
  717. package/dist/types/components/forms/select/select-option.d.ts +34 -0
  718. package/dist/types/components/forms/select/select.d.ts +202 -0
  719. package/dist/types/components/forms/select/select.i18n.d.ts +7 -0
  720. package/dist/types/components/forms/select/select.picker.d.ts +63 -0
  721. package/dist/types/components/forms/slider/slider.d.ts +191 -0
  722. package/dist/types/components/forms/textarea/textarea.d.ts +195 -0
  723. package/dist/types/components/forms/toggle/toggle.d.ts +110 -0
  724. package/dist/types/components/indicators/badge/badge.d.ts +45 -0
  725. package/dist/types/components/indicators/hint/hint-text/hint-text.d.ts +19 -0
  726. package/dist/types/components/indicators/hint/hint-title/hint-title.d.ts +20 -0
  727. package/dist/types/components/indicators/hint/hint.d.ts +91 -0
  728. package/dist/types/components/indicators/hint/hint.i18n.d.ts +6 -0
  729. package/dist/types/components/indicators/progress-bar/progress-bar.d.ts +64 -0
  730. package/dist/types/components/indicators/progress-bar/progress-bar.i18n.d.ts +6 -0
  731. package/dist/types/components/indicators/spinner/spinner.d.ts +80 -0
  732. package/dist/types/components/indicators/spinner/spinner.i18n.d.ts +6 -0
  733. package/dist/types/components/indicators/tag/tag-group/tag-group.d.ts +18 -0
  734. package/dist/types/components/indicators/tag/tag.d.ts +59 -0
  735. package/dist/types/components/media/brand-icon/brand-icon.d.ts +64 -0
  736. package/dist/types/components/media/icon/icon.d.ts +90 -0
  737. package/dist/types/components/media/logo/logo.d.ts +78 -0
  738. package/dist/types/components/media/logo/logo.icons.d.ts +9 -0
  739. package/dist/types/components/media/shape/shape.d.ts +36 -0
  740. package/dist/types/components/navigation/app-navbar/app-navbar.d.ts +128 -0
  741. package/dist/types/components/navigation/app-navbar/app-navbar.i18n.d.ts +9 -0
  742. package/dist/types/components/navigation/pagination/pagination.d.ts +111 -0
  743. package/dist/types/components/navigation/pagination/pagination.i18n.d.ts +8 -0
  744. package/dist/types/components/navigation/steps/step/step.d.ts +89 -0
  745. package/dist/types/components/navigation/steps/step-panel/step-panel.d.ts +34 -0
  746. package/dist/types/components/navigation/steps/steps/steps.d.ts +77 -0
  747. package/dist/types/components/navigation/tabs/tab/tab.d.ts +67 -0
  748. package/dist/types/components/navigation/tabs/tab-panel/tab-panel.d.ts +34 -0
  749. package/dist/types/components/navigation/tabs/tabs/tabs.d.ts +105 -0
  750. package/dist/types/components/navigation/tabs/tabs/tabs.i18n.d.ts +7 -0
  751. package/dist/types/components/overlays/alert/alert-container.d.ts +61 -0
  752. package/dist/types/components/overlays/alert/alert-container.interfaces.d.ts +24 -0
  753. package/dist/types/components/overlays/alert/snackbar/snackbar.d.ts +133 -0
  754. package/dist/types/components/overlays/alert/toast/toast.d.ts +146 -0
  755. package/dist/types/components/overlays/drawer/drawer.d.ts +102 -0
  756. package/dist/types/components/overlays/modal/modal-body/modal-body.d.ts +19 -0
  757. package/dist/types/components/overlays/modal/modal-header/modal-header.d.ts +21 -0
  758. package/dist/types/components/overlays/modal/modal.d.ts +99 -0
  759. package/dist/types/components/overlays/notification/notification.d.ts +85 -0
  760. package/dist/types/components/overlays/popup/popup.d.ts +152 -0
  761. package/dist/types/components/overlays/sheet/sheet.d.ts +30 -0
  762. package/dist/types/components/overlays/tooltip/test/tooltip.visual.play.d.ts +1 -0
  763. package/dist/types/components/overlays/tooltip/tooltip.d.ts +85 -0
  764. package/dist/types/components/structure/accordion/accordion.d.ts +128 -0
  765. package/dist/types/components/structure/accordion/test/accordion.a11y.play.d.ts +1 -0
  766. package/dist/types/components/structure/accordion/test/accordion.component.play.d.ts +1 -0
  767. package/dist/types/components/structure/accordion/test/accordion.ssr.play.d.ts +1 -0
  768. package/dist/types/components/structure/accordion/test/accordion.visual.play.d.ts +1 -0
  769. package/dist/types/components/structure/app-footer/app-footer.d.ts +84 -0
  770. package/dist/types/components/structure/app-footer/app-footer.i18n.d.ts +7 -0
  771. package/dist/types/components/structure/app-footer/test/app-footer.a11y.play.d.ts +1 -0
  772. package/dist/types/components/structure/app-footer/test/app-footer.component.play.d.ts +1 -0
  773. package/dist/types/components/structure/app-footer/test/app-footer.ssr.play.d.ts +1 -0
  774. package/dist/types/components/structure/app-footer/test/app-footer.visual.play.d.ts +1 -0
  775. package/dist/types/components/structure/card/card-actions/card-actions.d.ts +28 -0
  776. package/dist/types/components/structure/card/card-content/card-content.d.ts +19 -0
  777. package/dist/types/components/structure/card/card-header/card-header.d.ts +28 -0
  778. package/dist/types/components/structure/card/card-subtitle/card-subtitle.d.ts +36 -0
  779. package/dist/types/components/structure/card/card-title/card-title.d.ts +38 -0
  780. package/dist/types/components/structure/card/card.d.ts +72 -0
  781. package/dist/types/components/structure/card/card.interfaces.d.ts +17 -0
  782. package/dist/types/components/structure/card/test/card.a11y.play.d.ts +1 -0
  783. package/dist/types/components/structure/card/test/card.component.play.d.ts +1 -0
  784. package/dist/types/components/structure/card/test/card.ssr.play.d.ts +1 -0
  785. package/dist/types/components/structure/card/test/card.visual.play.d.ts +1 -0
  786. package/dist/types/components/structure/carousel/carousel/carousel.d.ts +123 -0
  787. package/dist/types/components/structure/carousel/carousel/carousel.i18n.d.ts +9 -0
  788. package/dist/types/components/structure/carousel/carousel-item/carousel-item.d.ts +66 -0
  789. package/dist/types/components/structure/carousel/test/carousel.a11y.play.d.ts +1 -0
  790. package/dist/types/components/structure/carousel/test/carousel.component.play.d.ts +1 -0
  791. package/dist/types/components/structure/carousel/test/carousel.ssr.play.d.ts +1 -0
  792. package/dist/types/components/structure/carousel/test/carousel.visual.play.d.ts +1 -0
  793. package/dist/types/components/structure/container/test/container.visual.play.d.ts +1 -0
  794. package/dist/types/components/structure/content/content.d.ts +52 -0
  795. package/dist/types/components/structure/content/test/content.component.play.d.ts +1 -0
  796. package/dist/types/components/structure/content/test/content.ssr.play.d.ts +1 -0
  797. package/dist/types/components/structure/content/test/content.visual.play.d.ts +1 -0
  798. package/dist/types/components/structure/data/data-item.d.ts +43 -0
  799. package/dist/types/components/structure/data/data-item.i18n.d.ts +6 -0
  800. package/dist/types/components/structure/data/data-label.d.ts +19 -0
  801. package/dist/types/components/structure/data/data-value.d.ts +15 -0
  802. package/dist/types/components/structure/data/data.d.ts +19 -0
  803. package/dist/types/components/structure/data/test/data.a11y.play.d.ts +1 -0
  804. package/dist/types/components/structure/data/test/data.component.play.d.ts +1 -0
  805. package/dist/types/components/structure/data/test/data.ssr.play.d.ts +1 -0
  806. package/dist/types/components/structure/data/test/data.visual.play.d.ts +1 -0
  807. package/dist/types/components/structure/divider/divider.d.ts +40 -0
  808. package/dist/types/components/structure/divider/test/divider.a11y.play.d.ts +1 -0
  809. package/dist/types/components/structure/divider/test/divider.component.play.d.ts +1 -0
  810. package/dist/types/components/structure/divider/test/divider.ssr.play.d.ts +1 -0
  811. package/dist/types/components/structure/divider/test/divider.visual.play.d.ts +1 -0
  812. package/dist/types/components/structure/grid/test/grid.visual.play.d.ts +1 -0
  813. package/dist/types/components/structure/heading/heading.d.ts +85 -0
  814. package/dist/types/components/structure/heading/test/heading.a11y.play.d.ts +1 -0
  815. package/dist/types/components/structure/heading/test/heading.component.play.d.ts +1 -0
  816. package/dist/types/components/structure/heading/test/heading.ssr.play.d.ts +1 -0
  817. package/dist/types/components/structure/heading/test/heading.visual.play.d.ts +1 -0
  818. package/dist/types/components/structure/list/item/item.d.ts +132 -0
  819. package/dist/types/components/structure/list/list.d.ts +41 -0
  820. package/dist/types/components/structure/list/test/list-native.visual.play.d.ts +1 -0
  821. package/dist/types/components/structure/list/test/list.component.play.d.ts +1 -0
  822. package/dist/types/components/structure/list/test/list.ssr.play.d.ts +1 -0
  823. package/dist/types/components/structure/list/test/list.visual.play.d.ts +1 -0
  824. package/dist/types/components/structure/root/root.d.ts +152 -0
  825. package/dist/types/components/structure/root/test/root.component.play.d.ts +1 -0
  826. package/dist/types/components/structure/root/test/root.ssr.play.d.ts +1 -0
  827. package/dist/types/components/structure/stack/stack.d.ts +72 -0
  828. package/dist/types/components/structure/stack/test/stack.component.play.d.ts +1 -0
  829. package/dist/types/components/structure/stack/test/stack.ssr.play.d.ts +1 -0
  830. package/dist/types/components/structure/stack/test/stack.visual.play.d.ts +1 -0
  831. package/dist/types/components/structure/table/test/table.visual.play.d.ts +1 -0
  832. package/dist/types/components/structure/text/test/text.a11y.play.d.ts +1 -0
  833. package/dist/types/components/structure/text/test/text.component.play.d.ts +1 -0
  834. package/dist/types/components/structure/text/test/text.ssr.play.d.ts +1 -0
  835. package/dist/types/components/structure/text/test/text.visual.play.d.ts +1 -0
  836. package/dist/types/components/structure/text/text.d.ts +78 -0
  837. package/dist/types/components.d.ts +94 -94
  838. package/dist/types/global/config/config.types.d.ts +1 -1
  839. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/index.d.ts +1 -0
  840. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount-ssr.d.ts +23 -0
  841. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount.d.ts +1 -0
  842. package/dist/types/hydrate.d.ts +21 -0
  843. package/dist/types/index.d.ts +9 -9
  844. package/dist/types/utils/dom.d.ts +6 -0
  845. package/dist/types/utils/form-control.d.ts +8 -0
  846. package/dist/types/utils/index.d.ts +1 -0
  847. package/docs/cem.json +84 -84
  848. package/docs/components.json +952 -2982
  849. package/docs/html.html-data.json +75 -75
  850. package/docs/visual-pages.json +79 -79
  851. package/hydrate/index.js +336 -276
  852. package/hydrate/index.mjs +336 -276
  853. package/package.json +5 -5
  854. package/sbom.cdx.json +10450 -8632
  855. package/components/p-B5CqWYLV.js +0 -4
  856. package/components/p-B7_ufoOC.js +0 -4
  857. package/components/p-BIJq74uJ.js +0 -4
  858. package/components/p-BRVmctrW.js +0 -4
  859. package/components/p-Bcp_wCH3.js +0 -4
  860. package/components/p-BiC9O5XT.js +0 -4
  861. package/components/p-BxX78Fro.js +0 -4
  862. package/components/p-C4ZDDS_m.js +0 -4
  863. package/components/p-C971cVzE.js +0 -5
  864. package/components/p-CBu_QEKB.js +0 -4
  865. package/components/p-CDnfw_B6.js +0 -4
  866. package/components/p-CK_UnOFM.js +0 -4
  867. package/components/p-CN5nsQSG.js +0 -4
  868. package/components/p-CQ-B_pAe.js +0 -4
  869. package/components/p-ClFVspSC.js +0 -5
  870. package/components/p-Cx0PHUcE.js +0 -4
  871. package/components/p-DTldskay.js +0 -5
  872. package/components/p-Dcf7YMP0.js +0 -4
  873. package/components/p-LWV6sif8.js +0 -4
  874. package/components/p-R7F7VS9F.js +0 -4
  875. package/components/p-hW5PhZ5d.js +0 -4
  876. package/dist/cjs/array-Cgvxbusk.js +0 -25
  877. package/dist/cjs/breakpoints.decorator-LnHu4AA-.js +0 -22
  878. package/dist/cjs/breakpoints.subject-CFibnYcR.js +0 -284
  879. package/dist/cjs/config.utils-B4mCijIx.js +0 -148
  880. package/dist/cjs/create-validator-decorator-BQRnK-zG.js +0 -212
  881. package/dist/cjs/device-BAXxh6Rd.js +0 -57
  882. package/dist/cjs/field.util-cPS6JUpa.js +0 -19
  883. package/dist/cjs/focus-BvX6ka9H.js +0 -1958
  884. package/dist/cjs/form-control-CMLNa-jP.js +0 -120
  885. package/dist/cjs/has-value-jsQ_XPV1.js +0 -12
  886. package/dist/cjs/index-Bra7vxQ-.js +0 -7872
  887. package/dist/cjs/invalid-text-slot-DCqojm_q.js +0 -35
  888. package/dist/cjs/isNaN-BsjhIwfg.js +0 -105
  889. package/dist/cjs/isNil-vWTxCDwP.js +0 -46
  890. package/dist/cjs/listener-BsqaYzlf.js +0 -92
  891. package/dist/cjs/logo.animation-C4Dk6DSG.js +0 -2610
  892. package/dist/cjs/lottie_light_html-CWir80mx.js +0 -13651
  893. package/dist/cjs/one-of-GU-CalY9.js +0 -30
  894. package/dist/cjs/required-D3zhSp-O.js +0 -38
  895. package/dist/cjs/resize.decorator-VXdIt_gl.js +0 -98
  896. package/dist/cjs/scroll-CUj4eCY9.js +0 -89
  897. package/dist/cjs/spinner.animation-8udogCY1.js +0 -2605
  898. package/dist/cjs/svg-oviDioAC.js +0 -2740
  899. package/dist/cjs/tslib.es6-Cx0A1PKk.js +0 -117
  900. package/dist/cjs/type-ekmQVouB.js +0 -33
  901. package/dist/collection/components/accordion/accordion.js +0 -704
  902. package/dist/collection/components/accordion/test/accordion.a11y.play.js +0 -20
  903. package/dist/collection/components/accordion/test/accordion.component.play.js +0 -65
  904. package/dist/collection/components/accordion/test/accordion.visual.play.js +0 -32
  905. package/dist/collection/components/alert/alert-container.js +0 -320
  906. package/dist/collection/components/alert/alert.controller.js +0 -43
  907. package/dist/collection/components/alert/snackbar/snackbar.js +0 -636
  908. package/dist/collection/components/alert/test/alert.visual.play.js +0 -65
  909. package/dist/collection/components/alert/test/snackbar.a11y.play.js +0 -18
  910. package/dist/collection/components/alert/test/snackbar.component.play.js +0 -29
  911. package/dist/collection/components/alert/test/snackbar.visual.play.js +0 -26
  912. package/dist/collection/components/alert/test/toast.a11y.play.js +0 -17
  913. package/dist/collection/components/alert/test/toast.visual.play.js +0 -16
  914. package/dist/collection/components/alert/toast/toast.js +0 -749
  915. package/dist/collection/components/app-footer/app-footer.js +0 -342
  916. package/dist/collection/components/app-footer/test/app-footer.a11y.play.js +0 -17
  917. package/dist/collection/components/app-footer/test/app-footer.component.play.js +0 -74
  918. package/dist/collection/components/app-footer/test/app-footer.visual.play.js +0 -16
  919. package/dist/collection/components/app-navbar/app-navbar.interfaces.js +0 -6
  920. package/dist/collection/components/app-navbar/app-navbar.js +0 -538
  921. package/dist/collection/components/app-navbar/test/app-navbar.a11y.play.js +0 -27
  922. package/dist/collection/components/app-navbar/test/app-navbar.component.play.js +0 -76
  923. package/dist/collection/components/app-navbar/test/app-navbar.visual.play.js +0 -14
  924. package/dist/collection/components/badge/badge.js +0 -206
  925. package/dist/collection/components/badge/test/badge.a11y.play.js +0 -17
  926. package/dist/collection/components/badge/test/badge.component.play.js +0 -22
  927. package/dist/collection/components/badge/test/badge.visual.play.js +0 -16
  928. package/dist/collection/components/brand-icon/brand-icon.js +0 -293
  929. package/dist/collection/components/brand-icon/test/brand-icon.component.play.js +0 -26
  930. package/dist/collection/components/brand-icon/test/brand-icon.visual.play.js +0 -16
  931. package/dist/collection/components/button/button-group/button-group.js +0 -181
  932. package/dist/collection/components/button/button.interfaces.js +0 -25
  933. package/dist/collection/components/button/button.js +0 -1104
  934. package/dist/collection/components/button/test/button-group.visual.play.js +0 -29
  935. package/dist/collection/components/button/test/button.a11y.play.js +0 -32
  936. package/dist/collection/components/button/test/button.component.play.js +0 -32
  937. package/dist/collection/components/button/test/button.visual.play.js +0 -48
  938. package/dist/collection/components/card/card-actions/card-actions.js +0 -68
  939. package/dist/collection/components/card/card-content/card-content.js +0 -43
  940. package/dist/collection/components/card/card-header/card-header.js +0 -90
  941. package/dist/collection/components/card/card-subtitle/card-subtitle.js +0 -147
  942. package/dist/collection/components/card/card-title/card-title.js +0 -148
  943. package/dist/collection/components/card/card.js +0 -410
  944. package/dist/collection/components/card/test/card.a11y.play.js +0 -84
  945. package/dist/collection/components/card/test/card.component.play.js +0 -65
  946. package/dist/collection/components/card/test/card.visual.play.js +0 -39
  947. package/dist/collection/components/carousel/carousel/carousel.js +0 -692
  948. package/dist/collection/components/carousel/carousel-item/carousel-item.js +0 -300
  949. package/dist/collection/components/carousel/test/carousel.a11y.play.js +0 -35
  950. package/dist/collection/components/carousel/test/carousel.component.play.js +0 -57
  951. package/dist/collection/components/carousel/test/carousel.visual.play.js +0 -24
  952. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +0 -1019
  953. package/dist/collection/components/checkbox/checkbox.js +0 -727
  954. package/dist/collection/components/checkbox/test/checkbox.a11y.play.js +0 -36
  955. package/dist/collection/components/checkbox/test/checkbox.component.play.js +0 -157
  956. package/dist/collection/components/checkbox/test/checkbox.visual.play.js +0 -62
  957. package/dist/collection/components/close/close.js +0 -294
  958. package/dist/collection/components/close/test/close.a11y.play.js +0 -12
  959. package/dist/collection/components/close/test/close.component.play.js +0 -20
  960. package/dist/collection/components/close/test/close.visual.play.js +0 -16
  961. package/dist/collection/components/container/test/container.visual.play.js +0 -16
  962. package/dist/collection/components/content/content.js +0 -260
  963. package/dist/collection/components/content/test/content.component.play.js +0 -14
  964. package/dist/collection/components/content/test/content.visual.play.js +0 -29
  965. package/dist/collection/components/counter/counter.host.css +0 -1
  966. package/dist/collection/components/counter/counter.js +0 -948
  967. package/dist/collection/components/counter/test/counter.a11y.play.js +0 -44
  968. package/dist/collection/components/counter/test/counter.component.play.js +0 -177
  969. package/dist/collection/components/counter/test/counter.visual.play.js +0 -30
  970. package/dist/collection/components/data/data-item.js +0 -244
  971. package/dist/collection/components/data/data-label.js +0 -72
  972. package/dist/collection/components/data/data-value.js +0 -38
  973. package/dist/collection/components/data/data.js +0 -75
  974. package/dist/collection/components/data/test/data.a11y.play.js +0 -32
  975. package/dist/collection/components/data/test/data.component.play.js +0 -104
  976. package/dist/collection/components/data/test/data.visual.play.js +0 -25
  977. package/dist/collection/components/datepicker/datepicker.js +0 -1358
  978. package/dist/collection/components/datepicker/datepicker.picker.js +0 -531
  979. package/dist/collection/components/datepicker/test/datepicker.a11y.play.js +0 -32
  980. package/dist/collection/components/datepicker/test/datepicker.component.play.js +0 -158
  981. package/dist/collection/components/datepicker/test/datepicker.visual.play.js +0 -50
  982. package/dist/collection/components/divider/divider.js +0 -193
  983. package/dist/collection/components/divider/test/divider.a11y.play.js +0 -31
  984. package/dist/collection/components/divider/test/divider.component.play.js +0 -13
  985. package/dist/collection/components/divider/test/divider.visual.play.js +0 -29
  986. package/dist/collection/components/drawer/drawer.js +0 -492
  987. package/dist/collection/components/drawer/test/drawer.a11y.play.js +0 -39
  988. package/dist/collection/components/drawer/test/drawer.component.play.js +0 -131
  989. package/dist/collection/components/drawer/test/drawer.visual.play.js +0 -31
  990. package/dist/collection/components/file-upload/file-upload.js +0 -1040
  991. package/dist/collection/components/file-upload/test/file-upload.a11y.play.js +0 -52
  992. package/dist/collection/components/file-upload/test/file-upload.component.play.js +0 -128
  993. package/dist/collection/components/file-upload/test/file-upload.visual.play.js +0 -27
  994. package/dist/collection/components/form/test/form.visual.play.js +0 -28
  995. package/dist/collection/components/grid/test/grid.visual.play.js +0 -25
  996. package/dist/collection/components/heading/heading.js +0 -418
  997. package/dist/collection/components/heading/test/heading.a11y.play.js +0 -41
  998. package/dist/collection/components/heading/test/heading.component.play.js +0 -14
  999. package/dist/collection/components/heading/test/heading.visual.play.js +0 -29
  1000. package/dist/collection/components/hint/hint-text/hint-text.js +0 -32
  1001. package/dist/collection/components/hint/hint-title/hint-title.js +0 -35
  1002. package/dist/collection/components/hint/hint.js +0 -414
  1003. package/dist/collection/components/hint/test/hint.a11y.play.js +0 -41
  1004. package/dist/collection/components/hint/test/hint.component.play.js +0 -110
  1005. package/dist/collection/components/hint/test/hint.visual.play.js +0 -39
  1006. package/dist/collection/components/icon/icon.host.css +0 -1
  1007. package/dist/collection/components/icon/icon.js +0 -481
  1008. package/dist/collection/components/icon/test/icon.a11y.play.js +0 -8
  1009. package/dist/collection/components/icon/test/icon.component.play.js +0 -35
  1010. package/dist/collection/components/icon/test/icon.visual.play.js +0 -16
  1011. package/dist/collection/components/input/field.util.js +0 -14
  1012. package/dist/collection/components/input/input.js +0 -1360
  1013. package/dist/collection/components/input/masks/basic-contract-number.js +0 -58
  1014. package/dist/collection/components/input/masks/be-enterprise-number.js +0 -48
  1015. package/dist/collection/components/input/masks/be-iban.js +0 -55
  1016. package/dist/collection/components/input/masks/claim-number.js +0 -59
  1017. package/dist/collection/components/input/masks/contract-number.js +0 -59
  1018. package/dist/collection/components/input/masks/offer-number.js +0 -55
  1019. package/dist/collection/components/input/masks/vehicle-registration-number.js +0 -55
  1020. package/dist/collection/components/input/test/input.a11y.play.js +0 -32
  1021. package/dist/collection/components/input/test/input.component.play.js +0 -119
  1022. package/dist/collection/components/input/test/input.visual.play.js +0 -44
  1023. package/dist/collection/components/input-phone/input-phone.js +0 -1174
  1024. package/dist/collection/components/input-phone/test/input-phone.a11y.play.js +0 -80
  1025. package/dist/collection/components/input-phone/test/input-phone.component.play.js +0 -237
  1026. package/dist/collection/components/input-phone/test/input-phone.visual.play.js +0 -58
  1027. package/dist/collection/components/label/label.js +0 -356
  1028. package/dist/collection/components/label/test/label.a11y.play.js +0 -30
  1029. package/dist/collection/components/label/test/label.component.play.js +0 -14
  1030. package/dist/collection/components/label/test/label.visual.play.js +0 -31
  1031. package/dist/collection/components/link/test/link.a11y.play.js +0 -8
  1032. package/dist/collection/components/link/test/link.visual.play.js +0 -16
  1033. package/dist/collection/components/list/item/item.js +0 -733
  1034. package/dist/collection/components/list/list.js +0 -145
  1035. package/dist/collection/components/list/test/list-native.visual.play.js +0 -15
  1036. package/dist/collection/components/list/test/list.component.play.js +0 -61
  1037. package/dist/collection/components/list/test/list.visual.play.js +0 -30
  1038. package/dist/collection/components/logo/logo.js +0 -347
  1039. package/dist/collection/components/logo/test/logo.a11y.play.js +0 -8
  1040. package/dist/collection/components/logo/test/logo.component.play.js +0 -13
  1041. package/dist/collection/components/logo/test/logo.visual.play.js +0 -16
  1042. package/dist/collection/components/modal/modal-body/modal-body.js +0 -45
  1043. package/dist/collection/components/modal/modal-header/modal-header.js +0 -36
  1044. package/dist/collection/components/modal/modal.controller.js +0 -35
  1045. package/dist/collection/components/modal/modal.js +0 -463
  1046. package/dist/collection/components/modal/test/modal.a11y.play.js +0 -59
  1047. package/dist/collection/components/modal/test/modal.component.play.js +0 -196
  1048. package/dist/collection/components/modal/test/modal.visual.play.js +0 -36
  1049. package/dist/collection/components/notification/notification.js +0 -361
  1050. package/dist/collection/components/notification/test/notification.a11y.play.js +0 -28
  1051. package/dist/collection/components/notification/test/notification.component.play.js +0 -23
  1052. package/dist/collection/components/notification/test/notification.visual.play.js +0 -29
  1053. package/dist/collection/components/number-input/number-input.js +0 -1093
  1054. package/dist/collection/components/number-input/number-input.utils.js +0 -109
  1055. package/dist/collection/components/number-input/test/number-input.a11y.play.js +0 -32
  1056. package/dist/collection/components/number-input/test/number-input.component.play.js +0 -97
  1057. package/dist/collection/components/number-input/test/number-input.visual.play.js +0 -18
  1058. package/dist/collection/components/pagination/pagination.js +0 -625
  1059. package/dist/collection/components/pagination/test/pagination.a11y.play.js +0 -32
  1060. package/dist/collection/components/pagination/test/pagination.component.play.js +0 -98
  1061. package/dist/collection/components/pagination/test/pagination.visual.play.js +0 -18
  1062. package/dist/collection/components/popup/popup.js +0 -869
  1063. package/dist/collection/components/popup/test/popup.a11y.play.js +0 -50
  1064. package/dist/collection/components/popup/test/popup.component.play.js +0 -168
  1065. package/dist/collection/components/popup/test/popup.visual.play.js +0 -33
  1066. package/dist/collection/components/progress-bar/progress-bar.js +0 -274
  1067. package/dist/collection/components/progress-bar/test/progress-bar.a11y.play.js +0 -8
  1068. package/dist/collection/components/progress-bar/test/progress-bar.visual.play.js +0 -16
  1069. package/dist/collection/components/radio/radio-group/radio-group.js +0 -1076
  1070. package/dist/collection/components/radio/radio.js +0 -886
  1071. package/dist/collection/components/radio/test/radio.a11y.play.js +0 -37
  1072. package/dist/collection/components/radio/test/radio.component.play.js +0 -158
  1073. package/dist/collection/components/radio/test/radio.visual.play.js +0 -62
  1074. package/dist/collection/components/root/root.js +0 -876
  1075. package/dist/collection/components/root/test/root.component.play.js +0 -238
  1076. package/dist/collection/components/segment/segment/segment.js +0 -883
  1077. package/dist/collection/components/segment/segment-item.js +0 -216
  1078. package/dist/collection/components/segment/test/segment.a11y.play.js +0 -37
  1079. package/dist/collection/components/segment/test/segment.component.play.js +0 -117
  1080. package/dist/collection/components/segment/test/segment.visual.play.js +0 -51
  1081. package/dist/collection/components/select/select-optgroup.js +0 -82
  1082. package/dist/collection/components/select/select-option.js +0 -112
  1083. package/dist/collection/components/select/select.js +0 -1043
  1084. package/dist/collection/components/select/test/select.a11y.play.js +0 -81
  1085. package/dist/collection/components/select/test/select.component.play.js +0 -197
  1086. package/dist/collection/components/select/test/select.visual.play.js +0 -70
  1087. package/dist/collection/components/shape/shape.js +0 -160
  1088. package/dist/collection/components/shape/test/shape.component.play.js +0 -13
  1089. package/dist/collection/components/shape/test/shape.visual.play.js +0 -16
  1090. package/dist/collection/components/sheet/sheet.js +0 -85
  1091. package/dist/collection/components/sheet/test/sheet.a11y.play.js +0 -32
  1092. package/dist/collection/components/sheet/test/sheet.component.play.js +0 -65
  1093. package/dist/collection/components/sheet/test/sheet.visual.play.js +0 -18
  1094. package/dist/collection/components/slider/slider.js +0 -974
  1095. package/dist/collection/components/slider/test/slider.a11y.play.js +0 -36
  1096. package/dist/collection/components/slider/test/slider.component.play.js +0 -104
  1097. package/dist/collection/components/slider/test/slider.visual.play.js +0 -28
  1098. package/dist/collection/components/spinner/spinner.js +0 -430
  1099. package/dist/collection/components/spinner/test/spinner.a11y.play.js +0 -8
  1100. package/dist/collection/components/spinner/test/spinner.visual.play.js +0 -16
  1101. package/dist/collection/components/stack/stack.js +0 -411
  1102. package/dist/collection/components/stack/test/stack.component.play.js +0 -14
  1103. package/dist/collection/components/stack/test/stack.visual.play.js +0 -44
  1104. package/dist/collection/components/steps/step/step.js +0 -431
  1105. package/dist/collection/components/steps/step-panel/step-panel.js +0 -104
  1106. package/dist/collection/components/steps/steps/steps.js +0 -343
  1107. package/dist/collection/components/steps/test/steps.a11y.play.js +0 -73
  1108. package/dist/collection/components/steps/test/steps.component.play.js +0 -210
  1109. package/dist/collection/components/steps/test/steps.visual.play.js +0 -18
  1110. package/dist/collection/components/table/test/table.visual.play.js +0 -16
  1111. package/dist/collection/components/tabs/tab/tab.js +0 -278
  1112. package/dist/collection/components/tabs/tab-panel/tab-panel.js +0 -104
  1113. package/dist/collection/components/tabs/tabs/tabs.js +0 -551
  1114. package/dist/collection/components/tabs/test/tabs.a11y.play.js +0 -60
  1115. package/dist/collection/components/tabs/test/tabs.component.play.js +0 -129
  1116. package/dist/collection/components/tabs/test/tabs.visual.play.js +0 -31
  1117. package/dist/collection/components/tag/tag-group/tag-group.js +0 -42
  1118. package/dist/collection/components/tag/tag.js +0 -268
  1119. package/dist/collection/components/tag/test/tag.a11y.play.js +0 -42
  1120. package/dist/collection/components/tag/test/tag.component.play.js +0 -22
  1121. package/dist/collection/components/tag/test/tag.visual.play.js +0 -29
  1122. package/dist/collection/components/text/test/text.a11y.play.js +0 -40
  1123. package/dist/collection/components/text/test/text.component.play.js +0 -14
  1124. package/dist/collection/components/text/test/text.visual.play.js +0 -40
  1125. package/dist/collection/components/text/text.js +0 -439
  1126. package/dist/collection/components/textarea/test/textarea.a11y.play.js +0 -32
  1127. package/dist/collection/components/textarea/test/textarea.component.play.js +0 -58
  1128. package/dist/collection/components/textarea/test/textarea.visual.play.js +0 -29
  1129. package/dist/collection/components/textarea/textarea.js +0 -1028
  1130. package/dist/collection/components/time-input/test/time-input.visual.play.js +0 -18
  1131. package/dist/collection/components/toggle/test/toggle.a11y.play.js +0 -28
  1132. package/dist/collection/components/toggle/test/toggle.component.play.js +0 -90
  1133. package/dist/collection/components/toggle/test/toggle.visual.play.js +0 -30
  1134. package/dist/collection/components/toggle/toggle.js +0 -514
  1135. package/dist/collection/components/tooltip/test/tooltip.a11y.play.js +0 -32
  1136. package/dist/collection/components/tooltip/test/tooltip.component.play.js +0 -51
  1137. package/dist/collection/components/tooltip/test/tooltip.visual.play.js +0 -16
  1138. package/dist/collection/components/tooltip/tooltip.host.css +0 -1
  1139. package/dist/collection/components/tooltip/tooltip.js +0 -423
  1140. package/dist/design-system/p-0a4c1fa238.entry.js +0 -4
  1141. package/dist/design-system/p-0efa6b85e8.entry.js +0 -4
  1142. package/dist/design-system/p-1130753733.entry.js +0 -4
  1143. package/dist/design-system/p-150f4aee94.entry.js +0 -4
  1144. package/dist/design-system/p-15c65a1368.entry.js +0 -4
  1145. package/dist/design-system/p-1603a5f4fc.entry.js +0 -4
  1146. package/dist/design-system/p-1663ac0fb3.entry.js +0 -4
  1147. package/dist/design-system/p-17b905bc35.entry.js +0 -4
  1148. package/dist/design-system/p-196aa0563e.entry.js +0 -4
  1149. package/dist/design-system/p-1af37354b1.entry.js +0 -4
  1150. package/dist/design-system/p-1efcd0e46b.entry.js +0 -4
  1151. package/dist/design-system/p-22a8fbfd2a.entry.js +0 -4
  1152. package/dist/design-system/p-2ba7d84911.entry.js +0 -4
  1153. package/dist/design-system/p-2c5430a940.entry.js +0 -4
  1154. package/dist/design-system/p-2df13895a5.entry.js +0 -4
  1155. package/dist/design-system/p-2fa04f2aa9.entry.js +0 -4
  1156. package/dist/design-system/p-30b07d6ae1.entry.js +0 -4
  1157. package/dist/design-system/p-33d0feba27.entry.js +0 -4
  1158. package/dist/design-system/p-3a70005c1b.entry.js +0 -4
  1159. package/dist/design-system/p-3e960e6ff6.entry.js +0 -4
  1160. package/dist/design-system/p-4482255e0f.entry.js +0 -4
  1161. package/dist/design-system/p-467f95729e.entry.js +0 -4
  1162. package/dist/design-system/p-50dad0ad77.entry.js +0 -4
  1163. package/dist/design-system/p-55a071b493.entry.js +0 -4
  1164. package/dist/design-system/p-5cd306954a.entry.js +0 -4
  1165. package/dist/design-system/p-5d47fc1dcb.entry.js +0 -4
  1166. package/dist/design-system/p-5e8c5af9ea.entry.js +0 -4
  1167. package/dist/design-system/p-6d701d53b3.entry.js +0 -4
  1168. package/dist/design-system/p-717be53e81.entry.js +0 -4
  1169. package/dist/design-system/p-768e889caa.entry.js +0 -4
  1170. package/dist/design-system/p-79e5407448.entry.js +0 -4
  1171. package/dist/design-system/p-7bf3536935.entry.js +0 -4
  1172. package/dist/design-system/p-80486431d5.entry.js +0 -4
  1173. package/dist/design-system/p-86405bdd61.entry.js +0 -4
  1174. package/dist/design-system/p-8757e623be.entry.js +0 -4
  1175. package/dist/design-system/p-909e8b7db8.entry.js +0 -4
  1176. package/dist/design-system/p-982608a54f.entry.js +0 -4
  1177. package/dist/design-system/p-9b5fa7a537.entry.js +0 -4
  1178. package/dist/design-system/p-B4bB-8Lq.js +0 -4
  1179. package/dist/design-system/p-B9D2VplI.js +0 -4
  1180. package/dist/design-system/p-BK97Jg7L.js +0 -4
  1181. package/dist/design-system/p-BKkzYTNY.js +0 -4
  1182. package/dist/design-system/p-BMmZbxT4.js +0 -4
  1183. package/dist/design-system/p-BrbRN-6L.js +0 -4
  1184. package/dist/design-system/p-BtmS73m_.js +0 -4
  1185. package/dist/design-system/p-C-_fWfFO.js +0 -4
  1186. package/dist/design-system/p-C8QRVzNq.js +0 -4
  1187. package/dist/design-system/p-CJSVPuWq.js +0 -4
  1188. package/dist/design-system/p-CiMViiz4.js +0 -4
  1189. package/dist/design-system/p-DEbrSr7x.js +0 -4
  1190. package/dist/design-system/p-DIovmg8W.js +0 -4
  1191. package/dist/design-system/p-DSgT3f2g.js +0 -4
  1192. package/dist/design-system/p-DTldskay.js +0 -5
  1193. package/dist/design-system/p-DYOV_tWc.js +0 -6
  1194. package/dist/design-system/p-Dcf7YMP0.js +0 -4
  1195. package/dist/design-system/p-DyWEj7Or.js +0 -4
  1196. package/dist/design-system/p-T1Ewg5ym.js +0 -14
  1197. package/dist/design-system/p-Ympglpu_.js +0 -4
  1198. package/dist/design-system/p-a952ed860d.entry.js +0 -4
  1199. package/dist/design-system/p-b0180f72e4.entry.js +0 -4
  1200. package/dist/design-system/p-b1563acdea.entry.js +0 -4
  1201. package/dist/design-system/p-b19083d986.entry.js +0 -4
  1202. package/dist/design-system/p-b2304dcfd2.entry.js +0 -4
  1203. package/dist/design-system/p-b6ecd22632.entry.js +0 -4
  1204. package/dist/design-system/p-bfb99341f7.entry.js +0 -4
  1205. package/dist/design-system/p-c099d505e2.entry.js +0 -4
  1206. package/dist/design-system/p-c3b3f63016.entry.js +0 -4
  1207. package/dist/design-system/p-c597957af4.entry.js +0 -4
  1208. package/dist/design-system/p-c5d377644b.entry.js +0 -4
  1209. package/dist/design-system/p-ce3e8bc11a.entry.js +0 -4
  1210. package/dist/design-system/p-cf79b14f03.entry.js +0 -4
  1211. package/dist/design-system/p-d077f23dda.entry.js +0 -4
  1212. package/dist/design-system/p-d66d4aa600.entry.js +0 -4
  1213. package/dist/design-system/p-d6ab4fdeba.entry.js +0 -4
  1214. package/dist/design-system/p-d7eacac620.entry.js +0 -4
  1215. package/dist/design-system/p-d87c44f51d.entry.js +0 -4
  1216. package/dist/design-system/p-da32308de9.entry.js +0 -4
  1217. package/dist/design-system/p-dbc783ce57.entry.js +0 -4
  1218. package/dist/design-system/p-dc415e93f2.entry.js +0 -4
  1219. package/dist/design-system/p-e41c41c269.entry.js +0 -4
  1220. package/dist/design-system/p-e7ae812af1.entry.js +0 -4
  1221. package/dist/design-system/p-ea03c44f9b.entry.js +0 -4
  1222. package/dist/design-system/p-ebe252153f.entry.js +0 -4
  1223. package/dist/design-system/p-f20bc1fa8e.entry.js +0 -4
  1224. package/dist/design-system/p-f2f862fd54.entry.js +0 -4
  1225. package/dist/design-system/p-f3bd12395f.entry.js +0 -4
  1226. package/dist/design-system/p-fafd8d27f5.entry.js +0 -4
  1227. package/dist/design-system/p-fce74bb14f.entry.js +0 -4
  1228. package/dist/design-system/p-ffc55d2851.entry.js +0 -4
  1229. package/dist/design-system/p-jvumIDnw.js +0 -4
  1230. package/dist/design-system/p-r7oAZGh2.js +0 -4
  1231. package/dist/design-system/p-vnGKyX-U.js +0 -4
  1232. package/dist/design-system/p-w-N17JIZ.js +0 -4
  1233. package/dist/design-system/p-yoIuxldv.js +0 -4
  1234. package/dist/esm/array-DomMhGJQ.js +0 -23
  1235. package/dist/esm/breakpoints.decorator-CTZphYok.js +0 -20
  1236. package/dist/esm/breakpoints.subject-CgNq7C9X.js +0 -269
  1237. package/dist/esm/config.utils-CB-CXrKY.js +0 -129
  1238. package/dist/esm/create-validator-decorator-ZDmCDTEb.js +0 -208
  1239. package/dist/esm/device-ckOLnxX9.js +0 -54
  1240. package/dist/esm/field.util-OTyuJ6iL.js +0 -17
  1241. package/dist/esm/focus-54mwcmD9.js +0 -1956
  1242. package/dist/esm/form-control-g2Cf81YC.js +0 -117
  1243. package/dist/esm/has-value-D7lYQNBK.js +0 -10
  1244. package/dist/esm/index-DYOV_tWc.js +0 -7794
  1245. package/dist/esm/invalid-text-slot-Dcf7YMP0.js +0 -33
  1246. package/dist/esm/isNaN-DxqUQhlF.js +0 -103
  1247. package/dist/esm/isNil-DWALHtG8.js +0 -44
  1248. package/dist/esm/listener-nZ8kL6Qe.js +0 -88
  1249. package/dist/esm/logo.animation-CqFA7bc6.js +0 -2608
  1250. package/dist/esm/lottie_light_html-BKRQNrVy.js +0 -13648
  1251. package/dist/esm/one-of-BExTRiXT.js +0 -28
  1252. package/dist/esm/required-DIwBjh81.js +0 -36
  1253. package/dist/esm/resize.decorator-ByMsffGa.js +0 -96
  1254. package/dist/esm/scroll-DsSOuPzW.js +0 -87
  1255. package/dist/esm/spinner.animation-CP1wfHUl.js +0 -2603
  1256. package/dist/esm/svg-DTldskay.js +0 -2737
  1257. package/dist/esm/tslib.es6-Byu4BzG4.js +0 -113
  1258. package/dist/esm/type-CZBrLp5X.js +0 -31
  1259. package/dist/types/components/accordion/accordion.d.ts +0 -128
  1260. package/dist/types/components/alert/alert-container.d.ts +0 -61
  1261. package/dist/types/components/alert/alert-container.interfaces.d.ts +0 -24
  1262. package/dist/types/components/alert/snackbar/snackbar.d.ts +0 -133
  1263. package/dist/types/components/alert/toast/toast.d.ts +0 -146
  1264. package/dist/types/components/app-footer/app-footer.d.ts +0 -84
  1265. package/dist/types/components/app-footer/app-footer.i18n.d.ts +0 -7
  1266. package/dist/types/components/app-navbar/app-navbar.d.ts +0 -128
  1267. package/dist/types/components/app-navbar/app-navbar.i18n.d.ts +0 -9
  1268. package/dist/types/components/badge/badge.d.ts +0 -45
  1269. package/dist/types/components/brand-icon/brand-icon.d.ts +0 -64
  1270. package/dist/types/components/button/button-group/button-group.d.ts +0 -41
  1271. package/dist/types/components/button/button.d.ts +0 -192
  1272. package/dist/types/components/button/button.interfaces.d.ts +0 -35
  1273. package/dist/types/components/card/card-actions/card-actions.d.ts +0 -28
  1274. package/dist/types/components/card/card-content/card-content.d.ts +0 -19
  1275. package/dist/types/components/card/card-header/card-header.d.ts +0 -28
  1276. package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +0 -36
  1277. package/dist/types/components/card/card-title/card-title.d.ts +0 -38
  1278. package/dist/types/components/card/card.d.ts +0 -72
  1279. package/dist/types/components/card/card.interfaces.d.ts +0 -17
  1280. package/dist/types/components/carousel/carousel/carousel.d.ts +0 -123
  1281. package/dist/types/components/carousel/carousel/carousel.i18n.d.ts +0 -9
  1282. package/dist/types/components/carousel/carousel-item/carousel-item.d.ts +0 -66
  1283. package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +0 -173
  1284. package/dist/types/components/checkbox/checkbox.d.ts +0 -137
  1285. package/dist/types/components/close/close.d.ts +0 -59
  1286. package/dist/types/components/close/close.i18n.d.ts +0 -6
  1287. package/dist/types/components/content/content.d.ts +0 -52
  1288. package/dist/types/components/counter/counter.d.ts +0 -190
  1289. package/dist/types/components/counter/counter.i18n.d.ts +0 -6
  1290. package/dist/types/components/data/data-item.d.ts +0 -43
  1291. package/dist/types/components/data/data-item.i18n.d.ts +0 -6
  1292. package/dist/types/components/data/data-label.d.ts +0 -19
  1293. package/dist/types/components/data/data-value.d.ts +0 -15
  1294. package/dist/types/components/data/data.d.ts +0 -19
  1295. package/dist/types/components/datepicker/datepicker.d.ts +0 -234
  1296. package/dist/types/components/datepicker/datepicker.i18n.d.ts +0 -13
  1297. package/dist/types/components/datepicker/datepicker.mask.d.ts +0 -43
  1298. package/dist/types/components/datepicker/datepicker.picker.d.ts +0 -67
  1299. package/dist/types/components/divider/divider.d.ts +0 -40
  1300. package/dist/types/components/drawer/drawer.d.ts +0 -102
  1301. package/dist/types/components/file-upload/file-upload.d.ts +0 -196
  1302. package/dist/types/components/file-upload/file-upload.i18n.d.ts +0 -8
  1303. package/dist/types/components/heading/heading.d.ts +0 -85
  1304. package/dist/types/components/hint/hint-text/hint-text.d.ts +0 -19
  1305. package/dist/types/components/hint/hint-title/hint-title.d.ts +0 -20
  1306. package/dist/types/components/hint/hint.d.ts +0 -91
  1307. package/dist/types/components/hint/hint.i18n.d.ts +0 -6
  1308. package/dist/types/components/icon/icon.d.ts +0 -90
  1309. package/dist/types/components/input/clear-button.i18n.d.ts +0 -6
  1310. package/dist/types/components/input/clear-button.util.d.ts +0 -10
  1311. package/dist/types/components/input/field.util.d.ts +0 -22
  1312. package/dist/types/components/input/input.d.ts +0 -251
  1313. package/dist/types/components/input/trigger-button.i18n.d.ts +0 -7
  1314. package/dist/types/components/input-phone/input-phone.d.ts +0 -213
  1315. package/dist/types/components/input-phone/input-phone.i18n.d.ts +0 -9
  1316. package/dist/types/components/label/label.d.ts +0 -72
  1317. package/dist/types/components/label/label.i18n.d.ts +0 -6
  1318. package/dist/types/components/list/item/item.d.ts +0 -132
  1319. package/dist/types/components/list/list.d.ts +0 -41
  1320. package/dist/types/components/logo/logo.d.ts +0 -78
  1321. package/dist/types/components/logo/logo.icons.d.ts +0 -9
  1322. package/dist/types/components/modal/modal-body/modal-body.d.ts +0 -19
  1323. package/dist/types/components/modal/modal-header/modal-header.d.ts +0 -21
  1324. package/dist/types/components/modal/modal.d.ts +0 -99
  1325. package/dist/types/components/notification/notification.d.ts +0 -85
  1326. package/dist/types/components/number-input/number-input.d.ts +0 -203
  1327. package/dist/types/components/pagination/pagination.d.ts +0 -111
  1328. package/dist/types/components/pagination/pagination.i18n.d.ts +0 -8
  1329. package/dist/types/components/popup/popup.d.ts +0 -152
  1330. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -64
  1331. package/dist/types/components/progress-bar/progress-bar.i18n.d.ts +0 -6
  1332. package/dist/types/components/radio/radio-group/radio-group.d.ts +0 -185
  1333. package/dist/types/components/radio/radio.d.ts +0 -168
  1334. package/dist/types/components/root/root.d.ts +0 -152
  1335. package/dist/types/components/segment/segment/segment.d.ts +0 -168
  1336. package/dist/types/components/segment/segment-item.d.ts +0 -63
  1337. package/dist/types/components/select/select-optgroup.d.ts +0 -28
  1338. package/dist/types/components/select/select-option.d.ts +0 -34
  1339. package/dist/types/components/select/select.d.ts +0 -202
  1340. package/dist/types/components/select/select.i18n.d.ts +0 -7
  1341. package/dist/types/components/select/select.picker.d.ts +0 -63
  1342. package/dist/types/components/shape/shape.d.ts +0 -36
  1343. package/dist/types/components/sheet/sheet.d.ts +0 -30
  1344. package/dist/types/components/slider/slider.d.ts +0 -191
  1345. package/dist/types/components/spinner/spinner.d.ts +0 -80
  1346. package/dist/types/components/spinner/spinner.i18n.d.ts +0 -6
  1347. package/dist/types/components/stack/stack.d.ts +0 -72
  1348. package/dist/types/components/steps/step/step.d.ts +0 -89
  1349. package/dist/types/components/steps/step-panel/step-panel.d.ts +0 -34
  1350. package/dist/types/components/steps/steps/steps.d.ts +0 -77
  1351. package/dist/types/components/tabs/tab/tab.d.ts +0 -67
  1352. package/dist/types/components/tabs/tab-panel/tab-panel.d.ts +0 -34
  1353. package/dist/types/components/tabs/tabs/tabs.d.ts +0 -105
  1354. package/dist/types/components/tabs/tabs/tabs.i18n.d.ts +0 -7
  1355. package/dist/types/components/tag/tag-group/tag-group.d.ts +0 -18
  1356. package/dist/types/components/tag/tag.d.ts +0 -59
  1357. package/dist/types/components/text/text.d.ts +0 -78
  1358. package/dist/types/components/textarea/textarea.d.ts +0 -195
  1359. package/dist/types/components/toggle/toggle.d.ts +0 -110
  1360. package/dist/types/components/tooltip/tooltip.d.ts +0 -85
  1361. /package/dist/collection/components/{button → actions/button}/button-group/button-group.host.css +0 -0
  1362. /package/dist/collection/components/{button → actions/button}/button.host.css +0 -0
  1363. /package/dist/collection/components/{close → actions/close}/close.host.css +0 -0
  1364. /package/dist/collection/components/{close → actions/close}/close.i18n.js +0 -0
  1365. /package/dist/collection/components/{close → actions/close}/close.interfaces.js +0 -0
  1366. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox-group/checkbox-group.host.css +0 -0
  1367. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox.host.css +0 -0
  1368. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox.interfaces.js +0 -0
  1369. /package/dist/collection/components/{counter → forms/counter}/counter.i18n.js +0 -0
  1370. /package/dist/collection/components/{counter → forms/counter}/counter.interfaces.js +0 -0
  1371. /package/dist/collection/components/{counter → forms/counter}/counter.utils.js +0 -0
  1372. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.host.css +0 -0
  1373. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.i18n.js +0 -0
  1374. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.interfaces.js +0 -0
  1375. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.mask.js +0 -0
  1376. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.host.css +0 -0
  1377. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.i18n.js +0 -0
  1378. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.interfaces.js +0 -0
  1379. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-list.util.js +0 -0
  1380. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-size.util.js +0 -0
  1381. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-validation.util.js +0 -0
  1382. /package/dist/collection/components/{input → forms/input}/clear-button.i18n.js +0 -0
  1383. /package/dist/collection/components/{input → forms/input}/clear-button.util.js +0 -0
  1384. /package/dist/collection/components/{input → forms/input}/input.host.css +0 -0
  1385. /package/dist/collection/components/{input → forms/input}/input.interfaces.js +0 -0
  1386. /package/dist/collection/components/{input → forms/input}/input.mask.js +0 -0
  1387. /package/dist/collection/components/{input → forms/input}/masks/index.js +0 -0
  1388. /package/dist/collection/components/{input → forms/input}/trigger-button.i18n.js +0 -0
  1389. /package/dist/collection/components/{input-phone → forms/input-phone}/country-data.js +0 -0
  1390. /package/dist/collection/components/{input-phone → forms/input-phone}/flag.js +0 -0
  1391. /package/dist/collection/components/{input-phone → forms/input-phone}/formatting.js +0 -0
  1392. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.host.css +0 -0
  1393. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.i18n.js +0 -0
  1394. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.interfaces.js +0 -0
  1395. /package/dist/collection/components/{label → forms/label}/label.host.css +0 -0
  1396. /package/dist/collection/components/{label → forms/label}/label.i18n.js +0 -0
  1397. /package/dist/collection/components/{label → forms/label}/label.interfaces.js +0 -0
  1398. /package/dist/collection/components/{number-input → forms/number-input}/number-input.host.css +0 -0
  1399. /package/dist/collection/components/{number-input → forms/number-input}/number-input.interfaces.js +0 -0
  1400. /package/dist/collection/components/{radio → forms/radio}/radio-group/radio-group.host.css +0 -0
  1401. /package/dist/collection/components/{radio → forms/radio}/radio.host.css +0 -0
  1402. /package/dist/collection/components/{radio → forms/radio}/radio.interfaces.js +0 -0
  1403. /package/dist/collection/components/{segment → forms/segment}/segment/segment.host.css +0 -0
  1404. /package/dist/collection/components/{segment → forms/segment}/segment-item.host.css +0 -0
  1405. /package/dist/collection/components/{segment → forms/segment}/segment-item.interfaces.js +0 -0
  1406. /package/dist/collection/components/{segment → forms/segment}/segment-item.type.js +0 -0
  1407. /package/dist/collection/components/{select → forms/select}/select-optgroup.host.css +0 -0
  1408. /package/dist/collection/components/{select → forms/select}/select-option.host.css +0 -0
  1409. /package/dist/collection/components/{select → forms/select}/select.host.css +0 -0
  1410. /package/dist/collection/components/{select → forms/select}/select.i18n.js +0 -0
  1411. /package/dist/collection/components/{select → forms/select}/select.interfaces.js +0 -0
  1412. /package/dist/collection/components/{select → forms/select}/select.picker.js +0 -0
  1413. /package/dist/collection/components/{slider → forms/slider}/slider.host.css +0 -0
  1414. /package/dist/collection/components/{slider → forms/slider}/slider.interfaces.js +0 -0
  1415. /package/dist/collection/components/{slider → forms/slider}/slider.picker.js +0 -0
  1416. /package/dist/collection/components/{slider → forms/slider}/slider.utils.js +0 -0
  1417. /package/dist/collection/components/{textarea → forms/textarea}/textarea.host.css +0 -0
  1418. /package/dist/collection/components/{textarea → forms/textarea}/textarea.interfaces.js +0 -0
  1419. /package/dist/collection/components/{toggle → forms/toggle}/toggle.host.css +0 -0
  1420. /package/dist/collection/components/{toggle → forms/toggle}/toggle.interfaces.js +0 -0
  1421. /package/dist/collection/components/{badge → indicators/badge}/badge.host.css +0 -0
  1422. /package/dist/collection/components/{badge → indicators/badge}/badge.interfaces.js +0 -0
  1423. /package/dist/collection/components/{hint → indicators/hint}/hint.host.css +0 -0
  1424. /package/dist/collection/components/{hint → indicators/hint}/hint.i18n.js +0 -0
  1425. /package/dist/collection/components/{hint → indicators/hint}/hint.interfaces.js +0 -0
  1426. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.host.css +0 -0
  1427. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.i18n.js +0 -0
  1428. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.interfaces.js +0 -0
  1429. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.animation.js +0 -0
  1430. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.data.js +0 -0
  1431. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.host.css +0 -0
  1432. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.i18n.js +0 -0
  1433. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.interfaces.js +0 -0
  1434. /package/dist/collection/components/{tag → indicators/tag}/tag-group/tag-group.host.css +0 -0
  1435. /package/dist/collection/components/{tag → indicators/tag}/tag.host.css +0 -0
  1436. /package/dist/collection/components/{tag → indicators/tag}/tag.interfaces.js +0 -0
  1437. /package/dist/collection/components/{brand-icon → media/brand-icon}/brand-icon.host.css +0 -0
  1438. /package/dist/collection/components/{brand-icon → media/brand-icon}/brand-icon.interfaces.js +0 -0
  1439. /package/dist/collection/components/{icon → media/icon}/icon.interfaces.js +0 -0
  1440. /package/dist/collection/components/{logo → media/logo}/logo.animation.js +0 -0
  1441. /package/dist/collection/components/{logo → media/logo}/logo.data.js +0 -0
  1442. /package/dist/collection/components/{logo → media/logo}/logo.host.css +0 -0
  1443. /package/dist/collection/components/{logo → media/logo}/logo.icons.js +0 -0
  1444. /package/dist/collection/components/{logo → media/logo}/logo.interfaces.js +0 -0
  1445. /package/dist/collection/components/{shape → media/shape}/shape.data.js +0 -0
  1446. /package/dist/collection/components/{shape → media/shape}/shape.host.css +0 -0
  1447. /package/dist/collection/components/{shape → media/shape}/shape.interfaces.js +0 -0
  1448. /package/dist/collection/components/{app-navbar → navigation/app-navbar}/app-navbar.host.css +0 -0
  1449. /package/dist/collection/components/{app-navbar → navigation/app-navbar}/app-navbar.i18n.js +0 -0
  1450. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.host.css +0 -0
  1451. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.i18n.js +0 -0
  1452. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.interfaces.js +0 -0
  1453. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.util.js +0 -0
  1454. /package/dist/collection/components/{steps → navigation/steps}/step/step.host.css +0 -0
  1455. /package/dist/collection/components/{steps → navigation/steps}/step-panel/step-panel.host.css +0 -0
  1456. /package/dist/collection/components/{steps → navigation/steps}/steps/steps.host.css +0 -0
  1457. /package/dist/collection/components/{steps → navigation/steps}/steps.interfaces.js +0 -0
  1458. /package/dist/collection/components/{tabs → navigation/tabs}/tab/tab.host.css +0 -0
  1459. /package/dist/collection/components/{tabs → navigation/tabs}/tab-panel/tab-panel.host.css +0 -0
  1460. /package/dist/collection/components/{tabs → navigation/tabs}/tabs/tabs.host.css +0 -0
  1461. /package/dist/collection/components/{tabs → navigation/tabs}/tabs/tabs.i18n.js +0 -0
  1462. /package/dist/collection/components/{tabs → navigation/tabs}/tabs.interfaces.js +0 -0
  1463. /package/dist/collection/components/{alert → overlays/alert}/alert-container.host.css +0 -0
  1464. /package/dist/collection/components/{alert → overlays/alert}/alert-container.interfaces.js +0 -0
  1465. /package/dist/collection/components/{alert → overlays/alert}/snackbar/snackbar.host.css +0 -0
  1466. /package/dist/collection/components/{alert → overlays/alert}/snackbar/snackbar.interfaces.js +0 -0
  1467. /package/dist/collection/components/{alert → overlays/alert}/toast/toast.host.css +0 -0
  1468. /package/dist/collection/components/{alert → overlays/alert}/toast/toast.interfaces.js +0 -0
  1469. /package/dist/collection/components/{drawer → overlays/drawer}/drawer.host.css +0 -0
  1470. /package/dist/collection/components/{drawer → overlays/drawer}/drawer.interfaces.js +0 -0
  1471. /package/dist/collection/components/{modal → overlays/modal}/modal-body/modal-body.host.css +0 -0
  1472. /package/dist/collection/components/{modal → overlays/modal}/modal.host.css +0 -0
  1473. /package/dist/collection/components/{modal → overlays/modal}/modal.interfaces.js +0 -0
  1474. /package/dist/collection/components/{notification → overlays/notification}/notification.host.css +0 -0
  1475. /package/dist/collection/components/{notification → overlays/notification}/notification.interfaces.js +0 -0
  1476. /package/dist/collection/components/{popup → overlays/popup}/popup.host.css +0 -0
  1477. /package/dist/collection/components/{popup → overlays/popup}/popup.interfaces.js +0 -0
  1478. /package/dist/collection/components/{sheet → overlays/sheet}/sheet.host.css +0 -0
  1479. /package/dist/collection/components/{sheet → overlays/sheet}/sheet.interfaces.js +0 -0
  1480. /package/dist/collection/components/{tooltip → overlays/tooltip}/tooltip.interfaces.js +0 -0
  1481. /package/dist/collection/components/{accordion → structure/accordion}/accordion.host.css +0 -0
  1482. /package/dist/collection/components/{accordion → structure/accordion}/accordion.interfaces.js +0 -0
  1483. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.host.css +0 -0
  1484. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.i18n.js +0 -0
  1485. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.interfaces.js +0 -0
  1486. /package/dist/collection/components/{card → structure/card}/card-content/card-content.host.css +0 -0
  1487. /package/dist/collection/components/{card → structure/card}/card-header/card-header.host.css +0 -0
  1488. /package/dist/collection/components/{card → structure/card}/card-subtitle/card-subtitle.host.css +0 -0
  1489. /package/dist/collection/components/{card → structure/card}/card-title/card-title.host.css +0 -0
  1490. /package/dist/collection/components/{card → structure/card}/card.host.css +0 -0
  1491. /package/dist/collection/components/{card → structure/card}/card.interfaces.js +0 -0
  1492. /package/dist/collection/components/{carousel → structure/carousel}/carousel/carousel.host.css +0 -0
  1493. /package/dist/collection/components/{carousel → structure/carousel}/carousel/carousel.i18n.js +0 -0
  1494. /package/dist/collection/components/{carousel → structure/carousel}/carousel-item/carousel-item.host.css +0 -0
  1495. /package/dist/collection/components/{carousel → structure/carousel}/carousel.interfaces.js +0 -0
  1496. /package/dist/collection/components/{content → structure/content}/content.host.css +0 -0
  1497. /package/dist/collection/components/{content → structure/content}/content.interfaces.js +0 -0
  1498. /package/dist/collection/components/{data → structure/data}/data-item.host.css +0 -0
  1499. /package/dist/collection/components/{data → structure/data}/data-item.i18n.js +0 -0
  1500. /package/dist/collection/components/{data → structure/data}/data-item.interfaces.js +0 -0
  1501. /package/dist/collection/components/{data → structure/data}/data-label.host.css +0 -0
  1502. /package/dist/collection/components/{data → structure/data}/data-label.interfaces.js +0 -0
  1503. /package/dist/collection/components/{data → structure/data}/data-value.host.css +0 -0
  1504. /package/dist/collection/components/{data → structure/data}/data-value.interfaces.js +0 -0
  1505. /package/dist/collection/components/{data → structure/data}/data.host.css +0 -0
  1506. /package/dist/collection/components/{data → structure/data}/data.interfaces.js +0 -0
  1507. /package/dist/collection/components/{divider → structure/divider}/divider.host.css +0 -0
  1508. /package/dist/collection/components/{divider → structure/divider}/divider.interfaces.js +0 -0
  1509. /package/dist/collection/components/{heading → structure/heading}/heading.const.js +0 -0
  1510. /package/dist/collection/components/{heading → structure/heading}/heading.host.css +0 -0
  1511. /package/dist/collection/components/{heading → structure/heading}/heading.interfaces.js +0 -0
  1512. /package/dist/collection/components/{list → structure/list}/item/item.host.css +0 -0
  1513. /package/dist/collection/components/{list → structure/list}/item/item.interfaces.js +0 -0
  1514. /package/dist/collection/components/{list → structure/list}/list.host.css +0 -0
  1515. /package/dist/collection/components/{root → structure/root}/root.css +0 -0
  1516. /package/dist/collection/components/{root → structure/root}/root.focus.util.js +0 -0
  1517. /package/dist/collection/components/{root → structure/root}/root.interfaces.js +0 -0
  1518. /package/dist/collection/components/{stack → structure/stack}/stack.host.css +0 -0
  1519. /package/dist/collection/components/{stack → structure/stack}/stack.interfaces.js +0 -0
  1520. /package/dist/collection/components/{text → structure/text}/text.host.css +0 -0
  1521. /package/dist/collection/components/{text → structure/text}/text.interfaces.js +0 -0
  1522. /package/dist/types/components/{button → actions/button}/test/button-group.visual.play.d.ts +0 -0
  1523. /package/dist/types/components/{button → actions/button}/test/button.a11y.play.d.ts +0 -0
  1524. /package/dist/types/components/{button → actions/button}/test/button.component.play.d.ts +0 -0
  1525. /package/dist/types/components/{accordion/test/accordion.a11y.play.d.ts → actions/button/test/button.ssr.play.d.ts} +0 -0
  1526. /package/dist/types/components/{button → actions/button}/test/button.visual.play.d.ts +0 -0
  1527. /package/dist/types/components/{close → actions/close}/close.interfaces.d.ts +0 -0
  1528. /package/dist/types/components/{close → actions/close}/test/close.a11y.play.d.ts +0 -0
  1529. /package/dist/types/components/{close → actions/close}/test/close.component.play.d.ts +0 -0
  1530. /package/dist/types/components/{accordion/test/accordion.component.play.d.ts → actions/close/test/close.ssr.play.d.ts} +0 -0
  1531. /package/dist/types/components/{close → actions/close}/test/close.visual.play.d.ts +0 -0
  1532. /package/dist/types/components/{link → actions/link}/test/link.a11y.play.d.ts +0 -0
  1533. /package/dist/types/components/{link → actions/link}/test/link.visual.play.d.ts +0 -0
  1534. /package/dist/types/components/{checkbox → forms/checkbox}/checkbox.interfaces.d.ts +0 -0
  1535. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.a11y.play.d.ts +0 -0
  1536. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.component.play.d.ts +0 -0
  1537. /package/dist/types/components/{accordion/test/accordion.visual.play.d.ts → forms/checkbox/test/checkbox.ssr.play.d.ts} +0 -0
  1538. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.visual.play.d.ts +0 -0
  1539. /package/dist/types/components/{counter → forms/counter}/counter.interfaces.d.ts +0 -0
  1540. /package/dist/types/components/{counter → forms/counter}/counter.utils.d.ts +0 -0
  1541. /package/dist/types/components/{counter → forms/counter}/test/counter.a11y.play.d.ts +0 -0
  1542. /package/dist/types/components/{counter → forms/counter}/test/counter.component.play.d.ts +0 -0
  1543. /package/dist/types/components/{alert/test/alert.visual.play.d.ts → forms/counter/test/counter.ssr.play.d.ts} +0 -0
  1544. /package/dist/types/components/{counter → forms/counter}/test/counter.visual.play.d.ts +0 -0
  1545. /package/dist/types/components/{datepicker → forms/datepicker}/datepicker.interfaces.d.ts +0 -0
  1546. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.a11y.play.d.ts +0 -0
  1547. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.component.play.d.ts +0 -0
  1548. /package/dist/types/components/{alert/test/snackbar.a11y.play.d.ts → forms/datepicker/test/datepicker.ssr.play.d.ts} +0 -0
  1549. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.visual.play.d.ts +0 -0
  1550. /package/dist/types/components/{file-upload → forms/file-upload}/file-upload.interfaces.d.ts +0 -0
  1551. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.a11y.play.d.ts +0 -0
  1552. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.component.play.d.ts +0 -0
  1553. /package/dist/types/components/{alert/test/snackbar.component.play.d.ts → forms/file-upload/test/file-upload.ssr.play.d.ts} +0 -0
  1554. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.visual.play.d.ts +0 -0
  1555. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-list.util.d.ts +0 -0
  1556. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-size.util.d.ts +0 -0
  1557. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-validation.util.d.ts +0 -0
  1558. /package/dist/types/components/{form → forms/form}/test/form.visual.play.d.ts +0 -0
  1559. /package/dist/types/components/{input → forms/input}/input.interfaces.d.ts +0 -0
  1560. /package/dist/types/components/{input → forms/input}/input.mask.d.ts +0 -0
  1561. /package/dist/types/components/{input → forms/input}/masks/basic-contract-number.d.ts +0 -0
  1562. /package/dist/types/components/{input → forms/input}/masks/be-enterprise-number.d.ts +0 -0
  1563. /package/dist/types/components/{input → forms/input}/masks/be-iban.d.ts +0 -0
  1564. /package/dist/types/components/{input → forms/input}/masks/claim-number.d.ts +0 -0
  1565. /package/dist/types/components/{input → forms/input}/masks/contract-number.d.ts +0 -0
  1566. /package/dist/types/components/{input → forms/input}/masks/index.d.ts +0 -0
  1567. /package/dist/types/components/{input → forms/input}/masks/offer-number.d.ts +0 -0
  1568. /package/dist/types/components/{input → forms/input}/masks/vehicle-registration-number.d.ts +0 -0
  1569. /package/dist/types/components/{input → forms/input}/test/input.a11y.play.d.ts +0 -0
  1570. /package/dist/types/components/{input → forms/input}/test/input.component.play.d.ts +0 -0
  1571. /package/dist/types/components/{alert/test/toast.a11y.play.d.ts → forms/input/test/input.ssr.play.d.ts} +0 -0
  1572. /package/dist/types/components/{input → forms/input}/test/input.visual.play.d.ts +0 -0
  1573. /package/dist/types/components/{input-phone → forms/input-phone}/country-data.d.ts +0 -0
  1574. /package/dist/types/components/{input-phone → forms/input-phone}/flag.d.ts +0 -0
  1575. /package/dist/types/components/{input-phone → forms/input-phone}/formatting.d.ts +0 -0
  1576. /package/dist/types/components/{input-phone → forms/input-phone}/input-phone.interfaces.d.ts +0 -0
  1577. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.a11y.play.d.ts +0 -0
  1578. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.component.play.d.ts +0 -0
  1579. /package/dist/types/components/{alert/test/snackbar.visual.play.d.ts → forms/input-phone/test/input-phone.ssr.play.d.ts} +0 -0
  1580. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.visual.play.d.ts +0 -0
  1581. /package/dist/types/components/{label → forms/label}/label.interfaces.d.ts +0 -0
  1582. /package/dist/types/components/{label → forms/label}/test/label.a11y.play.d.ts +0 -0
  1583. /package/dist/types/components/{label → forms/label}/test/label.component.play.d.ts +0 -0
  1584. /package/dist/types/components/{alert/test/toast.visual.play.d.ts → forms/label/test/label.ssr.play.d.ts} +0 -0
  1585. /package/dist/types/components/{label → forms/label}/test/label.visual.play.d.ts +0 -0
  1586. /package/dist/types/components/{number-input → forms/number-input}/number-input.interfaces.d.ts +0 -0
  1587. /package/dist/types/components/{number-input → forms/number-input}/number-input.utils.d.ts +0 -0
  1588. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.a11y.play.d.ts +0 -0
  1589. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.component.play.d.ts +0 -0
  1590. /package/dist/types/components/{app-footer/test/app-footer.a11y.play.d.ts → forms/number-input/test/number-input.ssr.play.d.ts} +0 -0
  1591. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.visual.play.d.ts +0 -0
  1592. /package/dist/types/components/{radio → forms/radio}/radio.interfaces.d.ts +0 -0
  1593. /package/dist/types/components/{radio → forms/radio}/test/radio.a11y.play.d.ts +0 -0
  1594. /package/dist/types/components/{radio → forms/radio}/test/radio.component.play.d.ts +0 -0
  1595. /package/dist/types/components/{app-footer/test/app-footer.component.play.d.ts → forms/radio/test/radio.ssr.play.d.ts} +0 -0
  1596. /package/dist/types/components/{radio → forms/radio}/test/radio.visual.play.d.ts +0 -0
  1597. /package/dist/types/components/{segment → forms/segment}/segment-item.interfaces.d.ts +0 -0
  1598. /package/dist/types/components/{segment → forms/segment}/segment-item.type.d.ts +0 -0
  1599. /package/dist/types/components/{segment → forms/segment}/test/segment.a11y.play.d.ts +0 -0
  1600. /package/dist/types/components/{segment → forms/segment}/test/segment.component.play.d.ts +0 -0
  1601. /package/dist/types/components/{app-footer/test/app-footer.visual.play.d.ts → forms/segment/test/segment.ssr.play.d.ts} +0 -0
  1602. /package/dist/types/components/{segment → forms/segment}/test/segment.visual.play.d.ts +0 -0
  1603. /package/dist/types/components/{select → forms/select}/select.interfaces.d.ts +0 -0
  1604. /package/dist/types/components/{select → forms/select}/test/select.a11y.play.d.ts +0 -0
  1605. /package/dist/types/components/{select → forms/select}/test/select.component.play.d.ts +0 -0
  1606. /package/dist/types/components/{app-navbar/test/app-navbar.a11y.play.d.ts → forms/select/test/select.ssr.play.d.ts} +0 -0
  1607. /package/dist/types/components/{select → forms/select}/test/select.visual.play.d.ts +0 -0
  1608. /package/dist/types/components/{slider → forms/slider}/slider.interfaces.d.ts +0 -0
  1609. /package/dist/types/components/{slider → forms/slider}/slider.picker.d.ts +0 -0
  1610. /package/dist/types/components/{slider → forms/slider}/slider.utils.d.ts +0 -0
  1611. /package/dist/types/components/{slider → forms/slider}/test/slider.a11y.play.d.ts +0 -0
  1612. /package/dist/types/components/{slider → forms/slider}/test/slider.component.play.d.ts +0 -0
  1613. /package/dist/types/components/{app-navbar/test/app-navbar.component.play.d.ts → forms/slider/test/slider.ssr.play.d.ts} +0 -0
  1614. /package/dist/types/components/{slider → forms/slider}/test/slider.visual.play.d.ts +0 -0
  1615. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.a11y.play.d.ts +0 -0
  1616. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.component.play.d.ts +0 -0
  1617. /package/dist/types/components/{app-navbar/test/app-navbar.visual.play.d.ts → forms/textarea/test/textarea.ssr.play.d.ts} +0 -0
  1618. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.visual.play.d.ts +0 -0
  1619. /package/dist/types/components/{textarea → forms/textarea}/textarea.interfaces.d.ts +0 -0
  1620. /package/dist/types/components/{time-input → forms/time-input}/test/time-input.visual.play.d.ts +0 -0
  1621. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.a11y.play.d.ts +0 -0
  1622. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.component.play.d.ts +0 -0
  1623. /package/dist/types/components/{badge/test/badge.a11y.play.d.ts → forms/toggle/test/toggle.ssr.play.d.ts} +0 -0
  1624. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.visual.play.d.ts +0 -0
  1625. /package/dist/types/components/{toggle → forms/toggle}/toggle.interfaces.d.ts +0 -0
  1626. /package/dist/types/components/{badge → indicators/badge}/badge.interfaces.d.ts +0 -0
  1627. /package/dist/types/components/{badge/test/badge.component.play.d.ts → indicators/badge/test/badge.a11y.play.d.ts} +0 -0
  1628. /package/dist/types/components/{badge/test/badge.visual.play.d.ts → indicators/badge/test/badge.component.play.d.ts} +0 -0
  1629. /package/dist/types/components/{brand-icon/test/brand-icon.component.play.d.ts → indicators/badge/test/badge.ssr.play.d.ts} +0 -0
  1630. /package/dist/types/components/{brand-icon/test/brand-icon.visual.play.d.ts → indicators/badge/test/badge.visual.play.d.ts} +0 -0
  1631. /package/dist/types/components/{hint → indicators/hint}/hint.interfaces.d.ts +0 -0
  1632. /package/dist/types/components/{hint → indicators/hint}/test/hint.a11y.play.d.ts +0 -0
  1633. /package/dist/types/components/{hint → indicators/hint}/test/hint.component.play.d.ts +0 -0
  1634. /package/dist/types/components/{card/test/card.a11y.play.d.ts → indicators/hint/test/hint.ssr.play.d.ts} +0 -0
  1635. /package/dist/types/components/{hint → indicators/hint}/test/hint.visual.play.d.ts +0 -0
  1636. /package/dist/types/components/{progress-bar → indicators/progress-bar}/progress-bar.interfaces.d.ts +0 -0
  1637. /package/dist/types/components/{progress-bar → indicators/progress-bar}/test/progress-bar.a11y.play.d.ts +0 -0
  1638. /package/dist/types/components/{card/test/card.component.play.d.ts → indicators/progress-bar/test/progress-bar.ssr.play.d.ts} +0 -0
  1639. /package/dist/types/components/{progress-bar → indicators/progress-bar}/test/progress-bar.visual.play.d.ts +0 -0
  1640. /package/dist/types/components/{spinner → indicators/spinner}/spinner.animation.d.ts +0 -0
  1641. /package/dist/types/components/{spinner → indicators/spinner}/spinner.data.d.ts +0 -0
  1642. /package/dist/types/components/{spinner → indicators/spinner}/spinner.interfaces.d.ts +0 -0
  1643. /package/dist/types/components/{spinner → indicators/spinner}/test/spinner.a11y.play.d.ts +0 -0
  1644. /package/dist/types/components/{card/test/card.visual.play.d.ts → indicators/spinner/test/spinner.ssr.play.d.ts} +0 -0
  1645. /package/dist/types/components/{spinner → indicators/spinner}/test/spinner.visual.play.d.ts +0 -0
  1646. /package/dist/types/components/{tag → indicators/tag}/tag.interfaces.d.ts +0 -0
  1647. /package/dist/types/components/{tag → indicators/tag}/test/tag.a11y.play.d.ts +0 -0
  1648. /package/dist/types/components/{tag → indicators/tag}/test/tag.component.play.d.ts +0 -0
  1649. /package/dist/types/components/{carousel/test/carousel.a11y.play.d.ts → indicators/tag/test/tag.ssr.play.d.ts} +0 -0
  1650. /package/dist/types/components/{tag → indicators/tag}/test/tag.visual.play.d.ts +0 -0
  1651. /package/dist/types/components/{brand-icon → media/brand-icon}/brand-icon.interfaces.d.ts +0 -0
  1652. /package/dist/types/components/{carousel/test/carousel.component.play.d.ts → media/brand-icon/test/brand-icon.component.play.d.ts} +0 -0
  1653. /package/dist/types/components/{carousel/test/carousel.visual.play.d.ts → media/brand-icon/test/brand-icon.ssr.play.d.ts} +0 -0
  1654. /package/dist/types/components/{container/test/container.visual.play.d.ts → media/brand-icon/test/brand-icon.visual.play.d.ts} +0 -0
  1655. /package/dist/types/components/{icon → media/icon}/icon.interfaces.d.ts +0 -0
  1656. /package/dist/types/components/{icon → media/icon}/test/icon.a11y.play.d.ts +0 -0
  1657. /package/dist/types/components/{icon → media/icon}/test/icon.component.play.d.ts +0 -0
  1658. /package/dist/types/components/{content/test/content.component.play.d.ts → media/icon/test/icon.ssr.play.d.ts} +0 -0
  1659. /package/dist/types/components/{icon → media/icon}/test/icon.visual.play.d.ts +0 -0
  1660. /package/dist/types/components/{logo → media/logo}/logo.animation.d.ts +0 -0
  1661. /package/dist/types/components/{logo → media/logo}/logo.data.d.ts +0 -0
  1662. /package/dist/types/components/{logo → media/logo}/logo.interfaces.d.ts +0 -0
  1663. /package/dist/types/components/{logo → media/logo}/test/logo.a11y.play.d.ts +0 -0
  1664. /package/dist/types/components/{logo → media/logo}/test/logo.component.play.d.ts +0 -0
  1665. /package/dist/types/components/{content/test/content.visual.play.d.ts → media/logo/test/logo.ssr.play.d.ts} +0 -0
  1666. /package/dist/types/components/{logo → media/logo}/test/logo.visual.play.d.ts +0 -0
  1667. /package/dist/types/components/{shape → media/shape}/shape.data.d.ts +0 -0
  1668. /package/dist/types/components/{shape → media/shape}/shape.interfaces.d.ts +0 -0
  1669. /package/dist/types/components/{shape → media/shape}/test/shape.component.play.d.ts +0 -0
  1670. /package/dist/types/components/{data/test/data.a11y.play.d.ts → media/shape/test/shape.ssr.play.d.ts} +0 -0
  1671. /package/dist/types/components/{shape → media/shape}/test/shape.visual.play.d.ts +0 -0
  1672. /package/dist/types/components/{app-navbar → navigation/app-navbar}/app-navbar.interfaces.d.ts +0 -0
  1673. /package/dist/types/components/{data/test/data.component.play.d.ts → navigation/app-navbar/test/app-navbar.a11y.play.d.ts} +0 -0
  1674. /package/dist/types/components/{data/test/data.visual.play.d.ts → navigation/app-navbar/test/app-navbar.component.play.d.ts} +0 -0
  1675. /package/dist/types/components/{divider/test/divider.a11y.play.d.ts → navigation/app-navbar/test/app-navbar.ssr.play.d.ts} +0 -0
  1676. /package/dist/types/components/{divider/test/divider.component.play.d.ts → navigation/app-navbar/test/app-navbar.visual.play.d.ts} +0 -0
  1677. /package/dist/types/components/{pagination → navigation/pagination}/pagination.interfaces.d.ts +0 -0
  1678. /package/dist/types/components/{pagination → navigation/pagination}/pagination.util.d.ts +0 -0
  1679. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.a11y.play.d.ts +0 -0
  1680. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.component.play.d.ts +0 -0
  1681. /package/dist/types/components/{divider/test/divider.visual.play.d.ts → navigation/pagination/test/pagination.ssr.play.d.ts} +0 -0
  1682. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.visual.play.d.ts +0 -0
  1683. /package/dist/types/components/{steps → navigation/steps}/steps.interfaces.d.ts +0 -0
  1684. /package/dist/types/components/{steps → navigation/steps}/test/steps.a11y.play.d.ts +0 -0
  1685. /package/dist/types/components/{steps → navigation/steps}/test/steps.component.play.d.ts +0 -0
  1686. /package/dist/types/components/{drawer/test/drawer.a11y.play.d.ts → navigation/steps/test/steps.ssr.play.d.ts} +0 -0
  1687. /package/dist/types/components/{steps → navigation/steps}/test/steps.visual.play.d.ts +0 -0
  1688. /package/dist/types/components/{tabs → navigation/tabs}/tabs.interfaces.d.ts +0 -0
  1689. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.a11y.play.d.ts +0 -0
  1690. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.component.play.d.ts +0 -0
  1691. /package/dist/types/components/{drawer/test/drawer.component.play.d.ts → navigation/tabs/test/tabs.ssr.play.d.ts} +0 -0
  1692. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.visual.play.d.ts +0 -0
  1693. /package/dist/types/components/{alert → overlays/alert}/alert.controller.d.ts +0 -0
  1694. /package/dist/types/components/{alert → overlays/alert}/snackbar/snackbar.interfaces.d.ts +0 -0
  1695. /package/dist/types/components/{drawer/test/drawer.visual.play.d.ts → overlays/alert/test/alert.visual.play.d.ts} +0 -0
  1696. /package/dist/types/components/{grid/test/grid.visual.play.d.ts → overlays/alert/test/snackbar.a11y.play.d.ts} +0 -0
  1697. /package/dist/types/components/{heading/test/heading.a11y.play.d.ts → overlays/alert/test/snackbar.component.play.d.ts} +0 -0
  1698. /package/dist/types/components/{heading/test/heading.component.play.d.ts → overlays/alert/test/snackbar.ssr.play.d.ts} +0 -0
  1699. /package/dist/types/components/{heading/test/heading.visual.play.d.ts → overlays/alert/test/snackbar.visual.play.d.ts} +0 -0
  1700. /package/dist/types/components/{list/test/list-native.visual.play.d.ts → overlays/alert/test/toast.a11y.play.d.ts} +0 -0
  1701. /package/dist/types/components/{list/test/list.component.play.d.ts → overlays/alert/test/toast.visual.play.d.ts} +0 -0
  1702. /package/dist/types/components/{alert → overlays/alert}/toast/toast.interfaces.d.ts +0 -0
  1703. /package/dist/types/components/{drawer → overlays/drawer}/drawer.interfaces.d.ts +0 -0
  1704. /package/dist/types/components/{list/test/list.visual.play.d.ts → overlays/drawer/test/drawer.a11y.play.d.ts} +0 -0
  1705. /package/dist/types/components/{modal/test/modal.a11y.play.d.ts → overlays/drawer/test/drawer.component.play.d.ts} +0 -0
  1706. /package/dist/types/components/{modal/test/modal.component.play.d.ts → overlays/drawer/test/drawer.ssr.play.d.ts} +0 -0
  1707. /package/dist/types/components/{modal/test/modal.visual.play.d.ts → overlays/drawer/test/drawer.visual.play.d.ts} +0 -0
  1708. /package/dist/types/components/{modal → overlays/modal}/modal.controller.d.ts +0 -0
  1709. /package/dist/types/components/{modal → overlays/modal}/modal.interfaces.d.ts +0 -0
  1710. /package/dist/types/components/{notification/test/notification.a11y.play.d.ts → overlays/modal/test/modal.a11y.play.d.ts} +0 -0
  1711. /package/dist/types/components/{notification/test/notification.component.play.d.ts → overlays/modal/test/modal.component.play.d.ts} +0 -0
  1712. /package/dist/types/components/{notification/test/notification.visual.play.d.ts → overlays/modal/test/modal.ssr.play.d.ts} +0 -0
  1713. /package/dist/types/components/{popup/test/popup.a11y.play.d.ts → overlays/modal/test/modal.visual.play.d.ts} +0 -0
  1714. /package/dist/types/components/{notification → overlays/notification}/notification.interfaces.d.ts +0 -0
  1715. /package/dist/types/components/{popup/test/popup.component.play.d.ts → overlays/notification/test/notification.a11y.play.d.ts} +0 -0
  1716. /package/dist/types/components/{popup/test/popup.visual.play.d.ts → overlays/notification/test/notification.component.play.d.ts} +0 -0
  1717. /package/dist/types/components/{root/test/root.component.play.d.ts → overlays/notification/test/notification.ssr.play.d.ts} +0 -0
  1718. /package/dist/types/components/{sheet/test/sheet.a11y.play.d.ts → overlays/notification/test/notification.visual.play.d.ts} +0 -0
  1719. /package/dist/types/components/{popup → overlays/popup}/popup.interfaces.d.ts +0 -0
  1720. /package/dist/types/components/{sheet/test/sheet.component.play.d.ts → overlays/popup/test/popup.a11y.play.d.ts} +0 -0
  1721. /package/dist/types/components/{sheet/test/sheet.visual.play.d.ts → overlays/popup/test/popup.component.play.d.ts} +0 -0
  1722. /package/dist/types/components/{stack/test/stack.component.play.d.ts → overlays/popup/test/popup.ssr.play.d.ts} +0 -0
  1723. /package/dist/types/components/{stack/test/stack.visual.play.d.ts → overlays/popup/test/popup.visual.play.d.ts} +0 -0
  1724. /package/dist/types/components/{sheet → overlays/sheet}/sheet.interfaces.d.ts +0 -0
  1725. /package/dist/types/components/{table/test/table.visual.play.d.ts → overlays/sheet/test/sheet.a11y.play.d.ts} +0 -0
  1726. /package/dist/types/components/{text/test/text.a11y.play.d.ts → overlays/sheet/test/sheet.component.play.d.ts} +0 -0
  1727. /package/dist/types/components/{text/test/text.component.play.d.ts → overlays/sheet/test/sheet.ssr.play.d.ts} +0 -0
  1728. /package/dist/types/components/{text/test/text.visual.play.d.ts → overlays/sheet/test/sheet.visual.play.d.ts} +0 -0
  1729. /package/dist/types/components/{tooltip → overlays/tooltip}/test/tooltip.a11y.play.d.ts +0 -0
  1730. /package/dist/types/components/{tooltip → overlays/tooltip}/test/tooltip.component.play.d.ts +0 -0
  1731. /package/dist/types/components/{tooltip/test/tooltip.visual.play.d.ts → overlays/tooltip/test/tooltip.ssr.play.d.ts} +0 -0
  1732. /package/dist/types/components/{tooltip → overlays/tooltip}/tooltip.interfaces.d.ts +0 -0
  1733. /package/dist/types/components/{accordion → structure/accordion}/accordion.interfaces.d.ts +0 -0
  1734. /package/dist/types/components/{app-footer → structure/app-footer}/app-footer.interfaces.d.ts +0 -0
  1735. /package/dist/types/components/{carousel → structure/carousel}/carousel.interfaces.d.ts +0 -0
  1736. /package/dist/types/components/{content → structure/content}/content.interfaces.d.ts +0 -0
  1737. /package/dist/types/components/{data → structure/data}/data-item.interfaces.d.ts +0 -0
  1738. /package/dist/types/components/{data → structure/data}/data-label.interfaces.d.ts +0 -0
  1739. /package/dist/types/components/{data → structure/data}/data-value.interfaces.d.ts +0 -0
  1740. /package/dist/types/components/{data → structure/data}/data.interfaces.d.ts +0 -0
  1741. /package/dist/types/components/{divider → structure/divider}/divider.interfaces.d.ts +0 -0
  1742. /package/dist/types/components/{heading → structure/heading}/heading.const.d.ts +0 -0
  1743. /package/dist/types/components/{heading → structure/heading}/heading.interfaces.d.ts +0 -0
  1744. /package/dist/types/components/{list → structure/list}/item/item.interfaces.d.ts +0 -0
  1745. /package/dist/types/components/{root → structure/root}/root.focus.util.d.ts +0 -0
  1746. /package/dist/types/components/{root → structure/root}/root.interfaces.d.ts +0 -0
  1747. /package/dist/types/components/{stack → structure/stack}/stack.interfaces.d.ts +0 -0
  1748. /package/dist/types/components/{text → structure/text}/text.interfaces.d.ts +0 -0
@@ -0,0 +1,2744 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ 'use strict';
5
+
6
+ /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
7
+
8
+ function _arrayLikeToArray(r, a) {
9
+ (null == a || a > r.length) && (a = r.length);
10
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
11
+ return n;
12
+ }
13
+ function _arrayWithHoles(r) {
14
+ if (Array.isArray(r)) return r;
15
+ }
16
+ function _iterableToArrayLimit(r, l) {
17
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
18
+ if (null != t) {
19
+ var e,
20
+ n,
21
+ i,
22
+ u,
23
+ a = [],
24
+ f = true,
25
+ o = false;
26
+ try {
27
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true);
28
+ } catch (r) {
29
+ o = true, n = r;
30
+ } finally {
31
+ try {
32
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
33
+ } finally {
34
+ if (o) throw n;
35
+ }
36
+ }
37
+ return a;
38
+ }
39
+ }
40
+ function _nonIterableRest() {
41
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
42
+ }
43
+ function _slicedToArray(r, e) {
44
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
45
+ }
46
+ function _unsupportedIterableToArray(r, a) {
47
+ if (r) {
48
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
49
+ var t = {}.toString.call(r).slice(8, -1);
50
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
51
+ }
52
+ }
53
+
54
+ const entries = Object.entries,
55
+ setPrototypeOf = Object.setPrototypeOf,
56
+ isFrozen = Object.isFrozen,
57
+ getPrototypeOf = Object.getPrototypeOf,
58
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
59
+ let freeze = Object.freeze,
60
+ seal = Object.seal,
61
+ create = Object.create; // eslint-disable-line import/no-mutable-exports
62
+ let _ref = typeof Reflect !== 'undefined' && Reflect,
63
+ apply = _ref.apply,
64
+ construct = _ref.construct;
65
+ if (!freeze) {
66
+ freeze = function freeze(x) {
67
+ return x;
68
+ };
69
+ }
70
+ if (!seal) {
71
+ seal = function seal(x) {
72
+ return x;
73
+ };
74
+ }
75
+ if (!apply) {
76
+ apply = function apply(func, thisArg) {
77
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
78
+ args[_key - 2] = arguments[_key];
79
+ }
80
+ return func.apply(thisArg, args);
81
+ };
82
+ }
83
+ if (!construct) {
84
+ construct = function construct(Func) {
85
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
86
+ args[_key2 - 1] = arguments[_key2];
87
+ }
88
+ return new Func(...args);
89
+ };
90
+ }
91
+ const arrayForEach = unapply(Array.prototype.forEach);
92
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
93
+ const arrayPop = unapply(Array.prototype.pop);
94
+ const arrayPush = unapply(Array.prototype.push);
95
+ const arraySplice = unapply(Array.prototype.splice);
96
+ const arrayIsArray = Array.isArray;
97
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
98
+ const stringToString = unapply(String.prototype.toString);
99
+ const stringMatch = unapply(String.prototype.match);
100
+ const stringReplace = unapply(String.prototype.replace);
101
+ const stringIndexOf = unapply(String.prototype.indexOf);
102
+ const stringTrim = unapply(String.prototype.trim);
103
+ const numberToString = unapply(Number.prototype.toString);
104
+ const booleanToString = unapply(Boolean.prototype.toString);
105
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
106
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
107
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
108
+ const objectToString = unapply(Object.prototype.toString);
109
+ const regExpTest = unapply(RegExp.prototype.test);
110
+ const typeErrorCreate = unconstruct(TypeError);
111
+ /**
112
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
113
+ *
114
+ * @param func - The function to be wrapped and called.
115
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
116
+ */
117
+ function unapply(func) {
118
+ return function (thisArg) {
119
+ if (thisArg instanceof RegExp) {
120
+ thisArg.lastIndex = 0;
121
+ }
122
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
123
+ args[_key3 - 1] = arguments[_key3];
124
+ }
125
+ return apply(func, thisArg, args);
126
+ };
127
+ }
128
+ /**
129
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
130
+ *
131
+ * @param func - The constructor function to be wrapped and called.
132
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
133
+ */
134
+ function unconstruct(Func) {
135
+ return function () {
136
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
137
+ args[_key4] = arguments[_key4];
138
+ }
139
+ return construct(Func, args);
140
+ };
141
+ }
142
+ /**
143
+ * Add properties to a lookup table
144
+ *
145
+ * @param set - The set to which elements will be added.
146
+ * @param array - The array containing elements to be added to the set.
147
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
148
+ * @returns The modified set with added elements.
149
+ */
150
+ function addToSet(set, array) {
151
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
152
+ if (setPrototypeOf) {
153
+ // Make 'in' and truthy checks like Boolean(set.constructor)
154
+ // independent of any properties defined on Object.prototype.
155
+ // Prevent prototype setters from intercepting set as a this value.
156
+ setPrototypeOf(set, null);
157
+ }
158
+ if (!arrayIsArray(array)) {
159
+ return set;
160
+ }
161
+ let l = array.length;
162
+ while (l--) {
163
+ let element = array[l];
164
+ if (typeof element === 'string') {
165
+ const lcElement = transformCaseFunc(element);
166
+ if (lcElement !== element) {
167
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
168
+ if (!isFrozen(array)) {
169
+ array[l] = lcElement;
170
+ }
171
+ element = lcElement;
172
+ }
173
+ }
174
+ set[element] = true;
175
+ }
176
+ return set;
177
+ }
178
+ /**
179
+ * Clean up an array to harden against CSPP
180
+ *
181
+ * @param array - The array to be cleaned.
182
+ * @returns The cleaned version of the array
183
+ */
184
+ function cleanArray(array) {
185
+ for (let index = 0; index < array.length; index++) {
186
+ const isPropertyExist = objectHasOwnProperty(array, index);
187
+ if (!isPropertyExist) {
188
+ array[index] = null;
189
+ }
190
+ }
191
+ return array;
192
+ }
193
+ /**
194
+ * Shallow clone an object
195
+ *
196
+ * @param object - The object to be cloned.
197
+ * @returns A new object that copies the original.
198
+ */
199
+ function clone(object) {
200
+ const newObject = create(null);
201
+ for (const _ref2 of entries(object)) {
202
+ var _ref3 = _slicedToArray(_ref2, 2);
203
+ const property = _ref3[0];
204
+ const value = _ref3[1];
205
+ const isPropertyExist = objectHasOwnProperty(object, property);
206
+ if (isPropertyExist) {
207
+ if (arrayIsArray(value)) {
208
+ newObject[property] = cleanArray(value);
209
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
210
+ newObject[property] = clone(value);
211
+ } else {
212
+ newObject[property] = value;
213
+ }
214
+ }
215
+ }
216
+ return newObject;
217
+ }
218
+ /**
219
+ * Convert non-node values into strings without depending on direct property access.
220
+ *
221
+ * @param value - The value to stringify.
222
+ * @returns A string representation of the provided value.
223
+ */
224
+ function stringifyValue(value) {
225
+ switch (typeof value) {
226
+ case 'string':
227
+ {
228
+ return value;
229
+ }
230
+ case 'number':
231
+ {
232
+ return numberToString(value);
233
+ }
234
+ case 'boolean':
235
+ {
236
+ return booleanToString(value);
237
+ }
238
+ case 'bigint':
239
+ {
240
+ return bigintToString ? bigintToString(value) : '0';
241
+ }
242
+ case 'symbol':
243
+ {
244
+ return symbolToString ? symbolToString(value) : 'Symbol()';
245
+ }
246
+ case 'undefined':
247
+ {
248
+ return objectToString(value);
249
+ }
250
+ case 'function':
251
+ case 'object':
252
+ {
253
+ if (value === null) {
254
+ return objectToString(value);
255
+ }
256
+ const valueAsRecord = value;
257
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
258
+ if (typeof valueToString === 'function') {
259
+ const stringified = valueToString(valueAsRecord);
260
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
261
+ }
262
+ return objectToString(value);
263
+ }
264
+ default:
265
+ {
266
+ return objectToString(value);
267
+ }
268
+ }
269
+ }
270
+ /**
271
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
272
+ *
273
+ * @param object - The object to look up the getter function in its prototype chain.
274
+ * @param prop - The property name for which to find the getter function.
275
+ * @returns The getter function found in the prototype chain or a fallback function.
276
+ */
277
+ function lookupGetter(object, prop) {
278
+ while (object !== null) {
279
+ const desc = getOwnPropertyDescriptor(object, prop);
280
+ if (desc) {
281
+ if (desc.get) {
282
+ return unapply(desc.get);
283
+ }
284
+ if (typeof desc.value === 'function') {
285
+ return unapply(desc.value);
286
+ }
287
+ }
288
+ object = getPrototypeOf(object);
289
+ }
290
+ function fallbackValue() {
291
+ return null;
292
+ }
293
+ return fallbackValue;
294
+ }
295
+ function isRegex(value) {
296
+ try {
297
+ regExpTest(value, '');
298
+ return true;
299
+ } catch (_unused) {
300
+ return false;
301
+ }
302
+ }
303
+
304
+ const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
305
+ const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
306
+ const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
307
+ // List of SVG elements that are disallowed by default.
308
+ // We still need to know them so that we can do namespace
309
+ // checks properly in case one wants to add them to
310
+ // allow-list.
311
+ const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
312
+ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);
313
+ // Similarly to SVG, we want to know all MathML elements,
314
+ // even those that we disallow by default.
315
+ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
316
+ const text = freeze(['#text']);
317
+
318
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'command', 'commandfor', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
319
+ const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dominant-baseline', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'pointer-events', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-orientation', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'vector-effect', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
320
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
321
+ const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
322
+
323
+ const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
324
+ const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
325
+ const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
326
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
327
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
328
+ const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
329
+ );
330
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
331
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
332
+ );
333
+ const DOCTYPE_NAME = seal(/^html$/i);
334
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
335
+ // Markup-significant character probes used by _sanitizeElements.
336
+ // Shared module-level instances are safe despite the sticky /g flags:
337
+ // unapply() resets lastIndex for RegExp receivers before every call.
338
+ const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
339
+ const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
340
+ const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
341
+ const SELF_CLOSING_TAG = seal(/\/>/i);
342
+
343
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
344
+ const NODE_TYPE = {
345
+ element: 1,
346
+ text: 3,
347
+ // Deprecated
348
+ processingInstruction: 7,
349
+ comment: 8,
350
+ document: 9,
351
+ documentFragment: 11};
352
+ /* HTML-namespace elements whose child text nodes are serialized *literally*
353
+ (unescaped) by the HTML fragment-serialization algorithm. Two reparse-mXSS
354
+ shapes ride on that literal serialization:
355
+ (a) an element child - a tree the HTML parser can never build, but the DOM
356
+ API and an XML/XHTML parse can - after which a `</tag>`-bearing text
357
+ sibling breaks the element open on reparse; and
358
+ (b) text-only content that already carries the element's OWN end tag, e.g.
359
+ `<style>...</style><img onerror=x>` built as a node, which the literal
360
+ serializer emits verbatim for the HTML parser to re-open.
361
+ Shape (a) is handled by the firstElementChild branch in _isUnsafeNode; shape
362
+ (b) by the LITERAL_TEXT_CLOSE probe. Both read textContent (the raw-serialized
363
+ form for these elements) rather than innerHTML, because an XML/XHTML working
364
+ document serializes innerHTML with `<` escaped, which silently blinds the
365
+ innerHTML-based probes (rule 1's second probe and FALLBACK_TAG_CLOSE) there.
366
+ `script` is never allow-listed, but is kept here so the guard matches the
367
+ serializer's own literal-text list exactly. */
368
+ const LITERAL_TEXT_ELEMENT_NAMES = ['style', 'script', 'xmp', 'iframe', 'noembed', 'noframes', 'plaintext', 'noscript'];
369
+ const LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
370
+ /* Per-element end-tag matcher. On an HTML reparse the ONLY token that
371
+ terminates a literal-text element's raw content is its own end tag; a foreign
372
+ literal-text close (e.g. `</xmp>` sitting inside `<style>`) does not break
373
+ out, so matching is per-element, not a shared alternation. The lookahead
374
+ requires an HTML tag-name terminator (whitespace, `/` or `>`) so a longer
375
+ name such as `</styles` is not mistaken for `</style`. */
376
+ const LITERAL_TEXT_CLOSE = function () {
377
+ const map = {};
378
+ arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, name => {
379
+ map[name] = seal(new RegExp('</' + name + '(?=[\\t\\n\\f\\r />])', 'i'));
380
+ });
381
+ return freeze(map);
382
+ }();
383
+ const getGlobal = function getGlobal() {
384
+ return typeof window === 'undefined' ? null : window;
385
+ };
386
+ /**
387
+ * Creates a no-op policy for internal use only.
388
+ * Don't export this function outside this module!
389
+ * @param trustedTypes The policy factory.
390
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
391
+ * @return The policy created (or null, if Trusted Types
392
+ * are not supported or creating the policy failed).
393
+ */
394
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
395
+ if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
396
+ return null;
397
+ }
398
+ // Allow the callers to control the unique policy name
399
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
400
+ // Policy creation with duplicate names throws in Trusted Types.
401
+ let suffix = null;
402
+ const ATTR_NAME = 'data-tt-policy-suffix';
403
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
404
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
405
+ }
406
+ const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
407
+ try {
408
+ return trustedTypes.createPolicy(policyName, {
409
+ createHTML(html) {
410
+ return html;
411
+ },
412
+ createScriptURL(scriptUrl) {
413
+ return scriptUrl;
414
+ }
415
+ });
416
+ } catch (_) {
417
+ // Policy creation failed (most likely another DOMPurify script has
418
+ // already run). Skip creating the policy, as this will only cause errors
419
+ // if TT are enforced.
420
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
421
+ return null;
422
+ }
423
+ };
424
+ const _createHooksMap = function _createHooksMap() {
425
+ return {
426
+ afterSanitizeAttributes: [],
427
+ afterSanitizeElements: [],
428
+ afterSanitizeShadowDOM: [],
429
+ beforeSanitizeAttributes: [],
430
+ beforeSanitizeElements: [],
431
+ beforeSanitizeShadowDOM: [],
432
+ uponSanitizeAttribute: [],
433
+ uponSanitizeElement: [],
434
+ uponSanitizeShadowNode: []
435
+ };
436
+ };
437
+ /**
438
+ * Resolve a set-valued configuration option: a fresh set built from
439
+ * cfg[key] when it is an own array property (seeded with a clone of
440
+ * options.base when given, case-normalized via options.transform),
441
+ * the fallback set otherwise.
442
+ *
443
+ * @param cfg the cloned, prototype-free configuration object
444
+ * @param key the configuration property to read
445
+ * @param fallback the set to use when the option is absent or not an array
446
+ * @param options transform and optional base set to merge into
447
+ * @returns the resolved set
448
+ */
449
+ const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
450
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
451
+ };
452
+ /**
453
+ * Resolve an object-valued configuration option: a prototype-free clone
454
+ * of cfg[key] when it is an own, truthy object property, else a fresh
455
+ * fallback built by makeFallback (fresh on every parse, so a previous
456
+ * parse can never leak state into the next one).
457
+ *
458
+ * @param cfg the cloned, prototype-free configuration object
459
+ * @param key the configuration property to read
460
+ * @param makeFallback builds the fallback value when the option is absent
461
+ * @returns the resolved object
462
+ */
463
+ const _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {
464
+ const value = objectHasOwnProperty(cfg, key) ? cfg[key] : undefined;
465
+ return value && typeof value === 'object' ? clone(value) : makeFallback();
466
+ };
467
+ function createDOMPurify() {
468
+ let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
469
+ const DOMPurify = root => createDOMPurify(root);
470
+ DOMPurify.version = '3.4.15';
471
+ DOMPurify.removed = [];
472
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
473
+ // Not running in a browser, provide a factory function
474
+ // so that you can pass your own Window
475
+ DOMPurify.isSupported = false;
476
+ return DOMPurify;
477
+ }
478
+ let document = window.document;
479
+ const originalDocument = document;
480
+ const currentScript = originalDocument.currentScript;
481
+ const HTMLTemplateElement = window.HTMLTemplateElement,
482
+ Node = window.Node,
483
+ Element = window.Element,
484
+ NodeFilter = window.NodeFilter;
485
+ const DOMParser = window.DOMParser,
486
+ trustedTypes = window.trustedTypes;
487
+ const ElementPrototype = Element.prototype;
488
+ const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
489
+ const remove = lookupGetter(ElementPrototype, 'remove');
490
+ // Clobber-safe Attr-node removal. On an HTMLFormElement a descendant named
491
+ // "removeAttributeNode" shadows the prototype method via
492
+ // [LegacyOverrideBuiltIns], so element.removeAttributeNode(attr) throws.
493
+ // Calling the cached Element.prototype method with the element as the
494
+ // receiver removes the exact live Attr node regardless of the shadowing.
495
+ const removeAttributeNode = lookupGetter(ElementPrototype, 'removeAttributeNode');
496
+ const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
497
+ const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
498
+ const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
499
+ const getShadowRoot = lookupGetter(ElementPrototype, 'shadowRoot');
500
+ const getAttributes = lookupGetter(ElementPrototype, 'attributes');
501
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeType') : null;
502
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeName') : null;
503
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, 'ownerDocument') : null;
504
+ /* Clobber-safe nodeType / nodeName reads through the cached Node.prototype
505
+ getters, with a direct-property fallback for environments that lack
506
+ Node.prototype. Sites that need a different fallback (e.g. _isClobbered
507
+ returns early on a null name) intentionally keep their own reads. */
508
+ const _readNodeType = function _readNodeType(node) {
509
+ return getNodeType ? getNodeType(node) : node.nodeType;
510
+ };
511
+ const _readNodeName = function _readNodeName(node) {
512
+ return getNodeName ? getNodeName(node) : node.nodeName;
513
+ };
514
+ // As per issue #47, the web-components registry is inherited by a
515
+ // new document created via createHTMLDocument. As per the spec
516
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
517
+ // a new empty registry is used when creating a template contents owner
518
+ // document, so we use that as our parent document to ensure nothing
519
+ // is inherited.
520
+ if (typeof HTMLTemplateElement === 'function') {
521
+ const template = document.createElement('template');
522
+ if (template.content && template.content.ownerDocument) {
523
+ document = template.content.ownerDocument;
524
+ }
525
+ }
526
+ let trustedTypesPolicy;
527
+ let emptyHTML = '';
528
+ // The instance's own internal Trusted Types policy. Unlike a caller-supplied
529
+ // `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
530
+ // on duplicate policy names — and is the only policy allowed to persist
531
+ // across configurations and survive `clearConfig()`.
532
+ let defaultTrustedTypesPolicy;
533
+ let defaultTrustedTypesPolicyResolved = false;
534
+ // Tracks whether we are already inside a call to the configured Trusted Types
535
+ // policy (`createHTML` or `createScriptURL`). If a supplied policy callback
536
+ // itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
537
+ // re-enter the policy and recurse until the stack overflows. We detect that
538
+ // re-entry and throw a clear, actionable error instead. The guard is shared
539
+ // across both callbacks, because either one re-entering `sanitize` triggers
540
+ // the same unbounded recursion.
541
+ let IN_TRUSTED_TYPES_POLICY = 0;
542
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
543
+ if (IN_TRUSTED_TYPES_POLICY > 0) {
544
+ throw typeErrorCreate('A configured TRUSTED_TYPES_POLICY callback (createHTML or ' + 'createScriptURL) must not call DOMPurify.sanitize, as that causes ' + 'infinite recursion. Do not pass a policy whose callbacks wrap ' + 'DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted ' + 'Types" section of the README.');
545
+ }
546
+ };
547
+ const _createTrustedHTML = function _createTrustedHTML(html) {
548
+ _assertNotInTrustedTypesPolicy();
549
+ IN_TRUSTED_TYPES_POLICY++;
550
+ try {
551
+ return trustedTypesPolicy.createHTML(html);
552
+ } finally {
553
+ IN_TRUSTED_TYPES_POLICY--;
554
+ }
555
+ };
556
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
557
+ _assertNotInTrustedTypesPolicy();
558
+ IN_TRUSTED_TYPES_POLICY++;
559
+ try {
560
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
561
+ } finally {
562
+ IN_TRUSTED_TYPES_POLICY--;
563
+ }
564
+ };
565
+ // Lazily resolve (and cache) the instance's internal default policy.
566
+ // Resolution is attempted at most once: a successful `createPolicy` cannot be
567
+ // repeated (Trusted Types throws on duplicate names), and a failed or
568
+ // unsupported attempt must not be retried on every parse.
569
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
570
+ if (!defaultTrustedTypesPolicyResolved) {
571
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
572
+ defaultTrustedTypesPolicyResolved = true;
573
+ }
574
+ return defaultTrustedTypesPolicy;
575
+ };
576
+ const _document = document,
577
+ implementation = _document.implementation,
578
+ createNodeIterator = _document.createNodeIterator,
579
+ createDocumentFragment = _document.createDocumentFragment,
580
+ getElementsByTagName = _document.getElementsByTagName;
581
+ const importNode = originalDocument.importNode;
582
+ let hooks = _createHooksMap();
583
+ /**
584
+ * Expose whether this browser supports running the full DOMPurify.
585
+ */
586
+ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
587
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR,
588
+ ERB_EXPR$1 = ERB_EXPR,
589
+ TMPLIT_EXPR$1 = TMPLIT_EXPR,
590
+ DATA_ATTR$1 = DATA_ATTR,
591
+ ARIA_ATTR$1 = ARIA_ATTR,
592
+ IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,
593
+ ATTR_WHITESPACE$1 = ATTR_WHITESPACE,
594
+ CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
595
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
596
+ /**
597
+ * We consider the elements and attributes below to be safe. Ideally
598
+ * don't add any new ones but feel free to remove unwanted ones.
599
+ */
600
+ /* allowed element names */
601
+ let ALLOWED_TAGS = null;
602
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
603
+ /* Allowed attribute names */
604
+ let ALLOWED_ATTR = null;
605
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
606
+ /*
607
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
608
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
609
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
610
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
611
+ */
612
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
613
+ tagNameCheck: {
614
+ writable: true,
615
+ configurable: false,
616
+ enumerable: true,
617
+ value: null
618
+ },
619
+ attributeNameCheck: {
620
+ writable: true,
621
+ configurable: false,
622
+ enumerable: true,
623
+ value: null
624
+ },
625
+ allowCustomizedBuiltInElements: {
626
+ writable: true,
627
+ configurable: false,
628
+ enumerable: true,
629
+ value: false
630
+ }
631
+ }));
632
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
633
+ let FORBID_TAGS = null;
634
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
635
+ let FORBID_ATTR = null;
636
+ /* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
637
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
638
+ tagCheck: {
639
+ writable: true,
640
+ configurable: false,
641
+ enumerable: true,
642
+ value: null
643
+ },
644
+ attributeCheck: {
645
+ writable: true,
646
+ configurable: false,
647
+ enumerable: true,
648
+ value: null
649
+ }
650
+ }));
651
+ /* Decide if ARIA attributes are okay */
652
+ let ALLOW_ARIA_ATTR = true;
653
+ /* Decide if custom data attributes are okay */
654
+ let ALLOW_DATA_ATTR = true;
655
+ /* Decide if unknown protocols are okay */
656
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
657
+ /* Decide if self-closing tags in attributes are allowed.
658
+ * Usually removed due to a mXSS issue in jQuery 3.0 */
659
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
660
+ /* Output should be safe for common template engines.
661
+ * This means, DOMPurify removes data attributes, mustaches and ERB
662
+ */
663
+ let SAFE_FOR_TEMPLATES = false;
664
+ /* Output should be safe even for XML used within HTML and alike.
665
+ * This means, DOMPurify removes comments when containing risky content.
666
+ */
667
+ let SAFE_FOR_XML = true;
668
+ /* Decide if document with <html>... should be returned */
669
+ let WHOLE_DOCUMENT = false;
670
+ /* Track whether config is already set on this instance of DOMPurify. */
671
+ let SET_CONFIG = false;
672
+ /* Pristine allowlist bindings captured at setConfig() time. On the
673
+ * persistent-config path sanitize() restores the sets from these before
674
+ * the per-walk hook clone-guard, so a hook's in-call widening cannot
675
+ * carry across calls. Null until setConfig() is called; reset by
676
+ * clearConfig(). */
677
+ let SET_CONFIG_ALLOWED_TAGS = null;
678
+ let SET_CONFIG_ALLOWED_ATTR = null;
679
+ /* Decide if all elements (e.g. style, script) must be children of
680
+ * document.body. By default, browsers might move them to document.head */
681
+ let FORCE_BODY = false;
682
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
683
+ * string (or a TrustedHTML object if Trusted Types are supported).
684
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
685
+ */
686
+ let RETURN_DOM = false;
687
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
688
+ * string (or a TrustedHTML object if Trusted Types are supported) */
689
+ let RETURN_DOM_FRAGMENT = false;
690
+ /* Try to return a Trusted Type object instead of a string, return a string in
691
+ * case Trusted Types are not supported */
692
+ let RETURN_TRUSTED_TYPE = false;
693
+ /* Output should be free from DOM clobbering attacks?
694
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
695
+ */
696
+ let SANITIZE_DOM = true;
697
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
698
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
699
+ *
700
+ * HTML/DOM spec rules that enable DOM Clobbering:
701
+ * - Named Access on Window (§7.3.3)
702
+ * - DOM Tree Accessors (§3.1.5)
703
+ * - Form Element Parent-Child Relations (§4.10.3)
704
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
705
+ * - HTMLCollection (§4.2.10.2)
706
+ *
707
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
708
+ * with a constant string, i.e., `user-content-`
709
+ */
710
+ let SANITIZE_NAMED_PROPS = false;
711
+ const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
712
+ /* Keep element content when removing element? */
713
+ let KEEP_CONTENT = true;
714
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
715
+ * of importing it into a new Document and returning a sanitized copy */
716
+ let IN_PLACE = false;
717
+ /* Allow usage of profiles like html, svg and mathMl */
718
+ let USE_PROFILES = {};
719
+ /* Tags to ignore content of when KEEP_CONTENT is true */
720
+ let FORBID_CONTENTS = null;
721
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
722
+ // <selectedcontent> mirrors the selected <option>'s subtree, cloned by
723
+ // the UA (customizable <select>) — including any on* handlers — and the
724
+ // engine re-mirrors synchronously whenever a removal changes which
725
+ // option/selectedcontent is current, even inside DOMPurify's inert
726
+ // DOMParser document. Hoisting its children on removal re-inserts a fresh
727
+ // mirror target ahead of the walk, which the engine refills, looping
728
+ // forever (DoS) and amplifying output. Dropping its content on removal
729
+ // (rather than hoisting) breaks that cascade; the content is a duplicate
730
+ // of the option, which is sanitized on its own. See campaign-3 F1/F6.
731
+ 'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
732
+ /* Tags that are safe for data: URIs */
733
+ let DATA_URI_TAGS = null;
734
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
735
+ /* Attributes safe for values like "javascript:" */
736
+ let URI_SAFE_ATTRIBUTES = null;
737
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
738
+ const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
739
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
740
+ const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
741
+ /* Document namespace */
742
+ let NAMESPACE = HTML_NAMESPACE;
743
+ let IS_EMPTY_INPUT = false;
744
+ /* Allowed XHTML+XML namespaces */
745
+ let ALLOWED_NAMESPACES = null;
746
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
747
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
748
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
749
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
750
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
751
+ // Certain elements are allowed in both SVG and HTML
752
+ // namespace. We need to specify them explicitly
753
+ // so that they don't get erroneously deleted from
754
+ // HTML namespace.
755
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
756
+ /* Parsing of strict XHTML documents */
757
+ let PARSER_MEDIA_TYPE = null;
758
+ const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
759
+ const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
760
+ let transformCaseFunc = null;
761
+ /* Keep a reference to config to pass to hooks */
762
+ let CONFIG = null;
763
+ /* Ideally, do not touch anything below this line */
764
+ /* ______________________________________________ */
765
+ const formElement = document.createElement('form');
766
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
767
+ return testValue instanceof RegExp || testValue instanceof Function;
768
+ };
769
+ /**
770
+ * _parseConfig
771
+ *
772
+ * @param cfg optional config literal
773
+ */
774
+ // eslint-disable-next-line complexity
775
+ const _parseConfig = function _parseConfig() {
776
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
777
+ if (CONFIG && CONFIG === cfg) {
778
+ return;
779
+ }
780
+ /* Shield configuration object from tampering */
781
+ if (!cfg || typeof cfg !== 'object') {
782
+ cfg = {};
783
+ }
784
+ /* Shield configuration object from prototype pollution */
785
+ cfg = clone(cfg);
786
+ PARSER_MEDIA_TYPE =
787
+ // eslint-disable-next-line unicorn/prefer-includes
788
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
789
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
790
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
791
+ /* Set configuration parameters */
792
+ ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
793
+ transform: transformCaseFunc
794
+ });
795
+ ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
796
+ transform: transformCaseFunc
797
+ });
798
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
799
+ transform: stringToString
800
+ });
801
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
802
+ transform: transformCaseFunc,
803
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
804
+ });
805
+ DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
806
+ transform: transformCaseFunc,
807
+ base: DEFAULT_DATA_URI_TAGS
808
+ });
809
+ FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
810
+ transform: transformCaseFunc
811
+ });
812
+ FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
813
+ transform: transformCaseFunc
814
+ });
815
+ FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
816
+ transform: transformCaseFunc
817
+ });
818
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
819
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
820
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
821
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
822
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
823
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
824
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
825
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
826
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
827
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
828
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
829
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
830
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
831
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
832
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
833
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
834
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
835
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
836
+ MATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, 'MATHML_TEXT_INTEGRATION_POINTS', () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS) // Default built-in map
837
+ );
838
+ HTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, 'HTML_INTEGRATION_POINTS', () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS) // Default built-in map
839
+ );
840
+ const customElementHandling = _resolveObjectOption(cfg, 'CUSTOM_ELEMENT_HANDLING', () => create(null));
841
+ CUSTOM_ELEMENT_HANDLING = create(null);
842
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
843
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
844
+ }
845
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
846
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
847
+ }
848
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
849
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
850
+ }
851
+ seal(CUSTOM_ELEMENT_HANDLING);
852
+ if (SAFE_FOR_TEMPLATES) {
853
+ ALLOW_DATA_ATTR = false;
854
+ }
855
+ if (RETURN_DOM_FRAGMENT) {
856
+ RETURN_DOM = true;
857
+ }
858
+ /* Parse profile info */
859
+ if (USE_PROFILES) {
860
+ ALLOWED_TAGS = addToSet({}, text);
861
+ ALLOWED_ATTR = create(null);
862
+ if (USE_PROFILES.html === true) {
863
+ addToSet(ALLOWED_TAGS, html$1);
864
+ addToSet(ALLOWED_ATTR, html);
865
+ }
866
+ if (USE_PROFILES.svg === true) {
867
+ addToSet(ALLOWED_TAGS, svg$1);
868
+ addToSet(ALLOWED_ATTR, svg);
869
+ addToSet(ALLOWED_ATTR, xml);
870
+ }
871
+ if (USE_PROFILES.svgFilters === true) {
872
+ addToSet(ALLOWED_TAGS, svgFilters);
873
+ addToSet(ALLOWED_ATTR, svg);
874
+ addToSet(ALLOWED_ATTR, xml);
875
+ }
876
+ if (USE_PROFILES.mathMl === true) {
877
+ addToSet(ALLOWED_TAGS, mathMl$1);
878
+ addToSet(ALLOWED_ATTR, mathMl);
879
+ addToSet(ALLOWED_ATTR, xml);
880
+ }
881
+ }
882
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
883
+ * leaking across calls when switching from function to array config */
884
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
885
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
886
+ /* Merge configuration parameters */
887
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
888
+ if (typeof cfg.ADD_TAGS === 'function') {
889
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
890
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
891
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
892
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
893
+ }
894
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
895
+ }
896
+ }
897
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
898
+ if (typeof cfg.ADD_ATTR === 'function') {
899
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
900
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
901
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
902
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
903
+ }
904
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
905
+ }
906
+ }
907
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
908
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
909
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
910
+ }
911
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
912
+ }
913
+ /* Add #text in case KEEP_CONTENT is set to true */
914
+ if (KEEP_CONTENT) {
915
+ ALLOWED_TAGS['#text'] = true;
916
+ }
917
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
918
+ if (WHOLE_DOCUMENT) {
919
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
920
+ }
921
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
922
+ if (ALLOWED_TAGS.table) {
923
+ addToSet(ALLOWED_TAGS, ['tbody']);
924
+ delete FORBID_TAGS.tbody;
925
+ }
926
+ // Re-derive the active Trusted Types policy from this configuration on
927
+ // every parse. The active policy must never be sticky closure state that
928
+ // outlives the config that set it: a caller-supplied policy left in place
929
+ // after `clearConfig()` — or after a later call that supplied none, or
930
+ // `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
931
+ // `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
932
+ // See GHSA-vxr8-fq34-vvx9.
933
+ if (cfg.TRUSTED_TYPES_POLICY) {
934
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
935
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
936
+ }
937
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
938
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
939
+ }
940
+ // A caller-supplied policy applies to this configuration only.
941
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
942
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
943
+ // Sign local variables required by `sanitize`. If the supplied policy's
944
+ // `createHTML` is circular (i.e. it calls `DOMPurify.sanitize`), this
945
+ // throws via the re-entrancy guard. Restore the previous policy first so
946
+ // the instance is not left in a poisoned state. See #1422.
947
+ try {
948
+ emptyHTML = _createTrustedHTML('');
949
+ } catch (error) {
950
+ trustedTypesPolicy = previousTrustedTypesPolicy;
951
+ throw error;
952
+ }
953
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
954
+ // Explicit opt-out for this call: perform no Trusted Types signing and
955
+ // create nothing (so a strict `trusted-types` CSP that disallows a
956
+ // `dompurify` policy can still call `sanitize` from inside its own
957
+ // policy — see #1422). Resetting to `undefined` rather than a sticky
958
+ // `null` also drops any previously retained caller policy, so it cannot
959
+ // resurface on a later call, while still allowing the next config-less
960
+ // call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
961
+ trustedTypesPolicy = undefined;
962
+ emptyHTML = '';
963
+ } else {
964
+ // No policy supplied: keep the currently active policy if one is set — a
965
+ // previously supplied policy is intentionally sticky across config-less
966
+ // calls — otherwise fall back to the instance's own internal policy,
967
+ // created at most once. (A policy supplied for a *single* call still
968
+ // lingers by design; what must not linger is a policy whose configuration
969
+ // has been torn down via `clearConfig()`, which restores the default.)
970
+ if (trustedTypesPolicy === undefined) {
971
+ trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
972
+ }
973
+ // Sign internal variables only when a policy is active. A falsy policy
974
+ // (Trusted Types unsupported, creation failed, or an explicit opt-out)
975
+ // leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
976
+ // a non-policy and throw. See #1422.
977
+ if (trustedTypesPolicy && typeof emptyHTML === 'string') {
978
+ emptyHTML = _createTrustedHTML('');
979
+ }
980
+ }
981
+ // Prevent further manipulation of configuration.
982
+ // Not available in IE8, Safari 5, etc.
983
+ if (freeze) {
984
+ freeze(cfg);
985
+ }
986
+ CONFIG = cfg;
987
+ };
988
+ /* Keep track of all possible SVG and MathML tags
989
+ * so that we can perform the namespace checks
990
+ * correctly. */
991
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
992
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
993
+ /**
994
+ * Namespace rules for an element in the SVG namespace.
995
+ *
996
+ * @param tagName the element's lowercase tag name
997
+ * @param parent the (possibly simulated) parent node
998
+ * @param parentTagName the parent's lowercase tag name
999
+ * @returns true if a spec-compliant parser could produce this element
1000
+ */
1001
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
1002
+ // The only way to switch from HTML namespace to SVG
1003
+ // is via <svg>. If it happens via any other tag, then
1004
+ // it should be killed.
1005
+ if (parent.namespaceURI === HTML_NAMESPACE) {
1006
+ return tagName === 'svg';
1007
+ }
1008
+ // The only way to switch from MathML to SVG is via <svg>
1009
+ // if the parent is either <annotation-xml> or a MathML
1010
+ // text integration point.
1011
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
1012
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
1013
+ }
1014
+ // We only allow elements that are defined in SVG
1015
+ // spec. All others are disallowed in SVG namespace.
1016
+ return Boolean(ALL_SVG_TAGS[tagName]);
1017
+ };
1018
+ /**
1019
+ * Namespace rules for an element in the MathML namespace.
1020
+ *
1021
+ * @param tagName the element's lowercase tag name
1022
+ * @param parent the (possibly simulated) parent node
1023
+ * @param parentTagName the parent's lowercase tag name
1024
+ * @returns true if a spec-compliant parser could produce this element
1025
+ */
1026
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
1027
+ // The only way to switch from HTML namespace to MathML
1028
+ // is via <math>. If it happens via any other tag, then
1029
+ // it should be killed.
1030
+ if (parent.namespaceURI === HTML_NAMESPACE) {
1031
+ return tagName === 'math';
1032
+ }
1033
+ // The only way to switch from SVG to MathML is via
1034
+ // <math> and HTML integration points
1035
+ if (parent.namespaceURI === SVG_NAMESPACE) {
1036
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
1037
+ }
1038
+ // We only allow elements that are defined in MathML
1039
+ // spec. All others are disallowed in MathML namespace.
1040
+ return Boolean(ALL_MATHML_TAGS[tagName]);
1041
+ };
1042
+ /**
1043
+ * Namespace rules for an element in the HTML namespace.
1044
+ *
1045
+ * @param tagName the element's lowercase tag name
1046
+ * @param parent the (possibly simulated) parent node
1047
+ * @param parentTagName the parent's lowercase tag name
1048
+ * @returns true if a spec-compliant parser could produce this element
1049
+ */
1050
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1051
+ // The only way to switch from SVG to HTML is via
1052
+ // HTML integration points, and from MathML to HTML
1053
+ // is via MathML text integration points
1054
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
1055
+ return false;
1056
+ }
1057
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
1058
+ return false;
1059
+ }
1060
+ // We disallow tags that are specific for MathML
1061
+ // or SVG and should never appear in HTML namespace
1062
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1063
+ };
1064
+ /**
1065
+ * @param element a DOM element whose namespace is being checked
1066
+ * @returns Return false if the element has a
1067
+ * namespace that a spec-compliant parser would never
1068
+ * return. Return true otherwise.
1069
+ */
1070
+ const _checkValidNamespace = function _checkValidNamespace(element) {
1071
+ let parent = getParentNode(element);
1072
+ // In JSDOM, if we're inside shadow DOM, then parentNode
1073
+ // can be null. We just simulate parent in this case.
1074
+ if (!parent || !parent.tagName) {
1075
+ parent = {
1076
+ namespaceURI: NAMESPACE,
1077
+ tagName: 'template'
1078
+ };
1079
+ }
1080
+ const tagName = stringToLowerCase(element.tagName);
1081
+ const parentTagName = stringToLowerCase(parent.tagName);
1082
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
1083
+ return false;
1084
+ }
1085
+ if (element.namespaceURI === SVG_NAMESPACE) {
1086
+ return _checkSvgNamespace(tagName, parent, parentTagName);
1087
+ }
1088
+ if (element.namespaceURI === MATHML_NAMESPACE) {
1089
+ return _checkMathMlNamespace(tagName, parent, parentTagName);
1090
+ }
1091
+ if (element.namespaceURI === HTML_NAMESPACE) {
1092
+ return _checkHtmlNamespace(tagName, parent, parentTagName);
1093
+ }
1094
+ // For XHTML and XML documents that support custom namespaces
1095
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
1096
+ return true;
1097
+ }
1098
+ // The code should never reach this place (this means
1099
+ // that the element somehow got namespace that is not
1100
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
1101
+ // Return false just in case.
1102
+ return false;
1103
+ };
1104
+ /**
1105
+ * _forceRemove
1106
+ *
1107
+ * @param node a DOM node
1108
+ */
1109
+ const _forceRemove = function _forceRemove(node) {
1110
+ arrayPush(DOMPurify.removed, {
1111
+ element: node
1112
+ });
1113
+ try {
1114
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
1115
+ getParentNode(node).removeChild(node);
1116
+ } catch (_) {
1117
+ /* The normal detach failed — this is reached for a parentless node
1118
+ (getParentNode() is null, so .removeChild throws). Element.prototype
1119
+ .remove() is itself a spec no-op on a parentless node, so a recorded
1120
+ "removal" would otherwise hand the caller back an intact,
1121
+ payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
1122
+ the style-with-element-child rule decided to kill). Fail closed by
1123
+ throwing — exactly as a clobbered root does at the IN_PLACE entry —
1124
+ rather than trying to "neutralize" the node via its own methods.
1125
+ Neutralizing would mean calling getAttributeNames()/removeAttribute()
1126
+ on the node, both of which a <form> root can clobber via a named child
1127
+ (and _isClobbered does not even probe getAttributeNames), so the
1128
+ neutralize step could itself be silently defeated, leaving the payload
1129
+ intact. A throw touches only the cached, clobber-safe remove() and
1130
+ getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
1131
+ to every root-kill reason. REPORT-3.
1132
+ This lives inside the catch, so it never fires for a normally-removed
1133
+ in-tree node: those have a parent, removeChild() succeeds, and the
1134
+ catch is not entered. Only a kept (parentless) root reaches here. */
1135
+ remove(node);
1136
+ if (!getParentNode(node)) {
1137
+ throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
1138
+ }
1139
+ }
1140
+ };
1141
+ /**
1142
+ * _stripAttributeNode
1143
+ *
1144
+ * Remove a single Attr node case/namespace-exactly on an attribute-teardown
1145
+ * path. Name-based removeAttribute() ASCII-lowercases its lookup key for an
1146
+ * HTML element in an HTML document and so silently misses a case-preserved
1147
+ * handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect
1148
+ * _removeAttribute() was fixed for, which a name-based call would reintroduce
1149
+ * on these IN_PLACE teardown paths. Unlike _removeAttribute this does not
1150
+ * record into DOMPurify.removed: the neutralize passes intentionally do not
1151
+ * book-keep. A clobbered/detached node falls back to best-effort name-based
1152
+ * removal.
1153
+ *
1154
+ * @param element the element to strip the attribute from
1155
+ * @param attribute the Attr node to remove
1156
+ * @param name the attribute's name, for the fallback path
1157
+ */
1158
+ const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
1159
+ try {
1160
+ removeAttributeNode(element, attribute);
1161
+ } catch (_) {
1162
+ try {
1163
+ element.removeAttribute(name);
1164
+ } catch (_) {}
1165
+ }
1166
+ };
1167
+ /**
1168
+ * _neutralizeRoot
1169
+ *
1170
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
1171
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
1172
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
1173
+ * parentless guard throws, or any other re-entrant engine mutation — would
1174
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
1175
+ * after the abort point still carrying its handlers. There is no safe way
1176
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
1177
+ * remove every child and every attribute, then let the caller's catch see
1178
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
1179
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
1180
+ *
1181
+ * @param root the in-place root to empty
1182
+ */
1183
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1184
+ /* Strip every disallowed attribute (on* handlers included) off the whole
1185
+ subtree BEFORE detaching anything. Detaching first would hand back
1186
+ handler-bearing originals (e.g. an already-loading `<img onerror>`)
1187
+ whose queued resource event still fires in page scope after we throw.
1188
+ Clobber-safe reads; a doomed clobbered node's own attributes are
1189
+ irrelevant while its non-clobbered descendants are reached and scrubbed. */
1190
+ _neutralizeSubtree(root);
1191
+ const childNodes = getChildNodes(root);
1192
+ if (childNodes) {
1193
+ const snapshot = [];
1194
+ arrayForEach(childNodes, child => {
1195
+ arrayPush(snapshot, child);
1196
+ });
1197
+ arrayForEach(snapshot, child => {
1198
+ try {
1199
+ remove(child);
1200
+ } catch (_) {
1201
+ /* Best-effort teardown; a still-attached child is handled below */
1202
+ }
1203
+ });
1204
+ }
1205
+ const attributes = getAttributes(root);
1206
+ if (attributes) {
1207
+ for (let i = attributes.length - 1; i >= 0; --i) {
1208
+ const attribute = attributes[i];
1209
+ const name = attribute && attribute.name;
1210
+ if (typeof name === 'string') {
1211
+ _stripAttributeNode(root, attribute, name);
1212
+ }
1213
+ }
1214
+ }
1215
+ };
1216
+ /**
1217
+ * _removeAttribute
1218
+ *
1219
+ * Name-based getAttributeNode()/removeAttribute() ASCII-lowercase their
1220
+ * lookup key for HTML elements in an HTML document, so they silently miss an
1221
+ * attribute whose stored qualified name still contains uppercase ASCII
1222
+ * letters. That happens when the node came from a case-preserving source
1223
+ * (an XML/XHTML document imported via importNode(), or createAttributeNS()),
1224
+ * where e.g. `ONERROR` survives the walk: the policy check lowercases to
1225
+ * `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up
1226
+ * `onerror` and finds nothing. Remove the exact Attr node instead, which is
1227
+ * case- and namespace-exact, and fall back to name-based removal only when
1228
+ * the caller could not supply the node.
1229
+ *
1230
+ * @param name an Attribute name
1231
+ * @param element a DOM node
1232
+ * @param attr the exact Attr node to remove, when the caller has it
1233
+ */
1234
+ const _removeAttribute = function _removeAttribute(name, element, attr) {
1235
+ if (!attr) {
1236
+ try {
1237
+ attr = element.getAttributeNode(name);
1238
+ } catch (_) {
1239
+ attr = null;
1240
+ }
1241
+ }
1242
+ arrayPush(DOMPurify.removed, {
1243
+ attribute: attr || null,
1244
+ from: element
1245
+ });
1246
+ try {
1247
+ if (attr) {
1248
+ removeAttributeNode(element, attr);
1249
+ } else {
1250
+ element.removeAttribute(name);
1251
+ }
1252
+ } catch (_) {
1253
+ /* Clobbered or already-detached node - best-effort fall back to a
1254
+ name-based removal so the "is" handling below still runs. Note this
1255
+ fallback ASCII-lowercases its lookup key in an HTML document and so
1256
+ cannot reach a case-preserved attribute name; the cached
1257
+ removeAttributeNode() above is what removes those, and a clobbered
1258
+ form is already removed wholesale by _isClobbered() before reaching
1259
+ here. */
1260
+ try {
1261
+ element.removeAttribute(name);
1262
+ } catch (_) {}
1263
+ }
1264
+ // We void attribute values for unremovable "is" attributes
1265
+ if (name === 'is') {
1266
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
1267
+ try {
1268
+ _forceRemove(element);
1269
+ } catch (_) {}
1270
+ } else {
1271
+ try {
1272
+ element.setAttribute(name, '');
1273
+ } catch (_) {}
1274
+ }
1275
+ }
1276
+ };
1277
+ /**
1278
+ * _stripDisallowedAttributes
1279
+ *
1280
+ * Removes every attribute the active configuration does not allow from a
1281
+ * single element, using the same allowlist as the main attribute pass (so
1282
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
1283
+ * neutralise nodes that are being discarded from an in-place tree.
1284
+ *
1285
+ * @param element the element to strip
1286
+ */
1287
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1288
+ const attributes = getAttributes(element);
1289
+ if (!attributes) {
1290
+ return;
1291
+ }
1292
+ for (let i = attributes.length - 1; i >= 0; --i) {
1293
+ const attribute = attributes[i];
1294
+ const name = attribute && attribute.name;
1295
+ if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
1296
+ continue;
1297
+ }
1298
+ _stripAttributeNode(element, attribute, name);
1299
+ }
1300
+ };
1301
+ /**
1302
+ * _neutralizeSubtree
1303
+ *
1304
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
1305
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
1306
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
1307
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
1308
+ * those dropped nodes are detached from the caller's LIVE tree but a
1309
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
1310
+ * loading) keeps its queued resource event, which fires in page scope after
1311
+ * sanitize returns. This walks a removed subtree and strips every attribute
1312
+ * the active configuration does not allow — so `on*` handlers are cancelled
1313
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
1314
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
1315
+ * queued event can fire. Hook-free by design: these nodes leave the output,
1316
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
1317
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
1318
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
1319
+ * the `<img>`, are reached and scrubbed).
1320
+ *
1321
+ * @param root the root of a removed subtree to neutralise
1322
+ */
1323
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1324
+ const stack = [root];
1325
+ while (stack.length > 0) {
1326
+ const node = stack.pop();
1327
+ const nodeType = _readNodeType(node);
1328
+ if (nodeType === NODE_TYPE.element) {
1329
+ _stripDisallowedAttributes(node);
1330
+ }
1331
+ const childNodes = getChildNodes(node);
1332
+ if (childNodes) {
1333
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1334
+ stack.push(childNodes[i]);
1335
+ }
1336
+ }
1337
+ }
1338
+ };
1339
+ /**
1340
+ * _neutralizePatchLinkage
1341
+ *
1342
+ * IN_PLACE entry pre-pass (declarative-partial-updates / streaming
1343
+ * hardening, https://github.com/WICG/declarative-partial-updates).
1344
+ *
1345
+ * The main walk strips patch linkage (`for`/`patchsrc`) and removes range
1346
+ * markers (PIs / markup comments) node-by-node, in document order, AS it
1347
+ * reaches each node. On a live in-place root that leaves a window: from the
1348
+ * moment the root is connected until the walk arrives at a given node, that
1349
+ * node's linkage is live. A patch applied on connection/stream can fire as
1350
+ * a microtask during the walk and inject or teleport an unsanitized DOM
1351
+ * range into a region the iterator has already passed and will not revisit,
1352
+ * so the post-return "tree is sanitized" contract is violated. Sweep the
1353
+ * whole tree once up front and sever every linkage before the walk begins,
1354
+ * closing that window.
1355
+ *
1356
+ * This CANNOT undo a patch that already fired before sanitize ran — that is
1357
+ * the irreducible "do not IN_PLACE a live-connected attacker tree" caveat —
1358
+ * but it closes everything from sanitize-start onward. Gated on SAFE_FOR_XML
1359
+ * to group with the rest of the declarative-partial-updates handling and
1360
+ * stay overridable, consistent with the codebase.
1361
+ *
1362
+ * Clobber-safe traversal (cached childNodes getter); per-node try/catch so a
1363
+ * clobbered root cannot defeat the sweep of its non-clobbered descendants.
1364
+ *
1365
+ * NOTE (pending real-Chrome confirmation, see test/declarative-patch-probe
1366
+ * .html Q1): this mirrors the existing policy of keeping `for` on
1367
+ * <label>/<output>. If the shipping feature can drive a patch through a
1368
+ * surviving `for`-on-label/output + `id` pair, this pre-pass and the
1369
+ * attribute check at _isBasicCustomElement's caller must additionally drop
1370
+ * that pair on the IN_PLACE path. Left as-is until the taxonomy is verified.
1371
+ *
1372
+ * @param root the in-place root to sweep
1373
+ */
1374
+ /**
1375
+ * Central policy for declarative-partial-updates patch-linkage attributes,
1376
+ * shared by the _neutralizePatchLinkage pre-pass and _isValidAttribute so
1377
+ * the two sites cannot drift: `patchsrc` always links, `for` links
1378
+ * everywhere except on <label>/<output>, and the whole policy is gated on
1379
+ * SAFE_FOR_XML (see the rationale block in _isValidAttribute).
1380
+ *
1381
+ * @param lcName the transformCaseFunc'd attribute name
1382
+ * @param lcTag the transformCaseFunc'd tag name of the carrying element
1383
+ * @return true if the attribute is patch linkage and must be dropped
1384
+ */
1385
+ const _isPatchLinkageAttribute = function _isPatchLinkageAttribute(lcName, lcTag) {
1386
+ if (!SAFE_FOR_XML) {
1387
+ return false;
1388
+ }
1389
+ if (lcName === 'patchsrc') {
1390
+ return true;
1391
+ }
1392
+ return lcName === 'for' && lcTag !== 'label' && lcTag !== 'output';
1393
+ };
1394
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
1395
+ if (!SAFE_FOR_XML) {
1396
+ return;
1397
+ }
1398
+ const stack = [root];
1399
+ while (stack.length > 0) {
1400
+ const node = stack.pop();
1401
+ const nodeType = _readNodeType(node);
1402
+ /* Remove range markers (the target side of a patch linkage): every
1403
+ processing instruction, and any markup-bearing comment. */
1404
+ if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
1405
+ try {
1406
+ remove(node);
1407
+ } catch (_) {
1408
+ /* Best-effort */
1409
+ }
1410
+ continue;
1411
+ }
1412
+ /* Strip patch-source attributes (the source side) off elements. */
1413
+ if (nodeType === NODE_TYPE.element) {
1414
+ const element = node;
1415
+ const lcTag = transformCaseFunc(_readNodeName(node));
1416
+ try {
1417
+ if (element.hasAttribute && element.hasAttribute('patchsrc')) {
1418
+ element.removeAttribute('patchsrc');
1419
+ }
1420
+ if (element.hasAttribute && element.hasAttribute('for') && _isPatchLinkageAttribute('for', lcTag)) {
1421
+ element.removeAttribute('for');
1422
+ }
1423
+ } catch (_) {
1424
+ /* Clobbered removeAttribute/hasAttribute on a doomed node — ignore */
1425
+ }
1426
+ }
1427
+ const childNodes = getChildNodes(node);
1428
+ if (childNodes) {
1429
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1430
+ stack.push(childNodes[i]);
1431
+ }
1432
+ }
1433
+ }
1434
+ };
1435
+ /**
1436
+ * _initDocument
1437
+ *
1438
+ * @param dirty - a string of dirty markup
1439
+ * @return a DOM, filled with the dirty markup
1440
+ */
1441
+ const _initDocument = function _initDocument(dirty) {
1442
+ /* Create a HTML document */
1443
+ let doc = null;
1444
+ let leadingWhitespace = null;
1445
+ if (FORCE_BODY) {
1446
+ dirty = '<remove></remove>' + dirty;
1447
+ } else {
1448
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
1449
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
1450
+ leadingWhitespace = matches && matches[0];
1451
+ }
1452
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
1453
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
1454
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
1455
+ }
1456
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
1457
+ /*
1458
+ * Use the DOMParser API by default, fallback later if needs be
1459
+ * DOMParser not work for svg when has multiple root element.
1460
+ */
1461
+ if (NAMESPACE === HTML_NAMESPACE) {
1462
+ try {
1463
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
1464
+ } catch (_) {}
1465
+ }
1466
+ /* Use createHTMLDocument in case DOMParser is not available */
1467
+ if (!doc || !doc.documentElement) {
1468
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
1469
+ try {
1470
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
1471
+ } catch (_) {
1472
+ // Syntax error if dirtyPayload is invalid xml
1473
+ }
1474
+ }
1475
+ const body = doc.body || doc.documentElement;
1476
+ if (dirty && leadingWhitespace) {
1477
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1478
+ }
1479
+ /* Work on whole document or just its body */
1480
+ if (NAMESPACE === HTML_NAMESPACE) {
1481
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
1482
+ }
1483
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
1484
+ };
1485
+ /**
1486
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
1487
+ *
1488
+ * @param root The root element or node to start traversing on.
1489
+ * @return The created NodeIterator
1490
+ */
1491
+ const _createNodeIterator = function _createNodeIterator(root) {
1492
+ /* Read ownerDocument through the cached Node.prototype getter, never the
1493
+ direct property. HTMLFormElement has [LegacyOverrideBuiltIns], so a
1494
+ clobbering child (<input name="ownerDocument"> or a form-associated
1495
+ external input) shadows the prototype getter and makes a direct read
1496
+ return that <input>. createNodeIterator.call(<input>, ...) then throws
1497
+ "Illegal invocation", and on the IN_PLACE path that throw lands before
1498
+ the walk's fail-closed barrier - leaving the caller's live tree, with
1499
+ any already-armed handler in it, un-neutralized. The cached getter
1500
+ returns the real Document regardless of the clobber. */
1501
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1502
+ return createNodeIterator.call(doc || root, root,
1503
+ // eslint-disable-next-line no-bitwise
1504
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1505
+ };
1506
+ /**
1507
+ * Replace template expression syntax (mustache, ERB, template
1508
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1509
+ * sites. Order matters: mustache, then ERB, then template literal.
1510
+ *
1511
+ * @param value the string to scrub
1512
+ * @returns the scrubbed string
1513
+ */
1514
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1515
+ value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
1516
+ value = stringReplace(value, ERB_EXPR$1, ' ');
1517
+ value = stringReplace(value, TMPLIT_EXPR$1, ' ');
1518
+ return value;
1519
+ };
1520
+ /**
1521
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1522
+ * character data of an element subtree. Used as the final safety net for
1523
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
1524
+ * which only form after text-node normalization (e.g. fragments split across
1525
+ * stripped elements) cannot survive into a template-evaluating framework.
1526
+ *
1527
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
1528
+ * in place rather than round-tripping through innerHTML. This preserves
1529
+ * descendant node references (important for IN_PLACE callers), avoids a
1530
+ * serialize/reparse cycle, and reads literal character data — which means
1531
+ * `<%...%>` in text content matches the ERB regex against its real bytes
1532
+ * instead of the HTML-entity-escaped form innerHTML would produce.
1533
+ *
1534
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
1535
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
1536
+ *
1537
+ * @param node The root element whose character data should be scrubbed.
1538
+ */
1539
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1540
+ var _node$querySelectorAl;
1541
+ node.normalize();
1542
+ /* Clobber-safe ownerDocument read, same reasoning as _createNodeIterator:
1543
+ under SAFE_FOR_TEMPLATES this runs on the live IN_PLACE root, which may
1544
+ carry a form-named-getter override of ownerDocument. */
1545
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1546
+ const walker = createNodeIterator.call(doc || node, node,
1547
+ // eslint-disable-next-line no-bitwise
1548
+ NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1549
+ let currentNode = walker.nextNode();
1550
+ while (currentNode) {
1551
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1552
+ currentNode = walker.nextNode();
1553
+ }
1554
+ // NodeIterator does not descend into <template>.content per the DOM spec,
1555
+ // so we must explicitly recurse into each template's content fragment,
1556
+ // mirroring the approach used by _sanitizeShadowDOM.
1557
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
1558
+ if (templates) {
1559
+ arrayForEach(templates, tmpl => {
1560
+ if (_isDocumentFragment(tmpl.content)) {
1561
+ _scrubTemplateExpressions2(tmpl.content);
1562
+ }
1563
+ });
1564
+ }
1565
+ };
1566
+ /**
1567
+ * _isClobbered
1568
+ *
1569
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
1570
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
1571
+ * `name` attribute matching a prototype property shadows that property
1572
+ * on direct reads. We use this check at the IN_PLACE entry-point and
1573
+ * during attribute sanitization to refuse clobbered forms.
1574
+ *
1575
+ * @param element element to check for clobbering attacks
1576
+ * @return true if clobbered, false if safe
1577
+ */
1578
+ const _isClobbered = function _isClobbered(element) {
1579
+ // Realm-independent tag-name probe. If we can't determine the tag
1580
+ // name at all, we can't reason about clobbering — return false
1581
+ // (the caller's other defences still apply).
1582
+ const realTagName = getNodeName ? getNodeName(element) : null;
1583
+ if (typeof realTagName !== 'string') {
1584
+ return false;
1585
+ }
1586
+ if (transformCaseFunc(realTagName) !== 'form') {
1587
+ return false;
1588
+ }
1589
+ return typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' ||
1590
+ // Realm-safe NamedNodeMap detection: equality against the cached
1591
+ // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
1592
+ // makes the direct read diverge from the cached read; a clean form
1593
+ // (same-realm OR foreign-realm) has both reads pointing at the same
1594
+ // canonical NamedNodeMap.
1595
+ element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' ||
1596
+ // A form descendant named "removeAttributeNode" or "getAttributeNode"
1597
+ // shadows these Attr-node methods via [LegacyOverrideBuiltIns].
1598
+ // _removeAttribute() / _stripAttributeNode() reach for
1599
+ // element.removeAttributeNode(attr) first; when it is shadowed the call
1600
+ // throws and the name-based fallback element.removeAttribute(name)
1601
+ // ASCII-lowercases its lookup key in an HTML document, silently missing
1602
+ // a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
1603
+ // that reached the sanitizer through an XML/XHTML parse). Flag the form
1604
+ // so it is removed wholesale, exactly as for the other shadowed methods.
1605
+ typeof element.removeAttributeNode !== 'function' || typeof element.getAttributeNode !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function' ||
1606
+ // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1607
+ // returns the integer 1 for any Element regardless of realm; direct
1608
+ // read on a clobbered form (e.g. <input name="nodeType">) returns
1609
+ // the named child element. Cheap addition — nodeType is read from
1610
+ // an internal slot, no serialization cost — and removes a residual
1611
+ // clobbering surface used by several mXSS / PI / comment branches
1612
+ // in _sanitizeElements that compare currentNode.nodeType directly.
1613
+ element.nodeType !== getNodeType(element) ||
1614
+ // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
1615
+ // "childNodes" shadows the prototype getter. Direct reads of
1616
+ // form.childNodes from a clobbered form return the named child
1617
+ // instead of the real NodeList, so any walk that reads it directly
1618
+ // skips the form's real children. Compare the direct read to the
1619
+ // cached Node.prototype getter — when the form's named-property
1620
+ // getter intercepts the read, the two values differ and we flag
1621
+ // the form. This catches every clobbering child type (input,
1622
+ // select, etc.) regardless of whether the named child happens to
1623
+ // carry a numeric .length, which a typeof-based probe would miss
1624
+ // (e.g. HTMLSelectElement.length is a defined unsigned-long).
1625
+ element.childNodes !== getChildNodes(element);
1626
+ };
1627
+ /**
1628
+ * Checks whether the given value is a DocumentFragment from any realm.
1629
+ *
1630
+ * The realm-independent replacement reads `nodeType` through the cached
1631
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
1632
+ * constant (11). nodeType is a numeric value resolved from the node's
1633
+ * internal slot, identical across realms for the same kind of node.
1634
+ *
1635
+ * @param value object to check
1636
+ * @return true if value is a DocumentFragment-shaped node from any realm
1637
+ */
1638
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1639
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1640
+ return false;
1641
+ }
1642
+ try {
1643
+ return getNodeType(value) === NODE_TYPE.documentFragment;
1644
+ } catch (_) {
1645
+ return false;
1646
+ }
1647
+ };
1648
+ /**
1649
+ * Checks whether the given object is a DOM node, including nodes that
1650
+ * originate from a different window/realm (e.g. an iframe's
1651
+ * contentDocument). The previous `value instanceof Node` check was
1652
+ * realm-bound: nodes from a different window failed it, causing
1653
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
1654
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
1655
+ *
1656
+ * @param value object to check whether it's a DOM node
1657
+ * @return true if value is a DOM node from any realm
1658
+ */
1659
+ const _isNode = function _isNode(value) {
1660
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1661
+ return false;
1662
+ }
1663
+ try {
1664
+ return typeof getNodeType(value) === 'number';
1665
+ } catch (_) {
1666
+ return false;
1667
+ }
1668
+ };
1669
+ function _executeHooks(hooks, currentNode, data) {
1670
+ if (hooks.length === 0) {
1671
+ return;
1672
+ }
1673
+ arrayForEach(hooks, hook => {
1674
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1675
+ });
1676
+ }
1677
+ /**
1678
+ * Structural-threat checks that condemn a node regardless of the
1679
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1680
+ * processing instructions, markup-bearing comments. Pure predicate;
1681
+ * the caller removes. Check order is load-bearing.
1682
+ *
1683
+ * @param currentNode the node to inspect
1684
+ * @param tagName the node's transformCaseFunc'd tag name
1685
+ * @return true if the node must be removed
1686
+ */
1687
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1688
+ /* Detect mXSS attempts abusing namespace confusion */
1689
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
1690
+ return true;
1691
+ }
1692
+ /* Remove rawtext/literal-text elements whose literal serialization
1693
+ re-opens markup on an HTML reparse - shapes (a) and (b) documented at
1694
+ LITERAL_TEXT_ELEMENTS. Both are invisible to rule 1 above (which
1695
+ self-disables once there is an element child, and whose second probe
1696
+ reads the innerHTML an XML/XHTML document serializes escaped), which
1697
+ is why both probes here read textContent instead. Previously only
1698
+ `style`-with-element-child was covered; every element in
1699
+ LITERAL_TEXT_ELEMENTS shares this literal serialization and is
1700
+ equally affected. */
1701
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && LITERAL_TEXT_ELEMENTS[tagName] && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === 'string' && regExpTest(LITERAL_TEXT_CLOSE[tagName], currentNode.textContent))) {
1702
+ return true;
1703
+ }
1704
+ /* Remove any occurrence of processing instructions */
1705
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
1706
+ return true;
1707
+ }
1708
+ /* Remove any kind of possibly harmful comments */
1709
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
1710
+ return true;
1711
+ }
1712
+ return false;
1713
+ };
1714
+ /**
1715
+ * Evaluate a CUSTOM_ELEMENT_HANDLING check (a RegExp or a predicate
1716
+ * function, per the validation in _parseConfig) against a name.
1717
+ * Additional arguments are forwarded to predicate functions - the
1718
+ * attributeNameCheck predicate receives the tag name as its second
1719
+ * argument. A null/absent check never matches.
1720
+ *
1721
+ * @param check the configured tagNameCheck / attributeNameCheck value
1722
+ * @param name the name to test
1723
+ * @param args extra arguments forwarded to a predicate function
1724
+ * @return true if the check matches the name
1725
+ */
1726
+ const _matchesNameCheck = function _matchesNameCheck(check, name) {
1727
+ if (check instanceof RegExp) {
1728
+ return regExpTest(check, name);
1729
+ }
1730
+ if (check instanceof Function) {
1731
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1732
+ args[_key - 2] = arguments[_key];
1733
+ }
1734
+ return Boolean(check(name, ...args));
1735
+ }
1736
+ return false;
1737
+ };
1738
+ /**
1739
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1740
+ * allowed custom elements (false return exits _sanitizeElements
1741
+ * early - the namespace and fallback-tag removal checks are
1742
+ * intentionally skipped for kept custom elements), else hoist
1743
+ * content per KEEP_CONTENT and remove.
1744
+ *
1745
+ * A kept custom element is the ONLY case in which this function
1746
+ * returns false, so the caller uses that return value to run the
1747
+ * afterSanitizeElements hook on the kept element and keep the
1748
+ * element-hook lifecycle consistent with normal allowlisted
1749
+ * elements (GHSA-c2j3-45gr-mqc4).
1750
+ *
1751
+ * @param currentNode the disallowed node
1752
+ * @param tagName the node's transformCaseFunc'd tag name
1753
+ * @return true if the node was removed, false if kept
1754
+ */
1755
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1756
+ /* Check if we have a custom element to handle */
1757
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1758
+ return false;
1759
+ }
1760
+ /* Keep content except for bad-listed elements.
1761
+ Use the cached prototype getters exclusively — the previous code
1762
+ had `|| currentNode.parentNode` / `|| currentNode.childNodes`
1763
+ fallbacks, but the cached getters always return the canonical
1764
+ value (or null for a real parent-less node), so the fallback
1765
+ path was dead in safe cases and a clobbering surface in unsafe
1766
+ ones. Falsy cached results stay falsy; the `if (childNodes &&
1767
+ parentNode)` check already gates correctly. */
1768
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1769
+ const parentNode = getParentNode(currentNode);
1770
+ const childNodes = getChildNodes(currentNode);
1771
+ if (childNodes && parentNode) {
1772
+ const childCount = childNodes.length;
1773
+ /* Hoist by moving each child up one level rather than deep-cloning
1774
+ it. Moving transfers every descendant exactly once, so a chain of
1775
+ nested disallowed elements costs O(n) instead of the O(n^2) that
1776
+ re-cloning the shrinking subtree at each level produced; it also
1777
+ empties the removed original, so `DOMPurify.removed` no longer
1778
+ pins whole subtrees. Moving preserves the in-place guarantee too:
1779
+ an original carrying already-queued resource events (`<img
1780
+ onerror>`, `<video>`/`<audio>` error, lazy/`onload`, …) is
1781
+ relocated and sanitised rather than left detached but still armed.
1782
+ The sole case that must clone is removing the walk root itself.
1783
+ The result is serialised from the root's subtree, so a restrictive
1784
+ ALLOWED_TAGS that strips the root (`body` on the string path) must
1785
+ leave the content inside it, which only cloning does. In IN_PLACE
1786
+ the root is pre-validated as an allowed tag and so is never removed
1787
+ here, so that path always takes the move branch.
1788
+ `childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
1789
+ valid whether we move (drops the trailing entry) or clone (leaves
1790
+ the list intact). */
1791
+ for (let i = childCount - 1; i >= 0; --i) {
1792
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
1793
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1794
+ }
1795
+ }
1796
+ }
1797
+ _forceRemove(currentNode);
1798
+ return true;
1799
+ };
1800
+ /**
1801
+ * Fork a hook-mutable allowlist off its shared binding the first time a
1802
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
1803
+ * hook cannot widen the per-instance default or the setConfig binding by
1804
+ * reference and leak past the call. Returns the set unchanged once it is
1805
+ * already call-local, so repeated calls across elements are idempotent.
1806
+ *
1807
+ * @param hookList the uponSanitize* hook array for this event
1808
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
1809
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
1810
+ * @param setConfigSet the captured setConfig() binding, or null
1811
+ * @return a call-local clone if a hook is present and set is still shared,
1812
+ * else set unchanged
1813
+ */
1814
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1815
+ if (hookList.length === 0) {
1816
+ return set;
1817
+ }
1818
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
1819
+ };
1820
+ /**
1821
+ * Shared guard for a node that a hook has detached from the walk tree,
1822
+ * used after each element-hook site in _sanitizeElements. Detaching is a
1823
+ * long-standing user pattern (issue #469; draw.io-style foreignObject
1824
+ * filtering). Per the cached, unclobberable parentNode getter the node is
1825
+ * genuinely out of the tree, so it can reach neither the serialized
1826
+ * output nor an IN_PLACE live tree; treat it as removed and stop
1827
+ * processing it. Without this guard, the unsafe-node / namespace checks
1828
+ * would call _forceRemove on a parentless node and hit the REPORT-3
1829
+ * fail-closed throw — which exists for nodes DOMPurify wants gone but
1830
+ * *cannot* detach (clobbered / parentless roots), the opposite of a node
1831
+ * that is already safely gone. The walk root is exempt: a detached
1832
+ * IN_PLACE root is legitimate input and must still be fully sanitized,
1833
+ * and a kill-decision on it must keep hitting the REPORT-3 throw.
1834
+ *
1835
+ * Nodes detached by hooks stay the hook's responsibility for placement:
1836
+ * they are not recorded in DOMPurify.removed, so the post-walk IN_PLACE
1837
+ * pass (which iterates DOMPurify.removed) does not reach them. But a
1838
+ * hook-detached subtree can still hold a queued resource-event handler -
1839
+ * e.g. an <img onload> that began loading when the caller built the live
1840
+ * tree - which fires in page scope after sanitize returns even though the
1841
+ * handler never reached the returned tree. That is the audit-5 F1 hazard,
1842
+ * and the documented node.remove() hook pattern walks straight into it.
1843
+ * So on the IN_PLACE path we neutralize the detached subtree inline,
1844
+ * stripping its non-allow-listed attributes before returning, exactly as
1845
+ * the post-walk pass does for _forceRemove'd subtrees.
1846
+ *
1847
+ * @param currentNode the node a hook may have detached
1848
+ * @param root the current walk root
1849
+ * @return true if the node is detached and now handled, false otherwise
1850
+ */
1851
+ const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
1852
+ if (currentNode === root || getParentNode(currentNode) !== null) {
1853
+ return false;
1854
+ }
1855
+ if (IN_PLACE) {
1856
+ _neutralizeSubtree(currentNode);
1857
+ }
1858
+ return true;
1859
+ };
1860
+ /**
1861
+ * _sanitizeElements
1862
+ *
1863
+ * @protect nodeName
1864
+ * @protect textContent
1865
+ * @protect removeChild
1866
+ * @param currentNode to check for permission to exist
1867
+ * @return true if node was killed, false if left alive
1868
+ */
1869
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1870
+ /* Execute a hook if present */
1871
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1872
+ /* A hook may have detached the node - treat it as removed (see
1873
+ _handleHookDetachedNode for the full rationale). */
1874
+ if (_handleHookDetachedNode(currentNode, root)) {
1875
+ return true;
1876
+ }
1877
+ /* Check if element is clobbered or can clobber */
1878
+ if (_isClobbered(currentNode)) {
1879
+ _forceRemove(currentNode);
1880
+ return true;
1881
+ }
1882
+ /* Now let's check the element's type and name */
1883
+ const tagName = transformCaseFunc(_readNodeName(currentNode));
1884
+ /* Close the pre-walk clone-guard's timing gap: an uponSanitizeElement
1885
+ hook may have been installed after that guard sampled the hook arrays
1886
+ (e.g. lazily from beforeSanitizeElements), leaving ALLOWED_TAGS still
1887
+ aliasing a shared binding that a widening hook would mutate by
1888
+ reference. Fork it before exposing it to the hook. */
1889
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
1890
+ /* Execute a hook if present */
1891
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
1892
+ tagName,
1893
+ allowedTags: ALLOWED_TAGS
1894
+ });
1895
+ /* The uponSanitizeElement hook may have detached the node, exactly as
1896
+ above (see _handleHookDetachedNode for the full rationale). */
1897
+ if (_handleHookDetachedNode(currentNode, root)) {
1898
+ return true;
1899
+ }
1900
+ /* Remove mXSS vectors, processing instructions and risky comments */
1901
+ if (_isUnsafeNode(currentNode, tagName)) {
1902
+ _forceRemove(currentNode);
1903
+ return true;
1904
+ }
1905
+ /* Remove element if anything forbids its presence */
1906
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1907
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
1908
+ /* A false return means the node is a custom element kept via
1909
+ CUSTOM_ELEMENT_HANDLING - the only keep path through
1910
+ _sanitizeDisallowedNode. Run afterSanitizeElements on it so the
1911
+ element-hook lifecycle matches normal allowlisted elements: a
1912
+ security policy applied in this hook (e.g. stripping an attribute
1913
+ from every surviving element) must not silently skip kept custom
1914
+ elements (GHSA-c2j3-45gr-mqc4). This mirrors the normal-element
1915
+ tail below - the hook runs, then the walker's subsequent
1916
+ _sanitizeAttributes pass sanitizes the element's attributes. The
1917
+ deliberately skipped namespace and fallback-tag removal checks stay
1918
+ skipped; they are removal decisions, not the hook contract. */
1919
+ if (removed === false) {
1920
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1921
+ }
1922
+ return removed;
1923
+ }
1924
+ /* Check whether element has a valid namespace.
1925
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
1926
+ nodeType getter rather than `instanceof Element`, which is realm-
1927
+ bound and short-circuits to false for any node minted in a different
1928
+ realm — letting a foreign-realm element with a forbidden namespace
1929
+ slip past the namespace check entirely. */
1930
+ const nt = _readNodeType(currentNode);
1931
+ if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
1932
+ _forceRemove(currentNode);
1933
+ return true;
1934
+ }
1935
+ /* Make sure that older browsers don't get fallback-tag mXSS */
1936
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
1937
+ _forceRemove(currentNode);
1938
+ return true;
1939
+ }
1940
+ /* Sanitize element content to be template-safe */
1941
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1942
+ /* Get the element's text content */
1943
+ const content = _stripTemplateExpressions(currentNode.textContent);
1944
+ if (currentNode.textContent !== content) {
1945
+ arrayPush(DOMPurify.removed, {
1946
+ element: currentNode.cloneNode()
1947
+ });
1948
+ currentNode.textContent = content;
1949
+ }
1950
+ }
1951
+ /* Execute a hook if present */
1952
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1953
+ return false;
1954
+ };
1955
+ /**
1956
+ * _isValidAttribute
1957
+ *
1958
+ * @param lcTag Lowercase tag name of containing element.
1959
+ * @param lcName Lowercase attribute name.
1960
+ * @param value Attribute value.
1961
+ * @return Returns true if `value` is valid, otherwise false.
1962
+ */
1963
+ // eslint-disable-next-line complexity
1964
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1965
+ /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
1966
+ if (FORBID_ATTR[lcName]) {
1967
+ return false;
1968
+ }
1969
+ /* Reject declarative-partial-updates patch-linkage attributes
1970
+ (https://github.com/WICG/declarative-partial-updates).
1971
+ Empirical note (Chrome 150, verified — see
1972
+ test/declarative-patch-probe-v3.html): expansion is NOT applied after
1973
+ sanitization. For the string path it fires during sanitize()'s own
1974
+ parse, so the walk sees and sanitizes the fully materialized expanded
1975
+ tree — teleports into MathML/SVG integration points included; a
1976
+ weaponized `<template for>`->`<img onerror>` comes back with the handler
1977
+ stripped. For the IN_PLACE path it fires on connection, before the walk.
1978
+ Either way DOMPurify is NOT blind to the patch.
1979
+ This removal is therefore defense-in-depth rather than the sole barrier:
1980
+ it prevents live linkage from surviving into the OUTPUT and re-expanding
1981
+ in the caller's context, and keeps behaviour deterministic if a future
1982
+ engine defers expansion. `for` is legitimate only on <label>/<output>;
1983
+ anywhere else (notably <template for>) it links the element to a patch
1984
+ target and teleports or removes an arbitrary DOM range by id/marker name.
1985
+ `patchsrc` fetches remote markup and is treated as a script-loading
1986
+ mechanism (CSP). Gated on SAFE_FOR_XML so the removal groups with the
1987
+ other structural-threat checks and stays overridable, consistent with
1988
+ the rest of the codebase. PI range markers are already removed by
1989
+ _isUnsafeNode. */
1990
+ if (_isPatchLinkageAttribute(lcName, lcTag)) {
1991
+ return false;
1992
+ }
1993
+ /* Make sure attribute cannot clobber */
1994
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1995
+ return false;
1996
+ }
1997
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1998
+ /* Allow valid data-* attributes: At least one character after "-"
1999
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
2000
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
2001
+ We don't need to check the value; it's always URI safe. */
2002
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) {
2003
+ return true;
2004
+ }
2005
+ /* Allow valid aria-* attributes, the value is always URI safe */
2006
+ if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) {
2007
+ return true;
2008
+ }
2009
+ /* A name outside the allowlist is acceptable on custom-element terms
2010
+ only. The value checks below are intentionally skipped in that case:
2011
+ if the user supplied a tagNameCheck we also allow derived custom
2012
+ elements using the same test, and attributes passing the configured
2013
+ attributeNameCheck are allowed as custom elements define these at
2014
+ their own discretion. */
2015
+ if (!nameIsPermitted) {
2016
+ return (
2017
+ // Condition a) covers a basically valid custom element tag name whose
2018
+ // tag passes the configured tagNameCheck and whose attribute name
2019
+ // passes the configured attributeNameCheck ...
2020
+ _isBasicCustomElement(lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName, lcTag) ||
2021
+ // Condition b) covers an `is` attribute whose value passes the
2022
+ // configured tagNameCheck while customized built-in elements are
2023
+ // allowed.
2024
+ lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)
2025
+ );
2026
+ }
2027
+ /* Check value is safe. First, is attr inert? If so, is safe */
2028
+ if (URI_SAFE_ATTRIBUTES[lcName]) {
2029
+ return true;
2030
+ }
2031
+ /* Check no script, data or unknown possibly unsafe URI
2032
+ unless we know URI values are safe for that attribute */
2033
+ if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) {
2034
+ return true;
2035
+ }
2036
+ /* Keep image data URIs alive if src/xlink:href is allowed */
2037
+ /* Further prevent gadget XSS for dynamically built script tags */
2038
+ if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) {
2039
+ return true;
2040
+ }
2041
+ /* Allow unknown protocols: This provides support for links that
2042
+ are handled by protocol handlers which may be unknown ahead of
2043
+ time, e.g. fb:, spotify: */
2044
+ if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) {
2045
+ return true;
2046
+ }
2047
+ /* Only an empty (binary) value remains safe at this point;
2048
+ anything else is presumed unsafe, do not add it back */
2049
+ return !value;
2050
+ };
2051
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
2052
+ * never be treated as basic custom elements even when a permissive
2053
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
2054
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
2055
+ /**
2056
+ * _isBasicCustomElement
2057
+ * checks if at least one dash is included in tagName, and it's not the first char
2058
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
2059
+ *
2060
+ * @param tagName name of the tag of the node to sanitize
2061
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
2062
+ */
2063
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
2064
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
2065
+ };
2066
+ /**
2067
+ * Wrap an attribute value in the matching Trusted Types object when
2068
+ * the active policy requires it. Namespaced attributes pass through
2069
+ * unchanged (no TT support yet, see
2070
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
2071
+ *
2072
+ * @param lcTag lowercase tag name of the containing element
2073
+ * @param lcName lowercase attribute name
2074
+ * @param namespaceURI the attribute's namespace, if any
2075
+ * @param value the attribute value to wrap
2076
+ * @return the value, wrapped when Trusted Types demand it
2077
+ */
2078
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
2079
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
2080
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
2081
+ case 'TrustedHTML':
2082
+ {
2083
+ return _createTrustedHTML(value);
2084
+ }
2085
+ case 'TrustedScriptURL':
2086
+ {
2087
+ return _createTrustedScriptURL(value);
2088
+ }
2089
+ }
2090
+ }
2091
+ return value;
2092
+ };
2093
+ /**
2094
+ * Write a modified attribute value back onto the element. On
2095
+ * success, re-probe for clobbering introduced by the new value and
2096
+ * remove the element when found; otherwise, when this writeback is the
2097
+ * recreate half of the SANITIZE_NAMED_PROPS remove-and-recreate, pop the
2098
+ * removal entry that path recorded so it does not show as removed. On
2099
+ * failure, remove the attribute instead.
2100
+ *
2101
+ * Returns true only on a clean write (the value was set and the new value
2102
+ * introduced no clobbering). The caller uses that, together with its own
2103
+ * knowledge of whether this attribute pushed a DOMPurify.removed record, to
2104
+ * decide whether to pop that record. The pop must happen ONLY for the
2105
+ * named-prop remove-and-recreate; popping on any other value change (trim,
2106
+ * template scrubbing, Trusted Types) would consume an unrelated _forceRemove
2107
+ * subtree-cleanup record and let that detached subtree keep a live event
2108
+ * handler through the IN_PLACE neutralization pass (SO-001).
2109
+ *
2110
+ * @param currentNode the element carrying the attribute
2111
+ * @param name the attribute name as present on the element
2112
+ * @param namespaceURI the attribute's namespace, if any
2113
+ * @param value the new attribute value
2114
+ * @return true if the value was written without introducing clobbering
2115
+ */
2116
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
2117
+ try {
2118
+ if (namespaceURI) {
2119
+ currentNode.setAttributeNS(namespaceURI, name, value);
2120
+ } else {
2121
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
2122
+ currentNode.setAttribute(name, value);
2123
+ }
2124
+ if (_isClobbered(currentNode)) {
2125
+ _forceRemove(currentNode);
2126
+ return false;
2127
+ }
2128
+ return true;
2129
+ } catch (_) {
2130
+ _removeAttribute(name, currentNode);
2131
+ return false;
2132
+ }
2133
+ };
2134
+ /**
2135
+ * _sanitizeAttributes
2136
+ *
2137
+ * @protect attributes
2138
+ * @protect nodeName
2139
+ * @protect removeAttribute
2140
+ * @protect setAttribute
2141
+ *
2142
+ * @param currentNode to sanitize
2143
+ */
2144
+ // eslint-disable-next-line complexity
2145
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
2146
+ /* Execute a hook if present */
2147
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2148
+ const attributes = currentNode.attributes;
2149
+ /* Check if we have attributes; if not we might have a text node */
2150
+ if (!attributes || _isClobbered(currentNode)) {
2151
+ return;
2152
+ }
2153
+ /* Same lazy-install guard as uponSanitizeElement (see there): fork the
2154
+ attribute allowlist off its shared binding before a hook can see it. */
2155
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
2156
+ const hookEvent = {
2157
+ attrName: '',
2158
+ attrValue: '',
2159
+ keepAttr: true,
2160
+ allowedAttributes: ALLOWED_ATTR,
2161
+ forceKeepAttr: undefined
2162
+ };
2163
+ let l = attributes.length;
2164
+ const lcTag = transformCaseFunc(currentNode.nodeName);
2165
+ /* Go backwards over all attributes; safely remove bad ones */
2166
+ while (l--) {
2167
+ const attr = attributes[l];
2168
+ const name = attr.name,
2169
+ namespaceURI = attr.namespaceURI,
2170
+ attrValue = attr.value;
2171
+ const lcName = transformCaseFunc(name);
2172
+ const initValue = attrValue;
2173
+ let value = name === 'value' ? initValue : stringTrim(initValue);
2174
+ /* Tracks whether this specific attribute pushed a DOMPurify.removed
2175
+ record that a later _setAttributeValue() writeback is expected to pop
2176
+ back off (the SANITIZE_NAMED_PROPS remove-and-recreate below is the
2177
+ only path that does). A value that merely changed via trim, template
2178
+ scrubbing, or Trusted Types pushes no such record, so its writeback
2179
+ must NOT pop — otherwise it consumes an unrelated _forceRemove subtree
2180
+ record and that detached subtree escapes the IN_PLACE handler-
2181
+ neutralization pass (SO-001). */
2182
+ let recreatedNamedProp = false;
2183
+ /* Execute a hook if present */
2184
+ hookEvent.attrName = lcName;
2185
+ hookEvent.attrValue = value;
2186
+ hookEvent.keepAttr = true;
2187
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
2188
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
2189
+ value = hookEvent.attrValue;
2190
+ /* Full DOM Clobbering protection via namespace isolation,
2191
+ * Prefix id and name attributes with `user-content-`
2192
+ */
2193
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
2194
+ // Remove the attribute with this value
2195
+ _removeAttribute(name, currentNode, attr);
2196
+ // Prefix the value and later re-create the attribute with the sanitized value
2197
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
2198
+ // This attribute owns the record just pushed; its recreate writeback
2199
+ // is the one allowed to pop it back off.
2200
+ recreatedNamedProp = true;
2201
+ }
2202
+ // Else: already prefixed, leave the attribute alone — the prefix is
2203
+ // itself the clobbering protection, and re-applying it is incorrect.
2204
+ /* Work around a security issue with comments inside attributes */
2205
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
2206
+ _removeAttribute(name, currentNode, attr);
2207
+ continue;
2208
+ }
2209
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
2210
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
2211
+ _removeAttribute(name, currentNode, attr);
2212
+ continue;
2213
+ }
2214
+ /* Did the hooks force-keep the attribute? */
2215
+ if (hookEvent.forceKeepAttr) {
2216
+ continue;
2217
+ }
2218
+ /* Did the hooks approve of the attribute? */
2219
+ if (!hookEvent.keepAttr) {
2220
+ _removeAttribute(name, currentNode, attr);
2221
+ continue;
2222
+ }
2223
+ /* Work around a security issue in jQuery 3.0 */
2224
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
2225
+ _removeAttribute(name, currentNode, attr);
2226
+ continue;
2227
+ }
2228
+ /* Sanitize attribute content to be template-safe */
2229
+ if (SAFE_FOR_TEMPLATES) {
2230
+ value = _stripTemplateExpressions(value);
2231
+ }
2232
+ /* Is `value` valid for this attribute? */
2233
+ if (!_isValidAttribute(lcTag, lcName, value)) {
2234
+ _removeAttribute(name, currentNode, attr);
2235
+ continue;
2236
+ }
2237
+ /* Handle attributes that require Trusted Types */
2238
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
2239
+ /* Handle invalid data-* attribute set by try-catching it */
2240
+ if (value !== initValue) {
2241
+ const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value);
2242
+ /* Only the named-prop remove-and-recreate owns a DOMPurify.removed
2243
+ record to pop; a plain trim/template/Trusted-Types writeback owns
2244
+ none, so popping here would drop an unrelated subtree's cleanup
2245
+ record (SO-001). */
2246
+ if (cleanWrite && recreatedNamedProp) {
2247
+ arrayPop(DOMPurify.removed);
2248
+ }
2249
+ }
2250
+ }
2251
+ /* Execute a hook if present */
2252
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
2253
+ };
2254
+ /**
2255
+ * _sanitizeShadowDOM
2256
+ *
2257
+ * @param fragment to iterate over recursively
2258
+ */
2259
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
2260
+ let shadowNode = null;
2261
+ const shadowIterator = _createNodeIterator(fragment);
2262
+ /* Execute a hook if present */
2263
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2264
+ while (shadowNode = shadowIterator.nextNode()) {
2265
+ /* Execute a hook if present */
2266
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2267
+ /* Sanitize tags and elements */
2268
+ _sanitizeElements(shadowNode, fragment);
2269
+ /* Check attributes next */
2270
+ _sanitizeAttributes(shadowNode);
2271
+ /* Deep shadow DOM detected.
2272
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use nodeType against the
2273
+ DOCUMENT_FRAGMENT_NODE constant rather than instanceof, so we
2274
+ recurse into <template>.content from foreign realms too. */
2275
+ if (_isDocumentFragment(shadowNode.content)) {
2276
+ _sanitizeShadowDOM2(shadowNode.content);
2277
+ }
2278
+ /* An element iterated here may itself host an attached
2279
+ shadow root. The default NodeIterator does not enter shadow
2280
+ trees, so a shadow root nested inside template.content was
2281
+ previously reached by no walk at all (the pre-pass at
2282
+ _sanitizeAttachedShadowRoots descends via childNodes, which
2283
+ doesn't enter template.content; the template-content recursion
2284
+ above iterates the content but never inspected shadowRoot).
2285
+ Walk it explicitly. The nodeType guard avoids reading
2286
+ shadowRoot off text / comment / CDATA / PI nodes that the
2287
+ iterator also surfaces. */
2288
+ if (_readNodeType(shadowNode) === NODE_TYPE.element) {
2289
+ const innerSr = getShadowRoot(shadowNode);
2290
+ if (_isDocumentFragment(innerSr)) {
2291
+ _sanitizeAttachedShadowRoots(innerSr);
2292
+ _sanitizeShadowDOM2(innerSr);
2293
+ }
2294
+ }
2295
+ }
2296
+ /* Execute a hook if present */
2297
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2298
+ };
2299
+ /**
2300
+ * _sanitizeAttachedShadowRoots
2301
+ *
2302
+ * Walks `root` and feeds every attached shadow root we encounter into
2303
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
2304
+ * does not descend into shadow trees, so nodes inside an attached
2305
+ * shadow root would otherwise be skipped entirely.
2306
+ *
2307
+ * Two real input paths put attached shadow roots in front of us:
2308
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
2309
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
2310
+ * shadow root because it was created with `clonable: true`.
2311
+ *
2312
+ * This pass runs once, up front, so the main iteration loop (and the
2313
+ * existing _sanitizeShadowDOM template-content recursion) stay
2314
+ * untouched — string-input paths are not affected.
2315
+ *
2316
+ * @param root the subtree root to walk for attached shadow roots
2317
+ */
2318
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2319
+ /* Iterative (explicit stack) rather than per-child recursion. DOM APIs
2320
+ impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
2321
+ built straight into the DOM — the IN_PLACE surface) deeper than the JS
2322
+ call-stack budget would otherwise overflow native recursion here and
2323
+ throw at the IN_PLACE entry pre-pass, before a single node is
2324
+ sanitized, leaving the caller's live tree untouched (fail-open). See
2325
+ campaign-3 F4. A heap stack keeps depth off the call stack.
2326
+ Each work item is either a node to descend into, or a deferred
2327
+ `_sanitizeShadowDOM` for an already-walked shadow root. The deferred
2328
+ form preserves the original post-order discipline: a shadow root's
2329
+ nested shadow roots are discovered before the outer shadow is
2330
+ sanitized (which may remove hosts). Pushes are in reverse of the
2331
+ desired processing order (LIFO): template content, then children, then
2332
+ the shadow-sanitize, then the shadow walk — so the order matches the
2333
+ previous recursion exactly. */
2334
+ const stack = [{
2335
+ node: root,
2336
+ shadow: null
2337
+ }];
2338
+ while (stack.length > 0) {
2339
+ const item = stack.pop();
2340
+ /* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
2341
+ if (item.shadow) {
2342
+ _sanitizeShadowDOM2(item.shadow);
2343
+ continue;
2344
+ }
2345
+ const node = item.node;
2346
+ const nodeType = _readNodeType(node);
2347
+ const isElement = nodeType === NODE_TYPE.element;
2348
+ /* (pushed last → processed first) Children, snapshotted in reverse so
2349
+ the first child is processed first. Snapshotting matters because a
2350
+ hook may detach siblings mid-walk. */
2351
+ const childNodes = getChildNodes(node);
2352
+ if (childNodes) {
2353
+ for (let i = childNodes.length - 1; i >= 0; --i) {
2354
+ stack.push({
2355
+ node: childNodes[i],
2356
+ shadow: null
2357
+ });
2358
+ }
2359
+ }
2360
+ /* (pushed before children → processed after them, matching the old
2361
+ "template content last" order) When the node is a <template>,
2362
+ descend into its content. */
2363
+ if (isElement) {
2364
+ const rootName = getNodeName ? getNodeName(node) : null;
2365
+ if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
2366
+ const content = node.content;
2367
+ if (_isDocumentFragment(content)) {
2368
+ stack.push({
2369
+ node: content,
2370
+ shadow: null
2371
+ });
2372
+ }
2373
+ }
2374
+ }
2375
+ /* Shadow root (processed first): walk its subtree, then sanitise it.
2376
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2377
+ rather than `instanceof DocumentFragment`, which is realm-bound and
2378
+ silently skipped foreign-realm shadow roots (e.g.
2379
+ iframe.contentDocument attachShadow). */
2380
+ if (isElement) {
2381
+ const sr = getShadowRoot(node);
2382
+ if (_isDocumentFragment(sr)) {
2383
+ /* Push the deferred sanitise first so it pops after the shadow
2384
+ walk we push next, i.e. nested shadow roots are discovered
2385
+ before this one is sanitised. */
2386
+ stack.push({
2387
+ node: null,
2388
+ shadow: sr
2389
+ }, {
2390
+ node: sr,
2391
+ shadow: null
2392
+ });
2393
+ }
2394
+ }
2395
+ }
2396
+ };
2397
+ // eslint-disable-next-line complexity
2398
+ DOMPurify.sanitize = function (dirty) {
2399
+ let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2400
+ let body = null;
2401
+ let importedNode = null;
2402
+ let currentNode = null;
2403
+ let returnNode = null;
2404
+ /* Make sure we have a string to sanitize.
2405
+ DO NOT return early, as this will return the wrong type if
2406
+ the user has requested a DOM object rather than a string */
2407
+ IS_EMPTY_INPUT = !dirty;
2408
+ if (IS_EMPTY_INPUT) {
2409
+ dirty = '<!-->';
2410
+ }
2411
+ /* Stringify, in case dirty is an object */
2412
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
2413
+ dirty = stringifyValue(dirty);
2414
+ if (typeof dirty !== 'string') {
2415
+ throw typeErrorCreate('dirty is not a string, aborting');
2416
+ }
2417
+ }
2418
+ /* Return dirty HTML if DOMPurify cannot run */
2419
+ if (!DOMPurify.isSupported) {
2420
+ return dirty;
2421
+ }
2422
+ /* Assign config vars */
2423
+ if (SET_CONFIG) {
2424
+ /* Persistent setConfig() path: _parseConfig is skipped, so the sets are
2425
+ * not re-derived per call. Restore them from the pristine bindings
2426
+ * captured at setConfig() time so a previous call's hook clone (mutated
2427
+ * below) does not carry over. */
2428
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2429
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2430
+ } else {
2431
+ _parseConfig(cfg);
2432
+ }
2433
+ /* Clone the hook-mutable allowlists before the walk whenever an
2434
+ * uponSanitize* hook is registered. The hook event exposes ALLOWED_TAGS
2435
+ * and ALLOWED_ATTR by reference (as allowedTags / allowedAttributes), so
2436
+ * a hook that widens them would otherwise mutate the shared set
2437
+ * permanently: across later calls and across every element. Cloning per
2438
+ * walk keeps documented in-call widening working while scoping it to the
2439
+ * call. A single guard for both config paths - the per-call path rebinds
2440
+ * the sets in _parseConfig each call, the persistent path restores them
2441
+ * from the captured bindings just above - so the two cannot diverge. */
2442
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) {
2443
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
2444
+ }
2445
+ if (hooks.uponSanitizeAttribute.length > 0) {
2446
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
2447
+ }
2448
+ /* Clean up removed elements */
2449
+ DOMPurify.removed = [];
2450
+ /* Resolve IN_PLACE for this call without mutating persistent config.
2451
+ Writing the IN_PLACE closure variable here leaks under setConfig(),
2452
+ where _parseConfig is skipped on later calls: a single string call would
2453
+ disable in-place mode for every subsequent node call, returning a
2454
+ sanitized copy while leaving the caller's node — which in-place callers
2455
+ keep using and whose return value they ignore — unsanitized. REPORT-2. */
2456
+ const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
2457
+ if (inPlace) {
2458
+ /* Declarative-partial-updates / streaming pre-pass: sever every patch
2459
+ linkage across the live tree BEFORE the walk, so no patch can fire
2460
+ mid-walk and inject into an already-processed region. Runs first, so
2461
+ it also covers the forbidden/clobbered roots that throw below. */
2462
+ _neutralizePatchLinkage(dirty);
2463
+ /* Do some early pre-sanitization to avoid unsafe root nodes.
2464
+ Read nodeName through the cached prototype getter — a clobbering
2465
+ child named "nodeName" on the form root would otherwise shadow
2466
+ the property and let this check skip the root-allowlist
2467
+ validation entirely. */
2468
+ const nn = _readNodeName(dirty);
2469
+ if (typeof nn === 'string') {
2470
+ const tagName = transformCaseFunc(nn);
2471
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2472
+ /* Fail closed on a live root: neutralize handlers/children before
2473
+ throwing, exactly as the mid-walk abort path does. */
2474
+ _neutralizeRoot(dirty);
2475
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
2476
+ }
2477
+ }
2478
+ /* Pre-flight the root through _isClobbered. The iterator-driven
2479
+ removal path can not detach a parent-less root: _forceRemove
2480
+ falls through to Element.prototype.remove(), which per spec
2481
+ is a no-op on a node with no parent. A clobbered root would
2482
+ then survive the main loop with its attributes uninspected,
2483
+ because _sanitizeAttributes early-returns on _isClobbered. The
2484
+ result would be an attacker-controlled form, complete with any
2485
+ event-handler attributes the caller passed in, handed back to
2486
+ the application unsanitized. Refuse to sanitize such a root
2487
+ the same way we refuse a forbidden tag. GHSA-r47g-fvhr-h676. */
2488
+ if (_isClobbered(dirty)) {
2489
+ /* Fail closed on a live clobbered root before throwing.
2490
+ _neutralizeRoot's reads are clobber-safe (cached getters); the
2491
+ form's non-clobbered descendants, e.g. an armed <img>, are scrubbed. */
2492
+ _neutralizeRoot(dirty);
2493
+ throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
2494
+ }
2495
+ /* Sanitize attached shadow roots before the main iterator runs.
2496
+ The iterator does not descend into shadow trees. Same fail-closed
2497
+ barrier as the main walk (campaign-3 F2): a custom-element reaction
2498
+ inside a shadow root could abort this pre-pass before the walk runs,
2499
+ which would otherwise leave the entire live tree unsanitized. */
2500
+ try {
2501
+ _sanitizeAttachedShadowRoots(dirty);
2502
+ } catch (error) {
2503
+ _neutralizeRoot(dirty);
2504
+ throw error;
2505
+ }
2506
+ } else if (_isNode(dirty)) {
2507
+ /* If dirty is a DOM element, append to an empty document to avoid
2508
+ elements being stripped by the parser */
2509
+ body = _initDocument('<!---->');
2510
+ importedNode = body.ownerDocument.importNode(dirty, true);
2511
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
2512
+ /* Node is already a body, use as is */
2513
+ body = importedNode;
2514
+ } else if (importedNode.nodeName === 'HTML') {
2515
+ body = importedNode;
2516
+ } else {
2517
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2518
+ body.appendChild(importedNode);
2519
+ }
2520
+ /* Clonable shadow roots are deep-cloned by importNode(); sanitize
2521
+ them before the main iterator runs, since the iterator does not
2522
+ descend into shadow trees. The walk routes every read through a
2523
+ cached prototype getter so clobbering descendants on a form root
2524
+ cannot hide a shadow host from this pass.
2525
+ Traverse from `body`, not `importedNode`: when importedNode is a
2526
+ DocumentFragment, the appendChild() above moves its children into
2527
+ `body` and leaves the fragment empty, so walking importedNode would
2528
+ scan nothing and miss every attached shadow host now under `body`
2529
+ (SO-003). In the BODY/HTML branches `body === importedNode`, so this
2530
+ is equivalent there; in the element branch `body` contains the
2531
+ appended element and its descendants. `body` covers all three. */
2532
+ _sanitizeAttachedShadowRoots(body);
2533
+ } else {
2534
+ /* Exit directly if we have nothing to do */
2535
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
2536
+ // eslint-disable-next-line unicorn/prefer-includes
2537
+ dirty.indexOf('<') === -1) {
2538
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2539
+ }
2540
+ /* Initialize the document to work on */
2541
+ body = _initDocument(dirty);
2542
+ /* Check we have a DOM node from the data */
2543
+ if (!body) {
2544
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
2545
+ }
2546
+ }
2547
+ /* Remove first element node (ours) if FORCE_BODY is set */
2548
+ if (body && FORCE_BODY) {
2549
+ _forceRemove(body.firstChild);
2550
+ }
2551
+ /* Get node iterator */
2552
+ const walkRoot = inPlace ? dirty : body;
2553
+ /* Now start iterating over the created document.
2554
+ The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
2555
+ engine/custom-element mutation can detach a node mid-walk so
2556
+ `_forceRemove`'s parentless guard throws, aborting the loop. Without the
2557
+ barrier the caller's in-place tree would be left half-sanitized with the
2558
+ unvisited tail still armed. _createNodeIterator itself is inside the
2559
+ barrier too: constructing the iterator dereferences the root's document,
2560
+ and any failure there (e.g. an exotic/clobbered root) must still fail
2561
+ closed rather than skip the neutralize. On any throw we fail closed -
2562
+ strip the in-place root bare - then rethrow so the existing throw
2563
+ contract is preserved. (String/DOM-copy paths never return the partial
2564
+ body, so the propagating throw is already fail-closed there.) */
2565
+ try {
2566
+ const nodeIterator = _createNodeIterator(walkRoot);
2567
+ while (currentNode = nodeIterator.nextNode()) {
2568
+ /* Sanitize tags and elements */
2569
+ _sanitizeElements(currentNode, walkRoot);
2570
+ /* Check attributes next */
2571
+ _sanitizeAttributes(currentNode);
2572
+ /* Shadow DOM detected, sanitize it.
2573
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2574
+ instead of instanceof, so foreign-realm <template>.content is
2575
+ walked correctly. */
2576
+ if (_isDocumentFragment(currentNode.content)) {
2577
+ _sanitizeShadowDOM2(currentNode.content);
2578
+ }
2579
+ }
2580
+ } catch (error) {
2581
+ if (inPlace) {
2582
+ _neutralizeRoot(dirty);
2583
+ /* Nodes _forceRemove'd earlier in the aborted walk are already
2584
+ detached from the root, so _neutralizeRoot's subtree pass does not
2585
+ reach them. Defuse them too, mirroring the success-path loop below. */
2586
+ arrayForEach(DOMPurify.removed, entry => {
2587
+ if (entry.element) {
2588
+ _neutralizeSubtree(entry.element);
2589
+ }
2590
+ });
2591
+ }
2592
+ throw error;
2593
+ }
2594
+ /* If we sanitized `dirty` in-place, return it. */
2595
+ if (inPlace) {
2596
+ /* Fail-closed completion of the audit-5 F1 fix: every node removed from
2597
+ the caller's live tree is detached but may still hold a queued
2598
+ resource-event handler that fires in page scope after we return. The
2599
+ move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
2600
+ non-allow-listed attributes off every other removed subtree (clobber,
2601
+ mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
2602
+ cancelled before any event can fire. Runs synchronously, pre-return. */
2603
+ arrayForEach(DOMPurify.removed, entry => {
2604
+ if (entry.element) {
2605
+ _neutralizeSubtree(entry.element);
2606
+ }
2607
+ });
2608
+ if (SAFE_FOR_TEMPLATES) {
2609
+ _scrubTemplateExpressions2(dirty);
2610
+ }
2611
+ return dirty;
2612
+ }
2613
+ /* Return sanitized string or DOM */
2614
+ if (RETURN_DOM) {
2615
+ if (SAFE_FOR_TEMPLATES) {
2616
+ _scrubTemplateExpressions2(body);
2617
+ }
2618
+ if (RETURN_DOM_FRAGMENT) {
2619
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2620
+ while (body.firstChild) {
2621
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2622
+ returnNode.appendChild(body.firstChild);
2623
+ }
2624
+ } else {
2625
+ returnNode = body;
2626
+ }
2627
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
2628
+ /*
2629
+ AdoptNode() is not used because internal state is not reset
2630
+ (e.g. the past names map of a HTMLFormElement), this is safe
2631
+ in theory but we would rather not risk another attack vector.
2632
+ The state that is cloned by importNode() is explicitly defined
2633
+ by the specs.
2634
+ */
2635
+ returnNode = importNode.call(originalDocument, returnNode, true);
2636
+ }
2637
+ return returnNode;
2638
+ }
2639
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2640
+ /* Serialize doctype if allowed */
2641
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
2642
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
2643
+ }
2644
+ /* Sanitize final string template-safe */
2645
+ if (SAFE_FOR_TEMPLATES) {
2646
+ serializedHTML = _stripTemplateExpressions(serializedHTML);
2647
+ }
2648
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2649
+ };
2650
+ DOMPurify.setConfig = function () {
2651
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2652
+ _parseConfig(cfg);
2653
+ SET_CONFIG = true;
2654
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2655
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2656
+ };
2657
+ DOMPurify.clearConfig = function () {
2658
+ CONFIG = null;
2659
+ SET_CONFIG = false;
2660
+ SET_CONFIG_ALLOWED_TAGS = null;
2661
+ SET_CONFIG_ALLOWED_ATTR = null;
2662
+ // Drop any caller-supplied Trusted Types policy so it cannot poison later
2663
+ // `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
2664
+ // never recreated — Trusted Types throws on duplicate names) is restored by
2665
+ // the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
2666
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2667
+ emptyHTML = '';
2668
+ };
2669
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
2670
+ /* Initialize shared config vars if necessary. */
2671
+ if (!CONFIG) {
2672
+ _parseConfig({});
2673
+ }
2674
+ const lcTag = transformCaseFunc(tag);
2675
+ const lcName = transformCaseFunc(attr);
2676
+ return _isValidAttribute(lcTag, lcName, value);
2677
+ };
2678
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
2679
+ if (typeof hookFunction !== 'function') {
2680
+ return;
2681
+ }
2682
+ /* Reject unknown entry points. Without this, a non-hook key (e.g.
2683
+ * '__proto__') indexes off the prototype chain rather than a real
2684
+ * hook array, and arrayPush then writes to Object.prototype. Guard
2685
+ * with an own-property check against the known hook names. */
2686
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2687
+ return;
2688
+ }
2689
+ arrayPush(hooks[entryPoint], hookFunction);
2690
+ };
2691
+ DOMPurify.removeHook = function (entryPoint, hookFunction) {
2692
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2693
+ return undefined;
2694
+ }
2695
+ if (hookFunction !== undefined) {
2696
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2697
+ return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
2698
+ }
2699
+ return arrayPop(hooks[entryPoint]);
2700
+ };
2701
+ DOMPurify.removeHooks = function (entryPoint) {
2702
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2703
+ return;
2704
+ }
2705
+ hooks[entryPoint] = [];
2706
+ };
2707
+ DOMPurify.removeAllHooks = function () {
2708
+ hooks = _createHooksMap();
2709
+ };
2710
+ return DOMPurify;
2711
+ }
2712
+ var purify = createDOMPurify();
2713
+
2714
+ const sanitizeSvg = (svg) => {
2715
+ return purify.sanitize(svg, {
2716
+ USE_PROFILES: { svg: true },
2717
+ FORBID_ATTR: ['height', 'width'],
2718
+ });
2719
+ };
2720
+ const svgCache = new Map();
2721
+ const fetchSvg = (url) => {
2722
+ if (!svgCache.has(url)) {
2723
+ // Resolve against the document's base URL: browsers already do this for relative fetches,
2724
+ // but Node's fetch (used during SSR) has no notion of a "current page" and throws on a bare
2725
+ // path like "/assets/icon.svg".
2726
+ const resolvedUrl = new URL(url, document.baseURI).href;
2727
+ svgCache.set(url, fetch(resolvedUrl)
2728
+ .then(r => {
2729
+ if (!r.ok)
2730
+ throw new Error(`ds-icon: failed to fetch SVG "${url}" (${r.status})`);
2731
+ return r.text();
2732
+ })
2733
+ .then(text => sanitizeSvg(text))
2734
+ .catch(err => {
2735
+ console.error(err);
2736
+ svgCache.delete(url);
2737
+ return '';
2738
+ }));
2739
+ }
2740
+ return svgCache.get(url);
2741
+ };
2742
+
2743
+ exports.fetchSvg = fetchSvg;
2744
+ exports.sanitizeSvg = sanitizeSvg;