@supersoniks/concorde 4.9.95 → 4.9.97-visual-stack.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 (1013) hide show
  1. package/README.md +34 -17
  2. package/build-infos.json +1 -1
  3. package/concorde-3d.bundle.js +1 -1
  4. package/concorde-3d.es.js +1 -1
  5. package/concorde-core.bundle.js +147 -147
  6. package/concorde-core.es.js +4375 -4282
  7. package/concorde-hugging-face-infer.bundle.js +1 -1
  8. package/concorde-hugging-face-infer.es.js +1 -1
  9. package/concorde-shader.bundle.js +1 -1
  10. package/concorde-shader.es.js +1 -1
  11. package/concorde-webgpu.bundle.js +1 -1
  12. package/concorde-webgpu.es.js +1 -1
  13. package/dist/concorde-3d.bundle.js +3911 -0
  14. package/dist/concorde-3d.es.js +32635 -0
  15. package/dist/concorde-core.bundle.js +147 -147
  16. package/dist/concorde-core.es.js +4375 -4282
  17. package/dist/concorde-hugging-face-infer.bundle.js +32 -0
  18. package/dist/concorde-hugging-face-infer.es.js +2952 -0
  19. package/dist/concorde-shader.bundle.js +105 -0
  20. package/dist/concorde-shader.es.js +7982 -0
  21. package/dist/concorde-webgpu.bundle.js +296 -0
  22. package/dist/concorde-webgpu.es.js +8268 -0
  23. package/dist/docs/hf-samples/beach.jpg +0 -0
  24. package/dist/docs/hf-samples/cats.jpg +0 -0
  25. package/dist/docs/hf-samples/corgi.jpg +0 -0
  26. package/dist/docs/hf-samples/portrait.jpg +0 -0
  27. package/dist/docs/hf-samples/scene.jpg +0 -0
  28. package/dist/docs/hf-samples/singer.jpg +0 -0
  29. package/dist/docs/shader-samples/color.jpg +0 -0
  30. package/dist/docs/shader-samples/depth.png +0 -0
  31. package/dist/docs/shader-samples/impact.jpg +0 -0
  32. package/dist/docs/shader-samples/video.webm +0 -0
  33. package/dist/js/addons/3d.js +6 -0
  34. package/dist/js/addons/3d.js.map +1 -0
  35. package/dist/js/addons/hugging-face-infer.js +8 -0
  36. package/dist/js/addons/hugging-face-infer.js.map +1 -0
  37. package/dist/js/addons/shader.js +6 -0
  38. package/dist/js/addons/shader.js.map +1 -0
  39. package/dist/js/addons/webgpu.js +7 -0
  40. package/dist/js/addons/webgpu.js.map +1 -0
  41. package/dist/js/components.js +12 -0
  42. package/dist/js/components.js.map +1 -0
  43. package/dist/js/concorde-loaded.js +5 -0
  44. package/dist/js/concorde-loaded.js.map +1 -0
  45. package/dist/js/core/_types/endpoint.js +5 -0
  46. package/dist/js/core/_types/endpoint.js.map +1 -0
  47. package/dist/js/core/_types/key.js +2 -0
  48. package/dist/js/core/_types/key.js.map +1 -0
  49. package/dist/js/core/_types/types.js +3 -0
  50. package/dist/js/core/_types/types.js.map +1 -0
  51. package/dist/js/core/components/functional/3d/3d.js +151 -0
  52. package/dist/js/core/components/functional/3d/3d.js.map +1 -0
  53. package/dist/js/core/components/functional/3d/asset.js +20 -0
  54. package/dist/js/core/components/functional/3d/asset.js.map +1 -0
  55. package/dist/js/core/components/functional/3d/boot.js +47 -0
  56. package/dist/js/core/components/functional/3d/boot.js.map +1 -0
  57. package/dist/js/core/components/functional/3d/constants.js +88 -0
  58. package/dist/js/core/components/functional/3d/constants.js.map +1 -0
  59. package/dist/js/core/components/functional/3d/demo-content.js +38 -0
  60. package/dist/js/core/components/functional/3d/demo-content.js.map +1 -0
  61. package/dist/js/core/components/functional/3d/ensure.js +73 -0
  62. package/dist/js/core/components/functional/3d/ensure.js.map +1 -0
  63. package/dist/js/core/components/functional/3d/form-bind.js +25 -0
  64. package/dist/js/core/components/functional/3d/form-bind.js.map +1 -0
  65. package/dist/js/core/components/functional/3d/form-fields.js +76 -0
  66. package/dist/js/core/components/functional/3d/form-fields.js.map +1 -0
  67. package/dist/js/core/components/functional/3d/form-params.js +67 -0
  68. package/dist/js/core/components/functional/3d/form-params.js.map +1 -0
  69. package/dist/js/core/components/functional/3d/frame-capture.js +108 -0
  70. package/dist/js/core/components/functional/3d/frame-capture.js.map +1 -0
  71. package/dist/js/core/components/functional/3d/gl.js +34 -0
  72. package/dist/js/core/components/functional/3d/gl.js.map +1 -0
  73. package/dist/js/core/components/functional/3d/life.js +55 -0
  74. package/dist/js/core/components/functional/3d/life.js.map +1 -0
  75. package/dist/js/core/components/functional/3d/load.js +109 -0
  76. package/dist/js/core/components/functional/3d/load.js.map +1 -0
  77. package/dist/js/core/components/functional/3d/ops.js +78 -0
  78. package/dist/js/core/components/functional/3d/ops.js.map +1 -0
  79. package/dist/js/core/components/functional/3d/opts.js +2 -0
  80. package/dist/js/core/components/functional/3d/opts.js.map +1 -0
  81. package/dist/js/core/components/functional/3d/orbit.js +136 -0
  82. package/dist/js/core/components/functional/3d/orbit.js.map +1 -0
  83. package/dist/js/core/components/functional/3d/out-publish.js +103 -0
  84. package/dist/js/core/components/functional/3d/out-publish.js.map +1 -0
  85. package/dist/js/core/components/functional/3d/parse.js +95 -0
  86. package/dist/js/core/components/functional/3d/parse.js.map +1 -0
  87. package/dist/js/core/components/functional/3d/pick.js +62 -0
  88. package/dist/js/core/components/functional/3d/pick.js.map +1 -0
  89. package/dist/js/core/components/functional/3d/playback.js +56 -0
  90. package/dist/js/core/components/functional/3d/playback.js.map +1 -0
  91. package/dist/js/core/components/functional/3d/pointer.js +58 -0
  92. package/dist/js/core/components/functional/3d/pointer.js.map +1 -0
  93. package/dist/js/core/components/functional/3d/props.js +105 -0
  94. package/dist/js/core/components/functional/3d/props.js.map +1 -0
  95. package/dist/js/core/components/functional/3d/publisher-listen.js +6 -0
  96. package/dist/js/core/components/functional/3d/publisher-listen.js.map +1 -0
  97. package/dist/js/core/components/functional/3d/reload.js +60 -0
  98. package/dist/js/core/components/functional/3d/reload.js.map +1 -0
  99. package/dist/js/core/components/functional/3d/runtime.js +116 -0
  100. package/dist/js/core/components/functional/3d/runtime.js.map +1 -0
  101. package/dist/js/core/components/functional/3d/scene-runtime.js +6 -0
  102. package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -0
  103. package/dist/js/core/components/functional/3d/snapshot.js +47 -0
  104. package/dist/js/core/components/functional/3d/snapshot.js.map +1 -0
  105. package/dist/js/core/components/functional/3d/styles.js +38 -0
  106. package/dist/js/core/components/functional/3d/styles.js.map +1 -0
  107. package/dist/js/core/components/functional/3d/tune.js +42 -0
  108. package/dist/js/core/components/functional/3d/tune.js.map +1 -0
  109. package/dist/js/core/components/functional/3d/types.js +8 -0
  110. package/dist/js/core/components/functional/3d/types.js.map +1 -0
  111. package/dist/js/core/components/functional/3d/updated.js +58 -0
  112. package/dist/js/core/components/functional/3d/updated.js.map +1 -0
  113. package/dist/js/core/components/functional/3d/view.js +40 -0
  114. package/dist/js/core/components/functional/3d/view.js.map +1 -0
  115. package/dist/js/core/components/functional/3d/wire.js +34 -0
  116. package/dist/js/core/components/functional/3d/wire.js.map +1 -0
  117. package/dist/js/core/components/functional/date/date.js +272 -0
  118. package/dist/js/core/components/functional/date/date.js.map +1 -0
  119. package/dist/js/core/components/functional/example/example.js +44 -0
  120. package/dist/js/core/components/functional/example/example.js.map +1 -0
  121. package/dist/js/core/components/functional/fetch/fetch.js +79 -0
  122. package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
  123. package/dist/js/core/components/functional/functional.js +18 -0
  124. package/dist/js/core/components/functional/functional.js.map +1 -0
  125. package/dist/js/core/components/functional/if/if.js +39 -0
  126. package/dist/js/core/components/functional/if/if.js.map +1 -0
  127. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +183 -0
  128. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +1 -0
  129. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +50 -0
  130. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +1 -0
  131. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +460 -0
  132. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +1 -0
  133. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +116 -0
  134. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +1 -0
  135. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +170 -0
  136. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +1 -0
  137. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +2 -0
  138. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +1 -0
  139. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +367 -0
  140. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +1 -0
  141. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +288 -0
  142. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +1 -0
  143. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +309 -0
  144. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +1 -0
  145. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +213 -0
  146. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +1 -0
  147. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +76 -0
  148. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +1 -0
  149. package/dist/js/core/components/functional/infer/hugging-face/types.js +62 -0
  150. package/dist/js/core/components/functional/infer/hugging-face/types.js.map +1 -0
  151. package/dist/js/core/components/functional/jsonata/jsonata.js +119 -0
  152. package/dist/js/core/components/functional/jsonata/jsonata.js.map +1 -0
  153. package/dist/js/core/components/functional/list/list.js +341 -0
  154. package/dist/js/core/components/functional/list/list.js.map +1 -0
  155. package/dist/js/core/components/functional/mix/mix.js +103 -0
  156. package/dist/js/core/components/functional/mix/mix.js.map +1 -0
  157. package/dist/js/core/components/functional/queue/queue.js +450 -0
  158. package/dist/js/core/components/functional/queue/queue.js.map +1 -0
  159. package/dist/js/core/components/functional/router/redirect.js +54 -0
  160. package/dist/js/core/components/functional/router/redirect.js.map +1 -0
  161. package/dist/js/core/components/functional/router/router.js +179 -0
  162. package/dist/js/core/components/functional/router/router.js.map +1 -0
  163. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
  164. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
  165. package/dist/js/core/components/functional/sdui/default-library.json +108 -0
  166. package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
  167. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
  168. package/dist/js/core/components/functional/sdui/sdui.js +271 -0
  169. package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
  170. package/dist/js/core/components/functional/sdui/types.js +2 -0
  171. package/dist/js/core/components/functional/sdui/types.js.map +1 -0
  172. package/dist/js/core/components/functional/shader/gl-runtime.js +603 -0
  173. package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -0
  174. package/dist/js/core/components/functional/shader/shader.js +1593 -0
  175. package/dist/js/core/components/functional/shader/shader.js.map +1 -0
  176. package/dist/js/core/components/functional/shader/shadertoy-prelude.js +48 -0
  177. package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -0
  178. package/dist/js/core/components/functional/shader/types.js +179 -0
  179. package/dist/js/core/components/functional/shader/types.js.map +1 -0
  180. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
  181. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
  182. package/dist/js/core/components/functional/states/states.js +172 -0
  183. package/dist/js/core/components/functional/states/states.js.map +1 -0
  184. package/dist/js/core/components/functional/submit/submit.js +284 -0
  185. package/dist/js/core/components/functional/submit/submit.js.map +1 -0
  186. package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
  187. package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
  188. package/dist/js/core/components/functional/translation/translation.js +28 -0
  189. package/dist/js/core/components/functional/translation/translation.js.map +1 -0
  190. package/dist/js/core/components/functional/value/value.js +28 -0
  191. package/dist/js/core/components/functional/value/value.js.map +1 -0
  192. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +117 -0
  193. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +1 -0
  194. package/dist/js/core/components/functional/webgpu/form-bind.js +92 -0
  195. package/dist/js/core/components/functional/webgpu/form-bind.js.map +1 -0
  196. package/dist/js/core/components/functional/webgpu/gl-fallback.js +135 -0
  197. package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -0
  198. package/dist/js/core/components/functional/webgpu/gpu-runtime.js +305 -0
  199. package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -0
  200. package/dist/js/core/components/functional/webgpu/helpers.js +44 -0
  201. package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -0
  202. package/dist/js/core/components/functional/webgpu/out-frame.js +117 -0
  203. package/dist/js/core/components/functional/webgpu/out-frame.js.map +1 -0
  204. package/dist/js/core/components/functional/webgpu/particles-runtime.js +407 -0
  205. package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +1 -0
  206. package/dist/js/core/components/functional/webgpu/pointer.js +56 -0
  207. package/dist/js/core/components/functional/webgpu/pointer.js.map +1 -0
  208. package/dist/js/core/components/functional/webgpu/types.js +24 -0
  209. package/dist/js/core/components/functional/webgpu/types.js.map +1 -0
  210. package/dist/js/core/components/functional/webgpu/webgpu.js +667 -0
  211. package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -0
  212. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +77 -0
  213. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +1 -0
  214. package/dist/js/core/components/ui/_css/scroll.js +27 -0
  215. package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
  216. package/dist/js/core/components/ui/_css/shadow.js +22 -0
  217. package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
  218. package/dist/js/core/components/ui/_css/size.js +36 -0
  219. package/dist/js/core/components/ui/_css/size.js.map +1 -0
  220. package/dist/js/core/components/ui/_css/type.js +92 -0
  221. package/dist/js/core/components/ui/_css/type.js.map +1 -0
  222. package/dist/js/core/components/ui/alert/alert.js +213 -0
  223. package/dist/js/core/components/ui/alert/alert.js.map +1 -0
  224. package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
  225. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
  226. package/dist/js/core/components/ui/badge/badge.js +199 -0
  227. package/dist/js/core/components/ui/badge/badge.js.map +1 -0
  228. package/dist/js/core/components/ui/button/button.js +697 -0
  229. package/dist/js/core/components/ui/button/button.js.map +1 -0
  230. package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
  231. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
  232. package/dist/js/core/components/ui/captcha/captcha.js +167 -0
  233. package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
  234. package/dist/js/core/components/ui/card/card-footer.js +26 -0
  235. package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
  236. package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
  237. package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
  238. package/dist/js/core/components/ui/card/card-header.js +79 -0
  239. package/dist/js/core/components/ui/card/card-header.js.map +1 -0
  240. package/dist/js/core/components/ui/card/card-main.js +26 -0
  241. package/dist/js/core/components/ui/card/card-main.js.map +1 -0
  242. package/dist/js/core/components/ui/card/card.js +67 -0
  243. package/dist/js/core/components/ui/card/card.js.map +1 -0
  244. package/dist/js/core/components/ui/divider/divider.js +200 -0
  245. package/dist/js/core/components/ui/divider/divider.js.map +1 -0
  246. package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
  247. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
  248. package/dist/js/core/components/ui/form/css/form-control.js +393 -0
  249. package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
  250. package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
  251. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
  252. package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
  253. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
  254. package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
  255. package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
  256. package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
  257. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
  258. package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
  259. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
  260. package/dist/js/core/components/ui/form/input/input.js +316 -0
  261. package/dist/js/core/components/ui/form/input/input.js.map +1 -0
  262. package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
  263. package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
  264. package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
  265. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
  266. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
  267. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
  268. package/dist/js/core/components/ui/form/radio/radio.js +63 -0
  269. package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
  270. package/dist/js/core/components/ui/form/select/select.js +323 -0
  271. package/dist/js/core/components/ui/form/select/select.js.map +1 -0
  272. package/dist/js/core/components/ui/form/switch/switch.js +90 -0
  273. package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
  274. package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
  275. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
  276. package/dist/js/core/components/ui/group/group.js +128 -0
  277. package/dist/js/core/components/ui/group/group.js.map +1 -0
  278. package/dist/js/core/components/ui/icon/icon.js +145 -0
  279. package/dist/js/core/components/ui/icon/icon.js.map +1 -0
  280. package/dist/js/core/components/ui/icon/icons.js +184 -0
  281. package/dist/js/core/components/ui/icon/icons.js.map +1 -0
  282. package/dist/js/core/components/ui/icon/icons.json +1 -0
  283. package/dist/js/core/components/ui/image/image.js +160 -0
  284. package/dist/js/core/components/ui/image/image.js.map +1 -0
  285. package/dist/js/core/components/ui/link/link.js +125 -0
  286. package/dist/js/core/components/ui/link/link.js.map +1 -0
  287. package/dist/js/core/components/ui/loader/loader.js +106 -0
  288. package/dist/js/core/components/ui/loader/loader.js.map +1 -0
  289. package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
  290. package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
  291. package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
  292. package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
  293. package/dist/js/core/components/ui/menu/menu-item.js +35 -0
  294. package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
  295. package/dist/js/core/components/ui/menu/menu.js +436 -0
  296. package/dist/js/core/components/ui/menu/menu.js.map +1 -0
  297. package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
  298. package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
  299. package/dist/js/core/components/ui/modal/modal-close.js +56 -0
  300. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
  301. package/dist/js/core/components/ui/modal/modal-content.js +27 -0
  302. package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
  303. package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
  304. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
  305. package/dist/js/core/components/ui/modal/modal-title.js +35 -0
  306. package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
  307. package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
  308. package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
  309. package/dist/js/core/components/ui/modal/modal.js +568 -0
  310. package/dist/js/core/components/ui/modal/modal.js.map +1 -0
  311. package/dist/js/core/components/ui/pop/pop.js +337 -0
  312. package/dist/js/core/components/ui/pop/pop.js.map +1 -0
  313. package/dist/js/core/components/ui/progress/progress.js +164 -0
  314. package/dist/js/core/components/ui/progress/progress.js.map +1 -0
  315. package/dist/js/core/components/ui/table/table-caption.js +29 -0
  316. package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
  317. package/dist/js/core/components/ui/table/table-tbody.js +41 -0
  318. package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
  319. package/dist/js/core/components/ui/table/table-td.js +69 -0
  320. package/dist/js/core/components/ui/table/table-td.js.map +1 -0
  321. package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
  322. package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
  323. package/dist/js/core/components/ui/table/table-th.js +80 -0
  324. package/dist/js/core/components/ui/table/table-th.js.map +1 -0
  325. package/dist/js/core/components/ui/table/table-thead.js +26 -0
  326. package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
  327. package/dist/js/core/components/ui/table/table-tr.js +67 -0
  328. package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
  329. package/dist/js/core/components/ui/table/table.js +106 -0
  330. package/dist/js/core/components/ui/table/table.js.map +1 -0
  331. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
  332. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
  333. package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
  334. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
  335. package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
  336. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
  337. package/dist/js/core/components/ui/theme/theme.js +150 -0
  338. package/dist/js/core/components/ui/theme/theme.js.map +1 -0
  339. package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
  340. package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
  341. package/dist/js/core/components/ui/toast/toast-item.js +379 -0
  342. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
  343. package/dist/js/core/components/ui/toast/toast.js +269 -0
  344. package/dist/js/core/components/ui/toast/toast.js.map +1 -0
  345. package/dist/js/core/components/ui/toast/types.js +2 -0
  346. package/dist/js/core/components/ui/toast/types.js.map +1 -0
  347. package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
  348. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
  349. package/dist/js/core/components/ui/ui.js +41 -0
  350. package/dist/js/core/components/ui/ui.js.map +1 -0
  351. package/dist/js/core/core.js +14 -0
  352. package/dist/js/core/core.js.map +1 -0
  353. package/dist/js/core/decorators/Subscriber.js +10 -0
  354. package/dist/js/core/decorators/Subscriber.js.map +1 -0
  355. package/dist/js/core/decorators/api.js +806 -0
  356. package/dist/js/core/decorators/api.js.map +1 -0
  357. package/dist/js/core/decorators/lifecycle.js +67 -0
  358. package/dist/js/core/decorators/lifecycle.js.map +1 -0
  359. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
  360. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
  361. package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
  362. package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
  363. package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
  364. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
  365. package/dist/js/core/decorators/subscriber/bind.js +150 -0
  366. package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
  367. package/dist/js/core/decorators/subscriber/common.js +44 -0
  368. package/dist/js/core/decorators/subscriber/common.js.map +1 -0
  369. package/dist/js/core/decorators/subscriber/derive.js +60 -0
  370. package/dist/js/core/decorators/subscriber/derive.js.map +1 -0
  371. package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
  372. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
  373. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
  374. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
  375. package/dist/js/core/decorators/subscriber/handle.js +22 -0
  376. package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
  377. package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
  378. package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
  379. package/dist/js/core/decorators/subscriber/publish.js +108 -0
  380. package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
  381. package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
  382. package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
  383. package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
  384. package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
  385. package/dist/js/core/directives/DataProvider.js +127 -0
  386. package/dist/js/core/directives/DataProvider.js.map +1 -0
  387. package/dist/js/core/directives/Wording.js +221 -0
  388. package/dist/js/core/directives/Wording.js.map +1 -0
  389. package/dist/js/core/mixins/Fetcher.js +325 -0
  390. package/dist/js/core/mixins/Fetcher.js.map +1 -0
  391. package/dist/js/core/mixins/FormCheckable.js +313 -0
  392. package/dist/js/core/mixins/FormCheckable.js.map +1 -0
  393. package/dist/js/core/mixins/FormElement.js +304 -0
  394. package/dist/js/core/mixins/FormElement.js.map +1 -0
  395. package/dist/js/core/mixins/FormInput.js +82 -0
  396. package/dist/js/core/mixins/FormInput.js.map +1 -0
  397. package/dist/js/core/mixins/Subscriber.js +354 -0
  398. package/dist/js/core/mixins/Subscriber.js.map +1 -0
  399. package/dist/js/core/mixins/TemplatesContainer.js +70 -0
  400. package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
  401. package/dist/js/core/mixins/mixins.js +7 -0
  402. package/dist/js/core/mixins/mixins.js.map +1 -0
  403. package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
  404. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
  405. package/dist/js/core/utils/Arrays.js +141 -0
  406. package/dist/js/core/utils/Arrays.js.map +1 -0
  407. package/dist/js/core/utils/DataBindObserver.js +265 -0
  408. package/dist/js/core/utils/DataBindObserver.js.map +1 -0
  409. package/dist/js/core/utils/Electron.js +14 -0
  410. package/dist/js/core/utils/Electron.js.map +1 -0
  411. package/dist/js/core/utils/Format.js +43 -0
  412. package/dist/js/core/utils/Format.js.map +1 -0
  413. package/dist/js/core/utils/HTML.js +307 -0
  414. package/dist/js/core/utils/HTML.js.map +1 -0
  415. package/dist/js/core/utils/LocationHandler.js +143 -0
  416. package/dist/js/core/utils/LocationHandler.js.map +1 -0
  417. package/dist/js/core/utils/Objects.js +111 -0
  418. package/dist/js/core/utils/Objects.js.map +1 -0
  419. package/dist/js/core/utils/PublisherProxy.js +970 -0
  420. package/dist/js/core/utils/PublisherProxy.js.map +1 -0
  421. package/dist/js/core/utils/SafariScrollGuard.js +384 -0
  422. package/dist/js/core/utils/SafariScrollGuard.js.map +1 -0
  423. package/dist/js/core/utils/Utils.js +19 -0
  424. package/dist/js/core/utils/Utils.js.map +1 -0
  425. package/dist/js/core/utils/aesCrypto.js +98 -0
  426. package/dist/js/core/utils/aesCrypto.js.map +1 -0
  427. package/dist/js/core/utils/api.js +595 -0
  428. package/dist/js/core/utils/api.js.map +1 -0
  429. package/dist/js/core/utils/dataProviderKey.js +64 -0
  430. package/dist/js/core/utils/dataProviderKey.js.map +1 -0
  431. package/dist/js/core/utils/derive.js +246 -0
  432. package/dist/js/core/utils/derive.js.map +1 -0
  433. package/dist/js/core/utils/endpoint.js +74 -0
  434. package/dist/js/core/utils/endpoint.js.map +1 -0
  435. package/dist/js/core/utils/jsonataHelpers.js +84 -0
  436. package/dist/js/core/utils/jsonataHelpers.js.map +1 -0
  437. package/dist/js/core/utils/jsonataRuntime.js +75 -0
  438. package/dist/js/core/utils/jsonataRuntime.js.map +1 -0
  439. package/dist/js/core/utils/mediaRef.js +120 -0
  440. package/dist/js/core/utils/mediaRef.js.map +1 -0
  441. package/dist/js/core/utils/route.js +149 -0
  442. package/dist/js/core/utils/route.js.map +1 -0
  443. package/dist/js/core/utils/similarity.js +44 -0
  444. package/dist/js/core/utils/similarity.js.map +1 -0
  445. package/dist/js/core/utils/url-pattern.js +3 -0
  446. package/dist/js/core/utils/url-pattern.js.map +1 -0
  447. package/dist/js/dataprovider.js +2 -0
  448. package/dist/js/dataprovider.js.map +1 -0
  449. package/dist/js/decorators.js +43 -0
  450. package/dist/js/decorators.js.map +1 -0
  451. package/dist/js/directives.js +30 -0
  452. package/dist/js/directives.js.map +1 -0
  453. package/dist/js/index.js +8 -0
  454. package/dist/js/index.js.map +1 -0
  455. package/dist/js/mixins.js +23 -0
  456. package/dist/js/mixins.js.map +1 -0
  457. package/dist/js/test-utils/TestUtils.js +10 -0
  458. package/dist/js/test-utils/TestUtils.js.map +1 -0
  459. package/dist/js/utils.js +46 -0
  460. package/dist/js/utils.js.map +1 -0
  461. package/dist/types/addons/3d.d.ts +6 -0
  462. package/dist/types/addons/3d.d.ts.map +1 -0
  463. package/dist/types/addons/hugging-face-infer.d.ts +8 -0
  464. package/dist/types/addons/hugging-face-infer.d.ts.map +1 -0
  465. package/dist/types/addons/shader.d.ts +6 -0
  466. package/dist/types/addons/shader.d.ts.map +1 -0
  467. package/dist/types/addons/webgpu.d.ts +7 -0
  468. package/dist/types/addons/webgpu.d.ts.map +1 -0
  469. package/dist/types/components.d.ts +5 -0
  470. package/dist/types/components.d.ts.map +1 -0
  471. package/dist/types/concorde-loaded.d.ts +2 -0
  472. package/dist/types/concorde-loaded.d.ts.map +1 -0
  473. package/dist/types/core/_types/endpoint.d.ts +5 -0
  474. package/dist/types/core/_types/endpoint.d.ts.map +1 -0
  475. package/dist/types/core/_types/key.d.ts +2 -0
  476. package/dist/types/core/_types/key.d.ts.map +1 -0
  477. package/dist/types/core/_types/types.d.ts +28 -0
  478. package/dist/types/core/_types/types.d.ts.map +1 -0
  479. package/dist/types/core/components/functional/3d/3d.d.ts +66 -0
  480. package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -0
  481. package/dist/types/core/components/functional/3d/asset.d.ts +12 -0
  482. package/dist/types/core/components/functional/3d/asset.d.ts.map +1 -0
  483. package/dist/types/core/components/functional/3d/boot.d.ts +23 -0
  484. package/dist/types/core/components/functional/3d/boot.d.ts.map +1 -0
  485. package/dist/types/core/components/functional/3d/constants.d.ts +43 -0
  486. package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -0
  487. package/dist/types/core/components/functional/3d/demo-content.d.ts +10 -0
  488. package/dist/types/core/components/functional/3d/demo-content.d.ts.map +1 -0
  489. package/dist/types/core/components/functional/3d/ensure.d.ts +36 -0
  490. package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -0
  491. package/dist/types/core/components/functional/3d/form-bind.d.ts +20 -0
  492. package/dist/types/core/components/functional/3d/form-bind.d.ts.map +1 -0
  493. package/dist/types/core/components/functional/3d/form-fields.d.ts +14 -0
  494. package/dist/types/core/components/functional/3d/form-fields.d.ts.map +1 -0
  495. package/dist/types/core/components/functional/3d/form-params.d.ts +37 -0
  496. package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -0
  497. package/dist/types/core/components/functional/3d/frame-capture.d.ts +33 -0
  498. package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +1 -0
  499. package/dist/types/core/components/functional/3d/gl.d.ts +4 -0
  500. package/dist/types/core/components/functional/3d/gl.d.ts.map +1 -0
  501. package/dist/types/core/components/functional/3d/life.d.ts +41 -0
  502. package/dist/types/core/components/functional/3d/life.d.ts.map +1 -0
  503. package/dist/types/core/components/functional/3d/load.d.ts +36 -0
  504. package/dist/types/core/components/functional/3d/load.d.ts.map +1 -0
  505. package/dist/types/core/components/functional/3d/ops.d.ts +48 -0
  506. package/dist/types/core/components/functional/3d/ops.d.ts.map +1 -0
  507. package/dist/types/core/components/functional/3d/opts.d.ts +16 -0
  508. package/dist/types/core/components/functional/3d/opts.d.ts.map +1 -0
  509. package/dist/types/core/components/functional/3d/orbit.d.ts +55 -0
  510. package/dist/types/core/components/functional/3d/orbit.d.ts.map +1 -0
  511. package/dist/types/core/components/functional/3d/out-publish.d.ts +47 -0
  512. package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -0
  513. package/dist/types/core/components/functional/3d/parse.d.ts +23 -0
  514. package/dist/types/core/components/functional/3d/parse.d.ts.map +1 -0
  515. package/dist/types/core/components/functional/3d/pick.d.ts +32 -0
  516. package/dist/types/core/components/functional/3d/pick.d.ts.map +1 -0
  517. package/dist/types/core/components/functional/3d/playback.d.ts +26 -0
  518. package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -0
  519. package/dist/types/core/components/functional/3d/pointer.d.ts +27 -0
  520. package/dist/types/core/components/functional/3d/pointer.d.ts.map +1 -0
  521. package/dist/types/core/components/functional/3d/props.d.ts +30 -0
  522. package/dist/types/core/components/functional/3d/props.d.ts.map +1 -0
  523. package/dist/types/core/components/functional/3d/publisher-listen.d.ts +8 -0
  524. package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +1 -0
  525. package/dist/types/core/components/functional/3d/reload.d.ts +35 -0
  526. package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -0
  527. package/dist/types/core/components/functional/3d/runtime.d.ts +75 -0
  528. package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -0
  529. package/dist/types/core/components/functional/3d/scene-runtime.d.ts +6 -0
  530. package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -0
  531. package/dist/types/core/components/functional/3d/snapshot.d.ts +29 -0
  532. package/dist/types/core/components/functional/3d/snapshot.d.ts.map +1 -0
  533. package/dist/types/core/components/functional/3d/styles.d.ts +2 -0
  534. package/dist/types/core/components/functional/3d/styles.d.ts.map +1 -0
  535. package/dist/types/core/components/functional/3d/tune.d.ts +32 -0
  536. package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -0
  537. package/dist/types/core/components/functional/3d/types.d.ts +133 -0
  538. package/dist/types/core/components/functional/3d/types.d.ts.map +1 -0
  539. package/dist/types/core/components/functional/3d/updated.d.ts +7 -0
  540. package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -0
  541. package/dist/types/core/components/functional/3d/view.d.ts +25 -0
  542. package/dist/types/core/components/functional/3d/view.d.ts.map +1 -0
  543. package/dist/types/core/components/functional/3d/wire.d.ts +32 -0
  544. package/dist/types/core/components/functional/3d/wire.d.ts.map +1 -0
  545. package/dist/types/core/components/functional/date/date.d.ts +52 -0
  546. package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
  547. package/dist/types/core/components/functional/example/example.d.ts +15 -0
  548. package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
  549. package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
  550. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
  551. package/dist/types/core/components/functional/functional.d.ts +18 -0
  552. package/dist/types/core/components/functional/functional.d.ts.map +1 -0
  553. package/dist/types/core/components/functional/if/if.d.ts +13 -0
  554. package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
  555. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +21 -0
  556. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +1 -0
  557. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +133 -0
  558. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +1 -0
  559. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +79 -0
  560. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +1 -0
  561. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +43 -0
  562. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +1 -0
  563. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +47 -0
  564. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +1 -0
  565. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +95 -0
  566. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +1 -0
  567. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +77 -0
  568. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +1 -0
  569. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +1251 -0
  570. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +1 -0
  571. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +56 -0
  572. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +1 -0
  573. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +67 -0
  574. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +1 -0
  575. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +116 -0
  576. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +1 -0
  577. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +167 -0
  578. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +1 -0
  579. package/dist/types/core/components/functional/jsonata/jsonata.d.ts +29 -0
  580. package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +1 -0
  581. package/dist/types/core/components/functional/list/list.d.ts +149 -0
  582. package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
  583. package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
  584. package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
  585. package/dist/types/core/components/functional/queue/queue.d.ts +93 -0
  586. package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
  587. package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
  588. package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
  589. package/dist/types/core/components/functional/router/router.d.ts +46 -0
  590. package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
  591. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
  592. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
  593. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
  594. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
  595. package/dist/types/core/components/functional/sdui/sdui.d.ts +148 -0
  596. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
  597. package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
  598. package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
  599. package/dist/types/core/components/functional/shader/gl-runtime.d.ts +71 -0
  600. package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -0
  601. package/dist/types/core/components/functional/shader/shader.d.ts +274 -0
  602. package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -0
  603. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +6 -0
  604. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -0
  605. package/dist/types/core/components/functional/shader/types.d.ts +256 -0
  606. package/dist/types/core/components/functional/shader/types.d.ts.map +1 -0
  607. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
  608. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
  609. package/dist/types/core/components/functional/states/states.d.ts +42 -0
  610. package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
  611. package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
  612. package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
  613. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
  614. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
  615. package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
  616. package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
  617. package/dist/types/core/components/functional/value/value.d.ts +8 -0
  618. package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
  619. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +29 -0
  620. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +1 -0
  621. package/dist/types/core/components/functional/webgpu/form-bind.d.ts +43 -0
  622. package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +1 -0
  623. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +31 -0
  624. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -0
  625. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +53 -0
  626. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -0
  627. package/dist/types/core/components/functional/webgpu/helpers.d.ts +9 -0
  628. package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -0
  629. package/dist/types/core/components/functional/webgpu/out-frame.d.ts +29 -0
  630. package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +1 -0
  631. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +37 -0
  632. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +1 -0
  633. package/dist/types/core/components/functional/webgpu/pointer.d.ts +41 -0
  634. package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +1 -0
  635. package/dist/types/core/components/functional/webgpu/types.d.ts +75 -0
  636. package/dist/types/core/components/functional/webgpu/types.d.ts.map +1 -0
  637. package/dist/types/core/components/functional/webgpu/webgpu.d.ts +123 -0
  638. package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -0
  639. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +8 -0
  640. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +1 -0
  641. package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
  642. package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
  643. package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
  644. package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
  645. package/dist/types/core/components/ui/_css/size.d.ts +3 -0
  646. package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
  647. package/dist/types/core/components/ui/_css/type.d.ts +3 -0
  648. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
  649. package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
  650. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
  651. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
  652. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
  653. package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
  654. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
  655. package/dist/types/core/components/ui/button/button.d.ts +180 -0
  656. package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
  657. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
  658. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
  659. package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
  660. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
  661. package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
  662. package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
  663. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
  664. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
  665. package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
  666. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
  667. package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
  668. package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
  669. package/dist/types/core/components/ui/card/card.d.ts +13 -0
  670. package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
  671. package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
  672. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
  673. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
  674. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
  675. package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
  676. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
  677. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
  678. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
  679. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
  680. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
  681. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
  682. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
  683. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
  684. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
  685. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
  686. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
  687. package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
  688. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
  689. package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
  690. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
  691. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
  692. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
  693. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
  694. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
  695. package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
  696. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
  697. package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
  698. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
  699. package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
  700. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
  701. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
  702. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
  703. package/dist/types/core/components/ui/group/group.d.ts +17 -0
  704. package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
  705. package/dist/types/core/components/ui/icon/icon.d.ts +30 -0
  706. package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
  707. package/dist/types/core/components/ui/icon/icons.d.ts +13 -0
  708. package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
  709. package/dist/types/core/components/ui/image/image.d.ts +16 -0
  710. package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
  711. package/dist/types/core/components/ui/link/link.d.ts +30 -0
  712. package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
  713. package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
  714. package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
  715. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
  716. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
  717. package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
  718. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
  719. package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
  720. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
  721. package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
  722. package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
  723. package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
  724. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
  725. package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
  726. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
  727. package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
  728. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
  729. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
  730. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
  731. package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
  732. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
  733. package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
  734. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
  735. package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
  736. package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
  737. package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
  738. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
  739. package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
  740. package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
  741. package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
  742. package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
  743. package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
  744. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
  745. package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
  746. package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
  747. package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
  748. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
  749. package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
  750. package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
  751. package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
  752. package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
  753. package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
  754. package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
  755. package/dist/types/core/components/ui/table/table.d.ts +18 -0
  756. package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
  757. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
  758. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
  759. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
  760. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
  761. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
  762. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
  763. package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
  764. package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
  765. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
  766. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
  767. package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
  768. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
  769. package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
  770. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
  771. package/dist/types/core/components/ui/toast/types.d.ts +12 -0
  772. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
  773. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
  774. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
  775. package/dist/types/core/components/ui/ui.d.ts +35 -0
  776. package/dist/types/core/components/ui/ui.d.ts.map +1 -0
  777. package/dist/types/core/core.d.ts +5 -0
  778. package/dist/types/core/core.d.ts.map +1 -0
  779. package/dist/types/core/decorators/Subscriber.d.ts +13 -0
  780. package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
  781. package/dist/types/core/decorators/api.d.ts +155 -0
  782. package/dist/types/core/decorators/api.d.ts.map +1 -0
  783. package/dist/types/core/decorators/lifecycle.d.ts +19 -0
  784. package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
  785. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
  786. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
  787. package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
  788. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
  789. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
  790. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
  791. package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
  792. package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
  793. package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
  794. package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
  795. package/dist/types/core/decorators/subscriber/derive.d.ts +30 -0
  796. package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -0
  797. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
  798. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
  799. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
  800. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
  801. package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
  802. package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
  803. package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
  804. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
  805. package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
  806. package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
  807. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
  808. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
  809. package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
  810. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
  811. package/dist/types/core/directives/DataProvider.d.ts +45 -0
  812. package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
  813. package/dist/types/core/directives/Wording.d.ts +44 -0
  814. package/dist/types/core/directives/Wording.d.ts.map +1 -0
  815. package/dist/types/core/mixins/Fetcher.d.ts +108 -0
  816. package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
  817. package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
  818. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
  819. package/dist/types/core/mixins/FormElement.d.ts +37 -0
  820. package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
  821. package/dist/types/core/mixins/FormInput.d.ts +79 -0
  822. package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
  823. package/dist/types/core/mixins/Subscriber.d.ts +38 -0
  824. package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
  825. package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
  826. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
  827. package/dist/types/core/mixins/mixins.d.ts +7 -0
  828. package/dist/types/core/mixins/mixins.d.ts.map +1 -0
  829. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
  830. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
  831. package/dist/types/core/utils/Arrays.d.ts +98 -0
  832. package/dist/types/core/utils/Arrays.d.ts.map +1 -0
  833. package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
  834. package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
  835. package/dist/types/core/utils/Electron.d.ts +8 -0
  836. package/dist/types/core/utils/Electron.d.ts.map +1 -0
  837. package/dist/types/core/utils/Format.d.ts +13 -0
  838. package/dist/types/core/utils/Format.d.ts.map +1 -0
  839. package/dist/types/core/utils/HTML.d.ts +59 -0
  840. package/dist/types/core/utils/HTML.d.ts.map +1 -0
  841. package/dist/types/core/utils/LocationHandler.d.ts +48 -0
  842. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
  843. package/dist/types/core/utils/Objects.d.ts +31 -0
  844. package/dist/types/core/utils/Objects.d.ts.map +1 -0
  845. package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
  846. package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
  847. package/dist/types/core/utils/SafariScrollGuard.d.ts +36 -0
  848. package/dist/types/core/utils/SafariScrollGuard.d.ts.map +1 -0
  849. package/dist/types/core/utils/Utils.d.ts +6 -0
  850. package/dist/types/core/utils/Utils.d.ts.map +1 -0
  851. package/dist/types/core/utils/aesCrypto.d.ts +53 -0
  852. package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
  853. package/dist/types/core/utils/api.d.ts +173 -0
  854. package/dist/types/core/utils/api.d.ts.map +1 -0
  855. package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
  856. package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
  857. package/dist/types/core/utils/derive.d.ts +40 -0
  858. package/dist/types/core/utils/derive.d.ts.map +1 -0
  859. package/dist/types/core/utils/endpoint.d.ts +37 -0
  860. package/dist/types/core/utils/endpoint.d.ts.map +1 -0
  861. package/dist/types/core/utils/jsonataHelpers.d.ts +15 -0
  862. package/dist/types/core/utils/jsonataHelpers.d.ts.map +1 -0
  863. package/dist/types/core/utils/jsonataRuntime.d.ts +13 -0
  864. package/dist/types/core/utils/jsonataRuntime.d.ts.map +1 -0
  865. package/dist/types/core/utils/mediaRef.d.ts +34 -0
  866. package/dist/types/core/utils/mediaRef.d.ts.map +1 -0
  867. package/dist/types/core/utils/route.d.ts +41 -0
  868. package/dist/types/core/utils/route.d.ts.map +1 -0
  869. package/dist/types/core/utils/similarity.d.ts +15 -0
  870. package/dist/types/core/utils/similarity.d.ts.map +1 -0
  871. package/dist/types/core/utils/url-pattern.d.ts +3 -0
  872. package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
  873. package/dist/types/dataprovider.d.ts +2 -0
  874. package/dist/types/dataprovider.d.ts.map +1 -0
  875. package/dist/types/decorators.d.ts +30 -0
  876. package/dist/types/decorators.d.ts.map +1 -0
  877. package/dist/types/directives.d.ts +21 -0
  878. package/dist/types/directives.d.ts.map +1 -0
  879. package/dist/types/index.d.ts +8 -0
  880. package/dist/types/index.d.ts.map +1 -0
  881. package/dist/types/mixins.d.ts +204 -0
  882. package/dist/types/mixins.d.ts.map +1 -0
  883. package/dist/types/test-utils/TestUtils.d.ts +4 -0
  884. package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
  885. package/dist/types/utils.d.ts +20 -0
  886. package/dist/types/utils.d.ts.map +1 -0
  887. package/package.json +1780 -382
  888. package/public/docs/hf-samples/beach.jpg +0 -0
  889. package/public/docs/hf-samples/cats.jpg +0 -0
  890. package/public/docs/hf-samples/corgi.jpg +0 -0
  891. package/public/docs/hf-samples/portrait.jpg +0 -0
  892. package/public/docs/hf-samples/scene.jpg +0 -0
  893. package/public/docs/hf-samples/singer.jpg +0 -0
  894. package/public/docs/shader-samples/color.jpg +0 -0
  895. package/public/docs/shader-samples/depth.png +0 -0
  896. package/public/docs/shader-samples/impact.jpg +0 -0
  897. package/public/docs/shader-samples/video.webm +0 -0
  898. package/scripts/build-addons.mjs +26 -0
  899. package/scripts/gen-shader-depth.mjs +85 -0
  900. package/scripts/gen-shader-harris-video.mjs +17 -0
  901. package/scripts/gen-shader-harris-video.py +84 -0
  902. package/scripts/hf-vendor.mjs +154 -0
  903. package/scripts/post-build.mjs +116 -10
  904. package/scripts/pre-build.mjs +119 -36
  905. package/scripts/pre-publish.mjs +76 -54
  906. package/src/addons/3d.ts +5 -0
  907. package/src/addons/hugging-face-infer.ts +11 -0
  908. package/src/addons/shader.ts +5 -0
  909. package/src/addons/webgpu.ts +15 -0
  910. package/src/core/components/functional/3d/3d.md +118 -0
  911. package/src/core/components/functional/3d/3d.spec.ts +171 -0
  912. package/src/core/components/functional/3d/3d.ts +175 -0
  913. package/src/core/components/functional/3d/asset.ts +22 -0
  914. package/src/core/components/functional/3d/boot.ts +77 -0
  915. package/src/core/components/functional/3d/constants.ts +98 -0
  916. package/src/core/components/functional/3d/demo-content.ts +45 -0
  917. package/src/core/components/functional/3d/ensure.ts +99 -0
  918. package/src/core/components/functional/3d/form-bind.ts +40 -0
  919. package/src/core/components/functional/3d/form-fields.ts +80 -0
  920. package/src/core/components/functional/3d/form-params.ts +97 -0
  921. package/src/core/components/functional/3d/frame-capture.spec.ts +72 -0
  922. package/src/core/components/functional/3d/frame-capture.ts +135 -0
  923. package/src/core/components/functional/3d/gl.ts +35 -0
  924. package/src/core/components/functional/3d/life.ts +101 -0
  925. package/src/core/components/functional/3d/load.ts +129 -0
  926. package/src/core/components/functional/3d/ops.ts +126 -0
  927. package/src/core/components/functional/3d/opts.ts +16 -0
  928. package/src/core/components/functional/3d/orbit.ts +185 -0
  929. package/src/core/components/functional/3d/out-publish.ts +140 -0
  930. package/src/core/components/functional/3d/parse.ts +95 -0
  931. package/src/core/components/functional/3d/pick.ts +92 -0
  932. package/src/core/components/functional/3d/playback.ts +70 -0
  933. package/src/core/components/functional/3d/pointer.ts +79 -0
  934. package/src/core/components/functional/3d/props.ts +50 -0
  935. package/src/core/components/functional/3d/publisher-listen.ts +13 -0
  936. package/src/core/components/functional/3d/reload.ts +88 -0
  937. package/src/core/components/functional/3d/runtime.ts +148 -0
  938. package/src/core/components/functional/3d/scene-runtime.ts +9 -0
  939. package/src/core/components/functional/3d/snapshot.ts +73 -0
  940. package/src/core/components/functional/3d/styles.ts +38 -0
  941. package/src/core/components/functional/3d/tune.ts +72 -0
  942. package/src/core/components/functional/3d/types.ts +145 -0
  943. package/src/core/components/functional/3d/updated.ts +70 -0
  944. package/src/core/components/functional/3d/view.ts +63 -0
  945. package/src/core/components/functional/3d/wire.ts +65 -0
  946. package/src/core/components/functional/infer/hugging-face/hf-cache.ts +198 -0
  947. package/src/core/components/functional/infer/hugging-face/hf-config.ts +188 -0
  948. package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +350 -0
  949. package/src/core/components/functional/infer/hugging-face/hf-controller.ts +622 -0
  950. package/src/core/components/functional/infer/hugging-face/hf-engine.ts +178 -0
  951. package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +99 -0
  952. package/src/core/components/functional/infer/hugging-face/hf-input.ts +218 -0
  953. package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +76 -0
  954. package/src/core/components/functional/infer/hugging-face/hf-registry.ts +457 -0
  955. package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +124 -0
  956. package/src/core/components/functional/infer/hugging-face/hf-schema.ts +390 -0
  957. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +147 -0
  958. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +381 -0
  959. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +304 -0
  960. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +202 -0
  961. package/src/core/components/functional/infer/hugging-face/hugging-face.ts +282 -0
  962. package/src/core/components/functional/infer/hugging-face/types.ts +325 -0
  963. package/src/core/components/functional/jsonata/jsonata.md +4 -2
  964. package/src/core/components/functional/sdui/sdui.md +2 -2
  965. package/src/core/components/functional/sdui/sdui.ts +40 -29
  966. package/src/core/components/functional/shader/gl-runtime.ts +782 -0
  967. package/src/core/components/functional/shader/shader.md +207 -0
  968. package/src/core/components/functional/shader/shader.spec.ts +288 -0
  969. package/src/core/components/functional/shader/shader.ts +1569 -0
  970. package/src/core/components/functional/shader/shadertoy-prelude.ts +52 -0
  971. package/src/core/components/functional/shader/types.ts +446 -0
  972. package/src/core/components/functional/webgpu/canvas2d-fallback.ts +125 -0
  973. package/src/core/components/functional/webgpu/form-bind.ts +116 -0
  974. package/src/core/components/functional/webgpu/gl-fallback.ts +158 -0
  975. package/src/core/components/functional/webgpu/gpu-runtime.ts +349 -0
  976. package/src/core/components/functional/webgpu/helpers.ts +47 -0
  977. package/src/core/components/functional/webgpu/out-frame.ts +137 -0
  978. package/src/core/components/functional/webgpu/particles-runtime.ts +426 -0
  979. package/src/core/components/functional/webgpu/pointer.ts +85 -0
  980. package/src/core/components/functional/webgpu/types.ts +96 -0
  981. package/src/core/components/functional/webgpu/webgpu.md +75 -0
  982. package/src/core/components/functional/webgpu/webgpu.spec.ts +141 -0
  983. package/src/core/components/functional/webgpu/webgpu.ts +659 -0
  984. package/src/core/components/functional/webgpu/wgsl-prelude.ts +81 -0
  985. package/src/core/utils/HTML.ts +107 -74
  986. package/src/core/utils/PublisherProxy.ts +29 -6
  987. package/src/core/utils/jsonataHelpers.ts +36 -0
  988. package/src/core/utils/mediaRef.spec.ts +85 -0
  989. package/src/core/utils/mediaRef.ts +130 -0
  990. package/src/core/utils/similarity.spec.ts +34 -0
  991. package/src/core/utils/similarity.ts +54 -0
  992. package/src/docs/_core-concept/dataFlow.md +2 -0
  993. package/src/docs/_getting-started/cdn-addons.md +73 -0
  994. package/src/docs/_getting-started/create-a-component.md +1 -1
  995. package/src/docs/_misc/visual-stack.md +49 -0
  996. package/src/docs/components/docs-demo-sources.ts +359 -39
  997. package/src/docs/docs.ts +6 -0
  998. package/src/docs/example/docs-3d-demos.ts +8 -0
  999. package/src/docs/example/docs-3d-form.ts +95 -0
  1000. package/src/docs/example/docs-3d-orbit.ts +44 -0
  1001. package/src/docs/example/docs-3d-out.ts +56 -0
  1002. package/src/docs/example/docs-3d-shared.ts +15 -0
  1003. package/src/docs/example/docs-harris-webgpu-demo.ts +482 -0
  1004. package/src/docs/example/docs-hugging-face-demos.ts +516 -0
  1005. package/src/docs/example/docs-shader-demos.ts +357 -0
  1006. package/src/docs/example/docs-visual-stack-demo.ts +394 -0
  1007. package/src/docs/example/docs-webgpu-demo.ts +77 -0
  1008. package/src/docs/navigation/navigation.ts +25 -0
  1009. package/src/docs/search/docs-search.json +899 -2319
  1010. package/src/tsconfig.json +481 -301
  1011. package/src/tsconfig.tsbuildinfo +1 -1
  1012. package/vite/config.js +42 -30
  1013. package/vite.config.mts +51 -12
@@ -24,7 +24,7 @@ var ConcordeHF=(function(xe){"use strict";/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const As={attribute:!0,type:String,converter:Pe,reflect:!1,hasChanged:Fe},Ss=(n=As,e,t)=>{const{kind:s,metadata:i}=t;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),s==="setter"&&((n=Object.create(n)).wrapped=!0),r.set(t.name,n),s==="accessor"){const{name:o}=t;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(o,c,n)},init(l){return l!==void 0&&this.C(o,void 0,n,l),l}}}if(s==="setter"){const{name:o}=t;return function(l){const c=this[o];e.call(this,l),this.requestUpdate(o,c,n)}}throw Error("Unsupported decorator location: "+s)};function I(n){return(e,t)=>typeof t=="object"?Ss(n,e,t):((s,i,r)=>{const o=i.hasOwnProperty(r);return i.constructor.createProperty(r,s),o?Object.getOwnPropertyDescriptor(i,r):void 0})(n,e,t)}function ks(n){return n}const xs={load:"first-use",trigger:"mutation",debounceMs:50,consentAboveMB:30,allowWasmUpToMB:50,timeoutMs:6e4,maxItems:2e3,maxChars:2e3,persist:!1,resultsCacheBytes:20*1024*1024};let Je=null;const Ge=new Set;function Es(n){Je={...n,defaults:{...xs,...n.defaults}};for(const e of Ge)e(Je)}function Cs(){return Je}function Ut(n){return Ge.add(n),()=>Ge.delete(n)}const Ps=/\$\{|\{\$/;function Ls(n){return Ps.test(n)}function ae(n){const e=typeof n=="string"?n:n.path;if(Ls(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Ke="1";function Ms(n){const e=n.trim();if(!e)return!1;try{const t=new URL(e,"https://example.invalid/");return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="blob:"}catch{return!1}}class L{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,t)=>{const s=t.indexOf("=");return e[t.substring(0,s).trim()]=t.substring(s+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,t){let s=e;for(;s;){if(!t(s))return;s=s.parentNode||s.host}}static overflowMatches(e,t){return t.includes(e.overflowY)||t.includes(e.overflowX)}static findAncestorByOverflow(e,t){let s=e;for(;s;){if(s instanceof Element&&s.nodeType===1){const i=window.getComputedStyle(s);if(L.overflowMatches(i,t))return s}s=L.nextComposedAncestor(s)}return null}static getScrollableAncestor(e){return L.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return L.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const t=e.toLowerCase();return t===e?[e]:[e,t]}static readScopeAttributeOnElement(e,t){for(const s of L.scopeAttributeNames(t))if(e.hasAttribute(s))return e.getAttribute(s)??"";return null}static getAncestorAttributeValue(e,t){if(!e)return null;let s=e;for(;s;){if(s instanceof HTMLElement){const r=L.readScopeAttributeOnElement(s,t);if(r!=null)return r}const i=s.parentNode||s.host;if(!i)break;s=i}return null}static getApiConfiguration(e){const t=L.getAncestorAttributeValue(e,"token"),s=L.getAncestorAttributeValue(e,"addHTTPResponse")!=null,i=L.getAncestorAttributeValue(e,"serviceURL");let r=null,o=null;const l=L.getAncestorAttributeValue(e,"tokenProvider"),c=L.getAncestorAttributeValue(e,"eventsApiToken");t||(r=L.getAncestorAttributeValue(e,"userName"),o=L.getAncestorAttributeValue(e,"password"));const f=L.getAncestorAttributeValue(e,"credentials")||void 0,d=e.getAttribute("cache"),u=e.hasAttribute("blockUntilDone"),m=e.hasAttribute("keepAlive");return{serviceURL:i,token:t,userName:r,password:o,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:f,cache:d,blockUntilDone:u,keepAlive:m}}static getClosestElement(e,t){let s=e;for(;s&&!(s.nodeName&&s.nodeName.toLowerCase()===t);){const i=s.parentNode||s.host;if(!i){s=null;break}s=i}return s?.nodeName?s:null}static getClosestForm(e){return L.getClosestElement(e,"form")}static getAncestorsByTagNames(e,t){const s=new Set(t.map(o=>o.toLowerCase())),i=[];let r=e.parentNode||e.host;for(;r;)r instanceof Element&&s.has(r.tagName.toLowerCase())&&i.push(r),r=r.parentNode||r.host;return i}static getAncestorsBySelectors(e,t){const s=[];let i=e.parentNode||e.host;for(;i;){if(i instanceof Element)for(const r of t)try{if(i.matches(r)){s.push(i);break}}catch{}i=i.parentNode||i.host}return s}static async loadJS(e){if(!Ms(e))return!1;const t=typeof document<"u"?new URL(e,document.baseURI).href:e,s=Array.from(document.scripts).find(r=>r.src===t);if(s)return s.dataset.concordeLoaded===Ke?!0:new Promise(r=>{let o=!1;const l=f=>{o||(o=!0,f&&(s.dataset.concordeLoaded=Ke),r(f))};s.addEventListener("load",()=>l(!0),{once:!0}),s.addEventListener("error",()=>l(!1),{once:!0});const c=s.readyState;if(c==="complete"||c==="loaded"){l(!0);return}Promise.resolve().then(()=>{Promise.resolve().then(()=>{o||l(!0)})})});const i=/\.es\.js(\?|#|$)/.test(e)||/[?&]module(?:&|=|$)/.test(e);return new Promise(r=>{const o=document.createElement("script");o.src=e,i&&(o.type="module"),o.onload=()=>{o.dataset.concordeLoaded=Ke,r(!0)},o.onerror=()=>r(!1),document.head.appendChild(o)})}static async loadCSS(e){return new Promise(t=>{const s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=e,s.onload=()=>t(!0),s.onerror=()=>t(!0),document.head.appendChild(s)})}}class q{static shallowEqual(e,t,s=!0){const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length&&s)return!1;for(const o of i){const l=e[o],c=t[o];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(e,t,s=!0){const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length&&s)return!1;for(const o of i){const l=e[o],c=t[o],f=q.isObject(l)&&q.isObject(c),d=s?l!==c:l!=c;if(f&&!q.deepEqual(l,c)||!f&&d)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return q.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,t,s=!1){for(const i of t){const r=e[i];if(r===void 0)return;s&&q.isObject(r)?e=Object.assign(Array.isArray(r)?[]:{},e,r):e=e[i]}return e}static traverseDotNotation(e,t,s=!1){return q.traverse(e,t.split("."),s)}static getURLSearchArray(e,t=""){let s=[];for(let i in e){const r=e[i];t&&(i=t+"["+i+"]"),q.isObject(r)?s=[...s,...this.getURLSearchArray(r,i)]:s.push(`${i}=${r}`)}return s}static getURLSearchString(e){return q.getURLSearchArray(e,"").join("&")}}q.traverseDotNotation;let Nt="sonic";typeof __SONIC_PREFIX__<"u"&&(Nt=__SONIC_PREFIX__);let Rt=Nt.replace(/-([a-z])/g,n=>n[1].toUpperCase());const Is=Rt.charAt(0).toUpperCase()+Rt.slice(1);function Ie(n){return Object.prototype.hasOwnProperty.call(n,"__value")}function X(n){return typeof n=="object"&&n!==null}let le="sonic";typeof __SONIC_PREFIX__>"u"&&(le="sonic");const Xe=le=="sonic"?"publisher-proxies-data":le+"-publisher-proxies-data",Z=class Z{constructor(e,t,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=432e5,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=t||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Z.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(t=>t()),this._is_savable_&&!D.changed){D.changed=!0,D.saveId++;const t=D.saveId;setTimeout(()=>D.getInstance().saveToLocalStorage(t),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(i=>{i(s)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,t){this._fillListeners_.forEach(s=>{s[e]!==t&&(s[e]=t)}),this._publishTemplateFilling_(e,t)}_publishTemplateFilling_(e,t){this._templateFillListeners_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(s,e);i&&!i.set&&!i.writable||(s.propertyMap&&s.propertyMap[e]&&(e=s.propertyMap[e]),typeof s[e]<"u"&&s[e]!==t&&(s[e]=t))})}onAssign(e,t=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),t&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const t in this._value_){let s=t;const i=this._value_[t];e.propertyMap&&e.propertyMap[t]&&(s=e.propertyMap[t]),typeof e[t]<"u"&&e[t]!==i&&(e[s]=i)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const t in this._value_){const s=this._value_[t];e[t]!==s&&(e[t]=s)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,t=!1){if(this._value_===e||X(this._value_)&&X(e)&&e&&Ie(this._value_)&&Ie(e)&&this._value_.__value===e.__value||!X(e)&&e===this._value_.__value)return!0;this._value_=X(e)?e:{__value:e},this._cachedGet_=void 0;const s=Ie(this._value_);if(this._parentKey_&&this.parent){const i=Ie(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:i});else{const r=[];r[Number(this._parentKey_)]=i,this.parent.set(r)}else this.parent._value_[this._parentKey_]=i}if(s)return this._proxies_.forEach((i,r)=>{r!="_parent_"&&(i.set(null),this._publishDynamicFilling_(r,null))}),this._publishAssignement_(t),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const i in this._value_)this._value_[i]===void 0&&delete this._value_[i];if(this._proxies_.forEach((i,r)=>{const o=this._value_[r];r!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(r))&&(i.set(null),this._publishDynamicFilling_(r,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),X(this._value_))for(const i in this._value_){const r=e[i],l=X(r)?r:{__value:r};if(!this._proxies_.has(i)){this._publishDynamicFilling_(i,r);continue}this._proxies_.get(i)?.set(l,!0),this._publishDynamicFilling_(i,r)}return!0}get(){if(Os(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Z.instancesCounter++,this._instanceCounter_=Z.instancesCounter),Z.instances.set(this._instanceCounter_,this),"<"+le+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+le+"-publisher-proxy>"}};Z.instances=new Map,Z.instancesCounter=0;let Oe=Z;const Dt=[];function Os(n){Dt.length>0&&Dt[0].add(n)}const _=class _{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],_.instance!=null)throw"Singleton / use getInstance";_.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),_.initPageShowHandler()}static initPageShowHandler(){_.pageShowHandlerInitialized||(_.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&_.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let s=localStorage.getItem(Xe),i=null;if(s&&(i=await this.decompress(s,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Xe,s),this.localStorageData={};const r=1e3*60*60*12;for(const o in this.localStorageData){const l=this.localStorageData[o],c=new Date().getTime()-(l.expirationDelayMs||r);l.lastModifiationMS<c&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const t=_.instances.get(e);return t||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new _)}return _.instance==null?new _:_.instance}static get(e,t){return _.getInstance().get(e,t)}async setLocalData(e,t){await this.isLocalStrorageReady,e.set(this.localStorageData[t+"¤lang_"+L.getLanguage()]?.data||e.get())}get(e,t){const s=t?.localStorageMode==="enabled",i=t?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const l=Ye({});this.set(e,l)}const r=this.publishers.get(e);return s&&this.initialisedData.indexOf(e)===-1&&(t?.expirationDelayMs&&(r._expiration_delay_=t.expirationDelayMs),r._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(r,e)),i&&(r._invalidate_on_page_show_=i),this.publishers.get(e)}set(e,t){this.publishers.set(e,t)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==_.saveId&&e%10!=0))try{if(!_.changed||_.saving)return;_.saving=!0,_.changed=!1;const t=Array.from(this.publishers.keys());let s=!1;for(const i of t){const r=this.publishers.get(i);if(!r?._is_savable_)continue;const o=r?.get();o&&(this.localStorageData[i+"¤lang_"+L.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:r._expiration_delay_,data:o},s=!0)}if(s){const i=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Xe,i)}if(_.saving=!1,_.changed){_.saveId++;const i=_.saveId;setTimeout(()=>this.saveToLocalStorage(i),1e3)}}catch{_.saving=!1}}async compress(e,t){const s=new TextEncoder().encode(e),i=window,r=new i.CompressionStream(t),o=r.writable.getWriter();o.write(s),o.close();const l=await new Response(r.readable).arrayBuffer(),c=new Uint8Array(l);let f="";for(let d=0;d<c.length;d++)f+=String.fromCharCode(c[d]);return btoa(f)}async decompress(e,t){const s=atob(e),r=Uint8Array.from(s,d=>d.charCodeAt(0)).buffer,o=window,l=new o.DecompressionStream(t),c=l.writable.getWriter();c.write(r),c.close();const f=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(f)}};_.buildDate="Mon Sep 28 2026 08:00:14 GMT+0200 (Central European Summer Time)",_.changed=!1,_.saving=!1,_.saveId=0,_.instance=null,_.instances=new Map,_.pageShowHandlerInitialized=!1;let D=_;if(typeof window<"u"){const n=window,e=Is+"PublisherManager",t=n[e]||D;if(n[e]||(n[e]=D),t!==D){const s=["instance","instances","changed","saving","saveId","pageShowHandlerInitialized"];for(const i of s)Object.defineProperty(D,i,{configurable:!0,get(){return t[i]},set(r){t[i]=r}})}}const Ts=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Us(n,e){return{get:function(t,s){if(typeof s=="string"&&Ts.has(s))return n[s];if(s==Symbol.toPrimitive)return()=>e().get();if(!n._proxies_.has(s)){const i=n._value_[s],r=Ye(X(i)?i:{__value:i},n,s);r._proxies_.set("_parent_",e()),n._proxies_.set(s,r)}return n._proxies_.get(s)},set:function(t,s,i){if(s=="_value_")return n._value_=i,!0;if(s=="_cachedGet_")return n._cachedGet_=i,!0;if(s=="_assignmentId_")return n._assignmentId_=i,!0;if(s=="_is_savable_")return n._is_savable_=i,!0;if(s=="_expiration_delay_")return n._expiration_delay_=i,!0;if(s=="_invalidate_on_page_show_")return n._invalidate_on_page_show_=i,!0;if(s=="_instanceCounter_")return n._instanceCounter_=i,!0;if(!n._proxies_.has(s)){const o=Ye({},n,s);o._proxies_.set("_parent_",e()),n._proxies_.set(s,o)}return n._value_[s]!==i&&(n._value_[s]=i,n._publishDynamicFilling_(s,i),n._proxies_.get(s)?.set(X(i)?i:{__value:i})),!0},deleteProperty:function(t,s){return n._publishDynamicFilling_(s,null),n._proxies_.get(s)?.set(null),delete n._value_[s]},has:function(t,s){return s in n._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(t,s,i){return i&&"value"in i&&(n._value_[s]=i.value),!0},getOwnPropertyDescriptor:function(t,s){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return n._value_.__value?Object.keys(n._value_.__value):Object.keys(n._value_)}}}function Ye(n,e=null,t){const s=new Oe(n,e,t);let i=null;const r=Us(s,()=>i);return i=new Proxy(s,r),i}class Ns extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Oe.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(le+"-publisher-proxy",Ns)}catch{}function Rs(n){return ae(n)}function Ds(n){return n.split(".")[0]??n}function js(n){return`${Ds(Rs(n))}/_state_`}const Bs="concorde-hf-results",Ze="results",zs=64;async function Qe(n){const e=globalThis.crypto?.subtle;if(e){const i=await e.digest("SHA-256",n);return[...new Uint8Array(i)].map(r=>r.toString(16).padStart(2,"0")).join("")}let t=2166136261,s=16777619;for(let i=0;i<n.length;i++)t=Math.imul(t^n[i],16777619)>>>0,s=Math.imul(s^n[n.length-1-i],2166136261)>>>0;return`fnv-${t.toString(16)}${s.toString(16)}-${n.length}`}async function et(n){if(n instanceof Blob)return{$blob:await Qe(new Uint8Array(await n.arrayBuffer())),type:n.type};if(ArrayBuffer.isView(n))return{$typed:n.constructor.name,hash:await Qe(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))};if(Array.isArray(n))return Promise.all(n.map(et));if(n&&typeof n=="object"){const e={};for(const t of Object.keys(n).sort())e[t]=await et(n[t]);return e}return n}async function Fs(n){const e=JSON.stringify(await et(n));return Qe(new TextEncoder().encode(e))}function tt(n){return n instanceof Blob?!0:Array.isArray(n)?n.some(tt):n&&typeof n=="object"?Object.values(n).some(tt):!1}const Y=new Map;function st(n,e){for(Y.delete(n),Y.set(n,e);Y.size>zs;){const t=Y.keys().next().value;if(t===void 0)break;Y.delete(t)}}let Te=null;function nt(){return Te||(Te=new Promise(n=>{try{if(typeof indexedDB>"u")return n(null);const e=indexedDB.open(Bs,1);e.onupgradeneeded=()=>{e.result.createObjectStore(Ze,{keyPath:"key"}).createIndex("at","at")},e.onsuccess=()=>n(e.result),e.onerror=()=>n(null),e.onblocked=()=>n(null)}catch{n(null)}}),Te)}function ce(n,e,t){return new Promise(s=>{try{const i=n.transaction(Ze,e),r=t(i.objectStore(Ze));i.oncomplete=()=>s(r?r.result:void 0),i.onerror=()=>s(void 0),i.onabort=()=>s(void 0)}catch{s(void 0)}})}async function Hs(n,e,t){if(Y.has(n)){const r=Y.get(n);return st(n,r),{hit:!0,value:r}}if(!e)return{hit:!1};const s=await nt();if(!s)return{hit:!1};const i=await ce(s,"readonly",r=>r.get(n));return i?t&&Date.now()-i.at>t?{hit:!1}:(st(n,i.value),ce(s,"readwrite",r=>r.put({...i,at:Date.now()})),{hit:!0,value:i.value}):{hit:!1}}async function qs(n,e,t,s){if(st(n,e),!t||tt(e))return;const i=await nt();if(!i)return;let r=0;try{r=JSON.stringify(e).length}catch{return}r>s||(await ce(i,"readwrite",o=>o.put({key:n,value:e,bytes:r,at:Date.now()})),await Ws(i,s))}async function Ws(n,e){const t=await ce(n,"readonly",r=>r.getAll())??[];let s=t.reduce((r,o)=>r+o.bytes,0);if(s<=e)return;t.sort((r,o)=>r.at-o.at);const i=[];for(const r of t){if(s<=e)break;i.push(r.key),s-=r.bytes}await ce(n,"readwrite",r=>{for(const o of i)r.delete(o)})}async function Vs(){Y.clear();const n=await nt();n&&await ce(n,"readwrite",e=>e.clear())}function it(n){return n===null?"null":Array.isArray(n)?"array":n instanceof Blob?"Blob":ArrayBuffer.isView(n)?n.constructor.name:typeof n}function Js(n){if(n==null||n==="")return null;if(typeof n=="function")return s=>{const i=n(s);return typeof i=="string"?i:null};const e=(typeof n=="string"?n.split("+"):[...n]).map(s=>s.trim()).filter(Boolean).map(s=>s.split("."));if(!e.length)return null;const t=(s,i)=>{if(s==null)return[];if(!i.length)return typeof s=="string"?s.trim()?[s.trim()]:[]:typeof s=="number"?[String(s)]:Array.isArray(s)?s.flatMap(l=>t(l,[])):[];if(Array.isArray(s))return s.flatMap(l=>t(l,i));if(typeof s!="object")return[];const[r,...o]=i;return t(s[r],o)};return s=>{const i=e.map(r=>t(s,r).join(", ")).filter(r=>r.length>0);return i.length?i.join(" — "):null}}function Gs(n){return n==null?!0:typeof n=="string"?n.trim().length===0:Array.isArray(n)?n.length===0:typeof n=="object"&&!(n instanceof Blob)&&!ArrayBuffer.isView(n)?Object.keys(n).length===0:!1}function Ks(n,e,t){switch(e.kind){case"text":{let s=null;if(typeof n=="string")s=n.trim();else if(n&&typeof n=="object"&&!Array.isArray(n)){if(!t)return{ok:!1,reason:"objet reçu sans `options.text` pour en extraire le texte"};s=t(n)}else return{ok:!1,reason:`texte attendu, reçu ${it(n)}`};return s?s.length>e.maxChars?{ok:!0,payload:s.slice(0,e.maxChars),truncated:!0}:{ok:!0,payload:s,truncated:!1}:{ok:!1,reason:"texte vide"}}case"image":return typeof n=="string"&&n.trim()?{ok:!0,payload:n.trim(),truncated:!1}:n instanceof Blob?{ok:!0,payload:n,truncated:!1}:{ok:!1,reason:`image attendue (URL, data URL ou Blob), reçu ${it(n)}`};case"audio":return n instanceof Float32Array||n instanceof Float64Array?{ok:!0,payload:n,truncated:!1}:typeof n=="string"&&n.trim()?{ok:!0,payload:n.trim(),truncated:!1}:{ok:!1,reason:`audio attendu (Float32Array, Float64Array ou URL), reçu ${it(n)}`}}}function jt(n,e){if(Gs(n))return{kind:"empty"};const t=Js(e.text),s=Array.isArray(n),i=s?n:[n];if(i.length>e.maxItems)return{kind:"invalid",code:"too-large",message:`Entrée trop grosse : ${i.length} éléments (maximum ${e.maxItems}).`};const r=[],o=[],l=[];let c=0;if(i.forEach((d,u)=>{const m=Ks(d,e,t);m.ok?(r.push(m.payload),o.push(u),m.truncated&&c++):l.push(s?`[${u}] ${m.reason}`:m.reason)}),!r.length)return{kind:"invalid",code:"invalid-input",message:`Entrée invalide : ${l.slice(0,3).join(" ; ")}${l.length>3?` (+${l.length-3})`:""}.`};const f=[];return c&&f.push(`${c} texte(s) tronqué(s) à ${e.maxChars} caractères.`),l.length&&f.push(`${l.length} élément(s) ignoré(s) : ${l.slice(0,3).join(" ; ")}.`),{kind:"ok",many:s,length:i.length,payloads:r,positions:o,skipped:i.length-r.length,truncated:c,warnings:f}}function Bt(n,e){const t=new Array(n.length).fill(null);return n.positions.forEach((s,i)=>{t[s]=e[i]??null}),t}function Xs(n,e){const t=new Map;let s=Promise.resolve();const i=a=>e.postMessage(a),r=(a,h,g)=>i({id:a,ok:!1,error:{code:h,message:g}}),o=a=>{const h=String(a?.message??a).toLowerCase();return a?.code?String(a.code):h.includes("quota")?"quota":h.includes("failed to fetch")||h.includes("network")||h.includes("404")||h.includes("could not locate")?"network":"runtime"},l=a=>{const h={...a.options||{}};return h.revision=a.revision,h},c=async()=>{const a=globalThis.navigator?.gpu;if(!a||typeof a.requestAdapter!="function")return!1;try{return!!await a.requestAdapter()}catch{return!1}},f=a=>a&&typeof a=="object"&&typeof a.tolist=="function"&&"dims"in a,d=a=>a&&typeof a=="object"&&typeof a.toBlob=="function"&&typeof a.width=="number"&&typeof a.channels=="number",u=async a=>{if(f(a))return a.tolist();if(d(a)){const h=await a.toBlob("image/png");return{width:a.width,height:a.height,channels:a.channels,blob:h}}if(Array.isArray(a))return Promise.all(a.map(u));if(a instanceof Blob)return a;if(a&&typeof a=="object"){const h={};for(const g of Object.keys(a))h[g]=await u(a[g]);return h}return a},m=a=>Array.isArray(a)&&a.length===1&&Array.isArray(a[0])?a[0]:a,T={async configure({env:a}){const h=n.env;if(h.allowLocalModels=!1,h.allowRemoteModels=!0,h.useBrowserCache=!0,h.useWasmCache=!0,h.cacheKey=a.cacheKey,a.remoteHost&&(h.remoteHost=a.remoteHost),a.remotePathTemplate&&(h.remotePathTemplate=a.remotePathTemplate),a.wasmPaths&&h.backends?.onnx?.wasm){let g=a.wasmPaths;if(typeof g=="string"){const v=g.endsWith("/")?g:g+"/",E=String(globalThis.navigator?.userAgent??""),H=/Safari\//.test(E)&&!/Chrome|Chromium|Android/.test(E),W=Number((/Version\/(\d+)/.exec(E)??[])[1]??99),A=H&&W<26&&!globalThis.navigator?.gpu?"":".asyncify";g={mjs:`${v}ort-wasm-simd-threaded${A}.mjs`,wasm:`${v}ort-wasm-simd-threaded${A}.wasm`}}h.backends.onnx.wasm.wasmPaths=g}if(a.logLevel&&n.LogLevel){const g=n.LogLevel[String(a.logLevel).toUpperCase()];g!==void 0&&(h.logLevel=g)}return{version:h.version??null}},async inspect({model:a}){const h=n.ModelRegistry,g=l(a);let v=!1,E=null;try{v=!!await h?.is_pipeline_cached?.(a.task,a.repo,g)}catch{v=!1}try{const H=await h?.get_pipeline_files?.(a.task,a.repo,g);if(H&&h?.get_file_metadata){const A=(await Promise.all(H.map(y=>h.get_file_metadata(a.repo,y,{revision:a.revision}).catch(()=>null)))).map(y=>y?.size);A.every(y=>typeof y=="number")&&(E=A.reduce((y,S)=>y+S,0))}}catch{E=null}return{cached:v,totalBytes:E}},async load({model:a,devices:h}){const g=t.get(a.alias);if(g)return{backend:g.pipe.__backend,loadMs:0};const v=performance.now(),E={},H=y=>{if(y.status==="progress_total")i({type:"progress",alias:a.alias,progress:{loadedBytes:y.loaded,totalBytes:y.total,percent:Math.round(y.progress??0)}});else if(y.status==="progress"){E[y.file]={loaded:y.loaded,total:y.total};const S=Object.values(E),U=S.reduce(($e,N)=>$e+(N.loaded||0),0),j=S.reduce(($e,N)=>$e+(N.total||0),0);i({type:"progress",alias:a.alias,progress:{file:y.file,loadedBytes:U,totalBytes:j,percent:j?Math.round(U/j*100):0}})}},W=[];for(const y of h){if(y==="webgpu"&&!await c()){W.push("webgpu indisponible");continue}try{const S=await n.pipeline(a.task,a.repo,{...l(a),device:y,progress_callback:H});return S.__backend=y,t.set(a.alias,{pipe:S,task:a.task}),{backend:y,loadMs:Math.round(performance.now()-v)}}catch(S){const U=o(S);if(U==="network"||U==="quota")throw S;W.push(`${y} : ${String(S?.message??S)}`)}}const A=new Error(`Aucun backend utilisable (${W.join(" ; ")||"aucun autorisé"}).`);throw A.code="unsupported",A},async run({request:a}){const h=t.get(a.alias);if(!h){const A=new Error(`Modèle "${a.alias}" non chargé.`);throw A.code="runtime",A}const{pipe:g}=h,v={...a.call||{}};let E;a.positional&&(E=v[a.positional],delete v[a.positional]);const H=A=>a.positional?g(A,E,v):g(A,v);if(a.batch){const A=[];for(let S=0;S<a.inputs.length;S+=32){const U=a.inputs.slice(S,S+32),j=await u(await H(U));A.push(...Array.isArray(j)?j:[j])}return A}const W=[];for(const A of a.inputs){const y=await u(await H(A));W.push(h.task==="feature-extraction"||h.task==="image-feature-extraction"?m(y):y)}return W},async clear({model:a}){const h=n.ModelRegistry;if(a){const v=t.get(a.alias);return t.delete(a.alias),await v?.pipe?.dispose?.(),await h?.clear_pipeline_cache?.(a.task,a.repo,l(a)),!0}for(const v of t.values())await v.pipe?.dispose?.();t.clear();const g=n.env.cacheKey;return g&&typeof caches<"u"&&await caches.delete(g),!0}};e.addEventListener("message",a=>{const h=a.data;!h||typeof h.id!="number"||!T[h.type]||(s=s.then(()=>T[h.type](h)).then(g=>i({id:h.id,ok:!0,result:g}),g=>r(h.id,o(g),String(g?.message??g))))})}function Ys(n){return[`const hfWorkerMain = ${Xs.toString()};`,"const pending = [];","const buffer = (event) => pending.push(event);",'self.addEventListener("message", buffer);',"let lib;","try {",` lib = await import(${JSON.stringify(n)});`,"} catch (err) {",' self.postMessage({ type: "fatal", message: "Chargement de Transformers.js impossible : " + (err && err.message || err) });'," throw err;","}",'self.removeEventListener("message", buffer);',"hfWorkerMain(lib, {"," postMessage: (message, transfer) => self.postMessage(message, transfer),"," addEventListener: (type, listener) => {"," self.addEventListener(type, listener);"," for (const event of pending.splice(0)) listener(event);"," },","});"].join(`
27
+ */const As={attribute:!0,type:String,converter:Pe,reflect:!1,hasChanged:Fe},Ss=(n=As,e,t)=>{const{kind:s,metadata:i}=t;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),s==="setter"&&((n=Object.create(n)).wrapped=!0),r.set(t.name,n),s==="accessor"){const{name:o}=t;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(o,c,n)},init(l){return l!==void 0&&this.C(o,void 0,n,l),l}}}if(s==="setter"){const{name:o}=t;return function(l){const c=this[o];e.call(this,l),this.requestUpdate(o,c,n)}}throw Error("Unsupported decorator location: "+s)};function I(n){return(e,t)=>typeof t=="object"?Ss(n,e,t):((s,i,r)=>{const o=i.hasOwnProperty(r);return i.constructor.createProperty(r,s),o?Object.getOwnPropertyDescriptor(i,r):void 0})(n,e,t)}function ks(n){return n}const xs={load:"first-use",trigger:"mutation",debounceMs:50,consentAboveMB:30,allowWasmUpToMB:50,timeoutMs:6e4,maxItems:2e3,maxChars:2e3,persist:!1,resultsCacheBytes:20*1024*1024};let Je=null;const Ge=new Set;function Es(n){Je={...n,defaults:{...xs,...n.defaults}};for(const e of Ge)e(Je)}function Cs(){return Je}function Ut(n){return Ge.add(n),()=>Ge.delete(n)}const Ps=/\$\{|\{\$/;function Ls(n){return Ps.test(n)}function ae(n){const e=typeof n=="string"?n:n.path;if(Ls(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Ke="1";function Ms(n){const e=n.trim();if(!e)return!1;try{const t=new URL(e,"https://example.invalid/");return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="blob:"}catch{return!1}}class L{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,t)=>{const s=t.indexOf("=");return e[t.substring(0,s).trim()]=t.substring(s+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,t){let s=e;for(;s;){if(!t(s))return;s=s.parentNode||s.host}}static overflowMatches(e,t){return t.includes(e.overflowY)||t.includes(e.overflowX)}static findAncestorByOverflow(e,t){let s=e;for(;s;){if(s instanceof Element&&s.nodeType===1){const i=window.getComputedStyle(s);if(L.overflowMatches(i,t))return s}s=L.nextComposedAncestor(s)}return null}static getScrollableAncestor(e){return L.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return L.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const t=e.toLowerCase();return t===e?[e]:[e,t]}static readScopeAttributeOnElement(e,t){for(const s of L.scopeAttributeNames(t))if(e.hasAttribute(s))return e.getAttribute(s)??"";return null}static getAncestorAttributeValue(e,t){if(!e)return null;let s=e;for(;s;){if(s instanceof HTMLElement){const r=L.readScopeAttributeOnElement(s,t);if(r!=null)return r}const i=s.parentNode||s.host;if(!i)break;s=i}return null}static getApiConfiguration(e){const t=L.getAncestorAttributeValue(e,"token"),s=L.getAncestorAttributeValue(e,"addHTTPResponse")!=null,i=L.getAncestorAttributeValue(e,"serviceURL");let r=null,o=null;const l=L.getAncestorAttributeValue(e,"tokenProvider"),c=L.getAncestorAttributeValue(e,"eventsApiToken");t||(r=L.getAncestorAttributeValue(e,"userName"),o=L.getAncestorAttributeValue(e,"password"));const f=L.getAncestorAttributeValue(e,"credentials")||void 0,d=e.getAttribute("cache"),u=e.hasAttribute("blockUntilDone"),m=e.hasAttribute("keepAlive");return{serviceURL:i,token:t,userName:r,password:o,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:f,cache:d,blockUntilDone:u,keepAlive:m}}static getClosestElement(e,t){let s=e;for(;s&&!(s.nodeName&&s.nodeName.toLowerCase()===t);){const i=s.parentNode||s.host;if(!i){s=null;break}s=i}return s?.nodeName?s:null}static getClosestForm(e){return L.getClosestElement(e,"form")}static getAncestorsByTagNames(e,t){const s=new Set(t.map(o=>o.toLowerCase())),i=[];let r=e.parentNode||e.host;for(;r;)r instanceof Element&&s.has(r.tagName.toLowerCase())&&i.push(r),r=r.parentNode||r.host;return i}static getAncestorsBySelectors(e,t){const s=[];let i=e.parentNode||e.host;for(;i;){if(i instanceof Element)for(const r of t)try{if(i.matches(r)){s.push(i);break}}catch{}i=i.parentNode||i.host}return s}static async loadJS(e){if(!Ms(e))return!1;const t=typeof document<"u"?new URL(e,document.baseURI).href:e,s=Array.from(document.scripts).find(r=>r.src===t);if(s)return s.dataset.concordeLoaded===Ke?!0:new Promise(r=>{let o=!1;const l=f=>{o||(o=!0,f&&(s.dataset.concordeLoaded=Ke),r(f))};s.addEventListener("load",()=>l(!0),{once:!0}),s.addEventListener("error",()=>l(!1),{once:!0});const c=s.readyState;if(c==="complete"||c==="loaded"){l(!0);return}Promise.resolve().then(()=>{Promise.resolve().then(()=>{o||l(!0)})})});const i=/\.es\.js(\?|#|$)/.test(e)||/[?&]module(?:&|=|$)/.test(e);return new Promise(r=>{const o=document.createElement("script");o.src=e,i&&(o.type="module"),o.onload=()=>{o.dataset.concordeLoaded=Ke,r(!0)},o.onerror=()=>r(!1),document.head.appendChild(o)})}static async loadCSS(e){return new Promise(t=>{const s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=e,s.onload=()=>t(!0),s.onerror=()=>t(!0),document.head.appendChild(s)})}}class q{static shallowEqual(e,t,s=!0){const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length&&s)return!1;for(const o of i){const l=e[o],c=t[o];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(e,t,s=!0){const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length&&s)return!1;for(const o of i){const l=e[o],c=t[o],f=q.isObject(l)&&q.isObject(c),d=s?l!==c:l!=c;if(f&&!q.deepEqual(l,c)||!f&&d)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return q.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,t,s=!1){for(const i of t){const r=e[i];if(r===void 0)return;s&&q.isObject(r)?e=Object.assign(Array.isArray(r)?[]:{},e,r):e=e[i]}return e}static traverseDotNotation(e,t,s=!1){return q.traverse(e,t.split("."),s)}static getURLSearchArray(e,t=""){let s=[];for(let i in e){const r=e[i];t&&(i=t+"["+i+"]"),q.isObject(r)?s=[...s,...this.getURLSearchArray(r,i)]:s.push(`${i}=${r}`)}return s}static getURLSearchString(e){return q.getURLSearchArray(e,"").join("&")}}q.traverseDotNotation;let Nt="sonic";typeof __SONIC_PREFIX__<"u"&&(Nt=__SONIC_PREFIX__);let Rt=Nt.replace(/-([a-z])/g,n=>n[1].toUpperCase());const Is=Rt.charAt(0).toUpperCase()+Rt.slice(1);function Ie(n){return Object.prototype.hasOwnProperty.call(n,"__value")}function X(n){return typeof n=="object"&&n!==null}let le="sonic";typeof __SONIC_PREFIX__>"u"&&(le="sonic");const Xe=le=="sonic"?"publisher-proxies-data":le+"-publisher-proxies-data",Z=class Z{constructor(e,t,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=432e5,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=t||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Z.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(t=>t()),this._is_savable_&&!D.changed){D.changed=!0,D.saveId++;const t=D.saveId;setTimeout(()=>D.getInstance().saveToLocalStorage(t),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(i=>{i(s)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,t){this._fillListeners_.forEach(s=>{s[e]!==t&&(s[e]=t)}),this._publishTemplateFilling_(e,t)}_publishTemplateFilling_(e,t){this._templateFillListeners_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(s,e);i&&!i.set&&!i.writable||(s.propertyMap&&s.propertyMap[e]&&(e=s.propertyMap[e]),typeof s[e]<"u"&&s[e]!==t&&(s[e]=t))})}onAssign(e,t=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),t&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const t in this._value_){let s=t;const i=this._value_[t];e.propertyMap&&e.propertyMap[t]&&(s=e.propertyMap[t]),typeof e[t]<"u"&&e[t]!==i&&(e[s]=i)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const t in this._value_){const s=this._value_[t];e[t]!==s&&(e[t]=s)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,t=!1){if(this._value_===e||X(this._value_)&&X(e)&&e&&Ie(this._value_)&&Ie(e)&&this._value_.__value===e.__value||!X(e)&&e===this._value_.__value)return!0;this._value_=X(e)?e:{__value:e},this._cachedGet_=void 0;const s=Ie(this._value_);if(this._parentKey_&&this.parent){const i=Ie(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:i});else{const r=[];r[Number(this._parentKey_)]=i,this.parent.set(r)}else this.parent._value_[this._parentKey_]=i}if(s)return this._proxies_.forEach((i,r)=>{r!="_parent_"&&(i.set(null),this._publishDynamicFilling_(r,null))}),this._publishAssignement_(t),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const i in this._value_)this._value_[i]===void 0&&delete this._value_[i];if(this._proxies_.forEach((i,r)=>{const o=this._value_[r];r!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(r))&&(i.set(null),this._publishDynamicFilling_(r,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),X(this._value_))for(const i in this._value_){const r=e[i],l=X(r)?r:{__value:r};if(!this._proxies_.has(i)){this._publishDynamicFilling_(i,r);continue}this._proxies_.get(i)?.set(l,!0),this._publishDynamicFilling_(i,r)}return!0}get(){if(Os(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Z.instancesCounter++,this._instanceCounter_=Z.instancesCounter),Z.instances.set(this._instanceCounter_,this),"<"+le+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+le+"-publisher-proxy>"}};Z.instances=new Map,Z.instancesCounter=0;let Oe=Z;const Dt=[];function Os(n){Dt.length>0&&Dt[0].add(n)}const _=class _{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],_.instance!=null)throw"Singleton / use getInstance";_.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),_.initPageShowHandler()}static initPageShowHandler(){_.pageShowHandlerInitialized||(_.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&_.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let s=localStorage.getItem(Xe),i=null;if(s&&(i=await this.decompress(s,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Xe,s),this.localStorageData={};const r=1e3*60*60*12;for(const o in this.localStorageData){const l=this.localStorageData[o],c=new Date().getTime()-(l.expirationDelayMs||r);l.lastModifiationMS<c&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const t=_.instances.get(e);return t||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new _)}return _.instance==null?new _:_.instance}static get(e,t){return _.getInstance().get(e,t)}async setLocalData(e,t){await this.isLocalStrorageReady,e.set(this.localStorageData[t+"¤lang_"+L.getLanguage()]?.data||e.get())}get(e,t){const s=t?.localStorageMode==="enabled",i=t?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const l=Ye({});this.set(e,l)}const r=this.publishers.get(e);return s&&this.initialisedData.indexOf(e)===-1&&(t?.expirationDelayMs&&(r._expiration_delay_=t.expirationDelayMs),r._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(r,e)),i&&(r._invalidate_on_page_show_=i),this.publishers.get(e)}set(e,t){this.publishers.set(e,t)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==_.saveId&&e%10!=0))try{if(!_.changed||_.saving)return;_.saving=!0,_.changed=!1;const t=Array.from(this.publishers.keys());let s=!1;for(const i of t){const r=this.publishers.get(i);if(!r?._is_savable_)continue;const o=r?.get();o&&(this.localStorageData[i+"¤lang_"+L.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:r._expiration_delay_,data:o},s=!0)}if(s){const i=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Xe,i)}if(_.saving=!1,_.changed){_.saveId++;const i=_.saveId;setTimeout(()=>this.saveToLocalStorage(i),1e3)}}catch{_.saving=!1}}async compress(e,t){const s=new TextEncoder().encode(e),i=window,r=new i.CompressionStream(t),o=r.writable.getWriter();o.write(s),o.close();const l=await new Response(r.readable).arrayBuffer(),c=new Uint8Array(l);let f="";for(let d=0;d<c.length;d++)f+=String.fromCharCode(c[d]);return btoa(f)}async decompress(e,t){const s=atob(e),r=Uint8Array.from(s,d=>d.charCodeAt(0)).buffer,o=window,l=new o.DecompressionStream(t),c=l.writable.getWriter();c.write(r),c.close();const f=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(f)}};_.buildDate="Tue Sep 29 2026 17:50:59 GMT+0200 (Central European Summer Time)",_.changed=!1,_.saving=!1,_.saveId=0,_.instance=null,_.instances=new Map,_.pageShowHandlerInitialized=!1;let D=_;if(typeof window<"u"){const n=window,e=Is+"PublisherManager",t=n[e]||D;if(n[e]||(n[e]=D),t!==D){const s=["instance","instances","changed","saving","saveId","pageShowHandlerInitialized"];for(const i of s)Object.defineProperty(D,i,{configurable:!0,get(){return t[i]},set(r){t[i]=r}})}}const Ts=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Us(n,e){return{get:function(t,s){if(typeof s=="string"&&Ts.has(s))return n[s];if(s==Symbol.toPrimitive)return()=>e().get();if(!n._proxies_.has(s)){const i=n._value_[s],r=Ye(X(i)?i:{__value:i},n,s);r._proxies_.set("_parent_",e()),n._proxies_.set(s,r)}return n._proxies_.get(s)},set:function(t,s,i){if(s=="_value_")return n._value_=i,!0;if(s=="_cachedGet_")return n._cachedGet_=i,!0;if(s=="_assignmentId_")return n._assignmentId_=i,!0;if(s=="_is_savable_")return n._is_savable_=i,!0;if(s=="_expiration_delay_")return n._expiration_delay_=i,!0;if(s=="_invalidate_on_page_show_")return n._invalidate_on_page_show_=i,!0;if(s=="_instanceCounter_")return n._instanceCounter_=i,!0;if(!n._proxies_.has(s)){const o=Ye({},n,s);o._proxies_.set("_parent_",e()),n._proxies_.set(s,o)}return n._value_[s]!==i&&(n._value_[s]=i,n._publishDynamicFilling_(s,i),n._proxies_.get(s)?.set(X(i)?i:{__value:i})),!0},deleteProperty:function(t,s){return n._publishDynamicFilling_(s,null),n._proxies_.get(s)?.set(null),delete n._value_[s]},has:function(t,s){return s in n._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(t,s,i){return i&&"value"in i&&(n._value_[s]=i.value),!0},getOwnPropertyDescriptor:function(t,s){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return n._value_.__value?Object.keys(n._value_.__value):Object.keys(n._value_)}}}function Ye(n,e=null,t){const s=new Oe(n,e,t);let i=null;const r=Us(s,()=>i);return i=new Proxy(s,r),i}class Ns extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Oe.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(le+"-publisher-proxy",Ns)}catch{}function Rs(n){return ae(n)}function Ds(n){return n.split(".")[0]??n}function js(n){return`${Ds(Rs(n))}/_state_`}const Bs="concorde-hf-results",Ze="results",zs=64;async function Qe(n){const e=globalThis.crypto?.subtle;if(e){const i=await e.digest("SHA-256",n);return[...new Uint8Array(i)].map(r=>r.toString(16).padStart(2,"0")).join("")}let t=2166136261,s=16777619;for(let i=0;i<n.length;i++)t=Math.imul(t^n[i],16777619)>>>0,s=Math.imul(s^n[n.length-1-i],2166136261)>>>0;return`fnv-${t.toString(16)}${s.toString(16)}-${n.length}`}async function et(n){if(n instanceof Blob)return{$blob:await Qe(new Uint8Array(await n.arrayBuffer())),type:n.type};if(ArrayBuffer.isView(n))return{$typed:n.constructor.name,hash:await Qe(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))};if(Array.isArray(n))return Promise.all(n.map(et));if(n&&typeof n=="object"){const e={};for(const t of Object.keys(n).sort())e[t]=await et(n[t]);return e}return n}async function Fs(n){const e=JSON.stringify(await et(n));return Qe(new TextEncoder().encode(e))}function tt(n){return n instanceof Blob?!0:Array.isArray(n)?n.some(tt):n&&typeof n=="object"?Object.values(n).some(tt):!1}const Y=new Map;function st(n,e){for(Y.delete(n),Y.set(n,e);Y.size>zs;){const t=Y.keys().next().value;if(t===void 0)break;Y.delete(t)}}let Te=null;function nt(){return Te||(Te=new Promise(n=>{try{if(typeof indexedDB>"u")return n(null);const e=indexedDB.open(Bs,1);e.onupgradeneeded=()=>{e.result.createObjectStore(Ze,{keyPath:"key"}).createIndex("at","at")},e.onsuccess=()=>n(e.result),e.onerror=()=>n(null),e.onblocked=()=>n(null)}catch{n(null)}}),Te)}function ce(n,e,t){return new Promise(s=>{try{const i=n.transaction(Ze,e),r=t(i.objectStore(Ze));i.oncomplete=()=>s(r?r.result:void 0),i.onerror=()=>s(void 0),i.onabort=()=>s(void 0)}catch{s(void 0)}})}async function Hs(n,e,t){if(Y.has(n)){const r=Y.get(n);return st(n,r),{hit:!0,value:r}}if(!e)return{hit:!1};const s=await nt();if(!s)return{hit:!1};const i=await ce(s,"readonly",r=>r.get(n));return i?t&&Date.now()-i.at>t?{hit:!1}:(st(n,i.value),ce(s,"readwrite",r=>r.put({...i,at:Date.now()})),{hit:!0,value:i.value}):{hit:!1}}async function qs(n,e,t,s){if(st(n,e),!t||tt(e))return;const i=await nt();if(!i)return;let r=0;try{r=JSON.stringify(e).length}catch{return}r>s||(await ce(i,"readwrite",o=>o.put({key:n,value:e,bytes:r,at:Date.now()})),await Ws(i,s))}async function Ws(n,e){const t=await ce(n,"readonly",r=>r.getAll())??[];let s=t.reduce((r,o)=>r+o.bytes,0);if(s<=e)return;t.sort((r,o)=>r.at-o.at);const i=[];for(const r of t){if(s<=e)break;i.push(r.key),s-=r.bytes}await ce(n,"readwrite",r=>{for(const o of i)r.delete(o)})}async function Vs(){Y.clear();const n=await nt();n&&await ce(n,"readwrite",e=>e.clear())}function it(n){return n===null?"null":Array.isArray(n)?"array":n instanceof Blob?"Blob":ArrayBuffer.isView(n)?n.constructor.name:typeof n}function Js(n){if(n==null||n==="")return null;if(typeof n=="function")return s=>{const i=n(s);return typeof i=="string"?i:null};const e=(typeof n=="string"?n.split("+"):[...n]).map(s=>s.trim()).filter(Boolean).map(s=>s.split("."));if(!e.length)return null;const t=(s,i)=>{if(s==null)return[];if(!i.length)return typeof s=="string"?s.trim()?[s.trim()]:[]:typeof s=="number"?[String(s)]:Array.isArray(s)?s.flatMap(l=>t(l,[])):[];if(Array.isArray(s))return s.flatMap(l=>t(l,i));if(typeof s!="object")return[];const[r,...o]=i;return t(s[r],o)};return s=>{const i=e.map(r=>t(s,r).join(", ")).filter(r=>r.length>0);return i.length?i.join(" — "):null}}function Gs(n){return n==null?!0:typeof n=="string"?n.trim().length===0:Array.isArray(n)?n.length===0:typeof n=="object"&&!(n instanceof Blob)&&!ArrayBuffer.isView(n)?Object.keys(n).length===0:!1}function Ks(n,e,t){switch(e.kind){case"text":{let s=null;if(typeof n=="string")s=n.trim();else if(n&&typeof n=="object"&&!Array.isArray(n)){if(!t)return{ok:!1,reason:"objet reçu sans `options.text` pour en extraire le texte"};s=t(n)}else return{ok:!1,reason:`texte attendu, reçu ${it(n)}`};return s?s.length>e.maxChars?{ok:!0,payload:s.slice(0,e.maxChars),truncated:!0}:{ok:!0,payload:s,truncated:!1}:{ok:!1,reason:"texte vide"}}case"image":return typeof n=="string"&&n.trim()?{ok:!0,payload:n.trim(),truncated:!1}:n instanceof Blob?{ok:!0,payload:n,truncated:!1}:{ok:!1,reason:`image attendue (URL, data URL ou Blob), reçu ${it(n)}`};case"audio":return n instanceof Float32Array||n instanceof Float64Array?{ok:!0,payload:n,truncated:!1}:typeof n=="string"&&n.trim()?{ok:!0,payload:n.trim(),truncated:!1}:{ok:!1,reason:`audio attendu (Float32Array, Float64Array ou URL), reçu ${it(n)}`}}}function jt(n,e){if(Gs(n))return{kind:"empty"};const t=Js(e.text),s=Array.isArray(n),i=s?n:[n];if(i.length>e.maxItems)return{kind:"invalid",code:"too-large",message:`Entrée trop grosse : ${i.length} éléments (maximum ${e.maxItems}).`};const r=[],o=[],l=[];let c=0;if(i.forEach((d,u)=>{const m=Ks(d,e,t);m.ok?(r.push(m.payload),o.push(u),m.truncated&&c++):l.push(s?`[${u}] ${m.reason}`:m.reason)}),!r.length)return{kind:"invalid",code:"invalid-input",message:`Entrée invalide : ${l.slice(0,3).join(" ; ")}${l.length>3?` (+${l.length-3})`:""}.`};const f=[];return c&&f.push(`${c} texte(s) tronqué(s) à ${e.maxChars} caractères.`),l.length&&f.push(`${l.length} élément(s) ignoré(s) : ${l.slice(0,3).join(" ; ")}.`),{kind:"ok",many:s,length:i.length,payloads:r,positions:o,skipped:i.length-r.length,truncated:c,warnings:f}}function Bt(n,e){const t=new Array(n.length).fill(null);return n.positions.forEach((s,i)=>{t[s]=e[i]??null}),t}function Xs(n,e){const t=new Map;let s=Promise.resolve();const i=a=>e.postMessage(a),r=(a,h,g)=>i({id:a,ok:!1,error:{code:h,message:g}}),o=a=>{const h=String(a?.message??a).toLowerCase();return a?.code?String(a.code):h.includes("quota")?"quota":h.includes("failed to fetch")||h.includes("network")||h.includes("404")||h.includes("could not locate")?"network":"runtime"},l=a=>{const h={...a.options||{}};return h.revision=a.revision,h},c=async()=>{const a=globalThis.navigator?.gpu;if(!a||typeof a.requestAdapter!="function")return!1;try{return!!await a.requestAdapter()}catch{return!1}},f=a=>a&&typeof a=="object"&&typeof a.tolist=="function"&&"dims"in a,d=a=>a&&typeof a=="object"&&typeof a.toBlob=="function"&&typeof a.width=="number"&&typeof a.channels=="number",u=async a=>{if(f(a))return a.tolist();if(d(a)){const h=await a.toBlob("image/png");return{width:a.width,height:a.height,channels:a.channels,blob:h}}if(Array.isArray(a))return Promise.all(a.map(u));if(a instanceof Blob)return a;if(a&&typeof a=="object"){const h={};for(const g of Object.keys(a))h[g]=await u(a[g]);return h}return a},m=a=>Array.isArray(a)&&a.length===1&&Array.isArray(a[0])?a[0]:a,T={async configure({env:a}){const h=n.env;if(h.allowLocalModels=!1,h.allowRemoteModels=!0,h.useBrowserCache=!0,h.useWasmCache=!0,h.cacheKey=a.cacheKey,a.remoteHost&&(h.remoteHost=a.remoteHost),a.remotePathTemplate&&(h.remotePathTemplate=a.remotePathTemplate),a.wasmPaths&&h.backends?.onnx?.wasm){let g=a.wasmPaths;if(typeof g=="string"){const v=g.endsWith("/")?g:g+"/",E=String(globalThis.navigator?.userAgent??""),H=/Safari\//.test(E)&&!/Chrome|Chromium|Android/.test(E),W=Number((/Version\/(\d+)/.exec(E)??[])[1]??99),A=H&&W<26&&!globalThis.navigator?.gpu?"":".asyncify";g={mjs:`${v}ort-wasm-simd-threaded${A}.mjs`,wasm:`${v}ort-wasm-simd-threaded${A}.wasm`}}h.backends.onnx.wasm.wasmPaths=g}if(a.logLevel&&n.LogLevel){const g=n.LogLevel[String(a.logLevel).toUpperCase()];g!==void 0&&(h.logLevel=g)}return{version:h.version??null}},async inspect({model:a}){const h=n.ModelRegistry,g=l(a);let v=!1,E=null;try{v=!!await h?.is_pipeline_cached?.(a.task,a.repo,g)}catch{v=!1}try{const H=await h?.get_pipeline_files?.(a.task,a.repo,g);if(H&&h?.get_file_metadata){const A=(await Promise.all(H.map(y=>h.get_file_metadata(a.repo,y,{revision:a.revision}).catch(()=>null)))).map(y=>y?.size);A.every(y=>typeof y=="number")&&(E=A.reduce((y,S)=>y+S,0))}}catch{E=null}return{cached:v,totalBytes:E}},async load({model:a,devices:h}){const g=t.get(a.alias);if(g)return{backend:g.pipe.__backend,loadMs:0};const v=performance.now(),E={},H=y=>{if(y.status==="progress_total")i({type:"progress",alias:a.alias,progress:{loadedBytes:y.loaded,totalBytes:y.total,percent:Math.round(y.progress??0)}});else if(y.status==="progress"){E[y.file]={loaded:y.loaded,total:y.total};const S=Object.values(E),U=S.reduce(($e,N)=>$e+(N.loaded||0),0),j=S.reduce(($e,N)=>$e+(N.total||0),0);i({type:"progress",alias:a.alias,progress:{file:y.file,loadedBytes:U,totalBytes:j,percent:j?Math.round(U/j*100):0}})}},W=[];for(const y of h){if(y==="webgpu"&&!await c()){W.push("webgpu indisponible");continue}try{const S=await n.pipeline(a.task,a.repo,{...l(a),device:y,progress_callback:H});return S.__backend=y,t.set(a.alias,{pipe:S,task:a.task}),{backend:y,loadMs:Math.round(performance.now()-v)}}catch(S){const U=o(S);if(U==="network"||U==="quota")throw S;W.push(`${y} : ${String(S?.message??S)}`)}}const A=new Error(`Aucun backend utilisable (${W.join(" ; ")||"aucun autorisé"}).`);throw A.code="unsupported",A},async run({request:a}){const h=t.get(a.alias);if(!h){const A=new Error(`Modèle "${a.alias}" non chargé.`);throw A.code="runtime",A}const{pipe:g}=h,v={...a.call||{}};let E;a.positional&&(E=v[a.positional],delete v[a.positional]);const H=A=>a.positional?g(A,E,v):g(A,v);if(a.batch){const A=[];for(let S=0;S<a.inputs.length;S+=32){const U=a.inputs.slice(S,S+32),j=await u(await H(U));A.push(...Array.isArray(j)?j:[j])}return A}const W=[];for(const A of a.inputs){const y=await u(await H(A));W.push(h.task==="feature-extraction"||h.task==="image-feature-extraction"?m(y):y)}return W},async clear({model:a}){const h=n.ModelRegistry;if(a){const v=t.get(a.alias);return t.delete(a.alias),await v?.pipe?.dispose?.(),await h?.clear_pipeline_cache?.(a.task,a.repo,l(a)),!0}for(const v of t.values())await v.pipe?.dispose?.();t.clear();const g=n.env.cacheKey;return g&&typeof caches<"u"&&await caches.delete(g),!0}};e.addEventListener("message",a=>{const h=a.data;!h||typeof h.id!="number"||!T[h.type]||(s=s.then(()=>T[h.type](h)).then(g=>i({id:h.id,ok:!0,result:g}),g=>r(h.id,o(g),String(g?.message??g))))})}function Ys(n){return[`const hfWorkerMain = ${Xs.toString()};`,"const pending = [];","const buffer = (event) => pending.push(event);",'self.addEventListener("message", buffer);',"let lib;","try {",` lib = await import(${JSON.stringify(n)});`,"} catch (err) {",' self.postMessage({ type: "fatal", message: "Chargement de Transformers.js impossible : " + (err && err.message || err) });'," throw err;","}",'self.removeEventListener("message", buffer);',"hfWorkerMain(lib, {"," postMessage: (message, transfer) => self.postMessage(message, transfer),"," addEventListener: (type, listener) => {"," self.addEventListener(type, listener);"," for (const event of pending.splice(0)) listener(event);"," },","});"].join(`
28
28
  `)}class ue extends Error{constructor(e,t){super(t),this.code=e,this.name="HfEngineError"}}class Ue{constructor(e){this.createWorker=e,this.worker=null,this.nextId=1,this.pending=new Map,this.progressListeners=new Map,this.fatal=null}static fromUrl(e){let t=null;const s=new Ue(()=>{const r=Ys(e);return t=URL.createObjectURL(new Blob([r],{type:"text/javascript"})),new Worker(t,{type:"module",name:"concorde-hf"})}),i=s.dispose.bind(s);return s.dispose=()=>{i(),t&&URL.revokeObjectURL(t)},s}ensureWorker(){if(this.fatal)throw this.fatal;if(this.worker)return this.worker;const e=this.createWorker();return e.addEventListener("message",t=>this.onMessage(t.data)),e.addEventListener("error",t=>{this.failAll(new ue("runtime",`Worker Hugging Face : ${t.message||"erreur de chargement (CSP worker-src / script-src ?)"}`))}),this.worker=e,e}onMessage(e){if("type"in e){e.type==="progress"?this.progressListeners.get(e.alias)?.(e.progress):e.type==="fatal"&&this.failAll(new ue("runtime",e.message));return}const t=this.pending.get(e.id);t&&(this.pending.delete(e.id),e.ok?t.resolve(e.result):t.reject(new ue(e.error.code,e.error.message)))}failAll(e){this.fatal=e;for(const t of this.pending.values())t.reject(e);this.pending.clear()}request(e){let t;try{t=this.ensureWorker()}catch(i){return Promise.reject(i)}const s=this.nextId++;return new Promise((i,r)=>{this.pending.set(s,{resolve:i,reject:r}),t.postMessage({...e,id:s})})}async configure(e){await this.request({type:"configure",env:e})}inspect(e){return this.request({type:"inspect",model:e})}async load(e,t,s){this.progressListeners.set(e.alias,s);try{return await this.request({type:"load",model:e,devices:t})}finally{this.progressListeners.delete(e.alias)}}run(e){return this.request({type:"run",request:e})}async clear(e){await this.request({type:"clear",model:e})}dispose(){this.failAll(new ue("runtime","Moteur arrêté.")),this.worker?.terminate(),this.worker=null}}const Zs="concorde-hf-consent:",Ne=1024*1024;function Re(){try{return typeof localStorage<"u"?localStorage:null}catch{return null}}function Qs(){const n=globalThis.navigator?.connection;return n?n.saveData===!0||n.effectiveType==="slow-2g"||n.effectiveType==="2g":!1}class R extends Error{constructor(e,t){super(t),this.code=e,this.name="HfError"}}class zt{constructor(e){this.config=e,this.entries=new Map,this.engine=null,this.configured=null}get resolvedConfig(){return this.config}getEngine(){if(this.engine)return this.engine;const e=this.config.runtime;return e.source==="engine"?this.engine=e.engine:e.source==="worker"?this.engine=new Ue(e.createWorker):this.engine=Ue.fromUrl(e.url),this.engine}async ready(){const e=this.getEngine();if(!this.configured){const t=this.config.runtime,s=t.source==="engine"?void 0:t.wasmPaths??(t.source==="cdn"?new URL(".",t.url).href:void 0);this.configured=e.configure({cacheKey:`concorde-hf-${t.version}`,remoteHost:this.config.remoteHost,remotePathTemplate:this.config.remotePathTemplate,wasmPaths:s,logLevel:this.config.logLevel})}return await this.configured,e}dispose(){this.engine?.dispose(),this.engine=null,this.configured=null,this.entries.clear()}hasModel(e){return Object.prototype.hasOwnProperty.call(this.config.models,e)}model(e){if(!this.hasModel(e)){const s=Object.keys(this.config.models);throw new R("not-allowed",`[sonic-hugging-face-infer] modèle "${e}" hors liste blanche`+(s.length?` (disponibles : ${s.join(", ")}).`:"."))}const t=this.config.models[e];return{alias:e,task:t.task,repo:t.repo,revision:t.revision,options:t.options??{},devices:t.devices??["webgpu","wasm"],sizeBytes:t.sizeBytes,label:t.label,description:t.description,defaults:t.defaults}}entry(e){let t=this.entries.get(e);return t||(t={state:{phase:"idle",size:null},listeners:new Set},this.entries.set(e,t)),t}state(e){return this.entry(e).state}subscribe(e,t){const s=this.entry(e);return s.listeners.add(t),t(s.state),()=>s.listeners.delete(t)}update(e,t){const s=this.entry(e);s.state={...s.state,...t};for(const i of s.listeners)i(s.state)}inspect(e){const t=this.entry(e);if(!t.inspect){const s=this.model(e);t.inspect=(async()=>{this.update(e,{phase:"checking"});let i=s.sizeBytes??null,r=!1;try{const c=await(await this.ready()).inspect(s);i=c.totalBytes??i,r=c.cached}catch{}const o={totalBytes:i,fromCache:r};return this.update(e,{size:o,phase:"idle"}),o})()}return t.inspect}consentKey(e){return`${Zs}${e}@${this.model(e).revision}`}storedConsent(e){const t=Re()?.getItem(this.consentKey(e));return t==="accepted"||t==="declined"?t:null}accept(e){try{Re()?.setItem(this.consentKey(e),"accepted")}catch{}const t=this.entry(e);t.consent?.resolve(!0),t.consent=void 0,t.state.phase==="declined"&&this.update(e,{phase:"idle"})}decline(e){try{Re()?.setItem(this.consentKey(e),"declined")}catch{}const t=this.entry(e);t.consent?.resolve(!1),t.consent=void 0,this.update(e,{phase:"declined"})}revokeConsent(e){try{Re()?.removeItem(this.consentKey(e))}catch{}this.entry(e).state.phase==="declined"&&this.update(e,{phase:"idle"})}askConsent(e){const t=this.storedConsent(e);if(t)return Promise.resolve(t==="accepted");const s=this.entry(e);if(!s.consent){let i;const r=new Promise(o=>i=o);s.consent={promise:r,resolve:i}}return this.update(e,{phase:"awaiting-consent"}),s.consent.promise}ensureLoaded(e,t){const s=this.entry(e);if(s.state.phase==="ready")return Promise.resolve();if(s.loading)return s.loading;const i=this.load(e,t).finally(()=>{this.entry(e).loading===i&&(s.loading=void 0)});return s.loading=i,i}async load(e,t){const s=this.model(e),i=this.config.defaults,r=await this.inspect(e),o=r?.fromCache===!0,l=r?.totalBytes??null;if(!o&&t!=="manual"){const d=this.storedConsent(e);if(d==="declined"||this.entry(e).state.phase==="declined")throw this.update(e,{phase:"declined"}),new R("declined","Chargement du modèle refusé par l'utilisateur.");const u=l!==null&&l>i.consentAboveMB*Ne;if((t==="consent"||u||Qs())&&d!=="accepted"&&!await this.askConsent(e))throw this.update(e,{phase:"declined"}),new R("declined","Chargement du modèle refusé par l'utilisateur.")}const c=l??s.sizeBytes??null,f=s.devices.filter(d=>d!=="wasm"||c===null||c<=i.allowWasmUpToMB*Ne);if(!f.length)throw this.update(e,{phase:"unsupported",error:{code:"unsupported",message:"Aucune exécution autorisée pour ce modèle."}}),new R("unsupported","Aucune exécution autorisée pour ce modèle.");if(!o&&l){const d=await globalThis.navigator?.storage?.estimate?.().catch(()=>null);if(d?.quota!==void 0){const u=d.quota-(d.usage??0);if(u<l*1.2){const m=`Espace de stockage insuffisant (${Math.round(u/Ne)} Mo libres, ${Math.round(l/Ne)} Mo nécessaires).`;throw this.update(e,{phase:"error",error:{code:"quota",message:m}}),new R("quota",m)}}}this.update(e,{phase:o?"loading":"downloading",error:void 0,progress:void 0});try{const u=await(await this.ready()).load(s,f,T=>this.update(e,{phase:"downloading",progress:T}));let m;i.persist&&!o&&(m=await globalThis.navigator?.storage?.persist?.().catch(()=>!1)),this.update(e,{phase:"ready",backend:u.backend,loadMs:u.loadMs,persisted:m,size:{totalBytes:c,fromCache:o}})}catch(d){const u=d instanceof ue?d.code:"runtime",m=d instanceof Error?d.message:String(d);throw this.update(e,{phase:u==="unsupported"?"unsupported":"error",error:{code:u,message:m}}),new R(u,m)}}async run(e,t){const s=await this.ready();let i;const r=new Promise((o,l)=>{i=setTimeout(()=>l(new R("timeout",`Calcul trop long (> ${t} ms), abandonné.`)),t)});try{return await Promise.race([s.run(e),r])}catch(o){throw o instanceof R?o:o instanceof ue?new R(o.code,o.message):new R("runtime",o instanceof Error?o.message:String(o))}finally{clearTimeout(i)}}async clearModel(e){const t=this.model(e);await(await this.ready()).clear(t);const i=this.entry(e);i.inspect=void 0,this.update(e,{phase:"idle",size:null,backend:void 0,progress:void 0})}async clearAll(){await(await this.ready()).clear();for(const t of this.entries.keys())this.entry(t).inspect=void 0,this.update(t,{phase:"idle",size:null,backend:void 0,progress:void 0})}}let we=null;Ut(n=>{we?.dispose(),we=new zt(n)});function rt(){if(!we){const n=Cs();n&&(we=new zt(n))}return we}function mn(n){return n}const O={type:"boolean"},k=(n,e)=>({type:"number",minimum:n,maximum:e}),b=(n,e)=>({type:"number",integer:!0,minimum:n,maximum:e}),V=(n=500)=>({type:"string",maxLength:n}),he=(n=256)=>({type:"array",items:b(0),maxItems:n}),De=(n=64)=>({type:"array",items:he(),maxItems:n}),ot={type:"array",items:V(200),maxItems:50},en={anyOf:[V(200),ot]},Ft={anyOf:[b(1,50),{type:"null"}]},at={max_length:b(1,1024),max_new_tokens:b(1,1024),min_length:b(0,1024),min_new_tokens:b(0,1024),early_stopping:{anyOf:[O,{enum:["never"]}]},max_time:k(0,120),do_sample:O,num_beams:b(1,8),num_beam_groups:b(1,8),penalty_alpha:k(0,1),use_cache:O,temperature:k(0,5),top_k:b(0,200),top_p:k(0,1),typical_p:k(0,1),epsilon_cutoff:k(0,1),eta_cutoff:k(0,1),diversity_penalty:k(0,10),repetition_penalty:k(0,10),encoder_repetition_penalty:k(0,10),length_penalty:k(-10,10),no_repeat_ngram_size:b(0,32),bad_words_ids:De(),force_words_ids:{anyOf:[De(),{type:"array",items:De(),maxItems:64}]},renormalize_logits:O,forced_bos_token_id:b(0),forced_eos_token_id:{anyOf:[b(0),he()]},remove_invalid_values:O,exponential_decay_length_penalty:{type:"tuple",prefixItems:[b(0),k()]},suppress_tokens:he(),begin_suppress_tokens:he(),forced_decoder_ids:{type:"array",items:{type:"tuple",prefixItems:[b(0),b(0)]},maxItems:64},guidance_scale:k(0,50),num_return_sequences:b(1,8),output_attentions:O,output_hidden_states:O,output_scores:O,return_dict_in_generate:O,pad_token_id:b(0),bos_token_id:b(0),eos_token_id:{anyOf:[b(0),he()]},encoder_no_repeat_ngram_size:b(0,32),decoder_start_token_id:b(0)},tn={"feature-extraction":{pooling:{enum:["none","mean","cls","first_token","eos","last_token"]},normalize:O,quantize:O,precision:{enum:["binary","ubinary"]}},"text-classification":{top_k:Ft},"zero-shot-classification":{candidate_labels:en,hypothesis_template:V(300),multi_label:O},translation:at,"token-classification":{ignore_labels:{type:"array",items:V(100),maxItems:50},aggregation_strategy:{enum:["none","simple"]}},"fill-mask":{top_k:b(1,50)},"question-answering":{context:{anyOf:[V(2e4),{type:"array",items:V(2e4),maxItems:20}]},top_k:b(1,20)},"image-classification":{top_k:Ft},"zero-shot-image-classification":{candidate_labels:ot,hypothesis_template:V(300)},"object-detection":{threshold:k(0,1),percentage:O},"zero-shot-object-detection":{candidate_labels:ot,threshold:k(0,1),top_k:b(1,100),percentage:O},"image-feature-extraction":{pool:O},"image-segmentation":{threshold:k(0,1),mask_threshold:k(0,1),overlap_mask_area_threshold:k(0,1),subtask:{anyOf:[V(50),{type:"null"}]},label_ids_to_fuse:he(),target_sizes:De()},"depth-estimation":{},"background-removal":{},"image-to-text":at,"audio-classification":{top_k:b(1,50)},"automatic-speech-recognition":{...at,return_timestamps:{anyOf:[O,{enum:["word"]}]},chunk_length_s:k(0,60),stride_length_s:k(0,30),force_full_sequences:O,language:V(40),task:{enum:["transcribe","translate"]},num_frames:b(0)}};class lt extends Error{constructor(e){super(e),this.name="HfOptionsError"}}function ve(n){return n===null?"null":Array.isArray(n)?"array":typeof n}function je(n,e,t){if("anyOf"in n){const s=n.anyOf.map(i=>je(i,e,t));return s.some(i=>i===null)?null:s[0]}if("enum"in n)return n.enum.includes(e)?null:`${t} : valeur ${JSON.stringify(e)} non autorisée (attendu : ${n.enum.map(s=>JSON.stringify(s)).join(" | ")}).`;switch(n.type){case"boolean":return typeof e=="boolean"?null:`${t} : booléen attendu, reçu ${ve(e)}.`;case"null":return e===null?null:`${t} : null attendu.`;case"string":return typeof e!="string"?`${t} : texte attendu, reçu ${ve(e)}.`:n.maxLength!==void 0&&e.length>n.maxLength?`${t} : texte trop long (${e.length} > ${n.maxLength}).`:null;case"number":return typeof e!="number"||!Number.isFinite(e)?`${t} : nombre attendu, reçu ${ve(e)}.`:n.integer&&!Number.isInteger(e)?`${t} : entier attendu.`:n.minimum!==void 0&&e<n.minimum?`${t} : minimum ${n.minimum}.`:n.maximum!==void 0&&e>n.maximum?`${t} : maximum ${n.maximum}.`:null;case"array":{if(!Array.isArray(e))return`${t} : liste attendue, reçu ${ve(e)}.`;if(n.maxItems!==void 0&&e.length>n.maxItems)return`${t} : trop d'éléments (${e.length} > ${n.maxItems}).`;for(let s=0;s<e.length;s++){const i=je(n.items,e[s],`${t}[${s}]`);if(i)return i}return null}case"tuple":{if(!Array.isArray(e)||e.length!==n.prefixItems.length)return`${t} : liste de ${n.prefixItems.length} éléments attendue.`;for(let s=0;s<e.length;s++){const i=je(n.prefixItems[s],e[s],`${t}[${s}]`);if(i)return i}return null}}}function sn(n,e){if(e==null)return{};if(typeof e!="object"||Array.isArray(e))throw new lt(`[sonic-hugging-face-infer] options.call : objet attendu, reçu ${ve(e)}.`);const t=tn[n];for(const[s,i]of Object.entries(e)){const r=t[s];if(!r){const l=Object.keys(t);throw new lt(`[sonic-hugging-face-infer] option "${s}" inconnue pour la tâche "${n}"`+(l.length?` (autorisées : ${l.join(", ")}).`:" (aucune option)."))}if(i===void 0)continue;const o=je(r,i,`options.call.${s}`);if(o)throw new lt(`[sonic-hugging-face-infer] ${o}`)}return e}function nn(n){if(!n||typeof n!="object")return!1;const e=n;return e.blob instanceof Blob&&(typeof e.width=="number"||typeof e.height=="number"||typeof e.channels=="number"||typeof e.url=="string"||typeof e.blobUrl=="string")}function ct(n){return typeof n!="string"?null:n.trim()||null}function rn(n){if(n==null||n==="")return null;if(typeof n=="string")return ct(n);if(typeof n!="object")return null;const e=n;return ct(e.url)??ct(e.blobUrl)}function ut(n,e){if(Array.isArray(n)){for(let s=0;s<n.length;s++)n[s]=ut(n[s],e);return n}if(!n||typeof n!="object")return n;const t=n;if(nn(t)){if(rn(t))return n;const s=URL.createObjectURL(t.blob);return e.push(s),t.url=s,n}for(const s of Object.keys(t))t[s]=ut(t[s],e);return n}function Ht(n){for(const e of n)try{URL.revokeObjectURL(e)}catch{}}const qt={"zero-shot-classification":"candidate_labels","zero-shot-image-classification":"candidate_labels","zero-shot-object-detection":"candidate_labels","question-answering":"context"},Wt={"feature-extraction":"text","text-classification":"text","zero-shot-classification":"text",translation:"text","token-classification":"text","fill-mask":"text","question-answering":"text","image-classification":"image","zero-shot-image-classification":"image","object-detection":"image","zero-shot-object-detection":"image","image-feature-extraction":"image","image-segmentation":"image","depth-estimation":"image","background-removal":"image","image-to-text":"image","audio-classification":"audio","automatic-speech-recognition":"audio"},on=1024*1024,an=5e3,Vt=1500;function de(n){const e=n.split("."),t=e.shift();let s=D.get(t);return e.length&&(s=q.traverse(s,e)),s}function ln(n){return n===!0||n===1||n==="accepted"||n==="true"||n==="1"||n==="on"}const cn={checking:"loading","awaiting-consent":"awaiting-consent",declined:"declined",downloading:"downloading",loading:"loading",ready:"ready",error:"error",unsupported:"unsupported",idle:"idle"};function un(n,e){switch(n){case"downloading":case"loading":case"running":return{status:"loading",error:null};case"done":return{status:e==null||Array.isArray(e)&&e.length===0?"empty":"ready",error:null};case"error":case"invalid-input":return{status:"error",error:null};default:return{status:"empty",error:null}}}function Jt(n,e){const t=e??rt();if(!t)throw new R("not-allowed","[sonic-hugging-face-infer] configureHuggingFace() n'a pas été appelé.");const s=t.model(n.model),i=s.task,r=t.resolvedConfig.defaults,o=n.load??r.load,l=n.trigger??r.trigger,c=n.debounceMs??r.debounceMs,f=n.emptyValue??null,d=n.onInvalid??"keep",u=(p,w)=>p===void 0?w:n.untrusted?Math.min(p,w):p,m=u(n.maxItems,r.maxItems),T=u(n.maxChars,r.maxChars),a=u(n.timeoutMs,r.timeoutMs),h=n.persistResults??!1,g=t.resolvedConfig.runtime.version,v=ae(n.input),E=ae(n.output);if(v===E||E.startsWith(v+".")||v.startsWith(E+"."))throw new Error(`[sonic-hugging-face-infer] la sortie "${E}" chevauche l'entrée "${v}".`);const H=n.status?ae(n.status):null,W=de(E),A=D.get(js(E)),y=H?de(H):null;let S=null,U={...s.defaults??{}};try{const p=n.untrusted?sn(i,n.call):n.call??{};U={...U,...p}}catch(p){S=p instanceof Error?p.message:String(p)}const j=qt[i],$e=i==="feature-extraction"&&!!U.pooling&&U.pooling!=="none";let N="idle",B=t.state(n.model),ne,Gt,ht,dt,ft=!1,pt,Ae=[],Q=0,z=!1,J=null,gt=!1,Kt=!1;const pn=()=>{switch(N){case"empty":return"empty";case"invalid-input":return"invalid-input";case"running":return"running";case"done":return"done";case"error":return"error";default:return cn[B.phase]??"idle"}},F=()=>{if(z)return;const p=pn();if(A.set(un(p,pt)),!y)return;const w=!["done","running","empty","invalid-input"].includes(p)&&B.error?B.error:void 0,$={state:p,model:{alias:s.alias,task:i,repo:s.repo,revision:s.revision,label:s.label,description:s.description},size:{totalBytes:B.size?.totalBytes??null,totalMB:B.size?.totalBytes==null?null:Math.round(B.size.totalBytes/on),fromCache:B.size?.fromCache??!1},progress:B.progress,backend:B.backend,persisted:B.persisted,skipped:ht,warnings:dt,timings:{loadMs:B.loadMs,lastRunMs:Gt},fromResultsCache:ft,error:ne??w};y.set(JSON.parse(JSON.stringify($)))},Se=p=>{Ht(Ae),Ae=[];const w=ut(p,Ae);pt=w,W.set(w)},_t=async p=>{Kt=!0,await t.ensureLoaded(n.model,p)},gn=async p=>{if(S)return N="error",ne={code:"invalid-input",message:S},F(),null;const w=de(v).get(),$=jt(w,{kind:Wt[i],text:n.text,maxItems:m,maxChars:T});if($.kind==="empty")return N="empty",ht=void 0,dt=void 0,Se(f),F(),null;if($.kind==="invalid")return N="invalid-input",ne={code:$.code,message:$.message},d==="clear"&&Se(f),F(),null;if(j&&(U[j]===void 0||U[j]===""))return N="invalid-input",ne={code:"invalid-input",message:`options.call.${j} est requis pour la tâche "${i}".`},F(),null;ht=$.skipped||void 0,dt=$.warnings.length?$.warnings:void 0;const G=await Fs({payloads:$.payloads,positions:$.positions,length:$.length,many:$.many,alias:s.alias,repo:s.repo,revision:s.revision,options:s.options,runtime:g,call:U});if(p!==Q||z)return null;const C=await Hs(G,h,n.resultsTtlMs);return p!==Q||z?null:C.hit?(N="done",ft=!0,Se(C.value),F(),null):o==="manual"&&B.phase!=="ready"?(N="waiting-model",gt=!0,F(),null):{input:$,key:G}},_n=async(p,w,$)=>{N="waiting-model",F();try{await _t(o)}catch(C){if(p!==Q||z)return;N="waiting-model",pt===void 0&&Se(f),(!(C instanceof R)||C.code==="runtime")&&(ne={code:C instanceof R?C.code:"runtime",message:C instanceof Error?C.message:String(C)}),F();return}if(p!==Q||z)return;N="running",F();const G=performance.now();try{const C=await t.run({alias:s.alias,inputs:w.payloads,call:U,positional:j,batch:$e},a);if(p!==Q||z)return;const Yt=w.many?Bt(w,C):C[0]??null;Gt=Math.round(performance.now()-G),N="done",Se(Yt),F(),qs($,Yt,h,r.resultsCacheBytes)}catch(C){if(p!==Q||z)return;N="error",ne={code:C instanceof R?C.code:"runtime",message:C instanceof Error?C.message:String(C)},F()}},Xt=async()=>{if(z)return;const p=++Q;ne=void 0,ft=!1;const w=await gn(p);!w||p!==Q||z||await _n(p,w.input,w.key)},mt=(p=c)=>{z||(J&&clearTimeout(J),J=setTimeout(()=>{J=null,Xt()},p))},yt=[],bt=(p,w)=>{const $=de(p);$.onInternalMutation(w),yt.push(()=>$.offInternalMutation(w))};if(yt.push(t.subscribe(n.model,p=>{B=p,F(),p.phase==="ready"&&gt&&(gt=!1,mt(0))})),l==="mutation"?bt(v,()=>mt()):F(),n.triggerProvider){const p=ae(n.triggerProvider);let w=!0,$="";bt(p,()=>{const G=JSON.stringify(de(p).get()??null);if(w){w=!1,$=G;return}G!==$&&($=G,G!=="null"&&mt(0))})}if(n.consentProvider){const p=ae(n.consentProvider);bt(p,()=>{const w=de(p).get();ln(w)?t.accept(n.model):w==="declined"&&t.decline(n.model)})}const ke=p=>{z||Kt||_t(p).catch(()=>{})};if(o==="auto")ke("auto");else if(o==="idle"){const p=globalThis.requestIdleCallback;p?p(()=>ke("idle"),{timeout:an}):setTimeout(()=>ke("idle"),Vt)}else o==="visible"?n.whenVisible?n.whenVisible().then(()=>ke("visible")):setTimeout(()=>ke("visible"),Vt):t.inspect(n.model).catch(()=>{});return{stop(){if(!z){z=!0,J&&clearTimeout(J);for(const p of yt)p();Ht(Ae),Ae=[]}},run(){return J&&clearTimeout(J),J=null,Xt()},async load(){await _t("manual")},accept(){t.accept(n.model)},decline(){t.decline(n.model)}}}var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,M=(n,e,t,s)=>{for(var i=s>1?void 0:s?dn(e,t):e,r=n.length-1,o;r>=0;r--)(o=n[r])&&(i=(s?o(e,t,i):o(i))||i);return s&&i&&hn(e,t,i),i};let x=class extends be{constructor(){super(...arguments),this.model="",this.inputProvider="",this.outputProvider="",this.statusProvider="",this.triggerProvider="",this.consentProvider="",this.options=null,this.load="",this.trigger="",this.debounce=null,this.emptyValue=null,this.onInvalid="keep",this.maxItems=null,this.maxChars=null,this.timeoutMs=null,this.persistResults=!1,this.resultsTtl=null,this.handle=null,this.offConfig=null,this.visible=null,this.whenVisible=()=>(this.visible||(this.visible=new Promise(n=>{const e=this.parentElement??this;if(typeof IntersectionObserver>"u")return n();const t=new IntersectionObserver(s=>{s.some(i=>i.isIntersecting)&&(t.disconnect(),n())});t.observe(e)})),this.visible)}connectedCallback(){super.connectedCallback(),this.offConfig=Ut(()=>this.restart()),this.hasUpdated&&this.restart()}disconnectedCallback(){this.handle?.stop(),this.handle=null,this.offConfig?.(),this.offConfig=null,super.disconnectedCallback()}updated(n){n.size&&this.isConnected&&this.restart()}run(){return this.handle?.run()??Promise.resolve()}loadModel(){return this.handle?.load()??Promise.resolve()}accept(){this.handle?.accept()}decline(){this.handle?.decline()}restart(){if(this.handle?.stop(),this.handle=null,!!this.isConnected&&!(!this.model||!this.inputProvider||!this.outputProvider)){if(!rt()){console.warn("[sonic-hugging-face-infer] configureHuggingFace() n'a pas été appelé : composant inactif.");return}try{this.handle=Jt({model:this.model,input:this.inputProvider,output:this.outputProvider,status:this.statusProvider||void 0,triggerProvider:this.triggerProvider||void 0,consentProvider:this.consentProvider||void 0,text:this.options?.text,call:this.options?.call,untrusted:!0,load:this.load||void 0,trigger:this.trigger||void 0,debounceMs:this.debounce??void 0,emptyValue:this.emptyValue,onInvalid:this.onInvalid,maxItems:this.maxItems??void 0,maxChars:this.maxChars??void 0,timeoutMs:this.timeoutMs??void 0,persistResults:this.persistResults,resultsTtlMs:this.resultsTtl??void 0,whenVisible:this.whenVisible})}catch(n){console.error(n instanceof Error?n.message:n)}}}render(){return ds`<slot></slot>`}};x.styles=[Qt`
29
29
  :host {
30
30
  display: contents;
@@ -1291,7 +1291,7 @@ const m = class m {
1291
1291
  return new TextDecoder().decode(f);
1292
1292
  }
1293
1293
  };
1294
- m.buildDate = "Mon Sep 28 2026 08:00:14 GMT+0200 (Central European Summer Time)", m.changed = !1, m.saving = !1, m.saveId = 0, m.instance = null, m.instances = /* @__PURE__ */ new Map(), m.pageShowHandlerInitialized = !1;
1294
+ m.buildDate = "Tue Sep 29 2026 17:50:59 GMT+0200 (Central European Summer Time)", m.changed = !1, m.saving = !1, m.saveId = 0, m.instance = null, m.instances = /* @__PURE__ */ new Map(), m.pageShowHandlerInitialized = !1;
1295
1295
  let F = m;
1296
1296
  if (typeof window < "u") {
1297
1297
  const n = window, e = Os + "PublisherManager", t = n[e] || F;