@ionic/core 8.4.2-dev.11734347773.16e58dbd → 8.4.2-dev.11736265112.120bf7af

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 (1190) hide show
  1. package/components/action-sheet.js +8 -13
  2. package/components/alert.js +10 -15
  3. package/components/animation.js +1 -1
  4. package/components/backdrop.js +6 -10
  5. package/components/button.js +11 -41
  6. package/components/buttons.js +7 -11
  7. package/components/capacitor.js +1 -1
  8. package/components/checkbox.js +12 -30
  9. package/components/content.js +12 -14
  10. package/components/data.js +4 -4
  11. package/components/focus-visible.js +1 -8
  12. package/components/framework-delegate.js +1 -3
  13. package/components/hardware-back-button.js +115 -0
  14. package/components/header.js +15 -24
  15. package/components/helpers.js +1 -4
  16. package/components/index2.js +2 -2
  17. package/components/index4.js +9 -8
  18. package/components/index5.js +3 -27
  19. package/components/index6.js +20 -114
  20. package/components/index7.js +27 -163
  21. package/components/index8.js +128 -0
  22. package/{dist/esm/index-62b4a18b.js → components/index9.js} +2 -4
  23. package/components/input-shims.js +2 -2
  24. package/components/input.utils.js +2 -1
  25. package/components/ion-accordion-group.js +6 -25
  26. package/components/ion-accordion.js +17 -36
  27. package/components/ion-app.js +77 -9
  28. package/components/ion-avatar.js +3 -52
  29. package/components/ion-back-button.js +19 -29
  30. package/components/ion-badge.js +8 -44
  31. package/components/ion-breadcrumb.js +11 -45
  32. package/components/ion-breadcrumbs.js +5 -9
  33. package/components/ion-card-content.js +7 -11
  34. package/components/ion-card-header.js +5 -9
  35. package/components/ion-card-subtitle.js +5 -9
  36. package/components/ion-card-title.js +5 -9
  37. package/components/ion-card.js +9 -17
  38. package/components/ion-chip.js +8 -45
  39. package/components/ion-col.js +5 -5
  40. package/components/ion-datetime-button.js +6 -9
  41. package/components/ion-datetime.js +21 -99
  42. package/components/ion-fab-button.js +10 -33
  43. package/components/ion-fab-list.js +5 -5
  44. package/components/ion-fab.js +6 -6
  45. package/components/ion-footer.js +12 -18
  46. package/components/ion-grid.js +5 -5
  47. package/components/ion-img.js +2 -5
  48. package/components/ion-infinite-scroll-content.js +8 -13
  49. package/components/ion-infinite-scroll.js +5 -5
  50. package/components/ion-input-password-toggle.js +14 -53
  51. package/components/ion-input.js +20 -118
  52. package/components/ion-item-divider.js +5 -9
  53. package/components/ion-item-group.js +5 -9
  54. package/components/ion-item-option.js +8 -28
  55. package/components/ion-item-options.js +5 -9
  56. package/components/ion-item-sliding.js +5 -5
  57. package/components/ion-loading.js +8 -13
  58. package/components/ion-menu-button.js +10 -28
  59. package/components/ion-menu-toggle.js +5 -5
  60. package/components/ion-menu.js +8 -12
  61. package/components/ion-nav-link.js +1 -1
  62. package/components/ion-nav.js +6 -8
  63. package/components/ion-note.js +5 -9
  64. package/components/ion-picker-legacy.js +8 -7
  65. package/components/ion-progress-bar.js +6 -11
  66. package/components/ion-range.js +10 -13
  67. package/components/ion-refresher-content.js +9 -28
  68. package/components/ion-refresher.js +7 -11
  69. package/components/ion-reorder-group.js +5 -5
  70. package/components/ion-reorder.js +5 -31
  71. package/components/ion-router-link.js +6 -6
  72. package/components/ion-router-outlet.js +3 -4
  73. package/components/ion-row.js +2 -5
  74. package/components/ion-searchbar.js +16 -93
  75. package/components/ion-segment-button.js +7 -11
  76. package/components/ion-segment-content.js +1 -1
  77. package/components/ion-segment-view.js +2 -6
  78. package/components/ion-segment.js +8 -11
  79. package/components/ion-select-option.js +2 -5
  80. package/components/ion-select.js +31 -118
  81. package/components/ion-skeleton-text.js +5 -6
  82. package/components/ion-split-pane.js +8 -12
  83. package/components/ion-tab-bar.js +8 -31
  84. package/components/ion-tab-button.js +7 -28
  85. package/components/ion-tab.js +2 -2
  86. package/components/ion-tabs.js +2 -2
  87. package/components/ion-text.js +5 -5
  88. package/components/ion-textarea.js +11 -38
  89. package/components/ion-thumbnail.js +2 -5
  90. package/components/ion-toast.js +11 -30
  91. package/components/ion-toggle.js +18 -77
  92. package/components/ionic-global.js +84 -374
  93. package/components/ios.transition.js +0 -1
  94. package/components/item.js +11 -41
  95. package/components/keyboard-controller.js +2 -4
  96. package/components/label.js +5 -9
  97. package/components/list-header.js +5 -9
  98. package/components/list.js +6 -29
  99. package/components/modal.js +21 -51
  100. package/components/notch-controller.js +1 -1
  101. package/components/overlays.js +5 -4
  102. package/components/picker-column-option.js +5 -9
  103. package/components/picker-column.js +8 -7
  104. package/components/picker-column2.js +4 -4
  105. package/components/picker.js +4 -8
  106. package/components/popover.js +8 -11
  107. package/components/radio-group.js +3 -5
  108. package/components/radio.js +8 -12
  109. package/components/ripple-effect.js +8 -18
  110. package/components/select-modal.js +3 -3
  111. package/components/select-popover.js +2 -9
  112. package/components/spinner.js +9 -36
  113. package/components/status-tap.js +1 -1
  114. package/components/title.js +7 -11
  115. package/components/toolbar.js +7 -11
  116. package/css/core.css +1 -1
  117. package/css/core.css.map +1 -1
  118. package/css/display.css +1 -1
  119. package/css/display.css.map +1 -1
  120. package/css/flex-utils.css.map +1 -1
  121. package/css/float-elements.css.map +1 -1
  122. package/css/global.bundle.css.map +1 -1
  123. package/css/ionic-swiper.css +1 -1
  124. package/css/ionic-swiper.css.map +1 -1
  125. package/css/ionic.bundle.css +1 -1
  126. package/css/ionic.bundle.css.map +1 -1
  127. package/css/normalize.css.map +1 -1
  128. package/css/padding.css.map +1 -1
  129. package/css/palettes/dark.always.css.map +1 -1
  130. package/css/palettes/dark.class.css.map +1 -1
  131. package/css/palettes/dark.system.css.map +1 -1
  132. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  133. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  134. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  135. package/css/palettes/high-contrast.always.css.map +1 -1
  136. package/css/palettes/high-contrast.class.css.map +1 -1
  137. package/css/palettes/high-contrast.system.css.map +1 -1
  138. package/css/structure.css.map +1 -1
  139. package/css/text-alignment.css.map +1 -1
  140. package/css/text-transformation.css.map +1 -1
  141. package/css/typography.css.map +1 -1
  142. package/css/utils.bundle.css +1 -1
  143. package/css/utils.bundle.css.map +1 -1
  144. package/dist/cjs/{animation-58015a44.js → animation-b4fdf128.js} +2 -2
  145. package/dist/cjs/{app-globals-d64148d3.js → app-globals-16893c1e.js} +1 -1
  146. package/dist/cjs/{button-active-ec1fd1d8.js → button-active-ec3d9ca2.js} +2 -2
  147. package/dist/cjs/{capacitor-454dd071.js → capacitor-c04564bf.js} +3 -3
  148. package/dist/cjs/{data-b726dbee.js → data-21dc0f81.js} +6 -6
  149. package/dist/{esm/focus-visible-501aff19.js → cjs/focus-visible-7a0ce04f.js} +3 -8
  150. package/dist/cjs/{framework-delegate-32f1a0e4.js → framework-delegate-55f5683a.js} +2 -4
  151. package/dist/cjs/{haptic-7c25be74.js → haptic-f6b37aa3.js} +1 -1
  152. package/dist/cjs/hardware-back-button-5a19da86.js +122 -0
  153. package/dist/cjs/{helpers-4e2936d2.js → helpers-afaa9001.js} +1 -4
  154. package/dist/cjs/{index-8f975cf4.js → index-29ad8b24.js} +12 -12
  155. package/dist/cjs/{index-03fbee1d.js → index-2b28acc8.js} +15 -14
  156. package/dist/cjs/{index-73f75efb.js → index-55b6245a.js} +1117 -744
  157. package/dist/cjs/index-5915f9b3.js +38 -0
  158. package/dist/cjs/{index-604c36ae.js → index-5b6a7459.js} +3 -3
  159. package/dist/cjs/{index-0e0c6196.js → index-9509ecad.js} +7 -9
  160. package/dist/cjs/index-c8d52405.js +10 -0
  161. package/dist/cjs/index.cjs.js +13 -11
  162. package/dist/cjs/{input-shims-4b4d2251.js → input-shims-9e59ef62.js} +17 -18
  163. package/dist/cjs/{input.utils-fb1debe4.js → input.utils-611cde0b.js} +5 -4
  164. package/dist/cjs/ion-accordion_2.cjs.entry.js +25 -62
  165. package/dist/cjs/ion-action-sheet.cjs.entry.js +19 -22
  166. package/dist/cjs/ion-alert.cjs.entry.js +24 -26
  167. package/dist/cjs/ion-app_8.cjs.entry.js +153 -109
  168. package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -94
  169. package/dist/cjs/ion-back-button.cjs.entry.js +22 -32
  170. package/dist/cjs/ion-backdrop.cjs.entry.js +7 -12
  171. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +16 -54
  172. package/dist/cjs/ion-button_2.cjs.entry.js +16 -47
  173. package/dist/cjs/ion-card_5.cjs.entry.js +29 -53
  174. package/dist/cjs/ion-checkbox.cjs.entry.js +14 -31
  175. package/dist/cjs/ion-chip.cjs.entry.js +8 -44
  176. package/dist/cjs/ion-col_3.cjs.entry.js +11 -15
  177. package/dist/cjs/ion-datetime-button.cjs.entry.js +13 -17
  178. package/dist/cjs/ion-datetime_3.cjs.entry.js +115 -191
  179. package/dist/cjs/ion-fab_3.cjs.entry.js +20 -43
  180. package/dist/cjs/ion-img.cjs.entry.js +4 -8
  181. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +18 -22
  182. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +17 -56
  183. package/dist/cjs/ion-input.cjs.entry.js +24 -119
  184. package/dist/cjs/ion-item-option_3.cjs.entry.js +18 -41
  185. package/dist/cjs/ion-item_8.cjs.entry.js +42 -114
  186. package/dist/cjs/ion-loading.cjs.entry.js +19 -21
  187. package/dist/cjs/ion-menu_3.cjs.entry.js +30 -49
  188. package/dist/cjs/ion-modal.cjs.entry.js +67 -95
  189. package/dist/cjs/ion-nav_2.cjs.entry.js +14 -16
  190. package/dist/cjs/ion-picker-column-option.cjs.entry.js +7 -12
  191. package/dist/cjs/ion-picker-column.cjs.entry.js +13 -13
  192. package/dist/cjs/ion-picker.cjs.entry.js +6 -11
  193. package/dist/cjs/ion-popover.cjs.entry.js +19 -21
  194. package/dist/cjs/ion-progress-bar.cjs.entry.js +9 -14
  195. package/dist/cjs/ion-radio_2.cjs.entry.js +12 -19
  196. package/dist/cjs/ion-range.cjs.entry.js +17 -21
  197. package/dist/cjs/ion-refresher_2.cjs.entry.js +24 -45
  198. package/dist/cjs/ion-reorder_2.cjs.entry.js +14 -38
  199. package/dist/cjs/ion-ripple-effect.cjs.entry.js +8 -19
  200. package/dist/cjs/ion-route_4.cjs.entry.js +8 -9
  201. package/dist/cjs/ion-searchbar.cjs.entry.js +18 -95
  202. package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
  203. package/dist/cjs/ion-segment-view.cjs.entry.js +3 -7
  204. package/dist/cjs/ion-segment_2.cjs.entry.js +16 -24
  205. package/dist/cjs/ion-select-modal.cjs.entry.js +11 -9
  206. package/dist/cjs/ion-select_3.cjs.entry.js +40 -133
  207. package/dist/cjs/ion-spinner.cjs.entry.js +10 -36
  208. package/dist/cjs/ion-split-pane.cjs.entry.js +9 -14
  209. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +21 -61
  210. package/dist/cjs/ion-tab_2.cjs.entry.js +7 -8
  211. package/dist/cjs/ion-text.cjs.entry.js +6 -7
  212. package/dist/cjs/ion-textarea.cjs.entry.js +17 -42
  213. package/dist/cjs/ion-toast.cjs.entry.js +42 -59
  214. package/dist/cjs/ion-toggle.cjs.entry.js +23 -81
  215. package/dist/cjs/ionic-global-aa46b97c.js +237 -0
  216. package/dist/cjs/ionic.cjs.js +5 -6
  217. package/dist/cjs/{ios.transition-2bb0f7d5.js → ios.transition-9820d3dc.js} +7 -7
  218. package/dist/cjs/{keyboard-53c12a15.js → keyboard-0272231f.js} +1 -1
  219. package/dist/cjs/{keyboard-0a5d46dd.js → keyboard-af1bb365.js} +3 -5
  220. package/dist/cjs/{keyboard-controller-102bad3e.js → keyboard-controller-c05e747a.js} +9 -11
  221. package/dist/cjs/loader.cjs.js +4 -5
  222. package/dist/cjs/{md.transition-cf600117.js → md.transition-a35e0839.js} +7 -6
  223. package/dist/cjs/{notch-controller-ea70e230.js → notch-controller-d69150f5.js} +4 -4
  224. package/dist/cjs/{overlays-542a90b3.js → overlays-43ae7e1d.js} +20 -19
  225. package/dist/cjs/{status-tap-aa97d209.js → status-tap-f98e43a0.js} +4 -5
  226. package/dist/cjs/{swipe-back-27975274.js → swipe-back-0303a5e4.js} +1 -2
  227. package/dist/collection/collection-manifest.json +2 -2
  228. package/dist/collection/components/accordion/accordion.ios.css +58 -73
  229. package/dist/collection/components/accordion/accordion.js +31 -37
  230. package/dist/collection/components/accordion/accordion.md.css +59 -67
  231. package/dist/collection/components/accordion-group/accordion-group.ios.css +4 -16
  232. package/dist/collection/components/accordion-group/accordion-group.js +20 -43
  233. package/dist/collection/components/accordion-group/accordion-group.md.css +4 -22
  234. package/dist/collection/components/action-sheet/action-sheet.ios.css +6 -18
  235. package/dist/collection/components/action-sheet/action-sheet.js +46 -18
  236. package/dist/collection/components/action-sheet/action-sheet.md.css +5 -17
  237. package/dist/collection/components/alert/alert.ios.css +1 -19
  238. package/dist/collection/components/alert/alert.js +52 -19
  239. package/dist/collection/components/alert/alert.md.css +1 -19
  240. package/dist/collection/components/app/app.js +78 -12
  241. package/dist/collection/components/avatar/avatar.ios.css +0 -12
  242. package/dist/collection/components/avatar/avatar.js +4 -92
  243. package/dist/collection/components/avatar/avatar.md.css +0 -12
  244. package/dist/collection/components/back-button/back-button.ios.css +48 -60
  245. package/dist/collection/components/back-button/back-button.js +34 -28
  246. package/dist/collection/components/back-button/back-button.md.css +48 -60
  247. package/dist/collection/components/backdrop/backdrop.ios.css +1 -13
  248. package/dist/collection/components/backdrop/backdrop.js +12 -12
  249. package/dist/collection/components/backdrop/backdrop.md.css +1 -13
  250. package/dist/collection/components/badge/badge.ios.css +3 -106
  251. package/dist/collection/components/badge/badge.js +10 -75
  252. package/dist/collection/components/badge/badge.md.css +3 -106
  253. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +8 -20
  254. package/dist/collection/components/breadcrumb/breadcrumb.js +38 -44
  255. package/dist/collection/components/breadcrumb/breadcrumb.md.css +8 -20
  256. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -6
  257. package/dist/collection/components/breadcrumbs/breadcrumbs.js +17 -11
  258. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -6
  259. package/dist/collection/components/button/button.ios.css +36 -129
  260. package/dist/collection/components/button/button.js +49 -47
  261. package/dist/collection/components/button/button.md.css +40 -120
  262. package/dist/collection/components/buttons/buttons.ios.css +7 -59
  263. package/dist/collection/components/buttons/buttons.js +10 -14
  264. package/dist/collection/components/buttons/buttons.md.css +3 -55
  265. package/dist/collection/components/card/card.ios.css +14 -65
  266. package/dist/collection/components/card/card.js +30 -34
  267. package/dist/collection/components/card/card.md.css +14 -65
  268. package/dist/collection/components/card-content/card-content.ios.css +1 -16
  269. package/dist/collection/components/card-content/card-content.js +8 -11
  270. package/dist/collection/components/card-content/card-content.md.css +1 -16
  271. package/dist/collection/components/card-header/card-header.ios.css +15 -27
  272. package/dist/collection/components/card-header/card-header.js +13 -12
  273. package/dist/collection/components/card-header/card-header.md.css +15 -27
  274. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -12
  275. package/dist/collection/components/card-subtitle/card-subtitle.js +10 -11
  276. package/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -12
  277. package/dist/collection/components/card-title/card-title.ios.css +0 -73
  278. package/dist/collection/components/card-title/card-title.js +10 -11
  279. package/dist/collection/components/card-title/card-title.md.css +0 -73
  280. package/dist/collection/components/checkbox/checkbox.ios.css +2 -20
  281. package/dist/collection/components/checkbox/checkbox.js +32 -64
  282. package/dist/collection/components/checkbox/checkbox.md.css +3 -21
  283. package/dist/collection/components/chip/chip.ios.css +1 -20
  284. package/dist/collection/components/chip/chip.js +14 -77
  285. package/dist/collection/components/chip/chip.md.css +1 -20
  286. package/dist/collection/components/col/col.css +0 -12
  287. package/dist/collection/components/col/col.js +53 -9
  288. package/dist/collection/components/content/content.css +2 -8
  289. package/dist/collection/components/content/content.js +25 -16
  290. package/dist/collection/components/datetime/datetime.ios.css +86 -237
  291. package/dist/collection/components/datetime/datetime.js +84 -102
  292. package/dist/collection/components/datetime/datetime.md.css +86 -237
  293. package/dist/collection/components/datetime/utils/data.js +3 -3
  294. package/dist/collection/components/datetime-button/datetime-button.ios.css +0 -6
  295. package/dist/collection/components/datetime-button/datetime-button.js +14 -11
  296. package/dist/collection/components/datetime-button/datetime-button.md.css +0 -6
  297. package/dist/collection/components/fab/fab.css +1 -25
  298. package/dist/collection/components/fab/fab.js +13 -9
  299. package/dist/collection/components/fab-button/fab-button.ios.css +6 -18
  300. package/dist/collection/components/fab-button/fab-button.js +44 -37
  301. package/dist/collection/components/fab-button/fab-button.md.css +8 -20
  302. package/dist/collection/components/fab-list/fab-list.css +0 -12
  303. package/dist/collection/components/fab-list/fab-list.js +9 -9
  304. package/dist/collection/components/footer/footer.ios.css +2 -14
  305. package/dist/collection/components/footer/footer.js +19 -20
  306. package/dist/collection/components/footer/footer.md.css +0 -12
  307. package/dist/collection/components/grid/grid.css +0 -12
  308. package/dist/collection/components/grid/grid.js +7 -9
  309. package/dist/collection/components/header/header.ios.css +10 -25
  310. package/dist/collection/components/header/header.js +21 -42
  311. package/dist/collection/components/header/header.md.css +8 -23
  312. package/dist/collection/components/img/img.js +6 -8
  313. package/dist/collection/components/infinite-scroll/infinite-scroll.js +10 -8
  314. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -12
  315. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +14 -16
  316. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -12
  317. package/dist/collection/components/input/input.ios.css +2 -21
  318. package/dist/collection/components/input/input.js +99 -145
  319. package/dist/collection/components/input/input.md.css +4 -43
  320. package/dist/collection/components/input-password-toggle/input-password-toggle.js +20 -48
  321. package/dist/collection/components/item/item.ios.css +69 -109
  322. package/dist/collection/components/item/item.js +43 -45
  323. package/dist/collection/components/item/item.md.css +68 -120
  324. package/dist/collection/components/item-divider/item-divider.ios.css +0 -18
  325. package/dist/collection/components/item-divider/item-divider.js +12 -11
  326. package/dist/collection/components/item-divider/item-divider.md.css +0 -18
  327. package/dist/collection/components/item-group/item-group.ios.css +0 -12
  328. package/dist/collection/components/item-group/item-group.js +7 -13
  329. package/dist/collection/components/item-group/item-group.md.css +0 -12
  330. package/dist/collection/components/item-option/item-option.ios.css +2 -14
  331. package/dist/collection/components/item-option/item-option.js +24 -43
  332. package/dist/collection/components/item-option/item-option.md.css +2 -14
  333. package/dist/collection/components/item-options/item-options.ios.css +0 -18
  334. package/dist/collection/components/item-options/item-options.js +9 -13
  335. package/dist/collection/components/item-options/item-options.md.css +0 -18
  336. package/dist/collection/components/item-sliding/item-sliding.css +0 -6
  337. package/dist/collection/components/item-sliding/item-sliding.js +6 -8
  338. package/dist/collection/components/label/label.ios.css +0 -18
  339. package/dist/collection/components/label/label.js +12 -11
  340. package/dist/collection/components/label/label.md.css +0 -18
  341. package/dist/collection/components/list/list.ios.css +0 -18
  342. package/dist/collection/components/list/list.js +13 -47
  343. package/dist/collection/components/list/list.md.css +2 -20
  344. package/dist/collection/components/list-header/list-header.ios.css +0 -18
  345. package/dist/collection/components/list-header/list-header.js +12 -11
  346. package/dist/collection/components/list-header/list-header.md.css +0 -18
  347. package/dist/collection/components/loading/loading.ios.css +1 -13
  348. package/dist/collection/components/loading/loading.js +48 -17
  349. package/dist/collection/components/loading/loading.md.css +1 -13
  350. package/dist/collection/components/menu/menu.ios.css +3 -15
  351. package/dist/collection/components/menu/menu.js +21 -12
  352. package/dist/collection/components/menu/menu.md.css +3 -15
  353. package/dist/collection/components/menu-button/menu-button.ios.css +14 -48
  354. package/dist/collection/components/menu-button/menu-button.js +20 -26
  355. package/dist/collection/components/menu-button/menu-button.md.css +15 -49
  356. package/dist/collection/components/menu-toggle/menu-toggle.js +9 -8
  357. package/dist/collection/components/modal/animations/sheet.js +2 -8
  358. package/dist/collection/components/modal/gestures/sheet.js +6 -10
  359. package/dist/collection/components/modal/modal.ios.css +63 -106
  360. package/dist/collection/components/modal/modal.js +66 -54
  361. package/dist/collection/components/modal/modal.md.css +63 -106
  362. package/dist/collection/components/nav/nav.css +1 -7
  363. package/dist/collection/components/nav/nav.js +20 -14
  364. package/dist/collection/components/nav-link/nav-link.js +11 -7
  365. package/dist/collection/components/note/note.ios.css +0 -12
  366. package/dist/collection/components/note/note.js +10 -11
  367. package/dist/collection/components/note/note.md.css +0 -12
  368. package/dist/collection/components/picker/picker.ios.css +3 -15
  369. package/dist/collection/components/picker/picker.js +5 -8
  370. package/dist/collection/components/picker/picker.md.css +3 -15
  371. package/dist/collection/components/picker-column/picker-column.css +2 -9
  372. package/dist/collection/components/picker-column/picker-column.js +15 -8
  373. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +0 -6
  374. package/dist/collection/components/picker-column-option/picker-column-option.js +13 -13
  375. package/dist/collection/components/picker-column-option/picker-column-option.md.css +0 -6
  376. package/dist/collection/components/picker-legacy/picker.ios.css +1 -13
  377. package/dist/collection/components/picker-legacy/picker.js +42 -11
  378. package/dist/collection/components/picker-legacy/picker.md.css +1 -13
  379. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -12
  380. package/dist/collection/components/picker-legacy-column/picker-column.js +7 -5
  381. package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -12
  382. package/dist/collection/components/popover/popover.ios.css +1 -13
  383. package/dist/collection/components/popover/popover.js +71 -20
  384. package/dist/collection/components/popover/popover.md.css +1 -13
  385. package/dist/collection/components/progress-bar/progress-bar.ios.css +2 -8
  386. package/dist/collection/components/progress-bar/progress-bar.js +17 -10
  387. package/dist/collection/components/progress-bar/progress-bar.md.css +2 -8
  388. package/dist/collection/components/radio/radio.ios.css +91 -134
  389. package/dist/collection/components/radio/radio.js +23 -12
  390. package/dist/collection/components/radio/radio.md.css +91 -134
  391. package/dist/collection/components/radio-group/radio-group.js +11 -9
  392. package/dist/collection/components/range/range.ios.css +85 -128
  393. package/dist/collection/components/range/range.js +41 -12
  394. package/dist/collection/components/range/range.md.css +85 -128
  395. package/dist/collection/components/refresher/refresher.ios.css +1 -14
  396. package/dist/collection/components/refresher/refresher.js +20 -11
  397. package/dist/collection/components/refresher/refresher.md.css +2 -15
  398. package/dist/collection/components/refresher-content/refresher-content.js +15 -28
  399. package/dist/collection/components/reorder/reorder.ios.css +0 -6
  400. package/dist/collection/components/reorder/reorder.js +6 -33
  401. package/dist/collection/components/reorder/reorder.md.css +0 -6
  402. package/dist/collection/components/reorder-group/reorder-group.css +0 -6
  403. package/dist/collection/components/reorder-group/reorder-group.js +6 -8
  404. package/dist/collection/components/ripple-effect/{ripple-effect.common.css → ripple-effect.css} +1 -7
  405. package/dist/collection/components/ripple-effect/ripple-effect.js +8 -14
  406. package/dist/collection/components/route/route.js +13 -7
  407. package/dist/collection/components/route-redirect/route-redirect.js +4 -0
  408. package/dist/collection/components/router/router.js +4 -4
  409. package/dist/collection/components/router-link/router-link.css +2 -8
  410. package/dist/collection/components/router-link/router-link.js +18 -10
  411. package/dist/collection/components/router-outlet/router-outlet.css +1 -7
  412. package/dist/collection/components/router-outlet/router-outlet.js +15 -8
  413. package/dist/collection/components/row/row.css +0 -12
  414. package/dist/collection/components/row/row.js +2 -9
  415. package/dist/collection/components/searchbar/searchbar.ios.css +18 -56
  416. package/dist/collection/components/searchbar/searchbar.js +69 -97
  417. package/dist/collection/components/searchbar/searchbar.md.css +18 -56
  418. package/dist/collection/components/segment/segment.ios.css +2 -45
  419. package/dist/collection/components/segment/segment.js +21 -11
  420. package/dist/collection/components/segment/segment.md.css +2 -45
  421. package/dist/collection/components/segment-button/segment-button.ios.css +105 -146
  422. package/dist/collection/components/segment-button/segment-button.js +18 -11
  423. package/dist/collection/components/segment-button/segment-button.md.css +107 -148
  424. package/dist/collection/components/segment-content/segment-content.js +1 -1
  425. package/dist/collection/components/segment-view/segment-view.ios.css +0 -6
  426. package/dist/collection/components/segment-view/segment-view.js +6 -6
  427. package/dist/collection/components/segment-view/segment-view.md.css +0 -6
  428. package/dist/collection/components/select/select.ios.css +102 -168
  429. package/dist/collection/components/select/select.js +75 -139
  430. package/dist/collection/components/select/select.md.css +206 -164
  431. package/dist/collection/components/select-modal/select-modal.js +9 -3
  432. package/dist/collection/components/select-modal/select-modal.md.css +3 -7
  433. package/dist/collection/components/select-option/select-option.js +6 -9
  434. package/dist/collection/components/select-popover/select-popover.ios.css +0 -18
  435. package/dist/collection/components/select-popover/select-popover.js +14 -12
  436. package/dist/collection/components/select-popover/select-popover.md.css +0 -18
  437. package/dist/collection/components/skeleton-text/skeleton-text.css +0 -6
  438. package/dist/collection/components/skeleton-text/skeleton-text.js +7 -9
  439. package/dist/collection/components/spinner/{spinner.ionic.css → spinner.css} +0 -63
  440. package/dist/collection/components/spinner/spinner.js +14 -46
  441. package/dist/collection/components/split-pane/split-pane.ios.css +2 -20
  442. package/dist/collection/components/split-pane/split-pane.js +14 -14
  443. package/dist/collection/components/split-pane/split-pane.md.css +2 -20
  444. package/dist/collection/components/tab/tab.js +11 -7
  445. package/dist/collection/components/tab-bar/tab-bar.ios.css +43 -71
  446. package/dist/collection/components/tab-bar/tab-bar.js +16 -65
  447. package/dist/collection/components/tab-bar/tab-bar.md.css +43 -71
  448. package/dist/collection/components/tab-button/tab-button.ios.css +88 -103
  449. package/dist/collection/components/tab-button/tab-button.js +24 -43
  450. package/dist/collection/components/tab-button/tab-button.md.css +88 -103
  451. package/dist/collection/components/tabs/tabs.css +1 -7
  452. package/dist/collection/components/tabs/tabs.js +3 -4
  453. package/dist/collection/components/text/text.css +0 -6
  454. package/dist/collection/components/text/text.js +8 -7
  455. package/dist/collection/components/textarea/textarea.ios.css +96 -201
  456. package/dist/collection/components/textarea/textarea.js +73 -60
  457. package/dist/collection/components/textarea/textarea.md.css +97 -214
  458. package/dist/collection/components/thumbnail/thumbnail.css +0 -6
  459. package/dist/collection/components/thumbnail/thumbnail.js +2 -9
  460. package/dist/collection/components/title/title.ios.css +4 -32
  461. package/dist/collection/components/title/title.js +11 -13
  462. package/dist/collection/components/title/title.md.css +4 -32
  463. package/dist/collection/components/toast/animations/utils.js +1 -1
  464. package/dist/collection/components/toast/toast.ios.css +35 -74
  465. package/dist/collection/components/toast/toast.js +59 -50
  466. package/dist/collection/components/toast/toast.md.css +35 -74
  467. package/dist/collection/components/toggle/toggle.ios.css +120 -166
  468. package/dist/collection/components/toggle/toggle.js +36 -73
  469. package/dist/collection/components/toggle/toggle.md.css +120 -163
  470. package/dist/collection/components/toolbar/toolbar.ios.css +47 -90
  471. package/dist/collection/components/toolbar/toolbar.js +12 -13
  472. package/dist/collection/components/toolbar/toolbar.md.css +47 -90
  473. package/dist/collection/global/ionic-global.js +13 -229
  474. package/dist/collection/utils/focus-visible.js +0 -7
  475. package/dist/collection/utils/framework-delegate.js +1 -3
  476. package/dist/collection/utils/helpers.js +1 -3
  477. package/dist/collection/utils/keyboard/keyboard-controller.js +1 -3
  478. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  479. package/dist/collection/utils/menu-controller/animations/push.js +1 -2
  480. package/dist/collection/utils/menu-controller/animations/reveal.js +1 -2
  481. package/dist/collection/utils/overlays.js +1 -2
  482. package/dist/collection/utils/test/playwright/generator.js +23 -48
  483. package/dist/collection/utils/test/playwright/page/utils/goto.js +5 -14
  484. package/dist/collection/utils/test/playwright/page/utils/set-content.js +2 -16
  485. package/dist/collection/utils/transition/ios.transition.js +0 -1
  486. package/dist/docs.d.ts +8 -0
  487. package/dist/docs.json +2219 -7864
  488. package/dist/esm/{animation-f1a88600.js → animation-eab5a4ca.js} +1 -1
  489. package/dist/esm/{app-globals-eceadabb.js → app-globals-32740a0d.js} +1 -1
  490. package/dist/esm/{button-active-321f0dba.js → button-active-0e590bc4.js} +2 -2
  491. package/dist/esm/{capacitor-6b0341c8.js → capacitor-59395cbd.js} +1 -1
  492. package/dist/esm/{data-a753c96a.js → data-ae11fd43.js} +4 -4
  493. package/dist/{cjs/focus-visible-9aa87fa3.js → esm/focus-visible-dd40d69f.js} +1 -11
  494. package/dist/esm/{framework-delegate-3e4a8c9f.js → framework-delegate-63d1a679.js} +2 -4
  495. package/dist/esm/{haptic-dd6c0ea9.js → haptic-ac164e4c.js} +1 -1
  496. package/dist/esm/hardware-back-button-18d38325.js +116 -0
  497. package/dist/esm/{helpers-f08d15bd.js → helpers-da915de8.js} +1 -4
  498. package/dist/esm/{index-723c0e5d.js → index-0f61352c.js} +1118 -745
  499. package/dist/esm/{index-59f81cb8.js → index-4f0570f4.js} +6 -6
  500. package/dist/esm/{index-7bd160c2.js → index-5cc724f3.js} +2 -2
  501. package/dist/esm/index-79b30591.js +167 -0
  502. package/dist/esm/{index-31109e63.js → index-7bdf1ee6.js} +11 -10
  503. package/dist/esm/index-9b0d46f4.js +34 -0
  504. package/dist/esm/index-a5d50daf.js +7 -0
  505. package/dist/esm/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
  506. package/dist/esm/index.js +13 -11
  507. package/dist/esm/{input-shims-6be83e59.js → input-shims-0314bbe5.js} +6 -7
  508. package/dist/esm/{input.utils-67459bae.js → input.utils-09c71bc7.js} +3 -2
  509. package/dist/esm/ion-accordion_2.entry.js +24 -61
  510. package/dist/esm/ion-action-sheet.entry.js +19 -22
  511. package/dist/esm/ion-alert.entry.js +21 -23
  512. package/dist/esm/ion-app_8.entry.js +140 -96
  513. package/dist/esm/ion-avatar_3.entry.js +10 -94
  514. package/dist/esm/ion-back-button.entry.js +21 -31
  515. package/dist/esm/ion-backdrop.entry.js +7 -12
  516. package/dist/esm/ion-breadcrumb_2.entry.js +17 -55
  517. package/dist/esm/ion-button_2.entry.js +13 -44
  518. package/dist/esm/ion-card_5.entry.js +29 -53
  519. package/dist/esm/ion-checkbox.entry.js +14 -31
  520. package/dist/esm/ion-chip.entry.js +8 -44
  521. package/dist/esm/ion-col_3.entry.js +11 -15
  522. package/dist/esm/ion-datetime-button.entry.js +9 -13
  523. package/dist/esm/ion-datetime_3.entry.js +41 -117
  524. package/dist/esm/ion-fab_3.entry.js +21 -44
  525. package/dist/esm/ion-img.entry.js +4 -8
  526. package/dist/esm/ion-infinite-scroll_2.entry.js +15 -19
  527. package/dist/esm/ion-input-password-toggle.entry.js +15 -54
  528. package/dist/esm/ion-input.entry.js +25 -120
  529. package/dist/esm/ion-item-option_3.entry.js +18 -41
  530. package/dist/esm/ion-item_8.entry.js +42 -114
  531. package/dist/esm/ion-loading.entry.js +16 -18
  532. package/dist/esm/ion-menu_3.entry.js +29 -48
  533. package/dist/esm/ion-modal.entry.js +31 -59
  534. package/dist/esm/ion-nav_2.entry.js +12 -14
  535. package/dist/esm/ion-picker-column-option.entry.js +7 -12
  536. package/dist/esm/ion-picker-column.entry.js +12 -12
  537. package/dist/esm/ion-picker.entry.js +6 -11
  538. package/dist/esm/ion-popover.entry.js +16 -18
  539. package/dist/esm/ion-progress-bar.entry.js +8 -13
  540. package/dist/esm/ion-radio_2.entry.js +12 -19
  541. package/dist/esm/ion-range.entry.js +12 -16
  542. package/dist/esm/ion-refresher_2.entry.js +21 -42
  543. package/dist/esm/ion-reorder_2.entry.js +15 -39
  544. package/dist/esm/ion-ripple-effect.entry.js +8 -19
  545. package/dist/esm/ion-route_4.entry.js +8 -9
  546. package/dist/esm/ion-searchbar.entry.js +18 -95
  547. package/dist/esm/ion-segment-content.entry.js +2 -2
  548. package/dist/esm/ion-segment-view.entry.js +3 -7
  549. package/dist/esm/ion-segment_2.entry.js +16 -24
  550. package/dist/esm/ion-select-modal.entry.js +11 -9
  551. package/dist/esm/ion-select_3.entry.js +41 -134
  552. package/dist/esm/ion-spinner.entry.js +8 -34
  553. package/dist/esm/ion-split-pane.entry.js +9 -14
  554. package/dist/esm/ion-tab-bar_2.entry.js +20 -60
  555. package/dist/esm/ion-tab_2.entry.js +7 -8
  556. package/dist/esm/ion-text.entry.js +6 -7
  557. package/dist/esm/ion-textarea.entry.js +17 -42
  558. package/dist/esm/ion-toast.entry.js +17 -34
  559. package/dist/esm/ion-toggle.entry.js +23 -81
  560. package/dist/esm/ionic-global-35cabcff.js +231 -0
  561. package/dist/esm/ionic.js +6 -7
  562. package/dist/esm/{ios.transition-06b78ea0.js → ios.transition-72ec83a8.js} +7 -7
  563. package/dist/esm/{keyboard-5b1b354d.js → keyboard-52278bd7.js} +3 -5
  564. package/dist/esm/{keyboard-9bbd546a.js → keyboard-73175e24.js} +1 -1
  565. package/dist/esm/{keyboard-controller-aff395fd.js → keyboard-controller-ec5c2bfa.js} +3 -5
  566. package/dist/esm/loader.js +5 -6
  567. package/dist/esm/{md.transition-e5712bda.js → md.transition-1f612b9f.js} +7 -6
  568. package/dist/esm/{notch-controller-c0bd22ff.js → notch-controller-55b09e11.js} +2 -2
  569. package/dist/esm/{overlays-66cb5522.js → overlays-cba25d39.js} +7 -6
  570. package/dist/esm/{status-tap-edf9f395.js → status-tap-a7026a46.js} +4 -5
  571. package/dist/esm/{swipe-back-17c42610.js → swipe-back-e5394307.js} +1 -2
  572. package/dist/esm-es5/animation-eab5a4ca.js +4 -0
  573. package/dist/esm-es5/app-globals-32740a0d.js +4 -0
  574. package/dist/esm-es5/{button-active-321f0dba.js → button-active-0e590bc4.js} +1 -1
  575. package/dist/esm-es5/capacitor-59395cbd.js +4 -0
  576. package/dist/esm-es5/data-ae11fd43.js +4 -0
  577. package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
  578. package/dist/esm-es5/framework-delegate-63d1a679.js +4 -0
  579. package/dist/esm-es5/{haptic-dd6c0ea9.js → haptic-ac164e4c.js} +1 -1
  580. package/dist/esm-es5/hardware-back-button-18d38325.js +4 -0
  581. package/dist/esm-es5/helpers-da915de8.js +4 -0
  582. package/dist/esm-es5/index-0f61352c.js +5 -0
  583. package/dist/esm-es5/index-4f0570f4.js +4 -0
  584. package/dist/esm-es5/index-5cc724f3.js +4 -0
  585. package/dist/esm-es5/{index-62b4a18b.js → index-79b30591.js} +1 -1
  586. package/dist/esm-es5/index-7bdf1ee6.js +4 -0
  587. package/dist/esm-es5/index-9b0d46f4.js +4 -0
  588. package/dist/esm-es5/index-a5d50daf.js +4 -0
  589. package/dist/esm-es5/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
  590. package/dist/esm-es5/index.js +1 -1
  591. package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
  592. package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
  593. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  594. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  595. package/dist/esm-es5/ion-alert.entry.js +1 -1
  596. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  597. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  598. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  599. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  600. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  601. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  602. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  603. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  604. package/dist/esm-es5/ion-chip.entry.js +1 -1
  605. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  606. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  607. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  608. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  609. package/dist/esm-es5/ion-img.entry.js +1 -1
  610. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  611. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  612. package/dist/esm-es5/ion-input.entry.js +1 -1
  613. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  614. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  615. package/dist/esm-es5/ion-loading.entry.js +1 -1
  616. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  617. package/dist/esm-es5/ion-modal.entry.js +1 -1
  618. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  619. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  620. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  621. package/dist/esm-es5/ion-picker.entry.js +1 -1
  622. package/dist/esm-es5/ion-popover.entry.js +1 -1
  623. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  624. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  625. package/dist/esm-es5/ion-range.entry.js +1 -1
  626. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  627. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  628. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  629. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  630. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  631. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  632. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  633. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  634. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  635. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  636. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  637. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  638. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  639. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  640. package/dist/esm-es5/ion-text.entry.js +1 -1
  641. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  642. package/dist/esm-es5/ion-toast.entry.js +1 -1
  643. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  644. package/dist/esm-es5/ionic-global-35cabcff.js +4 -0
  645. package/dist/esm-es5/ionic.js +1 -1
  646. package/dist/esm-es5/ios.transition-72ec83a8.js +4 -0
  647. package/dist/esm-es5/{keyboard-5b1b354d.js → keyboard-52278bd7.js} +1 -1
  648. package/dist/esm-es5/{keyboard-9bbd546a.js → keyboard-73175e24.js} +1 -1
  649. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
  650. package/dist/esm-es5/loader.js +1 -1
  651. package/dist/esm-es5/md.transition-1f612b9f.js +4 -0
  652. package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
  653. package/dist/esm-es5/overlays-cba25d39.js +4 -0
  654. package/dist/esm-es5/status-tap-a7026a46.js +4 -0
  655. package/dist/esm-es5/swipe-back-e5394307.js +4 -0
  656. package/dist/html.html-data.json +203 -2341
  657. package/dist/ionic/index.esm.js +1 -1
  658. package/dist/ionic/ionic.esm.js +1 -1
  659. package/dist/ionic/ionic.js +1 -1
  660. package/dist/ionic/p-00751c2a.system.entry.js +4 -0
  661. package/dist/ionic/p-024da823.js +4 -0
  662. package/dist/ionic/p-047eabc5.entry.js +4 -0
  663. package/dist/ionic/{p-f193945e.system.js → p-04f14c79.system.js} +1 -1
  664. package/dist/ionic/p-05562a80.entry.js +4 -0
  665. package/dist/ionic/p-06e58c4e.js +4 -0
  666. package/dist/ionic/p-06fee233.js +4 -0
  667. package/dist/ionic/p-07d1dbe2.system.entry.js +4 -0
  668. package/dist/ionic/{p-86e9a917.system.entry.js → p-085dbcb4.system.entry.js} +1 -1
  669. package/dist/ionic/p-08c16f05.system.entry.js +4 -0
  670. package/dist/ionic/p-0ba102ec.system.entry.js +4 -0
  671. package/dist/ionic/p-0c06e09b.system.js +4 -0
  672. package/dist/ionic/p-0c093fae.system.entry.js +4 -0
  673. package/dist/ionic/p-0c64a077.entry.js +4 -0
  674. package/dist/ionic/p-11330967.entry.js +4 -0
  675. package/dist/ionic/p-1179c304.entry.js +4 -0
  676. package/dist/ionic/p-12f711f4.system.entry.js +4 -0
  677. package/dist/ionic/p-17290742.entry.js +4 -0
  678. package/dist/ionic/p-18094a7c.system.entry.js +4 -0
  679. package/dist/ionic/p-19bfac92.js +4 -0
  680. package/dist/ionic/{p-dbd39afd.system.js → p-19ea7bff.system.js} +1 -1
  681. package/dist/ionic/p-1dfc11b3.system.js +4 -0
  682. package/dist/ionic/p-1e4371bd.js +4 -0
  683. package/dist/ionic/{p-115d74cd.system.js → p-1e955a45.system.js} +1 -1
  684. package/dist/ionic/p-255d9087.system.entry.js +4 -0
  685. package/dist/ionic/{p-41c19986.system.js → p-2564d9b9.system.js} +1 -1
  686. package/dist/ionic/p-265d65cb.entry.js +4 -0
  687. package/dist/ionic/p-2690b1de.js +4 -0
  688. package/dist/ionic/{p-93e47936.js → p-27281edd.js} +1 -1
  689. package/dist/ionic/p-27e81076.system.entry.js +4 -0
  690. package/dist/ionic/p-2b7827c7.js +4 -0
  691. package/dist/ionic/p-2e396991.system.entry.js +4 -0
  692. package/dist/ionic/p-2e520289.entry.js +4 -0
  693. package/dist/ionic/p-2e78561b.js +5 -0
  694. package/dist/ionic/{p-f8c63ac0.system.js → p-2f9f5bea.system.js} +2 -2
  695. package/dist/ionic/p-30019f0b.system.js +4 -0
  696. package/dist/ionic/p-32e1825e.entry.js +4 -0
  697. package/dist/ionic/{p-12d6df53.js → p-34b11c24.js} +1 -1
  698. package/dist/ionic/p-35f02a74.entry.js +4 -0
  699. package/dist/ionic/p-38dac839.system.entry.js +4 -0
  700. package/dist/ionic/p-39539749.js +4 -0
  701. package/dist/ionic/p-3ad285e3.system.js +4 -0
  702. package/dist/ionic/p-3cc276f4.js +4 -0
  703. package/dist/ionic/p-3e2c05a8.entry.js +4 -0
  704. package/dist/ionic/p-41cabce4.entry.js +4 -0
  705. package/dist/ionic/p-43679a42.entry.js +4 -0
  706. package/dist/ionic/p-43febc77.system.entry.js +4 -0
  707. package/dist/ionic/p-45e4a1e3.system.entry.js +4 -0
  708. package/dist/ionic/p-4a57dd17.entry.js +4 -0
  709. package/dist/ionic/p-4ab93cfa.entry.js +4 -0
  710. package/dist/ionic/p-4c2d5b80.system.js +4 -0
  711. package/dist/ionic/p-52f6a5cc.system.entry.js +4 -0
  712. package/dist/ionic/p-53ad8ff4.system.entry.js +4 -0
  713. package/dist/ionic/p-56667886.system.entry.js +4 -0
  714. package/dist/ionic/p-57f92640.entry.js +4 -0
  715. package/dist/ionic/p-5ae14e75.entry.js +4 -0
  716. package/dist/ionic/p-64b0068b.entry.js +4 -0
  717. package/dist/ionic/p-65774bef.system.entry.js +4 -0
  718. package/dist/ionic/p-67d3729b.system.entry.js +4 -0
  719. package/dist/ionic/p-6828136c.entry.js +4 -0
  720. package/dist/ionic/p-6a131e4b.system.entry.js +4 -0
  721. package/dist/ionic/p-6b6ccc63.entry.js +4 -0
  722. package/dist/ionic/p-6c29e51f.entry.js +4 -0
  723. package/dist/ionic/p-6d350e1f.entry.js +4 -0
  724. package/dist/ionic/p-6d7a98cc.system.entry.js +4 -0
  725. package/dist/ionic/p-6d9fa95e.system.entry.js +4 -0
  726. package/dist/ionic/p-6e1c1cf1.system.entry.js +4 -0
  727. package/dist/ionic/p-6f04bf2f.system.js +4 -0
  728. package/dist/ionic/{p-82cb4235.js → p-711fd7fc.js} +1 -1
  729. package/dist/ionic/p-72812e99.js +4 -0
  730. package/dist/ionic/p-72bc8a1c.js +4 -0
  731. package/dist/ionic/p-735f093b.system.entry.js +4 -0
  732. package/dist/ionic/p-75be4567.entry.js +4 -0
  733. package/dist/ionic/p-779acec8.entry.js +4 -0
  734. package/dist/ionic/p-78067282.system.js +4 -0
  735. package/dist/ionic/p-78841a31.entry.js +4 -0
  736. package/dist/ionic/p-792919fd.system.js +4 -0
  737. package/dist/ionic/p-7b30edcc.js +4 -0
  738. package/dist/ionic/p-7fa854a7.entry.js +4 -0
  739. package/dist/ionic/p-81494564.system.entry.js +4 -0
  740. package/dist/ionic/p-84827719.system.entry.js +4 -0
  741. package/dist/ionic/p-84a6d0da.system.entry.js +4 -0
  742. package/dist/ionic/p-8635f5e6.system.js +4 -0
  743. package/dist/ionic/p-86bc3e6f.entry.js +4 -0
  744. package/dist/ionic/p-876d7e0d.entry.js +4 -0
  745. package/dist/ionic/{p-4626fb32.system.js → p-8985cdb6.system.js} +1 -1
  746. package/dist/ionic/p-89b075f4.system.entry.js +4 -0
  747. package/dist/ionic/{p-4c275462.js → p-89b61afc.js} +1 -1
  748. package/dist/ionic/p-8b2d8ddb.system.js +4 -0
  749. package/dist/ionic/p-8c9954a1.entry.js +4 -0
  750. package/dist/ionic/p-8ceead8f.system.js +4 -0
  751. package/dist/ionic/p-8e8839c4.system.js +5 -0
  752. package/dist/ionic/{p-62887754.system.js → p-9146695e.system.js} +1 -1
  753. package/dist/ionic/p-938a029f.js +4 -0
  754. package/dist/ionic/p-93bc2080.entry.js +4 -0
  755. package/dist/ionic/p-96cc4814.js +4 -0
  756. package/dist/ionic/p-979f352d.system.entry.js +4 -0
  757. package/dist/ionic/p-99658fa2.entry.js +4 -0
  758. package/dist/ionic/p-99c5a3a0.entry.js +4 -0
  759. package/dist/ionic/p-9c4f4367.system.entry.js +4 -0
  760. package/dist/ionic/{p-3e91ea3a.system.js → p-9ea607bd.system.js} +2 -2
  761. package/dist/ionic/p-a15ddedb.system.js +4 -0
  762. package/dist/ionic/p-a2e5c294.system.entry.js +4 -0
  763. package/dist/ionic/p-a3bea030.system.entry.js +4 -0
  764. package/dist/ionic/p-a64f199d.system.entry.js +4 -0
  765. package/dist/ionic/p-a772be95.js +4 -0
  766. package/dist/ionic/p-a8cf7e93.system.entry.js +4 -0
  767. package/dist/ionic/p-a915830c.system.entry.js +4 -0
  768. package/dist/ionic/{p-94816e7a.system.js → p-a93873de.system.js} +1 -1
  769. package/dist/ionic/p-abe101da.system.js +4 -0
  770. package/dist/ionic/p-add1b61c.system.entry.js +4 -0
  771. package/dist/ionic/p-ae2e0f50.entry.js +4 -0
  772. package/dist/ionic/p-afe932a1.system.entry.js +4 -0
  773. package/dist/ionic/{p-18f86177.system.js → p-b06ac4a5.system.js} +1 -1
  774. package/dist/ionic/p-b2ef1bb0.entry.js +4 -0
  775. package/dist/ionic/p-b2f788b9.system.entry.js +4 -0
  776. package/dist/ionic/p-b50c6cd6.system.entry.js +4 -0
  777. package/dist/ionic/p-b51e4004.js +4 -0
  778. package/dist/ionic/p-b52ddc18.system.entry.js +4 -0
  779. package/dist/ionic/p-b6c8f5dc.system.js +4 -0
  780. package/dist/ionic/p-b7027235.entry.js +4 -0
  781. package/dist/ionic/p-bb750ac0.system.js +4 -0
  782. package/dist/ionic/p-bf9210c7.system.entry.js +4 -0
  783. package/dist/ionic/p-c2496925.system.entry.js +4 -0
  784. package/dist/ionic/p-c468af8a.system.js +4 -0
  785. package/dist/ionic/p-c4dc27a0.system.entry.js +4 -0
  786. package/dist/ionic/p-c505bde7.system.entry.js +4 -0
  787. package/dist/ionic/p-c60e41c7.entry.js +4 -0
  788. package/dist/ionic/p-c61cc894.js +4 -0
  789. package/dist/ionic/{p-11266916.js → p-c7e16491.js} +1 -1
  790. package/dist/ionic/p-cb37f97d.entry.js +4 -0
  791. package/dist/ionic/p-ce32a54b.system.entry.js +4 -0
  792. package/dist/ionic/p-cf110b0b.system.js +4 -0
  793. package/dist/ionic/p-d09b25f9.system.entry.js +4 -0
  794. package/dist/ionic/p-d18dc399.entry.js +4 -0
  795. package/dist/ionic/{p-58aa8a36.system.js → p-d37524be.system.js} +1 -1
  796. package/dist/ionic/p-d47265c8.js +4 -0
  797. package/dist/ionic/{p-aaccbb95.js → p-d60342e3.js} +1 -1
  798. package/dist/ionic/p-d737a7d9.entry.js +4 -0
  799. package/dist/ionic/p-d83d0d32.system.entry.js +4 -0
  800. package/dist/ionic/p-d8d37758.entry.js +4 -0
  801. package/dist/ionic/{p-58f16ef6.js → p-da2b833b.js} +1 -1
  802. package/dist/ionic/p-dcad1a3d.system.entry.js +4 -0
  803. package/dist/ionic/p-dddb317f.entry.js +4 -0
  804. package/dist/ionic/{p-a510e9c0.js → p-de758235.js} +1 -1
  805. package/dist/ionic/p-dfb78785.system.js +4 -0
  806. package/dist/ionic/p-e11ef2b7.entry.js +4 -0
  807. package/dist/ionic/p-e3c8fb01.entry.js +4 -0
  808. package/dist/ionic/p-e3f626ea.system.entry.js +4 -0
  809. package/dist/ionic/p-e46ba5cd.js +4 -0
  810. package/dist/ionic/p-e4966716.entry.js +4 -0
  811. package/dist/ionic/p-e5c69948.entry.js +4 -0
  812. package/dist/ionic/p-e837530a.entry.js +4 -0
  813. package/dist/ionic/p-e85e6e02.js +4 -0
  814. package/dist/ionic/p-e8784b73.entry.js +4 -0
  815. package/dist/ionic/p-e896891b.system.entry.js +4 -0
  816. package/dist/ionic/p-e9bd3df9.js +4 -0
  817. package/dist/ionic/p-ea2ee20f.entry.js +4 -0
  818. package/dist/ionic/p-eb717568.entry.js +4 -0
  819. package/dist/ionic/p-f2986b60.entry.js +4 -0
  820. package/dist/ionic/{p-44ad86d7.system.js → p-f687573e.system.js} +1 -1
  821. package/dist/ionic/p-f8a8295c.system.entry.js +4 -0
  822. package/dist/ionic/p-fb7b7319.entry.js +4 -0
  823. package/dist/ionic/p-ff4b7e40.system.js +4 -0
  824. package/dist/types/components/accordion/accordion.d.ts +3 -5
  825. package/dist/types/components/accordion-group/accordion-group.d.ts +1 -12
  826. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +7 -3
  827. package/dist/types/components/action-sheet/action-sheet.d.ts +2 -3
  828. package/dist/types/components/alert/alert-interface.d.ts +7 -3
  829. package/dist/types/components/alert/alert.d.ts +2 -3
  830. package/dist/types/components/app/app.d.ts +2 -4
  831. package/dist/types/components/avatar/avatar.d.ts +0 -28
  832. package/dist/types/components/back-button/back-button.d.ts +1 -2
  833. package/dist/types/components/backdrop/backdrop.d.ts +0 -4
  834. package/dist/types/components/badge/badge.d.ts +1 -23
  835. package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -4
  836. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  837. package/dist/types/components/button/button.d.ts +4 -15
  838. package/dist/types/components/buttons/buttons.d.ts +1 -5
  839. package/dist/types/components/card/card.d.ts +1 -8
  840. package/dist/types/components/card-content/card-content.d.ts +1 -2
  841. package/dist/types/components/card-header/card-header.d.ts +2 -3
  842. package/dist/types/components/card-subtitle/card-subtitle.d.ts +1 -2
  843. package/dist/types/components/card-title/card-title.d.ts +1 -2
  844. package/dist/types/components/checkbox/checkbox.d.ts +4 -14
  845. package/dist/types/components/chip/chip.d.ts +1 -19
  846. package/dist/types/components/col/col.d.ts +0 -4
  847. package/dist/types/components/content/content.d.ts +0 -3
  848. package/dist/types/components/datetime/datetime.d.ts +1 -26
  849. package/dist/types/components/datetime/utils/data.d.ts +3 -3
  850. package/dist/types/components/datetime-button/datetime-button.d.ts +1 -2
  851. package/dist/types/components/fab/fab.d.ts +0 -4
  852. package/dist/types/components/fab-button/fab-button.d.ts +3 -5
  853. package/dist/types/components/fab-list/fab-list.d.ts +0 -4
  854. package/dist/types/components/footer/footer.d.ts +3 -4
  855. package/dist/types/components/grid/grid.d.ts +0 -4
  856. package/dist/types/components/header/header.d.ts +3 -9
  857. package/dist/types/components/img/img.d.ts +0 -3
  858. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +0 -4
  859. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +0 -4
  860. package/dist/types/components/input/input.d.ts +5 -31
  861. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +0 -2
  862. package/dist/types/components/item/item.d.ts +4 -11
  863. package/dist/types/components/item-divider/item-divider.d.ts +1 -2
  864. package/dist/types/components/item-group/item-group.d.ts +0 -4
  865. package/dist/types/components/item-option/item-option.d.ts +1 -11
  866. package/dist/types/components/item-options/item-options.d.ts +0 -4
  867. package/dist/types/components/item-sliding/item-sliding.d.ts +0 -4
  868. package/dist/types/components/label/label.d.ts +1 -2
  869. package/dist/types/components/list/list.d.ts +1 -15
  870. package/dist/types/components/list-header/list-header.d.ts +1 -2
  871. package/dist/types/components/loading/loading-interface.d.ts +7 -2
  872. package/dist/types/components/loading/loading.d.ts +2 -3
  873. package/dist/types/components/menu/menu.d.ts +0 -3
  874. package/dist/types/components/menu-button/menu-button.d.ts +1 -3
  875. package/dist/types/components/menu-toggle/menu-toggle.d.ts +0 -3
  876. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  877. package/dist/types/components/modal/modal-interface.d.ts +7 -4
  878. package/dist/types/components/modal/modal.d.ts +1 -11
  879. package/dist/types/components/nav/nav-interface.d.ts +1 -9
  880. package/dist/types/components/nav/nav.d.ts +1 -5
  881. package/dist/types/components/nav-link/nav-link.d.ts +0 -4
  882. package/dist/types/components/note/note.d.ts +1 -2
  883. package/dist/types/components/picker/picker.d.ts +1 -2
  884. package/dist/types/components/picker-column/picker-column.d.ts +1 -2
  885. package/dist/types/components/picker-column-option/picker-column-option.d.ts +0 -4
  886. package/dist/types/components/picker-legacy/picker.d.ts +1 -2
  887. package/dist/types/components/popover/popover-interface.d.ts +6 -3
  888. package/dist/types/components/popover/popover.d.ts +5 -6
  889. package/dist/types/components/progress-bar/progress-bar.d.ts +1 -2
  890. package/dist/types/components/radio/radio.d.ts +1 -2
  891. package/dist/types/components/radio-group/radio-group.d.ts +0 -4
  892. package/dist/types/components/range/range.d.ts +1 -2
  893. package/dist/types/components/refresher/refresher.d.ts +1 -2
  894. package/dist/types/components/refresher-content/refresher-content.d.ts +0 -4
  895. package/dist/types/components/reorder/reorder.d.ts +0 -9
  896. package/dist/types/components/reorder-group/reorder-group.d.ts +0 -4
  897. package/dist/types/components/ripple-effect/ripple-effect.d.ts +0 -4
  898. package/dist/types/components/route/route.d.ts +0 -4
  899. package/dist/types/components/router/router.d.ts +0 -4
  900. package/dist/types/components/router-link/router-link.d.ts +0 -4
  901. package/dist/types/components/router-outlet/router-outlet.d.ts +1 -4
  902. package/dist/types/components/row/row.d.ts +0 -4
  903. package/dist/types/components/searchbar/searchbar.d.ts +8 -30
  904. package/dist/types/components/segment/segment.d.ts +1 -2
  905. package/dist/types/components/segment-button/segment-button.d.ts +1 -2
  906. package/dist/types/components/select/select.d.ts +7 -35
  907. package/dist/types/components/select-option/select-option.d.ts +0 -4
  908. package/dist/types/components/select-popover/select-popover.d.ts +0 -3
  909. package/dist/types/components/skeleton-text/skeleton-text.d.ts +0 -4
  910. package/dist/types/components/spinner/spinner.d.ts +0 -15
  911. package/dist/types/components/split-pane/split-pane.d.ts +0 -4
  912. package/dist/types/components/tab/tab.d.ts +0 -4
  913. package/dist/types/components/tab-bar/tab-bar.d.ts +2 -22
  914. package/dist/types/components/tab-button/tab-button.d.ts +1 -11
  915. package/dist/types/components/tabs/tabs.d.ts +0 -3
  916. package/dist/types/components/text/text.d.ts +1 -2
  917. package/dist/types/components/textarea/textarea.d.ts +4 -16
  918. package/dist/types/components/thumbnail/thumbnail.d.ts +0 -4
  919. package/dist/types/components/title/title.d.ts +0 -4
  920. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  921. package/dist/types/components/toast/toast-interface.d.ts +7 -3
  922. package/dist/types/components/toast/toast.d.ts +2 -12
  923. package/dist/types/components/toggle/toggle.d.ts +1 -15
  924. package/dist/types/components/toolbar/toolbar.d.ts +3 -4
  925. package/dist/types/components.d.ts +183 -1383
  926. package/dist/types/global/ionic-global.d.ts +2 -27
  927. package/dist/types/interface.d.ts +0 -3
  928. package/dist/types/stencil-public-runtime.d.ts +6 -0
  929. package/dist/types/utils/config.d.ts +2 -106
  930. package/dist/types/utils/focus-visible.d.ts +0 -1
  931. package/dist/types/utils/overlays-interface.d.ts +1 -31
  932. package/dist/types/utils/test/playwright/generator.d.ts +2 -31
  933. package/hydrate/index.d.ts +10 -4
  934. package/hydrate/index.js +2176 -3042
  935. package/hydrate/index.mjs +2176 -3042
  936. package/package.json +6 -11
  937. package/components/caret-down.js +0 -6
  938. package/components/caret-left.js +0 -6
  939. package/components/caret-right.js +0 -6
  940. package/components/config2.js +0 -79
  941. package/components/list2.js +0 -6
  942. package/components/x.js +0 -6
  943. package/css/ionic/bundle.ionic.css +0 -1
  944. package/css/ionic/bundle.ionic.css.map +0 -1
  945. package/css/ionic/core.ionic.css +0 -1
  946. package/css/ionic/core.ionic.css.map +0 -1
  947. package/css/ionic/global.bundle.ionic.css +0 -1
  948. package/css/ionic/global.bundle.ionic.css.map +0 -1
  949. package/css/ionic/ionic-swiper.ionic.css +0 -1
  950. package/css/ionic/ionic-swiper.ionic.css.map +0 -1
  951. package/css/ionic/link.ionic.css +0 -1
  952. package/css/ionic/link.ionic.css.map +0 -1
  953. package/css/ionic/structure.ionic.css +0 -1
  954. package/css/ionic/structure.ionic.css.map +0 -1
  955. package/css/ionic/typography.ionic.css +0 -1
  956. package/css/ionic/typography.ionic.css.map +0 -1
  957. package/css/ionic/utils.bundle.ionic.css +0 -1
  958. package/css/ionic/utils.bundle.ionic.css.map +0 -1
  959. package/dist/cjs/caret-down-3c215cff.js +0 -8
  960. package/dist/cjs/caret-left-2bb66970.js +0 -8
  961. package/dist/cjs/caret-right-88e03970.js +0 -8
  962. package/dist/cjs/config-aff4ff52.js +0 -84
  963. package/dist/cjs/ionic-global-14af9c21.js +0 -535
  964. package/dist/cjs/list-2930c629.js +0 -8
  965. package/dist/cjs/x-81a8f51c.js +0 -8
  966. package/dist/collection/components/accordion/accordion.ionic.css +0 -197
  967. package/dist/collection/components/accordion-group/accordion-group.ionic.css +0 -95
  968. package/dist/collection/components/avatar/avatar.ionic.css +0 -268
  969. package/dist/collection/components/backdrop/backdrop.ionic.css +0 -151
  970. package/dist/collection/components/badge/badge.ionic.css +0 -249
  971. package/dist/collection/components/button/button.ionic.css +0 -589
  972. package/dist/collection/components/buttons/buttons.ionic.css +0 -100
  973. package/dist/collection/components/card/card.ionic.css +0 -137
  974. package/dist/collection/components/card-content/card-content.ionic.css +0 -90
  975. package/dist/collection/components/card-header/card-header.ionic.css +0 -87
  976. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +0 -146
  977. package/dist/collection/components/checkbox/checkbox.ionic.css +0 -402
  978. package/dist/collection/components/chip/chip.ionic.css +0 -160
  979. package/dist/collection/components/datetime/datetime.ionic.css +0 -673
  980. package/dist/collection/components/header/header.ionic.css +0 -86
  981. package/dist/collection/components/input/input.ionic.css +0 -1096
  982. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +0 -61
  983. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +0 -141
  984. package/dist/collection/components/item/item.ionic.css +0 -497
  985. package/dist/collection/components/item-option/item-option.ionic.css +0 -332
  986. package/dist/collection/components/item-options/item-options.ionic.css +0 -259
  987. package/dist/collection/components/list/list.ionic.css +0 -192
  988. package/dist/collection/components/list-header/list-header.ionic.css +0 -236
  989. package/dist/collection/components/menu-button/menu-button.ionic.css +0 -238
  990. package/dist/collection/components/modal/modal.ionic.css +0 -239
  991. package/dist/collection/components/radio/radio.ionic.css +0 -424
  992. package/dist/collection/components/range/range.ionic.css +0 -555
  993. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +0 -154
  994. package/dist/collection/components/searchbar/searchbar.ionic.css +0 -345
  995. package/dist/collection/components/segment/segment.ionic.css +0 -117
  996. package/dist/collection/components/segment-button/segment-button.ionic.css +0 -355
  997. package/dist/collection/components/select/select.ionic.css +0 -711
  998. package/dist/collection/components/select-modal/select-modal.ionic.css +0 -121
  999. package/dist/collection/components/spinner/spinner.common.css +0 -199
  1000. package/dist/collection/components/tab-bar/tab-bar.ionic.css +0 -188
  1001. package/dist/collection/components/tab-button/tab-button.ionic.css +0 -282
  1002. package/dist/collection/components/textarea/textarea.ionic.css +0 -834
  1003. package/dist/collection/components/title/title.ionic.css +0 -145
  1004. package/dist/collection/components/toast/toast.ionic.css +0 -377
  1005. package/dist/collection/components/toggle/toggle.ionic.css +0 -419
  1006. package/dist/collection/components/toolbar/toolbar.ionic.css +0 -233
  1007. package/dist/esm/caret-down-3eaad1cc.js +0 -6
  1008. package/dist/esm/caret-left-33424bb0.js +0 -6
  1009. package/dist/esm/caret-right-68d856ad.js +0 -6
  1010. package/dist/esm/config-84eb9670.js +0 -79
  1011. package/dist/esm/ionic-global-3c97a4aa.js +0 -521
  1012. package/dist/esm/list-6524700c.js +0 -6
  1013. package/dist/esm/x-a64bcd9f.js +0 -6
  1014. package/dist/esm-es5/animation-f1a88600.js +0 -4
  1015. package/dist/esm-es5/app-globals-eceadabb.js +0 -4
  1016. package/dist/esm-es5/capacitor-6b0341c8.js +0 -4
  1017. package/dist/esm-es5/caret-down-3eaad1cc.js +0 -4
  1018. package/dist/esm-es5/caret-left-33424bb0.js +0 -4
  1019. package/dist/esm-es5/caret-right-68d856ad.js +0 -4
  1020. package/dist/esm-es5/config-84eb9670.js +0 -4
  1021. package/dist/esm-es5/data-a753c96a.js +0 -4
  1022. package/dist/esm-es5/focus-visible-501aff19.js +0 -4
  1023. package/dist/esm-es5/framework-delegate-3e4a8c9f.js +0 -4
  1024. package/dist/esm-es5/helpers-f08d15bd.js +0 -4
  1025. package/dist/esm-es5/index-31109e63.js +0 -4
  1026. package/dist/esm-es5/index-59f81cb8.js +0 -4
  1027. package/dist/esm-es5/index-723c0e5d.js +0 -5
  1028. package/dist/esm-es5/index-7bd160c2.js +0 -4
  1029. package/dist/esm-es5/input-shims-6be83e59.js +0 -4
  1030. package/dist/esm-es5/input.utils-67459bae.js +0 -4
  1031. package/dist/esm-es5/ionic-global-3c97a4aa.js +0 -4
  1032. package/dist/esm-es5/ios.transition-06b78ea0.js +0 -4
  1033. package/dist/esm-es5/keyboard-controller-aff395fd.js +0 -4
  1034. package/dist/esm-es5/list-6524700c.js +0 -4
  1035. package/dist/esm-es5/md.transition-e5712bda.js +0 -4
  1036. package/dist/esm-es5/notch-controller-c0bd22ff.js +0 -4
  1037. package/dist/esm-es5/overlays-66cb5522.js +0 -4
  1038. package/dist/esm-es5/status-tap-edf9f395.js +0 -4
  1039. package/dist/esm-es5/swipe-back-17c42610.js +0 -4
  1040. package/dist/esm-es5/x-a64bcd9f.js +0 -4
  1041. package/dist/ionic/p-01d80901.system.js +0 -4
  1042. package/dist/ionic/p-038a6294.js +0 -4
  1043. package/dist/ionic/p-06ec4706.js +0 -4
  1044. package/dist/ionic/p-06f2f110.system.entry.js +0 -4
  1045. package/dist/ionic/p-09125f4f.entry.js +0 -4
  1046. package/dist/ionic/p-096e5f6d.system.entry.js +0 -4
  1047. package/dist/ionic/p-09c6b5e4.js +0 -4
  1048. package/dist/ionic/p-0a0ce78f.system.entry.js +0 -4
  1049. package/dist/ionic/p-0ae8c3eb.entry.js +0 -4
  1050. package/dist/ionic/p-0fa218e9.system.js +0 -5
  1051. package/dist/ionic/p-101ccd60.system.entry.js +0 -4
  1052. package/dist/ionic/p-112120d7.system.js +0 -4
  1053. package/dist/ionic/p-12337305.system.entry.js +0 -4
  1054. package/dist/ionic/p-156d17cd.js +0 -4
  1055. package/dist/ionic/p-18892506.entry.js +0 -4
  1056. package/dist/ionic/p-1abd1c99.entry.js +0 -4
  1057. package/dist/ionic/p-1cf1141c.system.entry.js +0 -4
  1058. package/dist/ionic/p-1dd2b0af.entry.js +0 -4
  1059. package/dist/ionic/p-1eeb9796.entry.js +0 -4
  1060. package/dist/ionic/p-1efa63f2.js +0 -4
  1061. package/dist/ionic/p-23b31425.entry.js +0 -4
  1062. package/dist/ionic/p-243adf8c.js +0 -4
  1063. package/dist/ionic/p-24f15ce4.system.entry.js +0 -4
  1064. package/dist/ionic/p-25cc2477.entry.js +0 -4
  1065. package/dist/ionic/p-27258d5a.entry.js +0 -4
  1066. package/dist/ionic/p-29ca4da2.entry.js +0 -4
  1067. package/dist/ionic/p-2e35a770.system.js +0 -4
  1068. package/dist/ionic/p-2ef115ec.system.entry.js +0 -4
  1069. package/dist/ionic/p-2fe21cb8.system.entry.js +0 -4
  1070. package/dist/ionic/p-3238b3db.entry.js +0 -4
  1071. package/dist/ionic/p-330e703e.entry.js +0 -4
  1072. package/dist/ionic/p-33dc4514.js +0 -4
  1073. package/dist/ionic/p-346c67b0.js +0 -4
  1074. package/dist/ionic/p-3583dd40.system.entry.js +0 -4
  1075. package/dist/ionic/p-3608e72b.entry.js +0 -4
  1076. package/dist/ionic/p-398b00a5.system.entry.js +0 -4
  1077. package/dist/ionic/p-3c4c73f9.system.entry.js +0 -4
  1078. package/dist/ionic/p-3ce95a91.entry.js +0 -4
  1079. package/dist/ionic/p-3d61263b.system.entry.js +0 -4
  1080. package/dist/ionic/p-3d7eb7bf.system.entry.js +0 -4
  1081. package/dist/ionic/p-41f06734.entry.js +0 -4
  1082. package/dist/ionic/p-4219582c.system.js +0 -4
  1083. package/dist/ionic/p-429dd2b5.system.js +0 -4
  1084. package/dist/ionic/p-4385e3fb.system.entry.js +0 -4
  1085. package/dist/ionic/p-4459a66e.system.js +0 -4
  1086. package/dist/ionic/p-46787abb.system.js +0 -4
  1087. package/dist/ionic/p-47fd935c.system.js +0 -4
  1088. package/dist/ionic/p-4a39ba11.entry.js +0 -4
  1089. package/dist/ionic/p-4a6d4288.entry.js +0 -4
  1090. package/dist/ionic/p-4a869870.entry.js +0 -4
  1091. package/dist/ionic/p-4ac4f52a.system.entry.js +0 -4
  1092. package/dist/ionic/p-4b4e4592.system.entry.js +0 -4
  1093. package/dist/ionic/p-4bbfa162.system.entry.js +0 -4
  1094. package/dist/ionic/p-4c9e1b2c.js +0 -4
  1095. package/dist/ionic/p-51371e21.system.js +0 -4
  1096. package/dist/ionic/p-530c591a.entry.js +0 -4
  1097. package/dist/ionic/p-55546d77.system.entry.js +0 -4
  1098. package/dist/ionic/p-556778bd.system.js +0 -4
  1099. package/dist/ionic/p-5684893b.system.entry.js +0 -4
  1100. package/dist/ionic/p-57de8d54.system.entry.js +0 -4
  1101. package/dist/ionic/p-58c64779.system.entry.js +0 -4
  1102. package/dist/ionic/p-5a6b3c0d.entry.js +0 -4
  1103. package/dist/ionic/p-5a6d245d.system.entry.js +0 -4
  1104. package/dist/ionic/p-5b57d327.system.js +0 -4
  1105. package/dist/ionic/p-5ce35a03.js +0 -4
  1106. package/dist/ionic/p-5eb8561f.system.entry.js +0 -4
  1107. package/dist/ionic/p-607c9c33.js +0 -4
  1108. package/dist/ionic/p-60d21ee9.system.entry.js +0 -4
  1109. package/dist/ionic/p-63fde7fe.entry.js +0 -4
  1110. package/dist/ionic/p-6433742e.system.entry.js +0 -4
  1111. package/dist/ionic/p-67b6e18d.entry.js +0 -4
  1112. package/dist/ionic/p-6a0dd6bc.js +0 -4
  1113. package/dist/ionic/p-6bc2795b.entry.js +0 -4
  1114. package/dist/ionic/p-6bd1c0ee.system.entry.js +0 -4
  1115. package/dist/ionic/p-6caa76ec.js +0 -4
  1116. package/dist/ionic/p-6cbca6c5.system.entry.js +0 -4
  1117. package/dist/ionic/p-6dc32e8b.entry.js +0 -4
  1118. package/dist/ionic/p-6e53290f.system.entry.js +0 -4
  1119. package/dist/ionic/p-7071d7ca.js +0 -4
  1120. package/dist/ionic/p-70e5bb40.entry.js +0 -4
  1121. package/dist/ionic/p-72cbf799.system.entry.js +0 -4
  1122. package/dist/ionic/p-74d76684.js +0 -4
  1123. package/dist/ionic/p-7607d8ba.system.entry.js +0 -4
  1124. package/dist/ionic/p-78ed8923.js +0 -4
  1125. package/dist/ionic/p-7a858bae.system.js +0 -4
  1126. package/dist/ionic/p-7d36cf9f.system.entry.js +0 -4
  1127. package/dist/ionic/p-80917a19.system.entry.js +0 -4
  1128. package/dist/ionic/p-815f649a.system.entry.js +0 -4
  1129. package/dist/ionic/p-81b72701.entry.js +0 -4
  1130. package/dist/ionic/p-822e47a9.system.js +0 -4
  1131. package/dist/ionic/p-83948e48.js +0 -5
  1132. package/dist/ionic/p-8463212e.js +0 -4
  1133. package/dist/ionic/p-84667060.entry.js +0 -4
  1134. package/dist/ionic/p-857ba8d4.entry.js +0 -4
  1135. package/dist/ionic/p-86d98446.system.entry.js +0 -4
  1136. package/dist/ionic/p-871f4046.entry.js +0 -4
  1137. package/dist/ionic/p-8956f9a8.system.entry.js +0 -4
  1138. package/dist/ionic/p-8b0f0a87.entry.js +0 -4
  1139. package/dist/ionic/p-8dbfae64.entry.js +0 -4
  1140. package/dist/ionic/p-903c544a.js +0 -4
  1141. package/dist/ionic/p-916bc9ed.system.entry.js +0 -4
  1142. package/dist/ionic/p-92646426.js +0 -4
  1143. package/dist/ionic/p-94fc2104.system.entry.js +0 -4
  1144. package/dist/ionic/p-986855d6.js +0 -4
  1145. package/dist/ionic/p-9abb7d9b.entry.js +0 -4
  1146. package/dist/ionic/p-9ac1a506.system.js +0 -4
  1147. package/dist/ionic/p-a1cdc742.js +0 -4
  1148. package/dist/ionic/p-a2814291.system.js +0 -4
  1149. package/dist/ionic/p-a538ab98.js +0 -4
  1150. package/dist/ionic/p-a5a9206f.entry.js +0 -4
  1151. package/dist/ionic/p-a685da08.system.entry.js +0 -4
  1152. package/dist/ionic/p-a98061d0.entry.js +0 -4
  1153. package/dist/ionic/p-a9af4103.js +0 -4
  1154. package/dist/ionic/p-ac1c2b6a.js +0 -4
  1155. package/dist/ionic/p-b18c52cd.entry.js +0 -4
  1156. package/dist/ionic/p-b517144d.system.entry.js +0 -4
  1157. package/dist/ionic/p-b5dc9a32.system.entry.js +0 -4
  1158. package/dist/ionic/p-b79f3ded.entry.js +0 -4
  1159. package/dist/ionic/p-b80582fe.system.entry.js +0 -4
  1160. package/dist/ionic/p-b8b89651.system.entry.js +0 -4
  1161. package/dist/ionic/p-bbcec459.system.js +0 -4
  1162. package/dist/ionic/p-bcdd3eaf.entry.js +0 -4
  1163. package/dist/ionic/p-be87ec25.entry.js +0 -4
  1164. package/dist/ionic/p-bf68cda6.entry.js +0 -4
  1165. package/dist/ionic/p-c248c88d.system.js +0 -4
  1166. package/dist/ionic/p-c373eebd.system.js +0 -4
  1167. package/dist/ionic/p-c9d5da01.entry.js +0 -4
  1168. package/dist/ionic/p-cdff6a80.system.entry.js +0 -4
  1169. package/dist/ionic/p-cea92c46.system.js +0 -4
  1170. package/dist/ionic/p-d4862803.entry.js +0 -4
  1171. package/dist/ionic/p-d9edb291.entry.js +0 -4
  1172. package/dist/ionic/p-dc286a59.entry.js +0 -4
  1173. package/dist/ionic/p-df09db21.entry.js +0 -4
  1174. package/dist/ionic/p-e3b70846.system.js +0 -4
  1175. package/dist/ionic/p-ea3ca474.system.js +0 -4
  1176. package/dist/ionic/p-eb4ba253.entry.js +0 -4
  1177. package/dist/ionic/p-ebd641e4.system.entry.js +0 -4
  1178. package/dist/ionic/p-ebe94d15.entry.js +0 -4
  1179. package/dist/ionic/p-eda736d7.entry.js +0 -4
  1180. package/dist/ionic/p-ee17be82.entry.js +0 -4
  1181. package/dist/ionic/p-eee899d5.system.entry.js +0 -4
  1182. package/dist/ionic/p-f116fb3f.system.js +0 -4
  1183. package/dist/ionic/p-f1e11e93.entry.js +0 -4
  1184. package/dist/ionic/p-f25ad420.system.entry.js +0 -4
  1185. package/dist/ionic/p-f44c9c6e.system.entry.js +0 -4
  1186. package/dist/ionic/p-f5be97b8.entry.js +0 -4
  1187. package/dist/ionic/p-f8123284.entry.js +0 -4
  1188. package/dist/ionic/p-f99cf3f7.system.entry.js +0 -4
  1189. package/dist/ionic/p-fff78cd2.system.entry.js +0 -4
  1190. /package/dist/collection/components/{refresher-content/refresher-content.css → input-password-toggle/input-password-toggle.css} +0 -0
@@ -27,7 +27,7 @@ const NAMESPACE = 'ionic';
27
27
  const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: true, experimentalSlotFixes: true, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
28
28
 
29
29
  /*
30
- Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
30
+ Stencil Client Platform v4.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
31
31
  */
32
32
  var __defProp = Object.defineProperty;
33
33
  var __export = (target, all) => {
@@ -41,8 +41,13 @@ var Build = {
41
41
  isTesting: false
42
42
  };
43
43
  var hostRefs = /* @__PURE__ */ new WeakMap();
44
+ var hostRefKeys = [];
44
45
  var getHostRef = (ref) => hostRefs.get(ref);
45
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
46
+ var registerInstance = (lazyInstance, hostRef) => {
47
+ hostRef.$lazyInstance$ = lazyInstance;
48
+ hostRefKeys.push(lazyInstance);
49
+ return hostRefs.set(lazyInstance, hostRef);
50
+ };
46
51
  var registerHost = (hostElement, cmpMeta) => {
47
52
  const hostRef = {
48
53
  $flags$: 0,
@@ -58,9 +63,29 @@ var registerHost = (hostElement, cmpMeta) => {
58
63
  hostElement["s-p"] = [];
59
64
  hostElement["s-rc"] = [];
60
65
  }
66
+ hostRefKeys.push(hostElement);
61
67
  return hostRefs.set(hostElement, hostRef);
62
68
  };
63
69
  var isMemberInElement = (elm, memberName) => memberName in elm;
70
+ function isNodeAttached(node) {
71
+ return node === document || node === document.documentElement || document.contains(node);
72
+ }
73
+ var hostRefCleanup = () => {
74
+ const keysToRemove = [];
75
+ for (const key of hostRefKeys) {
76
+ if (key instanceof Node && !isNodeAttached(key)) {
77
+ keysToRemove.push(key);
78
+ }
79
+ const elem = hostRefs.get(key);
80
+ if (elem && (elem.$hostElement$ && !isNodeAttached(elem.$hostElement$) || elem.$ancestorComponent$ && !isNodeAttached(elem.$ancestorComponent$))) {
81
+ keysToRemove.push(key);
82
+ }
83
+ }
84
+ for (const key of keysToRemove) {
85
+ hostRefs.delete(key);
86
+ hostRefKeys.splice(hostRefKeys.indexOf(key), 1);
87
+ }
88
+ };
64
89
  var consoleError = (e, el) => (0, console.error)(e, el);
65
90
 
66
91
  // src/client/client-load-module.ts
@@ -99,6 +124,7 @@ var CONTENT_REF_ID = "r";
99
124
  var ORG_LOCATION_ID = "o";
100
125
  var SLOT_NODE_ID = "s";
101
126
  var TEXT_NODE_ID = "t";
127
+ var COMMENT_NODE_ID = "c";
102
128
  var HYDRATE_ID = "s-id";
103
129
  var HYDRATED_STYLE_ID = "sty-id";
104
130
  var HYDRATE_CHILD_ID = "c-id";
@@ -256,20 +282,6 @@ var unwrapErr = (result) => {
256
282
  throw result.value;
257
283
  }
258
284
  };
259
- var createTime = (fnName, tagName = "") => {
260
- {
261
- return () => {
262
- return;
263
- };
264
- }
265
- };
266
- var uniqueTime = (key, measureText) => {
267
- {
268
- return () => {
269
- return;
270
- };
271
- }
272
- };
273
285
  var h = (nodeName, vnodeData, ...children) => {
274
286
  let child = null;
275
287
  let key = null;
@@ -381,436 +393,132 @@ var convertToPrivate = (node) => {
381
393
  vnode.$name$ = node.vname;
382
394
  return vnode;
383
395
  };
384
-
385
- // src/runtime/client-hydrate.ts
386
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
387
- const endHydrate = createTime("hydrateClient", tagName);
388
- const shadowRoot = hostElm.shadowRoot;
389
- const childRenderNodes = [];
390
- const slotNodes = [];
391
- const shadowRootNodes = shadowRoot ? [] : null;
392
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
393
- if (!plt.$orgLocNodes$) {
394
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
395
- }
396
- hostElm[HYDRATE_ID] = hostId;
397
- hostElm.removeAttribute(HYDRATE_ID);
398
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
399
- childRenderNodes.map((c) => {
400
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
401
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
402
- const node = c.$elm$;
403
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
404
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
405
- }
406
- if (!shadowRoot) {
407
- node["s-hn"] = tagName;
408
- if (orgLocationNode) {
409
- node["s-ol"] = orgLocationNode;
410
- node["s-ol"]["s-nr"] = node;
411
- }
412
- }
413
- plt.$orgLocNodes$.delete(orgLocationId);
414
- });
415
- if (shadowRoot) {
416
- shadowRootNodes.map((shadowRootNode) => {
417
- if (shadowRootNode) {
418
- shadowRoot.appendChild(shadowRootNode);
396
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
397
+ if (oldValue !== newValue) {
398
+ let isProp = isMemberInElement(elm, memberName);
399
+ let ln = memberName.toLowerCase();
400
+ if (memberName === "class") {
401
+ const classList = elm.classList;
402
+ const oldClasses = parseClassList(oldValue);
403
+ const newClasses = parseClassList(newValue);
404
+ if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
405
+ newClasses.push(elm["s-si"]);
419
406
  }
420
- });
421
- }
422
- endHydrate();
423
- };
424
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
425
- let childNodeType;
426
- let childIdSplt;
427
- let childVNode;
428
- let i2;
429
- if (node.nodeType === 1 /* ElementNode */) {
430
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
431
- if (childNodeType) {
432
- childIdSplt = childNodeType.split(".");
433
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
434
- childVNode = {
435
- $flags$: 0,
436
- $hostId$: childIdSplt[0],
437
- $nodeId$: childIdSplt[1],
438
- $depth$: childIdSplt[2],
439
- $index$: childIdSplt[3],
440
- $tag$: node.tagName.toLowerCase(),
441
- $elm$: node,
442
- $attrs$: null,
443
- $children$: null,
444
- $key$: null,
445
- $name$: null,
446
- $text$: null
447
- };
448
- childRenderNodes.push(childVNode);
449
- node.removeAttribute(HYDRATE_CHILD_ID);
450
- if (!parentVNode.$children$) {
451
- parentVNode.$children$ = [];
407
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
+ } else if (memberName === "style") {
410
+ {
411
+ for (const prop in oldValue) {
412
+ if (!newValue || newValue[prop] == null) {
413
+ if (prop.includes("-")) {
414
+ elm.style.removeProperty(prop);
415
+ } else {
416
+ elm.style[prop] = "";
417
+ }
418
+ }
452
419
  }
453
- parentVNode.$children$[childVNode.$index$] = childVNode;
454
- parentVNode = childVNode;
455
- if (shadowRootNodes && childVNode.$depth$ === "0") {
456
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
420
+ }
421
+ for (const prop in newValue) {
422
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
423
+ if (prop.includes("-")) {
424
+ elm.style.setProperty(prop, newValue[prop]);
425
+ } else {
426
+ elm.style[prop] = newValue[prop];
427
+ }
457
428
  }
458
429
  }
459
- }
460
- if (node.shadowRoot) {
461
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
462
- clientHydrate(
463
- parentVNode,
464
- childRenderNodes,
465
- slotNodes,
466
- shadowRootNodes,
467
- hostElm,
468
- node.shadowRoot.childNodes[i2],
469
- hostId
470
- );
430
+ } else if (memberName === "key") ; else if (memberName === "ref") {
431
+ if (newValue) {
432
+ newValue(elm);
471
433
  }
472
- }
473
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
474
- clientHydrate(
475
- parentVNode,
476
- childRenderNodes,
477
- slotNodes,
478
- shadowRootNodes,
479
- hostElm,
480
- node.childNodes[i2],
481
- hostId
482
- );
483
- }
484
- } else if (node.nodeType === 8 /* CommentNode */) {
485
- childIdSplt = node.nodeValue.split(".");
486
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
487
- childNodeType = childIdSplt[0];
488
- childVNode = {
489
- $flags$: 0,
490
- $hostId$: childIdSplt[1],
491
- $nodeId$: childIdSplt[2],
492
- $depth$: childIdSplt[3],
493
- $index$: childIdSplt[4],
494
- $elm$: node,
495
- $attrs$: null,
496
- $children$: null,
497
- $key$: null,
498
- $name$: null,
499
- $tag$: null,
500
- $text$: null
501
- };
502
- if (childNodeType === TEXT_NODE_ID) {
503
- childVNode.$elm$ = node.nextSibling;
504
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
505
- childVNode.$text$ = childVNode.$elm$.textContent;
506
- childRenderNodes.push(childVNode);
507
- node.remove();
508
- if (!parentVNode.$children$) {
509
- parentVNode.$children$ = [];
510
- }
511
- parentVNode.$children$[childVNode.$index$] = childVNode;
512
- if (shadowRootNodes && childVNode.$depth$ === "0") {
513
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
514
- }
434
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
435
+ if (memberName[2] === "-") {
436
+ memberName = memberName.slice(3);
437
+ } else if (isMemberInElement(win, ln)) {
438
+ memberName = ln.slice(2);
439
+ } else {
440
+ memberName = ln[2] + memberName.slice(3);
441
+ }
442
+ if (oldValue || newValue) {
443
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
444
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
445
+ if (oldValue) {
446
+ plt.rel(elm, memberName, oldValue, capture);
515
447
  }
516
- } else if (childVNode.$hostId$ === hostId) {
517
- if (childNodeType === SLOT_NODE_ID) {
518
- childVNode.$tag$ = "slot";
519
- if (childIdSplt[5]) {
520
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
521
- } else {
522
- node["s-sn"] = "";
523
- }
524
- node["s-sr"] = true;
525
- if (shadowRootNodes) {
526
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
527
- if (childVNode.$name$) {
528
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
529
- }
530
- node.parentNode.insertBefore(childVNode.$elm$, node);
531
- node.remove();
532
- if (childVNode.$depth$ === "0") {
533
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
448
+ if (newValue) {
449
+ plt.ael(elm, memberName, newValue, capture);
450
+ }
451
+ }
452
+ } else {
453
+ const isComplex = isComplexType(newValue);
454
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
455
+ try {
456
+ if (!elm.tagName.includes("-")) {
457
+ const n = newValue == null ? "" : newValue;
458
+ if (memberName === "list") {
459
+ isProp = false;
460
+ } else if (oldValue == null || elm[memberName] != n) {
461
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
462
+ elm[memberName] = n;
463
+ } else {
464
+ elm.setAttribute(memberName, n);
465
+ }
534
466
  }
467
+ } else {
468
+ elm[memberName] = newValue;
535
469
  }
536
- slotNodes.push(childVNode);
537
- if (!parentVNode.$children$) {
538
- parentVNode.$children$ = [];
539
- }
540
- parentVNode.$children$[childVNode.$index$] = childVNode;
541
- } else if (childNodeType === CONTENT_REF_ID) {
542
- if (shadowRootNodes) {
543
- node.remove();
470
+ } catch (e) {
471
+ }
472
+ }
473
+ let xlink = false;
474
+ {
475
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
476
+ memberName = ln;
477
+ xlink = true;
478
+ }
479
+ }
480
+ if (newValue == null || newValue === false) {
481
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
482
+ if (xlink) {
483
+ elm.removeAttributeNS(XLINK_NS, memberName);
544
484
  } else {
545
- hostElm["s-cr"] = node;
546
- node["s-cn"] = true;
485
+ elm.removeAttribute(memberName);
547
486
  }
548
487
  }
488
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
489
+ newValue = newValue === true ? "" : newValue;
490
+ if (xlink) {
491
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
492
+ } else {
493
+ elm.setAttribute(memberName, newValue);
494
+ }
549
495
  }
550
496
  }
551
- } else if (parentVNode && parentVNode.$tag$ === "style") {
552
- const vnode = newVNode(null, node.textContent);
553
- vnode.$elm$ = node;
554
- vnode.$index$ = "0";
555
- parentVNode.$children$ = [vnode];
556
497
  }
557
498
  };
558
- var initializeDocumentHydrate = (node, orgLocNodes) => {
559
- if (node.nodeType === 1 /* ElementNode */) {
560
- let i2 = 0;
561
- if (node.shadowRoot) {
562
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
563
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
564
- }
565
- }
566
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
567
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
568
- }
569
- } else if (node.nodeType === 8 /* CommentNode */) {
570
- const childIdSplt = node.nodeValue.split(".");
571
- if (childIdSplt[0] === ORG_LOCATION_ID) {
572
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
573
- node.nodeValue = "";
574
- node["s-en"] = childIdSplt[3];
575
- }
499
+ var parseClassListRegex = /\s/;
500
+ var parseClassList = (value) => {
501
+ if (typeof value === "object" && "baseVal" in value) {
502
+ value = value.baseVal;
503
+ }
504
+ if (!value) {
505
+ return [];
576
506
  }
507
+ return value.split(parseClassListRegex);
577
508
  };
509
+ var CAPTURE_EVENT_SUFFIX = "Capture";
510
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
578
511
 
579
- // src/runtime/mode.ts
580
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
581
- var setMode = (handler) => modeResolutionChain.push(handler);
582
- var getMode = (ref) => getHostRef(ref).$modeName$;
583
- var parsePropertyValue = (propValue, propType) => {
584
- if (propValue != null && !isComplexType(propValue)) {
585
- if (propType & 4 /* Boolean */) {
586
- return propValue === "false" ? false : propValue === "" || !!propValue;
587
- }
588
- if (propType & 2 /* Number */) {
589
- return parseFloat(propValue);
590
- }
591
- if (propType & 1 /* String */) {
592
- return String(propValue);
593
- }
594
- return propValue;
595
- }
596
- return propValue;
597
- };
598
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
599
-
600
- // src/runtime/event-emitter.ts
601
- var createEvent = (ref, name, flags) => {
602
- const elm = getElement(ref);
603
- return {
604
- emit: (detail) => {
605
- return emitEvent(elm, name, {
606
- bubbles: !!(flags & 4 /* Bubbles */),
607
- composed: !!(flags & 2 /* Composed */),
608
- cancelable: !!(flags & 1 /* Cancellable */),
609
- detail
610
- });
611
- }
612
- };
613
- };
614
- var emitEvent = (elm, name, opts) => {
615
- const ev = plt.ce(name, opts);
616
- elm.dispatchEvent(ev);
617
- return ev;
618
- };
619
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
620
- var registerStyle = (scopeId2, cssText, allowCS) => {
621
- let style = styles.get(scopeId2);
622
- if (supportsConstructableStylesheets && allowCS) {
623
- style = style || new CSSStyleSheet();
624
- if (typeof style === "string") {
625
- style = cssText;
626
- } else {
627
- style.replaceSync(cssText);
628
- }
629
- } else {
630
- style = cssText;
631
- }
632
- styles.set(scopeId2, style);
633
- };
634
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
635
- var _a;
636
- const scopeId2 = getScopeId(cmpMeta, mode);
637
- const style = styles.get(scopeId2);
638
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
639
- if (style) {
640
- if (typeof style === "string") {
641
- styleContainerNode = styleContainerNode.head || styleContainerNode;
642
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
643
- let styleElm;
644
- if (!appliedStyles) {
645
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
646
- }
647
- if (!appliedStyles.has(scopeId2)) {
648
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
649
- styleElm.innerHTML = style;
650
- } else {
651
- styleElm = doc.createElement("style");
652
- styleElm.innerHTML = style;
653
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
654
- if (nonce != null) {
655
- styleElm.setAttribute("nonce", nonce);
656
- }
657
- const injectStyle = (
658
- /**
659
- * we render a scoped component
660
- */
661
- !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
662
- * we are using shadow dom and render the style tag within the shadowRoot
663
- */
664
- cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
665
- );
666
- if (injectStyle) {
667
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
668
- }
669
- }
670
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
671
- styleElm.innerHTML += SLOT_FB_CSS;
672
- }
673
- if (appliedStyles) {
674
- appliedStyles.add(scopeId2);
675
- }
676
- }
677
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
678
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
679
- }
680
- }
681
- return scopeId2;
682
- };
683
- var attachStyles = (hostRef) => {
684
- const cmpMeta = hostRef.$cmpMeta$;
685
- const elm = hostRef.$hostElement$;
686
- const flags = cmpMeta.$flags$;
687
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
688
- const scopeId2 = addStyle(
689
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
690
- cmpMeta,
691
- hostRef.$modeName$
692
- );
693
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
694
- elm["s-sc"] = scopeId2;
695
- elm.classList.add(scopeId2 + "-h");
696
- if (flags & 2 /* scopedCssEncapsulation */) {
697
- elm.classList.add(scopeId2 + "-s");
698
- }
699
- }
700
- endAttachStyles();
701
- };
702
- var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
703
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
704
- if (oldValue !== newValue) {
705
- let isProp = isMemberInElement(elm, memberName);
706
- let ln = memberName.toLowerCase();
707
- if (memberName === "class") {
708
- const classList = elm.classList;
709
- const oldClasses = parseClassList(oldValue);
710
- const newClasses = parseClassList(newValue);
711
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
712
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
713
- } else if (memberName === "style") {
714
- {
715
- for (const prop in oldValue) {
716
- if (!newValue || newValue[prop] == null) {
717
- if (prop.includes("-")) {
718
- elm.style.removeProperty(prop);
719
- } else {
720
- elm.style[prop] = "";
721
- }
722
- }
723
- }
724
- }
725
- for (const prop in newValue) {
726
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
727
- if (prop.includes("-")) {
728
- elm.style.setProperty(prop, newValue[prop]);
729
- } else {
730
- elm.style[prop] = newValue[prop];
731
- }
732
- }
733
- }
734
- } else if (memberName === "key") ; else if (memberName === "ref") {
735
- if (newValue) {
736
- newValue(elm);
737
- }
738
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
739
- if (memberName[2] === "-") {
740
- memberName = memberName.slice(3);
741
- } else if (isMemberInElement(win, ln)) {
742
- memberName = ln.slice(2);
743
- } else {
744
- memberName = ln[2] + memberName.slice(3);
745
- }
746
- if (oldValue || newValue) {
747
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
748
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
749
- if (oldValue) {
750
- plt.rel(elm, memberName, oldValue, capture);
751
- }
752
- if (newValue) {
753
- plt.ael(elm, memberName, newValue, capture);
754
- }
755
- }
756
- } else {
757
- const isComplex = isComplexType(newValue);
758
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
759
- try {
760
- if (!elm.tagName.includes("-")) {
761
- const n = newValue == null ? "" : newValue;
762
- if (memberName === "list") {
763
- isProp = false;
764
- } else if (oldValue == null || elm[memberName] != n) {
765
- elm[memberName] = n;
766
- }
767
- } else {
768
- elm[memberName] = newValue;
769
- }
770
- } catch (e) {
771
- }
772
- }
773
- let xlink = false;
774
- {
775
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
776
- memberName = ln;
777
- xlink = true;
778
- }
779
- }
780
- if (newValue == null || newValue === false) {
781
- if (newValue !== false || elm.getAttribute(memberName) === "") {
782
- if (xlink) {
783
- elm.removeAttributeNS(XLINK_NS, memberName);
784
- } else {
785
- elm.removeAttribute(memberName);
786
- }
787
- }
788
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
789
- newValue = newValue === true ? "" : newValue;
790
- if (xlink) {
791
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
792
- } else {
793
- elm.setAttribute(memberName, newValue);
794
- }
795
- }
796
- }
797
- }
798
- };
799
- var parseClassListRegex = /\s/;
800
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
801
- var CAPTURE_EVENT_SUFFIX = "Capture";
802
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
803
-
804
- // src/runtime/vdom/update-element.ts
805
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
806
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
807
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
808
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
809
- {
810
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
811
- if (!(memberName in newVnodeAttrs)) {
812
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
813
- }
512
+ // src/runtime/vdom/update-element.ts
513
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
514
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
515
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
516
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
517
+ {
518
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
519
+ if (!(memberName in newVnodeAttrs)) {
520
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
521
+ }
814
522
  }
815
523
  }
816
524
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
@@ -923,8 +631,12 @@ var relocateToHostRoot = (parentElm) => {
923
631
  plt.$flags$ |= 1 /* isTmpDisconnected */;
924
632
  const host = parentElm.closest(hostTagName.toLowerCase());
925
633
  if (host != null) {
926
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
927
- const childNodeArray = Array.from(parentElm.childNodes);
634
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
635
+ (ref) => ref["s-cr"]
636
+ );
637
+ const childNodeArray = Array.from(
638
+ parentElm.__childNodes || parentElm.childNodes
639
+ );
928
640
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
929
641
  if (childNode["s-sh"] != null) {
930
642
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -937,7 +649,7 @@ var relocateToHostRoot = (parentElm) => {
937
649
  };
938
650
  var putBackInOriginalLocation = (parentElm, recursive) => {
939
651
  plt.$flags$ |= 1 /* isTmpDisconnected */;
940
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
652
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
941
653
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
942
654
  let node = parentElm;
943
655
  while (node = node.nextSibling) {
@@ -1156,7 +868,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1156
868
  }
1157
869
  };
1158
870
  var updateFallbackSlotVisibility = (elm) => {
1159
- const childNodes = elm.childNodes;
871
+ const childNodes = elm.__childNodes || elm.childNodes;
1160
872
  for (const childNode of childNodes) {
1161
873
  if (childNode.nodeType === 1 /* ElementNode */) {
1162
874
  if (childNode["s-sr"]) {
@@ -1169,7 +881,7 @@ var updateFallbackSlotVisibility = (elm) => {
1169
881
  childNode.hidden = true;
1170
882
  break;
1171
883
  }
1172
- } else {
884
+ } else if (slotName === siblingNode["s-sn"]) {
1173
885
  if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1174
886
  childNode.hidden = true;
1175
887
  break;
@@ -1187,9 +899,10 @@ var markSlotContentForRelocation = (elm) => {
1187
899
  let node;
1188
900
  let hostContentNodes;
1189
901
  let j;
1190
- for (const childNode of elm.childNodes) {
902
+ const children = elm.__childNodes || elm.childNodes;
903
+ for (const childNode of children) {
1191
904
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1192
- hostContentNodes = node.parentNode.childNodes;
905
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1193
906
  const slotName = childNode["s-sn"];
1194
907
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1195
908
  node = hostContentNodes[j];
@@ -1276,9 +989,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1276
989
  if (element && parent && element.nodeType === 1 /* ElementNode */) {
1277
990
  const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1278
991
  if (scopeIds.size) {
1279
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
992
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
1280
993
  if (element["s-ol"] || iterateChildNodes) {
1281
- for (const childNode of Array.from(element.childNodes)) {
994
+ for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
1282
995
  updateElementScopeIds(childNode, element, true);
1283
996
  }
1284
997
  }
@@ -1367,29 +1080,906 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1367
1080
  if (isInitialLoad) {
1368
1081
  nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1369
1082
  }
1370
- nodeToRelocate.hidden = true;
1083
+ nodeToRelocate.hidden = true;
1084
+ }
1085
+ }
1086
+ }
1087
+ }
1088
+ if (checkSlotFallbackVisibility) {
1089
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1090
+ }
1091
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1092
+ relocateNodes.length = 0;
1093
+ }
1094
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1095
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1096
+ for (const childNode of children) {
1097
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1098
+ if (isInitialLoad && childNode["s-ih"] == null) {
1099
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1100
+ }
1101
+ childNode.hidden = true;
1102
+ }
1103
+ }
1104
+ }
1105
+ contentRef = void 0;
1106
+ };
1107
+
1108
+ // src/runtime/dom-extras.ts
1109
+ var patchPseudoShadowDom = (hostElementPrototype) => {
1110
+ patchCloneNode(hostElementPrototype);
1111
+ patchSlotAppendChild(hostElementPrototype);
1112
+ patchSlotAppend(hostElementPrototype);
1113
+ patchSlotPrepend(hostElementPrototype);
1114
+ patchSlotInsertAdjacentElement(hostElementPrototype);
1115
+ patchSlotInsertAdjacentHTML(hostElementPrototype);
1116
+ patchSlotInsertAdjacentText(hostElementPrototype);
1117
+ patchTextContent(hostElementPrototype);
1118
+ patchChildSlotNodes(hostElementPrototype);
1119
+ patchSlotRemoveChild(hostElementPrototype);
1120
+ };
1121
+ var patchCloneNode = (HostElementPrototype) => {
1122
+ const orgCloneNode = HostElementPrototype.cloneNode;
1123
+ HostElementPrototype.cloneNode = function(deep) {
1124
+ const srcNode = this;
1125
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1126
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1127
+ if (!isShadowDom && deep) {
1128
+ let i2 = 0;
1129
+ let slotted, nonStencilNode;
1130
+ const stencilPrivates = [
1131
+ "s-id",
1132
+ "s-cr",
1133
+ "s-lr",
1134
+ "s-rc",
1135
+ "s-sc",
1136
+ "s-p",
1137
+ "s-cn",
1138
+ "s-sr",
1139
+ "s-sn",
1140
+ "s-hn",
1141
+ "s-ol",
1142
+ "s-nr",
1143
+ "s-si",
1144
+ "s-rf",
1145
+ "s-scs"
1146
+ ];
1147
+ const childNodes = this.__childNodes || this.childNodes;
1148
+ for (; i2 < childNodes.length; i2++) {
1149
+ slotted = childNodes[i2]["s-nr"];
1150
+ nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
1151
+ if (slotted) {
1152
+ if (clonedNode.__appendChild) {
1153
+ clonedNode.__appendChild(slotted.cloneNode(true));
1154
+ } else {
1155
+ clonedNode.appendChild(slotted.cloneNode(true));
1156
+ }
1157
+ }
1158
+ if (nonStencilNode) {
1159
+ clonedNode.appendChild(childNodes[i2].cloneNode(true));
1160
+ }
1161
+ }
1162
+ }
1163
+ return clonedNode;
1164
+ };
1165
+ };
1166
+ var patchSlotAppendChild = (HostElementPrototype) => {
1167
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1168
+ HostElementPrototype.appendChild = function(newChild) {
1169
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1170
+ const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
1171
+ if (slotNode) {
1172
+ addSlotRelocateNode(newChild, slotNode);
1173
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1174
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1175
+ const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1176
+ updateFallbackSlotVisibility(this);
1177
+ return insertedNode;
1178
+ }
1179
+ return this.__appendChild(newChild);
1180
+ };
1181
+ };
1182
+ var patchSlotRemoveChild = (ElementPrototype) => {
1183
+ ElementPrototype.__removeChild = ElementPrototype.removeChild;
1184
+ ElementPrototype.removeChild = function(toRemove) {
1185
+ if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1186
+ const childNodes = this.__childNodes || this.childNodes;
1187
+ const slotNode = getHostSlotNode(childNodes, toRemove["s-sn"], this.tagName);
1188
+ if (slotNode && toRemove.isConnected) {
1189
+ toRemove.remove();
1190
+ updateFallbackSlotVisibility(this);
1191
+ return;
1192
+ }
1193
+ }
1194
+ return this.__removeChild(toRemove);
1195
+ };
1196
+ };
1197
+ var patchSlotPrepend = (HostElementPrototype) => {
1198
+ HostElementPrototype.__prepend = HostElementPrototype.prepend;
1199
+ HostElementPrototype.prepend = function(...newChildren) {
1200
+ newChildren.forEach((newChild) => {
1201
+ if (typeof newChild === "string") {
1202
+ newChild = this.ownerDocument.createTextNode(newChild);
1203
+ }
1204
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1205
+ const childNodes = this.__childNodes || this.childNodes;
1206
+ const slotNode = getHostSlotNode(childNodes, slotName, this.tagName);
1207
+ if (slotNode) {
1208
+ addSlotRelocateNode(newChild, slotNode, true);
1209
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1210
+ const appendAfter = slotChildNodes[0];
1211
+ return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1212
+ }
1213
+ if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1214
+ newChild.hidden = true;
1215
+ }
1216
+ return HostElementPrototype.__prepend(newChild);
1217
+ });
1218
+ };
1219
+ };
1220
+ var patchSlotAppend = (HostElementPrototype) => {
1221
+ HostElementPrototype.__append = HostElementPrototype.append;
1222
+ HostElementPrototype.append = function(...newChildren) {
1223
+ newChildren.forEach((newChild) => {
1224
+ if (typeof newChild === "string") {
1225
+ newChild = this.ownerDocument.createTextNode(newChild);
1226
+ }
1227
+ this.appendChild(newChild);
1228
+ });
1229
+ };
1230
+ };
1231
+ var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1232
+ const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1233
+ HostElementPrototype.insertAdjacentHTML = function(position, text) {
1234
+ if (position !== "afterbegin" && position !== "beforeend") {
1235
+ return originalInsertAdjacentHtml.call(this, position, text);
1236
+ }
1237
+ const container = this.ownerDocument.createElement("_");
1238
+ let node;
1239
+ container.innerHTML = text;
1240
+ if (position === "afterbegin") {
1241
+ while (node = container.firstChild) {
1242
+ this.prepend(node);
1243
+ }
1244
+ } else if (position === "beforeend") {
1245
+ while (node = container.firstChild) {
1246
+ this.append(node);
1247
+ }
1248
+ }
1249
+ };
1250
+ };
1251
+ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
1252
+ HostElementPrototype.insertAdjacentText = function(position, text) {
1253
+ this.insertAdjacentHTML(position, text);
1254
+ };
1255
+ };
1256
+ var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
1257
+ const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
1258
+ HostElementPrototype.insertAdjacentElement = function(position, element) {
1259
+ if (position !== "afterbegin" && position !== "beforeend") {
1260
+ return originalInsertAdjacentElement.call(this, position, element);
1261
+ }
1262
+ if (position === "afterbegin") {
1263
+ this.prepend(element);
1264
+ return element;
1265
+ } else if (position === "beforeend") {
1266
+ this.append(element);
1267
+ return element;
1268
+ }
1269
+ return element;
1270
+ };
1271
+ };
1272
+ var patchTextContent = (hostElementPrototype) => {
1273
+ patchHostOriginalAccessor("textContent", hostElementPrototype);
1274
+ Object.defineProperty(hostElementPrototype, "textContent", {
1275
+ get: function() {
1276
+ let text = "";
1277
+ const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1278
+ childNodes.forEach((node) => text += node.textContent || "");
1279
+ return text;
1280
+ },
1281
+ set: function(value) {
1282
+ const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1283
+ childNodes.forEach((node) => {
1284
+ if (node["s-ol"]) node["s-ol"].remove();
1285
+ node.remove();
1286
+ });
1287
+ this.insertAdjacentHTML("beforeend", value);
1288
+ }
1289
+ });
1290
+ };
1291
+ var patchChildSlotNodes = (elm) => {
1292
+ class FakeNodeList extends Array {
1293
+ item(n) {
1294
+ return this[n];
1295
+ }
1296
+ }
1297
+ patchHostOriginalAccessor("children", elm);
1298
+ Object.defineProperty(elm, "children", {
1299
+ get() {
1300
+ return this.childNodes.filter((n) => n.nodeType === 1);
1301
+ }
1302
+ });
1303
+ Object.defineProperty(elm, "childElementCount", {
1304
+ get() {
1305
+ return this.children.length;
1306
+ }
1307
+ });
1308
+ patchHostOriginalAccessor("firstChild", elm);
1309
+ Object.defineProperty(elm, "firstChild", {
1310
+ get() {
1311
+ return this.childNodes[0];
1312
+ }
1313
+ });
1314
+ patchHostOriginalAccessor("lastChild", elm);
1315
+ Object.defineProperty(elm, "lastChild", {
1316
+ get() {
1317
+ return this.childNodes[this.childNodes.length - 1];
1318
+ }
1319
+ });
1320
+ patchHostOriginalAccessor("childNodes", elm);
1321
+ Object.defineProperty(elm, "childNodes", {
1322
+ get() {
1323
+ var _a, _b;
1324
+ if (!plt.$flags$ || !((_a = getHostRef(this)) == null ? void 0 : _a.$flags$) || (plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && ((_b = getHostRef(this)) == null ? void 0 : _b.$flags$) & 2 /* hasRendered */) {
1325
+ const result = new FakeNodeList();
1326
+ const nodes = getSlottedChildNodes(this.__childNodes);
1327
+ result.push(...nodes);
1328
+ return result;
1329
+ }
1330
+ return FakeNodeList.from(this.__childNodes);
1331
+ }
1332
+ });
1333
+ };
1334
+ var patchNextPrev = (node) => {
1335
+ if (!node || node.__nextSibling || !globalThis.Node) return;
1336
+ patchNextSibling(node);
1337
+ patchPreviousSibling(node);
1338
+ if (node.nodeType === Node.ELEMENT_NODE) {
1339
+ patchNextElementSibling(node);
1340
+ patchPreviousElementSibling(node);
1341
+ }
1342
+ };
1343
+ var patchNextSibling = (node) => {
1344
+ if (!node || node.__nextSibling) return;
1345
+ patchHostOriginalAccessor("nextSibling", node);
1346
+ Object.defineProperty(node, "nextSibling", {
1347
+ get: function() {
1348
+ var _a;
1349
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1350
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1351
+ if (parentNodes && index > -1) {
1352
+ return parentNodes[index + 1];
1353
+ }
1354
+ return this.__nextSibling;
1355
+ }
1356
+ });
1357
+ };
1358
+ var patchNextElementSibling = (element) => {
1359
+ if (!element || element.__nextElementSibling) return;
1360
+ patchHostOriginalAccessor("nextElementSibling", element);
1361
+ Object.defineProperty(element, "nextElementSibling", {
1362
+ get: function() {
1363
+ var _a;
1364
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1365
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1366
+ if (parentEles && index > -1) {
1367
+ return parentEles[index + 1];
1368
+ }
1369
+ return this.__nextElementSibling;
1370
+ }
1371
+ });
1372
+ };
1373
+ var patchPreviousSibling = (node) => {
1374
+ if (!node || node.__previousSibling) return;
1375
+ patchHostOriginalAccessor("previousSibling", node);
1376
+ Object.defineProperty(node, "previousSibling", {
1377
+ get: function() {
1378
+ var _a;
1379
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1380
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1381
+ if (parentNodes && index > -1) {
1382
+ return parentNodes[index - 1];
1383
+ }
1384
+ return this.__previousSibling;
1385
+ }
1386
+ });
1387
+ };
1388
+ var patchPreviousElementSibling = (element) => {
1389
+ if (!element || element.__previousElementSibling) return;
1390
+ patchHostOriginalAccessor("previousElementSibling", element);
1391
+ Object.defineProperty(element, "previousElementSibling", {
1392
+ get: function() {
1393
+ var _a;
1394
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1395
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1396
+ if (parentNodes && index > -1) {
1397
+ return parentNodes[index - 1];
1398
+ }
1399
+ return this.__previousElementSibling;
1400
+ }
1401
+ });
1402
+ };
1403
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1404
+ var validNodesPatches = [
1405
+ "childNodes",
1406
+ "firstChild",
1407
+ "lastChild",
1408
+ "nextSibling",
1409
+ "previousSibling",
1410
+ "textContent"
1411
+ ];
1412
+ function patchHostOriginalAccessor(accessorName, node) {
1413
+ let accessor;
1414
+ if (validElementPatches.includes(accessorName)) {
1415
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1416
+ } else if (validNodesPatches.includes(accessorName)) {
1417
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1418
+ }
1419
+ if (!accessor) {
1420
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1421
+ }
1422
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1423
+ }
1424
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
1425
+ let slottedNodeLocation;
1426
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
1427
+ slottedNodeLocation = newChild["s-ol"];
1428
+ } else {
1429
+ slottedNodeLocation = document.createTextNode("");
1430
+ slottedNodeLocation["s-nr"] = newChild;
1431
+ }
1432
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
1433
+ const parent = slotNode["s-cr"].parentNode;
1434
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
1435
+ if (typeof position !== "undefined") {
1436
+ {
1437
+ slottedNodeLocation["s-oo"] = position;
1438
+ const childNodes = parent.__childNodes || parent.childNodes;
1439
+ const slotRelocateNodes = [slottedNodeLocation];
1440
+ childNodes.forEach((n) => {
1441
+ if (n["s-nr"]) slotRelocateNodes.push(n);
1442
+ });
1443
+ slotRelocateNodes.sort((a, b) => {
1444
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
1445
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
1446
+ return 0;
1447
+ });
1448
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
1449
+ }
1450
+ } else {
1451
+ appendMethod.call(parent, slottedNodeLocation);
1452
+ }
1453
+ newChild["s-ol"] = slottedNodeLocation;
1454
+ newChild["s-sh"] = slotNode["s-hn"];
1455
+ };
1456
+ var getSlottedChildNodes = (childNodes) => {
1457
+ const result = [];
1458
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
1459
+ const slottedNode = childNodes[i2]["s-nr"];
1460
+ if (slottedNode && slottedNode.isConnected) {
1461
+ result.push(slottedNode);
1462
+ }
1463
+ }
1464
+ return result;
1465
+ };
1466
+ var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
1467
+ var getHostSlotNode = (childNodes, slotName, hostName) => {
1468
+ let i2 = 0;
1469
+ let childNode;
1470
+ for (; i2 < childNodes.length; i2++) {
1471
+ childNode = childNodes[i2];
1472
+ if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
1473
+ return childNode;
1474
+ }
1475
+ childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
1476
+ if (childNode) {
1477
+ return childNode;
1478
+ }
1479
+ }
1480
+ return null;
1481
+ };
1482
+ var getHostSlotChildNodes = (n, slotName) => {
1483
+ const childNodes = [n];
1484
+ while ((n = n.nextSibling) && n["s-sn"] === slotName) {
1485
+ childNodes.push(n);
1486
+ }
1487
+ return childNodes;
1488
+ };
1489
+ var createTime = (fnName, tagName = "") => {
1490
+ {
1491
+ return () => {
1492
+ return;
1493
+ };
1494
+ }
1495
+ };
1496
+ var uniqueTime = (key, measureText) => {
1497
+ {
1498
+ return () => {
1499
+ return;
1500
+ };
1501
+ }
1502
+ };
1503
+
1504
+ // src/runtime/client-hydrate.ts
1505
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1506
+ const endHydrate = createTime("hydrateClient", tagName);
1507
+ const shadowRoot = hostElm.shadowRoot;
1508
+ const childRenderNodes = [];
1509
+ const slotNodes = [];
1510
+ const slottedNodes = [];
1511
+ const shadowRootNodes = shadowRoot ? [] : null;
1512
+ const vnode = newVNode(tagName, null);
1513
+ vnode.$elm$ = hostElm;
1514
+ if (!plt.$orgLocNodes$) {
1515
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1516
+ }
1517
+ hostElm[HYDRATE_ID] = hostId;
1518
+ hostElm.removeAttribute(HYDRATE_ID);
1519
+ hostRef.$vnode$ = clientHydrate(
1520
+ vnode,
1521
+ childRenderNodes,
1522
+ slotNodes,
1523
+ shadowRootNodes,
1524
+ hostElm,
1525
+ hostElm,
1526
+ hostId,
1527
+ slottedNodes
1528
+ );
1529
+ let crIndex = 0;
1530
+ const crLength = childRenderNodes.length;
1531
+ let childRenderNode;
1532
+ for (crIndex; crIndex < crLength; crIndex++) {
1533
+ childRenderNode = childRenderNodes[crIndex];
1534
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1535
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1536
+ const node = childRenderNode.$elm$;
1537
+ if (!shadowRoot) {
1538
+ node["s-hn"] = tagName.toUpperCase();
1539
+ if (childRenderNode.$tag$ === "slot") {
1540
+ node["s-cr"] = hostElm["s-cr"];
1541
+ }
1542
+ }
1543
+ if (orgLocationNode && orgLocationNode.isConnected) {
1544
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
1545
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1546
+ }
1547
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1548
+ if (!shadowRoot) {
1549
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1550
+ }
1551
+ }
1552
+ plt.$orgLocNodes$.delete(orgLocationId);
1553
+ }
1554
+ const hosts = [];
1555
+ let snIndex = 0;
1556
+ const snLen = slottedNodes.length;
1557
+ let slotGroup;
1558
+ let snGroupIdx;
1559
+ let snGroupLen;
1560
+ let slottedItem;
1561
+ for (snIndex; snIndex < snLen; snIndex++) {
1562
+ slotGroup = slottedNodes[snIndex];
1563
+ if (!slotGroup || !slotGroup.length) continue;
1564
+ snGroupLen = slotGroup.length;
1565
+ snGroupIdx = 0;
1566
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1567
+ slottedItem = slotGroup[snGroupIdx];
1568
+ if (!hosts[slottedItem.hostId]) {
1569
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1570
+ }
1571
+ if (!hosts[slottedItem.hostId]) continue;
1572
+ const hostEle = hosts[slottedItem.hostId];
1573
+ if (!hostEle.shadowRoot || !shadowRoot) {
1574
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1575
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1576
+ slottedItem.slot["s-cr"] = hostEle;
1577
+ } else {
1578
+ const hostChildren = hostEle.__childNodes || hostEle.childNodes;
1579
+ slottedItem.slot["s-cr"] = hostChildren[0];
1580
+ }
1581
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1582
+ {
1583
+ patchNextPrev(slottedItem.node);
1584
+ }
1585
+ }
1586
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1587
+ hostEle.appendChild(slottedItem.node);
1588
+ }
1589
+ }
1590
+ }
1591
+ if (shadowRoot) {
1592
+ let rnIdex = 0;
1593
+ const rnLen = shadowRootNodes.length;
1594
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
1595
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1596
+ }
1597
+ Array.from(hostElm.childNodes).forEach((node) => {
1598
+ if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1599
+ node.parentNode.removeChild(node);
1600
+ }
1601
+ });
1602
+ }
1603
+ hostRef.$hostElement$ = hostElm;
1604
+ endHydrate();
1605
+ };
1606
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1607
+ let childNodeType;
1608
+ let childIdSplt;
1609
+ let childVNode;
1610
+ let i2;
1611
+ const scopeId2 = hostElm["s-sc"];
1612
+ if (node.nodeType === 1 /* ElementNode */) {
1613
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1614
+ if (childNodeType) {
1615
+ childIdSplt = childNodeType.split(".");
1616
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1617
+ childVNode = createSimpleVNode({
1618
+ $flags$: 0,
1619
+ $hostId$: childIdSplt[0],
1620
+ $nodeId$: childIdSplt[1],
1621
+ $depth$: childIdSplt[2],
1622
+ $index$: childIdSplt[3],
1623
+ $tag$: node.tagName.toLowerCase(),
1624
+ $elm$: node,
1625
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1626
+ // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1627
+ $attrs$: { class: node.className }
1628
+ });
1629
+ childRenderNodes.push(childVNode);
1630
+ node.removeAttribute(HYDRATE_CHILD_ID);
1631
+ if (!parentVNode.$children$) {
1632
+ parentVNode.$children$ = [];
1633
+ }
1634
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1635
+ if (typeof slotName === "string") {
1636
+ if (childVNode.$tag$ === "slot-fb") {
1637
+ addSlot(
1638
+ slotName,
1639
+ childIdSplt[2],
1640
+ childVNode,
1641
+ node,
1642
+ parentVNode,
1643
+ childRenderNodes,
1644
+ slotNodes,
1645
+ shadowRootNodes,
1646
+ slottedNodes
1647
+ );
1648
+ }
1649
+ childVNode.$elm$["s-sn"] = slotName;
1650
+ childVNode.$elm$.removeAttribute("s-sn");
1651
+ }
1652
+ if (childVNode.$index$ !== void 0) {
1653
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1654
+ }
1655
+ if (scopeId2) node["s-si"] = scopeId2;
1656
+ parentVNode = childVNode;
1657
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1658
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1659
+ }
1660
+ }
1661
+ }
1662
+ if (node.shadowRoot) {
1663
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1664
+ clientHydrate(
1665
+ parentVNode,
1666
+ childRenderNodes,
1667
+ slotNodes,
1668
+ shadowRootNodes,
1669
+ hostElm,
1670
+ node.shadowRoot.childNodes[i2],
1671
+ hostId,
1672
+ slottedNodes
1673
+ );
1674
+ }
1675
+ }
1676
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1677
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1678
+ clientHydrate(
1679
+ parentVNode,
1680
+ childRenderNodes,
1681
+ slotNodes,
1682
+ shadowRootNodes,
1683
+ hostElm,
1684
+ nonShadowNodes[i2],
1685
+ hostId,
1686
+ slottedNodes
1687
+ );
1688
+ }
1689
+ } else if (node.nodeType === 8 /* CommentNode */) {
1690
+ childIdSplt = node.nodeValue.split(".");
1691
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1692
+ childNodeType = childIdSplt[0];
1693
+ childVNode = createSimpleVNode({
1694
+ $hostId$: childIdSplt[1],
1695
+ $nodeId$: childIdSplt[2],
1696
+ $depth$: childIdSplt[3],
1697
+ $index$: childIdSplt[4] || "0",
1698
+ $elm$: node,
1699
+ $attrs$: null,
1700
+ $children$: null,
1701
+ $key$: null,
1702
+ $name$: null,
1703
+ $tag$: null,
1704
+ $text$: null
1705
+ });
1706
+ if (childNodeType === TEXT_NODE_ID) {
1707
+ childVNode.$elm$ = node.nextSibling;
1708
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1709
+ childVNode.$text$ = childVNode.$elm$.textContent;
1710
+ childRenderNodes.push(childVNode);
1711
+ node.remove();
1712
+ if (hostId === childVNode.$hostId$) {
1713
+ if (!parentVNode.$children$) {
1714
+ parentVNode.$children$ = [];
1715
+ }
1716
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1717
+ }
1718
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1719
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1720
+ }
1721
+ }
1722
+ } else if (childNodeType === COMMENT_NODE_ID) {
1723
+ childVNode.$elm$ = node.nextSibling;
1724
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1725
+ childRenderNodes.push(childVNode);
1726
+ node.remove();
1727
+ }
1728
+ } else if (childVNode.$hostId$ === hostId) {
1729
+ if (childNodeType === SLOT_NODE_ID) {
1730
+ childVNode.$tag$ = "slot";
1731
+ const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1732
+ addSlot(
1733
+ slotName,
1734
+ childIdSplt[2],
1735
+ childVNode,
1736
+ node,
1737
+ parentVNode,
1738
+ childRenderNodes,
1739
+ slotNodes,
1740
+ shadowRootNodes,
1741
+ slottedNodes
1742
+ );
1743
+ } else if (childNodeType === CONTENT_REF_ID) {
1744
+ if (shadowRootNodes) {
1745
+ node.remove();
1746
+ } else {
1747
+ hostElm["s-cr"] = node;
1748
+ node["s-cn"] = true;
1749
+ }
1750
+ }
1751
+ }
1752
+ }
1753
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1754
+ const vnode = newVNode(null, node.textContent);
1755
+ vnode.$elm$ = node;
1756
+ vnode.$index$ = "0";
1757
+ parentVNode.$children$ = [vnode];
1758
+ }
1759
+ return parentVNode;
1760
+ };
1761
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1762
+ if (node.nodeType === 1 /* ElementNode */) {
1763
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1764
+ if (componentId) {
1765
+ orgLocNodes.set(componentId, node);
1766
+ }
1767
+ let i2 = 0;
1768
+ if (node.shadowRoot) {
1769
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1770
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1771
+ }
1772
+ }
1773
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1774
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1775
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1776
+ }
1777
+ } else if (node.nodeType === 8 /* CommentNode */) {
1778
+ const childIdSplt = node.nodeValue.split(".");
1779
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1780
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1781
+ node.nodeValue = "";
1782
+ node["s-en"] = childIdSplt[3];
1783
+ }
1784
+ }
1785
+ };
1786
+ var createSimpleVNode = (vnode) => {
1787
+ const defaultVNode = {
1788
+ $flags$: 0,
1789
+ $hostId$: null,
1790
+ $nodeId$: null,
1791
+ $depth$: null,
1792
+ $index$: "0",
1793
+ $elm$: null,
1794
+ $attrs$: null,
1795
+ $children$: null,
1796
+ $key$: null,
1797
+ $name$: null,
1798
+ $tag$: null,
1799
+ $text$: null
1800
+ };
1801
+ return { ...defaultVNode, ...vnode };
1802
+ };
1803
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1804
+ node["s-sr"] = true;
1805
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1806
+ if (shadowRootNodes) {
1807
+ const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1808
+ if (childVNode.$name$) {
1809
+ childVNode.$elm$.setAttribute("name", slotName);
1810
+ }
1811
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1812
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1813
+ } else {
1814
+ node.parentNode.insertBefore(childVNode.$elm$, node);
1815
+ }
1816
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1817
+ node.remove();
1818
+ if (childVNode.$depth$ === "0") {
1819
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1820
+ }
1821
+ } else {
1822
+ const slot = childVNode.$elm$;
1823
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1824
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1825
+ if (shouldMove) {
1826
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1827
+ }
1828
+ childRenderNodes.push(childVNode);
1829
+ }
1830
+ slotNodes.push(childVNode);
1831
+ if (!parentVNode.$children$) {
1832
+ parentVNode.$children$ = [];
1833
+ }
1834
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1835
+ }
1836
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1837
+ let slottedNode = slotNode.nextSibling;
1838
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1839
+ 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 */))) {
1840
+ slottedNode["s-sn"] = slotName;
1841
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1842
+ slottedNode = slottedNode.nextSibling;
1843
+ }
1844
+ };
1845
+
1846
+ // src/runtime/mode.ts
1847
+ var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
1848
+ var setMode = (handler) => modeResolutionChain.push(handler);
1849
+ var getMode = (ref) => getHostRef(ref).$modeName$;
1850
+ var parsePropertyValue = (propValue, propType) => {
1851
+ if (propValue != null && !isComplexType(propValue)) {
1852
+ if (propType & 4 /* Boolean */) {
1853
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1854
+ }
1855
+ if (propType & 2 /* Number */) {
1856
+ return parseFloat(propValue);
1857
+ }
1858
+ if (propType & 1 /* String */) {
1859
+ return String(propValue);
1860
+ }
1861
+ return propValue;
1862
+ }
1863
+ return propValue;
1864
+ };
1865
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1866
+
1867
+ // src/runtime/event-emitter.ts
1868
+ var createEvent = (ref, name, flags) => {
1869
+ const elm = getElement(ref);
1870
+ return {
1871
+ emit: (detail) => {
1872
+ return emitEvent(elm, name, {
1873
+ bubbles: !!(flags & 4 /* Bubbles */),
1874
+ composed: !!(flags & 2 /* Composed */),
1875
+ cancelable: !!(flags & 1 /* Cancellable */),
1876
+ detail
1877
+ });
1878
+ }
1879
+ };
1880
+ };
1881
+ var emitEvent = (elm, name, opts) => {
1882
+ const ev = plt.ce(name, opts);
1883
+ elm.dispatchEvent(ev);
1884
+ return ev;
1885
+ };
1886
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1887
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1888
+ let style = styles.get(scopeId2);
1889
+ if (supportsConstructableStylesheets && allowCS) {
1890
+ style = style || new CSSStyleSheet();
1891
+ if (typeof style === "string") {
1892
+ style = cssText;
1893
+ } else {
1894
+ style.replaceSync(cssText);
1895
+ }
1896
+ } else {
1897
+ style = cssText;
1898
+ }
1899
+ styles.set(scopeId2, style);
1900
+ };
1901
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1902
+ var _a;
1903
+ const scopeId2 = getScopeId(cmpMeta, mode);
1904
+ const style = styles.get(scopeId2);
1905
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1906
+ if (style) {
1907
+ if (typeof style === "string") {
1908
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1909
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1910
+ let styleElm;
1911
+ if (!appliedStyles) {
1912
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1913
+ }
1914
+ if (!appliedStyles.has(scopeId2)) {
1915
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1916
+ styleElm.innerHTML = style;
1917
+ } else {
1918
+ styleElm = doc.createElement("style");
1919
+ styleElm.innerHTML = style;
1920
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1921
+ if (nonce != null) {
1922
+ styleElm.setAttribute("nonce", nonce);
1923
+ }
1924
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1925
+ if (styleContainerNode.nodeName === "HEAD") {
1926
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1927
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1928
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1929
+ } else if ("host" in styleContainerNode) {
1930
+ if (supportsConstructableStylesheets) {
1931
+ const stylesheet = new CSSStyleSheet();
1932
+ stylesheet.replaceSync(style);
1933
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1934
+ } else {
1935
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1936
+ if (existingStyleContainer) {
1937
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1938
+ } else {
1939
+ styleContainerNode.prepend(styleElm);
1940
+ }
1941
+ }
1942
+ } else {
1943
+ styleContainerNode.append(styleElm);
1944
+ }
1945
+ }
1946
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1947
+ styleContainerNode.insertBefore(styleElm, null);
1371
1948
  }
1372
1949
  }
1950
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1951
+ styleElm.innerHTML += SLOT_FB_CSS;
1952
+ }
1953
+ if (appliedStyles) {
1954
+ appliedStyles.add(scopeId2);
1955
+ }
1373
1956
  }
1957
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1958
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1374
1959
  }
1375
- if (checkSlotFallbackVisibility) {
1376
- updateFallbackSlotVisibility(rootVnode.$elm$);
1377
- }
1378
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1379
- relocateNodes.length = 0;
1380
1960
  }
1381
- if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1382
- for (const childNode of rootVnode.$elm$.childNodes) {
1383
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1384
- if (isInitialLoad && childNode["s-ih"] == null) {
1385
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1386
- }
1387
- childNode.hidden = true;
1388
- }
1961
+ return scopeId2;
1962
+ };
1963
+ var attachStyles = (hostRef) => {
1964
+ const cmpMeta = hostRef.$cmpMeta$;
1965
+ const elm = hostRef.$hostElement$;
1966
+ const flags = cmpMeta.$flags$;
1967
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1968
+ const scopeId2 = addStyle(
1969
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1970
+ cmpMeta,
1971
+ hostRef.$modeName$
1972
+ );
1973
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1974
+ elm["s-sc"] = scopeId2;
1975
+ elm.classList.add(scopeId2 + "-h");
1976
+ if (flags & 2 /* scopedCssEncapsulation */) {
1977
+ elm.classList.add(scopeId2 + "-s");
1389
1978
  }
1390
1979
  }
1391
- contentRef = void 0;
1980
+ endAttachStyles();
1392
1981
  };
1982
+ var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1393
1983
 
1394
1984
  // src/runtime/update-component.ts
1395
1985
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -1617,16 +2207,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1617
2207
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1618
2208
  members.map(([memberName, [memberFlags]]) => {
1619
2209
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1620
- Object.defineProperty(prototype, memberName, {
1621
- get() {
1622
- return getValue(this, memberName);
1623
- },
1624
- set(newValue) {
1625
- setValue(this, memberName, newValue, cmpMeta);
1626
- },
1627
- configurable: true,
1628
- enumerable: true
1629
- });
2210
+ if ((memberFlags & 2048 /* Getter */) === 0) {
2211
+ Object.defineProperty(prototype, memberName, {
2212
+ get() {
2213
+ return getValue(this, memberName);
2214
+ },
2215
+ set(newValue) {
2216
+ setValue(this, memberName, newValue, cmpMeta);
2217
+ },
2218
+ configurable: true,
2219
+ enumerable: true
2220
+ });
2221
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
2222
+ {
2223
+ Object.defineProperty(prototype, memberName, {
2224
+ get() {
2225
+ const ref = getHostRef(this);
2226
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2227
+ if (!instance) return;
2228
+ return instance[memberName];
2229
+ },
2230
+ configurable: true,
2231
+ enumerable: true
2232
+ });
2233
+ }
2234
+ if (memberFlags & 4096 /* Setter */) {
2235
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
2236
+ Object.defineProperty(prototype, memberName, {
2237
+ set(newValue) {
2238
+ const ref = getHostRef(this);
2239
+ if (origSetter) {
2240
+ const currentValue = ref.$hostElement$[memberName];
2241
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2242
+ ref.$instanceValues$.set(memberName, currentValue);
2243
+ }
2244
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
2245
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
2246
+ return;
2247
+ }
2248
+ if (!ref) return;
2249
+ const setterSetVal = () => {
2250
+ const currentValue = ref.$lazyInstance$[memberName];
2251
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2252
+ ref.$instanceValues$.set(memberName, currentValue);
2253
+ }
2254
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
2255
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2256
+ };
2257
+ if (ref.$lazyInstance$) {
2258
+ setterSetVal();
2259
+ } else {
2260
+ ref.$onReadyPromise$.then(() => setterSetVal());
2261
+ }
2262
+ }
2263
+ });
2264
+ }
2265
+ }
1630
2266
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1631
2267
  Object.defineProperty(prototype, memberName, {
1632
2268
  value(...args) {
@@ -1666,7 +2302,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1666
2302
  }
1667
2303
  return;
1668
2304
  }
1669
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2305
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2306
+ if (!propDesc.get || !!propDesc.set) {
2307
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2308
+ }
1670
2309
  });
1671
2310
  };
1672
2311
  Cstr.observedAttributes = Array.from(
@@ -1782,6 +2421,9 @@ var connectedCallback = (elm) => {
1782
2421
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1783
2422
  const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
1784
2423
  elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2424
+ } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2425
+ const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
2426
+ elm["s-sc"] = scopeId2;
1785
2427
  }
1786
2428
  initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1787
2429
  }
@@ -1832,9 +2474,13 @@ var setContentReference = (elm) => {
1832
2474
  insertBefore(elm, contentRefElm, elm.firstChild);
1833
2475
  };
1834
2476
  var disconnectInstance = (instance) => {
2477
+ const callbackResult = [];
1835
2478
  {
1836
- safeCall(instance, "disconnectedCallback");
2479
+ callbackResult.push(safeCall(instance, "disconnectedCallback"));
1837
2480
  }
2481
+ Promise.all(
2482
+ callbackResult.filter((item) => typeof item === "object").filter((promise) => "then" in promise && typeof promise.then === "function")
2483
+ ).finally(() => setTimeout(() => hostRefCleanup()));
1838
2484
  };
1839
2485
  var disconnectedCallback = async (elm) => {
1840
2486
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1849,289 +2495,16 @@ var disconnectedCallback = async (elm) => {
1849
2495
  disconnectInstance(hostRef.$lazyInstance$);
1850
2496
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1851
2497
  hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2498
+ } else {
2499
+ setTimeout(() => hostRefCleanup());
1852
2500
  }
1853
2501
  }
1854
- };
1855
- var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
1856
- patchCloneNode(hostElementPrototype);
1857
- patchSlotAppendChild(hostElementPrototype);
1858
- patchSlotAppend(hostElementPrototype);
1859
- patchSlotPrepend(hostElementPrototype);
1860
- patchSlotInsertAdjacentElement(hostElementPrototype);
1861
- patchSlotInsertAdjacentHTML(hostElementPrototype);
1862
- patchSlotInsertAdjacentText(hostElementPrototype);
1863
- patchTextContent(hostElementPrototype);
1864
- patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
1865
- patchSlotRemoveChild(hostElementPrototype);
1866
- };
1867
- var patchCloneNode = (HostElementPrototype) => {
1868
- const orgCloneNode = HostElementPrototype.cloneNode;
1869
- HostElementPrototype.cloneNode = function(deep) {
1870
- const srcNode = this;
1871
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1872
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1873
- if (!isShadowDom && deep) {
1874
- let i2 = 0;
1875
- let slotted, nonStencilNode;
1876
- const stencilPrivates = [
1877
- "s-id",
1878
- "s-cr",
1879
- "s-lr",
1880
- "s-rc",
1881
- "s-sc",
1882
- "s-p",
1883
- "s-cn",
1884
- "s-sr",
1885
- "s-sn",
1886
- "s-hn",
1887
- "s-ol",
1888
- "s-nr",
1889
- "s-si",
1890
- "s-rf",
1891
- "s-scs"
1892
- ];
1893
- for (; i2 < srcNode.childNodes.length; i2++) {
1894
- slotted = srcNode.childNodes[i2]["s-nr"];
1895
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1896
- if (slotted) {
1897
- if (clonedNode.__appendChild) {
1898
- clonedNode.__appendChild(slotted.cloneNode(true));
1899
- } else {
1900
- clonedNode.appendChild(slotted.cloneNode(true));
1901
- }
1902
- }
1903
- if (nonStencilNode) {
1904
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1905
- }
1906
- }
1907
- }
1908
- return clonedNode;
1909
- };
1910
- };
1911
- var patchSlotAppendChild = (HostElementPrototype) => {
1912
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1913
- HostElementPrototype.appendChild = function(newChild) {
1914
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1915
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1916
- if (slotNode) {
1917
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1918
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1919
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1920
- updateFallbackSlotVisibility(this);
1921
- return insertedNode;
1922
- }
1923
- return this.__appendChild(newChild);
1924
- };
1925
- };
1926
- var patchSlotRemoveChild = (ElementPrototype) => {
1927
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
1928
- ElementPrototype.removeChild = function(toRemove) {
1929
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1930
- const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
1931
- if (slotNode) {
1932
- const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
1933
- const existingNode = slotChildNodes.find((n) => n === toRemove);
1934
- if (existingNode) {
1935
- existingNode.remove();
1936
- updateFallbackSlotVisibility(this);
1937
- return;
1938
- }
1939
- }
1940
- }
1941
- return this.__removeChild(toRemove);
1942
- };
1943
- };
1944
- var patchSlotPrepend = (HostElementPrototype) => {
1945
- const originalPrepend = HostElementPrototype.prepend;
1946
- HostElementPrototype.prepend = function(...newChildren) {
1947
- newChildren.forEach((newChild) => {
1948
- if (typeof newChild === "string") {
1949
- newChild = this.ownerDocument.createTextNode(newChild);
1950
- }
1951
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1952
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1953
- if (slotNode) {
1954
- const slotPlaceholder = document.createTextNode("");
1955
- slotPlaceholder["s-nr"] = newChild;
1956
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1957
- newChild["s-ol"] = slotPlaceholder;
1958
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1959
- const appendAfter = slotChildNodes[0];
1960
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1961
- }
1962
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1963
- newChild.hidden = true;
1964
- }
1965
- return originalPrepend.call(this, newChild);
1966
- });
1967
- };
1968
- };
1969
- var patchSlotAppend = (HostElementPrototype) => {
1970
- HostElementPrototype.append = function(...newChildren) {
1971
- newChildren.forEach((newChild) => {
1972
- if (typeof newChild === "string") {
1973
- newChild = this.ownerDocument.createTextNode(newChild);
1974
- }
1975
- this.appendChild(newChild);
1976
- });
1977
- };
1978
- };
1979
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1980
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1981
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
1982
- if (position !== "afterbegin" && position !== "beforeend") {
1983
- return originalInsertAdjacentHtml.call(this, position, text);
1984
- }
1985
- const container = this.ownerDocument.createElement("_");
1986
- let node;
1987
- container.innerHTML = text;
1988
- if (position === "afterbegin") {
1989
- while (node = container.firstChild) {
1990
- this.prepend(node);
1991
- }
1992
- } else if (position === "beforeend") {
1993
- while (node = container.firstChild) {
1994
- this.append(node);
1995
- }
1996
- }
1997
- };
1998
- };
1999
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2000
- HostElementPrototype.insertAdjacentText = function(position, text) {
2001
- this.insertAdjacentHTML(position, text);
2002
- };
2003
- };
2004
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2005
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2006
- HostElementPrototype.insertAdjacentElement = function(position, element) {
2007
- if (position !== "afterbegin" && position !== "beforeend") {
2008
- return originalInsertAdjacentElement.call(this, position, element);
2009
- }
2010
- if (position === "afterbegin") {
2011
- this.prepend(element);
2012
- return element;
2013
- } else if (position === "beforeend") {
2014
- this.append(element);
2015
- return element;
2016
- }
2017
- return element;
2018
- };
2019
- };
2020
- var patchTextContent = (hostElementPrototype) => {
2021
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2022
- Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2023
- {
2024
- Object.defineProperty(hostElementPrototype, "textContent", {
2025
- // To mimic shadow root behavior, we need to return the text content of all
2026
- // nodes in a slot reference node
2027
- get() {
2028
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2029
- const textContent = slotRefNodes.map((node) => {
2030
- var _a, _b;
2031
- const text = [];
2032
- let slotContent = node.nextSibling;
2033
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2034
- if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2035
- text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2036
- }
2037
- slotContent = slotContent.nextSibling;
2038
- }
2039
- return text.filter((ref) => ref !== "").join(" ");
2040
- }).filter((text) => text !== "").join(" ");
2041
- return " " + textContent + " ";
2042
- },
2043
- // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2044
- // reference node. If a default slot reference node exists, the text content will be
2045
- // placed there. Otherwise, the new text node will be hidden
2046
- set(value) {
2047
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2048
- slotRefNodes.forEach((node) => {
2049
- let slotContent = node.nextSibling;
2050
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2051
- const tmp = slotContent;
2052
- slotContent = slotContent.nextSibling;
2053
- tmp.remove();
2054
- }
2055
- if (node["s-sn"] === "") {
2056
- const textNode = this.ownerDocument.createTextNode(value);
2057
- textNode["s-sn"] = "";
2058
- insertBefore(node.parentElement, textNode, node.nextSibling);
2059
- } else {
2060
- node.remove();
2061
- }
2062
- });
2063
- }
2064
- });
2065
- }
2066
- };
2067
- var patchChildSlotNodes = (elm, cmpMeta) => {
2068
- class FakeNodeList extends Array {
2069
- item(n) {
2070
- return this[n];
2071
- }
2072
- }
2073
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2074
- const childNodesFn = elm.__lookupGetter__("childNodes");
2075
- Object.defineProperty(elm, "children", {
2076
- get() {
2077
- return this.childNodes.map((n) => n.nodeType === 1);
2078
- }
2079
- });
2080
- Object.defineProperty(elm, "childElementCount", {
2081
- get() {
2082
- return elm.children.length;
2083
- }
2084
- });
2085
- Object.defineProperty(elm, "childNodes", {
2086
- get() {
2087
- const childNodes = childNodesFn.call(this);
2088
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2089
- const result = new FakeNodeList();
2090
- for (let i2 = 0; i2 < childNodes.length; i2++) {
2091
- const slot = childNodes[i2]["s-nr"];
2092
- if (slot) {
2093
- result.push(slot);
2094
- }
2095
- }
2096
- return result;
2097
- }
2098
- return FakeNodeList.from(childNodes);
2099
- }
2100
- });
2101
- }
2102
- };
2103
- var getAllChildSlotNodes = (childNodes) => {
2104
- const slotRefNodes = [];
2105
- for (const childNode of Array.from(childNodes)) {
2106
- if (childNode["s-sr"]) {
2107
- slotRefNodes.push(childNode);
2108
- }
2109
- slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2110
- }
2111
- return slotRefNodes;
2112
- };
2113
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2114
- var getHostSlotNode = (childNodes, slotName, hostName) => {
2115
- let i2 = 0;
2116
- let childNode;
2117
- for (; i2 < childNodes.length; i2++) {
2118
- childNode = childNodes[i2];
2119
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2120
- return childNode;
2121
- }
2122
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2123
- if (childNode) {
2124
- return childNode;
2125
- }
2502
+ if (rootAppliedStyles.has(elm)) {
2503
+ rootAppliedStyles.delete(elm);
2126
2504
  }
2127
- return null;
2128
- };
2129
- var getHostSlotChildNodes = (n, slotName) => {
2130
- const childNodes = [n];
2131
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2132
- childNodes.push(n);
2505
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2506
+ rootAppliedStyles.delete(elm.shadowRoot);
2133
2507
  }
2134
- return childNodes;
2135
2508
  };
2136
2509
 
2137
2510
  // src/runtime/bootstrap-lazy.ts
@@ -2229,7 +2602,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2229
2602
  };
2230
2603
  {
2231
2604
  if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2232
- patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2605
+ patchPseudoShadowDom(HostElement.prototype);
2233
2606
  }
2234
2607
  }
2235
2608
  cmpMeta.$lazyBundleId$ = lazyBundle[0];