@sparrowengg/integrations-templates-frontend 1.2.5 → 1.2.6

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 (366) hide show
  1. package/dist/cjs/_virtual/index10.js +2 -2
  2. package/dist/cjs/_virtual/index7.js +2 -2
  3. package/dist/cjs/authentication/constants/index.js +10 -0
  4. package/dist/cjs/authentication/constants/index.js.map +1 -0
  5. package/dist/cjs/authentication/index.js +40 -47
  6. package/dist/cjs/authentication/index.js.map +1 -1
  7. package/dist/cjs/commons/components/theme-wrapper.js +24 -0
  8. package/dist/cjs/commons/components/theme-wrapper.js.map +1 -0
  9. package/dist/cjs/contact-import/components/contact-import-mapping.js +6 -4
  10. package/dist/cjs/contact-import/components/contact-import-mapping.js.map +1 -1
  11. package/dist/cjs/contact-import/index.js +34 -52
  12. package/dist/cjs/contact-import/index.js.map +1 -1
  13. package/dist/cjs/integration-template/index.js +1 -1
  14. package/dist/cjs/integration-template/index.js.map +1 -1
  15. package/dist/cjs/mapping/components/custom-date-menu.js +2 -2
  16. package/dist/cjs/mapping/components/custom-date-menu.js.map +1 -1
  17. package/dist/cjs/node_modules/@internationalized/date/dist/CalendarDate.js +156 -0
  18. package/dist/cjs/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -0
  19. package/dist/cjs/node_modules/@internationalized/date/dist/GregorianCalendar.js +139 -0
  20. package/dist/cjs/node_modules/@internationalized/date/dist/GregorianCalendar.js.map +1 -0
  21. package/dist/cjs/node_modules/@internationalized/date/dist/conversion.js +159 -0
  22. package/dist/cjs/node_modules/@internationalized/date/dist/conversion.js.map +1 -0
  23. package/dist/cjs/node_modules/@internationalized/date/dist/manipulation.js +229 -0
  24. package/dist/cjs/node_modules/@internationalized/date/dist/manipulation.js.map +1 -0
  25. package/dist/cjs/node_modules/@internationalized/date/dist/queries.js +22 -0
  26. package/dist/cjs/node_modules/@internationalized/date/dist/queries.js.map +1 -0
  27. package/dist/cjs/node_modules/@internationalized/date/dist/string.js +36 -0
  28. package/dist/cjs/node_modules/@internationalized/date/dist/string.js.map +1 -0
  29. package/dist/cjs/node_modules/@internationalized/date/dist/utils.js +19 -0
  30. package/dist/cjs/node_modules/@internationalized/date/dist/utils.js.map +1 -0
  31. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js.map +1 -1
  32. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/checkbox/checkbox.js.map +1 -1
  33. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js.map +1 -1
  34. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js +18 -18
  35. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js.map +1 -1
  36. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/form-label/form-label.js +2 -2
  37. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/form-label/form-label.js.map +1 -1
  38. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/primitive/dist/index.js +9 -6
  39. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
  40. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +40 -15
  41. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  42. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-checkbox/dist/index.js +156 -138
  43. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -1
  44. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +60 -85
  45. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  46. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +32 -21
  47. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
  48. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-context/dist/index.js +91 -92
  49. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  50. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +326 -247
  51. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  52. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +26 -5
  53. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
  54. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +201 -207
  55. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  56. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +303 -0
  57. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  58. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +40 -24
  59. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
  60. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +205 -258
  61. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  62. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-id/dist/index.js +23 -26
  63. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
  64. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-label/dist/index.js +47 -0
  65. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  66. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +847 -0
  67. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  68. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popover/dist/index.js +298 -255
  69. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
  70. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +279 -265
  71. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  72. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +31 -9
  73. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  74. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +125 -116
  75. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
  76. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +54 -80
  77. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  78. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-radio-group/dist/index.js +273 -225
  79. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -1
  80. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +211 -208
  81. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  82. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +88 -69
  83. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  84. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-switch/dist/index.js +140 -111
  85. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -1
  86. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tabs/dist/index.js +186 -137
  87. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -1
  88. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +480 -526
  89. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -1
  90. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +27 -14
  91. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
  92. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +58 -40
  93. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
  94. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +32 -16
  95. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
  96. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +24 -9
  97. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
  98. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-previous/dist/index.js +30 -17
  99. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -1
  100. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +54 -46
  101. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
  102. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +48 -20
  103. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -1
  104. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +2 -2
  105. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
  106. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +15 -4
  107. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  108. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -2
  109. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  110. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +12 -4
  111. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  112. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +26 -4
  113. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  114. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/popover/popover.js.map +1 -1
  115. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/radio/radio.js +25 -5
  116. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/radio/radio.js.map +1 -1
  117. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/switch/switch.js.map +1 -1
  118. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/table/table.js +14 -9
  119. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/table/table.js.map +1 -1
  120. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/tabs/tabs.js.map +1 -1
  121. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/theme-provider/theme-provider.js +12 -4
  122. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/theme-provider/theme-provider.js.map +1 -1
  123. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js +2 -2
  124. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js.map +1 -1
  125. package/dist/cjs/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -1
  126. package/dist/cjs/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -1
  127. package/dist/cjs/node_modules/@swc/helpers/esm/_class_private_field_init.js +1 -2
  128. package/dist/cjs/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -1
  129. package/dist/cjs/node_modules/domhandler/lib/index.js +176 -0
  130. package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -0
  131. package/dist/cjs/node_modules/domhandler/lib/node.js +485 -0
  132. package/dist/cjs/node_modules/domhandler/lib/node.js.map +1 -0
  133. package/dist/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  134. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +3 -3
  135. package/dist/cjs/node_modules/html-react-parser/lib/index.js +1 -1
  136. package/dist/cjs/node_modules/htmlparser2/lib/Parser.js +531 -0
  137. package/dist/cjs/node_modules/htmlparser2/lib/Parser.js.map +1 -0
  138. package/dist/cjs/node_modules/htmlparser2/lib/Tokenizer.js +789 -0
  139. package/dist/cjs/node_modules/htmlparser2/lib/Tokenizer.js.map +1 -0
  140. package/dist/cjs/node_modules/htmlparser2/lib/index.js +131 -0
  141. package/dist/cjs/node_modules/htmlparser2/lib/index.js.map +1 -0
  142. package/dist/cjs/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +111 -0
  143. package/dist/cjs/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  144. package/dist/cjs/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +240 -0
  145. package/dist/cjs/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +1 -0
  146. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +202 -0
  147. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +1 -0
  148. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +150 -0
  149. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +1 -0
  150. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/index.js +56 -0
  151. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +1 -0
  152. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +164 -0
  153. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +1 -0
  154. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +150 -0
  155. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +1 -0
  156. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +168 -0
  157. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +1 -0
  158. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +106 -0
  159. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +1 -0
  160. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +135 -0
  161. package/dist/cjs/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +1 -0
  162. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/decode.js +549 -0
  163. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/decode.js.map +1 -0
  164. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js +82 -0
  165. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  166. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/encode.js +89 -0
  167. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/encode.js.map +1 -0
  168. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/escape.js +128 -0
  169. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/escape.js.map +1 -0
  170. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js +12 -0
  171. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  172. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js +12 -0
  173. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  174. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js +15 -0
  175. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  176. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/index.js +138 -0
  177. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/lib/index.js.map +1 -0
  178. package/dist/cjs/node_modules/react-is/index.js +1 -1
  179. package/dist/cjs/node_modules/style-to-js/cjs/index.js +1 -1
  180. package/dist/cjs/node_modules/style-to-object/cjs/index.js +1 -1
  181. package/dist/es/_virtual/index10.js +2 -2
  182. package/dist/es/_virtual/index7.js +2 -2
  183. package/dist/es/authentication/constants/index.js +8 -0
  184. package/dist/es/authentication/constants/index.js.map +1 -0
  185. package/dist/es/authentication/index.js +40 -47
  186. package/dist/es/authentication/index.js.map +1 -1
  187. package/dist/es/commons/components/theme-wrapper.js +20 -0
  188. package/dist/es/commons/components/theme-wrapper.js.map +1 -0
  189. package/dist/es/contact-import/components/contact-import-mapping.js +6 -4
  190. package/dist/es/contact-import/components/contact-import-mapping.js.map +1 -1
  191. package/dist/es/contact-import/index.js +34 -52
  192. package/dist/es/contact-import/index.js.map +1 -1
  193. package/dist/es/integration-template/index.js +1 -1
  194. package/dist/es/integration-template/index.js.map +1 -1
  195. package/dist/es/mapping/components/custom-date-menu.js +1 -1
  196. package/dist/es/node_modules/@internationalized/date/dist/CalendarDate.js +153 -0
  197. package/dist/es/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -0
  198. package/dist/es/node_modules/@internationalized/date/dist/GregorianCalendar.js +133 -0
  199. package/dist/es/node_modules/@internationalized/date/dist/GregorianCalendar.js.map +1 -0
  200. package/dist/es/node_modules/@internationalized/date/dist/conversion.js +152 -0
  201. package/dist/es/node_modules/@internationalized/date/dist/conversion.js.map +1 -0
  202. package/dist/es/node_modules/@internationalized/date/dist/manipulation.js +219 -0
  203. package/dist/es/node_modules/@internationalized/date/dist/manipulation.js.map +1 -0
  204. package/dist/es/node_modules/@internationalized/date/dist/queries.js +18 -0
  205. package/dist/es/node_modules/@internationalized/date/dist/queries.js.map +1 -0
  206. package/dist/es/node_modules/@internationalized/date/dist/string.js +31 -0
  207. package/dist/es/node_modules/@internationalized/date/dist/string.js.map +1 -0
  208. package/dist/es/node_modules/@internationalized/date/dist/utils.js +17 -0
  209. package/dist/es/node_modules/@internationalized/date/dist/utils.js.map +1 -0
  210. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js.map +1 -1
  211. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/checkbox/checkbox.js +3 -3
  212. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/checkbox/checkbox.js.map +1 -1
  213. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +7 -7
  214. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js.map +1 -1
  215. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js +18 -18
  216. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js.map +1 -1
  217. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/form-label/form-label.js +2 -2
  218. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/form-label/form-label.js.map +1 -1
  219. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/primitive/dist/index.js +9 -6
  220. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
  221. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +22 -16
  222. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  223. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-checkbox/dist/index.js +143 -144
  224. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -1
  225. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +63 -88
  226. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  227. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +13 -21
  228. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
  229. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-context/dist/index.js +72 -93
  230. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  231. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +298 -241
  232. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  233. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +8 -6
  234. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
  235. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +189 -215
  236. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  237. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +254 -0
  238. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  239. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +22 -25
  240. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
  241. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +190 -262
  242. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  243. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-id/dist/index.js +11 -14
  244. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
  245. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-label/dist/index.js +25 -0
  246. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  247. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +796 -0
  248. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  249. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popover/dist/index.js +268 -244
  250. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
  251. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +257 -262
  252. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  253. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +13 -10
  254. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  255. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +110 -121
  256. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
  257. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +37 -83
  258. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  259. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-radio-group/dist/index.js +250 -221
  260. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -1
  261. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +200 -216
  262. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  263. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +71 -71
  264. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  265. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-switch/dist/index.js +126 -116
  266. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -1
  267. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tabs/dist/index.js +171 -141
  268. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -1
  269. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +453 -518
  270. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -1
  271. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +9 -15
  272. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
  273. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +42 -43
  274. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
  275. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +15 -18
  276. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
  277. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +5 -9
  278. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
  279. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-previous/dist/index.js +12 -18
  280. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -1
  281. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +37 -48
  282. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
  283. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -21
  284. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -1
  285. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +5 -5
  286. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
  287. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +15 -4
  288. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  289. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -2
  290. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  291. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +12 -4
  292. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  293. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +25 -5
  294. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  295. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/popover/popover.js +5 -5
  296. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/popover/popover.js.map +1 -1
  297. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/radio/radio.js +29 -9
  298. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/radio/radio.js.map +1 -1
  299. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/switch/switch.js +3 -3
  300. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/switch/switch.js.map +1 -1
  301. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/table/table.js +14 -9
  302. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/table/table.js.map +1 -1
  303. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/tabs/tabs.js +5 -5
  304. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/tabs/tabs.js.map +1 -1
  305. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/theme-provider/theme-provider.js +13 -5
  306. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/theme-provider/theme-provider.js.map +1 -1
  307. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js +8 -8
  308. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js.map +1 -1
  309. package/dist/es/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +1 -1
  310. package/dist/es/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -1
  311. package/dist/es/node_modules/@swc/helpers/esm/_class_private_field_init.js +2 -2
  312. package/dist/es/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -1
  313. package/dist/es/node_modules/domhandler/lib/index.js +174 -0
  314. package/dist/es/node_modules/domhandler/lib/index.js.map +1 -0
  315. package/dist/es/node_modules/domhandler/lib/node.js +481 -0
  316. package/dist/es/node_modules/domhandler/lib/node.js.map +1 -0
  317. package/dist/es/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  318. package/dist/es/node_modules/html-dom-parser/lib/server/html-to-dom.js +3 -3
  319. package/dist/es/node_modules/html-react-parser/lib/index.js +1 -1
  320. package/dist/es/node_modules/htmlparser2/lib/Parser.js +527 -0
  321. package/dist/es/node_modules/htmlparser2/lib/Parser.js.map +1 -0
  322. package/dist/es/node_modules/htmlparser2/lib/Tokenizer.js +787 -0
  323. package/dist/es/node_modules/htmlparser2/lib/Tokenizer.js.map +1 -0
  324. package/dist/es/node_modules/htmlparser2/lib/index.js +129 -0
  325. package/dist/es/node_modules/htmlparser2/lib/index.js.map +1 -0
  326. package/dist/es/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +107 -0
  327. package/dist/es/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  328. package/dist/es/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +238 -0
  329. package/dist/es/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +1 -0
  330. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +198 -0
  331. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +1 -0
  332. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +148 -0
  333. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +1 -0
  334. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/index.js +54 -0
  335. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +1 -0
  336. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +160 -0
  337. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +1 -0
  338. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +146 -0
  339. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +1 -0
  340. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +164 -0
  341. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +1 -0
  342. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +102 -0
  343. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +1 -0
  344. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +131 -0
  345. package/dist/es/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +1 -0
  346. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/decode.js +547 -0
  347. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/decode.js.map +1 -0
  348. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js +80 -0
  349. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  350. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/encode.js +85 -0
  351. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/encode.js.map +1 -0
  352. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/escape.js +126 -0
  353. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/escape.js.map +1 -0
  354. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js +10 -0
  355. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  356. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js +10 -0
  357. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  358. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js +13 -0
  359. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  360. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/index.js +136 -0
  361. package/dist/es/node_modules/htmlparser2/node_modules/entities/lib/index.js.map +1 -0
  362. package/dist/es/node_modules/react-is/index.js +1 -1
  363. package/dist/es/node_modules/style-to-js/cjs/index.js +1 -1
  364. package/dist/es/node_modules/style-to-object/cjs/index.js +1 -1
  365. package/dist/index.d.ts +44 -12
  366. package/package.json +2 -2
@@ -0,0 +1,174 @@
1
+ import { commonjsGlobal } from '../../../_virtual/_commonjsHelpers.js';
2
+ import { __exports as lib } from '../../../_virtual/index3.js';
3
+ import '../../domelementtype/lib/index.js';
4
+ import './node.js';
5
+ import { __exports as node } from '../../../_virtual/node.js';
6
+ import { __exports as lib$1 } from '../../../_virtual/index5.js';
7
+
8
+ (function (exports) {
9
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.DomHandler = void 0;
25
+ var domelementtype_1 = lib$1;
26
+ var node_js_1 = node;
27
+ __exportStar(node, exports);
28
+ // Default options
29
+ var defaultOpts = {
30
+ withStartIndices: false,
31
+ withEndIndices: false,
32
+ xmlMode: false,
33
+ };
34
+ var DomHandler = /** @class */ (function () {
35
+ /**
36
+ * @param callback Called once parsing has completed.
37
+ * @param options Settings for the handler.
38
+ * @param elementCB Callback whenever a tag is closed.
39
+ */
40
+ function DomHandler(callback, options, elementCB) {
41
+ /** The elements of the DOM */
42
+ this.dom = [];
43
+ /** The root element for the DOM */
44
+ this.root = new node_js_1.Document(this.dom);
45
+ /** Indicated whether parsing has been completed. */
46
+ this.done = false;
47
+ /** Stack of open tags. */
48
+ this.tagStack = [this.root];
49
+ /** A data node that is still being written to. */
50
+ this.lastNode = null;
51
+ /** Reference to the parser instance. Used for location information. */
52
+ this.parser = null;
53
+ // Make it possible to skip arguments, for backwards-compatibility
54
+ if (typeof options === "function") {
55
+ elementCB = options;
56
+ options = defaultOpts;
57
+ }
58
+ if (typeof callback === "object") {
59
+ options = callback;
60
+ callback = undefined;
61
+ }
62
+ this.callback = callback !== null && callback !== void 0 ? callback : null;
63
+ this.options = options !== null && options !== void 0 ? options : defaultOpts;
64
+ this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
65
+ }
66
+ DomHandler.prototype.onparserinit = function (parser) {
67
+ this.parser = parser;
68
+ };
69
+ // Resets the handler back to starting state
70
+ DomHandler.prototype.onreset = function () {
71
+ this.dom = [];
72
+ this.root = new node_js_1.Document(this.dom);
73
+ this.done = false;
74
+ this.tagStack = [this.root];
75
+ this.lastNode = null;
76
+ this.parser = null;
77
+ };
78
+ // Signals the handler that parsing is done
79
+ DomHandler.prototype.onend = function () {
80
+ if (this.done)
81
+ return;
82
+ this.done = true;
83
+ this.parser = null;
84
+ this.handleCallback(null);
85
+ };
86
+ DomHandler.prototype.onerror = function (error) {
87
+ this.handleCallback(error);
88
+ };
89
+ DomHandler.prototype.onclosetag = function () {
90
+ this.lastNode = null;
91
+ var elem = this.tagStack.pop();
92
+ if (this.options.withEndIndices) {
93
+ elem.endIndex = this.parser.endIndex;
94
+ }
95
+ if (this.elementCB)
96
+ this.elementCB(elem);
97
+ };
98
+ DomHandler.prototype.onopentag = function (name, attribs) {
99
+ var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;
100
+ var element = new node_js_1.Element(name, attribs, undefined, type);
101
+ this.addNode(element);
102
+ this.tagStack.push(element);
103
+ };
104
+ DomHandler.prototype.ontext = function (data) {
105
+ var lastNode = this.lastNode;
106
+ if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {
107
+ lastNode.data += data;
108
+ if (this.options.withEndIndices) {
109
+ lastNode.endIndex = this.parser.endIndex;
110
+ }
111
+ }
112
+ else {
113
+ var node = new node_js_1.Text(data);
114
+ this.addNode(node);
115
+ this.lastNode = node;
116
+ }
117
+ };
118
+ DomHandler.prototype.oncomment = function (data) {
119
+ if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {
120
+ this.lastNode.data += data;
121
+ return;
122
+ }
123
+ var node = new node_js_1.Comment(data);
124
+ this.addNode(node);
125
+ this.lastNode = node;
126
+ };
127
+ DomHandler.prototype.oncommentend = function () {
128
+ this.lastNode = null;
129
+ };
130
+ DomHandler.prototype.oncdatastart = function () {
131
+ var text = new node_js_1.Text("");
132
+ var node = new node_js_1.CDATA([text]);
133
+ this.addNode(node);
134
+ text.parent = node;
135
+ this.lastNode = text;
136
+ };
137
+ DomHandler.prototype.oncdataend = function () {
138
+ this.lastNode = null;
139
+ };
140
+ DomHandler.prototype.onprocessinginstruction = function (name, data) {
141
+ var node = new node_js_1.ProcessingInstruction(name, data);
142
+ this.addNode(node);
143
+ };
144
+ DomHandler.prototype.handleCallback = function (error) {
145
+ if (typeof this.callback === "function") {
146
+ this.callback(error, this.dom);
147
+ }
148
+ else if (error) {
149
+ throw error;
150
+ }
151
+ };
152
+ DomHandler.prototype.addNode = function (node) {
153
+ var parent = this.tagStack[this.tagStack.length - 1];
154
+ var previousSibling = parent.children[parent.children.length - 1];
155
+ if (this.options.withStartIndices) {
156
+ node.startIndex = this.parser.startIndex;
157
+ }
158
+ if (this.options.withEndIndices) {
159
+ node.endIndex = this.parser.endIndex;
160
+ }
161
+ parent.children.push(node);
162
+ if (previousSibling) {
163
+ node.prev = previousSibling;
164
+ previousSibling.next = node;
165
+ }
166
+ node.parent = parent;
167
+ this.lastNode = null;
168
+ };
169
+ return DomHandler;
170
+ }());
171
+ exports.DomHandler = DomHandler;
172
+ exports.default = DomHandler;
173
+ } (lib));
174
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/domhandler/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n function DomHandler(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new node_js_1.Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n DomHandler.prototype.onparserinit = function (parser) {\n this.parser = parser;\n };\n // Resets the handler back to starting state\n DomHandler.prototype.onreset = function () {\n this.dom = [];\n this.root = new node_js_1.Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n };\n // Signals the handler that parsing is done\n DomHandler.prototype.onend = function () {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n };\n DomHandler.prototype.onerror = function (error) {\n this.handleCallback(error);\n };\n DomHandler.prototype.onclosetag = function () {\n this.lastNode = null;\n var elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n };\n DomHandler.prototype.onopentag = function (name, attribs) {\n var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n var element = new node_js_1.Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n };\n DomHandler.prototype.ontext = function (data) {\n var lastNode = this.lastNode;\n if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n var node = new node_js_1.Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n };\n DomHandler.prototype.oncomment = function (data) {\n if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n var node = new node_js_1.Comment(data);\n this.addNode(node);\n this.lastNode = node;\n };\n DomHandler.prototype.oncommentend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.oncdatastart = function () {\n var text = new node_js_1.Text(\"\");\n var node = new node_js_1.CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n };\n DomHandler.prototype.oncdataend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.onprocessinginstruction = function (name, data) {\n var node = new node_js_1.ProcessingInstruction(name, data);\n this.addNode(node);\n };\n DomHandler.prototype.handleCallback = function (error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n };\n DomHandler.prototype.addNode = function (node) {\n var parent = this.tagStack[this.tagStack.length - 1];\n var previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n };\n return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n"],"names":["this","require$$0","require$$1"],"mappings":";;;;;;;;CACA,IAAI,eAAe,GAAG,CAACA,cAAI,IAAIA,cAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;KAC5F,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC,CAAC;KAC7B,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACjD,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;AACvF,OAAM,IAAI,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;MAC/D;KACD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;EACtC,KAAK,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;KACxB,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAChB,CAAC,CAAC,CAAC;AACJ,CAAA,IAAI,YAAY,GAAG,CAACA,cAAI,IAAIA,cAAI,CAAC,YAAY,KAAK,SAAS,CAAC,EAAE,O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,EAAE;aAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;UAC5C;AACT,SAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;aAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;UACxC;SACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC3B,IAAI,eAAe,EAAE;AAC7B,aAAY,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;AACxC,aAAY,eAAe,CAAC,IAAI,GAAG,IAAI,CAAC;UAC/B;AACT,SAAQ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,SAAQ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC7B,MAAK,CAAC;KACF,OAAO,UAAU,CAAC;EACrB,EAAE,CAAC,CAAC;AACL,CAAA,OAAA,CAAA,UAAA,GAAqB,UAAU,CAAC;AAChC,CAAA,OAAA,CAAA,OAAA,GAAkB,UAAU,CAAA;","x_google_ignoreList":[0]}
@@ -0,0 +1,481 @@
1
+ import { commonjsGlobal } from '../../../_virtual/_commonjsHelpers.js';
2
+ import { __exports as node } from '../../../_virtual/node.js';
3
+ import '../../domelementtype/lib/index.js';
4
+ import { __exports as lib } from '../../../_virtual/index5.js';
5
+
6
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
7
+ var extendStatics = function (d, b) {
8
+ extendStatics = Object.setPrototypeOf ||
9
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11
+ return extendStatics(d, b);
12
+ };
13
+ return function (d, b) {
14
+ if (typeof b !== "function" && b !== null)
15
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
+ extendStatics(d, b);
17
+ function __() { this.constructor = d; }
18
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
+ };
20
+ })();
21
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
22
+ __assign = Object.assign || function(t) {
23
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
24
+ s = arguments[i];
25
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
26
+ t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
31
+ };
32
+ Object.defineProperty(node, "__esModule", { value: true });
33
+ node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
34
+ var domelementtype_1 = lib;
35
+ /**
36
+ * This object will be used as the prototype for Nodes when creating a
37
+ * DOM-Level-1-compliant structure.
38
+ */
39
+ var Node = /** @class */ (function () {
40
+ function Node() {
41
+ /** Parent of the node */
42
+ this.parent = null;
43
+ /** Previous sibling */
44
+ this.prev = null;
45
+ /** Next sibling */
46
+ this.next = null;
47
+ /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */
48
+ this.startIndex = null;
49
+ /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */
50
+ this.endIndex = null;
51
+ }
52
+ Object.defineProperty(Node.prototype, "parentNode", {
53
+ // Read-write aliases for properties
54
+ /**
55
+ * Same as {@link parent}.
56
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
57
+ */
58
+ get: function () {
59
+ return this.parent;
60
+ },
61
+ set: function (parent) {
62
+ this.parent = parent;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(Node.prototype, "previousSibling", {
68
+ /**
69
+ * Same as {@link prev}.
70
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
71
+ */
72
+ get: function () {
73
+ return this.prev;
74
+ },
75
+ set: function (prev) {
76
+ this.prev = prev;
77
+ },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
81
+ Object.defineProperty(Node.prototype, "nextSibling", {
82
+ /**
83
+ * Same as {@link next}.
84
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
85
+ */
86
+ get: function () {
87
+ return this.next;
88
+ },
89
+ set: function (next) {
90
+ this.next = next;
91
+ },
92
+ enumerable: false,
93
+ configurable: true
94
+ });
95
+ /**
96
+ * Clone this node, and optionally its children.
97
+ *
98
+ * @param recursive Clone child nodes as well.
99
+ * @returns A clone of the node.
100
+ */
101
+ Node.prototype.cloneNode = function (recursive) {
102
+ if (recursive === void 0) { recursive = false; }
103
+ return cloneNode(this, recursive);
104
+ };
105
+ return Node;
106
+ }());
107
+ node.Node = Node;
108
+ /**
109
+ * A node that contains some data.
110
+ */
111
+ var DataNode = /** @class */ (function (_super) {
112
+ __extends(DataNode, _super);
113
+ /**
114
+ * @param data The content of the data node
115
+ */
116
+ function DataNode(data) {
117
+ var _this = _super.call(this) || this;
118
+ _this.data = data;
119
+ return _this;
120
+ }
121
+ Object.defineProperty(DataNode.prototype, "nodeValue", {
122
+ /**
123
+ * Same as {@link data}.
124
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
125
+ */
126
+ get: function () {
127
+ return this.data;
128
+ },
129
+ set: function (data) {
130
+ this.data = data;
131
+ },
132
+ enumerable: false,
133
+ configurable: true
134
+ });
135
+ return DataNode;
136
+ }(Node));
137
+ node.DataNode = DataNode;
138
+ /**
139
+ * Text within the document.
140
+ */
141
+ var Text = /** @class */ (function (_super) {
142
+ __extends(Text, _super);
143
+ function Text() {
144
+ var _this = _super !== null && _super.apply(this, arguments) || this;
145
+ _this.type = domelementtype_1.ElementType.Text;
146
+ return _this;
147
+ }
148
+ Object.defineProperty(Text.prototype, "nodeType", {
149
+ get: function () {
150
+ return 3;
151
+ },
152
+ enumerable: false,
153
+ configurable: true
154
+ });
155
+ return Text;
156
+ }(DataNode));
157
+ node.Text = Text;
158
+ /**
159
+ * Comments within the document.
160
+ */
161
+ var Comment = /** @class */ (function (_super) {
162
+ __extends(Comment, _super);
163
+ function Comment() {
164
+ var _this = _super !== null && _super.apply(this, arguments) || this;
165
+ _this.type = domelementtype_1.ElementType.Comment;
166
+ return _this;
167
+ }
168
+ Object.defineProperty(Comment.prototype, "nodeType", {
169
+ get: function () {
170
+ return 8;
171
+ },
172
+ enumerable: false,
173
+ configurable: true
174
+ });
175
+ return Comment;
176
+ }(DataNode));
177
+ node.Comment = Comment;
178
+ /**
179
+ * Processing instructions, including doc types.
180
+ */
181
+ var ProcessingInstruction = /** @class */ (function (_super) {
182
+ __extends(ProcessingInstruction, _super);
183
+ function ProcessingInstruction(name, data) {
184
+ var _this = _super.call(this, data) || this;
185
+ _this.name = name;
186
+ _this.type = domelementtype_1.ElementType.Directive;
187
+ return _this;
188
+ }
189
+ Object.defineProperty(ProcessingInstruction.prototype, "nodeType", {
190
+ get: function () {
191
+ return 1;
192
+ },
193
+ enumerable: false,
194
+ configurable: true
195
+ });
196
+ return ProcessingInstruction;
197
+ }(DataNode));
198
+ node.ProcessingInstruction = ProcessingInstruction;
199
+ /**
200
+ * A `Node` that can have children.
201
+ */
202
+ var NodeWithChildren = /** @class */ (function (_super) {
203
+ __extends(NodeWithChildren, _super);
204
+ /**
205
+ * @param children Children of the node. Only certain node types can have children.
206
+ */
207
+ function NodeWithChildren(children) {
208
+ var _this = _super.call(this) || this;
209
+ _this.children = children;
210
+ return _this;
211
+ }
212
+ Object.defineProperty(NodeWithChildren.prototype, "firstChild", {
213
+ // Aliases
214
+ /** First child of the node. */
215
+ get: function () {
216
+ var _a;
217
+ return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
218
+ },
219
+ enumerable: false,
220
+ configurable: true
221
+ });
222
+ Object.defineProperty(NodeWithChildren.prototype, "lastChild", {
223
+ /** Last child of the node. */
224
+ get: function () {
225
+ return this.children.length > 0
226
+ ? this.children[this.children.length - 1]
227
+ : null;
228
+ },
229
+ enumerable: false,
230
+ configurable: true
231
+ });
232
+ Object.defineProperty(NodeWithChildren.prototype, "childNodes", {
233
+ /**
234
+ * Same as {@link children}.
235
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
236
+ */
237
+ get: function () {
238
+ return this.children;
239
+ },
240
+ set: function (children) {
241
+ this.children = children;
242
+ },
243
+ enumerable: false,
244
+ configurable: true
245
+ });
246
+ return NodeWithChildren;
247
+ }(Node));
248
+ node.NodeWithChildren = NodeWithChildren;
249
+ var CDATA = /** @class */ (function (_super) {
250
+ __extends(CDATA, _super);
251
+ function CDATA() {
252
+ var _this = _super !== null && _super.apply(this, arguments) || this;
253
+ _this.type = domelementtype_1.ElementType.CDATA;
254
+ return _this;
255
+ }
256
+ Object.defineProperty(CDATA.prototype, "nodeType", {
257
+ get: function () {
258
+ return 4;
259
+ },
260
+ enumerable: false,
261
+ configurable: true
262
+ });
263
+ return CDATA;
264
+ }(NodeWithChildren));
265
+ node.CDATA = CDATA;
266
+ /**
267
+ * The root node of the document.
268
+ */
269
+ var Document = /** @class */ (function (_super) {
270
+ __extends(Document, _super);
271
+ function Document() {
272
+ var _this = _super !== null && _super.apply(this, arguments) || this;
273
+ _this.type = domelementtype_1.ElementType.Root;
274
+ return _this;
275
+ }
276
+ Object.defineProperty(Document.prototype, "nodeType", {
277
+ get: function () {
278
+ return 9;
279
+ },
280
+ enumerable: false,
281
+ configurable: true
282
+ });
283
+ return Document;
284
+ }(NodeWithChildren));
285
+ node.Document = Document;
286
+ /**
287
+ * An element within the DOM.
288
+ */
289
+ var Element = /** @class */ (function (_super) {
290
+ __extends(Element, _super);
291
+ /**
292
+ * @param name Name of the tag, eg. `div`, `span`.
293
+ * @param attribs Object mapping attribute names to attribute values.
294
+ * @param children Children of the node.
295
+ */
296
+ function Element(name, attribs, children, type) {
297
+ if (children === void 0) { children = []; }
298
+ if (type === void 0) { type = name === "script"
299
+ ? domelementtype_1.ElementType.Script
300
+ : name === "style"
301
+ ? domelementtype_1.ElementType.Style
302
+ : domelementtype_1.ElementType.Tag; }
303
+ var _this = _super.call(this, children) || this;
304
+ _this.name = name;
305
+ _this.attribs = attribs;
306
+ _this.type = type;
307
+ return _this;
308
+ }
309
+ Object.defineProperty(Element.prototype, "nodeType", {
310
+ get: function () {
311
+ return 1;
312
+ },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ Object.defineProperty(Element.prototype, "tagName", {
317
+ // DOM Level 1 aliases
318
+ /**
319
+ * Same as {@link name}.
320
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
321
+ */
322
+ get: function () {
323
+ return this.name;
324
+ },
325
+ set: function (name) {
326
+ this.name = name;
327
+ },
328
+ enumerable: false,
329
+ configurable: true
330
+ });
331
+ Object.defineProperty(Element.prototype, "attributes", {
332
+ get: function () {
333
+ var _this = this;
334
+ return Object.keys(this.attribs).map(function (name) {
335
+ var _a, _b;
336
+ return ({
337
+ name: name,
338
+ value: _this.attribs[name],
339
+ namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
340
+ prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name],
341
+ });
342
+ });
343
+ },
344
+ enumerable: false,
345
+ configurable: true
346
+ });
347
+ return Element;
348
+ }(NodeWithChildren));
349
+ node.Element = Element;
350
+ /**
351
+ * @param node Node to check.
352
+ * @returns `true` if the node is a `Element`, `false` otherwise.
353
+ */
354
+ function isTag(node) {
355
+ return (0, domelementtype_1.isTag)(node);
356
+ }
357
+ node.isTag = isTag;
358
+ /**
359
+ * @param node Node to check.
360
+ * @returns `true` if the node has the type `CDATA`, `false` otherwise.
361
+ */
362
+ function isCDATA(node) {
363
+ return node.type === domelementtype_1.ElementType.CDATA;
364
+ }
365
+ node.isCDATA = isCDATA;
366
+ /**
367
+ * @param node Node to check.
368
+ * @returns `true` if the node has the type `Text`, `false` otherwise.
369
+ */
370
+ function isText(node) {
371
+ return node.type === domelementtype_1.ElementType.Text;
372
+ }
373
+ node.isText = isText;
374
+ /**
375
+ * @param node Node to check.
376
+ * @returns `true` if the node has the type `Comment`, `false` otherwise.
377
+ */
378
+ function isComment(node) {
379
+ return node.type === domelementtype_1.ElementType.Comment;
380
+ }
381
+ node.isComment = isComment;
382
+ /**
383
+ * @param node Node to check.
384
+ * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.
385
+ */
386
+ function isDirective(node) {
387
+ return node.type === domelementtype_1.ElementType.Directive;
388
+ }
389
+ node.isDirective = isDirective;
390
+ /**
391
+ * @param node Node to check.
392
+ * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.
393
+ */
394
+ function isDocument(node) {
395
+ return node.type === domelementtype_1.ElementType.Root;
396
+ }
397
+ node.isDocument = isDocument;
398
+ /**
399
+ * @param node Node to check.
400
+ * @returns `true` if the node has children, `false` otherwise.
401
+ */
402
+ function hasChildren(node) {
403
+ return Object.prototype.hasOwnProperty.call(node, "children");
404
+ }
405
+ node.hasChildren = hasChildren;
406
+ /**
407
+ * Clone a node, and optionally its children.
408
+ *
409
+ * @param recursive Clone child nodes as well.
410
+ * @returns A clone of the node.
411
+ */
412
+ function cloneNode(node, recursive) {
413
+ if (recursive === void 0) { recursive = false; }
414
+ var result;
415
+ if (isText(node)) {
416
+ result = new Text(node.data);
417
+ }
418
+ else if (isComment(node)) {
419
+ result = new Comment(node.data);
420
+ }
421
+ else if (isTag(node)) {
422
+ var children = recursive ? cloneChildren(node.children) : [];
423
+ var clone_1 = new Element(node.name, __assign({}, node.attribs), children);
424
+ children.forEach(function (child) { return (child.parent = clone_1); });
425
+ if (node.namespace != null) {
426
+ clone_1.namespace = node.namespace;
427
+ }
428
+ if (node["x-attribsNamespace"]) {
429
+ clone_1["x-attribsNamespace"] = __assign({}, node["x-attribsNamespace"]);
430
+ }
431
+ if (node["x-attribsPrefix"]) {
432
+ clone_1["x-attribsPrefix"] = __assign({}, node["x-attribsPrefix"]);
433
+ }
434
+ result = clone_1;
435
+ }
436
+ else if (isCDATA(node)) {
437
+ var children = recursive ? cloneChildren(node.children) : [];
438
+ var clone_2 = new CDATA(children);
439
+ children.forEach(function (child) { return (child.parent = clone_2); });
440
+ result = clone_2;
441
+ }
442
+ else if (isDocument(node)) {
443
+ var children = recursive ? cloneChildren(node.children) : [];
444
+ var clone_3 = new Document(children);
445
+ children.forEach(function (child) { return (child.parent = clone_3); });
446
+ if (node["x-mode"]) {
447
+ clone_3["x-mode"] = node["x-mode"];
448
+ }
449
+ result = clone_3;
450
+ }
451
+ else if (isDirective(node)) {
452
+ var instruction = new ProcessingInstruction(node.name, node.data);
453
+ if (node["x-name"] != null) {
454
+ instruction["x-name"] = node["x-name"];
455
+ instruction["x-publicId"] = node["x-publicId"];
456
+ instruction["x-systemId"] = node["x-systemId"];
457
+ }
458
+ result = instruction;
459
+ }
460
+ else {
461
+ throw new Error("Not implemented yet: ".concat(node.type));
462
+ }
463
+ result.startIndex = node.startIndex;
464
+ result.endIndex = node.endIndex;
465
+ if (node.sourceCodeLocation != null) {
466
+ result.sourceCodeLocation = node.sourceCodeLocation;
467
+ }
468
+ return result;
469
+ }
470
+ node.cloneNode = cloneNode;
471
+ function cloneChildren(childs) {
472
+ var children = childs.map(function (child) { return cloneNode(child, true); });
473
+ for (var i = 1; i < children.length; i++) {
474
+ children[i].prev = children[i - 1];
475
+ children[i - 1].next = children[i];
476
+ }
477
+ return children;
478
+ }
479
+
480
+ export { node as default };
481
+ //# sourceMappingURL=node.js.map