@govbr-ds/webcomponents 2.0.0-next.4 → 2.0.0-next.40

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 (708) hide show
  1. package/dist/README.md +378 -0
  2. package/dist/cjs/app-globals-DcqHuMBv.js +12 -0
  3. package/dist/cjs/app-globals-DcqHuMBv.js.map +1 -0
  4. package/dist/cjs/br-avatar.cjs.entry.js +130 -0
  5. package/dist/cjs/br-avatar.cjs.entry.js.map +1 -0
  6. package/dist/cjs/br-avatar.entry.cjs.js.map +1 -0
  7. package/dist/cjs/br-breadcrumb.cjs.entry.js +309 -0
  8. package/dist/cjs/br-breadcrumb.cjs.entry.js.map +1 -0
  9. package/dist/cjs/br-breadcrumb.entry.cjs.js.map +1 -0
  10. package/dist/cjs/br-button.br-icon.entry.cjs.js.map +1 -0
  11. package/dist/cjs/br-button_2.cjs.entry.js +2513 -0
  12. package/dist/cjs/br-button_2.cjs.entry.js.map +1 -0
  13. package/dist/cjs/br-checkbox.cjs.entry.js +156 -0
  14. package/dist/cjs/br-checkbox.cjs.entry.js.map +1 -0
  15. package/dist/cjs/br-checkbox.entry.cjs.js.map +1 -0
  16. package/dist/cjs/br-checkgroup.cjs.entry.js +117 -0
  17. package/dist/cjs/br-checkgroup.cjs.entry.js.map +1 -0
  18. package/dist/cjs/br-checkgroup.entry.cjs.js.map +1 -0
  19. package/dist/cjs/br-collapse.br-list.entry.cjs.js.map +1 -0
  20. package/dist/cjs/br-collapse_2.cjs.entry.js +286 -0
  21. package/dist/cjs/br-collapse_2.cjs.entry.js.map +1 -0
  22. package/dist/cjs/br-divider.cjs.entry.js +86 -0
  23. package/dist/cjs/br-divider.cjs.entry.js.map +1 -0
  24. package/dist/cjs/br-divider.entry.cjs.js.map +1 -0
  25. package/dist/cjs/br-dropdown.cjs.entry.js +109 -0
  26. package/dist/cjs/br-dropdown.cjs.entry.js.map +1 -0
  27. package/dist/cjs/br-dropdown.entry.cjs.js.map +1 -0
  28. package/dist/cjs/br-footer-category.cjs.entry.js +110 -0
  29. package/dist/cjs/br-footer-category.cjs.entry.js.map +1 -0
  30. package/dist/cjs/br-footer-category.entry.cjs.js.map +1 -0
  31. package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
  32. package/dist/cjs/br-footer-item.cjs.entry.js.map +1 -0
  33. package/dist/cjs/br-footer-item.entry.cjs.js.map +1 -0
  34. package/dist/cjs/br-footer-legal.cjs.entry.js +43 -0
  35. package/dist/cjs/br-footer-legal.cjs.entry.js.map +1 -0
  36. package/dist/cjs/br-footer-legal.entry.cjs.js.map +1 -0
  37. package/dist/cjs/br-footer-logo.cjs.entry.js +74 -0
  38. package/dist/cjs/br-footer-logo.cjs.entry.js.map +1 -0
  39. package/dist/cjs/br-footer-logo.entry.cjs.js.map +1 -0
  40. package/dist/cjs/br-footer-social.cjs.entry.js +57 -0
  41. package/dist/cjs/br-footer-social.cjs.entry.js.map +1 -0
  42. package/dist/cjs/br-footer-social.entry.cjs.js.map +1 -0
  43. package/dist/cjs/br-footer.cjs.entry.js +49 -0
  44. package/dist/cjs/br-footer.cjs.entry.js.map +1 -0
  45. package/dist/cjs/br-footer.entry.cjs.js.map +1 -0
  46. package/dist/cjs/br-input.br-radio.entry.cjs.js.map +1 -0
  47. package/dist/cjs/br-input_2.cjs.entry.js +416 -0
  48. package/dist/cjs/br-input_2.cjs.entry.js.map +1 -0
  49. package/dist/cjs/br-item.cjs.entry.js +309 -0
  50. package/dist/cjs/br-item.cjs.entry.js.map +1 -0
  51. package/dist/cjs/br-item.entry.cjs.js.map +1 -0
  52. package/dist/cjs/br-loading.cjs.entry.js +58 -0
  53. package/dist/cjs/br-loading.cjs.entry.js.map +1 -0
  54. package/dist/cjs/br-loading.entry.cjs.js.map +1 -0
  55. package/dist/cjs/br-message.cjs.entry.js +114 -0
  56. package/dist/cjs/br-message.cjs.entry.js.map +1 -0
  57. package/dist/cjs/br-message.entry.cjs.js.map +1 -0
  58. package/dist/cjs/br-scrim.cjs.entry.js +456 -0
  59. package/dist/cjs/br-scrim.cjs.entry.js.map +1 -0
  60. package/dist/cjs/br-scrim.entry.cjs.js.map +1 -0
  61. package/dist/cjs/br-select.cjs.entry.js +332 -0
  62. package/dist/cjs/br-select.cjs.entry.js.map +1 -0
  63. package/dist/cjs/br-select.entry.cjs.js.map +1 -0
  64. package/dist/cjs/br-step-item.cjs.entry.js +245 -0
  65. package/dist/cjs/br-step-item.cjs.entry.js.map +1 -0
  66. package/dist/cjs/br-step-item.entry.cjs.js.map +1 -0
  67. package/dist/cjs/br-step.cjs.entry.js +283 -0
  68. package/dist/cjs/br-step.cjs.entry.js.map +1 -0
  69. package/dist/cjs/br-step.entry.cjs.js.map +1 -0
  70. package/dist/cjs/br-switch.cjs.entry.js +123 -0
  71. package/dist/cjs/br-switch.cjs.entry.js.map +1 -0
  72. package/dist/cjs/br-switch.entry.cjs.js.map +1 -0
  73. package/dist/cjs/br-tab-item.cjs.entry.js +76 -0
  74. package/dist/cjs/br-tab-item.cjs.entry.js.map +1 -0
  75. package/dist/cjs/br-tab-item.entry.cjs.js.map +1 -0
  76. package/dist/cjs/br-tab.cjs.entry.js +294 -0
  77. package/dist/cjs/br-tab.cjs.entry.js.map +1 -0
  78. package/dist/cjs/br-tab.entry.cjs.js.map +1 -0
  79. package/dist/cjs/br-table-cell.cjs.entry.js +81 -0
  80. package/dist/cjs/br-table-cell.cjs.entry.js.map +1 -0
  81. package/dist/cjs/br-table-cell.entry.cjs.js.map +1 -0
  82. package/dist/cjs/br-table-header-cell.cjs.entry.js +70 -0
  83. package/dist/cjs/br-table-header-cell.cjs.entry.js.map +1 -0
  84. package/dist/cjs/br-table-header-cell.entry.cjs.js.map +1 -0
  85. package/dist/cjs/br-table-header-row.cjs.entry.js +44 -0
  86. package/dist/cjs/br-table-header-row.cjs.entry.js.map +1 -0
  87. package/dist/cjs/br-table-header-row.entry.cjs.js.map +1 -0
  88. package/dist/cjs/br-table-row.cjs.entry.js +36 -0
  89. package/dist/cjs/br-table-row.cjs.entry.js.map +1 -0
  90. package/dist/cjs/br-table-row.entry.cjs.js.map +1 -0
  91. package/dist/cjs/br-table.cjs.entry.js +44 -0
  92. package/dist/cjs/br-table.cjs.entry.js.map +1 -0
  93. package/dist/cjs/br-table.entry.cjs.js.map +1 -0
  94. package/dist/cjs/br-tag.cjs.entry.js +198 -0
  95. package/dist/cjs/br-tag.cjs.entry.js.map +1 -0
  96. package/dist/cjs/br-tag.entry.cjs.js.map +1 -0
  97. package/dist/cjs/br-textarea.cjs.entry.js +122 -0
  98. package/dist/cjs/br-textarea.cjs.entry.js.map +1 -0
  99. package/dist/cjs/br-textarea.entry.cjs.js.map +1 -0
  100. package/dist/cjs/br-upload.cjs.entry.js +151 -0
  101. package/dist/cjs/br-upload.cjs.entry.js.map +1 -0
  102. package/dist/cjs/br-upload.entry.cjs.js.map +1 -0
  103. package/dist/cjs/helpers-BOXIHVCc.js +23 -0
  104. package/dist/cjs/helpers-BOXIHVCc.js.map +1 -0
  105. package/dist/cjs/index-DAOr34NM.js +2410 -0
  106. package/dist/cjs/index-DAOr34NM.js.map +1 -0
  107. package/dist/cjs/index.cjs.js +9 -0
  108. package/dist/cjs/index.cjs.js.map +1 -0
  109. package/dist/cjs/loader.cjs.js +20 -0
  110. package/dist/cjs/loader.cjs.js.map +1 -0
  111. package/dist/cjs/webcomponents.cjs.js +53 -0
  112. package/dist/cjs/webcomponents.cjs.js.map +1 -0
  113. package/dist/collection/assets/wc.svg +1 -0
  114. package/dist/collection/collection-manifest.json +47 -0
  115. package/dist/collection/components/avatar/avatar.css +1 -0
  116. package/dist/collection/components/avatar/avatar.js +344 -0
  117. package/dist/collection/components/avatar/avatar.js.map +1 -0
  118. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
  119. package/dist/collection/components/breadcrumb/breadcrumb.js +391 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
  121. package/dist/collection/components/button/button.css +1 -0
  122. package/dist/collection/components/button/button.js +322 -0
  123. package/dist/collection/components/button/button.js.map +1 -0
  124. package/dist/collection/components/checkbox/checkbox.css +1 -0
  125. package/dist/collection/components/checkbox/checkbox.js +423 -0
  126. package/dist/collection/components/checkbox/checkbox.js.map +1 -0
  127. package/dist/collection/components/checkgroup/checkgroup.css +1 -0
  128. package/dist/collection/components/checkgroup/checkgroup.js +238 -0
  129. package/dist/collection/components/checkgroup/checkgroup.js.map +1 -0
  130. package/dist/collection/components/collapse/collapse.css +1 -0
  131. package/dist/collection/components/collapse/collapse.js +389 -0
  132. package/dist/collection/components/collapse/collapse.js.map +1 -0
  133. package/dist/collection/components/divider/divider.css +1 -0
  134. package/dist/collection/components/divider/divider.js +262 -0
  135. package/dist/collection/components/divider/divider.js.map +1 -0
  136. package/dist/collection/components/dropdown/dropdown.css +1 -0
  137. package/dist/collection/components/dropdown/dropdown.js +221 -0
  138. package/dist/collection/components/dropdown/dropdown.js.map +1 -0
  139. package/dist/collection/components/footer/footer.css +1 -0
  140. package/dist/collection/components/footer/footer.js +128 -0
  141. package/dist/collection/components/footer/footer.js.map +1 -0
  142. package/dist/collection/components/footer-category/footer-category.css +1 -0
  143. package/dist/collection/components/footer-category/footer-category.js +178 -0
  144. package/dist/collection/components/footer-category/footer-category.js.map +1 -0
  145. package/dist/collection/components/footer-item/footer-item.css +1 -0
  146. package/dist/collection/components/footer-item/footer-item.js +117 -0
  147. package/dist/collection/components/footer-item/footer-item.js.map +1 -0
  148. package/dist/collection/components/footer-legal/footer-legal.css +1 -0
  149. package/dist/collection/components/footer-legal/footer-legal.js +77 -0
  150. package/dist/collection/components/footer-legal/footer-legal.js.map +1 -0
  151. package/dist/collection/components/footer-logo/footer-logo.css +1 -0
  152. package/dist/collection/components/footer-logo/footer-logo.js +188 -0
  153. package/dist/collection/components/footer-logo/footer-logo.js.map +1 -0
  154. package/dist/collection/components/footer-social/footer-social.css +1 -0
  155. package/dist/collection/components/footer-social/footer-social.js +147 -0
  156. package/dist/collection/components/footer-social/footer-social.js.map +1 -0
  157. package/dist/collection/components/icon/icon.css +1 -0
  158. package/dist/collection/components/icon/icon.js +243 -0
  159. package/dist/collection/components/icon/icon.js.map +1 -0
  160. package/dist/collection/components/input/input.css +1 -0
  161. package/dist/collection/components/input/input.js +763 -0
  162. package/dist/collection/components/input/input.js.map +1 -0
  163. package/dist/collection/components/item/item.css +1 -0
  164. package/dist/collection/components/item/item.js +613 -0
  165. package/dist/collection/components/item/item.js.map +1 -0
  166. package/dist/collection/components/list/list.css +1 -0
  167. package/dist/collection/components/list/list.js +260 -0
  168. package/dist/collection/components/list/list.js.map +1 -0
  169. package/dist/collection/components/loading/loading.css +1 -0
  170. package/dist/collection/components/loading/loading.js +167 -0
  171. package/dist/collection/components/loading/loading.js.map +1 -0
  172. package/dist/collection/components/message/message.css +1 -0
  173. package/dist/collection/components/message/message.js +316 -0
  174. package/dist/collection/components/message/message.js.map +1 -0
  175. package/dist/collection/components/radio/radio.css +1 -0
  176. package/dist/collection/components/radio/radio.js +364 -0
  177. package/dist/collection/components/radio/radio.js.map +1 -0
  178. package/dist/collection/components/scrim/scrim.css +1 -0
  179. package/dist/collection/components/scrim/scrim.js +806 -0
  180. package/dist/collection/components/scrim/scrim.js.map +1 -0
  181. package/dist/collection/components/select/select.css +1 -0
  182. package/dist/collection/components/select/select.js +566 -0
  183. package/dist/collection/components/select/select.js.map +1 -0
  184. package/dist/collection/components/step/step.css +1 -0
  185. package/dist/collection/components/step/step.js +546 -0
  186. package/dist/collection/components/step/step.js.map +1 -0
  187. package/dist/collection/components/step-item/step-item.css +1 -0
  188. package/dist/collection/components/step-item/step-item.js +551 -0
  189. package/dist/collection/components/step-item/step-item.js.map +1 -0
  190. package/dist/collection/components/switch/switch.css +1 -0
  191. package/dist/collection/components/switch/switch.js +388 -0
  192. package/dist/collection/components/switch/switch.js.map +1 -0
  193. package/dist/collection/components/tab/tab.css +1 -0
  194. package/dist/collection/components/tab/tab.js +372 -0
  195. package/dist/collection/components/tab/tab.js.map +1 -0
  196. package/dist/collection/components/tab-item/tab-item.css +1 -0
  197. package/dist/collection/components/tab-item/tab-item.js +256 -0
  198. package/dist/collection/components/tab-item/tab-item.js.map +1 -0
  199. package/dist/collection/components/table/table.css +1 -0
  200. package/dist/collection/components/table/table.js +77 -0
  201. package/dist/collection/components/table/table.js.map +1 -0
  202. package/dist/collection/components/table-cell/table-cell.css +1 -0
  203. package/dist/collection/components/table-cell/table-cell.js +171 -0
  204. package/dist/collection/components/table-cell/table-cell.js.map +1 -0
  205. package/dist/collection/components/table-header-cell/table-header-cell.css +1 -0
  206. package/dist/collection/components/table-header-cell/table-header-cell.js +164 -0
  207. package/dist/collection/components/table-header-cell/table-header-cell.js.map +1 -0
  208. package/dist/collection/components/table-header-row/table-header-row.css +1 -0
  209. package/dist/collection/components/table-header-row/table-header-row.js +77 -0
  210. package/dist/collection/components/table-header-row/table-header-row.js.map +1 -0
  211. package/dist/collection/components/table-row/table-row.css +1 -0
  212. package/dist/collection/components/table-row/table-row.js +69 -0
  213. package/dist/collection/components/table-row/table-row.js.map +1 -0
  214. package/dist/collection/components/tag/tag.css +1 -0
  215. package/dist/collection/components/tag/tag.js +498 -0
  216. package/dist/collection/components/tag/tag.js.map +1 -0
  217. package/dist/collection/components/textarea/textarea.css +1 -0
  218. package/dist/collection/components/textarea/textarea.js +374 -0
  219. package/dist/collection/components/textarea/textarea.js.map +1 -0
  220. package/dist/collection/components/upload/upload.css +1 -0
  221. package/dist/collection/components/upload/upload.js +264 -0
  222. package/dist/collection/components/upload/upload.js.map +1 -0
  223. package/dist/collection/index.js +2 -0
  224. package/dist/collection/index.js.map +1 -0
  225. package/dist/collection/pages/components/breadcrumb/index.js +18 -0
  226. package/dist/collection/pages/components/button/index.js +18 -0
  227. package/dist/collection/pages/components/checkbox/index.js +18 -0
  228. package/dist/collection/pages/components/checkgroup/index.js +20 -0
  229. package/dist/collection/pages/components/collapse/index.js +18 -0
  230. package/dist/collection/pages/components/divider/index.js +18 -0
  231. package/dist/collection/pages/components/dropdown/index.js +18 -0
  232. package/dist/collection/pages/components/footer/index.js +18 -0
  233. package/dist/collection/pages/components/icon/index.js +18 -0
  234. package/dist/collection/pages/components/input/index.js +27 -0
  235. package/dist/collection/pages/components/item/index.js +18 -0
  236. package/dist/collection/pages/components/list/index.js +19 -0
  237. package/dist/collection/pages/components/message/index.js +47 -0
  238. package/dist/collection/pages/components/radio/index.js +19 -0
  239. package/dist/collection/pages/components/scrim/index.js +113 -0
  240. package/dist/collection/pages/components/select/index.js +36 -0
  241. package/dist/collection/pages/components/step/index.js +33 -0
  242. package/dist/collection/pages/components/switch/index.js +18 -0
  243. package/dist/collection/pages/components/tab/index.js +18 -0
  244. package/dist/collection/pages/components/table/index.js +18 -0
  245. package/dist/collection/pages/components/tag/index.js +18 -0
  246. package/dist/collection/pages/components/textarea/index.js +19 -0
  247. package/dist/collection/pages/components/upload/index.js +19 -0
  248. package/dist/collection/pages/scripts/menu.js +294 -0
  249. package/dist/collection/pages/scripts/pageLoader.js +179 -0
  250. package/dist/collection/utils/css-variables.js +10 -0
  251. package/dist/collection/utils/css-variables.js.map +1 -0
  252. package/dist/collection/utils/helpers.js +17 -0
  253. package/dist/collection/utils/helpers.js.map +1 -0
  254. package/dist/collection/utils/interfaces.js +2 -0
  255. package/dist/collection/utils/interfaces.js.map +1 -0
  256. package/dist/collection/utils/stack-manager.js +5 -0
  257. package/dist/collection/utils/stack-manager.js.map +1 -0
  258. package/dist/collection/utils/types.js +2 -0
  259. package/dist/collection/utils/types.js.map +1 -0
  260. package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
  261. package/dist/collection/value-accessors/angular-value-accessor-config.js.map +1 -0
  262. package/dist/collection/value-accessors/index.js +7 -0
  263. package/dist/collection/value-accessors/index.js.map +1 -0
  264. package/dist/collection/value-accessors/vue-model-config.js +22 -0
  265. package/dist/collection/value-accessors/vue-model-config.js.map +1 -0
  266. package/dist/components/br-avatar.d.ts +11 -0
  267. package/dist/components/br-avatar.js +209 -0
  268. package/dist/components/br-avatar.js.map +1 -0
  269. package/dist/components/br-breadcrumb.d.ts +11 -0
  270. package/dist/components/br-breadcrumb.js +474 -0
  271. package/dist/components/br-breadcrumb.js.map +1 -0
  272. package/dist/components/br-button.d.ts +11 -0
  273. package/dist/components/br-button.js +13 -0
  274. package/dist/components/br-button.js.map +1 -0
  275. package/dist/components/br-checkbox.d.ts +11 -0
  276. package/dist/components/br-checkbox.js +13 -0
  277. package/dist/components/br-checkbox.js.map +1 -0
  278. package/dist/components/br-checkgroup.d.ts +11 -0
  279. package/dist/components/br-checkgroup.js +179 -0
  280. package/dist/components/br-checkgroup.js.map +1 -0
  281. package/dist/components/br-collapse.d.ts +11 -0
  282. package/dist/components/br-collapse.js +13 -0
  283. package/dist/components/br-collapse.js.map +1 -0
  284. package/dist/components/br-divider.d.ts +11 -0
  285. package/dist/components/br-divider.js +13 -0
  286. package/dist/components/br-divider.js.map +1 -0
  287. package/dist/components/br-dropdown.d.ts +11 -0
  288. package/dist/components/br-dropdown.js +166 -0
  289. package/dist/components/br-dropdown.js.map +1 -0
  290. package/dist/components/br-footer-category.d.ts +11 -0
  291. package/dist/components/br-footer-category.js +169 -0
  292. package/dist/components/br-footer-category.js.map +1 -0
  293. package/dist/components/br-footer-item.d.ts +11 -0
  294. package/dist/components/br-footer-item.js +95 -0
  295. package/dist/components/br-footer-item.js.map +1 -0
  296. package/dist/components/br-footer-legal.d.ts +11 -0
  297. package/dist/components/br-footer-legal.js +85 -0
  298. package/dist/components/br-footer-legal.js.map +1 -0
  299. package/dist/components/br-footer-logo.d.ts +11 -0
  300. package/dist/components/br-footer-logo.js +112 -0
  301. package/dist/components/br-footer-logo.js.map +1 -0
  302. package/dist/components/br-footer-social.d.ts +11 -0
  303. package/dist/components/br-footer-social.js +116 -0
  304. package/dist/components/br-footer-social.js.map +1 -0
  305. package/dist/components/br-footer.d.ts +11 -0
  306. package/dist/components/br-footer.js +113 -0
  307. package/dist/components/br-footer.js.map +1 -0
  308. package/dist/components/br-icon.d.ts +11 -0
  309. package/dist/components/br-icon.js +13 -0
  310. package/dist/components/br-icon.js.map +1 -0
  311. package/dist/components/br-input.d.ts +11 -0
  312. package/dist/components/br-input.js +13 -0
  313. package/dist/components/br-input.js.map +1 -0
  314. package/dist/components/br-item.d.ts +11 -0
  315. package/dist/components/br-item.js +13 -0
  316. package/dist/components/br-item.js.map +1 -0
  317. package/dist/components/br-list.d.ts +11 -0
  318. package/dist/components/br-list.js +13 -0
  319. package/dist/components/br-list.js.map +1 -0
  320. package/dist/components/br-loading.d.ts +11 -0
  321. package/dist/components/br-loading.js +117 -0
  322. package/dist/components/br-loading.js.map +1 -0
  323. package/dist/components/br-message.d.ts +11 -0
  324. package/dist/components/br-message.js +197 -0
  325. package/dist/components/br-message.js.map +1 -0
  326. package/dist/components/br-radio.d.ts +11 -0
  327. package/dist/components/br-radio.js +13 -0
  328. package/dist/components/br-radio.js.map +1 -0
  329. package/dist/components/br-scrim.d.ts +11 -0
  330. package/dist/components/br-scrim.js +504 -0
  331. package/dist/components/br-scrim.js.map +1 -0
  332. package/dist/components/br-select.d.ts +11 -0
  333. package/dist/components/br-select.js +481 -0
  334. package/dist/components/br-select.js.map +1 -0
  335. package/dist/components/br-step-item.d.ts +11 -0
  336. package/dist/components/br-step-item.js +334 -0
  337. package/dist/components/br-step-item.js.map +1 -0
  338. package/dist/components/br-step.d.ts +11 -0
  339. package/dist/components/br-step.js +313 -0
  340. package/dist/components/br-step.js.map +1 -0
  341. package/dist/components/br-switch.d.ts +11 -0
  342. package/dist/components/br-switch.js +181 -0
  343. package/dist/components/br-switch.js.map +1 -0
  344. package/dist/components/br-tab-item.d.ts +11 -0
  345. package/dist/components/br-tab-item.js +142 -0
  346. package/dist/components/br-tab-item.js.map +1 -0
  347. package/dist/components/br-tab.d.ts +11 -0
  348. package/dist/components/br-tab.js +323 -0
  349. package/dist/components/br-tab.js.map +1 -0
  350. package/dist/components/br-table-cell.d.ts +11 -0
  351. package/dist/components/br-table-cell.js +118 -0
  352. package/dist/components/br-table-cell.js.map +1 -0
  353. package/dist/components/br-table-header-cell.d.ts +11 -0
  354. package/dist/components/br-table-header-cell.js +108 -0
  355. package/dist/components/br-table-header-cell.js.map +1 -0
  356. package/dist/components/br-table-header-row.d.ts +11 -0
  357. package/dist/components/br-table-header-row.js +76 -0
  358. package/dist/components/br-table-header-row.js.map +1 -0
  359. package/dist/components/br-table-row.d.ts +11 -0
  360. package/dist/components/br-table-row.js +69 -0
  361. package/dist/components/br-table-row.js.map +1 -0
  362. package/dist/components/br-table.d.ts +11 -0
  363. package/dist/components/br-table.js +86 -0
  364. package/dist/components/br-table.js.map +1 -0
  365. package/dist/components/br-tag.d.ts +11 -0
  366. package/dist/components/br-tag.js +311 -0
  367. package/dist/components/br-tag.js.map +1 -0
  368. package/dist/components/br-textarea.d.ts +11 -0
  369. package/dist/components/br-textarea.js +200 -0
  370. package/dist/components/br-textarea.js.map +1 -0
  371. package/dist/components/br-upload.d.ts +11 -0
  372. package/dist/components/br-upload.js +252 -0
  373. package/dist/components/br-upload.js.map +1 -0
  374. package/dist/components/index.d.ts +108 -0
  375. package/dist/components/index.js +79 -0
  376. package/dist/components/index.js.map +1 -0
  377. package/dist/components/p-3FoEWz-F.js +136 -0
  378. package/dist/components/p-3FoEWz-F.js.map +1 -0
  379. package/dist/components/p-BBbnZnbw.js +2043 -0
  380. package/dist/components/p-BBbnZnbw.js.map +1 -0
  381. package/dist/components/p-BRKK5nMe.js +22 -0
  382. package/dist/components/p-BRKK5nMe.js.map +1 -0
  383. package/dist/components/p-Ck6Q_B7P.js +190 -0
  384. package/dist/components/p-Ck6Q_B7P.js.map +1 -0
  385. package/dist/components/p-CtvDP3zf.js +161 -0
  386. package/dist/components/p-CtvDP3zf.js.map +1 -0
  387. package/dist/components/p-DlMJ2wZW.js +184 -0
  388. package/dist/components/p-DlMJ2wZW.js.map +1 -0
  389. package/dist/components/p-IQdim5XJ.js +207 -0
  390. package/dist/components/p-IQdim5XJ.js.map +1 -0
  391. package/dist/components/p-THYai_l5.js +386 -0
  392. package/dist/components/p-THYai_l5.js.map +1 -0
  393. package/dist/components/p-brOPUYUL.js +385 -0
  394. package/dist/components/p-brOPUYUL.js.map +1 -0
  395. package/dist/components/p-jx7aLpDh.js +2273 -0
  396. package/dist/components/p-jx7aLpDh.js.map +1 -0
  397. package/dist/components/p-pq3SZemh.js +237 -0
  398. package/dist/components/p-pq3SZemh.js.map +1 -0
  399. package/dist/custom-docs/docs-utils.js +124 -0
  400. package/dist/custom-docs/docs-utils.js.map +1 -0
  401. package/dist/custom-docs/markdown-css-props.js +26 -0
  402. package/dist/custom-docs/markdown-css-props.js.map +1 -0
  403. package/dist/custom-docs/markdown-dependencies.js +59 -0
  404. package/dist/custom-docs/markdown-dependencies.js.map +1 -0
  405. package/dist/custom-docs/markdown-events-all.js +29 -0
  406. package/dist/custom-docs/markdown-events-all.js.map +1 -0
  407. package/dist/custom-docs/markdown-events.js +34 -0
  408. package/dist/custom-docs/markdown-events.js.map +1 -0
  409. package/dist/custom-docs/markdown-examples.js +23 -0
  410. package/dist/custom-docs/markdown-examples.js.map +1 -0
  411. package/dist/custom-docs/markdown-methods-all.js +28 -0
  412. package/dist/custom-docs/markdown-methods-all.js.map +1 -0
  413. package/dist/custom-docs/markdown-methods.js +56 -0
  414. package/dist/custom-docs/markdown-methods.js.map +1 -0
  415. package/dist/custom-docs/markdown-overview.js +21 -0
  416. package/dist/custom-docs/markdown-overview.js.map +1 -0
  417. package/dist/custom-docs/markdown-parts.js +30 -0
  418. package/dist/custom-docs/markdown-parts.js.map +1 -0
  419. package/dist/custom-docs/markdown-props-all.js +54 -0
  420. package/dist/custom-docs/markdown-props-all.js.map +1 -0
  421. package/dist/custom-docs/markdown-props.js +57 -0
  422. package/dist/custom-docs/markdown-props.js.map +1 -0
  423. package/dist/custom-docs/markdown-sections.js +30 -0
  424. package/dist/custom-docs/markdown-sections.js.map +1 -0
  425. package/dist/custom-docs/markdown-slots-all.js +22 -0
  426. package/dist/custom-docs/markdown-slots-all.js.map +1 -0
  427. package/dist/custom-docs/markdown-slots.js +30 -0
  428. package/dist/custom-docs/markdown-slots.js.map +1 -0
  429. package/dist/custom-docs/output-docs.js +151 -0
  430. package/dist/custom-docs/output-docs.js.map +1 -0
  431. package/dist/custom-docs/path.js +206 -0
  432. package/dist/custom-docs/path.js.map +1 -0
  433. package/dist/custom-docs/sort-markdown-tables.js +34 -0
  434. package/dist/custom-docs/sort-markdown-tables.js.map +1 -0
  435. package/dist/custom-elements.json +8905 -0
  436. package/dist/esm/app-globals-DVjNHTTs.js +10 -0
  437. package/dist/esm/app-globals-DVjNHTTs.js.map +1 -0
  438. package/dist/esm/br-avatar.entry.js +128 -0
  439. package/dist/esm/br-avatar.entry.js.map +1 -0
  440. package/dist/esm/br-breadcrumb.entry.js +307 -0
  441. package/dist/esm/br-breadcrumb.entry.js.map +1 -0
  442. package/dist/esm/br-button.br-icon.entry.js.map +1 -0
  443. package/dist/esm/br-button_2.entry.js +2510 -0
  444. package/dist/esm/br-button_2.entry.js.map +1 -0
  445. package/dist/esm/br-checkbox.entry.js +154 -0
  446. package/dist/esm/br-checkbox.entry.js.map +1 -0
  447. package/dist/esm/br-checkgroup.entry.js +115 -0
  448. package/dist/esm/br-checkgroup.entry.js.map +1 -0
  449. package/dist/esm/br-collapse.br-list.entry.js.map +1 -0
  450. package/dist/esm/br-collapse_2.entry.js +283 -0
  451. package/dist/esm/br-collapse_2.entry.js.map +1 -0
  452. package/dist/esm/br-divider.entry.js +84 -0
  453. package/dist/esm/br-divider.entry.js.map +1 -0
  454. package/dist/esm/br-dropdown.entry.js +107 -0
  455. package/dist/esm/br-dropdown.entry.js.map +1 -0
  456. package/dist/esm/br-footer-category.entry.js +108 -0
  457. package/dist/esm/br-footer-category.entry.js.map +1 -0
  458. package/dist/esm/br-footer-item.entry.js +50 -0
  459. package/dist/esm/br-footer-item.entry.js.map +1 -0
  460. package/dist/esm/br-footer-legal.entry.js +41 -0
  461. package/dist/esm/br-footer-legal.entry.js.map +1 -0
  462. package/dist/esm/br-footer-logo.entry.js +72 -0
  463. package/dist/esm/br-footer-logo.entry.js.map +1 -0
  464. package/dist/esm/br-footer-social.entry.js +55 -0
  465. package/dist/esm/br-footer-social.entry.js.map +1 -0
  466. package/dist/esm/br-footer.entry.js +47 -0
  467. package/dist/esm/br-footer.entry.js.map +1 -0
  468. package/dist/esm/br-input.br-radio.entry.js.map +1 -0
  469. package/dist/esm/br-input_2.entry.js +413 -0
  470. package/dist/esm/br-input_2.entry.js.map +1 -0
  471. package/dist/esm/br-item.entry.js +307 -0
  472. package/dist/esm/br-item.entry.js.map +1 -0
  473. package/dist/esm/br-loading.entry.js +56 -0
  474. package/dist/esm/br-loading.entry.js.map +1 -0
  475. package/dist/esm/br-message.entry.js +112 -0
  476. package/dist/esm/br-message.entry.js.map +1 -0
  477. package/dist/esm/br-scrim.entry.js +454 -0
  478. package/dist/esm/br-scrim.entry.js.map +1 -0
  479. package/dist/esm/br-select.entry.js +330 -0
  480. package/dist/esm/br-select.entry.js.map +1 -0
  481. package/dist/esm/br-step-item.entry.js +243 -0
  482. package/dist/esm/br-step-item.entry.js.map +1 -0
  483. package/dist/esm/br-step.entry.js +281 -0
  484. package/dist/esm/br-step.entry.js.map +1 -0
  485. package/dist/esm/br-switch.entry.js +121 -0
  486. package/dist/esm/br-switch.entry.js.map +1 -0
  487. package/dist/esm/br-tab-item.entry.js +74 -0
  488. package/dist/esm/br-tab-item.entry.js.map +1 -0
  489. package/dist/esm/br-tab.entry.js +292 -0
  490. package/dist/esm/br-tab.entry.js.map +1 -0
  491. package/dist/esm/br-table-cell.entry.js +79 -0
  492. package/dist/esm/br-table-cell.entry.js.map +1 -0
  493. package/dist/esm/br-table-header-cell.entry.js +68 -0
  494. package/dist/esm/br-table-header-cell.entry.js.map +1 -0
  495. package/dist/esm/br-table-header-row.entry.js +42 -0
  496. package/dist/esm/br-table-header-row.entry.js.map +1 -0
  497. package/dist/esm/br-table-row.entry.js +34 -0
  498. package/dist/esm/br-table-row.entry.js.map +1 -0
  499. package/dist/esm/br-table.entry.js +42 -0
  500. package/dist/esm/br-table.entry.js.map +1 -0
  501. package/dist/esm/br-tag.entry.js +196 -0
  502. package/dist/esm/br-tag.entry.js.map +1 -0
  503. package/dist/esm/br-textarea.entry.js +120 -0
  504. package/dist/esm/br-textarea.entry.js.map +1 -0
  505. package/dist/esm/br-upload.entry.js +149 -0
  506. package/dist/esm/br-upload.entry.js.map +1 -0
  507. package/dist/esm/helpers-BRKK5nMe.js +21 -0
  508. package/dist/esm/helpers-BRKK5nMe.js.map +1 -0
  509. package/dist/esm/index-ClsF4De3.js +2400 -0
  510. package/dist/esm/index-ClsF4De3.js.map +1 -0
  511. package/dist/esm/index.js +7 -0
  512. package/dist/esm/index.js.map +1 -0
  513. package/dist/esm/loader.js +18 -0
  514. package/dist/esm/loader.js.map +1 -0
  515. package/dist/esm/webcomponents.js +49 -0
  516. package/dist/esm/webcomponents.js.map +1 -0
  517. package/dist/hydrate/index.d.ts +259 -0
  518. package/dist/hydrate/index.js +26723 -0
  519. package/dist/hydrate/index.mjs +26717 -0
  520. package/dist/hydrate/package.json +12 -0
  521. package/dist/index.cjs.js +1 -0
  522. package/dist/index.js +1 -0
  523. package/dist/loader/cdn.js +5 -0
  524. package/dist/loader/index.cjs.js +5 -0
  525. package/dist/loader/index.d.ts +24 -0
  526. package/dist/loader/index.es2017.js +5 -0
  527. package/dist/loader/index.js +6 -0
  528. package/dist/stencil.config.js +177 -0
  529. package/dist/stencil.config.js.map +1 -0
  530. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/docs-utils.d.ts +7 -0
  531. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-css-props.d.ts +2 -0
  532. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-dependencies.d.ts +2 -0
  533. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-events-all.d.ts +2 -0
  534. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-events.d.ts +2 -0
  535. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-examples.d.ts +2 -0
  536. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-methods-all.d.ts +2 -0
  537. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-methods.d.ts +2 -0
  538. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-overview.d.ts +6 -0
  539. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-parts.d.ts +7 -0
  540. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-props-all.d.ts +2 -0
  541. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-props.d.ts +2 -0
  542. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-sections.d.ts +2 -0
  543. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-slots-all.d.ts +2 -0
  544. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/markdown-slots.d.ts +7 -0
  545. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/output-docs.d.ts +2 -0
  546. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/path.d.ts +36 -0
  547. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/custom-docs/sort-markdown-tables.d.ts +1 -0
  548. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/.stencil/packages/webcomponents/stencil.config.d.ts +2 -0
  549. package/dist/types/components/avatar/avatar.d.ts +74 -0
  550. package/dist/types/components/breadcrumb/breadcrumb.d.ts +158 -0
  551. package/dist/types/components/button/button.d.ts +68 -0
  552. package/dist/types/components/checkbox/checkbox.d.ts +89 -0
  553. package/dist/types/components/checkgroup/checkgroup.d.ts +52 -0
  554. package/dist/types/components/collapse/collapse.d.ts +114 -0
  555. package/dist/types/components/divider/divider.d.ts +34 -0
  556. package/dist/types/components/dropdown/dropdown.d.ts +67 -0
  557. package/dist/types/components/footer/footer.d.ts +37 -0
  558. package/dist/types/components/footer-category/footer-category.d.ts +81 -0
  559. package/dist/types/components/footer-item/footer-item.d.ts +39 -0
  560. package/dist/types/components/footer-legal/footer-legal.d.ts +24 -0
  561. package/dist/types/components/footer-logo/footer-logo.d.ts +49 -0
  562. package/dist/types/components/footer-social/footer-social.d.ts +38 -0
  563. package/dist/types/components/icon/icon.d.ts +61 -0
  564. package/dist/types/components/input/input.d.ts +158 -0
  565. package/dist/types/components/item/item.d.ts +109 -0
  566. package/dist/types/components/list/list.d.ts +75 -0
  567. package/dist/types/components/loading/loading.d.ts +37 -0
  568. package/dist/types/components/message/message.d.ts +75 -0
  569. package/dist/types/components/radio/radio.d.ts +85 -0
  570. package/dist/types/components/scrim/scrim.d.ts +128 -0
  571. package/dist/types/components/select/select.d.ts +119 -0
  572. package/dist/types/components/step/step.d.ts +103 -0
  573. package/dist/types/components/step-item/step-item.d.ts +102 -0
  574. package/dist/types/components/switch/switch.d.ts +80 -0
  575. package/dist/types/components/tab/tab.d.ts +103 -0
  576. package/dist/types/components/tab-item/tab-item.d.ts +52 -0
  577. package/dist/types/components/table/table.d.ts +27 -0
  578. package/dist/types/components/table-cell/table-cell.d.ts +50 -0
  579. package/dist/types/components/table-header-cell/table-header-cell.d.ts +39 -0
  580. package/dist/types/components/table-header-row/table-header-row.d.ts +27 -0
  581. package/dist/types/components/table-row/table-row.d.ts +19 -0
  582. package/dist/types/components/tag/tag.d.ts +95 -0
  583. package/dist/types/components/textarea/textarea.d.ts +70 -0
  584. package/dist/types/components/upload/upload.d.ts +66 -0
  585. package/dist/types/components.d.ts +3328 -0
  586. package/dist/types/index.d.ts +10 -0
  587. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  588. package/dist/types/utils/css-variables.d.ts +5 -0
  589. package/dist/types/utils/helpers.d.ts +8 -0
  590. package/dist/types/utils/interfaces.d.ts +3 -0
  591. package/dist/types/utils/stack-manager.d.ts +0 -0
  592. package/dist/types/utils/types.d.ts +1 -0
  593. package/dist/types/value-accessors/angular-value-accessor-config.d.ts +6 -0
  594. package/dist/types/value-accessors/index.d.ts +2 -0
  595. package/dist/types/value-accessors/vue-model-config.d.ts +2 -0
  596. package/dist/webcomponents/br-avatar.entry.esm.js.map +1 -0
  597. package/dist/webcomponents/br-breadcrumb.entry.esm.js.map +1 -0
  598. package/dist/webcomponents/br-button.br-icon.entry.esm.js.map +1 -0
  599. package/dist/webcomponents/br-checkbox.entry.esm.js.map +1 -0
  600. package/dist/webcomponents/br-checkgroup.entry.esm.js.map +1 -0
  601. package/dist/webcomponents/br-collapse.br-list.entry.esm.js.map +1 -0
  602. package/dist/webcomponents/br-divider.entry.esm.js.map +1 -0
  603. package/dist/webcomponents/br-dropdown.entry.esm.js.map +1 -0
  604. package/dist/webcomponents/br-footer-category.entry.esm.js.map +1 -0
  605. package/dist/webcomponents/br-footer-item.entry.esm.js.map +1 -0
  606. package/dist/webcomponents/br-footer-legal.entry.esm.js.map +1 -0
  607. package/dist/webcomponents/br-footer-logo.entry.esm.js.map +1 -0
  608. package/dist/webcomponents/br-footer-social.entry.esm.js.map +1 -0
  609. package/dist/webcomponents/br-footer.entry.esm.js.map +1 -0
  610. package/dist/webcomponents/br-input.br-radio.entry.esm.js.map +1 -0
  611. package/dist/webcomponents/br-item.entry.esm.js.map +1 -0
  612. package/dist/webcomponents/br-loading.entry.esm.js.map +1 -0
  613. package/dist/webcomponents/br-message.entry.esm.js.map +1 -0
  614. package/dist/webcomponents/br-scrim.entry.esm.js.map +1 -0
  615. package/dist/webcomponents/br-select.entry.esm.js.map +1 -0
  616. package/dist/webcomponents/br-step-item.entry.esm.js.map +1 -0
  617. package/dist/webcomponents/br-step.entry.esm.js.map +1 -0
  618. package/dist/webcomponents/br-switch.entry.esm.js.map +1 -0
  619. package/dist/webcomponents/br-tab-item.entry.esm.js.map +1 -0
  620. package/dist/webcomponents/br-tab.entry.esm.js.map +1 -0
  621. package/dist/webcomponents/br-table-cell.entry.esm.js.map +1 -0
  622. package/dist/webcomponents/br-table-header-cell.entry.esm.js.map +1 -0
  623. package/dist/webcomponents/br-table-header-row.entry.esm.js.map +1 -0
  624. package/dist/webcomponents/br-table-row.entry.esm.js.map +1 -0
  625. package/dist/webcomponents/br-table.entry.esm.js.map +1 -0
  626. package/dist/webcomponents/br-tag.entry.esm.js.map +1 -0
  627. package/dist/webcomponents/br-textarea.entry.esm.js.map +1 -0
  628. package/dist/webcomponents/br-upload.entry.esm.js.map +1 -0
  629. package/dist/webcomponents/index.esm.js +7 -0
  630. package/dist/webcomponents/index.esm.js.map +1 -0
  631. package/dist/webcomponents/loader.esm.js.map +1 -0
  632. package/dist/webcomponents/p-0447cdba.entry.js +389 -0
  633. package/dist/webcomponents/p-0447cdba.entry.js.map +1 -0
  634. package/dist/webcomponents/p-11862752.entry.js +178 -0
  635. package/dist/webcomponents/p-11862752.entry.js.map +1 -0
  636. package/dist/webcomponents/p-134cb974.entry.js +88 -0
  637. package/dist/webcomponents/p-134cb974.entry.js.map +1 -0
  638. package/dist/webcomponents/p-1cf7cc9c.entry.js +86 -0
  639. package/dist/webcomponents/p-1cf7cc9c.entry.js.map +1 -0
  640. package/dist/webcomponents/p-206222bd.entry.js +61 -0
  641. package/dist/webcomponents/p-206222bd.entry.js.map +1 -0
  642. package/dist/webcomponents/p-2068764a.entry.js +61 -0
  643. package/dist/webcomponents/p-2068764a.entry.js.map +1 -0
  644. package/dist/webcomponents/p-23a4fcb7.entry.js +164 -0
  645. package/dist/webcomponents/p-23a4fcb7.entry.js.map +1 -0
  646. package/dist/webcomponents/p-28ea059b.entry.js +149 -0
  647. package/dist/webcomponents/p-28ea059b.entry.js.map +1 -0
  648. package/dist/webcomponents/p-314c0445.entry.js +44 -0
  649. package/dist/webcomponents/p-314c0445.entry.js.map +1 -0
  650. package/dist/webcomponents/p-316ca203.entry.js +105 -0
  651. package/dist/webcomponents/p-316ca203.entry.js.map +1 -0
  652. package/dist/webcomponents/p-421fbea1.entry.js +258 -0
  653. package/dist/webcomponents/p-421fbea1.entry.js.map +1 -0
  654. package/dist/webcomponents/p-4e7ea644.entry.js +79 -0
  655. package/dist/webcomponents/p-4e7ea644.entry.js.map +1 -0
  656. package/dist/webcomponents/p-516a7306.entry.js +51 -0
  657. package/dist/webcomponents/p-516a7306.entry.js.map +1 -0
  658. package/dist/webcomponents/p-5a36e6be.entry.js +399 -0
  659. package/dist/webcomponents/p-5a36e6be.entry.js.map +1 -0
  660. package/dist/webcomponents/p-658ace55.entry.js +52 -0
  661. package/dist/webcomponents/p-658ace55.entry.js.map +1 -0
  662. package/dist/webcomponents/p-6c43ab50.entry.js +167 -0
  663. package/dist/webcomponents/p-6c43ab50.entry.js.map +1 -0
  664. package/dist/webcomponents/p-713035b5.entry.js +344 -0
  665. package/dist/webcomponents/p-713035b5.entry.js.map +1 -0
  666. package/dist/webcomponents/p-7fe9c7a6.entry.js +282 -0
  667. package/dist/webcomponents/p-7fe9c7a6.entry.js.map +1 -0
  668. package/dist/webcomponents/p-8beb9c43.entry.js +117 -0
  669. package/dist/webcomponents/p-8beb9c43.entry.js.map +1 -0
  670. package/dist/webcomponents/p-8fe3366e.entry.js +484 -0
  671. package/dist/webcomponents/p-8fe3366e.entry.js.map +1 -0
  672. package/dist/webcomponents/p-97a81778.entry.js +72 -0
  673. package/dist/webcomponents/p-97a81778.entry.js.map +1 -0
  674. package/dist/webcomponents/p-BRKK5nMe.js +22 -0
  675. package/dist/webcomponents/p-BRKK5nMe.js.map +1 -0
  676. package/dist/webcomponents/p-ClsF4De3.js +2266 -0
  677. package/dist/webcomponents/p-ClsF4De3.js.map +1 -0
  678. package/dist/webcomponents/p-DVjNHTTs.js +9 -0
  679. package/dist/webcomponents/p-DVjNHTTs.js.map +1 -0
  680. package/dist/webcomponents/p-ab251560.entry.js +141 -0
  681. package/dist/webcomponents/p-ab251560.entry.js.map +1 -0
  682. package/dist/webcomponents/p-ac1f9283.entry.js +277 -0
  683. package/dist/webcomponents/p-ac1f9283.entry.js.map +1 -0
  684. package/dist/webcomponents/p-ad61c1ff.entry.js +153 -0
  685. package/dist/webcomponents/p-ad61c1ff.entry.js.map +1 -0
  686. package/dist/webcomponents/p-ad8edd59.entry.js +210 -0
  687. package/dist/webcomponents/p-ad8edd59.entry.js.map +1 -0
  688. package/dist/webcomponents/p-bc417fe6.entry.js +2372 -0
  689. package/dist/webcomponents/p-bc417fe6.entry.js.map +1 -0
  690. package/dist/webcomponents/p-c3267481.entry.js +462 -0
  691. package/dist/webcomponents/p-c3267481.entry.js.map +1 -0
  692. package/dist/webcomponents/p-ca5c62c2.entry.js +108 -0
  693. package/dist/webcomponents/p-ca5c62c2.entry.js.map +1 -0
  694. package/dist/webcomponents/p-d0f538be.entry.js +83 -0
  695. package/dist/webcomponents/p-d0f538be.entry.js.map +1 -0
  696. package/dist/webcomponents/p-dbfc2a44.entry.js +354 -0
  697. package/dist/webcomponents/p-dbfc2a44.entry.js.map +1 -0
  698. package/dist/webcomponents/p-e510f79c.entry.js +89 -0
  699. package/dist/webcomponents/p-e510f79c.entry.js.map +1 -0
  700. package/dist/webcomponents/p-f246829a.entry.js +297 -0
  701. package/dist/webcomponents/p-f246829a.entry.js.map +1 -0
  702. package/dist/webcomponents/p-f9f7d333.entry.js +145 -0
  703. package/dist/webcomponents/p-f9f7d333.entry.js.map +1 -0
  704. package/dist/webcomponents/webcomponents.esm.js +418 -0
  705. package/dist/webcomponents/webcomponents.esm.js.map +1 -0
  706. package/dist/webcomponents.html-custom-data.json +737 -0
  707. package/package.json +17 -95
  708. package/README.md +0 -158
@@ -0,0 +1,2400 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ const NAMESPACE = 'webcomponents';
6
+ const BUILD = /* webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
7
+
8
+ /*
9
+ Stencil Client Platform v4.28.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var __defProp = Object.defineProperty;
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
16
+
17
+ // src/utils/es2022-rewire-class-members.ts
18
+ var reWireGetterSetter = (instance, hostRef) => {
19
+ var _a;
20
+ const cmpMeta = hostRef.$cmpMeta$;
21
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
22
+ members.map(([memberName, [memberFlags]]) => {
23
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
24
+ const ogValue = instance[memberName];
25
+ const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
26
+ Object.defineProperty(instance, memberName, {
27
+ get() {
28
+ return ogDescriptor.get.call(this);
29
+ },
30
+ set(newValue) {
31
+ ogDescriptor.set.call(this, newValue);
32
+ },
33
+ configurable: true,
34
+ enumerable: true
35
+ });
36
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
37
+ }
38
+ });
39
+ };
40
+
41
+ // src/client/client-host-ref.ts
42
+ var getHostRef = (ref) => {
43
+ if (ref.__stencil__getHostRef) {
44
+ return ref.__stencil__getHostRef();
45
+ }
46
+ return void 0;
47
+ };
48
+ var registerInstance = (lazyInstance, hostRef) => {
49
+ lazyInstance.__stencil__getHostRef = () => hostRef;
50
+ hostRef.$lazyInstance$ = lazyInstance;
51
+ {
52
+ reWireGetterSetter(lazyInstance, hostRef);
53
+ }
54
+ };
55
+ var registerHost = (hostElement, cmpMeta) => {
56
+ const hostRef = {
57
+ $flags$: 0,
58
+ $hostElement$: hostElement,
59
+ $cmpMeta$: cmpMeta,
60
+ $instanceValues$: /* @__PURE__ */ new Map()
61
+ };
62
+ {
63
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
64
+ }
65
+ {
66
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
67
+ hostElement["s-p"] = [];
68
+ hostElement["s-rc"] = [];
69
+ }
70
+ const ref = hostRef;
71
+ hostElement.__stencil__getHostRef = () => ref;
72
+ return ref;
73
+ };
74
+ var isMemberInElement = (elm, memberName) => memberName in elm;
75
+ var consoleError = (e, el) => (0, console.error)(e, el);
76
+
77
+ // src/client/client-load-module.ts
78
+ var cmpModules = /* @__PURE__ */ new Map();
79
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
80
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
81
+ const bundleId = cmpMeta.$lazyBundleId$;
82
+ if (!bundleId) {
83
+ return void 0;
84
+ }
85
+ const module = cmpModules.get(bundleId) ;
86
+ if (module) {
87
+ return module[exportName];
88
+ }
89
+
90
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
91
+ const processMod = importedModule => {
92
+ cmpModules.set(bundleId, importedModule);
93
+ return importedModule[exportName];
94
+ }
95
+ switch(bundleId) {
96
+
97
+ case 'br-avatar':
98
+ return import(
99
+ /* webpackMode: "lazy" */
100
+ './br-avatar.entry.js').then(processMod, consoleError);
101
+ case 'br-breadcrumb':
102
+ return import(
103
+ /* webpackMode: "lazy" */
104
+ './br-breadcrumb.entry.js').then(processMod, consoleError);
105
+ case 'br-checkgroup':
106
+ return import(
107
+ /* webpackMode: "lazy" */
108
+ './br-checkgroup.entry.js').then(processMod, consoleError);
109
+ case 'br-dropdown':
110
+ return import(
111
+ /* webpackMode: "lazy" */
112
+ './br-dropdown.entry.js').then(processMod, consoleError);
113
+ case 'br-footer':
114
+ return import(
115
+ /* webpackMode: "lazy" */
116
+ './br-footer.entry.js').then(processMod, consoleError);
117
+ case 'br-footer-category':
118
+ return import(
119
+ /* webpackMode: "lazy" */
120
+ './br-footer-category.entry.js').then(processMod, consoleError);
121
+ case 'br-footer-item':
122
+ return import(
123
+ /* webpackMode: "lazy" */
124
+ './br-footer-item.entry.js').then(processMod, consoleError);
125
+ case 'br-footer-legal':
126
+ return import(
127
+ /* webpackMode: "lazy" */
128
+ './br-footer-legal.entry.js').then(processMod, consoleError);
129
+ case 'br-footer-logo':
130
+ return import(
131
+ /* webpackMode: "lazy" */
132
+ './br-footer-logo.entry.js').then(processMod, consoleError);
133
+ case 'br-footer-social':
134
+ return import(
135
+ /* webpackMode: "lazy" */
136
+ './br-footer-social.entry.js').then(processMod, consoleError);
137
+ case 'br-loading':
138
+ return import(
139
+ /* webpackMode: "lazy" */
140
+ './br-loading.entry.js').then(processMod, consoleError);
141
+ case 'br-message':
142
+ return import(
143
+ /* webpackMode: "lazy" */
144
+ './br-message.entry.js').then(processMod, consoleError);
145
+ case 'br-scrim':
146
+ return import(
147
+ /* webpackMode: "lazy" */
148
+ './br-scrim.entry.js').then(processMod, consoleError);
149
+ case 'br-select':
150
+ return import(
151
+ /* webpackMode: "lazy" */
152
+ './br-select.entry.js').then(processMod, consoleError);
153
+ case 'br-step':
154
+ return import(
155
+ /* webpackMode: "lazy" */
156
+ './br-step.entry.js').then(processMod, consoleError);
157
+ case 'br-step-item':
158
+ return import(
159
+ /* webpackMode: "lazy" */
160
+ './br-step-item.entry.js').then(processMod, consoleError);
161
+ case 'br-switch':
162
+ return import(
163
+ /* webpackMode: "lazy" */
164
+ './br-switch.entry.js').then(processMod, consoleError);
165
+ case 'br-tab':
166
+ return import(
167
+ /* webpackMode: "lazy" */
168
+ './br-tab.entry.js').then(processMod, consoleError);
169
+ case 'br-tab-item':
170
+ return import(
171
+ /* webpackMode: "lazy" */
172
+ './br-tab-item.entry.js').then(processMod, consoleError);
173
+ case 'br-table':
174
+ return import(
175
+ /* webpackMode: "lazy" */
176
+ './br-table.entry.js').then(processMod, consoleError);
177
+ case 'br-table-cell':
178
+ return import(
179
+ /* webpackMode: "lazy" */
180
+ './br-table-cell.entry.js').then(processMod, consoleError);
181
+ case 'br-table-header-row':
182
+ return import(
183
+ /* webpackMode: "lazy" */
184
+ './br-table-header-row.entry.js').then(processMod, consoleError);
185
+ case 'br-table-row':
186
+ return import(
187
+ /* webpackMode: "lazy" */
188
+ './br-table-row.entry.js').then(processMod, consoleError);
189
+ case 'br-tag':
190
+ return import(
191
+ /* webpackMode: "lazy" */
192
+ './br-tag.entry.js').then(processMod, consoleError);
193
+ case 'br-textarea':
194
+ return import(
195
+ /* webpackMode: "lazy" */
196
+ './br-textarea.entry.js').then(processMod, consoleError);
197
+ case 'br-upload':
198
+ return import(
199
+ /* webpackMode: "lazy" */
200
+ './br-upload.entry.js').then(processMod, consoleError);
201
+ case 'br-divider':
202
+ return import(
203
+ /* webpackMode: "lazy" */
204
+ './br-divider.entry.js').then(processMod, consoleError);
205
+ case 'br-checkbox':
206
+ return import(
207
+ /* webpackMode: "lazy" */
208
+ './br-checkbox.entry.js').then(processMod, consoleError);
209
+ case 'br-item':
210
+ return import(
211
+ /* webpackMode: "lazy" */
212
+ './br-item.entry.js').then(processMod, consoleError);
213
+ case 'br-table-header-cell':
214
+ return import(
215
+ /* webpackMode: "lazy" */
216
+ './br-table-header-cell.entry.js').then(processMod, consoleError);
217
+ case 'br-input_2':
218
+ return import(
219
+ /* webpackMode: "lazy" */
220
+ './br-input_2.entry.js').then(processMod, consoleError);
221
+ case 'br-collapse_2':
222
+ return import(
223
+ /* webpackMode: "lazy" */
224
+ './br-collapse_2.entry.js').then(processMod, consoleError);
225
+ case 'br-button_2':
226
+ return import(
227
+ /* webpackMode: "lazy" */
228
+ './br-button_2.entry.js').then(processMod, consoleError);
229
+ }
230
+ }
231
+ return import(
232
+ /* @vite-ignore */
233
+ /* webpackInclude: /\.entry\.js$/ */
234
+ /* webpackExclude: /\.system\.entry\.js$/ */
235
+ /* webpackMode: "lazy" */
236
+ `./${bundleId}.entry.js${""}`
237
+ ).then(
238
+ (importedModule) => {
239
+ {
240
+ cmpModules.set(bundleId, importedModule);
241
+ }
242
+ return importedModule[exportName];
243
+ },
244
+ (e) => {
245
+ consoleError(e, hostRef.$hostElement$);
246
+ }
247
+ );
248
+ };
249
+
250
+ // src/client/client-style.ts
251
+ var styles = /* @__PURE__ */ new Map();
252
+
253
+ // src/runtime/runtime-constants.ts
254
+ var CONTENT_REF_ID = "r";
255
+ var ORG_LOCATION_ID = "o";
256
+ var SLOT_NODE_ID = "s";
257
+ var TEXT_NODE_ID = "t";
258
+ var COMMENT_NODE_ID = "c";
259
+ var HYDRATE_ID = "s-id";
260
+ var HYDRATED_STYLE_ID = "sty-id";
261
+ var HYDRATE_CHILD_ID = "c-id";
262
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
263
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
264
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
265
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
266
+ "formAssociatedCallback",
267
+ "formResetCallback",
268
+ "formDisabledCallback",
269
+ "formStateRestoreCallback"
270
+ ];
271
+ var win = typeof window !== "undefined" ? window : {};
272
+ var H = win.HTMLElement || class {
273
+ };
274
+ var plt = {
275
+ $flags$: 0,
276
+ $resourcesUrl$: "",
277
+ jmp: (h2) => h2(),
278
+ raf: (h2) => requestAnimationFrame(h2),
279
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
280
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
281
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
282
+ };
283
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
284
+ var _a;
285
+ let supportsListenerOptions2 = false;
286
+ try {
287
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
288
+ "e",
289
+ null,
290
+ Object.defineProperty({}, "passive", {
291
+ get() {
292
+ supportsListenerOptions2 = true;
293
+ }
294
+ })
295
+ );
296
+ } catch (e) {
297
+ }
298
+ return supportsListenerOptions2;
299
+ })();
300
+ var promiseResolve = (v) => Promise.resolve(v);
301
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
302
+ try {
303
+ new CSSStyleSheet();
304
+ return typeof new CSSStyleSheet().replaceSync === "function";
305
+ } catch (e) {
306
+ }
307
+ return false;
308
+ })() ;
309
+ var queuePending = false;
310
+ var queueDomReads = [];
311
+ var queueDomWrites = [];
312
+ var queueTask = (queue, write) => (cb) => {
313
+ queue.push(cb);
314
+ if (!queuePending) {
315
+ queuePending = true;
316
+ if (write && plt.$flags$ & 4 /* queueSync */) {
317
+ nextTick(flush);
318
+ } else {
319
+ plt.raf(flush);
320
+ }
321
+ }
322
+ };
323
+ var consume = (queue) => {
324
+ for (let i2 = 0; i2 < queue.length; i2++) {
325
+ try {
326
+ queue[i2](performance.now());
327
+ } catch (e) {
328
+ consoleError(e);
329
+ }
330
+ }
331
+ queue.length = 0;
332
+ };
333
+ var flush = () => {
334
+ consume(queueDomReads);
335
+ {
336
+ consume(queueDomWrites);
337
+ if (queuePending = queueDomReads.length > 0) {
338
+ plt.raf(flush);
339
+ }
340
+ }
341
+ };
342
+ var nextTick = (cb) => promiseResolve().then(cb);
343
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
344
+ var isComplexType = (o) => {
345
+ o = typeof o;
346
+ return o === "object" || o === "function";
347
+ };
348
+
349
+ // src/utils/query-nonce-meta-tag-content.ts
350
+ function queryNonceMetaTagContent(doc) {
351
+ var _a, _b, _c;
352
+ 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;
353
+ }
354
+
355
+ // src/utils/result.ts
356
+ var result_exports = {};
357
+ __export(result_exports, {
358
+ err: () => err,
359
+ map: () => map,
360
+ ok: () => ok,
361
+ unwrap: () => unwrap,
362
+ unwrapErr: () => unwrapErr
363
+ });
364
+ var ok = (value) => ({
365
+ isOk: true,
366
+ isErr: false,
367
+ value
368
+ });
369
+ var err = (value) => ({
370
+ isOk: false,
371
+ isErr: true,
372
+ value
373
+ });
374
+ function map(result, fn) {
375
+ if (result.isOk) {
376
+ const val = fn(result.value);
377
+ if (val instanceof Promise) {
378
+ return val.then((newVal) => ok(newVal));
379
+ } else {
380
+ return ok(val);
381
+ }
382
+ }
383
+ if (result.isErr) {
384
+ const value = result.value;
385
+ return err(value);
386
+ }
387
+ throw "should never get here";
388
+ }
389
+ var unwrap = (result) => {
390
+ if (result.isOk) {
391
+ return result.value;
392
+ } else {
393
+ throw result.value;
394
+ }
395
+ };
396
+ var unwrapErr = (result) => {
397
+ if (result.isErr) {
398
+ return result.value;
399
+ } else {
400
+ throw result.value;
401
+ }
402
+ };
403
+ var getSlottedChildNodes = (childNodes) => {
404
+ const result = [];
405
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
406
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
407
+ if (slottedNode && slottedNode.isConnected) {
408
+ result.push(slottedNode);
409
+ }
410
+ }
411
+ return result;
412
+ };
413
+ function getHostSlotNodes(childNodes, hostName, slotName) {
414
+ let i2 = 0;
415
+ let slottedNodes = [];
416
+ let childNode;
417
+ for (; i2 < childNodes.length; i2++) {
418
+ childNode = childNodes[i2];
419
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
420
+ slottedNodes.push(childNode);
421
+ if (typeof slotName !== "undefined") return slottedNodes;
422
+ }
423
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
424
+ }
425
+ return slottedNodes;
426
+ }
427
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
428
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
429
+ return;
430
+ }
431
+ const slottedNodeLocation = document.createTextNode("");
432
+ slottedNodeLocation["s-nr"] = newChild;
433
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
434
+ const parent = slotNode["s-cr"].parentNode;
435
+ const appendMethod = internalCall(parent, "appendChild");
436
+ if (typeof position !== "undefined") {
437
+ slottedNodeLocation["s-oo"] = position;
438
+ const childNodes = internalCall(parent, "childNodes");
439
+ const slotRelocateNodes = [slottedNodeLocation];
440
+ childNodes.forEach((n) => {
441
+ if (n["s-nr"]) slotRelocateNodes.push(n);
442
+ });
443
+ slotRelocateNodes.sort((a, b) => {
444
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
445
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
446
+ return 0;
447
+ });
448
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
449
+ } else {
450
+ appendMethod.call(parent, slottedNodeLocation);
451
+ }
452
+ newChild["s-ol"] = slottedNodeLocation;
453
+ newChild["s-sh"] = slotNode["s-hn"];
454
+ };
455
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
456
+ function patchSlotNode(node) {
457
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
458
+ const assignedFactory = (elementsOnly) => (function(opts) {
459
+ const toReturn = [];
460
+ const slotName = this["s-sn"];
461
+ if (opts == null ? void 0 : opts.flatten) {
462
+ console.error(`
463
+ Flattening is not supported for Stencil non-shadow slots.
464
+ You can use \`.childNodes\` to nested slot fallback content.
465
+ If you have a particular use case, please open an issue on the Stencil repo.
466
+ `);
467
+ }
468
+ const parent = this["s-cr"].parentElement;
469
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
470
+ slottedNodes.forEach((n) => {
471
+ if (slotName === getSlotName(n)) {
472
+ toReturn.push(n);
473
+ }
474
+ });
475
+ if (elementsOnly) {
476
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
477
+ }
478
+ return toReturn;
479
+ }).bind(node);
480
+ node.assignedElements = assignedFactory(true);
481
+ node.assignedNodes = assignedFactory(false);
482
+ }
483
+ function dispatchSlotChangeEvent(elm) {
484
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
485
+ }
486
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
487
+ var _a;
488
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
489
+ if (!parentHost) return { slotNode: null, slotName: "" };
490
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
491
+ const childNodes = internalCall(parentHost, "childNodes");
492
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
493
+ return { slotNode, slotName };
494
+ }
495
+ var patchSlottedNode = (node) => {
496
+ if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
497
+ patchNextSibling(node);
498
+ patchPreviousSibling(node);
499
+ patchParentNode(node);
500
+ if (node.nodeType === Node.ELEMENT_NODE) {
501
+ patchNextElementSibling(node);
502
+ patchPreviousElementSibling(node);
503
+ }
504
+ };
505
+ var patchNextSibling = (node) => {
506
+ if (!node || node.__nextSibling) return;
507
+ patchHostOriginalAccessor("nextSibling", node);
508
+ Object.defineProperty(node, "nextSibling", {
509
+ get: function() {
510
+ var _a;
511
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
512
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
513
+ if (parentNodes && index > -1) {
514
+ return parentNodes[index + 1];
515
+ }
516
+ return this.__nextSibling;
517
+ }
518
+ });
519
+ };
520
+ var patchNextElementSibling = (element) => {
521
+ if (!element || element.__nextElementSibling) return;
522
+ patchHostOriginalAccessor("nextElementSibling", element);
523
+ Object.defineProperty(element, "nextElementSibling", {
524
+ get: function() {
525
+ var _a;
526
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
527
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
528
+ if (parentEles && index > -1) {
529
+ return parentEles[index + 1];
530
+ }
531
+ return this.__nextElementSibling;
532
+ }
533
+ });
534
+ };
535
+ var patchPreviousSibling = (node) => {
536
+ if (!node || node.__previousSibling) return;
537
+ patchHostOriginalAccessor("previousSibling", node);
538
+ Object.defineProperty(node, "previousSibling", {
539
+ get: function() {
540
+ var _a;
541
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
542
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
543
+ if (parentNodes && index > -1) {
544
+ return parentNodes[index - 1];
545
+ }
546
+ return this.__previousSibling;
547
+ }
548
+ });
549
+ };
550
+ var patchPreviousElementSibling = (element) => {
551
+ if (!element || element.__previousElementSibling) return;
552
+ patchHostOriginalAccessor("previousElementSibling", element);
553
+ Object.defineProperty(element, "previousElementSibling", {
554
+ get: function() {
555
+ var _a;
556
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
557
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
558
+ if (parentNodes && index > -1) {
559
+ return parentNodes[index - 1];
560
+ }
561
+ return this.__previousElementSibling;
562
+ }
563
+ });
564
+ };
565
+ var patchParentNode = (node) => {
566
+ if (!node || node.__parentNode) return;
567
+ patchHostOriginalAccessor("parentNode", node);
568
+ Object.defineProperty(node, "parentNode", {
569
+ get: function() {
570
+ var _a;
571
+ return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
572
+ },
573
+ set: function(value) {
574
+ this.__parentNode = value;
575
+ }
576
+ });
577
+ };
578
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
579
+ var validNodesPatches = [
580
+ "childNodes",
581
+ "firstChild",
582
+ "lastChild",
583
+ "nextSibling",
584
+ "previousSibling",
585
+ "textContent",
586
+ "parentNode"
587
+ ];
588
+ function patchHostOriginalAccessor(accessorName, node) {
589
+ let accessor;
590
+ if (validElementPatches.includes(accessorName)) {
591
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
592
+ } else if (validNodesPatches.includes(accessorName)) {
593
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
594
+ }
595
+ if (!accessor) {
596
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
597
+ }
598
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
599
+ }
600
+ function internalCall(node, method) {
601
+ if ("__" + method in node) {
602
+ const toReturn = node["__" + method];
603
+ if (typeof toReturn !== "function") return toReturn;
604
+ return toReturn.bind(node);
605
+ } else {
606
+ if (typeof node[method] !== "function") return node[method];
607
+ return node[method].bind(node);
608
+ }
609
+ }
610
+ var createTime = (fnName, tagName = "") => {
611
+ {
612
+ return () => {
613
+ return;
614
+ };
615
+ }
616
+ };
617
+ var uniqueTime = (key, measureText) => {
618
+ {
619
+ return () => {
620
+ return;
621
+ };
622
+ }
623
+ };
624
+ var h = (nodeName, vnodeData, ...children) => {
625
+ let child = null;
626
+ let key = null;
627
+ let simple = false;
628
+ let lastSimple = false;
629
+ const vNodeChildren = [];
630
+ const walk = (c) => {
631
+ for (let i2 = 0; i2 < c.length; i2++) {
632
+ child = c[i2];
633
+ if (Array.isArray(child)) {
634
+ walk(child);
635
+ } else if (child != null && typeof child !== "boolean") {
636
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
637
+ child = String(child);
638
+ }
639
+ if (simple && lastSimple) {
640
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
641
+ } else {
642
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
643
+ }
644
+ lastSimple = simple;
645
+ }
646
+ }
647
+ };
648
+ walk(children);
649
+ if (vnodeData) {
650
+ if (vnodeData.key) {
651
+ key = vnodeData.key;
652
+ }
653
+ {
654
+ const classData = vnodeData.className || vnodeData.class;
655
+ if (classData) {
656
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
657
+ }
658
+ }
659
+ }
660
+ if (typeof nodeName === "function") {
661
+ return nodeName(
662
+ vnodeData === null ? {} : vnodeData,
663
+ vNodeChildren,
664
+ vdomFnUtils
665
+ );
666
+ }
667
+ const vnode = newVNode(nodeName, null);
668
+ vnode.$attrs$ = vnodeData;
669
+ if (vNodeChildren.length > 0) {
670
+ vnode.$children$ = vNodeChildren;
671
+ }
672
+ {
673
+ vnode.$key$ = key;
674
+ }
675
+ return vnode;
676
+ };
677
+ var newVNode = (tag, text) => {
678
+ const vnode = {
679
+ $flags$: 0,
680
+ $tag$: tag,
681
+ $text$: text,
682
+ $elm$: null,
683
+ $children$: null
684
+ };
685
+ {
686
+ vnode.$attrs$ = null;
687
+ }
688
+ {
689
+ vnode.$key$ = null;
690
+ }
691
+ return vnode;
692
+ };
693
+ var Host = {};
694
+ var isHost = (node) => node && node.$tag$ === Host;
695
+ var vdomFnUtils = {
696
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
697
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
698
+ };
699
+ var convertToPublic = (node) => ({
700
+ vattrs: node.$attrs$,
701
+ vchildren: node.$children$,
702
+ vkey: node.$key$,
703
+ vname: node.$name$,
704
+ vtag: node.$tag$,
705
+ vtext: node.$text$
706
+ });
707
+ var convertToPrivate = (node) => {
708
+ if (typeof node.vtag === "function") {
709
+ const vnodeData = { ...node.vattrs };
710
+ if (node.vkey) {
711
+ vnodeData.key = node.vkey;
712
+ }
713
+ if (node.vname) {
714
+ vnodeData.name = node.vname;
715
+ }
716
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
717
+ }
718
+ const vnode = newVNode(node.vtag, node.vtext);
719
+ vnode.$attrs$ = node.vattrs;
720
+ vnode.$children$ = node.vchildren;
721
+ vnode.$key$ = node.vkey;
722
+ vnode.$name$ = node.vname;
723
+ return vnode;
724
+ };
725
+
726
+ // src/runtime/client-hydrate.ts
727
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
728
+ const endHydrate = createTime("hydrateClient", tagName);
729
+ const shadowRoot = hostElm.shadowRoot;
730
+ const childRenderNodes = [];
731
+ const slotNodes = [];
732
+ const slottedNodes = [];
733
+ const shadowRootNodes = shadowRoot ? [] : null;
734
+ const vnode = newVNode(tagName, null);
735
+ vnode.$elm$ = hostElm;
736
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
737
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
738
+ }
739
+ hostElm[HYDRATE_ID] = hostId;
740
+ hostElm.removeAttribute(HYDRATE_ID);
741
+ hostRef.$vnode$ = clientHydrate(
742
+ vnode,
743
+ childRenderNodes,
744
+ slotNodes,
745
+ shadowRootNodes,
746
+ hostElm,
747
+ hostElm,
748
+ hostId,
749
+ slottedNodes
750
+ );
751
+ let crIndex = 0;
752
+ const crLength = childRenderNodes.length;
753
+ let childRenderNode;
754
+ for (crIndex; crIndex < crLength; crIndex++) {
755
+ childRenderNode = childRenderNodes[crIndex];
756
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
757
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
758
+ const node = childRenderNode.$elm$;
759
+ if (!shadowRoot) {
760
+ node["s-hn"] = tagName.toUpperCase();
761
+ if (childRenderNode.$tag$ === "slot") {
762
+ node["s-cr"] = hostElm["s-cr"];
763
+ }
764
+ }
765
+ if (childRenderNode.$tag$ === "slot") {
766
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
767
+ if (childRenderNode.$children$) {
768
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
769
+ if (!childRenderNode.$elm$.childNodes.length) {
770
+ childRenderNode.$children$.forEach((c) => {
771
+ childRenderNode.$elm$.appendChild(c.$elm$);
772
+ });
773
+ }
774
+ } else {
775
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
776
+ }
777
+ }
778
+ if (orgLocationNode && orgLocationNode.isConnected) {
779
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
780
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
781
+ }
782
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
783
+ if (!shadowRoot) {
784
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
785
+ }
786
+ }
787
+ plt.$orgLocNodes$.delete(orgLocationId);
788
+ }
789
+ const hosts = [];
790
+ const snLen = slottedNodes.length;
791
+ let snIndex = 0;
792
+ let slotGroup;
793
+ let snGroupIdx;
794
+ let snGroupLen;
795
+ let slottedItem;
796
+ for (snIndex; snIndex < snLen; snIndex++) {
797
+ slotGroup = slottedNodes[snIndex];
798
+ if (!slotGroup || !slotGroup.length) continue;
799
+ snGroupLen = slotGroup.length;
800
+ snGroupIdx = 0;
801
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
802
+ slottedItem = slotGroup[snGroupIdx];
803
+ if (!hosts[slottedItem.hostId]) {
804
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
805
+ }
806
+ if (!hosts[slottedItem.hostId]) continue;
807
+ const hostEle = hosts[slottedItem.hostId];
808
+ if (!hostEle.shadowRoot || !shadowRoot) {
809
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
810
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
811
+ slottedItem.slot["s-cr"] = hostEle;
812
+ } else {
813
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
814
+ }
815
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
816
+ {
817
+ patchSlottedNode(slottedItem.node);
818
+ }
819
+ }
820
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
821
+ hostEle.appendChild(slottedItem.node);
822
+ }
823
+ }
824
+ }
825
+ if (shadowRoot && !shadowRoot.childNodes.length) {
826
+ let rnIdex = 0;
827
+ const rnLen = shadowRootNodes.length;
828
+ if (rnLen) {
829
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
830
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
831
+ }
832
+ Array.from(hostElm.childNodes).forEach((node) => {
833
+ if (typeof node["s-sn"] !== "string") {
834
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
835
+ node.removeAttribute("hidden");
836
+ } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
837
+ node.parentNode.removeChild(node);
838
+ }
839
+ }
840
+ });
841
+ }
842
+ }
843
+ plt.$orgLocNodes$.delete(hostElm["s-id"]);
844
+ hostRef.$hostElement$ = hostElm;
845
+ endHydrate();
846
+ };
847
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
848
+ let childNodeType;
849
+ let childIdSplt;
850
+ let childVNode;
851
+ let i2;
852
+ if (node.nodeType === 1 /* ElementNode */) {
853
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
854
+ if (childNodeType) {
855
+ childIdSplt = childNodeType.split(".");
856
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
857
+ childVNode = createSimpleVNode({
858
+ $flags$: 0,
859
+ $hostId$: childIdSplt[0],
860
+ $nodeId$: childIdSplt[1],
861
+ $depth$: childIdSplt[2],
862
+ $index$: childIdSplt[3],
863
+ $tag$: node.tagName.toLowerCase(),
864
+ $elm$: node,
865
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
866
+ // won't try to reconcile them. Classes set on the node will be blown away.
867
+ $attrs$: { class: node.className || "" }
868
+ });
869
+ childRenderNodes.push(childVNode);
870
+ node.removeAttribute(HYDRATE_CHILD_ID);
871
+ if (!parentVNode.$children$) {
872
+ parentVNode.$children$ = [];
873
+ }
874
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
875
+ if (typeof slotName === "string") {
876
+ if (childVNode.$tag$ === "slot-fb") {
877
+ addSlot(
878
+ slotName,
879
+ childIdSplt[2],
880
+ childVNode,
881
+ node,
882
+ parentVNode,
883
+ childRenderNodes,
884
+ slotNodes,
885
+ shadowRootNodes,
886
+ slottedNodes
887
+ );
888
+ }
889
+ childVNode.$elm$["s-sn"] = slotName;
890
+ childVNode.$elm$.removeAttribute("s-sn");
891
+ }
892
+ if (childVNode.$index$ !== void 0) {
893
+ parentVNode.$children$[childVNode.$index$] = childVNode;
894
+ }
895
+ parentVNode = childVNode;
896
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
897
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
898
+ }
899
+ }
900
+ }
901
+ if (node.shadowRoot) {
902
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
903
+ clientHydrate(
904
+ parentVNode,
905
+ childRenderNodes,
906
+ slotNodes,
907
+ shadowRootNodes,
908
+ hostElm,
909
+ node.shadowRoot.childNodes[i2],
910
+ hostId,
911
+ slottedNodes
912
+ );
913
+ }
914
+ }
915
+ const nonShadowNodes = node.__childNodes || node.childNodes;
916
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
917
+ clientHydrate(
918
+ parentVNode,
919
+ childRenderNodes,
920
+ slotNodes,
921
+ shadowRootNodes,
922
+ hostElm,
923
+ nonShadowNodes[i2],
924
+ hostId,
925
+ slottedNodes
926
+ );
927
+ }
928
+ } else if (node.nodeType === 8 /* CommentNode */) {
929
+ childIdSplt = node.nodeValue.split(".");
930
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
931
+ childNodeType = childIdSplt[0];
932
+ childVNode = createSimpleVNode({
933
+ $hostId$: childIdSplt[1],
934
+ $nodeId$: childIdSplt[2],
935
+ $depth$: childIdSplt[3],
936
+ $index$: childIdSplt[4] || "0",
937
+ $elm$: node,
938
+ $attrs$: null,
939
+ $children$: null,
940
+ $key$: null,
941
+ $name$: null,
942
+ $tag$: null,
943
+ $text$: null
944
+ });
945
+ if (childNodeType === TEXT_NODE_ID) {
946
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
947
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
948
+ childVNode.$text$ = childVNode.$elm$.textContent;
949
+ childRenderNodes.push(childVNode);
950
+ node.remove();
951
+ if (hostId === childVNode.$hostId$) {
952
+ if (!parentVNode.$children$) {
953
+ parentVNode.$children$ = [];
954
+ }
955
+ parentVNode.$children$[childVNode.$index$] = childVNode;
956
+ }
957
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
958
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
959
+ }
960
+ }
961
+ } else if (childNodeType === COMMENT_NODE_ID) {
962
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
963
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
964
+ childRenderNodes.push(childVNode);
965
+ node.remove();
966
+ }
967
+ } else if (childVNode.$hostId$ === hostId) {
968
+ if (childNodeType === SLOT_NODE_ID) {
969
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
970
+ addSlot(
971
+ slotName,
972
+ childIdSplt[2],
973
+ childVNode,
974
+ node,
975
+ parentVNode,
976
+ childRenderNodes,
977
+ slotNodes,
978
+ shadowRootNodes,
979
+ slottedNodes
980
+ );
981
+ } else if (childNodeType === CONTENT_REF_ID) {
982
+ if (shadowRootNodes) {
983
+ node.remove();
984
+ }
985
+ }
986
+ }
987
+ }
988
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
989
+ const vnode = newVNode(null, node.textContent);
990
+ vnode.$elm$ = node;
991
+ vnode.$index$ = "0";
992
+ parentVNode.$children$ = [vnode];
993
+ } else {
994
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
995
+ node.remove();
996
+ }
997
+ }
998
+ return parentVNode;
999
+ };
1000
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1001
+ if (node.nodeType === 1 /* ElementNode */) {
1002
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1003
+ if (componentId) {
1004
+ orgLocNodes.set(componentId, node);
1005
+ }
1006
+ let i2 = 0;
1007
+ if (node.shadowRoot) {
1008
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1009
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1010
+ }
1011
+ }
1012
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1013
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1014
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1015
+ }
1016
+ } else if (node.nodeType === 8 /* CommentNode */) {
1017
+ const childIdSplt = node.nodeValue.split(".");
1018
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1019
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1020
+ node.nodeValue = "";
1021
+ node["s-en"] = childIdSplt[3];
1022
+ }
1023
+ }
1024
+ };
1025
+ var createSimpleVNode = (vnode) => {
1026
+ const defaultVNode = {
1027
+ $flags$: 0,
1028
+ $hostId$: null,
1029
+ $nodeId$: null,
1030
+ $depth$: null,
1031
+ $index$: "0",
1032
+ $elm$: null,
1033
+ $attrs$: null,
1034
+ $children$: null,
1035
+ $key$: null,
1036
+ $name$: null,
1037
+ $tag$: null,
1038
+ $text$: null
1039
+ };
1040
+ return { ...defaultVNode, ...vnode };
1041
+ };
1042
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1043
+ node["s-sr"] = true;
1044
+ childVNode.$name$ = slotName || null;
1045
+ childVNode.$tag$ = "slot";
1046
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1047
+ if (shadowRootNodes && win.document) {
1048
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1049
+ if (childVNode.$name$) {
1050
+ childVNode.$elm$.setAttribute("name", slotName);
1051
+ }
1052
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1053
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1054
+ } else {
1055
+ node.parentNode.insertBefore(childVNode.$elm$, node);
1056
+ }
1057
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1058
+ node.remove();
1059
+ if (childVNode.$depth$ === "0") {
1060
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1061
+ }
1062
+ } else {
1063
+ const slot = childVNode.$elm$;
1064
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1065
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1066
+ patchSlotNode(node);
1067
+ if (shouldMove) {
1068
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1069
+ }
1070
+ childRenderNodes.push(childVNode);
1071
+ }
1072
+ slotNodes.push(childVNode);
1073
+ if (!parentVNode.$children$) {
1074
+ parentVNode.$children$ = [];
1075
+ }
1076
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1077
+ }
1078
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1079
+ let slottedNode = slotNode.nextSibling;
1080
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1081
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1082
+ slottedNode["s-sn"] = slotName;
1083
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1084
+ slottedNode = slottedNode.nextSibling;
1085
+ }
1086
+ };
1087
+ var findCorrespondingNode = (node, type) => {
1088
+ let sibling = node;
1089
+ do {
1090
+ sibling = sibling.nextSibling;
1091
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1092
+ return sibling;
1093
+ };
1094
+ var parsePropertyValue = (propValue, propType) => {
1095
+ if (propValue != null && !isComplexType(propValue)) {
1096
+ if (propType & 4 /* Boolean */) {
1097
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1098
+ }
1099
+ if (propType & 2 /* Number */) {
1100
+ return parseFloat(propValue);
1101
+ }
1102
+ if (propType & 1 /* String */) {
1103
+ return String(propValue);
1104
+ }
1105
+ return propValue;
1106
+ }
1107
+ return propValue;
1108
+ };
1109
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1110
+
1111
+ // src/runtime/event-emitter.ts
1112
+ var createEvent = (ref, name, flags) => {
1113
+ const elm = getElement(ref);
1114
+ return {
1115
+ emit: (detail) => {
1116
+ return emitEvent(elm, name, {
1117
+ bubbles: true,
1118
+ composed: true,
1119
+ cancelable: true,
1120
+ detail
1121
+ });
1122
+ }
1123
+ };
1124
+ };
1125
+ var emitEvent = (elm, name, opts) => {
1126
+ const ev = plt.ce(name, opts);
1127
+ elm.dispatchEvent(ev);
1128
+ return ev;
1129
+ };
1130
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1131
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1132
+ let style = styles.get(scopeId2);
1133
+ if (supportsConstructableStylesheets && allowCS) {
1134
+ style = style || new CSSStyleSheet();
1135
+ if (typeof style === "string") {
1136
+ style = cssText;
1137
+ } else {
1138
+ style.replaceSync(cssText);
1139
+ }
1140
+ } else {
1141
+ style = cssText;
1142
+ }
1143
+ styles.set(scopeId2, style);
1144
+ };
1145
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1146
+ var _a;
1147
+ const scopeId2 = getScopeId(cmpMeta);
1148
+ const style = styles.get(scopeId2);
1149
+ if (!win.document) {
1150
+ return scopeId2;
1151
+ }
1152
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1153
+ if (style) {
1154
+ if (typeof style === "string") {
1155
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1156
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1157
+ let styleElm;
1158
+ if (!appliedStyles) {
1159
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1160
+ }
1161
+ if (!appliedStyles.has(scopeId2)) {
1162
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1163
+ styleElm.innerHTML = style;
1164
+ } else {
1165
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
1166
+ styleElm.innerHTML = style;
1167
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1168
+ if (nonce != null) {
1169
+ styleElm.setAttribute("nonce", nonce);
1170
+ }
1171
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1172
+ if (styleContainerNode.nodeName === "HEAD") {
1173
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1174
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1175
+ styleContainerNode.insertBefore(
1176
+ styleElm,
1177
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1178
+ );
1179
+ } else if ("host" in styleContainerNode) {
1180
+ if (supportsConstructableStylesheets) {
1181
+ const stylesheet = new CSSStyleSheet();
1182
+ stylesheet.replaceSync(style);
1183
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1184
+ } else {
1185
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1186
+ if (existingStyleContainer) {
1187
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1188
+ } else {
1189
+ styleContainerNode.prepend(styleElm);
1190
+ }
1191
+ }
1192
+ } else {
1193
+ styleContainerNode.append(styleElm);
1194
+ }
1195
+ }
1196
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1197
+ styleContainerNode.insertBefore(styleElm, null);
1198
+ }
1199
+ }
1200
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1201
+ styleElm.innerHTML += SLOT_FB_CSS;
1202
+ }
1203
+ if (appliedStyles) {
1204
+ appliedStyles.add(scopeId2);
1205
+ }
1206
+ }
1207
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1208
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1209
+ }
1210
+ }
1211
+ return scopeId2;
1212
+ };
1213
+ var attachStyles = (hostRef) => {
1214
+ const cmpMeta = hostRef.$cmpMeta$;
1215
+ const elm = hostRef.$hostElement$;
1216
+ const flags = cmpMeta.$flags$;
1217
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1218
+ const scopeId2 = addStyle(
1219
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1220
+ cmpMeta);
1221
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
1222
+ elm["s-sc"] = scopeId2;
1223
+ elm.classList.add(scopeId2 + "-h");
1224
+ }
1225
+ endAttachStyles();
1226
+ };
1227
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1228
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1229
+ var hydrateScopedToShadow = () => {
1230
+ if (!win.document) {
1231
+ return;
1232
+ }
1233
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1234
+ let i2 = 0;
1235
+ for (; i2 < styles2.length; i2++) {
1236
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1237
+ }
1238
+ };
1239
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1240
+ if (oldValue === newValue) {
1241
+ return;
1242
+ }
1243
+ let isProp = isMemberInElement(elm, memberName);
1244
+ let ln = memberName.toLowerCase();
1245
+ if (memberName === "class") {
1246
+ const classList = elm.classList;
1247
+ const oldClasses = parseClassList(oldValue);
1248
+ let newClasses = parseClassList(newValue);
1249
+ if (elm["s-si"] && initialRender) {
1250
+ newClasses.push(elm["s-si"]);
1251
+ oldClasses.forEach((c) => {
1252
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
1253
+ });
1254
+ newClasses = [...new Set(newClasses)];
1255
+ classList.add(...newClasses);
1256
+ } else {
1257
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1258
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1259
+ }
1260
+ } else if (memberName === "style") {
1261
+ {
1262
+ for (const prop in oldValue) {
1263
+ if (!newValue || newValue[prop] == null) {
1264
+ if (prop.includes("-")) {
1265
+ elm.style.removeProperty(prop);
1266
+ } else {
1267
+ elm.style[prop] = "";
1268
+ }
1269
+ }
1270
+ }
1271
+ }
1272
+ for (const prop in newValue) {
1273
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1274
+ if (prop.includes("-")) {
1275
+ elm.style.setProperty(prop, newValue[prop]);
1276
+ } else {
1277
+ elm.style[prop] = newValue[prop];
1278
+ }
1279
+ }
1280
+ }
1281
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1282
+ if (newValue) {
1283
+ newValue(elm);
1284
+ }
1285
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1286
+ if (memberName[2] === "-") {
1287
+ memberName = memberName.slice(3);
1288
+ } else if (isMemberInElement(win, ln)) {
1289
+ memberName = ln.slice(2);
1290
+ } else {
1291
+ memberName = ln[2] + memberName.slice(3);
1292
+ }
1293
+ if (oldValue || newValue) {
1294
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1295
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1296
+ if (oldValue) {
1297
+ plt.rel(elm, memberName, oldValue, capture);
1298
+ }
1299
+ if (newValue) {
1300
+ plt.ael(elm, memberName, newValue, capture);
1301
+ }
1302
+ }
1303
+ } else {
1304
+ const isComplex = isComplexType(newValue);
1305
+ if ((isProp || isComplex && newValue !== null) && true) {
1306
+ try {
1307
+ if (!elm.tagName.includes("-")) {
1308
+ const n = newValue == null ? "" : newValue;
1309
+ if (memberName === "list") {
1310
+ isProp = false;
1311
+ } else if (oldValue == null || elm[memberName] != n) {
1312
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1313
+ elm[memberName] = n;
1314
+ } else {
1315
+ elm.setAttribute(memberName, n);
1316
+ }
1317
+ }
1318
+ } else if (elm[memberName] !== newValue) {
1319
+ elm[memberName] = newValue;
1320
+ }
1321
+ } catch (e) {
1322
+ }
1323
+ }
1324
+ let xlink = false;
1325
+ {
1326
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1327
+ memberName = ln;
1328
+ xlink = true;
1329
+ }
1330
+ }
1331
+ if (newValue == null || newValue === false) {
1332
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1333
+ if (xlink) {
1334
+ elm.removeAttributeNS(XLINK_NS, memberName);
1335
+ } else {
1336
+ elm.removeAttribute(memberName);
1337
+ }
1338
+ }
1339
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1340
+ newValue = newValue === true ? "" : newValue;
1341
+ if (xlink) {
1342
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
1343
+ } else {
1344
+ elm.setAttribute(memberName, newValue);
1345
+ }
1346
+ }
1347
+ }
1348
+ };
1349
+ var parseClassListRegex = /\s/;
1350
+ var parseClassList = (value) => {
1351
+ if (typeof value === "object" && value && "baseVal" in value) {
1352
+ value = value.baseVal;
1353
+ }
1354
+ if (!value || typeof value !== "string") {
1355
+ return [];
1356
+ }
1357
+ return value.split(parseClassListRegex);
1358
+ };
1359
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1360
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1361
+
1362
+ // src/runtime/vdom/update-element.ts
1363
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1364
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1365
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1366
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1367
+ {
1368
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1369
+ if (!(memberName in newVnodeAttrs)) {
1370
+ setAccessor(
1371
+ elm,
1372
+ memberName,
1373
+ oldVnodeAttrs[memberName],
1374
+ void 0,
1375
+ isSvgMode2,
1376
+ newVnode.$flags$,
1377
+ isInitialRender
1378
+ );
1379
+ }
1380
+ }
1381
+ }
1382
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1383
+ setAccessor(
1384
+ elm,
1385
+ memberName,
1386
+ oldVnodeAttrs[memberName],
1387
+ newVnodeAttrs[memberName],
1388
+ isSvgMode2,
1389
+ newVnode.$flags$,
1390
+ isInitialRender
1391
+ );
1392
+ }
1393
+ };
1394
+ function sortedAttrNames(attrNames) {
1395
+ return attrNames.includes("ref") ? (
1396
+ // we need to sort these to ensure that `'ref'` is the last attr
1397
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1398
+ ) : (
1399
+ // no need to sort, return the original array
1400
+ attrNames
1401
+ );
1402
+ }
1403
+ var hostTagName;
1404
+ var useNativeShadowDom = false;
1405
+ var isSvgMode = false;
1406
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1407
+ const newVNode2 = newParentVNode.$children$[childIndex];
1408
+ let i2 = 0;
1409
+ let elm;
1410
+ let childNode;
1411
+ if (newVNode2.$text$ !== null) {
1412
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1413
+ } else {
1414
+ if (!win.document) {
1415
+ throw new Error(
1416
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
1417
+ );
1418
+ }
1419
+ elm = newVNode2.$elm$ = win.document.createElement(
1420
+ newVNode2.$tag$
1421
+ );
1422
+ {
1423
+ updateElement(null, newVNode2, isSvgMode);
1424
+ }
1425
+ if (newVNode2.$children$) {
1426
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1427
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1428
+ if (childNode) {
1429
+ elm.appendChild(childNode);
1430
+ }
1431
+ }
1432
+ }
1433
+ }
1434
+ elm["s-hn"] = hostTagName;
1435
+ return elm;
1436
+ };
1437
+ var relocateToHostRoot = (parentElm) => {
1438
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1439
+ const host = parentElm.closest(hostTagName.toLowerCase());
1440
+ if (host != null) {
1441
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1442
+ (ref) => ref["s-cr"]
1443
+ );
1444
+ const childNodeArray = Array.from(
1445
+ parentElm.__childNodes || parentElm.childNodes
1446
+ );
1447
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1448
+ if (childNode["s-sh"] != null) {
1449
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1450
+ childNode["s-sh"] = void 0;
1451
+ }
1452
+ }
1453
+ }
1454
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1455
+ };
1456
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1457
+ let containerElm = parentElm;
1458
+ let childNode;
1459
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1460
+ containerElm = containerElm.shadowRoot;
1461
+ }
1462
+ for (; startIdx <= endIdx; ++startIdx) {
1463
+ if (vnodes[startIdx]) {
1464
+ childNode = createElm(null, parentVNode, startIdx);
1465
+ if (childNode) {
1466
+ vnodes[startIdx].$elm$ = childNode;
1467
+ insertBefore(containerElm, childNode, before);
1468
+ }
1469
+ }
1470
+ }
1471
+ };
1472
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1473
+ for (let index = startIdx; index <= endIdx; ++index) {
1474
+ const vnode = vnodes[index];
1475
+ if (vnode) {
1476
+ const elm = vnode.$elm$;
1477
+ nullifyVNodeRefs(vnode);
1478
+ if (elm) {
1479
+ elm.remove();
1480
+ }
1481
+ }
1482
+ }
1483
+ };
1484
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1485
+ let oldStartIdx = 0;
1486
+ let newStartIdx = 0;
1487
+ let idxInOld = 0;
1488
+ let i2 = 0;
1489
+ let oldEndIdx = oldCh.length - 1;
1490
+ let oldStartVnode = oldCh[0];
1491
+ let oldEndVnode = oldCh[oldEndIdx];
1492
+ let newEndIdx = newCh.length - 1;
1493
+ let newStartVnode = newCh[0];
1494
+ let newEndVnode = newCh[newEndIdx];
1495
+ let node;
1496
+ let elmToMove;
1497
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1498
+ if (oldStartVnode == null) {
1499
+ oldStartVnode = oldCh[++oldStartIdx];
1500
+ } else if (oldEndVnode == null) {
1501
+ oldEndVnode = oldCh[--oldEndIdx];
1502
+ } else if (newStartVnode == null) {
1503
+ newStartVnode = newCh[++newStartIdx];
1504
+ } else if (newEndVnode == null) {
1505
+ newEndVnode = newCh[--newEndIdx];
1506
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1507
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1508
+ oldStartVnode = oldCh[++oldStartIdx];
1509
+ newStartVnode = newCh[++newStartIdx];
1510
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1511
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1512
+ oldEndVnode = oldCh[--oldEndIdx];
1513
+ newEndVnode = newCh[--newEndIdx];
1514
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1515
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1516
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1517
+ oldStartVnode = oldCh[++oldStartIdx];
1518
+ newEndVnode = newCh[--newEndIdx];
1519
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1520
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1521
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1522
+ oldEndVnode = oldCh[--oldEndIdx];
1523
+ newStartVnode = newCh[++newStartIdx];
1524
+ } else {
1525
+ idxInOld = -1;
1526
+ {
1527
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1528
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1529
+ idxInOld = i2;
1530
+ break;
1531
+ }
1532
+ }
1533
+ }
1534
+ if (idxInOld >= 0) {
1535
+ elmToMove = oldCh[idxInOld];
1536
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1537
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1538
+ } else {
1539
+ patch(elmToMove, newStartVnode, isInitialRender);
1540
+ oldCh[idxInOld] = void 0;
1541
+ node = elmToMove.$elm$;
1542
+ }
1543
+ newStartVnode = newCh[++newStartIdx];
1544
+ } else {
1545
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1546
+ newStartVnode = newCh[++newStartIdx];
1547
+ }
1548
+ if (node) {
1549
+ {
1550
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1551
+ }
1552
+ }
1553
+ }
1554
+ }
1555
+ if (oldStartIdx > oldEndIdx) {
1556
+ addVnodes(
1557
+ parentElm,
1558
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1559
+ newVNode2,
1560
+ newCh,
1561
+ newStartIdx,
1562
+ newEndIdx
1563
+ );
1564
+ } else if (newStartIdx > newEndIdx) {
1565
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1566
+ }
1567
+ };
1568
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1569
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1570
+ if (!isInitialRender) {
1571
+ return leftVNode.$key$ === rightVNode.$key$;
1572
+ }
1573
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1574
+ leftVNode.$key$ = rightVNode.$key$;
1575
+ }
1576
+ return true;
1577
+ }
1578
+ return false;
1579
+ };
1580
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1581
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1582
+ const oldChildren = oldVNode.$children$;
1583
+ const newChildren = newVNode2.$children$;
1584
+ const tag = newVNode2.$tag$;
1585
+ const text = newVNode2.$text$;
1586
+ if (text === null) {
1587
+ {
1588
+ if (tag === "slot" && !useNativeShadowDom) {
1589
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1590
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1591
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1592
+ }
1593
+ }
1594
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1595
+ }
1596
+ if (oldChildren !== null && newChildren !== null) {
1597
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1598
+ } else if (newChildren !== null) {
1599
+ if (oldVNode.$text$ !== null) {
1600
+ elm.textContent = "";
1601
+ }
1602
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1603
+ } else if (
1604
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1605
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1606
+ ) {
1607
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1608
+ }
1609
+ } else if (oldVNode.$text$ !== text) {
1610
+ elm.data = text;
1611
+ }
1612
+ };
1613
+ var nullifyVNodeRefs = (vNode) => {
1614
+ {
1615
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1616
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1617
+ }
1618
+ };
1619
+ var insertBefore = (parent, newNode, reference) => {
1620
+ if (typeof newNode["s-sn"] === "string") {
1621
+ if (parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
1622
+ patchParentNode(newNode);
1623
+ }
1624
+ parent.insertBefore(newNode, reference);
1625
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1626
+ if (slotNode) dispatchSlotChangeEvent(slotNode);
1627
+ return newNode;
1628
+ }
1629
+ if (parent.__insertBefore) {
1630
+ return parent.__insertBefore(newNode, reference);
1631
+ } else {
1632
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1633
+ }
1634
+ };
1635
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1636
+ var _e;
1637
+ const hostElm = hostRef.$hostElement$;
1638
+ const cmpMeta = hostRef.$cmpMeta$;
1639
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1640
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1641
+ hostTagName = hostElm.tagName;
1642
+ if (cmpMeta.$attrsToReflect$) {
1643
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1644
+ cmpMeta.$attrsToReflect$.map(
1645
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1646
+ );
1647
+ }
1648
+ if (isInitialLoad && rootVnode.$attrs$) {
1649
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1650
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1651
+ rootVnode.$attrs$[key] = hostElm[key];
1652
+ }
1653
+ }
1654
+ }
1655
+ rootVnode.$tag$ = null;
1656
+ rootVnode.$flags$ |= 4 /* isHost */;
1657
+ hostRef.$vnode$ = rootVnode;
1658
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1659
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1660
+ patch(oldVNode, rootVnode, isInitialLoad);
1661
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1662
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1663
+ for (const childNode of children) {
1664
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1665
+ if (isInitialLoad && childNode["s-ih"] == null) {
1666
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1667
+ }
1668
+ childNode.hidden = true;
1669
+ }
1670
+ }
1671
+ }
1672
+ };
1673
+
1674
+ // src/runtime/update-component.ts
1675
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1676
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1677
+ const index = ancestorComponent["s-p"].push(
1678
+ new Promise(
1679
+ (r) => hostRef.$onRenderResolve$ = () => {
1680
+ ancestorComponent["s-p"].splice(index - 1, 1);
1681
+ r();
1682
+ }
1683
+ )
1684
+ );
1685
+ }
1686
+ };
1687
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1688
+ {
1689
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1690
+ }
1691
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1692
+ hostRef.$flags$ |= 512 /* needsRerender */;
1693
+ return;
1694
+ }
1695
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1696
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1697
+ return writeTask(dispatch) ;
1698
+ };
1699
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1700
+ const elm = hostRef.$hostElement$;
1701
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1702
+ const instance = hostRef.$lazyInstance$ ;
1703
+ if (!instance) {
1704
+ throw new Error(
1705
+ `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`
1706
+ );
1707
+ }
1708
+ let maybePromise;
1709
+ if (isInitialLoad) {
1710
+ {
1711
+ hostRef.$flags$ |= 256 /* isListenReady */;
1712
+ if (hostRef.$queuedListeners$) {
1713
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1714
+ hostRef.$queuedListeners$ = void 0;
1715
+ }
1716
+ }
1717
+ emitLifecycleEvent(elm, "componentWillLoad");
1718
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1719
+ } else {
1720
+ emitLifecycleEvent(elm, "componentWillUpdate");
1721
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1722
+ }
1723
+ emitLifecycleEvent(elm, "componentWillRender");
1724
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1725
+ endSchedule();
1726
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1727
+ };
1728
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1729
+ console.error(err2);
1730
+ fn();
1731
+ }) : fn();
1732
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1733
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1734
+ var _a;
1735
+ const elm = hostRef.$hostElement$;
1736
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1737
+ const rc = elm["s-rc"];
1738
+ if (isInitialLoad) {
1739
+ attachStyles(hostRef);
1740
+ }
1741
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1742
+ {
1743
+ callRender(hostRef, instance, elm, isInitialLoad);
1744
+ }
1745
+ if (rc) {
1746
+ rc.map((cb) => cb());
1747
+ elm["s-rc"] = void 0;
1748
+ }
1749
+ endRender();
1750
+ endUpdate();
1751
+ {
1752
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1753
+ const postUpdate = () => postUpdateComponent(hostRef);
1754
+ if (childrenPromises.length === 0) {
1755
+ postUpdate();
1756
+ } else {
1757
+ Promise.all(childrenPromises).then(postUpdate);
1758
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1759
+ childrenPromises.length = 0;
1760
+ }
1761
+ }
1762
+ };
1763
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1764
+ try {
1765
+ instance = instance.render() ;
1766
+ {
1767
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1768
+ }
1769
+ {
1770
+ hostRef.$flags$ |= 2 /* hasRendered */;
1771
+ }
1772
+ {
1773
+ {
1774
+ {
1775
+ renderVdom(hostRef, instance, isInitialLoad);
1776
+ }
1777
+ }
1778
+ }
1779
+ } catch (e) {
1780
+ consoleError(e, hostRef.$hostElement$);
1781
+ }
1782
+ return null;
1783
+ };
1784
+ var postUpdateComponent = (hostRef) => {
1785
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1786
+ const elm = hostRef.$hostElement$;
1787
+ const endPostUpdate = createTime("postUpdate", tagName);
1788
+ const instance = hostRef.$lazyInstance$ ;
1789
+ const ancestorComponent = hostRef.$ancestorComponent$;
1790
+ safeCall(instance, "componentDidRender", void 0, elm);
1791
+ emitLifecycleEvent(elm, "componentDidRender");
1792
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1793
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1794
+ {
1795
+ addHydratedFlag(elm);
1796
+ }
1797
+ safeCall(instance, "componentDidLoad", void 0, elm);
1798
+ emitLifecycleEvent(elm, "componentDidLoad");
1799
+ endPostUpdate();
1800
+ {
1801
+ hostRef.$onReadyResolve$(elm);
1802
+ if (!ancestorComponent) {
1803
+ appDidLoad();
1804
+ }
1805
+ }
1806
+ } else {
1807
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1808
+ emitLifecycleEvent(elm, "componentDidUpdate");
1809
+ endPostUpdate();
1810
+ }
1811
+ {
1812
+ hostRef.$onInstanceResolve$(elm);
1813
+ }
1814
+ {
1815
+ if (hostRef.$onRenderResolve$) {
1816
+ hostRef.$onRenderResolve$();
1817
+ hostRef.$onRenderResolve$ = void 0;
1818
+ }
1819
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1820
+ nextTick(() => scheduleUpdate(hostRef, false));
1821
+ }
1822
+ hostRef.$flags$ &= -517;
1823
+ }
1824
+ };
1825
+ var appDidLoad = (who) => {
1826
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1827
+ };
1828
+ var safeCall = (instance, method, arg, elm) => {
1829
+ if (instance && instance[method]) {
1830
+ try {
1831
+ return instance[method](arg);
1832
+ } catch (e) {
1833
+ consoleError(e, elm);
1834
+ }
1835
+ }
1836
+ return void 0;
1837
+ };
1838
+ var emitLifecycleEvent = (elm, lifecycleName) => {
1839
+ {
1840
+ emitEvent(elm, "stencil_" + lifecycleName, {
1841
+ bubbles: true,
1842
+ composed: true,
1843
+ detail: {
1844
+ namespace: NAMESPACE
1845
+ }
1846
+ });
1847
+ }
1848
+ };
1849
+ var addHydratedFlag = (elm) => {
1850
+ var _a;
1851
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1852
+ };
1853
+
1854
+ // src/runtime/set-value.ts
1855
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1856
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1857
+ const hostRef = getHostRef(ref);
1858
+ if (!hostRef) {
1859
+ throw new Error(
1860
+ `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).`
1861
+ );
1862
+ }
1863
+ const elm = hostRef.$hostElement$ ;
1864
+ const oldVal = hostRef.$instanceValues$.get(propName);
1865
+ const flags = hostRef.$flags$;
1866
+ const instance = hostRef.$lazyInstance$ ;
1867
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1868
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1869
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1870
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1871
+ hostRef.$instanceValues$.set(propName, newVal);
1872
+ if (instance) {
1873
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1874
+ const watchMethods = cmpMeta.$watchers$[propName];
1875
+ if (watchMethods) {
1876
+ watchMethods.map((watchMethodName) => {
1877
+ try {
1878
+ instance[watchMethodName](newVal, oldVal, propName);
1879
+ } catch (e) {
1880
+ consoleError(e, elm);
1881
+ }
1882
+ });
1883
+ }
1884
+ }
1885
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1886
+ if (instance.componentShouldUpdate) {
1887
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1888
+ return;
1889
+ }
1890
+ }
1891
+ scheduleUpdate(hostRef, false);
1892
+ }
1893
+ }
1894
+ }
1895
+ };
1896
+
1897
+ // src/runtime/proxy-component.ts
1898
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1899
+ var _a, _b;
1900
+ const prototype = Cstr.prototype;
1901
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1902
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1903
+ Object.defineProperty(prototype, cbName, {
1904
+ value(...args) {
1905
+ const hostRef = getHostRef(this);
1906
+ const instance = hostRef.$lazyInstance$ ;
1907
+ if (!instance) {
1908
+ hostRef.$onReadyPromise$.then((asyncInstance) => {
1909
+ const cb = asyncInstance[cbName];
1910
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1911
+ });
1912
+ } else {
1913
+ const cb = instance[cbName] ;
1914
+ typeof cb === "function" && cb.call(instance, ...args);
1915
+ }
1916
+ }
1917
+ });
1918
+ });
1919
+ }
1920
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1921
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1922
+ cmpMeta.$watchers$ = Cstr.watchers;
1923
+ }
1924
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1925
+ members.map(([memberName, [memberFlags]]) => {
1926
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1927
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1928
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1929
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1930
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1931
+ Object.defineProperty(prototype, memberName, {
1932
+ get() {
1933
+ {
1934
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1935
+ return getValue(this, memberName);
1936
+ }
1937
+ const ref = getHostRef(this);
1938
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1939
+ if (!instance) return;
1940
+ return instance[memberName];
1941
+ }
1942
+ },
1943
+ configurable: true,
1944
+ enumerable: true
1945
+ });
1946
+ }
1947
+ Object.defineProperty(prototype, memberName, {
1948
+ set(newValue) {
1949
+ const ref = getHostRef(this);
1950
+ if (origSetter) {
1951
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1952
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1953
+ newValue = ref.$instanceValues$.get(memberName);
1954
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1955
+ ref.$instanceValues$.set(memberName, currentValue);
1956
+ }
1957
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1958
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1959
+ setValue(this, memberName, newValue, cmpMeta);
1960
+ return;
1961
+ }
1962
+ {
1963
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1964
+ setValue(this, memberName, newValue, cmpMeta);
1965
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1966
+ ref.$onReadyPromise$.then(() => {
1967
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1968
+ ref.$lazyInstance$[memberName] = newValue;
1969
+ }
1970
+ });
1971
+ }
1972
+ return;
1973
+ }
1974
+ const setterSetVal = () => {
1975
+ const currentValue = ref.$lazyInstance$[memberName];
1976
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1977
+ ref.$instanceValues$.set(memberName, currentValue);
1978
+ }
1979
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1980
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1981
+ };
1982
+ if (ref.$lazyInstance$) {
1983
+ setterSetVal();
1984
+ } else {
1985
+ ref.$onReadyPromise$.then(() => setterSetVal());
1986
+ }
1987
+ }
1988
+ }
1989
+ });
1990
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1991
+ Object.defineProperty(prototype, memberName, {
1992
+ value(...args) {
1993
+ var _a2;
1994
+ const ref = getHostRef(this);
1995
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1996
+ var _a3;
1997
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1998
+ });
1999
+ }
2000
+ });
2001
+ }
2002
+ });
2003
+ if ((flags & 1 /* isElementConstructor */)) {
2004
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2005
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2006
+ plt.jmp(() => {
2007
+ var _a2;
2008
+ const propName = attrNameToPropName.get(attrName);
2009
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2010
+ newValue = this[propName];
2011
+ delete this[propName];
2012
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2013
+ this[propName] == newValue) {
2014
+ return;
2015
+ } else if (propName == null) {
2016
+ const hostRef = getHostRef(this);
2017
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2018
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2019
+ const instance = hostRef.$lazyInstance$ ;
2020
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2021
+ entry == null ? void 0 : entry.forEach((callbackName) => {
2022
+ if (instance[callbackName] != null) {
2023
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
2024
+ }
2025
+ });
2026
+ }
2027
+ return;
2028
+ }
2029
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2030
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2031
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2032
+ this[propName] = newValue;
2033
+ }
2034
+ });
2035
+ };
2036
+ Cstr.observedAttributes = Array.from(
2037
+ /* @__PURE__ */ new Set([
2038
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2039
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2040
+ var _a2;
2041
+ const attrName = m[1] || propName;
2042
+ attrNameToPropName.set(attrName, propName);
2043
+ if (m[0] & 512 /* ReflectAttr */) {
2044
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2045
+ }
2046
+ return attrName;
2047
+ })
2048
+ ])
2049
+ );
2050
+ }
2051
+ }
2052
+ return Cstr;
2053
+ };
2054
+
2055
+ // src/runtime/initialize-component.ts
2056
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2057
+ let Cstr;
2058
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2059
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2060
+ const bundleId = cmpMeta.$lazyBundleId$;
2061
+ if (bundleId) {
2062
+ const CstrImport = loadModule(cmpMeta, hostRef);
2063
+ if (CstrImport && "then" in CstrImport) {
2064
+ const endLoad = uniqueTime();
2065
+ Cstr = await CstrImport;
2066
+ endLoad();
2067
+ } else {
2068
+ Cstr = CstrImport;
2069
+ }
2070
+ if (!Cstr) {
2071
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2072
+ }
2073
+ if (!Cstr.isProxied) {
2074
+ {
2075
+ cmpMeta.$watchers$ = Cstr.watchers;
2076
+ }
2077
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2078
+ Cstr.isProxied = true;
2079
+ }
2080
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2081
+ {
2082
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2083
+ }
2084
+ try {
2085
+ new Cstr(hostRef);
2086
+ } catch (e) {
2087
+ consoleError(e, elm);
2088
+ }
2089
+ {
2090
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2091
+ }
2092
+ {
2093
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2094
+ }
2095
+ endNewInstance();
2096
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2097
+ } else {
2098
+ Cstr = elm.constructor;
2099
+ const cmpTag = elm.localName;
2100
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2101
+ }
2102
+ if (Cstr && Cstr.style) {
2103
+ let style;
2104
+ if (typeof Cstr.style === "string") {
2105
+ style = Cstr.style;
2106
+ }
2107
+ const scopeId2 = getScopeId(cmpMeta);
2108
+ if (!styles.has(scopeId2)) {
2109
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2110
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2111
+ endRegisterStyles();
2112
+ }
2113
+ }
2114
+ }
2115
+ const ancestorComponent = hostRef.$ancestorComponent$;
2116
+ const schedule = () => scheduleUpdate(hostRef, true);
2117
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2118
+ ancestorComponent["s-rc"].push(schedule);
2119
+ } else {
2120
+ schedule();
2121
+ }
2122
+ };
2123
+ var fireConnectedCallback = (instance, elm) => {
2124
+ {
2125
+ safeCall(instance, "connectedCallback", void 0, elm);
2126
+ }
2127
+ };
2128
+
2129
+ // src/runtime/connected-callback.ts
2130
+ var connectedCallback = (elm) => {
2131
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2132
+ const hostRef = getHostRef(elm);
2133
+ const cmpMeta = hostRef.$cmpMeta$;
2134
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2135
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2136
+ hostRef.$flags$ |= 1 /* hasConnected */;
2137
+ let hostId;
2138
+ {
2139
+ hostId = elm.getAttribute(HYDRATE_ID);
2140
+ if (hostId) {
2141
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2142
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2143
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2144
+ }
2145
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2146
+ }
2147
+ }
2148
+ {
2149
+ let ancestorComponent = elm;
2150
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2151
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2152
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2153
+ break;
2154
+ }
2155
+ }
2156
+ }
2157
+ if (cmpMeta.$members$) {
2158
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2159
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2160
+ const value = elm[memberName];
2161
+ delete elm[memberName];
2162
+ elm[memberName] = value;
2163
+ }
2164
+ });
2165
+ }
2166
+ {
2167
+ initializeComponent(elm, hostRef, cmpMeta);
2168
+ }
2169
+ } else {
2170
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2171
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2172
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2173
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2174
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2175
+ }
2176
+ }
2177
+ endConnected();
2178
+ }
2179
+ };
2180
+ var disconnectInstance = (instance, elm) => {
2181
+ {
2182
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2183
+ }
2184
+ };
2185
+ var disconnectedCallback = async (elm) => {
2186
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2187
+ const hostRef = getHostRef(elm);
2188
+ {
2189
+ if (hostRef.$rmListeners$) {
2190
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2191
+ hostRef.$rmListeners$ = void 0;
2192
+ }
2193
+ }
2194
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2195
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2196
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2197
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2198
+ }
2199
+ }
2200
+ if (rootAppliedStyles.has(elm)) {
2201
+ rootAppliedStyles.delete(elm);
2202
+ }
2203
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2204
+ rootAppliedStyles.delete(elm.shadowRoot);
2205
+ }
2206
+ };
2207
+
2208
+ // src/runtime/bootstrap-lazy.ts
2209
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2210
+ var _a;
2211
+ if (!win.document) {
2212
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2213
+ return;
2214
+ }
2215
+ const endBootstrap = createTime();
2216
+ const cmpTags = [];
2217
+ const exclude = options.exclude || [];
2218
+ const customElements2 = win.customElements;
2219
+ const head = win.document.head;
2220
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2221
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2222
+ const deferredConnectedCallbacks = [];
2223
+ let appLoadFallback;
2224
+ let isBootstrapping = true;
2225
+ Object.assign(plt, options);
2226
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2227
+ {
2228
+ plt.$flags$ |= 2 /* appLoaded */;
2229
+ }
2230
+ {
2231
+ hydrateScopedToShadow();
2232
+ }
2233
+ let hasSlotRelocation = false;
2234
+ lazyBundles.map((lazyBundle) => {
2235
+ lazyBundle[1].map((compactMeta) => {
2236
+ var _a2;
2237
+ const cmpMeta = {
2238
+ $flags$: compactMeta[0],
2239
+ $tagName$: compactMeta[1],
2240
+ $members$: compactMeta[2],
2241
+ $listeners$: compactMeta[3]
2242
+ };
2243
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2244
+ hasSlotRelocation = true;
2245
+ }
2246
+ {
2247
+ cmpMeta.$members$ = compactMeta[2];
2248
+ }
2249
+ {
2250
+ cmpMeta.$listeners$ = compactMeta[3];
2251
+ }
2252
+ {
2253
+ cmpMeta.$attrsToReflect$ = [];
2254
+ }
2255
+ {
2256
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2257
+ }
2258
+ const tagName = cmpMeta.$tagName$;
2259
+ const HostElement = class extends HTMLElement {
2260
+ // StencilLazyHost
2261
+ constructor(self) {
2262
+ super(self);
2263
+ this.hasRegisteredEventListeners = false;
2264
+ self = this;
2265
+ registerHost(self, cmpMeta);
2266
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2267
+ {
2268
+ if (!self.shadowRoot) {
2269
+ {
2270
+ self.attachShadow({ mode: "open" });
2271
+ }
2272
+ } else {
2273
+ if (self.shadowRoot.mode !== "open") {
2274
+ throw new Error(
2275
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2276
+ );
2277
+ }
2278
+ }
2279
+ }
2280
+ }
2281
+ }
2282
+ connectedCallback() {
2283
+ const hostRef = getHostRef(this);
2284
+ if (!this.hasRegisteredEventListeners) {
2285
+ this.hasRegisteredEventListeners = true;
2286
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2287
+ }
2288
+ if (appLoadFallback) {
2289
+ clearTimeout(appLoadFallback);
2290
+ appLoadFallback = null;
2291
+ }
2292
+ if (isBootstrapping) {
2293
+ deferredConnectedCallbacks.push(this);
2294
+ } else {
2295
+ plt.jmp(() => connectedCallback(this));
2296
+ }
2297
+ }
2298
+ disconnectedCallback() {
2299
+ plt.jmp(() => disconnectedCallback(this));
2300
+ plt.raf(() => {
2301
+ var _a3;
2302
+ const hostRef = getHostRef(this);
2303
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2304
+ if (i2 > -1) {
2305
+ deferredConnectedCallbacks.splice(i2, 1);
2306
+ }
2307
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2308
+ delete hostRef.$vnode$.$elm$;
2309
+ }
2310
+ });
2311
+ }
2312
+ componentOnReady() {
2313
+ return getHostRef(this).$onReadyPromise$;
2314
+ }
2315
+ };
2316
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2317
+ HostElement.formAssociated = true;
2318
+ }
2319
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2320
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2321
+ cmpTags.push(tagName);
2322
+ customElements2.define(
2323
+ tagName,
2324
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2325
+ );
2326
+ }
2327
+ });
2328
+ });
2329
+ if (cmpTags.length > 0) {
2330
+ if (hasSlotRelocation) {
2331
+ dataStyles.textContent += SLOT_FB_CSS;
2332
+ }
2333
+ {
2334
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2335
+ }
2336
+ if (dataStyles.innerHTML.length) {
2337
+ dataStyles.setAttribute("data-styles", "");
2338
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2339
+ if (nonce != null) {
2340
+ dataStyles.setAttribute("nonce", nonce);
2341
+ }
2342
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2343
+ }
2344
+ }
2345
+ isBootstrapping = false;
2346
+ if (deferredConnectedCallbacks.length) {
2347
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2348
+ } else {
2349
+ {
2350
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2351
+ }
2352
+ }
2353
+ endBootstrap();
2354
+ };
2355
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2356
+ if (listeners && win.document) {
2357
+ listeners.map(([flags, name, method]) => {
2358
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2359
+ const handler = hostListenerProxy(hostRef, method);
2360
+ const opts = hostListenerOpts(flags);
2361
+ plt.ael(target, name, handler, opts);
2362
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2363
+ });
2364
+ }
2365
+ };
2366
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2367
+ var _a;
2368
+ try {
2369
+ {
2370
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2371
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2372
+ } else {
2373
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2374
+ }
2375
+ }
2376
+ } catch (e) {
2377
+ consoleError(e, hostRef.$hostElement$);
2378
+ }
2379
+ };
2380
+ var getHostListenerTarget = (doc, elm, flags) => {
2381
+ if (flags & 4 /* TargetDocument */) {
2382
+ return doc;
2383
+ }
2384
+ if (flags & 8 /* TargetWindow */) {
2385
+ return win;
2386
+ }
2387
+ return elm;
2388
+ };
2389
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2390
+ passive: (flags & 1 /* Passive */) !== 0,
2391
+ capture: (flags & 2 /* Capture */) !== 0
2392
+ } : (flags & 2 /* Capture */) !== 0;
2393
+
2394
+ // src/runtime/nonce.ts
2395
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2396
+
2397
+ export { H, Host as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2398
+ //# sourceMappingURL=index-ClsF4De3.js.map
2399
+
2400
+ //# sourceMappingURL=index-ClsF4De3.js.map