@ecopages/radiant 0.3.0-alpha.4 → 0.3.0-alpha.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 (453) hide show
  1. package/README.md +71 -59
  2. package/dist/LICENSE +21 -0
  3. package/dist/client/hydrator.d.ts +1 -1
  4. package/dist/client/hydrator.js +2 -2
  5. package/dist/client/hydrator.js.map +5 -3
  6. package/dist/client/install-hydrator.js +2 -2
  7. package/dist/client/install-hydrator.js.map +5 -3
  8. package/dist/context/context-consumer-bootstrap.d.ts +7 -6
  9. package/dist/context/context-consumer-bootstrap.js +2 -2
  10. package/dist/context/context-consumer-bootstrap.js.map +8 -3
  11. package/dist/context/context-consumer-runtime.d.ts +21 -8
  12. package/dist/context/context-consumer-runtime.js +2 -2
  13. package/dist/context/context-consumer-runtime.js.map +6 -3
  14. package/dist/context/context-host.d.ts +25 -0
  15. package/dist/context/context-host.js +3 -0
  16. package/dist/context/context-host.js.map +10 -0
  17. package/dist/context/context-provider.d.ts +10 -6
  18. package/dist/context/context-provider.js +2 -2
  19. package/dist/context/context-provider.js.map +9 -3
  20. package/dist/context/context-ssr-bridge.js +2 -2
  21. package/dist/context/context-ssr-bridge.js.map +4 -3
  22. package/dist/context/create-context.js +2 -2
  23. package/dist/context/create-context.js.map +4 -3
  24. package/dist/context/decorators/consume-context.d.ts +5 -2
  25. package/dist/context/decorators/consume-context.js +2 -2
  26. package/dist/context/decorators/consume-context.js.map +13 -3
  27. package/dist/context/decorators/context-selection-delivery.d.ts +1 -1
  28. package/dist/context/decorators/context-selection-delivery.js +2 -2
  29. package/dist/context/decorators/context-selection-delivery.js.map +5 -3
  30. package/dist/context/decorators/context-selector.d.ts +6 -6
  31. package/dist/context/decorators/context-selector.js +2 -2
  32. package/dist/context/decorators/context-selector.js.map +15 -3
  33. package/dist/context/decorators/legacy/consume-context.d.ts +2 -2
  34. package/dist/context/decorators/legacy/consume-context.js +2 -2
  35. package/dist/context/decorators/legacy/consume-context.js.map +10 -3
  36. package/dist/context/decorators/legacy/context-selector-field.d.ts +2 -2
  37. package/dist/context/decorators/legacy/context-selector-field.js +2 -2
  38. package/dist/context/decorators/legacy/context-selector-field.js.map +11 -3
  39. package/dist/context/decorators/legacy/context-selector.d.ts +2 -2
  40. package/dist/context/decorators/legacy/context-selector.js +2 -2
  41. package/dist/context/decorators/legacy/context-selector.js.map +11 -3
  42. package/dist/context/decorators/legacy/provide-context.d.ts +2 -2
  43. package/dist/context/decorators/legacy/provide-context.js +2 -2
  44. package/dist/context/decorators/legacy/provide-context.js.map +11 -3
  45. package/dist/context/decorators/on-context-update.d.ts +5 -5
  46. package/dist/context/decorators/on-context-update.js +2 -2
  47. package/dist/context/decorators/on-context-update.js.map +14 -3
  48. package/dist/context/decorators/provide-context.d.ts +5 -2
  49. package/dist/context/decorators/provide-context.js +2 -2
  50. package/dist/context/decorators/provide-context.js.map +14 -3
  51. package/dist/context/decorators/standard/consume-context.d.ts +2 -2
  52. package/dist/context/decorators/standard/consume-context.js +2 -2
  53. package/dist/context/decorators/standard/consume-context.js.map +9 -3
  54. package/dist/context/decorators/standard/context-selector-field.d.ts +2 -2
  55. package/dist/context/decorators/standard/context-selector-field.js +2 -2
  56. package/dist/context/decorators/standard/context-selector-field.js.map +10 -3
  57. package/dist/context/decorators/standard/context-selector.d.ts +2 -3
  58. package/dist/context/decorators/standard/context-selector.js +2 -2
  59. package/dist/context/decorators/standard/context-selector.js.map +10 -3
  60. package/dist/context/decorators/standard/provide-context.d.ts +2 -2
  61. package/dist/context/decorators/standard/provide-context.js +2 -2
  62. package/dist/context/decorators/standard/provide-context.js.map +10 -3
  63. package/dist/context/events.d.ts +18 -11
  64. package/dist/context/events.js +2 -2
  65. package/dist/context/events.js.map +4 -3
  66. package/dist/context/hydration-script.js +2 -2
  67. package/dist/context/hydration-script.js.map +6 -3
  68. package/dist/context/index.d.ts +8 -0
  69. package/dist/context/index.js +3 -0
  70. package/dist/context/index.js.map +35 -0
  71. package/dist/controller-registry.d.ts +28 -0
  72. package/dist/controller-registry.js +3 -0
  73. package/dist/controller-registry.js.map +11 -0
  74. package/dist/core/controller-metadata.d.ts +3 -0
  75. package/dist/core/controller-metadata.js +3 -0
  76. package/dist/core/controller-metadata.js.map +10 -0
  77. package/dist/core/custom-element-metadata.d.ts +11 -0
  78. package/dist/core/custom-element-metadata.js +2 -2
  79. package/dist/core/custom-element-metadata.js.map +4 -3
  80. package/dist/core/hydration-codec.d.ts +8 -1
  81. package/dist/core/hydration-codec.js +2 -2
  82. package/dist/core/hydration-codec.js.map +5 -3
  83. package/dist/core/radiant-component-ssr-registry.d.ts +13 -13
  84. package/dist/core/radiant-component-ssr-registry.js +2 -2
  85. package/dist/core/radiant-component-ssr-registry.js.map +4 -3
  86. package/dist/core/radiant-component-ssr.d.ts +3 -3
  87. package/dist/core/radiant-component-ssr.js +2 -2
  88. package/dist/core/radiant-component-ssr.js.map +8 -3
  89. package/dist/core/radiant-controller.d.ts +127 -0
  90. package/dist/core/radiant-controller.js +3 -0
  91. package/dist/core/radiant-controller.js.map +13 -0
  92. package/dist/core/radiant-element.d.ts +43 -41
  93. package/dist/core/radiant-element.js +2 -2
  94. package/dist/core/radiant-element.js.map +13 -3
  95. package/dist/core/radiant-hydrator-state.d.ts +1 -1
  96. package/dist/core/radiant-hydrator-state.js +2 -2
  97. package/dist/core/radiant-hydrator-state.js.map +4 -3
  98. package/dist/core/reactive-host.d.ts +137 -0
  99. package/dist/core/reactive-host.js +3 -0
  100. package/dist/core/reactive-host.js.map +10 -0
  101. package/dist/core/reactive-jsx-value.js +2 -2
  102. package/dist/core/reactive-jsx-value.js.map +4 -3
  103. package/dist/core/reactive-prop-metadata.js +2 -2
  104. package/dist/core/reactive-prop-metadata.js.map +4 -3
  105. package/dist/core/slot-projection-runtime.js +2 -2
  106. package/dist/core/slot-projection-runtime.js.map +6 -3
  107. package/dist/core/ssr-preparation.js +2 -2
  108. package/dist/core/ssr-preparation.js.map +4 -3
  109. package/dist/decorators/attr.d.ts +6 -0
  110. package/dist/decorators/attr.js +3 -0
  111. package/dist/decorators/attr.js.map +16 -0
  112. package/dist/decorators/bound.d.ts +4 -2
  113. package/dist/decorators/bound.js +2 -2
  114. package/dist/decorators/bound.js.map +7 -3
  115. package/dist/decorators/bridge.d.ts +11 -7
  116. package/dist/decorators/bridge.js +2 -2
  117. package/dist/decorators/bridge.js.map +4 -3
  118. package/dist/decorators/controller.d.ts +2 -0
  119. package/dist/decorators/controller.js +3 -0
  120. package/dist/decorators/controller.js.map +12 -0
  121. package/dist/decorators/custom-element.d.ts +4 -2
  122. package/dist/decorators/custom-element.js +2 -2
  123. package/dist/decorators/custom-element.js.map +7 -3
  124. package/dist/decorators/debounce.d.ts +5 -2
  125. package/dist/decorators/debounce.js +2 -2
  126. package/dist/decorators/debounce.js.map +8 -3
  127. package/dist/decorators/event.d.ts +5 -2
  128. package/dist/decorators/event.js +2 -2
  129. package/dist/decorators/event.js.map +10 -3
  130. package/dist/decorators/legacy/attr.d.ts +2 -0
  131. package/dist/decorators/legacy/attr.js +3 -0
  132. package/dist/decorators/legacy/attr.js.map +13 -0
  133. package/dist/decorators/legacy/bound.js +2 -2
  134. package/dist/decorators/legacy/bound.js.map +4 -3
  135. package/dist/decorators/legacy/custom-element.js +2 -2
  136. package/dist/decorators/legacy/custom-element.js.map +5 -3
  137. package/dist/decorators/legacy/debounce.js +2 -2
  138. package/dist/decorators/legacy/debounce.js.map +5 -3
  139. package/dist/decorators/legacy/event.js +2 -2
  140. package/dist/decorators/legacy/event.js.map +7 -3
  141. package/dist/decorators/legacy/instance-initializers.d.ts +3 -4
  142. package/dist/decorators/legacy/instance-initializers.js +2 -2
  143. package/dist/decorators/legacy/instance-initializers.js.map +4 -3
  144. package/dist/decorators/legacy/on-event.d.ts +2 -2
  145. package/dist/decorators/legacy/on-event.js +2 -2
  146. package/dist/decorators/legacy/on-event.js.map +6 -3
  147. package/dist/decorators/legacy/on-updated.d.ts +7 -2
  148. package/dist/decorators/legacy/on-updated.js +2 -2
  149. package/dist/decorators/legacy/on-updated.js.map +5 -3
  150. package/dist/decorators/legacy/query-slot.js +2 -2
  151. package/dist/decorators/legacy/query-slot.js.map +7 -3
  152. package/dist/decorators/legacy/query.d.ts +7 -2
  153. package/dist/decorators/legacy/query.js +2 -2
  154. package/dist/decorators/legacy/query.js.map +6 -3
  155. package/dist/decorators/legacy/reactive-field.d.ts +2 -2
  156. package/dist/decorators/legacy/reactive-field.js +2 -2
  157. package/dist/decorators/legacy/reactive-field.js.map +5 -3
  158. package/dist/decorators/legacy/reactive-prop.d.ts +10 -16
  159. package/dist/decorators/legacy/reactive-prop.js +2 -2
  160. package/dist/decorators/legacy/reactive-prop.js.map +7 -3
  161. package/dist/decorators/legacy/signal.d.ts +4 -3
  162. package/dist/decorators/legacy/signal.js +2 -2
  163. package/dist/decorators/legacy/signal.js.map +9 -3
  164. package/dist/decorators/on-event.d.ts +6 -3
  165. package/dist/decorators/on-event.js +2 -2
  166. package/dist/decorators/on-event.js.map +9 -3
  167. package/dist/decorators/on-updated.d.ts +12 -2
  168. package/dist/decorators/on-updated.js +2 -2
  169. package/dist/decorators/on-updated.js.map +8 -3
  170. package/dist/decorators/prop.d.ts +19 -7
  171. package/dist/decorators/prop.js +2 -2
  172. package/dist/decorators/prop.js.map +10 -3
  173. package/dist/decorators/query-slot.d.ts +11 -3
  174. package/dist/decorators/query-slot.js +2 -2
  175. package/dist/decorators/query-slot.js.map +10 -3
  176. package/dist/decorators/query.d.ts +9 -2
  177. package/dist/decorators/query.js +2 -2
  178. package/dist/decorators/query.js.map +9 -3
  179. package/dist/decorators/shared/reactive-attr.d.ts +25 -0
  180. package/dist/decorators/shared/reactive-attr.js +3 -0
  181. package/dist/decorators/shared/reactive-attr.js.map +11 -0
  182. package/dist/decorators/signal.d.ts +10 -4
  183. package/dist/decorators/signal.js +2 -2
  184. package/dist/decorators/signal.js.map +11 -3
  185. package/dist/decorators/standard/attr.d.ts +2 -0
  186. package/dist/decorators/standard/attr.js +3 -0
  187. package/dist/decorators/standard/attr.js.map +12 -0
  188. package/dist/decorators/standard/bound.js +2 -2
  189. package/dist/decorators/standard/bound.js.map +4 -3
  190. package/dist/decorators/standard/custom-element.js +2 -2
  191. package/dist/decorators/standard/custom-element.js.map +5 -3
  192. package/dist/decorators/standard/debounce.js +2 -2
  193. package/dist/decorators/standard/debounce.js.map +5 -3
  194. package/dist/decorators/standard/event.js +2 -2
  195. package/dist/decorators/standard/event.js.map +6 -3
  196. package/dist/decorators/standard/on-event.d.ts +2 -1
  197. package/dist/decorators/standard/on-event.js +2 -2
  198. package/dist/decorators/standard/on-event.js.map +5 -3
  199. package/dist/decorators/standard/on-updated.d.ts +5 -1
  200. package/dist/decorators/standard/on-updated.js +2 -2
  201. package/dist/decorators/standard/on-updated.js.map +4 -3
  202. package/dist/decorators/standard/query-slot.d.ts +1 -1
  203. package/dist/decorators/standard/query-slot.js +2 -2
  204. package/dist/decorators/standard/query-slot.js.map +5 -3
  205. package/dist/decorators/standard/query.d.ts +2 -1
  206. package/dist/decorators/standard/query.js +2 -2
  207. package/dist/decorators/standard/query.js.map +5 -3
  208. package/dist/decorators/standard/reactive-field.d.ts +2 -2
  209. package/dist/decorators/standard/reactive-field.js +2 -2
  210. package/dist/decorators/standard/reactive-field.js.map +4 -3
  211. package/dist/decorators/standard/reactive-prop.d.ts +13 -2
  212. package/dist/decorators/standard/reactive-prop.js +2 -2
  213. package/dist/decorators/standard/reactive-prop.js.map +6 -3
  214. package/dist/decorators/standard/signal.d.ts +4 -3
  215. package/dist/decorators/standard/signal.js +2 -2
  216. package/dist/decorators/standard/signal.js.map +8 -3
  217. package/dist/decorators/state.d.ts +6 -5
  218. package/dist/decorators/state.js +2 -2
  219. package/dist/decorators/state.js.map +8 -3
  220. package/dist/helpers/create-event-listener.d.ts +11 -2
  221. package/dist/helpers/create-event-listener.js +2 -2
  222. package/dist/helpers/create-event-listener.js.map +4 -3
  223. package/dist/helpers/create-event.js +2 -2
  224. package/dist/helpers/create-event.js.map +5 -3
  225. package/dist/helpers/create-query-slot.js +2 -2
  226. package/dist/helpers/create-query-slot.js.map +4 -3
  227. package/dist/helpers/create-query.d.ts +14 -3
  228. package/dist/helpers/create-query.js +2 -2
  229. package/dist/helpers/create-query.js.map +4 -3
  230. package/dist/helpers/debounce.js +2 -2
  231. package/dist/helpers/debounce.js.map +4 -3
  232. package/dist/helpers/index.js +2 -2
  233. package/dist/helpers/index.js.map +9 -3
  234. package/dist/index.d.ts +4 -14
  235. package/dist/index.js +2 -2
  236. package/dist/index.js.map +60 -3
  237. package/dist/server/context-ssr.js +2 -2
  238. package/dist/server/context-ssr.js.map +5 -3
  239. package/dist/server/html-parser.js +2 -2
  240. package/dist/server/html-parser.js.map +4 -3
  241. package/dist/server/install-light-dom-shim.js +2 -2
  242. package/dist/server/install-light-dom-shim.js.map +5 -3
  243. package/dist/server/light-dom-shim.js +2 -2
  244. package/dist/server/light-dom-shim.js.map +5 -3
  245. package/dist/server/project-root.js +2 -2
  246. package/dist/server/project-root.js.map +2 -2
  247. package/dist/server/radiant-component-ssr-runtime.d.ts +2 -2
  248. package/dist/server/radiant-component-ssr-runtime.js +2 -2
  249. package/dist/server/radiant-component-ssr-runtime.js.map +11 -3
  250. package/dist/server/render-component.d.ts +3 -13
  251. package/dist/server/render-component.js +2 -2
  252. package/dist/server/render-component.js.map +14 -4
  253. package/dist/server/render-controller.d.ts +57 -0
  254. package/dist/server/render-controller.js +3 -0
  255. package/dist/server/render-controller.js.map +23 -0
  256. package/dist/server/slot-projection-html.js +2 -2
  257. package/dist/server/slot-projection-html.js.map +7 -3
  258. package/dist/signals/host-resource.js +2 -2
  259. package/dist/signals/host-resource.js.map +2 -2
  260. package/dist/signals/host-signal.d.ts +4 -2
  261. package/dist/signals/host-signal.js +2 -2
  262. package/dist/signals/host-signal.js.map +7 -3
  263. package/dist/signals/hydration-script.js +2 -2
  264. package/dist/signals/hydration-script.js.map +6 -3
  265. package/dist/tools/escape-script-json.js +2 -2
  266. package/dist/tools/escape-script-json.js.map +4 -3
  267. package/dist/tools/event-emitter.js +2 -2
  268. package/dist/tools/event-emitter.js.map +4 -3
  269. package/dist/tools/index.js +2 -2
  270. package/dist/tools/index.js.map +7 -3
  271. package/dist/tools/render-jsx-template.js +2 -2
  272. package/dist/tools/render-jsx-template.js.map +4 -3
  273. package/dist/tools/stringify-typed.js +2 -2
  274. package/dist/tools/stringify-typed.js.map +4 -3
  275. package/dist/types.js +2 -2
  276. package/dist/types.js.map +2 -2
  277. package/dist/utils/attribute-utils.js +2 -2
  278. package/dist/utils/attribute-utils.js.map +4 -3
  279. package/dist/utils/index.js +2 -2
  280. package/dist/utils/index.js.map +4 -3
  281. package/package.json +26 -5
  282. package/size-budget.json +11 -2
  283. package/dist/chunk-0bswvy25.js +0 -4
  284. package/dist/chunk-0bswvy25.js.map +0 -10
  285. package/dist/chunk-0btkzzyc.js +0 -4
  286. package/dist/chunk-0btkzzyc.js.map +0 -10
  287. package/dist/chunk-0g0j9re6.js +0 -4
  288. package/dist/chunk-0g0j9re6.js.map +0 -10
  289. package/dist/chunk-1x26p09c.js +0 -4
  290. package/dist/chunk-1x26p09c.js.map +0 -10
  291. package/dist/chunk-21a7jask.js +0 -4
  292. package/dist/chunk-21a7jask.js.map +0 -10
  293. package/dist/chunk-21acj2eq.js +0 -4
  294. package/dist/chunk-21acj2eq.js.map +0 -10
  295. package/dist/chunk-25zjh0kg.js +0 -4
  296. package/dist/chunk-25zjh0kg.js.map +0 -10
  297. package/dist/chunk-30x4hggg.js +0 -4
  298. package/dist/chunk-30x4hggg.js.map +0 -10
  299. package/dist/chunk-3ynk7e1e.js +0 -4
  300. package/dist/chunk-3ynk7e1e.js.map +0 -10
  301. package/dist/chunk-5b1en9vz.js +0 -4
  302. package/dist/chunk-5b1en9vz.js.map +0 -10
  303. package/dist/chunk-5bkat72n.js +0 -4
  304. package/dist/chunk-5bkat72n.js.map +0 -10
  305. package/dist/chunk-5qeaq3tj.js +0 -4
  306. package/dist/chunk-5qeaq3tj.js.map +0 -10
  307. package/dist/chunk-66e6s792.js +0 -4
  308. package/dist/chunk-66e6s792.js.map +0 -10
  309. package/dist/chunk-79jg8q67.js +0 -4
  310. package/dist/chunk-79jg8q67.js.map +0 -10
  311. package/dist/chunk-8d5ddvvf.js +0 -4
  312. package/dist/chunk-8d5ddvvf.js.map +0 -10
  313. package/dist/chunk-8e9fgtbn.js +0 -4
  314. package/dist/chunk-8e9fgtbn.js.map +0 -10
  315. package/dist/chunk-9mqtp3js.js +0 -4
  316. package/dist/chunk-9mqtp3js.js.map +0 -10
  317. package/dist/chunk-9rj2rwes.js +0 -4
  318. package/dist/chunk-9rj2rwes.js.map +0 -10
  319. package/dist/chunk-atms6yrh.js +0 -4
  320. package/dist/chunk-atms6yrh.js.map +0 -10
  321. package/dist/chunk-bk2nbmcd.js +0 -4
  322. package/dist/chunk-bk2nbmcd.js.map +0 -10
  323. package/dist/chunk-bk6qkvfp.js +0 -4
  324. package/dist/chunk-bk6qkvfp.js.map +0 -10
  325. package/dist/chunk-c0qyz98c.js +0 -4
  326. package/dist/chunk-c0qyz98c.js.map +0 -10
  327. package/dist/chunk-c52qhh0j.js +0 -4
  328. package/dist/chunk-c52qhh0j.js.map +0 -10
  329. package/dist/chunk-cnyxrh9r.js +0 -4
  330. package/dist/chunk-cnyxrh9r.js.map +0 -10
  331. package/dist/chunk-cvz9mrxa.js +0 -4
  332. package/dist/chunk-cvz9mrxa.js.map +0 -10
  333. package/dist/chunk-dabagjk6.js +0 -4
  334. package/dist/chunk-dabagjk6.js.map +0 -10
  335. package/dist/chunk-e0r6ca2g.js +0 -4
  336. package/dist/chunk-e0r6ca2g.js.map +0 -10
  337. package/dist/chunk-e5jd9h6t.js +0 -4
  338. package/dist/chunk-e5jd9h6t.js.map +0 -10
  339. package/dist/chunk-eevw1j2q.js +0 -4
  340. package/dist/chunk-eevw1j2q.js.map +0 -10
  341. package/dist/chunk-ek664x1c.js +0 -4
  342. package/dist/chunk-ek664x1c.js.map +0 -10
  343. package/dist/chunk-eyw14d6y.js +0 -4
  344. package/dist/chunk-eyw14d6y.js.map +0 -10
  345. package/dist/chunk-fs4j94bk.js +0 -4
  346. package/dist/chunk-fs4j94bk.js.map +0 -10
  347. package/dist/chunk-g2z3mm6b.js +0 -4
  348. package/dist/chunk-g2z3mm6b.js.map +0 -10
  349. package/dist/chunk-g5n3m11h.js +0 -4
  350. package/dist/chunk-g5n3m11h.js.map +0 -10
  351. package/dist/chunk-gdkte2vd.js +0 -4
  352. package/dist/chunk-gdkte2vd.js.map +0 -10
  353. package/dist/chunk-gg74gdpv.js +0 -4
  354. package/dist/chunk-gg74gdpv.js.map +0 -10
  355. package/dist/chunk-gpv1n74a.js +0 -4
  356. package/dist/chunk-gpv1n74a.js.map +0 -10
  357. package/dist/chunk-h9k7crjc.js +0 -4
  358. package/dist/chunk-h9k7crjc.js.map +0 -10
  359. package/dist/chunk-hpzgnxgq.js +0 -4
  360. package/dist/chunk-hpzgnxgq.js.map +0 -10
  361. package/dist/chunk-hrjc8b1y.js +0 -4
  362. package/dist/chunk-hrjc8b1y.js.map +0 -10
  363. package/dist/chunk-hvy4zvcc.js +0 -4
  364. package/dist/chunk-hvy4zvcc.js.map +0 -10
  365. package/dist/chunk-hztr86b4.js +0 -4
  366. package/dist/chunk-hztr86b4.js.map +0 -10
  367. package/dist/chunk-j3v7rca5.js +0 -4
  368. package/dist/chunk-j3v7rca5.js.map +0 -10
  369. package/dist/chunk-j864sv4w.js +0 -4
  370. package/dist/chunk-j864sv4w.js.map +0 -10
  371. package/dist/chunk-jkb2y7c8.js +0 -4
  372. package/dist/chunk-jkb2y7c8.js.map +0 -10
  373. package/dist/chunk-kakpjgzf.js +0 -4
  374. package/dist/chunk-kakpjgzf.js.map +0 -10
  375. package/dist/chunk-kmebacvv.js +0 -4
  376. package/dist/chunk-kmebacvv.js.map +0 -10
  377. package/dist/chunk-knqsm6v3.js +0 -4
  378. package/dist/chunk-knqsm6v3.js.map +0 -10
  379. package/dist/chunk-mp2vtrkg.js +0 -4
  380. package/dist/chunk-mp2vtrkg.js.map +0 -10
  381. package/dist/chunk-mpsj3cjs.js +0 -4
  382. package/dist/chunk-mpsj3cjs.js.map +0 -10
  383. package/dist/chunk-n4p2542b.js +0 -4
  384. package/dist/chunk-n4p2542b.js.map +0 -10
  385. package/dist/chunk-nctznxyz.js +0 -4
  386. package/dist/chunk-nctznxyz.js.map +0 -10
  387. package/dist/chunk-ndw3hc3v.js +0 -4
  388. package/dist/chunk-ndw3hc3v.js.map +0 -10
  389. package/dist/chunk-nnnb6pac.js +0 -4
  390. package/dist/chunk-nnnb6pac.js.map +0 -10
  391. package/dist/chunk-nssj2x13.js +0 -4
  392. package/dist/chunk-nssj2x13.js.map +0 -10
  393. package/dist/chunk-nvr37vma.js +0 -4
  394. package/dist/chunk-nvr37vma.js.map +0 -10
  395. package/dist/chunk-p8k4g99a.js +0 -4
  396. package/dist/chunk-p8k4g99a.js.map +0 -10
  397. package/dist/chunk-pkszgjqf.js +0 -4
  398. package/dist/chunk-pkszgjqf.js.map +0 -10
  399. package/dist/chunk-q9z6tnzw.js +0 -4
  400. package/dist/chunk-q9z6tnzw.js.map +0 -10
  401. package/dist/chunk-qdz5sncz.js +0 -4
  402. package/dist/chunk-qdz5sncz.js.map +0 -10
  403. package/dist/chunk-qe0eww1n.js +0 -4
  404. package/dist/chunk-qe0eww1n.js.map +0 -10
  405. package/dist/chunk-r33zvvda.js +0 -4
  406. package/dist/chunk-r33zvvda.js.map +0 -10
  407. package/dist/chunk-rkh1vkb9.js +0 -4
  408. package/dist/chunk-rkh1vkb9.js.map +0 -10
  409. package/dist/chunk-rrg759ht.js +0 -4
  410. package/dist/chunk-rrg759ht.js.map +0 -10
  411. package/dist/chunk-s09s5ayx.js +0 -4
  412. package/dist/chunk-s09s5ayx.js.map +0 -10
  413. package/dist/chunk-sf4a2gy5.js +0 -4
  414. package/dist/chunk-sf4a2gy5.js.map +0 -10
  415. package/dist/chunk-ssnnxzrj.js +0 -4
  416. package/dist/chunk-ssnnxzrj.js.map +0 -10
  417. package/dist/chunk-t8xtvgyg.js +0 -4
  418. package/dist/chunk-t8xtvgyg.js.map +0 -10
  419. package/dist/chunk-v3ta7hnv.js +0 -4
  420. package/dist/chunk-v3ta7hnv.js.map +0 -10
  421. package/dist/chunk-v92hp9g0.js +0 -4
  422. package/dist/chunk-v92hp9g0.js.map +0 -10
  423. package/dist/chunk-vgtggzb6.js +0 -4
  424. package/dist/chunk-vgtggzb6.js.map +0 -9
  425. package/dist/chunk-vk48hgm4.js +0 -4
  426. package/dist/chunk-vk48hgm4.js.map +0 -10
  427. package/dist/chunk-w8s5fnsq.js +0 -4
  428. package/dist/chunk-w8s5fnsq.js.map +0 -10
  429. package/dist/chunk-wd23rn4q.js +0 -4
  430. package/dist/chunk-wd23rn4q.js.map +0 -10
  431. package/dist/chunk-wds4href.js +0 -4
  432. package/dist/chunk-wds4href.js.map +0 -10
  433. package/dist/chunk-wvd1ffe4.js +0 -4
  434. package/dist/chunk-wvd1ffe4.js.map +0 -10
  435. package/dist/chunk-wwbjz9k4.js +0 -4
  436. package/dist/chunk-wwbjz9k4.js.map +0 -10
  437. package/dist/chunk-x2k0ngpz.js +0 -4
  438. package/dist/chunk-x2k0ngpz.js.map +0 -10
  439. package/dist/chunk-x457d0ap.js +0 -4
  440. package/dist/chunk-x457d0ap.js.map +0 -10
  441. package/dist/chunk-xbhtzkre.js +0 -4
  442. package/dist/chunk-xbhtzkre.js.map +0 -10
  443. package/dist/chunk-y139ycfm.js +0 -4
  444. package/dist/chunk-y139ycfm.js.map +0 -10
  445. package/dist/chunk-z9kxfckm.js +0 -4
  446. package/dist/chunk-z9kxfckm.js.map +0 -10
  447. package/dist/chunk-zx5txex8.js +0 -4
  448. package/dist/chunk-zx5txex8.js.map +0 -10
  449. package/dist/chunk-zygdebw8.js +0 -4
  450. package/dist/chunk-zygdebw8.js.map +0 -10
  451. package/dist/core/radiant-component.d.ts +0 -113
  452. package/dist/core/radiant-component.js +0 -3
  453. package/dist/core/radiant-component.js.map +0 -9
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import{t as s}from"./chunk-3ynk7e1e.js";import"./chunk-nctznxyz.js";import{v as e}from"./chunk-wds4href.js";import"./chunk-r33zvvda.js";import"./chunk-fs4j94bk.js";import"./chunk-5qeaq3tj.js";import{z as c}from"./chunk-30x4hggg.js";import{A as r}from"./chunk-qe0eww1n.js";import{B as t}from"./chunk-g5n3m11h.js";import"./chunk-s09s5ayx.js";import"./chunk-g2z3mm6b.js";import"./chunk-x2k0ngpz.js";import"./chunk-kakpjgzf.js";import"./chunk-5bkat72n.js";import"./chunk-p8k4g99a.js";import"./chunk-ek664x1c.js";import{P as T}from"./chunk-21acj2eq.js";import{Q as U}from"./chunk-z9kxfckm.js";import{R as o}from"./chunk-21a7jask.js";import{S as a,T as n,U as p,V as l}from"./chunk-kmebacvv.js";import"./chunk-c0qyz98c.js";import{Y as S}from"./chunk-gdkte2vd.js";import{Z as u}from"./chunk-ndw3hc3v.js";import"./chunk-mpsj3cjs.js";import"./chunk-0bswvy25.js";import{aa as v}from"./chunk-pkszgjqf.js";import"./chunk-x457d0ap.js";import"./chunk-vk48hgm4.js";import{da as Z}from"./chunk-0btkzzyc.js";import"./chunk-qdz5sncz.js";import"./chunk-w8s5fnsq.js";import{ga as V}from"./chunk-j864sv4w.js";import"./chunk-y139ycfm.js";import"./chunk-rkh1vkb9.js";import{ja as X}from"./chunk-nvr37vma.js";import"./chunk-h9k7crjc.js";import"./chunk-8d5ddvvf.js";import{ma as d}from"./chunk-0g0j9re6.js";import"./chunk-8e9fgtbn.js";import"./chunk-bk2nbmcd.js";import{pa as W}from"./chunk-c52qhh0j.js";import"./chunk-25zjh0kg.js";import"./chunk-mp2vtrkg.js";import{sa as $}from"./chunk-1x26p09c.js";import"./chunk-9rj2rwes.js";import"./chunk-v3ta7hnv.js";import{va as y}from"./chunk-eevw1j2q.js";import"./chunk-knqsm6v3.js";import"./chunk-eyw14d6y.js";import"./chunk-v92hp9g0.js";import{Ba as i}from"./chunk-xbhtzkre.js";import"./chunk-atms6yrh.js";import"./chunk-n4p2542b.js";import"./chunk-nnnb6pac.js";import"./chunk-dabagjk6.js";import{Ja as h}from"./chunk-j3v7rca5.js";import"./chunk-hvy4zvcc.js";import"./chunk-79jg8q67.js";import"./chunk-cnyxrh9r.js";import"./chunk-q9z6tnzw.js";import"./chunk-gg74gdpv.js";import"./chunk-e0r6ca2g.js";import"./chunk-hztr86b4.js";import"./chunk-9mqtp3js.js";import"./chunk-t8xtvgyg.js";import"./chunk-66e6s792.js";import"./chunk-e5jd9h6t.js";import"./chunk-hpzgnxgq.js";import"./chunk-nssj2x13.js";import{xb as Y}from"./chunk-rrg759ht.js";import"./chunk-wvd1ffe4.js";import"./chunk-wd23rn4q.js";import{Ab as x}from"./chunk-bk6qkvfp.js";import{Bb as q}from"./chunk-wwbjz9k4.js";import{Cb as _}from"./chunk-hrjc8b1y.js";import"./chunk-vgtggzb6.js";export{h as state,v as signal,y as querySlot,u as query,e as provideContext,i as prop,d as onUpdated,$ as onEvent,r as onContextUpdate,Z as event,X as debounce,W as customElement,x as createQuerySlot,q as createQuery,_ as createEventListener,Y as createEvent,c as createContext,t as contextSelector,s as consumeContext,V as bound,U as bindReactiveValue,S as RadiantElement,T as RadiantComponent,l as ContextSubscriptionRequestEvent,n as ContextRequestEvent,o as ContextProvider,p as ContextOnMountEvent,a as ContextEventsTypes};
1
+ var aM=((F)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(F,{get:(M,H)=>(typeof require<"u"?require:M)[H]}):F)(function(F){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+F+'" is not supported')});var p=Symbol.for("@ecopages/radiant.legacy-instance-initializers");function G(F,M){let $=F[p];if(Array.isArray($)){$.push(M);return}Object.defineProperty(F,p,{value:[M],configurable:!0})}function I(F){let M=[],H=Object.getPrototypeOf(F);while(H&&H!==Object.prototype)M.push(H),H=Object.getPrototypeOf(H);for(let $=M.length-1;$>=0;$-=1){let P=M[$][p];if(!Array.isArray(P))continue;for(let x of P)x(F)}}import{createSubscribableJsxValue as jM}from"@ecopages/jsx";import{trackDependency as MF}from"@ecopages/signals";class HF{read;subscribers=new Set;watcherListeners=new Set;version=0;constructor(F){this.read=F}get(){return MF(this),this.read()}subscribe(F){return this.subscribers.add(F),()=>{this.subscribers.delete(F)}}addWatcher(F){return this.watcherListeners.add(F),()=>{this.watcherListeners.delete(F)}}getVersion(){return this.version}notify(F){this.version+=1;let M;try{this.notifyWatchers()}catch(H){M=H}if(this.publish(F),M)throw M}publish(F){for(let M of this.subscribers)M(F)}notifyWatchers(){let F=[];for(let M of this.watcherListeners)try{M()}catch(H){F.push(H)}if(F.length===1)throw F[0];if(F.length>1)throw AggregateError(F,"Multiple reactive dependency notifications failed.")}}function XM(F){return typeof F==="object"&&F!==null&&typeof F.get==="function"}class k{host;access;shouldAutoBind;bindings;$;reactiveFields=new Map;reactiveDependencies=new Map;reactiveDependencyReaders=new Map;reactiveBindings=new Map;updateCallbacks=new Map;onConnectedCallbacks=[];onDisconnectedCallback=[];constructor(F,M,H){this.host=F;this.access=M;this.shouldAutoBind=H;let $=this.createReactiveBindingNamespace();this.bindings=$,this.$=$}connectHost(){for(let F of this.onConnectedCallbacks)F()}disconnectHost(){for(let F of this.onDisconnectedCallback)F()}notifyUpdate(F,M,H){if(M===H)return;this.reactiveDependencies.get(F)?.notify(H);let $=this.updateCallbacks.get(F);if($)for(let P of $)P()}registerCleanupCallback(F){this.onDisconnectedCallback.push(F)}registerConnectedCallback(F){this.onConnectedCallbacks.push(F)}registerHydrationBinding(F,M){}registerReactiveDependencyReader(F,M){this.reactiveDependencyReaders.set(F,M)}registerUpdateCallback(F,M){if(!this.updateCallbacks.has(F))this.updateCallbacks.set(F,new Set);let H=this.updateCallbacks.get(F);return H.add(M),()=>{if(H.delete(M),H.size===0)this.updateCallbacks.delete(F)}}getReactiveBinding(F){let M=this.reactiveBindings.get(F);if(M)return M;let H=jM({getValue:()=>this.readReactiveBindingValue(F),subscribe:($)=>this.registerUpdateCallback(F,()=>{$(this.readReactiveBindingValue(F))})});return this.reactiveBindings.set(F,H),H}bind(F){return this.getReactiveBinding(F)}defineReactiveBinding(F,M=!0){let H=typeof M==="string"?M:M?`$${F}`:void 0,$=this.access.getBindingTarget?.(this.host)??this.host;if(!H||this.access.hasProperty(this.host,H))return;this.access.defineProperty($,H,{get:()=>this.getReactiveBinding(F),enumerable:!1,configurable:!0})}trackReactiveRead(F){MF(this.getReactiveDependency(F))}defineReactiveAccessor(F,M){let H=M.bind??this.shouldAutoBind();if(this.defineReactiveBinding(F,H),this.registerReactiveDependencyReader(F,M.getValue),this.access.defineProperty(this.host,F,{get:()=>{return this.trackReactiveRead(F),M.getValue()},set:($)=>{let P=M.getValue();if(P===$)return;M.setValue($),this.notifyUpdate(F,P,$)},enumerable:!0,configurable:!0}),M.notifyInitialValue!==void 0)this.notifyUpdate(F,void 0,M.notifyInitialValue)}createReactiveField(F,M,H={}){let $={name:F,value:M,initialValue:M};this.reactiveFields.set(F,$),this.defineReactiveAccessor(F,{bind:H.bind,getValue:()=>this.reactiveFields.get(F)?.value,setValue:(P)=>{this.reactiveFields.set(F,{...$,value:P})},notifyInitialValue:M})}createReactiveBindingNamespace(){return new Proxy(Object.create(null),{get:(F,M)=>{if(typeof M!=="string")return;return this.getReactiveBinding(M)}})}getReactiveDependency(F){let M=this.reactiveDependencies.get(F);if(M)return M;let H=new HF(()=>this.readReactiveDependencyValue(F));return this.reactiveDependencies.set(F,H),H}readReactiveDependencyValue(F){let M=this.reactiveDependencyReaders.get(F);if(M)return M();return this.readReactiveBindingValue(F)}readReactiveBindingValue(F){let M=this.access.readProperty(this.host,F);if(XM(M))return M.get();return M}}var i=Symbol.for("@ecopages/radiant.ssr-preparation-callbacks"),$F=Symbol.for("@ecopages/radiant.ssr-preparation-running");function PF(F,M){let $=F[i];if(Array.isArray($)){$.push(M);return}Object.defineProperty(F,i,{value:[M],configurable:!0})}function xF(F){let M=F,H=M[i];if(!Array.isArray(H))return;M[$F]=!0;try{for(let $ of H)$()}finally{delete M[$F]}}function WF(F){return F.replace(/&/g,"\\u0026").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var J="data-hydration",XF="data-hydration-type",l="data-hydration-key";function WH(F){let M=F.hydrationKey?` ${l}="${ZM(F.hydrationKey)}"`:"";return`<script type="application/json" ${J} ${XF}="${F.type}"${M}>${F.serializedValue}</script>`}function jH(F){return WF(F)}function XH(F,M){let H=F.textContent;if(!H)return M;try{return JSON.parse(H)}catch{if(typeof console<"u")console.warn(`[@ecopages/radiant] Failed to parse hydration payload from <script ${J}>:`,H.slice(0,120));return M}}function ZH(F,M,H){let $=F.children;if(!$||$.length===0){let P=F.childNodes;if(!P||P.length===0)return null;for(let x=0;x<P.length;x+=1){let W=P[x];if(W.nodeType!==1)continue;let j=W;if(jF(j,M,H))return j}return null}for(let P=0;P<$.length;P+=1)if(jF($[P],M,H))return $[P];return null}function jF(F,M,H){if(F.tagName!=="SCRIPT"||!F.hasAttribute(J)||F.getAttribute(XF)!==M)return!1;if(H!==void 0)return F.getAttribute(l)===H;return!F.hasAttribute(l)}function ZM(F){return F.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}import{createMarkupNodeLike as BM,isKeyedJsxValue as ZF,isSlotJsxValue as GM}from"@ecopages/jsx";var Y="",E="data-radiant-slot-projection";function BF(F){let M=new Map;for(let H of Array.from(F.childNodes)){if(LM(H))continue;QM(M,UM(H),H)}return M}function GF(F){let M;try{M=JSON.parse(F)}catch{if(typeof console<"u")console.warn("[@ecopages/radiant] Failed to parse slot projection payload:",F.slice(0,120));return new Map}let H=new Map;for(let[$,P]of Object.entries(M)){if(!Array.isArray(P)||P.length===0)continue;H.set(n($),P.map((x)=>BM(x)))}return H}function QF(F){let M=Array.from(F.childNodes).filter((H)=>DF(H)).map((H)=>S(H)??"").filter((H)=>H!=="");return M.length>0?M.join(""):void 0}function RF(F){let M={};for(let[H,$]of F.entries()){let P=$.map((x)=>S(x)).filter((x)=>x!==void 0&&x!=="");if(P.length>0)M[H]=P}return Object.keys(M).length>0?JSON.stringify(M):void 0}function UF(F,M){let H=!1,$=(x)=>{if(GM(x))return H=!0,JM(x,M,$);if(ZF(x))return RM(x,$(x.value));if(qM(x))return{_$rType$:1,rootLocalName:x.rootLocalName,strings:x.strings,values:x.values.map((W)=>$(W))};if(qF(x))return Array.from(x,(W)=>$(W));return x},P=$(F);return{containsSlots:H,value:P}}function LF(F){for(let M of Array.from(F.childNodes)){if(!JF(M))continue;let H=M.textContent??void 0;return M.parentNode?.removeChild(M),H}return}function QM(F,M,H){let $=F.get(M);if($){$.push(H);return}F.set(M,[H])}function RM(F,M){return{...F,value:M}}function UM(F){if(F instanceof Element)return n(F.getAttribute("slot"));return Y}function qF(F){return typeof F!=="string"&&typeof F==="object"&&F!==null&&Symbol.iterator in F}function JF(F){return F instanceof HTMLScriptElement&&F.hasAttribute(E)}function DF(F){return F instanceof HTMLScriptElement&&F.hasAttribute(J)}function LM(F){return JF(F)||DF(F)}function qM(F){return typeof F==="object"&&F!==null&&F._$rType$===1&&Array.isArray(F.strings)&&Array.isArray(F.values)}function n(F){return F??Y}function S(F){if(F===void 0||F===null||F===!1||F===!0)return;if(typeof Node<"u"&&F instanceof Node){if(F.nodeType===Node.TEXT_NODE)return F.textContent??"";return F.outerHTML??F.textContent??void 0}if(ZF(F))return S(F.value);if(typeof F==="string"||typeof F==="number"||typeof F==="bigint")return String(F);if(typeof F==="object"&&F!==null&&"outerHTML"in F)return typeof F.outerHTML==="string"?F.outerHTML:F.textContent??void 0;if(qF(F))return Array.from(F,(M)=>S(M)??"").join("");return}function JM(F,M,H){let $=M.get(n(F.name));if($&&$.length>0)return $.length===1?$[0]:$;if(F.fallback===void 0)return"";return H(F.fallback)}var r=Symbol.for("@ecopages/radiant.hydrator-installed");function UH(){globalThis[r]=!0}function LH(){delete globalThis[r]}function AF(){return globalThis[r]===!0}var YF=Symbol.for("@ecopages/radiant.component-ssr-runtime");function zF(){return globalThis[YF]}function JH(F){globalThis[YF]=F}function kF(F){switch(F){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function DM(F){switch(typeof F){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(F))return"array";if(Object.prototype.toString.call(F)==="[object Object]")return"object"}function K(F){switch(F){case Number:return 0;case String:return"";case Boolean:return!1;default:return null}}function AM(F){try{return JSON.parse(F)}catch{throw TypeError("Invalid JSON string")}}var YM={array(F){let M=AM(F);if(!Array.isArray(M))throw TypeError(`Expected an array but got a value of type "${typeof M}"`);return M},boolean(F){return!(F==="0"||String(F).toLowerCase()==="false")},number(F){return Number(F.replace(/_/g,""))},object(F){let M=JSON.parse(F);if(M===null||typeof M!=="object"||Array.isArray(M))throw TypeError(`expected value of type "object" but instead got value "${F}" of type "${DM(M)}"`);return M},string(F){return F}},TF={default:KF,array:_F,object:_F};function _F(F){return JSON.stringify(F)}function KF(F){return`${F}`}function z(F,M){let H=kF(M);if(!H)throw TypeError(`[radiant-element] Unknown type "${M}"`);return YM[H](F)}function w(F,M){let H=kF(M);if(!H)throw TypeError(`[radiant-element] Unknown type "${M}"`);return(TF[H]??TF.default??KF)(F)}function zM(F){return typeof F==="boolean"}function TM(F){return typeof F==="number"}function _M(F){return typeof F==="string"}function kM(F){return Array.isArray(F)}function KM(F){return typeof F==="object"&&!Array.isArray(F)&&F!==null}function U(F,M){switch(F){case Boolean:return zM(M);case Number:return TM(M);case String:return _M(M);case Array:return kM(M);case Object:return KM(M);default:return!1}}var OF=(F,M,H,$)=>{if(M===Boolean){let x=F.getAttribute(H);if(x===null)return $;return x===""?!0:z(x,M)}let P=F.getAttribute(H);return P!==null?z(P,M):$??K(M)};import{hasHydrationMarkers as OM,hydrate as IM,jsx as SM,render as EM}from"@ecopages/jsx";import{Computed as wM,subtle as CM}from"@ecopages/signals";var VM=fM();function fM(){if(typeof HTMLElement<"u")return HTMLElement;throw Error("RadiantElement requires HTMLElement. Install '@ecopages/radiant/server/light-dom-shim' before importing Radiant components in SSR.")}class V extends VM{bindings;$;reactiveHost;reactiveProperties=new Map;contextProviders=new Map;hydrationBindings=new Map;eventSubscriptions=new Map;eventEmitters=new Map;elementReady=!1;isRendering=!1;isFirstConnectPending=!1;isRenderScheduled=!1;needsRender=!1;projectedSlotContent=new Map;renderSignal;renderWatcher=new CM.Watcher(()=>{this.requestUpdate()});slotProjectionObserver;slotProjectionVersion=0;constructor(){super();this.reactiveHost=new k(this,{defineProperty:(F,M,H)=>Object.defineProperty(F,M,H),getBindingTarget:(F)=>Object.getPrototypeOf(F)??F,hasProperty:(F,M)=>(M in F),readProperty:(F,M)=>F[M]},()=>this.shouldAutoBindReactiveMembers()),this.bindings=this.reactiveHost.bindings,this.$=this.reactiveHost.$,I(this)}connectedCallback(){let F=this.isFirstConnectPending;if(this.elementReady=!0,this.reactiveHost.connectHost(),F)return;this.isFirstConnectPending=!0,queueMicrotask(()=>{if(this.isFirstConnectPending=!1,!this.isConnected)return;if(!this.shouldRunRenderLifecycle())return;if(this.ensureSlotProjectionState(),this.observeSlotProjection(),IF(this)){if(this.needsRender=!1,this.hydrate(),this.needsRender)this.update();return}this.update()})}connectedContextCallback(F){}disconnectedCallback(){this.disconnectSlotProjectionObserver(),this.disconnectRenderWatcher(),this.removeAllSubscribedEvents(),this.reactiveHost.disconnectHost()}notifyUpdate(F,M,H){this.reactiveHost.notifyUpdate(F,M,H)}transformAttributeValue(F,M){return F!==null?M?.converter.fromAttribute(F):F}attributeChangedCallback(F,M,H){if(M===H||!this.elementReady)return;if(this.reactiveProperties.has(F)){let $=this.reactiveProperties.get(F),P=this.transformAttributeValue(H,$),x=this.transformAttributeValue(M,$),W=$?$.attribute:F;this[W]=P,this.notifyUpdate(F,x,P)}}renderTemplate({target:F=this,template:M,insert:H="replace",sanitize:$}){let P=$?$(M):M;switch(H){case"replace":F.innerHTML=P;break;case"beforeend":F.insertAdjacentHTML("beforeend",P);break;case"afterbegin":F.insertAdjacentHTML("afterbegin",P);break;case"beforebegin":F.insertAdjacentHTML("beforebegin",P);break;case"afterend":F.insertAdjacentHTML("afterend",P);break}}render(){return SM("slot",{})}renderToString(F={}){if(!this.shouldRunRenderLifecycle())return this.innerHTML;return this.prepareForSsr(),C().renderView(this,F)}renderHost(){return C().renderHost(this)}renderHostToString(F={}){return C().renderHostToString(this,F)}hydrate(){if(!this.shouldRunRenderLifecycle()||!this.isConnected||this.isRendering)return;this.isRendering=!0,this.disconnectSlotProjectionObserver();try{IM(this.resolveTrackedRenderOutput().value,this)}finally{this.isRendering=!1,this.observeSlotProjection()}}requestUpdate(){if(!this.shouldRunRenderLifecycle())return;if(this.needsRender=!0,this.isRenderScheduled)return;this.isRenderScheduled=!0,queueMicrotask(()=>{if(this.isRenderScheduled=!1,!this.needsRender)return;this.update()})}update(){if(!this.shouldRunRenderLifecycle())return;if(this.needsRender=!0,!this.isConnected||this.isRendering)return;if(this.isFirstConnectPending&&IF(this))return;while(this.needsRender&&this.isConnected){this.needsRender=!1,this.isRendering=!0,this.disconnectSlotProjectionObserver();try{EM(this.resolveTrackedRenderOutput().value,this)}finally{this.isRendering=!1,this.observeSlotProjection()}}}registerReactiveProperty(F){this.reactiveProperties.set(F.name,F)}getReactiveProperties(){return Array.from(this.reactiveProperties.values())}registerReactiveDependencyReader(F,M){this.reactiveHost.registerReactiveDependencyReader(F,M)}registerContextProvider(F,M){this.contextProviders.set(F,M),this.registerHydrationBinding(F,M)}registerHydrationBinding(F,M){this.hydrationBindings.set(F,M)}getContextProviders(){return Array.from(this.contextProviders.values())}getHydrationBindings(){return Array.from(this.hydrationBindings.values())}prepareForSsr(){xF(this)}shouldAutoBindReactiveMembers(){return!0}shouldRunRenderLifecycle(){return this.render!==V.prototype.render}getHostSsrAttributes(){return C().getHostAttributes(this)}resolveSsrRenderBridge(){let F={};if(this.renderHostToString===V.prototype.renderHostToString)F.renderHostToString=(M)=>this.renderHostToString(M);if(this.renderHost===V.prototype.renderHost)F.renderHost=()=>this.renderHost();return F}registerUpdateCallback(F,M){return this.reactiveHost.registerUpdateCallback(F,M)}getReactiveBinding(F){return this.reactiveHost.getReactiveBinding(F)}bind(F){return this.reactiveHost.bind(F)}defineReactiveBinding(F,M=!0){this.reactiveHost.defineReactiveBinding(F,M)}trackReactiveRead(F){this.reactiveHost.trackReactiveRead(F)}subscribeEvents(F){let M=[];for(let H of F)M.push(this.subscribeEvent(H));return M}subscribeEvent(F){let M=($)=>{if($.target&&$.target.matches(F.selector))F.listener.call(this,$)},H=`${F.type}:${F.selector}`;return this.addEventListener(F.type,M,F.options),this.eventSubscriptions.set(H,{...F,listener:M}),this.unsubscribeEvent.bind(this,H)}unsubscribeEvent(F){let M=this.eventSubscriptions.get(F);if(M)this.removeEventListener(M.type,M.listener,M.options),this.eventSubscriptions.delete(F)}removeAllSubscribedEvents(){for(let F of this.eventSubscriptions.values())this.removeEventListener(F.type,F.listener,F.options);this.eventSubscriptions.clear()}registerCleanupCallback(F){this.reactiveHost.registerCleanupCallback(F)}registerConnectedCallback(F){this.reactiveHost.registerConnectedCallback(F)}registerEventEmitter(F,M){this.eventEmitters.set(F,M)}getRef(F,M=!1){let H=`[data-ref="${F}"]`;if(M)return Array.from(this.querySelectorAll(H));return this.querySelector(H)??null}getSlotElement(F){return this.getSlotElements(F)[0]??null}getSlotElements(F){return this.ensureSlotProjectionState(),(this.projectedSlotContent.get(F??Y)??[]).filter((M)=>typeof Node<"u"&&M instanceof Element)}createReactiveField(F,M,H={}){this.reactiveHost.createReactiveField(F,M,H)}createReactiveProp(F,M){let{type:H,attribute:$,reflect:P,defaultValue:x}=M,W=$??F;if(x!==void 0&&!U(H,x))throw Error(`defaultValue does not match the expected type for ${H.name}`);let j=OF(this,H,W,x);if(this.hasAttribute(W)&&(!P||j==null||j===""))this.removeAttribute(W);let X={type:H,name:F,value:j,initialValue:j,attribute:W,converter:{fromAttribute:(Z)=>z(Z,H),toAttribute:(Z)=>w(Z,H)}};this.registerReactiveProperty(X);let B=(Z)=>{if(P)if(Z==null||Z===""||Z===!1)this.removeAttribute(W);else{let Q=X.converter.toAttribute(Z);this.setAttribute(W,Q)}};if(this.reactiveHost.defineReactiveAccessor(F,{bind:M.bind,getValue:()=>this.reactiveProperties.get(F)?.value,setValue:(Z)=>{this.reactiveProperties.set(F,{...X,value:Z}),B(Z)}}),j!==void 0)queueMicrotask(()=>{let Z=this.reactiveProperties.get(F)?.value;if(Z===void 0)return;B(Z),this.notifyUpdate(F,void 0,Z)})}ensureSlotProjectionState(){if(this.projectedSlotContent.size>0)return;let F=this.isConnected?LF(this):void 0;if(typeof F==="string"&&F!==""){this.projectedSlotContent=GF(F),this.slotProjectionVersion+=1;return}if(this.getHostChildNodeCount()>0)this.projectedSlotContent=BF(this),this.slotProjectionVersion+=1}getHostChildNodeCount(){return"childNodes"in this&&this.childNodes?this.childNodes.length:0}getSlotProjectionScriptTag(){this.ensureSlotProjectionState();let F=RF(this.projectedSlotContent);if(!F)return;return`<script type="application/json" ${E}>${bM(F)}</script>`}getAuthoredHydrationScriptMarkup(){let F=QF(this);if(F)return F;return}handleSlotProjectionMutations(F){let M=!1;for(let H of F){for(let $ of Array.from(H.removedNodes))if(this.removeProjectedSlotNode($))M=!0;for(let $ of Array.from(H.addedNodes)){if($.parentNode!==this)continue;if(this.addProjectedSlotNode($))M=!0}}if(M)this.slotProjectionVersion+=1,this.update()}addProjectedSlotNode(F){if(F instanceof HTMLScriptElement&&(F.hasAttribute(E)||F.hasAttribute(J)))return!1;let M=F instanceof Element?F.getAttribute("slot")??Y:Y,H=this.projectedSlotContent.get(M);if(H){if(H.includes(F))return!1;return H.push(F),!0}return this.projectedSlotContent.set(M,[F]),!0}removeProjectedSlotNode(F){for(let[M,H]of this.projectedSlotContent.entries()){let $=H.indexOf(F);if($===-1)continue;if(H.splice($,1),H.length===0)this.projectedSlotContent.delete(M);return!0}return!1}observeSlotProjection(){if(typeof MutationObserver>"u"||this.slotProjectionObserver||!this.isConnected)return;this.slotProjectionObserver=new MutationObserver((F)=>this.handleSlotProjectionMutations(F)),this.slotProjectionObserver.observe(this,{childList:!0})}disconnectSlotProjectionObserver(){this.slotProjectionObserver?.disconnect(),this.slotProjectionObserver=void 0}disconnectRenderWatcher(){if(!this.renderSignal)return;this.renderWatcher.unwatch(this.renderSignal),this.renderSignal=void 0}resolveTrackedRenderOutput(){let F=new wM(()=>this.resolveRenderOutput()),M=F.get();if(!this.isConnected)return M;if(this.renderSignal)this.renderWatcher.unwatch(this.renderSignal);return this.renderSignal=F,this.renderWatcher.watch(F),M}resolveRenderOutput(){return this.ensureSlotProjectionState(),UF(this.render(),this.projectedSlotContent)}}function C(){let F=zF();if(!F)throw Error("Radiant SSR runtime is unavailable. Import `@ecopages/radiant/server/render-component` before using instance SSR methods.");return F}function IF(F){return AF()&&OM(F)}function bM(F){return F.replace(/</g,"\\u003c")}import{render as NM}from"@ecopages/jsx";import{Computed as vM,subtle as hM}from"@ecopages/signals";class SF{host;element;bindings;$;reactiveHost;connected=!1;isRendering=!1;isRenderScheduled=!1;needsRender=!1;renderSignal;renderWatcher=new hM.Watcher(()=>{this.requestUpdate()});constructor(F){this.host=F,this.element=F,this.reactiveHost=new k(this,{defineProperty:(M,H,$)=>Object.defineProperty(M,H,$),hasProperty:(M,H)=>(H in M),readProperty:(M,H)=>M[H]},()=>this.shouldAutoBindReactiveMembers()),this.bindings=this.reactiveHost.bindings,this.$=this.reactiveHost.$,I(this)}connect(){if(this.connected=!0,this.reactiveHost.connectHost(),this.shouldRunRenderLifecycle())this.update()}connectForSsrRender(){this.connected=!0,this.reactiveHost.connectHost()}disconnect(){this.connected=!1,this.disconnectRenderWatcher(),this.reactiveHost.disconnectHost()}disconnectForSsrRender(){this.disconnectRenderWatcher(),this.reactiveHost.disconnectHost(),this.connected=!1}get isConnected(){return this.connected}render(){return null}requestUpdate(){if(!this.shouldRunRenderLifecycle())return;if(this.needsRender=!0,this.isRenderScheduled)return;this.isRenderScheduled=!0,queueMicrotask(()=>{if(this.isRenderScheduled=!1,!this.needsRender)return;this.update()})}update(){if(!this.shouldRunRenderLifecycle())return;let F=this.getRenderTarget();if(!F)return;if(this.needsRender=!0,!this.connected||this.isRendering)return;while(this.needsRender){this.needsRender=!1,this.isRendering=!0;try{NM(this.resolveTrackedRenderOutput(),F)}finally{this.isRendering=!1}}}bind(F){return this.reactiveHost.bind(F)}getReactiveBinding(F){return this.reactiveHost.getReactiveBinding(F)}createReactiveField(F,M,H={}){this.reactiveHost.createReactiveField(F,M,H)}createReactiveProp(F,M){let{type:H,defaultValue:$,bind:P}=M;if($!==void 0&&!U(H,$))throw Error(`defaultValue does not match the expected type for ${H.name}`);let x=Object.getOwnPropertyDescriptor(this.host,F),W=this.host,X=W[F]??$??K(H);this.reactiveHost.defineReactiveAccessor(F,{bind:P,getValue:()=>X,setValue:(B)=>{X=B},notifyInitialValue:X}),Object.defineProperty(this.host,F,{get:()=>this[F],set:(B)=>{this[F]=B},enumerable:x?.enumerable??!0,configurable:!0}),this.registerCleanupCallback(()=>{let B=this[F];if(x){if(Object.defineProperty(this.host,F,x),"value"in x&&x.writable)W[F]=B;return}delete W[F];try{W[F]=B}catch{Object.defineProperty(this.host,F,{value:B,writable:!0,enumerable:!0,configurable:!0})}})}defineReactiveBinding(F,M=!0){this.reactiveHost.defineReactiveBinding(F,M)}notifyUpdate(F,M,H){this.reactiveHost.notifyUpdate(F,M,H)}registerUpdateCallback(F,M){return this.reactiveHost.registerUpdateCallback(F,M)}connectedContextCallback(F){}registerContextProvider(F,M){}registerHydrationBinding(F,M){}registerCleanupCallback(F){this.reactiveHost.registerCleanupCallback(F)}registerConnectedCallback(F){this.reactiveHost.registerConnectedCallback(F)}registerReactiveDependencyReader(F,M){this.reactiveHost.registerReactiveDependencyReader(F,M)}trackReactiveRead(F){this.reactiveHost.trackReactiveRead(F)}addEventListener(F,M,H){this.host.addEventListener(F,M,H)}removeEventListener(F,M,H){this.host.removeEventListener(F,M,H)}dispatchEvent(F){return this.host.dispatchEvent(F)}getRef(F,M=!1){let H=`[data-ref="${F}"]`;if(M)return Array.from(this.host.querySelectorAll(H));return this.host.querySelector(H)??null}shouldAutoBindReactiveMembers(){return!0}shouldRunRenderLifecycle(){return this.render!==SF.prototype.render}getRenderTarget(){return this.host instanceof HTMLElement?this.host:null}disconnectRenderWatcher(){if(!this.renderSignal)return;this.renderWatcher.unwatch(this.renderSignal),this.renderSignal=void 0}resolveTrackedRenderOutput(){let F=new vM(()=>this.render()),M=F.get();if(!this.connected)return M;if(this.renderSignal)this.renderWatcher.unwatch(this.renderSignal);return this.renderSignal=F,this.renderWatcher.watch(F),M}}var EF=Symbol.for("@ecopages/radiant.controllerIdentifier");function o(F,M){F[EF]=M}function hH(F){return F[EF]}var b="data-controller",wF=Symbol.for("@ecopages/radiant.controller-registry-state");function gM(){let F=globalThis,M=F[wF];if(M)return M;let H={activeRuntimes:new Set,controllerRegistrationStrategy:"keep-current",controllerRegistry:new Map};return F[wF]=H,H}var N=gM(),_=N.controllerRegistry,T=N.activeRuntimes;function CF(F){let M=F.getAttribute(b);if(!M)return[];return M.split(/\s+/).map((H)=>H.trim()).filter((H)=>H.length>0)}function f(F,M){if(F instanceof Element&&F.hasAttribute(b))M(F);for(let H of Array.from(F.querySelectorAll(`[${b}]`)))M(H)}class VF{root;controllersByElement=new Map;observer;stopped=!1;constructor(F=document){this.root=F;this.start()}stop(){if(this.stopped)return;this.stopped=!0,this.observer?.disconnect(),this.observer=void 0;for(let[F,M]of this.controllersByElement)for(let[H]of M)this.disconnectController(F,H);T.delete(this)}reconcileRegisteredController(F){f(this.root,(M)=>{if(!CF(M).includes(F))return;this.connectController(M,F)})}replaceRegisteredController(F){for(let[M,H]of Array.from(this.controllersByElement.entries())){if(!H.has(F))continue;this.disconnectController(M,F)}this.reconcileRegisteredController(F)}start(){if(f(this.root,(M)=>{this.reconcileElement(M)}),typeof MutationObserver>"u"){T.add(this);return}this.observer=new MutationObserver((M)=>{for(let H of M){if(H.type==="attributes"&&H.target instanceof Element){this.reconcileElement(H.target);continue}for(let $ of Array.from(H.removedNodes)){if(!($ instanceof Element))continue;f($,(P)=>{this.disconnectElementControllers(P)})}for(let $ of Array.from(H.addedNodes)){if(!($ instanceof Element))continue;f($,(P)=>{this.reconcileElement(P)})}}});let F=this.root instanceof Document?this.root.documentElement:this.root;this.observer.observe(F,{attributeFilter:[b],attributes:!0,childList:!0,subtree:!0}),T.add(this)}reconcileElement(F){let M=new Set(CF(F)),H=this.controllersByElement.get(F);if(H){for(let $ of H.keys())if(!M.has($))this.disconnectController(F,$)}for(let $ of M)this.connectController(F,$)}connectController(F,M){let H=_.get(M);if(!H)return;let $=this.controllersByElement.get(F);if(!$)$=new Map,this.controllersByElement.set(F,$);if($.has(M))return;let P=new H(F);$.set(M,P),P.connect()}disconnectController(F,M){let H=this.controllersByElement.get(F);if(!H)return;let $=H.get(M);if(!$)return;if($.disconnect(),H.delete(M),H.size===0)this.controllersByElement.delete(F)}disconnectElementControllers(F){let M=this.controllersByElement.get(F);if(!M)return;for(let H of Array.from(M.keys()))this.disconnectController(F,H)}}function uM(F,M){let H=_.get(F);if(H)return H;o(M,F),_.set(F,M);for(let $ of Array.from(T))$.reconcileRegisteredController(F);return M}function mH(F){return _.has(F)}function mM(F,M){if(_.get(F)===M)return M;o(M,F),_.set(F,M);for(let $ of Array.from(T))$.replaceRegisteredController(F);return M}function fF(F){N.controllerRegistrationStrategy=F}function yH(){fF("replace")}function cH(){fF("keep-current")}function bF(F,M){if(N.controllerRegistrationStrategy==="replace")return mM(F,M);return uM(F,M)}function sH(F=document){return new VF(F)}function dH(){for(let F of Array.from(T))F.stop()}function yM(F){return typeof F==="function"}function R(F,M,H,$){if(typeof $==="object")return F(void 0,$);return M(H,$)}function L(F,M,H,$,P){if(typeof $==="object"){if(!yM(H))throw TypeError("Standard method decorators require a method target");return F(H,$)}if(!P)throw TypeError("Legacy method decorators require a property descriptor");return M(H,$,P)}function a(F){if(F instanceof Element)return F;if("host"in F)return F.host;return F.element}function cM(F){return F.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase()}function sM(F,M){if(M.converter?.fromAttribute){let H=M.converter.fromAttribute(F);if(F===null&&H===void 0&&"defaultValue"in M)return M.defaultValue;return H}if(M.type){if(F===null)return M.defaultValue??K(M.type);if(M.type===Boolean&&F==="")return!0;return z(F,M.type)}if(F===null)return M.defaultValue;return F}function D(F,M,H){return sM(a(F).getAttribute(M),H)}function dM(F,M,H,$){let P=$.converter?.toAttribute?$.converter.toAttribute(H):$.type?w(H,$.type):H==null?null:String(H);if(P===null){F.removeAttribute(M);return}F.setAttribute(M,P)}function v(F,M,H={}){if(H.type&&H.defaultValue!==void 0&&!U(H.type,H.defaultValue))throw Error(`defaultValue does not match the expected type for ${H.type.name}`);let $=F,P=H.source??cM(M),x=Symbol(`@ecopages/radiant/attr:${M}:observer`),W=Symbol(`@ecopages/radiant/attr:${M}:last-value`),j=H.bind??F.shouldAutoBindReactiveMembers?.()??!1;F.defineReactiveBinding(M,j),F.registerReactiveDependencyReader(M,()=>D(F,P,H)),$[W]=D(F,P,H),Object.defineProperty(F,M,{get(){return F.trackReactiveRead(M),D(this,P,H)},set(Z){let Q=a(this),q=D(this,P,H);dM(Q,P,Z,H);let A=D(this,P,H);if(Object.is(q,A))return;this[W]=A,F.notifyUpdate(M,q,A)},enumerable:!0,configurable:!0});let X=()=>{$[x]?.disconnect()},B=()=>{let Z=D(F,P,H),Q=$[W];if(!Object.is(Q,Z))$[W]=Z,F.notifyUpdate(M,Q,Z);if(typeof MutationObserver>"u")return;let q=a(F);X();let A=new MutationObserver(()=>{let d=D(F,P,H),FF=$[W];if(Object.is(FF,d))return;$[W]=d,F.notifyUpdate(M,FF,d)});A.observe(q,{attributeFilter:[P],attributes:!0}),$[x]=A};B(),F.registerConnectedCallback(B),F.registerCleanupCallback(X)}function NF(F={}){return(M,H)=>{let $=Symbol(`@ecopages/radiant/attr:${H}:installed`);G(M,(P)=>{P.registerConnectedCallback(()=>{if(P[$])return;let x=P[H],W=F.defaultValue===void 0?x:F.defaultValue;v(P,H,{...F,defaultValue:W}),P[$]=!0})})}}function vF(F={}){return function(M,H){let $=String(H.name),P=Symbol(`@ecopages/radiant/attr:${$}:initializer`);return H.addInitializer(function(){let x=this[P],W=F.defaultValue===void 0?x:F.defaultValue;v(this,$,{...F,defaultValue:W})}),function(x){return this[P]=x,x}}}function $0(F={}){function M(H,$){return R(vF(F),NF(F),H,$)}return M}function hF(F,M,H){let $=H.value;return{configurable:!0,get(){if(this===F.prototype||Object.prototype.hasOwnProperty.call(this,M))return $;let P=$.bind(this);return Object.defineProperty(this,M,{value:P,configurable:!0,writable:!0}),P}}}function gF(F,M){let H=String(M.name);if(M.private)throw Error(`'bound' cannot decorate private properties like ${H}.`);M.addInitializer(function(){this[H]=this[H].bind(this)})}function B0(F,M,H){return L(gF,hF,F,M,H)}function R0(F){return function(M){return bF(F,M)}}var uF=Symbol.for("@ecopages/radiant.customElementTagName");function h(F,M){F[uF]=M}function L0(F){return F[uF]}function mF(F,M){return(H)=>{if(h(H,F),typeof customElements<"u"&&!customElements.get(F))customElements.define(F,H,M)}}function yF(F,M){return function(H,$){$.addInitializer(function(){if(h(this,F),typeof customElements<"u"&&!customElements.get(F))customElements.define(F,this,M)})}}function _0(F,M){function H($,P){if(typeof P<"u")return yF(F,M)($,P);return mF(F,M)($)}return H}function g(F,M){let H=null,$=null,P,x=()=>{if(H!==null)clearTimeout(H),H=null},W=()=>{if($===null)return P;let X=$;return $=null,x(),P=X(),P},j=function(...X){$=()=>F.apply(this,X),x(),H=setTimeout(()=>{W()},M)};return j.cancel=()=>{x(),$=null},j.flush=()=>{if($===null)return P;return W()},j.pending=()=>$!==null,j}function cF(F){return(M,H,$)=>{let P=$.value,x=new WeakMap;return $.value=function(...j){let X=x.get(this);if(!X)X=g((...B)=>{return P.apply(this,B)},F),x.set(this,X);X(...j)},$}}function sF(F){return(M)=>{let H=new WeakMap;return function(...$){let P=H.get(this);if(!P)P=g((...x)=>{return M.apply(this,x)},F),H.set(this,P);P(...$)}}}function f0(F){function M(H,$,P){return L(sF(F),cF(F),H,$,P)}return M}class t{host;eventConfig;constructor(F,M){this.host=F,this.eventConfig=M}emit(F){let M=new CustomEvent(this.eventConfig.name,{detail:F,bubbles:this.eventConfig.bubbles,cancelable:this.eventConfig.cancelable,composed:this.eventConfig.composed});this.host.dispatchEvent(M)}}function u(F,M){let H=new t(F,M);return F.registerEventEmitter(M.name,H),H}function dF(F){return(M,H)=>{G(M,($)=>{let P=u($,F);$.registerConnectedCallback(()=>{Object.defineProperty($,H,{get(){return P},enumerable:!0,configurable:!0})})})}}function pF(F){return function(M,H){H.addInitializer(function(){let $=u(this,F);Object.defineProperty(this,H.name,{get(){return $},enumerable:!0,configurable:!0})})}}function i0(F){function M(H,$){return R(pF(F),dF(F),H,$)}return M}var m=Symbol("radiant.shadowRootListenerHooks"),iF=Symbol("radiant.patchedAttachShadow");function nF(F){if(F instanceof Element)return F;if("host"in F)return F.host;return F.element}function pM(F){return!(F instanceof Element)}function lF(F,M,H,$){let P=(x)=>{if(x.target instanceof Element&&x.target.matches(H))$(x)};return F.addEventListener(M.type,P,M.options),()=>{F.removeEventListener(M.type,P,M.options)}}function iM(F,M){let H=nF(F);if(!H[m])H[m]=new Set;if(H[m].add(M),H[iF])return;let $=H.attachShadow;H.attachShadow=function(x){let W=$.call(this,x);for(let j of H[m]??[])j();return W},H[iF]=!0}function y(F,M,H){if(pM(F)&&"scope"in M&&M.scope&&M.scope!=="light")throw Error("RadiantController event listeners only support light DOM scope.");let $=nF(F),P=H.bind(F),x=null,W=null,j=null,X=null,B=!1,Z=()=>{x?.(),W?.(),j?.(),X?.(),x=null,W=null,j=null,X=null},Q=()=>{if(B)return;if("window"in M&&!x)window.addEventListener(M.type,P,M.options),x=()=>{window.removeEventListener(M.type,P,M.options)};if("document"in M&&!W)document.addEventListener(M.type,P,M.options),W=()=>{document.removeEventListener(M.type,P,M.options)};if("selector"in M||"ref"in M){let q="selector"in M?M.selector:`[data-ref='${CSS.escape(M.ref)}']`;if(M.scope!=="shadow"&&!j)j=lF($,M,q,P);if(M.scope!=="light"&&$.shadowRoot&&!X)X=lF($.shadowRoot,M,q,P)}};if("selector"in M||"ref"in M){if(M.scope!=="light")iM(F,()=>{if(F.isConnected)Q()})}if(F.registerConnectedCallback(Q),F.registerCleanupCallback(Z),F.isConnected)Q();return()=>{B=!0,Z()}}function rF(F){return(M,H,$)=>{let P=$.value;return G(M,(x)=>{y(x,F,P.bind(x))}),$}}function oF(F){return function(M,H){H.addInitializer(function(){y(this,F,M.bind(this))})}}function $2(F){function M(H,$,P){return L(oF(F),rF(F),H,$,P)}return M}function aF(F){return(M,H)=>{let $=Symbol(`@ecopages/radiant/on-updated:${H}:cleanup`);G(M,(P)=>{P.registerConnectedCallback(()=>{let x=P[H].bind(P),W=[];if(Array.isArray(F))for(let j of F)W.push(P.registerUpdateCallback(j,x));else if(typeof F==="string")W.push(P.registerUpdateCallback(F,x));P[$]=()=>{for(let j of W)j()}}),P.registerCleanupCallback(()=>{let x=P[$];if(typeof x==="function")x(),delete P[$]})})}}function tF(F){return function(M,H){H.addInitializer(function(){let $=M.bind(this);if(Object.defineProperty(this,H.name,{value:$,configurable:!0,writable:!0}),Array.isArray(F))for(let P of F)this.registerUpdateCallback(P,$);else if(typeof F==="string")this.registerUpdateCallback(F,$)})}}function G2(F){function M(H,$,P){return L(tF(F),aF(F),H,$,P)}return M}var e=Symbol.for("@ecopages/radiant.reactivePropDefinitions");function c(F,M,H){let $=F.constructor,P=$[e]??[];if(P.some((x)=>x.name===M))return;P.push({name:M,options:H}),$[e]=P}function R2(F){return(F.constructor[e]??[]).slice()}function eF({type:F,attribute:M,reflect:H,defaultValue:$,bind:P}){if($!==void 0&&!U(F,$))throw Error(`defaultValue does not match the expected type for ${F.name}`);return(x,W)=>{let j=M??W;c(x,W,{type:F,reflect:H,attribute:j,defaultValue:$,bind:P});let X=Symbol.for(`@ecopages/radiant.ssr-prop:${W}`);Object.defineProperty(x,W,{get(){return this[X]??$},set(B){this[X]=B},configurable:!0,enumerable:!0}),G(x,(B)=>{B.registerConnectedCallback(()=>{let Z=B[W],Q=$===void 0?Z:$;B.createReactiveProp(W,{type:F,reflect:H,attribute:j,defaultValue:Q,bind:P})})})}}function FM({type:F,attribute:M,reflect:H,defaultValue:$,bind:P}){if($!==void 0&&!U(F,$))throw Error(`defaultValue does not match the expected type for ${F.name}`);return function(x,W){let j=String(W.name),X=M??j,B=Symbol(`@ecopages/radiant/reactive-prop:${j}:initializer`);return W.addInitializer(function(){let Z=this[B],Q=$===void 0?Z:$;c(this,j,{type:F,reflect:H,attribute:X,defaultValue:$,bind:P}),this.createReactiveProp(j,{type:F,reflect:H,attribute:X,defaultValue:Q,bind:P})}),function(Z){return this[B]=Z,Z}}}function K2(F){function M(H,$){return R(FM(F),eF(F),H,$)}return M}function lM(F){return!(F instanceof Element)}function nM(F){return"shadowRoot"in F?F.shadowRoot??null:null}function rM(F){return F instanceof Element?F:F.host}function oM(F,M="light"){let H=nM(F);if(M==="shadow")return H?[H]:[];if(M==="both")return H?[F,H]:[F];return[F]}function s(F,M){if(lM(F)&&M.scope&&M.scope!=="light")throw Error("RadiantController queries only support light DOM scope.");let H=rM(F),$="selector"in M?M.selector:`[data-ref="${M.ref}"]`,P=null,x=()=>{let W=oM(H,M.scope);if(M.all)return W.flatMap((j)=>Array.from(j.querySelectorAll($)));for(let j of W){let X=j.querySelector($);if(X)return X}return null};return{get value(){if(M.cache){if(P===null||M.all&&Array.isArray(P)&&!P.length)P=x();return P}return x()}}}function MM({cache:F=!0,...M}){return(H,$)=>{G(H,(P)=>{P.registerConnectedCallback(()=>{let x=s(P,{cache:F,...M});Object.defineProperty(P,$,{get(){return x.value},enumerable:!0,configurable:!0})})})}}function HM(F){return function(M,H){let $=String(H.name);H.addInitializer(function(){let P=s(this,F);Object.defineProperty(this,$,{get(){return P.value},enumerable:!0,configurable:!0})})}}function v2(F){function M(H,$){return R(HM(F),MM(F),H,$)}return M}function O(F,M={}){let H=null,$,P=()=>{if(M.all)return typeof F.getSlotElements==="function"?F.getSlotElements(M.name):[];return typeof F.getSlotElement==="function"?F.getSlotElement(M.name):null};return{get value(){if(M.cache===!1)return P();let x=F.slotProjectionVersion??0;if($!==x)H=P(),$=x;return H}}}function $M(F={}){return(M,H)=>{let $=(W)=>{return typeof Object.getOwnPropertyDescriptor(W,H)?.get==="function"},P=(W)=>{if($(W))return;let j=O(W,F);Object.defineProperty(W,H,{get(){return j.value},enumerable:!0,configurable:!0})},x=new WeakMap;Object.defineProperty(M,H,{get(){let W=x.get(this);if(!W)W=O(this,F),x.set(this,W);return W.value},enumerable:!0,configurable:!0}),G(M,(W)=>{PF(W,()=>{P(W)}),W.registerConnectedCallback(()=>{P(W)})})}}function PM(F={}){return function(M,H){let $=String(H.name);H.addInitializer(function(){let P=O(this,F);Object.defineProperty(this,$,{get(){return P.value},enumerable:!0,configurable:!0})})}}function n2(F={}){function M(H,$){return R(PM(F),$M(F),H,$)}return M}function xM(F,M){G(F,(H)=>{H.registerConnectedCallback(()=>{H.createReactiveField(M,H[M],{bind:H.shouldAutoBindReactiveMembers?.()??!1})})})}function WM(F,M){let H=Symbol(`__${String(M.name)}__value`),$=String(M.name);return M.addInitializer(function(){this.defineReactiveBinding($,this.shouldAutoBindReactiveMembers?.()??!1),this.registerReactiveDependencyReader($,()=>this[H]),Object.defineProperty(this,M.name,{get(){return this.trackReactiveRead($),this[H]},set(P){let x=this[H];if(x!==P)this[H]=P,this.notifyUpdate($,x,P)},enumerable:!0,configurable:!0})}),function(P){return this[H]=P,P}}function H$(F,M){return R(WM,xM,F,M)}export{dH as stopControllers,H$ as state,sH as startControllers,fF as setControllerRegistrationStrategy,mM as replaceController,bF as registerControllerWithConfiguredStrategy,uM as registerController,n2 as querySlot,v2 as query,K2 as prop,G2 as onUpdated,$2 as onEvent,mH as hasRegisteredController,i0 as event,yH as enableControllerReplacementForHmr,cH as disableControllerReplacementForHmr,f0 as debounce,_0 as customElement,R0 as controller,B0 as bound,$0 as attr,V as RadiantElement,SF as RadiantController,VF as ControllerRegistryRuntime,b as CONTROLLER_ATTRIBUTE};
2
2
 
3
- //# debugId=9514635D470276B764756E2164756E21
3
+ //# debugId=1980B71C52BC7E8864756E2164756E21