@uh-design-system/component-library 0.5.2 → 0.6.0

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 (243) hide show
  1. package/dist/cjs/{utils-3412cbed.js → attributes-BMbXzbwU.js} +2 -28
  2. package/dist/cjs/component-library.cjs.js +7 -7
  3. package/dist/cjs/controlUtils-ofqiQxRF.js +42 -0
  4. package/dist/cjs/ds-accordion.cjs.entry.js +79 -0
  5. package/dist/cjs/ds-button.cjs.entry.js +107 -0
  6. package/dist/cjs/ds-card.cjs.entry.js +58 -0
  7. package/dist/cjs/ds-checkbox-group.cjs.entry.js +109 -49
  8. package/dist/cjs/ds-checkbox.cjs.entry.js +88 -79
  9. package/dist/cjs/ds-icon.cjs.entry.js +943 -0
  10. package/dist/cjs/ds-input-validity.cjs.entry.js +14 -15
  11. package/dist/cjs/ds-link-with-arrow.cjs.entry.js +21 -20
  12. package/dist/cjs/ds-link.cjs.entry.js +34 -31
  13. package/dist/cjs/ds-radio-button-group.cjs.entry.js +153 -0
  14. package/dist/cjs/ds-radio-button.cjs.entry.js +151 -0
  15. package/dist/cjs/ds-spinner.cjs.entry.js +62 -0
  16. package/dist/cjs/ds-text-input.cjs.entry.js +90 -77
  17. package/dist/cjs/ds-visually-hidden.cjs.entry.js +3 -6
  18. package/dist/cjs/index-Bp6Dd2i1.js +94 -0
  19. package/dist/cjs/{store-9bd20f3c.js → index-DwLFyR5p.js} +6 -2
  20. package/dist/cjs/{index-bf84b124.js → index-Mjp9Y-Sw.js} +701 -55
  21. package/dist/cjs/index.cjs.js +3 -5
  22. package/dist/cjs/{linkUtils-695da37c.js → linkUtils-onlbgKdI.js} +4 -2
  23. package/dist/cjs/loader.cjs.js +3 -5
  24. package/dist/cjs/utils-BjZTECpy.js +29 -0
  25. package/dist/collection/accessibility/stories/naming.stories.js +3 -3
  26. package/dist/collection/collection-manifest.json +78 -3
  27. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.css +18 -17
  28. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.js +91 -50
  29. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.examples.stories.js +6 -6
  30. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.features.stories.js +14 -14
  31. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.stories.js +24 -66
  32. package/dist/collection/components/01-base-components/ds-button/ds-button.css +124 -145
  33. package/dist/collection/components/01-base-components/ds-button/ds-button.js +150 -65
  34. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.examples.stories.js +121 -23
  35. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.features.stories.js +49 -42
  36. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.stories.js +16 -72
  37. package/dist/collection/components/01-base-components/ds-card/ds-card.css +127 -0
  38. package/dist/collection/components/01-base-components/ds-card/ds-card.js +303 -0
  39. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.examples.stories.js +92 -0
  40. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.features.stories.js +66 -0
  41. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.stories.js +71 -0
  42. package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.css +46 -46
  43. package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.js +120 -111
  44. package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.features.stories.js +20 -20
  45. package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.stories.js +12 -25
  46. package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.css +2 -3
  47. package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.js +214 -63
  48. package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.js +215 -50
  49. package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.stories.js +30 -28
  50. package/dist/collection/components/01-base-components/ds-icon/ds-icon.js +36 -31
  51. package/dist/collection/components/01-base-components/ds-icon/stories/ds-icon.stories.js +10 -37
  52. package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.css +2 -2
  53. package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js +60 -30
  54. package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.features.stories.js +4 -4
  55. package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.stories.js +4 -9
  56. package/dist/collection/components/01-base-components/ds-link/ds-link.css +24 -14
  57. package/dist/collection/components/01-base-components/ds-link/ds-link.js +74 -75
  58. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.examples.stories.js +27 -27
  59. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.features.stories.js +38 -21
  60. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.stories.js +8 -67
  61. package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css +10 -12
  62. package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js +30 -52
  63. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.examples.stories.js +4 -4
  64. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.features.stories.js +6 -6
  65. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.stories.js +4 -28
  66. package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.css +115 -0
  67. package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.js +449 -0
  68. package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.js +72 -0
  69. package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.js +22 -0
  70. package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.css +30 -0
  71. package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.js +360 -0
  72. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.js +42 -0
  73. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.js +71 -0
  74. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.js +60 -0
  75. package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.css +279 -0
  76. package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.js +221 -0
  77. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.js +120 -0
  78. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.js +107 -0
  79. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.stories.js +14 -0
  80. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.css +85 -118
  81. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.js +230 -155
  82. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.examples.stories.js +26 -21
  83. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.features.stories.js +40 -40
  84. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.stories.js +30 -56
  85. package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.js +1 -1
  86. package/dist/collection/store.js +7 -1
  87. package/dist/collection/utils/attributes/attributes.js +2 -2
  88. package/dist/collection/utils/button/buttonUtils.js +14 -0
  89. package/dist/collection/utils/colours/colourTypes.js +3 -3
  90. package/dist/collection/utils/colours/colourUtils.js +5 -3
  91. package/dist/collection/utils/controls/controlUtils.js +35 -1
  92. package/dist/collection/utils/link/linkUtils.js +3 -2
  93. package/dist/collection/utils/spinner/spinnerUtils.js +20 -0
  94. package/dist/collection/utils/tests/testUtils.js +1 -0
  95. package/dist/collection/utils/typography/typographyUtils.js +3 -3
  96. package/dist/collection/utils/utils.js +10 -9
  97. package/dist/component-library/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +1 -1
  98. package/dist/component-library/component-library.css +1 -1
  99. package/dist/component-library/component-library.esm.js +1 -1
  100. package/dist/component-library/controlUtils-CNER0MvM.js +1 -0
  101. package/dist/component-library/ds-accordion.entry.js +1 -0
  102. package/dist/component-library/ds-button.entry.js +1 -0
  103. package/dist/component-library/ds-card.entry.js +1 -0
  104. package/dist/component-library/ds-checkbox-group.entry.js +1 -1
  105. package/dist/component-library/ds-checkbox.entry.js +1 -1
  106. package/dist/component-library/ds-icon.entry.js +1 -0
  107. package/dist/component-library/ds-input-validity.entry.js +1 -1
  108. package/dist/component-library/ds-link-with-arrow.entry.js +1 -1
  109. package/dist/component-library/ds-link.entry.js +1 -1
  110. package/dist/component-library/ds-radio-button-group.entry.js +1 -0
  111. package/dist/component-library/ds-radio-button.entry.js +1 -0
  112. package/dist/component-library/ds-spinner.entry.js +1 -0
  113. package/dist/component-library/ds-text-input.entry.js +1 -1
  114. package/dist/component-library/ds-visually-hidden.entry.js +1 -1
  115. package/dist/component-library/index-BfTCfPZ1.js +6 -0
  116. package/dist/component-library/index-Cm7V4EAn.js +2 -0
  117. package/dist/component-library/index-DuYjhvTn.js +1 -0
  118. package/dist/component-library/index.esm.js +1 -1
  119. package/dist/component-library/linkUtils-02nCfO0F.js +1 -0
  120. package/dist/component-library/utils-CqaqnfY4.js +1 -0
  121. package/dist/components/attributes.js +3 -3
  122. package/dist/components/controlUtils.js +35 -2
  123. package/dist/components/ds-accordion.js +58 -42
  124. package/dist/components/ds-button2.js +78 -39
  125. package/dist/components/ds-card.d.ts +11 -0
  126. package/dist/components/ds-card.js +91 -0
  127. package/dist/components/ds-checkbox-group.js +116 -56
  128. package/dist/components/ds-checkbox2.js +93 -80
  129. package/dist/components/ds-icon2.js +292 -292
  130. package/dist/components/ds-input-validity2.js +17 -14
  131. package/dist/components/ds-link-with-arrow.js +22 -22
  132. package/dist/components/ds-link.js +43 -40
  133. package/dist/components/ds-radio-button-group.d.ts +11 -0
  134. package/dist/components/ds-radio-button-group.js +185 -0
  135. package/dist/components/ds-radio-button.d.ts +11 -0
  136. package/dist/components/ds-radio-button.js +198 -0
  137. package/dist/components/ds-spinner.d.ts +11 -0
  138. package/dist/components/ds-spinner.js +6 -0
  139. package/dist/components/ds-spinner2.js +89 -0
  140. package/dist/components/ds-text-input.js +126 -104
  141. package/dist/components/ds-visually-hidden2.js +2 -3
  142. package/dist/components/index.js +208 -2
  143. package/dist/components/index2.js +713 -39
  144. package/dist/components/index3.js +69 -57
  145. package/dist/components/linkUtils.js +4 -2
  146. package/dist/docs.d.ts +443 -0
  147. package/dist/docs.json +4790 -0
  148. package/dist/esm/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +3 -26
  149. package/dist/esm/component-library.js +6 -5
  150. package/dist/esm/controlUtils-CNER0MvM.js +37 -0
  151. package/dist/esm/ds-accordion.entry.js +77 -0
  152. package/dist/esm/ds-button.entry.js +105 -0
  153. package/dist/esm/ds-card.entry.js +56 -0
  154. package/dist/esm/ds-checkbox-group.entry.js +108 -46
  155. package/dist/esm/ds-checkbox.entry.js +78 -67
  156. package/dist/esm/ds-icon.entry.js +941 -0
  157. package/dist/esm/ds-input-validity.entry.js +14 -13
  158. package/dist/esm/ds-link-with-arrow.entry.js +21 -18
  159. package/dist/esm/ds-link.entry.js +34 -29
  160. package/dist/esm/ds-radio-button-group.entry.js +151 -0
  161. package/dist/esm/ds-radio-button.entry.js +149 -0
  162. package/dist/esm/ds-spinner.entry.js +60 -0
  163. package/dist/esm/ds-text-input.entry.js +88 -73
  164. package/dist/esm/ds-visually-hidden.entry.js +3 -4
  165. package/dist/esm/index-BfTCfPZ1.js +92 -0
  166. package/dist/esm/{index-434995e1.js → index-Cm7V4EAn.js} +699 -34
  167. package/dist/{components/store.js → esm/index-DuYjhvTn.js} +6 -3
  168. package/dist/esm/index.js +2 -2
  169. package/dist/esm/{linkUtils-3d1b28cf.js → linkUtils-02nCfO0F.js} +4 -2
  170. package/dist/esm/loader.js +4 -4
  171. package/dist/esm/utils-CqaqnfY4.js +25 -0
  172. package/dist/hydrate/index.d.ts +271 -0
  173. package/dist/hydrate/index.js +22280 -0
  174. package/dist/hydrate/index.mjs +22272 -0
  175. package/dist/hydrate/package.json +12 -0
  176. package/dist/styles/helpers.css +15 -0
  177. package/dist/styles/helpers.css.map +1 -0
  178. package/dist/styles/mixins/_breakpoints.scss +13 -0
  179. package/dist/styles/mixins/_focus.scss +26 -0
  180. package/dist/styles/mixins/_wrapper.scss +5 -0
  181. package/dist/styles/mixins/imports-default/_imports.scss +2 -0
  182. package/dist/styles/mixins/tokens/_breakpoints.scss +13 -0
  183. package/dist/styles/mixins/tokens/_semantic-colours.scss +75 -0
  184. package/dist/styles/mixins.scss +12 -0
  185. package/dist/styles/variables.css +176 -0
  186. package/dist/styles/variables.css.map +1 -0
  187. package/dist/types/components/01-base-components/ds-accordion/ds-accordion.d.ts +11 -8
  188. package/dist/types/components/01-base-components/ds-button/ds-button.d.ts +16 -11
  189. package/dist/types/components/01-base-components/ds-button/stories/ds-button.examples.stories.d.ts +1 -0
  190. package/dist/types/components/01-base-components/ds-button/stories/ds-button.features.stories.d.ts +1 -0
  191. package/dist/types/components/01-base-components/ds-card/ds-card.d.ts +20 -0
  192. package/dist/types/components/01-base-components/ds-card/stories/ds-card.examples.stories.d.ts +8 -0
  193. package/dist/types/components/01-base-components/ds-card/stories/ds-card.features.stories.d.ts +8 -0
  194. package/dist/types/components/01-base-components/ds-card/stories/ds-card.stories.d.ts +7 -0
  195. package/dist/types/components/01-base-components/ds-checkbox/ds-checkbox.d.ts +21 -22
  196. package/dist/types/components/01-base-components/ds-checkbox-group/ds-checkbox-group.d.ts +21 -11
  197. package/dist/types/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.d.ts +3 -0
  198. package/dist/types/components/01-base-components/ds-icon/ds-icon.d.ts +7 -5
  199. package/dist/types/components/01-base-components/ds-input-validity/ds-input-validity.d.ts +5 -6
  200. package/dist/types/components/01-base-components/ds-link/ds-link.d.ts +13 -14
  201. package/dist/types/components/01-base-components/ds-link/stories/ds-link.features.stories.d.ts +2 -0
  202. package/dist/types/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.d.ts +5 -7
  203. package/dist/types/components/01-base-components/ds-radio-button/ds-radio-button.d.ts +44 -0
  204. package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.d.ts +15 -0
  205. package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.d.ts +7 -0
  206. package/dist/types/components/01-base-components/ds-radio-button-group/ds-radio-button-group.d.ts +34 -0
  207. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.d.ts +6 -0
  208. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.d.ts +11 -0
  209. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.d.ts +7 -0
  210. package/dist/types/components/01-base-components/ds-spinner/ds-spinner.d.ts +17 -0
  211. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.d.ts +7 -0
  212. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.d.ts +7 -0
  213. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.stories.d.ts +7 -0
  214. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.d.ts +37 -32
  215. package/dist/types/components.d.ts +1287 -228
  216. package/dist/types/stencil-public-runtime.d.ts +22 -0
  217. package/dist/types/store.d.ts +6 -1
  218. package/dist/types/utils/attributes/attributes.d.ts +1 -1
  219. package/dist/types/utils/button/buttonUtils.d.ts +1 -0
  220. package/dist/types/utils/colours/colourTypes.d.ts +3 -3
  221. package/dist/types/utils/controls/controlUtils.d.ts +2 -0
  222. package/dist/types/utils/link/linkUtils.d.ts +1 -1
  223. package/dist/types/utils/spinner/spinnerUtils.d.ts +1 -0
  224. package/dist/types/utils/tests/testUtils.d.ts +1 -0
  225. package/dist/types/utils/utils.d.ts +2 -1
  226. package/package.json +40 -36
  227. package/dist/cjs/controlUtils-041de0fd.js +0 -7
  228. package/dist/cjs/ds-accordion_3.cjs.entry.js +0 -1095
  229. package/dist/cjs/index-5b0b9d4c.js +0 -82
  230. package/dist/component-library/controlUtils-9ca4087b.js +0 -1
  231. package/dist/component-library/ds-accordion_3.entry.js +0 -1
  232. package/dist/component-library/index-434995e1.js +0 -2
  233. package/dist/component-library/index-72ac5051.js +0 -6
  234. package/dist/component-library/linkUtils-3d1b28cf.js +0 -1
  235. package/dist/component-library/store-b8d17c10.js +0 -1
  236. package/dist/esm/controlUtils-9ca4087b.js +0 -4
  237. package/dist/esm/ds-accordion_3.entry.js +0 -1089
  238. package/dist/esm/index-72ac5051.js +0 -80
  239. package/dist/esm/store-b8d17c10.js +0 -204
  240. package/dist/loader/package.json +0 -11
  241. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  242. /package/dist/component-library/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  243. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'component-library';
2
- const BUILD = /* component-library */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
2
+ const BUILD = /* component-library */ { hydratedSelectorName: "hydrated", lazyLoad: false, slotRelocation: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.30.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -10,6 +10,34 @@ var __export = (target, all) => {
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
12
 
13
+ // src/utils/constants.ts
14
+ var SVG_NS = "http://www.w3.org/2000/svg";
15
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
17
+ PrimitiveType2["Undefined"] = "undefined";
18
+ PrimitiveType2["Null"] = "null";
19
+ PrimitiveType2["String"] = "string";
20
+ PrimitiveType2["Number"] = "number";
21
+ PrimitiveType2["SpecialNumber"] = "number";
22
+ PrimitiveType2["Boolean"] = "boolean";
23
+ PrimitiveType2["BigInt"] = "bigint";
24
+ return PrimitiveType2;
25
+ })(PrimitiveType || {});
26
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
27
+ NonPrimitiveType2["Array"] = "array";
28
+ NonPrimitiveType2["Date"] = "date";
29
+ NonPrimitiveType2["Map"] = "map";
30
+ NonPrimitiveType2["Object"] = "object";
31
+ NonPrimitiveType2["RegularExpression"] = "regexp";
32
+ NonPrimitiveType2["Set"] = "set";
33
+ NonPrimitiveType2["Channel"] = "channel";
34
+ NonPrimitiveType2["Symbol"] = "symbol";
35
+ return NonPrimitiveType2;
36
+ })(NonPrimitiveType || {});
37
+ var TYPE_CONSTANT = "type";
38
+ var VALUE_CONSTANT = "value";
39
+ var SERIALIZED_PREFIX = "serialized:";
40
+
13
41
  // src/utils/es2022-rewire-class-members.ts
14
42
  var reWireGetterSetter = (instance, hostRef) => {
15
43
  var _a;
@@ -65,7 +93,16 @@ var consoleError = (e, el) => (0, console.error)(e, el);
65
93
 
66
94
  // src/client/client-style.ts
67
95
  var styles = /* @__PURE__ */ new Map();
96
+
97
+ // src/runtime/runtime-constants.ts
98
+ var CONTENT_REF_ID = "r";
99
+ var ORG_LOCATION_ID = "o";
100
+ var SLOT_NODE_ID = "s";
101
+ var TEXT_NODE_ID = "t";
102
+ var COMMENT_NODE_ID = "c";
103
+ var HYDRATE_ID = "s-id";
68
104
  var HYDRATED_STYLE_ID = "sty-id";
105
+ var HYDRATE_CHILD_ID = "c-id";
69
106
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
70
107
  var XLINK_NS = "http://www.w3.org/1999/xlink";
71
108
  var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
@@ -168,6 +205,106 @@ function queryNonceMetaTagContent(doc) {
168
205
  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;
169
206
  }
170
207
 
208
+ // src/utils/regular-expression.ts
209
+ var escapeRegExpSpecialCharacters = (text) => {
210
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
211
+ };
212
+
213
+ // src/utils/remote-value.ts
214
+ var RemoteValue = class _RemoteValue {
215
+ /**
216
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
217
+ *
218
+ * @param serialized The serialized LocalValue object
219
+ * @returns The original JavaScript value/object
220
+ */
221
+ static fromLocalValue(serialized) {
222
+ const type = serialized[TYPE_CONSTANT];
223
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
224
+ switch (type) {
225
+ case "string" /* String */:
226
+ return value;
227
+ case "boolean" /* Boolean */:
228
+ return value;
229
+ case "bigint" /* BigInt */:
230
+ return BigInt(value);
231
+ case "undefined" /* Undefined */:
232
+ return void 0;
233
+ case "null" /* Null */:
234
+ return null;
235
+ case "number" /* Number */:
236
+ if (value === "NaN") return NaN;
237
+ if (value === "-0") return -0;
238
+ if (value === "Infinity") return Infinity;
239
+ if (value === "-Infinity") return -Infinity;
240
+ return value;
241
+ case "array" /* Array */:
242
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
243
+ case "date" /* Date */:
244
+ return new Date(value);
245
+ case "map" /* Map */:
246
+ const map2 = /* @__PURE__ */ new Map();
247
+ for (const [key, val] of value) {
248
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
249
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
250
+ map2.set(deserializedKey, deserializedValue);
251
+ }
252
+ return map2;
253
+ case "object" /* Object */:
254
+ const obj = {};
255
+ for (const [key, val] of value) {
256
+ obj[key] = _RemoteValue.fromLocalValue(val);
257
+ }
258
+ return obj;
259
+ case "regexp" /* RegularExpression */:
260
+ const { pattern, flags } = value;
261
+ return new RegExp(pattern, flags);
262
+ case "set" /* Set */:
263
+ const set = /* @__PURE__ */ new Set();
264
+ for (const item of value) {
265
+ set.add(_RemoteValue.fromLocalValue(item));
266
+ }
267
+ return set;
268
+ case "symbol" /* Symbol */:
269
+ return Symbol(value);
270
+ default:
271
+ throw new Error(`Unsupported type: ${type}`);
272
+ }
273
+ }
274
+ /**
275
+ * Utility method to deserialize multiple LocalValues at once
276
+ *
277
+ * @param serializedValues Array of serialized LocalValue objects
278
+ * @returns Array of deserialized JavaScript values
279
+ */
280
+ static fromLocalValueArray(serializedValues) {
281
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
282
+ }
283
+ /**
284
+ * Verifies if the given object matches the structure of a serialized LocalValue
285
+ *
286
+ * @param obj Object to verify
287
+ * @returns boolean indicating if the object has LocalValue structure
288
+ */
289
+ static isLocalValueObject(obj) {
290
+ if (typeof obj !== "object" || obj === null) {
291
+ return false;
292
+ }
293
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
294
+ return false;
295
+ }
296
+ const type = obj[TYPE_CONSTANT];
297
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
298
+ if (!hasTypeProperty) {
299
+ return false;
300
+ }
301
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
302
+ return obj.hasOwnProperty(VALUE_CONSTANT);
303
+ }
304
+ return true;
305
+ }
306
+ };
307
+
171
308
  // src/utils/result.ts
172
309
  var result_exports = {};
173
310
  __export(result_exports, {
@@ -216,6 +353,14 @@ var unwrapErr = (result) => {
216
353
  throw result.value;
217
354
  }
218
355
  };
356
+
357
+ // src/utils/serialize.ts
358
+ function deserializeProperty(value) {
359
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
360
+ return value;
361
+ }
362
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
363
+ }
219
364
  var updateFallbackSlotVisibility = (elm) => {
220
365
  const childNodes = internalCall(elm, "childNodes");
221
366
  if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
@@ -253,9 +398,8 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
253
398
  let childNode;
254
399
  for (; i2 < childNodes.length; i2++) {
255
400
  childNode = childNodes[i2];
256
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
401
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
257
402
  slottedNodes.push(childNode);
258
- if (typeof slotName !== "undefined") return slottedNodes;
259
403
  }
260
404
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
261
405
  }
@@ -285,6 +429,34 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
285
429
  }
286
430
  return slotName === "";
287
431
  };
432
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
433
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
434
+ return;
435
+ }
436
+ const slottedNodeLocation = document.createTextNode("");
437
+ slottedNodeLocation["s-nr"] = newChild;
438
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
439
+ const parent = slotNode["s-cr"].parentNode;
440
+ const appendMethod = internalCall(parent, "appendChild");
441
+ if (typeof position !== "undefined") {
442
+ slottedNodeLocation["s-oo"] = position;
443
+ const childNodes = internalCall(parent, "childNodes");
444
+ const slotRelocateNodes = [slottedNodeLocation];
445
+ childNodes.forEach((n) => {
446
+ if (n["s-nr"]) slotRelocateNodes.push(n);
447
+ });
448
+ slotRelocateNodes.sort((a, b) => {
449
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
450
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
451
+ return 0;
452
+ });
453
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
454
+ } else {
455
+ appendMethod.call(parent, slottedNodeLocation);
456
+ }
457
+ newChild["s-ol"] = slottedNodeLocation;
458
+ newChild["s-sh"] = slotNode["s-hn"];
459
+ };
288
460
  var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
289
461
  function patchSlotNode(node) {
290
462
  if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
@@ -441,13 +613,442 @@ var convertToPrivate = (node) => {
441
613
  vnode.$name$ = node.vname;
442
614
  return vnode;
443
615
  };
616
+
617
+ // src/runtime/client-hydrate.ts
618
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
619
+ var _a;
620
+ const endHydrate = createTime("hydrateClient", tagName);
621
+ const shadowRoot = hostElm.shadowRoot;
622
+ const childRenderNodes = [];
623
+ const slotNodes = [];
624
+ const slottedNodes = [];
625
+ const shadowRootNodes = shadowRoot ? [] : null;
626
+ const vnode = newVNode(tagName, null);
627
+ vnode.$elm$ = hostElm;
628
+ const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
629
+ members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
630
+ var _a2;
631
+ if (!(memberFlags & 31 /* Prop */)) {
632
+ return;
633
+ }
634
+ const attributeName = metaAttributeName || memberName;
635
+ const attrVal = hostElm.getAttribute(attributeName);
636
+ if (attrVal !== null) {
637
+ const attrPropVal = parsePropertyValue(attrVal, memberFlags);
638
+ (_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
639
+ }
640
+ });
641
+ let scopeId2;
642
+ {
643
+ const cmpMeta = hostRef.$cmpMeta$;
644
+ if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
645
+ scopeId2 = hostElm["s-sc"];
646
+ hostElm.classList.add(scopeId2 + "-h");
647
+ } else if (hostElm["s-sc"]) {
648
+ delete hostElm["s-sc"];
649
+ }
650
+ }
651
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
652
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
653
+ }
654
+ hostElm[HYDRATE_ID] = hostId;
655
+ hostElm.removeAttribute(HYDRATE_ID);
656
+ hostRef.$vnode$ = clientHydrate(
657
+ vnode,
658
+ childRenderNodes,
659
+ slotNodes,
660
+ shadowRootNodes,
661
+ hostElm,
662
+ hostElm,
663
+ hostId,
664
+ slottedNodes
665
+ );
666
+ let crIndex = 0;
667
+ const crLength = childRenderNodes.length;
668
+ let childRenderNode;
669
+ for (crIndex; crIndex < crLength; crIndex++) {
670
+ childRenderNode = childRenderNodes[crIndex];
671
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
672
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
673
+ const node = childRenderNode.$elm$;
674
+ if (!shadowRoot) {
675
+ node["s-hn"] = tagName.toUpperCase();
676
+ if (childRenderNode.$tag$ === "slot") {
677
+ node["s-cr"] = hostElm["s-cr"];
678
+ }
679
+ }
680
+ if (childRenderNode.$tag$ === "slot") {
681
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
682
+ if (childRenderNode.$children$) {
683
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
684
+ if (!childRenderNode.$elm$.childNodes.length) {
685
+ childRenderNode.$children$.forEach((c) => {
686
+ childRenderNode.$elm$.appendChild(c.$elm$);
687
+ });
688
+ }
689
+ } else {
690
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
691
+ }
692
+ }
693
+ if (orgLocationNode && orgLocationNode.isConnected) {
694
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
695
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
696
+ }
697
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
698
+ if (!shadowRoot) {
699
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
700
+ }
701
+ }
702
+ plt.$orgLocNodes$.delete(orgLocationId);
703
+ }
704
+ const hosts = [];
705
+ const snLen = slottedNodes.length;
706
+ let snIndex = 0;
707
+ let slotGroup;
708
+ let snGroupIdx;
709
+ let snGroupLen;
710
+ let slottedItem;
711
+ for (snIndex; snIndex < snLen; snIndex++) {
712
+ slotGroup = slottedNodes[snIndex];
713
+ if (!slotGroup || !slotGroup.length) continue;
714
+ snGroupLen = slotGroup.length;
715
+ snGroupIdx = 0;
716
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
717
+ slottedItem = slotGroup[snGroupIdx];
718
+ if (!hosts[slottedItem.hostId]) {
719
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
720
+ }
721
+ if (!hosts[slottedItem.hostId]) continue;
722
+ const hostEle = hosts[slottedItem.hostId];
723
+ if (!hostEle.shadowRoot || !shadowRoot) {
724
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
725
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
726
+ slottedItem.slot["s-cr"] = hostEle;
727
+ } else {
728
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
729
+ }
730
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
731
+ }
732
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
733
+ hostEle.appendChild(slottedItem.node);
734
+ }
735
+ }
736
+ }
737
+ if (scopeId2 && slotNodes.length) {
738
+ slotNodes.forEach((slot) => {
739
+ slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
740
+ });
741
+ }
742
+ if (shadowRoot && !shadowRoot.childNodes.length) {
743
+ let rnIdex = 0;
744
+ const rnLen = shadowRootNodes.length;
745
+ if (rnLen) {
746
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
747
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
748
+ }
749
+ Array.from(hostElm.childNodes).forEach((node) => {
750
+ if (typeof node["s-sn"] !== "string") {
751
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
752
+ node.removeAttribute("hidden");
753
+ } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
754
+ node.parentNode.removeChild(node);
755
+ }
756
+ }
757
+ });
758
+ }
759
+ }
760
+ plt.$orgLocNodes$.delete(hostElm["s-id"]);
761
+ hostRef.$hostElement$ = hostElm;
762
+ endHydrate();
763
+ };
764
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
765
+ let childNodeType;
766
+ let childIdSplt;
767
+ let childVNode;
768
+ let i2;
769
+ const scopeId2 = hostElm["s-sc"];
770
+ if (node.nodeType === 1 /* ElementNode */) {
771
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
772
+ if (childNodeType) {
773
+ childIdSplt = childNodeType.split(".");
774
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
775
+ childVNode = createSimpleVNode({
776
+ $flags$: 0,
777
+ $hostId$: childIdSplt[0],
778
+ $nodeId$: childIdSplt[1],
779
+ $depth$: childIdSplt[2],
780
+ $index$: childIdSplt[3],
781
+ $tag$: node.tagName.toLowerCase(),
782
+ $elm$: node,
783
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
784
+ // won't try to reconcile them. Classes set on the node will be blown away.
785
+ $attrs$: { class: node.className || "" }
786
+ });
787
+ childRenderNodes.push(childVNode);
788
+ node.removeAttribute(HYDRATE_CHILD_ID);
789
+ if (!parentVNode.$children$) {
790
+ parentVNode.$children$ = [];
791
+ }
792
+ if (scopeId2) {
793
+ node["s-si"] = scopeId2;
794
+ childVNode.$attrs$.class += " " + scopeId2;
795
+ }
796
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
797
+ if (typeof slotName === "string") {
798
+ if (childVNode.$tag$ === "slot-fb") {
799
+ addSlot(
800
+ slotName,
801
+ childIdSplt[2],
802
+ childVNode,
803
+ node,
804
+ parentVNode,
805
+ childRenderNodes,
806
+ slotNodes,
807
+ shadowRootNodes,
808
+ slottedNodes
809
+ );
810
+ if (scopeId2) {
811
+ node.classList.add(scopeId2);
812
+ }
813
+ }
814
+ childVNode.$elm$["s-sn"] = slotName;
815
+ childVNode.$elm$.removeAttribute("s-sn");
816
+ }
817
+ if (childVNode.$index$ !== void 0) {
818
+ parentVNode.$children$[childVNode.$index$] = childVNode;
819
+ }
820
+ parentVNode = childVNode;
821
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
822
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
823
+ }
824
+ }
825
+ }
826
+ if (node.shadowRoot) {
827
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
828
+ clientHydrate(
829
+ parentVNode,
830
+ childRenderNodes,
831
+ slotNodes,
832
+ shadowRootNodes,
833
+ hostElm,
834
+ node.shadowRoot.childNodes[i2],
835
+ hostId,
836
+ slottedNodes
837
+ );
838
+ }
839
+ }
840
+ const nonShadowNodes = node.__childNodes || node.childNodes;
841
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
842
+ clientHydrate(
843
+ parentVNode,
844
+ childRenderNodes,
845
+ slotNodes,
846
+ shadowRootNodes,
847
+ hostElm,
848
+ nonShadowNodes[i2],
849
+ hostId,
850
+ slottedNodes
851
+ );
852
+ }
853
+ } else if (node.nodeType === 8 /* CommentNode */) {
854
+ childIdSplt = node.nodeValue.split(".");
855
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
856
+ childNodeType = childIdSplt[0];
857
+ childVNode = createSimpleVNode({
858
+ $hostId$: childIdSplt[1],
859
+ $nodeId$: childIdSplt[2],
860
+ $depth$: childIdSplt[3],
861
+ $index$: childIdSplt[4] || "0",
862
+ $elm$: node,
863
+ $attrs$: null,
864
+ $children$: null,
865
+ $key$: null,
866
+ $name$: null,
867
+ $tag$: null,
868
+ $text$: null
869
+ });
870
+ if (childNodeType === TEXT_NODE_ID) {
871
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
872
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
873
+ childVNode.$text$ = childVNode.$elm$.textContent;
874
+ childRenderNodes.push(childVNode);
875
+ node.remove();
876
+ if (hostId === childVNode.$hostId$) {
877
+ if (!parentVNode.$children$) {
878
+ parentVNode.$children$ = [];
879
+ }
880
+ parentVNode.$children$[childVNode.$index$] = childVNode;
881
+ }
882
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
883
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
884
+ }
885
+ }
886
+ } else if (childNodeType === COMMENT_NODE_ID) {
887
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
888
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
889
+ childRenderNodes.push(childVNode);
890
+ node.remove();
891
+ }
892
+ } else if (childVNode.$hostId$ === hostId) {
893
+ if (childNodeType === SLOT_NODE_ID) {
894
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
895
+ addSlot(
896
+ slotName,
897
+ childIdSplt[2],
898
+ childVNode,
899
+ node,
900
+ parentVNode,
901
+ childRenderNodes,
902
+ slotNodes,
903
+ shadowRootNodes,
904
+ slottedNodes
905
+ );
906
+ } else if (childNodeType === CONTENT_REF_ID) {
907
+ if (shadowRootNodes) {
908
+ node.remove();
909
+ } else {
910
+ hostElm["s-cr"] = node;
911
+ node["s-cn"] = true;
912
+ }
913
+ }
914
+ }
915
+ }
916
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
917
+ const vnode = newVNode(null, node.textContent);
918
+ vnode.$elm$ = node;
919
+ vnode.$index$ = "0";
920
+ parentVNode.$children$ = [vnode];
921
+ } else {
922
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
923
+ node.remove();
924
+ }
925
+ }
926
+ return parentVNode;
927
+ };
928
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
929
+ if (node.nodeType === 1 /* ElementNode */) {
930
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
931
+ if (componentId) {
932
+ orgLocNodes.set(componentId, node);
933
+ }
934
+ let i2 = 0;
935
+ if (node.shadowRoot) {
936
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
937
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
938
+ }
939
+ }
940
+ const nonShadowNodes = node.__childNodes || node.childNodes;
941
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
942
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
943
+ }
944
+ } else if (node.nodeType === 8 /* CommentNode */) {
945
+ const childIdSplt = node.nodeValue.split(".");
946
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
947
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
948
+ node.nodeValue = "";
949
+ node["s-en"] = childIdSplt[3];
950
+ }
951
+ }
952
+ };
953
+ var createSimpleVNode = (vnode) => {
954
+ const defaultVNode = {
955
+ $flags$: 0,
956
+ $hostId$: null,
957
+ $nodeId$: null,
958
+ $depth$: null,
959
+ $index$: "0",
960
+ $elm$: null,
961
+ $attrs$: null,
962
+ $children$: null,
963
+ $key$: null,
964
+ $name$: null,
965
+ $tag$: null,
966
+ $text$: null
967
+ };
968
+ return { ...defaultVNode, ...vnode };
969
+ };
970
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
971
+ node["s-sr"] = true;
972
+ childVNode.$name$ = slotName || null;
973
+ childVNode.$tag$ = "slot";
974
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
975
+ if (shadowRootNodes && win.document) {
976
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
977
+ if (childVNode.$name$) {
978
+ childVNode.$elm$.setAttribute("name", slotName);
979
+ }
980
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
981
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
982
+ } else {
983
+ node.parentNode.insertBefore(childVNode.$elm$, node);
984
+ }
985
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
986
+ node.remove();
987
+ if (childVNode.$depth$ === "0") {
988
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
989
+ }
990
+ } else {
991
+ const slot = childVNode.$elm$;
992
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
993
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
994
+ patchSlotNode(node);
995
+ if (shouldMove) {
996
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
997
+ }
998
+ childRenderNodes.push(childVNode);
999
+ }
1000
+ slotNodes.push(childVNode);
1001
+ if (!parentVNode.$children$) {
1002
+ parentVNode.$children$ = [];
1003
+ }
1004
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1005
+ }
1006
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1007
+ let slottedNode = slotNode.nextSibling;
1008
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1009
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1010
+ slottedNode["s-sn"] = slotName;
1011
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1012
+ slottedNode = slottedNode.nextSibling;
1013
+ }
1014
+ };
1015
+ var findCorrespondingNode = (node, type) => {
1016
+ let sibling = node;
1017
+ do {
1018
+ sibling = sibling.nextSibling;
1019
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1020
+ return sibling;
1021
+ };
1022
+ var createSupportsRuleRe = (selector) => {
1023
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1024
+ return new RegExp(
1025
+ // First capture group: match any context before the selector that's not inside @supports selector()
1026
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
1027
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1028
+ "g"
1029
+ );
1030
+ };
1031
+ createSupportsRuleRe("::slotted");
1032
+ createSupportsRuleRe(":host");
1033
+ createSupportsRuleRe(":host-context");
444
1034
  var parsePropertyValue = (propValue, propType) => {
1035
+ if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
1036
+ try {
1037
+ propValue = JSON.parse(propValue);
1038
+ return propValue;
1039
+ } catch (e) {
1040
+ }
1041
+ }
1042
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1043
+ propValue = deserializeProperty(propValue);
1044
+ return propValue;
1045
+ }
445
1046
  if (propValue != null && !isComplexType(propValue)) {
446
1047
  if (propType & 4 /* Boolean */) {
447
1048
  return propValue === "false" ? false : propValue === "" || !!propValue;
448
1049
  }
449
1050
  if (propType & 2 /* Number */) {
450
- return parseFloat(propValue);
1051
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
451
1052
  }
452
1053
  if (propType & 1 /* String */) {
453
1054
  return String(propValue);
@@ -464,9 +1065,9 @@ var createEvent = (ref, name, flags) => {
464
1065
  return {
465
1066
  emit: (detail) => {
466
1067
  return emitEvent(elm, name, {
467
- bubbles: !!(flags & 4 /* Bubbles */),
468
- composed: !!(flags & 2 /* Composed */),
469
- cancelable: !!(flags & 1 /* Cancellable */),
1068
+ bubbles: true,
1069
+ composed: true,
1070
+ cancelable: true,
470
1071
  detail
471
1072
  });
472
1073
  }
@@ -509,7 +1110,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
509
1110
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
510
1111
  }
511
1112
  if (!appliedStyles.has(scopeId2)) {
512
- {
1113
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1114
+ styleElm.innerHTML = style;
1115
+ } else {
513
1116
  styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
514
1117
  styleElm.innerHTML = style;
515
1118
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
@@ -566,13 +1169,24 @@ var attachStyles = (hostRef) => {
566
1169
  const scopeId2 = addStyle(
567
1170
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
568
1171
  cmpMeta);
569
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
1172
+ if (flags & 10 /* needsScopedEncapsulation */) {
570
1173
  elm["s-sc"] = scopeId2;
571
1174
  elm.classList.add(scopeId2 + "-h");
572
1175
  }
573
1176
  endAttachStyles();
574
1177
  };
575
1178
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1179
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1180
+ var hydrateScopedToShadow = () => {
1181
+ if (!win.document) {
1182
+ return;
1183
+ }
1184
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1185
+ let i2 = 0;
1186
+ for (; i2 < styles2.length; i2++) {
1187
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1188
+ }
1189
+ };
576
1190
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
577
1191
  if (oldValue === newValue) {
578
1192
  return;
@@ -583,7 +1197,14 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
583
1197
  const classList = elm.classList;
584
1198
  const oldClasses = parseClassList(oldValue);
585
1199
  let newClasses = parseClassList(newValue);
586
- {
1200
+ if (elm["s-si"] && initialRender) {
1201
+ newClasses.push(elm["s-si"]);
1202
+ oldClasses.forEach((c) => {
1203
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
1204
+ });
1205
+ newClasses = [...new Set(newClasses)];
1206
+ classList.add(...newClasses);
1207
+ } else {
587
1208
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
588
1209
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
589
1210
  }
@@ -703,7 +1324,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
703
1324
  oldVnodeAttrs[memberName],
704
1325
  void 0,
705
1326
  isSvgMode2,
706
- newVnode.$flags$);
1327
+ newVnode.$flags$,
1328
+ isInitialRender
1329
+ );
707
1330
  }
708
1331
  }
709
1332
  }
@@ -714,7 +1337,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
714
1337
  oldVnodeAttrs[memberName],
715
1338
  newVnodeAttrs[memberName],
716
1339
  isSvgMode2,
717
- newVnode.$flags$);
1340
+ newVnode.$flags$,
1341
+ isInitialRender
1342
+ );
718
1343
  }
719
1344
  };
720
1345
  function sortedAttrNames(attrNames) {
@@ -765,14 +1390,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
765
1390
  updateElement(null, newVNode2, isSvgMode);
766
1391
  }
767
1392
  } else {
1393
+ if (!isSvgMode) {
1394
+ isSvgMode = newVNode2.$tag$ === "svg";
1395
+ }
768
1396
  if (!win.document) {
769
1397
  throw new Error(
770
1398
  "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."
771
1399
  );
772
1400
  }
773
- elm = newVNode2.$elm$ = win.document.createElement(
1401
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1402
+ isSvgMode ? SVG_NS : HTML_NS,
774
1403
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
775
- );
1404
+ ) ;
1405
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1406
+ isSvgMode = false;
1407
+ }
776
1408
  {
777
1409
  updateElement(null, newVNode2, isSvgMode);
778
1410
  }
@@ -787,6 +1419,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
787
1419
  }
788
1420
  }
789
1421
  }
1422
+ {
1423
+ if (newVNode2.$tag$ === "svg") {
1424
+ isSvgMode = false;
1425
+ } else if (elm.tagName === "foreignObject") {
1426
+ isSvgMode = true;
1427
+ }
1428
+ }
790
1429
  }
791
1430
  elm["s-hn"] = hostTagName;
792
1431
  {
@@ -812,14 +1451,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
812
1451
  var putBackInOriginalLocation = (parentElm, recursive) => {
813
1452
  plt.$flags$ |= 1 /* isTmpDisconnected */;
814
1453
  const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
815
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
816
- let node = parentElm;
817
- while (node = node.nextSibling) {
818
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
819
- oldSlotChildNodes.push(node);
820
- }
821
- }
822
- }
823
1454
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
824
1455
  const childNode = oldSlotChildNodes[i2];
825
1456
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
@@ -833,7 +1464,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
833
1464
  putBackInOriginalLocation(childNode, recursive);
834
1465
  }
835
1466
  }
836
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1467
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
837
1468
  };
838
1469
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
839
1470
  let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
@@ -985,11 +1616,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
985
1616
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
986
1617
  const oldChildren = oldVNode.$children$;
987
1618
  const newChildren = newVNode2.$children$;
1619
+ const tag = newVNode2.$tag$;
988
1620
  const text = newVNode2.$text$;
989
1621
  let defaultHolder;
990
1622
  if (text === null) {
991
1623
  {
992
- updateElement(oldVNode, newVNode2, isSvgMode);
1624
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1625
+ }
1626
+ {
1627
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
993
1628
  }
994
1629
  if (oldChildren !== null && newChildren !== null) {
995
1630
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -1004,6 +1639,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1004
1639
  ) {
1005
1640
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1006
1641
  }
1642
+ if (isSvgMode && tag === "svg") {
1643
+ isSvgMode = false;
1644
+ }
1007
1645
  } else if ((defaultHolder = elm["s-cr"])) {
1008
1646
  defaultHolder.parentNode.textContent = text;
1009
1647
  } else if (oldVNode.$text$ !== text) {
@@ -1022,7 +1660,7 @@ var markSlotContentForRelocation = (elm) => {
1022
1660
  const slotName = childNode["s-sn"];
1023
1661
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1024
1662
  node = hostContentNodes[j];
1025
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
1663
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1026
1664
  if (isNodeLocatedInSlot(node, slotName)) {
1027
1665
  let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1028
1666
  checkSlotFallbackVisibility = true;
@@ -1100,7 +1738,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1100
1738
  const hostElm = hostRef.$hostElement$;
1101
1739
  const cmpMeta = hostRef.$cmpMeta$;
1102
1740
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1103
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1741
+ const isHostElement = isHost(renderFnResults);
1742
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1104
1743
  hostTagName = hostElm.tagName;
1105
1744
  if (isInitialLoad && rootVnode.$attrs$) {
1106
1745
  for (const key of Object.keys(rootVnode.$attrs$)) {
@@ -1184,7 +1823,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1184
1823
  if (checkSlotFallbackVisibility) {
1185
1824
  updateFallbackSlotVisibility(rootVnode.$elm$);
1186
1825
  }
1187
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1826
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1188
1827
  relocateNodes.length = 0;
1189
1828
  }
1190
1829
  contentRef = void 0;
@@ -1275,7 +1914,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1275
1914
  renderingRef = instance;
1276
1915
  instance = instance.render() ;
1277
1916
  {
1278
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1917
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1279
1918
  }
1280
1919
  {
1281
1920
  hostRef.$flags$ |= 2 /* hasRendered */;
@@ -1326,7 +1965,7 @@ var postUpdateComponent = (hostRef) => {
1326
1965
  if (hostRef.$flags$ & 512 /* needsRerender */) {
1327
1966
  nextTick(() => scheduleUpdate(hostRef, false));
1328
1967
  }
1329
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1968
+ hostRef.$flags$ &= -517;
1330
1969
  }
1331
1970
  };
1332
1971
  var forceUpdate = (ref) => {
@@ -1429,7 +2068,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1429
2068
  const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1430
2069
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1431
2070
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1432
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
2071
+ {
1433
2072
  Object.defineProperty(prototype, memberName, {
1434
2073
  get() {
1435
2074
  {
@@ -1469,10 +2108,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1469
2108
  plt.jmp(() => {
1470
2109
  var _a2;
1471
2110
  const propName = attrNameToPropName.get(attrName);
1472
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1473
- newValue = this[propName];
1474
- delete this[propName];
1475
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2111
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ; else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1476
2112
  this[propName] == newValue) {
1477
2113
  return;
1478
2114
  } else if (propName == null) {
@@ -1554,7 +2190,21 @@ var connectedCallback = (elm) => {
1554
2190
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1555
2191
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1556
2192
  hostRef.$flags$ |= 1 /* hasConnected */;
2193
+ let hostId;
1557
2194
  {
2195
+ hostId = elm.getAttribute(HYDRATE_ID);
2196
+ if (hostId) {
2197
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2198
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2199
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2200
+ } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2201
+ const scopeId2 = getScopeId(cmpMeta);
2202
+ elm["s-sc"] = scopeId2;
2203
+ }
2204
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2205
+ }
2206
+ }
2207
+ if (!hostId) {
1558
2208
  if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1559
2209
  cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1560
2210
  setContentReference(elm);
@@ -1563,7 +2213,7 @@ var connectedCallback = (elm) => {
1563
2213
  {
1564
2214
  let ancestorComponent = elm;
1565
2215
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1566
- if (ancestorComponent["s-p"]) {
2216
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1567
2217
  attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1568
2218
  break;
1569
2219
  }
@@ -1578,7 +2228,9 @@ var connectedCallback = (elm) => {
1578
2228
  }
1579
2229
  });
1580
2230
  }
1581
- {
2231
+ if (BUILD.initializeNextTick) {
2232
+ nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2233
+ } else {
1582
2234
  initializeComponent(elm, hostRef, cmpMeta);
1583
2235
  }
1584
2236
  } else {
@@ -1631,6 +2283,9 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1631
2283
  {
1632
2284
  cmpMeta.$watchers$ = Cstr.$watchers$;
1633
2285
  }
2286
+ {
2287
+ hydrateScopedToShadow();
2288
+ }
1634
2289
  const originalConnectedCallback = Cstr.prototype.connectedCallback;
1635
2290
  const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
1636
2291
  Object.assign(Cstr.prototype, {
@@ -1680,7 +2335,7 @@ var Fragment = (_, children) => children;
1680
2335
  var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1681
2336
  if (listeners && win.document) {
1682
2337
  listeners.map(([flags, name, method]) => {
1683
- const target = elm;
2338
+ const target = getHostListenerTarget(win.document, elm, flags) ;
1684
2339
  const handler = hostListenerProxy(hostRef, method);
1685
2340
  const opts = hostListenerOpts(flags);
1686
2341
  plt.ael(target, name, handler, opts);
@@ -1697,6 +2352,12 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1697
2352
  consoleError(e, hostRef.$hostElement$);
1698
2353
  }
1699
2354
  };
2355
+ var getHostListenerTarget = (doc, elm, flags) => {
2356
+ if (flags & 4 /* TargetDocument */) {
2357
+ return doc;
2358
+ }
2359
+ return elm;
2360
+ };
1700
2361
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
1701
2362
  passive: (flags & 1 /* Passive */) !== 0,
1702
2363
  capture: (flags & 2 /* Capture */) !== 0
@@ -1708,4 +2369,17 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
1708
2369
  // src/runtime/platform-options.ts
1709
2370
  var setPlatformOptions = (opts) => Object.assign(plt, opts);
1710
2371
 
1711
- export { Fragment as F, H, setNonce as a, setPlatformOptions as b, getRenderingRef as c, createEvent as d, forceUpdate as f, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
2372
+ // src/runtime/render.ts
2373
+ function render(vnode, container) {
2374
+ const cmpMeta = {
2375
+ $flags$: 0,
2376
+ $tagName$: container.tagName
2377
+ };
2378
+ const ref = {
2379
+ $cmpMeta$: cmpMeta,
2380
+ $hostElement$: container
2381
+ };
2382
+ renderVdom(ref, vnode);
2383
+ }
2384
+
2385
+ export { Fragment as F, H, Host as a, getAssetPath as b, createEvent as c, setNonce as d, setPlatformOptions as e, forceUpdate as f, getRenderingRef as g, h, proxyCustomElement as p, render as r, setAssetPath as s };