@limetech/kompendium 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +313 -0
  3. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +13 -0
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
  5. package/dist/cjs/anchor-scroll-BmplAyR0.js +69 -0
  6. package/dist/cjs/anchor-scroll-BmplAyR0.js.map +1 -0
  7. package/dist/cjs/index-DYiJ6dQL.js +1866 -0
  8. package/dist/cjs/index-DYiJ6dQL.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.cjs.js.map +1 -0
  12. package/dist/cjs/kompendium-app_7.cjs.entry.js +2924 -0
  13. package/dist/cjs/kompendium-code.cjs.entry.js +2724 -0
  14. package/dist/cjs/kompendium-code.entry.cjs.js.map +1 -0
  15. package/dist/cjs/kompendium-component.cjs.entry.js +207 -0
  16. package/dist/cjs/kompendium-component.entry.cjs.js.map +1 -0
  17. package/dist/cjs/kompendium-debug.cjs.entry.js +47 -0
  18. package/dist/cjs/kompendium-debug.entry.cjs.js.map +1 -0
  19. package/dist/cjs/kompendium-example-code.cjs.entry.js +20 -0
  20. package/dist/cjs/kompendium-example-code.entry.cjs.js.map +1 -0
  21. package/dist/cjs/kompendium-example-markdown.cjs.entry.js +165 -0
  22. package/dist/cjs/kompendium-example-markdown.entry.cjs.js.map +1 -0
  23. package/dist/cjs/kompendium-guide.cjs.entry.js +33 -0
  24. package/dist/cjs/kompendium-guide.entry.cjs.js.map +1 -0
  25. package/dist/cjs/kompendium-markdown.cjs.entry.js +48923 -0
  26. package/dist/cjs/kompendium-markdown.entry.cjs.js.map +1 -0
  27. package/dist/cjs/kompendium-playground.cjs.entry.js +89 -0
  28. package/dist/cjs/kompendium-playground.entry.cjs.js.map +1 -0
  29. package/dist/cjs/kompendium-proplist.kompendium-taglist.entry.cjs.js.map +1 -0
  30. package/dist/cjs/kompendium-proplist_2.cjs.entry.js +49 -0
  31. package/dist/cjs/kompendium-type.cjs.entry.js +83 -0
  32. package/dist/cjs/kompendium-type.entry.cjs.js.map +1 -0
  33. package/dist/cjs/kompendium.cjs.js +25 -0
  34. package/dist/cjs/kompendium.cjs.js.map +1 -0
  35. package/dist/cjs/loader.cjs.js +13 -0
  36. package/dist/cjs/loader.cjs.js.map +1 -0
  37. package/dist/cjs/markdown-types-B884tLd-.js +15 -0
  38. package/dist/cjs/markdown-types-B884tLd-.js.map +1 -0
  39. package/dist/cjs/methods-DoA78dOH.js +97 -0
  40. package/dist/cjs/methods-DoA78dOH.js.map +1 -0
  41. package/dist/cjs/types-SjA7Kcy_.js +8 -0
  42. package/dist/cjs/types-SjA7Kcy_.js.map +1 -0
  43. package/dist/collection/assets/favicon.svg +65 -0
  44. package/dist/collection/assets/icons/bookmark-fill.svg +1 -0
  45. package/dist/collection/assets/icons/danger.svg +1 -0
  46. package/dist/collection/assets/icons/debug.svg +1 -0
  47. package/dist/collection/assets/icons/important.svg +1 -0
  48. package/dist/collection/assets/icons/info.svg +1 -0
  49. package/dist/collection/assets/icons/logo.svg +1 -0
  50. package/dist/collection/assets/icons/note.svg +1 -0
  51. package/dist/collection/assets/icons/search.svg +1 -0
  52. package/dist/collection/assets/icons/tip.svg +1 -0
  53. package/dist/collection/assets/icons/warning.svg +1 -0
  54. package/dist/collection/assets/logotype.svg +64 -0
  55. package/dist/collection/collection-manifest.json +35 -0
  56. package/dist/collection/components/anchor-scroll.js +61 -0
  57. package/dist/collection/components/anchor-scroll.js.map +1 -0
  58. package/dist/collection/components/app/app.css +125 -0
  59. package/dist/collection/components/app/app.js +149 -0
  60. package/dist/collection/components/app/app.js.map +1 -0
  61. package/dist/collection/components/code/code.css +250 -0
  62. package/dist/collection/components/code/code.js +82 -0
  63. package/dist/collection/components/code/code.js.map +1 -0
  64. package/dist/collection/components/code/examples/code.js +14 -0
  65. package/dist/collection/components/code/examples/code.js.map +1 -0
  66. package/dist/collection/components/component/component.css +383 -0
  67. package/dist/collection/components/component/component.js +191 -0
  68. package/dist/collection/components/component/component.js.map +1 -0
  69. package/dist/collection/components/component/templates/events.js +32 -0
  70. package/dist/collection/components/component/templates/events.js.map +1 -0
  71. package/dist/collection/components/component/templates/examples.js +17 -0
  72. package/dist/collection/components/component/templates/examples.js.map +1 -0
  73. package/dist/collection/components/component/templates/methods.js +54 -0
  74. package/dist/collection/components/component/templates/methods.js.map +1 -0
  75. package/dist/collection/components/component/templates/props.js +36 -0
  76. package/dist/collection/components/component/templates/props.js.map +1 -0
  77. package/dist/collection/components/component/templates/slots.js +14 -0
  78. package/dist/collection/components/component/templates/slots.js.map +1 -0
  79. package/dist/collection/components/component/templates/style.js +14 -0
  80. package/dist/collection/components/component/templates/style.js.map +1 -0
  81. package/dist/collection/components/darkmode-switch/darkmode-switch.css +141 -0
  82. package/dist/collection/components/darkmode-switch/darkmode-switch.js +90 -0
  83. package/dist/collection/components/darkmode-switch/darkmode-switch.js.map +1 -0
  84. package/dist/collection/components/darkmode-switch/types.js +2 -0
  85. package/dist/collection/components/darkmode-switch/types.js.map +1 -0
  86. package/dist/collection/components/debug/debug.js +146 -0
  87. package/dist/collection/components/debug/debug.js.map +1 -0
  88. package/dist/collection/components/guide/guide.js +61 -0
  89. package/dist/collection/components/guide/guide.js.map +1 -0
  90. package/dist/collection/components/markdown/examples/markdown-example.js +150 -0
  91. package/dist/collection/components/markdown/examples/markdown-example.js.map +1 -0
  92. package/dist/collection/components/markdown/examples/markdown.js +14 -0
  93. package/dist/collection/components/markdown/examples/markdown.js.map +1 -0
  94. package/dist/collection/components/markdown/markdown-types.js +8 -0
  95. package/dist/collection/components/markdown/markdown-types.js.map +1 -0
  96. package/dist/collection/components/markdown/markdown.css +660 -0
  97. package/dist/collection/components/markdown/markdown.js +83 -0
  98. package/dist/collection/components/markdown/markdown.js.map +1 -0
  99. package/dist/collection/components/navigation/navigation.css +403 -0
  100. package/dist/collection/components/navigation/navigation.js +184 -0
  101. package/dist/collection/components/navigation/navigation.js.map +1 -0
  102. package/dist/collection/components/playground/playground.css +198 -0
  103. package/dist/collection/components/playground/playground.js +174 -0
  104. package/dist/collection/components/playground/playground.js.map +1 -0
  105. package/dist/collection/components/playground/playground.types.js +2 -0
  106. package/dist/collection/components/playground/playground.types.js.map +1 -0
  107. package/dist/collection/components/proplist/proplist.css +334 -0
  108. package/dist/collection/components/proplist/proplist.js +53 -0
  109. package/dist/collection/components/proplist/proplist.js.map +1 -0
  110. package/dist/collection/components/search/search.css +183 -0
  111. package/dist/collection/components/search/search.js +76 -0
  112. package/dist/collection/components/search/search.js.map +1 -0
  113. package/dist/collection/components/taglist/taglist.css +58 -0
  114. package/dist/collection/components/taglist/taglist.js +82 -0
  115. package/dist/collection/components/taglist/taglist.js.map +1 -0
  116. package/dist/collection/components/type/templates/alias.js +11 -0
  117. package/dist/collection/components/type/templates/alias.js.map +1 -0
  118. package/dist/collection/components/type/templates/enum.js +25 -0
  119. package/dist/collection/components/type/templates/enum.js.map +1 -0
  120. package/dist/collection/components/type/templates/interface.js +13 -0
  121. package/dist/collection/components/type/templates/interface.js.map +1 -0
  122. package/dist/collection/components/type/type.js +97 -0
  123. package/dist/collection/components/type/type.js.map +1 -0
  124. package/dist/collection/index.js +4 -0
  125. package/dist/collection/index.js.map +1 -0
  126. package/dist/collection/kompendium/config.js +7 -0
  127. package/dist/collection/kompendium/config.js.map +1 -0
  128. package/dist/collection/kompendium/filesystem.js +9 -0
  129. package/dist/collection/kompendium/filesystem.js.map +1 -0
  130. package/dist/collection/kompendium/generator.js +217 -0
  131. package/dist/collection/kompendium/generator.js.map +1 -0
  132. package/dist/collection/kompendium/guides.js +30 -0
  133. package/dist/collection/kompendium/guides.js.map +1 -0
  134. package/dist/collection/kompendium/index.js +2 -0
  135. package/dist/collection/kompendium/index.js.map +1 -0
  136. package/dist/collection/kompendium/markdown-admonitions.js +82 -0
  137. package/dist/collection/kompendium/markdown-admonitions.js.map +1 -0
  138. package/dist/collection/kompendium/markdown-code.js +40 -0
  139. package/dist/collection/kompendium/markdown-code.js.map +1 -0
  140. package/dist/collection/kompendium/markdown-frontmatter.js +12 -0
  141. package/dist/collection/kompendium/markdown-frontmatter.js.map +1 -0
  142. package/dist/collection/kompendium/markdown-nodes.js +10 -0
  143. package/dist/collection/kompendium/markdown-nodes.js.map +1 -0
  144. package/dist/collection/kompendium/markdown-typelinks.js +115 -0
  145. package/dist/collection/kompendium/markdown-typelinks.js.map +1 -0
  146. package/dist/collection/kompendium/markdown.js +35 -0
  147. package/dist/collection/kompendium/markdown.js.map +1 -0
  148. package/dist/collection/kompendium/menu.js +149 -0
  149. package/dist/collection/kompendium/menu.js.map +1 -0
  150. package/dist/collection/kompendium/schema.js +167 -0
  151. package/dist/collection/kompendium/schema.js.map +1 -0
  152. package/dist/collection/kompendium/search.js +144 -0
  153. package/dist/collection/kompendium/search.js.map +1 -0
  154. package/dist/collection/kompendium/source.js +81 -0
  155. package/dist/collection/kompendium/source.js.map +1 -0
  156. package/dist/collection/kompendium/test/fixtures/basic.js +48 -0
  157. package/dist/collection/kompendium/test/fixtures/basic.js.map +1 -0
  158. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js +2 -0
  159. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js.map +1 -0
  160. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js +2 -0
  161. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js.map +1 -0
  162. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js +2 -0
  163. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js.map +1 -0
  164. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js +2 -0
  165. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js.map +1 -0
  166. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js +2 -0
  167. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js.map +1 -0
  168. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js +29 -0
  169. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js.map +1 -0
  170. package/dist/collection/kompendium/typedoc.js +481 -0
  171. package/dist/collection/kompendium/typedoc.js.map +1 -0
  172. package/dist/collection/kompendium/watch.js +9 -0
  173. package/dist/collection/kompendium/watch.js.map +1 -0
  174. package/dist/collection/types.js +2 -0
  175. package/dist/collection/types.js.map +1 -0
  176. package/dist/config.ts +8 -0
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +10 -0
  178. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
  179. package/dist/esm/anchor-scroll-BAGXN2n6.js +65 -0
  180. package/dist/esm/anchor-scroll-BAGXN2n6.js.map +1 -0
  181. package/dist/esm/index-9UrzenzW.js +1857 -0
  182. package/dist/esm/index-9UrzenzW.js.map +1 -0
  183. package/dist/esm/index.js +2 -0
  184. package/dist/esm/index.js.map +1 -0
  185. package/dist/esm/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.js.map +1 -0
  186. package/dist/esm/kompendium-app_7.entry.js +2916 -0
  187. package/dist/esm/kompendium-code.entry.js +2722 -0
  188. package/dist/esm/kompendium-code.entry.js.map +1 -0
  189. package/dist/esm/kompendium-component.entry.js +205 -0
  190. package/dist/esm/kompendium-component.entry.js.map +1 -0
  191. package/dist/esm/kompendium-debug.entry.js +45 -0
  192. package/dist/esm/kompendium-debug.entry.js.map +1 -0
  193. package/dist/esm/kompendium-example-code.entry.js +18 -0
  194. package/dist/esm/kompendium-example-code.entry.js.map +1 -0
  195. package/dist/esm/kompendium-example-markdown.entry.js +163 -0
  196. package/dist/esm/kompendium-example-markdown.entry.js.map +1 -0
  197. package/dist/esm/kompendium-guide.entry.js +31 -0
  198. package/dist/esm/kompendium-guide.entry.js.map +1 -0
  199. package/dist/esm/kompendium-markdown.entry.js +48921 -0
  200. package/dist/esm/kompendium-markdown.entry.js.map +1 -0
  201. package/dist/esm/kompendium-playground.entry.js +87 -0
  202. package/dist/esm/kompendium-playground.entry.js.map +1 -0
  203. package/dist/esm/kompendium-proplist.kompendium-taglist.entry.js.map +1 -0
  204. package/dist/esm/kompendium-proplist_2.entry.js +46 -0
  205. package/dist/esm/kompendium-type.entry.js +81 -0
  206. package/dist/esm/kompendium-type.entry.js.map +1 -0
  207. package/dist/esm/kompendium.js +21 -0
  208. package/dist/esm/kompendium.js.map +1 -0
  209. package/dist/esm/loader.js +11 -0
  210. package/dist/esm/loader.js.map +1 -0
  211. package/dist/esm/markdown-types-Ajsawr_9.js +12 -0
  212. package/dist/esm/markdown-types-Ajsawr_9.js.map +1 -0
  213. package/dist/esm/methods-BAjd6f7g.js +94 -0
  214. package/dist/esm/methods-BAjd6f7g.js.map +1 -0
  215. package/dist/esm/types-BIPLEi1G.js +6 -0
  216. package/dist/esm/types-BIPLEi1G.js.map +1 -0
  217. package/dist/filesystem.ts +9 -0
  218. package/dist/generator.ts +302 -0
  219. package/dist/guides.ts +49 -0
  220. package/dist/index.cjs.js +1 -0
  221. package/dist/index.js +1 -0
  222. package/dist/index.ts +1 -0
  223. package/dist/kompendium/index.esm.js +2 -0
  224. package/dist/kompendium/index.esm.js.map +1 -0
  225. package/dist/kompendium/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.esm.js.map +1 -0
  226. package/dist/kompendium/kompendium-code.entry.esm.js.map +1 -0
  227. package/dist/kompendium/kompendium-component.entry.esm.js.map +1 -0
  228. package/dist/kompendium/kompendium-debug.entry.esm.js.map +1 -0
  229. package/dist/kompendium/kompendium-example-code.entry.esm.js.map +1 -0
  230. package/dist/kompendium/kompendium-example-markdown.entry.esm.js.map +1 -0
  231. package/dist/kompendium/kompendium-guide.entry.esm.js.map +1 -0
  232. package/dist/kompendium/kompendium-markdown.entry.esm.js.map +1 -0
  233. package/dist/kompendium/kompendium-playground.entry.esm.js.map +1 -0
  234. package/dist/kompendium/kompendium-proplist.kompendium-taglist.entry.esm.js.map +1 -0
  235. package/dist/kompendium/kompendium-type.entry.esm.js.map +1 -0
  236. package/dist/kompendium/kompendium.css +47 -0
  237. package/dist/kompendium/kompendium.esm.js +2 -0
  238. package/dist/kompendium/kompendium.esm.js.map +1 -0
  239. package/dist/kompendium/loader.esm.js.map +1 -0
  240. package/dist/kompendium/p-15e4b2c0.entry.js +2 -0
  241. package/dist/kompendium/p-15e4b2c0.entry.js.map +1 -0
  242. package/dist/kompendium/p-1cf0168f.entry.js +2 -0
  243. package/dist/kompendium/p-1cf0168f.entry.js.map +1 -0
  244. package/dist/kompendium/p-29c23c89.entry.js +2 -0
  245. package/dist/kompendium/p-29c23c89.entry.js.map +1 -0
  246. package/dist/kompendium/p-3981d11f.entry.js +2 -0
  247. package/dist/kompendium/p-3981d11f.entry.js.map +1 -0
  248. package/dist/kompendium/p-93f0548d.entry.js +2 -0
  249. package/dist/kompendium/p-93f0548d.entry.js.map +1 -0
  250. package/dist/kompendium/p-97b02575.entry.js +2 -0
  251. package/dist/kompendium/p-97b02575.entry.js.map +1 -0
  252. package/dist/kompendium/p-9UrzenzW.js +3 -0
  253. package/dist/kompendium/p-9UrzenzW.js.map +1 -0
  254. package/dist/kompendium/p-Ajsawr_9.js +2 -0
  255. package/dist/kompendium/p-Ajsawr_9.js.map +1 -0
  256. package/dist/kompendium/p-BAGXN2n6.js +2 -0
  257. package/dist/kompendium/p-BAGXN2n6.js.map +1 -0
  258. package/dist/kompendium/p-BFTU3MAI.js +2 -0
  259. package/dist/kompendium/p-BFTU3MAI.js.map +1 -0
  260. package/dist/kompendium/p-BIPLEi1G.js +2 -0
  261. package/dist/kompendium/p-BIPLEi1G.js.map +1 -0
  262. package/dist/kompendium/p-CnQEA7KO.js +2 -0
  263. package/dist/kompendium/p-CnQEA7KO.js.map +1 -0
  264. package/dist/kompendium/p-b0f95bd6.entry.js +2 -0
  265. package/dist/kompendium/p-b0f95bd6.entry.js.map +1 -0
  266. package/dist/kompendium/p-d9bcc473.entry.js +10 -0
  267. package/dist/kompendium/p-d9bcc473.entry.js.map +1 -0
  268. package/dist/kompendium/p-e36f3f1e.entry.js +2 -0
  269. package/dist/kompendium/p-e36f3f1e.entry.js.map +1 -0
  270. package/dist/kompendium/p-e52a2f57.entry.js +2 -0
  271. package/dist/kompendium/p-e52a2f57.entry.js.map +1 -0
  272. package/dist/kompendium/p-ec5861de.entry.js +2 -0
  273. package/dist/kompendium/p-ec5861de.entry.js.map +1 -0
  274. package/dist/markdown-admonitions.ts +112 -0
  275. package/dist/markdown-code.ts +51 -0
  276. package/dist/markdown-frontmatter.ts +19 -0
  277. package/dist/markdown-nodes.ts +23 -0
  278. package/dist/markdown-typelinks.ts +166 -0
  279. package/dist/markdown.ts +49 -0
  280. package/dist/menu.ts +189 -0
  281. package/dist/schema.ts +233 -0
  282. package/dist/search.ts +197 -0
  283. package/dist/source.ts +129 -0
  284. package/dist/typedoc.ts +665 -0
  285. package/dist/types/components/anchor-scroll.d.ts +36 -0
  286. package/dist/types/components/app/app.d.ts +22 -0
  287. package/dist/types/components/code/code.d.ts +26 -0
  288. package/dist/types/components/code/examples/code.d.ts +3 -0
  289. package/dist/types/components/component/component.d.ts +32 -0
  290. package/dist/types/components/component/templates/events.d.ts +5 -0
  291. package/dist/types/components/component/templates/examples.d.ts +9 -0
  292. package/dist/types/components/component/templates/methods.d.ts +5 -0
  293. package/dist/types/components/component/templates/props.d.ts +5 -0
  294. package/dist/types/components/component/templates/slots.d.ts +5 -0
  295. package/dist/types/components/component/templates/style.d.ts +5 -0
  296. package/dist/types/components/darkmode-switch/darkmode-switch.d.ts +18 -0
  297. package/dist/types/components/darkmode-switch/types.d.ts +2 -0
  298. package/dist/types/components/debug/debug.d.ts +24 -0
  299. package/dist/types/components/guide/guide.d.ts +14 -0
  300. package/dist/types/components/markdown/examples/markdown-example.d.ts +1 -0
  301. package/dist/types/components/markdown/examples/markdown.d.ts +7 -0
  302. package/dist/types/components/markdown/markdown-types.d.ts +2 -0
  303. package/dist/types/components/markdown/markdown.d.ts +20 -0
  304. package/dist/types/components/navigation/navigation.d.ts +35 -0
  305. package/dist/types/components/playground/playground.d.ts +32 -0
  306. package/dist/types/components/playground/playground.types.d.ts +1 -0
  307. package/dist/types/components/proplist/proplist.d.ts +12 -0
  308. package/dist/types/components/search/search.d.ts +15 -0
  309. package/dist/types/components/taglist/taglist.d.ts +16 -0
  310. package/dist/types/components/type/templates/alias.d.ts +4 -0
  311. package/dist/types/components/type/templates/enum.d.ts +4 -0
  312. package/dist/types/components/type/templates/interface.d.ts +4 -0
  313. package/dist/types/components/type/type.d.ts +15 -0
  314. package/dist/types/components.d.ts +517 -0
  315. package/dist/types/index.d.ts +5 -0
  316. package/dist/types/kompendium/config.d.ts +2 -0
  317. package/dist/types/kompendium/filesystem.d.ts +1 -0
  318. package/dist/types/kompendium/generator.d.ts +4 -0
  319. package/dist/types/kompendium/guides.d.ts +9 -0
  320. package/dist/types/kompendium/index.d.ts +1 -0
  321. package/dist/types/kompendium/markdown-admonitions.d.ts +3 -0
  322. package/dist/types/kompendium/markdown-code.d.ts +2 -0
  323. package/dist/types/kompendium/markdown-frontmatter.d.ts +6 -0
  324. package/dist/types/kompendium/markdown-nodes.d.ts +12 -0
  325. package/dist/types/kompendium/markdown-typelinks.d.ts +21 -0
  326. package/dist/types/kompendium/markdown.d.ts +8 -0
  327. package/dist/types/kompendium/menu.d.ts +12 -0
  328. package/dist/types/kompendium/schema.d.ts +9 -0
  329. package/dist/types/kompendium/search.d.ts +3 -0
  330. package/dist/types/kompendium/source.d.ts +10 -0
  331. package/dist/types/kompendium/test/fixtures/basic.d.ts +65 -0
  332. package/dist/types/kompendium/test/fixtures/filtering/example-type.d.ts +8 -0
  333. package/dist/types/kompendium/test/fixtures/filtering/node-modules-type.d.ts +8 -0
  334. package/dist/types/kompendium/test/fixtures/filtering/private-types.d.ts +23 -0
  335. package/dist/types/kompendium/test/fixtures/filtering/stencil-component-types.d.ts +19 -0
  336. package/dist/types/kompendium/test/fixtures/filtering/test-helper-type.d.ts +8 -0
  337. package/dist/types/kompendium/test/fixtures/filtering/valid-types.d.ts +42 -0
  338. package/dist/types/kompendium/typedoc.d.ts +2 -0
  339. package/dist/types/kompendium/watch.d.ts +1 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1746 -0
  341. package/dist/types/types.d.ts +119 -0
  342. package/dist/watch.ts +14 -0
  343. package/loader/cdn.js +1 -0
  344. package/loader/index.cjs.js +1 -0
  345. package/loader/index.d.ts +24 -0
  346. package/loader/index.es2017.js +1 -0
  347. package/loader/index.js +2 -0
  348. package/package.json +116 -0
@@ -0,0 +1,1866 @@
1
+ 'use strict';
2
+
3
+ const NAMESPACE = 'kompendium';
4
+ const BUILD = /* kompendium */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, updatable: true};
5
+
6
+ const globalScripts = () => {};
7
+ const globalStyles = "@import url(\"https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Source+Code+Pro&display=swap\"); div#dev-server-progress-bar{position:fixed !important;top:0.75rem !important;left:0.5rem !important;width:calc(100% - 1rem) !important;background-color:rgb(var(--kompendium-color-primary)) !important;height:0.1875rem !important}div#dev-server-modal{perspective:60rem;perspective-origin:top;display:flex !important;flex-direction:column;position:fixed !important;padding:2rem min(4rem, 4vw) !important;background-color:transparent !important}div#dev-server-modal #dev-server-modal-inner{animation:fade-in-modal 0.6s cubic-bezier(0.45, -0.01, 0.15, 1.47) forwards;overflow-x:auto;height:fit-content !important;box-shadow:var(--kompendium-shadow-depth-64), var(--kompendium-shadow-depth-8-error);border-radius:0.75rem;padding-bottom:0 !important;background-color:white}@keyframes fade-in-modal{0%{opacity:0;transform:translate3d(0, -2rem, 0) rotateX(7deg)}100%{opacity:1;transform:translate3d(0, 0, 0) rotateX(0deg)}}*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],li,figure,figcaption,blockquote,dl,dd{margin:0}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:root{--width-nav-panel:16rem}:root[data-theme=system-default]{color-scheme:dark light}:root[data-theme=force-light]{color-scheme:light}:root[data-theme=force-dark]{color-scheme:dark}:root{--kompendium-color-primary:33, 150, 243;--kompendium-color-error:229, 115, 115;--kompendium-color-white:255, 255, 255;--kompendium-color-black:0, 0, 0;--kompendium-contrast-100:255, 255, 255;--kompendium-contrast-200:250, 250, 251;--kompendium-contrast-300:246, 246, 247;--kompendium-contrast-400:241, 241, 243;--kompendium-contrast-500:237, 237, 238;--kompendium-contrast-600:232, 232, 234;--kompendium-contrast-700:209, 209, 213;--kompendium-contrast-800:186, 186, 192;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:117, 117, 128;--kompendium-contrast-1100:94, 94, 108;--kompendium-contrast-1200:71, 71, 86;--kompendium-contrast-1300:48, 48, 66;--kompendium-contrast-1400:39, 39, 57;--kompendium-contrast-1500:35, 35, 53;--kompendium-contrast-1600:25, 25, 44;--kompendium-contrast-1700:20, 20, 37;--kompendium-color-red-light:229, 115, 115;--kompendium-color-red-default:244, 67, 54;--kompendium-color-blue-light:100, 181, 246;--kompendium-color-blue-default:33, 150, 243;--kompendium-color-green-light:129, 199, 132;--kompendium-color-green-default:76, 175, 80;--kompendium-color-amber-light:255, 213, 79;--kompendium-color-amber-default:255, 193, 7;--kompendium-color-orange-light:255, 183, 77;--kompendium-color-orange-default:255, 152, 0}@media (prefers-color-scheme: dark){:root:not([data-theme=force-light]){--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}}:root[data-theme=force-dark]{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) :root{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}}:host([data-theme=force-dark]) :root{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}:root{--kompendium-color-code-pink:216, 27, 96;--kompendium-color-code-magenta:156, 22, 87;--kompendium-color-code-blue:33, 150, 243;--kompendium-color-code-orange:245, 124, 0;--kompendium-color-code-yellow:255, 87, 34;--kompendium-color-code-purple:149, 117, 205;--kompendium-color-code-green-light:53, 196, 84;--kompendium-color-code-green-dark:85, 139, 47;--kompendium-color-code-turquoise:0, 151, 167;--kompendium-color-code-gray-lighter:71, 71, 86;--kompendium-color-code-gray-light:var(--kompendium-contrast-1100);--kompendium-color-code-gray-dark:var(--kompendium-contrast-1200);--kompendium-color-code-background:var(--kompendium-contrast-200)}@media (prefers-color-scheme: dark){:root:not([data-theme=force-light]){--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}}:root[data-theme=force-dark]{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) :root{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}}:host([data-theme=force-dark]) :root{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}:root{--kompendium-focused-state:0 0 0 0.125rem rgb(var(--kompendium-color-primary));--kompendium-error-state:0 0 0 0.125rem rgb(var(--kompendium-color-error));--kompendium-button-shadow-normal:0 0.09375rem 0.225rem 0 rgba(var(--kompendium-color-black), 0.232),\n 0 0.01875rem 0.05625rem 0\n rgba(var(--kompendium-color-black), 0.208);--kompendium-button-shadow-hovered:0 0.125rem 0.375rem rgba(var(--kompendium-color-black), 0.15),\n 0 0.375rem 0.625rem\n rgba(var(--kompendium-color-black), 0.05);--kompendium-button-shadow-pressed:0 0.0625rem 0.1875rem 0 rgba(var(--kompendium-color-black), 0.132),\n 0 0.01875rem 0.05625rem 0\n rgba(var(--kompendium-color-black), 0.108);--kompendium-button-shadow-inset:0 0.03125rem 0.21875rem 0 rgba(var(--kompendium-color-black), 0.132) inset,\n 0 0.01875rem 0.05625rem 0\n rgba(var(--kompendium-color-black), 0.108) inset,\n 0 0 0.25rem rgba(var(--kompendium-color-white), 0.9);--kompendium-button-shadow-inset-pressed:0 0.03125rem 0.34375rem 0 rgba(var(--kompendium-color-black), 0.132) inset,\n 0 0.01875rem 0.11875rem 0\n rgba(var(--kompendium-color-black), 0.12) inset,\n 0 0 0.1875rem rgba(var(--kompendium-color-white), 0.9);--kompendium-shadow-depth-8:0 0.2rem 0.45rem 0 rgba(var(--kompendium-color-black), 0.132),\n 0 0.0375rem 0.1125rem 0\n rgba(var(--kompendium-color-black), 0.108);--kompendium-shadow-depth-8-focused:var(--kompendium-shadow-depth-8),\n var(--kompendium-focused-state);--kompendium-shadow-depth-8-error:var(--kompendium-shadow-depth-8),\n var(--kompendium-error-state);--kompendium-shadow-depth-16:0 0.4rem 0.9rem 0 rgba(var(--kompendium-color-black), 0.132),\n 0 0.075rem 0.225rem 0\n rgba(var(--kompendium-color-black), 0.108);--kompendium-shadow-depth-64:0 1.6rem 3.6rem 0 rgba(var(--kompendium-color-black), 0.22),\n 0 0.3rem 0.9rem 0\n rgba(var(--kompendium-color-black), 0.18);--shadow-showcase:-0.1875rem -0.1875rem 0.375rem rgba(var(--kompendium-color-black), 0.01),\n -0.625rem -0.625rem 1.875rem rgba(var(--kompendium-color-white), 1),\n 0.625rem 0.625rem 2.25rem rgba(var(--kompendium-color-black), 0.06),\n 0.125rem 0.125rem 0.625rem\n rgba(var(--kompendium-color-white), 0.7),\n -1px -1px 0 1px rgba(var(--kompendium-color-black), 0.07) inset,\n 0 0 1px 1px rgba(var(--kompendium-color-white), 0.98) inset}@media (prefers-color-scheme: dark){:root:not([data-theme=force-light]){--shadow-showcase:-0.625rem -0.625rem 1.875rem rgba(var(--kompendium-color-white), 0.01),\n 0.125rem 0.125rem 0.625rem rgba(var(--kompendium-color-white), 0.01),\n -0.1875rem -0.1875rem 0.375rem rgba(var(--kompendium-color-black), 0.01),\n 0.625rem 0.625rem 2.25rem rgba(var(--kompendium-color-black), 0.4),\n -1px -1px 0 1px rgba(var(--kompendium-color-black), 0.07) inset,\n 0 0 1px 1px rgba(var(--kompendium-color-white), 0.08) inset}}:root[data-theme=force-dark]{--shadow-showcase:-0.625rem -0.625rem 1.875rem rgba(var(--kompendium-color-white), 0.01),\n 0.125rem 0.125rem 0.625rem rgba(var(--kompendium-color-white), 0.01),\n -0.1875rem -0.1875rem 0.375rem rgba(var(--kompendium-color-black), 0.01),\n 0.625rem 0.625rem 2.25rem rgba(var(--kompendium-color-black), 0.4),\n -1px -1px 0 1px rgba(var(--kompendium-color-black), 0.07) inset,\n 0 0 1px 1px rgba(var(--kompendium-color-white), 0.08) inset}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) :root{--shadow-showcase:-0.625rem -0.625rem 1.875rem rgba(var(--kompendium-color-white), 0.01),\n 0.125rem 0.125rem 0.625rem rgba(var(--kompendium-color-white), 0.01),\n -0.1875rem -0.1875rem 0.375rem rgba(var(--kompendium-color-black), 0.01),\n 0.625rem 0.625rem 2.25rem rgba(var(--kompendium-color-black), 0.4),\n -1px -1px 0 1px rgba(var(--kompendium-color-black), 0.07) inset,\n 0 0 1px 1px rgba(var(--kompendium-color-white), 0.08) inset}}:host([data-theme=force-dark]) :root{--shadow-showcase:-0.625rem -0.625rem 1.875rem rgba(var(--kompendium-color-white), 0.01),\n 0.125rem 0.125rem 0.625rem rgba(var(--kompendium-color-white), 0.01),\n -0.1875rem -0.1875rem 0.375rem rgba(var(--kompendium-color-black), 0.01),\n 0.625rem 0.625rem 2.25rem rgba(var(--kompendium-color-black), 0.4),\n -1px -1px 0 1px rgba(var(--kompendium-color-black), 0.07) inset,\n 0 0 1px 1px rgba(var(--kompendium-color-white), 0.08) inset}p,a,li{font-size:0.9375rem}h1,h2,h3,h4,h5,h6{margin-bottom:0.5rem;font-weight:normal;font-weight:500}h1{font-size:2rem;line-height:2.25rem;margin-top:1.5rem;letter-spacing:-0.0625rem;font-weight:400}h2{font-size:1.625rem;line-height:1.25rem;margin-top:1.25rem;margin-bottom:1rem}h3{font-size:1.375rem;line-height:1.5rem;margin-top:1rem}h4{font-size:1.25rem;line-height:1.25rem;margin-top:1rem}h5{font-size:1.125rem;line-height:1.125rem;margin-top:0.75rem}h6{font-size:1rem;font-variant:all-small-caps;letter-spacing:0.0625rem}p,blockquote{margin-top:0;margin-bottom:0.5rem}p:only-child,blockquote:only-child{margin-bottom:0}a{transition:color 0.2s ease;color:rgb(var(--kompendium-color-blue-default));text-decoration:none;border-radius:0.125rem}a:hover{color:rgb(var(--kompendium-color-blue-light))}a:focus{outline:none}a:focus-visible{outline:none;box-shadow:var(--kompendium-shadow-depth-8-focused)}ul{list-style:none}ul li{position:relative;margin-left:0.75rem}ul li:before{content:\"\";position:absolute;left:-0.5rem;top:0.625rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--kompendium-contrast-700));display:block}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:0.9375rem 0 0.9375rem 1.875rem;font-size:90%}li{margin-bottom:0.625rem}th,td{padding:0.75rem 1rem;text-align:left;border-bottom:1px solid rgb(var(--kompendium-contrast-600))}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--kompendium-contrast-600))}kbd{font-family:var(--kompendium-font-code);font-size:0.875rem;font-weight:600;color:rgb(var(--kompendium-contrast-1000));background-color:rgb(var(--kompendium-contrast-200));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;padding:0.125rem 0.5rem;margin:0 0.25rem;box-shadow:var(--kompendium-button-shadow-normal), 0 0.03125rem 0.21875rem 0 rgba(var(--kompendium-contrast-100), 0.5) inset;border-radius:0.25rem;border-style:solid;border-color:rgba(var(--kompendium-contrast-600), 0.8);border-width:0 1px 0.125rem 1px}@media (prefers-color-scheme: dark){kbd:not([data-theme=force-light]){background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}kbd[data-theme=force-dark]{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}:host([data-theme=force-dark]) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}:root{--kompendium-font-primary:'Lato', sans-serif;--kompendium-font-code:'Source Code Pro', monospace}body{transition:background-color 0.3s ease 0.05s;margin:0;padding:0;min-height:100vh;scroll-behavior:smooth;font-family:var(--kompendium-font-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto;color:rgb(var(--kompendium-contrast-1200));line-height:1.5;background-color:rgb(var(--kompendium-contrast-300))}";
8
+
9
+ /*
10
+ Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
11
+ */
12
+ var __defProp = Object.defineProperty;
13
+ var __export = (target, all) => {
14
+ for (var name in all)
15
+ __defProp(target, name, { get: all[name], enumerable: true });
16
+ };
17
+
18
+ // src/utils/constants.ts
19
+ var SVG_NS = "http://www.w3.org/2000/svg";
20
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
21
+
22
+ // src/client/client-host-ref.ts
23
+ var getHostRef = (ref) => {
24
+ if (ref.__stencil__getHostRef) {
25
+ return ref.__stencil__getHostRef();
26
+ }
27
+ return void 0;
28
+ };
29
+ var registerInstance = (lazyInstance, hostRef) => {
30
+ if (!hostRef) return;
31
+ lazyInstance.__stencil__getHostRef = () => hostRef;
32
+ hostRef.$lazyInstance$ = lazyInstance;
33
+ };
34
+ var registerHost = (hostElement, cmpMeta) => {
35
+ const hostRef = {
36
+ $flags$: 0,
37
+ $hostElement$: hostElement,
38
+ $cmpMeta$: cmpMeta,
39
+ $instanceValues$: /* @__PURE__ */ new Map(),
40
+ $serializerValues$: /* @__PURE__ */ new Map()
41
+ };
42
+ {
43
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
44
+ hostElement["s-p"] = [];
45
+ hostElement["s-rc"] = [];
46
+ }
47
+ {
48
+ hostRef.$fetchedCbList$ = [];
49
+ }
50
+ const ref = hostRef;
51
+ hostElement.__stencil__getHostRef = () => ref;
52
+ return ref;
53
+ };
54
+ var isMemberInElement = (elm, memberName) => memberName in elm;
55
+ var consoleError = (e, el) => (0, console.error)(e, el);
56
+
57
+ // src/client/client-load-module.ts
58
+ var cmpModules = /* @__PURE__ */ new Map();
59
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
60
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
61
+ const bundleId = cmpMeta.$lazyBundleId$;
62
+ if (!bundleId) {
63
+ return void 0;
64
+ }
65
+ const module = cmpModules.get(bundleId) ;
66
+ if (module) {
67
+ return module[exportName];
68
+ }
69
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
70
+ return import(
71
+ /* @vite-ignore */
72
+ /* webpackInclude: /\.entry\.js$/ */
73
+ /* webpackExclude: /\.system\.entry\.js$/ */
74
+ /* webpackMode: "lazy" */
75
+ `./${bundleId}.entry.js${""}`
76
+ ).then(
77
+ (importedModule) => {
78
+ {
79
+ cmpModules.set(bundleId, importedModule);
80
+ }
81
+ return importedModule[exportName];
82
+ },
83
+ (e) => {
84
+ consoleError(e, hostRef.$hostElement$);
85
+ }
86
+ );
87
+ };
88
+
89
+ // src/client/client-style.ts
90
+ var styles = /* @__PURE__ */ new Map();
91
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
92
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
93
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
94
+ var win = typeof window !== "undefined" ? window : {};
95
+ var plt = {
96
+ $flags$: 0,
97
+ $resourcesUrl$: "",
98
+ jmp: (h2) => h2(),
99
+ raf: (h2) => requestAnimationFrame(h2),
100
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
101
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
102
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
103
+ };
104
+ var promiseResolve = (v) => Promise.resolve(v);
105
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
106
+ try {
107
+ new CSSStyleSheet();
108
+ return typeof new CSSStyleSheet().replaceSync === "function";
109
+ } catch (e) {
110
+ }
111
+ return false;
112
+ })() ;
113
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
114
+ var queuePending = false;
115
+ var queueDomReads = [];
116
+ var queueDomWrites = [];
117
+ var queueTask = (queue, write) => (cb) => {
118
+ queue.push(cb);
119
+ if (!queuePending) {
120
+ queuePending = true;
121
+ if (write && plt.$flags$ & 4 /* queueSync */) {
122
+ nextTick(flush);
123
+ } else {
124
+ plt.raf(flush);
125
+ }
126
+ }
127
+ };
128
+ var consume = (queue) => {
129
+ for (let i2 = 0; i2 < queue.length; i2++) {
130
+ try {
131
+ queue[i2](performance.now());
132
+ } catch (e) {
133
+ consoleError(e);
134
+ }
135
+ }
136
+ queue.length = 0;
137
+ };
138
+ var flush = () => {
139
+ consume(queueDomReads);
140
+ {
141
+ consume(queueDomWrites);
142
+ if (queuePending = queueDomReads.length > 0) {
143
+ plt.raf(flush);
144
+ }
145
+ }
146
+ };
147
+ var nextTick = (cb) => promiseResolve().then(cb);
148
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
149
+ var isComplexType = (o) => {
150
+ o = typeof o;
151
+ return o === "object" || o === "function";
152
+ };
153
+
154
+ // src/utils/query-nonce-meta-tag-content.ts
155
+ function queryNonceMetaTagContent(doc) {
156
+ var _a, _b, _c;
157
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
158
+ }
159
+
160
+ // src/utils/regular-expression.ts
161
+ var escapeRegExpSpecialCharacters = (text) => {
162
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
163
+ };
164
+
165
+ // src/utils/result.ts
166
+ var result_exports = {};
167
+ __export(result_exports, {
168
+ err: () => err,
169
+ map: () => map,
170
+ ok: () => ok,
171
+ unwrap: () => unwrap,
172
+ unwrapErr: () => unwrapErr
173
+ });
174
+ var ok = (value) => ({
175
+ isOk: true,
176
+ isErr: false,
177
+ value
178
+ });
179
+ var err = (value) => ({
180
+ isOk: false,
181
+ isErr: true,
182
+ value
183
+ });
184
+ function map(result, fn) {
185
+ if (result.isOk) {
186
+ const val = fn(result.value);
187
+ if (val instanceof Promise) {
188
+ return val.then((newVal) => ok(newVal));
189
+ } else {
190
+ return ok(val);
191
+ }
192
+ }
193
+ if (result.isErr) {
194
+ const value = result.value;
195
+ return err(value);
196
+ }
197
+ throw "should never get here";
198
+ }
199
+ var unwrap = (result) => {
200
+ if (result.isOk) {
201
+ return result.value;
202
+ } else {
203
+ throw result.value;
204
+ }
205
+ };
206
+ var unwrapErr = (result) => {
207
+ if (result.isErr) {
208
+ return result.value;
209
+ } else {
210
+ throw result.value;
211
+ }
212
+ };
213
+
214
+ // src/utils/style.ts
215
+ function createStyleSheetIfNeededAndSupported(styles2) {
216
+ if (!supportsConstructableStylesheets) return void 0;
217
+ const sheet = new CSSStyleSheet();
218
+ sheet.replaceSync(styles2);
219
+ return sheet;
220
+ }
221
+
222
+ // src/utils/shadow-root.ts
223
+ var globalStyleSheet;
224
+ function createShadowRoot(cmpMeta) {
225
+ var _a;
226
+ const shadowRoot = this.attachShadow({ mode: "open" });
227
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
228
+ if (globalStyleSheet) {
229
+ if (supportsMutableAdoptedStyleSheets) {
230
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
231
+ } else {
232
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
233
+ }
234
+ }
235
+ }
236
+ var updateFallbackSlotVisibility = (elm) => {
237
+ const childNodes = internalCall(elm, "childNodes");
238
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
239
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
240
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
241
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
242
+ slotNode.hidden = true;
243
+ } else {
244
+ slotNode.hidden = false;
245
+ }
246
+ }
247
+ });
248
+ }
249
+ let i2 = 0;
250
+ for (i2 = 0; i2 < childNodes.length; i2++) {
251
+ const childNode = childNodes[i2];
252
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
253
+ updateFallbackSlotVisibility(childNode);
254
+ }
255
+ }
256
+ };
257
+ var getSlottedChildNodes = (childNodes) => {
258
+ const result = [];
259
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
260
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
261
+ if (slottedNode && slottedNode.isConnected) {
262
+ result.push(slottedNode);
263
+ }
264
+ }
265
+ return result;
266
+ };
267
+ function getHostSlotNodes(childNodes, hostName, slotName) {
268
+ let i2 = 0;
269
+ let slottedNodes = [];
270
+ let childNode;
271
+ for (; i2 < childNodes.length; i2++) {
272
+ childNode = childNodes[i2];
273
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
274
+ slottedNodes.push(childNode);
275
+ }
276
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
277
+ }
278
+ return slottedNodes;
279
+ }
280
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
281
+ const childNodes = [];
282
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
283
+ let node = slot;
284
+ while (node = node.nextSibling) {
285
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
286
+ }
287
+ return childNodes;
288
+ };
289
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
290
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
291
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
292
+ return true;
293
+ }
294
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
295
+ return true;
296
+ }
297
+ return false;
298
+ }
299
+ if (nodeToRelocate["s-sn"] === slotName) {
300
+ return true;
301
+ }
302
+ return slotName === "";
303
+ };
304
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
305
+ function patchSlotNode(node) {
306
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
307
+ const assignedFactory = (elementsOnly) => (function(opts) {
308
+ const toReturn = [];
309
+ const slotName = this["s-sn"];
310
+ if (opts == null ? void 0 : opts.flatten) {
311
+ console.error(`
312
+ Flattening is not supported for Stencil non-shadow slots.
313
+ You can use \`.childNodes\` to nested slot fallback content.
314
+ If you have a particular use case, please open an issue on the Stencil repo.
315
+ `);
316
+ }
317
+ const parent = this["s-cr"].parentElement;
318
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
319
+ slottedNodes.forEach((n) => {
320
+ if (slotName === getSlotName(n)) {
321
+ toReturn.push(n);
322
+ }
323
+ });
324
+ if (elementsOnly) {
325
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
326
+ }
327
+ return toReturn;
328
+ }).bind(node);
329
+ node.assignedElements = assignedFactory(true);
330
+ node.assignedNodes = assignedFactory(false);
331
+ }
332
+ function internalCall(node, method) {
333
+ if ("__" + method in node) {
334
+ const toReturn = node["__" + method];
335
+ if (typeof toReturn !== "function") return toReturn;
336
+ return toReturn.bind(node);
337
+ } else {
338
+ if (typeof node[method] !== "function") return node[method];
339
+ return node[method].bind(node);
340
+ }
341
+ }
342
+ var createTime = (fnName, tagName = "") => {
343
+ {
344
+ return () => {
345
+ return;
346
+ };
347
+ }
348
+ };
349
+ var uniqueTime = (key, measureText) => {
350
+ {
351
+ return () => {
352
+ return;
353
+ };
354
+ }
355
+ };
356
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
357
+ var registerStyle = (scopeId2, cssText, allowCS) => {
358
+ let style = styles.get(scopeId2);
359
+ if (supportsConstructableStylesheets && allowCS) {
360
+ style = style || new CSSStyleSheet();
361
+ if (typeof style === "string") {
362
+ style = cssText;
363
+ } else {
364
+ style.replaceSync(cssText);
365
+ }
366
+ } else {
367
+ style = cssText;
368
+ }
369
+ styles.set(scopeId2, style);
370
+ };
371
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
372
+ var _a;
373
+ const scopeId2 = getScopeId(cmpMeta);
374
+ const style = styles.get(scopeId2);
375
+ if (!win.document) {
376
+ return scopeId2;
377
+ }
378
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
379
+ if (style) {
380
+ if (typeof style === "string") {
381
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
382
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
383
+ let styleElm;
384
+ if (!appliedStyles) {
385
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
386
+ }
387
+ if (!appliedStyles.has(scopeId2)) {
388
+ {
389
+ styleElm = win.document.createElement("style");
390
+ styleElm.innerHTML = style;
391
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
392
+ if (nonce != null) {
393
+ styleElm.setAttribute("nonce", nonce);
394
+ }
395
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
396
+ if (styleContainerNode.nodeName === "HEAD") {
397
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
398
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
399
+ styleContainerNode.insertBefore(
400
+ styleElm,
401
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
402
+ );
403
+ } else if ("host" in styleContainerNode) {
404
+ if (supportsConstructableStylesheets) {
405
+ const stylesheet = new CSSStyleSheet();
406
+ stylesheet.replaceSync(style);
407
+ if (supportsMutableAdoptedStyleSheets) {
408
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
409
+ } else {
410
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
411
+ }
412
+ } else {
413
+ const existingStyleContainer = styleContainerNode.querySelector("style");
414
+ if (existingStyleContainer) {
415
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
416
+ } else {
417
+ styleContainerNode.prepend(styleElm);
418
+ }
419
+ }
420
+ } else {
421
+ styleContainerNode.append(styleElm);
422
+ }
423
+ }
424
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
425
+ styleContainerNode.insertBefore(styleElm, null);
426
+ }
427
+ }
428
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
429
+ styleElm.innerHTML += SLOT_FB_CSS;
430
+ }
431
+ if (appliedStyles) {
432
+ appliedStyles.add(scopeId2);
433
+ }
434
+ }
435
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
436
+ if (supportsMutableAdoptedStyleSheets) {
437
+ styleContainerNode.adoptedStyleSheets.push(style);
438
+ } else {
439
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
440
+ }
441
+ }
442
+ }
443
+ return scopeId2;
444
+ };
445
+ var attachStyles = (hostRef) => {
446
+ const cmpMeta = hostRef.$cmpMeta$;
447
+ const elm = hostRef.$hostElement$;
448
+ const flags = cmpMeta.$flags$;
449
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
450
+ const scopeId2 = addStyle(
451
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
452
+ cmpMeta);
453
+ if (flags & 10 /* needsScopedEncapsulation */) {
454
+ elm["s-sc"] = scopeId2;
455
+ elm.classList.add(scopeId2 + "-h");
456
+ }
457
+ endAttachStyles();
458
+ };
459
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
460
+ var h = (nodeName, vnodeData, ...children) => {
461
+ let child = null;
462
+ let key = null;
463
+ let slotName = null;
464
+ let simple = false;
465
+ let lastSimple = false;
466
+ const vNodeChildren = [];
467
+ const walk = (c) => {
468
+ for (let i2 = 0; i2 < c.length; i2++) {
469
+ child = c[i2];
470
+ if (Array.isArray(child)) {
471
+ walk(child);
472
+ } else if (child != null && typeof child !== "boolean") {
473
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
474
+ child = String(child);
475
+ }
476
+ if (simple && lastSimple) {
477
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
478
+ } else {
479
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
480
+ }
481
+ lastSimple = simple;
482
+ }
483
+ }
484
+ };
485
+ walk(children);
486
+ if (vnodeData) {
487
+ if (vnodeData.key) {
488
+ key = vnodeData.key;
489
+ }
490
+ if (vnodeData.name) {
491
+ slotName = vnodeData.name;
492
+ }
493
+ {
494
+ const classData = vnodeData.className || vnodeData.class;
495
+ if (classData) {
496
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
497
+ }
498
+ }
499
+ }
500
+ if (typeof nodeName === "function") {
501
+ return nodeName(
502
+ vnodeData === null ? {} : vnodeData,
503
+ vNodeChildren,
504
+ vdomFnUtils
505
+ );
506
+ }
507
+ const vnode = newVNode(nodeName, null);
508
+ vnode.$attrs$ = vnodeData;
509
+ if (vNodeChildren.length > 0) {
510
+ vnode.$children$ = vNodeChildren;
511
+ }
512
+ {
513
+ vnode.$key$ = key;
514
+ }
515
+ {
516
+ vnode.$name$ = slotName;
517
+ }
518
+ return vnode;
519
+ };
520
+ var newVNode = (tag, text) => {
521
+ const vnode = {
522
+ $flags$: 0,
523
+ $tag$: tag,
524
+ $text$: text,
525
+ $elm$: null,
526
+ $children$: null
527
+ };
528
+ {
529
+ vnode.$attrs$ = null;
530
+ }
531
+ {
532
+ vnode.$key$ = null;
533
+ }
534
+ {
535
+ vnode.$name$ = null;
536
+ }
537
+ return vnode;
538
+ };
539
+ var Host = {};
540
+ var isHost = (node) => node && node.$tag$ === Host;
541
+ var vdomFnUtils = {
542
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
543
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
544
+ };
545
+ var convertToPublic = (node) => ({
546
+ vattrs: node.$attrs$,
547
+ vchildren: node.$children$,
548
+ vkey: node.$key$,
549
+ vname: node.$name$,
550
+ vtag: node.$tag$,
551
+ vtext: node.$text$
552
+ });
553
+ var convertToPrivate = (node) => {
554
+ if (typeof node.vtag === "function") {
555
+ const vnodeData = { ...node.vattrs };
556
+ if (node.vkey) {
557
+ vnodeData.key = node.vkey;
558
+ }
559
+ if (node.vname) {
560
+ vnodeData.name = node.vname;
561
+ }
562
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
563
+ }
564
+ const vnode = newVNode(node.vtag, node.vtext);
565
+ vnode.$attrs$ = node.vattrs;
566
+ vnode.$children$ = node.vchildren;
567
+ vnode.$key$ = node.vkey;
568
+ vnode.$name$ = node.vname;
569
+ return vnode;
570
+ };
571
+ var createSupportsRuleRe = (selector) => {
572
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
573
+ return new RegExp(
574
+ // First capture group: match any context before the selector that's not inside @supports selector()
575
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
576
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
577
+ "g"
578
+ );
579
+ };
580
+ createSupportsRuleRe("::slotted");
581
+ createSupportsRuleRe(":host");
582
+ createSupportsRuleRe(":host-context");
583
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
584
+ if (propValue != null && !isComplexType(propValue)) {
585
+ if (propType & 4 /* Boolean */) {
586
+ {
587
+ return propValue === "false" ? false : propValue === "" || !!propValue;
588
+ }
589
+ }
590
+ if (propType & 2 /* Number */) {
591
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
592
+ }
593
+ if (propType & 1 /* String */) {
594
+ return String(propValue);
595
+ }
596
+ return propValue;
597
+ }
598
+ return propValue;
599
+ };
600
+ var getElement = (ref) => {
601
+ var _a;
602
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
603
+ };
604
+ var emitEvent = (elm, name, opts) => {
605
+ const ev = plt.ce(name, opts);
606
+ elm.dispatchEvent(ev);
607
+ return ev;
608
+ };
609
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
610
+ if (oldValue === newValue) {
611
+ return;
612
+ }
613
+ let isProp = isMemberInElement(elm, memberName);
614
+ let ln = memberName.toLowerCase();
615
+ if (memberName === "class") {
616
+ const classList = elm.classList;
617
+ const oldClasses = parseClassList(oldValue);
618
+ let newClasses = parseClassList(newValue);
619
+ {
620
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
621
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
622
+ }
623
+ } else if (memberName === "style") {
624
+ {
625
+ for (const prop in oldValue) {
626
+ if (!newValue || newValue[prop] == null) {
627
+ if (prop.includes("-")) {
628
+ elm.style.removeProperty(prop);
629
+ } else {
630
+ elm.style[prop] = "";
631
+ }
632
+ }
633
+ }
634
+ }
635
+ for (const prop in newValue) {
636
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
637
+ if (prop.includes("-")) {
638
+ elm.style.setProperty(prop, newValue[prop]);
639
+ } else {
640
+ elm.style[prop] = newValue[prop];
641
+ }
642
+ }
643
+ }
644
+ } else if (memberName === "key") ; else if (memberName === "ref") {
645
+ if (newValue) {
646
+ newValue(elm);
647
+ }
648
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
649
+ if (memberName[2] === "-") {
650
+ memberName = memberName.slice(3);
651
+ } else if (isMemberInElement(win, ln)) {
652
+ memberName = ln.slice(2);
653
+ } else {
654
+ memberName = ln[2] + memberName.slice(3);
655
+ }
656
+ if (oldValue || newValue) {
657
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
658
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
659
+ if (oldValue) {
660
+ plt.rel(elm, memberName, oldValue, capture);
661
+ }
662
+ if (newValue) {
663
+ plt.ael(elm, memberName, newValue, capture);
664
+ }
665
+ }
666
+ } else {
667
+ const isComplex = isComplexType(newValue);
668
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
669
+ try {
670
+ if (!elm.tagName.includes("-")) {
671
+ const n = newValue == null ? "" : newValue;
672
+ if (memberName === "list") {
673
+ isProp = false;
674
+ } else if (oldValue == null || elm[memberName] != n) {
675
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
676
+ elm[memberName] = n;
677
+ } else {
678
+ elm.setAttribute(memberName, n);
679
+ }
680
+ }
681
+ } else if (elm[memberName] !== newValue) {
682
+ elm[memberName] = newValue;
683
+ }
684
+ } catch (e) {
685
+ }
686
+ }
687
+ let xlink = false;
688
+ {
689
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
690
+ memberName = ln;
691
+ xlink = true;
692
+ }
693
+ }
694
+ if (newValue == null || newValue === false) {
695
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
696
+ if (xlink) {
697
+ elm.removeAttributeNS(XLINK_NS, memberName);
698
+ } else {
699
+ elm.removeAttribute(memberName);
700
+ }
701
+ }
702
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
703
+ newValue = newValue === true ? "" : newValue;
704
+ if (xlink) {
705
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
706
+ } else {
707
+ elm.setAttribute(memberName, newValue);
708
+ }
709
+ }
710
+ }
711
+ };
712
+ var parseClassListRegex = /\s/;
713
+ var parseClassList = (value) => {
714
+ if (typeof value === "object" && value && "baseVal" in value) {
715
+ value = value.baseVal;
716
+ }
717
+ if (!value || typeof value !== "string") {
718
+ return [];
719
+ }
720
+ return value.split(parseClassListRegex);
721
+ };
722
+ var CAPTURE_EVENT_SUFFIX = "Capture";
723
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
724
+
725
+ // src/runtime/vdom/update-element.ts
726
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
727
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
728
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
729
+ const newVnodeAttrs = newVnode.$attrs$ || {};
730
+ {
731
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
732
+ if (!(memberName in newVnodeAttrs)) {
733
+ setAccessor(
734
+ elm,
735
+ memberName,
736
+ oldVnodeAttrs[memberName],
737
+ void 0,
738
+ isSvgMode2,
739
+ newVnode.$flags$);
740
+ }
741
+ }
742
+ }
743
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
744
+ setAccessor(
745
+ elm,
746
+ memberName,
747
+ oldVnodeAttrs[memberName],
748
+ newVnodeAttrs[memberName],
749
+ isSvgMode2,
750
+ newVnode.$flags$);
751
+ }
752
+ };
753
+ function sortedAttrNames(attrNames) {
754
+ return attrNames.includes("ref") ? (
755
+ // we need to sort these to ensure that `'ref'` is the last attr
756
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
757
+ ) : (
758
+ // no need to sort, return the original array
759
+ attrNames
760
+ );
761
+ }
762
+ var contentRef;
763
+ var hostTagName;
764
+ var useNativeShadowDom = false;
765
+ var checkSlotFallbackVisibility = false;
766
+ var checkSlotRelocate = false;
767
+ var isSvgMode = false;
768
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
769
+ var _a;
770
+ const newVNode2 = newParentVNode.$children$[childIndex];
771
+ let i2 = 0;
772
+ let elm;
773
+ let childNode;
774
+ let oldVNode;
775
+ if (!useNativeShadowDom) {
776
+ checkSlotRelocate = true;
777
+ if (newVNode2.$tag$ === "slot") {
778
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
779
+ // slot element has fallback content
780
+ // still create an element that "mocks" the slot element
781
+ 2 /* isSlotFallback */
782
+ ) : (
783
+ // slot element does not have fallback content
784
+ // create an html comment we'll use to always reference
785
+ // where actual slot content should sit next to
786
+ 1 /* isSlotReference */
787
+ );
788
+ }
789
+ }
790
+ if (newVNode2.$text$ !== null) {
791
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
792
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
793
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
794
+ {
795
+ updateElement(null, newVNode2, isSvgMode);
796
+ }
797
+ } else {
798
+ if (!isSvgMode) {
799
+ isSvgMode = newVNode2.$tag$ === "svg";
800
+ }
801
+ if (!win.document) {
802
+ throw new Error(
803
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
804
+ );
805
+ }
806
+ elm = newVNode2.$elm$ = win.document.createElementNS(
807
+ isSvgMode ? SVG_NS : HTML_NS,
808
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
809
+ ) ;
810
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
811
+ isSvgMode = false;
812
+ }
813
+ {
814
+ updateElement(null, newVNode2, isSvgMode);
815
+ }
816
+ if (newVNode2.$children$) {
817
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
818
+ childNode = createElm(oldParentVNode, newVNode2, i2);
819
+ if (childNode) {
820
+ elm.appendChild(childNode);
821
+ }
822
+ }
823
+ }
824
+ {
825
+ if (newVNode2.$tag$ === "svg") {
826
+ isSvgMode = false;
827
+ } else if (elm.tagName === "foreignObject") {
828
+ isSvgMode = true;
829
+ }
830
+ }
831
+ }
832
+ elm["s-hn"] = hostTagName;
833
+ {
834
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
835
+ elm["s-sr"] = true;
836
+ elm["s-cr"] = contentRef;
837
+ elm["s-sn"] = newVNode2.$name$ || "";
838
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
839
+ patchSlotNode(elm);
840
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
841
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
842
+ {
843
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
844
+ }
845
+ }
846
+ }
847
+ }
848
+ return elm;
849
+ };
850
+ var putBackInOriginalLocation = (parentElm, recursive) => {
851
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
852
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
853
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
854
+ const childNode = oldSlotChildNodes[i2];
855
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
856
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
857
+ childNode["s-ol"].remove();
858
+ childNode["s-ol"] = void 0;
859
+ childNode["s-sh"] = void 0;
860
+ checkSlotRelocate = true;
861
+ }
862
+ if (recursive) {
863
+ putBackInOriginalLocation(childNode, recursive);
864
+ }
865
+ }
866
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
867
+ };
868
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
869
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
870
+ let childNode;
871
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
872
+ containerElm = containerElm.shadowRoot;
873
+ }
874
+ for (; startIdx <= endIdx; ++startIdx) {
875
+ if (vnodes[startIdx]) {
876
+ childNode = createElm(null, parentVNode, startIdx);
877
+ if (childNode) {
878
+ vnodes[startIdx].$elm$ = childNode;
879
+ insertBefore(containerElm, childNode, referenceNode(before) );
880
+ }
881
+ }
882
+ }
883
+ };
884
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
885
+ for (let index = startIdx; index <= endIdx; ++index) {
886
+ const vnode = vnodes[index];
887
+ if (vnode) {
888
+ const elm = vnode.$elm$;
889
+ nullifyVNodeRefs(vnode);
890
+ if (elm) {
891
+ {
892
+ checkSlotFallbackVisibility = true;
893
+ if (elm["s-ol"]) {
894
+ elm["s-ol"].remove();
895
+ } else {
896
+ putBackInOriginalLocation(elm, true);
897
+ }
898
+ }
899
+ elm.remove();
900
+ }
901
+ }
902
+ }
903
+ };
904
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
905
+ let oldStartIdx = 0;
906
+ let newStartIdx = 0;
907
+ let idxInOld = 0;
908
+ let i2 = 0;
909
+ let oldEndIdx = oldCh.length - 1;
910
+ let oldStartVnode = oldCh[0];
911
+ let oldEndVnode = oldCh[oldEndIdx];
912
+ let newEndIdx = newCh.length - 1;
913
+ let newStartVnode = newCh[0];
914
+ let newEndVnode = newCh[newEndIdx];
915
+ let node;
916
+ let elmToMove;
917
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
918
+ if (oldStartVnode == null) {
919
+ oldStartVnode = oldCh[++oldStartIdx];
920
+ } else if (oldEndVnode == null) {
921
+ oldEndVnode = oldCh[--oldEndIdx];
922
+ } else if (newStartVnode == null) {
923
+ newStartVnode = newCh[++newStartIdx];
924
+ } else if (newEndVnode == null) {
925
+ newEndVnode = newCh[--newEndIdx];
926
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
927
+ patch(oldStartVnode, newStartVnode, isInitialRender);
928
+ oldStartVnode = oldCh[++oldStartIdx];
929
+ newStartVnode = newCh[++newStartIdx];
930
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
931
+ patch(oldEndVnode, newEndVnode, isInitialRender);
932
+ oldEndVnode = oldCh[--oldEndIdx];
933
+ newEndVnode = newCh[--newEndIdx];
934
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
935
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
936
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
937
+ }
938
+ patch(oldStartVnode, newEndVnode, isInitialRender);
939
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
940
+ oldStartVnode = oldCh[++oldStartIdx];
941
+ newEndVnode = newCh[--newEndIdx];
942
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
943
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
944
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
945
+ }
946
+ patch(oldEndVnode, newStartVnode, isInitialRender);
947
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
948
+ oldEndVnode = oldCh[--oldEndIdx];
949
+ newStartVnode = newCh[++newStartIdx];
950
+ } else {
951
+ idxInOld = -1;
952
+ {
953
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
954
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
955
+ idxInOld = i2;
956
+ break;
957
+ }
958
+ }
959
+ }
960
+ if (idxInOld >= 0) {
961
+ elmToMove = oldCh[idxInOld];
962
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
963
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
964
+ } else {
965
+ patch(elmToMove, newStartVnode, isInitialRender);
966
+ oldCh[idxInOld] = void 0;
967
+ node = elmToMove.$elm$;
968
+ }
969
+ newStartVnode = newCh[++newStartIdx];
970
+ } else {
971
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
972
+ newStartVnode = newCh[++newStartIdx];
973
+ }
974
+ if (node) {
975
+ {
976
+ insertBefore(
977
+ referenceNode(oldStartVnode.$elm$).parentNode,
978
+ node,
979
+ referenceNode(oldStartVnode.$elm$)
980
+ );
981
+ }
982
+ }
983
+ }
984
+ }
985
+ if (oldStartIdx > oldEndIdx) {
986
+ addVnodes(
987
+ parentElm,
988
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
989
+ newVNode2,
990
+ newCh,
991
+ newStartIdx,
992
+ newEndIdx
993
+ );
994
+ } else if (newStartIdx > newEndIdx) {
995
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
996
+ }
997
+ };
998
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
999
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1000
+ if (leftVNode.$tag$ === "slot") {
1001
+ return leftVNode.$name$ === rightVNode.$name$;
1002
+ }
1003
+ if (!isInitialRender) {
1004
+ return leftVNode.$key$ === rightVNode.$key$;
1005
+ }
1006
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1007
+ leftVNode.$key$ = rightVNode.$key$;
1008
+ }
1009
+ return true;
1010
+ }
1011
+ return false;
1012
+ };
1013
+ var referenceNode = (node) => node && node["s-ol"] || node;
1014
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1015
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1016
+ const oldChildren = oldVNode.$children$;
1017
+ const newChildren = newVNode2.$children$;
1018
+ const tag = newVNode2.$tag$;
1019
+ const text = newVNode2.$text$;
1020
+ let defaultHolder;
1021
+ if (text === null) {
1022
+ {
1023
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1024
+ }
1025
+ {
1026
+ updateElement(oldVNode, newVNode2, isSvgMode);
1027
+ }
1028
+ if (oldChildren !== null && newChildren !== null) {
1029
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1030
+ } else if (newChildren !== null) {
1031
+ if (oldVNode.$text$ !== null) {
1032
+ elm.textContent = "";
1033
+ }
1034
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1035
+ } else if (
1036
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1037
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1038
+ ) {
1039
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1040
+ } else ;
1041
+ if (isSvgMode && tag === "svg") {
1042
+ isSvgMode = false;
1043
+ }
1044
+ } else if ((defaultHolder = elm["s-cr"])) {
1045
+ defaultHolder.parentNode.textContent = text;
1046
+ } else if (oldVNode.$text$ !== text) {
1047
+ elm.data = text;
1048
+ }
1049
+ };
1050
+ var relocateNodes = [];
1051
+ var markSlotContentForRelocation = (elm) => {
1052
+ let node;
1053
+ let hostContentNodes;
1054
+ let j;
1055
+ const children = elm.__childNodes || elm.childNodes;
1056
+ for (const childNode of children) {
1057
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1058
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1059
+ const slotName = childNode["s-sn"];
1060
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1061
+ node = hostContentNodes[j];
1062
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1063
+ if (isNodeLocatedInSlot(node, slotName)) {
1064
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1065
+ checkSlotFallbackVisibility = true;
1066
+ node["s-sn"] = node["s-sn"] || slotName;
1067
+ if (relocateNodeData) {
1068
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1069
+ relocateNodeData.$slotRefNode$ = childNode;
1070
+ } else {
1071
+ node["s-sh"] = childNode["s-hn"];
1072
+ relocateNodes.push({
1073
+ $slotRefNode$: childNode,
1074
+ $nodeToRelocate$: node
1075
+ });
1076
+ }
1077
+ if (node["s-sr"]) {
1078
+ relocateNodes.map((relocateNode) => {
1079
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1080
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1081
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1082
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1083
+ }
1084
+ }
1085
+ });
1086
+ }
1087
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1088
+ relocateNodes.push({
1089
+ $nodeToRelocate$: node
1090
+ });
1091
+ }
1092
+ }
1093
+ }
1094
+ }
1095
+ if (childNode.nodeType === 1 /* ElementNode */) {
1096
+ markSlotContentForRelocation(childNode);
1097
+ }
1098
+ }
1099
+ };
1100
+ var nullifyVNodeRefs = (vNode) => {
1101
+ {
1102
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1103
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1104
+ }
1105
+ };
1106
+ var insertBefore = (parent, newNode, reference) => {
1107
+ {
1108
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1109
+ }
1110
+ };
1111
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1112
+ var _a, _b, _c, _d;
1113
+ const hostElm = hostRef.$hostElement$;
1114
+ const cmpMeta = hostRef.$cmpMeta$;
1115
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1116
+ const isHostElement = isHost(renderFnResults);
1117
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1118
+ hostTagName = hostElm.tagName;
1119
+ if (isInitialLoad && rootVnode.$attrs$) {
1120
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1121
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1122
+ rootVnode.$attrs$[key] = hostElm[key];
1123
+ }
1124
+ }
1125
+ }
1126
+ rootVnode.$tag$ = null;
1127
+ rootVnode.$flags$ |= 4 /* isHost */;
1128
+ hostRef.$vnode$ = rootVnode;
1129
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1130
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1131
+ {
1132
+ contentRef = hostElm["s-cr"];
1133
+ checkSlotFallbackVisibility = false;
1134
+ }
1135
+ patch(oldVNode, rootVnode, isInitialLoad);
1136
+ {
1137
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1138
+ if (checkSlotRelocate) {
1139
+ markSlotContentForRelocation(rootVnode.$elm$);
1140
+ for (const relocateData of relocateNodes) {
1141
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1142
+ if (!nodeToRelocate["s-ol"] && win.document) {
1143
+ const orgLocationNode = win.document.createTextNode("");
1144
+ orgLocationNode["s-nr"] = nodeToRelocate;
1145
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1146
+ }
1147
+ }
1148
+ for (const relocateData of relocateNodes) {
1149
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1150
+ const slotRefNode = relocateData.$slotRefNode$;
1151
+ if (slotRefNode) {
1152
+ const parentNodeRef = slotRefNode.parentNode;
1153
+ let insertBeforeNode = slotRefNode.nextSibling;
1154
+ {
1155
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1156
+ while (orgLocationNode) {
1157
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1158
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1159
+ refNode = refNode.nextSibling;
1160
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1161
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1162
+ }
1163
+ if (!refNode || !refNode["s-nr"]) {
1164
+ insertBeforeNode = refNode;
1165
+ break;
1166
+ }
1167
+ }
1168
+ orgLocationNode = orgLocationNode.previousSibling;
1169
+ }
1170
+ }
1171
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1172
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1173
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1174
+ if (nodeToRelocate !== insertBeforeNode) {
1175
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1176
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1177
+ }
1178
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1179
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1180
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1181
+ }
1182
+ }
1183
+ }
1184
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1185
+ } else {
1186
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1187
+ if (isInitialLoad) {
1188
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1189
+ }
1190
+ nodeToRelocate.hidden = true;
1191
+ }
1192
+ }
1193
+ }
1194
+ }
1195
+ if (checkSlotFallbackVisibility) {
1196
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1197
+ }
1198
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1199
+ relocateNodes.length = 0;
1200
+ }
1201
+ contentRef = void 0;
1202
+ };
1203
+
1204
+ // src/runtime/update-component.ts
1205
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1206
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1207
+ const index = ancestorComponent["s-p"].push(
1208
+ new Promise(
1209
+ (r) => hostRef.$onRenderResolve$ = () => {
1210
+ ancestorComponent["s-p"].splice(index - 1, 1);
1211
+ r();
1212
+ }
1213
+ )
1214
+ );
1215
+ }
1216
+ };
1217
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1218
+ {
1219
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1220
+ }
1221
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1222
+ hostRef.$flags$ |= 512 /* needsRerender */;
1223
+ return;
1224
+ }
1225
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1226
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1227
+ if (isInitialLoad) {
1228
+ queueMicrotask(() => {
1229
+ dispatch();
1230
+ });
1231
+ return;
1232
+ }
1233
+ return writeTask(dispatch) ;
1234
+ };
1235
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1236
+ const elm = hostRef.$hostElement$;
1237
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1238
+ const instance = hostRef.$lazyInstance$ ;
1239
+ if (!instance) {
1240
+ throw new Error(
1241
+ `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`
1242
+ );
1243
+ }
1244
+ let maybePromise;
1245
+ if (isInitialLoad) {
1246
+ {
1247
+ if (hostRef.$fetchedCbList$.length) {
1248
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1249
+ }
1250
+ }
1251
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1252
+ } else {
1253
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1254
+ }
1255
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1256
+ endSchedule();
1257
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1258
+ };
1259
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1260
+ console.error(err2);
1261
+ fn();
1262
+ }) : fn();
1263
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1264
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1265
+ var _a;
1266
+ const elm = hostRef.$hostElement$;
1267
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1268
+ const rc = elm["s-rc"];
1269
+ if (isInitialLoad) {
1270
+ attachStyles(hostRef);
1271
+ }
1272
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1273
+ {
1274
+ callRender(hostRef, instance, elm, isInitialLoad);
1275
+ }
1276
+ if (rc) {
1277
+ rc.map((cb) => cb());
1278
+ elm["s-rc"] = void 0;
1279
+ }
1280
+ endRender();
1281
+ endUpdate();
1282
+ {
1283
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1284
+ const postUpdate = () => postUpdateComponent(hostRef);
1285
+ if (childrenPromises.length === 0) {
1286
+ postUpdate();
1287
+ } else {
1288
+ Promise.all(childrenPromises).then(postUpdate);
1289
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1290
+ childrenPromises.length = 0;
1291
+ }
1292
+ }
1293
+ };
1294
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1295
+ try {
1296
+ instance = instance.render() ;
1297
+ {
1298
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1299
+ }
1300
+ {
1301
+ hostRef.$flags$ |= 2 /* hasRendered */;
1302
+ }
1303
+ {
1304
+ {
1305
+ {
1306
+ renderVdom(hostRef, instance, isInitialLoad);
1307
+ }
1308
+ }
1309
+ }
1310
+ } catch (e) {
1311
+ consoleError(e, hostRef.$hostElement$);
1312
+ }
1313
+ return null;
1314
+ };
1315
+ var postUpdateComponent = (hostRef) => {
1316
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1317
+ const elm = hostRef.$hostElement$;
1318
+ const endPostUpdate = createTime("postUpdate", tagName);
1319
+ const instance = hostRef.$lazyInstance$ ;
1320
+ const ancestorComponent = hostRef.$ancestorComponent$;
1321
+ safeCall(instance, "componentDidRender", void 0, elm);
1322
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1323
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1324
+ {
1325
+ addHydratedFlag(elm);
1326
+ }
1327
+ safeCall(instance, "componentDidLoad", void 0, elm);
1328
+ endPostUpdate();
1329
+ {
1330
+ hostRef.$onReadyResolve$(elm);
1331
+ if (!ancestorComponent) {
1332
+ appDidLoad();
1333
+ }
1334
+ }
1335
+ } else {
1336
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1337
+ endPostUpdate();
1338
+ }
1339
+ {
1340
+ if (hostRef.$onRenderResolve$) {
1341
+ hostRef.$onRenderResolve$();
1342
+ hostRef.$onRenderResolve$ = void 0;
1343
+ }
1344
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1345
+ nextTick(() => scheduleUpdate(hostRef, false));
1346
+ }
1347
+ hostRef.$flags$ &= -517;
1348
+ }
1349
+ };
1350
+ var appDidLoad = (who) => {
1351
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1352
+ };
1353
+ var safeCall = (instance, method, arg, elm) => {
1354
+ if (instance && instance[method]) {
1355
+ try {
1356
+ return instance[method](arg);
1357
+ } catch (e) {
1358
+ consoleError(e, elm);
1359
+ }
1360
+ }
1361
+ return void 0;
1362
+ };
1363
+ var addHydratedFlag = (elm) => {
1364
+ var _a;
1365
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1366
+ };
1367
+
1368
+ // src/runtime/set-value.ts
1369
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1370
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1371
+ const hostRef = getHostRef(ref);
1372
+ if (!hostRef) {
1373
+ return;
1374
+ }
1375
+ if (!hostRef) {
1376
+ throw new Error(
1377
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1378
+ );
1379
+ }
1380
+ const elm = hostRef.$hostElement$ ;
1381
+ const oldVal = hostRef.$instanceValues$.get(propName);
1382
+ const flags = hostRef.$flags$;
1383
+ const instance = hostRef.$lazyInstance$ ;
1384
+ newVal = parsePropertyValue(
1385
+ newVal,
1386
+ cmpMeta.$members$[propName][0]);
1387
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1388
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1389
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1390
+ hostRef.$instanceValues$.set(propName, newVal);
1391
+ if (instance) {
1392
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1393
+ const watchMethods = cmpMeta.$watchers$[propName];
1394
+ if (watchMethods) {
1395
+ watchMethods.map((watchMethodName) => {
1396
+ try {
1397
+ instance[watchMethodName](newVal, oldVal, propName);
1398
+ } catch (e) {
1399
+ consoleError(e, elm);
1400
+ }
1401
+ });
1402
+ }
1403
+ }
1404
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1405
+ if (instance.componentShouldUpdate) {
1406
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1407
+ return;
1408
+ }
1409
+ }
1410
+ scheduleUpdate(hostRef, false);
1411
+ }
1412
+ }
1413
+ }
1414
+ };
1415
+
1416
+ // src/runtime/proxy-component.ts
1417
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1418
+ var _a, _b;
1419
+ const prototype = Cstr.prototype;
1420
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1421
+ {
1422
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1423
+ cmpMeta.$watchers$ = Cstr.watchers;
1424
+ }
1425
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1426
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1427
+ }
1428
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1429
+ cmpMeta.$serializers$ = Cstr.serializers;
1430
+ }
1431
+ }
1432
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1433
+ members.map(([memberName, [memberFlags]]) => {
1434
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1435
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1436
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1437
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1438
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1439
+ Object.defineProperty(prototype, memberName, {
1440
+ get() {
1441
+ {
1442
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1443
+ return getValue(this, memberName);
1444
+ }
1445
+ const ref = getHostRef(this);
1446
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1447
+ if (!instance) return;
1448
+ return instance[memberName];
1449
+ }
1450
+ },
1451
+ configurable: true,
1452
+ enumerable: true
1453
+ });
1454
+ }
1455
+ Object.defineProperty(prototype, memberName, {
1456
+ set(newValue) {
1457
+ const ref = getHostRef(this);
1458
+ if (!ref) {
1459
+ return;
1460
+ }
1461
+ if (origSetter) {
1462
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1463
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1464
+ newValue = ref.$instanceValues$.get(memberName);
1465
+ }
1466
+ origSetter.apply(this, [
1467
+ parsePropertyValue(
1468
+ newValue,
1469
+ memberFlags)
1470
+ ]);
1471
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1472
+ setValue(this, memberName, newValue, cmpMeta);
1473
+ return;
1474
+ }
1475
+ {
1476
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1477
+ setValue(this, memberName, newValue, cmpMeta);
1478
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1479
+ ref.$fetchedCbList$.push(() => {
1480
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1481
+ ref.$lazyInstance$[memberName] = newValue;
1482
+ }
1483
+ });
1484
+ }
1485
+ return;
1486
+ }
1487
+ const setterSetVal = () => {
1488
+ const currentValue = ref.$lazyInstance$[memberName];
1489
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1490
+ ref.$instanceValues$.set(memberName, currentValue);
1491
+ }
1492
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1493
+ newValue,
1494
+ memberFlags);
1495
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1496
+ };
1497
+ if (ref.$lazyInstance$) {
1498
+ setterSetVal();
1499
+ } else {
1500
+ ref.$fetchedCbList$.push(() => {
1501
+ setterSetVal();
1502
+ });
1503
+ }
1504
+ }
1505
+ }
1506
+ });
1507
+ }
1508
+ });
1509
+ if ((flags & 1 /* isElementConstructor */)) {
1510
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1511
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1512
+ plt.jmp(() => {
1513
+ var _a2;
1514
+ const propName = attrNameToPropName.get(attrName);
1515
+ const hostRef = getHostRef(this);
1516
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1517
+ newValue = this[propName];
1518
+ delete this[propName];
1519
+ }
1520
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1521
+ this[propName] == newValue) {
1522
+ return;
1523
+ } else if (propName == null) {
1524
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1525
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1526
+ const instance = hostRef.$lazyInstance$ ;
1527
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1528
+ entry == null ? void 0 : entry.forEach((callbackName) => {
1529
+ if (instance[callbackName] != null) {
1530
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1531
+ }
1532
+ });
1533
+ }
1534
+ return;
1535
+ }
1536
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1537
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1538
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1539
+ this[propName] = newValue;
1540
+ }
1541
+ });
1542
+ };
1543
+ Cstr.observedAttributes = Array.from(
1544
+ /* @__PURE__ */ new Set([
1545
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1546
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1547
+ const attrName = m[1] || propName;
1548
+ attrNameToPropName.set(attrName, propName);
1549
+ return attrName;
1550
+ })
1551
+ ])
1552
+ );
1553
+ }
1554
+ }
1555
+ return Cstr;
1556
+ };
1557
+
1558
+ // src/runtime/initialize-component.ts
1559
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1560
+ let Cstr;
1561
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1562
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1563
+ const bundleId = cmpMeta.$lazyBundleId$;
1564
+ if (bundleId) {
1565
+ const CstrImport = loadModule(cmpMeta, hostRef);
1566
+ if (CstrImport && "then" in CstrImport) {
1567
+ const endLoad = uniqueTime();
1568
+ Cstr = await CstrImport;
1569
+ endLoad();
1570
+ } else {
1571
+ Cstr = CstrImport;
1572
+ }
1573
+ if (!Cstr) {
1574
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1575
+ }
1576
+ if (!Cstr.isProxied) {
1577
+ {
1578
+ cmpMeta.$watchers$ = Cstr.watchers;
1579
+ cmpMeta.$serializers$ = Cstr.serializers;
1580
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1581
+ }
1582
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1583
+ Cstr.isProxied = true;
1584
+ }
1585
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1586
+ {
1587
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1588
+ }
1589
+ try {
1590
+ new Cstr(hostRef);
1591
+ } catch (e) {
1592
+ consoleError(e, elm);
1593
+ }
1594
+ {
1595
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1596
+ }
1597
+ {
1598
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1599
+ }
1600
+ endNewInstance();
1601
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1602
+ } else {
1603
+ Cstr = elm.constructor;
1604
+ const cmpTag = elm.localName;
1605
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1606
+ }
1607
+ if (Cstr && Cstr.style) {
1608
+ let style;
1609
+ if (typeof Cstr.style === "string") {
1610
+ style = Cstr.style;
1611
+ }
1612
+ const scopeId2 = getScopeId(cmpMeta);
1613
+ if (!styles.has(scopeId2)) {
1614
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1615
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1616
+ endRegisterStyles();
1617
+ }
1618
+ }
1619
+ }
1620
+ const ancestorComponent = hostRef.$ancestorComponent$;
1621
+ const schedule = () => scheduleUpdate(hostRef, true);
1622
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1623
+ ancestorComponent["s-rc"].push(schedule);
1624
+ } else {
1625
+ schedule();
1626
+ }
1627
+ };
1628
+ var fireConnectedCallback = (instance, elm) => {
1629
+ {
1630
+ safeCall(instance, "connectedCallback", void 0, elm);
1631
+ }
1632
+ };
1633
+
1634
+ // src/runtime/connected-callback.ts
1635
+ var connectedCallback = (elm) => {
1636
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1637
+ const hostRef = getHostRef(elm);
1638
+ if (!hostRef) {
1639
+ return;
1640
+ }
1641
+ const cmpMeta = hostRef.$cmpMeta$;
1642
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1643
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1644
+ hostRef.$flags$ |= 1 /* hasConnected */;
1645
+ {
1646
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1647
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1648
+ setContentReference(elm);
1649
+ }
1650
+ }
1651
+ {
1652
+ let ancestorComponent = elm;
1653
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1654
+ if (ancestorComponent["s-p"]) {
1655
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1656
+ break;
1657
+ }
1658
+ }
1659
+ }
1660
+ if (cmpMeta.$members$) {
1661
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1662
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1663
+ const value = elm[memberName];
1664
+ delete elm[memberName];
1665
+ elm[memberName] = value;
1666
+ }
1667
+ });
1668
+ }
1669
+ {
1670
+ initializeComponent(elm, hostRef, cmpMeta);
1671
+ }
1672
+ } else {
1673
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1674
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1675
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1676
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1677
+ }
1678
+ }
1679
+ endConnected();
1680
+ }
1681
+ };
1682
+ var setContentReference = (elm) => {
1683
+ if (!win.document) {
1684
+ return;
1685
+ }
1686
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
1687
+ ""
1688
+ );
1689
+ contentRefElm["s-cn"] = true;
1690
+ insertBefore(elm, contentRefElm, elm.firstChild);
1691
+ };
1692
+ var disconnectInstance = (instance, elm) => {
1693
+ {
1694
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1695
+ }
1696
+ };
1697
+ var disconnectedCallback = async (elm) => {
1698
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1699
+ const hostRef = getHostRef(elm);
1700
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1701
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1702
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1703
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1704
+ }
1705
+ }
1706
+ if (rootAppliedStyles.has(elm)) {
1707
+ rootAppliedStyles.delete(elm);
1708
+ }
1709
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1710
+ rootAppliedStyles.delete(elm.shadowRoot);
1711
+ }
1712
+ };
1713
+
1714
+ // src/runtime/bootstrap-lazy.ts
1715
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1716
+ var _a;
1717
+ if (!win.document) {
1718
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1719
+ return;
1720
+ }
1721
+ const endBootstrap = createTime();
1722
+ const cmpTags = [];
1723
+ const exclude = options.exclude || [];
1724
+ const customElements2 = win.customElements;
1725
+ const head = win.document.head;
1726
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1727
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1728
+ const deferredConnectedCallbacks = [];
1729
+ let appLoadFallback;
1730
+ let isBootstrapping = true;
1731
+ Object.assign(plt, options);
1732
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1733
+ let hasSlotRelocation = false;
1734
+ lazyBundles.map((lazyBundle) => {
1735
+ lazyBundle[1].map((compactMeta) => {
1736
+ var _a2, _b, _c;
1737
+ const cmpMeta = {
1738
+ $flags$: compactMeta[0],
1739
+ $tagName$: compactMeta[1],
1740
+ $members$: compactMeta[2],
1741
+ $listeners$: compactMeta[3]
1742
+ };
1743
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1744
+ hasSlotRelocation = true;
1745
+ }
1746
+ {
1747
+ cmpMeta.$members$ = compactMeta[2];
1748
+ }
1749
+ {
1750
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1751
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1752
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1753
+ }
1754
+ const tagName = cmpMeta.$tagName$;
1755
+ const HostElement = class extends HTMLElement {
1756
+ // StencilLazyHost
1757
+ constructor(self) {
1758
+ super(self);
1759
+ this.hasRegisteredEventListeners = false;
1760
+ self = this;
1761
+ registerHost(self, cmpMeta);
1762
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1763
+ {
1764
+ if (!self.shadowRoot) {
1765
+ createShadowRoot.call(self, cmpMeta);
1766
+ } else {
1767
+ if (self.shadowRoot.mode !== "open") {
1768
+ throw new Error(
1769
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1770
+ );
1771
+ }
1772
+ }
1773
+ }
1774
+ }
1775
+ }
1776
+ connectedCallback() {
1777
+ const hostRef = getHostRef(this);
1778
+ if (!hostRef) {
1779
+ return;
1780
+ }
1781
+ if (!this.hasRegisteredEventListeners) {
1782
+ this.hasRegisteredEventListeners = true;
1783
+ }
1784
+ if (appLoadFallback) {
1785
+ clearTimeout(appLoadFallback);
1786
+ appLoadFallback = null;
1787
+ }
1788
+ if (isBootstrapping) {
1789
+ deferredConnectedCallbacks.push(this);
1790
+ } else {
1791
+ plt.jmp(() => connectedCallback(this));
1792
+ }
1793
+ }
1794
+ disconnectedCallback() {
1795
+ plt.jmp(() => disconnectedCallback(this));
1796
+ plt.raf(() => {
1797
+ var _a3;
1798
+ const hostRef = getHostRef(this);
1799
+ if (!hostRef) {
1800
+ return;
1801
+ }
1802
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1803
+ if (i2 > -1) {
1804
+ deferredConnectedCallbacks.splice(i2, 1);
1805
+ }
1806
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1807
+ delete hostRef.$vnode$.$elm$;
1808
+ }
1809
+ });
1810
+ }
1811
+ componentOnReady() {
1812
+ var _a3;
1813
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1814
+ }
1815
+ };
1816
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1817
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1818
+ cmpTags.push(tagName);
1819
+ customElements2.define(
1820
+ tagName,
1821
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1822
+ );
1823
+ }
1824
+ });
1825
+ });
1826
+ if (cmpTags.length > 0) {
1827
+ if (hasSlotRelocation) {
1828
+ dataStyles.textContent += SLOT_FB_CSS;
1829
+ }
1830
+ {
1831
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1832
+ }
1833
+ if (dataStyles.innerHTML.length) {
1834
+ dataStyles.setAttribute("data-styles", "");
1835
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1836
+ if (nonce != null) {
1837
+ dataStyles.setAttribute("nonce", nonce);
1838
+ }
1839
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1840
+ }
1841
+ }
1842
+ isBootstrapping = false;
1843
+ if (deferredConnectedCallbacks.length) {
1844
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1845
+ } else {
1846
+ {
1847
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1848
+ }
1849
+ }
1850
+ endBootstrap();
1851
+ };
1852
+
1853
+ // src/runtime/nonce.ts
1854
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1855
+
1856
+ exports.Host = Host;
1857
+ exports.bootstrapLazy = bootstrapLazy;
1858
+ exports.getElement = getElement;
1859
+ exports.globalScripts = globalScripts;
1860
+ exports.h = h;
1861
+ exports.promiseResolve = promiseResolve;
1862
+ exports.registerInstance = registerInstance;
1863
+ exports.setNonce = setNonce;
1864
+ //# sourceMappingURL=index-DYiJ6dQL.js.map
1865
+
1866
+ //# sourceMappingURL=index-DYiJ6dQL.js.map