@threadlabs/looma 0.2.4 → 0.2.6

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 (428) hide show
  1. package/dist/chunk-3K45IWIJ.js +4733 -0
  2. package/dist/chunk-MLKGABMK.js +9 -0
  3. package/dist/chunk-UHHA4WT5.js +2916 -0
  4. package/dist/declarative-generated.cjs +135 -0
  5. package/dist/declarative-generated.d.cts +10 -0
  6. package/dist/declarative-generated.d.ts +10 -0
  7. package/dist/declarative-generated.js +111 -0
  8. package/dist/declarative.cjs +2944 -0
  9. package/dist/declarative.d.cts +27 -0
  10. package/dist/declarative.d.ts +27 -0
  11. package/dist/declarative.js +13 -0
  12. package/dist/index.cjs +7480 -6457
  13. package/dist/index.d.cts +4 -58
  14. package/dist/index.d.ts +4 -58
  15. package/dist/index.js +15 -27
  16. package/dist/loader.cjs +7654 -0
  17. package/dist/loader.d.cts +4 -0
  18. package/dist/loader.d.ts +4 -0
  19. package/dist/loader.js +16 -0
  20. package/dist/valibot.cjs +31 -0
  21. package/dist/valibot.d.cts +10 -0
  22. package/dist/valibot.d.ts +1 -43
  23. package/dist/valibot.js +2 -0
  24. package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
  25. package/dist/validation-bxcou-l-.d.ts +58 -0
  26. package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
  27. package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
  28. package/editor/chunk-WI7ZA44X.js +2558 -0
  29. package/editor/extensions/index.d.ts +11 -2
  30. package/editor/extensions/index.js +9 -7
  31. package/editor/index.d.ts +1 -1
  32. package/editor/index.js +10 -8
  33. package/editor/ui.js +2 -2
  34. package/editor.css +32 -0
  35. package/layout/index.cjs +466 -400
  36. package/layout/index.d.cts +1 -2
  37. package/layout/index.d.ts +1 -2
  38. package/layout/index.js +471 -395
  39. package/package.json +14 -5
  40. package/styles.css +8 -8
  41. package/vue/chunk-4DPYH3IT.js +3538 -0
  42. package/vue/editor/index.d.ts +17 -7
  43. package/vue/editor/index.js +53 -35
  44. package/vue/index.d.ts +48 -31
  45. package/vue/index.js +1 -1
  46. package/dist/chunk-24OTMNIU.js +0 -1617
  47. package/dist/chunk-D5WRORG6.js +0 -366
  48. package/dist/chunk-HNFCGIBP.js +0 -8
  49. package/dist/chunk-NB6DBRXQ.js +0 -323
  50. package/dist/chunk-OF57X5AR.js +0 -10
  51. package/dist/chunk-TL4FIE7X.js +0 -93
  52. package/dist/chunk-UL7UIUJZ.js +0 -20
  53. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  54. package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
  55. package/dist/cjs/events-TcQIzpNv.js +0 -19
  56. package/dist/cjs/icons-BAdjrnhS.js +0 -680
  57. package/dist/cjs/id-CYbKpaYr.js +0 -9
  58. package/dist/cjs/index-BHG9Rpil.js +0 -1602
  59. package/dist/cjs/index.cjs.js +0 -2
  60. package/dist/cjs/loader.cjs.js +0 -13
  61. package/dist/cjs/looma.cjs.js +0 -25
  62. package/dist/cjs/manager-Ce25WRtl.js +0 -95
  63. package/dist/cjs/positioning-CCR6ifPj.js +0 -426
  64. package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
  65. package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
  66. package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
  67. package/dist/cjs/ui-badge.cjs.entry.js +0 -19
  68. package/dist/cjs/ui-button.cjs.entry.js +0 -75
  69. package/dist/cjs/ui-callout.cjs.entry.js +0 -27
  70. package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
  71. package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
  72. package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
  73. package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
  74. package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
  75. package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
  76. package/dist/cjs/ui-editable.cjs.entry.js +0 -100
  77. package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
  78. package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
  79. package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
  80. package/dist/cjs/ui-input.cjs.entry.js +0 -106
  81. package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
  82. package/dist/cjs/ui-menu.cjs.entry.js +0 -182
  83. package/dist/cjs/ui-popover.cjs.entry.js +0 -135
  84. package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
  85. package/dist/cjs/ui-radio.cjs.entry.js +0 -94
  86. package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
  87. package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
  88. package/dist/cjs/ui-select.cjs.entry.js +0 -108
  89. package/dist/cjs/ui-switch.cjs.entry.js +0 -74
  90. package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
  91. package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
  92. package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
  93. package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
  94. package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
  95. package/dist/cjs/ui-tree.cjs.entry.js +0 -500
  96. package/dist/collection/collection-manifest.json +0 -45
  97. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
  98. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
  99. package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
  100. package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
  101. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
  102. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
  103. package/dist/collection/components/ui-badge/ui-badge.css +0 -90
  104. package/dist/collection/components/ui-badge/ui-badge.js +0 -62
  105. package/dist/collection/components/ui-button/ui-button.css +0 -121
  106. package/dist/collection/components/ui-button/ui-button.js +0 -141
  107. package/dist/collection/components/ui-callout/ui-callout.css +0 -74
  108. package/dist/collection/components/ui-callout/ui-callout.js +0 -59
  109. package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
  110. package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
  111. package/dist/collection/components/ui-chip/ui-chip.css +0 -57
  112. package/dist/collection/components/ui-chip/ui-chip.js +0 -67
  113. package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
  114. package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
  115. package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
  116. package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
  117. package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
  118. package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
  119. package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
  120. package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
  121. package/dist/collection/components/ui-editable/ui-editable.css +0 -2
  122. package/dist/collection/components/ui-editable/ui-editable.js +0 -196
  123. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
  124. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
  125. package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
  126. package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
  127. package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
  128. package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
  129. package/dist/collection/components/ui-input/ui-input.css +0 -48
  130. package/dist/collection/components/ui-input/ui-input.js +0 -217
  131. package/dist/collection/components/ui-menu/ui-menu.css +0 -73
  132. package/dist/collection/components/ui-menu/ui-menu.js +0 -280
  133. package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
  134. package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
  135. package/dist/collection/components/ui-popover/ui-popover.css +0 -58
  136. package/dist/collection/components/ui-popover/ui-popover.js +0 -232
  137. package/dist/collection/components/ui-radio/ui-radio.css +0 -22
  138. package/dist/collection/components/ui-radio/ui-radio.js +0 -226
  139. package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
  140. package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
  141. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
  142. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
  143. package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
  144. package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
  145. package/dist/collection/components/ui-select/ui-select.css +0 -64
  146. package/dist/collection/components/ui-select/ui-select.js +0 -218
  147. package/dist/collection/components/ui-switch/ui-switch.css +0 -63
  148. package/dist/collection/components/ui-switch/ui-switch.js +0 -185
  149. package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
  150. package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
  151. package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
  152. package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
  153. package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
  154. package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
  155. package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
  156. package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
  157. package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
  158. package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
  159. package/dist/collection/components/ui-tree/ui-tree.css +0 -12
  160. package/dist/collection/components/ui-tree/ui-tree.js +0 -515
  161. package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
  162. package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
  163. package/dist/collection/field/combobox.js +0 -4
  164. package/dist/collection/field/editable.js +0 -1
  165. package/dist/collection/field/multi-combobox.js +0 -1
  166. package/dist/collection/field/valibot.js +0 -5
  167. package/dist/collection/field/validation.js +0 -62
  168. package/dist/collection/icons.js +0 -71
  169. package/dist/collection/input-modality.js +0 -24
  170. package/dist/collection/overlay/manager.js +0 -92
  171. package/dist/collection/overlay/positioning.js +0 -424
  172. package/dist/collection/utils/controlled-state.js +0 -4
  173. package/dist/collection/utils/drag-drop.js +0 -51
  174. package/dist/collection/utils/events.js +0 -13
  175. package/dist/collection/utils/id.js +0 -5
  176. package/dist/collection/utils/initials.js +0 -11
  177. package/dist/components/index.d.ts +0 -102
  178. package/dist/components/index.js +0 -1
  179. package/dist/components/p-6SWSrfmW.js +0 -1
  180. package/dist/components/p-B_DaIVEY.js +0 -1
  181. package/dist/components/p-Bh_1GxOD.js +0 -1
  182. package/dist/components/p-BnGhGgTH.js +0 -1
  183. package/dist/components/p-BzaB_bXo.js +0 -1
  184. package/dist/components/p-C-0syqXZ.js +0 -1
  185. package/dist/components/p-CoFximGM.js +0 -13
  186. package/dist/components/p-JwSoedEO.js +0 -1
  187. package/dist/components/p-Vc4ExHFc.js +0 -1
  188. package/dist/components/p-hgBUJRDa.js +0 -1
  189. package/dist/components/ui-affordance-scope.d.ts +0 -11
  190. package/dist/components/ui-affordance-scope.js +0 -1
  191. package/dist/components/ui-avatar-group.d.ts +0 -11
  192. package/dist/components/ui-avatar-group.js +0 -1
  193. package/dist/components/ui-avatar.d.ts +0 -11
  194. package/dist/components/ui-avatar.js +0 -1
  195. package/dist/components/ui-badge.d.ts +0 -11
  196. package/dist/components/ui-badge.js +0 -1
  197. package/dist/components/ui-button.d.ts +0 -11
  198. package/dist/components/ui-button.js +0 -1
  199. package/dist/components/ui-callout.d.ts +0 -11
  200. package/dist/components/ui-callout.js +0 -1
  201. package/dist/components/ui-checkbox.d.ts +0 -11
  202. package/dist/components/ui-checkbox.js +0 -1
  203. package/dist/components/ui-chip.d.ts +0 -11
  204. package/dist/components/ui-chip.js +0 -1
  205. package/dist/components/ui-combobox.d.ts +0 -11
  206. package/dist/components/ui-combobox.js +0 -1
  207. package/dist/components/ui-context-menu.d.ts +0 -11
  208. package/dist/components/ui-context-menu.js +0 -1
  209. package/dist/components/ui-dialog.d.ts +0 -11
  210. package/dist/components/ui-dialog.js +0 -1
  211. package/dist/components/ui-disclosure.d.ts +0 -11
  212. package/dist/components/ui-disclosure.js +0 -1
  213. package/dist/components/ui-editable.d.ts +0 -11
  214. package/dist/components/ui-editable.js +0 -1
  215. package/dist/components/ui-floating-action-button.d.ts +0 -11
  216. package/dist/components/ui-floating-action-button.js +0 -1
  217. package/dist/components/ui-form-field.d.ts +0 -11
  218. package/dist/components/ui-form-field.js +0 -1
  219. package/dist/components/ui-icon-button.d.ts +0 -11
  220. package/dist/components/ui-icon-button.js +0 -1
  221. package/dist/components/ui-input.d.ts +0 -11
  222. package/dist/components/ui-input.js +0 -1
  223. package/dist/components/ui-menu-item.d.ts +0 -11
  224. package/dist/components/ui-menu-item.js +0 -1
  225. package/dist/components/ui-menu.d.ts +0 -11
  226. package/dist/components/ui-menu.js +0 -1
  227. package/dist/components/ui-popover.d.ts +0 -11
  228. package/dist/components/ui-popover.js +0 -1
  229. package/dist/components/ui-radio-group.d.ts +0 -11
  230. package/dist/components/ui-radio-group.js +0 -1
  231. package/dist/components/ui-radio.d.ts +0 -11
  232. package/dist/components/ui-radio.js +0 -1
  233. package/dist/components/ui-search-result-row.d.ts +0 -11
  234. package/dist/components/ui-search-result-row.js +0 -1
  235. package/dist/components/ui-search-shell.d.ts +0 -11
  236. package/dist/components/ui-search-shell.js +0 -1
  237. package/dist/components/ui-select.d.ts +0 -11
  238. package/dist/components/ui-select.js +0 -1
  239. package/dist/components/ui-switch.d.ts +0 -11
  240. package/dist/components/ui-switch.js +0 -1
  241. package/dist/components/ui-tabs.d.ts +0 -11
  242. package/dist/components/ui-tabs.js +0 -1
  243. package/dist/components/ui-textarea.d.ts +0 -11
  244. package/dist/components/ui-textarea.js +0 -1
  245. package/dist/components/ui-toast-region.d.ts +0 -11
  246. package/dist/components/ui-toast-region.js +0 -1
  247. package/dist/components/ui-tooltip.d.ts +0 -11
  248. package/dist/components/ui-tooltip.js +0 -1
  249. package/dist/components/ui-top-bar.d.ts +0 -11
  250. package/dist/components/ui-top-bar.js +0 -1
  251. package/dist/components/ui-tree-item.d.ts +0 -11
  252. package/dist/components/ui-tree-item.js +0 -1
  253. package/dist/components/ui-tree.d.ts +0 -11
  254. package/dist/components/ui-tree.js +0 -1
  255. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  256. package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
  257. package/dist/esm/events-JwSoedEO.js +0 -15
  258. package/dist/esm/icons-CoFximGM.js +0 -678
  259. package/dist/esm/id-hgBUJRDa.js +0 -7
  260. package/dist/esm/index-8BGiMGQ0.js +0 -1593
  261. package/dist/esm/index.js +0 -1
  262. package/dist/esm/loader.js +0 -11
  263. package/dist/esm/looma.js +0 -21
  264. package/dist/esm/manager-C-0syqXZ.js +0 -91
  265. package/dist/esm/positioning-ZOr-2PSe.js +0 -421
  266. package/dist/esm/ui-affordance-scope.entry.js +0 -41
  267. package/dist/esm/ui-avatar-group.entry.js +0 -41
  268. package/dist/esm/ui-avatar.entry.js +0 -48
  269. package/dist/esm/ui-badge.entry.js +0 -17
  270. package/dist/esm/ui-button.entry.js +0 -73
  271. package/dist/esm/ui-callout.entry.js +0 -25
  272. package/dist/esm/ui-checkbox.entry.js +0 -95
  273. package/dist/esm/ui-chip_2.entry.js +0 -255
  274. package/dist/esm/ui-combobox.entry.js +0 -706
  275. package/dist/esm/ui-context-menu.entry.js +0 -237
  276. package/dist/esm/ui-dialog.entry.js +0 -129
  277. package/dist/esm/ui-disclosure.entry.js +0 -110
  278. package/dist/esm/ui-editable.entry.js +0 -98
  279. package/dist/esm/ui-floating-action-button.entry.js +0 -18
  280. package/dist/esm/ui-form-field.entry.js +0 -112
  281. package/dist/esm/ui-icon-button.entry.js +0 -21
  282. package/dist/esm/ui-input.entry.js +0 -104
  283. package/dist/esm/ui-menu-item.entry.js +0 -17
  284. package/dist/esm/ui-menu.entry.js +0 -180
  285. package/dist/esm/ui-popover.entry.js +0 -133
  286. package/dist/esm/ui-radio-group.entry.js +0 -132
  287. package/dist/esm/ui-radio.entry.js +0 -92
  288. package/dist/esm/ui-search-result-row.entry.js +0 -45
  289. package/dist/esm/ui-search-shell.entry.js +0 -37
  290. package/dist/esm/ui-select.entry.js +0 -106
  291. package/dist/esm/ui-switch.entry.js +0 -72
  292. package/dist/esm/ui-tabs.entry.js +0 -116
  293. package/dist/esm/ui-textarea.entry.js +0 -108
  294. package/dist/esm/ui-toast-region.entry.js +0 -91
  295. package/dist/esm/ui-top-bar.entry.js +0 -41
  296. package/dist/esm/ui-tree-item.entry.js +0 -133
  297. package/dist/esm/ui-tree.entry.js +0 -498
  298. package/dist/index.cjs.js +0 -1
  299. package/dist/looma/index.esm.js +0 -0
  300. package/dist/looma/looma.esm.js +0 -1
  301. package/dist/looma/p-08f80207.entry.js +0 -1
  302. package/dist/looma/p-0b5b8d9e.entry.js +0 -1
  303. package/dist/looma/p-1249a806.entry.js +0 -1
  304. package/dist/looma/p-16e0669d.entry.js +0 -1
  305. package/dist/looma/p-1c00670f.entry.js +0 -1
  306. package/dist/looma/p-1c5a7522.entry.js +0 -1
  307. package/dist/looma/p-22842f8c.entry.js +0 -1
  308. package/dist/looma/p-2915d5c0.entry.js +0 -1
  309. package/dist/looma/p-3b2961a6.entry.js +0 -1
  310. package/dist/looma/p-3f60f4c8.entry.js +0 -1
  311. package/dist/looma/p-424d6719.entry.js +0 -1
  312. package/dist/looma/p-4caccfce.entry.js +0 -1
  313. package/dist/looma/p-5fdcee1d.entry.js +0 -1
  314. package/dist/looma/p-6d8b99ee.entry.js +0 -1
  315. package/dist/looma/p-6f20d470.entry.js +0 -1
  316. package/dist/looma/p-7c0b5364.entry.js +0 -1
  317. package/dist/looma/p-8BGiMGQ0.js +0 -2
  318. package/dist/looma/p-8bdd9495.entry.js +0 -1
  319. package/dist/looma/p-99116a72.entry.js +0 -1
  320. package/dist/looma/p-9cfbf722.entry.js +0 -1
  321. package/dist/looma/p-9d2662ca.entry.js +0 -1
  322. package/dist/looma/p-9ff2fa19.entry.js +0 -1
  323. package/dist/looma/p-BnGhGgTH.js +0 -1
  324. package/dist/looma/p-C-0syqXZ.js +0 -1
  325. package/dist/looma/p-CoFximGM.js +0 -13
  326. package/dist/looma/p-DQuL1Twl.js +0 -1
  327. package/dist/looma/p-JwSoedEO.js +0 -1
  328. package/dist/looma/p-ZOr-2PSe.js +0 -1
  329. package/dist/looma/p-a2dd4c6c.entry.js +0 -1
  330. package/dist/looma/p-add67e4c.entry.js +0 -1
  331. package/dist/looma/p-b6ede6bb.entry.js +0 -1
  332. package/dist/looma/p-b76e2111.entry.js +0 -1
  333. package/dist/looma/p-ca2a54fd.entry.js +0 -1
  334. package/dist/looma/p-d372b0db.entry.js +0 -1
  335. package/dist/looma/p-d4825822.entry.js +0 -1
  336. package/dist/looma/p-d56571a2.entry.js +0 -1
  337. package/dist/looma/p-d5c3954f.entry.js +0 -1
  338. package/dist/looma/p-e604e906.entry.js +0 -1
  339. package/dist/looma/p-f1f7c5cb.entry.js +0 -1
  340. package/dist/looma/p-hgBUJRDa.js +0 -1
  341. package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
  342. package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
  343. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
  344. package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
  345. package/dist/types/components/ui-button/ui-button.d.ts +0 -13
  346. package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
  347. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
  348. package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
  349. package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
  350. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
  351. package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
  352. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
  353. package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
  354. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
  355. package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
  356. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
  357. package/dist/types/components/ui-input/ui-input.d.ts +0 -19
  358. package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
  359. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
  360. package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
  361. package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
  362. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
  363. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
  364. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
  365. package/dist/types/components/ui-select/ui-select.d.ts +0 -20
  366. package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
  367. package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
  368. package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
  369. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
  370. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
  371. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
  372. package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
  373. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
  374. package/dist/types/components.d.ts +0 -1889
  375. package/dist/types/field/combobox.d.ts +0 -46
  376. package/dist/types/field/editable.d.ts +0 -5
  377. package/dist/types/field/multi-combobox.d.ts +0 -11
  378. package/dist/types/field/valibot.d.ts +0 -7
  379. package/dist/types/icons.d.ts +0 -53
  380. package/dist/types/input-modality.d.ts +0 -6
  381. package/dist/types/overlay/manager.d.ts +0 -17
  382. package/dist/types/overlay/positioning.d.ts +0 -74
  383. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  384. package/dist/types/utils/controlled-state.d.ts +0 -4
  385. package/dist/types/utils/drag-drop.d.ts +0 -15
  386. package/dist/types/utils/events.d.ts +0 -4
  387. package/dist/types/utils/id.d.ts +0 -1
  388. package/dist/types/utils/initials.d.ts +0 -1
  389. package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
  390. package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
  391. package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
  392. package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
  393. package/dist/ui-button.entry-MNFBMNSX.js +0 -83
  394. package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
  395. package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
  396. package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
  397. package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
  398. package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
  399. package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
  400. package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
  401. package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
  402. package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
  403. package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
  404. package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
  405. package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
  406. package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
  407. package/dist/ui-menu.entry-D53RUJND.js +0 -192
  408. package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
  409. package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
  410. package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
  411. package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
  412. package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
  413. package/dist/ui-select.entry-GIDIAYRD.js +0 -117
  414. package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
  415. package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
  416. package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
  417. package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
  418. package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
  419. package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
  420. package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
  421. package/editor/chunk-64GLF274.js +0 -1271
  422. package/layout/index.css +0 -387
  423. package/loader/cdn.js +0 -1
  424. package/loader/index.cjs.js +0 -1
  425. package/loader/index.d.ts +0 -24
  426. package/loader/index.es2017.js +0 -1
  427. package/loader/index.js +0 -2
  428. package/vue/chunk-ROMBQS2L.js +0 -352
@@ -1,1617 +0,0 @@
1
- var __glob = (map) => (path) => {
2
- var fn = map[path];
3
- if (fn) return fn();
4
- throw new Error("Module not found in bundle: " + path);
5
- };
6
-
7
- // import("./**/*.entry.js") in dist/esm/index-8BGiMGQ0.js
8
- var globImport_entry_js = __glob({
9
- "./ui-affordance-scope.entry.js": () => import("./ui-affordance-scope.entry-L6TIXYOP.js"),
10
- "./ui-avatar-group.entry.js": () => import("./ui-avatar-group.entry-TCAA6P72.js"),
11
- "./ui-avatar.entry.js": () => import("./ui-avatar.entry-52DQ7VXA.js"),
12
- "./ui-badge.entry.js": () => import("./ui-badge.entry-2XCAA6LL.js"),
13
- "./ui-button.entry.js": () => import("./ui-button.entry-MNFBMNSX.js"),
14
- "./ui-callout.entry.js": () => import("./ui-callout.entry-SSHT5TH2.js"),
15
- "./ui-checkbox.entry.js": () => import("./ui-checkbox.entry-LOWIWIWI.js"),
16
- "./ui-chip_2.entry.js": () => import("./ui-chip_2.entry-BIMTSF6C.js"),
17
- "./ui-combobox.entry.js": () => import("./ui-combobox.entry-25Z4MN7N.js"),
18
- "./ui-context-menu.entry.js": () => import("./ui-context-menu.entry-YZDL5Y4M.js"),
19
- "./ui-dialog.entry.js": () => import("./ui-dialog.entry-HIXZX5AB.js"),
20
- "./ui-disclosure.entry.js": () => import("./ui-disclosure.entry-2JZHZNDQ.js"),
21
- "./ui-editable.entry.js": () => import("./ui-editable.entry-U3VR3XPT.js"),
22
- "./ui-floating-action-button.entry.js": () => import("./ui-floating-action-button.entry-6S3QN3KJ.js"),
23
- "./ui-form-field.entry.js": () => import("./ui-form-field.entry-GQOSMLHT.js"),
24
- "./ui-icon-button.entry.js": () => import("./ui-icon-button.entry-QJXKVDM6.js"),
25
- "./ui-input.entry.js": () => import("./ui-input.entry-UWMQ6JMP.js"),
26
- "./ui-menu-item.entry.js": () => import("./ui-menu-item.entry-NHNZKKJS.js"),
27
- "./ui-menu.entry.js": () => import("./ui-menu.entry-D53RUJND.js"),
28
- "./ui-popover.entry.js": () => import("./ui-popover.entry-7ZSIWCFQ.js"),
29
- "./ui-radio-group.entry.js": () => import("./ui-radio-group.entry-37MSYIH4.js"),
30
- "./ui-radio.entry.js": () => import("./ui-radio.entry-7YGCDHXT.js"),
31
- "./ui-search-result-row.entry.js": () => import("./ui-search-result-row.entry-6FCCLGAS.js"),
32
- "./ui-search-shell.entry.js": () => import("./ui-search-shell.entry-HSBEXPER.js"),
33
- "./ui-select.entry.js": () => import("./ui-select.entry-GIDIAYRD.js"),
34
- "./ui-switch.entry.js": () => import("./ui-switch.entry-MYAL6XPC.js"),
35
- "./ui-tabs.entry.js": () => import("./ui-tabs.entry-R4TEXQSD.js"),
36
- "./ui-textarea.entry.js": () => import("./ui-textarea.entry-FW32JNDV.js"),
37
- "./ui-toast-region.entry.js": () => import("./ui-toast-region.entry-BTMFPKZF.js"),
38
- "./ui-top-bar.entry.js": () => import("./ui-top-bar.entry-5DQGJF3B.js"),
39
- "./ui-tree-item.entry.js": () => import("./ui-tree-item.entry-ADT7DSOS.js"),
40
- "./ui-tree.entry.js": () => import("./ui-tree.entry-7PYQ5RIN.js")
41
- });
42
-
43
- // dist/esm/index-8BGiMGQ0.js
44
- var NAMESPACE = "looma";
45
- var BUILD = (
46
- /* looma */
47
- { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true }
48
- );
49
- function getPropertyDescriptor(obj, memberName, getOnly) {
50
- const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
51
- while (obj && obj !== stopAt) {
52
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
53
- if (desc && (!getOnly || desc.get)) return desc;
54
- obj = Object.getPrototypeOf(obj);
55
- }
56
- return void 0;
57
- }
58
- var reWireGetterSetter = (instance, hostRef) => {
59
- var _a;
60
- const cmpMeta = hostRef.$cmpMeta$;
61
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
62
- members.map(([memberName, [memberFlags]]) => {
63
- if (memberFlags & 31 || memberFlags & 32) {
64
- const ogValue = instance[memberName];
65
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
66
- if (ogDescriptor) {
67
- Object.defineProperty(instance, memberName, {
68
- get() {
69
- return ogDescriptor.get.call(this);
70
- },
71
- set(newValue) {
72
- ogDescriptor.set.call(this, newValue);
73
- },
74
- configurable: true,
75
- enumerable: true
76
- });
77
- }
78
- if (hostRef.$instanceValues$.has(memberName)) {
79
- instance[memberName] = hostRef.$instanceValues$.get(memberName);
80
- } else if (ogValue !== void 0) {
81
- instance[memberName] = ogValue;
82
- }
83
- }
84
- });
85
- };
86
- var getHostRef = (ref) => {
87
- if (ref.__stencil__getHostRef) {
88
- return ref.__stencil__getHostRef();
89
- }
90
- return void 0;
91
- };
92
- var registerInstance = (lazyInstance, hostRef) => {
93
- if (!hostRef) return;
94
- lazyInstance.__stencil__getHostRef = () => hostRef;
95
- hostRef.$lazyInstance$ = lazyInstance;
96
- if (hostRef.$cmpMeta$.$flags$ & 512 && BUILD.state) {
97
- reWireGetterSetter(lazyInstance, hostRef);
98
- }
99
- };
100
- var registerHost = (hostElement, cmpMeta) => {
101
- const hostRef = {
102
- $flags$: 0,
103
- $hostElement$: hostElement,
104
- $cmpMeta$: cmpMeta,
105
- $instanceValues$: /* @__PURE__ */ new Map(),
106
- $serializerValues$: /* @__PURE__ */ new Map()
107
- };
108
- {
109
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
110
- }
111
- {
112
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
113
- hostElement["s-p"] = [];
114
- hostElement["s-rc"] = [];
115
- }
116
- {
117
- hostRef.$fetchedCbList$ = [];
118
- }
119
- const ref = hostRef;
120
- hostElement.__stencil__getHostRef = () => ref;
121
- return ref;
122
- };
123
- var isMemberInElement = (elm, memberName) => memberName in elm;
124
- var consoleError = (e, el) => (0, console.error)(e, el);
125
- var cmpModules = /* @__PURE__ */ new Map();
126
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
127
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
128
- const bundleId = cmpMeta.$lazyBundleId$;
129
- if (!bundleId) {
130
- return void 0;
131
- }
132
- const module = cmpModules.get(bundleId);
133
- if (module) {
134
- return module[exportName];
135
- }
136
- return /* @vite-ignore */ /* webpackInclude: /\.entry\.js$/ */ /* webpackExclude: /\.system\.entry\.js$/ */ /* webpackMode: "lazy" */ globImport_entry_js(`./${bundleId}.entry.js${""}`).then(
137
- (importedModule) => {
138
- {
139
- cmpModules.set(bundleId, importedModule);
140
- }
141
- return importedModule[exportName];
142
- },
143
- (e) => {
144
- consoleError(e, hostRef.$hostElement$);
145
- }
146
- );
147
- };
148
- var styles = /* @__PURE__ */ new Map();
149
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
150
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
151
- var win = typeof window !== "undefined" ? window : {};
152
- var plt = {
153
- $flags$: 0,
154
- $resourcesUrl$: "",
155
- jmp: (h2) => h2(),
156
- raf: (h2) => requestAnimationFrame(h2),
157
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
158
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
159
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
160
- };
161
- var promiseResolve = (v) => Promise.resolve(v);
162
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
163
- try {
164
- if (!win.document.adoptedStyleSheets) {
165
- return false;
166
- }
167
- new CSSStyleSheet();
168
- return typeof new CSSStyleSheet().replaceSync === "function";
169
- } catch (e) {
170
- }
171
- return false;
172
- })();
173
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
174
- var queuePending = false;
175
- var queueDomReads = [];
176
- var queueDomWrites = [];
177
- var queueTask = (queue, write) => (cb) => {
178
- queue.push(cb);
179
- if (!queuePending) {
180
- queuePending = true;
181
- if (write && plt.$flags$ & 4) {
182
- nextTick(flush);
183
- } else {
184
- plt.raf(flush);
185
- }
186
- }
187
- };
188
- var consume = (queue) => {
189
- for (let i2 = 0; i2 < queue.length; i2++) {
190
- try {
191
- queue[i2](performance.now());
192
- } catch (e) {
193
- consoleError(e);
194
- }
195
- }
196
- queue.length = 0;
197
- };
198
- var flush = () => {
199
- consume(queueDomReads);
200
- {
201
- consume(queueDomWrites);
202
- if (queuePending = queueDomReads.length > 0) {
203
- plt.raf(flush);
204
- }
205
- }
206
- };
207
- var nextTick = (cb) => promiseResolve().then(cb);
208
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
209
- function createStyleSheetIfNeededAndSupported(styles2) {
210
- return void 0;
211
- }
212
- var globalStyleSheet;
213
- function createShadowRoot(cmpMeta) {
214
- var _a;
215
- const opts = { mode: "open" };
216
- const shadowRoot = this.attachShadow(opts);
217
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
218
- if (globalStyleSheet) {
219
- if (supportsMutableAdoptedStyleSheets) {
220
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
221
- } else {
222
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
223
- }
224
- }
225
- }
226
- var createTime = (fnName, tagName = "") => {
227
- {
228
- return () => {
229
- return;
230
- };
231
- }
232
- };
233
- var uniqueTime = (key, measureText) => {
234
- {
235
- return () => {
236
- return;
237
- };
238
- }
239
- };
240
- function queryNonceMetaTagContent(doc) {
241
- var _a, _b, _c;
242
- 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;
243
- }
244
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
245
- var registerStyle = (scopeId2, cssText, allowCS) => {
246
- let style = styles.get(scopeId2);
247
- if (supportsConstructableStylesheets && allowCS) {
248
- style = style || new CSSStyleSheet();
249
- if (typeof style === "string") {
250
- style = cssText;
251
- } else {
252
- style.replaceSync(cssText);
253
- }
254
- } else {
255
- style = cssText;
256
- }
257
- styles.set(scopeId2, style);
258
- };
259
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
260
- var _a, _b, _c;
261
- const scopeId2 = getScopeId(cmpMeta);
262
- const style = styles.get(scopeId2);
263
- if (!win.document) {
264
- return scopeId2;
265
- }
266
- styleContainerNode = styleContainerNode.nodeType === 11 ? styleContainerNode : win.document;
267
- if (style) {
268
- if (typeof style === "string") {
269
- styleContainerNode = styleContainerNode.head || styleContainerNode;
270
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
271
- let styleElm;
272
- if (!appliedStyles) {
273
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
274
- }
275
- if (!appliedStyles.has(scopeId2)) {
276
- styleElm = win.document.createElement("style");
277
- styleElm.textContent = style;
278
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
279
- if (nonce != null) {
280
- styleElm.setAttribute("nonce", nonce);
281
- }
282
- if (!(cmpMeta.$flags$ & 1)) {
283
- if (styleContainerNode.nodeName === "HEAD") {
284
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
285
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
286
- styleContainerNode.insertBefore(
287
- styleElm,
288
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
289
- );
290
- } else if ("host" in styleContainerNode) {
291
- if (supportsConstructableStylesheets) {
292
- const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
293
- const stylesheet = new currentWindow.CSSStyleSheet();
294
- stylesheet.replaceSync(style);
295
- if (supportsMutableAdoptedStyleSheets) {
296
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
297
- } else {
298
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
299
- }
300
- } else {
301
- const existingStyleContainer = styleContainerNode.querySelector("style");
302
- if (existingStyleContainer && true) {
303
- existingStyleContainer.textContent = style + existingStyleContainer.textContent;
304
- } else {
305
- styleContainerNode.prepend(styleElm);
306
- }
307
- }
308
- } else {
309
- styleContainerNode.append(styleElm);
310
- }
311
- }
312
- if (cmpMeta.$flags$ & 1) {
313
- styleContainerNode.insertBefore(styleElm, null);
314
- }
315
- if (cmpMeta.$flags$ & 4) {
316
- styleElm.textContent += SLOT_FB_CSS;
317
- }
318
- if (appliedStyles) {
319
- appliedStyles.add(scopeId2);
320
- }
321
- }
322
- } else {
323
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
324
- if (!appliedStyles) {
325
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
326
- }
327
- if (!appliedStyles.has(scopeId2)) {
328
- const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
329
- let stylesheet;
330
- if (style.constructor === currentWindow.CSSStyleSheet) {
331
- stylesheet = style;
332
- } else {
333
- stylesheet = new currentWindow.CSSStyleSheet();
334
- for (let i2 = 0; i2 < style.cssRules.length; i2++) {
335
- stylesheet.insertRule(style.cssRules[i2].cssText, i2);
336
- }
337
- }
338
- if (supportsMutableAdoptedStyleSheets) {
339
- styleContainerNode.adoptedStyleSheets.push(stylesheet);
340
- } else {
341
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
342
- }
343
- appliedStyles.add(scopeId2);
344
- }
345
- }
346
- }
347
- return scopeId2;
348
- };
349
- var attachStyles = (hostRef) => {
350
- const cmpMeta = hostRef.$cmpMeta$;
351
- const elm = hostRef.$hostElement$;
352
- const flags = cmpMeta.$flags$;
353
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
354
- const scopeId2 = addStyle(
355
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
356
- cmpMeta
357
- );
358
- if (flags & 10) {
359
- elm["s-sc"] = scopeId2;
360
- elm.classList.add(scopeId2 + "-h");
361
- }
362
- endAttachStyles();
363
- };
364
- var getScopeId = (cmp, mode) => "sc-" + cmp.$tagName$;
365
- var isComplexType = (o) => {
366
- o = typeof o;
367
- return o === "object" || o === "function";
368
- };
369
- var h = (nodeName, vnodeData, ...children) => {
370
- if (typeof nodeName === "string") {
371
- nodeName = transformTag(nodeName);
372
- }
373
- let child = null;
374
- let key = null;
375
- let simple = false;
376
- let lastSimple = false;
377
- const vNodeChildren = [];
378
- const walk = (c) => {
379
- for (let i2 = 0; i2 < c.length; i2++) {
380
- child = c[i2];
381
- if (Array.isArray(child)) {
382
- walk(child);
383
- } else if (child != null && typeof child !== "boolean") {
384
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
385
- child = String(child);
386
- }
387
- if (simple && lastSimple) {
388
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
389
- } else {
390
- vNodeChildren.push(simple ? newVNode(null, child) : child);
391
- }
392
- lastSimple = simple;
393
- }
394
- }
395
- };
396
- walk(children);
397
- if (vnodeData) {
398
- if (vnodeData.key) {
399
- key = vnodeData.key;
400
- }
401
- {
402
- const classData = vnodeData.className || vnodeData.class;
403
- if (classData) {
404
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
405
- }
406
- }
407
- }
408
- const vnode = newVNode(nodeName, null);
409
- vnode.$attrs$ = vnodeData;
410
- if (vNodeChildren.length > 0) {
411
- vnode.$children$ = vNodeChildren;
412
- }
413
- {
414
- vnode.$key$ = key;
415
- }
416
- return vnode;
417
- };
418
- var newVNode = (tag, text) => {
419
- const vnode = {
420
- $flags$: 0,
421
- $tag$: tag,
422
- // Normalize undefined to null to prevent rendering "undefined" as text
423
- $text$: text != null ? text : null,
424
- $elm$: null,
425
- $children$: null
426
- };
427
- {
428
- vnode.$attrs$ = null;
429
- }
430
- {
431
- vnode.$key$ = null;
432
- }
433
- return vnode;
434
- };
435
- var Host = {};
436
- var isHost = (node) => node && node.$tag$ === Host;
437
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
438
- if (propValue != null && !isComplexType(propValue)) {
439
- if (propType & 4) {
440
- {
441
- return propValue === "false" ? false : propValue === "" || !!propValue;
442
- }
443
- }
444
- if (propType & 2) {
445
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
446
- }
447
- if (propType & 1) {
448
- return String(propValue);
449
- }
450
- return propValue;
451
- }
452
- return propValue;
453
- };
454
- var getElement = (ref) => {
455
- var _a;
456
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$;
457
- };
458
- var createEvent = (ref, name, flags) => {
459
- const elm = getElement(ref);
460
- return {
461
- emit: (detail) => {
462
- return emitEvent(elm, name, {
463
- bubbles: true,
464
- composed: true,
465
- cancelable: true,
466
- detail
467
- });
468
- }
469
- };
470
- };
471
- var emitEvent = (elm, name, opts) => {
472
- const ev = plt.ce(name, opts);
473
- elm.dispatchEvent(ev);
474
- return ev;
475
- };
476
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
477
- if (oldValue === newValue) {
478
- return;
479
- }
480
- let isProp = isMemberInElement(elm, memberName);
481
- let ln = memberName.toLowerCase();
482
- if (memberName === "class") {
483
- const classList = elm.classList;
484
- const oldClasses = parseClassList(oldValue);
485
- let newClasses = parseClassList(newValue);
486
- {
487
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
488
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
489
- }
490
- } else if (memberName === "style") {
491
- {
492
- for (const prop in oldValue) {
493
- if (!newValue || newValue[prop] == null) {
494
- if (prop.includes("-")) {
495
- elm.style.removeProperty(prop);
496
- } else {
497
- elm.style[prop] = "";
498
- }
499
- }
500
- }
501
- }
502
- for (const prop in newValue) {
503
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
504
- if (prop.includes("-")) {
505
- elm.style.setProperty(prop, newValue[prop]);
506
- } else {
507
- elm.style[prop] = newValue[prop];
508
- }
509
- }
510
- }
511
- } else if (memberName === "key") ;
512
- else if (memberName === "ref") {
513
- if (newValue) {
514
- queueRefAttachment(newValue, elm);
515
- }
516
- } else if (!isProp && memberName[0] === "o" && memberName[1] === "n") {
517
- if (memberName[2] === "-") {
518
- memberName = memberName.slice(3);
519
- } else if (isMemberInElement(win, ln)) {
520
- memberName = ln.slice(2);
521
- } else {
522
- memberName = ln[2] + memberName.slice(3);
523
- }
524
- if (oldValue || newValue) {
525
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
526
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
527
- if (oldValue) {
528
- plt.rel(elm, memberName, oldValue, capture);
529
- }
530
- if (newValue) {
531
- plt.ael(elm, memberName, newValue, capture);
532
- }
533
- }
534
- } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
535
- const propName = memberName.slice(5);
536
- let attrName;
537
- {
538
- const hostRef = getHostRef(elm);
539
- if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
540
- const memberMeta = hostRef.$cmpMeta$.$members$[propName];
541
- if (memberMeta && memberMeta[1]) {
542
- attrName = memberMeta[1];
543
- }
544
- }
545
- }
546
- if (!attrName) {
547
- attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
548
- }
549
- if (newValue == null || newValue === false) {
550
- if (newValue !== false || elm.getAttribute(attrName) === "") {
551
- elm.removeAttribute(attrName);
552
- }
553
- } else {
554
- elm.setAttribute(attrName, newValue === true ? "" : newValue);
555
- }
556
- return;
557
- } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
558
- const propName = memberName.slice(5);
559
- try {
560
- elm[propName] = newValue;
561
- } catch (e) {
562
- }
563
- return;
564
- } else {
565
- const isComplex = isComplexType(newValue);
566
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
567
- try {
568
- if (!elm.tagName.includes("-")) {
569
- const n = newValue == null ? "" : newValue;
570
- if (memberName === "list") {
571
- isProp = false;
572
- } else if (oldValue == null || elm[memberName] !== n) {
573
- if (typeof elm.__lookupSetter__(memberName) === "function") {
574
- elm[memberName] = n;
575
- } else {
576
- elm.setAttribute(memberName, n);
577
- }
578
- }
579
- } else if (elm[memberName] !== newValue) {
580
- elm[memberName] = newValue;
581
- }
582
- } catch (e) {
583
- }
584
- }
585
- if (newValue == null || newValue === false) {
586
- if (newValue !== false || elm.getAttribute(memberName) === "") {
587
- {
588
- elm.removeAttribute(memberName);
589
- }
590
- }
591
- } else if ((!isProp || flags & 4 || isSvg) && !isComplex && elm.nodeType === 1) {
592
- newValue = newValue === true ? "" : newValue;
593
- {
594
- elm.setAttribute(memberName, newValue);
595
- }
596
- }
597
- }
598
- };
599
- var parseClassListRegex = /\s/;
600
- var parseClassList = (value) => {
601
- if (typeof value === "object" && value && "baseVal" in value) {
602
- value = value.baseVal;
603
- }
604
- if (!value || typeof value !== "string") {
605
- return [];
606
- }
607
- return value.split(parseClassListRegex);
608
- };
609
- var CAPTURE_EVENT_SUFFIX = "Capture";
610
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
611
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
612
- const elm = newVnode.$elm$.nodeType === 11 && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
613
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
614
- const newVnodeAttrs = newVnode.$attrs$ || {};
615
- {
616
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
617
- if (!(memberName in newVnodeAttrs)) {
618
- setAccessor(
619
- elm,
620
- memberName,
621
- oldVnodeAttrs[memberName],
622
- void 0,
623
- isSvgMode2,
624
- newVnode.$flags$
625
- );
626
- }
627
- }
628
- }
629
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
630
- setAccessor(
631
- elm,
632
- memberName,
633
- oldVnodeAttrs[memberName],
634
- newVnodeAttrs[memberName],
635
- isSvgMode2,
636
- newVnode.$flags$
637
- );
638
- }
639
- };
640
- function sortedAttrNames(attrNames) {
641
- return attrNames.includes("ref") ? (
642
- // we need to sort these to ensure that `'ref'` is the last attr
643
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
644
- ) : (
645
- // no need to sort, return the original array
646
- attrNames
647
- );
648
- }
649
- var hostTagName;
650
- var useNativeShadowDom = false;
651
- var isSvgMode = false;
652
- var refCallbacksToRemove = [];
653
- var refCallbacksToAttach = [];
654
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
655
- const newVNode2 = newParentVNode.$children$[childIndex];
656
- let i2 = 0;
657
- let elm;
658
- let childNode;
659
- if (newVNode2.$text$ != null) {
660
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
661
- } else {
662
- if (!win.document) {
663
- throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
664
- }
665
- elm = newVNode2.$elm$ = win.document.createElement(
666
- newVNode2.$tag$
667
- );
668
- {
669
- updateElement(null, newVNode2, isSvgMode);
670
- }
671
- if (newVNode2.$children$) {
672
- const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
673
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
674
- childNode = createElm(oldParentVNode, newVNode2, i2);
675
- if (childNode) {
676
- appendTarget.appendChild(childNode);
677
- }
678
- }
679
- }
680
- }
681
- elm["s-hn"] = hostTagName;
682
- return elm;
683
- };
684
- var relocateToHostRoot = (parentElm) => {
685
- plt.$flags$ |= 1;
686
- const host = parentElm.closest(hostTagName.toLowerCase());
687
- if (host != null) {
688
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
689
- (ref) => ref["s-cr"]
690
- );
691
- const childNodeArray = Array.from(
692
- parentElm.__childNodes || parentElm.childNodes
693
- );
694
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
695
- if (childNode["s-sh"] != null) {
696
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
697
- childNode["s-sh"] = void 0;
698
- }
699
- }
700
- }
701
- plt.$flags$ &= -2;
702
- };
703
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
704
- let containerElm = parentElm;
705
- let childNode;
706
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
707
- containerElm = containerElm.shadowRoot;
708
- }
709
- if (parentVNode.$tag$ === "template") {
710
- containerElm = containerElm.content;
711
- }
712
- for (; startIdx <= endIdx; ++startIdx) {
713
- if (vnodes[startIdx]) {
714
- childNode = createElm(null, parentVNode, startIdx);
715
- if (childNode) {
716
- vnodes[startIdx].$elm$ = childNode;
717
- insertBefore(containerElm, childNode, before);
718
- }
719
- }
720
- }
721
- };
722
- var removeVnodes = (vnodes, startIdx, endIdx) => {
723
- for (let index = startIdx; index <= endIdx; ++index) {
724
- const vnode = vnodes[index];
725
- if (vnode) {
726
- const elm = vnode.$elm$;
727
- nullifyVNodeRefs(vnode);
728
- if (elm) {
729
- elm.remove();
730
- }
731
- }
732
- }
733
- };
734
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
735
- let oldStartIdx = 0;
736
- let newStartIdx = 0;
737
- let idxInOld = 0;
738
- let i2 = 0;
739
- let oldEndIdx = oldCh.length - 1;
740
- let oldStartVnode = oldCh[0];
741
- let oldEndVnode = oldCh[oldEndIdx];
742
- let newEndIdx = newCh.length - 1;
743
- let newStartVnode = newCh[0];
744
- let newEndVnode = newCh[newEndIdx];
745
- let node;
746
- let elmToMove;
747
- const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
748
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
749
- if (oldStartVnode == null) {
750
- oldStartVnode = oldCh[++oldStartIdx];
751
- } else if (oldEndVnode == null) {
752
- oldEndVnode = oldCh[--oldEndIdx];
753
- } else if (newStartVnode == null) {
754
- newStartVnode = newCh[++newStartIdx];
755
- } else if (newEndVnode == null) {
756
- newEndVnode = newCh[--newEndIdx];
757
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
758
- patch(oldStartVnode, newStartVnode, isInitialRender);
759
- oldStartVnode = oldCh[++oldStartIdx];
760
- newStartVnode = newCh[++newStartIdx];
761
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
762
- patch(oldEndVnode, newEndVnode, isInitialRender);
763
- oldEndVnode = oldCh[--oldEndIdx];
764
- newEndVnode = newCh[--newEndIdx];
765
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
766
- patch(oldStartVnode, newEndVnode, isInitialRender);
767
- insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
768
- oldStartVnode = oldCh[++oldStartIdx];
769
- newEndVnode = newCh[--newEndIdx];
770
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
771
- patch(oldEndVnode, newStartVnode, isInitialRender);
772
- insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
773
- oldEndVnode = oldCh[--oldEndIdx];
774
- newStartVnode = newCh[++newStartIdx];
775
- } else {
776
- idxInOld = -1;
777
- {
778
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
779
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
780
- idxInOld = i2;
781
- break;
782
- }
783
- }
784
- }
785
- if (idxInOld >= 0) {
786
- elmToMove = oldCh[idxInOld];
787
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
788
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
789
- } else {
790
- patch(elmToMove, newStartVnode, isInitialRender);
791
- oldCh[idxInOld] = void 0;
792
- node = elmToMove.$elm$;
793
- }
794
- newStartVnode = newCh[++newStartIdx];
795
- } else {
796
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
797
- newStartVnode = newCh[++newStartIdx];
798
- }
799
- if (node) {
800
- {
801
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
802
- }
803
- }
804
- }
805
- }
806
- if (oldStartIdx > oldEndIdx) {
807
- addVnodes(
808
- parentElm,
809
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
810
- newVNode2,
811
- newCh,
812
- newStartIdx,
813
- newEndIdx
814
- );
815
- } else if (newStartIdx > newEndIdx) {
816
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
817
- }
818
- };
819
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
820
- if (leftVNode.$tag$ === rightVNode.$tag$) {
821
- if (!isInitialRender) {
822
- return leftVNode.$key$ === rightVNode.$key$;
823
- }
824
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
825
- leftVNode.$key$ = rightVNode.$key$;
826
- }
827
- return true;
828
- }
829
- return false;
830
- };
831
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
832
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
833
- const oldChildren = oldVNode.$children$;
834
- const newChildren = newVNode2.$children$;
835
- const tag = newVNode2.$tag$;
836
- const text = newVNode2.$text$;
837
- if (text == null) {
838
- {
839
- if (tag === "slot" && !useNativeShadowDom) {
840
- if (oldVNode.$name$ !== newVNode2.$name$) {
841
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
842
- relocateToHostRoot(newVNode2.$elm$.parentElement);
843
- }
844
- }
845
- updateElement(oldVNode, newVNode2, isSvgMode);
846
- }
847
- if (oldChildren !== null && newChildren !== null) {
848
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
849
- } else if (newChildren !== null) {
850
- if (oldVNode.$text$ !== null) {
851
- elm.textContent = "";
852
- }
853
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
854
- } else if (
855
- // don't do this on initial render as it can cause non-hydrated content to be removed
856
- !isInitialRender && BUILD.updatable && oldChildren !== null
857
- ) {
858
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
859
- } else ;
860
- } else if (oldVNode.$text$ !== text) {
861
- elm.data = text;
862
- }
863
- };
864
- var nullifyVNodeRefs = (vNode) => {
865
- {
866
- if (vNode.$attrs$ && vNode.$attrs$.ref) {
867
- refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
868
- }
869
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
870
- }
871
- };
872
- var queueRefAttachment = (refCallback, elm) => {
873
- {
874
- refCallbacksToAttach.push(() => refCallback(elm));
875
- }
876
- };
877
- var flushQueuedRefCallbacks = () => {
878
- {
879
- refCallbacksToRemove.forEach((cb) => cb());
880
- refCallbacksToRemove.length = 0;
881
- refCallbacksToAttach.forEach((cb) => cb());
882
- refCallbacksToAttach.length = 0;
883
- }
884
- };
885
- var insertBefore = (parent, newNode, reference, isInitialLoad) => {
886
- if (parent.__insertBefore) {
887
- return parent.__insertBefore(newNode, reference);
888
- } else {
889
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
890
- }
891
- };
892
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
893
- const hostElm = hostRef.$hostElement$;
894
- const cmpMeta = hostRef.$cmpMeta$;
895
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
896
- const isHostElement = isHost(renderFnResults);
897
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
898
- hostTagName = hostElm.tagName;
899
- if (cmpMeta.$attrsToReflect$) {
900
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
901
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
902
- {
903
- rootVnode.$attrs$[attribute] = hostElm[propName];
904
- }
905
- });
906
- }
907
- if (isInitialLoad && rootVnode.$attrs$) {
908
- for (const key of Object.keys(rootVnode.$attrs$)) {
909
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
910
- rootVnode.$attrs$[key] = hostElm[key];
911
- }
912
- }
913
- }
914
- rootVnode.$tag$ = null;
915
- rootVnode.$flags$ |= 4;
916
- hostRef.$vnode$ = rootVnode;
917
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm;
918
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1) && !(cmpMeta.$flags$ & 128);
919
- patch(oldVNode, rootVnode, isInitialLoad);
920
- flushQueuedRefCallbacks();
921
- };
922
- var attachToAncestor = (hostRef, ancestorComponent) => {
923
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
924
- const index = ancestorComponent["s-p"].push(
925
- new Promise(
926
- (r) => hostRef.$onRenderResolve$ = () => {
927
- ancestorComponent["s-p"].splice(index - 1, 1);
928
- r();
929
- }
930
- )
931
- );
932
- }
933
- };
934
- var scheduleUpdate = (hostRef, isInitialLoad) => {
935
- {
936
- hostRef.$flags$ |= 16;
937
- }
938
- if (hostRef.$flags$ & 4) {
939
- hostRef.$flags$ |= 512;
940
- return;
941
- }
942
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
943
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
944
- if (isInitialLoad) {
945
- queueMicrotask(() => {
946
- dispatch();
947
- });
948
- return;
949
- }
950
- return writeTask(dispatch);
951
- };
952
- var dispatchHooks = (hostRef, isInitialLoad) => {
953
- const elm = hostRef.$hostElement$;
954
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
955
- const instance = hostRef.$lazyInstance$;
956
- if (!instance) {
957
- throw new Error(
958
- `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`
959
- );
960
- }
961
- let maybePromise;
962
- if (isInitialLoad) {
963
- {
964
- if (hostRef.$fetchedCbList$.length) {
965
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
966
- }
967
- }
968
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
969
- } else {
970
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
971
- }
972
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
973
- endSchedule();
974
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
975
- };
976
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
977
- console.error(err);
978
- fn();
979
- }) : fn();
980
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
981
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
982
- var _a;
983
- const elm = hostRef.$hostElement$;
984
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
985
- const rc = elm["s-rc"];
986
- if (isInitialLoad) {
987
- attachStyles(hostRef);
988
- }
989
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
990
- {
991
- callRender(hostRef, instance, elm, isInitialLoad);
992
- }
993
- if (rc) {
994
- rc.map((cb) => cb());
995
- elm["s-rc"] = void 0;
996
- }
997
- endRender();
998
- endUpdate();
999
- {
1000
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1001
- const postUpdate = () => postUpdateComponent(hostRef);
1002
- if (childrenPromises.length === 0) {
1003
- postUpdate();
1004
- } else {
1005
- Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1006
- hostRef.$flags$ |= 4;
1007
- childrenPromises.length = 0;
1008
- }
1009
- }
1010
- };
1011
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1012
- try {
1013
- instance = instance.render();
1014
- {
1015
- hostRef.$flags$ &= -17;
1016
- }
1017
- {
1018
- hostRef.$flags$ |= 2;
1019
- }
1020
- {
1021
- {
1022
- {
1023
- renderVdom(hostRef, instance, isInitialLoad);
1024
- }
1025
- }
1026
- }
1027
- } catch (e) {
1028
- consoleError(e, hostRef.$hostElement$);
1029
- }
1030
- return null;
1031
- };
1032
- var postUpdateComponent = (hostRef) => {
1033
- const tagName = hostRef.$cmpMeta$.$tagName$;
1034
- const elm = hostRef.$hostElement$;
1035
- const endPostUpdate = createTime("postUpdate", tagName);
1036
- const instance = hostRef.$lazyInstance$;
1037
- const ancestorComponent = hostRef.$ancestorComponent$;
1038
- safeCall(instance, "componentDidRender", void 0, elm);
1039
- if (!(hostRef.$flags$ & 64)) {
1040
- hostRef.$flags$ |= 64;
1041
- {
1042
- addHydratedFlag(elm);
1043
- }
1044
- safeCall(instance, "componentDidLoad", void 0, elm);
1045
- endPostUpdate();
1046
- {
1047
- hostRef.$onReadyResolve$(elm);
1048
- if (!ancestorComponent) {
1049
- appDidLoad();
1050
- }
1051
- }
1052
- } else {
1053
- safeCall(instance, "componentDidUpdate", void 0, elm);
1054
- endPostUpdate();
1055
- }
1056
- {
1057
- hostRef.$onInstanceResolve$(elm);
1058
- }
1059
- {
1060
- if (hostRef.$onRenderResolve$) {
1061
- hostRef.$onRenderResolve$();
1062
- hostRef.$onRenderResolve$ = void 0;
1063
- }
1064
- if (hostRef.$flags$ & 512) {
1065
- nextTick(() => scheduleUpdate(hostRef, false));
1066
- }
1067
- hostRef.$flags$ &= -517;
1068
- }
1069
- };
1070
- var appDidLoad = (who) => {
1071
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1072
- };
1073
- var safeCall = (instance, method, arg, elm) => {
1074
- if (instance && instance[method]) {
1075
- try {
1076
- return instance[method](arg);
1077
- } catch (e) {
1078
- consoleError(e, elm);
1079
- }
1080
- }
1081
- return void 0;
1082
- };
1083
- var addHydratedFlag = (elm) => {
1084
- var _a;
1085
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated");
1086
- };
1087
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1088
- var setValue = (ref, propName, newVal, cmpMeta) => {
1089
- const hostRef = getHostRef(ref);
1090
- if (!hostRef) {
1091
- return;
1092
- }
1093
- if (!hostRef) {
1094
- throw new Error(
1095
- `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).`
1096
- );
1097
- }
1098
- const elm = hostRef.$hostElement$;
1099
- const oldVal = hostRef.$instanceValues$.get(propName);
1100
- const flags = hostRef.$flags$;
1101
- const instance = hostRef.$lazyInstance$;
1102
- newVal = parsePropertyValue(
1103
- newVal,
1104
- cmpMeta.$members$[propName][0]
1105
- );
1106
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1107
- const didValueChange = newVal !== oldVal && !areBothNaN;
1108
- if ((!(flags & 8) || oldVal === void 0) && didValueChange) {
1109
- hostRef.$instanceValues$.set(propName, newVal);
1110
- if (cmpMeta.$watchers$) {
1111
- const watchMethods = cmpMeta.$watchers$[propName];
1112
- if (watchMethods) {
1113
- watchMethods.map((watcher) => {
1114
- try {
1115
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1116
- if (flags & 128 || watcherFlags & 1) {
1117
- if (!instance) {
1118
- hostRef.$fetchedCbList$.push(() => {
1119
- hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1120
- });
1121
- } else {
1122
- instance[watchMethodName](newVal, oldVal, propName);
1123
- }
1124
- }
1125
- } catch (e) {
1126
- consoleError(e, elm);
1127
- }
1128
- });
1129
- }
1130
- }
1131
- if (flags & 2) {
1132
- if (instance.componentShouldUpdate) {
1133
- const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1134
- if (shouldUpdate === false && !(flags & 16)) {
1135
- return;
1136
- }
1137
- }
1138
- if (!(flags & 16)) {
1139
- scheduleUpdate(hostRef, false);
1140
- }
1141
- }
1142
- }
1143
- };
1144
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1145
- var _a, _b;
1146
- const prototype = Cstr.prototype;
1147
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1148
- {
1149
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1150
- cmpMeta.$watchers$ = Cstr.watchers;
1151
- }
1152
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1153
- cmpMeta.$deserializers$ = Cstr.deserializers;
1154
- }
1155
- if (Cstr.serializers && !cmpMeta.$serializers$) {
1156
- cmpMeta.$serializers$ = Cstr.serializers;
1157
- }
1158
- }
1159
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1160
- members.map(([memberName, [memberFlags]]) => {
1161
- if (memberFlags & 31 || flags & 2 && memberFlags & 32) {
1162
- const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1163
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048;
1164
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096;
1165
- if (flags & 1 || !origGetter) {
1166
- Object.defineProperty(prototype, memberName, {
1167
- get() {
1168
- {
1169
- if ((cmpMeta.$members$[memberName][0] & 2048) === 0) {
1170
- return getValue(this, memberName);
1171
- }
1172
- const ref = getHostRef(this);
1173
- const instance = ref ? ref.$lazyInstance$ : prototype;
1174
- if (!instance) return;
1175
- return instance[memberName];
1176
- }
1177
- },
1178
- configurable: true,
1179
- enumerable: true
1180
- });
1181
- }
1182
- Object.defineProperty(prototype, memberName, {
1183
- set(newValue) {
1184
- const ref = getHostRef(this);
1185
- if (!ref) {
1186
- return;
1187
- }
1188
- if (origSetter) {
1189
- const currentValue = memberFlags & 32 ? this[memberName] : ref.$hostElement$[memberName];
1190
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1191
- newValue = ref.$instanceValues$.get(memberName);
1192
- }
1193
- origSetter.apply(this, [
1194
- parsePropertyValue(
1195
- newValue,
1196
- memberFlags
1197
- )
1198
- ]);
1199
- newValue = memberFlags & 32 ? this[memberName] : ref.$hostElement$[memberName];
1200
- setValue(this, memberName, newValue, cmpMeta);
1201
- return;
1202
- }
1203
- {
1204
- if ((flags & 1) === 0 || (cmpMeta.$members$[memberName][0] & 4096) === 0) {
1205
- setValue(this, memberName, newValue, cmpMeta);
1206
- if (flags & 1 && !ref.$lazyInstance$) {
1207
- ref.$fetchedCbList$.push(() => {
1208
- if (cmpMeta.$members$[memberName][0] & 4096 && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1209
- ref.$lazyInstance$[memberName] = newValue;
1210
- }
1211
- });
1212
- }
1213
- return;
1214
- }
1215
- const setterSetVal = () => {
1216
- const currentValue = ref.$lazyInstance$[memberName];
1217
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1218
- ref.$instanceValues$.set(memberName, currentValue);
1219
- }
1220
- ref.$lazyInstance$[memberName] = parsePropertyValue(
1221
- newValue,
1222
- memberFlags
1223
- );
1224
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1225
- };
1226
- if (ref.$lazyInstance$) {
1227
- setterSetVal();
1228
- } else {
1229
- ref.$fetchedCbList$.push(() => {
1230
- setterSetVal();
1231
- });
1232
- }
1233
- }
1234
- }
1235
- });
1236
- } else if (flags & 1 && memberFlags & 64) {
1237
- Object.defineProperty(prototype, memberName, {
1238
- value(...args) {
1239
- var _a2;
1240
- const ref = getHostRef(this);
1241
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1242
- var _a3;
1243
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1244
- });
1245
- }
1246
- });
1247
- }
1248
- });
1249
- if (flags & 1) {
1250
- const attrNameToPropName = /* @__PURE__ */ new Map();
1251
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1252
- plt.jmp(() => {
1253
- var _a2;
1254
- const propName = attrNameToPropName.get(attrName);
1255
- const hostRef = getHostRef(this);
1256
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1257
- newValue = this[propName];
1258
- delete this[propName];
1259
- }
1260
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1261
- this[propName] == newValue) {
1262
- return;
1263
- } else if (propName == null) {
1264
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1265
- if (hostRef && flags2 && !(flags2 & 8) && newValue !== oldValue) {
1266
- const instance = hostRef.$lazyInstance$;
1267
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1268
- entry == null ? void 0 : entry.forEach((watcher) => {
1269
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1270
- if (instance[watchMethodName] != null && (flags2 & 128 || watcherFlags & 1)) {
1271
- instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1272
- }
1273
- });
1274
- }
1275
- return;
1276
- }
1277
- const propFlags = members.find(([m]) => m === propName);
1278
- if (propFlags && propFlags[1][0] & 4) {
1279
- newValue = newValue === null || newValue === "false" ? false : true;
1280
- }
1281
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1282
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1283
- this[propName] = newValue;
1284
- }
1285
- });
1286
- };
1287
- Cstr.observedAttributes = Array.from(
1288
- /* @__PURE__ */ new Set([
1289
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1290
- ...members.filter(
1291
- ([_, m]) => m[0] & 31
1292
- /* HasAttribute */
1293
- ).map(([propName, m]) => {
1294
- var _a2;
1295
- const attrName = m[1] || propName;
1296
- attrNameToPropName.set(attrName, propName);
1297
- if (m[0] & 512) {
1298
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1299
- }
1300
- return attrName;
1301
- })
1302
- ])
1303
- );
1304
- }
1305
- }
1306
- return Cstr;
1307
- };
1308
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1309
- let Cstr;
1310
- try {
1311
- if ((hostRef.$flags$ & 32) === 0) {
1312
- hostRef.$flags$ |= 32;
1313
- const bundleId = cmpMeta.$lazyBundleId$;
1314
- if (bundleId) {
1315
- const CstrImport = loadModule(cmpMeta, hostRef);
1316
- if (CstrImport && "then" in CstrImport) {
1317
- const endLoad = uniqueTime();
1318
- Cstr = await CstrImport;
1319
- endLoad();
1320
- } else {
1321
- Cstr = CstrImport;
1322
- }
1323
- if (!Cstr) {
1324
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1325
- }
1326
- if (!Cstr.isProxied) {
1327
- {
1328
- cmpMeta.$watchers$ = Cstr.watchers;
1329
- cmpMeta.$serializers$ = Cstr.serializers;
1330
- cmpMeta.$deserializers$ = Cstr.deserializers;
1331
- }
1332
- proxyComponent(
1333
- Cstr,
1334
- cmpMeta,
1335
- 2
1336
- /* proxyState */
1337
- );
1338
- Cstr.isProxied = true;
1339
- }
1340
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1341
- {
1342
- hostRef.$flags$ |= 8;
1343
- }
1344
- try {
1345
- new Cstr(hostRef);
1346
- } catch (e) {
1347
- consoleError(e, elm);
1348
- }
1349
- {
1350
- hostRef.$flags$ &= -9;
1351
- }
1352
- {
1353
- hostRef.$flags$ |= 128;
1354
- }
1355
- endNewInstance();
1356
- {
1357
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1358
- }
1359
- } else {
1360
- Cstr = elm.constructor;
1361
- const cmpTag = elm.localName;
1362
- customElements.whenDefined(cmpTag).then(
1363
- () => hostRef.$flags$ |= 128
1364
- /* isWatchReady */
1365
- );
1366
- }
1367
- if (Cstr && Cstr.style) {
1368
- let style;
1369
- if (typeof Cstr.style === "string") {
1370
- style = Cstr.style;
1371
- }
1372
- const scopeId2 = getScopeId(cmpMeta);
1373
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1374
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1375
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1));
1376
- endRegisterStyles();
1377
- }
1378
- }
1379
- }
1380
- const ancestorComponent = hostRef.$ancestorComponent$;
1381
- const schedule = () => scheduleUpdate(hostRef, true);
1382
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1383
- ancestorComponent["s-rc"].push(schedule);
1384
- } else {
1385
- schedule();
1386
- }
1387
- } catch (e) {
1388
- consoleError(e, elm);
1389
- if (hostRef.$onRenderResolve$) {
1390
- hostRef.$onRenderResolve$();
1391
- hostRef.$onRenderResolve$ = void 0;
1392
- }
1393
- if (hostRef.$onReadyResolve$) {
1394
- hostRef.$onReadyResolve$(elm);
1395
- }
1396
- }
1397
- };
1398
- var fireConnectedCallback = (instance, elm) => {
1399
- {
1400
- safeCall(instance, "connectedCallback", void 0, elm);
1401
- }
1402
- };
1403
- var connectedCallback = (elm) => {
1404
- if ((plt.$flags$ & 1) === 0) {
1405
- const hostRef = getHostRef(elm);
1406
- if (!hostRef) {
1407
- return;
1408
- }
1409
- const cmpMeta = hostRef.$cmpMeta$;
1410
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1411
- if (!(hostRef.$flags$ & 1)) {
1412
- hostRef.$flags$ |= 1;
1413
- {
1414
- let ancestorComponent = elm;
1415
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1416
- if (ancestorComponent["s-p"]) {
1417
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1418
- break;
1419
- }
1420
- }
1421
- }
1422
- if (cmpMeta.$members$) {
1423
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1424
- if (memberFlags & 31 && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1425
- const value = elm[memberName];
1426
- delete elm[memberName];
1427
- elm[memberName] = value;
1428
- }
1429
- });
1430
- }
1431
- {
1432
- initializeComponent(elm, hostRef, cmpMeta);
1433
- }
1434
- } else {
1435
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1436
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1437
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1438
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1439
- }
1440
- }
1441
- endConnected();
1442
- }
1443
- };
1444
- var disconnectInstance = (instance, elm) => {
1445
- {
1446
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1447
- }
1448
- };
1449
- var disconnectedCallback = async (elm) => {
1450
- if ((plt.$flags$ & 1) === 0) {
1451
- const hostRef = getHostRef(elm);
1452
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1453
- disconnectInstance(hostRef.$lazyInstance$, elm);
1454
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1455
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1456
- }
1457
- }
1458
- if (rootAppliedStyles.has(elm)) {
1459
- rootAppliedStyles.delete(elm);
1460
- }
1461
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1462
- rootAppliedStyles.delete(elm.shadowRoot);
1463
- }
1464
- };
1465
- var bootstrapLazy = (lazyBundles, options = {}) => {
1466
- var _a;
1467
- if (!win.document) {
1468
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1469
- return;
1470
- }
1471
- const endBootstrap = createTime();
1472
- const cmpTags = [];
1473
- const exclude = options.exclude || [];
1474
- const customElements2 = win.customElements;
1475
- const head = win.document.head;
1476
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1477
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1478
- const deferredConnectedCallbacks = [];
1479
- let appLoadFallback;
1480
- let isBootstrapping = true;
1481
- Object.assign(plt, options);
1482
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1483
- lazyBundles.map((lazyBundle) => {
1484
- lazyBundle[1].map((compactMeta) => {
1485
- var _a2, _b, _c;
1486
- const cmpMeta = {
1487
- $flags$: compactMeta[0],
1488
- $tagName$: compactMeta[1],
1489
- $members$: compactMeta[2],
1490
- $listeners$: compactMeta[3]
1491
- };
1492
- {
1493
- cmpMeta.$members$ = compactMeta[2];
1494
- }
1495
- {
1496
- cmpMeta.$attrsToReflect$ = [];
1497
- }
1498
- {
1499
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1500
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1501
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1502
- }
1503
- const tagName = transformTag(cmpMeta.$tagName$);
1504
- const HostElement = class extends HTMLElement {
1505
- ["s-p"];
1506
- ["s-rc"];
1507
- hasRegisteredEventListeners = false;
1508
- // StencilLazyHost
1509
- constructor(self) {
1510
- super(self);
1511
- self = this;
1512
- registerHost(self, cmpMeta);
1513
- if (cmpMeta.$flags$ & 1) {
1514
- {
1515
- if (!self.shadowRoot) {
1516
- createShadowRoot.call(self, cmpMeta);
1517
- } else {
1518
- if (self.shadowRoot.mode !== "open") {
1519
- throw new Error(
1520
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1521
- );
1522
- }
1523
- }
1524
- }
1525
- }
1526
- }
1527
- connectedCallback() {
1528
- const hostRef = getHostRef(this);
1529
- if (!hostRef) {
1530
- return;
1531
- }
1532
- if (!this.hasRegisteredEventListeners) {
1533
- this.hasRegisteredEventListeners = true;
1534
- }
1535
- if (appLoadFallback) {
1536
- clearTimeout(appLoadFallback);
1537
- appLoadFallback = null;
1538
- }
1539
- if (isBootstrapping) {
1540
- deferredConnectedCallbacks.push(this);
1541
- } else {
1542
- plt.jmp(() => connectedCallback(this));
1543
- }
1544
- }
1545
- disconnectedCallback() {
1546
- plt.jmp(() => disconnectedCallback(this));
1547
- plt.raf(() => {
1548
- var _a3;
1549
- const hostRef = getHostRef(this);
1550
- if (!hostRef) {
1551
- return;
1552
- }
1553
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1554
- if (i2 > -1) {
1555
- deferredConnectedCallbacks.splice(i2, 1);
1556
- }
1557
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1558
- delete hostRef.$vnode$.$elm$;
1559
- }
1560
- });
1561
- }
1562
- componentOnReady() {
1563
- var _a3;
1564
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1565
- }
1566
- };
1567
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1568
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1569
- cmpTags.push(tagName);
1570
- customElements2.define(
1571
- tagName,
1572
- proxyComponent(
1573
- HostElement,
1574
- cmpMeta,
1575
- 1
1576
- /* isElementConstructor */
1577
- )
1578
- );
1579
- }
1580
- });
1581
- });
1582
- if (cmpTags.length > 0) {
1583
- {
1584
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1585
- }
1586
- if (dataStyles.innerHTML.length) {
1587
- dataStyles.setAttribute("data-styles", "");
1588
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1589
- if (nonce != null) {
1590
- dataStyles.setAttribute("nonce", nonce);
1591
- }
1592
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1593
- }
1594
- }
1595
- isBootstrapping = false;
1596
- if (deferredConnectedCallbacks.length) {
1597
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1598
- } else {
1599
- {
1600
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1601
- }
1602
- }
1603
- endBootstrap();
1604
- };
1605
- function transformTag(tag) {
1606
- return tag;
1607
- }
1608
-
1609
- export {
1610
- registerInstance,
1611
- h,
1612
- Host,
1613
- getElement,
1614
- createEvent,
1615
- bootstrapLazy
1616
- };
1617
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/