@govbr-ds/webcomponents 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (858) hide show
  1. package/cem/custom-elements.json +63 -63
  2. package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
  3. package/dist/cjs/br-avatar.cjs.entry.js +248 -0
  4. package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
  5. package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
  6. package/dist/cjs/br-button_2.cjs.entry.js +280 -0
  7. package/dist/cjs/br-card.cjs.entry.js +111 -0
  8. package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
  9. package/dist/cjs/br-carousel.cjs.entry.js +565 -0
  10. package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
  11. package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
  12. package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
  13. package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
  14. package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
  15. package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
  16. package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
  17. package/dist/cjs/br-cookiebar-link.cjs.entry.js +54 -0
  18. package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
  19. package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
  20. package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
  21. package/dist/cjs/br-crumb.cjs.entry.js +51 -0
  22. package/dist/cjs/br-date-picker_3.cjs.entry.js +2446 -0
  23. package/dist/cjs/br-datetime-picker.cjs.entry.js +1887 -0
  24. package/dist/cjs/br-divider.cjs.entry.js +225 -0
  25. package/dist/cjs/br-dropdown_2.cjs.entry.js +1856 -0
  26. package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
  27. package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
  28. package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
  29. package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
  30. package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
  31. package/dist/cjs/br-footer.cjs.entry.js +92 -0
  32. package/dist/cjs/br-header-function.cjs.entry.js +142 -0
  33. package/dist/cjs/br-header-link.cjs.entry.js +60 -0
  34. package/dist/cjs/br-header-list.cjs.entry.js +279 -0
  35. package/dist/cjs/br-header-logo.cjs.entry.js +177 -0
  36. package/dist/cjs/br-header.cjs.entry.js +642 -0
  37. package/dist/cjs/br-icon.cjs.entry.js +485 -0
  38. package/dist/cjs/br-input.cjs.entry.js +599 -0
  39. package/dist/cjs/br-item.cjs.entry.js +356 -0
  40. package/dist/cjs/br-link.cjs.entry.js +132 -0
  41. package/dist/cjs/br-loading.cjs.entry.js +505 -0
  42. package/dist/cjs/br-magic-button.cjs.entry.js +92 -0
  43. package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
  44. package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
  45. package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
  46. package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
  47. package/dist/cjs/br-menu-link.cjs.entry.js +55 -0
  48. package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
  49. package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
  50. package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
  51. package/dist/cjs/br-menu.cjs.entry.js +993 -0
  52. package/dist/cjs/br-modal.cjs.entry.js +496 -0
  53. package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
  54. package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
  55. package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
  56. package/dist/cjs/br-notification.cjs.entry.js +334 -0
  57. package/dist/cjs/br-pagination.cjs.entry.js +884 -0
  58. package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
  59. package/dist/cjs/br-radio.cjs.entry.js +357 -0
  60. package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
  61. package/dist/cjs/br-select-input_3.cjs.entry.js +954 -0
  62. package/dist/cjs/br-sign-in.cjs.entry.js +125 -0
  63. package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
  64. package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
  65. package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
  66. package/dist/cjs/br-slider.cjs.entry.js +688 -0
  67. package/dist/cjs/br-step_2.cjs.entry.js +628 -0
  68. package/dist/cjs/br-switch.cjs.entry.js +245 -0
  69. package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
  70. package/dist/cjs/br-tab.cjs.entry.js +397 -0
  71. package/dist/cjs/br-table-body.cjs.entry.js +37 -0
  72. package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
  73. package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
  74. package/dist/cjs/br-table-header.cjs.entry.js +37 -0
  75. package/dist/cjs/br-table-row.cjs.entry.js +81 -0
  76. package/dist/cjs/br-table.cjs.entry.js +680 -0
  77. package/dist/cjs/br-tag.cjs.entry.js +494 -0
  78. package/dist/cjs/br-textarea.cjs.entry.js +306 -0
  79. package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
  80. package/dist/cjs/br-upload.cjs.entry.js +582 -0
  81. package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
  82. package/dist/cjs/br-wizard.cjs.entry.js +708 -0
  83. package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
  84. package/dist/cjs/clamp-Co_hWptd.js +25 -0
  85. package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
  86. package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
  87. package/dist/cjs/event-CmVdNHxl.js +56 -0
  88. package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
  89. package/dist/cjs/floating-ui-MBI1osio.js +136 -0
  90. package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
  91. package/dist/cjs/focus-DuywwJPR.js +30 -0
  92. package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
  93. package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
  94. package/dist/cjs/id-CjRFMzf6.js +20 -0
  95. package/dist/cjs/index-C92n55ch.js +678 -0
  96. package/dist/cjs/index-CRdcutym.js +3287 -0
  97. package/dist/cjs/index.cjs.js +12 -0
  98. package/dist/cjs/isNil-DO5zWc3l.js +19 -0
  99. package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
  100. package/dist/cjs/loader.cjs.js +17 -0
  101. package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
  102. package/dist/cjs/navigation-AbzwcRCU.js +25 -0
  103. package/dist/cjs/parts-D5K3ae2C.js +19 -0
  104. package/dist/cjs/props-CScmBvKd.js +24 -0
  105. package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
  106. package/dist/cjs/slot-DAllytTj.js +48 -0
  107. package/dist/cjs/swipe-BU8_XE9f.js +345 -0
  108. package/dist/cjs/table-constants-BOPSay0B.js +183 -0
  109. package/dist/cjs/validator-CTCajtT9.js +123 -0
  110. package/dist/cjs/webcomponents.cjs.js +50 -0
  111. package/dist/collection/assets/icon-search.svg +6 -0
  112. package/dist/collection/assets/logo-negative.svg +1 -0
  113. package/dist/collection/assets/logo-positive.svg +1 -0
  114. package/dist/collection/assets/wc.svg +1 -0
  115. package/dist/collection/collection-manifest.json +113 -0
  116. package/dist/collection/components/avatar/avatar.css +1 -0
  117. package/dist/collection/components/avatar/avatar.js +589 -0
  118. package/dist/collection/components/avatar/avatar.types.js +1 -0
  119. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
  121. package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
  122. package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
  123. package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
  124. package/dist/collection/components/button/button.css +1 -0
  125. package/dist/collection/components/button/button.js +546 -0
  126. package/dist/collection/components/button/button.types.js +1 -0
  127. package/dist/collection/components/card/card.css +1 -0
  128. package/dist/collection/components/card/card.js +225 -0
  129. package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
  130. package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
  131. package/dist/collection/components/carousel/carousel.css +1 -0
  132. package/dist/collection/components/carousel/carousel.js +1217 -0
  133. package/dist/collection/components/carousel/carousel.types.js +1 -0
  134. package/dist/collection/components/checkbox/checkbox.css +1 -0
  135. package/dist/collection/components/checkbox/checkbox.js +823 -0
  136. package/dist/collection/components/checkbox/checkbox.types.js +1 -0
  137. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
  138. package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
  139. package/dist/collection/components/checkgroup/checkgroup.js +166 -0
  140. package/dist/collection/components/collapse/collapse.css +1 -0
  141. package/dist/collection/components/collapse/collapse.js +642 -0
  142. package/dist/collection/components/collapse/collapse.types.js +1 -0
  143. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
  144. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
  145. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
  146. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
  147. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
  148. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
  149. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
  150. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +200 -0
  151. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
  152. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
  153. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
  154. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
  155. package/dist/collection/components/cookiebar/cookiebar.css +1 -0
  156. package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
  157. package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
  158. package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
  159. package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
  160. package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
  161. package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
  162. package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
  163. package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
  164. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
  165. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +825 -0
  166. package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
  167. package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
  168. package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
  169. package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
  170. package/dist/collection/components/datetime-picker/datetime-picker.js +1925 -0
  171. package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
  172. package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
  173. package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
  174. package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
  175. package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
  176. package/dist/collection/components/divider/divider.css +1 -0
  177. package/dist/collection/components/divider/divider.js +537 -0
  178. package/dist/collection/components/divider/divider.types.js +1 -0
  179. package/dist/collection/components/dropdown/dropdown.css +1 -0
  180. package/dist/collection/components/dropdown/dropdown.js +939 -0
  181. package/dist/collection/components/dropdown/dropdown.types.js +1 -0
  182. package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
  183. package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
  184. package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
  185. package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
  186. package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
  187. package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
  188. package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
  189. package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
  190. package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
  191. package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
  192. package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
  193. package/dist/collection/components/footer/footer.css +1 -0
  194. package/dist/collection/components/footer/footer.js +245 -0
  195. package/dist/collection/components/footer/footer.types.js +1 -0
  196. package/dist/collection/components/global.types.js +1 -0
  197. package/dist/collection/components/header/header-function/header-function.css +1 -0
  198. package/dist/collection/components/header/header-function/header-function.js +311 -0
  199. package/dist/collection/components/header/header-link/header-link.css +1 -0
  200. package/dist/collection/components/header/header-link/header-link.js +189 -0
  201. package/dist/collection/components/header/header-list/header-list.css +1 -0
  202. package/dist/collection/components/header/header-list/header-list.js +452 -0
  203. package/dist/collection/components/header/header-logo/header-logo.css +1 -0
  204. package/dist/collection/components/header/header-logo/header-logo.js +420 -0
  205. package/dist/collection/components/header/header.css +1 -0
  206. package/dist/collection/components/header/header.js +1131 -0
  207. package/dist/collection/components/header/header.types.js +1 -0
  208. package/dist/collection/components/icon/default-icons-cache.js +233 -0
  209. package/dist/collection/components/icon/icon.css +1 -0
  210. package/dist/collection/components/icon/icon.js +598 -0
  211. package/dist/collection/components/icon/icon.types.js +1 -0
  212. package/dist/collection/components/icon/icon.utils.js +33 -0
  213. package/dist/collection/components/input/input.css +1 -0
  214. package/dist/collection/components/input/input.js +1642 -0
  215. package/dist/collection/components/input/input.types.js +1 -0
  216. package/dist/collection/components/item/item.css +1 -0
  217. package/dist/collection/components/item/item.js +906 -0
  218. package/dist/collection/components/item/item.types.js +1 -0
  219. package/dist/collection/components/link/link.css +1 -0
  220. package/dist/collection/components/link/link.js +698 -0
  221. package/dist/collection/components/list/list.css +1 -0
  222. package/dist/collection/components/list/list.js +728 -0
  223. package/dist/collection/components/loading/loading.css +1 -0
  224. package/dist/collection/components/loading/loading.js +1169 -0
  225. package/dist/collection/components/loading/loading.types.js +1 -0
  226. package/dist/collection/components/magic-button/magic-button.css +1 -0
  227. package/dist/collection/components/magic-button/magic-button.js +237 -0
  228. package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
  229. package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
  230. package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
  231. package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
  232. package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
  233. package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
  234. package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
  235. package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
  236. package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
  237. package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
  238. package/dist/collection/components/menu/menu-link/menu-link.js +259 -0
  239. package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
  240. package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
  241. package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
  242. package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
  243. package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
  244. package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
  245. package/dist/collection/components/menu/menu.css +1 -0
  246. package/dist/collection/components/menu/menu.js +1372 -0
  247. package/dist/collection/components/menu/menu.types.js +1 -0
  248. package/dist/collection/components/menu/menu.utils.js +279 -0
  249. package/dist/collection/components/message/message.css +1 -0
  250. package/dist/collection/components/message/message.js +508 -0
  251. package/dist/collection/components/modal/modal.css +1 -0
  252. package/dist/collection/components/modal/modal.js +842 -0
  253. package/dist/collection/components/modal/modal.types.js +1 -0
  254. package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
  255. package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
  256. package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
  257. package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
  258. package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
  259. package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
  260. package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
  261. package/dist/collection/components/notification/notification.css +1 -0
  262. package/dist/collection/components/notification/notification.js +838 -0
  263. package/dist/collection/components/notification/notification.types.js +1 -0
  264. package/dist/collection/components/pagination/pagination.css +1 -0
  265. package/dist/collection/components/pagination/pagination.js +1470 -0
  266. package/dist/collection/components/pagination/pagination.types.js +1 -0
  267. package/dist/collection/components/radio/radio.css +1 -0
  268. package/dist/collection/components/radio/radio.js +847 -0
  269. package/dist/collection/components/radio/radio.types.js +1 -0
  270. package/dist/collection/components/radio-group/radio-group.css +1 -0
  271. package/dist/collection/components/radio-group/radio-group.js +862 -0
  272. package/dist/collection/components/radio-group/radio-group.types.js +1 -0
  273. package/dist/collection/components/scrim/scrim.css +1 -0
  274. package/dist/collection/components/scrim/scrim.js +1825 -0
  275. package/dist/collection/components/scrim/scrim.types.js +1 -0
  276. package/dist/collection/components/scrim/scrim.utils.js +132 -0
  277. package/dist/collection/components/select/select-input/select-input.css +1 -0
  278. package/dist/collection/components/select/select-input/select-input.js +585 -0
  279. package/dist/collection/components/select/select-list/select-list.css +1 -0
  280. package/dist/collection/components/select/select-list/select-list.js +1147 -0
  281. package/dist/collection/components/select/select-option/select-option.css +1 -0
  282. package/dist/collection/components/select/select-option/select-option.js +543 -0
  283. package/dist/collection/components/select/select.constants.js +6 -0
  284. package/dist/collection/components/select/select.css +1 -0
  285. package/dist/collection/components/select/select.js +2575 -0
  286. package/dist/collection/components/select/select.types.js +1 -0
  287. package/dist/collection/components/sign-in/sign-in.css +1 -0
  288. package/dist/collection/components/sign-in/sign-in.js +400 -0
  289. package/dist/collection/components/sign-in/sign-in.types.js +1 -0
  290. package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
  291. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
  292. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
  293. package/dist/collection/components/skip-link/skip-link.css +1 -0
  294. package/dist/collection/components/skip-link/skip-link.js +699 -0
  295. package/dist/collection/components/skip-link/skip-link.types.js +1 -0
  296. package/dist/collection/components/slider/slider.css +1 -0
  297. package/dist/collection/components/slider/slider.js +1325 -0
  298. package/dist/collection/components/slider/slider.types.js +1 -0
  299. package/dist/collection/components/step/step-item/step-item.css +1 -0
  300. package/dist/collection/components/step/step-item/step-item.js +604 -0
  301. package/dist/collection/components/step/step-item/step-item.types.js +1 -0
  302. package/dist/collection/components/step/step.css +1 -0
  303. package/dist/collection/components/step/step.js +896 -0
  304. package/dist/collection/components/step/step.types.js +1 -0
  305. package/dist/collection/components/switch/switch.css +1 -0
  306. package/dist/collection/components/switch/switch.js +715 -0
  307. package/dist/collection/components/switch/switch.types.js +1 -0
  308. package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
  309. package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
  310. package/dist/collection/components/tab/tab.css +1 -0
  311. package/dist/collection/components/tab/tab.js +724 -0
  312. package/dist/collection/components/tab/tab.types.js +1 -0
  313. package/dist/collection/components/table/table-body/table-body.css +1 -0
  314. package/dist/collection/components/table/table-body/table-body.js +51 -0
  315. package/dist/collection/components/table/table-cell/table-cell.css +1 -0
  316. package/dist/collection/components/table/table-cell/table-cell.js +373 -0
  317. package/dist/collection/components/table/table-constants.js +171 -0
  318. package/dist/collection/components/table/table-header/table-header.css +1 -0
  319. package/dist/collection/components/table/table-header/table-header.js +51 -0
  320. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
  321. package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
  322. package/dist/collection/components/table/table-row/table-row.css +1 -0
  323. package/dist/collection/components/table/table-row/table-row.js +261 -0
  324. package/dist/collection/components/table/table-tokens.js +50 -0
  325. package/dist/collection/components/table/table-types.js +1 -0
  326. package/dist/collection/components/table/table-utils.js +44 -0
  327. package/dist/collection/components/table/table.css +1 -0
  328. package/dist/collection/components/table/table.js +1030 -0
  329. package/dist/collection/components/tag/tag.css +1 -0
  330. package/dist/collection/components/tag/tag.js +1153 -0
  331. package/dist/collection/components/tag/tag.types.js +1 -0
  332. package/dist/collection/components/textarea/textarea.css +1 -0
  333. package/dist/collection/components/textarea/textarea.js +985 -0
  334. package/dist/collection/components/textarea/textarea.types.js +1 -0
  335. package/dist/collection/components/tooltip/tooltip.css +1 -0
  336. package/dist/collection/components/tooltip/tooltip.js +1024 -0
  337. package/dist/collection/components/tooltip/tooltip.types.js +1 -0
  338. package/dist/collection/components/upload/upload.css +1 -0
  339. package/dist/collection/components/upload/upload.js +1315 -0
  340. package/dist/collection/components/upload/upload.types.js +1 -0
  341. package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
  342. package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
  343. package/dist/collection/components/wizard/wizard.css +1 -0
  344. package/dist/collection/components/wizard/wizard.js +1228 -0
  345. package/dist/collection/index.js +14 -0
  346. package/dist/collection/pages/components/cookiebar/index.js +26 -0
  347. package/dist/collection/pages/components/link/index.js +29 -0
  348. package/dist/collection/pages/components/pagination/index.js +12 -0
  349. package/dist/collection/pages/components/slider/index.js +18 -0
  350. package/dist/collection/pages/scripts/code-editor.js +101 -0
  351. package/dist/collection/pages/scripts/component-controls.js +591 -0
  352. package/dist/collection/pages/scripts/dev-event-console.js +47 -0
  353. package/dist/collection/pages/scripts/menu.js +183 -0
  354. package/dist/collection/pages/scripts/pageLoader.js +1420 -0
  355. package/dist/collection/shared/utils/assetsPath.js +75 -0
  356. package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
  357. package/dist/collection/shared/utils/clamp.js +21 -0
  358. package/dist/collection/shared/utils/css-variables.js +12 -0
  359. package/dist/collection/shared/utils/cssVariables.js +37 -0
  360. package/dist/collection/shared/utils/date.js +405 -0
  361. package/dist/collection/shared/utils/debounce.js +39 -0
  362. package/dist/collection/shared/utils/event.js +55 -0
  363. package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
  364. package/dist/collection/shared/utils/floating-ui.js +131 -0
  365. package/dist/collection/shared/utils/focus.js +24 -0
  366. package/dist/collection/shared/utils/form.js +82 -0
  367. package/dist/collection/shared/utils/format-bytes.js +20 -0
  368. package/dist/collection/shared/utils/getNextElement.js +30 -0
  369. package/dist/collection/shared/utils/getRandom.js +27 -0
  370. package/dist/collection/shared/utils/helpers.js +31 -0
  371. package/dist/collection/shared/utils/id.js +16 -0
  372. package/dist/collection/shared/utils/index.js +60 -0
  373. package/dist/collection/shared/utils/interfaces.js +1 -0
  374. package/dist/collection/shared/utils/isClient.js +14 -0
  375. package/dist/collection/shared/utils/isDefined.js +19 -0
  376. package/dist/collection/shared/utils/isEmpty.js +30 -0
  377. package/dist/collection/shared/utils/isHTMLElement.js +16 -0
  378. package/dist/collection/shared/utils/isNil.js +15 -0
  379. package/dist/collection/shared/utils/isString.js +20 -0
  380. package/dist/collection/shared/utils/native-dialog.js +44 -0
  381. package/dist/collection/shared/utils/navigation.js +21 -0
  382. package/dist/collection/shared/utils/parts.js +15 -0
  383. package/dist/collection/shared/utils/prop-warning.js +7 -0
  384. package/dist/collection/shared/utils/props.js +37 -0
  385. package/dist/collection/shared/utils/raf-batcher.js +51 -0
  386. package/dist/collection/shared/utils/scrollLock.js +141 -0
  387. package/dist/collection/shared/utils/setRafTimeout.js +38 -0
  388. package/dist/collection/shared/utils/slot.js +113 -0
  389. package/dist/collection/shared/utils/ssr-date.js +33 -0
  390. package/dist/collection/shared/utils/stringToArray.js +29 -0
  391. package/dist/collection/shared/utils/swipe.js +342 -0
  392. package/dist/collection/shared/utils/transition.js +127 -0
  393. package/dist/collection/shared/utils/types.js +1 -0
  394. package/dist/collection/shared/utils/validator.js +51 -0
  395. package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
  396. package/dist/collection/value-accessors/index.js +6 -0
  397. package/dist/collection/value-accessors/vue-model-config.js +43 -0
  398. package/dist/components/br-avatar.d.ts +11 -0
  399. package/dist/components/br-avatar.js +5 -0
  400. package/dist/components/br-breadcrumb-item.d.ts +11 -0
  401. package/dist/components/br-breadcrumb-item.js +5 -0
  402. package/dist/components/br-breadcrumb.d.ts +11 -0
  403. package/dist/components/br-breadcrumb.js +5 -0
  404. package/dist/components/br-button.d.ts +11 -0
  405. package/dist/components/br-button.js +5 -0
  406. package/dist/components/br-card.d.ts +11 -0
  407. package/dist/components/br-card.js +5 -0
  408. package/dist/components/br-carousel-page.d.ts +11 -0
  409. package/dist/components/br-carousel-page.js +5 -0
  410. package/dist/components/br-carousel.d.ts +11 -0
  411. package/dist/components/br-carousel.js +5 -0
  412. package/dist/components/br-checkbox-group.d.ts +11 -0
  413. package/dist/components/br-checkbox-group.js +5 -0
  414. package/dist/components/br-checkbox.d.ts +11 -0
  415. package/dist/components/br-checkbox.js +5 -0
  416. package/dist/components/br-checkgroup.d.ts +11 -0
  417. package/dist/components/br-checkgroup.js +5 -0
  418. package/dist/components/br-collapse.d.ts +11 -0
  419. package/dist/components/br-collapse.js +5 -0
  420. package/dist/components/br-cookiebar-cookie.d.ts +11 -0
  421. package/dist/components/br-cookiebar-cookie.js +5 -0
  422. package/dist/components/br-cookiebar-group.d.ts +11 -0
  423. package/dist/components/br-cookiebar-group.js +5 -0
  424. package/dist/components/br-cookiebar-header.d.ts +11 -0
  425. package/dist/components/br-cookiebar-header.js +5 -0
  426. package/dist/components/br-cookiebar-link.d.ts +11 -0
  427. package/dist/components/br-cookiebar-link.js +5 -0
  428. package/dist/components/br-cookiebar-note-group.d.ts +11 -0
  429. package/dist/components/br-cookiebar-note-group.js +5 -0
  430. package/dist/components/br-cookiebar-note.d.ts +11 -0
  431. package/dist/components/br-cookiebar-note.js +5 -0
  432. package/dist/components/br-cookiebar.d.ts +11 -0
  433. package/dist/components/br-cookiebar.js +5 -0
  434. package/dist/components/br-crumb.d.ts +11 -0
  435. package/dist/components/br-crumb.js +5 -0
  436. package/dist/components/br-date-picker.d.ts +11 -0
  437. package/dist/components/br-date-picker.js +5 -0
  438. package/dist/components/br-datetime-input.d.ts +11 -0
  439. package/dist/components/br-datetime-input.js +5 -0
  440. package/dist/components/br-datetime-picker.d.ts +11 -0
  441. package/dist/components/br-datetime-picker.js +5 -0
  442. package/dist/components/br-divider.d.ts +11 -0
  443. package/dist/components/br-divider.js +5 -0
  444. package/dist/components/br-dropdown.d.ts +11 -0
  445. package/dist/components/br-dropdown.js +5 -0
  446. package/dist/components/br-footer-category.d.ts +11 -0
  447. package/dist/components/br-footer-category.js +5 -0
  448. package/dist/components/br-footer-item.d.ts +11 -0
  449. package/dist/components/br-footer-item.js +5 -0
  450. package/dist/components/br-footer-legal.d.ts +11 -0
  451. package/dist/components/br-footer-legal.js +5 -0
  452. package/dist/components/br-footer-logo.d.ts +11 -0
  453. package/dist/components/br-footer-logo.js +5 -0
  454. package/dist/components/br-footer-social.d.ts +11 -0
  455. package/dist/components/br-footer-social.js +5 -0
  456. package/dist/components/br-footer.d.ts +11 -0
  457. package/dist/components/br-footer.js +5 -0
  458. package/dist/components/br-header-function.d.ts +11 -0
  459. package/dist/components/br-header-function.js +5 -0
  460. package/dist/components/br-header-link.d.ts +11 -0
  461. package/dist/components/br-header-link.js +5 -0
  462. package/dist/components/br-header-list.d.ts +11 -0
  463. package/dist/components/br-header-list.js +5 -0
  464. package/dist/components/br-header-logo.d.ts +11 -0
  465. package/dist/components/br-header-logo.js +5 -0
  466. package/dist/components/br-header.d.ts +11 -0
  467. package/dist/components/br-header.js +5 -0
  468. package/dist/components/br-icon.d.ts +11 -0
  469. package/dist/components/br-icon.js +5 -0
  470. package/dist/components/br-input.d.ts +11 -0
  471. package/dist/components/br-input.js +5 -0
  472. package/dist/components/br-item.d.ts +11 -0
  473. package/dist/components/br-item.js +5 -0
  474. package/dist/components/br-link.d.ts +11 -0
  475. package/dist/components/br-link.js +5 -0
  476. package/dist/components/br-list.d.ts +11 -0
  477. package/dist/components/br-list.js +5 -0
  478. package/dist/components/br-loading.d.ts +11 -0
  479. package/dist/components/br-loading.js +5 -0
  480. package/dist/components/br-magic-button.d.ts +11 -0
  481. package/dist/components/br-magic-button.js +5 -0
  482. package/dist/components/br-menu-group.d.ts +11 -0
  483. package/dist/components/br-menu-group.js +5 -0
  484. package/dist/components/br-menu-header.d.ts +11 -0
  485. package/dist/components/br-menu-header.js +5 -0
  486. package/dist/components/br-menu-info.d.ts +11 -0
  487. package/dist/components/br-menu-info.js +5 -0
  488. package/dist/components/br-menu-item.d.ts +11 -0
  489. package/dist/components/br-menu-item.js +5 -0
  490. package/dist/components/br-menu-link.d.ts +11 -0
  491. package/dist/components/br-menu-link.js +5 -0
  492. package/dist/components/br-menu-list.d.ts +11 -0
  493. package/dist/components/br-menu-list.js +5 -0
  494. package/dist/components/br-menu-logo.d.ts +11 -0
  495. package/dist/components/br-menu-logo.js +5 -0
  496. package/dist/components/br-menu-social.d.ts +11 -0
  497. package/dist/components/br-menu-social.js +5 -0
  498. package/dist/components/br-menu.d.ts +11 -0
  499. package/dist/components/br-menu.js +5 -0
  500. package/dist/components/br-message.d.ts +11 -0
  501. package/dist/components/br-message.js +5 -0
  502. package/dist/components/br-modal.d.ts +11 -0
  503. package/dist/components/br-modal.js +5 -0
  504. package/dist/components/br-notification-body.d.ts +11 -0
  505. package/dist/components/br-notification-body.js +5 -0
  506. package/dist/components/br-notification-header.d.ts +11 -0
  507. package/dist/components/br-notification-header.js +5 -0
  508. package/dist/components/br-notification-item.d.ts +11 -0
  509. package/dist/components/br-notification-item.js +5 -0
  510. package/dist/components/br-notification.d.ts +11 -0
  511. package/dist/components/br-notification.js +5 -0
  512. package/dist/components/br-pagination.d.ts +11 -0
  513. package/dist/components/br-pagination.js +5 -0
  514. package/dist/components/br-radio-group.d.ts +11 -0
  515. package/dist/components/br-radio-group.js +5 -0
  516. package/dist/components/br-radio.d.ts +11 -0
  517. package/dist/components/br-radio.js +5 -0
  518. package/dist/components/br-scrim.d.ts +11 -0
  519. package/dist/components/br-scrim.js +5 -0
  520. package/dist/components/br-select-input.d.ts +11 -0
  521. package/dist/components/br-select-input.js +5 -0
  522. package/dist/components/br-select-list.d.ts +11 -0
  523. package/dist/components/br-select-list.js +5 -0
  524. package/dist/components/br-select-option.d.ts +11 -0
  525. package/dist/components/br-select-option.js +5 -0
  526. package/dist/components/br-select.d.ts +11 -0
  527. package/dist/components/br-select.js +5 -0
  528. package/dist/components/br-sign-in.d.ts +11 -0
  529. package/dist/components/br-sign-in.js +5 -0
  530. package/dist/components/br-skip-link-item.d.ts +11 -0
  531. package/dist/components/br-skip-link-item.js +5 -0
  532. package/dist/components/br-skip-link.d.ts +11 -0
  533. package/dist/components/br-skip-link.js +5 -0
  534. package/dist/components/br-skiplink-item.d.ts +11 -0
  535. package/dist/components/br-skiplink-item.js +5 -0
  536. package/dist/components/br-slider.d.ts +11 -0
  537. package/dist/components/br-slider.js +5 -0
  538. package/dist/components/br-step-item.d.ts +11 -0
  539. package/dist/components/br-step-item.js +5 -0
  540. package/dist/components/br-step.d.ts +11 -0
  541. package/dist/components/br-step.js +5 -0
  542. package/dist/components/br-switch.d.ts +11 -0
  543. package/dist/components/br-switch.js +5 -0
  544. package/dist/components/br-tab-item.d.ts +11 -0
  545. package/dist/components/br-tab-item.js +5 -0
  546. package/dist/components/br-tab.d.ts +11 -0
  547. package/dist/components/br-tab.js +5 -0
  548. package/dist/components/br-table-body.d.ts +11 -0
  549. package/dist/components/br-table-body.js +5 -0
  550. package/dist/components/br-table-cell.d.ts +11 -0
  551. package/dist/components/br-table-cell.js +5 -0
  552. package/dist/components/br-table-header-cell.d.ts +11 -0
  553. package/dist/components/br-table-header-cell.js +5 -0
  554. package/dist/components/br-table-header.d.ts +11 -0
  555. package/dist/components/br-table-header.js +5 -0
  556. package/dist/components/br-table-row.d.ts +11 -0
  557. package/dist/components/br-table-row.js +5 -0
  558. package/dist/components/br-table.d.ts +11 -0
  559. package/dist/components/br-table.js +5 -0
  560. package/dist/components/br-tag.d.ts +11 -0
  561. package/dist/components/br-tag.js +5 -0
  562. package/dist/components/br-textarea.d.ts +11 -0
  563. package/dist/components/br-textarea.js +5 -0
  564. package/dist/components/br-time-picker.d.ts +11 -0
  565. package/dist/components/br-time-picker.js +5 -0
  566. package/dist/components/br-tooltip.d.ts +11 -0
  567. package/dist/components/br-tooltip.js +5 -0
  568. package/dist/components/br-upload.d.ts +11 -0
  569. package/dist/components/br-upload.js +5 -0
  570. package/dist/components/br-wizard-panel.d.ts +11 -0
  571. package/dist/components/br-wizard-panel.js +5 -0
  572. package/dist/components/br-wizard.d.ts +11 -0
  573. package/dist/components/br-wizard.js +5 -0
  574. package/dist/components/index.d.ts +213 -0
  575. package/dist/components/index.js +5 -0
  576. package/dist/components/p-0IYmyaTi.js +5 -0
  577. package/dist/components/p-41XwlWiS.js +5 -0
  578. package/dist/components/p-5z6jgH1D.js +5 -0
  579. package/dist/components/p-6OdfnwnK.js +5 -0
  580. package/dist/components/p-9S9bgUT0.js +5 -0
  581. package/dist/components/p-B-qLmYZC.js +5 -0
  582. package/dist/components/p-B-sbd1_h.js +5 -0
  583. package/dist/components/p-B55qsau4.js +5 -0
  584. package/dist/components/p-BC7f6MK8.js +5 -0
  585. package/dist/components/p-BPJpHGOW.js +5 -0
  586. package/dist/components/p-BW0_ORNA.js +5 -0
  587. package/dist/components/p-BWXfdbQH.js +5 -0
  588. package/dist/components/p-Bb-nLtTG.js +5 -0
  589. package/dist/components/p-BkS6ujyf.js +5 -0
  590. package/dist/components/p-Bm0ECvfB.js +5 -0
  591. package/dist/components/p-C1yRmdso.js +5 -0
  592. package/dist/components/p-C3LQSQpc.js +5 -0
  593. package/dist/components/p-C98-mHmV.js +5 -0
  594. package/dist/components/p-CDZFuUlU.js +5 -0
  595. package/dist/components/p-CRfi23Rd.js +5 -0
  596. package/dist/components/p-CUI5zWGf.js +5 -0
  597. package/dist/components/p-CXMwM9m4.js +5 -0
  598. package/dist/components/p-CdDwqbBv.js +5 -0
  599. package/dist/components/p-CxviDiCr.js +5 -0
  600. package/dist/components/p-D3usVJE2.js +16 -0
  601. package/dist/components/p-D6zroLx5.js +5 -0
  602. package/dist/components/p-D9SpD3Ay.js +5 -0
  603. package/dist/components/p-DA5GS53D.js +5 -0
  604. package/dist/components/p-DBP6K_aq.js +5 -0
  605. package/dist/components/p-DBmwzG9E.js +5 -0
  606. package/dist/components/p-DCrVo-8T.js +5 -0
  607. package/dist/components/p-DIK54tTj.js +5 -0
  608. package/dist/components/p-DQRSHR-D.js +5 -0
  609. package/dist/components/p-DRVMm1Py.js +5 -0
  610. package/dist/components/p-DWPmUV72.js +5 -0
  611. package/dist/components/p-DYA74R1r.js +5 -0
  612. package/dist/components/p-DYnkGWii.js +5 -0
  613. package/dist/components/p-D_CSvOY9.js +5 -0
  614. package/dist/components/p-DaeGwqw0.js +5 -0
  615. package/dist/components/p-Dkg2scYZ.js +5 -0
  616. package/dist/components/p-Dmfk7eEe.js +5 -0
  617. package/dist/components/p-DoXNfcTT.js +5 -0
  618. package/dist/components/p-DvrdmqoQ.js +5 -0
  619. package/dist/components/p-DxZJrIyL.js +5 -0
  620. package/dist/components/p-LmeJrLxH.js +5 -0
  621. package/dist/components/p-TFWd_UBV.js +5 -0
  622. package/dist/components/p-aF8bGN3t.js +5 -0
  623. package/dist/components/p-bhULC15U.js +5 -0
  624. package/dist/components/p-cF3ia5e9.js +5 -0
  625. package/dist/components/p-cfPt-vKA.js +5 -0
  626. package/dist/components/p-gvnfuTjd.js +5 -0
  627. package/dist/components/p-nJOJGpyl.js +5 -0
  628. package/dist/components/p-ttI0nvv_.js +5 -0
  629. package/dist/esm/app-globals-DVjNHTTs.js +7 -0
  630. package/dist/esm/br-avatar.entry.js +246 -0
  631. package/dist/esm/br-breadcrumb-item.entry.js +43 -0
  632. package/dist/esm/br-breadcrumb.entry.js +441 -0
  633. package/dist/esm/br-button_2.entry.js +277 -0
  634. package/dist/esm/br-card.entry.js +109 -0
  635. package/dist/esm/br-carousel-page.entry.js +78 -0
  636. package/dist/esm/br-carousel.entry.js +563 -0
  637. package/dist/esm/br-checkbox-group.entry.js +116 -0
  638. package/dist/esm/br-checkbox.entry.js +286 -0
  639. package/dist/esm/br-checkgroup.entry.js +18 -0
  640. package/dist/esm/br-collapse_2.entry.js +680 -0
  641. package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
  642. package/dist/esm/br-cookiebar-group.entry.js +307 -0
  643. package/dist/esm/br-cookiebar-header.entry.js +37 -0
  644. package/dist/esm/br-cookiebar-link.entry.js +52 -0
  645. package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
  646. package/dist/esm/br-cookiebar-note.entry.js +23 -0
  647. package/dist/esm/br-cookiebar.entry.js +756 -0
  648. package/dist/esm/br-crumb.entry.js +49 -0
  649. package/dist/esm/br-date-picker_3.entry.js +2442 -0
  650. package/dist/esm/br-datetime-picker.entry.js +1885 -0
  651. package/dist/esm/br-divider.entry.js +223 -0
  652. package/dist/esm/br-dropdown_2.entry.js +1853 -0
  653. package/dist/esm/br-footer-category.entry.js +100 -0
  654. package/dist/esm/br-footer-item.entry.js +50 -0
  655. package/dist/esm/br-footer-legal.entry.js +39 -0
  656. package/dist/esm/br-footer-logo.entry.js +102 -0
  657. package/dist/esm/br-footer-social.entry.js +69 -0
  658. package/dist/esm/br-footer.entry.js +90 -0
  659. package/dist/esm/br-header-function.entry.js +140 -0
  660. package/dist/esm/br-header-link.entry.js +58 -0
  661. package/dist/esm/br-header-list.entry.js +277 -0
  662. package/dist/esm/br-header-logo.entry.js +175 -0
  663. package/dist/esm/br-header.entry.js +640 -0
  664. package/dist/esm/br-icon.entry.js +483 -0
  665. package/dist/esm/br-input.entry.js +597 -0
  666. package/dist/esm/br-item.entry.js +354 -0
  667. package/dist/esm/br-link.entry.js +130 -0
  668. package/dist/esm/br-loading.entry.js +503 -0
  669. package/dist/esm/br-magic-button.entry.js +90 -0
  670. package/dist/esm/br-menu-group.entry.js +21 -0
  671. package/dist/esm/br-menu-header.entry.js +45 -0
  672. package/dist/esm/br-menu-info.entry.js +36 -0
  673. package/dist/esm/br-menu-item.entry.js +77 -0
  674. package/dist/esm/br-menu-link.entry.js +53 -0
  675. package/dist/esm/br-menu-list.entry.js +147 -0
  676. package/dist/esm/br-menu-logo.entry.js +73 -0
  677. package/dist/esm/br-menu-social.entry.js +63 -0
  678. package/dist/esm/br-menu.entry.js +991 -0
  679. package/dist/esm/br-modal.entry.js +494 -0
  680. package/dist/esm/br-notification-body.entry.js +69 -0
  681. package/dist/esm/br-notification-header.entry.js +46 -0
  682. package/dist/esm/br-notification-item.entry.js +108 -0
  683. package/dist/esm/br-notification.entry.js +332 -0
  684. package/dist/esm/br-pagination.entry.js +882 -0
  685. package/dist/esm/br-radio-group.entry.js +426 -0
  686. package/dist/esm/br-radio.entry.js +355 -0
  687. package/dist/esm/br-scrim.entry.js +1334 -0
  688. package/dist/esm/br-select-input_3.entry.js +950 -0
  689. package/dist/esm/br-sign-in.entry.js +123 -0
  690. package/dist/esm/br-skip-link-item.entry.js +18 -0
  691. package/dist/esm/br-skip-link.entry.js +360 -0
  692. package/dist/esm/br-skiplink-item.entry.js +190 -0
  693. package/dist/esm/br-slider.entry.js +686 -0
  694. package/dist/esm/br-step_2.entry.js +625 -0
  695. package/dist/esm/br-switch.entry.js +243 -0
  696. package/dist/esm/br-tab-item.entry.js +183 -0
  697. package/dist/esm/br-tab.entry.js +395 -0
  698. package/dist/esm/br-table-body.entry.js +35 -0
  699. package/dist/esm/br-table-cell.entry.js +182 -0
  700. package/dist/esm/br-table-header-cell.entry.js +171 -0
  701. package/dist/esm/br-table-header.entry.js +35 -0
  702. package/dist/esm/br-table-row.entry.js +79 -0
  703. package/dist/esm/br-table.entry.js +678 -0
  704. package/dist/esm/br-tag.entry.js +492 -0
  705. package/dist/esm/br-textarea.entry.js +304 -0
  706. package/dist/esm/br-tooltip.entry.js +625 -0
  707. package/dist/esm/br-upload.entry.js +580 -0
  708. package/dist/esm/br-wizard-panel.entry.js +52 -0
  709. package/dist/esm/br-wizard.entry.js +706 -0
  710. package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
  711. package/dist/esm/clamp-gvnfuTjd.js +23 -0
  712. package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
  713. package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
  714. package/dist/esm/event-DFN_so7I.js +48 -0
  715. package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
  716. package/dist/esm/floating-ui-BavFwMnx.js +134 -0
  717. package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
  718. package/dist/esm/focus-DxZJrIyL.js +26 -0
  719. package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
  720. package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
  721. package/dist/esm/id-BkS6ujyf.js +18 -0
  722. package/dist/esm/index-Bo-2igoO.js +671 -0
  723. package/dist/esm/index-C2RBydfd.js +3258 -0
  724. package/dist/esm/index.js +6 -0
  725. package/dist/esm/isNil-B-qLmYZC.js +17 -0
  726. package/dist/esm/isValid-DIUZX1qS.js +3684 -0
  727. package/dist/esm/loader.js +15 -0
  728. package/dist/esm/native-dialog-B55qsau4.js +46 -0
  729. package/dist/esm/navigation-bhULC15U.js +23 -0
  730. package/dist/esm/parts-Bb5vVlCC.js +17 -0
  731. package/dist/esm/props-DRVMm1Py.js +22 -0
  732. package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
  733. package/dist/esm/slot-BIG-yees.js +44 -0
  734. package/dist/esm/swipe-Dmfk7eEe.js +343 -0
  735. package/dist/esm/table-constants-CXMwM9m4.js +170 -0
  736. package/dist/esm/validator-D3tVP32U.js +113 -0
  737. package/dist/esm/webcomponents.js +46 -0
  738. package/dist/hydrate/index.d.ts +287 -0
  739. package/dist/hydrate/index.js +67323 -0
  740. package/dist/hydrate/index.mjs +67313 -0
  741. package/dist/hydrate/package.json +12 -0
  742. package/dist/index.cjs.js +1 -0
  743. package/dist/index.js +1 -0
  744. package/dist/loader/cdn.js +5 -0
  745. package/dist/loader/index.cjs.js +5 -0
  746. package/dist/loader/index.d.ts +24 -0
  747. package/dist/loader/index.es2017.js +5 -0
  748. package/dist/loader/index.js +6 -0
  749. package/dist/webcomponents/index.esm.js +5 -0
  750. package/dist/webcomponents/p-0196804a.entry.js +5 -0
  751. package/dist/webcomponents/p-0410186a.entry.js +5 -0
  752. package/dist/webcomponents/p-0415ef22.entry.js +5 -0
  753. package/dist/webcomponents/p-059c3d6c.entry.js +5 -0
  754. package/dist/webcomponents/p-0b8f39bc.entry.js +5 -0
  755. package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
  756. package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
  757. package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
  758. package/dist/webcomponents/p-12286e73.entry.js +5 -0
  759. package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
  760. package/dist/webcomponents/p-1580beee.entry.js +5 -0
  761. package/dist/webcomponents/p-1b138f1c.entry.js +5 -0
  762. package/dist/webcomponents/p-1bca4499.entry.js +5 -0
  763. package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
  764. package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
  765. package/dist/webcomponents/p-22443c08.entry.js +5 -0
  766. package/dist/webcomponents/p-224daaac.entry.js +5 -0
  767. package/dist/webcomponents/p-28426d2a.entry.js +5 -0
  768. package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
  769. package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
  770. package/dist/webcomponents/p-30c428b6.entry.js +5 -0
  771. package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
  772. package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
  773. package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
  774. package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
  775. package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
  776. package/dist/webcomponents/p-45356e9a.entry.js +5 -0
  777. package/dist/webcomponents/p-46513db4.entry.js +5 -0
  778. package/dist/webcomponents/p-4fe12a72.entry.js +5 -0
  779. package/dist/webcomponents/p-52df61cb.entry.js +5 -0
  780. package/dist/webcomponents/p-569134cf.entry.js +5 -0
  781. package/dist/webcomponents/p-5b257a4b.entry.js +5 -0
  782. package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
  783. package/dist/webcomponents/p-5f373708.entry.js +5 -0
  784. package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
  785. package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
  786. package/dist/webcomponents/p-60cc820c.entry.js +5 -0
  787. package/dist/webcomponents/p-66006312.entry.js +5 -0
  788. package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
  789. package/dist/webcomponents/p-6OdfnwnK.js +5 -0
  790. package/dist/webcomponents/p-6c5f6cb6.entry.js +5 -0
  791. package/dist/webcomponents/p-6f1c4425.entry.js +5 -0
  792. package/dist/webcomponents/p-750799b7.entry.js +5 -0
  793. package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
  794. package/dist/webcomponents/p-765bfe27.entry.js +5 -0
  795. package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
  796. package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
  797. package/dist/webcomponents/p-7cf9f4e5.entry.js +5 -0
  798. package/dist/webcomponents/p-7e1856e4.entry.js +5 -0
  799. package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
  800. package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
  801. package/dist/webcomponents/p-82200563.entry.js +5 -0
  802. package/dist/webcomponents/p-85f8063b.entry.js +5 -0
  803. package/dist/webcomponents/p-8b558233.entry.js +5 -0
  804. package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
  805. package/dist/webcomponents/p-966ad32f.entry.js +5 -0
  806. package/dist/webcomponents/p-9679d230.entry.js +5 -0
  807. package/dist/webcomponents/p-96dd663b.entry.js +5 -0
  808. package/dist/webcomponents/p-98843fa3.entry.js +5 -0
  809. package/dist/webcomponents/p-9S9bgUT0.js +5 -0
  810. package/dist/webcomponents/p-9a375eff.entry.js +5 -0
  811. package/dist/webcomponents/p-9b358cff.entry.js +5 -0
  812. package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
  813. package/dist/webcomponents/p-B-qLmYZC.js +5 -0
  814. package/dist/webcomponents/p-B55qsau4.js +5 -0
  815. package/dist/webcomponents/p-BIG-yees.js +5 -0
  816. package/dist/webcomponents/p-BWXfdbQH.js +5 -0
  817. package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
  818. package/dist/webcomponents/p-Bfm58jO6.js +5 -0
  819. package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
  820. package/dist/webcomponents/p-BkS6ujyf.js +5 -0
  821. package/dist/webcomponents/p-C2RBydfd.js +6 -0
  822. package/dist/webcomponents/p-CO5cOQQU.js +5 -0
  823. package/dist/webcomponents/p-CXMwM9m4.js +5 -0
  824. package/dist/webcomponents/p-D3tVP32U.js +5 -0
  825. package/dist/webcomponents/p-D3usVJE2.js +16 -0
  826. package/dist/webcomponents/p-DBmwzG9E.js +5 -0
  827. package/dist/webcomponents/p-DFN_so7I.js +5 -0
  828. package/dist/webcomponents/p-DIK54tTj.js +5 -0
  829. package/dist/webcomponents/p-DRVMm1Py.js +5 -0
  830. package/dist/webcomponents/p-DVjNHTTs.js +5 -0
  831. package/dist/webcomponents/p-DYA74R1r.js +5 -0
  832. package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
  833. package/dist/webcomponents/p-DxZJrIyL.js +5 -0
  834. package/dist/webcomponents/p-a382e115.entry.js +5 -0
  835. package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
  836. package/dist/webcomponents/p-bba9fc09.entry.js +5 -0
  837. package/dist/webcomponents/p-bhULC15U.js +5 -0
  838. package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
  839. package/dist/webcomponents/p-c211af17.entry.js +5 -0
  840. package/dist/webcomponents/p-c492d926.entry.js +5 -0
  841. package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
  842. package/dist/webcomponents/p-c846e784.entry.js +5 -0
  843. package/dist/webcomponents/p-cF3ia5e9.js +5 -0
  844. package/dist/webcomponents/p-cedb8eea.entry.js +5 -0
  845. package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
  846. package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
  847. package/dist/webcomponents/p-dba376cb.entry.js +5 -0
  848. package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
  849. package/dist/webcomponents/p-e1331288.entry.js +5 -0
  850. package/dist/webcomponents/p-e360a463.entry.js +5 -0
  851. package/dist/webcomponents/p-e80a1eb0.entry.js +5 -0
  852. package/dist/webcomponents/p-f078f972.entry.js +5 -0
  853. package/dist/webcomponents/p-f6318e94.entry.js +5 -0
  854. package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
  855. package/dist/webcomponents/p-gvnfuTjd.js +5 -0
  856. package/dist/webcomponents/webcomponents.esm.js +5 -0
  857. package/package.json +1 -1
  858. package/cem/.gitkeep +0 -0
@@ -0,0 +1,3258 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ const NAMESPACE = 'webcomponents';
6
+ const BUILD = /* webcomponents */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: true, state: true, updatable: true};
7
+
8
+ /*
9
+ Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
10
+ */
11
+
12
+
13
+ // src/utils/constants.ts
14
+ var SVG_NS = "http://www.w3.org/2000/svg";
15
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
17
+ PrimitiveType2["Undefined"] = "undefined";
18
+ PrimitiveType2["Null"] = "null";
19
+ PrimitiveType2["String"] = "string";
20
+ PrimitiveType2["Number"] = "number";
21
+ PrimitiveType2["SpecialNumber"] = "number";
22
+ PrimitiveType2["Boolean"] = "boolean";
23
+ PrimitiveType2["BigInt"] = "bigint";
24
+ return PrimitiveType2;
25
+ })(PrimitiveType || {});
26
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
27
+ NonPrimitiveType2["Array"] = "array";
28
+ NonPrimitiveType2["Date"] = "date";
29
+ NonPrimitiveType2["Map"] = "map";
30
+ NonPrimitiveType2["Object"] = "object";
31
+ NonPrimitiveType2["RegularExpression"] = "regexp";
32
+ NonPrimitiveType2["Set"] = "set";
33
+ NonPrimitiveType2["Channel"] = "channel";
34
+ NonPrimitiveType2["Symbol"] = "symbol";
35
+ return NonPrimitiveType2;
36
+ })(NonPrimitiveType || {});
37
+ var TYPE_CONSTANT = "type";
38
+ var VALUE_CONSTANT = "value";
39
+ var SERIALIZED_PREFIX = "serialized:";
40
+
41
+ // src/utils/get-prop-descriptor.ts
42
+ function getPropertyDescriptor(obj, memberName, getOnly) {
43
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
44
+ while (obj && obj !== stopAt) {
45
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
46
+ if (desc && (!getOnly || desc.get)) return desc;
47
+ obj = Object.getPrototypeOf(obj);
48
+ }
49
+ return void 0;
50
+ }
51
+
52
+ // src/utils/es2022-rewire-class-members.ts
53
+ var reWireGetterSetter = (instance, hostRef) => {
54
+ var _a;
55
+ const cmpMeta = hostRef.$cmpMeta$;
56
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
57
+ members.map(([memberName, [memberFlags]]) => {
58
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
59
+ const ogValue = instance[memberName];
60
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
61
+ if (ogDescriptor) {
62
+ Object.defineProperty(instance, memberName, {
63
+ get() {
64
+ return ogDescriptor.get.call(this);
65
+ },
66
+ set(newValue) {
67
+ ogDescriptor.set.call(this, newValue);
68
+ },
69
+ configurable: true,
70
+ enumerable: true
71
+ });
72
+ }
73
+ if (hostRef.$instanceValues$.has(memberName)) {
74
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
75
+ } else if (ogValue !== void 0) {
76
+ instance[memberName] = ogValue;
77
+ }
78
+ }
79
+ });
80
+ };
81
+
82
+ // src/client/client-host-ref.ts
83
+ var getHostRef = (ref) => {
84
+ if (ref.__stencil__getHostRef) {
85
+ return ref.__stencil__getHostRef();
86
+ }
87
+ return void 0;
88
+ };
89
+ var registerInstance = (lazyInstance, hostRef) => {
90
+ if (!hostRef) return;
91
+ lazyInstance.__stencil__getHostRef = () => hostRef;
92
+ hostRef.$lazyInstance$ = lazyInstance;
93
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
94
+ reWireGetterSetter(lazyInstance, hostRef);
95
+ }
96
+ };
97
+ var registerHost = (hostElement, cmpMeta) => {
98
+ const hostRef = {
99
+ $flags$: 0,
100
+ $hostElement$: hostElement,
101
+ $cmpMeta$: cmpMeta,
102
+ $instanceValues$: /* @__PURE__ */ new Map(),
103
+ $serializerValues$: /* @__PURE__ */ new Map()
104
+ };
105
+ {
106
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
107
+ }
108
+ {
109
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
110
+ hostElement["s-p"] = [];
111
+ hostElement["s-rc"] = [];
112
+ }
113
+ {
114
+ hostRef.$fetchedCbList$ = [];
115
+ }
116
+ const ref = hostRef;
117
+ hostElement.__stencil__getHostRef = () => ref;
118
+ return ref;
119
+ };
120
+ var isMemberInElement = (elm, memberName) => memberName in elm;
121
+ var consoleError = (e, el) => (0, console.error)(e, el);
122
+
123
+ // src/client/client-load-module.ts
124
+ var cmpModules = /* @__PURE__ */ new Map();
125
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
126
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
127
+ const bundleId = cmpMeta.$lazyBundleId$;
128
+ if (!bundleId) {
129
+ return void 0;
130
+ }
131
+ const module = cmpModules.get(bundleId) ;
132
+ if (module) {
133
+ return module[exportName];
134
+ }
135
+
136
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
137
+ const processMod = importedModule => {
138
+ cmpModules.set(bundleId, importedModule);
139
+ return importedModule[exportName];
140
+ }
141
+ switch(bundleId) {
142
+
143
+ case 'br-breadcrumb-item':
144
+ return import(
145
+ /* webpackMode: "lazy" */
146
+ './br-breadcrumb-item.entry.js').then(processMod, consoleError);
147
+ case 'br-checkgroup':
148
+ return import(
149
+ /* webpackMode: "lazy" */
150
+ './br-checkgroup.entry.js').then(processMod, consoleError);
151
+ case 'br-crumb':
152
+ return import(
153
+ /* webpackMode: "lazy" */
154
+ './br-crumb.entry.js').then(processMod, consoleError);
155
+ case 'br-skip-link-item':
156
+ return import(
157
+ /* webpackMode: "lazy" */
158
+ './br-skip-link-item.entry.js').then(processMod, consoleError);
159
+ case 'br-card':
160
+ return import(
161
+ /* webpackMode: "lazy" */
162
+ './br-card.entry.js').then(processMod, consoleError);
163
+ case 'br-avatar':
164
+ return import(
165
+ /* webpackMode: "lazy" */
166
+ './br-avatar.entry.js').then(processMod, consoleError);
167
+ case 'br-breadcrumb':
168
+ return import(
169
+ /* webpackMode: "lazy" */
170
+ './br-breadcrumb.entry.js').then(processMod, consoleError);
171
+ case 'br-carousel':
172
+ return import(
173
+ /* webpackMode: "lazy" */
174
+ './br-carousel.entry.js').then(processMod, consoleError);
175
+ case 'br-carousel-page':
176
+ return import(
177
+ /* webpackMode: "lazy" */
178
+ './br-carousel-page.entry.js').then(processMod, consoleError);
179
+ case 'br-cookiebar':
180
+ return import(
181
+ /* webpackMode: "lazy" */
182
+ './br-cookiebar.entry.js').then(processMod, consoleError);
183
+ case 'br-cookiebar-cookie':
184
+ return import(
185
+ /* webpackMode: "lazy" */
186
+ './br-cookiebar-cookie.entry.js').then(processMod, consoleError);
187
+ case 'br-cookiebar-group':
188
+ return import(
189
+ /* webpackMode: "lazy" */
190
+ './br-cookiebar-group.entry.js').then(processMod, consoleError);
191
+ case 'br-cookiebar-header':
192
+ return import(
193
+ /* webpackMode: "lazy" */
194
+ './br-cookiebar-header.entry.js').then(processMod, consoleError);
195
+ case 'br-cookiebar-link':
196
+ return import(
197
+ /* webpackMode: "lazy" */
198
+ './br-cookiebar-link.entry.js').then(processMod, consoleError);
199
+ case 'br-cookiebar-note':
200
+ return import(
201
+ /* webpackMode: "lazy" */
202
+ './br-cookiebar-note.entry.js').then(processMod, consoleError);
203
+ case 'br-cookiebar-note-group':
204
+ return import(
205
+ /* webpackMode: "lazy" */
206
+ './br-cookiebar-note-group.entry.js').then(processMod, consoleError);
207
+ case 'br-footer':
208
+ return import(
209
+ /* webpackMode: "lazy" */
210
+ './br-footer.entry.js').then(processMod, consoleError);
211
+ case 'br-footer-category':
212
+ return import(
213
+ /* webpackMode: "lazy" */
214
+ './br-footer-category.entry.js').then(processMod, consoleError);
215
+ case 'br-footer-item':
216
+ return import(
217
+ /* webpackMode: "lazy" */
218
+ './br-footer-item.entry.js').then(processMod, consoleError);
219
+ case 'br-footer-legal':
220
+ return import(
221
+ /* webpackMode: "lazy" */
222
+ './br-footer-legal.entry.js').then(processMod, consoleError);
223
+ case 'br-footer-logo':
224
+ return import(
225
+ /* webpackMode: "lazy" */
226
+ './br-footer-logo.entry.js').then(processMod, consoleError);
227
+ case 'br-footer-social':
228
+ return import(
229
+ /* webpackMode: "lazy" */
230
+ './br-footer-social.entry.js').then(processMod, consoleError);
231
+ case 'br-header':
232
+ return import(
233
+ /* webpackMode: "lazy" */
234
+ './br-header.entry.js').then(processMod, consoleError);
235
+ case 'br-header-function':
236
+ return import(
237
+ /* webpackMode: "lazy" */
238
+ './br-header-function.entry.js').then(processMod, consoleError);
239
+ case 'br-header-link':
240
+ return import(
241
+ /* webpackMode: "lazy" */
242
+ './br-header-link.entry.js').then(processMod, consoleError);
243
+ case 'br-header-list':
244
+ return import(
245
+ /* webpackMode: "lazy" */
246
+ './br-header-list.entry.js').then(processMod, consoleError);
247
+ case 'br-header-logo':
248
+ return import(
249
+ /* webpackMode: "lazy" */
250
+ './br-header-logo.entry.js').then(processMod, consoleError);
251
+ case 'br-magic-button':
252
+ return import(
253
+ /* webpackMode: "lazy" */
254
+ './br-magic-button.entry.js').then(processMod, consoleError);
255
+ case 'br-menu':
256
+ return import(
257
+ /* webpackMode: "lazy" */
258
+ './br-menu.entry.js').then(processMod, consoleError);
259
+ case 'br-menu-group':
260
+ return import(
261
+ /* webpackMode: "lazy" */
262
+ './br-menu-group.entry.js').then(processMod, consoleError);
263
+ case 'br-menu-header':
264
+ return import(
265
+ /* webpackMode: "lazy" */
266
+ './br-menu-header.entry.js').then(processMod, consoleError);
267
+ case 'br-menu-info':
268
+ return import(
269
+ /* webpackMode: "lazy" */
270
+ './br-menu-info.entry.js').then(processMod, consoleError);
271
+ case 'br-menu-link':
272
+ return import(
273
+ /* webpackMode: "lazy" */
274
+ './br-menu-link.entry.js').then(processMod, consoleError);
275
+ case 'br-menu-list':
276
+ return import(
277
+ /* webpackMode: "lazy" */
278
+ './br-menu-list.entry.js').then(processMod, consoleError);
279
+ case 'br-menu-logo':
280
+ return import(
281
+ /* webpackMode: "lazy" */
282
+ './br-menu-logo.entry.js').then(processMod, consoleError);
283
+ case 'br-menu-social':
284
+ return import(
285
+ /* webpackMode: "lazy" */
286
+ './br-menu-social.entry.js').then(processMod, consoleError);
287
+ case 'br-modal':
288
+ return import(
289
+ /* webpackMode: "lazy" */
290
+ './br-modal.entry.js').then(processMod, consoleError);
291
+ case 'br-notification':
292
+ return import(
293
+ /* webpackMode: "lazy" */
294
+ './br-notification.entry.js').then(processMod, consoleError);
295
+ case 'br-notification-body':
296
+ return import(
297
+ /* webpackMode: "lazy" */
298
+ './br-notification-body.entry.js').then(processMod, consoleError);
299
+ case 'br-notification-header':
300
+ return import(
301
+ /* webpackMode: "lazy" */
302
+ './br-notification-header.entry.js').then(processMod, consoleError);
303
+ case 'br-notification-item':
304
+ return import(
305
+ /* webpackMode: "lazy" */
306
+ './br-notification-item.entry.js').then(processMod, consoleError);
307
+ case 'br-radio':
308
+ return import(
309
+ /* webpackMode: "lazy" */
310
+ './br-radio.entry.js').then(processMod, consoleError);
311
+ case 'br-radio-group':
312
+ return import(
313
+ /* webpackMode: "lazy" */
314
+ './br-radio-group.entry.js').then(processMod, consoleError);
315
+ case 'br-sign-in':
316
+ return import(
317
+ /* webpackMode: "lazy" */
318
+ './br-sign-in.entry.js').then(processMod, consoleError);
319
+ case 'br-skip-link':
320
+ return import(
321
+ /* webpackMode: "lazy" */
322
+ './br-skip-link.entry.js').then(processMod, consoleError);
323
+ case 'br-slider':
324
+ return import(
325
+ /* webpackMode: "lazy" */
326
+ './br-slider.entry.js').then(processMod, consoleError);
327
+ case 'br-tab':
328
+ return import(
329
+ /* webpackMode: "lazy" */
330
+ './br-tab.entry.js').then(processMod, consoleError);
331
+ case 'br-tab-item':
332
+ return import(
333
+ /* webpackMode: "lazy" */
334
+ './br-tab-item.entry.js').then(processMod, consoleError);
335
+ case 'br-table-body':
336
+ return import(
337
+ /* webpackMode: "lazy" */
338
+ './br-table-body.entry.js').then(processMod, consoleError);
339
+ case 'br-table-cell':
340
+ return import(
341
+ /* webpackMode: "lazy" */
342
+ './br-table-cell.entry.js').then(processMod, consoleError);
343
+ case 'br-table-header':
344
+ return import(
345
+ /* webpackMode: "lazy" */
346
+ './br-table-header.entry.js').then(processMod, consoleError);
347
+ case 'br-table-header-cell':
348
+ return import(
349
+ /* webpackMode: "lazy" */
350
+ './br-table-header-cell.entry.js').then(processMod, consoleError);
351
+ case 'br-table-row':
352
+ return import(
353
+ /* webpackMode: "lazy" */
354
+ './br-table-row.entry.js').then(processMod, consoleError);
355
+ case 'br-textarea':
356
+ return import(
357
+ /* webpackMode: "lazy" */
358
+ './br-textarea.entry.js').then(processMod, consoleError);
359
+ case 'br-wizard':
360
+ return import(
361
+ /* webpackMode: "lazy" */
362
+ './br-wizard.entry.js').then(processMod, consoleError);
363
+ case 'br-wizard-panel':
364
+ return import(
365
+ /* webpackMode: "lazy" */
366
+ './br-wizard-panel.entry.js').then(processMod, consoleError);
367
+ case 'br-checkbox-group':
368
+ return import(
369
+ /* webpackMode: "lazy" */
370
+ './br-checkbox-group.entry.js').then(processMod, consoleError);
371
+ case 'br-menu-item':
372
+ return import(
373
+ /* webpackMode: "lazy" */
374
+ './br-menu-item.entry.js').then(processMod, consoleError);
375
+ case 'br-skiplink-item':
376
+ return import(
377
+ /* webpackMode: "lazy" */
378
+ './br-skiplink-item.entry.js').then(processMod, consoleError);
379
+ case 'br-switch':
380
+ return import(
381
+ /* webpackMode: "lazy" */
382
+ './br-switch.entry.js').then(processMod, consoleError);
383
+ case 'br-link':
384
+ return import(
385
+ /* webpackMode: "lazy" */
386
+ './br-link.entry.js').then(processMod, consoleError);
387
+ case 'br-tooltip':
388
+ return import(
389
+ /* webpackMode: "lazy" */
390
+ './br-tooltip.entry.js').then(processMod, consoleError);
391
+ case 'br-tag':
392
+ return import(
393
+ /* webpackMode: "lazy" */
394
+ './br-tag.entry.js').then(processMod, consoleError);
395
+ case 'br-divider':
396
+ return import(
397
+ /* webpackMode: "lazy" */
398
+ './br-divider.entry.js').then(processMod, consoleError);
399
+ case 'br-input':
400
+ return import(
401
+ /* webpackMode: "lazy" */
402
+ './br-input.entry.js').then(processMod, consoleError);
403
+ case 'br-checkbox':
404
+ return import(
405
+ /* webpackMode: "lazy" */
406
+ './br-checkbox.entry.js').then(processMod, consoleError);
407
+ case 'br-loading':
408
+ return import(
409
+ /* webpackMode: "lazy" */
410
+ './br-loading.entry.js').then(processMod, consoleError);
411
+ case 'br-item':
412
+ return import(
413
+ /* webpackMode: "lazy" */
414
+ './br-item.entry.js').then(processMod, consoleError);
415
+ case 'br-pagination':
416
+ return import(
417
+ /* webpackMode: "lazy" */
418
+ './br-pagination.entry.js').then(processMod, consoleError);
419
+ case 'br-upload':
420
+ return import(
421
+ /* webpackMode: "lazy" */
422
+ './br-upload.entry.js').then(processMod, consoleError);
423
+ case 'br-table':
424
+ return import(
425
+ /* webpackMode: "lazy" */
426
+ './br-table.entry.js').then(processMod, consoleError);
427
+ case 'br-dropdown_2':
428
+ return import(
429
+ /* webpackMode: "lazy" */
430
+ './br-dropdown_2.entry.js').then(processMod, consoleError);
431
+ case 'br-scrim':
432
+ return import(
433
+ /* webpackMode: "lazy" */
434
+ './br-scrim.entry.js').then(processMod, consoleError);
435
+ case 'br-step_2':
436
+ return import(
437
+ /* webpackMode: "lazy" */
438
+ './br-step_2.entry.js').then(processMod, consoleError);
439
+ case 'br-collapse_2':
440
+ return import(
441
+ /* webpackMode: "lazy" */
442
+ './br-collapse_2.entry.js').then(processMod, consoleError);
443
+ case 'br-button_2':
444
+ return import(
445
+ /* webpackMode: "lazy" */
446
+ './br-button_2.entry.js').then(processMod, consoleError);
447
+ case 'br-icon':
448
+ return import(
449
+ /* webpackMode: "lazy" */
450
+ './br-icon.entry.js').then(processMod, consoleError);
451
+ case 'br-select-input_3':
452
+ return import(
453
+ /* webpackMode: "lazy" */
454
+ './br-select-input_3.entry.js').then(processMod, consoleError);
455
+ case 'br-datetime-picker':
456
+ return import(
457
+ /* webpackMode: "lazy" */
458
+ './br-datetime-picker.entry.js').then(processMod, consoleError);
459
+ case 'br-date-picker_3':
460
+ return import(
461
+ /* webpackMode: "lazy" */
462
+ './br-date-picker_3.entry.js').then(processMod, consoleError);
463
+ }
464
+ }
465
+ return import(
466
+ /* @vite-ignore */
467
+ /* webpackInclude: /\.entry\.js$/ */
468
+ /* webpackExclude: /\.system\.entry\.js$/ */
469
+ /* webpackMode: "lazy" */
470
+ `./${bundleId}.entry.js${""}`
471
+ ).then(
472
+ (importedModule) => {
473
+ {
474
+ cmpModules.set(bundleId, importedModule);
475
+ }
476
+ return importedModule[exportName];
477
+ },
478
+ (e) => {
479
+ consoleError(e, hostRef.$hostElement$);
480
+ }
481
+ );
482
+ };
483
+
484
+ // src/client/client-style.ts
485
+ var styles = /* @__PURE__ */ new Map();
486
+
487
+ // src/runtime/runtime-constants.ts
488
+ var CONTENT_REF_ID = "r";
489
+ var ORG_LOCATION_ID = "o";
490
+ var SLOT_NODE_ID = "s";
491
+ var TEXT_NODE_ID = "t";
492
+ var COMMENT_NODE_ID = "c";
493
+ var HYDRATE_ID = "s-id";
494
+ var HYDRATED_STYLE_ID = "sty-id";
495
+ var HYDRATE_CHILD_ID = "c-id";
496
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
497
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
498
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
499
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
500
+ "formAssociatedCallback",
501
+ "formResetCallback",
502
+ "formDisabledCallback",
503
+ "formStateRestoreCallback"
504
+ ];
505
+ var win = typeof window !== "undefined" ? window : {};
506
+ var H = win.HTMLElement || class {
507
+ };
508
+ var plt = {
509
+ $flags$: 0,
510
+ $resourcesUrl$: "",
511
+ jmp: (h2) => h2(),
512
+ raf: (h2) => requestAnimationFrame(h2),
513
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
514
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
515
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
516
+ };
517
+ var supportsShadow = BUILD.shadowDom;
518
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
519
+ var _a;
520
+ let supportsListenerOptions2 = false;
521
+ try {
522
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
523
+ "e",
524
+ null,
525
+ Object.defineProperty({}, "passive", {
526
+ get() {
527
+ supportsListenerOptions2 = true;
528
+ }
529
+ })
530
+ );
531
+ } catch (e) {
532
+ }
533
+ return supportsListenerOptions2;
534
+ })();
535
+ var promiseResolve = (v) => Promise.resolve(v);
536
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
537
+ try {
538
+ if (!win.document.adoptedStyleSheets) {
539
+ return false;
540
+ }
541
+ new CSSStyleSheet();
542
+ return typeof new CSSStyleSheet().replaceSync === "function";
543
+ } catch (e) {
544
+ }
545
+ return false;
546
+ })() ;
547
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
548
+ var queuePending = false;
549
+ var queueDomReads = [];
550
+ var queueDomWrites = [];
551
+ var queueTask = (queue, write) => (cb) => {
552
+ queue.push(cb);
553
+ if (!queuePending) {
554
+ queuePending = true;
555
+ if (write && plt.$flags$ & 4 /* queueSync */) {
556
+ nextTick(flush);
557
+ } else {
558
+ plt.raf(flush);
559
+ }
560
+ }
561
+ };
562
+ var consume = (queue) => {
563
+ for (let i2 = 0; i2 < queue.length; i2++) {
564
+ try {
565
+ queue[i2](performance.now());
566
+ } catch (e) {
567
+ consoleError(e);
568
+ }
569
+ }
570
+ queue.length = 0;
571
+ };
572
+ var flush = () => {
573
+ consume(queueDomReads);
574
+ {
575
+ consume(queueDomWrites);
576
+ if (queuePending = queueDomReads.length > 0) {
577
+ plt.raf(flush);
578
+ }
579
+ }
580
+ };
581
+ var nextTick = (cb) => promiseResolve().then(cb);
582
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
583
+
584
+ // src/utils/style.ts
585
+ function createStyleSheetIfNeededAndSupported(styles2) {
586
+ return void 0;
587
+ }
588
+
589
+ // src/utils/shadow-root.ts
590
+ var globalStyleSheet;
591
+ function createShadowRoot(cmpMeta) {
592
+ var _a;
593
+ const opts = { mode: "open" };
594
+ {
595
+ opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
596
+ }
597
+ const shadowRoot = this.attachShadow(opts);
598
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
599
+ if (globalStyleSheet) {
600
+ if (supportsMutableAdoptedStyleSheets) {
601
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
602
+ } else {
603
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
604
+ }
605
+ }
606
+ }
607
+ var updateFallbackSlotVisibility = (elm) => {
608
+ const childNodes = internalCall(elm, "childNodes");
609
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
610
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
611
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
612
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
613
+ slotNode.hidden = true;
614
+ } else {
615
+ slotNode.hidden = false;
616
+ }
617
+ }
618
+ });
619
+ }
620
+ let i2 = 0;
621
+ for (i2 = 0; i2 < childNodes.length; i2++) {
622
+ const childNode = childNodes[i2];
623
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
624
+ updateFallbackSlotVisibility(childNode);
625
+ }
626
+ }
627
+ };
628
+ var getSlottedChildNodes = (childNodes) => {
629
+ const result = [];
630
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
631
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
632
+ if (slottedNode && slottedNode.isConnected) {
633
+ result.push(slottedNode);
634
+ }
635
+ }
636
+ return result;
637
+ };
638
+ function getHostSlotNodes(childNodes, hostName, slotName) {
639
+ let i2 = 0;
640
+ let slottedNodes = [];
641
+ let childNode;
642
+ for (; i2 < childNodes.length; i2++) {
643
+ childNode = childNodes[i2];
644
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
645
+ slottedNodes.push(childNode);
646
+ if (typeof slotName !== "undefined") return slottedNodes;
647
+ }
648
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
649
+ }
650
+ return slottedNodes;
651
+ }
652
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
653
+ const childNodes = [];
654
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
655
+ let node = slot;
656
+ while (node = node.nextSibling) {
657
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
658
+ }
659
+ return childNodes;
660
+ };
661
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
662
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
663
+ return;
664
+ }
665
+ const slottedNodeLocation = document.createTextNode("");
666
+ slottedNodeLocation["s-nr"] = newChild;
667
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
668
+ const parent = slotNode["s-cr"].parentNode;
669
+ const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
670
+ if (typeof position !== "undefined") {
671
+ slottedNodeLocation["s-oo"] = position;
672
+ const childNodes = internalCall(parent, "childNodes");
673
+ const slotRelocateNodes = [slottedNodeLocation];
674
+ childNodes.forEach((n) => {
675
+ if (n["s-nr"]) slotRelocateNodes.push(n);
676
+ });
677
+ slotRelocateNodes.sort((a, b) => {
678
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
679
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
680
+ return 0;
681
+ });
682
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
683
+ } else {
684
+ appendMethod.call(parent, slottedNodeLocation);
685
+ }
686
+ newChild["s-ol"] = slottedNodeLocation;
687
+ newChild["s-sh"] = slotNode["s-hn"];
688
+ };
689
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
690
+ function patchSlotNode(node) {
691
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
692
+ const assignedFactory = (elementsOnly) => (function(opts) {
693
+ const toReturn = [];
694
+ const slotName = this["s-sn"];
695
+ if (opts == null ? void 0 : opts.flatten) {
696
+ console.error(`
697
+ Flattening is not supported for Stencil non-shadow slots.
698
+ You can use \`.childNodes\` to nested slot fallback content.
699
+ If you have a particular use case, please open an issue on the Stencil repo.
700
+ `);
701
+ }
702
+ const parent = this["s-cr"].parentElement;
703
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
704
+ slottedNodes.forEach((n) => {
705
+ if (slotName === getSlotName(n)) {
706
+ toReturn.push(n);
707
+ }
708
+ });
709
+ if (elementsOnly) {
710
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
711
+ }
712
+ return toReturn;
713
+ }).bind(node);
714
+ node.assignedElements = assignedFactory(true);
715
+ node.assignedNodes = assignedFactory(false);
716
+ }
717
+ function dispatchSlotChangeEvent(elm) {
718
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
719
+ }
720
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
721
+ var _a;
722
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
723
+ if (!parentHost) return { slotNode: null, slotName: "" };
724
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
725
+ const childNodes = internalCall(parentHost, "childNodes");
726
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
727
+ return { slotNode, slotName };
728
+ }
729
+
730
+ // src/runtime/dom-extras.ts
731
+ var patchPseudoShadowDom = (hostElementPrototype) => {
732
+ patchCloneNode(hostElementPrototype);
733
+ patchSlotAppendChild(hostElementPrototype);
734
+ patchSlotAppend(hostElementPrototype);
735
+ patchSlotPrepend(hostElementPrototype);
736
+ patchSlotInsertAdjacentElement(hostElementPrototype);
737
+ patchSlotInsertAdjacentHTML(hostElementPrototype);
738
+ patchSlotInsertAdjacentText(hostElementPrototype);
739
+ patchInsertBefore(hostElementPrototype);
740
+ patchTextContent(hostElementPrototype);
741
+ patchChildSlotNodes(hostElementPrototype);
742
+ patchSlotRemoveChild(hostElementPrototype);
743
+ };
744
+ var patchCloneNode = (HostElementPrototype) => {
745
+ if (HostElementPrototype.__cloneNode) return;
746
+ const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;
747
+ HostElementPrototype.cloneNode = function(deep) {
748
+ const srcNode = this;
749
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
750
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
751
+ if (!isShadowDom && deep) {
752
+ let i2 = 0;
753
+ let slotted, nonStencilNode;
754
+ const stencilPrivates = [
755
+ "s-id",
756
+ "s-cr",
757
+ "s-lr",
758
+ "s-rc",
759
+ "s-sc",
760
+ "s-p",
761
+ "s-cn",
762
+ "s-sr",
763
+ "s-sn",
764
+ "s-hn",
765
+ "s-ol",
766
+ "s-nr",
767
+ "s-si",
768
+ "s-rf",
769
+ "s-scs"
770
+ ];
771
+ const childNodes = this.__childNodes || this.childNodes;
772
+ for (; i2 < childNodes.length; i2++) {
773
+ slotted = childNodes[i2]["s-nr"];
774
+ nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
775
+ if (slotted) {
776
+ if (clonedNode.__appendChild) {
777
+ clonedNode.__appendChild(slotted.cloneNode(true));
778
+ } else {
779
+ clonedNode.appendChild(slotted.cloneNode(true));
780
+ }
781
+ }
782
+ if (nonStencilNode) {
783
+ clonedNode.appendChild(childNodes[i2].cloneNode(true));
784
+ }
785
+ }
786
+ }
787
+ return clonedNode;
788
+ };
789
+ };
790
+ var patchSlotAppendChild = (HostElementPrototype) => {
791
+ if (HostElementPrototype.__appendChild) return;
792
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
793
+ HostElementPrototype.appendChild = function(newChild) {
794
+ const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
795
+ if (slotNode) {
796
+ addSlotRelocateNode(newChild, slotNode);
797
+ const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
798
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
799
+ const parent = internalCall(appendAfter, "parentNode");
800
+ const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
801
+ dispatchSlotChangeEvent(slotNode);
802
+ updateFallbackSlotVisibility(this);
803
+ return insertedNode;
804
+ }
805
+ return this.__appendChild(newChild);
806
+ };
807
+ };
808
+ var patchSlotRemoveChild = (ElementPrototype) => {
809
+ if (ElementPrototype.__removeChild) return;
810
+ ElementPrototype.__removeChild = ElementPrototype.removeChild;
811
+ ElementPrototype.removeChild = function(toRemove) {
812
+ if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
813
+ const childNodes = this.__childNodes || this.childNodes;
814
+ const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
815
+ if (slotNode && toRemove.isConnected) {
816
+ toRemove.remove();
817
+ updateFallbackSlotVisibility(this);
818
+ return;
819
+ }
820
+ }
821
+ return this.__removeChild(toRemove);
822
+ };
823
+ };
824
+ var patchSlotPrepend = (HostElementPrototype) => {
825
+ if (HostElementPrototype.__prepend) return;
826
+ HostElementPrototype.__prepend = HostElementPrototype.prepend;
827
+ HostElementPrototype.prepend = function(...newChildren) {
828
+ newChildren.forEach((newChild) => {
829
+ if (typeof newChild === "string") {
830
+ newChild = this.ownerDocument.createTextNode(newChild);
831
+ }
832
+ const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
833
+ const childNodes = internalCall(this, "childNodes");
834
+ const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
835
+ if (slotNode) {
836
+ addSlotRelocateNode(newChild, slotNode, true);
837
+ const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
838
+ const appendAfter = slotChildNodes[0];
839
+ const parent = internalCall(appendAfter, "parentNode");
840
+ const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
841
+ dispatchSlotChangeEvent(slotNode);
842
+ return toReturn;
843
+ }
844
+ if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
845
+ newChild.hidden = true;
846
+ }
847
+ return HostElementPrototype.__prepend(newChild);
848
+ });
849
+ };
850
+ };
851
+ var patchSlotAppend = (HostElementPrototype) => {
852
+ if (HostElementPrototype.__append) return;
853
+ HostElementPrototype.__append = HostElementPrototype.append;
854
+ HostElementPrototype.append = function(...newChildren) {
855
+ newChildren.forEach((newChild) => {
856
+ if (typeof newChild === "string") {
857
+ newChild = this.ownerDocument.createTextNode(newChild);
858
+ }
859
+ this.appendChild(newChild);
860
+ });
861
+ };
862
+ };
863
+ var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
864
+ if (HostElementPrototype.__insertAdjacentHTML) return;
865
+ const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
866
+ HostElementPrototype.insertAdjacentHTML = function(position, text) {
867
+ if (position !== "afterbegin" && position !== "beforeend") {
868
+ return originalInsertAdjacentHtml.call(this, position, text);
869
+ }
870
+ const container = this.ownerDocument.createElement("_");
871
+ let node;
872
+ container.innerHTML = text;
873
+ if (position === "afterbegin") {
874
+ while (node = container.firstChild) {
875
+ this.prepend(node);
876
+ }
877
+ } else if (position === "beforeend") {
878
+ while (node = container.firstChild) {
879
+ this.append(node);
880
+ }
881
+ }
882
+ };
883
+ };
884
+ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
885
+ HostElementPrototype.insertAdjacentText = function(position, text) {
886
+ this.insertAdjacentHTML(position, text);
887
+ };
888
+ };
889
+ var patchInsertBefore = (HostElementPrototype) => {
890
+ if (HostElementPrototype.__insertBefore) return;
891
+ const eleProto = HostElementPrototype;
892
+ if (eleProto.__insertBefore) return;
893
+ eleProto.__insertBefore = HostElementPrototype.insertBefore;
894
+ HostElementPrototype.insertBefore = function(newChild, currentChild) {
895
+ const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
896
+ const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
897
+ if (slotNode) {
898
+ let found = false;
899
+ slottedNodes.forEach((childNode) => {
900
+ if (childNode === currentChild || currentChild === null) {
901
+ found = true;
902
+ if (currentChild === null || slotName !== currentChild["s-sn"]) {
903
+ this.appendChild(newChild);
904
+ return;
905
+ }
906
+ if (slotName === currentChild["s-sn"]) {
907
+ addSlotRelocateNode(newChild, slotNode);
908
+ const parent = internalCall(currentChild, "parentNode");
909
+ internalCall(parent, "insertBefore")(newChild, currentChild);
910
+ dispatchSlotChangeEvent(slotNode);
911
+ }
912
+ return;
913
+ }
914
+ });
915
+ if (found) return newChild;
916
+ }
917
+ const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
918
+ if (parentNode && !this.isSameNode(parentNode)) {
919
+ return this.appendChild(newChild);
920
+ }
921
+ return this.__insertBefore(newChild, currentChild);
922
+ };
923
+ };
924
+ var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
925
+ if (HostElementPrototype.__insertAdjacentElement) return;
926
+ const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
927
+ HostElementPrototype.insertAdjacentElement = function(position, element) {
928
+ if (position !== "afterbegin" && position !== "beforeend") {
929
+ return originalInsertAdjacentElement.call(this, position, element);
930
+ }
931
+ if (position === "afterbegin") {
932
+ this.prepend(element);
933
+ return element;
934
+ } else if (position === "beforeend") {
935
+ this.append(element);
936
+ return element;
937
+ }
938
+ return element;
939
+ };
940
+ };
941
+ var patchTextContent = (hostElementPrototype) => {
942
+ patchHostOriginalAccessor("textContent", hostElementPrototype);
943
+ Object.defineProperty(hostElementPrototype, "textContent", {
944
+ get: function() {
945
+ let text = "";
946
+ const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
947
+ childNodes.forEach((node) => text += node.textContent || "");
948
+ return text;
949
+ },
950
+ set: function(value) {
951
+ const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
952
+ childNodes.forEach((node) => {
953
+ if (node["s-ol"]) node["s-ol"].remove();
954
+ node.remove();
955
+ });
956
+ this.insertAdjacentHTML("beforeend", value);
957
+ }
958
+ });
959
+ };
960
+ var patchChildSlotNodes = (elm) => {
961
+ class FakeNodeList extends Array {
962
+ item(n) {
963
+ return this[n];
964
+ }
965
+ }
966
+ patchHostOriginalAccessor("children", elm);
967
+ Object.defineProperty(elm, "children", {
968
+ get() {
969
+ return this.childNodes.filter((n) => n.nodeType === 1);
970
+ }
971
+ });
972
+ Object.defineProperty(elm, "childElementCount", {
973
+ get() {
974
+ return this.children.length;
975
+ }
976
+ });
977
+ patchHostOriginalAccessor("firstChild", elm);
978
+ Object.defineProperty(elm, "firstChild", {
979
+ get() {
980
+ return this.childNodes[0];
981
+ }
982
+ });
983
+ patchHostOriginalAccessor("lastChild", elm);
984
+ Object.defineProperty(elm, "lastChild", {
985
+ get() {
986
+ return this.childNodes[this.childNodes.length - 1];
987
+ }
988
+ });
989
+ patchHostOriginalAccessor("childNodes", elm);
990
+ Object.defineProperty(elm, "childNodes", {
991
+ get() {
992
+ const result = new FakeNodeList();
993
+ result.push(...getSlottedChildNodes(this.__childNodes));
994
+ return result;
995
+ }
996
+ });
997
+ };
998
+ var patchSlottedNode = (node) => {
999
+ if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
1000
+ patchNextSibling(node);
1001
+ patchPreviousSibling(node);
1002
+ patchParentNode(node);
1003
+ if (node.nodeType === Node.ELEMENT_NODE) {
1004
+ patchNextElementSibling(node);
1005
+ patchPreviousElementSibling(node);
1006
+ }
1007
+ };
1008
+ var patchNextSibling = (node) => {
1009
+ if (!node || node.__nextSibling) return;
1010
+ patchHostOriginalAccessor("nextSibling", node);
1011
+ Object.defineProperty(node, "nextSibling", {
1012
+ get: function() {
1013
+ var _a;
1014
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1015
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1016
+ if (parentNodes && index > -1) {
1017
+ return parentNodes[index + 1];
1018
+ }
1019
+ return this.__nextSibling;
1020
+ }
1021
+ });
1022
+ };
1023
+ var patchNextElementSibling = (element) => {
1024
+ if (!element || element.__nextElementSibling) return;
1025
+ patchHostOriginalAccessor("nextElementSibling", element);
1026
+ Object.defineProperty(element, "nextElementSibling", {
1027
+ get: function() {
1028
+ var _a;
1029
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1030
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1031
+ if (parentEles && index > -1) {
1032
+ return parentEles[index + 1];
1033
+ }
1034
+ return this.__nextElementSibling;
1035
+ }
1036
+ });
1037
+ };
1038
+ var patchPreviousSibling = (node) => {
1039
+ if (!node || node.__previousSibling) return;
1040
+ patchHostOriginalAccessor("previousSibling", node);
1041
+ Object.defineProperty(node, "previousSibling", {
1042
+ get: function() {
1043
+ var _a;
1044
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1045
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1046
+ if (parentNodes && index > -1) {
1047
+ return parentNodes[index - 1];
1048
+ }
1049
+ return this.__previousSibling;
1050
+ }
1051
+ });
1052
+ };
1053
+ var patchPreviousElementSibling = (element) => {
1054
+ if (!element || element.__previousElementSibling) return;
1055
+ patchHostOriginalAccessor("previousElementSibling", element);
1056
+ Object.defineProperty(element, "previousElementSibling", {
1057
+ get: function() {
1058
+ var _a;
1059
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1060
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1061
+ if (parentNodes && index > -1) {
1062
+ return parentNodes[index - 1];
1063
+ }
1064
+ return this.__previousElementSibling;
1065
+ }
1066
+ });
1067
+ };
1068
+ var patchParentNode = (node) => {
1069
+ if (!node || node.__parentNode) return;
1070
+ patchHostOriginalAccessor("parentNode", node);
1071
+ Object.defineProperty(node, "parentNode", {
1072
+ get: function() {
1073
+ var _a;
1074
+ return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
1075
+ },
1076
+ set: function(value) {
1077
+ this.__parentNode = value;
1078
+ }
1079
+ });
1080
+ };
1081
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1082
+ var validNodesPatches = [
1083
+ "childNodes",
1084
+ "firstChild",
1085
+ "lastChild",
1086
+ "nextSibling",
1087
+ "previousSibling",
1088
+ "textContent",
1089
+ "parentNode"
1090
+ ];
1091
+ function patchHostOriginalAccessor(accessorName, node) {
1092
+ if (!globalThis.Node || !globalThis.Element) {
1093
+ return;
1094
+ }
1095
+ let accessor;
1096
+ if (validElementPatches.includes(accessorName)) {
1097
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1098
+ } else if (validNodesPatches.includes(accessorName)) {
1099
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1100
+ }
1101
+ if (!accessor) {
1102
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1103
+ }
1104
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1105
+ }
1106
+ function internalCall(node, method) {
1107
+ if ("__" + method in node) {
1108
+ const toReturn = node["__" + method];
1109
+ if (typeof toReturn !== "function") return toReturn;
1110
+ return toReturn.bind(node);
1111
+ } else {
1112
+ if (typeof node[method] !== "function") return node[method];
1113
+ return node[method].bind(node);
1114
+ }
1115
+ }
1116
+ var createTime = (fnName, tagName = "") => {
1117
+ {
1118
+ return () => {
1119
+ return;
1120
+ };
1121
+ }
1122
+ };
1123
+ var uniqueTime = (key, measureText) => {
1124
+ {
1125
+ return () => {
1126
+ return;
1127
+ };
1128
+ }
1129
+ };
1130
+
1131
+ // src/utils/query-nonce-meta-tag-content.ts
1132
+ function queryNonceMetaTagContent(doc) {
1133
+ var _a, _b, _c;
1134
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
1135
+ }
1136
+
1137
+ // src/runtime/styles.ts
1138
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1139
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1140
+ let style = styles.get(scopeId2);
1141
+ if (supportsConstructableStylesheets && allowCS) {
1142
+ style = style || new CSSStyleSheet();
1143
+ if (typeof style === "string") {
1144
+ style = cssText;
1145
+ } else {
1146
+ style.replaceSync(cssText);
1147
+ }
1148
+ } else {
1149
+ style = cssText;
1150
+ }
1151
+ styles.set(scopeId2, style);
1152
+ };
1153
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1154
+ var _a, _b, _c;
1155
+ const scopeId2 = getScopeId(cmpMeta);
1156
+ const style = styles.get(scopeId2);
1157
+ if (!win.document) {
1158
+ return scopeId2;
1159
+ }
1160
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1161
+ if (style) {
1162
+ if (typeof style === "string") {
1163
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1164
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1165
+ let styleElm;
1166
+ if (!appliedStyles) {
1167
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1168
+ }
1169
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
1170
+ if (existingStyleElm) {
1171
+ existingStyleElm.textContent = style;
1172
+ } else if (!appliedStyles.has(scopeId2)) {
1173
+ styleElm = win.document.createElement("style");
1174
+ styleElm.textContent = style;
1175
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1176
+ if (nonce != null) {
1177
+ styleElm.setAttribute("nonce", nonce);
1178
+ }
1179
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1180
+ if (styleContainerNode.nodeName === "HEAD") {
1181
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1182
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1183
+ styleContainerNode.insertBefore(
1184
+ styleElm,
1185
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1186
+ );
1187
+ } else if ("host" in styleContainerNode) {
1188
+ if (supportsConstructableStylesheets) {
1189
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
1190
+ const stylesheet = new currentWindow.CSSStyleSheet();
1191
+ stylesheet.replaceSync(style);
1192
+ if (supportsMutableAdoptedStyleSheets) {
1193
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
1194
+ } else {
1195
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1196
+ }
1197
+ } else {
1198
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1199
+ if (existingStyleContainer && true) {
1200
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
1201
+ } else {
1202
+ styleContainerNode.prepend(styleElm);
1203
+ }
1204
+ }
1205
+ } else {
1206
+ styleContainerNode.append(styleElm);
1207
+ }
1208
+ }
1209
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1210
+ styleContainerNode.insertBefore(styleElm, null);
1211
+ }
1212
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1213
+ styleElm.textContent += SLOT_FB_CSS;
1214
+ }
1215
+ if (appliedStyles) {
1216
+ appliedStyles.add(scopeId2);
1217
+ }
1218
+ }
1219
+ } else {
1220
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1221
+ if (!appliedStyles) {
1222
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1223
+ }
1224
+ if (!appliedStyles.has(scopeId2)) {
1225
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
1226
+ let stylesheet;
1227
+ if (style.constructor === currentWindow.CSSStyleSheet) {
1228
+ stylesheet = style;
1229
+ } else {
1230
+ stylesheet = new currentWindow.CSSStyleSheet();
1231
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
1232
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
1233
+ }
1234
+ }
1235
+ if (supportsMutableAdoptedStyleSheets) {
1236
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
1237
+ } else {
1238
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
1239
+ }
1240
+ appliedStyles.add(scopeId2);
1241
+ if ("host" in styleContainerNode) {
1242
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
1243
+ if (ssrStyleElm) {
1244
+ writeTask(() => ssrStyleElm.remove());
1245
+ }
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ return scopeId2;
1251
+ };
1252
+ var attachStyles = (hostRef) => {
1253
+ const cmpMeta = hostRef.$cmpMeta$;
1254
+ const elm = hostRef.$hostElement$;
1255
+ const flags = cmpMeta.$flags$;
1256
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1257
+ const scopeId2 = addStyle(
1258
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1259
+ cmpMeta);
1260
+ if (flags & 10 /* needsScopedEncapsulation */) {
1261
+ elm["s-sc"] = scopeId2;
1262
+ elm.classList.add(scopeId2 + "-h");
1263
+ }
1264
+ endAttachStyles();
1265
+ };
1266
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1267
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1268
+ var hydrateScopedToShadow = () => {
1269
+ if (!win.document) {
1270
+ return;
1271
+ }
1272
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1273
+ let i2 = 0;
1274
+ for (; i2 < styles2.length; i2++) {
1275
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1276
+ }
1277
+ };
1278
+ var isComplexType = (o) => {
1279
+ o = typeof o;
1280
+ return o === "object" || o === "function";
1281
+ };
1282
+
1283
+ // src/runtime/vdom/h.ts
1284
+ var h = (nodeName, vnodeData, ...children) => {
1285
+ if (typeof nodeName === "string") {
1286
+ nodeName = transformTag(nodeName);
1287
+ }
1288
+ let child = null;
1289
+ let key = null;
1290
+ let simple = false;
1291
+ let lastSimple = false;
1292
+ const vNodeChildren = [];
1293
+ const walk = (c) => {
1294
+ for (let i2 = 0; i2 < c.length; i2++) {
1295
+ child = c[i2];
1296
+ if (Array.isArray(child)) {
1297
+ walk(child);
1298
+ } else if (child != null && typeof child !== "boolean") {
1299
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
1300
+ child = String(child);
1301
+ }
1302
+ if (simple && lastSimple) {
1303
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
1304
+ } else {
1305
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
1306
+ }
1307
+ lastSimple = simple;
1308
+ }
1309
+ }
1310
+ };
1311
+ walk(children);
1312
+ if (vnodeData) {
1313
+ if (vnodeData.key) {
1314
+ key = vnodeData.key;
1315
+ }
1316
+ {
1317
+ const classData = vnodeData.className || vnodeData.class;
1318
+ if (classData) {
1319
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
1320
+ }
1321
+ }
1322
+ }
1323
+ if (typeof nodeName === "function") {
1324
+ return nodeName(
1325
+ vnodeData === null ? {} : vnodeData,
1326
+ vNodeChildren,
1327
+ vdomFnUtils
1328
+ );
1329
+ }
1330
+ const vnode = newVNode(nodeName, null);
1331
+ vnode.$attrs$ = vnodeData;
1332
+ if (vNodeChildren.length > 0) {
1333
+ vnode.$children$ = vNodeChildren;
1334
+ }
1335
+ {
1336
+ vnode.$key$ = key;
1337
+ }
1338
+ return vnode;
1339
+ };
1340
+ var newVNode = (tag, text) => {
1341
+ const vnode = {
1342
+ $flags$: 0,
1343
+ $tag$: tag,
1344
+ // Normalize undefined to null to prevent rendering "undefined" as text
1345
+ $text$: text != null ? text : null,
1346
+ $elm$: null,
1347
+ $children$: null
1348
+ };
1349
+ {
1350
+ vnode.$attrs$ = null;
1351
+ }
1352
+ {
1353
+ vnode.$key$ = null;
1354
+ }
1355
+ return vnode;
1356
+ };
1357
+ var Host = {};
1358
+ var isHost = (node) => node && node.$tag$ === Host;
1359
+ var vdomFnUtils = {
1360
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
1361
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
1362
+ };
1363
+ var convertToPublic = (node) => ({
1364
+ vattrs: node.$attrs$,
1365
+ vchildren: node.$children$,
1366
+ vkey: node.$key$,
1367
+ vname: node.$name$,
1368
+ vtag: node.$tag$,
1369
+ vtext: node.$text$
1370
+ });
1371
+ var convertToPrivate = (node) => {
1372
+ if (typeof node.vtag === "function") {
1373
+ const vnodeData = { ...node.vattrs };
1374
+ if (node.vkey) {
1375
+ vnodeData.key = node.vkey;
1376
+ }
1377
+ if (node.vname) {
1378
+ vnodeData.name = node.vname;
1379
+ }
1380
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
1381
+ }
1382
+ const vnode = newVNode(node.vtag, node.vtext);
1383
+ vnode.$attrs$ = node.vattrs;
1384
+ vnode.$children$ = node.vchildren;
1385
+ vnode.$key$ = node.vkey;
1386
+ vnode.$name$ = node.vname;
1387
+ return vnode;
1388
+ };
1389
+
1390
+ // src/runtime/client-hydrate.ts
1391
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1392
+ var _a, _b, _c, _d;
1393
+ const endHydrate = createTime("hydrateClient", tagName);
1394
+ const shadowRoot = hostElm.shadowRoot;
1395
+ const childRenderNodes = [];
1396
+ const slotNodes = [];
1397
+ const slottedNodes = [];
1398
+ const shadowRootNodes = shadowRoot ? [] : null;
1399
+ const vnode = newVNode(tagName, null);
1400
+ vnode.$elm$ = hostElm;
1401
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
1402
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1403
+ }
1404
+ hostElm[HYDRATE_ID] = hostId;
1405
+ hostElm.removeAttribute(HYDRATE_ID);
1406
+ hostRef.$vnode$ = clientHydrate(
1407
+ vnode,
1408
+ childRenderNodes,
1409
+ slotNodes,
1410
+ shadowRootNodes,
1411
+ hostElm,
1412
+ hostElm,
1413
+ hostId,
1414
+ slottedNodes
1415
+ );
1416
+ let crIndex = 0;
1417
+ const crLength = childRenderNodes.length;
1418
+ let childRenderNode;
1419
+ for (crIndex; crIndex < crLength; crIndex++) {
1420
+ childRenderNode = childRenderNodes[crIndex];
1421
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1422
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1423
+ const node = childRenderNode.$elm$;
1424
+ if (!shadowRoot) {
1425
+ node["s-hn"] = transformTag(tagName).toUpperCase();
1426
+ if (childRenderNode.$tag$ === "slot") {
1427
+ node["s-cr"] = hostElm["s-cr"];
1428
+ }
1429
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1430
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
1431
+ if (cmpMeta) {
1432
+ const scopeId3 = getScopeId(
1433
+ cmpMeta.$cmpMeta$);
1434
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
1435
+ if (styleSheet) {
1436
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
1437
+ }
1438
+ }
1439
+ }
1440
+ if (childRenderNode.$tag$ === "slot") {
1441
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
1442
+ if (childRenderNode.$children$) {
1443
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1444
+ if (!childRenderNode.$elm$.childNodes.length) {
1445
+ childRenderNode.$children$.forEach((c) => {
1446
+ childRenderNode.$elm$.appendChild(c.$elm$);
1447
+ });
1448
+ }
1449
+ } else {
1450
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
1451
+ }
1452
+ }
1453
+ if (orgLocationNode && orgLocationNode.isConnected) {
1454
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
1455
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1456
+ }
1457
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1458
+ if (!shadowRoot) {
1459
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1460
+ }
1461
+ }
1462
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
1463
+ plt.$orgLocNodes$.delete(orgLocationId);
1464
+ }
1465
+ }
1466
+ const hosts = [];
1467
+ const snLen = slottedNodes.length;
1468
+ let snIndex = 0;
1469
+ let slotGroup;
1470
+ let snGroupIdx;
1471
+ let snGroupLen;
1472
+ let slottedItem;
1473
+ let currentPos = 0;
1474
+ for (snIndex; snIndex < snLen; snIndex++) {
1475
+ slotGroup = slottedNodes[snIndex];
1476
+ if (!slotGroup || !slotGroup.length) continue;
1477
+ snGroupLen = slotGroup.length;
1478
+ snGroupIdx = 0;
1479
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1480
+ slottedItem = slotGroup[snGroupIdx];
1481
+ if (!hosts[slottedItem.hostId]) {
1482
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1483
+ }
1484
+ if (!hosts[slottedItem.hostId]) continue;
1485
+ const hostEle = hosts[slottedItem.hostId];
1486
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1487
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
1488
+ }
1489
+ if (!hostEle.shadowRoot || !shadowRoot) {
1490
+ if (!slottedItem.slot["s-cr"]) {
1491
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1492
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1493
+ slottedItem.slot["s-cr"] = hostEle;
1494
+ } else {
1495
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1496
+ }
1497
+ }
1498
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
1499
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
1500
+ slottedItem.node.removeAttribute("slot");
1501
+ }
1502
+ {
1503
+ patchSlottedNode(slottedItem.node);
1504
+ }
1505
+ }
1506
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
1507
+ }
1508
+ }
1509
+ if (shadowRoot && !shadowRoot.childNodes.length) {
1510
+ let rnIdex = 0;
1511
+ const rnLen = shadowRootNodes.length;
1512
+ if (rnLen) {
1513
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
1514
+ const node = shadowRootNodes[rnIdex];
1515
+ if (node) {
1516
+ shadowRoot.appendChild(node);
1517
+ }
1518
+ }
1519
+ Array.from(hostElm.childNodes).forEach((node) => {
1520
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
1521
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
1522
+ node.removeAttribute("hidden");
1523
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
1524
+ node.parentNode.removeChild(node);
1525
+ }
1526
+ }
1527
+ });
1528
+ }
1529
+ }
1530
+ hostRef.$hostElement$ = hostElm;
1531
+ endHydrate();
1532
+ };
1533
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1534
+ let childNodeType;
1535
+ let childIdSplt;
1536
+ let childVNode;
1537
+ let i2;
1538
+ if (node.nodeType === 1 /* ElementNode */) {
1539
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1540
+ if (childNodeType) {
1541
+ childIdSplt = childNodeType.split(".");
1542
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1543
+ childVNode = createSimpleVNode({
1544
+ $flags$: 0,
1545
+ $hostId$: childIdSplt[0],
1546
+ $nodeId$: childIdSplt[1],
1547
+ $depth$: childIdSplt[2],
1548
+ $index$: childIdSplt[3],
1549
+ $tag$: node.tagName.toLowerCase(),
1550
+ $elm$: node,
1551
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1552
+ // won't try to reconcile them. Classes set on the node will be blown away.
1553
+ $attrs$: { class: node.className || "" }
1554
+ });
1555
+ childRenderNodes.push(childVNode);
1556
+ node.removeAttribute(HYDRATE_CHILD_ID);
1557
+ if (!parentVNode.$children$) {
1558
+ parentVNode.$children$ = [];
1559
+ }
1560
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1561
+ if (typeof slotName === "string") {
1562
+ if (childVNode.$tag$ === "slot-fb") {
1563
+ addSlot(
1564
+ slotName,
1565
+ childIdSplt[2],
1566
+ childVNode,
1567
+ node,
1568
+ parentVNode,
1569
+ childRenderNodes,
1570
+ slotNodes,
1571
+ shadowRootNodes,
1572
+ slottedNodes
1573
+ );
1574
+ }
1575
+ childVNode.$elm$["s-sn"] = slotName;
1576
+ childVNode.$elm$.removeAttribute("s-sn");
1577
+ }
1578
+ if (childVNode.$index$ !== void 0) {
1579
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1580
+ }
1581
+ parentVNode = childVNode;
1582
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1583
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1584
+ }
1585
+ }
1586
+ }
1587
+ if (node.shadowRoot) {
1588
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1589
+ clientHydrate(
1590
+ parentVNode,
1591
+ childRenderNodes,
1592
+ slotNodes,
1593
+ shadowRootNodes,
1594
+ hostElm,
1595
+ node.shadowRoot.childNodes[i2],
1596
+ hostId,
1597
+ slottedNodes
1598
+ );
1599
+ }
1600
+ }
1601
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1602
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1603
+ clientHydrate(
1604
+ parentVNode,
1605
+ childRenderNodes,
1606
+ slotNodes,
1607
+ shadowRootNodes,
1608
+ hostElm,
1609
+ nonShadowNodes[i2],
1610
+ hostId,
1611
+ slottedNodes
1612
+ );
1613
+ }
1614
+ } else if (node.nodeType === 8 /* CommentNode */) {
1615
+ childIdSplt = node.nodeValue.split(".");
1616
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1617
+ childNodeType = childIdSplt[0];
1618
+ childVNode = createSimpleVNode({
1619
+ $hostId$: childIdSplt[1],
1620
+ $nodeId$: childIdSplt[2],
1621
+ $depth$: childIdSplt[3],
1622
+ $index$: childIdSplt[4] || "0",
1623
+ $elm$: node,
1624
+ $attrs$: null,
1625
+ $children$: null,
1626
+ $key$: null,
1627
+ $name$: null,
1628
+ $tag$: null,
1629
+ $text$: null
1630
+ });
1631
+ if (childNodeType === TEXT_NODE_ID) {
1632
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1633
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1634
+ childVNode.$text$ = childVNode.$elm$.textContent;
1635
+ childRenderNodes.push(childVNode);
1636
+ node.remove();
1637
+ if (hostId === childVNode.$hostId$) {
1638
+ if (!parentVNode.$children$) {
1639
+ parentVNode.$children$ = [];
1640
+ }
1641
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1642
+ }
1643
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1644
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1645
+ }
1646
+ }
1647
+ } else if (childNodeType === COMMENT_NODE_ID) {
1648
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1649
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1650
+ childRenderNodes.push(childVNode);
1651
+ node.remove();
1652
+ }
1653
+ } else if (childVNode.$hostId$ === hostId) {
1654
+ if (childNodeType === SLOT_NODE_ID) {
1655
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1656
+ addSlot(
1657
+ slotName,
1658
+ childIdSplt[2],
1659
+ childVNode,
1660
+ node,
1661
+ parentVNode,
1662
+ childRenderNodes,
1663
+ slotNodes,
1664
+ shadowRootNodes,
1665
+ slottedNodes
1666
+ );
1667
+ } else if (childNodeType === CONTENT_REF_ID) {
1668
+ if (shadowRootNodes) {
1669
+ node.remove();
1670
+ }
1671
+ }
1672
+ }
1673
+ }
1674
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1675
+ const vnode = newVNode(null, node.textContent);
1676
+ vnode.$elm$ = node;
1677
+ vnode.$index$ = "0";
1678
+ parentVNode.$children$ = [vnode];
1679
+ }
1680
+ return parentVNode;
1681
+ };
1682
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1683
+ if (node.nodeType === 1 /* ElementNode */) {
1684
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1685
+ if (componentId) {
1686
+ orgLocNodes.set(componentId, node);
1687
+ }
1688
+ let i2 = 0;
1689
+ if (node.shadowRoot) {
1690
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1691
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1692
+ }
1693
+ }
1694
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1695
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1696
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1697
+ }
1698
+ } else if (node.nodeType === 8 /* CommentNode */) {
1699
+ const childIdSplt = node.nodeValue.split(".");
1700
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1701
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1702
+ node.nodeValue = "";
1703
+ node["s-en"] = childIdSplt[3];
1704
+ }
1705
+ }
1706
+ };
1707
+ var createSimpleVNode = (vnode) => {
1708
+ const defaultVNode = {
1709
+ $flags$: 0,
1710
+ $hostId$: null,
1711
+ $nodeId$: null,
1712
+ $depth$: null,
1713
+ $index$: "0",
1714
+ $elm$: null,
1715
+ $attrs$: null,
1716
+ $children$: null,
1717
+ $key$: null,
1718
+ $name$: null,
1719
+ $tag$: null,
1720
+ $text$: null
1721
+ };
1722
+ return { ...defaultVNode, ...vnode };
1723
+ };
1724
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1725
+ node["s-sr"] = true;
1726
+ childVNode.$name$ = slotName || null;
1727
+ childVNode.$tag$ = "slot";
1728
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1729
+ if (shadowRootNodes && win.document) {
1730
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1731
+ if (childVNode.$name$) {
1732
+ childVNode.$elm$.setAttribute("name", slotName);
1733
+ }
1734
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1735
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1736
+ } else {
1737
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1738
+ }
1739
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1740
+ node.remove();
1741
+ if (childVNode.$depth$ === "0") {
1742
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1743
+ }
1744
+ } else {
1745
+ const slot = childVNode.$elm$;
1746
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1747
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1748
+ patchSlotNode(node);
1749
+ if (shouldMove) {
1750
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1751
+ }
1752
+ }
1753
+ childRenderNodes.push(childVNode);
1754
+ slotNodes.push(childVNode);
1755
+ if (!parentVNode.$children$) {
1756
+ parentVNode.$children$ = [];
1757
+ }
1758
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1759
+ }
1760
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1761
+ var _a, _b;
1762
+ let slottedNode = slotNode.nextSibling;
1763
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1764
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1765
+ do {
1766
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1767
+ slottedNode["s-sn"] = slotName;
1768
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1769
+ }
1770
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1771
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1772
+ };
1773
+ var findCorrespondingNode = (node, type) => {
1774
+ let sibling = node;
1775
+ do {
1776
+ sibling = sibling.nextSibling;
1777
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1778
+ return sibling;
1779
+ };
1780
+
1781
+ // src/runtime/normalize-watchers.ts
1782
+ var normalizeWatchers = (raw) => {
1783
+ if (!raw) return void 0;
1784
+ const keys = Object.keys(raw);
1785
+ if (keys.length === 0) return void 0;
1786
+ let hasLegacy = false;
1787
+ for (const propName of keys) {
1788
+ if (hasLegacy) break;
1789
+ for (const h2 of raw[propName]) {
1790
+ if (typeof h2 === "string") {
1791
+ hasLegacy = true;
1792
+ break;
1793
+ }
1794
+ }
1795
+ }
1796
+ if (!hasLegacy) return raw;
1797
+ const out = {};
1798
+ for (const propName of keys) {
1799
+ out[propName] = raw[propName].map(
1800
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
1801
+ );
1802
+ }
1803
+ return out;
1804
+ };
1805
+
1806
+ // src/utils/remote-value.ts
1807
+ var RemoteValue = class _RemoteValue {
1808
+ /**
1809
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1810
+ *
1811
+ * @param serialized The serialized LocalValue object
1812
+ * @returns The original JavaScript value/object
1813
+ */
1814
+ static fromLocalValue(serialized) {
1815
+ const type = serialized[TYPE_CONSTANT];
1816
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1817
+ switch (type) {
1818
+ case "string" /* String */:
1819
+ return value;
1820
+ case "boolean" /* Boolean */:
1821
+ return value;
1822
+ case "bigint" /* BigInt */:
1823
+ return BigInt(value);
1824
+ case "undefined" /* Undefined */:
1825
+ return void 0;
1826
+ case "null" /* Null */:
1827
+ return null;
1828
+ case "number" /* Number */:
1829
+ if (value === "NaN") return NaN;
1830
+ if (value === "-0") return -0;
1831
+ if (value === "Infinity") return Infinity;
1832
+ if (value === "-Infinity") return -Infinity;
1833
+ return value;
1834
+ case "array" /* Array */:
1835
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1836
+ case "date" /* Date */:
1837
+ return new Date(value);
1838
+ case "map" /* Map */:
1839
+ const map = /* @__PURE__ */ new Map();
1840
+ for (const [key, val] of value) {
1841
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1842
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1843
+ map.set(deserializedKey, deserializedValue);
1844
+ }
1845
+ return map;
1846
+ case "object" /* Object */:
1847
+ const obj = {};
1848
+ for (const [key, val] of value) {
1849
+ obj[key] = _RemoteValue.fromLocalValue(val);
1850
+ }
1851
+ return obj;
1852
+ case "regexp" /* RegularExpression */:
1853
+ const { pattern, flags } = value;
1854
+ return new RegExp(pattern, flags);
1855
+ case "set" /* Set */:
1856
+ const set = /* @__PURE__ */ new Set();
1857
+ for (const item of value) {
1858
+ set.add(_RemoteValue.fromLocalValue(item));
1859
+ }
1860
+ return set;
1861
+ case "symbol" /* Symbol */:
1862
+ return Symbol(value);
1863
+ default:
1864
+ throw new Error(`Unsupported type: ${type}`);
1865
+ }
1866
+ }
1867
+ /**
1868
+ * Utility method to deserialize multiple LocalValues at once
1869
+ *
1870
+ * @param serializedValues Array of serialized LocalValue objects
1871
+ * @returns Array of deserialized JavaScript values
1872
+ */
1873
+ static fromLocalValueArray(serializedValues) {
1874
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1875
+ }
1876
+ /**
1877
+ * Verifies if the given object matches the structure of a serialized LocalValue
1878
+ *
1879
+ * @param obj Object to verify
1880
+ * @returns boolean indicating if the object has LocalValue structure
1881
+ */
1882
+ static isLocalValueObject(obj) {
1883
+ if (typeof obj !== "object" || obj === null) {
1884
+ return false;
1885
+ }
1886
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1887
+ return false;
1888
+ }
1889
+ const type = obj[TYPE_CONSTANT];
1890
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1891
+ if (!hasTypeProperty) {
1892
+ return false;
1893
+ }
1894
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1895
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1896
+ }
1897
+ return true;
1898
+ }
1899
+ };
1900
+
1901
+ // src/utils/serialize.ts
1902
+ function decodeBase64Unicode(base64) {
1903
+ const binary = atob(base64);
1904
+ const bytes = new Uint8Array(binary.length);
1905
+ for (let i2 = 0; i2 < binary.length; i2++) {
1906
+ bytes[i2] = binary.charCodeAt(i2);
1907
+ }
1908
+ return new TextDecoder().decode(bytes);
1909
+ }
1910
+ function deserializeProperty(value) {
1911
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1912
+ return value;
1913
+ }
1914
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
1915
+ }
1916
+
1917
+ // src/runtime/parse-property-value.ts
1918
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1919
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1920
+ propValue = deserializeProperty(propValue);
1921
+ return propValue;
1922
+ }
1923
+ if (propValue != null && !isComplexType(propValue)) {
1924
+ if (propType & 4 /* Boolean */) {
1925
+ if (isFormAssociated && typeof propValue === "string") {
1926
+ return propValue === "" || !!propValue;
1927
+ } else {
1928
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1929
+ }
1930
+ }
1931
+ if (propType & 2 /* Number */) {
1932
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1933
+ }
1934
+ if (propType & 1 /* String */) {
1935
+ return String(propValue);
1936
+ }
1937
+ return propValue;
1938
+ }
1939
+ return propValue;
1940
+ };
1941
+ var getElement = (ref) => {
1942
+ var _a;
1943
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1944
+ };
1945
+
1946
+ // src/runtime/event-emitter.ts
1947
+ var createEvent = (ref, name, flags) => {
1948
+ const elm = getElement(ref);
1949
+ return {
1950
+ emit: (detail) => {
1951
+ return emitEvent(elm, name, {
1952
+ bubbles: !!(flags & 4 /* Bubbles */),
1953
+ composed: !!(flags & 2 /* Composed */),
1954
+ cancelable: !!(flags & 1 /* Cancellable */),
1955
+ detail
1956
+ });
1957
+ }
1958
+ };
1959
+ };
1960
+ var emitEvent = (elm, name, opts) => {
1961
+ const ev = plt.ce(name, opts);
1962
+ elm.dispatchEvent(ev);
1963
+ return ev;
1964
+ };
1965
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1966
+ if (oldValue === newValue) {
1967
+ return;
1968
+ }
1969
+ let isProp = isMemberInElement(elm, memberName);
1970
+ let ln = memberName.toLowerCase();
1971
+ if (memberName === "class") {
1972
+ const classList = elm.classList;
1973
+ const oldClasses = parseClassList(oldValue);
1974
+ let newClasses = parseClassList(newValue);
1975
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1976
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1977
+ newClasses.push(scopeId2);
1978
+ oldClasses.forEach((c) => {
1979
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1980
+ });
1981
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1982
+ classList.add(...newClasses);
1983
+ } else {
1984
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1985
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1986
+ }
1987
+ } else if (memberName === "style") {
1988
+ {
1989
+ for (const prop in oldValue) {
1990
+ if (!newValue || newValue[prop] == null) {
1991
+ if (prop.includes("-")) {
1992
+ elm.style.removeProperty(prop);
1993
+ } else {
1994
+ elm.style[prop] = "";
1995
+ }
1996
+ }
1997
+ }
1998
+ }
1999
+ for (const prop in newValue) {
2000
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
2001
+ if (prop.includes("-")) {
2002
+ elm.style.setProperty(prop, newValue[prop]);
2003
+ } else {
2004
+ elm.style[prop] = newValue[prop];
2005
+ }
2006
+ }
2007
+ }
2008
+ } else if (memberName === "key") ; else if (memberName === "ref") {
2009
+ if (newValue) {
2010
+ queueRefAttachment(newValue, elm);
2011
+ }
2012
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
2013
+ if (memberName[2] === "-") {
2014
+ memberName = memberName.slice(3);
2015
+ } else if (isMemberInElement(win, ln)) {
2016
+ memberName = ln.slice(2);
2017
+ } else {
2018
+ memberName = ln[2] + memberName.slice(3);
2019
+ }
2020
+ if (oldValue || newValue) {
2021
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
2022
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
2023
+ if (oldValue) {
2024
+ plt.rel(elm, memberName, oldValue, capture);
2025
+ }
2026
+ if (newValue) {
2027
+ plt.ael(elm, memberName, newValue, capture);
2028
+ }
2029
+ }
2030
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
2031
+ const propName = memberName.slice(5);
2032
+ let attrName;
2033
+ {
2034
+ const hostRef = getHostRef(elm);
2035
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
2036
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
2037
+ if (memberMeta && memberMeta[1]) {
2038
+ attrName = memberMeta[1];
2039
+ }
2040
+ }
2041
+ }
2042
+ if (!attrName) {
2043
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2044
+ }
2045
+ if (newValue == null || newValue === false) {
2046
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
2047
+ elm.removeAttribute(attrName);
2048
+ }
2049
+ } else {
2050
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
2051
+ }
2052
+ return;
2053
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
2054
+ const propName = memberName.slice(5);
2055
+ try {
2056
+ elm[propName] = newValue;
2057
+ } catch (e) {
2058
+ }
2059
+ return;
2060
+ } else {
2061
+ const isComplex = isComplexType(newValue);
2062
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
2063
+ try {
2064
+ if (!elm.tagName.includes("-")) {
2065
+ const n = newValue == null ? "" : newValue;
2066
+ if (memberName === "list") {
2067
+ isProp = false;
2068
+ } else if (oldValue == null || elm[memberName] !== n) {
2069
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
2070
+ elm[memberName] = n;
2071
+ } else {
2072
+ elm.setAttribute(memberName, n);
2073
+ }
2074
+ }
2075
+ } else if (elm[memberName] !== newValue) {
2076
+ elm[memberName] = newValue;
2077
+ }
2078
+ } catch (e) {
2079
+ }
2080
+ }
2081
+ let xlink = false;
2082
+ {
2083
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
2084
+ memberName = ln;
2085
+ xlink = true;
2086
+ }
2087
+ }
2088
+ if (newValue == null || newValue === false) {
2089
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
2090
+ if (xlink) {
2091
+ elm.removeAttributeNS(XLINK_NS, memberName);
2092
+ } else {
2093
+ elm.removeAttribute(memberName);
2094
+ }
2095
+ }
2096
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
2097
+ newValue = newValue === true ? "" : newValue;
2098
+ if (xlink) {
2099
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
2100
+ } else {
2101
+ elm.setAttribute(memberName, newValue);
2102
+ }
2103
+ }
2104
+ }
2105
+ };
2106
+ var parseClassListRegex = /\s/;
2107
+ var parseClassList = (value) => {
2108
+ if (typeof value === "object" && value && "baseVal" in value) {
2109
+ value = value.baseVal;
2110
+ }
2111
+ if (!value || typeof value !== "string") {
2112
+ return [];
2113
+ }
2114
+ return value.split(parseClassListRegex);
2115
+ };
2116
+ var CAPTURE_EVENT_SUFFIX = "Capture";
2117
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
2118
+
2119
+ // src/runtime/vdom/update-element.ts
2120
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
2121
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
2122
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
2123
+ const newVnodeAttrs = newVnode.$attrs$ || {};
2124
+ {
2125
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
2126
+ if (!(memberName in newVnodeAttrs)) {
2127
+ setAccessor(
2128
+ elm,
2129
+ memberName,
2130
+ oldVnodeAttrs[memberName],
2131
+ void 0,
2132
+ isSvgMode2,
2133
+ newVnode.$flags$,
2134
+ isInitialRender
2135
+ );
2136
+ }
2137
+ }
2138
+ }
2139
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
2140
+ setAccessor(
2141
+ elm,
2142
+ memberName,
2143
+ oldVnodeAttrs[memberName],
2144
+ newVnodeAttrs[memberName],
2145
+ isSvgMode2,
2146
+ newVnode.$flags$,
2147
+ isInitialRender
2148
+ );
2149
+ }
2150
+ };
2151
+ function sortedAttrNames(attrNames) {
2152
+ return attrNames.includes("ref") ? (
2153
+ // we need to sort these to ensure that `'ref'` is the last attr
2154
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
2155
+ ) : (
2156
+ // no need to sort, return the original array
2157
+ attrNames
2158
+ );
2159
+ }
2160
+ var hostTagName;
2161
+ var useNativeShadowDom = false;
2162
+ var isSvgMode = false;
2163
+ var refCallbacksToRemove = [];
2164
+ var refCallbacksToAttach = [];
2165
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2166
+ const newVNode2 = newParentVNode.$children$[childIndex];
2167
+ let i2 = 0;
2168
+ let elm;
2169
+ let childNode;
2170
+ if (newVNode2.$text$ != null) {
2171
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
2172
+ } else {
2173
+ if (!isSvgMode) {
2174
+ isSvgMode = newVNode2.$tag$ === "svg";
2175
+ }
2176
+ if (!win.document) {
2177
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
2178
+ }
2179
+ elm = newVNode2.$elm$ = win.document.createElementNS(
2180
+ isSvgMode ? SVG_NS : HTML_NS,
2181
+ newVNode2.$tag$
2182
+ ) ;
2183
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
2184
+ isSvgMode = false;
2185
+ }
2186
+ {
2187
+ updateElement(null, newVNode2, isSvgMode);
2188
+ }
2189
+ if (newVNode2.$children$) {
2190
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
2191
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
2192
+ childNode = createElm(oldParentVNode, newVNode2, i2);
2193
+ if (childNode) {
2194
+ appendTarget.appendChild(childNode);
2195
+ }
2196
+ }
2197
+ }
2198
+ {
2199
+ if (newVNode2.$tag$ === "svg") {
2200
+ isSvgMode = false;
2201
+ } else if (elm.tagName === "foreignObject") {
2202
+ isSvgMode = true;
2203
+ }
2204
+ }
2205
+ }
2206
+ elm["s-hn"] = hostTagName;
2207
+ return elm;
2208
+ };
2209
+ var relocateToHostRoot = (parentElm) => {
2210
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
2211
+ const host = parentElm.closest(hostTagName.toLowerCase());
2212
+ if (host != null) {
2213
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
2214
+ (ref) => ref["s-cr"]
2215
+ );
2216
+ const childNodeArray = Array.from(
2217
+ parentElm.__childNodes || parentElm.childNodes
2218
+ );
2219
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
2220
+ if (childNode["s-sh"] != null) {
2221
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
2222
+ childNode["s-sh"] = void 0;
2223
+ }
2224
+ }
2225
+ }
2226
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
2227
+ };
2228
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
2229
+ let containerElm = parentElm;
2230
+ let childNode;
2231
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
2232
+ containerElm = containerElm.shadowRoot;
2233
+ }
2234
+ if (parentVNode.$tag$ === "template") {
2235
+ containerElm = containerElm.content;
2236
+ }
2237
+ for (; startIdx <= endIdx; ++startIdx) {
2238
+ if (vnodes[startIdx]) {
2239
+ childNode = createElm(null, parentVNode, startIdx);
2240
+ if (childNode) {
2241
+ vnodes[startIdx].$elm$ = childNode;
2242
+ insertBefore(containerElm, childNode, before);
2243
+ }
2244
+ }
2245
+ }
2246
+ };
2247
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
2248
+ for (let index = startIdx; index <= endIdx; ++index) {
2249
+ const vnode = vnodes[index];
2250
+ if (vnode) {
2251
+ const elm = vnode.$elm$;
2252
+ nullifyVNodeRefs(vnode);
2253
+ if (elm) {
2254
+ elm.remove();
2255
+ }
2256
+ }
2257
+ }
2258
+ };
2259
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
2260
+ let oldStartIdx = 0;
2261
+ let newStartIdx = 0;
2262
+ let idxInOld = 0;
2263
+ let i2 = 0;
2264
+ let oldEndIdx = oldCh.length - 1;
2265
+ let oldStartVnode = oldCh[0];
2266
+ let oldEndVnode = oldCh[oldEndIdx];
2267
+ let newEndIdx = newCh.length - 1;
2268
+ let newStartVnode = newCh[0];
2269
+ let newEndVnode = newCh[newEndIdx];
2270
+ let node;
2271
+ let elmToMove;
2272
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
2273
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
2274
+ if (oldStartVnode == null) {
2275
+ oldStartVnode = oldCh[++oldStartIdx];
2276
+ } else if (oldEndVnode == null) {
2277
+ oldEndVnode = oldCh[--oldEndIdx];
2278
+ } else if (newStartVnode == null) {
2279
+ newStartVnode = newCh[++newStartIdx];
2280
+ } else if (newEndVnode == null) {
2281
+ newEndVnode = newCh[--newEndIdx];
2282
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
2283
+ patch(oldStartVnode, newStartVnode, isInitialRender);
2284
+ oldStartVnode = oldCh[++oldStartIdx];
2285
+ newStartVnode = newCh[++newStartIdx];
2286
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
2287
+ patch(oldEndVnode, newEndVnode, isInitialRender);
2288
+ oldEndVnode = oldCh[--oldEndIdx];
2289
+ newEndVnode = newCh[--newEndIdx];
2290
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
2291
+ patch(oldStartVnode, newEndVnode, isInitialRender);
2292
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
2293
+ oldStartVnode = oldCh[++oldStartIdx];
2294
+ newEndVnode = newCh[--newEndIdx];
2295
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
2296
+ patch(oldEndVnode, newStartVnode, isInitialRender);
2297
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2298
+ oldEndVnode = oldCh[--oldEndIdx];
2299
+ newStartVnode = newCh[++newStartIdx];
2300
+ } else {
2301
+ idxInOld = -1;
2302
+ {
2303
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
2304
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
2305
+ idxInOld = i2;
2306
+ break;
2307
+ }
2308
+ }
2309
+ }
2310
+ if (idxInOld >= 0) {
2311
+ elmToMove = oldCh[idxInOld];
2312
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
2313
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
2314
+ } else {
2315
+ patch(elmToMove, newStartVnode, isInitialRender);
2316
+ oldCh[idxInOld] = void 0;
2317
+ node = elmToMove.$elm$;
2318
+ }
2319
+ newStartVnode = newCh[++newStartIdx];
2320
+ } else {
2321
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
2322
+ newStartVnode = newCh[++newStartIdx];
2323
+ }
2324
+ if (node) {
2325
+ {
2326
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
2327
+ }
2328
+ }
2329
+ }
2330
+ }
2331
+ if (oldStartIdx > oldEndIdx) {
2332
+ addVnodes(
2333
+ parentElm,
2334
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
2335
+ newVNode2,
2336
+ newCh,
2337
+ newStartIdx,
2338
+ newEndIdx
2339
+ );
2340
+ } else if (newStartIdx > newEndIdx) {
2341
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
2342
+ }
2343
+ };
2344
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2345
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
2346
+ if (!isInitialRender) {
2347
+ return leftVNode.$key$ === rightVNode.$key$;
2348
+ }
2349
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2350
+ leftVNode.$key$ = rightVNode.$key$;
2351
+ }
2352
+ return true;
2353
+ }
2354
+ return false;
2355
+ };
2356
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2357
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
2358
+ const oldChildren = oldVNode.$children$;
2359
+ const newChildren = newVNode2.$children$;
2360
+ const tag = newVNode2.$tag$;
2361
+ const text = newVNode2.$text$;
2362
+ if (text == null) {
2363
+ {
2364
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2365
+ }
2366
+ {
2367
+ if (tag === "slot" && !useNativeShadowDom) {
2368
+ if (oldVNode.$name$ !== newVNode2.$name$) {
2369
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
2370
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
2371
+ }
2372
+ }
2373
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
2374
+ }
2375
+ if (oldChildren !== null && newChildren !== null) {
2376
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2377
+ } else if (newChildren !== null) {
2378
+ if (oldVNode.$text$ !== null) {
2379
+ elm.textContent = "";
2380
+ }
2381
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2382
+ } else if (
2383
+ // don't do this on initial render as it can cause non-hydrated content to be removed
2384
+ !isInitialRender && BUILD.updatable && oldChildren !== null
2385
+ ) {
2386
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
2387
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
2388
+ newVNode2.$children$ = oldChildren;
2389
+ }
2390
+ if (isSvgMode && tag === "svg") {
2391
+ isSvgMode = false;
2392
+ }
2393
+ } else if (oldVNode.$text$ !== text) {
2394
+ elm.data = text;
2395
+ }
2396
+ };
2397
+ var nullifyVNodeRefs = (vNode) => {
2398
+ {
2399
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
2400
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
2401
+ }
2402
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2403
+ }
2404
+ };
2405
+ var queueRefAttachment = (refCallback, elm) => {
2406
+ {
2407
+ refCallbacksToAttach.push(() => refCallback(elm));
2408
+ }
2409
+ };
2410
+ var flushQueuedRefCallbacks = () => {
2411
+ {
2412
+ refCallbacksToRemove.forEach((cb) => cb());
2413
+ refCallbacksToRemove.length = 0;
2414
+ refCallbacksToAttach.forEach((cb) => cb());
2415
+ refCallbacksToAttach.length = 0;
2416
+ }
2417
+ };
2418
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2419
+ if (parent.__insertBefore) {
2420
+ return parent.__insertBefore(newNode, reference);
2421
+ } else {
2422
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2423
+ }
2424
+ };
2425
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2426
+ const hostElm = hostRef.$hostElement$;
2427
+ const cmpMeta = hostRef.$cmpMeta$;
2428
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2429
+ const isHostElement = isHost(renderFnResults);
2430
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2431
+ hostTagName = hostElm.tagName;
2432
+ if (cmpMeta.$attrsToReflect$) {
2433
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2434
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2435
+ {
2436
+ rootVnode.$attrs$[attribute] = hostElm[propName];
2437
+ }
2438
+ });
2439
+ }
2440
+ if (isInitialLoad && rootVnode.$attrs$) {
2441
+ for (const key of Object.keys(rootVnode.$attrs$)) {
2442
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2443
+ rootVnode.$attrs$[key] = hostElm[key];
2444
+ }
2445
+ }
2446
+ }
2447
+ rootVnode.$tag$ = null;
2448
+ rootVnode.$flags$ |= 4 /* isHost */;
2449
+ hostRef.$vnode$ = rootVnode;
2450
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2451
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
2452
+ patch(oldVNode, rootVnode, isInitialLoad);
2453
+ flushQueuedRefCallbacks();
2454
+ };
2455
+
2456
+ // src/runtime/update-component.ts
2457
+ var attachToAncestor = (hostRef, ancestorComponent) => {
2458
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2459
+ const index = ancestorComponent["s-p"].push(
2460
+ new Promise(
2461
+ (r) => hostRef.$onRenderResolve$ = () => {
2462
+ ancestorComponent["s-p"].splice(index - 1, 1);
2463
+ r();
2464
+ }
2465
+ )
2466
+ );
2467
+ }
2468
+ };
2469
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
2470
+ {
2471
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2472
+ }
2473
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2474
+ hostRef.$flags$ |= 512 /* needsRerender */;
2475
+ return;
2476
+ }
2477
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2478
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2479
+ if (isInitialLoad) {
2480
+ queueMicrotask(() => {
2481
+ dispatch();
2482
+ });
2483
+ return;
2484
+ }
2485
+ return writeTask(dispatch) ;
2486
+ };
2487
+ var dispatchHooks = (hostRef, isInitialLoad) => {
2488
+ const elm = hostRef.$hostElement$;
2489
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2490
+ const instance = hostRef.$lazyInstance$ ;
2491
+ if (!instance) {
2492
+ throw new Error(
2493
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
2494
+ );
2495
+ }
2496
+ let maybePromise;
2497
+ if (isInitialLoad) {
2498
+ {
2499
+ {
2500
+ hostRef.$flags$ |= 256 /* isListenReady */;
2501
+ if (hostRef.$queuedListeners$) {
2502
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2503
+ hostRef.$queuedListeners$ = void 0;
2504
+ }
2505
+ }
2506
+ if (hostRef.$fetchedCbList$.length) {
2507
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2508
+ }
2509
+ }
2510
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2511
+ } else {
2512
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2513
+ }
2514
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2515
+ endSchedule();
2516
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2517
+ };
2518
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2519
+ console.error(err);
2520
+ fn();
2521
+ }) : fn();
2522
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2523
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2524
+ var _a;
2525
+ const elm = hostRef.$hostElement$;
2526
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2527
+ const rc = elm["s-rc"];
2528
+ if (isInitialLoad) {
2529
+ attachStyles(hostRef);
2530
+ }
2531
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2532
+ {
2533
+ callRender(hostRef, instance, elm, isInitialLoad);
2534
+ }
2535
+ if (rc) {
2536
+ rc.map((cb) => cb());
2537
+ elm["s-rc"] = void 0;
2538
+ }
2539
+ endRender();
2540
+ endUpdate();
2541
+ {
2542
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2543
+ const postUpdate = () => postUpdateComponent(hostRef);
2544
+ if (childrenPromises.length === 0) {
2545
+ postUpdate();
2546
+ } else {
2547
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
2548
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2549
+ childrenPromises.length = 0;
2550
+ }
2551
+ }
2552
+ };
2553
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
2554
+ try {
2555
+ instance = instance.render() ;
2556
+ {
2557
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2558
+ }
2559
+ {
2560
+ hostRef.$flags$ |= 2 /* hasRendered */;
2561
+ }
2562
+ {
2563
+ {
2564
+ {
2565
+ renderVdom(hostRef, instance, isInitialLoad);
2566
+ }
2567
+ }
2568
+ }
2569
+ } catch (e) {
2570
+ consoleError(e, hostRef.$hostElement$);
2571
+ }
2572
+ return null;
2573
+ };
2574
+ var postUpdateComponent = (hostRef) => {
2575
+ const tagName = hostRef.$cmpMeta$.$tagName$;
2576
+ const elm = hostRef.$hostElement$;
2577
+ const endPostUpdate = createTime("postUpdate", tagName);
2578
+ const instance = hostRef.$lazyInstance$ ;
2579
+ const ancestorComponent = hostRef.$ancestorComponent$;
2580
+ safeCall(instance, "componentDidRender", void 0, elm);
2581
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2582
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2583
+ {
2584
+ addHydratedFlag(elm);
2585
+ }
2586
+ safeCall(instance, "componentDidLoad", void 0, elm);
2587
+ endPostUpdate();
2588
+ {
2589
+ hostRef.$onReadyResolve$(elm);
2590
+ if (!ancestorComponent) {
2591
+ appDidLoad();
2592
+ }
2593
+ }
2594
+ } else {
2595
+ safeCall(instance, "componentDidUpdate", void 0, elm);
2596
+ endPostUpdate();
2597
+ }
2598
+ {
2599
+ hostRef.$onInstanceResolve$(elm);
2600
+ }
2601
+ {
2602
+ if (hostRef.$onRenderResolve$) {
2603
+ hostRef.$onRenderResolve$();
2604
+ hostRef.$onRenderResolve$ = void 0;
2605
+ }
2606
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2607
+ nextTick(() => scheduleUpdate(hostRef, false));
2608
+ }
2609
+ hostRef.$flags$ &= -517;
2610
+ }
2611
+ };
2612
+ var appDidLoad = (who) => {
2613
+ var _a;
2614
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2615
+ {
2616
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2617
+ plt.$orgLocNodes$.clear();
2618
+ }
2619
+ }
2620
+ };
2621
+ var safeCall = (instance, method, arg, elm) => {
2622
+ if (instance && instance[method]) {
2623
+ try {
2624
+ return instance[method](arg);
2625
+ } catch (e) {
2626
+ consoleError(e, elm);
2627
+ }
2628
+ }
2629
+ return void 0;
2630
+ };
2631
+ var addHydratedFlag = (elm) => {
2632
+ var _a;
2633
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2634
+ };
2635
+
2636
+ // src/runtime/set-value.ts
2637
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2638
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2639
+ const hostRef = getHostRef(ref);
2640
+ if (!hostRef) {
2641
+ return;
2642
+ }
2643
+ if (!hostRef) {
2644
+ throw new Error(
2645
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
2646
+ );
2647
+ }
2648
+ const elm = hostRef.$hostElement$ ;
2649
+ const oldVal = hostRef.$instanceValues$.get(propName);
2650
+ const flags = hostRef.$flags$;
2651
+ const instance = hostRef.$lazyInstance$ ;
2652
+ newVal = parsePropertyValue(
2653
+ newVal,
2654
+ cmpMeta.$members$[propName][0],
2655
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2656
+ );
2657
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2658
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2659
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2660
+ hostRef.$instanceValues$.set(propName, newVal);
2661
+ if (cmpMeta.$watchers$) {
2662
+ const watchMethods = cmpMeta.$watchers$[propName];
2663
+ if (watchMethods) {
2664
+ watchMethods.map((watcher) => {
2665
+ try {
2666
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2667
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
2668
+ if (!instance) {
2669
+ hostRef.$fetchedCbList$.push(() => {
2670
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
2671
+ });
2672
+ } else {
2673
+ instance[watchMethodName](newVal, oldVal, propName);
2674
+ }
2675
+ }
2676
+ } catch (e) {
2677
+ consoleError(e, elm);
2678
+ }
2679
+ });
2680
+ }
2681
+ }
2682
+ if (flags & 2 /* hasRendered */) {
2683
+ if (instance.componentShouldUpdate) {
2684
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2685
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
2686
+ return;
2687
+ }
2688
+ }
2689
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2690
+ scheduleUpdate(hostRef, false);
2691
+ }
2692
+ }
2693
+ }
2694
+ };
2695
+
2696
+ // src/runtime/proxy-component.ts
2697
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2698
+ var _a, _b;
2699
+ const prototype = Cstr.prototype;
2700
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2701
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2702
+ Object.defineProperty(prototype, cbName, {
2703
+ value(...args) {
2704
+ var _a2;
2705
+ const hostRef = getHostRef(this);
2706
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
2707
+ if (!instance) {
2708
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
2709
+ const cb = asyncInstance[cbName];
2710
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
2711
+ });
2712
+ } else {
2713
+ const cb = instance[cbName] ;
2714
+ typeof cb === "function" && cb.call(instance, ...args);
2715
+ }
2716
+ }
2717
+ });
2718
+ });
2719
+ }
2720
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2721
+ {
2722
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2723
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2724
+ }
2725
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2726
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2727
+ }
2728
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
2729
+ cmpMeta.$serializers$ = Cstr.serializers;
2730
+ }
2731
+ }
2732
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2733
+ members.map(([memberName, [memberFlags]]) => {
2734
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2735
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
2736
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2737
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2738
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2739
+ Object.defineProperty(prototype, memberName, {
2740
+ get() {
2741
+ {
2742
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2743
+ return getValue(this, memberName);
2744
+ }
2745
+ const ref = getHostRef(this);
2746
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2747
+ if (!instance) return;
2748
+ return instance[memberName];
2749
+ }
2750
+ },
2751
+ configurable: true,
2752
+ enumerable: true
2753
+ });
2754
+ }
2755
+ Object.defineProperty(prototype, memberName, {
2756
+ set(newValue) {
2757
+ const ref = getHostRef(this);
2758
+ if (!ref) {
2759
+ return;
2760
+ }
2761
+ if (origSetter) {
2762
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2763
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2764
+ newValue = ref.$instanceValues$.get(memberName);
2765
+ }
2766
+ origSetter.apply(this, [
2767
+ parsePropertyValue(
2768
+ newValue,
2769
+ memberFlags,
2770
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2771
+ )
2772
+ ]);
2773
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2774
+ setValue(this, memberName, newValue, cmpMeta);
2775
+ return;
2776
+ }
2777
+ {
2778
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2779
+ setValue(this, memberName, newValue, cmpMeta);
2780
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2781
+ ref.$fetchedCbList$.push(() => {
2782
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2783
+ ref.$lazyInstance$[memberName] = newValue;
2784
+ }
2785
+ });
2786
+ }
2787
+ return;
2788
+ }
2789
+ const setterSetVal = () => {
2790
+ const currentValue = ref.$lazyInstance$[memberName];
2791
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2792
+ ref.$instanceValues$.set(memberName, currentValue);
2793
+ }
2794
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2795
+ newValue,
2796
+ memberFlags,
2797
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2798
+ );
2799
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2800
+ };
2801
+ if (ref.$lazyInstance$) {
2802
+ setterSetVal();
2803
+ } else {
2804
+ ref.$fetchedCbList$.push(() => {
2805
+ setterSetVal();
2806
+ });
2807
+ }
2808
+ }
2809
+ }
2810
+ });
2811
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2812
+ Object.defineProperty(prototype, memberName, {
2813
+ value(...args) {
2814
+ var _a2;
2815
+ const ref = getHostRef(this);
2816
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2817
+ var _a3;
2818
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2819
+ });
2820
+ }
2821
+ });
2822
+ }
2823
+ });
2824
+ if ((flags & 1 /* isElementConstructor */)) {
2825
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2826
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2827
+ plt.jmp(() => {
2828
+ var _a2;
2829
+ const propName = attrNameToPropName.get(attrName);
2830
+ const hostRef = getHostRef(this);
2831
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2832
+ newValue = this[propName];
2833
+ delete this[propName];
2834
+ }
2835
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2836
+ this[propName] == newValue) {
2837
+ return;
2838
+ } else if (propName == null) {
2839
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2840
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
2841
+ const instance = hostRef.$lazyInstance$ ;
2842
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2843
+ entry == null ? void 0 : entry.forEach((watcher) => {
2844
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2845
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2846
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
2847
+ }
2848
+ });
2849
+ }
2850
+ return;
2851
+ }
2852
+ const propFlags = members.find(([m]) => m === propName);
2853
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
2854
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
2855
+ if (isBooleanTarget) {
2856
+ newValue = newValue === null || newValue === "false" ? false : true;
2857
+ }
2858
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2859
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2860
+ this[propName] = newValue;
2861
+ }
2862
+ });
2863
+ };
2864
+ Cstr.observedAttributes = Array.from(
2865
+ /* @__PURE__ */ new Set([
2866
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2867
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2868
+ var _a2;
2869
+ const attrName = m[1] || propName;
2870
+ attrNameToPropName.set(attrName, propName);
2871
+ if (m[0] & 512 /* ReflectAttr */) {
2872
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2873
+ }
2874
+ return attrName;
2875
+ })
2876
+ ])
2877
+ );
2878
+ }
2879
+ }
2880
+ return Cstr;
2881
+ };
2882
+
2883
+ // src/runtime/initialize-component.ts
2884
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2885
+ let Cstr;
2886
+ try {
2887
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2888
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2889
+ const bundleId = cmpMeta.$lazyBundleId$;
2890
+ if (bundleId) {
2891
+ const CstrImport = loadModule(cmpMeta, hostRef);
2892
+ if (CstrImport && "then" in CstrImport) {
2893
+ const endLoad = uniqueTime();
2894
+ Cstr = await CstrImport;
2895
+ endLoad();
2896
+ } else {
2897
+ Cstr = CstrImport;
2898
+ }
2899
+ if (!Cstr) {
2900
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2901
+ }
2902
+ if (!Cstr.isProxied) {
2903
+ {
2904
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2905
+ cmpMeta.$serializers$ = Cstr.serializers;
2906
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2907
+ }
2908
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2909
+ Cstr.isProxied = true;
2910
+ }
2911
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2912
+ {
2913
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2914
+ }
2915
+ try {
2916
+ new Cstr(hostRef);
2917
+ } catch (e) {
2918
+ consoleError(e, elm);
2919
+ }
2920
+ {
2921
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2922
+ }
2923
+ {
2924
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2925
+ }
2926
+ endNewInstance();
2927
+ {
2928
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2929
+ }
2930
+ } else {
2931
+ Cstr = elm.constructor;
2932
+ const cmpTag = elm.localName;
2933
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2934
+ }
2935
+ if (Cstr && Cstr.style) {
2936
+ let style;
2937
+ if (typeof Cstr.style === "string") {
2938
+ style = Cstr.style;
2939
+ }
2940
+ const scopeId2 = getScopeId(cmpMeta);
2941
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2942
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2943
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2944
+ endRegisterStyles();
2945
+ }
2946
+ }
2947
+ }
2948
+ const ancestorComponent = hostRef.$ancestorComponent$;
2949
+ const schedule = () => scheduleUpdate(hostRef, true);
2950
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2951
+ ancestorComponent["s-rc"].push(schedule);
2952
+ } else {
2953
+ schedule();
2954
+ }
2955
+ } catch (e) {
2956
+ consoleError(e, elm);
2957
+ if (hostRef.$onRenderResolve$) {
2958
+ hostRef.$onRenderResolve$();
2959
+ hostRef.$onRenderResolve$ = void 0;
2960
+ }
2961
+ if (hostRef.$onReadyResolve$) {
2962
+ hostRef.$onReadyResolve$(elm);
2963
+ }
2964
+ }
2965
+ };
2966
+ var fireConnectedCallback = (instance, elm) => {
2967
+ {
2968
+ safeCall(instance, "connectedCallback", void 0, elm);
2969
+ }
2970
+ };
2971
+
2972
+ // src/runtime/connected-callback.ts
2973
+ var connectedCallback = (elm) => {
2974
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2975
+ const hostRef = getHostRef(elm);
2976
+ if (!hostRef) {
2977
+ return;
2978
+ }
2979
+ const cmpMeta = hostRef.$cmpMeta$;
2980
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2981
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2982
+ hostRef.$flags$ |= 1 /* hasConnected */;
2983
+ let hostId;
2984
+ {
2985
+ hostId = elm.getAttribute(HYDRATE_ID);
2986
+ if (hostId) {
2987
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2988
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2989
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2990
+ }
2991
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2992
+ }
2993
+ }
2994
+ {
2995
+ let ancestorComponent = elm;
2996
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2997
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2998
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2999
+ break;
3000
+ }
3001
+ }
3002
+ }
3003
+ if (cmpMeta.$members$) {
3004
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3005
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
3006
+ const value = elm[memberName];
3007
+ delete elm[memberName];
3008
+ elm[memberName] = value;
3009
+ }
3010
+ });
3011
+ }
3012
+ {
3013
+ initializeComponent(elm, hostRef, cmpMeta);
3014
+ }
3015
+ } else {
3016
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
3017
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3018
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
3019
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3020
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
3021
+ }
3022
+ }
3023
+ endConnected();
3024
+ }
3025
+ };
3026
+ var disconnectInstance = (instance, elm) => {
3027
+ {
3028
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
3029
+ }
3030
+ };
3031
+ var disconnectedCallback = async (elm) => {
3032
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3033
+ const hostRef = getHostRef(elm);
3034
+ {
3035
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
3036
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
3037
+ hostRef.$rmListeners$ = void 0;
3038
+ }
3039
+ }
3040
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3041
+ disconnectInstance(hostRef.$lazyInstance$, elm);
3042
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3043
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
3044
+ }
3045
+ }
3046
+ if (rootAppliedStyles.has(elm)) {
3047
+ rootAppliedStyles.delete(elm);
3048
+ }
3049
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
3050
+ rootAppliedStyles.delete(elm.shadowRoot);
3051
+ }
3052
+ };
3053
+
3054
+ // src/runtime/bootstrap-lazy.ts
3055
+ var bootstrapLazy = (lazyBundles, options = {}) => {
3056
+ var _a;
3057
+ if (!win.document) {
3058
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
3059
+ return;
3060
+ }
3061
+ const endBootstrap = createTime();
3062
+ const cmpTags = [];
3063
+ const exclude = options.exclude || [];
3064
+ const customElements2 = win.customElements;
3065
+ const head = win.document.head;
3066
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
3067
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
3068
+ const deferredConnectedCallbacks = [];
3069
+ let appLoadFallback;
3070
+ let isBootstrapping = true;
3071
+ Object.assign(plt, options);
3072
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
3073
+ {
3074
+ plt.$flags$ |= 2 /* appLoaded */;
3075
+ }
3076
+ {
3077
+ hydrateScopedToShadow();
3078
+ }
3079
+ lazyBundles.map((lazyBundle) => {
3080
+ lazyBundle[1].map((compactMeta) => {
3081
+ var _a2, _b;
3082
+ const cmpMeta = {
3083
+ $flags$: compactMeta[0],
3084
+ $tagName$: compactMeta[1],
3085
+ $members$: compactMeta[2],
3086
+ $listeners$: compactMeta[3]
3087
+ };
3088
+ {
3089
+ cmpMeta.$members$ = compactMeta[2];
3090
+ }
3091
+ {
3092
+ cmpMeta.$listeners$ = compactMeta[3];
3093
+ }
3094
+ {
3095
+ cmpMeta.$attrsToReflect$ = [];
3096
+ }
3097
+ {
3098
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
3099
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
3100
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
3101
+ }
3102
+ const tagName = transformTag(cmpMeta.$tagName$);
3103
+ const HostElement = class extends HTMLElement {
3104
+ ["s-p"];
3105
+ ["s-rc"];
3106
+ hasRegisteredEventListeners = false;
3107
+ // StencilLazyHost
3108
+ constructor(self) {
3109
+ super(self);
3110
+ self = this;
3111
+ registerHost(self, cmpMeta);
3112
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
3113
+ {
3114
+ if (!self.shadowRoot) {
3115
+ createShadowRoot.call(self, cmpMeta);
3116
+ } else {
3117
+ if (self.shadowRoot.mode !== "open") {
3118
+ throw new Error(
3119
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
3120
+ );
3121
+ }
3122
+ }
3123
+ }
3124
+ }
3125
+ }
3126
+ connectedCallback() {
3127
+ const hostRef = getHostRef(this);
3128
+ if (!hostRef) {
3129
+ return;
3130
+ }
3131
+ if (!this.hasRegisteredEventListeners) {
3132
+ this.hasRegisteredEventListeners = true;
3133
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
3134
+ }
3135
+ if (appLoadFallback) {
3136
+ clearTimeout(appLoadFallback);
3137
+ appLoadFallback = null;
3138
+ }
3139
+ if (isBootstrapping) {
3140
+ deferredConnectedCallbacks.push(this);
3141
+ } else {
3142
+ plt.jmp(() => connectedCallback(this));
3143
+ }
3144
+ }
3145
+ disconnectedCallback() {
3146
+ plt.jmp(() => disconnectedCallback(this));
3147
+ plt.raf(() => {
3148
+ var _a3;
3149
+ const hostRef = getHostRef(this);
3150
+ if (!hostRef) {
3151
+ return;
3152
+ }
3153
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
3154
+ if (i2 > -1) {
3155
+ deferredConnectedCallbacks.splice(i2, 1);
3156
+ }
3157
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
3158
+ delete hostRef.$vnode$.$elm$;
3159
+ }
3160
+ });
3161
+ }
3162
+ componentOnReady() {
3163
+ var _a3;
3164
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
3165
+ }
3166
+ };
3167
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
3168
+ {
3169
+ patchPseudoShadowDom(HostElement.prototype);
3170
+ }
3171
+ } else {
3172
+ patchCloneNode(HostElement.prototype);
3173
+ }
3174
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
3175
+ HostElement.formAssociated = true;
3176
+ }
3177
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
3178
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
3179
+ cmpTags.push(tagName);
3180
+ customElements2.define(
3181
+ tagName,
3182
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
3183
+ );
3184
+ }
3185
+ });
3186
+ });
3187
+ if (cmpTags.length > 0) {
3188
+ {
3189
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
3190
+ }
3191
+ if (dataStyles.innerHTML.length) {
3192
+ dataStyles.setAttribute("data-styles", "");
3193
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
3194
+ if (nonce != null) {
3195
+ dataStyles.setAttribute("nonce", nonce);
3196
+ }
3197
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
3198
+ }
3199
+ }
3200
+ isBootstrapping = false;
3201
+ if (deferredConnectedCallbacks.length) {
3202
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
3203
+ } else {
3204
+ {
3205
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
3206
+ }
3207
+ }
3208
+ endBootstrap();
3209
+ };
3210
+
3211
+ // src/runtime/fragment.ts
3212
+ var Fragment = (_, children) => children;
3213
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
3214
+ if (listeners && win.document) {
3215
+ listeners.map(([flags, name, method]) => {
3216
+ const target = getHostListenerTarget(win.document, elm, flags) ;
3217
+ const handler = hostListenerProxy(hostRef, method);
3218
+ const opts = hostListenerOpts(flags);
3219
+ plt.ael(target, name, handler, opts);
3220
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
3221
+ });
3222
+ }
3223
+ };
3224
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
3225
+ var _a;
3226
+ try {
3227
+ {
3228
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
3229
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
3230
+ } else {
3231
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
3232
+ }
3233
+ }
3234
+ } catch (e) {
3235
+ consoleError(e, hostRef.$hostElement$);
3236
+ }
3237
+ };
3238
+ var getHostListenerTarget = (doc, elm, flags) => {
3239
+ if (flags & 4 /* TargetDocument */) {
3240
+ return doc;
3241
+ }
3242
+ if (flags & 8 /* TargetWindow */) {
3243
+ return win;
3244
+ }
3245
+ return elm;
3246
+ };
3247
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
3248
+ passive: (flags & 1 /* Passive */) !== 0,
3249
+ capture: (flags & 2 /* Capture */) !== 0
3250
+ } : (flags & 2 /* Capture */) !== 0;
3251
+
3252
+ // src/runtime/nonce.ts
3253
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
3254
+ function transformTag(tag) {
3255
+ return tag;
3256
+ }
3257
+
3258
+ export { Fragment as F, Host as H, H as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };