@supersoniks/concorde 4.9.98-visual-stack.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1055) hide show
  1. package/README.md +17 -34
  2. package/build-infos.json +1 -1
  3. package/concorde-core.bundle.js +311 -293
  4. package/concorde-core.es.js +5195 -5129
  5. package/dist/concorde-core.bundle.js +311 -293
  6. package/dist/concorde-core.es.js +5195 -5129
  7. package/dist/docs-mock-api-sw.js +5 -1
  8. package/dist/docs-mock-api-sw.js.map +2 -2
  9. package/package.json +384 -1826
  10. package/public/docs-mock-api-sw.js +5 -1
  11. package/public/docs-mock-api-sw.js.map +2 -2
  12. package/scripts/post-build.mjs +10 -116
  13. package/scripts/pre-build.mjs +36 -119
  14. package/scripts/pre-publish.mjs +54 -76
  15. package/src/core/components/functional/jsonata/jsonata.md +2 -4
  16. package/src/core/components/functional/sdui/sdui.md +2 -2
  17. package/src/core/components/functional/sdui/sdui.ts +29 -40
  18. package/src/core/components/ui/button/button.ts +1 -2
  19. package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
  20. package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
  21. package/src/core/components/ui/form/input/input.ts +7 -13
  22. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
  23. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
  24. package/src/core/components/ui/form/radio/radio.ts +1 -1
  25. package/src/core/components/ui/form/select/select.ts +3 -6
  26. package/src/core/components/ui/form/textarea/textarea.ts +1 -2
  27. package/src/core/components/ui/pop/pop.ts +9 -0
  28. package/src/core/components/ui/toast/render-content.ts +13 -0
  29. package/src/core/components/ui/toast/toast-item.ts +40 -12
  30. package/src/core/components/ui/toast/toast.ts +54 -14
  31. package/src/core/components/ui/toast/types.ts +14 -2
  32. package/src/core/decorators/subscriber/derive.ts +3 -3
  33. package/src/core/mixins/Fetcher.ts +1 -1
  34. package/src/core/mixins/FormCheckable.ts +1 -8
  35. package/src/core/mixins/FormElement.ts +74 -76
  36. package/src/core/utils/HTML.ts +74 -107
  37. package/src/core/utils/PublisherProxy.ts +6 -29
  38. package/src/core/utils/jsonataHelpers.ts +0 -36
  39. package/src/docs/_core-concept/dataFlow.md +1 -3
  40. package/src/docs/_getting-started/create-a-component.md +1 -1
  41. package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
  42. package/src/docs/_misc/html-integration.md +2 -0
  43. package/src/docs/components/docs-demo-sources.ts +75 -377
  44. package/src/docs/docs.ts +1 -9
  45. package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
  46. package/src/docs/mock-api/router.ts +17 -1
  47. package/src/docs/navigation/navigation.ts +4 -25
  48. package/src/docs/search/docs-search.json +864 -2584
  49. package/src/tsconfig.json +313 -517
  50. package/src/tsconfig.tsbuildinfo +1 -1
  51. package/vite/config.js +30 -42
  52. package/vite.config.mts +12 -51
  53. package/dist/concorde-3d.bundle.js +0 -3960
  54. package/dist/concorde-3d.es.js +0 -33433
  55. package/dist/concorde-hugging-face-infer.bundle.js +0 -32
  56. package/dist/concorde-hugging-face-infer.es.js +0 -2952
  57. package/dist/concorde-shader.bundle.js +0 -116
  58. package/dist/concorde-shader.es.js +0 -8353
  59. package/dist/concorde-webgpu.bundle.js +0 -307
  60. package/dist/concorde-webgpu.es.js +0 -8627
  61. package/dist/docs/hf-samples/beach.jpg +0 -0
  62. package/dist/docs/hf-samples/cats.jpg +0 -0
  63. package/dist/docs/hf-samples/corgi.jpg +0 -0
  64. package/dist/docs/hf-samples/portrait.jpg +0 -0
  65. package/dist/docs/hf-samples/scene.jpg +0 -0
  66. package/dist/docs/hf-samples/singer.jpg +0 -0
  67. package/dist/docs/shader-samples/color.jpg +0 -0
  68. package/dist/docs/shader-samples/depth.png +0 -0
  69. package/dist/docs/shader-samples/impact.jpg +0 -0
  70. package/dist/docs/shader-samples/video.webm +0 -0
  71. package/dist/js/addons/3d.js +0 -6
  72. package/dist/js/addons/3d.js.map +0 -1
  73. package/dist/js/addons/hugging-face-infer.js +0 -8
  74. package/dist/js/addons/hugging-face-infer.js.map +0 -1
  75. package/dist/js/addons/shader.js +0 -6
  76. package/dist/js/addons/shader.js.map +0 -1
  77. package/dist/js/addons/webgpu.js +0 -7
  78. package/dist/js/addons/webgpu.js.map +0 -1
  79. package/dist/js/components.js +0 -12
  80. package/dist/js/components.js.map +0 -1
  81. package/dist/js/concorde-loaded.js +0 -5
  82. package/dist/js/concorde-loaded.js.map +0 -1
  83. package/dist/js/core/_types/endpoint.js +0 -5
  84. package/dist/js/core/_types/endpoint.js.map +0 -1
  85. package/dist/js/core/_types/key.js +0 -2
  86. package/dist/js/core/_types/key.js.map +0 -1
  87. package/dist/js/core/_types/types.js +0 -3
  88. package/dist/js/core/_types/types.js.map +0 -1
  89. package/dist/js/core/components/functional/3d/3d.js +0 -249
  90. package/dist/js/core/components/functional/3d/3d.js.map +0 -1
  91. package/dist/js/core/components/functional/3d/asset.js +0 -20
  92. package/dist/js/core/components/functional/3d/asset.js.map +0 -1
  93. package/dist/js/core/components/functional/3d/boot.js +0 -47
  94. package/dist/js/core/components/functional/3d/boot.js.map +0 -1
  95. package/dist/js/core/components/functional/3d/constants.js +0 -91
  96. package/dist/js/core/components/functional/3d/constants.js.map +0 -1
  97. package/dist/js/core/components/functional/3d/demo-content.js +0 -38
  98. package/dist/js/core/components/functional/3d/demo-content.js.map +0 -1
  99. package/dist/js/core/components/functional/3d/ensure.js +0 -76
  100. package/dist/js/core/components/functional/3d/ensure.js.map +0 -1
  101. package/dist/js/core/components/functional/3d/form-bind.js +0 -25
  102. package/dist/js/core/components/functional/3d/form-bind.js.map +0 -1
  103. package/dist/js/core/components/functional/3d/form-fields.js +0 -76
  104. package/dist/js/core/components/functional/3d/form-fields.js.map +0 -1
  105. package/dist/js/core/components/functional/3d/form-params.js +0 -69
  106. package/dist/js/core/components/functional/3d/form-params.js.map +0 -1
  107. package/dist/js/core/components/functional/3d/frame-capture.js +0 -108
  108. package/dist/js/core/components/functional/3d/frame-capture.js.map +0 -1
  109. package/dist/js/core/components/functional/3d/frame-source.js +0 -22
  110. package/dist/js/core/components/functional/3d/frame-source.js.map +0 -1
  111. package/dist/js/core/components/functional/3d/gl.js +0 -34
  112. package/dist/js/core/components/functional/3d/gl.js.map +0 -1
  113. package/dist/js/core/components/functional/3d/life.js +0 -56
  114. package/dist/js/core/components/functional/3d/life.js.map +0 -1
  115. package/dist/js/core/components/functional/3d/load.js +0 -109
  116. package/dist/js/core/components/functional/3d/load.js.map +0 -1
  117. package/dist/js/core/components/functional/3d/ops.js +0 -78
  118. package/dist/js/core/components/functional/3d/ops.js.map +0 -1
  119. package/dist/js/core/components/functional/3d/opts.js +0 -2
  120. package/dist/js/core/components/functional/3d/opts.js.map +0 -1
  121. package/dist/js/core/components/functional/3d/orbit.js +0 -136
  122. package/dist/js/core/components/functional/3d/orbit.js.map +0 -1
  123. package/dist/js/core/components/functional/3d/out-publish.js +0 -104
  124. package/dist/js/core/components/functional/3d/out-publish.js.map +0 -1
  125. package/dist/js/core/components/functional/3d/parse.js +0 -95
  126. package/dist/js/core/components/functional/3d/parse.js.map +0 -1
  127. package/dist/js/core/components/functional/3d/pick.js +0 -62
  128. package/dist/js/core/components/functional/3d/pick.js.map +0 -1
  129. package/dist/js/core/components/functional/3d/playback.js +0 -61
  130. package/dist/js/core/components/functional/3d/playback.js.map +0 -1
  131. package/dist/js/core/components/functional/3d/pointer.js +0 -58
  132. package/dist/js/core/components/functional/3d/pointer.js.map +0 -1
  133. package/dist/js/core/components/functional/3d/post-bind.js +0 -207
  134. package/dist/js/core/components/functional/3d/post-bind.js.map +0 -1
  135. package/dist/js/core/components/functional/3d/post-channels.js +0 -39
  136. package/dist/js/core/components/functional/3d/post-channels.js.map +0 -1
  137. package/dist/js/core/components/functional/3d/post-fx.js +0 -495
  138. package/dist/js/core/components/functional/3d/post-fx.js.map +0 -1
  139. package/dist/js/core/components/functional/3d/props.js +0 -247
  140. package/dist/js/core/components/functional/3d/props.js.map +0 -1
  141. package/dist/js/core/components/functional/3d/publisher-listen.js +0 -6
  142. package/dist/js/core/components/functional/3d/publisher-listen.js.map +0 -1
  143. package/dist/js/core/components/functional/3d/reload.js +0 -65
  144. package/dist/js/core/components/functional/3d/reload.js.map +0 -1
  145. package/dist/js/core/components/functional/3d/runtime.js +0 -193
  146. package/dist/js/core/components/functional/3d/runtime.js.map +0 -1
  147. package/dist/js/core/components/functional/3d/scene-runtime.js +0 -6
  148. package/dist/js/core/components/functional/3d/scene-runtime.js.map +0 -1
  149. package/dist/js/core/components/functional/3d/snapshot.js +0 -47
  150. package/dist/js/core/components/functional/3d/snapshot.js.map +0 -1
  151. package/dist/js/core/components/functional/3d/styles.js +0 -38
  152. package/dist/js/core/components/functional/3d/styles.js.map +0 -1
  153. package/dist/js/core/components/functional/3d/tune.js +0 -63
  154. package/dist/js/core/components/functional/3d/tune.js.map +0 -1
  155. package/dist/js/core/components/functional/3d/types.js +0 -8
  156. package/dist/js/core/components/functional/3d/types.js.map +0 -1
  157. package/dist/js/core/components/functional/3d/updated.js +0 -70
  158. package/dist/js/core/components/functional/3d/updated.js.map +0 -1
  159. package/dist/js/core/components/functional/3d/view.js +0 -40
  160. package/dist/js/core/components/functional/3d/view.js.map +0 -1
  161. package/dist/js/core/components/functional/3d/wire.js +0 -34
  162. package/dist/js/core/components/functional/3d/wire.js.map +0 -1
  163. package/dist/js/core/components/functional/date/date.js +0 -272
  164. package/dist/js/core/components/functional/date/date.js.map +0 -1
  165. package/dist/js/core/components/functional/example/example.js +0 -44
  166. package/dist/js/core/components/functional/example/example.js.map +0 -1
  167. package/dist/js/core/components/functional/fetch/fetch.js +0 -79
  168. package/dist/js/core/components/functional/fetch/fetch.js.map +0 -1
  169. package/dist/js/core/components/functional/functional.js +0 -18
  170. package/dist/js/core/components/functional/functional.js.map +0 -1
  171. package/dist/js/core/components/functional/if/if.js +0 -39
  172. package/dist/js/core/components/functional/if/if.js.map +0 -1
  173. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +0 -183
  174. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +0 -1
  175. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +0 -50
  176. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +0 -1
  177. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +0 -460
  178. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +0 -1
  179. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +0 -116
  180. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +0 -1
  181. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +0 -170
  182. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +0 -1
  183. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +0 -2
  184. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +0 -1
  185. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +0 -367
  186. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +0 -1
  187. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +0 -288
  188. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +0 -1
  189. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +0 -309
  190. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +0 -1
  191. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +0 -213
  192. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +0 -1
  193. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +0 -76
  194. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +0 -1
  195. package/dist/js/core/components/functional/infer/hugging-face/types.js +0 -62
  196. package/dist/js/core/components/functional/infer/hugging-face/types.js.map +0 -1
  197. package/dist/js/core/components/functional/jsonata/jsonata.js +0 -119
  198. package/dist/js/core/components/functional/jsonata/jsonata.js.map +0 -1
  199. package/dist/js/core/components/functional/list/list.js +0 -341
  200. package/dist/js/core/components/functional/list/list.js.map +0 -1
  201. package/dist/js/core/components/functional/mix/mix.js +0 -103
  202. package/dist/js/core/components/functional/mix/mix.js.map +0 -1
  203. package/dist/js/core/components/functional/queue/queue.js +0 -450
  204. package/dist/js/core/components/functional/queue/queue.js.map +0 -1
  205. package/dist/js/core/components/functional/router/redirect.js +0 -54
  206. package/dist/js/core/components/functional/router/redirect.js.map +0 -1
  207. package/dist/js/core/components/functional/router/router.js +0 -179
  208. package/dist/js/core/components/functional/router/router.js.map +0 -1
  209. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -216
  210. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +0 -1
  211. package/dist/js/core/components/functional/sdui/default-library.json +0 -108
  212. package/dist/js/core/components/functional/sdui/sdui-utils.js +0 -64
  213. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +0 -1
  214. package/dist/js/core/components/functional/sdui/sdui.js +0 -271
  215. package/dist/js/core/components/functional/sdui/sdui.js.map +0 -1
  216. package/dist/js/core/components/functional/sdui/types.js +0 -2
  217. package/dist/js/core/components/functional/sdui/types.js.map +0 -1
  218. package/dist/js/core/components/functional/shader/gl-runtime.js +0 -852
  219. package/dist/js/core/components/functional/shader/gl-runtime.js.map +0 -1
  220. package/dist/js/core/components/functional/shader/shader.js +0 -1739
  221. package/dist/js/core/components/functional/shader/shader.js.map +0 -1
  222. package/dist/js/core/components/functional/shader/shadertoy-prelude.js +0 -82
  223. package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +0 -1
  224. package/dist/js/core/components/functional/shader/types.js +0 -230
  225. package/dist/js/core/components/functional/shader/types.js.map +0 -1
  226. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +0 -22
  227. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +0 -1
  228. package/dist/js/core/components/functional/states/states.js +0 -172
  229. package/dist/js/core/components/functional/states/states.js.map +0 -1
  230. package/dist/js/core/components/functional/submit/submit.js +0 -284
  231. package/dist/js/core/components/functional/submit/submit.js.map +0 -1
  232. package/dist/js/core/components/functional/subscriber/subscriber.js +0 -39
  233. package/dist/js/core/components/functional/subscriber/subscriber.js.map +0 -1
  234. package/dist/js/core/components/functional/translation/translation.js +0 -28
  235. package/dist/js/core/components/functional/translation/translation.js.map +0 -1
  236. package/dist/js/core/components/functional/value/value.js +0 -28
  237. package/dist/js/core/components/functional/value/value.js.map +0 -1
  238. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +0 -117
  239. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +0 -1
  240. package/dist/js/core/components/functional/webgpu/form-bind.js +0 -92
  241. package/dist/js/core/components/functional/webgpu/form-bind.js.map +0 -1
  242. package/dist/js/core/components/functional/webgpu/gl-fallback.js +0 -156
  243. package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +0 -1
  244. package/dist/js/core/components/functional/webgpu/gpu-runtime.js +0 -407
  245. package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +0 -1
  246. package/dist/js/core/components/functional/webgpu/helpers.js +0 -50
  247. package/dist/js/core/components/functional/webgpu/helpers.js.map +0 -1
  248. package/dist/js/core/components/functional/webgpu/out-frame.js +0 -117
  249. package/dist/js/core/components/functional/webgpu/out-frame.js.map +0 -1
  250. package/dist/js/core/components/functional/webgpu/particles-runtime.js +0 -407
  251. package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +0 -1
  252. package/dist/js/core/components/functional/webgpu/pointer.js +0 -56
  253. package/dist/js/core/components/functional/webgpu/pointer.js.map +0 -1
  254. package/dist/js/core/components/functional/webgpu/types.js +0 -24
  255. package/dist/js/core/components/functional/webgpu/types.js.map +0 -1
  256. package/dist/js/core/components/functional/webgpu/webgpu.js +0 -709
  257. package/dist/js/core/components/functional/webgpu/webgpu.js.map +0 -1
  258. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +0 -77
  259. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +0 -1
  260. package/dist/js/core/components/ui/_css/scroll.js +0 -27
  261. package/dist/js/core/components/ui/_css/scroll.js.map +0 -1
  262. package/dist/js/core/components/ui/_css/shadow.js +0 -22
  263. package/dist/js/core/components/ui/_css/shadow.js.map +0 -1
  264. package/dist/js/core/components/ui/_css/size.js +0 -36
  265. package/dist/js/core/components/ui/_css/size.js.map +0 -1
  266. package/dist/js/core/components/ui/_css/type.js +0 -92
  267. package/dist/js/core/components/ui/_css/type.js.map +0 -1
  268. package/dist/js/core/components/ui/alert/alert.js +0 -213
  269. package/dist/js/core/components/ui/alert/alert.js.map +0 -1
  270. package/dist/js/core/components/ui/alert-messages/alert-messages.js +0 -68
  271. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +0 -1
  272. package/dist/js/core/components/ui/badge/badge.js +0 -199
  273. package/dist/js/core/components/ui/badge/badge.js.map +0 -1
  274. package/dist/js/core/components/ui/button/button.js +0 -697
  275. package/dist/js/core/components/ui/button/button.js.map +0 -1
  276. package/dist/js/core/components/ui/captcha/altchaStyles.js +0 -226
  277. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +0 -1
  278. package/dist/js/core/components/ui/captcha/captcha.js +0 -167
  279. package/dist/js/core/components/ui/captcha/captcha.js.map +0 -1
  280. package/dist/js/core/components/ui/card/card-footer.js +0 -26
  281. package/dist/js/core/components/ui/card/card-footer.js.map +0 -1
  282. package/dist/js/core/components/ui/card/card-header-descripton.js +0 -30
  283. package/dist/js/core/components/ui/card/card-header-descripton.js.map +0 -1
  284. package/dist/js/core/components/ui/card/card-header.js +0 -79
  285. package/dist/js/core/components/ui/card/card-header.js.map +0 -1
  286. package/dist/js/core/components/ui/card/card-main.js +0 -26
  287. package/dist/js/core/components/ui/card/card-main.js.map +0 -1
  288. package/dist/js/core/components/ui/card/card.js +0 -67
  289. package/dist/js/core/components/ui/card/card.js.map +0 -1
  290. package/dist/js/core/components/ui/divider/divider.js +0 -200
  291. package/dist/js/core/components/ui/divider/divider.js.map +0 -1
  292. package/dist/js/core/components/ui/form/checkbox/checkbox.js +0 -257
  293. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +0 -1
  294. package/dist/js/core/components/ui/form/css/form-control.js +0 -393
  295. package/dist/js/core/components/ui/form/css/form-control.js.map +0 -1
  296. package/dist/js/core/components/ui/form/fieldset/fieldset.js +0 -124
  297. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +0 -1
  298. package/dist/js/core/components/ui/form/fieldset/legend-description.js +0 -38
  299. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +0 -1
  300. package/dist/js/core/components/ui/form/fieldset/legend.js +0 -130
  301. package/dist/js/core/components/ui/form/fieldset/legend.js.map +0 -1
  302. package/dist/js/core/components/ui/form/form-actions/form-actions.js +0 -47
  303. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +0 -1
  304. package/dist/js/core/components/ui/form/form-layout/form-layout.js +0 -84
  305. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +0 -1
  306. package/dist/js/core/components/ui/form/input/input.js +0 -316
  307. package/dist/js/core/components/ui/form/input/input.js.map +0 -1
  308. package/dist/js/core/components/ui/form/input/password-helper.js +0 -134
  309. package/dist/js/core/components/ui/form/input/password-helper.js.map +0 -1
  310. package/dist/js/core/components/ui/form/input/same-value-helper.js +0 -85
  311. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +0 -1
  312. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -405
  313. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +0 -1
  314. package/dist/js/core/components/ui/form/radio/radio.js +0 -63
  315. package/dist/js/core/components/ui/form/radio/radio.js.map +0 -1
  316. package/dist/js/core/components/ui/form/select/select.js +0 -323
  317. package/dist/js/core/components/ui/form/select/select.js.map +0 -1
  318. package/dist/js/core/components/ui/form/switch/switch.js +0 -90
  319. package/dist/js/core/components/ui/form/switch/switch.js.map +0 -1
  320. package/dist/js/core/components/ui/form/textarea/textarea.js +0 -162
  321. package/dist/js/core/components/ui/form/textarea/textarea.js.map +0 -1
  322. package/dist/js/core/components/ui/group/group.js +0 -128
  323. package/dist/js/core/components/ui/group/group.js.map +0 -1
  324. package/dist/js/core/components/ui/icon/icon.js +0 -145
  325. package/dist/js/core/components/ui/icon/icon.js.map +0 -1
  326. package/dist/js/core/components/ui/icon/icons.js +0 -184
  327. package/dist/js/core/components/ui/icon/icons.js.map +0 -1
  328. package/dist/js/core/components/ui/icon/icons.json +0 -1
  329. package/dist/js/core/components/ui/image/image.js +0 -160
  330. package/dist/js/core/components/ui/image/image.js.map +0 -1
  331. package/dist/js/core/components/ui/link/link.js +0 -125
  332. package/dist/js/core/components/ui/link/link.js.map +0 -1
  333. package/dist/js/core/components/ui/loader/loader.js +0 -106
  334. package/dist/js/core/components/ui/loader/loader.js.map +0 -1
  335. package/dist/js/core/components/ui/loader/styles/fixed.js +0 -56
  336. package/dist/js/core/components/ui/loader/styles/fixed.js.map +0 -1
  337. package/dist/js/core/components/ui/loader/styles/inline.js +0 -70
  338. package/dist/js/core/components/ui/loader/styles/inline.js.map +0 -1
  339. package/dist/js/core/components/ui/menu/menu-item.js +0 -35
  340. package/dist/js/core/components/ui/menu/menu-item.js.map +0 -1
  341. package/dist/js/core/components/ui/menu/menu.js +0 -436
  342. package/dist/js/core/components/ui/menu/menu.js.map +0 -1
  343. package/dist/js/core/components/ui/modal/modal-actions.js +0 -44
  344. package/dist/js/core/components/ui/modal/modal-actions.js.map +0 -1
  345. package/dist/js/core/components/ui/modal/modal-close.js +0 -56
  346. package/dist/js/core/components/ui/modal/modal-close.js.map +0 -1
  347. package/dist/js/core/components/ui/modal/modal-content.js +0 -27
  348. package/dist/js/core/components/ui/modal/modal-content.js.map +0 -1
  349. package/dist/js/core/components/ui/modal/modal-subtitle.js +0 -34
  350. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +0 -1
  351. package/dist/js/core/components/ui/modal/modal-title.js +0 -35
  352. package/dist/js/core/components/ui/modal/modal-title.js.map +0 -1
  353. package/dist/js/core/components/ui/modal/modal-utils.js +0 -32
  354. package/dist/js/core/components/ui/modal/modal-utils.js.map +0 -1
  355. package/dist/js/core/components/ui/modal/modal.js +0 -568
  356. package/dist/js/core/components/ui/modal/modal.js.map +0 -1
  357. package/dist/js/core/components/ui/pop/pop.js +0 -337
  358. package/dist/js/core/components/ui/pop/pop.js.map +0 -1
  359. package/dist/js/core/components/ui/progress/progress.js +0 -164
  360. package/dist/js/core/components/ui/progress/progress.js.map +0 -1
  361. package/dist/js/core/components/ui/table/table-caption.js +0 -29
  362. package/dist/js/core/components/ui/table/table-caption.js.map +0 -1
  363. package/dist/js/core/components/ui/table/table-tbody.js +0 -41
  364. package/dist/js/core/components/ui/table/table-tbody.js.map +0 -1
  365. package/dist/js/core/components/ui/table/table-td.js +0 -69
  366. package/dist/js/core/components/ui/table/table-td.js.map +0 -1
  367. package/dist/js/core/components/ui/table/table-tfoot.js +0 -28
  368. package/dist/js/core/components/ui/table/table-tfoot.js.map +0 -1
  369. package/dist/js/core/components/ui/table/table-th.js +0 -80
  370. package/dist/js/core/components/ui/table/table-th.js.map +0 -1
  371. package/dist/js/core/components/ui/table/table-thead.js +0 -26
  372. package/dist/js/core/components/ui/table/table-thead.js.map +0 -1
  373. package/dist/js/core/components/ui/table/table-tr.js +0 -67
  374. package/dist/js/core/components/ui/table/table-tr.js.map +0 -1
  375. package/dist/js/core/components/ui/table/table.js +0 -106
  376. package/dist/js/core/components/ui/table/table.js.map +0 -1
  377. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +0 -74
  378. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +0 -1
  379. package/dist/js/core/components/ui/theme/theme-collection/dark.js +0 -39
  380. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +0 -1
  381. package/dist/js/core/components/ui/theme/theme-collection/light.js +0 -32
  382. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +0 -1
  383. package/dist/js/core/components/ui/theme/theme.js +0 -150
  384. package/dist/js/core/components/ui/theme/theme.js.map +0 -1
  385. package/dist/js/core/components/ui/toast/message-subscriber.js +0 -41
  386. package/dist/js/core/components/ui/toast/message-subscriber.js.map +0 -1
  387. package/dist/js/core/components/ui/toast/toast-item.js +0 -379
  388. package/dist/js/core/components/ui/toast/toast-item.js.map +0 -1
  389. package/dist/js/core/components/ui/toast/toast.js +0 -269
  390. package/dist/js/core/components/ui/toast/toast.js.map +0 -1
  391. package/dist/js/core/components/ui/toast/types.js +0 -2
  392. package/dist/js/core/components/ui/toast/types.js.map +0 -1
  393. package/dist/js/core/components/ui/tooltip/tooltip.js +0 -219
  394. package/dist/js/core/components/ui/tooltip/tooltip.js.map +0 -1
  395. package/dist/js/core/components/ui/ui.js +0 -41
  396. package/dist/js/core/components/ui/ui.js.map +0 -1
  397. package/dist/js/core/core.js +0 -14
  398. package/dist/js/core/core.js.map +0 -1
  399. package/dist/js/core/decorators/Subscriber.js +0 -10
  400. package/dist/js/core/decorators/Subscriber.js.map +0 -1
  401. package/dist/js/core/decorators/api.js +0 -806
  402. package/dist/js/core/decorators/api.js.map +0 -1
  403. package/dist/js/core/decorators/lifecycle.js +0 -67
  404. package/dist/js/core/decorators/lifecycle.js.map +0 -1
  405. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +0 -27
  406. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +0 -1
  407. package/dist/js/core/decorators/subscriber/autoFill.js +0 -26
  408. package/dist/js/core/decorators/subscriber/autoFill.js.map +0 -1
  409. package/dist/js/core/decorators/subscriber/autoSubscribe.js +0 -46
  410. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +0 -1
  411. package/dist/js/core/decorators/subscriber/bind.js +0 -150
  412. package/dist/js/core/decorators/subscriber/bind.js.map +0 -1
  413. package/dist/js/core/decorators/subscriber/common.js +0 -44
  414. package/dist/js/core/decorators/subscriber/common.js.map +0 -1
  415. package/dist/js/core/decorators/subscriber/derive.js +0 -60
  416. package/dist/js/core/decorators/subscriber/derive.js.map +0 -1
  417. package/dist/js/core/decorators/subscriber/dynamicPath.js +0 -75
  418. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +0 -1
  419. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +0 -138
  420. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +0 -1
  421. package/dist/js/core/decorators/subscriber/handle.js +0 -22
  422. package/dist/js/core/decorators/subscriber/handle.js.map +0 -1
  423. package/dist/js/core/decorators/subscriber/onAssign.js +0 -199
  424. package/dist/js/core/decorators/subscriber/onAssign.js.map +0 -1
  425. package/dist/js/core/decorators/subscriber/publish.js +0 -108
  426. package/dist/js/core/decorators/subscriber/publish.js.map +0 -1
  427. package/dist/js/core/decorators/subscriber/publisherPath.js +0 -16
  428. package/dist/js/core/decorators/subscriber/publisherPath.js.map +0 -1
  429. package/dist/js/core/decorators/subscriber/subscribe.js +0 -20
  430. package/dist/js/core/decorators/subscriber/subscribe.js.map +0 -1
  431. package/dist/js/core/directives/DataProvider.js +0 -127
  432. package/dist/js/core/directives/DataProvider.js.map +0 -1
  433. package/dist/js/core/directives/Wording.js +0 -221
  434. package/dist/js/core/directives/Wording.js.map +0 -1
  435. package/dist/js/core/mixins/Fetcher.js +0 -325
  436. package/dist/js/core/mixins/Fetcher.js.map +0 -1
  437. package/dist/js/core/mixins/FormCheckable.js +0 -313
  438. package/dist/js/core/mixins/FormCheckable.js.map +0 -1
  439. package/dist/js/core/mixins/FormElement.js +0 -304
  440. package/dist/js/core/mixins/FormElement.js.map +0 -1
  441. package/dist/js/core/mixins/FormInput.js +0 -82
  442. package/dist/js/core/mixins/FormInput.js.map +0 -1
  443. package/dist/js/core/mixins/Subscriber.js +0 -354
  444. package/dist/js/core/mixins/Subscriber.js.map +0 -1
  445. package/dist/js/core/mixins/TemplatesContainer.js +0 -70
  446. package/dist/js/core/mixins/TemplatesContainer.js.map +0 -1
  447. package/dist/js/core/mixins/mixins.js +0 -7
  448. package/dist/js/core/mixins/mixins.js.map +0 -1
  449. package/dist/js/core/utils/AncestorAttributeObserver.js +0 -140
  450. package/dist/js/core/utils/AncestorAttributeObserver.js.map +0 -1
  451. package/dist/js/core/utils/Arrays.js +0 -141
  452. package/dist/js/core/utils/Arrays.js.map +0 -1
  453. package/dist/js/core/utils/DataBindObserver.js +0 -265
  454. package/dist/js/core/utils/DataBindObserver.js.map +0 -1
  455. package/dist/js/core/utils/Electron.js +0 -14
  456. package/dist/js/core/utils/Electron.js.map +0 -1
  457. package/dist/js/core/utils/Format.js +0 -43
  458. package/dist/js/core/utils/Format.js.map +0 -1
  459. package/dist/js/core/utils/HTML.js +0 -307
  460. package/dist/js/core/utils/HTML.js.map +0 -1
  461. package/dist/js/core/utils/LocationHandler.js +0 -143
  462. package/dist/js/core/utils/LocationHandler.js.map +0 -1
  463. package/dist/js/core/utils/Objects.js +0 -111
  464. package/dist/js/core/utils/Objects.js.map +0 -1
  465. package/dist/js/core/utils/PublisherProxy.js +0 -970
  466. package/dist/js/core/utils/PublisherProxy.js.map +0 -1
  467. package/dist/js/core/utils/SafariScrollGuard.js +0 -384
  468. package/dist/js/core/utils/SafariScrollGuard.js.map +0 -1
  469. package/dist/js/core/utils/Utils.js +0 -19
  470. package/dist/js/core/utils/Utils.js.map +0 -1
  471. package/dist/js/core/utils/aesCrypto.js +0 -98
  472. package/dist/js/core/utils/aesCrypto.js.map +0 -1
  473. package/dist/js/core/utils/api.js +0 -595
  474. package/dist/js/core/utils/api.js.map +0 -1
  475. package/dist/js/core/utils/dataProviderKey.js +0 -64
  476. package/dist/js/core/utils/dataProviderKey.js.map +0 -1
  477. package/dist/js/core/utils/derive.js +0 -246
  478. package/dist/js/core/utils/derive.js.map +0 -1
  479. package/dist/js/core/utils/endpoint.js +0 -74
  480. package/dist/js/core/utils/endpoint.js.map +0 -1
  481. package/dist/js/core/utils/jsonataHelpers.js +0 -84
  482. package/dist/js/core/utils/jsonataHelpers.js.map +0 -1
  483. package/dist/js/core/utils/jsonataRuntime.js +0 -75
  484. package/dist/js/core/utils/jsonataRuntime.js.map +0 -1
  485. package/dist/js/core/utils/mediaRef.js +0 -206
  486. package/dist/js/core/utils/mediaRef.js.map +0 -1
  487. package/dist/js/core/utils/route.js +0 -149
  488. package/dist/js/core/utils/route.js.map +0 -1
  489. package/dist/js/core/utils/similarity.js +0 -44
  490. package/dist/js/core/utils/similarity.js.map +0 -1
  491. package/dist/js/core/utils/url-pattern.js +0 -3
  492. package/dist/js/core/utils/url-pattern.js.map +0 -1
  493. package/dist/js/dataprovider.js +0 -2
  494. package/dist/js/dataprovider.js.map +0 -1
  495. package/dist/js/decorators.js +0 -43
  496. package/dist/js/decorators.js.map +0 -1
  497. package/dist/js/directives.js +0 -30
  498. package/dist/js/directives.js.map +0 -1
  499. package/dist/js/index.js +0 -8
  500. package/dist/js/index.js.map +0 -1
  501. package/dist/js/mixins.js +0 -23
  502. package/dist/js/mixins.js.map +0 -1
  503. package/dist/js/test-utils/TestUtils.js +0 -10
  504. package/dist/js/test-utils/TestUtils.js.map +0 -1
  505. package/dist/js/utils.js +0 -46
  506. package/dist/js/utils.js.map +0 -1
  507. package/dist/types/addons/3d.d.ts +0 -6
  508. package/dist/types/addons/3d.d.ts.map +0 -1
  509. package/dist/types/addons/hugging-face-infer.d.ts +0 -8
  510. package/dist/types/addons/hugging-face-infer.d.ts.map +0 -1
  511. package/dist/types/addons/shader.d.ts +0 -6
  512. package/dist/types/addons/shader.d.ts.map +0 -1
  513. package/dist/types/addons/webgpu.d.ts +0 -7
  514. package/dist/types/addons/webgpu.d.ts.map +0 -1
  515. package/dist/types/components.d.ts +0 -5
  516. package/dist/types/components.d.ts.map +0 -1
  517. package/dist/types/concorde-loaded.d.ts +0 -2
  518. package/dist/types/concorde-loaded.d.ts.map +0 -1
  519. package/dist/types/core/_types/endpoint.d.ts +0 -5
  520. package/dist/types/core/_types/endpoint.d.ts.map +0 -1
  521. package/dist/types/core/_types/key.d.ts +0 -2
  522. package/dist/types/core/_types/key.d.ts.map +0 -1
  523. package/dist/types/core/_types/types.d.ts +0 -28
  524. package/dist/types/core/_types/types.d.ts.map +0 -1
  525. package/dist/types/core/components/functional/3d/3d.d.ts +0 -94
  526. package/dist/types/core/components/functional/3d/3d.d.ts.map +0 -1
  527. package/dist/types/core/components/functional/3d/asset.d.ts +0 -12
  528. package/dist/types/core/components/functional/3d/asset.d.ts.map +0 -1
  529. package/dist/types/core/components/functional/3d/boot.d.ts +0 -23
  530. package/dist/types/core/components/functional/3d/boot.d.ts.map +0 -1
  531. package/dist/types/core/components/functional/3d/constants.d.ts +0 -43
  532. package/dist/types/core/components/functional/3d/constants.d.ts.map +0 -1
  533. package/dist/types/core/components/functional/3d/demo-content.d.ts +0 -10
  534. package/dist/types/core/components/functional/3d/demo-content.d.ts.map +0 -1
  535. package/dist/types/core/components/functional/3d/ensure.d.ts +0 -39
  536. package/dist/types/core/components/functional/3d/ensure.d.ts.map +0 -1
  537. package/dist/types/core/components/functional/3d/form-bind.d.ts +0 -20
  538. package/dist/types/core/components/functional/3d/form-bind.d.ts.map +0 -1
  539. package/dist/types/core/components/functional/3d/form-fields.d.ts +0 -14
  540. package/dist/types/core/components/functional/3d/form-fields.d.ts.map +0 -1
  541. package/dist/types/core/components/functional/3d/form-params.d.ts +0 -37
  542. package/dist/types/core/components/functional/3d/form-params.d.ts.map +0 -1
  543. package/dist/types/core/components/functional/3d/frame-capture.d.ts +0 -33
  544. package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +0 -1
  545. package/dist/types/core/components/functional/3d/frame-source.d.ts +0 -23
  546. package/dist/types/core/components/functional/3d/frame-source.d.ts.map +0 -1
  547. package/dist/types/core/components/functional/3d/gl.d.ts +0 -4
  548. package/dist/types/core/components/functional/3d/gl.d.ts.map +0 -1
  549. package/dist/types/core/components/functional/3d/life.d.ts +0 -43
  550. package/dist/types/core/components/functional/3d/life.d.ts.map +0 -1
  551. package/dist/types/core/components/functional/3d/load.d.ts +0 -36
  552. package/dist/types/core/components/functional/3d/load.d.ts.map +0 -1
  553. package/dist/types/core/components/functional/3d/ops.d.ts +0 -48
  554. package/dist/types/core/components/functional/3d/ops.d.ts.map +0 -1
  555. package/dist/types/core/components/functional/3d/opts.d.ts +0 -16
  556. package/dist/types/core/components/functional/3d/opts.d.ts.map +0 -1
  557. package/dist/types/core/components/functional/3d/orbit.d.ts +0 -55
  558. package/dist/types/core/components/functional/3d/orbit.d.ts.map +0 -1
  559. package/dist/types/core/components/functional/3d/out-publish.d.ts +0 -48
  560. package/dist/types/core/components/functional/3d/out-publish.d.ts.map +0 -1
  561. package/dist/types/core/components/functional/3d/parse.d.ts +0 -23
  562. package/dist/types/core/components/functional/3d/parse.d.ts.map +0 -1
  563. package/dist/types/core/components/functional/3d/pick.d.ts +0 -32
  564. package/dist/types/core/components/functional/3d/pick.d.ts.map +0 -1
  565. package/dist/types/core/components/functional/3d/playback.d.ts +0 -35
  566. package/dist/types/core/components/functional/3d/playback.d.ts.map +0 -1
  567. package/dist/types/core/components/functional/3d/pointer.d.ts +0 -27
  568. package/dist/types/core/components/functional/3d/pointer.d.ts.map +0 -1
  569. package/dist/types/core/components/functional/3d/post-bind.d.ts +0 -52
  570. package/dist/types/core/components/functional/3d/post-bind.d.ts.map +0 -1
  571. package/dist/types/core/components/functional/3d/post-channels.d.ts +0 -40
  572. package/dist/types/core/components/functional/3d/post-channels.d.ts.map +0 -1
  573. package/dist/types/core/components/functional/3d/post-fx.d.ts +0 -73
  574. package/dist/types/core/components/functional/3d/post-fx.d.ts.map +0 -1
  575. package/dist/types/core/components/functional/3d/props.d.ts +0 -72
  576. package/dist/types/core/components/functional/3d/props.d.ts.map +0 -1
  577. package/dist/types/core/components/functional/3d/publisher-listen.d.ts +0 -8
  578. package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +0 -1
  579. package/dist/types/core/components/functional/3d/reload.d.ts +0 -38
  580. package/dist/types/core/components/functional/3d/reload.d.ts.map +0 -1
  581. package/dist/types/core/components/functional/3d/runtime.d.ts +0 -90
  582. package/dist/types/core/components/functional/3d/runtime.d.ts.map +0 -1
  583. package/dist/types/core/components/functional/3d/scene-runtime.d.ts +0 -6
  584. package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +0 -1
  585. package/dist/types/core/components/functional/3d/snapshot.d.ts +0 -29
  586. package/dist/types/core/components/functional/3d/snapshot.d.ts.map +0 -1
  587. package/dist/types/core/components/functional/3d/styles.d.ts +0 -2
  588. package/dist/types/core/components/functional/3d/styles.d.ts.map +0 -1
  589. package/dist/types/core/components/functional/3d/tune.d.ts +0 -37
  590. package/dist/types/core/components/functional/3d/tune.d.ts.map +0 -1
  591. package/dist/types/core/components/functional/3d/types.d.ts +0 -149
  592. package/dist/types/core/components/functional/3d/types.d.ts.map +0 -1
  593. package/dist/types/core/components/functional/3d/updated.d.ts +0 -7
  594. package/dist/types/core/components/functional/3d/updated.d.ts.map +0 -1
  595. package/dist/types/core/components/functional/3d/view.d.ts +0 -25
  596. package/dist/types/core/components/functional/3d/view.d.ts.map +0 -1
  597. package/dist/types/core/components/functional/3d/wire.d.ts +0 -32
  598. package/dist/types/core/components/functional/3d/wire.d.ts.map +0 -1
  599. package/dist/types/core/components/functional/date/date.d.ts +0 -52
  600. package/dist/types/core/components/functional/date/date.d.ts.map +0 -1
  601. package/dist/types/core/components/functional/example/example.d.ts +0 -15
  602. package/dist/types/core/components/functional/example/example.d.ts.map +0 -1
  603. package/dist/types/core/components/functional/fetch/fetch.d.ts +0 -102
  604. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +0 -1
  605. package/dist/types/core/components/functional/functional.d.ts +0 -18
  606. package/dist/types/core/components/functional/functional.d.ts.map +0 -1
  607. package/dist/types/core/components/functional/if/if.d.ts +0 -13
  608. package/dist/types/core/components/functional/if/if.d.ts.map +0 -1
  609. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +0 -21
  610. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +0 -1
  611. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +0 -133
  612. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +0 -1
  613. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +0 -79
  614. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +0 -1
  615. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +0 -43
  616. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +0 -1
  617. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +0 -47
  618. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +0 -1
  619. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +0 -95
  620. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +0 -1
  621. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +0 -77
  622. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +0 -1
  623. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +0 -1251
  624. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +0 -1
  625. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +0 -56
  626. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +0 -1
  627. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +0 -67
  628. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +0 -1
  629. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +0 -116
  630. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +0 -1
  631. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +0 -167
  632. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +0 -1
  633. package/dist/types/core/components/functional/jsonata/jsonata.d.ts +0 -29
  634. package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +0 -1
  635. package/dist/types/core/components/functional/list/list.d.ts +0 -149
  636. package/dist/types/core/components/functional/list/list.d.ts.map +0 -1
  637. package/dist/types/core/components/functional/mix/mix.d.ts +0 -23
  638. package/dist/types/core/components/functional/mix/mix.d.ts.map +0 -1
  639. package/dist/types/core/components/functional/queue/queue.d.ts +0 -93
  640. package/dist/types/core/components/functional/queue/queue.d.ts.map +0 -1
  641. package/dist/types/core/components/functional/router/redirect.d.ts +0 -19
  642. package/dist/types/core/components/functional/router/redirect.d.ts.map +0 -1
  643. package/dist/types/core/components/functional/router/router.d.ts +0 -46
  644. package/dist/types/core/components/functional/router/router.d.ts.map +0 -1
  645. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -59
  646. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +0 -1
  647. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +0 -6
  648. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +0 -1
  649. package/dist/types/core/components/functional/sdui/sdui.d.ts +0 -148
  650. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +0 -1
  651. package/dist/types/core/components/functional/sdui/types.d.ts +0 -38
  652. package/dist/types/core/components/functional/sdui/types.d.ts.map +0 -1
  653. package/dist/types/core/components/functional/shader/gl-runtime.d.ts +0 -122
  654. package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +0 -1
  655. package/dist/types/core/components/functional/shader/shader.d.ts +0 -306
  656. package/dist/types/core/components/functional/shader/shader.d.ts.map +0 -1
  657. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +0 -20
  658. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +0 -1
  659. package/dist/types/core/components/functional/shader/types.d.ts +0 -286
  660. package/dist/types/core/components/functional/shader/types.d.ts.map +0 -1
  661. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -6
  662. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +0 -1
  663. package/dist/types/core/components/functional/states/states.d.ts +0 -42
  664. package/dist/types/core/components/functional/states/states.d.ts.map +0 -1
  665. package/dist/types/core/components/functional/submit/submit.d.ts +0 -37
  666. package/dist/types/core/components/functional/submit/submit.d.ts.map +0 -1
  667. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +0 -13
  668. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +0 -1
  669. package/dist/types/core/components/functional/translation/translation.d.ts +0 -7
  670. package/dist/types/core/components/functional/translation/translation.d.ts.map +0 -1
  671. package/dist/types/core/components/functional/value/value.d.ts +0 -8
  672. package/dist/types/core/components/functional/value/value.d.ts.map +0 -1
  673. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +0 -29
  674. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +0 -1
  675. package/dist/types/core/components/functional/webgpu/form-bind.d.ts +0 -43
  676. package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +0 -1
  677. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +0 -35
  678. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +0 -1
  679. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +0 -67
  680. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +0 -1
  681. package/dist/types/core/components/functional/webgpu/helpers.d.ts +0 -10
  682. package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +0 -1
  683. package/dist/types/core/components/functional/webgpu/out-frame.d.ts +0 -29
  684. package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +0 -1
  685. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +0 -37
  686. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +0 -1
  687. package/dist/types/core/components/functional/webgpu/pointer.d.ts +0 -41
  688. package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +0 -1
  689. package/dist/types/core/components/functional/webgpu/types.d.ts +0 -75
  690. package/dist/types/core/components/functional/webgpu/types.d.ts.map +0 -1
  691. package/dist/types/core/components/functional/webgpu/webgpu.d.ts +0 -133
  692. package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +0 -1
  693. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +0 -8
  694. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +0 -1
  695. package/dist/types/core/components/ui/_css/scroll.d.ts +0 -2
  696. package/dist/types/core/components/ui/_css/scroll.d.ts.map +0 -1
  697. package/dist/types/core/components/ui/_css/shadow.d.ts +0 -3
  698. package/dist/types/core/components/ui/_css/shadow.d.ts.map +0 -1
  699. package/dist/types/core/components/ui/_css/size.d.ts +0 -3
  700. package/dist/types/core/components/ui/_css/size.d.ts.map +0 -1
  701. package/dist/types/core/components/ui/_css/type.d.ts +0 -3
  702. package/dist/types/core/components/ui/_css/type.d.ts.map +0 -1
  703. package/dist/types/core/components/ui/alert/alert.d.ts +0 -37
  704. package/dist/types/core/components/ui/alert/alert.d.ts.map +0 -1
  705. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +0 -15
  706. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +0 -1
  707. package/dist/types/core/components/ui/badge/badge.d.ts +0 -27
  708. package/dist/types/core/components/ui/badge/badge.d.ts.map +0 -1
  709. package/dist/types/core/components/ui/button/button.d.ts +0 -180
  710. package/dist/types/core/components/ui/button/button.d.ts.map +0 -1
  711. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +0 -2
  712. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +0 -1
  713. package/dist/types/core/components/ui/captcha/captcha.d.ts +0 -30
  714. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +0 -1
  715. package/dist/types/core/components/ui/card/card-footer.d.ts +0 -6
  716. package/dist/types/core/components/ui/card/card-footer.d.ts.map +0 -1
  717. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +0 -6
  718. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +0 -1
  719. package/dist/types/core/components/ui/card/card-header.d.ts +0 -9
  720. package/dist/types/core/components/ui/card/card-header.d.ts.map +0 -1
  721. package/dist/types/core/components/ui/card/card-main.d.ts +0 -6
  722. package/dist/types/core/components/ui/card/card-main.d.ts.map +0 -1
  723. package/dist/types/core/components/ui/card/card.d.ts +0 -13
  724. package/dist/types/core/components/ui/card/card.d.ts.map +0 -1
  725. package/dist/types/core/components/ui/divider/divider.d.ts +0 -16
  726. package/dist/types/core/components/ui/divider/divider.d.ts.map +0 -1
  727. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +0 -176
  728. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +0 -1
  729. package/dist/types/core/components/ui/form/css/form-control.d.ts +0 -5
  730. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +0 -1
  731. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +0 -24
  732. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +0 -1
  733. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +0 -6
  734. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +0 -1
  735. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +0 -17
  736. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +0 -1
  737. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +0 -8
  738. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +0 -1
  739. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +0 -13
  740. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +0 -1
  741. package/dist/types/core/components/ui/form/input/input.d.ts +0 -123
  742. package/dist/types/core/components/ui/form/input/input.d.ts.map +0 -1
  743. package/dist/types/core/components/ui/form/input/password-helper.d.ts +0 -26
  744. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +0 -1
  745. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +0 -17
  746. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +0 -1
  747. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -155
  748. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +0 -1
  749. package/dist/types/core/components/ui/form/radio/radio.d.ts +0 -15
  750. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +0 -1
  751. package/dist/types/core/components/ui/form/select/select.d.ts +0 -59
  752. package/dist/types/core/components/ui/form/select/select.d.ts.map +0 -1
  753. package/dist/types/core/components/ui/form/switch/switch.d.ts +0 -6
  754. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +0 -1
  755. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +0 -94
  756. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +0 -1
  757. package/dist/types/core/components/ui/group/group.d.ts +0 -17
  758. package/dist/types/core/components/ui/group/group.d.ts.map +0 -1
  759. package/dist/types/core/components/ui/icon/icon.d.ts +0 -30
  760. package/dist/types/core/components/ui/icon/icon.d.ts.map +0 -1
  761. package/dist/types/core/components/ui/icon/icons.d.ts +0 -13
  762. package/dist/types/core/components/ui/icon/icons.d.ts.map +0 -1
  763. package/dist/types/core/components/ui/image/image.d.ts +0 -16
  764. package/dist/types/core/components/ui/image/image.d.ts.map +0 -1
  765. package/dist/types/core/components/ui/link/link.d.ts +0 -30
  766. package/dist/types/core/components/ui/link/link.d.ts.map +0 -1
  767. package/dist/types/core/components/ui/loader/loader.d.ts +0 -24
  768. package/dist/types/core/components/ui/loader/loader.d.ts.map +0 -1
  769. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +0 -2
  770. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +0 -1
  771. package/dist/types/core/components/ui/loader/styles/inline.d.ts +0 -2
  772. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +0 -1
  773. package/dist/types/core/components/ui/menu/menu-item.d.ts +0 -6
  774. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +0 -1
  775. package/dist/types/core/components/ui/menu/menu.d.ts +0 -52
  776. package/dist/types/core/components/ui/menu/menu.d.ts.map +0 -1
  777. package/dist/types/core/components/ui/modal/modal-actions.d.ts +0 -9
  778. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +0 -1
  779. package/dist/types/core/components/ui/modal/modal-close.d.ts +0 -11
  780. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +0 -1
  781. package/dist/types/core/components/ui/modal/modal-content.d.ts +0 -6
  782. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +0 -1
  783. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +0 -6
  784. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +0 -1
  785. package/dist/types/core/components/ui/modal/modal-title.d.ts +0 -6
  786. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +0 -1
  787. package/dist/types/core/components/ui/modal/modal-utils.d.ts +0 -4
  788. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +0 -1
  789. package/dist/types/core/components/ui/modal/modal.d.ts +0 -79
  790. package/dist/types/core/components/ui/modal/modal.d.ts.map +0 -1
  791. package/dist/types/core/components/ui/pop/pop.d.ts +0 -42
  792. package/dist/types/core/components/ui/pop/pop.d.ts.map +0 -1
  793. package/dist/types/core/components/ui/progress/progress.d.ts +0 -12
  794. package/dist/types/core/components/ui/progress/progress.d.ts.map +0 -1
  795. package/dist/types/core/components/ui/table/table-caption.d.ts +0 -6
  796. package/dist/types/core/components/ui/table/table-caption.d.ts.map +0 -1
  797. package/dist/types/core/components/ui/table/table-tbody.d.ts +0 -6
  798. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +0 -1
  799. package/dist/types/core/components/ui/table/table-td.d.ts +0 -13
  800. package/dist/types/core/components/ui/table/table-td.d.ts.map +0 -1
  801. package/dist/types/core/components/ui/table/table-tfoot.d.ts +0 -6
  802. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +0 -1
  803. package/dist/types/core/components/ui/table/table-th.d.ts +0 -12
  804. package/dist/types/core/components/ui/table/table-th.d.ts.map +0 -1
  805. package/dist/types/core/components/ui/table/table-thead.d.ts +0 -6
  806. package/dist/types/core/components/ui/table/table-thead.d.ts.map +0 -1
  807. package/dist/types/core/components/ui/table/table-tr.d.ts +0 -14
  808. package/dist/types/core/components/ui/table/table-tr.d.ts.map +0 -1
  809. package/dist/types/core/components/ui/table/table.d.ts +0 -18
  810. package/dist/types/core/components/ui/table/table.d.ts.map +0 -1
  811. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -2
  812. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +0 -1
  813. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +0 -2
  814. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +0 -1
  815. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +0 -2
  816. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +0 -1
  817. package/dist/types/core/components/ui/theme/theme.d.ts +0 -20
  818. package/dist/types/core/components/ui/theme/theme.d.ts.map +0 -1
  819. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +0 -19
  820. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +0 -1
  821. package/dist/types/core/components/ui/toast/toast-item.d.ts +0 -41
  822. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +0 -1
  823. package/dist/types/core/components/ui/toast/toast.d.ts +0 -28
  824. package/dist/types/core/components/ui/toast/toast.d.ts.map +0 -1
  825. package/dist/types/core/components/ui/toast/types.d.ts +0 -12
  826. package/dist/types/core/components/ui/toast/types.d.ts.map +0 -1
  827. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +0 -21
  828. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +0 -1
  829. package/dist/types/core/components/ui/ui.d.ts +0 -35
  830. package/dist/types/core/components/ui/ui.d.ts.map +0 -1
  831. package/dist/types/core/core.d.ts +0 -5
  832. package/dist/types/core/core.d.ts.map +0 -1
  833. package/dist/types/core/decorators/Subscriber.d.ts +0 -13
  834. package/dist/types/core/decorators/Subscriber.d.ts.map +0 -1
  835. package/dist/types/core/decorators/api.d.ts +0 -155
  836. package/dist/types/core/decorators/api.d.ts.map +0 -1
  837. package/dist/types/core/decorators/lifecycle.d.ts +0 -19
  838. package/dist/types/core/decorators/lifecycle.d.ts.map +0 -1
  839. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +0 -11
  840. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +0 -1
  841. package/dist/types/core/decorators/subscriber/autoFill.d.ts +0 -2
  842. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +0 -1
  843. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +0 -2
  844. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +0 -1
  845. package/dist/types/core/decorators/subscriber/bind.d.ts +0 -28
  846. package/dist/types/core/decorators/subscriber/bind.d.ts.map +0 -1
  847. package/dist/types/core/decorators/subscriber/common.d.ts +0 -14
  848. package/dist/types/core/decorators/subscriber/common.d.ts.map +0 -1
  849. package/dist/types/core/decorators/subscriber/derive.d.ts +0 -30
  850. package/dist/types/core/decorators/subscriber/derive.d.ts.map +0 -1
  851. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +0 -23
  852. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +0 -1
  853. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +0 -42
  854. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +0 -1
  855. package/dist/types/core/decorators/subscriber/handle.d.ts +0 -74
  856. package/dist/types/core/decorators/subscriber/handle.d.ts.map +0 -1
  857. package/dist/types/core/decorators/subscriber/onAssign.d.ts +0 -53
  858. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +0 -1
  859. package/dist/types/core/decorators/subscriber/publish.d.ts +0 -23
  860. package/dist/types/core/decorators/subscriber/publish.d.ts.map +0 -1
  861. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +0 -3
  862. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +0 -1
  863. package/dist/types/core/decorators/subscriber/subscribe.d.ts +0 -20
  864. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +0 -1
  865. package/dist/types/core/directives/DataProvider.d.ts +0 -45
  866. package/dist/types/core/directives/DataProvider.d.ts.map +0 -1
  867. package/dist/types/core/directives/Wording.d.ts +0 -44
  868. package/dist/types/core/directives/Wording.d.ts.map +0 -1
  869. package/dist/types/core/mixins/Fetcher.d.ts +0 -108
  870. package/dist/types/core/mixins/Fetcher.d.ts.map +0 -1
  871. package/dist/types/core/mixins/FormCheckable.d.ts +0 -95
  872. package/dist/types/core/mixins/FormCheckable.d.ts.map +0 -1
  873. package/dist/types/core/mixins/FormElement.d.ts +0 -37
  874. package/dist/types/core/mixins/FormElement.d.ts.map +0 -1
  875. package/dist/types/core/mixins/FormInput.d.ts +0 -79
  876. package/dist/types/core/mixins/FormInput.d.ts.map +0 -1
  877. package/dist/types/core/mixins/Subscriber.d.ts +0 -38
  878. package/dist/types/core/mixins/Subscriber.d.ts.map +0 -1
  879. package/dist/types/core/mixins/TemplatesContainer.d.ts +0 -14
  880. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +0 -1
  881. package/dist/types/core/mixins/mixins.d.ts +0 -7
  882. package/dist/types/core/mixins/mixins.d.ts.map +0 -1
  883. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +0 -38
  884. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +0 -1
  885. package/dist/types/core/utils/Arrays.d.ts +0 -98
  886. package/dist/types/core/utils/Arrays.d.ts.map +0 -1
  887. package/dist/types/core/utils/DataBindObserver.d.ts +0 -84
  888. package/dist/types/core/utils/DataBindObserver.d.ts.map +0 -1
  889. package/dist/types/core/utils/Electron.d.ts +0 -8
  890. package/dist/types/core/utils/Electron.d.ts.map +0 -1
  891. package/dist/types/core/utils/Format.d.ts +0 -13
  892. package/dist/types/core/utils/Format.d.ts.map +0 -1
  893. package/dist/types/core/utils/HTML.d.ts +0 -59
  894. package/dist/types/core/utils/HTML.d.ts.map +0 -1
  895. package/dist/types/core/utils/LocationHandler.d.ts +0 -48
  896. package/dist/types/core/utils/LocationHandler.d.ts.map +0 -1
  897. package/dist/types/core/utils/Objects.d.ts +0 -31
  898. package/dist/types/core/utils/Objects.d.ts.map +0 -1
  899. package/dist/types/core/utils/PublisherProxy.d.ts +0 -230
  900. package/dist/types/core/utils/PublisherProxy.d.ts.map +0 -1
  901. package/dist/types/core/utils/SafariScrollGuard.d.ts +0 -36
  902. package/dist/types/core/utils/SafariScrollGuard.d.ts.map +0 -1
  903. package/dist/types/core/utils/Utils.d.ts +0 -6
  904. package/dist/types/core/utils/Utils.d.ts.map +0 -1
  905. package/dist/types/core/utils/aesCrypto.d.ts +0 -53
  906. package/dist/types/core/utils/aesCrypto.d.ts.map +0 -1
  907. package/dist/types/core/utils/api.d.ts +0 -173
  908. package/dist/types/core/utils/api.d.ts.map +0 -1
  909. package/dist/types/core/utils/dataProviderKey.d.ts +0 -56
  910. package/dist/types/core/utils/dataProviderKey.d.ts.map +0 -1
  911. package/dist/types/core/utils/derive.d.ts +0 -40
  912. package/dist/types/core/utils/derive.d.ts.map +0 -1
  913. package/dist/types/core/utils/endpoint.d.ts +0 -37
  914. package/dist/types/core/utils/endpoint.d.ts.map +0 -1
  915. package/dist/types/core/utils/jsonataHelpers.d.ts +0 -15
  916. package/dist/types/core/utils/jsonataHelpers.d.ts.map +0 -1
  917. package/dist/types/core/utils/jsonataRuntime.d.ts +0 -13
  918. package/dist/types/core/utils/jsonataRuntime.d.ts.map +0 -1
  919. package/dist/types/core/utils/mediaRef.d.ts +0 -68
  920. package/dist/types/core/utils/mediaRef.d.ts.map +0 -1
  921. package/dist/types/core/utils/route.d.ts +0 -41
  922. package/dist/types/core/utils/route.d.ts.map +0 -1
  923. package/dist/types/core/utils/similarity.d.ts +0 -15
  924. package/dist/types/core/utils/similarity.d.ts.map +0 -1
  925. package/dist/types/core/utils/url-pattern.d.ts +0 -3
  926. package/dist/types/core/utils/url-pattern.d.ts.map +0 -1
  927. package/dist/types/dataprovider.d.ts +0 -2
  928. package/dist/types/dataprovider.d.ts.map +0 -1
  929. package/dist/types/decorators.d.ts +0 -30
  930. package/dist/types/decorators.d.ts.map +0 -1
  931. package/dist/types/directives.d.ts +0 -21
  932. package/dist/types/directives.d.ts.map +0 -1
  933. package/dist/types/index.d.ts +0 -8
  934. package/dist/types/index.d.ts.map +0 -1
  935. package/dist/types/mixins.d.ts +0 -204
  936. package/dist/types/mixins.d.ts.map +0 -1
  937. package/dist/types/test-utils/TestUtils.d.ts +0 -4
  938. package/dist/types/test-utils/TestUtils.d.ts.map +0 -1
  939. package/dist/types/utils.d.ts +0 -20
  940. package/dist/types/utils.d.ts.map +0 -1
  941. package/public/docs/hf-samples/beach.jpg +0 -0
  942. package/public/docs/hf-samples/cats.jpg +0 -0
  943. package/public/docs/hf-samples/corgi.jpg +0 -0
  944. package/public/docs/hf-samples/portrait.jpg +0 -0
  945. package/public/docs/hf-samples/scene.jpg +0 -0
  946. package/public/docs/hf-samples/singer.jpg +0 -0
  947. package/public/docs/shader-samples/color.jpg +0 -0
  948. package/public/docs/shader-samples/depth.png +0 -0
  949. package/public/docs/shader-samples/impact.jpg +0 -0
  950. package/public/docs/shader-samples/video.webm +0 -0
  951. package/scripts/build-addons.mjs +0 -26
  952. package/scripts/gen-shader-depth.mjs +0 -85
  953. package/scripts/gen-shader-harris-video.mjs +0 -17
  954. package/scripts/gen-shader-harris-video.py +0 -84
  955. package/scripts/hf-vendor.mjs +0 -154
  956. package/src/addons/3d.ts +0 -5
  957. package/src/addons/hugging-face-infer.ts +0 -11
  958. package/src/addons/shader.ts +0 -5
  959. package/src/addons/webgpu.ts +0 -15
  960. package/src/core/components/functional/3d/3d.md +0 -161
  961. package/src/core/components/functional/3d/3d.spec.ts +0 -213
  962. package/src/core/components/functional/3d/3d.ts +0 -284
  963. package/src/core/components/functional/3d/asset.ts +0 -22
  964. package/src/core/components/functional/3d/boot.ts +0 -77
  965. package/src/core/components/functional/3d/constants.ts +0 -101
  966. package/src/core/components/functional/3d/demo-content.ts +0 -45
  967. package/src/core/components/functional/3d/ensure.ts +0 -107
  968. package/src/core/components/functional/3d/form-bind.ts +0 -40
  969. package/src/core/components/functional/3d/form-fields.ts +0 -80
  970. package/src/core/components/functional/3d/form-params.ts +0 -99
  971. package/src/core/components/functional/3d/frame-capture.spec.ts +0 -72
  972. package/src/core/components/functional/3d/frame-capture.ts +0 -135
  973. package/src/core/components/functional/3d/frame-source.ts +0 -30
  974. package/src/core/components/functional/3d/gl.ts +0 -35
  975. package/src/core/components/functional/3d/life.ts +0 -104
  976. package/src/core/components/functional/3d/load.ts +0 -129
  977. package/src/core/components/functional/3d/ops.ts +0 -126
  978. package/src/core/components/functional/3d/opts.ts +0 -16
  979. package/src/core/components/functional/3d/orbit.ts +0 -185
  980. package/src/core/components/functional/3d/out-publish.ts +0 -141
  981. package/src/core/components/functional/3d/parse.ts +0 -95
  982. package/src/core/components/functional/3d/pick.ts +0 -92
  983. package/src/core/components/functional/3d/playback.ts +0 -82
  984. package/src/core/components/functional/3d/pointer.ts +0 -79
  985. package/src/core/components/functional/3d/post-bind.ts +0 -262
  986. package/src/core/components/functional/3d/post-channels.spec.ts +0 -36
  987. package/src/core/components/functional/3d/post-channels.ts +0 -69
  988. package/src/core/components/functional/3d/post-fx.ts +0 -594
  989. package/src/core/components/functional/3d/props.ts +0 -95
  990. package/src/core/components/functional/3d/publisher-listen.ts +0 -13
  991. package/src/core/components/functional/3d/reload.ts +0 -96
  992. package/src/core/components/functional/3d/runtime.ts +0 -237
  993. package/src/core/components/functional/3d/scene-runtime.ts +0 -12
  994. package/src/core/components/functional/3d/snapshot.ts +0 -73
  995. package/src/core/components/functional/3d/styles.ts +0 -38
  996. package/src/core/components/functional/3d/tune.ts +0 -93
  997. package/src/core/components/functional/3d/types.ts +0 -159
  998. package/src/core/components/functional/3d/updated.ts +0 -86
  999. package/src/core/components/functional/3d/view.ts +0 -63
  1000. package/src/core/components/functional/3d/wire.ts +0 -65
  1001. package/src/core/components/functional/infer/hugging-face/hf-cache.ts +0 -198
  1002. package/src/core/components/functional/infer/hugging-face/hf-config.ts +0 -188
  1003. package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +0 -350
  1004. package/src/core/components/functional/infer/hugging-face/hf-controller.ts +0 -622
  1005. package/src/core/components/functional/infer/hugging-face/hf-engine.ts +0 -178
  1006. package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +0 -99
  1007. package/src/core/components/functional/infer/hugging-face/hf-input.ts +0 -218
  1008. package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +0 -76
  1009. package/src/core/components/functional/infer/hugging-face/hf-registry.ts +0 -457
  1010. package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +0 -124
  1011. package/src/core/components/functional/infer/hugging-face/hf-schema.ts +0 -390
  1012. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +0 -147
  1013. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +0 -381
  1014. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +0 -304
  1015. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +0 -202
  1016. package/src/core/components/functional/infer/hugging-face/hugging-face.ts +0 -282
  1017. package/src/core/components/functional/infer/hugging-face/types.ts +0 -325
  1018. package/src/core/components/functional/shader/gl-runtime.ts +0 -1120
  1019. package/src/core/components/functional/shader/shader.md +0 -232
  1020. package/src/core/components/functional/shader/shader.spec.ts +0 -635
  1021. package/src/core/components/functional/shader/shader.ts +0 -1746
  1022. package/src/core/components/functional/shader/shadertoy-prelude.ts +0 -96
  1023. package/src/core/components/functional/shader/types.ts +0 -525
  1024. package/src/core/components/functional/webgpu/canvas2d-fallback.ts +0 -125
  1025. package/src/core/components/functional/webgpu/form-bind.ts +0 -116
  1026. package/src/core/components/functional/webgpu/gl-fallback.ts +0 -182
  1027. package/src/core/components/functional/webgpu/gpu-runtime.ts +0 -485
  1028. package/src/core/components/functional/webgpu/helpers.ts +0 -53
  1029. package/src/core/components/functional/webgpu/out-frame.ts +0 -137
  1030. package/src/core/components/functional/webgpu/particles-runtime.ts +0 -426
  1031. package/src/core/components/functional/webgpu/pointer.ts +0 -85
  1032. package/src/core/components/functional/webgpu/types.ts +0 -96
  1033. package/src/core/components/functional/webgpu/webgpu.md +0 -86
  1034. package/src/core/components/functional/webgpu/webgpu.spec.ts +0 -178
  1035. package/src/core/components/functional/webgpu/webgpu.ts +0 -706
  1036. package/src/core/components/functional/webgpu/wgsl-prelude.ts +0 -81
  1037. package/src/core/utils/mediaRef.spec.ts +0 -146
  1038. package/src/core/utils/mediaRef.ts +0 -238
  1039. package/src/core/utils/similarity.spec.ts +0 -34
  1040. package/src/core/utils/similarity.ts +0 -54
  1041. package/src/docs/_getting-started/cdn-addons.md +0 -73
  1042. package/src/docs/_misc/visual-stack.md +0 -83
  1043. package/src/docs/example/docs-3d-demos.ts +0 -8
  1044. package/src/docs/example/docs-3d-form.ts +0 -95
  1045. package/src/docs/example/docs-3d-orbit.ts +0 -44
  1046. package/src/docs/example/docs-3d-out.ts +0 -56
  1047. package/src/docs/example/docs-3d-post-depth-demo.ts +0 -68
  1048. package/src/docs/example/docs-3d-shader-live-demo.ts +0 -98
  1049. package/src/docs/example/docs-3d-shared.ts +0 -15
  1050. package/src/docs/example/docs-3d-webgpu-live-demo.ts +0 -83
  1051. package/src/docs/example/docs-harris-webgpu-demo.ts +0 -480
  1052. package/src/docs/example/docs-hugging-face-demos.ts +0 -516
  1053. package/src/docs/example/docs-shader-demos.ts +0 -357
  1054. package/src/docs/example/docs-visual-stack-demo.ts +0 -394
  1055. package/src/docs/example/docs-webgpu-demo.ts +0 -77
@@ -1,1739 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { css, html, LitElement } from "lit";
8
- import { customElement, property, state } from "lit/decorators.js";
9
- import HTML from "@supersoniks/concorde/core/utils/HTML";
10
- import { revokeMediaUrls, toMediaUrl, mediaElementKey, lookupLiveElement, FrameConsumerRegistry } from "@supersoniks/concorde/core/utils/mediaRef";
11
- import { PublisherManager } from "@supersoniks/concorde/utils";
12
- import { parseChannelSource, ShaderToyRuntime, } from "./gl-runtime";
13
- import { ShaderCompileError, channelsUseSelf, findPeaks, meanRgba, parseBufferFormat, parseExtractPass, parseHoverParam, parseReleaseOffscreen, roiToPixels, rgbaToUint8, shouldReleaseWhenOffscreen, } from "./types";
14
- const tagName = "sonic-shader";
15
- const MAX_PATCH_PX = 128;
16
- /** Clés qui forcent une recompilation / recreate FBO. */
17
- const PROGRAM_KEYS = [
18
- "image",
19
- "bufferA",
20
- "bufferB",
21
- "bufferC",
22
- "bufferD",
23
- "common",
24
- "bufferFormat",
25
- ];
26
- /** Clés qui ne font que re-lier les textures (pas de rebuild). */
27
- const CHANNEL_KEYS = [
28
- "channel0",
29
- "channel1",
30
- "channel2",
31
- "channel3",
32
- "imageCh0",
33
- "imageCh1",
34
- "imageCh2",
35
- "imageCh3",
36
- "bufferACh0",
37
- "bufferACh1",
38
- "bufferACh2",
39
- "bufferACh3",
40
- "bufferBCh0",
41
- "bufferBCh1",
42
- "bufferBCh2",
43
- "bufferBCh3",
44
- "bufferCCh0",
45
- "bufferCCh1",
46
- "bufferCCh2",
47
- "bufferCCh3",
48
- "bufferDCh0",
49
- "bufferDCh1",
50
- "bufferDCh2",
51
- "bufferDCh3",
52
- ];
53
- /**
54
- * Champs méta publiés vers le out-dataProvider.
55
- * `param0…3` sont exclus du gate « consommateur » : un `sonic-input name="param0"`
56
- * ne doit pas activer la publication (sinon write-back → reset des champs form).
57
- */
58
- const OUT_META_KEYS = [
59
- "time",
60
- "frame",
61
- "mouseX",
62
- "mouseY",
63
- "hovering",
64
- ];
65
- const OUT_PARAM_KEYS = ["param0", "param1", "param2", "param3"];
66
- /** Champs canaux lisibles depuis dataProvider (string | SonicMediaRef). */
67
- const CHANNEL_FORM_KEYS = [
68
- "channel0",
69
- "channel1",
70
- "channel2",
71
- "channel3",
72
- "imageCh0",
73
- "imageCh1",
74
- "imageCh2",
75
- "imageCh3",
76
- "bufferACh0",
77
- "bufferACh1",
78
- "bufferACh2",
79
- "bufferACh3",
80
- "bufferBCh0",
81
- "bufferBCh1",
82
- "bufferBCh2",
83
- "bufferBCh3",
84
- "bufferCCh0",
85
- "bufferCCh1",
86
- "bufferCCh2",
87
- "bufferCCh3",
88
- "bufferDCh0",
89
- "bufferDCh1",
90
- "bufferDCh2",
91
- "bufferDCh3",
92
- ];
93
- /** Champs sample (coûteux : readPixels). */
94
- const OUT_SAMPLE_KEYS = [
95
- "sampleR",
96
- "sampleG",
97
- "sampleB",
98
- "sampleA",
99
- "sampleLuma",
100
- ];
101
- const EXTRACT_OUT_KEYS = ["extracts", "extractCount", "extractSeq"];
102
- function prefersReducedMotion() {
103
- return (typeof matchMedia === "function" &&
104
- matchMedia("(prefers-reduced-motion: reduce)").matches);
105
- }
106
- function toNum(v, fallback) {
107
- if (typeof v === "number" && Number.isFinite(v))
108
- return v;
109
- if (typeof v === "string" && v.trim() !== "") {
110
- const n = Number(v);
111
- if (Number.isFinite(n))
112
- return n;
113
- }
114
- return fallback;
115
- }
116
- /** Valeur canal depuis DP : string (url, buffer-a, #id) | MediaRef → url | { element }. */
117
- function channelFormValue(value) {
118
- if (value === null || value === "")
119
- return "";
120
- if (typeof value === "string")
121
- return value.trim();
122
- const url = toMediaUrl(value);
123
- if (url)
124
- return url;
125
- if (value && typeof value === "object") {
126
- const el = value.element;
127
- const key = mediaElementKey(el);
128
- if (key)
129
- return key;
130
- return undefined;
131
- }
132
- return "";
133
- }
134
- /** Exposé pour tests. */
135
- export { channelFormValue };
136
- function parseRois(value) {
137
- if (!Array.isArray(value))
138
- return [];
139
- const out = [];
140
- for (const raw of value) {
141
- if (!raw || typeof raw !== "object")
142
- continue;
143
- const o = raw;
144
- const x = toNum(o.x, NaN);
145
- const y = toNum(o.y, NaN);
146
- if (!Number.isFinite(x) || !Number.isFinite(y))
147
- continue;
148
- const roi = { x, y, source: "manual" };
149
- if (typeof o.id === "string" && o.id)
150
- roi.id = o.id;
151
- if ("w" in o)
152
- roi.w = toNum(o.w, 0);
153
- if ("h" in o)
154
- roi.h = toNum(o.h, 0);
155
- if ("patch" in o)
156
- roi.patch = toNum(o.patch, 16);
157
- out.push(roi);
158
- }
159
- return out;
160
- }
161
- const BYTES_PER_PIXEL = 4;
162
- async function rgbaToBlobUrl(data, width, height) {
163
- if (typeof document === "undefined" || width < 1 || height < 1)
164
- return null;
165
- try {
166
- const canvas = document.createElement("canvas");
167
- canvas.width = width;
168
- canvas.height = height;
169
- const ctx = canvas.getContext("2d");
170
- if (!ctx)
171
- return null;
172
- // WebGL readPixels is bottom-up; flip for canvas display.
173
- const imageData = ctx.createImageData(width, height);
174
- const dst = imageData.data;
175
- for (let y = 0; y < height; y++) {
176
- const srcRow = (height - 1 - y) * width * BYTES_PER_PIXEL;
177
- const dstRow = y * width * BYTES_PER_PIXEL;
178
- for (let i = 0; i < width * BYTES_PER_PIXEL; i++) {
179
- dst[dstRow + i] = data[srcRow + i];
180
- }
181
- }
182
- ctx.putImageData(imageData, 0, 0);
183
- const blob = await new Promise((resolve) => {
184
- try {
185
- canvas.toBlob((b) => resolve(b), "image/png");
186
- }
187
- catch {
188
- resolve(null);
189
- }
190
- });
191
- if (blob)
192
- return URL.createObjectURL(blob);
193
- // Fallback (certs navigateurs / contexts bloquent toBlob)
194
- const dataUrl = canvas.toDataURL("image/png");
195
- return dataUrl || null;
196
- }
197
- catch {
198
- return null;
199
- }
200
- }
201
- function assignExtractMediaUrls(item, url) {
202
- item.blobUrl = url;
203
- item.url = url;
204
- }
205
- /**
206
- * ShaderToy-compatible multipass renderer (Image + Buffer A–D + Common).
207
- * Opt-in: import `@supersoniks/concorde/shader`.
208
- *
209
- * Optional `dataProvider` (attr or ancestor `dataProvider` / `formDataProvider`):
210
- * maps form fields `param0`…`param3` → uniforms `uParam0`…`uParam3`.
211
- */
212
- let SonicShader = class SonicShader extends LitElement {
213
- constructor() {
214
- super(...arguments);
215
- this.image = "";
216
- this.bufferA = "";
217
- this.bufferB = "";
218
- this.bufferC = "";
219
- this.bufferD = "";
220
- this.common = "";
221
- this.channel0 = "";
222
- this.channel1 = "";
223
- this.channel2 = "";
224
- this.channel3 = "";
225
- this.imageCh0 = "";
226
- this.imageCh1 = "";
227
- this.imageCh2 = "";
228
- this.imageCh3 = "";
229
- this.bufferACh0 = "";
230
- this.bufferACh1 = "";
231
- this.bufferACh2 = "";
232
- this.bufferACh3 = "";
233
- this.bufferBCh0 = "";
234
- this.bufferBCh1 = "";
235
- this.bufferBCh2 = "";
236
- this.bufferBCh3 = "";
237
- this.bufferCCh0 = "";
238
- this.bufferCCh1 = "";
239
- this.bufferCCh2 = "";
240
- this.bufferCCh3 = "";
241
- this.bufferDCh0 = "";
242
- this.bufferDCh1 = "";
243
- this.bufferDCh2 = "";
244
- this.bufferDCh3 = "";
245
- this.play = true;
246
- /**
247
- * N’anime que pendant le hover (ou tant que le param hover n’a pas fini
248
- * sa transition). Utile avec beaucoup d’instances.
249
- */
250
- this.playOnHover = false;
251
- this.mouse = true;
252
- /**
253
- * `direct` — `iMouse.xy` = pointeur (ShaderToy).
254
- * `target` — le pointeur est une cible ; `iMouse.xy` suit (vitesse ∝ distance).
255
- */
256
- this.mouseMode = "direct";
257
- /**
258
- * Vitesse de poursuite en mode `target` (1/s). Plus haut = plus snappy.
259
- * Déplacement ≈ `(cible − pos) * (1 − e^(−speed·dt))`.
260
- */
261
- this.mouseSpeed = 8;
262
- /**
263
- * Anime `uParamN` au rollover / roll-out (0↔1). Ex. `hover-param="0"` ou `"param0"`.
264
- * Le shader lit `uParamN` pour mixer l’effet on/off.
265
- */
266
- this.hoverParam = "";
267
- /** Vitesse d’easing hover on/off (1/s, défaut 10). */
268
- this.hoverSpeed = 10;
269
- /**
270
- * Hors viewport : libère textures/FBO (garde le contexte).
271
- * `auto` (défaut) : ne libère pas si une passe lit `self`.
272
- * `true` / `false` forcent le comportement.
273
- */
274
- this.releaseOffscreen = "auto";
275
- this.dprMax = 2;
276
- /**
277
- * Format des buffers A–D : `rgba8` (défaut) | `rgba16f` | `rgba32f`.
278
- * Attribut reflété `active-buffer-format` = format réellement utilisé.
279
- */
280
- this.bufferFormat = "rgba8";
281
- /** Format actif après repli éventuel (lecture seule, reflect). */
282
- this.activeBufferFormat = "rgba8";
283
- /** Generic float uniforms `uParam0`…`uParam3` (no shader rebuild). */
284
- this.param0 = 0;
285
- this.param1 = 0;
286
- this.param2 = 0;
287
- this.param3 = 0;
288
- /**
289
- * Publisher id. Fields `param0`…`param3` feed `uParam0`…`uParam3`.
290
- * Falls back to ancestor `dataProvider` or `formDataProvider` when unset.
291
- * Also used as default out publisher (see `outDataProvider`).
292
- */
293
- this.dataProvider = "";
294
- /**
295
- * Publisher de sortie. Défaut : même id que `dataProvider` / ancêtre.
296
- * Écrit mouseX/Y, hovering, frame (+ sample* si `sample`).
297
- * Sur DP partagé form+out : ne réécrit pas param0…3 (sauf slot hover-param).
298
- * Paresseux : pas de set / readPixels sans lecteur méta/sample ni listener `out`.
299
- */
300
- this.outDataProvider = "";
301
- /**
302
- * Active le sample couleur → sampleR/G/B/A + sampleLuma.
303
- * `readPixels` uniquement s’il y a un consommateur out (DP ou event `out`).
304
- */
305
- this.sample = false;
306
- /** Intervalle de publication / event `out` (ms, défaut 80). */
307
- this.outInterval = 80;
308
- /** Active l’extraction de patches / singularités. */
309
- this.extract = false;
310
- /** Throttle extract ms (défaut = `out-interval` ou 100). */
311
- this.extractInterval = 0;
312
- /** Pass où lire les pixels couleur : `image` \| `buffer-a`… */
313
- this.extractSource = "image";
314
- /** Pass mask pour détection : `none` \| `buffer-a`… */
315
- this.extractMask = "none";
316
- /** Seuil 0–1 sur le mask (défaut 0.5). */
317
- this.extractThreshold = 0.5;
318
- /** Cap N items détectés (défaut 8). */
319
- this.extractMax = 8;
320
- /** Taille patch px par défaut pour un point (défaut 16). */
321
- this.extractPatch = 16;
322
- /** Génère des blob URLs par item. */
323
- this.extractBitmaps = false;
324
- /** Publisher dédié extract (défaut = out / dataProvider). */
325
- this.extractDataProvider = "";
326
- /**
327
- * Force CSS aspect-ratio (e.g. `"16/9"`, `"1"`).
328
- * When empty, uses channel0 (or first texture) dimensions.
329
- */
330
- this.aspectRatio = "";
331
- this.errorMessage = "";
332
- this.runtime = null;
333
- this.raf = 0;
334
- this.startTime = 0;
335
- this.lastTime = 0;
336
- this.frame = 0;
337
- /** Incrémenté après chaque render (contrat SonicFrameSource). */
338
- this.frameSeq = 0;
339
- this.mouseVec = [0, 0, 0, 0];
340
- /** Cible pointeur (px drawing buffer, origine bas-gauche). */
341
- this.mouseTarget = [0, 0];
342
- /** Position suivie → `iMouse.xy` en mode target. */
343
- this.mouseFollow = [0, 0];
344
- this.mouseHasPointer = false;
345
- this.pointerDown = false;
346
- this.hovering = false;
347
- this.hoverGoal = 0;
348
- /**
349
- * Valeur easée 0↔1 pour le slot `hover-param`.
350
- * Privée (pas une @property) pour éviter un requestUpdate Lit à chaque frame
351
- * — sinon re-renders / write-back dataProvider → enter/leave en boucle.
352
- */
353
- this.hoverMix = 0;
354
- this.leaveRaf = 0;
355
- /** Compteur d’écouteurs `out` (publication paresseuse). */
356
- this.outEventListeners = 0;
357
- /** Compteur d’écouteurs `extract`. */
358
- this.extractEventListeners = 0;
359
- this.releasing = false;
360
- this.inView = true;
361
- this.resizeObserver = null;
362
- this.intersectionObserver = null;
363
- this.rebuildToken = 0;
364
- /** Annule un `rebindChannels` en vol si rebuild / release intervient. */
365
- this.rebindToken = 0;
366
- this.frameConsumers = new FrameConsumerRegistry();
367
- this.ready = false;
368
- this.formPublisher = null;
369
- this.outPublisher = null;
370
- this.extractPublisher = null;
371
- this.lastOutAt = 0;
372
- this.lastExtractAt = 0;
373
- this.manualRois = [];
374
- this.lastBlobUrls = [];
375
- this.pendingRevokeUrls = [];
376
- this.extractRunning = false;
377
- this.extractSeq = 0;
378
- this.onFormMutation = () => {
379
- const data = (this.formPublisher?.get() ?? {});
380
- this.applyFormParams(data);
381
- };
382
- this.onContextLost = (e) => {
383
- e.preventDefault();
384
- if (this.releasing)
385
- return;
386
- this.rebuildToken++;
387
- this.rebindToken++;
388
- this.stopLoop();
389
- this.ready = false;
390
- this.runtime = null;
391
- };
392
- this.onContextRestored = () => {
393
- if (this.releasing || !this.inView)
394
- return;
395
- void this.ensureRuntime();
396
- };
397
- this.loop = () => {
398
- this.raf = requestAnimationFrame(this.loop);
399
- this.drawFrame(performance.now());
400
- // play-on-hover : arrêter une fois la transition terminée
401
- if (this.playOnHover && !this.hovering && this.hoverSettled()) {
402
- this.stopLoop();
403
- this.runtime?.setVideosPlaying(false);
404
- }
405
- };
406
- this.onPointerMove = (e) => {
407
- if (!this.mouse)
408
- return;
409
- const { x, y } = this.localPointer(e);
410
- this.setPointerTarget(x, y);
411
- if (this.pointerDown) {
412
- this.mouseVec[2] = x;
413
- this.mouseVec[3] = y;
414
- }
415
- };
416
- this.onPointerDown = (e) => {
417
- if (!this.mouse)
418
- return;
419
- this.pointerDown = true;
420
- this.setPointerCapture?.(e.pointerId);
421
- const { x, y } = this.localPointer(e);
422
- this.setPointerTarget(x, y, true);
423
- this.mouseVec[2] = x;
424
- this.mouseVec[3] = y;
425
- };
426
- this.onPointerUp = (e) => {
427
- if (!this.mouse)
428
- return;
429
- this.pointerDown = false;
430
- const { x, y } = this.localPointer(e);
431
- this.setPointerTarget(x, y);
432
- this.mouseVec[2] = -Math.abs(this.mouseVec[2]);
433
- this.mouseVec[3] = -Math.abs(this.mouseVec[3]);
434
- };
435
- this.onPointerEnter = () => {
436
- if (this.leaveRaf) {
437
- cancelAnimationFrame(this.leaveRaf);
438
- this.leaveRaf = 0;
439
- }
440
- this.hovering = true;
441
- this.hoverGoal = 1;
442
- this.syncPlayback();
443
- };
444
- this.onPointerLeave = () => {
445
- // Différer : un leave parasite (re-render / enfant shadow) suivi d’un
446
- // re-enter immédiat provoquait activation↔désactivation en boucle.
447
- if (this.leaveRaf)
448
- cancelAnimationFrame(this.leaveRaf);
449
- this.leaveRaf = requestAnimationFrame(() => {
450
- this.leaveRaf = 0;
451
- if (!this.isConnected || this.matches(":hover"))
452
- return;
453
- this.hovering = false;
454
- this.hoverGoal = 0;
455
- this.pointerDown = false;
456
- this.syncPlayback();
457
- });
458
- };
459
- }
460
- connectedCallback() {
461
- super.connectedCallback();
462
- this.addEventListener("pointermove", this.onPointerMove);
463
- this.addEventListener("pointerdown", this.onPointerDown);
464
- this.addEventListener("pointerup", this.onPointerUp);
465
- this.addEventListener("pointerleave", this.onPointerLeave);
466
- this.addEventListener("pointerenter", this.onPointerEnter);
467
- this.bindFormProvider();
468
- this.bindOutPublisher();
469
- this.bindExtractPublisher();
470
- }
471
- /**
472
- * Suit les listeners `out` / `extract` pour ne publier (et ne readPixels)
473
- * que s’il y a un consommateur — zéro coût tant que personne ne lit.
474
- */
475
- addEventListener(type, listener, options) {
476
- if (type === "out" && listener)
477
- this.outEventListeners++;
478
- if (type === "extract" && listener)
479
- this.extractEventListeners++;
480
- super.addEventListener(type, listener, options);
481
- }
482
- removeEventListener(type, listener, options) {
483
- if (type === "out" && listener) {
484
- this.outEventListeners = Math.max(0, this.outEventListeners - 1);
485
- }
486
- if (type === "extract" && listener) {
487
- this.extractEventListeners = Math.max(0, this.extractEventListeners - 1);
488
- }
489
- super.removeEventListener(type, listener, options);
490
- }
491
- disconnectedCallback() {
492
- super.disconnectedCallback();
493
- this.removeEventListener("pointermove", this.onPointerMove);
494
- this.removeEventListener("pointerdown", this.onPointerDown);
495
- this.removeEventListener("pointerup", this.onPointerUp);
496
- this.removeEventListener("pointerleave", this.onPointerLeave);
497
- this.removeEventListener("pointerenter", this.onPointerEnter);
498
- if (this.leaveRaf) {
499
- cancelAnimationFrame(this.leaveRaf);
500
- this.leaveRaf = 0;
501
- }
502
- this.unbindFormProvider();
503
- this.unbindContextEvents();
504
- this.revokeBlobUrls();
505
- for (const url of this.pendingRevokeUrls) {
506
- try {
507
- URL.revokeObjectURL(url);
508
- }
509
- catch {
510
- /* ignore */
511
- }
512
- }
513
- this.pendingRevokeUrls = [];
514
- this.stopLoop();
515
- this.frameConsumers.clear();
516
- this.resizeObserver?.disconnect();
517
- this.intersectionObserver?.disconnect();
518
- this.rebuildToken++;
519
- this.rebindToken++;
520
- this.ready = false;
521
- this.releasing = true;
522
- this.runtime?.dispose(true); // libère le slot navigateur
523
- this.runtime = null;
524
- this.outPublisher = null;
525
- this.releasing = false;
526
- }
527
- firstUpdated() {
528
- this.resizeObserver = new ResizeObserver(() => this.syncSize());
529
- this.resizeObserver.observe(this);
530
- this.intersectionObserver = new IntersectionObserver((entries) => {
531
- this.inView = entries.some((e) => e.isIntersecting);
532
- this.syncVisibility();
533
- }, { threshold: 0 });
534
- this.intersectionObserver.observe(this);
535
- this.bindFormProvider();
536
- this.bindOutPublisher();
537
- this.bindExtractPublisher();
538
- requestAnimationFrame(() => {
539
- if (this.inView || !this.wantsReleaseOffscreen()) {
540
- void this.ensureRuntime();
541
- }
542
- });
543
- }
544
- updated(changed) {
545
- if (!this.runtime)
546
- return;
547
- const programChanged = PROGRAM_KEYS.some((k) => changed.has(k));
548
- const channelChanged = CHANNEL_KEYS.some((k) => changed.has(k));
549
- if (programChanged) {
550
- void this.rebuild();
551
- }
552
- else if (channelChanged) {
553
- void this.rebindChannels();
554
- }
555
- if (changed.has("play")) {
556
- this.syncPlayback();
557
- }
558
- if (changed.has("releaseOffscreen") || channelChanged) {
559
- this.syncVisibility();
560
- }
561
- if (changed.has("dataProvider") ||
562
- changed.has("outDataProvider") ||
563
- changed.has("extractDataProvider")) {
564
- this.bindFormProvider();
565
- this.bindOutPublisher();
566
- this.bindExtractPublisher();
567
- }
568
- if (changed.has("aspectRatio")) {
569
- this.applyAspectRatio();
570
- }
571
- }
572
- applyAspectRatio(textureUrl) {
573
- const forced = this.aspectRatio.trim();
574
- if (forced) {
575
- this.style.setProperty("--sonic-shader-ar", forced.includes("/") ? forced : forced.replace(":", " / "));
576
- return;
577
- }
578
- const url = textureUrl || this.channel0;
579
- const size = url ? this.runtime?.getTextureSize(url) : null;
580
- if (size) {
581
- this.style.setProperty("--sonic-shader-ar", `${size.width} / ${size.height}`);
582
- return;
583
- }
584
- this.style.removeProperty("--sonic-shader-ar");
585
- }
586
- resolveFormProviderId() {
587
- const own = this.dataProvider?.trim();
588
- if (own)
589
- return own;
590
- return (HTML.getAncestorAttributeValue(this, "dataProvider") ||
591
- HTML.getAncestorAttributeValue(this, "formDataProvider") ||
592
- "");
593
- }
594
- unbindFormProvider() {
595
- if (this.formPublisher) {
596
- // Nested form fields (sonic-input) mutate children — root onAssign
597
- // does not fire; onInternalMutation does.
598
- this.formPublisher.offInternalMutation(this.onFormMutation);
599
- this.formPublisher = null;
600
- }
601
- }
602
- bindFormProvider() {
603
- this.unbindFormProvider();
604
- const id = this.resolveFormProviderId();
605
- if (!id)
606
- return;
607
- this.formPublisher = PublisherManager.get(id);
608
- this.formPublisher.onInternalMutation(this.onFormMutation);
609
- this.onFormMutation();
610
- }
611
- resolveOutProviderId() {
612
- const own = this.outDataProvider?.trim();
613
- if (own)
614
- return own;
615
- return this.resolveFormProviderId();
616
- }
617
- bindOutPublisher() {
618
- const id = this.resolveOutProviderId();
619
- this.outPublisher = id ? PublisherManager.get(id) : null;
620
- }
621
- resolveExtractProviderId() {
622
- const own = this.extractDataProvider?.trim();
623
- if (own)
624
- return own;
625
- return this.resolveOutProviderId();
626
- }
627
- bindExtractPublisher() {
628
- const id = this.resolveExtractProviderId();
629
- this.extractPublisher = id ? PublisherManager.get(id) : null;
630
- }
631
- applyFormParams(value) {
632
- const data = value && typeof value === "object"
633
- ? value
634
- : {};
635
- // Le slot hover-param est piloté en interne : ne pas le réécrire depuis le
636
- // publisher (évite la boucle out → mutation → param ↔ hoverGoal).
637
- const hoverSlot = parseHoverParam(this.hoverParam);
638
- if (hoverSlot !== 0)
639
- this.param0 = toNum(data.param0, this.param0);
640
- if (hoverSlot !== 1)
641
- this.param1 = toNum(data.param1, this.param1);
642
- if (hoverSlot !== 2)
643
- this.param2 = toNum(data.param2, this.param2);
644
- if (hoverSlot !== 3)
645
- this.param3 = toNum(data.param3, this.param3);
646
- if ("mouseSpeed" in data) {
647
- this.mouseSpeed = toNum(data.mouseSpeed, this.mouseSpeed);
648
- }
649
- if ("hoverSpeed" in data) {
650
- this.hoverSpeed = toNum(data.hoverSpeed, this.hoverSpeed);
651
- }
652
- if ("extractThreshold" in data) {
653
- this.extractThreshold = toNum(data.extractThreshold, this.extractThreshold);
654
- }
655
- if ("extractMax" in data) {
656
- this.extractMax = toNum(data.extractMax, this.extractMax);
657
- }
658
- if ("extractPatch" in data) {
659
- this.extractPatch = toNum(data.extractPatch, this.extractPatch);
660
- }
661
- if ("rois" in data) {
662
- this.manualRois = parseRois(data.rois);
663
- }
664
- for (const key of CHANNEL_FORM_KEYS) {
665
- if (!(key in data))
666
- continue;
667
- const next = channelFormValue(data[key]);
668
- if (next === undefined)
669
- continue;
670
- if (this[key] !== next) {
671
- this[key] = next;
672
- }
673
- }
674
- }
675
- /** Params GPU : remplace le slot `hover-param` par `hoverMix`. */
676
- effectiveParams() {
677
- const params = [
678
- this.param0,
679
- this.param1,
680
- this.param2,
681
- this.param3,
682
- ];
683
- const slot = parseHoverParam(this.hoverParam);
684
- if (slot !== null)
685
- params[slot] = this.hoverMix;
686
- return params;
687
- }
688
- /**
689
- * Hors viewport : libère textures / FBO / programmes, **sans** loseContext
690
- * (sinon le même canvas ne peut plus compiler au retour).
691
- * Le slot navigateur est libéré au disconnect (`dispose(true)`).
692
- */
693
- releaseRuntime() {
694
- this.rebuildToken++;
695
- this.rebindToken++;
696
- this.stopLoop();
697
- this.ready = false;
698
- this.releasing = true;
699
- this.unbindContextEvents();
700
- this.runtime?.dispose(false);
701
- this.runtime = null;
702
- this.releasing = false;
703
- }
704
- getCanvas() {
705
- return (this.renderRoot?.querySelector("canvas") ??
706
- null);
707
- }
708
- /** Contrat SonicFrameSource — canvas lisible pour un autre sonic-shader. */
709
- getFrameCanvas() {
710
- if (!this.ready || !this.runtime || this.runtime.isLost)
711
- return null;
712
- return this.getCanvas();
713
- }
714
- /** Résout `#id` dans getRootNode() puis document ; clés live `__sonic_frame_`. */
715
- lookupElement(key) {
716
- if (!key.startsWith("#"))
717
- return null;
718
- const live = lookupLiveElement(key);
719
- if (live)
720
- return live;
721
- const id = key.slice(1);
722
- if (!id || id.startsWith("__sonic_frame_"))
723
- return null;
724
- const root = this.getRootNode();
725
- if (root instanceof Document || root instanceof ShadowRoot) {
726
- const el = root.getElementById(id);
727
- if (el)
728
- return el;
729
- }
730
- return typeof document !== "undefined" ? document.getElementById(id) : null;
731
- }
732
- bindContextEvents() {
733
- const canvas = this.getCanvas();
734
- canvas?.addEventListener("webglcontextlost", this.onContextLost);
735
- canvas?.addEventListener("webglcontextrestored", this.onContextRestored);
736
- }
737
- unbindContextEvents() {
738
- const canvas = this.getCanvas();
739
- canvas?.removeEventListener("webglcontextlost", this.onContextLost);
740
- canvas?.removeEventListener("webglcontextrestored", this.onContextRestored);
741
- }
742
- async ensureRuntime() {
743
- if (this.runtime && !this.runtime.isLost)
744
- return;
745
- this.runtime = null;
746
- await this.updateComplete;
747
- if (!this.isConnected || (!this.inView && this.wantsReleaseOffscreen()))
748
- return;
749
- const canvas = this.getCanvas();
750
- if (!canvas)
751
- return;
752
- try {
753
- this.errorMessage = "";
754
- this.runtime = new ShaderToyRuntime(canvas);
755
- this.runtime.setElementResolver((key) => this.lookupElement(key));
756
- this.activeBufferFormat = this.runtime.setBufferFormat(parseBufferFormat(this.bufferFormat));
757
- this.bindContextEvents();
758
- this.syncSize();
759
- await this.rebuild();
760
- }
761
- catch (err) {
762
- this.emitError(err);
763
- }
764
- }
765
- syncVisibility() {
766
- if (!this.inView && this.wantsReleaseOffscreen()) {
767
- this.releaseRuntime();
768
- return;
769
- }
770
- if (this.inView && (!this.runtime || this.runtime.isLost)) {
771
- void this.ensureRuntime();
772
- return;
773
- }
774
- this.syncPlayback();
775
- }
776
- syncSize() {
777
- if (!this.runtime)
778
- return;
779
- const rect = this.getBoundingClientRect();
780
- const cssW = Math.max(rect.width, this.clientWidth, 1);
781
- const cssH = Math.max(rect.height, this.clientHeight, 1);
782
- const dpr = Math.min(window.devicePixelRatio || 1, this.dprMax);
783
- this.runtime.resize(cssW * dpr, cssH * dpr);
784
- if (this.ready) {
785
- this.drawFrame(performance.now());
786
- }
787
- }
788
- buildChannels(pass) {
789
- const fallbacks = [
790
- this.channel0,
791
- this.channel1,
792
- this.channel2,
793
- this.channel3,
794
- ];
795
- const overrides = pass === "image"
796
- ? [this.imageCh0, this.imageCh1, this.imageCh2, this.imageCh3]
797
- : pass === "bufferA"
798
- ? [
799
- this.bufferACh0,
800
- this.bufferACh1,
801
- this.bufferACh2,
802
- this.bufferACh3,
803
- ]
804
- : pass === "bufferB"
805
- ? [
806
- this.bufferBCh0,
807
- this.bufferBCh1,
808
- this.bufferBCh2,
809
- this.bufferBCh3,
810
- ]
811
- : pass === "bufferC"
812
- ? [
813
- this.bufferCCh0,
814
- this.bufferCCh1,
815
- this.bufferCCh2,
816
- this.bufferCCh3,
817
- ]
818
- : [
819
- this.bufferDCh0,
820
- this.bufferDCh1,
821
- this.bufferDCh2,
822
- this.bufferDCh3,
823
- ];
824
- return [0, 1, 2, 3].map((i) => parseChannelSource(overrides[i], fallbacks[i]));
825
- }
826
- collectUrls(channels) {
827
- const urls = [];
828
- for (const chs of channels.values()) {
829
- for (const c of chs) {
830
- if (c.kind === "url")
831
- urls.push(c.url);
832
- }
833
- }
834
- return urls;
835
- }
836
- collectElementKeys(channels) {
837
- const keys = [];
838
- for (const chs of channels.values()) {
839
- for (const c of chs) {
840
- if (c.kind === "element")
841
- keys.push(c.key);
842
- }
843
- }
844
- return [...new Set(keys)];
845
- }
846
- /** Enregistre les producteurs live (`sonic-3d`…) pour play-offscreen auto. */
847
- syncFrameConsumers(channels) {
848
- const els = this.collectElementKeys(channels).map((k) => this.lookupElement(k));
849
- this.frameConsumers.sync(els);
850
- }
851
- /** Map canaux courante (tous les passes). */
852
- collectPassChannels() {
853
- const channels = new Map();
854
- for (const pass of [
855
- "bufferA",
856
- "bufferB",
857
- "bufferC",
858
- "bufferD",
859
- "image",
860
- ]) {
861
- channels.set(pass, this.buildChannels(pass));
862
- }
863
- return channels;
864
- }
865
- /** `true` si hors viewport on doit libérer textures/FBO. */
866
- wantsReleaseOffscreen() {
867
- return shouldReleaseWhenOffscreen(this.releaseOffscreen, channelsUseSelf(this.collectPassChannels().values()));
868
- }
869
- /**
870
- * Re-lie les canaux sans recompiler ni vider les FBO (Vague A Lot 2).
871
- */
872
- async rebindChannels() {
873
- if (!this.runtime || this.runtime.isLost || !this.image.trim())
874
- return;
875
- if (!this.ready) {
876
- void this.rebuild();
877
- return;
878
- }
879
- const token = ++this.rebindToken;
880
- const channels = this.collectPassChannels();
881
- try {
882
- const urls = this.collectUrls(channels);
883
- await this.runtime.ensureTextures(urls);
884
- for (const key of this.collectElementKeys(channels)) {
885
- this.runtime.ensureElementTexture(key);
886
- }
887
- if (token !== this.rebindToken || !this.runtime || this.runtime.isLost) {
888
- return;
889
- }
890
- this.syncFrameConsumers(channels);
891
- const aspectHint = this.channel0.startsWith("#") ? "" : this.channel0 || urls[0];
892
- this.applyAspectRatio(aspectHint);
893
- this.runtime.setPassChannels(channels);
894
- this.syncSize();
895
- }
896
- catch (err) {
897
- if (token !== this.rebindToken)
898
- return;
899
- this.emitError(err);
900
- }
901
- }
902
- async rebuild() {
903
- if (!this.runtime || this.runtime.isLost || !this.image.trim())
904
- return;
905
- this.rebindToken++;
906
- const token = ++this.rebuildToken;
907
- this.errorMessage = "";
908
- const sources = {
909
- common: this.common,
910
- image: this.image,
911
- bufferA: this.bufferA,
912
- bufferB: this.bufferB,
913
- bufferC: this.bufferC,
914
- bufferD: this.bufferD,
915
- };
916
- const channels = this.collectPassChannels();
917
- try {
918
- this.syncSize();
919
- this.activeBufferFormat = this.runtime.setBufferFormat(parseBufferFormat(this.bufferFormat));
920
- const urls = this.collectUrls(channels);
921
- await this.runtime.ensureTextures(urls);
922
- for (const key of this.collectElementKeys(channels)) {
923
- this.runtime.ensureElementTexture(key);
924
- }
925
- if (token !== this.rebuildToken || !this.runtime || this.runtime.isLost) {
926
- return;
927
- }
928
- this.syncFrameConsumers(channels);
929
- const aspectHint = this.channel0.startsWith("#") ? "" : this.channel0 || urls[0];
930
- this.applyAspectRatio(aspectHint);
931
- this.syncSize();
932
- this.runtime.setSources(sources, channels);
933
- if (token !== this.rebuildToken || !this.runtime || this.runtime.isLost) {
934
- return;
935
- }
936
- this.ready = true;
937
- this.startTime = performance.now();
938
- this.lastTime = this.startTime;
939
- this.frame = 0;
940
- this.drawFrame(this.startTime);
941
- this.syncPlayback();
942
- }
943
- catch (err) {
944
- if (token !== this.rebuildToken)
945
- return;
946
- this.ready = false;
947
- this.stopLoop();
948
- this.emitError(err);
949
- }
950
- }
951
- emitError(err) {
952
- const message = err instanceof ShaderCompileError
953
- ? err.message
954
- : err instanceof Error
955
- ? err.message
956
- : String(err);
957
- this.errorMessage = message;
958
- this.dispatchEvent(new CustomEvent("error", {
959
- detail: {
960
- message,
961
- pass: err instanceof ShaderCompileError ? err.pass : undefined,
962
- infoLog: err instanceof ShaderCompileError ? err.infoLog : undefined,
963
- },
964
- bubbles: true,
965
- composed: true,
966
- }));
967
- }
968
- shouldAnimate() {
969
- if (!this.play ||
970
- !this.ready ||
971
- !this.inView ||
972
- prefersReducedMotion() ||
973
- !this.runtime) {
974
- return false;
975
- }
976
- if (this.playOnHover) {
977
- return this.hovering || !this.hoverSettled();
978
- }
979
- return true;
980
- }
981
- hoverSettled() {
982
- if (parseHoverParam(this.hoverParam) === null)
983
- return true;
984
- return Math.abs(this.hoverMix - this.hoverGoal) < 0.002;
985
- }
986
- syncPlayback() {
987
- if (this.shouldAnimate()) {
988
- this.runtime?.setVideosPlaying(true);
989
- if (!this.raf) {
990
- this.lastTime = performance.now();
991
- this.loop();
992
- }
993
- }
994
- else {
995
- this.stopLoop();
996
- this.runtime?.setVideosPlaying(false);
997
- if (this.ready)
998
- this.drawFrame(performance.now());
999
- }
1000
- }
1001
- stopLoop() {
1002
- if (this.raf) {
1003
- cancelAnimationFrame(this.raf);
1004
- this.raf = 0;
1005
- }
1006
- }
1007
- drawFrame(now) {
1008
- if (!this.runtime || !this.ready)
1009
- return;
1010
- const time = (now - this.startTime) / 1000;
1011
- const timeDelta = Math.max(0, (now - this.lastTime) / 1000);
1012
- this.lastTime = now;
1013
- this.advanceMouseFollow(timeDelta);
1014
- this.advanceHover(timeDelta);
1015
- const params = this.effectiveParams();
1016
- this.runtime.render({
1017
- time,
1018
- timeDelta,
1019
- frame: this.frame++,
1020
- mouse: this.mouseVec,
1021
- params,
1022
- });
1023
- this.frameSeq++;
1024
- this.maybePublishOut(now, time, params);
1025
- void this.maybeExtract(now, time);
1026
- }
1027
- round3(n) {
1028
- return Math.round(n * 1000) / 1000;
1029
- }
1030
- buildOutput(time, params, wantSample = false) {
1031
- const { width, height } = this.runtime?.size ?? { width: 1, height: 1 };
1032
- const hasPtr = this.mouseHasPointer;
1033
- const mx = hasPtr && width > 0 ? this.mouseVec[0] / width : 0.5;
1034
- const my = hasPtr && height > 0 ? this.mouseVec[1] / height : 0.5;
1035
- const p = params ?? this.effectiveParams();
1036
- const out = {
1037
- time: this.round3(time),
1038
- frame: this.frame,
1039
- mouseX: this.round3(mx),
1040
- mouseY: this.round3(my),
1041
- hovering: this.hovering ? 1 : 0,
1042
- param0: this.round3(p[0]),
1043
- param1: this.round3(p[1]),
1044
- param2: this.round3(p[2]),
1045
- param3: this.round3(p[3]),
1046
- };
1047
- if (wantSample && this.runtime) {
1048
- const sx = hasPtr ? this.mouseVec[0] : width * 0.5;
1049
- const sy = hasPtr ? this.mouseVec[1] : height * 0.5;
1050
- const [r8, g8, b8, a8] = this.runtime.readPixel(sx, sy);
1051
- const r = r8 / 255;
1052
- const g = g8 / 255;
1053
- const b = b8 / 255;
1054
- const a = a8 / 255;
1055
- out.sampleR = this.round3(r);
1056
- out.sampleG = this.round3(g);
1057
- out.sampleB = this.round3(b);
1058
- out.sampleA = this.round3(a);
1059
- out.sampleLuma = this.round3(0.2126 * r + 0.7152 * g + 0.0722 * b);
1060
- }
1061
- return out;
1062
- }
1063
- /** Un champ out du publisher a-t-il un listener (sonic-value, @subscribe…) ? */
1064
- publisherFieldHasListener(key) {
1065
- const pub = this.outPublisher;
1066
- const child = pub?._proxies_?.get(key);
1067
- return !!child?.hasListener?.();
1068
- }
1069
- /**
1070
- * Publication paresseuse : uniquement s’il y a un event `out` ou un lecteur
1071
- * DP sur un champ de sortie. Sinon aucun coût (pas de set, pas de readPixels).
1072
- */
1073
- hasOutConsumers() {
1074
- if (this.outEventListeners > 0)
1075
- return true;
1076
- if (!this.outPublisher)
1077
- return false;
1078
- for (const key of OUT_META_KEYS) {
1079
- if (this.publisherFieldHasListener(key))
1080
- return true;
1081
- }
1082
- for (const key of OUT_SAMPLE_KEYS) {
1083
- if (this.publisherFieldHasListener(key))
1084
- return true;
1085
- }
1086
- return false;
1087
- }
1088
- /**
1089
- * Même DP pour form (entrée param*) et out : ne pas réécrire les params
1090
- * pilotés par le formulaire (sinon sortie viewport / hoverMix → champs à 0).
1091
- * Seul le slot `hover-param` reste écrit (piloté par le shader).
1092
- */
1093
- shouldSkipParamOutWrite(key) {
1094
- if (!OUT_PARAM_KEYS.includes(key))
1095
- return false;
1096
- if (!this.formPublisher || this.formPublisher !== this.outPublisher) {
1097
- return false;
1098
- }
1099
- const slot = parseHoverParam(this.hoverParam);
1100
- if (slot === null)
1101
- return true;
1102
- return Number(key.slice(5)) !== slot;
1103
- }
1104
- /**
1105
- * `readPixels` si `sample` et au moins un consommateur out.
1106
- * (Un `@handle(frame)` + `get(dp)` massif doit recevoir les samples.)
1107
- */
1108
- needsSampleRead() {
1109
- return this.sample && this.hasOutConsumers();
1110
- }
1111
- maybePublishOut(now, time, params) {
1112
- if (!this.outPublisher)
1113
- this.bindOutPublisher();
1114
- if (!this.hasOutConsumers())
1115
- return;
1116
- const interval = Math.max(16, this.outInterval || 80);
1117
- if (now - this.lastOutAt < interval)
1118
- return;
1119
- this.lastOutAt = now;
1120
- const payload = this.buildOutput(time, params, this.needsSampleRead());
1121
- const pub = this.outPublisher;
1122
- if (pub) {
1123
- for (const [key, value] of Object.entries(payload)) {
1124
- if (value === undefined)
1125
- continue;
1126
- if (this.shouldSkipParamOutWrite(key))
1127
- continue;
1128
- try {
1129
- // Champs individuels pour ne pas écraser le reste du form
1130
- pub[key].set(value);
1131
- }
1132
- catch {
1133
- /* publisher leaf manquant / non settable */
1134
- }
1135
- }
1136
- }
1137
- this.dispatchEvent(new CustomEvent("out", {
1138
- detail: payload,
1139
- bubbles: true,
1140
- composed: true,
1141
- }));
1142
- }
1143
- revokeBlobUrls() {
1144
- for (const url of this.lastBlobUrls) {
1145
- try {
1146
- URL.revokeObjectURL(url);
1147
- }
1148
- catch {
1149
- /* ignore */
1150
- }
1151
- }
1152
- this.lastBlobUrls = [];
1153
- }
1154
- /** Révoque les URLs du batch précédent après un court délai (évite img cassées). */
1155
- scheduleRevokePreviousBlobs(urls) {
1156
- const objectUrls = urls.filter((u) => u.startsWith("blob:"));
1157
- if (objectUrls.length === 0)
1158
- return;
1159
- this.pendingRevokeUrls.push(...objectUrls);
1160
- const toRevoke = objectUrls;
1161
- window.setTimeout(() => {
1162
- for (const url of toRevoke) {
1163
- try {
1164
- URL.revokeObjectURL(url);
1165
- }
1166
- catch {
1167
- /* ignore */
1168
- }
1169
- const i = this.pendingRevokeUrls.indexOf(url);
1170
- if (i >= 0)
1171
- this.pendingRevokeUrls.splice(i, 1);
1172
- }
1173
- }, 1500);
1174
- }
1175
- publisherHasFieldListener(pub, key) {
1176
- const child = pub?._proxies_?.get(key);
1177
- return !!child?.hasListener?.();
1178
- }
1179
- hasExtractConsumers() {
1180
- if (this.extractEventListeners > 0)
1181
- return true;
1182
- const pub = this.extractPublisher;
1183
- if (!pub)
1184
- return false;
1185
- for (const key of EXTRACT_OUT_KEYS) {
1186
- if (this.publisherHasFieldListener(pub, key))
1187
- return true;
1188
- }
1189
- return false;
1190
- }
1191
- syncManualRoisFromPublishers() {
1192
- const tryGet = (pub) => {
1193
- if (!pub?.get)
1194
- return;
1195
- try {
1196
- const data = pub.get() ?? {};
1197
- if ("rois" in data)
1198
- this.manualRois = parseRois(data.rois);
1199
- }
1200
- catch {
1201
- /* ignore */
1202
- }
1203
- };
1204
- tryGet(this.formPublisher);
1205
- if (this.extractPublisher && this.extractPublisher !== this.formPublisher) {
1206
- tryGet(this.extractPublisher);
1207
- }
1208
- }
1209
- resolveExtractInterval() {
1210
- if (this.extractInterval > 0)
1211
- return Math.max(16, this.extractInterval);
1212
- return Math.max(16, this.outInterval || 100);
1213
- }
1214
- /**
1215
- * Lit une ROI à la demande (hors throttle). Nécessite un runtime prêt.
1216
- */
1217
- async readRegion(roi) {
1218
- if (!this.runtime || !this.ready)
1219
- return null;
1220
- const item = await this.buildExtractItem(roi, "manual", undefined);
1221
- return item;
1222
- }
1223
- /** Lance une extraction complète immédiatement. */
1224
- async extractNow() {
1225
- const time = (performance.now() - this.startTime) / 1000;
1226
- return this.runExtract(time);
1227
- }
1228
- async maybeExtract(now, time) {
1229
- if (!this.extract || !this.ready || !this.runtime)
1230
- return;
1231
- if (!this.extractPublisher)
1232
- this.bindExtractPublisher();
1233
- if (!this.hasExtractConsumers())
1234
- return;
1235
- if (now - this.lastExtractAt < this.resolveExtractInterval())
1236
- return;
1237
- if (this.extractRunning)
1238
- return;
1239
- this.lastExtractAt = now;
1240
- await this.runExtract(time);
1241
- }
1242
- async runExtract(time) {
1243
- const empty = {
1244
- frame: this.frame,
1245
- time: this.round3(time),
1246
- items: [],
1247
- };
1248
- if (!this.runtime || !this.ready)
1249
- return empty;
1250
- this.extractRunning = true;
1251
- try {
1252
- this.syncManualRoisFromPublishers();
1253
- const { width: bufW, height: bufH } = this.runtime.size;
1254
- const rois = this.manualRois.map((r) => ({
1255
- ...r,
1256
- source: "manual",
1257
- }));
1258
- const maskPass = parseExtractPass(this.extractMask);
1259
- if (maskPass) {
1260
- const full = this.runtime.readBufferRect(maskPass, 0, 0, bufW, bufH);
1261
- if (full) {
1262
- const peaks = findPeaks(full.data, full.width, full.height, {
1263
- threshold: this.extractThreshold,
1264
- maxCount: Math.max(0, Math.floor(this.extractMax)),
1265
- // Défaut ≈ patch/3 plafonné à 16 (doc) — laisse assez de coins espacés
1266
- minDistance: Math.max(8, Math.floor(Math.min(this.extractPatch / 3, 16))),
1267
- });
1268
- // Score relatif au meilleur peak du batch (ordre inchangé, UI lisible)
1269
- const topScore = peaks[0]?.score || 1;
1270
- for (let i = 0; i < peaks.length; i++) {
1271
- const p = peaks[i];
1272
- rois.push({
1273
- id: `detect-${i}`,
1274
- x: (p.x + 0.5) / bufW,
1275
- y: (p.y + 0.5) / bufH,
1276
- patch: this.extractPatch,
1277
- source: "detect",
1278
- score: topScore > 0 ? p.score / topScore : p.score,
1279
- });
1280
- }
1281
- }
1282
- }
1283
- const pending = [];
1284
- let detectIdx = 0;
1285
- const pass = parseExtractPass(this.extractSource) ?? "image";
1286
- for (const roi of rois) {
1287
- const source = roi.source === "detect" ? "detect" : "manual";
1288
- if (source === "detect") {
1289
- if (detectIdx >= Math.max(0, Math.floor(this.extractMax)))
1290
- continue;
1291
- detectIdx++;
1292
- }
1293
- const px = roiToPixels(roi, bufW, bufH, this.extractPatch, MAX_PATCH_PX);
1294
- if (!px)
1295
- continue;
1296
- const rect = pass === "image"
1297
- ? this.runtime.readRect(px.x, px.y, px.w, px.h)
1298
- : this.runtime.readBufferRect(pass, px.x, px.y, px.w, px.h);
1299
- if (!rect)
1300
- continue;
1301
- // Copie : le buffer WebGL peut être réutilisé / invalidé ensuite
1302
- const rgba = rgbaToUint8(rect.data);
1303
- const mean = meanRgba(rect.data);
1304
- const item = {
1305
- id: roi.id || `${source}-${px.x}-${px.y}`,
1306
- x: this.round3(rect.x / bufW),
1307
- y: this.round3(rect.y / bufH),
1308
- w: this.round3(rect.width / bufW),
1309
- h: this.round3(rect.height / bufH),
1310
- meanR: this.round3(mean.r),
1311
- meanG: this.round3(mean.g),
1312
- meanB: this.round3(mean.b),
1313
- meanA: this.round3(mean.a),
1314
- meanLuma: this.round3(mean.luma),
1315
- source,
1316
- };
1317
- if (typeof roi.score === "number")
1318
- item.score = this.round3(roi.score);
1319
- pending.push({
1320
- item,
1321
- rgba,
1322
- width: rect.width,
1323
- height: rect.height,
1324
- });
1325
- }
1326
- // Phase async : bitmaps (après copies CPU)
1327
- if (this.extractBitmaps) {
1328
- const token = this.rebuildToken;
1329
- for (const p of pending) {
1330
- if (token !== this.rebuildToken || !this.isConnected) {
1331
- for (const q of pending) {
1332
- if (q.item.blobUrl)
1333
- revokeMediaUrls([q.item.blobUrl]);
1334
- }
1335
- return empty;
1336
- }
1337
- const url = await rgbaToBlobUrl(p.rgba, p.width, p.height);
1338
- if (token !== this.rebuildToken || !this.isConnected) {
1339
- if (url)
1340
- revokeMediaUrls([url]);
1341
- for (const q of pending) {
1342
- if (q.item.blobUrl)
1343
- revokeMediaUrls([q.item.blobUrl]);
1344
- }
1345
- return empty;
1346
- }
1347
- if (url)
1348
- assignExtractMediaUrls(p.item, url);
1349
- }
1350
- }
1351
- if (!this.isConnected) {
1352
- for (const p of pending) {
1353
- if (p.item.blobUrl)
1354
- revokeMediaUrls([p.item.blobUrl]);
1355
- }
1356
- return empty;
1357
- }
1358
- const items = pending.map((p) => p.item);
1359
- const payload = {
1360
- frame: this.frame,
1361
- time: this.round3(time),
1362
- items,
1363
- };
1364
- this.publishExtract(payload);
1365
- return payload;
1366
- }
1367
- finally {
1368
- this.extractRunning = false;
1369
- }
1370
- }
1371
- async buildExtractItem(roi, source, score) {
1372
- if (!this.runtime)
1373
- return null;
1374
- const { width: bufW, height: bufH } = this.runtime.size;
1375
- const px = roiToPixels(roi, bufW, bufH, this.extractPatch, MAX_PATCH_PX);
1376
- if (!px)
1377
- return null;
1378
- const pass = parseExtractPass(this.extractSource) ?? "image";
1379
- const rect = pass === "image"
1380
- ? this.runtime.readRect(px.x, px.y, px.w, px.h)
1381
- : this.runtime.readBufferRect(pass, px.x, px.y, px.w, px.h);
1382
- if (!rect)
1383
- return null;
1384
- const mean = meanRgba(rect.data);
1385
- const item = {
1386
- id: roi.id || `${source}-${px.x}-${px.y}`,
1387
- x: this.round3(rect.x / bufW),
1388
- y: this.round3(rect.y / bufH),
1389
- w: this.round3(rect.width / bufW),
1390
- h: this.round3(rect.height / bufH),
1391
- meanR: this.round3(mean.r),
1392
- meanG: this.round3(mean.g),
1393
- meanB: this.round3(mean.b),
1394
- meanA: this.round3(mean.a),
1395
- meanLuma: this.round3(mean.luma),
1396
- source,
1397
- };
1398
- if (typeof score === "number")
1399
- item.score = this.round3(score);
1400
- if (this.extractBitmaps) {
1401
- const token = this.rebuildToken;
1402
- const url = await rgbaToBlobUrl(rgbaToUint8(rect.data), rect.width, rect.height);
1403
- if (token !== this.rebuildToken || !this.isConnected) {
1404
- if (url)
1405
- revokeMediaUrls([url]);
1406
- return null;
1407
- }
1408
- if (url)
1409
- assignExtractMediaUrls(item, url);
1410
- }
1411
- return item;
1412
- }
1413
- publishExtract(payload) {
1414
- // Ne pas révoquer tout de suite : les <img> du batch précédent casseraient.
1415
- this.scheduleRevokePreviousBlobs(this.lastBlobUrls);
1416
- this.lastBlobUrls = [];
1417
- for (const it of payload.items) {
1418
- if (it.blobUrl)
1419
- this.lastBlobUrls.push(it.blobUrl);
1420
- }
1421
- this.extractSeq++;
1422
- if (!this.extractPublisher)
1423
- this.bindExtractPublisher();
1424
- const pub = this.extractPublisher;
1425
- if (pub) {
1426
- // Set atomique sur la racine : invalide `_cachedGet_` du parent.
1427
- // (pub.extracts.set(...) seul laisse un snapshot périmé → 1 seul item en get()).
1428
- try {
1429
- const prev = pub.get?.() ?? {};
1430
- pub.set({
1431
- ...prev,
1432
- rois: Array.isArray(prev.rois) ? prev.rois : this.manualRois,
1433
- extracts: payload.items,
1434
- extractCount: payload.items.length,
1435
- extractSeq: this.extractSeq,
1436
- });
1437
- }
1438
- catch {
1439
- try {
1440
- pub.extracts.set(payload.items);
1441
- pub.extractCount.set(payload.items.length);
1442
- pub.extractSeq.set(this.extractSeq);
1443
- }
1444
- catch {
1445
- /* ignore */
1446
- }
1447
- }
1448
- }
1449
- this.dispatchEvent(new CustomEvent("extract", {
1450
- detail: payload,
1451
- bubbles: true,
1452
- composed: true,
1453
- }));
1454
- }
1455
- /**
1456
- * Mode target : poursuite exponentielle (vitesse proportionnelle à la distance).
1457
- * Frame-rate indépendant via `1 - exp(-speed * dt)`.
1458
- */
1459
- advanceMouseFollow(dt) {
1460
- if (!this.mouse || this.mouseMode !== "target" || !this.mouseHasPointer) {
1461
- return;
1462
- }
1463
- const speed = Math.max(0, this.mouseSpeed);
1464
- const t = speed <= 0 || dt <= 0 ? 1 : 1 - Math.exp(-speed * dt);
1465
- this.mouseFollow[0] += (this.mouseTarget[0] - this.mouseFollow[0]) * t;
1466
- this.mouseFollow[1] += (this.mouseTarget[1] - this.mouseFollow[1]) * t;
1467
- this.mouseVec[0] = this.mouseFollow[0];
1468
- this.mouseVec[1] = this.mouseFollow[1];
1469
- }
1470
- /** Rollover / roll-out → easing de `hoverMix` (0↔1) pour le slot choisi. */
1471
- advanceHover(dt) {
1472
- if (parseHoverParam(this.hoverParam) === null)
1473
- return;
1474
- const speed = Math.max(0, this.hoverSpeed);
1475
- const t = speed <= 0 || dt <= 0 ? 1 : 1 - Math.exp(-speed * dt);
1476
- const next = this.hoverMix + (this.hoverGoal - this.hoverMix) * t;
1477
- // Snap pour éviter une micro-animation infinie (play-on-hover qui redémarre).
1478
- this.hoverMix =
1479
- Math.abs(next - this.hoverGoal) < 0.002 ? this.hoverGoal : next;
1480
- }
1481
- localPointer(e) {
1482
- const rect = this.getBoundingClientRect();
1483
- const dpr = Math.min(window.devicePixelRatio || 1, this.dprMax);
1484
- const x = (e.clientX - rect.left) * dpr;
1485
- const y = (rect.height - (e.clientY - rect.top)) * dpr;
1486
- return { x, y };
1487
- }
1488
- setPointerTarget(x, y, snap = false) {
1489
- this.mouseTarget[0] = x;
1490
- this.mouseTarget[1] = y;
1491
- if (!this.mouseHasPointer || snap || this.mouseMode === "direct") {
1492
- this.mouseHasPointer = true;
1493
- this.mouseFollow[0] = x;
1494
- this.mouseFollow[1] = y;
1495
- this.mouseVec[0] = x;
1496
- this.mouseVec[1] = y;
1497
- }
1498
- }
1499
- render() {
1500
- return html `
1501
- <canvas part="canvas"></canvas>
1502
- ${this.errorMessage
1503
- ? html `<div class="err" part="error">${this.errorMessage}</div>`
1504
- : null}
1505
- `;
1506
- }
1507
- };
1508
- SonicShader.styles = css `
1509
- :host {
1510
- display: block;
1511
- position: relative;
1512
- width: 100%;
1513
- max-width: 100%;
1514
- height: auto;
1515
- aspect-ratio: var(--sonic-shader-ar, 16 / 9);
1516
- overflow: hidden;
1517
- background: #0a0a0a;
1518
- color: #f87171;
1519
- font: 12px/1.4 ui-monospace, monospace;
1520
- }
1521
- canvas {
1522
- position: absolute;
1523
- inset: 0;
1524
- width: 100%;
1525
- height: 100%;
1526
- display: block;
1527
- touch-action: none;
1528
- }
1529
- .err {
1530
- position: absolute;
1531
- inset: 0;
1532
- z-index: 1;
1533
- padding: 0.75rem;
1534
- background: rgba(0, 0, 0, 0.85);
1535
- white-space: pre-wrap;
1536
- overflow: auto;
1537
- }
1538
- `;
1539
- __decorate([
1540
- property()
1541
- ], SonicShader.prototype, "image", void 0);
1542
- __decorate([
1543
- property({ attribute: "buffer-a" })
1544
- ], SonicShader.prototype, "bufferA", void 0);
1545
- __decorate([
1546
- property({ attribute: "buffer-b" })
1547
- ], SonicShader.prototype, "bufferB", void 0);
1548
- __decorate([
1549
- property({ attribute: "buffer-c" })
1550
- ], SonicShader.prototype, "bufferC", void 0);
1551
- __decorate([
1552
- property({ attribute: "buffer-d" })
1553
- ], SonicShader.prototype, "bufferD", void 0);
1554
- __decorate([
1555
- property()
1556
- ], SonicShader.prototype, "common", void 0);
1557
- __decorate([
1558
- property()
1559
- ], SonicShader.prototype, "channel0", void 0);
1560
- __decorate([
1561
- property()
1562
- ], SonicShader.prototype, "channel1", void 0);
1563
- __decorate([
1564
- property()
1565
- ], SonicShader.prototype, "channel2", void 0);
1566
- __decorate([
1567
- property()
1568
- ], SonicShader.prototype, "channel3", void 0);
1569
- __decorate([
1570
- property({ attribute: "image-ch0" })
1571
- ], SonicShader.prototype, "imageCh0", void 0);
1572
- __decorate([
1573
- property({ attribute: "image-ch1" })
1574
- ], SonicShader.prototype, "imageCh1", void 0);
1575
- __decorate([
1576
- property({ attribute: "image-ch2" })
1577
- ], SonicShader.prototype, "imageCh2", void 0);
1578
- __decorate([
1579
- property({ attribute: "image-ch3" })
1580
- ], SonicShader.prototype, "imageCh3", void 0);
1581
- __decorate([
1582
- property({ attribute: "buffer-a-ch0" })
1583
- ], SonicShader.prototype, "bufferACh0", void 0);
1584
- __decorate([
1585
- property({ attribute: "buffer-a-ch1" })
1586
- ], SonicShader.prototype, "bufferACh1", void 0);
1587
- __decorate([
1588
- property({ attribute: "buffer-a-ch2" })
1589
- ], SonicShader.prototype, "bufferACh2", void 0);
1590
- __decorate([
1591
- property({ attribute: "buffer-a-ch3" })
1592
- ], SonicShader.prototype, "bufferACh3", void 0);
1593
- __decorate([
1594
- property({ attribute: "buffer-b-ch0" })
1595
- ], SonicShader.prototype, "bufferBCh0", void 0);
1596
- __decorate([
1597
- property({ attribute: "buffer-b-ch1" })
1598
- ], SonicShader.prototype, "bufferBCh1", void 0);
1599
- __decorate([
1600
- property({ attribute: "buffer-b-ch2" })
1601
- ], SonicShader.prototype, "bufferBCh2", void 0);
1602
- __decorate([
1603
- property({ attribute: "buffer-b-ch3" })
1604
- ], SonicShader.prototype, "bufferBCh3", void 0);
1605
- __decorate([
1606
- property({ attribute: "buffer-c-ch0" })
1607
- ], SonicShader.prototype, "bufferCCh0", void 0);
1608
- __decorate([
1609
- property({ attribute: "buffer-c-ch1" })
1610
- ], SonicShader.prototype, "bufferCCh1", void 0);
1611
- __decorate([
1612
- property({ attribute: "buffer-c-ch2" })
1613
- ], SonicShader.prototype, "bufferCCh2", void 0);
1614
- __decorate([
1615
- property({ attribute: "buffer-c-ch3" })
1616
- ], SonicShader.prototype, "bufferCCh3", void 0);
1617
- __decorate([
1618
- property({ attribute: "buffer-d-ch0" })
1619
- ], SonicShader.prototype, "bufferDCh0", void 0);
1620
- __decorate([
1621
- property({ attribute: "buffer-d-ch1" })
1622
- ], SonicShader.prototype, "bufferDCh1", void 0);
1623
- __decorate([
1624
- property({ attribute: "buffer-d-ch2" })
1625
- ], SonicShader.prototype, "bufferDCh2", void 0);
1626
- __decorate([
1627
- property({ attribute: "buffer-d-ch3" })
1628
- ], SonicShader.prototype, "bufferDCh3", void 0);
1629
- __decorate([
1630
- property({ type: Boolean, reflect: true })
1631
- ], SonicShader.prototype, "play", void 0);
1632
- __decorate([
1633
- property({ type: Boolean, attribute: "play-on-hover" })
1634
- ], SonicShader.prototype, "playOnHover", void 0);
1635
- __decorate([
1636
- property({ type: Boolean })
1637
- ], SonicShader.prototype, "mouse", void 0);
1638
- __decorate([
1639
- property({ type: String, attribute: "mouse-mode" })
1640
- ], SonicShader.prototype, "mouseMode", void 0);
1641
- __decorate([
1642
- property({ type: Number, attribute: "mouse-speed" })
1643
- ], SonicShader.prototype, "mouseSpeed", void 0);
1644
- __decorate([
1645
- property({ attribute: "hover-param" })
1646
- ], SonicShader.prototype, "hoverParam", void 0);
1647
- __decorate([
1648
- property({ type: Number, attribute: "hover-speed" })
1649
- ], SonicShader.prototype, "hoverSpeed", void 0);
1650
- __decorate([
1651
- property({
1652
- attribute: "release-offscreen",
1653
- converter: {
1654
- fromAttribute: (value) => parseReleaseOffscreen(value),
1655
- toAttribute: (value) => {
1656
- if (value === "auto")
1657
- return "auto";
1658
- if (value === false)
1659
- return "false";
1660
- return "";
1661
- },
1662
- },
1663
- })
1664
- ], SonicShader.prototype, "releaseOffscreen", void 0);
1665
- __decorate([
1666
- property({ type: Number, attribute: "dpr-max" })
1667
- ], SonicShader.prototype, "dprMax", void 0);
1668
- __decorate([
1669
- property({ attribute: "buffer-format" })
1670
- ], SonicShader.prototype, "bufferFormat", void 0);
1671
- __decorate([
1672
- property({ attribute: "active-buffer-format", reflect: true })
1673
- ], SonicShader.prototype, "activeBufferFormat", void 0);
1674
- __decorate([
1675
- property({ type: Number, attribute: "param0" })
1676
- ], SonicShader.prototype, "param0", void 0);
1677
- __decorate([
1678
- property({ type: Number, attribute: "param1" })
1679
- ], SonicShader.prototype, "param1", void 0);
1680
- __decorate([
1681
- property({ type: Number, attribute: "param2" })
1682
- ], SonicShader.prototype, "param2", void 0);
1683
- __decorate([
1684
- property({ type: Number, attribute: "param3" })
1685
- ], SonicShader.prototype, "param3", void 0);
1686
- __decorate([
1687
- property({ type: String })
1688
- ], SonicShader.prototype, "dataProvider", void 0);
1689
- __decorate([
1690
- property({ type: String, attribute: "out-data-provider" })
1691
- ], SonicShader.prototype, "outDataProvider", void 0);
1692
- __decorate([
1693
- property({ type: Boolean })
1694
- ], SonicShader.prototype, "sample", void 0);
1695
- __decorate([
1696
- property({ type: Number, attribute: "out-interval" })
1697
- ], SonicShader.prototype, "outInterval", void 0);
1698
- __decorate([
1699
- property({ type: Boolean })
1700
- ], SonicShader.prototype, "extract", void 0);
1701
- __decorate([
1702
- property({ type: Number, attribute: "extract-interval" })
1703
- ], SonicShader.prototype, "extractInterval", void 0);
1704
- __decorate([
1705
- property({ type: String, attribute: "extract-source" })
1706
- ], SonicShader.prototype, "extractSource", void 0);
1707
- __decorate([
1708
- property({ type: String, attribute: "extract-mask" })
1709
- ], SonicShader.prototype, "extractMask", void 0);
1710
- __decorate([
1711
- property({ type: Number, attribute: "extract-threshold" })
1712
- ], SonicShader.prototype, "extractThreshold", void 0);
1713
- __decorate([
1714
- property({ type: Number, attribute: "extract-max" })
1715
- ], SonicShader.prototype, "extractMax", void 0);
1716
- __decorate([
1717
- property({ type: Number, attribute: "extract-patch" })
1718
- ], SonicShader.prototype, "extractPatch", void 0);
1719
- __decorate([
1720
- property({ type: Boolean, attribute: "extract-bitmaps" })
1721
- ], SonicShader.prototype, "extractBitmaps", void 0);
1722
- __decorate([
1723
- property({ type: String, attribute: "extract-data-provider" })
1724
- ], SonicShader.prototype, "extractDataProvider", void 0);
1725
- __decorate([
1726
- property({ type: String, attribute: "aspect-ratio" })
1727
- ], SonicShader.prototype, "aspectRatio", void 0);
1728
- __decorate([
1729
- state()
1730
- ], SonicShader.prototype, "errorMessage", void 0);
1731
- SonicShader = __decorate([
1732
- customElement(tagName)
1733
- ], SonicShader);
1734
- export { SonicShader };
1735
- export { parseChannelSource, ShaderToyRuntime, shouldUploadElementFrame, resolveBufferGlFormat, resetBufferFormatWarnFlag } from "./gl-runtime";
1736
- export { buildFragmentSource } from "./shadertoy-prelude";
1737
- export { toMediaUrl, cloneMediaRef, isFrameSource, mediaElementKey, } from "@supersoniks/concorde/core/utils/mediaRef";
1738
- export { channelsUseSelf, findPeaks, meanRgba, parseBufferFormat, parseExtractPass, parseHoverParam, parseReleaseOffscreen, roiToPixels, rgbaToUint8, shouldReleaseWhenOffscreen, ShaderCompileError, } from "./types";
1739
- //# sourceMappingURL=shader.js.map