@siemens/ix 0.0.0-pr-1974-20250627114851 → 0.0.0-pr-1974-20250627142646

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 (642) hide show
  1. package/components/custom-elements.d.ts +11 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +122 -0
  4. package/components/index.js.map +1 -0
  5. package/components/ix-action-card.d.ts +11 -0
  6. package/components/ix-action-card.js +72 -0
  7. package/components/ix-action-card.js.map +1 -0
  8. package/components/ix-application-header.d.ts +11 -0
  9. package/components/ix-application-header.js +9 -0
  10. package/components/ix-application-header.js.map +1 -0
  11. package/components/ix-application-sidebar.d.ts +11 -0
  12. package/components/ix-application-sidebar.js +64 -0
  13. package/components/ix-application-sidebar.js.map +1 -0
  14. package/components/ix-application-switch-modal.d.ts +11 -0
  15. package/components/ix-application-switch-modal.js +106 -0
  16. package/components/ix-application-switch-modal.js.map +1 -0
  17. package/components/ix-application.d.ts +11 -0
  18. package/components/ix-application.js +148 -0
  19. package/components/ix-application.js.map +1 -0
  20. package/components/ix-avatar.d.ts +11 -0
  21. package/components/ix-avatar.js +9 -0
  22. package/components/ix-avatar.js.map +1 -0
  23. package/components/ix-basic-navigation.d.ts +11 -0
  24. package/components/ix-basic-navigation.js +154 -0
  25. package/components/ix-basic-navigation.js.map +1 -0
  26. package/components/ix-blind.d.ts +11 -0
  27. package/components/ix-blind.js +130 -0
  28. package/components/ix-blind.js.map +1 -0
  29. package/components/ix-breadcrumb-item.d.ts +11 -0
  30. package/components/ix-breadcrumb-item.js +9 -0
  31. package/components/ix-breadcrumb-item.js.map +1 -0
  32. package/components/ix-breadcrumb.d.ts +11 -0
  33. package/components/ix-breadcrumb.js +169 -0
  34. package/components/ix-breadcrumb.js.map +1 -0
  35. package/components/ix-button.d.ts +11 -0
  36. package/components/ix-button.js +9 -0
  37. package/components/ix-button.js.map +1 -0
  38. package/components/ix-card-accordion.d.ts +11 -0
  39. package/components/ix-card-accordion.js +9 -0
  40. package/components/ix-card-accordion.js.map +1 -0
  41. package/components/ix-card-content.d.ts +11 -0
  42. package/components/ix-card-content.js +9 -0
  43. package/components/ix-card-content.js.map +1 -0
  44. package/components/ix-card-list.d.ts +11 -0
  45. package/components/ix-card-list.js +256 -0
  46. package/components/ix-card-list.js.map +1 -0
  47. package/components/ix-card-title.d.ts +11 -0
  48. package/components/ix-card-title.js +9 -0
  49. package/components/ix-card-title.js.map +1 -0
  50. package/components/ix-card.d.ts +11 -0
  51. package/components/ix-card.js +9 -0
  52. package/components/ix-card.js.map +1 -0
  53. package/components/ix-category-filter.d.ts +11 -0
  54. package/components/ix-category-filter.js +600 -0
  55. package/components/ix-category-filter.js.map +1 -0
  56. package/components/ix-checkbox-group.d.ts +11 -0
  57. package/components/ix-checkbox-group.js +158 -0
  58. package/components/ix-checkbox-group.js.map +1 -0
  59. package/components/ix-checkbox.d.ts +11 -0
  60. package/components/ix-checkbox.js +163 -0
  61. package/components/ix-checkbox.js.map +1 -0
  62. package/components/ix-chip.d.ts +11 -0
  63. package/components/ix-chip.js +154 -0
  64. package/components/ix-chip.js.map +1 -0
  65. package/components/ix-col.d.ts +11 -0
  66. package/components/ix-col.js +9 -0
  67. package/components/ix-col.js.map +1 -0
  68. package/components/ix-content-header.d.ts +11 -0
  69. package/components/ix-content-header.js +73 -0
  70. package/components/ix-content-header.js.map +1 -0
  71. package/components/ix-content.d.ts +11 -0
  72. package/components/ix-content.js +49 -0
  73. package/components/ix-content.js.map +1 -0
  74. package/components/ix-css-grid-item.d.ts +11 -0
  75. package/components/ix-css-grid-item.js +40 -0
  76. package/components/ix-css-grid-item.js.map +1 -0
  77. package/components/ix-css-grid.d.ts +11 -0
  78. package/components/ix-css-grid.js +117 -0
  79. package/components/ix-css-grid.js.map +1 -0
  80. package/components/ix-custom-field.d.ts +11 -0
  81. package/components/ix-custom-field.js +112 -0
  82. package/components/ix-custom-field.js.map +1 -0
  83. package/components/ix-date-dropdown.d.ts +11 -0
  84. package/components/ix-date-dropdown.js +368 -0
  85. package/components/ix-date-dropdown.js.map +1 -0
  86. package/components/ix-date-input.d.ts +11 -0
  87. package/components/ix-date-input.js +393 -0
  88. package/components/ix-date-input.js.map +1 -0
  89. package/components/ix-date-picker.d.ts +11 -0
  90. package/components/ix-date-picker.js +9 -0
  91. package/components/ix-date-picker.js.map +1 -0
  92. package/components/ix-date-time-card.d.ts +11 -0
  93. package/components/ix-date-time-card.js +9 -0
  94. package/components/ix-date-time-card.js.map +1 -0
  95. package/components/ix-datetime-picker.d.ts +11 -0
  96. package/components/ix-datetime-picker.js +204 -0
  97. package/components/ix-datetime-picker.js.map +1 -0
  98. package/components/ix-divider.d.ts +11 -0
  99. package/components/ix-divider.js +9 -0
  100. package/components/ix-divider.js.map +1 -0
  101. package/components/ix-drawer.d.ts +11 -0
  102. package/components/ix-drawer.js +200 -0
  103. package/components/ix-drawer.js.map +1 -0
  104. package/components/ix-dropdown-button.d.ts +11 -0
  105. package/components/ix-dropdown-button.js +106 -0
  106. package/components/ix-dropdown-button.js.map +1 -0
  107. package/components/ix-dropdown-header.d.ts +11 -0
  108. package/components/ix-dropdown-header.js +44 -0
  109. package/components/ix-dropdown-header.js.map +1 -0
  110. package/components/ix-dropdown-item.d.ts +11 -0
  111. package/components/ix-dropdown-item.js +9 -0
  112. package/components/ix-dropdown-item.js.map +1 -0
  113. package/components/ix-dropdown-quick-actions.d.ts +11 -0
  114. package/components/ix-dropdown-quick-actions.js +36 -0
  115. package/components/ix-dropdown-quick-actions.js.map +1 -0
  116. package/components/ix-dropdown.d.ts +11 -0
  117. package/components/ix-dropdown.js +9 -0
  118. package/components/ix-dropdown.js.map +1 -0
  119. package/components/ix-empty-state.d.ts +11 -0
  120. package/components/ix-empty-state.js +65 -0
  121. package/components/ix-empty-state.js.map +1 -0
  122. package/components/ix-event-list-item.d.ts +11 -0
  123. package/components/ix-event-list-item.js +72 -0
  124. package/components/ix-event-list-item.js.map +1 -0
  125. package/components/ix-event-list.d.ts +11 -0
  126. package/components/ix-event-list.js +173 -0
  127. package/components/ix-event-list.js.map +1 -0
  128. package/components/ix-expanding-search.d.ts +11 -0
  129. package/components/ix-expanding-search.js +145 -0
  130. package/components/ix-expanding-search.js.map +1 -0
  131. package/components/ix-field-label.d.ts +11 -0
  132. package/components/ix-field-label.js +9 -0
  133. package/components/ix-field-label.js.map +1 -0
  134. package/components/ix-field-wrapper.d.ts +11 -0
  135. package/components/ix-field-wrapper.js +9 -0
  136. package/components/ix-field-wrapper.js.map +1 -0
  137. package/components/ix-filter-chip.d.ts +11 -0
  138. package/components/ix-filter-chip.js +9 -0
  139. package/components/ix-filter-chip.js.map +1 -0
  140. package/components/ix-flip-tile-content.d.ts +11 -0
  141. package/components/ix-flip-tile-content.js +44 -0
  142. package/components/ix-flip-tile-content.js.map +1 -0
  143. package/components/ix-flip-tile.d.ts +11 -0
  144. package/components/ix-flip-tile.js +153 -0
  145. package/components/ix-flip-tile.js.map +1 -0
  146. package/components/ix-group-context-menu.d.ts +11 -0
  147. package/components/ix-group-context-menu.js +9 -0
  148. package/components/ix-group-context-menu.js.map +1 -0
  149. package/components/ix-group-item.d.ts +11 -0
  150. package/components/ix-group-item.js +9 -0
  151. package/components/ix-group-item.js.map +1 -0
  152. package/components/ix-group.d.ts +11 -0
  153. package/components/ix-group.js +221 -0
  154. package/components/ix-group.js.map +1 -0
  155. package/components/ix-helper-text.d.ts +11 -0
  156. package/components/ix-helper-text.js +95 -0
  157. package/components/ix-helper-text.js.map +1 -0
  158. package/components/ix-icon-button.d.ts +11 -0
  159. package/components/ix-icon-button.js +9 -0
  160. package/components/ix-icon-button.js.map +1 -0
  161. package/components/ix-icon-toggle-button.d.ts +11 -0
  162. package/components/ix-icon-toggle-button.js +149 -0
  163. package/components/ix-icon-toggle-button.js.map +1 -0
  164. package/components/ix-input-group.d.ts +11 -0
  165. package/components/ix-input-group.js +152 -0
  166. package/components/ix-input-group.js.map +1 -0
  167. package/components/ix-input.d.ts +11 -0
  168. package/components/ix-input.js +248 -0
  169. package/components/ix-input.js.map +1 -0
  170. package/components/ix-key-value-list.d.ts +11 -0
  171. package/components/ix-key-value-list.js +42 -0
  172. package/components/ix-key-value-list.js.map +1 -0
  173. package/components/ix-key-value.d.ts +11 -0
  174. package/components/ix-key-value.js +48 -0
  175. package/components/ix-key-value.js.map +1 -0
  176. package/components/ix-kpi.d.ts +11 -0
  177. package/components/ix-kpi.js +74 -0
  178. package/components/ix-kpi.js.map +1 -0
  179. package/components/ix-layout-auto.d.ts +11 -0
  180. package/components/ix-layout-auto.js +113 -0
  181. package/components/ix-layout-auto.js.map +1 -0
  182. package/components/ix-layout-grid.d.ts +11 -0
  183. package/components/ix-layout-grid.js +9 -0
  184. package/components/ix-layout-grid.js.map +1 -0
  185. package/components/ix-link-button.d.ts +11 -0
  186. package/components/ix-link-button.js +57 -0
  187. package/components/ix-link-button.js.map +1 -0
  188. package/components/ix-map-navigation-overlay.d.ts +11 -0
  189. package/components/ix-map-navigation-overlay.js +9 -0
  190. package/components/ix-map-navigation-overlay.js.map +1 -0
  191. package/components/ix-map-navigation.d.ts +11 -0
  192. package/components/ix-map-navigation.js +240 -0
  193. package/components/ix-map-navigation.js.map +1 -0
  194. package/components/ix-menu-about-item.d.ts +11 -0
  195. package/components/ix-menu-about-item.js +51 -0
  196. package/components/ix-menu-about-item.js.map +1 -0
  197. package/components/ix-menu-about-news.d.ts +11 -0
  198. package/components/ix-menu-about-news.js +93 -0
  199. package/components/ix-menu-about-news.js.map +1 -0
  200. package/components/ix-menu-about.d.ts +11 -0
  201. package/components/ix-menu-about.js +89 -0
  202. package/components/ix-menu-about.js.map +1 -0
  203. package/components/ix-menu-avatar-item.d.ts +11 -0
  204. package/components/ix-menu-avatar-item.js +9 -0
  205. package/components/ix-menu-avatar-item.js.map +1 -0
  206. package/components/ix-menu-avatar.d.ts +11 -0
  207. package/components/ix-menu-avatar.js +115 -0
  208. package/components/ix-menu-avatar.js.map +1 -0
  209. package/components/ix-menu-category.d.ts +11 -0
  210. package/components/ix-menu-category.js +284 -0
  211. package/components/ix-menu-category.js.map +1 -0
  212. package/components/ix-menu-expand-icon.d.ts +11 -0
  213. package/components/ix-menu-expand-icon.js +9 -0
  214. package/components/ix-menu-expand-icon.js.map +1 -0
  215. package/components/ix-menu-item.d.ts +11 -0
  216. package/components/ix-menu-item.js +9 -0
  217. package/components/ix-menu-item.js.map +1 -0
  218. package/components/ix-menu-settings-item.d.ts +11 -0
  219. package/components/ix-menu-settings-item.js +51 -0
  220. package/components/ix-menu-settings-item.js.map +1 -0
  221. package/components/ix-menu-settings.d.ts +11 -0
  222. package/components/ix-menu-settings.js +9 -0
  223. package/components/ix-menu-settings.js.map +1 -0
  224. package/components/ix-menu.d.ts +11 -0
  225. package/components/ix-menu.js +590 -0
  226. package/components/ix-menu.js.map +1 -0
  227. package/components/ix-message-bar.d.ts +11 -0
  228. package/components/ix-message-bar.js +103 -0
  229. package/components/ix-message-bar.js.map +1 -0
  230. package/components/ix-modal-content.d.ts +11 -0
  231. package/components/ix-modal-content.js +9 -0
  232. package/components/ix-modal-content.js.map +1 -0
  233. package/components/ix-modal-footer.d.ts +11 -0
  234. package/components/ix-modal-footer.js +36 -0
  235. package/components/ix-modal-footer.js.map +1 -0
  236. package/components/ix-modal-header.d.ts +11 -0
  237. package/components/ix-modal-header.js +9 -0
  238. package/components/ix-modal-header.js.map +1 -0
  239. package/components/ix-modal-loading.d.ts +11 -0
  240. package/components/ix-modal-loading.js +42 -0
  241. package/components/ix-modal-loading.js.map +1 -0
  242. package/components/ix-modal.d.ts +11 -0
  243. package/components/ix-modal.js +241 -0
  244. package/components/ix-modal.js.map +1 -0
  245. package/components/ix-number-input.d.ts +11 -0
  246. package/components/ix-number-input.js +241 -0
  247. package/components/ix-number-input.js.map +1 -0
  248. package/components/ix-pagination.d.ts +11 -0
  249. package/components/ix-pagination.js +261 -0
  250. package/components/ix-pagination.js.map +1 -0
  251. package/components/ix-pane-layout.d.ts +11 -0
  252. package/components/ix-pane-layout.js +311 -0
  253. package/components/ix-pane-layout.js.map +1 -0
  254. package/components/ix-pane.d.ts +11 -0
  255. package/components/ix-pane.js +568 -0
  256. package/components/ix-pane.js.map +1 -0
  257. package/components/ix-pill.d.ts +11 -0
  258. package/components/ix-pill.js +127 -0
  259. package/components/ix-pill.js.map +1 -0
  260. package/components/ix-progress-indicator.d.ts +11 -0
  261. package/components/ix-progress-indicator.js +193 -0
  262. package/components/ix-progress-indicator.js.map +1 -0
  263. package/components/ix-push-card.d.ts +11 -0
  264. package/components/ix-push-card.js +82 -0
  265. package/components/ix-push-card.js.map +1 -0
  266. package/components/ix-radio-group.d.ts +11 -0
  267. package/components/ix-radio-group.js +195 -0
  268. package/components/ix-radio-group.js.map +1 -0
  269. package/components/ix-radio.d.ts +11 -0
  270. package/components/ix-radio.js +145 -0
  271. package/components/ix-radio.js.map +1 -0
  272. package/components/ix-row.d.ts +11 -0
  273. package/components/ix-row.js +9 -0
  274. package/components/ix-row.js.map +1 -0
  275. package/components/ix-select-item.d.ts +11 -0
  276. package/components/ix-select-item.js +9 -0
  277. package/components/ix-select-item.js.map +1 -0
  278. package/components/ix-select.d.ts +11 -0
  279. package/components/ix-select.js +9 -0
  280. package/components/ix-select.js.map +1 -0
  281. package/components/ix-slider.d.ts +11 -0
  282. package/components/ix-slider.js +255 -0
  283. package/components/ix-slider.js.map +1 -0
  284. package/components/ix-spinner.d.ts +11 -0
  285. package/components/ix-spinner.js +9 -0
  286. package/components/ix-spinner.js.map +1 -0
  287. package/components/ix-split-button.d.ts +11 -0
  288. package/components/ix-split-button.js +117 -0
  289. package/components/ix-split-button.js.map +1 -0
  290. package/components/ix-tab-item.d.ts +11 -0
  291. package/components/ix-tab-item.js +9 -0
  292. package/components/ix-tab-item.js.map +1 -0
  293. package/components/ix-tabs.d.ts +11 -0
  294. package/components/ix-tabs.js +9 -0
  295. package/components/ix-tabs.js.map +1 -0
  296. package/components/ix-textarea.d.ts +11 -0
  297. package/components/ix-textarea.js +192 -0
  298. package/components/ix-textarea.js.map +1 -0
  299. package/components/ix-tile.d.ts +11 -0
  300. package/components/ix-tile.js +63 -0
  301. package/components/ix-tile.js.map +1 -0
  302. package/components/ix-time-input.d.ts +11 -0
  303. package/components/ix-time-input.js +442 -0
  304. package/components/ix-time-input.js.map +1 -0
  305. package/components/ix-time-picker.d.ts +11 -0
  306. package/components/ix-time-picker.js +9 -0
  307. package/components/ix-time-picker.js.map +1 -0
  308. package/components/ix-toast-container.d.ts +11 -0
  309. package/components/ix-toast-container.js +143 -0
  310. package/components/ix-toast-container.js.map +1 -0
  311. package/components/ix-toast.d.ts +11 -0
  312. package/components/ix-toast.js +9 -0
  313. package/components/ix-toast.js.map +1 -0
  314. package/components/ix-toggle-button.d.ts +11 -0
  315. package/components/ix-toggle-button.js +128 -0
  316. package/components/ix-toggle-button.js.map +1 -0
  317. package/components/ix-toggle.d.ts +11 -0
  318. package/components/ix-toggle.js +188 -0
  319. package/components/ix-toggle.js.map +1 -0
  320. package/components/ix-tooltip.d.ts +11 -0
  321. package/components/ix-tooltip.js +9 -0
  322. package/components/ix-tooltip.js.map +1 -0
  323. package/components/ix-tree-item.d.ts +11 -0
  324. package/components/ix-tree-item.js +9 -0
  325. package/components/ix-tree-item.js.map +1 -0
  326. package/components/ix-tree.d.ts +11 -0
  327. package/components/ix-tree.js +610 -0
  328. package/components/ix-tree.js.map +1 -0
  329. package/components/ix-typography.d.ts +11 -0
  330. package/components/ix-typography.js +9 -0
  331. package/components/ix-typography.js.map +1 -0
  332. package/components/ix-upload.d.ts +11 -0
  333. package/components/ix-upload.js +234 -0
  334. package/components/ix-upload.js.map +1 -0
  335. package/components/ix-validation-tooltip.d.ts +11 -0
  336. package/components/ix-validation-tooltip.js +182 -0
  337. package/components/ix-validation-tooltip.js.map +1 -0
  338. package/components/ix-workflow-step.d.ts +11 -0
  339. package/components/ix-workflow-step.js +147 -0
  340. package/components/ix-workflow-step.js.map +1 -0
  341. package/components/ix-workflow-steps.d.ts +11 -0
  342. package/components/ix-workflow-steps.js +112 -0
  343. package/components/ix-workflow-steps.js.map +1 -0
  344. package/components/p--2LOMK-5.js +105 -0
  345. package/components/p--2LOMK-5.js.map +1 -0
  346. package/components/p-5uA5ifmT.js +72 -0
  347. package/components/p-5uA5ifmT.js.map +1 -0
  348. package/components/p-9dLpp1OQ.js +71 -0
  349. package/components/p-9dLpp1OQ.js.map +1 -0
  350. package/components/p-B1Gzt08S.js +51 -0
  351. package/components/p-B1Gzt08S.js.map +1 -0
  352. package/components/p-B3duqvjW.js +33 -0
  353. package/components/p-B3duqvjW.js.map +1 -0
  354. package/components/p-B6e7P4xT.js +42 -0
  355. package/components/p-B6e7P4xT.js.map +1 -0
  356. package/components/p-BGzrnl_l.js +21 -0
  357. package/components/p-BGzrnl_l.js.map +1 -0
  358. package/components/p-BH3f5fa3.js +37 -0
  359. package/components/p-BH3f5fa3.js.map +1 -0
  360. package/components/p-BJcX2_-N.js +110 -0
  361. package/components/p-BJcX2_-N.js.map +1 -0
  362. package/components/p-BMU8AlMD.js +107 -0
  363. package/components/p-BMU8AlMD.js.map +1 -0
  364. package/components/p-BNu7ac9R.js +79 -0
  365. package/components/p-BNu7ac9R.js.map +1 -0
  366. package/components/p-BP-8cvOJ.js +90 -0
  367. package/components/p-BP-8cvOJ.js.map +1 -0
  368. package/components/p-BQ6999e5.js +22 -0
  369. package/components/p-BQ6999e5.js.map +1 -0
  370. package/components/p-BXjBChze.js +130 -0
  371. package/components/p-BXjBChze.js.map +1 -0
  372. package/components/p-Bb7pDeaQ.js +144 -0
  373. package/components/p-Bb7pDeaQ.js.map +1 -0
  374. package/components/p-BcGAKMQ_.js +76 -0
  375. package/components/p-BcGAKMQ_.js.map +1 -0
  376. package/components/p-BdCnOrqW.js +47 -0
  377. package/components/p-BdCnOrqW.js.map +1 -0
  378. package/components/p-BedSAVZh.js +90 -0
  379. package/components/p-BedSAVZh.js.map +1 -0
  380. package/components/p-BhLbU_vK.js +129 -0
  381. package/components/p-BhLbU_vK.js.map +1 -0
  382. package/components/p-Bi1VyG64.js +46 -0
  383. package/components/p-Bi1VyG64.js.map +1 -0
  384. package/components/p-BkWbk29R.js +75 -0
  385. package/components/p-BkWbk29R.js.map +1 -0
  386. package/components/p-BmmgJGNd.js +64 -0
  387. package/components/p-BmmgJGNd.js.map +1 -0
  388. package/components/p-Bu-j8wxy.js +162 -0
  389. package/components/p-Bu-j8wxy.js.map +1 -0
  390. package/components/p-BuJ6BWIi.js +2042 -0
  391. package/components/p-BuJ6BWIi.js.map +1 -0
  392. package/components/p-Bvsx56zn.js +203 -0
  393. package/components/p-Bvsx56zn.js.map +1 -0
  394. package/components/p-BygLxZIM.js +54 -0
  395. package/components/p-BygLxZIM.js.map +1 -0
  396. package/components/p-Bzyt4nTL.js +110 -0
  397. package/components/p-Bzyt4nTL.js.map +1 -0
  398. package/components/p-C6o-AByw.js +33 -0
  399. package/components/p-C6o-AByw.js.map +1 -0
  400. package/components/p-CAqtPJ4-.js +1786 -0
  401. package/components/p-CAqtPJ4-.js.map +1 -0
  402. package/components/p-CGwHQeMX.js +54 -0
  403. package/components/p-CGwHQeMX.js.map +1 -0
  404. package/components/p-CKkTXQiw.js +164 -0
  405. package/components/p-CKkTXQiw.js.map +1 -0
  406. package/components/p-CX81WQtk.js +14 -0
  407. package/components/p-CX81WQtk.js.map +1 -0
  408. package/components/p-Cb-eBcUF.js +61 -0
  409. package/components/p-Cb-eBcUF.js.map +1 -0
  410. package/components/p-Cp5J1RZq.js +765 -0
  411. package/components/p-Cp5J1RZq.js.map +1 -0
  412. package/components/p-Cpxz1Kcs.js +19 -0
  413. package/components/p-Cpxz1Kcs.js.map +1 -0
  414. package/components/p-Cs8DEpjh.js +611 -0
  415. package/components/p-Cs8DEpjh.js.map +1 -0
  416. package/components/p-Cut5OrRw.js +461 -0
  417. package/components/p-Cut5OrRw.js.map +1 -0
  418. package/components/p-CvvOe8xV.js +151 -0
  419. package/components/p-CvvOe8xV.js.map +1 -0
  420. package/components/p-CyFFBc_G.js +100 -0
  421. package/components/p-CyFFBc_G.js.map +1 -0
  422. package/components/p-D3Aowo70.js +113 -0
  423. package/components/p-D3Aowo70.js.map +1 -0
  424. package/components/p-D3K9vmFp.js +157 -0
  425. package/components/p-D3K9vmFp.js.map +1 -0
  426. package/components/p-D6vSVaHq.js +26 -0
  427. package/components/p-D6vSVaHq.js.map +1 -0
  428. package/components/p-D9LaIICQ.js +118 -0
  429. package/components/p-D9LaIICQ.js.map +1 -0
  430. package/components/p-DCx3-1oU.js +310 -0
  431. package/components/p-DCx3-1oU.js.map +1 -0
  432. package/components/p-DDHkNPby.js +79 -0
  433. package/components/p-DDHkNPby.js.map +1 -0
  434. package/components/p-DJ7U7oUq.js +89 -0
  435. package/components/p-DJ7U7oUq.js.map +1 -0
  436. package/components/p-DMlmNp-B.js +33 -0
  437. package/components/p-DMlmNp-B.js.map +1 -0
  438. package/components/p-DWO4uklL.js +146 -0
  439. package/components/p-DWO4uklL.js.map +1 -0
  440. package/components/p-DaztMgDr.js +757 -0
  441. package/components/p-DaztMgDr.js.map +1 -0
  442. package/components/p-DbR-LZrk.js +33 -0
  443. package/components/p-DbR-LZrk.js.map +1 -0
  444. package/components/p-DfbCO042.js +207 -0
  445. package/components/p-DfbCO042.js.map +1 -0
  446. package/components/p-DkGdSI6e.js +103 -0
  447. package/components/p-DkGdSI6e.js.map +1 -0
  448. package/components/p-DojBQCbP.js +55 -0
  449. package/components/p-DojBQCbP.js.map +1 -0
  450. package/components/p-Dp15M30K.js +20 -0
  451. package/components/p-Dp15M30K.js.map +1 -0
  452. package/components/p-Dp4RJcgZ.js +125 -0
  453. package/components/p-Dp4RJcgZ.js.map +1 -0
  454. package/components/p-DyHdZRT0.js +359 -0
  455. package/components/p-DyHdZRT0.js.map +1 -0
  456. package/components/p-DyMgW0fR.js +65 -0
  457. package/components/p-DyMgW0fR.js.map +1 -0
  458. package/components/p-G0biE2Kx.js +33 -0
  459. package/components/p-G0biE2Kx.js.map +1 -0
  460. package/components/p-JJddxCCh.js +42 -0
  461. package/components/p-JJddxCCh.js.map +1 -0
  462. package/components/p-Ooq8eqJM.js +33 -0
  463. package/components/p-Ooq8eqJM.js.map +1 -0
  464. package/components/p-Ou74PMQs.js +1313 -0
  465. package/components/p-Ou74PMQs.js.map +1 -0
  466. package/components/p-PxA_udyJ.js +254 -0
  467. package/components/p-PxA_udyJ.js.map +1 -0
  468. package/components/p-TNoCM8Wi.js +83 -0
  469. package/components/p-TNoCM8Wi.js.map +1 -0
  470. package/components/p-UQa1aROL.js +23 -0
  471. package/components/p-UQa1aROL.js.map +1 -0
  472. package/components/p-bDicGJUN.js +7697 -0
  473. package/components/p-bDicGJUN.js.map +1 -0
  474. package/components/p-bcj7UEIC.js +24 -0
  475. package/components/p-bcj7UEIC.js.map +1 -0
  476. package/components/p-kY0vP3rC.js +122 -0
  477. package/components/p-kY0vP3rC.js.map +1 -0
  478. package/components/p-qauH9Ci4.js +54 -0
  479. package/components/p-qauH9Ci4.js.map +1 -0
  480. package/components/p-r63hglsv.js +90 -0
  481. package/components/p-r63hglsv.js.map +1 -0
  482. package/components/p-tH4n038Z.js +48 -0
  483. package/components/p-tH4n038Z.js.map +1 -0
  484. package/components/package.json +9 -0
  485. package/package.json +3 -2
  486. package/dist/collection/components/application-header/test/application-header.ct.js +0 -389
  487. package/dist/collection/components/application-header/test/application-header.ct.js.map +0 -1
  488. package/dist/collection/components/avatar/test/avatar.ct.js +0 -85
  489. package/dist/collection/components/avatar/test/avatar.ct.js.map +0 -1
  490. package/dist/collection/components/blind/test/blind.ct.js +0 -16
  491. package/dist/collection/components/blind/test/blind.ct.js.map +0 -1
  492. package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js +0 -98
  493. package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js.map +0 -1
  494. package/dist/collection/components/button/test/button.ct.js +0 -153
  495. package/dist/collection/components/button/test/button.ct.js.map +0 -1
  496. package/dist/collection/components/category-filter/test/category-filter.ct.js +0 -62
  497. package/dist/collection/components/category-filter/test/category-filter.ct.js.map +0 -1
  498. package/dist/collection/components/checkbox/tests/checkbox.ct.js +0 -86
  499. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +0 -1
  500. package/dist/collection/components/checkbox-group/test/checkbox-group.ct.js +0 -48
  501. package/dist/collection/components/checkbox-group/test/checkbox-group.ct.js.map +0 -1
  502. package/dist/collection/components/chip/test/chip.ct.js +0 -76
  503. package/dist/collection/components/chip/test/chip.ct.js.map +0 -1
  504. package/dist/collection/components/custom-field/tests/custom-field.ct.js +0 -68
  505. package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +0 -1
  506. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +0 -215
  507. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +0 -1
  508. package/dist/collection/components/date-input/tests/date-input.ct.js +0 -117
  509. package/dist/collection/components/date-input/tests/date-input.ct.js.map +0 -1
  510. package/dist/collection/components/date-picker/test/date-picker.ct.js +0 -221
  511. package/dist/collection/components/date-picker/test/date-picker.ct.js.map +0 -1
  512. package/dist/collection/components/datetime-picker/test/datetime-picker.ct.js +0 -55
  513. package/dist/collection/components/datetime-picker/test/datetime-picker.ct.js.map +0 -1
  514. package/dist/collection/components/drawer/test/drawer.ct.js +0 -67
  515. package/dist/collection/components/drawer/test/drawer.ct.js.map +0 -1
  516. package/dist/collection/components/dropdown/test/dropdown.ct.js +0 -624
  517. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +0 -1
  518. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +0 -51
  519. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +0 -1
  520. package/dist/collection/components/event-list/test/event-list.ct.js +0 -88
  521. package/dist/collection/components/event-list/test/event-list.ct.js.map +0 -1
  522. package/dist/collection/components/expanding-search/test/expanding-search.ct.js +0 -56
  523. package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +0 -1
  524. package/dist/collection/components/field-label/tests/field-label.ct.js +0 -121
  525. package/dist/collection/components/field-label/tests/field-label.ct.js.map +0 -1
  526. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +0 -63
  527. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +0 -1
  528. package/dist/collection/components/flip-tile/test/flip-tile.ct.js +0 -89
  529. package/dist/collection/components/flip-tile/test/flip-tile.ct.js.map +0 -1
  530. package/dist/collection/components/group/test/group.ct.js +0 -115
  531. package/dist/collection/components/group/test/group.ct.js.map +0 -1
  532. package/dist/collection/components/icon-button/test/icon-button.ct.js +0 -30
  533. package/dist/collection/components/icon-button/test/icon-button.ct.js.map +0 -1
  534. package/dist/collection/components/input/tests/form-ready.ct.js +0 -73
  535. package/dist/collection/components/input/tests/form-ready.ct.js.map +0 -1
  536. package/dist/collection/components/input/tests/validation.ct.js +0 -84
  537. package/dist/collection/components/input/tests/validation.ct.js.map +0 -1
  538. package/dist/collection/components/input-group/tests/input-group.ct.js +0 -161
  539. package/dist/collection/components/input-group/tests/input-group.ct.js.map +0 -1
  540. package/dist/collection/components/menu/test/menu.ct.js +0 -256
  541. package/dist/collection/components/menu/test/menu.ct.js.map +0 -1
  542. package/dist/collection/components/menu-about/test/menu-about.ct.js +0 -65
  543. package/dist/collection/components/menu-about/test/menu-about.ct.js.map +0 -1
  544. package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js +0 -47
  545. package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js.map +0 -1
  546. package/dist/collection/components/menu-category/test/menu-category.ct.js +0 -274
  547. package/dist/collection/components/menu-category/test/menu-category.ct.js.map +0 -1
  548. package/dist/collection/components/menu-item/test/menu-item.ct.js +0 -67
  549. package/dist/collection/components/menu-item/test/menu-item.ct.js.map +0 -1
  550. package/dist/collection/components/menu-settings/test/menu-settings.ct.js +0 -32
  551. package/dist/collection/components/menu-settings/test/menu-settings.ct.js.map +0 -1
  552. package/dist/collection/components/message-bar/test/message-bar.ct.js +0 -28
  553. package/dist/collection/components/message-bar/test/message-bar.ct.js.map +0 -1
  554. package/dist/collection/components/modal/test/modal.ct.js +0 -204
  555. package/dist/collection/components/modal/test/modal.ct.js.map +0 -1
  556. package/dist/collection/components/pagination/test/pagination.ct.js +0 -68
  557. package/dist/collection/components/pagination/test/pagination.ct.js.map +0 -1
  558. package/dist/collection/components/pane/test/panes.ct.js +0 -59
  559. package/dist/collection/components/pane/test/panes.ct.js.map +0 -1
  560. package/dist/collection/components/pane-layout/test/pane-layout.ct.js +0 -60
  561. package/dist/collection/components/pane-layout/test/pane-layout.ct.js.map +0 -1
  562. package/dist/collection/components/pill/test/pill.ct.js +0 -63
  563. package/dist/collection/components/pill/test/pill.ct.js.map +0 -1
  564. package/dist/collection/components/radio/test/radio.ct.js +0 -77
  565. package/dist/collection/components/radio/test/radio.ct.js.map +0 -1
  566. package/dist/collection/components/radio-group/test/radio-group.ct.js +0 -117
  567. package/dist/collection/components/radio-group/test/radio-group.ct.js.map +0 -1
  568. package/dist/collection/components/select/test/select-keyboard.ct.js +0 -380
  569. package/dist/collection/components/select/test/select-keyboard.ct.js.map +0 -1
  570. package/dist/collection/components/select/test/select.ct.js +0 -594
  571. package/dist/collection/components/select/test/select.ct.js.map +0 -1
  572. package/dist/collection/components/slider/test/slider.ct.js +0 -65
  573. package/dist/collection/components/slider/test/slider.ct.js.map +0 -1
  574. package/dist/collection/components/tabs/test/tabs.ct.js +0 -134
  575. package/dist/collection/components/tabs/test/tabs.ct.js.map +0 -1
  576. package/dist/collection/components/time-input/test/time-input.ct.js +0 -62
  577. package/dist/collection/components/time-input/test/time-input.ct.js.map +0 -1
  578. package/dist/collection/components/time-picker/test/time-picker.ct.js +0 -172
  579. package/dist/collection/components/time-picker/test/time-picker.ct.js.map +0 -1
  580. package/dist/collection/components/toggle/test/toggle.ct.js +0 -84
  581. package/dist/collection/components/toggle/test/toggle.ct.js.map +0 -1
  582. package/dist/collection/components/tooltip/test/tooltip.ct.js +0 -243
  583. package/dist/collection/components/tooltip/test/tooltip.ct.js.map +0 -1
  584. package/dist/collection/components/tree/test/tree.ct.js +0 -355
  585. package/dist/collection/components/tree/test/tree.ct.js.map +0 -1
  586. package/dist/collection/components/upload/test/upload.ct.js +0 -17
  587. package/dist/collection/components/upload/test/upload.ct.js.map +0 -1
  588. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +0 -74
  589. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +0 -1
  590. package/dist/collection/tests/utils/test/matchMedia.mock.js +0 -22
  591. package/dist/types/components/application-header/test/application-header.ct.d.ts +0 -1
  592. package/dist/types/components/avatar/test/avatar.ct.d.ts +0 -1
  593. package/dist/types/components/blind/test/blind.ct.d.ts +0 -1
  594. package/dist/types/components/breadcrumb/test/breadcrumb.ct.d.ts +0 -1
  595. package/dist/types/components/button/test/button.ct.d.ts +0 -7
  596. package/dist/types/components/category-filter/test/category-filter.ct.d.ts +0 -1
  597. package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +0 -1
  598. package/dist/types/components/checkbox-group/test/checkbox-group.ct.d.ts +0 -1
  599. package/dist/types/components/chip/test/chip.ct.d.ts +0 -1
  600. package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +0 -1
  601. package/dist/types/components/date-dropdown/test/date-dropdown.ct.d.ts +0 -1
  602. package/dist/types/components/date-input/tests/date-input.ct.d.ts +0 -1
  603. package/dist/types/components/date-picker/test/date-picker.ct.d.ts +0 -1
  604. package/dist/types/components/datetime-picker/test/datetime-picker.ct.d.ts +0 -1
  605. package/dist/types/components/drawer/test/drawer.ct.d.ts +0 -1
  606. package/dist/types/components/dropdown/test/dropdown.ct.d.ts +0 -1
  607. package/dist/types/components/dropdown-button/dropdown-button.ct.d.ts +0 -1
  608. package/dist/types/components/event-list/test/event-list.ct.d.ts +0 -1
  609. package/dist/types/components/expanding-search/test/expanding-search.ct.d.ts +0 -1
  610. package/dist/types/components/field-label/tests/field-label.ct.d.ts +0 -1
  611. package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +0 -1
  612. package/dist/types/components/flip-tile/test/flip-tile.ct.d.ts +0 -1
  613. package/dist/types/components/group/test/group.ct.d.ts +0 -1
  614. package/dist/types/components/icon-button/test/icon-button.ct.d.ts +0 -1
  615. package/dist/types/components/input/tests/form-ready.ct.d.ts +0 -1
  616. package/dist/types/components/input/tests/validation.ct.d.ts +0 -1
  617. package/dist/types/components/input-group/tests/input-group.ct.d.ts +0 -1
  618. package/dist/types/components/menu/test/menu.ct.d.ts +0 -1
  619. package/dist/types/components/menu-about/test/menu-about.ct.d.ts +0 -1
  620. package/dist/types/components/menu-avatar-item/test/menu-avatar-item.ct.d.ts +0 -1
  621. package/dist/types/components/menu-category/test/menu-category.ct.d.ts +0 -1
  622. package/dist/types/components/menu-item/test/menu-item.ct.d.ts +0 -1
  623. package/dist/types/components/menu-settings/test/menu-settings.ct.d.ts +0 -1
  624. package/dist/types/components/message-bar/test/message-bar.ct.d.ts +0 -1
  625. package/dist/types/components/modal/test/modal.ct.d.ts +0 -8
  626. package/dist/types/components/pagination/test/pagination.ct.d.ts +0 -1
  627. package/dist/types/components/pane/test/panes.ct.d.ts +0 -1
  628. package/dist/types/components/pane-layout/test/pane-layout.ct.d.ts +0 -1
  629. package/dist/types/components/pill/test/pill.ct.d.ts +0 -1
  630. package/dist/types/components/radio/test/radio.ct.d.ts +0 -1
  631. package/dist/types/components/radio-group/test/radio-group.ct.d.ts +0 -1
  632. package/dist/types/components/select/test/select-keyboard.ct.d.ts +0 -1
  633. package/dist/types/components/select/test/select.ct.d.ts +0 -1
  634. package/dist/types/components/slider/test/slider.ct.d.ts +0 -1
  635. package/dist/types/components/tabs/test/tabs.ct.d.ts +0 -1
  636. package/dist/types/components/time-input/test/time-input.ct.d.ts +0 -1
  637. package/dist/types/components/time-picker/test/time-picker.ct.d.ts +0 -1
  638. package/dist/types/components/toggle/test/toggle.ct.d.ts +0 -1
  639. package/dist/types/components/tooltip/test/tooltip.ct.d.ts +0 -1
  640. package/dist/types/components/tree/test/tree.ct.d.ts +0 -1
  641. package/dist/types/components/upload/test/upload.ct.d.ts +0 -1
  642. package/dist/types/components/workflow-steps/test/workflow-steps.ct.d.ts +0 -1
@@ -0,0 +1,2042 @@
1
+ const NAMESPACE = 'siemens-ix';
2
+ const BUILD = /* siemens-ix */ { hydratedSelectorName: "hydrated", lazyLoad: false, updatable: true};
3
+
4
+ const globalStyles = "";
5
+
6
+ /*
7
+ Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
8
+ */
9
+ var __defProp = Object.defineProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+
15
+ // src/utils/constants.ts
16
+ var SVG_NS = "http://www.w3.org/2000/svg";
17
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
18
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
19
+ PrimitiveType2["Undefined"] = "undefined";
20
+ PrimitiveType2["Null"] = "null";
21
+ PrimitiveType2["String"] = "string";
22
+ PrimitiveType2["Number"] = "number";
23
+ PrimitiveType2["SpecialNumber"] = "number";
24
+ PrimitiveType2["Boolean"] = "boolean";
25
+ PrimitiveType2["BigInt"] = "bigint";
26
+ return PrimitiveType2;
27
+ })(PrimitiveType || {});
28
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
29
+ NonPrimitiveType2["Array"] = "array";
30
+ NonPrimitiveType2["Date"] = "date";
31
+ NonPrimitiveType2["Map"] = "map";
32
+ NonPrimitiveType2["Object"] = "object";
33
+ NonPrimitiveType2["RegularExpression"] = "regexp";
34
+ NonPrimitiveType2["Set"] = "set";
35
+ NonPrimitiveType2["Channel"] = "channel";
36
+ NonPrimitiveType2["Symbol"] = "symbol";
37
+ return NonPrimitiveType2;
38
+ })(NonPrimitiveType || {});
39
+ var TYPE_CONSTANT = "type";
40
+ var VALUE_CONSTANT = "value";
41
+ var SERIALIZED_PREFIX = "serialized:";
42
+
43
+ // src/client/client-host-ref.ts
44
+ var getHostRef = (ref) => {
45
+ if (ref.__stencil__getHostRef) {
46
+ return ref.__stencil__getHostRef();
47
+ }
48
+ return void 0;
49
+ };
50
+ var registerHost = (hostElement, cmpMeta) => {
51
+ const hostRef = {
52
+ $flags$: 0,
53
+ $hostElement$: hostElement,
54
+ $cmpMeta$: cmpMeta,
55
+ $instanceValues$: /* @__PURE__ */ new Map()
56
+ };
57
+ {
58
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
59
+ hostElement["s-p"] = [];
60
+ hostElement["s-rc"] = [];
61
+ }
62
+ const ref = hostRef;
63
+ hostElement.__stencil__getHostRef = () => ref;
64
+ return ref;
65
+ };
66
+ var isMemberInElement = (elm, memberName) => memberName in elm;
67
+ var consoleError = (e, el) => (0, console.error)(e, el);
68
+
69
+ // src/client/client-style.ts
70
+ var styles = /* @__PURE__ */ new Map();
71
+
72
+ // src/runtime/runtime-constants.ts
73
+ var CONTENT_REF_ID = "r";
74
+ var ORG_LOCATION_ID = "o";
75
+ var SLOT_NODE_ID = "s";
76
+ var TEXT_NODE_ID = "t";
77
+ var COMMENT_NODE_ID = "c";
78
+ var HYDRATE_ID = "s-id";
79
+ var HYDRATED_STYLE_ID = "sty-id";
80
+ var HYDRATE_CHILD_ID = "c-id";
81
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
82
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
83
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
84
+ "formAssociatedCallback",
85
+ "formResetCallback",
86
+ "formDisabledCallback",
87
+ "formStateRestoreCallback"
88
+ ];
89
+ var win = typeof window !== "undefined" ? window : {};
90
+ var H = win.HTMLElement || class {
91
+ };
92
+ var plt = {
93
+ $flags$: 0,
94
+ $resourcesUrl$: "",
95
+ jmp: (h2) => h2(),
96
+ raf: (h2) => requestAnimationFrame(h2),
97
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
98
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
99
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
100
+ };
101
+ var setPlatformHelpers = (helpers) => {
102
+ Object.assign(plt, helpers);
103
+ };
104
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
105
+ var _a;
106
+ let supportsListenerOptions2 = false;
107
+ try {
108
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
109
+ "e",
110
+ null,
111
+ Object.defineProperty({}, "passive", {
112
+ get() {
113
+ supportsListenerOptions2 = true;
114
+ }
115
+ })
116
+ );
117
+ } catch (e) {
118
+ }
119
+ return supportsListenerOptions2;
120
+ })();
121
+ var promiseResolve = (v) => Promise.resolve(v);
122
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
123
+ try {
124
+ new CSSStyleSheet();
125
+ return typeof new CSSStyleSheet().replaceSync === "function";
126
+ } catch (e) {
127
+ }
128
+ return false;
129
+ })() ;
130
+ var queuePending = false;
131
+ var queueDomReads = [];
132
+ var queueDomWrites = [];
133
+ var queueTask = (queue, write) => (cb) => {
134
+ queue.push(cb);
135
+ if (!queuePending) {
136
+ queuePending = true;
137
+ if (write && plt.$flags$ & 4 /* queueSync */) {
138
+ nextTick(flush);
139
+ } else {
140
+ plt.raf(flush);
141
+ }
142
+ }
143
+ };
144
+ var consume = (queue) => {
145
+ for (let i2 = 0; i2 < queue.length; i2++) {
146
+ try {
147
+ queue[i2](performance.now());
148
+ } catch (e) {
149
+ consoleError(e);
150
+ }
151
+ }
152
+ queue.length = 0;
153
+ };
154
+ var flush = () => {
155
+ consume(queueDomReads);
156
+ {
157
+ consume(queueDomWrites);
158
+ if (queuePending = queueDomReads.length > 0) {
159
+ plt.raf(flush);
160
+ }
161
+ }
162
+ };
163
+ var nextTick = (cb) => promiseResolve().then(cb);
164
+ var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
165
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
166
+
167
+ // src/runtime/asset-path.ts
168
+ var getAssetPath = (path) => {
169
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
170
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
171
+ };
172
+ var setAssetPath = (path) => plt.$resourcesUrl$ = path;
173
+ var isComplexType = (o) => {
174
+ o = typeof o;
175
+ return o === "object" || o === "function";
176
+ };
177
+
178
+ // src/utils/query-nonce-meta-tag-content.ts
179
+ function queryNonceMetaTagContent(doc) {
180
+ var _a, _b, _c;
181
+ 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;
182
+ }
183
+
184
+ // src/utils/regular-expression.ts
185
+ var escapeRegExpSpecialCharacters = (text) => {
186
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
187
+ };
188
+
189
+ // src/utils/remote-value.ts
190
+ var RemoteValue = class _RemoteValue {
191
+ /**
192
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
193
+ *
194
+ * @param serialized The serialized LocalValue object
195
+ * @returns The original JavaScript value/object
196
+ */
197
+ static fromLocalValue(serialized) {
198
+ const type = serialized[TYPE_CONSTANT];
199
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
200
+ switch (type) {
201
+ case "string" /* String */:
202
+ return value;
203
+ case "boolean" /* Boolean */:
204
+ return value;
205
+ case "bigint" /* BigInt */:
206
+ return BigInt(value);
207
+ case "undefined" /* Undefined */:
208
+ return void 0;
209
+ case "null" /* Null */:
210
+ return null;
211
+ case "number" /* Number */:
212
+ if (value === "NaN") return NaN;
213
+ if (value === "-0") return -0;
214
+ if (value === "Infinity") return Infinity;
215
+ if (value === "-Infinity") return -Infinity;
216
+ return value;
217
+ case "array" /* Array */:
218
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
219
+ case "date" /* Date */:
220
+ return new Date(value);
221
+ case "map" /* Map */:
222
+ const map2 = /* @__PURE__ */ new Map();
223
+ for (const [key, val] of value) {
224
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
225
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
226
+ map2.set(deserializedKey, deserializedValue);
227
+ }
228
+ return map2;
229
+ case "object" /* Object */:
230
+ const obj = {};
231
+ for (const [key, val] of value) {
232
+ obj[key] = _RemoteValue.fromLocalValue(val);
233
+ }
234
+ return obj;
235
+ case "regexp" /* RegularExpression */:
236
+ const { pattern, flags } = value;
237
+ return new RegExp(pattern, flags);
238
+ case "set" /* Set */:
239
+ const set = /* @__PURE__ */ new Set();
240
+ for (const item of value) {
241
+ set.add(_RemoteValue.fromLocalValue(item));
242
+ }
243
+ return set;
244
+ case "symbol" /* Symbol */:
245
+ return Symbol(value);
246
+ default:
247
+ throw new Error(`Unsupported type: ${type}`);
248
+ }
249
+ }
250
+ /**
251
+ * Utility method to deserialize multiple LocalValues at once
252
+ *
253
+ * @param serializedValues Array of serialized LocalValue objects
254
+ * @returns Array of deserialized JavaScript values
255
+ */
256
+ static fromLocalValueArray(serializedValues) {
257
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
258
+ }
259
+ /**
260
+ * Verifies if the given object matches the structure of a serialized LocalValue
261
+ *
262
+ * @param obj Object to verify
263
+ * @returns boolean indicating if the object has LocalValue structure
264
+ */
265
+ static isLocalValueObject(obj) {
266
+ if (typeof obj !== "object" || obj === null) {
267
+ return false;
268
+ }
269
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
270
+ return false;
271
+ }
272
+ const type = obj[TYPE_CONSTANT];
273
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
274
+ if (!hasTypeProperty) {
275
+ return false;
276
+ }
277
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
278
+ return obj.hasOwnProperty(VALUE_CONSTANT);
279
+ }
280
+ return true;
281
+ }
282
+ };
283
+
284
+ // src/utils/result.ts
285
+ var result_exports = {};
286
+ __export(result_exports, {
287
+ err: () => err,
288
+ map: () => map,
289
+ ok: () => ok,
290
+ unwrap: () => unwrap,
291
+ unwrapErr: () => unwrapErr
292
+ });
293
+ var ok = (value) => ({
294
+ isOk: true,
295
+ isErr: false,
296
+ value
297
+ });
298
+ var err = (value) => ({
299
+ isOk: false,
300
+ isErr: true,
301
+ value
302
+ });
303
+ function map(result, fn) {
304
+ if (result.isOk) {
305
+ const val = fn(result.value);
306
+ if (val instanceof Promise) {
307
+ return val.then((newVal) => ok(newVal));
308
+ } else {
309
+ return ok(val);
310
+ }
311
+ }
312
+ if (result.isErr) {
313
+ const value = result.value;
314
+ return err(value);
315
+ }
316
+ throw "should never get here";
317
+ }
318
+ var unwrap = (result) => {
319
+ if (result.isOk) {
320
+ return result.value;
321
+ } else {
322
+ throw result.value;
323
+ }
324
+ };
325
+ var unwrapErr = (result) => {
326
+ if (result.isErr) {
327
+ return result.value;
328
+ } else {
329
+ throw result.value;
330
+ }
331
+ };
332
+
333
+ // src/utils/serialize.ts
334
+ function deserializeProperty(value) {
335
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
336
+ return value;
337
+ }
338
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
339
+ }
340
+ function createShadowRoot(cmpMeta) {
341
+ const shadowRoot = this.attachShadow({ mode: "open" });
342
+ if (supportsConstructableStylesheets) {
343
+ const sheet = new CSSStyleSheet();
344
+ sheet.replaceSync(globalStyles);
345
+ shadowRoot.adoptedStyleSheets.push(sheet);
346
+ }
347
+ }
348
+ var getSlottedChildNodes = (childNodes) => {
349
+ const result = [];
350
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
351
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
352
+ if (slottedNode && slottedNode.isConnected) {
353
+ result.push(slottedNode);
354
+ }
355
+ }
356
+ return result;
357
+ };
358
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
359
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
360
+ return;
361
+ }
362
+ const slottedNodeLocation = document.createTextNode("");
363
+ slottedNodeLocation["s-nr"] = newChild;
364
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
365
+ const parent = slotNode["s-cr"].parentNode;
366
+ const appendMethod = internalCall(parent, "appendChild");
367
+ if (typeof position !== "undefined") {
368
+ slottedNodeLocation["s-oo"] = position;
369
+ const childNodes = internalCall(parent, "childNodes");
370
+ const slotRelocateNodes = [slottedNodeLocation];
371
+ childNodes.forEach((n) => {
372
+ if (n["s-nr"]) slotRelocateNodes.push(n);
373
+ });
374
+ slotRelocateNodes.sort((a, b) => {
375
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
376
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
377
+ return 0;
378
+ });
379
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
380
+ } else {
381
+ appendMethod.call(parent, slottedNodeLocation);
382
+ }
383
+ newChild["s-ol"] = slottedNodeLocation;
384
+ newChild["s-sh"] = slotNode["s-hn"];
385
+ };
386
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
387
+ function patchSlotNode(node) {
388
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
389
+ const assignedFactory = (elementsOnly) => (function(opts) {
390
+ const toReturn = [];
391
+ const slotName = this["s-sn"];
392
+ if (opts == null ? void 0 : opts.flatten) {
393
+ console.error(`
394
+ Flattening is not supported for Stencil non-shadow slots.
395
+ You can use \`.childNodes\` to nested slot fallback content.
396
+ If you have a particular use case, please open an issue on the Stencil repo.
397
+ `);
398
+ }
399
+ const parent = this["s-cr"].parentElement;
400
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
401
+ slottedNodes.forEach((n) => {
402
+ if (slotName === getSlotName(n)) {
403
+ toReturn.push(n);
404
+ }
405
+ });
406
+ if (elementsOnly) {
407
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
408
+ }
409
+ return toReturn;
410
+ }).bind(node);
411
+ node.assignedElements = assignedFactory(true);
412
+ node.assignedNodes = assignedFactory(false);
413
+ }
414
+ function internalCall(node, method) {
415
+ if ("__" + method in node) {
416
+ const toReturn = node["__" + method];
417
+ if (typeof toReturn !== "function") return toReturn;
418
+ return toReturn.bind(node);
419
+ } else {
420
+ if (typeof node[method] !== "function") return node[method];
421
+ return node[method].bind(node);
422
+ }
423
+ }
424
+ var createTime = (fnName, tagName = "") => {
425
+ {
426
+ return () => {
427
+ return;
428
+ };
429
+ }
430
+ };
431
+ var h = (nodeName, vnodeData, ...children) => {
432
+ let child = null;
433
+ let key = null;
434
+ let simple = false;
435
+ let lastSimple = false;
436
+ const vNodeChildren = [];
437
+ const walk = (c) => {
438
+ for (let i2 = 0; i2 < c.length; i2++) {
439
+ child = c[i2];
440
+ if (Array.isArray(child)) {
441
+ walk(child);
442
+ } else if (child != null && typeof child !== "boolean") {
443
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
444
+ child = String(child);
445
+ }
446
+ if (simple && lastSimple) {
447
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
448
+ } else {
449
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
450
+ }
451
+ lastSimple = simple;
452
+ }
453
+ }
454
+ };
455
+ walk(children);
456
+ if (vnodeData) {
457
+ if (vnodeData.key) {
458
+ key = vnodeData.key;
459
+ }
460
+ {
461
+ const classData = vnodeData.className || vnodeData.class;
462
+ if (classData) {
463
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
464
+ }
465
+ }
466
+ }
467
+ if (typeof nodeName === "function") {
468
+ return nodeName(
469
+ vnodeData === null ? {} : vnodeData,
470
+ vNodeChildren,
471
+ vdomFnUtils
472
+ );
473
+ }
474
+ const vnode = newVNode(nodeName, null);
475
+ vnode.$attrs$ = vnodeData;
476
+ if (vNodeChildren.length > 0) {
477
+ vnode.$children$ = vNodeChildren;
478
+ }
479
+ {
480
+ vnode.$key$ = key;
481
+ }
482
+ return vnode;
483
+ };
484
+ var newVNode = (tag, text) => {
485
+ const vnode = {
486
+ $flags$: 0,
487
+ $tag$: tag,
488
+ $text$: text,
489
+ $elm$: null,
490
+ $children$: null
491
+ };
492
+ {
493
+ vnode.$attrs$ = null;
494
+ }
495
+ {
496
+ vnode.$key$ = null;
497
+ }
498
+ return vnode;
499
+ };
500
+ var Host = {};
501
+ var isHost = (node) => node && node.$tag$ === Host;
502
+ var vdomFnUtils = {
503
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
504
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
505
+ };
506
+ var convertToPublic = (node) => ({
507
+ vattrs: node.$attrs$,
508
+ vchildren: node.$children$,
509
+ vkey: node.$key$,
510
+ vname: node.$name$,
511
+ vtag: node.$tag$,
512
+ vtext: node.$text$
513
+ });
514
+ var convertToPrivate = (node) => {
515
+ if (typeof node.vtag === "function") {
516
+ const vnodeData = { ...node.vattrs };
517
+ if (node.vkey) {
518
+ vnodeData.key = node.vkey;
519
+ }
520
+ if (node.vname) {
521
+ vnodeData.name = node.vname;
522
+ }
523
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
524
+ }
525
+ const vnode = newVNode(node.vtag, node.vtext);
526
+ vnode.$attrs$ = node.vattrs;
527
+ vnode.$children$ = node.vchildren;
528
+ vnode.$key$ = node.vkey;
529
+ vnode.$name$ = node.vname;
530
+ return vnode;
531
+ };
532
+
533
+ // src/runtime/client-hydrate.ts
534
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
535
+ var _a;
536
+ const endHydrate = createTime("hydrateClient", tagName);
537
+ const shadowRoot = hostElm.shadowRoot;
538
+ const childRenderNodes = [];
539
+ const slotNodes = [];
540
+ const slottedNodes = [];
541
+ const shadowRootNodes = shadowRoot ? [] : null;
542
+ const vnode = newVNode(tagName, null);
543
+ vnode.$elm$ = hostElm;
544
+ const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
545
+ members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
546
+ var _a2, _b;
547
+ if (!(memberFlags & 31 /* Prop */)) {
548
+ return;
549
+ }
550
+ const attributeName = metaAttributeName || memberName;
551
+ const attrVal = hostElm.getAttribute(attributeName);
552
+ if (attrVal !== null) {
553
+ const attrPropVal = parsePropertyValue(
554
+ attrVal,
555
+ memberFlags,
556
+ !!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
557
+ );
558
+ (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
559
+ }
560
+ });
561
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
562
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
563
+ }
564
+ hostElm[HYDRATE_ID] = hostId;
565
+ hostElm.removeAttribute(HYDRATE_ID);
566
+ hostRef.$vnode$ = clientHydrate(
567
+ vnode,
568
+ childRenderNodes,
569
+ slotNodes,
570
+ shadowRootNodes,
571
+ hostElm,
572
+ hostElm,
573
+ hostId,
574
+ slottedNodes
575
+ );
576
+ let crIndex = 0;
577
+ const crLength = childRenderNodes.length;
578
+ let childRenderNode;
579
+ for (crIndex; crIndex < crLength; crIndex++) {
580
+ childRenderNode = childRenderNodes[crIndex];
581
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
582
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
583
+ const node = childRenderNode.$elm$;
584
+ if (!shadowRoot) {
585
+ node["s-hn"] = tagName.toUpperCase();
586
+ if (childRenderNode.$tag$ === "slot") {
587
+ node["s-cr"] = hostElm["s-cr"];
588
+ }
589
+ }
590
+ if (childRenderNode.$tag$ === "slot") {
591
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
592
+ if (childRenderNode.$children$) {
593
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
594
+ if (!childRenderNode.$elm$.childNodes.length) {
595
+ childRenderNode.$children$.forEach((c) => {
596
+ childRenderNode.$elm$.appendChild(c.$elm$);
597
+ });
598
+ }
599
+ } else {
600
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
601
+ }
602
+ }
603
+ if (orgLocationNode && orgLocationNode.isConnected) {
604
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
605
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
606
+ }
607
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
608
+ if (!shadowRoot) {
609
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
610
+ }
611
+ }
612
+ plt.$orgLocNodes$.delete(orgLocationId);
613
+ }
614
+ const hosts = [];
615
+ const snLen = slottedNodes.length;
616
+ let snIndex = 0;
617
+ let slotGroup;
618
+ let snGroupIdx;
619
+ let snGroupLen;
620
+ let slottedItem;
621
+ for (snIndex; snIndex < snLen; snIndex++) {
622
+ slotGroup = slottedNodes[snIndex];
623
+ if (!slotGroup || !slotGroup.length) continue;
624
+ snGroupLen = slotGroup.length;
625
+ snGroupIdx = 0;
626
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
627
+ slottedItem = slotGroup[snGroupIdx];
628
+ if (!hosts[slottedItem.hostId]) {
629
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
630
+ }
631
+ if (!hosts[slottedItem.hostId]) continue;
632
+ const hostEle = hosts[slottedItem.hostId];
633
+ if (!hostEle.shadowRoot || !shadowRoot) {
634
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
635
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
636
+ slottedItem.slot["s-cr"] = hostEle;
637
+ } else {
638
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
639
+ }
640
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
641
+ }
642
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
643
+ hostEle.appendChild(slottedItem.node);
644
+ }
645
+ }
646
+ }
647
+ if (shadowRoot && !shadowRoot.childNodes.length) {
648
+ let rnIdex = 0;
649
+ const rnLen = shadowRootNodes.length;
650
+ if (rnLen) {
651
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
652
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
653
+ }
654
+ Array.from(hostElm.childNodes).forEach((node) => {
655
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
656
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
657
+ node.removeAttribute("hidden");
658
+ } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
659
+ node.parentNode.removeChild(node);
660
+ }
661
+ }
662
+ });
663
+ }
664
+ }
665
+ plt.$orgLocNodes$.delete(hostElm["s-id"]);
666
+ hostRef.$hostElement$ = hostElm;
667
+ endHydrate();
668
+ };
669
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
670
+ let childNodeType;
671
+ let childIdSplt;
672
+ let childVNode;
673
+ let i2;
674
+ if (node.nodeType === 1 /* ElementNode */) {
675
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
676
+ if (childNodeType) {
677
+ childIdSplt = childNodeType.split(".");
678
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
679
+ childVNode = createSimpleVNode({
680
+ $flags$: 0,
681
+ $hostId$: childIdSplt[0],
682
+ $nodeId$: childIdSplt[1],
683
+ $depth$: childIdSplt[2],
684
+ $index$: childIdSplt[3],
685
+ $tag$: node.tagName.toLowerCase(),
686
+ $elm$: node,
687
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
688
+ // won't try to reconcile them. Classes set on the node will be blown away.
689
+ $attrs$: { class: node.className || "" }
690
+ });
691
+ childRenderNodes.push(childVNode);
692
+ node.removeAttribute(HYDRATE_CHILD_ID);
693
+ if (!parentVNode.$children$) {
694
+ parentVNode.$children$ = [];
695
+ }
696
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
697
+ if (typeof slotName === "string") {
698
+ if (childVNode.$tag$ === "slot-fb") {
699
+ addSlot(
700
+ slotName,
701
+ childIdSplt[2],
702
+ childVNode,
703
+ node,
704
+ parentVNode,
705
+ childRenderNodes,
706
+ slotNodes,
707
+ shadowRootNodes,
708
+ slottedNodes
709
+ );
710
+ }
711
+ childVNode.$elm$["s-sn"] = slotName;
712
+ childVNode.$elm$.removeAttribute("s-sn");
713
+ }
714
+ if (childVNode.$index$ !== void 0) {
715
+ parentVNode.$children$[childVNode.$index$] = childVNode;
716
+ }
717
+ parentVNode = childVNode;
718
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
719
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
720
+ }
721
+ }
722
+ }
723
+ if (node.shadowRoot) {
724
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
725
+ clientHydrate(
726
+ parentVNode,
727
+ childRenderNodes,
728
+ slotNodes,
729
+ shadowRootNodes,
730
+ hostElm,
731
+ node.shadowRoot.childNodes[i2],
732
+ hostId,
733
+ slottedNodes
734
+ );
735
+ }
736
+ }
737
+ const nonShadowNodes = node.__childNodes || node.childNodes;
738
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
739
+ clientHydrate(
740
+ parentVNode,
741
+ childRenderNodes,
742
+ slotNodes,
743
+ shadowRootNodes,
744
+ hostElm,
745
+ nonShadowNodes[i2],
746
+ hostId,
747
+ slottedNodes
748
+ );
749
+ }
750
+ } else if (node.nodeType === 8 /* CommentNode */) {
751
+ childIdSplt = node.nodeValue.split(".");
752
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
753
+ childNodeType = childIdSplt[0];
754
+ childVNode = createSimpleVNode({
755
+ $hostId$: childIdSplt[1],
756
+ $nodeId$: childIdSplt[2],
757
+ $depth$: childIdSplt[3],
758
+ $index$: childIdSplt[4] || "0",
759
+ $elm$: node,
760
+ $attrs$: null,
761
+ $children$: null,
762
+ $key$: null,
763
+ $name$: null,
764
+ $tag$: null,
765
+ $text$: null
766
+ });
767
+ if (childNodeType === TEXT_NODE_ID) {
768
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
769
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
770
+ childVNode.$text$ = childVNode.$elm$.textContent;
771
+ childRenderNodes.push(childVNode);
772
+ node.remove();
773
+ if (hostId === childVNode.$hostId$) {
774
+ if (!parentVNode.$children$) {
775
+ parentVNode.$children$ = [];
776
+ }
777
+ parentVNode.$children$[childVNode.$index$] = childVNode;
778
+ }
779
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
780
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
781
+ }
782
+ }
783
+ } else if (childNodeType === COMMENT_NODE_ID) {
784
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
785
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
786
+ childRenderNodes.push(childVNode);
787
+ node.remove();
788
+ }
789
+ } else if (childVNode.$hostId$ === hostId) {
790
+ if (childNodeType === SLOT_NODE_ID) {
791
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
792
+ addSlot(
793
+ slotName,
794
+ childIdSplt[2],
795
+ childVNode,
796
+ node,
797
+ parentVNode,
798
+ childRenderNodes,
799
+ slotNodes,
800
+ shadowRootNodes,
801
+ slottedNodes
802
+ );
803
+ } else if (childNodeType === CONTENT_REF_ID) {
804
+ if (shadowRootNodes) {
805
+ node.remove();
806
+ }
807
+ }
808
+ }
809
+ }
810
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
811
+ const vnode = newVNode(null, node.textContent);
812
+ vnode.$elm$ = node;
813
+ vnode.$index$ = "0";
814
+ parentVNode.$children$ = [vnode];
815
+ } else {
816
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
817
+ node.remove();
818
+ }
819
+ }
820
+ return parentVNode;
821
+ };
822
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
823
+ if (node.nodeType === 1 /* ElementNode */) {
824
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
825
+ if (componentId) {
826
+ orgLocNodes.set(componentId, node);
827
+ }
828
+ let i2 = 0;
829
+ if (node.shadowRoot) {
830
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
831
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
832
+ }
833
+ }
834
+ const nonShadowNodes = node.__childNodes || node.childNodes;
835
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
836
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
837
+ }
838
+ } else if (node.nodeType === 8 /* CommentNode */) {
839
+ const childIdSplt = node.nodeValue.split(".");
840
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
841
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
842
+ node.nodeValue = "";
843
+ node["s-en"] = childIdSplt[3];
844
+ }
845
+ }
846
+ };
847
+ var createSimpleVNode = (vnode) => {
848
+ const defaultVNode = {
849
+ $flags$: 0,
850
+ $hostId$: null,
851
+ $nodeId$: null,
852
+ $depth$: null,
853
+ $index$: "0",
854
+ $elm$: null,
855
+ $attrs$: null,
856
+ $children$: null,
857
+ $key$: null,
858
+ $name$: null,
859
+ $tag$: null,
860
+ $text$: null
861
+ };
862
+ return { ...defaultVNode, ...vnode };
863
+ };
864
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
865
+ node["s-sr"] = true;
866
+ childVNode.$name$ = slotName || null;
867
+ childVNode.$tag$ = "slot";
868
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
869
+ if (shadowRootNodes && win.document) {
870
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
871
+ if (childVNode.$name$) {
872
+ childVNode.$elm$.setAttribute("name", slotName);
873
+ }
874
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
875
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
876
+ } else {
877
+ node.parentNode.insertBefore(slot, node);
878
+ }
879
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
880
+ node.remove();
881
+ if (childVNode.$depth$ === "0") {
882
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
883
+ }
884
+ } else {
885
+ const slot = childVNode.$elm$;
886
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
887
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
888
+ patchSlotNode(node);
889
+ if (shouldMove) {
890
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
891
+ }
892
+ }
893
+ childRenderNodes.push(childVNode);
894
+ slotNodes.push(childVNode);
895
+ if (!parentVNode.$children$) {
896
+ parentVNode.$children$ = [];
897
+ }
898
+ parentVNode.$children$[childVNode.$index$] = childVNode;
899
+ }
900
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
901
+ let slottedNode = slotNode.nextSibling;
902
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
903
+ 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 */))) {
904
+ slottedNode["s-sn"] = slotName;
905
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
906
+ slottedNode = slottedNode.nextSibling;
907
+ }
908
+ };
909
+ var findCorrespondingNode = (node, type) => {
910
+ let sibling = node;
911
+ do {
912
+ sibling = sibling.nextSibling;
913
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
914
+ return sibling;
915
+ };
916
+ var createSupportsRuleRe = (selector) => {
917
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
918
+ return new RegExp(
919
+ // First capture group: match any context before the selector that's not inside @supports selector()
920
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
921
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
922
+ "g"
923
+ );
924
+ };
925
+ createSupportsRuleRe("::slotted");
926
+ createSupportsRuleRe(":host");
927
+ createSupportsRuleRe(":host-context");
928
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
929
+ if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
930
+ try {
931
+ propValue = JSON.parse(propValue);
932
+ return propValue;
933
+ } catch (e) {
934
+ }
935
+ }
936
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
937
+ propValue = deserializeProperty(propValue);
938
+ return propValue;
939
+ }
940
+ if (propValue != null && !isComplexType(propValue)) {
941
+ if (propType & 4 /* Boolean */) {
942
+ if (isFormAssociated && typeof propValue === "string") {
943
+ return propValue === "" || !!propValue;
944
+ } else {
945
+ return propValue === "false" ? false : propValue === "" || !!propValue;
946
+ }
947
+ }
948
+ if (propType & 2 /* Number */) {
949
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
950
+ }
951
+ if (propType & 1 /* String */) {
952
+ return String(propValue);
953
+ }
954
+ return propValue;
955
+ }
956
+ return propValue;
957
+ };
958
+ var getElement = (ref) => ref;
959
+
960
+ // src/runtime/event-emitter.ts
961
+ var createEvent = (ref, name, flags) => {
962
+ const elm = getElement(ref);
963
+ return {
964
+ emit: (detail) => {
965
+ return emitEvent(elm, name, {
966
+ bubbles: !!(flags & 4 /* Bubbles */),
967
+ composed: !!(flags & 2 /* Composed */),
968
+ cancelable: !!(flags & 1 /* Cancellable */),
969
+ detail
970
+ });
971
+ }
972
+ };
973
+ };
974
+ var emitEvent = (elm, name, opts) => {
975
+ const ev = plt.ce(name, opts);
976
+ elm.dispatchEvent(ev);
977
+ return ev;
978
+ };
979
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
980
+ var registerStyle = (scopeId2, cssText, allowCS) => {
981
+ let style = styles.get(scopeId2);
982
+ if (supportsConstructableStylesheets && allowCS) {
983
+ style = style || new CSSStyleSheet();
984
+ if (typeof style === "string") {
985
+ style = cssText;
986
+ } else {
987
+ style.replaceSync(cssText);
988
+ }
989
+ } else {
990
+ style = cssText;
991
+ }
992
+ styles.set(scopeId2, style);
993
+ };
994
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
995
+ var _a;
996
+ const scopeId2 = getScopeId(cmpMeta);
997
+ const style = styles.get(scopeId2);
998
+ if (!win.document) {
999
+ return scopeId2;
1000
+ }
1001
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1002
+ if (style) {
1003
+ if (typeof style === "string") {
1004
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1005
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1006
+ let styleElm;
1007
+ if (!appliedStyles) {
1008
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1009
+ }
1010
+ if (!appliedStyles.has(scopeId2)) {
1011
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1012
+ styleElm.innerHTML = style;
1013
+ } else {
1014
+ styleElm = win.document.createElement("style");
1015
+ styleElm.innerHTML = style;
1016
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1017
+ if (nonce != null) {
1018
+ styleElm.setAttribute("nonce", nonce);
1019
+ }
1020
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1021
+ if (styleContainerNode.nodeName === "HEAD") {
1022
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1023
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1024
+ styleContainerNode.insertBefore(
1025
+ styleElm,
1026
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1027
+ );
1028
+ } else if ("host" in styleContainerNode) {
1029
+ if (supportsConstructableStylesheets) {
1030
+ const stylesheet = new CSSStyleSheet();
1031
+ stylesheet.replaceSync(style);
1032
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1033
+ } else {
1034
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1035
+ if (existingStyleContainer) {
1036
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1037
+ } else {
1038
+ styleContainerNode.prepend(styleElm);
1039
+ }
1040
+ }
1041
+ } else {
1042
+ styleContainerNode.append(styleElm);
1043
+ }
1044
+ }
1045
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1046
+ styleContainerNode.insertBefore(styleElm, null);
1047
+ }
1048
+ }
1049
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1050
+ styleElm.innerHTML += SLOT_FB_CSS;
1051
+ }
1052
+ if (appliedStyles) {
1053
+ appliedStyles.add(scopeId2);
1054
+ }
1055
+ }
1056
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1057
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1058
+ }
1059
+ }
1060
+ return scopeId2;
1061
+ };
1062
+ var attachStyles = (hostRef) => {
1063
+ const cmpMeta = hostRef.$cmpMeta$;
1064
+ const elm = hostRef.$hostElement$;
1065
+ const flags = cmpMeta.$flags$;
1066
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1067
+ const scopeId2 = addStyle(
1068
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1069
+ cmpMeta);
1070
+ if (flags & 10 /* needsScopedEncapsulation */) {
1071
+ elm["s-sc"] = scopeId2;
1072
+ elm.classList.add(scopeId2 + "-h");
1073
+ }
1074
+ endAttachStyles();
1075
+ };
1076
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1077
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1078
+ var hydrateScopedToShadow = () => {
1079
+ if (!win.document) {
1080
+ return;
1081
+ }
1082
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1083
+ let i2 = 0;
1084
+ for (; i2 < styles2.length; i2++) {
1085
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1086
+ }
1087
+ };
1088
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1089
+ if (oldValue === newValue) {
1090
+ return;
1091
+ }
1092
+ let isProp = isMemberInElement(elm, memberName);
1093
+ let ln = memberName.toLowerCase();
1094
+ if (memberName === "class") {
1095
+ const classList = elm.classList;
1096
+ const oldClasses = parseClassList(oldValue);
1097
+ let newClasses = parseClassList(newValue);
1098
+ if (elm["s-si"] && initialRender) {
1099
+ newClasses.push(elm["s-si"]);
1100
+ oldClasses.forEach((c) => {
1101
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
1102
+ });
1103
+ newClasses = [...new Set(newClasses)];
1104
+ classList.add(...newClasses);
1105
+ } else {
1106
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1107
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1108
+ }
1109
+ } else if (memberName === "style") {
1110
+ {
1111
+ for (const prop in oldValue) {
1112
+ if (!newValue || newValue[prop] == null) {
1113
+ if (prop.includes("-")) {
1114
+ elm.style.removeProperty(prop);
1115
+ } else {
1116
+ elm.style[prop] = "";
1117
+ }
1118
+ }
1119
+ }
1120
+ }
1121
+ for (const prop in newValue) {
1122
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1123
+ if (prop.includes("-")) {
1124
+ elm.style.setProperty(prop, newValue[prop]);
1125
+ } else {
1126
+ elm.style[prop] = newValue[prop];
1127
+ }
1128
+ }
1129
+ }
1130
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1131
+ if (newValue) {
1132
+ newValue(elm);
1133
+ }
1134
+ } else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
1135
+ if (memberName[2] === "-") {
1136
+ memberName = memberName.slice(3);
1137
+ } else if (isMemberInElement(win, ln)) {
1138
+ memberName = ln.slice(2);
1139
+ } else {
1140
+ memberName = ln[2] + memberName.slice(3);
1141
+ }
1142
+ if (oldValue || newValue) {
1143
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1144
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1145
+ if (oldValue) {
1146
+ plt.rel(elm, memberName, oldValue, capture);
1147
+ }
1148
+ if (newValue) {
1149
+ plt.ael(elm, memberName, newValue, capture);
1150
+ }
1151
+ }
1152
+ } else {
1153
+ const isComplex = isComplexType(newValue);
1154
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1155
+ try {
1156
+ if (!elm.tagName.includes("-")) {
1157
+ const n = newValue == null ? "" : newValue;
1158
+ if (memberName === "list") {
1159
+ isProp = false;
1160
+ } else if (oldValue == null || elm[memberName] != n) {
1161
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1162
+ elm[memberName] = n;
1163
+ } else {
1164
+ elm.setAttribute(memberName, n);
1165
+ }
1166
+ }
1167
+ } else if (elm[memberName] !== newValue) {
1168
+ elm[memberName] = newValue;
1169
+ }
1170
+ } catch (e) {
1171
+ }
1172
+ }
1173
+ let xlink = false;
1174
+ {
1175
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1176
+ memberName = ln;
1177
+ xlink = true;
1178
+ }
1179
+ }
1180
+ if (newValue == null || newValue === false) {
1181
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1182
+ if (xlink) {
1183
+ elm.removeAttributeNS(XLINK_NS, memberName);
1184
+ } else {
1185
+ elm.removeAttribute(memberName);
1186
+ }
1187
+ }
1188
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1189
+ newValue = newValue === true ? "" : newValue;
1190
+ if (xlink) {
1191
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
1192
+ } else {
1193
+ elm.setAttribute(memberName, newValue);
1194
+ }
1195
+ }
1196
+ }
1197
+ };
1198
+ var parseClassListRegex = /\s/;
1199
+ var parseClassList = (value) => {
1200
+ if (typeof value === "object" && value && "baseVal" in value) {
1201
+ value = value.baseVal;
1202
+ }
1203
+ if (!value || typeof value !== "string") {
1204
+ return [];
1205
+ }
1206
+ return value.split(parseClassListRegex);
1207
+ };
1208
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1209
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1210
+
1211
+ // src/runtime/vdom/update-element.ts
1212
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1213
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1214
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1215
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1216
+ {
1217
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1218
+ if (!(memberName in newVnodeAttrs)) {
1219
+ setAccessor(
1220
+ elm,
1221
+ memberName,
1222
+ oldVnodeAttrs[memberName],
1223
+ void 0,
1224
+ isSvgMode2,
1225
+ newVnode.$flags$,
1226
+ isInitialRender
1227
+ );
1228
+ }
1229
+ }
1230
+ }
1231
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1232
+ setAccessor(
1233
+ elm,
1234
+ memberName,
1235
+ oldVnodeAttrs[memberName],
1236
+ newVnodeAttrs[memberName],
1237
+ isSvgMode2,
1238
+ newVnode.$flags$,
1239
+ isInitialRender
1240
+ );
1241
+ }
1242
+ };
1243
+ function sortedAttrNames(attrNames) {
1244
+ return attrNames.includes("ref") ? (
1245
+ // we need to sort these to ensure that `'ref'` is the last attr
1246
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1247
+ ) : (
1248
+ // no need to sort, return the original array
1249
+ attrNames
1250
+ );
1251
+ }
1252
+ var hostTagName;
1253
+ var isSvgMode = false;
1254
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1255
+ const newVNode2 = newParentVNode.$children$[childIndex];
1256
+ let i2 = 0;
1257
+ let elm;
1258
+ let childNode;
1259
+ if (newVNode2.$text$ !== null) {
1260
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1261
+ } else {
1262
+ if (!isSvgMode) {
1263
+ isSvgMode = newVNode2.$tag$ === "svg";
1264
+ }
1265
+ if (!win.document) {
1266
+ throw new Error(
1267
+ "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."
1268
+ );
1269
+ }
1270
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1271
+ isSvgMode ? SVG_NS : HTML_NS,
1272
+ newVNode2.$tag$
1273
+ ) ;
1274
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1275
+ isSvgMode = false;
1276
+ }
1277
+ {
1278
+ updateElement(null, newVNode2, isSvgMode);
1279
+ }
1280
+ if (newVNode2.$children$) {
1281
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1282
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1283
+ if (childNode) {
1284
+ elm.appendChild(childNode);
1285
+ }
1286
+ }
1287
+ }
1288
+ {
1289
+ if (newVNode2.$tag$ === "svg") {
1290
+ isSvgMode = false;
1291
+ } else if (elm.tagName === "foreignObject") {
1292
+ isSvgMode = true;
1293
+ }
1294
+ }
1295
+ }
1296
+ elm["s-hn"] = hostTagName;
1297
+ return elm;
1298
+ };
1299
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1300
+ let containerElm = parentElm;
1301
+ let childNode;
1302
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1303
+ containerElm = containerElm.shadowRoot;
1304
+ }
1305
+ for (; startIdx <= endIdx; ++startIdx) {
1306
+ if (vnodes[startIdx]) {
1307
+ childNode = createElm(null, parentVNode, startIdx);
1308
+ if (childNode) {
1309
+ vnodes[startIdx].$elm$ = childNode;
1310
+ insertBefore(containerElm, childNode, before);
1311
+ }
1312
+ }
1313
+ }
1314
+ };
1315
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1316
+ for (let index = startIdx; index <= endIdx; ++index) {
1317
+ const vnode = vnodes[index];
1318
+ if (vnode) {
1319
+ const elm = vnode.$elm$;
1320
+ nullifyVNodeRefs(vnode);
1321
+ if (elm) {
1322
+ elm.remove();
1323
+ }
1324
+ }
1325
+ }
1326
+ };
1327
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1328
+ let oldStartIdx = 0;
1329
+ let newStartIdx = 0;
1330
+ let idxInOld = 0;
1331
+ let i2 = 0;
1332
+ let oldEndIdx = oldCh.length - 1;
1333
+ let oldStartVnode = oldCh[0];
1334
+ let oldEndVnode = oldCh[oldEndIdx];
1335
+ let newEndIdx = newCh.length - 1;
1336
+ let newStartVnode = newCh[0];
1337
+ let newEndVnode = newCh[newEndIdx];
1338
+ let node;
1339
+ let elmToMove;
1340
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1341
+ if (oldStartVnode == null) {
1342
+ oldStartVnode = oldCh[++oldStartIdx];
1343
+ } else if (oldEndVnode == null) {
1344
+ oldEndVnode = oldCh[--oldEndIdx];
1345
+ } else if (newStartVnode == null) {
1346
+ newStartVnode = newCh[++newStartIdx];
1347
+ } else if (newEndVnode == null) {
1348
+ newEndVnode = newCh[--newEndIdx];
1349
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1350
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1351
+ oldStartVnode = oldCh[++oldStartIdx];
1352
+ newStartVnode = newCh[++newStartIdx];
1353
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1354
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1355
+ oldEndVnode = oldCh[--oldEndIdx];
1356
+ newEndVnode = newCh[--newEndIdx];
1357
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1358
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1359
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1360
+ oldStartVnode = oldCh[++oldStartIdx];
1361
+ newEndVnode = newCh[--newEndIdx];
1362
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1363
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1364
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1365
+ oldEndVnode = oldCh[--oldEndIdx];
1366
+ newStartVnode = newCh[++newStartIdx];
1367
+ } else {
1368
+ idxInOld = -1;
1369
+ {
1370
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1371
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1372
+ idxInOld = i2;
1373
+ break;
1374
+ }
1375
+ }
1376
+ }
1377
+ if (idxInOld >= 0) {
1378
+ elmToMove = oldCh[idxInOld];
1379
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1380
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1381
+ } else {
1382
+ patch(elmToMove, newStartVnode, isInitialRender);
1383
+ oldCh[idxInOld] = void 0;
1384
+ node = elmToMove.$elm$;
1385
+ }
1386
+ newStartVnode = newCh[++newStartIdx];
1387
+ } else {
1388
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1389
+ newStartVnode = newCh[++newStartIdx];
1390
+ }
1391
+ if (node) {
1392
+ {
1393
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1394
+ }
1395
+ }
1396
+ }
1397
+ }
1398
+ if (oldStartIdx > oldEndIdx) {
1399
+ addVnodes(
1400
+ parentElm,
1401
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1402
+ newVNode2,
1403
+ newCh,
1404
+ newStartIdx,
1405
+ newEndIdx
1406
+ );
1407
+ } else if (newStartIdx > newEndIdx) {
1408
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1409
+ }
1410
+ };
1411
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1412
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1413
+ if (!isInitialRender) {
1414
+ return leftVNode.$key$ === rightVNode.$key$;
1415
+ }
1416
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1417
+ leftVNode.$key$ = rightVNode.$key$;
1418
+ }
1419
+ return true;
1420
+ }
1421
+ return false;
1422
+ };
1423
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1424
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1425
+ const oldChildren = oldVNode.$children$;
1426
+ const newChildren = newVNode2.$children$;
1427
+ const tag = newVNode2.$tag$;
1428
+ const text = newVNode2.$text$;
1429
+ if (text === null) {
1430
+ {
1431
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1432
+ }
1433
+ {
1434
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1435
+ }
1436
+ if (oldChildren !== null && newChildren !== null) {
1437
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1438
+ } else if (newChildren !== null) {
1439
+ if (oldVNode.$text$ !== null) {
1440
+ elm.textContent = "";
1441
+ }
1442
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1443
+ } else if (
1444
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1445
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1446
+ ) {
1447
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1448
+ }
1449
+ if (isSvgMode && tag === "svg") {
1450
+ isSvgMode = false;
1451
+ }
1452
+ } else if (oldVNode.$text$ !== text) {
1453
+ elm.data = text;
1454
+ }
1455
+ };
1456
+ var nullifyVNodeRefs = (vNode) => {
1457
+ {
1458
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1459
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1460
+ }
1461
+ };
1462
+ var insertBefore = (parent, newNode, reference) => {
1463
+ {
1464
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1465
+ }
1466
+ };
1467
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1468
+ const hostElm = hostRef.$hostElement$;
1469
+ const cmpMeta = hostRef.$cmpMeta$;
1470
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1471
+ const isHostElement = isHost(renderFnResults);
1472
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1473
+ hostTagName = hostElm.tagName;
1474
+ if (cmpMeta.$attrsToReflect$) {
1475
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1476
+ cmpMeta.$attrsToReflect$.map(
1477
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1478
+ );
1479
+ }
1480
+ if (isInitialLoad && rootVnode.$attrs$) {
1481
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1482
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1483
+ rootVnode.$attrs$[key] = hostElm[key];
1484
+ }
1485
+ }
1486
+ }
1487
+ rootVnode.$tag$ = null;
1488
+ rootVnode.$flags$ |= 4 /* isHost */;
1489
+ hostRef.$vnode$ = rootVnode;
1490
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1491
+ patch(oldVNode, rootVnode, isInitialLoad);
1492
+ };
1493
+
1494
+ // src/runtime/update-component.ts
1495
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1496
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1497
+ const index = ancestorComponent["s-p"].push(
1498
+ new Promise(
1499
+ (r) => hostRef.$onRenderResolve$ = () => {
1500
+ ancestorComponent["s-p"].splice(index - 1, 1);
1501
+ r();
1502
+ }
1503
+ )
1504
+ );
1505
+ }
1506
+ };
1507
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1508
+ {
1509
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1510
+ }
1511
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1512
+ hostRef.$flags$ |= 512 /* needsRerender */;
1513
+ return;
1514
+ }
1515
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1516
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1517
+ return writeTask(dispatch) ;
1518
+ };
1519
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1520
+ const elm = hostRef.$hostElement$;
1521
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1522
+ const instance = elm;
1523
+ if (!instance) {
1524
+ throw new Error(
1525
+ `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`
1526
+ );
1527
+ }
1528
+ let maybePromise;
1529
+ if (isInitialLoad) {
1530
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1531
+ } else {
1532
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1533
+ }
1534
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1535
+ endSchedule();
1536
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1537
+ };
1538
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1539
+ console.error(err2);
1540
+ fn();
1541
+ }) : fn();
1542
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1543
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1544
+ var _a;
1545
+ const elm = hostRef.$hostElement$;
1546
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1547
+ const rc = elm["s-rc"];
1548
+ if (isInitialLoad) {
1549
+ attachStyles(hostRef);
1550
+ }
1551
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1552
+ {
1553
+ callRender(hostRef, instance, elm, isInitialLoad);
1554
+ }
1555
+ if (rc) {
1556
+ rc.map((cb) => cb());
1557
+ elm["s-rc"] = void 0;
1558
+ }
1559
+ endRender();
1560
+ endUpdate();
1561
+ {
1562
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1563
+ const postUpdate = () => postUpdateComponent(hostRef);
1564
+ if (childrenPromises.length === 0) {
1565
+ postUpdate();
1566
+ } else {
1567
+ Promise.all(childrenPromises).then(postUpdate);
1568
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1569
+ childrenPromises.length = 0;
1570
+ }
1571
+ }
1572
+ };
1573
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1574
+ try {
1575
+ instance = instance.render() ;
1576
+ {
1577
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1578
+ }
1579
+ {
1580
+ hostRef.$flags$ |= 2 /* hasRendered */;
1581
+ }
1582
+ {
1583
+ {
1584
+ {
1585
+ renderVdom(hostRef, instance, isInitialLoad);
1586
+ }
1587
+ }
1588
+ }
1589
+ } catch (e) {
1590
+ consoleError(e, hostRef.$hostElement$);
1591
+ }
1592
+ return null;
1593
+ };
1594
+ var postUpdateComponent = (hostRef) => {
1595
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1596
+ const elm = hostRef.$hostElement$;
1597
+ const endPostUpdate = createTime("postUpdate", tagName);
1598
+ const instance = elm;
1599
+ const ancestorComponent = hostRef.$ancestorComponent$;
1600
+ safeCall(instance, "componentDidRender", void 0, elm);
1601
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1602
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1603
+ {
1604
+ addHydratedFlag(elm);
1605
+ }
1606
+ safeCall(instance, "componentDidLoad", void 0, elm);
1607
+ endPostUpdate();
1608
+ {
1609
+ hostRef.$onReadyResolve$(elm);
1610
+ if (!ancestorComponent) {
1611
+ appDidLoad();
1612
+ }
1613
+ }
1614
+ } else {
1615
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1616
+ endPostUpdate();
1617
+ }
1618
+ {
1619
+ if (hostRef.$onRenderResolve$) {
1620
+ hostRef.$onRenderResolve$();
1621
+ hostRef.$onRenderResolve$ = void 0;
1622
+ }
1623
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1624
+ nextTick(() => scheduleUpdate(hostRef, false));
1625
+ }
1626
+ hostRef.$flags$ &= -517;
1627
+ }
1628
+ };
1629
+ var forceUpdate = (ref) => {
1630
+ {
1631
+ const hostRef = getHostRef(ref);
1632
+ const isConnected = hostRef.$hostElement$.isConnected;
1633
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1634
+ scheduleUpdate(hostRef, false);
1635
+ }
1636
+ return isConnected;
1637
+ }
1638
+ };
1639
+ var appDidLoad = (who) => {
1640
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1641
+ };
1642
+ var safeCall = (instance, method, arg, elm) => {
1643
+ if (instance && instance[method]) {
1644
+ try {
1645
+ return instance[method](arg);
1646
+ } catch (e) {
1647
+ consoleError(e, elm);
1648
+ }
1649
+ }
1650
+ return void 0;
1651
+ };
1652
+ var addHydratedFlag = (elm) => {
1653
+ var _a;
1654
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1655
+ };
1656
+
1657
+ // src/runtime/set-value.ts
1658
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1659
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1660
+ const hostRef = getHostRef(ref);
1661
+ const elm = ref;
1662
+ const oldVal = hostRef.$instanceValues$.get(propName);
1663
+ const flags = hostRef.$flags$;
1664
+ const instance = elm;
1665
+ newVal = parsePropertyValue(
1666
+ newVal,
1667
+ cmpMeta.$members$[propName][0],
1668
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1669
+ );
1670
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1671
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1672
+ if (didValueChange) {
1673
+ hostRef.$instanceValues$.set(propName, newVal);
1674
+ {
1675
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1676
+ const watchMethods = cmpMeta.$watchers$[propName];
1677
+ if (watchMethods) {
1678
+ watchMethods.map((watchMethodName) => {
1679
+ try {
1680
+ instance[watchMethodName](newVal, oldVal, propName);
1681
+ } catch (e) {
1682
+ consoleError(e, elm);
1683
+ }
1684
+ });
1685
+ }
1686
+ }
1687
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1688
+ if (instance.componentShouldUpdate) {
1689
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1690
+ return;
1691
+ }
1692
+ }
1693
+ scheduleUpdate(hostRef, false);
1694
+ }
1695
+ }
1696
+ }
1697
+ };
1698
+
1699
+ // src/runtime/proxy-component.ts
1700
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1701
+ var _a, _b;
1702
+ const prototype = Cstr.prototype;
1703
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1704
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1705
+ const originalFormAssociatedCallback = prototype[cbName];
1706
+ Object.defineProperty(prototype, cbName, {
1707
+ value(...args) {
1708
+ const hostRef = getHostRef(this);
1709
+ const instance = this;
1710
+ if (!instance) {
1711
+ hostRef.$onReadyPromise$.then((asyncInstance) => {
1712
+ const cb = asyncInstance[cbName];
1713
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1714
+ });
1715
+ } else {
1716
+ const cb = originalFormAssociatedCallback;
1717
+ typeof cb === "function" && cb.call(instance, ...args);
1718
+ }
1719
+ }
1720
+ });
1721
+ });
1722
+ }
1723
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1724
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1725
+ cmpMeta.$watchers$ = Cstr.watchers;
1726
+ }
1727
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1728
+ members.map(([memberName, [memberFlags]]) => {
1729
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
1730
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1731
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1732
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1733
+ {
1734
+ Object.defineProperty(prototype, memberName, {
1735
+ get() {
1736
+ {
1737
+ return origGetter ? origGetter.apply(this) : getValue(this, memberName);
1738
+ }
1739
+ },
1740
+ configurable: true,
1741
+ enumerable: true
1742
+ });
1743
+ }
1744
+ Object.defineProperty(prototype, memberName, {
1745
+ set(newValue) {
1746
+ const ref = getHostRef(this);
1747
+ if (origSetter) {
1748
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1749
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1750
+ newValue = ref.$instanceValues$.get(memberName);
1751
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1752
+ ref.$instanceValues$.set(memberName, currentValue);
1753
+ }
1754
+ origSetter.apply(this, [
1755
+ parsePropertyValue(
1756
+ newValue,
1757
+ memberFlags,
1758
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1759
+ )
1760
+ ]);
1761
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1762
+ setValue(this, memberName, newValue, cmpMeta);
1763
+ return;
1764
+ }
1765
+ {
1766
+ setValue(this, memberName, newValue, cmpMeta);
1767
+ return;
1768
+ }
1769
+ }
1770
+ });
1771
+ }
1772
+ });
1773
+ {
1774
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1775
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1776
+ plt.jmp(() => {
1777
+ var _a2;
1778
+ const propName = attrNameToPropName.get(attrName);
1779
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ; else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1780
+ this[propName] == newValue) {
1781
+ return;
1782
+ } else if (propName == null) {
1783
+ const hostRef = getHostRef(this);
1784
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1785
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1786
+ const elm = this;
1787
+ const instance = elm;
1788
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1789
+ entry == null ? void 0 : entry.forEach((callbackName) => {
1790
+ if (instance[callbackName] != null) {
1791
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1792
+ }
1793
+ });
1794
+ }
1795
+ return;
1796
+ }
1797
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1798
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1799
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1800
+ this[propName] = newValue;
1801
+ }
1802
+ });
1803
+ };
1804
+ Cstr.observedAttributes = Array.from(
1805
+ /* @__PURE__ */ new Set([
1806
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1807
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1808
+ var _a2;
1809
+ const attrName = m[1] || propName;
1810
+ attrNameToPropName.set(attrName, propName);
1811
+ if (m[0] & 512 /* ReflectAttr */) {
1812
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1813
+ }
1814
+ return attrName;
1815
+ })
1816
+ ])
1817
+ );
1818
+ }
1819
+ }
1820
+ return Cstr;
1821
+ };
1822
+
1823
+ // src/runtime/initialize-component.ts
1824
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1825
+ let Cstr;
1826
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1827
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1828
+ {
1829
+ Cstr = elm.constructor;
1830
+ const cmpTag = elm.localName;
1831
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1832
+ }
1833
+ if (Cstr && Cstr.style) {
1834
+ let style;
1835
+ if (typeof Cstr.style === "string") {
1836
+ style = Cstr.style;
1837
+ }
1838
+ const scopeId2 = getScopeId(cmpMeta);
1839
+ if (!styles.has(scopeId2)) {
1840
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1841
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1842
+ endRegisterStyles();
1843
+ }
1844
+ }
1845
+ }
1846
+ const ancestorComponent = hostRef.$ancestorComponent$;
1847
+ const schedule = () => scheduleUpdate(hostRef, true);
1848
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1849
+ ancestorComponent["s-rc"].push(schedule);
1850
+ } else {
1851
+ schedule();
1852
+ }
1853
+ };
1854
+ var fireConnectedCallback = (instance, elm) => {
1855
+ };
1856
+
1857
+ // src/runtime/connected-callback.ts
1858
+ var connectedCallback = (elm) => {
1859
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1860
+ const hostRef = getHostRef(elm);
1861
+ const cmpMeta = hostRef.$cmpMeta$;
1862
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1863
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1864
+ hostRef.$flags$ |= 1 /* hasConnected */;
1865
+ let hostId;
1866
+ {
1867
+ hostId = elm.getAttribute(HYDRATE_ID);
1868
+ if (hostId) {
1869
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1870
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
1871
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
1872
+ }
1873
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1874
+ }
1875
+ }
1876
+ {
1877
+ let ancestorComponent = elm;
1878
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1879
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1880
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1881
+ break;
1882
+ }
1883
+ }
1884
+ }
1885
+ if (cmpMeta.$members$) {
1886
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1887
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1888
+ const value = elm[memberName];
1889
+ delete elm[memberName];
1890
+ elm[memberName] = value;
1891
+ }
1892
+ });
1893
+ }
1894
+ if (BUILD.initializeNextTick) {
1895
+ nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
1896
+ } else {
1897
+ initializeComponent(elm, hostRef, cmpMeta);
1898
+ }
1899
+ } else {
1900
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1901
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1902
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1903
+ }
1904
+ }
1905
+ endConnected();
1906
+ }
1907
+ };
1908
+ var disconnectedCallback = async (elm) => {
1909
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1910
+ const hostRef = getHostRef(elm);
1911
+ {
1912
+ if (hostRef.$rmListeners$) {
1913
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1914
+ hostRef.$rmListeners$ = void 0;
1915
+ }
1916
+ }
1917
+ }
1918
+ if (rootAppliedStyles.has(elm)) {
1919
+ rootAppliedStyles.delete(elm);
1920
+ }
1921
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1922
+ rootAppliedStyles.delete(elm.shadowRoot);
1923
+ }
1924
+ };
1925
+ var proxyCustomElement = (Cstr, compactMeta) => {
1926
+ const cmpMeta = {
1927
+ $flags$: compactMeta[0],
1928
+ $tagName$: compactMeta[1]
1929
+ };
1930
+ {
1931
+ cmpMeta.$members$ = compactMeta[2];
1932
+ }
1933
+ {
1934
+ cmpMeta.$listeners$ = compactMeta[3];
1935
+ }
1936
+ {
1937
+ cmpMeta.$watchers$ = Cstr.$watchers$;
1938
+ }
1939
+ {
1940
+ cmpMeta.$attrsToReflect$ = [];
1941
+ }
1942
+ {
1943
+ hydrateScopedToShadow();
1944
+ }
1945
+ const originalConnectedCallback = Cstr.prototype.connectedCallback;
1946
+ const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
1947
+ Object.assign(Cstr.prototype, {
1948
+ __hasHostListenerAttached: false,
1949
+ __registerHost() {
1950
+ registerHost(this, cmpMeta);
1951
+ },
1952
+ connectedCallback() {
1953
+ if (!this.__hasHostListenerAttached) {
1954
+ const hostRef = getHostRef(this);
1955
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1956
+ this.__hasHostListenerAttached = true;
1957
+ }
1958
+ connectedCallback(this);
1959
+ if (originalConnectedCallback) {
1960
+ originalConnectedCallback.call(this);
1961
+ }
1962
+ },
1963
+ disconnectedCallback() {
1964
+ disconnectedCallback(this);
1965
+ if (originalDisconnectedCallback) {
1966
+ originalDisconnectedCallback.call(this);
1967
+ }
1968
+ },
1969
+ __attachShadow() {
1970
+ {
1971
+ if (!this.shadowRoot) {
1972
+ createShadowRoot.call(this, cmpMeta);
1973
+ } else {
1974
+ if (this.shadowRoot.mode !== "open") {
1975
+ throw new Error(
1976
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
1977
+ );
1978
+ }
1979
+ }
1980
+ }
1981
+ }
1982
+ });
1983
+ Cstr.is = cmpMeta.$tagName$;
1984
+ return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
1985
+ };
1986
+
1987
+ // src/runtime/fragment.ts
1988
+ var Fragment = (_, children) => children;
1989
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1990
+ if (listeners && win.document) {
1991
+ listeners.map(([flags, name, method]) => {
1992
+ const target = getHostListenerTarget(win.document, elm, flags) ;
1993
+ const handler = hostListenerProxy(hostRef, method);
1994
+ const opts = hostListenerOpts(flags);
1995
+ plt.ael(target, name, handler, opts);
1996
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1997
+ });
1998
+ }
1999
+ };
2000
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2001
+ try {
2002
+ {
2003
+ hostRef.$hostElement$[methodName](ev);
2004
+ }
2005
+ } catch (e) {
2006
+ consoleError(e, hostRef.$hostElement$);
2007
+ }
2008
+ };
2009
+ var getHostListenerTarget = (doc, elm, flags) => {
2010
+ if (flags & 8 /* TargetWindow */) {
2011
+ return win;
2012
+ }
2013
+ return elm;
2014
+ };
2015
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2016
+ passive: (flags & 1 /* Passive */) !== 0,
2017
+ capture: (flags & 2 /* Capture */) !== 0
2018
+ } : (flags & 2 /* Capture */) !== 0;
2019
+
2020
+ // src/runtime/nonce.ts
2021
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2022
+
2023
+ // src/runtime/platform-options.ts
2024
+ var setPlatformOptions = (opts) => Object.assign(plt, opts);
2025
+
2026
+ // src/runtime/render.ts
2027
+ function render(vnode, container) {
2028
+ const cmpMeta = {
2029
+ $flags$: 0,
2030
+ $tagName$: container.tagName
2031
+ };
2032
+ const ref = {
2033
+ $cmpMeta$: cmpMeta,
2034
+ $hostElement$: container
2035
+ };
2036
+ renderVdom(ref, vnode);
2037
+ }
2038
+
2039
+ export { Fragment as F, H, setAssetPath as a, setNonce as b, setPlatformOptions as c, Host as d, createEvent as e, forceUpdate as f, getAssetPath as g, h, readTask as i, getElement as j, proxyCustomElement as p, render as r, setPlatformHelpers as s };
2040
+ //# sourceMappingURL=p-BuJ6BWIi.js.map
2041
+
2042
+ //# sourceMappingURL=p-BuJ6BWIi.js.map