@usecapsule/core-components 3.2.0-dev.1 → 3.3.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. package/css/capsule-core.css +25 -10
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/{p-a6aaf3f4.entry.js → p-0e558c7f.entry.js} +3 -3
  8. package/dist/capsule/p-0e558c7f.entry.js.map +1 -0
  9. package/dist/capsule/{p-452b9998.entry.js → p-1bd11889.entry.js} +2 -2
  10. package/dist/capsule/p-1bd11889.entry.js.map +1 -0
  11. package/dist/capsule/p-32cdf894.entry.js +2 -0
  12. package/dist/capsule/p-32cdf894.entry.js.map +1 -0
  13. package/dist/capsule/p-3b042fd1.entry.js +2 -0
  14. package/dist/capsule/{p-6793ef7a.entry.js.map → p-3b042fd1.entry.js.map} +1 -1
  15. package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
  16. package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
  17. package/dist/capsule/p-5965b15e.entry.js +2 -0
  18. package/dist/capsule/{p-f6c74d69.entry.js.map → p-5965b15e.entry.js.map} +1 -1
  19. package/dist/capsule/{p-447d49b9.entry.js → p-5d62e610.entry.js} +2 -2
  20. package/dist/capsule/{p-447d49b9.entry.js.map → p-5d62e610.entry.js.map} +1 -1
  21. package/dist/capsule/p-60508b1e.entry.js +20 -0
  22. package/dist/capsule/p-60508b1e.entry.js.map +1 -0
  23. package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
  24. package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
  25. package/dist/capsule/p-e1255160.js.map +1 -1
  26. package/dist/capsule/p-f2393be6.js.map +1 -1
  27. package/dist/capsule/p-fa6b7678.js +3 -0
  28. package/dist/capsule/p-fa6b7678.js.map +1 -0
  29. package/dist/cjs/capsule.cjs.js +10 -10
  30. package/dist/cjs/capsule.cjs.js.map +1 -1
  31. package/dist/cjs/cpsl-alert_34.cjs.entry.js +17036 -13428
  32. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
  33. package/dist/cjs/cpsl-animation.cjs.entry.js +8 -4
  34. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  35. package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
  36. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
  37. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  38. package/dist/cjs/cpsl-hero.cjs.entry.js +38 -0
  39. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
  40. package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
  41. package/dist/cjs/cpsl-info-box.cjs.entry.js +3 -3
  42. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  43. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
  44. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  46. package/dist/cjs/index-65f57499.js +1439 -0
  47. package/dist/cjs/index-65f57499.js.map +1 -0
  48. package/dist/cjs/index.cjs.js +47 -16
  49. package/dist/cjs/index.cjs.js.map +1 -1
  50. package/dist/cjs/loader.cjs.js +2 -2
  51. package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
  52. package/dist/collection/assets/icons/bank.svg +3 -0
  53. package/dist/collection/assets/icons/credit-card.svg +3 -0
  54. package/dist/collection/assets/icons/dot.svg +3 -0
  55. package/dist/collection/assets/icons/download.svg +3 -0
  56. package/dist/collection/assets/icons/globe.svg +3 -0
  57. package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
  58. package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
  59. package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
  60. package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
  61. package/dist/collection/assets/icons/index.js +21 -3
  62. package/dist/collection/assets/icons/index.js.map +1 -1
  63. package/dist/collection/assets/icons/link-external.svg +3 -0
  64. package/dist/collection/assets/icons/log-out.svg +3 -0
  65. package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
  66. package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
  67. package/dist/collection/assets/icons/qr-code-02.svg +3 -0
  68. package/dist/collection/assets/icons/qr-code.svg +3 -0
  69. package/dist/collection/assets/icons/refresh.svg +3 -3
  70. package/dist/collection/assets/icons/search.svg +3 -0
  71. package/dist/collection/assets/icons/send.svg +3 -0
  72. package/dist/collection/assets/icons/shield.svg +3 -0
  73. package/dist/collection/assets/icons/stripe-brand.svg +3 -0
  74. package/dist/collection/collection-manifest.json +4 -3
  75. package/dist/collection/components/cpsl-alert/cpsl-alert.js +3 -3
  76. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  77. package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
  78. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
  79. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
  80. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  81. package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
  82. package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +13 -131
  83. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
  84. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  85. package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
  86. package/dist/collection/components/cpsl-button/cpsl-button.js +9 -5
  87. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  88. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +2 -2
  89. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -1
  90. package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
  91. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  92. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  93. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
  94. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +13 -7
  95. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  96. package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
  97. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
  98. package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
  99. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  100. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
  101. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  102. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  103. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  104. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
  105. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +5 -5
  106. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  107. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  108. package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
  109. package/dist/collection/components/cpsl-hero/cpsl-hero.js +64 -9
  110. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  111. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
  112. package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
  113. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  114. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
  115. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
  116. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
  117. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
  118. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  119. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
  120. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
  121. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  122. package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
  123. package/dist/collection/components/cpsl-input/cpsl-input.js +117 -11
  124. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  125. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
  126. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  127. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +2 -2
  128. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -1
  129. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
  130. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  131. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  132. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
  133. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  134. package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
  135. package/dist/collection/components/cpsl-popover/cpsl-popover.js +16 -6
  136. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  137. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
  138. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
  139. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  140. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  141. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  142. package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
  143. package/dist/collection/components/cpsl-select/cpsl-select.js +96 -4
  144. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  145. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  146. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  147. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
  148. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  149. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
  150. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
  151. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
  152. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  153. package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
  154. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  155. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  156. package/dist/collection/components/cpsl-table/cpsl-table.js +3 -1
  157. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  158. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
  159. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +5 -2
  160. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  161. package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
  162. package/dist/collection/components/cpsl-text/cpsl-text.js +7 -3
  163. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  164. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
  165. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  166. package/dist/collection/interface.js.map +1 -1
  167. package/dist/collection/utils/media.js +3 -0
  168. package/dist/collection/utils/media.js.map +1 -1
  169. package/dist/collection/utils/theme/generateBorderRadii.js +4 -3
  170. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  171. package/dist/collection/utils/theme/generateFont.js +1 -1
  172. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  173. package/dist/collection/utils/theme/generatePalette.js +28 -9
  174. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  175. package/dist/collection/utils/theme/generateTheme.js +13 -3
  176. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  177. package/dist/collection/utils/theme/utils.js +1 -0
  178. package/dist/collection/utils/theme/utils.js.map +1 -1
  179. package/dist/esm/capsule.js +11 -11
  180. package/dist/esm/capsule.js.map +1 -1
  181. package/dist/esm/cpsl-alert_34.entry.js +17036 -13428
  182. package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
  183. package/dist/esm/cpsl-animation.entry.js +7 -3
  184. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  185. package/dist/esm/cpsl-col.entry.js +25 -6
  186. package/dist/esm/cpsl-col.entry.js.map +1 -1
  187. package/dist/esm/cpsl-grid.entry.js +3 -3
  188. package/dist/esm/cpsl-hero.entry.js +34 -0
  189. package/dist/esm/cpsl-hero.entry.js.map +1 -0
  190. package/dist/esm/cpsl-identicon.entry.js +2 -2
  191. package/dist/esm/cpsl-info-box.entry.js +3 -3
  192. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  193. package/dist/esm/cpsl-modal-v2.entry.js +3 -2
  194. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  195. package/dist/esm/cpsl-row.entry.js +2 -2
  196. package/dist/esm/index-91db3414.js +1408 -0
  197. package/dist/esm/index-91db3414.js.map +1 -0
  198. package/dist/esm/index.js +47 -16
  199. package/dist/esm/index.js.map +1 -1
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/loader/cdn.js +1 -3
  202. package/dist/loader/index.cjs.js +1 -3
  203. package/dist/loader/index.d.ts +3 -0
  204. package/dist/loader/index.es2017.js +1 -3
  205. package/dist/loader/index.js +1 -3
  206. package/dist/scripts/buildAssets.js +1 -1
  207. package/dist/types/assets/icons/index.d.ts +20 -2
  208. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
  209. package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
  210. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
  211. package/dist/types/components/cpsl-auth-modal/cpsl-auth-modal.d.ts +58 -0
  212. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
  213. package/dist/types/components/cpsl-button/cpsl-button.d.ts +30 -1
  214. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
  215. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
  216. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
  217. package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
  218. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
  219. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
  220. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
  221. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
  222. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
  223. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +21 -1
  224. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  225. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
  226. package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
  227. package/dist/types/components/cpsl-input/cpsl-input.d.ts +148 -0
  228. package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
  229. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
  230. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
  231. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
  232. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
  233. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
  234. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +53 -0
  235. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
  236. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +11 -0
  237. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
  238. package/dist/types/components/cpsl-select/cpsl-select.d.ts +67 -1
  239. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
  240. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
  241. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
  242. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
  243. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
  244. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
  245. package/dist/types/components/cpsl-text/cpsl-text.d.ts +16 -1
  246. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  247. package/dist/types/components.d.ts +216 -118
  248. package/dist/types/interface.d.ts +13 -0
  249. package/dist/types/stencil-public-runtime.d.ts +3 -10
  250. package/dist/types/utils/theme/generatePalette.d.ts +4 -2
  251. package/dist/types/utils/theme/generateTheme.d.ts +5 -1
  252. package/package.json +6 -12
  253. package/readme.md +47 -2
  254. package/dist/capsule/p-0462f723.js +0 -2
  255. package/dist/capsule/p-0462f723.js.map +0 -1
  256. package/dist/capsule/p-303e6e89.entry.js +0 -29
  257. package/dist/capsule/p-303e6e89.entry.js.map +0 -1
  258. package/dist/capsule/p-452b9998.entry.js.map +0 -1
  259. package/dist/capsule/p-6793ef7a.entry.js +0 -2
  260. package/dist/capsule/p-7dde3172.js +0 -3
  261. package/dist/capsule/p-7dde3172.js.map +0 -1
  262. package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
  263. package/dist/capsule/p-f6c74d69.entry.js +0 -2
  264. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  265. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  266. package/dist/cjs/index-528f7428.js +0 -2107
  267. package/dist/cjs/index-528f7428.js.map +0 -1
  268. package/dist/collection/assets/icons/double-arc.svg +0 -13
  269. package/dist/collection/assets/icons/single-arc.svg +0 -11
  270. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  271. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  272. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  273. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  274. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  275. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  276. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  277. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  278. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +0 -29
  279. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
  280. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
  281. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
  282. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
  283. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
  284. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
  285. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +0 -1
  286. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  287. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  288. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  289. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  290. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +0 -29
  291. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
  292. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
  293. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
  294. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
  295. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
  296. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
  297. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
  298. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
  299. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
  300. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
  301. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +0 -1
  302. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  303. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  304. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  305. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  306. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  307. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  308. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  309. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  310. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  311. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  312. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  313. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  314. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +0 -29
  315. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
  316. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
  317. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
  318. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  319. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  320. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  321. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  322. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
  323. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
  324. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
  325. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +0 -1
  326. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  327. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  328. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  329. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  330. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +0 -29
  331. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
  332. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
  333. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +0 -1
  334. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  335. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  336. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  337. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  338. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +0 -29
  339. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
  340. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
  341. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +0 -1
  342. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  343. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  344. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  345. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  346. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  347. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  348. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  349. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  350. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  351. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  352. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  353. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  354. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  355. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
  356. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
  357. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
  358. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
  359. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
  360. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
  361. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
  362. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +0 -1
  363. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  364. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  365. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  366. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  367. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +0 -29
  368. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
  369. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
  370. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +0 -1
  371. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  372. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  373. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  374. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  375. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +0 -29
  376. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
  377. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
  378. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +0 -1
  379. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  380. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  381. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  382. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  383. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  384. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  385. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  386. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  387. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +0 -29
  388. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
  389. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
  390. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +0 -1
  391. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  392. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  393. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  394. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  395. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +0 -29
  396. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
  397. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
  398. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
  399. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
  400. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
  401. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
  402. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +0 -1
  403. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  404. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  405. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  406. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  407. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  408. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  409. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  410. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  411. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +0 -29
  412. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
  413. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
  414. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +0 -1
  415. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  416. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  417. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  418. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  419. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +0 -29
  420. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
  421. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
  422. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +0 -1
  423. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  424. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  425. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  426. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  427. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  428. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  429. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  430. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  431. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  432. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  433. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  434. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  435. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  436. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  437. package/dist/esm/index-b188f201.js +0 -2076
  438. package/dist/esm/index-b188f201.js.map +0 -1
  439. package/dist/esm/polyfills/core-js.js +0 -11
  440. package/dist/esm/polyfills/dom.js +0 -79
  441. package/dist/esm/polyfills/es5-html-element.js +0 -1
  442. package/dist/esm/polyfills/index.js +0 -34
  443. package/dist/esm/polyfills/system.js +0 -6
  444. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +0 -39
  445. /package/dist/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → norwood/capsule-repos/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -0,0 +1,1408 @@
1
+ const NAMESPACE = 'capsule';
2
+ const BUILD = /* capsule */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, 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: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, 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: false, watchCallback: true };
3
+
4
+ /*
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ var __defProp = Object.defineProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
15
+ var registerHost = (hostElement, cmpMeta) => {
16
+ const hostRef = {
17
+ $flags$: 0,
18
+ $hostElement$: hostElement,
19
+ $cmpMeta$: cmpMeta,
20
+ $instanceValues$: /* @__PURE__ */ new Map()
21
+ };
22
+ {
23
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
24
+ }
25
+ {
26
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
27
+ hostElement["s-p"] = [];
28
+ hostElement["s-rc"] = [];
29
+ }
30
+ return hostRefs.set(hostElement, hostRef);
31
+ };
32
+ var isMemberInElement = (elm, memberName) => memberName in elm;
33
+ var consoleError = (e, el) => (0, console.error)(e, el);
34
+
35
+ // src/client/client-load-module.ts
36
+ var cmpModules = /* @__PURE__ */ new Map();
37
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
38
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
39
+ const bundleId = cmpMeta.$lazyBundleId$;
40
+ if (!bundleId) {
41
+ return void 0;
42
+ }
43
+ const module = cmpModules.get(bundleId) ;
44
+ if (module) {
45
+ return module[exportName];
46
+ }
47
+
48
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
49
+ const processMod = importedModule => {
50
+ cmpModules.set(bundleId, importedModule);
51
+ return importedModule[exportName];
52
+ }
53
+ switch(bundleId) {
54
+
55
+ case 'cpsl-alert_34':
56
+ return import(
57
+ /* webpackMode: "lazy" */
58
+ './cpsl-alert_34.entry.js').then(processMod, consoleError);
59
+ case 'cpsl-animation':
60
+ return import(
61
+ /* webpackMode: "lazy" */
62
+ './cpsl-animation.entry.js').then(processMod, consoleError);
63
+ case 'cpsl-col':
64
+ return import(
65
+ /* webpackMode: "lazy" */
66
+ './cpsl-col.entry.js').then(processMod, consoleError);
67
+ case 'cpsl-grid':
68
+ return import(
69
+ /* webpackMode: "lazy" */
70
+ './cpsl-grid.entry.js').then(processMod, consoleError);
71
+ case 'cpsl-hero':
72
+ return import(
73
+ /* webpackMode: "lazy" */
74
+ './cpsl-hero.entry.js').then(processMod, consoleError);
75
+ case 'cpsl-identicon':
76
+ return import(
77
+ /* webpackMode: "lazy" */
78
+ './cpsl-identicon.entry.js').then(processMod, consoleError);
79
+ case 'cpsl-info-box':
80
+ return import(
81
+ /* webpackMode: "lazy" */
82
+ './cpsl-info-box.entry.js').then(processMod, consoleError);
83
+ case 'cpsl-modal-v2':
84
+ return import(
85
+ /* webpackMode: "lazy" */
86
+ './cpsl-modal-v2.entry.js').then(processMod, consoleError);
87
+ case 'cpsl-row':
88
+ return import(
89
+ /* webpackMode: "lazy" */
90
+ './cpsl-row.entry.js').then(processMod, consoleError);
91
+ }
92
+ }
93
+ return import(
94
+ /* @vite-ignore */
95
+ /* webpackInclude: /\.entry\.js$/ */
96
+ /* webpackExclude: /\.system\.entry\.js$/ */
97
+ /* webpackMode: "lazy" */
98
+ `./${bundleId}.entry.js${""}`
99
+ ).then((importedModule) => {
100
+ {
101
+ cmpModules.set(bundleId, importedModule);
102
+ }
103
+ return importedModule[exportName];
104
+ }, consoleError);
105
+ };
106
+
107
+ // src/client/client-style.ts
108
+ var styles = /* @__PURE__ */ new Map();
109
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
110
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
111
+ var win = typeof window !== "undefined" ? window : {};
112
+ var doc = win.document || { head: {} };
113
+ var plt = {
114
+ $flags$: 0,
115
+ $resourcesUrl$: "",
116
+ jmp: (h2) => h2(),
117
+ raf: (h2) => requestAnimationFrame(h2),
118
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
119
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
120
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
121
+ };
122
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
123
+ let supportsListenerOptions2 = false;
124
+ try {
125
+ doc.addEventListener(
126
+ "e",
127
+ null,
128
+ Object.defineProperty({}, "passive", {
129
+ get() {
130
+ supportsListenerOptions2 = true;
131
+ }
132
+ })
133
+ );
134
+ } catch (e) {
135
+ }
136
+ return supportsListenerOptions2;
137
+ })();
138
+ var promiseResolve = (v) => Promise.resolve(v);
139
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
140
+ try {
141
+ new CSSStyleSheet();
142
+ return typeof new CSSStyleSheet().replaceSync === "function";
143
+ } catch (e) {
144
+ }
145
+ return false;
146
+ })() ;
147
+ var queuePending = false;
148
+ var queueDomReads = [];
149
+ var queueDomWrites = [];
150
+ var queueTask = (queue, write) => (cb) => {
151
+ queue.push(cb);
152
+ if (!queuePending) {
153
+ queuePending = true;
154
+ if (write && plt.$flags$ & 4 /* queueSync */) {
155
+ nextTick(flush);
156
+ } else {
157
+ plt.raf(flush);
158
+ }
159
+ }
160
+ };
161
+ var consume = (queue) => {
162
+ for (let i2 = 0; i2 < queue.length; i2++) {
163
+ try {
164
+ queue[i2](performance.now());
165
+ } catch (e) {
166
+ consoleError(e);
167
+ }
168
+ }
169
+ queue.length = 0;
170
+ };
171
+ var flush = () => {
172
+ consume(queueDomReads);
173
+ {
174
+ consume(queueDomWrites);
175
+ if (queuePending = queueDomReads.length > 0) {
176
+ plt.raf(flush);
177
+ }
178
+ }
179
+ };
180
+ var nextTick = (cb) => promiseResolve().then(cb);
181
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
182
+
183
+ // src/utils/constants.ts
184
+ var EMPTY_OBJ = {};
185
+ var SVG_NS = "http://www.w3.org/2000/svg";
186
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
187
+
188
+ // src/utils/helpers.ts
189
+ var isDef = (v) => v != null;
190
+ var isComplexType = (o) => {
191
+ o = typeof o;
192
+ return o === "object" || o === "function";
193
+ };
194
+
195
+ // src/utils/query-nonce-meta-tag-content.ts
196
+ function queryNonceMetaTagContent(doc2) {
197
+ var _a, _b, _c;
198
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
199
+ }
200
+
201
+ // src/utils/result.ts
202
+ var result_exports = {};
203
+ __export(result_exports, {
204
+ err: () => err,
205
+ map: () => map,
206
+ ok: () => ok,
207
+ unwrap: () => unwrap,
208
+ unwrapErr: () => unwrapErr
209
+ });
210
+ var ok = (value) => ({
211
+ isOk: true,
212
+ isErr: false,
213
+ value
214
+ });
215
+ var err = (value) => ({
216
+ isOk: false,
217
+ isErr: true,
218
+ value
219
+ });
220
+ function map(result, fn) {
221
+ if (result.isOk) {
222
+ const val = fn(result.value);
223
+ if (val instanceof Promise) {
224
+ return val.then((newVal) => ok(newVal));
225
+ } else {
226
+ return ok(val);
227
+ }
228
+ }
229
+ if (result.isErr) {
230
+ const value = result.value;
231
+ return err(value);
232
+ }
233
+ throw "should never get here";
234
+ }
235
+ var unwrap = (result) => {
236
+ if (result.isOk) {
237
+ return result.value;
238
+ } else {
239
+ throw result.value;
240
+ }
241
+ };
242
+ var unwrapErr = (result) => {
243
+ if (result.isErr) {
244
+ return result.value;
245
+ } else {
246
+ throw result.value;
247
+ }
248
+ };
249
+ var createTime = (fnName, tagName = "") => {
250
+ {
251
+ return () => {
252
+ return;
253
+ };
254
+ }
255
+ };
256
+ var uniqueTime = (key, measureText) => {
257
+ {
258
+ return () => {
259
+ return;
260
+ };
261
+ }
262
+ };
263
+ var h = (nodeName, vnodeData, ...children) => {
264
+ let child = null;
265
+ let key = null;
266
+ let simple = false;
267
+ let lastSimple = false;
268
+ const vNodeChildren = [];
269
+ const walk = (c) => {
270
+ for (let i2 = 0; i2 < c.length; i2++) {
271
+ child = c[i2];
272
+ if (Array.isArray(child)) {
273
+ walk(child);
274
+ } else if (child != null && typeof child !== "boolean") {
275
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
276
+ child = String(child);
277
+ }
278
+ if (simple && lastSimple) {
279
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
280
+ } else {
281
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
282
+ }
283
+ lastSimple = simple;
284
+ }
285
+ }
286
+ };
287
+ walk(children);
288
+ if (vnodeData) {
289
+ if (vnodeData.key) {
290
+ key = vnodeData.key;
291
+ }
292
+ {
293
+ const classData = vnodeData.className || vnodeData.class;
294
+ if (classData) {
295
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
296
+ }
297
+ }
298
+ }
299
+ if (typeof nodeName === "function") {
300
+ return nodeName(
301
+ vnodeData === null ? {} : vnodeData,
302
+ vNodeChildren,
303
+ vdomFnUtils
304
+ );
305
+ }
306
+ const vnode = newVNode(nodeName, null);
307
+ vnode.$attrs$ = vnodeData;
308
+ if (vNodeChildren.length > 0) {
309
+ vnode.$children$ = vNodeChildren;
310
+ }
311
+ {
312
+ vnode.$key$ = key;
313
+ }
314
+ return vnode;
315
+ };
316
+ var newVNode = (tag, text) => {
317
+ const vnode = {
318
+ $flags$: 0,
319
+ $tag$: tag,
320
+ $text$: text,
321
+ $elm$: null,
322
+ $children$: null
323
+ };
324
+ {
325
+ vnode.$attrs$ = null;
326
+ }
327
+ {
328
+ vnode.$key$ = null;
329
+ }
330
+ return vnode;
331
+ };
332
+ var Host = {};
333
+ var isHost = (node) => node && node.$tag$ === Host;
334
+ var vdomFnUtils = {
335
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
336
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
337
+ };
338
+ var convertToPublic = (node) => ({
339
+ vattrs: node.$attrs$,
340
+ vchildren: node.$children$,
341
+ vkey: node.$key$,
342
+ vname: node.$name$,
343
+ vtag: node.$tag$,
344
+ vtext: node.$text$
345
+ });
346
+ var convertToPrivate = (node) => {
347
+ if (typeof node.vtag === "function") {
348
+ const vnodeData = { ...node.vattrs };
349
+ if (node.vkey) {
350
+ vnodeData.key = node.vkey;
351
+ }
352
+ if (node.vname) {
353
+ vnodeData.name = node.vname;
354
+ }
355
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
356
+ }
357
+ const vnode = newVNode(node.vtag, node.vtext);
358
+ vnode.$attrs$ = node.vattrs;
359
+ vnode.$children$ = node.vchildren;
360
+ vnode.$key$ = node.vkey;
361
+ vnode.$name$ = node.vname;
362
+ return vnode;
363
+ };
364
+ var parsePropertyValue = (propValue, propType) => {
365
+ if (propValue != null && !isComplexType(propValue)) {
366
+ if (propType & 4 /* Boolean */) {
367
+ return propValue === "false" ? false : propValue === "" || !!propValue;
368
+ }
369
+ if (propType & 2 /* Number */) {
370
+ return parseFloat(propValue);
371
+ }
372
+ if (propType & 1 /* String */) {
373
+ return String(propValue);
374
+ }
375
+ return propValue;
376
+ }
377
+ return propValue;
378
+ };
379
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
380
+
381
+ // src/runtime/event-emitter.ts
382
+ var createEvent = (ref, name, flags) => {
383
+ const elm = getElement(ref);
384
+ return {
385
+ emit: (detail) => {
386
+ return emitEvent(elm, name, {
387
+ bubbles: !!(flags & 4 /* Bubbles */),
388
+ composed: !!(flags & 2 /* Composed */),
389
+ cancelable: !!(flags & 1 /* Cancellable */),
390
+ detail
391
+ });
392
+ }
393
+ };
394
+ };
395
+ var emitEvent = (elm, name, opts) => {
396
+ const ev = plt.ce(name, opts);
397
+ elm.dispatchEvent(ev);
398
+ return ev;
399
+ };
400
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
401
+ var registerStyle = (scopeId2, cssText, allowCS) => {
402
+ let style = styles.get(scopeId2);
403
+ if (supportsConstructableStylesheets && allowCS) {
404
+ style = style || new CSSStyleSheet();
405
+ if (typeof style === "string") {
406
+ style = cssText;
407
+ } else {
408
+ style.replaceSync(cssText);
409
+ }
410
+ } else {
411
+ style = cssText;
412
+ }
413
+ styles.set(scopeId2, style);
414
+ };
415
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
416
+ var _a;
417
+ const scopeId2 = getScopeId(cmpMeta);
418
+ const style = styles.get(scopeId2);
419
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
420
+ if (style) {
421
+ if (typeof style === "string") {
422
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
423
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
424
+ let styleElm;
425
+ if (!appliedStyles) {
426
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
427
+ }
428
+ if (!appliedStyles.has(scopeId2)) {
429
+ {
430
+ styleElm = doc.createElement("style");
431
+ styleElm.innerHTML = style;
432
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
433
+ if (nonce != null) {
434
+ styleElm.setAttribute("nonce", nonce);
435
+ }
436
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
437
+ }
438
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
439
+ styleElm.innerHTML += SLOT_FB_CSS;
440
+ }
441
+ if (appliedStyles) {
442
+ appliedStyles.add(scopeId2);
443
+ }
444
+ }
445
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
446
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
447
+ }
448
+ }
449
+ return scopeId2;
450
+ };
451
+ var attachStyles = (hostRef) => {
452
+ const cmpMeta = hostRef.$cmpMeta$;
453
+ const elm = hostRef.$hostElement$;
454
+ const flags = cmpMeta.$flags$;
455
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
456
+ const scopeId2 = addStyle(
457
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
458
+ cmpMeta);
459
+ if (flags & 10 /* needsScopedEncapsulation */) {
460
+ elm["s-sc"] = scopeId2;
461
+ elm.classList.add(scopeId2 + "-h");
462
+ }
463
+ endAttachStyles();
464
+ };
465
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
466
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
467
+ if (oldValue !== newValue) {
468
+ let isProp = isMemberInElement(elm, memberName);
469
+ let ln = memberName.toLowerCase();
470
+ if (memberName === "class") {
471
+ const classList = elm.classList;
472
+ const oldClasses = parseClassList(oldValue);
473
+ const newClasses = parseClassList(newValue);
474
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
475
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
476
+ } else if (memberName === "style") {
477
+ {
478
+ for (const prop in oldValue) {
479
+ if (!newValue || newValue[prop] == null) {
480
+ if (prop.includes("-")) {
481
+ elm.style.removeProperty(prop);
482
+ } else {
483
+ elm.style[prop] = "";
484
+ }
485
+ }
486
+ }
487
+ }
488
+ for (const prop in newValue) {
489
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
490
+ if (prop.includes("-")) {
491
+ elm.style.setProperty(prop, newValue[prop]);
492
+ } else {
493
+ elm.style[prop] = newValue[prop];
494
+ }
495
+ }
496
+ }
497
+ } else if (memberName === "key") ; else if (memberName === "ref") {
498
+ if (newValue) {
499
+ newValue(elm);
500
+ }
501
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
502
+ if (memberName[2] === "-") {
503
+ memberName = memberName.slice(3);
504
+ } else if (isMemberInElement(win, ln)) {
505
+ memberName = ln.slice(2);
506
+ } else {
507
+ memberName = ln[2] + memberName.slice(3);
508
+ }
509
+ if (oldValue || newValue) {
510
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
511
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
512
+ if (oldValue) {
513
+ plt.rel(elm, memberName, oldValue, capture);
514
+ }
515
+ if (newValue) {
516
+ plt.ael(elm, memberName, newValue, capture);
517
+ }
518
+ }
519
+ } else {
520
+ const isComplex = isComplexType(newValue);
521
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
522
+ try {
523
+ if (!elm.tagName.includes("-")) {
524
+ const n = newValue == null ? "" : newValue;
525
+ if (memberName === "list") {
526
+ isProp = false;
527
+ } else if (oldValue == null || elm[memberName] != n) {
528
+ elm[memberName] = n;
529
+ }
530
+ } else {
531
+ elm[memberName] = newValue;
532
+ }
533
+ } catch (e) {
534
+ }
535
+ }
536
+ if (newValue == null || newValue === false) {
537
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
538
+ {
539
+ elm.removeAttribute(memberName);
540
+ }
541
+ }
542
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
543
+ newValue = newValue === true ? "" : newValue;
544
+ {
545
+ elm.setAttribute(memberName, newValue);
546
+ }
547
+ }
548
+ }
549
+ }
550
+ };
551
+ var parseClassListRegex = /\s/;
552
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
553
+ var CAPTURE_EVENT_SUFFIX = "Capture";
554
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
555
+
556
+ // src/runtime/vdom/update-element.ts
557
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
558
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
559
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
560
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
561
+ {
562
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
563
+ if (!(memberName in newVnodeAttrs)) {
564
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
565
+ }
566
+ }
567
+ }
568
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
569
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
570
+ }
571
+ };
572
+ function sortedAttrNames(attrNames) {
573
+ return attrNames.includes("ref") ? (
574
+ // we need to sort these to ensure that `'ref'` is the last attr
575
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
576
+ ) : (
577
+ // no need to sort, return the original array
578
+ attrNames
579
+ );
580
+ }
581
+
582
+ // src/runtime/vdom/vdom-render.ts
583
+ var scopeId;
584
+ var hostTagName;
585
+ var useNativeShadowDom = false;
586
+ var isSvgMode = false;
587
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
588
+ const newVNode2 = newParentVNode.$children$[childIndex];
589
+ let i2 = 0;
590
+ let elm;
591
+ let childNode;
592
+ if (newVNode2.$text$ !== null) {
593
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
594
+ } else {
595
+ if (!isSvgMode) {
596
+ isSvgMode = newVNode2.$tag$ === "svg";
597
+ }
598
+ elm = newVNode2.$elm$ = doc.createElementNS(
599
+ isSvgMode ? SVG_NS : HTML_NS,
600
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
601
+ ) ;
602
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
603
+ isSvgMode = false;
604
+ }
605
+ {
606
+ updateElement(null, newVNode2, isSvgMode);
607
+ }
608
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
609
+ elm.classList.add(elm["s-si"] = scopeId);
610
+ }
611
+ if (newVNode2.$children$) {
612
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
613
+ childNode = createElm(oldParentVNode, newVNode2, i2);
614
+ if (childNode) {
615
+ elm.appendChild(childNode);
616
+ }
617
+ }
618
+ }
619
+ {
620
+ if (newVNode2.$tag$ === "svg") {
621
+ isSvgMode = false;
622
+ } else if (elm.tagName === "foreignObject") {
623
+ isSvgMode = true;
624
+ }
625
+ }
626
+ }
627
+ elm["s-hn"] = hostTagName;
628
+ return elm;
629
+ };
630
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
631
+ let containerElm = parentElm;
632
+ let childNode;
633
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
634
+ containerElm = containerElm.shadowRoot;
635
+ }
636
+ for (; startIdx <= endIdx; ++startIdx) {
637
+ if (vnodes[startIdx]) {
638
+ childNode = createElm(null, parentVNode, startIdx);
639
+ if (childNode) {
640
+ vnodes[startIdx].$elm$ = childNode;
641
+ insertBefore(containerElm, childNode, before);
642
+ }
643
+ }
644
+ }
645
+ };
646
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
647
+ for (let index = startIdx; index <= endIdx; ++index) {
648
+ const vnode = vnodes[index];
649
+ if (vnode) {
650
+ const elm = vnode.$elm$;
651
+ nullifyVNodeRefs(vnode);
652
+ if (elm) {
653
+ elm.remove();
654
+ }
655
+ }
656
+ }
657
+ };
658
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
659
+ let oldStartIdx = 0;
660
+ let newStartIdx = 0;
661
+ let idxInOld = 0;
662
+ let i2 = 0;
663
+ let oldEndIdx = oldCh.length - 1;
664
+ let oldStartVnode = oldCh[0];
665
+ let oldEndVnode = oldCh[oldEndIdx];
666
+ let newEndIdx = newCh.length - 1;
667
+ let newStartVnode = newCh[0];
668
+ let newEndVnode = newCh[newEndIdx];
669
+ let node;
670
+ let elmToMove;
671
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
672
+ if (oldStartVnode == null) {
673
+ oldStartVnode = oldCh[++oldStartIdx];
674
+ } else if (oldEndVnode == null) {
675
+ oldEndVnode = oldCh[--oldEndIdx];
676
+ } else if (newStartVnode == null) {
677
+ newStartVnode = newCh[++newStartIdx];
678
+ } else if (newEndVnode == null) {
679
+ newEndVnode = newCh[--newEndIdx];
680
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
681
+ patch(oldStartVnode, newStartVnode, isInitialRender);
682
+ oldStartVnode = oldCh[++oldStartIdx];
683
+ newStartVnode = newCh[++newStartIdx];
684
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
685
+ patch(oldEndVnode, newEndVnode, isInitialRender);
686
+ oldEndVnode = oldCh[--oldEndIdx];
687
+ newEndVnode = newCh[--newEndIdx];
688
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
689
+ patch(oldStartVnode, newEndVnode, isInitialRender);
690
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
691
+ oldStartVnode = oldCh[++oldStartIdx];
692
+ newEndVnode = newCh[--newEndIdx];
693
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
694
+ patch(oldEndVnode, newStartVnode, isInitialRender);
695
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
696
+ oldEndVnode = oldCh[--oldEndIdx];
697
+ newStartVnode = newCh[++newStartIdx];
698
+ } else {
699
+ idxInOld = -1;
700
+ {
701
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
702
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
703
+ idxInOld = i2;
704
+ break;
705
+ }
706
+ }
707
+ }
708
+ if (idxInOld >= 0) {
709
+ elmToMove = oldCh[idxInOld];
710
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
711
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
712
+ } else {
713
+ patch(elmToMove, newStartVnode, isInitialRender);
714
+ oldCh[idxInOld] = void 0;
715
+ node = elmToMove.$elm$;
716
+ }
717
+ newStartVnode = newCh[++newStartIdx];
718
+ } else {
719
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
720
+ newStartVnode = newCh[++newStartIdx];
721
+ }
722
+ if (node) {
723
+ {
724
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
725
+ }
726
+ }
727
+ }
728
+ }
729
+ if (oldStartIdx > oldEndIdx) {
730
+ addVnodes(
731
+ parentElm,
732
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
733
+ newVNode2,
734
+ newCh,
735
+ newStartIdx,
736
+ newEndIdx
737
+ );
738
+ } else if (newStartIdx > newEndIdx) {
739
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
740
+ }
741
+ };
742
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
743
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
744
+ if (!isInitialRender) {
745
+ return leftVNode.$key$ === rightVNode.$key$;
746
+ }
747
+ return true;
748
+ }
749
+ return false;
750
+ };
751
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
752
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
753
+ const oldChildren = oldVNode.$children$;
754
+ const newChildren = newVNode2.$children$;
755
+ const tag = newVNode2.$tag$;
756
+ const text = newVNode2.$text$;
757
+ if (text === null) {
758
+ {
759
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
760
+ }
761
+ {
762
+ if (tag === "slot" && !useNativeShadowDom) ; else {
763
+ updateElement(oldVNode, newVNode2, isSvgMode);
764
+ }
765
+ }
766
+ if (oldChildren !== null && newChildren !== null) {
767
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
768
+ } else if (newChildren !== null) {
769
+ if (oldVNode.$text$ !== null) {
770
+ elm.textContent = "";
771
+ }
772
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
773
+ } else if (oldChildren !== null) {
774
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
775
+ }
776
+ if (isSvgMode && tag === "svg") {
777
+ isSvgMode = false;
778
+ }
779
+ } else if (oldVNode.$text$ !== text) {
780
+ elm.data = text;
781
+ }
782
+ };
783
+ var nullifyVNodeRefs = (vNode) => {
784
+ {
785
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
786
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
787
+ }
788
+ };
789
+ var insertBefore = (parent, newNode, reference) => {
790
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
791
+ return inserted;
792
+ };
793
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
794
+ const hostElm = hostRef.$hostElement$;
795
+ const cmpMeta = hostRef.$cmpMeta$;
796
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
797
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
798
+ hostTagName = hostElm.tagName;
799
+ if (cmpMeta.$attrsToReflect$) {
800
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
801
+ cmpMeta.$attrsToReflect$.map(
802
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
803
+ );
804
+ }
805
+ if (isInitialLoad && rootVnode.$attrs$) {
806
+ for (const key of Object.keys(rootVnode.$attrs$)) {
807
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
808
+ rootVnode.$attrs$[key] = hostElm[key];
809
+ }
810
+ }
811
+ }
812
+ rootVnode.$tag$ = null;
813
+ rootVnode.$flags$ |= 4 /* isHost */;
814
+ hostRef.$vnode$ = rootVnode;
815
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
816
+ {
817
+ scopeId = hostElm["s-sc"];
818
+ }
819
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
820
+ patch(oldVNode, rootVnode, isInitialLoad);
821
+ };
822
+
823
+ // src/runtime/update-component.ts
824
+ var attachToAncestor = (hostRef, ancestorComponent) => {
825
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
826
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
827
+ }
828
+ };
829
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
830
+ {
831
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
832
+ }
833
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
834
+ hostRef.$flags$ |= 512 /* needsRerender */;
835
+ return;
836
+ }
837
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
838
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
839
+ return writeTask(dispatch) ;
840
+ };
841
+ var dispatchHooks = (hostRef, isInitialLoad) => {
842
+ const elm = hostRef.$hostElement$;
843
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
844
+ const instance = hostRef.$lazyInstance$ ;
845
+ if (!instance) {
846
+ throw new Error(
847
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
848
+ );
849
+ }
850
+ let maybePromise;
851
+ if (isInitialLoad) {
852
+ {
853
+ hostRef.$flags$ |= 256 /* isListenReady */;
854
+ if (hostRef.$queuedListeners$) {
855
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
856
+ hostRef.$queuedListeners$ = void 0;
857
+ }
858
+ }
859
+ {
860
+ maybePromise = safeCall(instance, "componentWillLoad");
861
+ }
862
+ }
863
+ {
864
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
865
+ }
866
+ endSchedule();
867
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
868
+ };
869
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
870
+ console.error(err2);
871
+ fn();
872
+ }) : fn();
873
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
874
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
875
+ var _a;
876
+ const elm = hostRef.$hostElement$;
877
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
878
+ const rc = elm["s-rc"];
879
+ if (isInitialLoad) {
880
+ attachStyles(hostRef);
881
+ }
882
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
883
+ {
884
+ callRender(hostRef, instance, elm, isInitialLoad);
885
+ }
886
+ if (rc) {
887
+ rc.map((cb) => cb());
888
+ elm["s-rc"] = void 0;
889
+ }
890
+ endRender();
891
+ endUpdate();
892
+ {
893
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
894
+ const postUpdate = () => postUpdateComponent(hostRef);
895
+ if (childrenPromises.length === 0) {
896
+ postUpdate();
897
+ } else {
898
+ Promise.all(childrenPromises).then(postUpdate);
899
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
900
+ childrenPromises.length = 0;
901
+ }
902
+ }
903
+ };
904
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
905
+ try {
906
+ instance = instance.render() ;
907
+ {
908
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
909
+ }
910
+ {
911
+ hostRef.$flags$ |= 2 /* hasRendered */;
912
+ }
913
+ {
914
+ {
915
+ {
916
+ renderVdom(hostRef, instance, isInitialLoad);
917
+ }
918
+ }
919
+ }
920
+ } catch (e) {
921
+ consoleError(e, hostRef.$hostElement$);
922
+ }
923
+ return null;
924
+ };
925
+ var postUpdateComponent = (hostRef) => {
926
+ const tagName = hostRef.$cmpMeta$.$tagName$;
927
+ const elm = hostRef.$hostElement$;
928
+ const endPostUpdate = createTime("postUpdate", tagName);
929
+ const instance = hostRef.$lazyInstance$ ;
930
+ const ancestorComponent = hostRef.$ancestorComponent$;
931
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
932
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
933
+ {
934
+ addHydratedFlag(elm);
935
+ }
936
+ {
937
+ safeCall(instance, "componentDidLoad");
938
+ }
939
+ endPostUpdate();
940
+ {
941
+ hostRef.$onReadyResolve$(elm);
942
+ if (!ancestorComponent) {
943
+ appDidLoad();
944
+ }
945
+ }
946
+ } else {
947
+ endPostUpdate();
948
+ }
949
+ {
950
+ hostRef.$onInstanceResolve$(elm);
951
+ }
952
+ {
953
+ if (hostRef.$onRenderResolve$) {
954
+ hostRef.$onRenderResolve$();
955
+ hostRef.$onRenderResolve$ = void 0;
956
+ }
957
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
958
+ nextTick(() => scheduleUpdate(hostRef, false));
959
+ }
960
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
961
+ }
962
+ };
963
+ var forceUpdate = (ref) => {
964
+ {
965
+ const hostRef = getHostRef(ref);
966
+ const isConnected = hostRef.$hostElement$.isConnected;
967
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
968
+ scheduleUpdate(hostRef, false);
969
+ }
970
+ return isConnected;
971
+ }
972
+ };
973
+ var appDidLoad = (who) => {
974
+ {
975
+ addHydratedFlag(doc.documentElement);
976
+ }
977
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
978
+ };
979
+ var safeCall = (instance, method, arg) => {
980
+ if (instance && instance[method]) {
981
+ try {
982
+ return instance[method](arg);
983
+ } catch (e) {
984
+ consoleError(e);
985
+ }
986
+ }
987
+ return void 0;
988
+ };
989
+ var addHydratedFlag = (elm) => {
990
+ var _a;
991
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
992
+ };
993
+
994
+ // src/runtime/set-value.ts
995
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
996
+ var setValue = (ref, propName, newVal, cmpMeta) => {
997
+ const hostRef = getHostRef(ref);
998
+ if (!hostRef) {
999
+ throw new Error(
1000
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1001
+ );
1002
+ }
1003
+ const elm = hostRef.$hostElement$ ;
1004
+ const oldVal = hostRef.$instanceValues$.get(propName);
1005
+ const flags = hostRef.$flags$;
1006
+ const instance = hostRef.$lazyInstance$ ;
1007
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1008
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1009
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1010
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1011
+ hostRef.$instanceValues$.set(propName, newVal);
1012
+ if (instance) {
1013
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1014
+ const watchMethods = cmpMeta.$watchers$[propName];
1015
+ if (watchMethods) {
1016
+ watchMethods.map((watchMethodName) => {
1017
+ try {
1018
+ instance[watchMethodName](newVal, oldVal, propName);
1019
+ } catch (e) {
1020
+ consoleError(e, elm);
1021
+ }
1022
+ });
1023
+ }
1024
+ }
1025
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1026
+ scheduleUpdate(hostRef, false);
1027
+ }
1028
+ }
1029
+ }
1030
+ };
1031
+
1032
+ // src/runtime/proxy-component.ts
1033
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1034
+ var _a, _b;
1035
+ const prototype = Cstr.prototype;
1036
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1037
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1038
+ cmpMeta.$watchers$ = Cstr.watchers;
1039
+ }
1040
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1041
+ members.map(([memberName, [memberFlags]]) => {
1042
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1043
+ Object.defineProperty(prototype, memberName, {
1044
+ get() {
1045
+ return getValue(this, memberName);
1046
+ },
1047
+ set(newValue) {
1048
+ setValue(this, memberName, newValue, cmpMeta);
1049
+ },
1050
+ configurable: true,
1051
+ enumerable: true
1052
+ });
1053
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1054
+ Object.defineProperty(prototype, memberName, {
1055
+ value(...args) {
1056
+ var _a2;
1057
+ const ref = getHostRef(this);
1058
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1059
+ var _a3;
1060
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1061
+ });
1062
+ }
1063
+ });
1064
+ }
1065
+ });
1066
+ if ((flags & 1 /* isElementConstructor */)) {
1067
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1068
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1069
+ plt.jmp(() => {
1070
+ var _a2;
1071
+ const propName = attrNameToPropName.get(attrName);
1072
+ if (this.hasOwnProperty(propName)) {
1073
+ newValue = this[propName];
1074
+ delete this[propName];
1075
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1076
+ return;
1077
+ } else if (propName == null) {
1078
+ const hostRef = getHostRef(this);
1079
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1080
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1081
+ const instance = hostRef.$lazyInstance$ ;
1082
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1083
+ entry == null ? void 0 : entry.forEach((callbackName) => {
1084
+ if (instance[callbackName] != null) {
1085
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1086
+ }
1087
+ });
1088
+ }
1089
+ return;
1090
+ }
1091
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1092
+ });
1093
+ };
1094
+ Cstr.observedAttributes = Array.from(
1095
+ /* @__PURE__ */ new Set([
1096
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1097
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1098
+ var _a2;
1099
+ const attrName = m[1] || propName;
1100
+ attrNameToPropName.set(attrName, propName);
1101
+ if (m[0] & 512 /* ReflectAttr */) {
1102
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1103
+ }
1104
+ return attrName;
1105
+ })
1106
+ ])
1107
+ );
1108
+ }
1109
+ }
1110
+ return Cstr;
1111
+ };
1112
+
1113
+ // src/runtime/initialize-component.ts
1114
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
+ let Cstr;
1116
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1117
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1118
+ const bundleId = cmpMeta.$lazyBundleId$;
1119
+ if (bundleId) {
1120
+ const CstrImport = loadModule(cmpMeta);
1121
+ if (CstrImport && "then" in CstrImport) {
1122
+ const endLoad = uniqueTime();
1123
+ Cstr = await CstrImport;
1124
+ endLoad();
1125
+ } else {
1126
+ Cstr = CstrImport;
1127
+ }
1128
+ if (!Cstr) {
1129
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1130
+ }
1131
+ if (!Cstr.isProxied) {
1132
+ {
1133
+ cmpMeta.$watchers$ = Cstr.watchers;
1134
+ }
1135
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1136
+ Cstr.isProxied = true;
1137
+ }
1138
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1139
+ {
1140
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1141
+ }
1142
+ try {
1143
+ new Cstr(hostRef);
1144
+ } catch (e) {
1145
+ consoleError(e);
1146
+ }
1147
+ {
1148
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1149
+ }
1150
+ {
1151
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1152
+ }
1153
+ endNewInstance();
1154
+ } else {
1155
+ Cstr = elm.constructor;
1156
+ const cmpTag = elm.localName;
1157
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1158
+ }
1159
+ if (Cstr && Cstr.style) {
1160
+ let style;
1161
+ if (typeof Cstr.style === "string") {
1162
+ style = Cstr.style;
1163
+ }
1164
+ const scopeId2 = getScopeId(cmpMeta);
1165
+ if (!styles.has(scopeId2)) {
1166
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1167
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1168
+ endRegisterStyles();
1169
+ }
1170
+ }
1171
+ }
1172
+ const ancestorComponent = hostRef.$ancestorComponent$;
1173
+ const schedule = () => scheduleUpdate(hostRef, true);
1174
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1175
+ ancestorComponent["s-rc"].push(schedule);
1176
+ } else {
1177
+ schedule();
1178
+ }
1179
+ };
1180
+ var fireConnectedCallback = (instance) => {
1181
+ };
1182
+
1183
+ // src/runtime/connected-callback.ts
1184
+ var connectedCallback = (elm) => {
1185
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1186
+ const hostRef = getHostRef(elm);
1187
+ const cmpMeta = hostRef.$cmpMeta$;
1188
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1189
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1190
+ hostRef.$flags$ |= 1 /* hasConnected */;
1191
+ {
1192
+ let ancestorComponent = elm;
1193
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1194
+ if (ancestorComponent["s-p"]) {
1195
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1196
+ break;
1197
+ }
1198
+ }
1199
+ }
1200
+ if (cmpMeta.$members$) {
1201
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1202
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1203
+ const value = elm[memberName];
1204
+ delete elm[memberName];
1205
+ elm[memberName] = value;
1206
+ }
1207
+ });
1208
+ }
1209
+ {
1210
+ initializeComponent(elm, hostRef, cmpMeta);
1211
+ }
1212
+ } else {
1213
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1214
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1215
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1216
+ }
1217
+ }
1218
+ endConnected();
1219
+ }
1220
+ };
1221
+ var disconnectInstance = (instance) => {
1222
+ {
1223
+ safeCall(instance, "disconnectedCallback");
1224
+ }
1225
+ };
1226
+ var disconnectedCallback = async (elm) => {
1227
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1228
+ const hostRef = getHostRef(elm);
1229
+ {
1230
+ if (hostRef.$rmListeners$) {
1231
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1232
+ hostRef.$rmListeners$ = void 0;
1233
+ }
1234
+ }
1235
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1236
+ disconnectInstance(hostRef.$lazyInstance$);
1237
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1238
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1239
+ }
1240
+ }
1241
+ };
1242
+
1243
+ // src/runtime/bootstrap-lazy.ts
1244
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1245
+ var _a;
1246
+ const endBootstrap = createTime();
1247
+ const cmpTags = [];
1248
+ const exclude = options.exclude || [];
1249
+ const customElements2 = win.customElements;
1250
+ const head = doc.head;
1251
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1252
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
1253
+ const deferredConnectedCallbacks = [];
1254
+ let appLoadFallback;
1255
+ let isBootstrapping = true;
1256
+ Object.assign(plt, options);
1257
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1258
+ let hasSlotRelocation = false;
1259
+ lazyBundles.map((lazyBundle) => {
1260
+ lazyBundle[1].map((compactMeta) => {
1261
+ var _a2;
1262
+ const cmpMeta = {
1263
+ $flags$: compactMeta[0],
1264
+ $tagName$: compactMeta[1],
1265
+ $members$: compactMeta[2],
1266
+ $listeners$: compactMeta[3]
1267
+ };
1268
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1269
+ hasSlotRelocation = true;
1270
+ }
1271
+ {
1272
+ cmpMeta.$members$ = compactMeta[2];
1273
+ }
1274
+ {
1275
+ cmpMeta.$listeners$ = compactMeta[3];
1276
+ }
1277
+ {
1278
+ cmpMeta.$attrsToReflect$ = [];
1279
+ }
1280
+ {
1281
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1282
+ }
1283
+ const tagName = cmpMeta.$tagName$;
1284
+ const HostElement = class extends HTMLElement {
1285
+ // StencilLazyHost
1286
+ constructor(self) {
1287
+ super(self);
1288
+ this.hasRegisteredEventListeners = false;
1289
+ self = this;
1290
+ registerHost(self, cmpMeta);
1291
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1292
+ {
1293
+ if (!self.shadowRoot) {
1294
+ {
1295
+ self.attachShadow({ mode: "open" });
1296
+ }
1297
+ } else {
1298
+ if (self.shadowRoot.mode !== "open") {
1299
+ throw new Error(
1300
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1301
+ );
1302
+ }
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ connectedCallback() {
1308
+ const hostRef = getHostRef(this);
1309
+ if (!this.hasRegisteredEventListeners) {
1310
+ this.hasRegisteredEventListeners = true;
1311
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1312
+ }
1313
+ if (appLoadFallback) {
1314
+ clearTimeout(appLoadFallback);
1315
+ appLoadFallback = null;
1316
+ }
1317
+ if (isBootstrapping) {
1318
+ deferredConnectedCallbacks.push(this);
1319
+ } else {
1320
+ plt.jmp(() => connectedCallback(this));
1321
+ }
1322
+ }
1323
+ disconnectedCallback() {
1324
+ plt.jmp(() => disconnectedCallback(this));
1325
+ }
1326
+ componentOnReady() {
1327
+ return getHostRef(this).$onReadyPromise$;
1328
+ }
1329
+ };
1330
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1331
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1332
+ cmpTags.push(tagName);
1333
+ customElements2.define(
1334
+ tagName,
1335
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1336
+ );
1337
+ }
1338
+ });
1339
+ });
1340
+ if (cmpTags.length > 0) {
1341
+ if (hasSlotRelocation) {
1342
+ dataStyles.textContent += SLOT_FB_CSS;
1343
+ }
1344
+ {
1345
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1346
+ }
1347
+ if (dataStyles.innerHTML.length) {
1348
+ dataStyles.setAttribute("data-styles", "");
1349
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1350
+ if (nonce != null) {
1351
+ dataStyles.setAttribute("nonce", nonce);
1352
+ }
1353
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1354
+ }
1355
+ }
1356
+ isBootstrapping = false;
1357
+ if (deferredConnectedCallbacks.length) {
1358
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1359
+ } else {
1360
+ {
1361
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1362
+ }
1363
+ }
1364
+ endBootstrap();
1365
+ };
1366
+
1367
+ // src/runtime/fragment.ts
1368
+ var Fragment = (_, children) => children;
1369
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1370
+ if (listeners) {
1371
+ listeners.map(([flags, name, method]) => {
1372
+ const target = getHostListenerTarget(elm, flags) ;
1373
+ const handler = hostListenerProxy(hostRef, method);
1374
+ const opts = hostListenerOpts(flags);
1375
+ plt.ael(target, name, handler, opts);
1376
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1377
+ });
1378
+ }
1379
+ };
1380
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1381
+ var _a;
1382
+ try {
1383
+ {
1384
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
1385
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1386
+ } else {
1387
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1388
+ }
1389
+ }
1390
+ } catch (e) {
1391
+ consoleError(e);
1392
+ }
1393
+ };
1394
+ var getHostListenerTarget = (elm, flags) => {
1395
+ if (flags & 8 /* TargetWindow */) return win;
1396
+ return elm;
1397
+ };
1398
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1399
+ passive: (flags & 1 /* Passive */) !== 0,
1400
+ capture: (flags & 2 /* Capture */) !== 0
1401
+ } : (flags & 2 /* Capture */) !== 0;
1402
+
1403
+ // src/runtime/nonce.ts
1404
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1405
+
1406
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1407
+
1408
+ //# sourceMappingURL=index-91db3414.js.map