@luzmo/analytics-components-kit 1.0.4-beta.2 → 1.0.4-beta.3

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 (934) hide show
  1. package/components/ai-chat/index.cjs +1 -1
  2. package/components/ai-chat/index.js +1 -1
  3. package/components/ai-chat-CXt4wCe0.js +3715 -0
  4. package/components/ai-chat-Dnf-C838.cjs +258 -0
  5. package/components/ai-interaction-textarea/index.cjs +1 -1
  6. package/components/ai-interaction-textarea/index.js +1 -1
  7. package/components/ai-interaction-textarea-B_-aZ9mc.cjs +68 -0
  8. package/components/ai-interaction-textarea-DSrZkuh9.js +299 -0
  9. package/components/area-chart-options.config-BjdRY1sr.js +146 -0
  10. package/components/area-chart-options.config-CJYI-zcZ.cjs +20 -0
  11. package/components/area-chart-positioning.config-PZ-MmeDb.cjs +20 -0
  12. package/components/area-chart-positioning.config-hLhrDJ3v.js +55 -0
  13. package/components/area-chart-slots.config-B56LJaky.cjs +20 -0
  14. package/components/area-chart-slots.config-BpvvqFy_.js +55 -0
  15. package/components/bar-chart-options.config-D2a-U6kG.cjs +20 -0
  16. package/components/bar-chart-options.config-DxNHV39Y.js +220 -0
  17. package/components/bar-chart-positioning.config-C6wWTn1o.js +59 -0
  18. package/components/bar-chart-positioning.config-DI8tOMbI.cjs +20 -0
  19. package/components/bar-chart-slots.config-CfIirCOX.js +50 -0
  20. package/components/bar-chart-slots.config-CkOVmYcA.cjs +20 -0
  21. package/components/base-BCmPH4SF.cjs +20 -0
  22. package/components/base-DYkpEuMf.js +249 -0
  23. package/components/base-store-D0jbv0bE.js +160 -0
  24. package/components/base-store-ab2wBsBE.cjs +20 -0
  25. package/components/box-plot-options.config-CXey4hvi.js +296 -0
  26. package/components/box-plot-options.config-Di28EvZb.cjs +20 -0
  27. package/components/box-plot-positioning.config-D_qhNWth.cjs +20 -0
  28. package/components/box-plot-positioning.config-XG-WcIlA.js +48 -0
  29. package/components/box-plot-slots.config-DL-tTTn9.cjs +20 -0
  30. package/components/box-plot-slots.config-DclNulnH.js +40 -0
  31. package/components/bubble-chart-options.config-CeaOv4eF.js +115 -0
  32. package/components/bubble-chart-options.config-CnpBrIo6.cjs +20 -0
  33. package/components/bubble-chart-positioning.config-CHYBh_Nb.cjs +20 -0
  34. package/components/bubble-chart-positioning.config-o_r-GWQG.js +55 -0
  35. package/components/bubble-chart-slots.config-D7vQta7G.js +47 -0
  36. package/components/bubble-chart-slots.config-smlOOwcK.cjs +20 -0
  37. package/components/bullet-chart-options.config-6nATAuC3.cjs +20 -0
  38. package/components/bullet-chart-options.config-CLn7sV4W.js +75 -0
  39. package/components/bullet-chart-positioning.config-BF8PflF6.cjs +20 -0
  40. package/components/bullet-chart-positioning.config-DE5oy4M6.js +56 -0
  41. package/components/bullet-chart-slots.config-BaTbWYvU.cjs +20 -0
  42. package/components/bullet-chart-slots.config-IX7zJWc7.js +46 -0
  43. package/components/choropleth-map-options.config-CmtZtBAC.cjs +20 -0
  44. package/components/choropleth-map-options.config-DzTlJSO3.js +348 -0
  45. package/components/choropleth-map-positioning.config-Cf8bEIns.js +55 -0
  46. package/components/choropleth-map-positioning.config-DT1WWljP.cjs +20 -0
  47. package/components/choropleth-map-slots.config-ClMcW8wV.cjs +20 -0
  48. package/components/choropleth-map-slots.config-y0y9rf6i.js +53 -0
  49. package/components/circle-pack-chart-options.config-BA_G1sQ8.cjs +20 -0
  50. package/components/circle-pack-chart-options.config-DoLPbnPq.js +54 -0
  51. package/components/circle-pack-chart-positioning.config-DDpnake6.cjs +20 -0
  52. package/components/circle-pack-chart-positioning.config-Dy-DZ_de.js +48 -0
  53. package/components/circle-pack-chart-slots.config-IH2KV7z1.cjs +20 -0
  54. package/components/circle-pack-chart-slots.config-X9WVAykN.js +38 -0
  55. package/components/circular-gauge-options.config-BPUFjqx8.js +188 -0
  56. package/components/circular-gauge-options.config-BtP-YDIr.cjs +20 -0
  57. package/components/circular-gauge-positioning.config-D2t_3T1J.cjs +20 -0
  58. package/components/circular-gauge-positioning.config-DljBe7e-.js +48 -0
  59. package/components/circular-gauge-slots.config-B6ajddW-.cjs +20 -0
  60. package/components/circular-gauge-slots.config-NIEmIAIG.js +39 -0
  61. package/components/color-CXw2IfjN.js +3812 -0
  62. package/components/color-range-utils-u4ziqRRA.js +63 -0
  63. package/components/column-chart-options.config-DQts3cE4.js +219 -0
  64. package/components/column-chart-options.config-eJ1Cexxe.cjs +20 -0
  65. package/components/column-chart-positioning.config-Bob00Qnq.js +55 -0
  66. package/components/column-chart-positioning.config-Uvvr5PxW.cjs +20 -0
  67. package/components/column-chart-slots.config-BY6y_rvE.cjs +20 -0
  68. package/components/column-chart-slots.config-CoFarLvo.js +50 -0
  69. package/components/combination-chart-options.config-C3kZ2fpK.cjs +20 -0
  70. package/components/combination-chart-options.config-CjSV6Ic4.js +87 -0
  71. package/components/combination-chart-positioning.config-BzbcDQ2O.cjs +20 -0
  72. package/components/combination-chart-positioning.config-DG2CM16I.js +48 -0
  73. package/components/combination-chart-slots.config-BGRHSwfr.js +43 -0
  74. package/components/combination-chart-slots.config-Ciza_y3a.cjs +20 -0
  75. package/components/conditional-number-options.config-CZFqw31c.js +205 -0
  76. package/components/conditional-number-options.config-CadHLi0m.cjs +20 -0
  77. package/components/conditional-number-positioning.config-CT8PqxDT.js +48 -0
  78. package/components/conditional-number-positioning.config-DpORiYgh.cjs +20 -0
  79. package/components/conditional-number-slots.config-CWX6OuUa.cjs +20 -0
  80. package/components/conditional-number-slots.config-r_C8T2HH.js +39 -0
  81. package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +20 -0
  82. package/components/convert-data-field-to-slot-content-C6IIqU7G.js +53 -0
  83. package/components/data-broker-BH5WDG0j.cjs +20 -0
  84. package/components/data-broker-CVDImE1j.js +1674 -0
  85. package/components/data-field/index.cjs +1 -1
  86. package/components/data-field/index.js +1 -1
  87. package/components/data-field-CxUItUcs.cjs +54 -0
  88. package/components/data-field-RzkD37hR.js +121 -0
  89. package/components/data-field-level/index.cjs +1 -1
  90. package/components/data-field-level/index.js +1 -1
  91. package/components/data-field-level-55bJkqFt.cjs +55 -0
  92. package/components/data-field-level-zbu4U2m5.js +246 -0
  93. package/components/data-field-panel/index.cjs +1 -1
  94. package/components/data-field-panel/index.js +1 -1
  95. package/components/data-field-panel-C3O77CIF.cjs +87 -0
  96. package/components/data-field-panel-Ob-hNZwz.js +385 -0
  97. package/components/data-fields-select/index.cjs +1 -1
  98. package/components/data-fields-select/index.js +1 -1
  99. package/components/data-fields-select-CYQy6Ow-.js +262 -0
  100. package/components/data-fields-select-D-nSjOep.cjs +41 -0
  101. package/components/dataset-icon/index.js +1 -1
  102. package/components/dataset-icon-BXEgg_8O.js +125 -0
  103. package/components/dataset-selector-list/index.cjs +1 -1
  104. package/components/dataset-selector-list/index.js +1 -1
  105. package/components/dataset-selector-list-BW5v_7_L.cjs +75 -0
  106. package/components/dataset-selector-list-DwfeaUGu.js +313 -0
  107. package/components/dataset-selector-row/index.cjs +1 -1
  108. package/components/dataset-selector-row/index.js +1 -1
  109. package/components/dataset-selector-row-BU7YhT7l.cjs +79 -0
  110. package/components/dataset-selector-row-CLbx0joD.js +273 -0
  111. package/components/date-comparison-filter-options.config--clPxHFt.cjs +20 -0
  112. package/components/date-comparison-filter-options.config-s16IGX_4.js +126 -0
  113. package/components/date-comparison-filter-slots.config-DQBKeCRX.js +33 -0
  114. package/components/date-comparison-filter-slots.config-KO9B0lfS.cjs +20 -0
  115. package/components/date-filter-options.config-BdNFe-Ds.cjs +20 -0
  116. package/components/date-filter-options.config-ChFEIjN3.js +118 -0
  117. package/components/date-filter-slots.config-BrQoD-EF.cjs +20 -0
  118. package/components/date-filter-slots.config-DREsncpE.js +37 -0
  119. package/components/de-BY1wWZE8.cjs +20 -0
  120. package/components/de-D-xQoqdB.js +473 -0
  121. package/components/decorate-CaYbmmmm.js +28 -0
  122. package/components/display-settings/index.cjs +1 -1
  123. package/components/display-settings/index.js +1 -1
  124. package/components/display-settings-COYLimuI.cjs +120 -0
  125. package/components/display-settings-ajA8j6kr.js +272 -0
  126. package/components/display-settings-binning/index.cjs +1 -1
  127. package/components/display-settings-binning/index.js +1 -1
  128. package/components/display-settings-binning-GKaol6nW.cjs +56 -0
  129. package/components/display-settings-binning-MHns2Ns6.js +110 -0
  130. package/components/display-settings-datetime/index.cjs +1 -1
  131. package/components/display-settings-datetime/index.js +1 -1
  132. package/components/display-settings-datetime-CLRXVpld.cjs +217 -0
  133. package/components/display-settings-datetime-D5eBAfWQ.js +413 -0
  134. package/components/display-settings-grand-totals/index.cjs +1 -1
  135. package/components/display-settings-grand-totals/index.js +1 -1
  136. package/components/display-settings-grand-totals-CpulhtNX.js +89 -0
  137. package/components/display-settings-grand-totals-DltI_Z-x.cjs +44 -0
  138. package/components/display-settings-numeric/index.cjs +1 -1
  139. package/components/display-settings-numeric/index.js +1 -1
  140. package/components/display-settings-numeric-CurqaTi5.cjs +190 -0
  141. package/components/display-settings-numeric-DnyXOV_x.js +479 -0
  142. package/components/display-settings-period-over-period/index.cjs +1 -1
  143. package/components/display-settings-period-over-period/index.js +1 -1
  144. package/components/display-settings-period-over-period-DP2grX4n.cjs +229 -0
  145. package/components/display-settings-period-over-period-Do4qG7yY.js +433 -0
  146. package/components/donut-chart-options.config-K-HkE7sL.cjs +20 -0
  147. package/components/donut-chart-options.config-WNOpb2n9.js +207 -0
  148. package/components/donut-chart-positioning.config-BLnTmwTZ.cjs +20 -0
  149. package/components/donut-chart-positioning.config-Bl96um6F.js +48 -0
  150. package/components/donut-chart-slots.config-DEQ3Cw6c.js +39 -0
  151. package/components/donut-chart-slots.config-RxPnpO6M.cjs +20 -0
  152. package/components/dropdown-filter-options.config-B-Vvy0Nq.cjs +20 -0
  153. package/components/dropdown-filter-options.config-DBNawOPR.js +153 -0
  154. package/components/dropdown-filter-slots.config-BBZChIHC.cjs +20 -0
  155. package/components/dropdown-filter-slots.config-DcStZGjV.js +38 -0
  156. package/components/en-B34alchz.cjs +20 -0
  157. package/components/en-GB-B3xz84vF.cjs +20 -0
  158. package/components/en-US-B34alchz.cjs +20 -0
  159. package/components/es-BIaD4kOL.cjs +20 -0
  160. package/components/es-CLnBAiLu.js +473 -0
  161. package/components/evolution-number-options.config-Bt1FZqqQ.cjs +20 -0
  162. package/components/evolution-number-options.config-CrIM2GTn.js +228 -0
  163. package/components/evolution-number-positioning.config-DSoC35zp.cjs +20 -0
  164. package/components/evolution-number-positioning.config-DXNPD29G.js +48 -0
  165. package/components/evolution-number-slots.config-Bq_JlxgK.js +37 -0
  166. package/components/evolution-number-slots.config-CYxdcD-x.cjs +20 -0
  167. package/components/filter-expression-picker/index.cjs +1 -1
  168. package/components/filter-expression-picker/index.js +1 -1
  169. package/components/filter-expression-picker-0eNf_L9I.cjs +38 -0
  170. package/components/filter-expression-picker-D_buTmzJ.js +425 -0
  171. package/components/filter-item/index.cjs +1 -1
  172. package/components/filter-item/index.js +1 -1
  173. package/components/filter-item-DGnRmeaB.cjs +58 -0
  174. package/components/filter-item-VzEHDr04.js +242 -0
  175. package/components/filter-parameter-picker/index.js +1 -1
  176. package/components/filter-value-picker/index.cjs +1 -1
  177. package/components/filter-value-picker/index.js +1 -1
  178. package/components/filter-value-picker-C1lDTmKM.cjs +60 -0
  179. package/components/filter-value-picker-CIblY-PW.js +151 -0
  180. package/components/filter-value-picker-datetime/index.cjs +1 -1
  181. package/components/filter-value-picker-datetime/index.js +1 -1
  182. package/components/filter-value-picker-datetime-DQpEf_tv.js +139 -0
  183. package/components/filter-value-picker-datetime-dCo1_pma.cjs +42 -0
  184. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  185. package/components/filter-value-picker-hierarchy/index.js +1 -1
  186. package/components/filter-value-picker-hierarchy-DaZlasgM.cjs +47 -0
  187. package/components/filter-value-picker-hierarchy-DzHUrpyk.js +232 -0
  188. package/components/filter-value-picker-numeric/index.cjs +1 -1
  189. package/components/filter-value-picker-numeric/index.js +1 -1
  190. package/components/filter-value-picker-numeric-BU975w8c.js +219 -0
  191. package/components/filter-value-picker-numeric-D-dUSGAP.cjs +48 -0
  192. package/components/filters/index.cjs +1 -1
  193. package/components/filters/index.js +1 -1
  194. package/components/filters-BgTnxSKg.js +400 -0
  195. package/components/filters-Cx1S1-vx.cjs +150 -0
  196. package/components/formatter-8m-wrIM-.cjs +20 -0
  197. package/components/formula/index.cjs +1 -1
  198. package/components/formula/index.js +1 -1
  199. package/components/formula-CeDEKB7D.js +138 -0
  200. package/components/formula-D7E8UieE.cjs +45 -0
  201. package/components/formula-codemirror-CFMYytMd.cjs +215 -0
  202. package/components/formula-codemirror-MygWCu2u.js +11973 -0
  203. package/components/formula-display-store-BYa910x_.js +1086 -0
  204. package/components/formula-display-store-DjjsQ5mW.cjs +20 -0
  205. package/components/formula-editor/index.cjs +1 -1
  206. package/components/formula-editor/index.js +3 -3
  207. package/components/formula-editor-4PoZ3BlC.cjs +218 -0
  208. package/components/formula-editor-DeYzzLDr.js +666 -0
  209. package/components/formula-field/index.cjs +1 -1
  210. package/components/formula-field/index.js +1 -1
  211. package/components/formula-field-DXdxspyY.js +40 -0
  212. package/components/formula-field-DkKXMIMg.cjs +20 -0
  213. package/components/formula-input-base-Bz_XVZcs.cjs +49 -0
  214. package/components/formula-input-base-Dok5ujvH.js +236 -0
  215. package/components/fr-CHG2Tcby.cjs +20 -0
  216. package/components/fr-DIwbOnwC.js +473 -0
  217. package/components/funnel-chart-options.config-BAIgb6x9.cjs +20 -0
  218. package/components/funnel-chart-options.config-k0X4rkj-.js +187 -0
  219. package/components/funnel-chart-positioning.config-BcsV1xp7.cjs +20 -0
  220. package/components/funnel-chart-positioning.config-CWSM8nTo.js +48 -0
  221. package/components/funnel-chart-slots.config-CSI5mdma.cjs +20 -0
  222. package/components/funnel-chart-slots.config-DKhaZf_r.js +43 -0
  223. package/components/get-css-variable-Bpma6ZOo.js +63 -0
  224. package/components/get-css-variable-rHTFFWYM.cjs +20 -0
  225. package/components/get-dataset-name-Dwuh7DWE.cjs +20 -0
  226. package/components/get-dataset-name-SfDNjsuR.js +27 -0
  227. package/components/groupings-BNrLlXIB.cjs +20 -0
  228. package/components/groupings-okwLJKoG.js +52 -0
  229. package/components/heat-map-options.config-Ct-93RVQ.cjs +20 -0
  230. package/components/heat-map-options.config-_xxAm6iG.js +224 -0
  231. package/components/heat-map-positioning.config-C0dkG5_9.cjs +20 -0
  232. package/components/heat-map-positioning.config-DQJP4mTG.js +48 -0
  233. package/components/heat-map-slots.config-BDfEGgq5.js +37 -0
  234. package/components/heat-map-slots.config-D0mwjImu.cjs +20 -0
  235. package/components/heat-table-options.config-7IS5wa9l.cjs +20 -0
  236. package/components/heat-table-options.config-DxRbWqJ8.js +372 -0
  237. package/components/heat-table-positioning.config-BzSpf7ed.cjs +20 -0
  238. package/components/heat-table-positioning.config-WUHNZPT-.js +55 -0
  239. package/components/heat-table-slots.config-CH6Q9203.cjs +20 -0
  240. package/components/heat-table-slots.config-CVh1TEJJ.js +49 -0
  241. package/components/hexbin-map-options.config-CUAv6zuD.cjs +20 -0
  242. package/components/hexbin-map-options.config-CmAmK-jM.js +276 -0
  243. package/components/hexbin-map-positioning.config-CJPhgdt2.js +48 -0
  244. package/components/hexbin-map-positioning.config-Cno9WIc9.cjs +20 -0
  245. package/components/hexbin-map-slots.config-BdkQVzI7.cjs +20 -0
  246. package/components/hexbin-map-slots.config-rxPZ4kwL.js +37 -0
  247. package/components/image-options.config-DJ2DEf7g.js +153 -0
  248. package/components/image-options.config-DXqA7sAa.cjs +20 -0
  249. package/components/image-slots.config-DprzKxj3.cjs +20 -0
  250. package/components/image-slots.config-bDNDmiWy.js +24 -0
  251. package/components/index.cjs +1 -1
  252. package/components/index.js +63 -62
  253. package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
  254. package/components/interactive-viz-item/index.cjs +20 -0
  255. package/components/interactive-viz-item/index.d.ts +10 -0
  256. package/components/interactive-viz-item/index.js +28 -0
  257. package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
  258. package/components/interactive-viz-item/types.d.ts +117 -0
  259. package/components/interactive-viz-item-63pap_oz.cjs +247 -0
  260. package/components/interactive-viz-item-QVji6wbp.js +693 -0
  261. package/components/item-grid/index.cjs +1 -1
  262. package/components/item-grid/index.js +1 -1
  263. package/components/item-grid-CO_cqGqJ.js +4559 -0
  264. package/components/item-grid-CRAoMdCq.cjs +113 -0
  265. package/components/item-option/index.cjs +1 -1
  266. package/components/item-option/index.js +1 -1
  267. package/components/item-option-Bc6qXONK.js +969 -0
  268. package/components/item-option-action-button-group/index.cjs +1 -1
  269. package/components/item-option-action-button-group/index.js +1 -1
  270. package/components/item-option-action-button-group-VpgTKSIV.js +118 -0
  271. package/components/item-option-action-button-group-jPUDKP3M.cjs +53 -0
  272. package/components/item-option-base-Bk9L8Ie7.cjs +56 -0
  273. package/components/item-option-base-VV7gyznL.js +123 -0
  274. package/components/item-option-color-palette-picker/index.cjs +1 -1
  275. package/components/item-option-color-palette-picker/index.js +1 -1
  276. package/components/item-option-color-palette-picker-CQgG_NPQ.js +2041 -0
  277. package/components/item-option-color-palette-picker-kch0Ep_5.cjs +40 -0
  278. package/components/item-option-color-picker/index.cjs +1 -1
  279. package/components/item-option-color-picker/index.js +1 -1
  280. package/components/item-option-color-picker-BmQBTQzb.js +87 -0
  281. package/components/item-option-color-picker-DeDwpICb.cjs +34 -0
  282. package/components/item-option-color-range/index.cjs +1 -1
  283. package/components/item-option-color-range/index.js +1 -1
  284. package/components/item-option-color-range-Cj6sZ72F.cjs +98 -0
  285. package/components/item-option-color-range-D2kHXssY.js +220 -0
  286. package/components/item-option-iQM2pOGK.cjs +252 -0
  287. package/components/item-option-multi-language-field/index.cjs +1 -1
  288. package/components/item-option-multi-language-field/index.js +1 -1
  289. package/components/item-option-multi-language-field-Cc9ph205.cjs +33 -0
  290. package/components/item-option-multi-language-field-DbqcqhhN.js +82 -0
  291. package/components/item-option-number-field/index.cjs +1 -1
  292. package/components/item-option-number-field/index.js +1 -1
  293. package/components/item-option-number-field-B6GFKuLN.cjs +38 -0
  294. package/components/item-option-number-field-BbCVJeXZ.js +102 -0
  295. package/components/item-option-panel/index.cjs +1 -1
  296. package/components/item-option-panel/index.js +1 -1
  297. package/components/item-option-panel-6UFGCcnF.cjs +67 -0
  298. package/components/item-option-panel-CrNZ0xIF.js +183 -0
  299. package/components/item-option-picker/index.cjs +1 -1
  300. package/components/item-option-picker/index.js +1 -1
  301. package/components/item-option-picker-DJKTAG9w.cjs +37 -0
  302. package/components/item-option-picker-YquXTQNY.js +77 -0
  303. package/components/item-option-position-picker/index.cjs +1 -1
  304. package/components/item-option-position-picker/index.js +1 -1
  305. package/components/item-option-position-picker-Csc4Y6dN.cjs +32 -0
  306. package/components/item-option-position-picker-DKvsF-VQ.js +117 -0
  307. package/components/item-option-positions-number-field/index.cjs +1 -1
  308. package/components/item-option-positions-number-field/index.js +1 -1
  309. package/components/item-option-positions-number-field-Bxcbu_IR.js +164 -0
  310. package/components/item-option-positions-number-field-DBV6Yekk.cjs +49 -0
  311. package/components/item-option-radio-button-group/index.cjs +1 -1
  312. package/components/item-option-radio-button-group/index.js +1 -1
  313. package/components/item-option-radio-button-group-Bzh4RtSn.cjs +37 -0
  314. package/components/item-option-radio-button-group-Cw-xUSUS.js +74 -0
  315. package/components/item-option-slider/index.cjs +1 -1
  316. package/components/item-option-slider/index.js +1 -1
  317. package/components/item-option-slider-BwQnaxvO.js +81 -0
  318. package/components/item-option-slider-DUqo3Fw0.cjs +33 -0
  319. package/components/item-option-switch/index.cjs +1 -1
  320. package/components/item-option-switch/index.js +1 -1
  321. package/components/item-option-switch-DBsakQjy.cjs +30 -0
  322. package/components/item-option-switch-IixoilYJ.js +69 -0
  323. package/components/item-option-text-field/index.cjs +1 -1
  324. package/components/item-option-text-field/index.js +1 -1
  325. package/components/item-option-text-field-B4V_sKnM.cjs +33 -0
  326. package/components/item-option-text-field-CdWylobQ.js +80 -0
  327. package/components/item-options-configs.cjs +1 -1
  328. package/components/item-options-configs.js +45 -45
  329. package/components/item-slot-drop/index.cjs +1 -1
  330. package/components/item-slot-drop/index.js +1 -1
  331. package/components/item-slot-drop-BmvMi3dI.js +324 -0
  332. package/components/item-slot-drop-D8KI2kny.cjs +91 -0
  333. package/components/item-slot-drop-panel/index.cjs +1 -1
  334. package/components/item-slot-drop-panel/index.js +1 -1
  335. package/components/item-slot-drop-panel-Crw-ktDj.cjs +57 -0
  336. package/components/item-slot-drop-panel-D5vaJidp.js +355 -0
  337. package/components/item-slot-picker/index.cjs +1 -1
  338. package/components/item-slot-picker/index.js +1 -1
  339. package/components/item-slot-picker-BZV33YoP.js +474 -0
  340. package/components/item-slot-picker-BgQAviso.cjs +158 -0
  341. package/components/item-slot-picker-panel/index.cjs +1 -1
  342. package/components/item-slot-picker-panel/index.js +1 -1
  343. package/components/item-slot-picker-panel-C26kZ4zE.cjs +81 -0
  344. package/components/item-slot-picker-panel-DyhRlAKN.js +448 -0
  345. package/components/item-slots-configs.cjs +1 -1
  346. package/components/item-slots-configs.js +45 -45
  347. package/components/line-chart-options.config-CfHRdG6O.js +168 -0
  348. package/components/line-chart-options.config-DKQ1k4lg.cjs +20 -0
  349. package/components/line-chart-positioning.config-Cfcgse1N.js +55 -0
  350. package/components/line-chart-positioning.config-pSGQm1C1.cjs +20 -0
  351. package/components/line-chart-slots.config-Cjp4btvG.cjs +20 -0
  352. package/components/line-chart-slots.config-DKy4D4Yt.js +55 -0
  353. package/components/load-data-fields-for-datasets-BVGaku2J.cjs +20 -0
  354. package/components/load-data-fields-for-datasets-DeXLqWt4.js +42 -0
  355. package/components/localized-mixin-BYWQe1fg.js +45 -0
  356. package/components/localized-mixin-DrK3QZNa.cjs +20 -0
  357. package/components/marker-map-options.config-C_aGdRQQ.js +117 -0
  358. package/components/marker-map-options.config-DBPPcGN4.cjs +20 -0
  359. package/components/marker-map-positioning.config-B-HitobG.cjs +20 -0
  360. package/components/marker-map-positioning.config-DTCPGbnG.js +48 -0
  361. package/components/marker-map-slots.config-BKRRAGwB.js +37 -0
  362. package/components/marker-map-slots.config-BOQ8AwRv.cjs +20 -0
  363. package/components/nl-C_g1Le3t.js +473 -0
  364. package/components/nl-PxN5EqzT.cjs +20 -0
  365. package/components/ohlc-chart-options.config-Bd-vLN0I.js +65 -0
  366. package/components/ohlc-chart-options.config-D9h-VLdq.cjs +20 -0
  367. package/components/ohlc-chart-positioning.config-D0kJJkXw.js +78 -0
  368. package/components/ohlc-chart-positioning.config-NhpIR1T3.cjs +20 -0
  369. package/components/ohlc-chart-slots.config-CUBUexI-.cjs +20 -0
  370. package/components/ohlc-chart-slots.config-DC8NCD0o.js +68 -0
  371. package/components/parallel-coordinates-plot-options.config-BUo6XxfP.js +42 -0
  372. package/components/parallel-coordinates-plot-options.config-ovgY0A7j.cjs +20 -0
  373. package/components/parallel-coordinates-plot-positioning.config-DLF0U4lZ.cjs +20 -0
  374. package/components/parallel-coordinates-plot-positioning.config-Dzd0eaka.js +48 -0
  375. package/components/parallel-coordinates-plot-slots.config-BXZ-NmbH.cjs +20 -0
  376. package/components/parallel-coordinates-plot-slots.config-Dy-9mztD.js +46 -0
  377. package/components/pivot-table-options.config-BxKo1DCU.cjs +20 -0
  378. package/components/pivot-table-options.config-DrzB4qVX.js +245 -0
  379. package/components/pivot-table-positioning.config-BvUjUkG3.cjs +20 -0
  380. package/components/pivot-table-positioning.config-PKXfqjiN.js +55 -0
  381. package/components/pivot-table-slots.config-OQe8tS40.js +55 -0
  382. package/components/pivot-table-slots.config-VxbOGtmB.cjs +20 -0
  383. package/components/pragmatic-element-adapter-BFUFSRw6.js +1252 -0
  384. package/components/pragmatic-element-adapter-CKhTZWGj.cjs +24 -0
  385. package/components/pyramid-chart-options.config-Dux8839h.js +240 -0
  386. package/components/pyramid-chart-options.config-lioHQSoq.cjs +20 -0
  387. package/components/pyramid-chart-positioning.config-48iZhPdi.cjs +20 -0
  388. package/components/pyramid-chart-positioning.config-C8yiD0R3.js +55 -0
  389. package/components/pyramid-chart-slots.config-CN_Q2YsP.cjs +20 -0
  390. package/components/pyramid-chart-slots.config-DwlZaBAF.js +50 -0
  391. package/components/radar-chart-options.config-ColtKo6Z.js +130 -0
  392. package/components/radar-chart-options.config-DhnoFEzo.cjs +20 -0
  393. package/components/radar-chart-positioning.config-CpqhJjoz.cjs +20 -0
  394. package/components/radar-chart-positioning.config-L5Eu5W1I.js +55 -0
  395. package/components/radar-chart-slots.config-BISYnTom.cjs +20 -0
  396. package/components/radar-chart-slots.config-BuHg4Zeg.js +53 -0
  397. package/components/regular-table-options.config-Bk6CBPgj.cjs +20 -0
  398. package/components/regular-table-options.config-DopdB4eB.js +148 -0
  399. package/components/regular-table-slots.config--SVEN5Cu.js +35 -0
  400. package/components/regular-table-slots.config-BU6Ff96U.cjs +20 -0
  401. package/components/route-map-options.config-BCuJw5k3.js +326 -0
  402. package/components/route-map-options.config-CAi93e7I.cjs +20 -0
  403. package/components/route-map-positioning.config-DTwMkeiu.cjs +20 -0
  404. package/components/route-map-positioning.config-DVb_Jiws.js +66 -0
  405. package/components/route-map-slots.config-CmVIxDkx.js +59 -0
  406. package/components/route-map-slots.config-Dznp0DT3.cjs +20 -0
  407. package/components/sankey-diagram-options.config-BH3kpjFs.js +126 -0
  408. package/components/sankey-diagram-options.config-D7ZrZV0g.cjs +20 -0
  409. package/components/sankey-diagram-positioning.config-Dk0siSAo.js +66 -0
  410. package/components/sankey-diagram-positioning.config-_kyrBnJ4.cjs +20 -0
  411. package/components/sankey-diagram-slots.config-TKCUvHOD.cjs +20 -0
  412. package/components/sankey-diagram-slots.config-lbkF8DWJ.js +61 -0
  413. package/components/scatter-plot-options.config-DXqKb34r.cjs +20 -0
  414. package/components/scatter-plot-options.config-Dn6ILlJw.js +302 -0
  415. package/components/scatter-plot-positioning.config-440yA7x5.js +77 -0
  416. package/components/scatter-plot-positioning.config-DaYstFV8.cjs +20 -0
  417. package/components/scatter-plot-slots.config-CPsk9FUg.cjs +20 -0
  418. package/components/scatter-plot-slots.config-DEFWWj0_.js +74 -0
  419. package/components/search-filter-options.config-DWKVxBc5.js +103 -0
  420. package/components/search-filter-options.config-DojMfRR_.cjs +20 -0
  421. package/components/search-filter-slots.config-AhwsTdYC.cjs +20 -0
  422. package/components/search-filter-slots.config-vyPYIXE7.js +39 -0
  423. package/components/set-locale-DB1FMgtK.js +43 -0
  424. package/components/set-locale-DKCZkJVL.cjs +20 -0
  425. package/components/slicer-filter-options.config-BhLn4U1W.cjs +20 -0
  426. package/components/slicer-filter-options.config-C6HPrjIw.js +226 -0
  427. package/components/slicer-filter-positioning.config-B6wPo539.js +48 -0
  428. package/components/slicer-filter-positioning.config-DdfTuXdV.cjs +20 -0
  429. package/components/slicer-filter-slots.config-BZWCSkX4.js +44 -0
  430. package/components/slicer-filter-slots.config-zV15NWWS.cjs +20 -0
  431. package/components/slider-filter-options.config-B8am9mmE.cjs +20 -0
  432. package/components/slider-filter-options.config-CvqHWJIX.js +72 -0
  433. package/components/slider-filter-slots.config-BY9X2rlz.js +43 -0
  434. package/components/slider-filter-slots.config-D9Hra0zE.cjs +20 -0
  435. package/components/slot-menu/index.cjs +1 -1
  436. package/components/slot-menu/index.js +1 -1
  437. package/components/slot-menu-BBnibMJU.cjs +64 -0
  438. package/components/slot-menu-list/index.cjs +1 -1
  439. package/components/slot-menu-list/index.js +1 -1
  440. package/components/slot-menu-list-D193fsQX.cjs +38 -0
  441. package/components/slot-menu-list-gKDiWsHB.js +325 -0
  442. package/components/slot-menu-w7sla2N0.js +400 -0
  443. package/components/slots-config-DIBoffEb.js +77 -0
  444. package/components/slots-config-YdyClHLc.cjs +20 -0
  445. package/components/speedometer-chart-options.config-DEW_D9w1.cjs +20 -0
  446. package/components/speedometer-chart-options.config-wX3KzciD.js +246 -0
  447. package/components/speedometer-chart-positioning.config-BVYrl1_s.cjs +20 -0
  448. package/components/speedometer-chart-positioning.config-rI2Jxymu.js +48 -0
  449. package/components/speedometer-chart-slots.config-0Tv8EtKT.js +39 -0
  450. package/components/speedometer-chart-slots.config-1BqQZ2vP.cjs +20 -0
  451. package/components/spike-map-options.config-DpgsB_L-.js +413 -0
  452. package/components/spike-map-options.config-LPAyKMHe.cjs +20 -0
  453. package/components/spike-map-positioning.config-2XZLrk9D.cjs +20 -0
  454. package/components/spike-map-positioning.config-CiY2ju4c.js +55 -0
  455. package/components/spike-map-slots.config-B7OehIoc.cjs +20 -0
  456. package/components/spike-map-slots.config-C6e0NXiD.js +47 -0
  457. package/components/strip-plot-options.config-BzhxzU-s.js +53 -0
  458. package/components/strip-plot-options.config-vBd38UQs.cjs +20 -0
  459. package/components/strip-plot-positioning.config-CFQPdgei.js +48 -0
  460. package/components/strip-plot-positioning.config-CkC8JUwR.cjs +20 -0
  461. package/components/strip-plot-slots.config-BjwAuVoh.js +38 -0
  462. package/components/strip-plot-slots.config-CAU0z3q4.cjs +20 -0
  463. package/components/sunburst-chart-options.config-Ba_H54ip.js +160 -0
  464. package/components/sunburst-chart-options.config-CUFOuT2J.cjs +20 -0
  465. package/components/sunburst-chart-positioning.config-BHJf7n-T.js +48 -0
  466. package/components/sunburst-chart-positioning.config-DVt84HYB.cjs +20 -0
  467. package/components/sunburst-chart-slots.config-BCNUNkd9.cjs +20 -0
  468. package/components/sunburst-chart-slots.config-h114Cuzh.js +38 -0
  469. package/components/symbol-map-options.config-CR07hvK0.cjs +20 -0
  470. package/components/symbol-map-options.config-DeJyZILi.js +157 -0
  471. package/components/symbol-map-positioning.config-DQK1q4GP.cjs +20 -0
  472. package/components/symbol-map-positioning.config-tZp8vwwl.js +55 -0
  473. package/components/symbol-map-slots.config-BmvI5_VE.js +53 -0
  474. package/components/symbol-map-slots.config-Dz_tor5P.cjs +20 -0
  475. package/components/text-options.config-BXuZMKTG.js +67 -0
  476. package/components/text-options.config-JI2D64hs.cjs +20 -0
  477. package/components/text-slots.config-0A6csMfd.cjs +20 -0
  478. package/components/text-slots.config-18Chz73A.js +24 -0
  479. package/components/treemap-chart-options.config-Be-LBEGy.js +184 -0
  480. package/components/treemap-chart-options.config-p21eSXKG.cjs +20 -0
  481. package/components/treemap-chart-positioning.config-CEYAh7Uc.js +55 -0
  482. package/components/treemap-chart-positioning.config-DQfHJ-ZS.cjs +20 -0
  483. package/components/treemap-chart-slots.config-BJqqnUEF.cjs +20 -0
  484. package/components/treemap-chart-slots.config-e7ORieH-.js +47 -0
  485. package/components/utils/base.cjs +1 -1
  486. package/components/utils/base.js +2 -2
  487. package/components/utils/store.cjs +1 -1
  488. package/components/utils/store.js +2 -2
  489. package/components/utils-CJf8VNzX.cjs +20 -0
  490. package/components/utils-Ci1YA9yB.js +352 -0
  491. package/components/utils.cjs +1 -1
  492. package/components/utils.js +9 -9
  493. package/components/v4-BK7K-jy_.js +49 -0
  494. package/components/validate-CJkVJaL1.cjs +20 -0
  495. package/components/validate-J3P0rm_n.js +28 -0
  496. package/components/venn-diagram-options.config-D3bEFsYa.js +24 -0
  497. package/components/venn-diagram-options.config-EmRhf40r.cjs +20 -0
  498. package/components/venn-diagram-positioning.config-2rUFGTJh.js +55 -0
  499. package/components/venn-diagram-positioning.config-DQa6-GAn.cjs +20 -0
  500. package/components/venn-diagram-slots.config-Dm-IC6JS.js +47 -0
  501. package/components/venn-diagram-slots.config-MpkJTf5q.cjs +20 -0
  502. package/components/video-options.config-B5aOwGa4.js +127 -0
  503. package/components/video-options.config-Dh_lU4c1.cjs +20 -0
  504. package/components/video-slots.config-Bmh6mcUv.cjs +20 -0
  505. package/components/video-slots.config-D2MtpAGI.js +24 -0
  506. package/components/viz-item-menu/index.cjs +1 -1
  507. package/components/viz-item-menu/index.js +1 -1
  508. package/components/viz-item-menu-B4BJBNEq.js +170 -0
  509. package/components/viz-item-menu-DD8ndROu.cjs +55 -0
  510. package/components/wordcloud-chart-options.config-DntH4Hvg.js +90 -0
  511. package/components/wordcloud-chart-options.config-mx2CbmrI.cjs +20 -0
  512. package/components/wordcloud-chart-positioning.config-C3Zulr2Q.js +55 -0
  513. package/components/wordcloud-chart-positioning.config-DhoAsQP-.cjs +20 -0
  514. package/components/wordcloud-chart-slots.config-C303nwAz.cjs +20 -0
  515. package/components/wordcloud-chart-slots.config-CsFBBXDz.js +45 -0
  516. package/custom-elements.json +487 -0
  517. package/index.d.ts +1 -0
  518. package/package.json +7 -2
  519. package/react/README.md +1 -0
  520. package/react/components/interactive-viz-item/index.ts +1 -0
  521. package/react/components/interactive-viz-item/types.ts +122 -0
  522. package/react/components/interactive-viz-item.component.ts +33 -0
  523. package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
  524. package/react/esm/components/interactive-viz-item/index.js +1 -0
  525. package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
  526. package/react/esm/components/interactive-viz-item/types.js +16 -0
  527. package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
  528. package/react/esm/components/interactive-viz-item.component.js +21 -0
  529. package/react/esm/index.d.ts +3 -2
  530. package/react/esm/index.js +4 -0
  531. package/react/index.ts +4 -0
  532. package/react/luzmo-stub.d.ts +8 -0
  533. package/react/utils/store/index.d.ts +5 -5
  534. package/react/utils/store/store-registry.d.ts +1 -1
  535. package/utils/store/index.d.ts +5 -5
  536. package/utils/store/store-registry.d.ts +1 -1
  537. package/components/ai-chat-BMDfKnEj.cjs +0 -258
  538. package/components/ai-chat-Cd26aDpX.js +0 -3718
  539. package/components/ai-interaction-textarea-CPfJqTB0.cjs +0 -68
  540. package/components/ai-interaction-textarea-DkBglh6Q.js +0 -299
  541. package/components/area-chart-options.config-4OY_kXkB.js +0 -146
  542. package/components/area-chart-options.config-Cf1VrUNv.cjs +0 -20
  543. package/components/area-chart-positioning.config-CAPrtEZW.js +0 -55
  544. package/components/area-chart-positioning.config-CfC43YUW.cjs +0 -20
  545. package/components/area-chart-slots.config--pd_dBTn.js +0 -55
  546. package/components/area-chart-slots.config-BOhwdLnr.cjs +0 -20
  547. package/components/bar-chart-options.config-BF7Q15FL.cjs +0 -20
  548. package/components/bar-chart-options.config-C3puwFpi.js +0 -220
  549. package/components/bar-chart-positioning.config-C1MLYyl9.js +0 -59
  550. package/components/bar-chart-positioning.config-vJOALpQP.cjs +0 -20
  551. package/components/bar-chart-slots.config-DMWjAd5a.cjs +0 -20
  552. package/components/bar-chart-slots.config-Dr7v4xxd.js +0 -50
  553. package/components/base-B_wdCOxV.js +0 -249
  554. package/components/base-kQ6cjcIZ.cjs +0 -20
  555. package/components/base-store-DHC2m2Os.cjs +0 -20
  556. package/components/base-store-DmDe0dTU.js +0 -160
  557. package/components/box-plot-options.config-B486nCds.js +0 -296
  558. package/components/box-plot-options.config-BkD5CYGz.cjs +0 -20
  559. package/components/box-plot-positioning.config-CA27sCpO.js +0 -48
  560. package/components/box-plot-positioning.config-DVNeh9kg.cjs +0 -20
  561. package/components/box-plot-slots.config-5B_pTjPJ.cjs +0 -20
  562. package/components/box-plot-slots.config-Bdb7pkky.js +0 -40
  563. package/components/bubble-chart-options.config-4f9FUNhc.cjs +0 -20
  564. package/components/bubble-chart-options.config-BymUqNR5.js +0 -115
  565. package/components/bubble-chart-positioning.config-Dg92VJnB.cjs +0 -20
  566. package/components/bubble-chart-positioning.config-OlbBZU4m.js +0 -55
  567. package/components/bubble-chart-slots.config-B4tsJDuz.js +0 -47
  568. package/components/bubble-chart-slots.config-VHKuntJk.cjs +0 -20
  569. package/components/bullet-chart-options.config-BtyRdRk2.js +0 -75
  570. package/components/bullet-chart-options.config-DDygYBiy.cjs +0 -20
  571. package/components/bullet-chart-positioning.config-BwqxpSSL.cjs +0 -20
  572. package/components/bullet-chart-positioning.config-Y18yvzoc.js +0 -56
  573. package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +0 -20
  574. package/components/bullet-chart-slots.config-ccCSNJ5q.js +0 -46
  575. package/components/choropleth-map-options.config-5W6nNlL7.cjs +0 -20
  576. package/components/choropleth-map-options.config-CqCciAvW.js +0 -348
  577. package/components/choropleth-map-positioning.config-Dmzy3fMc.js +0 -55
  578. package/components/choropleth-map-positioning.config-y-bYMoxr.cjs +0 -20
  579. package/components/choropleth-map-slots.config-CZKWF1qV.cjs +0 -20
  580. package/components/choropleth-map-slots.config-X2YYrSXc.js +0 -53
  581. package/components/circle-pack-chart-options.config-CD8MWMTw.cjs +0 -20
  582. package/components/circle-pack-chart-options.config-D9C-ltHA.js +0 -54
  583. package/components/circle-pack-chart-positioning.config-YDdY2cc2.js +0 -48
  584. package/components/circle-pack-chart-positioning.config-wKIQDFe8.cjs +0 -20
  585. package/components/circle-pack-chart-slots.config-BIO1dZsK.js +0 -38
  586. package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +0 -20
  587. package/components/circular-gauge-options.config-D9gcbX57.cjs +0 -20
  588. package/components/circular-gauge-options.config-De6SlTLT.js +0 -188
  589. package/components/circular-gauge-positioning.config-C41euPS9.js +0 -48
  590. package/components/circular-gauge-positioning.config-CKNanoFX.cjs +0 -20
  591. package/components/circular-gauge-slots.config-DUHabt3G.cjs +0 -20
  592. package/components/circular-gauge-slots.config-Dv_7fAD_.js +0 -39
  593. package/components/color-BWnYpOu7.js +0 -3812
  594. package/components/color-range-utils-CwwtLDX_.js +0 -63
  595. package/components/column-chart-options.config-5Dbg3FmH.js +0 -219
  596. package/components/column-chart-options.config-CiIw23Yo.cjs +0 -20
  597. package/components/column-chart-positioning.config-BdyuErF8.js +0 -55
  598. package/components/column-chart-positioning.config-Enx15Dqh.cjs +0 -20
  599. package/components/column-chart-slots.config-CM5aytbj.cjs +0 -20
  600. package/components/column-chart-slots.config-eHvTwZLX.js +0 -50
  601. package/components/combination-chart-options.config-BzmLGCal.js +0 -87
  602. package/components/combination-chart-options.config-DaTYSfnr.cjs +0 -20
  603. package/components/combination-chart-positioning.config-BQRn0EfF.js +0 -48
  604. package/components/combination-chart-positioning.config-CqlKA__j.cjs +0 -20
  605. package/components/combination-chart-slots.config-BwUOXFCR.cjs +0 -20
  606. package/components/combination-chart-slots.config-CG40JjE3.js +0 -43
  607. package/components/conditional-number-options.config-BPzCxo2q.cjs +0 -20
  608. package/components/conditional-number-options.config-CVgV7s7f.js +0 -205
  609. package/components/conditional-number-positioning.config-BBivi4ps.js +0 -48
  610. package/components/conditional-number-positioning.config-CR45rPru.cjs +0 -20
  611. package/components/conditional-number-slots.config-B7maHIaG.cjs +0 -20
  612. package/components/conditional-number-slots.config-o22l-qLv.js +0 -39
  613. package/components/data-broker-Bdv5V8Yp.js +0 -1680
  614. package/components/data-broker-DWEXs6-2.cjs +0 -20
  615. package/components/data-field-CAGprHjS.cjs +0 -54
  616. package/components/data-field-CLfUWgK9.js +0 -121
  617. package/components/data-field-level-7qi9K__S.cjs +0 -55
  618. package/components/data-field-level-CfJ0dmxo.js +0 -247
  619. package/components/data-field-panel-DUc8y4WA.cjs +0 -87
  620. package/components/data-field-panel-N7mukLj6.js +0 -385
  621. package/components/data-fields-select-B1pwPYt6.js +0 -262
  622. package/components/data-fields-select-qCWuzckJ.cjs +0 -41
  623. package/components/dataset-icon-CWT5Ju8w.js +0 -125
  624. package/components/dataset-selector-list-BPBZ04Lf.cjs +0 -75
  625. package/components/dataset-selector-list-DmajZuNC.js +0 -313
  626. package/components/dataset-selector-row-SJzYIpO6.js +0 -273
  627. package/components/dataset-selector-row-qxfmcxpm.cjs +0 -79
  628. package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +0 -20
  629. package/components/date-comparison-filter-options.config-BJg_WqL4.js +0 -126
  630. package/components/date-comparison-filter-slots.config-BIK5aZ6P.js +0 -33
  631. package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +0 -20
  632. package/components/date-filter-options.config-AFAngO_i.cjs +0 -20
  633. package/components/date-filter-options.config-N6eGgPGL.js +0 -118
  634. package/components/date-filter-slots.config-CJJ4P0v6.js +0 -37
  635. package/components/date-filter-slots.config-Cuzz0RjE.cjs +0 -20
  636. package/components/de-BHQ-FfU0.js +0 -465
  637. package/components/de-DnADyZVQ.cjs +0 -20
  638. package/components/decorate-DyMgX_Uh.js +0 -28
  639. package/components/default-acceptable-data-field-types-DFOFWWnT.js +0 -53
  640. package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
  641. package/components/display-settings-CkkjJjem.js +0 -272
  642. package/components/display-settings-DnzOjr-1.cjs +0 -120
  643. package/components/display-settings-binning-BohjN2qK.js +0 -110
  644. package/components/display-settings-binning-C7-gByrp.cjs +0 -56
  645. package/components/display-settings-datetime-7pUcku_h.js +0 -413
  646. package/components/display-settings-datetime-DL0Qcz8Y.cjs +0 -217
  647. package/components/display-settings-grand-totals-CV5guBhH.js +0 -89
  648. package/components/display-settings-grand-totals-DHQSZqMI.cjs +0 -44
  649. package/components/display-settings-numeric--5zk8_7K.cjs +0 -190
  650. package/components/display-settings-numeric-D2LjMepO.js +0 -479
  651. package/components/display-settings-period-over-period-BE22oHvV.cjs +0 -229
  652. package/components/display-settings-period-over-period-sqZU6Zj_.js +0 -433
  653. package/components/donut-chart-options.config-C66yOoed.js +0 -207
  654. package/components/donut-chart-options.config-D8Bvo6Cc.cjs +0 -20
  655. package/components/donut-chart-positioning.config-B9sm4yFV.cjs +0 -20
  656. package/components/donut-chart-positioning.config-DtaPAgXE.js +0 -48
  657. package/components/donut-chart-slots.config-2XbT9Uu8.js +0 -39
  658. package/components/donut-chart-slots.config-Bi08z-XB.cjs +0 -20
  659. package/components/dropdown-filter-options.config-BRzYD0KE.cjs +0 -20
  660. package/components/dropdown-filter-options.config-Cm_wK0mn.js +0 -153
  661. package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +0 -20
  662. package/components/dropdown-filter-slots.config-CnESCGuw.js +0 -38
  663. package/components/en-GB-uxY5qmIM.cjs +0 -20
  664. package/components/en-US-q_Ruzags.cjs +0 -20
  665. package/components/en-q_Ruzags.cjs +0 -20
  666. package/components/es-B4xWcOeJ.cjs +0 -20
  667. package/components/es-CkCov6l7.js +0 -465
  668. package/components/evolution-number-options.config-07Jd0oUL.js +0 -228
  669. package/components/evolution-number-options.config-CkqNYgWn.cjs +0 -20
  670. package/components/evolution-number-positioning.config-DVXhBZYj.cjs +0 -20
  671. package/components/evolution-number-positioning.config-v8_6kB1H.js +0 -48
  672. package/components/evolution-number-slots.config-BKdD3cKw.js +0 -37
  673. package/components/evolution-number-slots.config-CikuQYgm.cjs +0 -20
  674. package/components/filter-expression-picker-CF4Otpll.cjs +0 -38
  675. package/components/filter-expression-picker-DCrCAIhg.js +0 -425
  676. package/components/filter-item-BjRerEjB.cjs +0 -58
  677. package/components/filter-item-D2Dct0a3.js +0 -242
  678. package/components/filter-value-picker-CCKV4PWs.js +0 -151
  679. package/components/filter-value-picker-datetime-CFCV2jkK.js +0 -139
  680. package/components/filter-value-picker-datetime-D20WnWar.cjs +0 -42
  681. package/components/filter-value-picker-enC3f3ja.cjs +0 -60
  682. package/components/filter-value-picker-hierarchy-Drrm1ncu.cjs +0 -47
  683. package/components/filter-value-picker-hierarchy-ktVBIpcS.js +0 -232
  684. package/components/filter-value-picker-numeric-BYspQRSi.js +0 -219
  685. package/components/filter-value-picker-numeric-BtZaQvkr.cjs +0 -48
  686. package/components/filters-CfH_4MKZ.cjs +0 -150
  687. package/components/filters-Ew0ARuxD.js +0 -400
  688. package/components/formatter-BeXmurVe.cjs +0 -20
  689. package/components/formula-BPHH_GKB.cjs +0 -45
  690. package/components/formula-DYdcMG-v.js +0 -138
  691. package/components/formula-codemirror-CFgPlkN8.cjs +0 -215
  692. package/components/formula-codemirror-CQonNhmd.js +0 -12018
  693. package/components/formula-display-store-BGzj13Cs.js +0 -1086
  694. package/components/formula-display-store-DFAvw21p.cjs +0 -20
  695. package/components/formula-editor-CtCvJkyS.cjs +0 -218
  696. package/components/formula-editor-KXxQlh2n.js +0 -666
  697. package/components/formula-field-OcD4TWAn.js +0 -40
  698. package/components/formula-field-aiqX7nRp.cjs +0 -20
  699. package/components/formula-input-base-CGe2ABn6.cjs +0 -49
  700. package/components/formula-input-base-CQPGmISj.js +0 -236
  701. package/components/fr-BOivrXqX.cjs +0 -20
  702. package/components/fr-BSFpJ50_.js +0 -465
  703. package/components/funnel-chart-options.config-BVmrhzna.cjs +0 -20
  704. package/components/funnel-chart-options.config-PV1Hlu91.js +0 -187
  705. package/components/funnel-chart-positioning.config-BT-YoTgv.js +0 -48
  706. package/components/funnel-chart-positioning.config-C5Z3JkuS.cjs +0 -20
  707. package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +0 -20
  708. package/components/funnel-chart-slots.config-_9HUPvTb.js +0 -43
  709. package/components/get-css-variable-CBXsAxR6.cjs +0 -20
  710. package/components/get-css-variable-DYnldi15.js +0 -63
  711. package/components/get-dataset-name-BGCvfcdY.js +0 -27
  712. package/components/get-dataset-name-EkeeFzI3.cjs +0 -20
  713. package/components/groupings-CrE-yp0S.js +0 -52
  714. package/components/groupings-dIFi0bJY.cjs +0 -20
  715. package/components/heat-map-options.config-CQY6t9AL.js +0 -224
  716. package/components/heat-map-options.config-xPdOcXDk.cjs +0 -20
  717. package/components/heat-map-positioning.config-BpFis567.js +0 -48
  718. package/components/heat-map-positioning.config-HPftgmdz.cjs +0 -20
  719. package/components/heat-map-slots.config-B4AswVSo.js +0 -37
  720. package/components/heat-map-slots.config-Wp_oS8JQ.cjs +0 -20
  721. package/components/heat-table-options.config-DPbTFoRn.cjs +0 -20
  722. package/components/heat-table-options.config-IlVPk4Q4.js +0 -372
  723. package/components/heat-table-positioning.config-Canc3aEE.js +0 -55
  724. package/components/heat-table-positioning.config-wkrm8Fbk.cjs +0 -20
  725. package/components/heat-table-slots.config-BN7rtHZG.cjs +0 -20
  726. package/components/heat-table-slots.config-CB509zU4.js +0 -49
  727. package/components/hexbin-map-options.config-CSFSqpMU.cjs +0 -20
  728. package/components/hexbin-map-options.config-vzw6ovva.js +0 -276
  729. package/components/hexbin-map-positioning.config-CBv6Lij5.js +0 -48
  730. package/components/hexbin-map-positioning.config-D0hAchxV.cjs +0 -20
  731. package/components/hexbin-map-slots.config-Dyse0pui.js +0 -37
  732. package/components/hexbin-map-slots.config-mx5zUTrA.cjs +0 -20
  733. package/components/image-options.config-Cmrsd8Yu.js +0 -153
  734. package/components/image-options.config-DZ5q1D63.cjs +0 -20
  735. package/components/image-slots.config-CVj-DM07.js +0 -24
  736. package/components/image-slots.config-ODQBVz5H.cjs +0 -20
  737. package/components/item-grid-BXZXJV3g.cjs +0 -339
  738. package/components/item-grid-uWM-Unjx.js +0 -8814
  739. package/components/item-option-CEwjJc1p.cjs +0 -252
  740. package/components/item-option-action-button-group-BOxQFfBF.js +0 -118
  741. package/components/item-option-action-button-group-DXCVJqpt.cjs +0 -53
  742. package/components/item-option-base-DKieCS-Y.cjs +0 -56
  743. package/components/item-option-base-Dr5-WxZ9.js +0 -123
  744. package/components/item-option-color-palette-picker-7vSSpj5o.cjs +0 -40
  745. package/components/item-option-color-palette-picker-D_mABGWh.js +0 -2041
  746. package/components/item-option-color-picker-COLBYeRy.js +0 -87
  747. package/components/item-option-color-picker-DMyNeD2e.cjs +0 -34
  748. package/components/item-option-color-range-BFr0B6Vf.cjs +0 -98
  749. package/components/item-option-color-range-CueVlyT2.js +0 -220
  750. package/components/item-option-multi-language-field-CMuQwrwQ.js +0 -82
  751. package/components/item-option-multi-language-field-q7txF5xA.cjs +0 -33
  752. package/components/item-option-number-field-BODNSx66.js +0 -102
  753. package/components/item-option-number-field-DWeJWUxY.cjs +0 -38
  754. package/components/item-option-panel-CxOfVI0z.js +0 -183
  755. package/components/item-option-panel-D0dxyUfE.cjs +0 -67
  756. package/components/item-option-picker-BsP_0XyD.cjs +0 -37
  757. package/components/item-option-picker-CyX7qqrb.js +0 -77
  758. package/components/item-option-position-picker-CcmBYyqF.cjs +0 -32
  759. package/components/item-option-position-picker-LOg6P4Gl.js +0 -117
  760. package/components/item-option-positions-number-field-BCbWb1R6.js +0 -164
  761. package/components/item-option-positions-number-field-o3Qckgwd.cjs +0 -49
  762. package/components/item-option-radio-button-group-CDebmEn3.js +0 -74
  763. package/components/item-option-radio-button-group-CjLhWTEJ.cjs +0 -37
  764. package/components/item-option-slider-C9ZJZcdg.js +0 -81
  765. package/components/item-option-slider-CHbkJHLK.cjs +0 -33
  766. package/components/item-option-switch-BVMOOWya.js +0 -69
  767. package/components/item-option-switch-FRAZWozp.cjs +0 -30
  768. package/components/item-option-text-field-DkYqHfdJ.cjs +0 -33
  769. package/components/item-option-text-field-e6NLDlSq.js +0 -80
  770. package/components/item-option-uyAsPcfE.js +0 -919
  771. package/components/item-slot-drop-BUCjEfJf.cjs +0 -91
  772. package/components/item-slot-drop-CoReI68M.js +0 -324
  773. package/components/item-slot-drop-panel-CEI1q060.js +0 -355
  774. package/components/item-slot-drop-panel-DqekQtOr.cjs +0 -57
  775. package/components/item-slot-picker-CvbXFh6Z.cjs +0 -158
  776. package/components/item-slot-picker-dy5hVID5.js +0 -474
  777. package/components/item-slot-picker-panel-BUyp6Hbg.cjs +0 -81
  778. package/components/item-slot-picker-panel-CG0NyMDX.js +0 -448
  779. package/components/line-chart-options.config-1TpSJqeb.js +0 -168
  780. package/components/line-chart-options.config-BkK829A2.cjs +0 -20
  781. package/components/line-chart-positioning.config-61uNfPZs.js +0 -55
  782. package/components/line-chart-positioning.config-BNtGFWUK.cjs +0 -20
  783. package/components/line-chart-slots.config-CcCpwWzZ.js +0 -55
  784. package/components/line-chart-slots.config-vv66fcoE.cjs +0 -20
  785. package/components/load-data-fields-for-datasets-BNnr8x3m.js +0 -42
  786. package/components/load-data-fields-for-datasets-CW4Voiex.cjs +0 -20
  787. package/components/localized-mixin-CiBWThrZ.cjs +0 -20
  788. package/components/localized-mixin-EpweDrTk.js +0 -45
  789. package/components/marker-map-options.config-BfPFVxpD.cjs +0 -20
  790. package/components/marker-map-options.config-DTaax79J.js +0 -117
  791. package/components/marker-map-positioning.config-Bi5WCVgJ.js +0 -48
  792. package/components/marker-map-positioning.config-C2cL7uZJ.cjs +0 -20
  793. package/components/marker-map-slots.config-BOWmS_IZ.js +0 -37
  794. package/components/marker-map-slots.config-DigZk7lN.cjs +0 -20
  795. package/components/nl-DS4Y_g8B.cjs +0 -20
  796. package/components/nl-D_MleIlk.js +0 -465
  797. package/components/ohlc-chart-options.config-BsBVP-Io.cjs +0 -20
  798. package/components/ohlc-chart-options.config-Dfes8ROC.js +0 -65
  799. package/components/ohlc-chart-positioning.config-DFx99k9A.js +0 -78
  800. package/components/ohlc-chart-positioning.config-IAOfu4ue.cjs +0 -20
  801. package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +0 -20
  802. package/components/ohlc-chart-slots.config-JRztPEXL.js +0 -68
  803. package/components/parallel-coordinates-plot-options.config--6iJkURT.cjs +0 -20
  804. package/components/parallel-coordinates-plot-options.config-NSk_HC0H.js +0 -42
  805. package/components/parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs +0 -20
  806. package/components/parallel-coordinates-plot-positioning.config-C9TqUuGC.js +0 -48
  807. package/components/parallel-coordinates-plot-slots.config-pmbO5DnL.js +0 -46
  808. package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +0 -20
  809. package/components/pivot-table-options.config-B3wYlzEq.js +0 -245
  810. package/components/pivot-table-options.config-CKGnnXa_.cjs +0 -20
  811. package/components/pivot-table-positioning.config-CPXqqtcR.js +0 -55
  812. package/components/pivot-table-positioning.config-D1R3VO88.cjs +0 -20
  813. package/components/pivot-table-slots.config-DaLfGOP9.js +0 -55
  814. package/components/pivot-table-slots.config-KlYXL90k.cjs +0 -20
  815. package/components/pragmatic-element-adapter-D0LRKx5U.js +0 -1253
  816. package/components/pragmatic-element-adapter-DdyH32ix.cjs +0 -24
  817. package/components/pyramid-chart-options.config-8QtjhcJC.cjs +0 -20
  818. package/components/pyramid-chart-options.config-DIyiyqGM.js +0 -240
  819. package/components/pyramid-chart-positioning.config-BfXdJS8g.cjs +0 -20
  820. package/components/pyramid-chart-positioning.config-JAUQpA0B.js +0 -55
  821. package/components/pyramid-chart-slots.config-CreUpxI2.cjs +0 -20
  822. package/components/pyramid-chart-slots.config-DtnUlw5y.js +0 -50
  823. package/components/radar-chart-options.config-DvW36_zk.cjs +0 -20
  824. package/components/radar-chart-options.config-UVOzUnVT.js +0 -130
  825. package/components/radar-chart-positioning.config-Bixdrod2.cjs +0 -20
  826. package/components/radar-chart-positioning.config-CdJSazt4.js +0 -55
  827. package/components/radar-chart-slots.config-B3oIp-8w.cjs +0 -20
  828. package/components/radar-chart-slots.config-CkLoeAV7.js +0 -53
  829. package/components/regular-table-options.config-B0WNqEjR.cjs +0 -20
  830. package/components/regular-table-options.config-CBvnxTdd.js +0 -148
  831. package/components/regular-table-slots.config-Cc6hL7iu.js +0 -35
  832. package/components/regular-table-slots.config-UwzWj6gg.cjs +0 -20
  833. package/components/route-map-options.config-CYNKz_Xm.cjs +0 -20
  834. package/components/route-map-options.config-DZrlGa5o.js +0 -326
  835. package/components/route-map-positioning.config-7aca5Iex.cjs +0 -20
  836. package/components/route-map-positioning.config-Bk_BndTS.js +0 -66
  837. package/components/route-map-slots.config-CQxB8gKC.js +0 -59
  838. package/components/route-map-slots.config-DfYT65BF.cjs +0 -20
  839. package/components/sankey-diagram-options.config-D49IZ1y3.cjs +0 -20
  840. package/components/sankey-diagram-options.config-s_QRVr1r.js +0 -126
  841. package/components/sankey-diagram-positioning.config-Bvus3RDi.cjs +0 -20
  842. package/components/sankey-diagram-positioning.config-DPgQELIu.js +0 -66
  843. package/components/sankey-diagram-slots.config-C9tIfWHU.js +0 -61
  844. package/components/sankey-diagram-slots.config-D-_u4w36.cjs +0 -20
  845. package/components/scatter-plot-options.config-BETVLevv.cjs +0 -20
  846. package/components/scatter-plot-options.config-DI4hlqi5.js +0 -302
  847. package/components/scatter-plot-positioning.config-D-ifHW9P.js +0 -77
  848. package/components/scatter-plot-positioning.config-DBDCDDad.cjs +0 -20
  849. package/components/scatter-plot-slots.config-CUURijrN.js +0 -74
  850. package/components/scatter-plot-slots.config-CrG6wQtV.cjs +0 -20
  851. package/components/search-filter-options.config-B-dGVPhS.cjs +0 -20
  852. package/components/search-filter-options.config-CPzfgUWV.js +0 -103
  853. package/components/search-filter-slots.config-DD119qkk.js +0 -39
  854. package/components/search-filter-slots.config-DP06ulJA.cjs +0 -20
  855. package/components/set-locale-DTFOOSog.cjs +0 -20
  856. package/components/set-locale-UK0ghkg9.js +0 -43
  857. package/components/slicer-filter-options.config-7OXpRWtw.cjs +0 -20
  858. package/components/slicer-filter-options.config-F2CZ8ckV.js +0 -226
  859. package/components/slicer-filter-positioning.config-0uGZ8EgN.js +0 -48
  860. package/components/slicer-filter-positioning.config-Bx2_7jxp.cjs +0 -20
  861. package/components/slicer-filter-slots.config-CHKpdJvF.cjs +0 -20
  862. package/components/slicer-filter-slots.config-D-BhCuA9.js +0 -44
  863. package/components/slider-filter-options.config-CRdbX1IJ.cjs +0 -20
  864. package/components/slider-filter-options.config-DO0HHK2l.js +0 -72
  865. package/components/slider-filter-slots.config-9R298H0t.cjs +0 -20
  866. package/components/slider-filter-slots.config-CGQG6JqK.js +0 -43
  867. package/components/slot-menu-Cw5HJ_bk.js +0 -404
  868. package/components/slot-menu-DkyDLDSd.cjs +0 -64
  869. package/components/slot-menu-list-BZllvntQ.cjs +0 -38
  870. package/components/slot-menu-list-CTJ-owp1.js +0 -326
  871. package/components/slots-config-BuHluMEl.js +0 -77
  872. package/components/slots-config-DVH0lz6t.cjs +0 -20
  873. package/components/speedometer-chart-options.config-BsIu28S3.cjs +0 -20
  874. package/components/speedometer-chart-options.config-jK_yQjy2.js +0 -246
  875. package/components/speedometer-chart-positioning.config-CNOKIw7e.cjs +0 -20
  876. package/components/speedometer-chart-positioning.config-FzFxMi0X.js +0 -48
  877. package/components/speedometer-chart-slots.config-CjkHAHNX.js +0 -39
  878. package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +0 -20
  879. package/components/spike-map-options.config-aaiZyME6.cjs +0 -20
  880. package/components/spike-map-options.config-cj07bETE.js +0 -413
  881. package/components/spike-map-positioning.config-B4NYfmEw.js +0 -55
  882. package/components/spike-map-positioning.config-Bcdt8670.cjs +0 -20
  883. package/components/spike-map-slots.config-cKfaD6dQ.cjs +0 -20
  884. package/components/spike-map-slots.config-yMkdy-0w.js +0 -47
  885. package/components/strip-plot-options.config-DmAxeY2S.js +0 -53
  886. package/components/strip-plot-options.config-TB3rkoj2.cjs +0 -20
  887. package/components/strip-plot-positioning.config-BjcqWJoD.cjs +0 -20
  888. package/components/strip-plot-positioning.config-n9OIxpa_.js +0 -48
  889. package/components/strip-plot-slots.config-C07nIM5s.js +0 -38
  890. package/components/strip-plot-slots.config-DNYlrK_c.cjs +0 -20
  891. package/components/sunburst-chart-options.config-CLyQG-8x.js +0 -160
  892. package/components/sunburst-chart-options.config-Ckk_kY_s.cjs +0 -20
  893. package/components/sunburst-chart-positioning.config-BIpSCpSi.cjs +0 -20
  894. package/components/sunburst-chart-positioning.config-CcGOcwOK.js +0 -48
  895. package/components/sunburst-chart-slots.config-BU9ma0xm.js +0 -38
  896. package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +0 -20
  897. package/components/symbol-map-options.config-56eoWz4w.cjs +0 -20
  898. package/components/symbol-map-options.config-I_gykFhh.js +0 -157
  899. package/components/symbol-map-positioning.config-DPv89eCY.cjs +0 -20
  900. package/components/symbol-map-positioning.config-H3n2ngaa.js +0 -55
  901. package/components/symbol-map-slots.config-CQJgV5bh.js +0 -53
  902. package/components/symbol-map-slots.config-DwNf547A.cjs +0 -20
  903. package/components/text-options.config-BwBCG2yo.cjs +0 -20
  904. package/components/text-options.config-DUMx63Ol.js +0 -67
  905. package/components/text-slots.config-CPghLc8b.cjs +0 -20
  906. package/components/text-slots.config-YmmXsb-0.js +0 -24
  907. package/components/treemap-chart-options.config-CAWPa5jK.js +0 -184
  908. package/components/treemap-chart-options.config-r6biULUj.cjs +0 -20
  909. package/components/treemap-chart-positioning.config-Dzp4TodY.js +0 -55
  910. package/components/treemap-chart-positioning.config-W2sl4gZ0.cjs +0 -20
  911. package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +0 -20
  912. package/components/treemap-chart-slots.config-QEVbKZyS.js +0 -47
  913. package/components/utils-BD_TKdii.js +0 -352
  914. package/components/utils-C8VI4SiJ.cjs +0 -20
  915. package/components/v4-DIjJgmR0.js +0 -49
  916. package/components/venn-diagram-options.config-BamlR1qo.cjs +0 -20
  917. package/components/venn-diagram-options.config-KKD89q3q.js +0 -24
  918. package/components/venn-diagram-positioning.config-BLSj3JqA.js +0 -55
  919. package/components/venn-diagram-positioning.config-Bv3pFJIU.cjs +0 -20
  920. package/components/venn-diagram-slots.config-DYTmU8v2.cjs +0 -20
  921. package/components/venn-diagram-slots.config-DsIqVOI2.js +0 -47
  922. package/components/video-options.config-BhBpkaLJ.cjs +0 -20
  923. package/components/video-options.config-D2SEyNrP.js +0 -127
  924. package/components/video-slots.config-B680gLmP.js +0 -24
  925. package/components/video-slots.config-DMut7o7r.cjs +0 -20
  926. package/components/viz-item-menu-CiEJJddu.js +0 -170
  927. package/components/viz-item-menu-Dry8xpRA.cjs +0 -55
  928. package/components/wordcloud-chart-options.config-DLN2RAEK.js +0 -90
  929. package/components/wordcloud-chart-options.config-DgH4JgN2.cjs +0 -20
  930. package/components/wordcloud-chart-positioning.config-DVPWXJXb.js +0 -55
  931. package/components/wordcloud-chart-positioning.config-ZTO2VLdY.cjs +0 -20
  932. package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +0 -20
  933. package/components/wordcloud-chart-slots.config-mFvqkiQE.js +0 -45
  934. /package/components/{rolldown-runtime-mLOUI7ql.cjs → chunk-mLOUI7ql.cjs} +0 -0
@@ -1,3812 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2026 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- //#region node_modules/colorjs.io/dist/color.js
21
- function e(e, t) {
22
- let n = e.length;
23
- Array.isArray(e[0]) || (e = [e]), Array.isArray(t[0]) || (t = t.map((e) => [e]));
24
- let r = t[0].length, i = t[0].map((e, n) => t.map((e) => e[n])), a = e.map((e) => i.map((t) => {
25
- let n = 0;
26
- if (!Array.isArray(e)) {
27
- for (let r of t) n += e * r;
28
- return n;
29
- }
30
- for (let r = 0; r < e.length; r++) n += e[r] * (t[r] || 0);
31
- return n;
32
- }));
33
- return n === 1 && (a = a[0]), r === 1 ? a.map((e) => e[0]) : a;
34
- }
35
- function t(e) {
36
- return n(e) === "string";
37
- }
38
- function n(e) {
39
- return (Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1] || "").toLowerCase();
40
- }
41
- function r(e, { precision: t, unit: n }) {
42
- return i(e) ? "none" : o(e, t) + (n ?? "");
43
- }
44
- function i(e) {
45
- return Number.isNaN(e) || e instanceof Number && e?.none;
46
- }
47
- function a(e) {
48
- return i(e) ? 0 : e;
49
- }
50
- function o(e, t) {
51
- if (e === 0) return 0;
52
- let n = ~~e, r = 0;
53
- n && t && (r = ~~Math.log10(Math.abs(n)) + 1);
54
- let i = 10 ** (t - r);
55
- return Math.floor(e * i + .5) / i;
56
- }
57
- var s = {
58
- deg: 1,
59
- grad: .9,
60
- rad: 180 / Math.PI,
61
- turn: 360
62
- };
63
- function c(e) {
64
- if (!e) return;
65
- e = e.trim();
66
- let t = /^([a-z]+)\((.+?)\)$/i, n = /^-?[\d.]+$/, r = /%|deg|g?rad|turn$/, i = /\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g, a = e.match(t);
67
- if (a) {
68
- let e = [];
69
- return a[2].replace(i, (t, i) => {
70
- let a = i.match(r), o = i;
71
- if (a) {
72
- let e = a[0], t = o.slice(0, -e.length);
73
- e === "%" ? (o = /* @__PURE__ */ new Number(t / 100), o.type = "<percentage>") : (o = new Number(t * s[e]), o.type = "<angle>", o.unit = e);
74
- } else n.test(o) ? (o = new Number(o), o.type = "<number>") : o === "none" && (o = /* @__PURE__ */ new Number(NaN), o.none = !0);
75
- t.startsWith("/") && (o = o instanceof Number ? o : new Number(o), o.alpha = !0), typeof o == "object" && o instanceof Number && (o.raw = i), e.push(o);
76
- }), {
77
- name: a[1].toLowerCase(),
78
- rawName: a[1],
79
- rawArgs: a[2],
80
- args: e
81
- };
82
- }
83
- }
84
- function l(e) {
85
- return e[e.length - 1];
86
- }
87
- function u(e, t, n) {
88
- return isNaN(e) ? t : isNaN(t) ? e : e + (t - e) * n;
89
- }
90
- function d(e, t, n) {
91
- return (n - e) / (t - e);
92
- }
93
- function f(e, t, n) {
94
- return u(t[0], t[1], d(e[0], e[1], n));
95
- }
96
- function p(e) {
97
- return e.map((e) => e.split("|").map((e) => {
98
- e = e.trim();
99
- let t = e.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);
100
- if (t) {
101
- let e = new String(t[1]);
102
- return e.range = [+t[2], +t[3]], e;
103
- }
104
- return e;
105
- }));
106
- }
107
- function m(e, t, n) {
108
- return Math.max(Math.min(n, t), e);
109
- }
110
- function h(e, t) {
111
- return Math.sign(e) === Math.sign(t) ? e : -e;
112
- }
113
- function g(e, t) {
114
- return h(Math.abs(e) ** t, e);
115
- }
116
- function _(e, t) {
117
- return t === 0 ? 0 : e / t;
118
- }
119
- function v(e, t, n = 0, r = e.length) {
120
- for (; n < r;) {
121
- let i = n + r >> 1;
122
- e[i] < t ? n = i + 1 : r = i;
123
- }
124
- return n;
125
- }
126
- var y = /*#__PURE__*/ Object.freeze({
127
- __proto__: null,
128
- bisectLeft: v,
129
- clamp: m,
130
- copySign: h,
131
- interpolate: u,
132
- interpolateInv: d,
133
- isNone: i,
134
- isString: t,
135
- last: l,
136
- mapRange: f,
137
- multiplyMatrices: e,
138
- parseCoordGrammar: p,
139
- parseFunction: c,
140
- serializeNumber: r,
141
- skipNone: a,
142
- spow: g,
143
- toPrecision: o,
144
- type: n,
145
- zdiv: _
146
- }), b = new class {
147
- add(e, t, n) {
148
- if (typeof arguments[0] != "string") {
149
- for (var e in arguments[0]) this.add(e, arguments[0][e], arguments[1]);
150
- return;
151
- }
152
- (Array.isArray(e) ? e : [e]).forEach(function(e) {
153
- this[e] = this[e] || [], t && this[e][n ? "unshift" : "push"](t);
154
- }, this);
155
- }
156
- run(e, t) {
157
- this[e] = this[e] || [], this[e].forEach(function(e) {
158
- e.call(t && t.context ? t.context : t, t);
159
- });
160
- }
161
- }(), x = {
162
- gamut_mapping: "css",
163
- precision: 5,
164
- deltaE: "76",
165
- verbose: globalThis?.process?.env?.NODE_ENV?.toLowerCase() !== "test",
166
- warn: function(e) {
167
- this.verbose && globalThis?.console?.warn?.(e);
168
- }
169
- }, S = {
170
- D50: [
171
- .3457 / .3585,
172
- 1,
173
- .2958 / .3585
174
- ],
175
- D65: [
176
- .3127 / .329,
177
- 1,
178
- .3583 / .329
179
- ]
180
- };
181
- function C(e) {
182
- return Array.isArray(e) ? e : S[e];
183
- }
184
- function w(t, n, r, i = {}) {
185
- if (t = C(t), n = C(n), !t || !n) throw TypeError(`Missing white point to convert ${t ? "" : "from"}${!t && !n ? "/" : ""}${n ? "" : "to"}`);
186
- if (t === n) return r;
187
- let a = {
188
- W1: t,
189
- W2: n,
190
- XYZ: r,
191
- options: i
192
- };
193
- if (b.run("chromatic-adaptation-start", a), a.M || (a.W1 === S.D65 && a.W2 === S.D50 ? a.M = [
194
- [
195
- 1.0479297925449969,
196
- .022946870601609652,
197
- -.05019226628920524
198
- ],
199
- [
200
- .02962780877005599,
201
- .9904344267538799,
202
- -.017073799063418826
203
- ],
204
- [
205
- -.009243040646204504,
206
- .015055191490298152,
207
- .7518742814281371
208
- ]
209
- ] : a.W1 === S.D50 && a.W2 === S.D65 && (a.M = [
210
- [
211
- .955473421488075,
212
- -.02309845494876471,
213
- .06325924320057072
214
- ],
215
- [
216
- -.0283697093338637,
217
- 1.0099953980813041,
218
- .021041441191917323
219
- ],
220
- [
221
- .012314014864481998,
222
- -.020507649298898964,
223
- 1.330365926242124
224
- ]
225
- ])), b.run("chromatic-adaptation-end", a), a.M) return e(a.M, a.XYZ);
226
- throw TypeError("Only Bradford CAT with white points D50 and D65 supported for now.");
227
- }
228
- var T = /* @__PURE__ */ new Set([
229
- "<number>",
230
- "<percentage>",
231
- "<angle>"
232
- ]);
233
- function ee(e, t, n, r) {
234
- return Object.entries(e.coords).map(([e, i], a) => {
235
- let o = t.coordGrammar[a], s = r[a], c = s?.type, l;
236
- if (l = s.none ? o.find((e) => T.has(e)) : o.find((e) => e == c), !l) {
237
- let t = i.name || e;
238
- throw TypeError(`${c ?? s.raw} not allowed for ${t} in ${n}()`);
239
- }
240
- let u = l.range;
241
- c === "<percentage>" && (u ||= [0, 1]);
242
- let d = i.range || i.refRange;
243
- return u && d && (r[a] = f(u, d, r[a])), l;
244
- });
245
- }
246
- function E(e, { meta: t } = {}) {
247
- let n = { str: String(e)?.trim() };
248
- if (b.run("parse-start", n), n.color) return n.color;
249
- if (n.parsed = c(n.str), n.parsed) {
250
- let e = n.parsed.name;
251
- if (e === "color") {
252
- let e = n.parsed.args.shift(), r = e.startsWith("--") ? e.substring(2) : `--${e}`, i = [e, r], a = n.parsed.rawArgs.indexOf("/") > 0 ? n.parsed.args.pop() : 1;
253
- for (let r of O.all) {
254
- let o = r.getFormat("color");
255
- if (o && (i.includes(o.id) || o.ids?.filter((e) => i.includes(e)).length)) {
256
- let i = Object.keys(r.coords).map((e, t) => n.parsed.args[t] || 0), s;
257
- return o.coordGrammar && (s = ee(r, o, "color", i)), t && Object.assign(t, {
258
- formatId: "color",
259
- types: s
260
- }), o.id.startsWith("--") && !e.startsWith("--") && x.warn(`${r.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${o.id}) instead of color(${e}).`), e.startsWith("--") && !o.id.startsWith("--") && x.warn(`${r.name} is a standard space and supported in the CSS spec. Use color(${o.id}) instead of prefixed color(${e}).`), {
261
- spaceId: r.id,
262
- coords: i,
263
- alpha: a
264
- };
265
- }
266
- }
267
- let o = "", s = e in O.registry ? e : r;
268
- if (s in O.registry) {
269
- let e = O.registry[s].formats?.color?.id;
270
- e && (o = `Did you mean color(${e})?`);
271
- }
272
- throw TypeError(`Cannot parse color(${e}). ` + (o || "Missing a plugin?"));
273
- } else for (let r of O.all) {
274
- let i = r.getFormat(e);
275
- if (i && i.type === "function") {
276
- let a = 1;
277
- (i.lastAlpha || l(n.parsed.args).alpha) && (a = n.parsed.args.pop());
278
- let o = n.parsed.args, s;
279
- return i.coordGrammar && (s = ee(r, i, e, o)), t && Object.assign(t, {
280
- formatId: i.name,
281
- types: s
282
- }), {
283
- spaceId: r.id,
284
- coords: o,
285
- alpha: a
286
- };
287
- }
288
- }
289
- } else for (let e of O.all) for (let r in e.formats) {
290
- let i = e.formats[r];
291
- if (i.type !== "custom" || i.test && !i.test(n.str)) continue;
292
- let a = i.parse(n.str);
293
- if (a) return a.alpha ??= 1, t && (t.formatId = r), a;
294
- }
295
- throw TypeError(`Could not parse ${e} as a color. Missing a plugin?`);
296
- }
297
- function D(e) {
298
- if (Array.isArray(e)) return e.map(D);
299
- if (!e) throw TypeError("Empty color reference");
300
- t(e) && (e = E(e));
301
- let n = e.space || e.spaceId;
302
- return n instanceof O || (e.space = O.get(n)), e.alpha === void 0 && (e.alpha = 1), e;
303
- }
304
- var te = 75e-6, O = class e {
305
- constructor(t) {
306
- this.id = t.id, this.name = t.name, this.base = t.base ? e.get(t.base) : null, this.aliases = t.aliases, this.base && (this.fromBase = t.fromBase, this.toBase = t.toBase);
307
- let n = t.coords ?? this.base.coords;
308
- for (let e in n) "name" in n[e] || (n[e].name = e);
309
- this.coords = n;
310
- let r = t.white ?? this.base.white ?? "D65";
311
- this.white = C(r), this.formats = t.formats ?? {};
312
- for (let e in this.formats) {
313
- let t = this.formats[e];
314
- t.type ||= "function", t.name ||= e;
315
- }
316
- this.formats.color?.id || (this.formats.color = {
317
- ...this.formats.color ?? {},
318
- id: t.cssId || this.id
319
- }), t.gamutSpace ? this.gamutSpace = t.gamutSpace === "self" ? this : e.get(t.gamutSpace) : this.isPolar ? this.gamutSpace = this.base : this.gamutSpace = this, this.gamutSpace.isUnbounded && (this.inGamut = (e, t) => !0), this.referred = t.referred, Object.defineProperty(this, "path", {
320
- value: ne(this).reverse(),
321
- writable: !1,
322
- enumerable: !0,
323
- configurable: !0
324
- }), b.run("colorspace-init-end", this);
325
- }
326
- inGamut(e, { epsilon: t = te } = {}) {
327
- if (!this.equals(this.gamutSpace)) return e = this.to(this.gamutSpace, e), this.gamutSpace.inGamut(e, { epsilon: t });
328
- let n = Object.values(this.coords);
329
- return e.every((e, r) => {
330
- let i = n[r];
331
- if (i.type !== "angle" && i.range) {
332
- if (Number.isNaN(e)) return !0;
333
- let [n, r] = i.range;
334
- return (n === void 0 || e >= n - t) && (r === void 0 || e <= r + t);
335
- }
336
- return !0;
337
- });
338
- }
339
- get isUnbounded() {
340
- return Object.values(this.coords).every((e) => !("range" in e));
341
- }
342
- get cssId() {
343
- return this.formats?.color?.id || this.id;
344
- }
345
- get isPolar() {
346
- for (let e in this.coords) if (this.coords[e].type === "angle") return !0;
347
- return !1;
348
- }
349
- getFormat(e) {
350
- if (typeof e == "object") return e = re(e, this), e;
351
- let t;
352
- return t = e === "default" ? Object.values(this.formats)[0] : this.formats[e], t ? (t = re(t, this), t) : null;
353
- }
354
- equals(e) {
355
- return e ? this === e || this.id === e || this.id === e.id : !1;
356
- }
357
- to(t, n) {
358
- if (arguments.length === 1) {
359
- let e = D(t);
360
- [t, n] = [e.space, e.coords];
361
- }
362
- if (t = e.get(t), this.equals(t)) return n;
363
- n = n.map((e) => Number.isNaN(e) ? 0 : e);
364
- let r = this.path, i = t.path, a, o;
365
- for (let e = 0; e < r.length && r[e].equals(i[e]); e++) a = r[e], o = e;
366
- if (!a) throw Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);
367
- for (let e = r.length - 1; e > o; e--) n = r[e].toBase(n);
368
- for (let e = o + 1; e < i.length; e++) n = i[e].fromBase(n);
369
- return n;
370
- }
371
- from(t, n) {
372
- if (arguments.length === 1) {
373
- let e = D(t);
374
- [t, n] = [e.space, e.coords];
375
- }
376
- return t = e.get(t), t.to(this, n);
377
- }
378
- toString() {
379
- return `${this.name} (${this.id})`;
380
- }
381
- getMinCoords() {
382
- let e = [];
383
- for (let t in this.coords) {
384
- let n = this.coords[t], r = n.range || n.refRange;
385
- e.push(r?.min ?? 0);
386
- }
387
- return e;
388
- }
389
- static registry = {};
390
- static get all() {
391
- return [...new Set(Object.values(e.registry))];
392
- }
393
- static register(e, t) {
394
- if (arguments.length === 1 && (t = arguments[0], e = t.id), t = this.get(t), this.registry[e] && this.registry[e] !== t) throw Error(`Duplicate color space registration: '${e}'`);
395
- if (this.registry[e] = t, arguments.length === 1 && t.aliases) for (let e of t.aliases) this.register(e, t);
396
- return t;
397
- }
398
- static get(t, ...r) {
399
- if (!t || t instanceof e) return t;
400
- if (n(t) === "string") {
401
- let n = e.registry[t.toLowerCase()];
402
- if (!n) throw TypeError(`No color space found with id = "${t}"`);
403
- return n;
404
- }
405
- if (r.length) return e.get(...r);
406
- throw TypeError(`${t} is not a valid color space`);
407
- }
408
- static resolveCoord(t, r) {
409
- let i = n(t), a, o;
410
- if (i === "string" ? t.includes(".") ? [a, o] = t.split(".") : [a, o] = [, t] : Array.isArray(t) ? [a, o] = t : (a = t.space, o = t.coordId), a = e.get(a), a ||= r, !a) throw TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);
411
- if (i = n(o), i === "number" || i === "string" && o >= 0) {
412
- let e = Object.entries(a.coords)[o];
413
- if (e) return {
414
- space: a,
415
- id: e[0],
416
- index: o,
417
- ...e[1]
418
- };
419
- }
420
- a = e.get(a);
421
- let s = o.toLowerCase(), c = 0;
422
- for (let e in a.coords) {
423
- let t = a.coords[e];
424
- if (e.toLowerCase() === s || t.name?.toLowerCase() === s) return {
425
- space: a,
426
- id: e,
427
- index: c,
428
- ...t
429
- };
430
- c++;
431
- }
432
- throw TypeError(`No "${o}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`);
433
- }
434
- static DEFAULT_FORMAT = {
435
- type: "functions",
436
- name: "color"
437
- };
438
- };
439
- function ne(e) {
440
- let t = [e];
441
- for (let n = e; n = n.base;) t.push(n);
442
- return t;
443
- }
444
- function re(e, { coords: t } = {}) {
445
- if (e.coords && !e.coordGrammar) {
446
- e.type ||= "function", e.name ||= "color", e.coordGrammar = p(e.coords);
447
- let n = Object.entries(t).map(([t, n], r) => {
448
- let i = e.coordGrammar[r][0], a = n.range || n.refRange, o = i.range, s = "";
449
- return i == "<percentage>" ? (o = [0, 100], s = "%") : i == "<angle>" && (s = "deg"), {
450
- fromRange: a,
451
- toRange: o,
452
- suffix: s
453
- };
454
- });
455
- e.serializeCoords = (e, t) => e.map((e, i) => {
456
- let { fromRange: a, toRange: o, suffix: s } = n[i];
457
- return a && o && (e = f(a, o, e)), e = r(e, {
458
- precision: t,
459
- unit: s
460
- }), e;
461
- });
462
- }
463
- return e;
464
- }
465
- var k = new O({
466
- id: "xyz-d65",
467
- name: "XYZ D65",
468
- coords: {
469
- x: { name: "X" },
470
- y: { name: "Y" },
471
- z: { name: "Z" }
472
- },
473
- white: "D65",
474
- formats: { color: { ids: ["xyz-d65", "xyz"] } },
475
- aliases: ["xyz"]
476
- }), A = class extends O {
477
- constructor(t) {
478
- t.coords ||= {
479
- r: {
480
- range: [0, 1],
481
- name: "Red"
482
- },
483
- g: {
484
- range: [0, 1],
485
- name: "Green"
486
- },
487
- b: {
488
- range: [0, 1],
489
- name: "Blue"
490
- }
491
- }, t.base ||= k, t.toXYZ_M && t.fromXYZ_M && (t.toBase ??= (n) => {
492
- let r = e(t.toXYZ_M, n);
493
- return this.white !== this.base.white && (r = w(this.white, this.base.white, r)), r;
494
- }, t.fromBase ??= (n) => (n = w(this.base.white, this.white, n), e(t.fromXYZ_M, n))), t.referred ??= "display", super(t);
495
- }
496
- };
497
- function j(e, t) {
498
- return e = D(e), !t || e.space.equals(t) ? e.coords.slice() : (t = O.get(t), t.from(e));
499
- }
500
- function M(e, t) {
501
- e = D(e);
502
- let { space: n, index: r } = O.resolveCoord(t, e.space);
503
- return j(e, n)[r];
504
- }
505
- function N(e, t, n) {
506
- return e = D(e), t = O.get(t), e.coords = t.to(e.space, n), e;
507
- }
508
- N.returns = "color";
509
- function P(e, t, r) {
510
- if (e = D(e), arguments.length === 2 && n(arguments[1]) === "object") {
511
- let t = arguments[1];
512
- for (let n in t) P(e, n, t[n]);
513
- } else {
514
- typeof r == "function" && (r = r(M(e, t)));
515
- let { space: n, index: i } = O.resolveCoord(t, e.space), a = j(e, n);
516
- a[i] = r, N(e, n, a);
517
- }
518
- return e;
519
- }
520
- P.returns = "color";
521
- var ie = new O({
522
- id: "xyz-d50",
523
- name: "XYZ D50",
524
- white: "D50",
525
- base: k,
526
- fromBase: (e) => w(k.white, "D50", e),
527
- toBase: (e) => w("D50", k.white, e)
528
- }), ae = 216 / 24389, oe = 24 / 116, F = 24389 / 27, se = S.D50, I = new O({
529
- id: "lab",
530
- name: "Lab",
531
- coords: {
532
- l: {
533
- refRange: [0, 100],
534
- name: "Lightness"
535
- },
536
- a: { refRange: [-125, 125] },
537
- b: { refRange: [-125, 125] }
538
- },
539
- white: se,
540
- base: ie,
541
- fromBase(e) {
542
- let t = e.map((e, t) => e / se[t]).map((e) => e > ae ? Math.cbrt(e) : (F * e + 16) / 116);
543
- return [
544
- 116 * t[1] - 16,
545
- 500 * (t[0] - t[1]),
546
- 200 * (t[1] - t[2])
547
- ];
548
- },
549
- toBase(e) {
550
- let t = [];
551
- return t[1] = (e[0] + 16) / 116, t[0] = e[1] / 500 + t[1], t[2] = t[1] - e[2] / 200, [
552
- t[0] > oe ? t[0] ** 3 : (116 * t[0] - 16) / F,
553
- e[0] > 8 ? ((e[0] + 16) / 116) ** 3 : e[0] / F,
554
- t[2] > oe ? t[2] ** 3 : (116 * t[2] - 16) / F
555
- ].map((e, t) => e * se[t]);
556
- },
557
- formats: { lab: { coords: [
558
- "<number> | <percentage>",
559
- "<number> | <percentage>[-1,1]",
560
- "<number> | <percentage>[-1,1]"
561
- ] } }
562
- });
563
- function L(e) {
564
- return (e % 360 + 360) % 360;
565
- }
566
- function ce(e, t) {
567
- if (e === "raw") return t;
568
- let [n, r] = t.map(L), i = r - n;
569
- return e === "increasing" ? i < 0 && (r += 360) : e === "decreasing" ? i > 0 && (n += 360) : e === "longer" ? -180 < i && i < 180 && (i > 0 ? n += 360 : r += 360) : e === "shorter" && (i > 180 ? n += 360 : i < -180 && (r += 360)), [n, r];
570
- }
571
- var R = new O({
572
- id: "lch",
573
- name: "LCH",
574
- coords: {
575
- l: {
576
- refRange: [0, 100],
577
- name: "Lightness"
578
- },
579
- c: {
580
- refRange: [0, 150],
581
- name: "Chroma"
582
- },
583
- h: {
584
- refRange: [0, 360],
585
- type: "angle",
586
- name: "Hue"
587
- }
588
- },
589
- base: I,
590
- fromBase(e) {
591
- let [t, n, r] = e, i, a = .02;
592
- return i = Math.abs(n) < a && Math.abs(r) < a ? NaN : Math.atan2(r, n) * 180 / Math.PI, [
593
- t,
594
- Math.sqrt(n ** 2 + r ** 2),
595
- L(i)
596
- ];
597
- },
598
- toBase(e) {
599
- let [t, n, r] = e;
600
- return n < 0 && (n = 0), isNaN(r) && (r = 0), [
601
- t,
602
- n * Math.cos(r * Math.PI / 180),
603
- n * Math.sin(r * Math.PI / 180)
604
- ];
605
- },
606
- formats: { lch: { coords: [
607
- "<number> | <percentage>",
608
- "<number> | <percentage>",
609
- "<number> | <angle>"
610
- ] } }
611
- }), le = 25 ** 7, ue = Math.PI, de = 180 / ue, z = ue / 180;
612
- function fe(e) {
613
- let t = e * e;
614
- return t * t * t * e;
615
- }
616
- function pe(e, t, { kL: n = 1, kC: r = 1, kH: i = 1 } = {}) {
617
- [e, t] = D([e, t]);
618
- let [a, o, s] = I.from(e), c = R.from(I, [
619
- a,
620
- o,
621
- s
622
- ])[1], [l, u, d] = I.from(t), f = R.from(I, [
623
- l,
624
- u,
625
- d
626
- ])[1];
627
- c < 0 && (c = 0), f < 0 && (f = 0);
628
- let p = fe((c + f) / 2), m = .5 * (1 - Math.sqrt(p / (p + le))), h = (1 + m) * o, g = (1 + m) * u, _ = Math.sqrt(h ** 2 + s ** 2), v = Math.sqrt(g ** 2 + d ** 2), y = h === 0 && s === 0 ? 0 : Math.atan2(s, h), b = g === 0 && d === 0 ? 0 : Math.atan2(d, g);
629
- y < 0 && (y += 2 * ue), b < 0 && (b += 2 * ue), y *= de, b *= de;
630
- let S = l - a, C = v - _, w = b - y, T = y + b, ee = Math.abs(w), E;
631
- _ * v === 0 ? E = 0 : ee <= 180 ? E = w : w > 180 ? E = w - 360 : w < -180 ? E = w + 360 : x.warn("the unthinkable has happened");
632
- let te = 2 * Math.sqrt(v * _) * Math.sin(E * z / 2), O = (a + l) / 2, ne = (_ + v) / 2, re = fe(ne), k;
633
- k = _ * v === 0 ? T : ee <= 180 ? T / 2 : T < 360 ? (T + 360) / 2 : (T - 360) / 2;
634
- let A = (O - 50) ** 2, j = 1 + .015 * A / Math.sqrt(20 + A), M = 1 + .045 * ne, N = 1;
635
- N -= .17 * Math.cos((k - 30) * z), N += .24 * Math.cos(2 * k * z), N += .32 * Math.cos((3 * k + 6) * z), N -= .2 * Math.cos((4 * k - 63) * z);
636
- let P = 1 + .015 * ne * N, ie = 30 * Math.exp(-1 * ((k - 275) / 25) ** 2), ae = 2 * Math.sqrt(re / (re + le)), oe = -1 * Math.sin(2 * ie * z) * ae, F = (S / (n * j)) ** 2;
637
- return F += (C / (r * M)) ** 2, F += (te / (i * P)) ** 2, F += oe * (C / (r * M)) * (te / (i * P)), Math.sqrt(F);
638
- }
639
- var me = [
640
- [
641
- .819022437996703,
642
- .3619062600528904,
643
- -.1288737815209879
644
- ],
645
- [
646
- .0329836539323885,
647
- .9292868615863434,
648
- .0361446663506424
649
- ],
650
- [
651
- .0481771893596242,
652
- .2642395317527308,
653
- .6335478284694309
654
- ]
655
- ], he = [
656
- [
657
- 1.2268798758459243,
658
- -.5578149944602171,
659
- .2813910456659647
660
- ],
661
- [
662
- -.0405757452148008,
663
- 1.112286803280317,
664
- -.0717110580655164
665
- ],
666
- [
667
- -.0763729366746601,
668
- -.4214933324022432,
669
- 1.5869240198367816
670
- ]
671
- ], ge = [
672
- [
673
- .210454268309314,
674
- .7936177747023054,
675
- -.0040720430116193
676
- ],
677
- [
678
- 1.9779985324311684,
679
- -2.42859224204858,
680
- .450593709617411
681
- ],
682
- [
683
- .0259040424655478,
684
- .7827717124575296,
685
- -.8086757549230774
686
- ]
687
- ], _e = [
688
- [
689
- 1,
690
- .3963377773761749,
691
- .2158037573099136
692
- ],
693
- [
694
- 1,
695
- -.1055613458156586,
696
- -.0638541728258133
697
- ],
698
- [
699
- 1,
700
- -.0894841775298119,
701
- -1.2914855480194092
702
- ]
703
- ], B = new O({
704
- id: "oklab",
705
- name: "Oklab",
706
- coords: {
707
- l: {
708
- refRange: [0, 1],
709
- name: "Lightness"
710
- },
711
- a: { refRange: [-.4, .4] },
712
- b: { refRange: [-.4, .4] }
713
- },
714
- white: "D65",
715
- base: k,
716
- fromBase(t) {
717
- return e(ge, e(me, t).map((e) => Math.cbrt(e)));
718
- },
719
- toBase(t) {
720
- return e(he, e(_e, t).map((e) => e ** 3));
721
- },
722
- formats: { oklab: { coords: [
723
- "<percentage> | <number>",
724
- "<number> | <percentage>[-1,1]",
725
- "<number> | <percentage>[-1,1]"
726
- ] } }
727
- });
728
- function ve(e, t) {
729
- [e, t] = D([e, t]);
730
- let [n, r, i] = B.from(e), [a, o, s] = B.from(t), c = n - a, l = r - o, u = i - s;
731
- return Math.sqrt(c ** 2 + l ** 2 + u ** 2);
732
- }
733
- var ye = 75e-6;
734
- function V(e, t, { epsilon: n = ye } = {}) {
735
- e = D(e), t ||= e.space, t = O.get(t);
736
- let r = e.coords;
737
- return t !== e.space && (r = t.from(e)), t.inGamut(r, { epsilon: n });
738
- }
739
- function H(e) {
740
- return {
741
- space: e.space,
742
- coords: e.coords.slice(),
743
- alpha: e.alpha
744
- };
745
- }
746
- function be(e, t, n = "lab") {
747
- n = O.get(n);
748
- let r = n.from(e), i = n.from(t);
749
- return Math.sqrt(r.reduce((e, t, n) => {
750
- let r = i[n];
751
- return isNaN(t) || isNaN(r) ? e : e + (r - t) ** 2;
752
- }, 0));
753
- }
754
- function xe(e, t) {
755
- return be(e, t, "lab");
756
- }
757
- var Se = Math.PI / 180;
758
- function Ce(e, t, { l: n = 2, c: r = 1 } = {}) {
759
- [e, t] = D([e, t]);
760
- let [i, a, o] = I.from(e), [, s, c] = R.from(I, [
761
- i,
762
- a,
763
- o
764
- ]), [l, u, d] = I.from(t), f = R.from(I, [
765
- l,
766
- u,
767
- d
768
- ])[1];
769
- s < 0 && (s = 0), f < 0 && (f = 0);
770
- let p = i - l, m = s - f, h = a - u, g = o - d, _ = h ** 2 + g ** 2 - m ** 2, v = .511;
771
- i >= 16 && (v = .040975 * i / (1 + .01765 * i));
772
- let y = .0638 * s / (1 + .0131 * s) + .638, b;
773
- Number.isNaN(c) && (c = 0), b = c >= 164 && c <= 345 ? .56 + Math.abs(.2 * Math.cos((c + 168) * Se)) : .36 + Math.abs(.4 * Math.cos((c + 35) * Se));
774
- let x = s ** 4, S = Math.sqrt(x / (x + 1900)), C = y * (S * b + 1 - S), w = (p / (n * v)) ** 2;
775
- return w += (m / (r * y)) ** 2, w += _ / C ** 2, Math.sqrt(w);
776
- }
777
- var we = 203, Te = new O({
778
- id: "xyz-abs-d65",
779
- cssId: "--xyz-abs-d65",
780
- name: "Absolute XYZ D65",
781
- coords: {
782
- x: {
783
- refRange: [0, 9504.7],
784
- name: "Xa"
785
- },
786
- y: {
787
- refRange: [0, 1e4],
788
- name: "Ya"
789
- },
790
- z: {
791
- refRange: [0, 10888.3],
792
- name: "Za"
793
- }
794
- },
795
- base: k,
796
- fromBase(e) {
797
- return e.map((e) => Math.max(e * we, 0));
798
- },
799
- toBase(e) {
800
- return e.map((e) => Math.max(e / we, 0));
801
- }
802
- }), Ee = 1.15, De = .66, Oe = 2610 / 2 ** 14, ke = 2 ** 14 / 2610, Ae = 3424 / 2 ** 12, je = 2413 / 2 ** 7, Me = 2392 / 2 ** 7, Ne = 1.7 * 2523 / 2 ** 5, Pe = 2 ** 5 / (1.7 * 2523), Fe = -.56, Ie = 16295499532821565e-27, Le = [
803
- [
804
- .41478972,
805
- .579999,
806
- .014648
807
- ],
808
- [
809
- -.20151,
810
- 1.120649,
811
- .0531008
812
- ],
813
- [
814
- -.0166008,
815
- .2648,
816
- .6684799
817
- ]
818
- ], Re = [
819
- [
820
- 1.9242264357876067,
821
- -1.0047923125953657,
822
- .037651404030618
823
- ],
824
- [
825
- .35031676209499907,
826
- .7264811939316552,
827
- -.06538442294808501
828
- ],
829
- [
830
- -.09098281098284752,
831
- -.3127282905230739,
832
- 1.5227665613052603
833
- ]
834
- ], ze = [
835
- [
836
- .5,
837
- .5,
838
- 0
839
- ],
840
- [
841
- 3.524,
842
- -4.066708,
843
- .542708
844
- ],
845
- [
846
- .199076,
847
- 1.096799,
848
- -1.295875
849
- ]
850
- ], Be = [
851
- [
852
- 1,
853
- .1386050432715393,
854
- .05804731615611886
855
- ],
856
- [
857
- .9999999999999999,
858
- -.1386050432715393,
859
- -.05804731615611886
860
- ],
861
- [
862
- .9999999999999998,
863
- -.09601924202631895,
864
- -.8118918960560388
865
- ]
866
- ], Ve = new O({
867
- id: "jzazbz",
868
- name: "Jzazbz",
869
- coords: {
870
- jz: {
871
- refRange: [0, 1],
872
- name: "Jz"
873
- },
874
- az: { refRange: [-.5, .5] },
875
- bz: { refRange: [-.5, .5] }
876
- },
877
- base: Te,
878
- fromBase(t) {
879
- let [n, r, i] = t, [a, o, s] = e(ze, e(Le, [
880
- Ee * n - (Ee - 1) * i,
881
- De * r - (De - 1) * n,
882
- i
883
- ]).map(function(e) {
884
- return ((Ae + je * (e / 1e4) ** Oe) / (1 + Me * (e / 1e4) ** Oe)) ** Ne;
885
- }));
886
- return [
887
- .43999999999999995 * a / (1 + Fe * a) - Ie,
888
- o,
889
- s
890
- ];
891
- },
892
- toBase(t) {
893
- let [n, r, i] = t, [a, o, s] = e(Re, e(Be, [
894
- (n + Ie) / (.43999999999999995 - Fe * (n + Ie)),
895
- r,
896
- i
897
- ]).map(function(e) {
898
- return 1e4 * ((Ae - e ** Pe) / (Me * e ** Pe - je)) ** ke;
899
- })), c = (a + (Ee - 1) * s) / Ee;
900
- return [
901
- c,
902
- (o + (De - 1) * c) / De,
903
- s
904
- ];
905
- },
906
- formats: { color: { coords: [
907
- "<number> | <percentage>",
908
- "<number> | <percentage>[-1,1]",
909
- "<number> | <percentage>[-1,1]"
910
- ] } }
911
- }), He = new O({
912
- id: "jzczhz",
913
- name: "JzCzHz",
914
- coords: {
915
- jz: {
916
- refRange: [0, 1],
917
- name: "Jz"
918
- },
919
- cz: {
920
- refRange: [0, 1],
921
- name: "Chroma"
922
- },
923
- hz: {
924
- refRange: [0, 360],
925
- type: "angle",
926
- name: "Hue"
927
- }
928
- },
929
- base: Ve,
930
- fromBase(e) {
931
- let [t, n, r] = e, i, a = 2e-4;
932
- return i = Math.abs(n) < a && Math.abs(r) < a ? NaN : Math.atan2(r, n) * 180 / Math.PI, [
933
- t,
934
- Math.sqrt(n ** 2 + r ** 2),
935
- L(i)
936
- ];
937
- },
938
- toBase(e) {
939
- return [
940
- e[0],
941
- e[1] * Math.cos(e[2] * Math.PI / 180),
942
- e[1] * Math.sin(e[2] * Math.PI / 180)
943
- ];
944
- }
945
- });
946
- function Ue(e, t) {
947
- [e, t] = D([e, t]);
948
- let [n, r, i] = He.from(e), [a, o, s] = He.from(t), c = n - a, l = r - o;
949
- Number.isNaN(i) && Number.isNaN(s) ? (i = 0, s = 0) : Number.isNaN(i) ? i = s : Number.isNaN(s) && (s = i);
950
- let u = i - s, d = 2 * Math.sqrt(r * o) * Math.sin(u / 2 * (Math.PI / 180));
951
- return Math.sqrt(c ** 2 + l ** 2 + d ** 2);
952
- }
953
- var We = 3424 / 4096, Ge = 2413 / 128, Ke = 2392 / 128, qe = 2610 / 16384, Je = 2523 / 32, Ye = 16384 / 2610, Xe = 32 / 2523, Ze = [
954
- [
955
- .3592832590121217,
956
- .6976051147779502,
957
- -.035891593232029
958
- ],
959
- [
960
- -.1920808463704993,
961
- 1.100476797037432,
962
- .0753748658519118
963
- ],
964
- [
965
- .0070797844607479,
966
- .0748396662186362,
967
- .8433265453898765
968
- ]
969
- ], Qe = [
970
- [
971
- 2048 / 4096,
972
- 2048 / 4096,
973
- 0
974
- ],
975
- [
976
- 6610 / 4096,
977
- -13613 / 4096,
978
- 7003 / 4096
979
- ],
980
- [
981
- 17933 / 4096,
982
- -17390 / 4096,
983
- -543 / 4096
984
- ]
985
- ], $e = [
986
- [
987
- .9999999999999998,
988
- .0086090370379328,
989
- .111029625003026
990
- ],
991
- [
992
- .9999999999999998,
993
- -.0086090370379328,
994
- -.1110296250030259
995
- ],
996
- [
997
- .9999999999999998,
998
- .5600313357106791,
999
- -.3206271749873188
1000
- ]
1001
- ], et = [
1002
- [
1003
- 2.0701522183894223,
1004
- -1.3263473389671563,
1005
- .2066510476294053
1006
- ],
1007
- [
1008
- .3647385209748072,
1009
- .6805660249472273,
1010
- -.0453045459220347
1011
- ],
1012
- [
1013
- -.0497472075358123,
1014
- -.0492609666966131,
1015
- 1.1880659249923042
1016
- ]
1017
- ], tt = new O({
1018
- id: "ictcp",
1019
- name: "ICTCP",
1020
- coords: {
1021
- i: {
1022
- refRange: [0, 1],
1023
- name: "I"
1024
- },
1025
- ct: {
1026
- refRange: [-.5, .5],
1027
- name: "CT"
1028
- },
1029
- cp: {
1030
- refRange: [-.5, .5],
1031
- name: "CP"
1032
- }
1033
- },
1034
- base: Te,
1035
- fromBase(t) {
1036
- return nt(e(Ze, t));
1037
- },
1038
- toBase(t) {
1039
- return e(et, rt(t));
1040
- }
1041
- });
1042
- function nt(t) {
1043
- return e(Qe, t.map(function(e) {
1044
- return ((We + Ge * (e / 1e4) ** qe) / (1 + Ke * (e / 1e4) ** qe)) ** Je;
1045
- }));
1046
- }
1047
- function rt(t) {
1048
- return e($e, t).map(function(e) {
1049
- return 1e4 * (Math.max(e ** Xe - We, 0) / (Ge - Ke * e ** Xe)) ** Ye;
1050
- });
1051
- }
1052
- function it(e, t) {
1053
- [e, t] = D([e, t]);
1054
- let [n, r, i] = tt.from(e), [a, o, s] = tt.from(t);
1055
- return 720 * Math.sqrt((n - a) ** 2 + .25 * (r - o) ** 2 + (i - s) ** 2);
1056
- }
1057
- var at = S.D65, ot = .42, st = 1 / ot, ct = 2 * Math.PI, lt = [
1058
- [
1059
- .401288,
1060
- .650173,
1061
- -.051461
1062
- ],
1063
- [
1064
- -.250268,
1065
- 1.204414,
1066
- .045854
1067
- ],
1068
- [
1069
- -.002079,
1070
- .048952,
1071
- .953127
1072
- ]
1073
- ], ut = [
1074
- [
1075
- 1.8620678550872327,
1076
- -1.0112546305316843,
1077
- .14918677544445175
1078
- ],
1079
- [
1080
- .38752654323613717,
1081
- .6214474419314753,
1082
- -.008973985167612518
1083
- ],
1084
- [
1085
- -.015841498849333856,
1086
- -.03412293802851557,
1087
- 1.0499644368778496
1088
- ]
1089
- ], dt = [
1090
- [
1091
- 460,
1092
- 451,
1093
- 288
1094
- ],
1095
- [
1096
- 460,
1097
- -891,
1098
- -261
1099
- ],
1100
- [
1101
- 460,
1102
- -220,
1103
- -6300
1104
- ]
1105
- ], ft = {
1106
- dark: [
1107
- .8,
1108
- .525,
1109
- .8
1110
- ],
1111
- dim: [
1112
- .9,
1113
- .59,
1114
- .9
1115
- ],
1116
- average: [
1117
- 1,
1118
- .69,
1119
- 1
1120
- ]
1121
- }, U = {
1122
- h: [
1123
- 20.14,
1124
- 90,
1125
- 164.25,
1126
- 237.53,
1127
- 380.14
1128
- ],
1129
- e: [
1130
- .8,
1131
- .7,
1132
- 1,
1133
- 1.2,
1134
- .8
1135
- ],
1136
- H: [
1137
- 0,
1138
- 100,
1139
- 200,
1140
- 300,
1141
- 400
1142
- ]
1143
- }, pt = 180 / Math.PI, mt = Math.PI / 180;
1144
- function ht(e, t) {
1145
- return e.map((e) => {
1146
- let n = g(t * Math.abs(e) * .01, ot);
1147
- return 400 * h(n, e) / (n + 27.13);
1148
- });
1149
- }
1150
- function gt(e, t) {
1151
- let n = 100 / t * 27.13 ** st;
1152
- return e.map((e) => {
1153
- let t = Math.abs(e);
1154
- return h(n * g(t / (400 - t), st), e);
1155
- });
1156
- }
1157
- function _t(e) {
1158
- let t = L(e);
1159
- t <= U.h[0] && (t += 360);
1160
- let n = v(U.h, t) - 1, [r, i] = U.h.slice(n, n + 2), [a, o] = U.e.slice(n, n + 2), s = U.H[n], c = (t - r) / a;
1161
- return s + 100 * c / (c + (i - t) / o);
1162
- }
1163
- function vt(e) {
1164
- let t = (e % 400 + 400) % 400, n = Math.floor(.01 * t);
1165
- t %= 100;
1166
- let [r, i] = U.h.slice(n, n + 2), [a, o] = U.e.slice(n, n + 2);
1167
- return L((t * (o * r - a * i) - 100 * r * o) / (t * (o - a) - 100 * o));
1168
- }
1169
- function yt(t, n, r, i, a) {
1170
- let o = {};
1171
- o.discounting = a, o.refWhite = t, o.surround = i;
1172
- let s = t.map((e) => e * 100);
1173
- o.la = n, o.yb = r;
1174
- let c = s[1], l = e(lt, s);
1175
- i = ft[o.surround];
1176
- let d = i[0];
1177
- o.c = i[1], o.nc = i[2];
1178
- let f = (1 / (5 * o.la + 1)) ** 4;
1179
- o.fl = f * o.la + .1 * (1 - f) * (1 - f) * Math.cbrt(5 * o.la), o.flRoot = o.fl ** .25, o.n = o.yb / c, o.z = 1.48 + Math.sqrt(o.n), o.nbb = .725 * o.n ** -.2, o.ncb = o.nbb;
1180
- let p = a ? 1 : Math.max(Math.min(d * (1 - 1 / 3.6 * Math.exp((-o.la - 42) / 92)), 1), 0);
1181
- o.dRgb = l.map((e) => u(1, c / e, p)), o.dRgbInv = o.dRgb.map((e) => 1 / e);
1182
- let m = ht(l.map((e, t) => e * o.dRgb[t]), o.fl);
1183
- return o.aW = o.nbb * (2 * m[0] + m[1] + .05 * m[2]), o;
1184
- }
1185
- var bt = yt(at, 64 / Math.PI * .2, 20, "average", !1);
1186
- function xt(t, n) {
1187
- if (!(t.J !== void 0 ^ t.Q !== void 0)) throw Error("Conversion requires one and only one: 'J' or 'Q'");
1188
- if (!(t.C !== void 0 ^ t.M !== void 0 ^ t.s !== void 0)) throw Error("Conversion requires one and only one: 'C', 'M' or 's'");
1189
- if (!(t.h !== void 0 ^ t.H !== void 0)) throw Error("Conversion requires one and only one: 'h' or 'H'");
1190
- if (t.J === 0 || t.Q === 0) return [
1191
- 0,
1192
- 0,
1193
- 0
1194
- ];
1195
- let r = 0;
1196
- r = t.h === void 0 ? vt(t.H) * mt : L(t.h) * mt;
1197
- let i = Math.cos(r), a = Math.sin(r), o = 0;
1198
- t.J === void 0 ? t.Q !== void 0 && (o = .25 * n.c * t.Q / ((n.aW + 4) * n.flRoot)) : o = g(t.J, 1 / 2) * .1;
1199
- let s = 0;
1200
- t.C === void 0 ? t.M === void 0 ? t.s !== void 0 && (s = 4e-4 * t.s ** 2 * (n.aW + 4) / n.c) : s = t.M / n.flRoot / o : s = t.C / o;
1201
- let c = g(s * (1.64 - .29 ** n.n) ** -.73, 10 / 9), l = .25 * (Math.cos(r + 2) + 3.8), u = n.aW * g(o, 2 / n.c / n.z), d = 5e4 / 13 * n.nc * n.ncb * l, f = u / n.nbb, p = 23 * (f + .305) * _(c, 23 * d + c * (11 * i + 108 * a));
1202
- return e(ut, gt(e(dt, [
1203
- f,
1204
- p * i,
1205
- p * a
1206
- ]).map((e) => e * 1 / 1403), n.fl).map((e, t) => e * n.dRgbInv[t])).map((e) => e / 100);
1207
- }
1208
- function St(t, n) {
1209
- let r = ht(e(lt, t.map((e) => e * 100)).map((e, t) => e * n.dRgb[t]), n.fl), i = r[0] + (-12 * r[1] + r[2]) / 11, a = (r[0] + r[1] - 2 * r[2]) / 9, o = (Math.atan2(a, i) % ct + ct) % ct, s = .25 * (Math.cos(o + 2) + 3.8), c = g(5e4 / 13 * n.nc * n.ncb * _(s * Math.sqrt(i ** 2 + a ** 2), r[0] + r[1] + 1.05 * r[2] + .305), .9) * (1.64 - .29 ** n.n) ** .73, l = g(n.nbb * (2 * r[0] + r[1] + .05 * r[2]) / n.aW, .5 * n.c * n.z), u = 100 * g(l, 2), d = 4 / n.c * l * (n.aW + 4) * n.flRoot, f = c * l, p = f * n.flRoot, m = L(o * pt), h = _t(m);
1210
- return {
1211
- J: u,
1212
- C: f,
1213
- h: m,
1214
- s: 50 * g(n.c * c / (n.aW + 4), 1 / 2),
1215
- Q: d,
1216
- M: p,
1217
- H: h
1218
- };
1219
- }
1220
- var Ct = new O({
1221
- id: "cam16-jmh",
1222
- cssId: "--cam16-jmh",
1223
- name: "CAM16-JMh",
1224
- coords: {
1225
- j: {
1226
- refRange: [0, 100],
1227
- name: "J"
1228
- },
1229
- m: {
1230
- refRange: [0, 105],
1231
- name: "Colorfulness"
1232
- },
1233
- h: {
1234
- refRange: [0, 360],
1235
- type: "angle",
1236
- name: "Hue"
1237
- }
1238
- },
1239
- base: k,
1240
- fromBase(e) {
1241
- let t = St(e, bt);
1242
- return [
1243
- t.J,
1244
- t.M,
1245
- t.h
1246
- ];
1247
- },
1248
- toBase(e) {
1249
- return xt({
1250
- J: e[0],
1251
- M: e[1],
1252
- h: e[2]
1253
- }, bt);
1254
- }
1255
- }), wt = S.D65, Tt = 216 / 24389, Et = 24389 / 27;
1256
- function Dt(e) {
1257
- return 116 * (e > Tt ? Math.cbrt(e) : (Et * e + 16) / 116) - 16;
1258
- }
1259
- function Ot(e) {
1260
- return e > 8 ? ((e + 16) / 116) ** 3 : e / Et;
1261
- }
1262
- function kt(e, t) {
1263
- let [n, r, i] = e, a = [], o = 0;
1264
- if (i === 0) return [
1265
- 0,
1266
- 0,
1267
- 0
1268
- ];
1269
- let s = Ot(i);
1270
- o = i > 0 ? .00379058511492914 * i ** 2 + .608983189401032 * i + .9155088574762233 : 9514440756550361e-21 * i ** 2 + .08693057439788597 * i - 21.928975842194614;
1271
- let c = 0, l = Infinity;
1272
- for (; c <= 15;) {
1273
- a = xt({
1274
- J: o,
1275
- C: r,
1276
- h: n
1277
- }, t);
1278
- let e = Math.abs(a[1] - s);
1279
- if (e < l) {
1280
- if (e <= 2e-12) return a;
1281
- l = e;
1282
- }
1283
- o -= (a[1] - s) * o / (2 * a[1]), c += 1;
1284
- }
1285
- return xt({
1286
- J: o,
1287
- C: r,
1288
- h: n
1289
- }, t);
1290
- }
1291
- function At(e, t) {
1292
- let n = Dt(e[1]);
1293
- if (n === 0) return [
1294
- 0,
1295
- 0,
1296
- 0
1297
- ];
1298
- let r = St(e, jt);
1299
- return [
1300
- L(r.h),
1301
- r.C,
1302
- n
1303
- ];
1304
- }
1305
- var jt = yt(wt, 200 / Math.PI * Ot(50), Ot(50) * 100, "average", !1), Mt = new O({
1306
- id: "hct",
1307
- name: "HCT",
1308
- coords: {
1309
- h: {
1310
- refRange: [0, 360],
1311
- type: "angle",
1312
- name: "Hue"
1313
- },
1314
- c: {
1315
- refRange: [0, 145],
1316
- name: "Colorfulness"
1317
- },
1318
- t: {
1319
- refRange: [0, 100],
1320
- name: "Tone"
1321
- }
1322
- },
1323
- base: k,
1324
- fromBase(e) {
1325
- return At(e);
1326
- },
1327
- toBase(e) {
1328
- return kt(e, jt);
1329
- },
1330
- formats: { color: {
1331
- id: "--hct",
1332
- coords: [
1333
- "<number> | <angle>",
1334
- "<percentage> | <number>",
1335
- "<percentage> | <number>"
1336
- ]
1337
- } }
1338
- }), Nt = Math.PI / 180, Pt = [
1339
- 1,
1340
- .007,
1341
- .0228
1342
- ];
1343
- function Ft(e) {
1344
- e[1] < 0 && (e = Mt.fromBase(Mt.toBase(e)));
1345
- let t = Math.log(Math.max(1 + Pt[2] * e[1] * jt.flRoot, 1)) / Pt[2], n = e[0] * Nt, r = t * Math.cos(n), i = t * Math.sin(n);
1346
- return [
1347
- e[2],
1348
- r,
1349
- i
1350
- ];
1351
- }
1352
- function It(e, t) {
1353
- [e, t] = D([e, t]);
1354
- let [n, r, i] = Ft(Mt.from(e)), [a, o, s] = Ft(Mt.from(t));
1355
- return Math.sqrt((n - a) ** 2 + (r - o) ** 2 + (i - s) ** 2);
1356
- }
1357
- var W = {
1358
- deltaE76: xe,
1359
- deltaECMC: Ce,
1360
- deltaE2000: pe,
1361
- deltaEJz: Ue,
1362
- deltaEITP: it,
1363
- deltaEOK: ve,
1364
- deltaEHCT: It
1365
- };
1366
- function Lt(e) {
1367
- return Math.max(parseFloat(`1e${(e ? Math.floor(Math.log10(Math.abs(e))) : 0) - 2}`), 1e-6);
1368
- }
1369
- var Rt = {
1370
- hct: {
1371
- method: "hct.c",
1372
- jnd: 2,
1373
- deltaEMethod: "hct",
1374
- blackWhiteClamp: {}
1375
- },
1376
- "hct-tonal": {
1377
- method: "hct.c",
1378
- jnd: 0,
1379
- deltaEMethod: "hct",
1380
- blackWhiteClamp: {
1381
- channel: "hct.t",
1382
- min: 0,
1383
- max: 100
1384
- }
1385
- }
1386
- };
1387
- function G(e, { method: n = x.gamut_mapping, space: r = void 0, deltaEMethod: a = "", jnd: o = 2, blackWhiteClamp: s = {} } = {}) {
1388
- if (e = D(e), t(arguments[1]) ? r = arguments[1] : r ||= e.space, r = O.get(r), V(e, r, { epsilon: 0 })) return e;
1389
- let c;
1390
- if (n === "css") c = Bt(e, { space: r });
1391
- else {
1392
- if (n !== "clip" && !V(e, r)) {
1393
- Object.prototype.hasOwnProperty.call(Rt, n) && ({method: n, jnd: o, deltaEMethod: a, blackWhiteClamp: s} = Rt[n]);
1394
- let t = pe;
1395
- if (a !== "") {
1396
- for (let e in W) if ("deltae" + a.toLowerCase() === e.toLowerCase()) {
1397
- t = W[e];
1398
- break;
1399
- }
1400
- }
1401
- let l = G(K(e, r), {
1402
- method: "clip",
1403
- space: r
1404
- });
1405
- if (t(e, l) > o) {
1406
- if (Object.keys(s).length === 3) {
1407
- let t = O.resolveCoord(s.channel), n = M(K(e, t.space), t.id);
1408
- if (i(n) && (n = 0), n >= s.max) return K({
1409
- space: "xyz-d65",
1410
- coords: S.D65
1411
- }, e.space);
1412
- if (n <= s.min) return K({
1413
- space: "xyz-d65",
1414
- coords: [
1415
- 0,
1416
- 0,
1417
- 0
1418
- ]
1419
- }, e.space);
1420
- }
1421
- let a = O.resolveCoord(n), l = a.space, u = a.id, d = K(e, l);
1422
- d.coords.forEach((e, t) => {
1423
- i(e) && (d.coords[t] = 0);
1424
- });
1425
- let f = (a.range || a.refRange)[0], p = Lt(o), m = f, h = M(d, u);
1426
- for (; h - m > p;) {
1427
- let e = H(d);
1428
- e = G(e, {
1429
- space: r,
1430
- method: "clip"
1431
- }), t(d, e) - o < p ? m = M(d, u) : h = M(d, u), P(d, u, (m + h) / 2);
1432
- }
1433
- c = K(d, r);
1434
- } else c = l;
1435
- } else c = K(e, r);
1436
- if (n === "clip" || !V(c, r, { epsilon: 0 })) {
1437
- let e = Object.values(r.coords).map((e) => e.range || []);
1438
- c.coords = c.coords.map((t, n) => {
1439
- let [r, i] = e[n];
1440
- return r !== void 0 && (t = Math.max(r, t)), i !== void 0 && (t = Math.min(t, i)), t;
1441
- });
1442
- }
1443
- }
1444
- return r !== e.space && (c = K(c, e.space)), e.coords = c.coords, e;
1445
- }
1446
- G.returns = "color";
1447
- var zt = {
1448
- WHITE: {
1449
- space: B,
1450
- coords: [
1451
- 1,
1452
- 0,
1453
- 0
1454
- ]
1455
- },
1456
- BLACK: {
1457
- space: B,
1458
- coords: [
1459
- 0,
1460
- 0,
1461
- 0
1462
- ]
1463
- }
1464
- };
1465
- function Bt(e, { space: t } = {}) {
1466
- let n = .02, r = 1e-4;
1467
- e = D(e), t ||= e.space, t = O.get(t);
1468
- let i = O.get("oklch");
1469
- if (t.isUnbounded) return K(e, t);
1470
- let a = K(e, i), o = a.coords[0];
1471
- if (o >= 1) {
1472
- let n = K(zt.WHITE, t);
1473
- return n.alpha = e.alpha, K(n, t);
1474
- }
1475
- if (o <= 0) {
1476
- let n = K(zt.BLACK, t);
1477
- return n.alpha = e.alpha, K(n, t);
1478
- }
1479
- if (V(a, t, { epsilon: 0 })) return K(a, t);
1480
- function s(e) {
1481
- let n = K(e, t), r = Object.values(t.coords);
1482
- return n.coords = n.coords.map((e, t) => {
1483
- if ("range" in r[t]) {
1484
- let [n, i] = r[t].range;
1485
- return m(n, e, i);
1486
- }
1487
- return e;
1488
- }), n;
1489
- }
1490
- let c = 0, l = a.coords[1], u = !0, d = H(a), f = s(d), p = ve(f, d);
1491
- if (p < n) return f;
1492
- for (; l - c > r;) {
1493
- let e = (c + l) / 2;
1494
- if (d.coords[1] = e, u && V(d, t, { epsilon: 0 })) c = e;
1495
- else if (f = s(d), p = ve(f, d), p < n) {
1496
- if (n - p < r) break;
1497
- u = !1, c = e;
1498
- } else l = e;
1499
- }
1500
- return f;
1501
- }
1502
- function K(e, t, { inGamut: n } = {}) {
1503
- e = D(e), t = O.get(t);
1504
- let r = t.from(e), i = {
1505
- space: t,
1506
- coords: r,
1507
- alpha: e.alpha
1508
- };
1509
- return n && (i = G(i, n === !0 ? void 0 : n)), i;
1510
- }
1511
- K.returns = "color";
1512
- function Vt(e, { precision: t = x.precision, format: n = "default", inGamut: i = !0, ...a } = {}) {
1513
- let o;
1514
- e = D(e);
1515
- let s = n;
1516
- n = e.space.getFormat(n) ?? e.space.getFormat("default") ?? O.DEFAULT_FORMAT;
1517
- let c = e.coords.slice();
1518
- if (i ||= n.toGamut, i && !V(e) && (c = G(H(e), i === !0 ? void 0 : i).coords), n.type === "custom") if (a.precision = t, n.serialize) o = n.serialize(c, e.alpha, a);
1519
- else throw TypeError(`format ${s} can only be used to parse colors, not for serialization`);
1520
- else {
1521
- let i = n.name || "color";
1522
- n.serializeCoords ? c = n.serializeCoords(c, t) : t !== null && (c = c.map((e) => r(e, { precision: t })));
1523
- let a = [...c];
1524
- if (i === "color") {
1525
- let t = n.id || n.ids?.[0] || e.space.id;
1526
- a.unshift(t);
1527
- }
1528
- let s = e.alpha;
1529
- t !== null && (s = r(s, { precision: t }));
1530
- let l = e.alpha >= 1 || n.noAlpha ? "" : `${n.commas ? "," : " /"} ${s}`;
1531
- o = `${i}(${a.join(n.commas ? ", " : " ")}${l})`;
1532
- }
1533
- return o;
1534
- }
1535
- var Ht = new A({
1536
- id: "rec2020-linear",
1537
- cssId: "--rec2020-linear",
1538
- name: "Linear REC.2020",
1539
- white: "D65",
1540
- toXYZ_M: [
1541
- [
1542
- .6369580483012914,
1543
- .14461690358620832,
1544
- .1688809751641721
1545
- ],
1546
- [
1547
- .2627002120112671,
1548
- .6779980715188708,
1549
- .05930171646986196
1550
- ],
1551
- [
1552
- 0,
1553
- .028072693049087428,
1554
- 1.060985057710791
1555
- ]
1556
- ],
1557
- fromXYZ_M: [
1558
- [
1559
- 1.716651187971268,
1560
- -.355670783776392,
1561
- -.25336628137366
1562
- ],
1563
- [
1564
- -.666684351832489,
1565
- 1.616481236634939,
1566
- .0157685458139111
1567
- ],
1568
- [
1569
- .017639857445311,
1570
- -.042770613257809,
1571
- .942103121235474
1572
- ]
1573
- ]
1574
- }), Ut = 1.09929682680944, Wt = .018053968510807, Gt = new A({
1575
- id: "rec2020",
1576
- name: "REC.2020",
1577
- base: Ht,
1578
- toBase(e) {
1579
- return e.map(function(e) {
1580
- return e < Wt * 4.5 ? e / 4.5 : ((e + Ut - 1) / Ut) ** (1 / .45);
1581
- });
1582
- },
1583
- fromBase(e) {
1584
- return e.map(function(e) {
1585
- return e >= Wt ? Ut * e ** .45 - (Ut - 1) : 4.5 * e;
1586
- });
1587
- }
1588
- }), Kt = new A({
1589
- id: "p3-linear",
1590
- cssId: "--display-p3-linear",
1591
- name: "Linear P3",
1592
- white: "D65",
1593
- toXYZ_M: [
1594
- [
1595
- .4865709486482162,
1596
- .26566769316909306,
1597
- .1982172852343625
1598
- ],
1599
- [
1600
- .2289745640697488,
1601
- .6917385218365064,
1602
- .079286914093745
1603
- ],
1604
- [
1605
- 0,
1606
- .04511338185890264,
1607
- 1.043944368900976
1608
- ]
1609
- ],
1610
- fromXYZ_M: [
1611
- [
1612
- 2.493496911941425,
1613
- -.9313836179191239,
1614
- -.40271078445071684
1615
- ],
1616
- [
1617
- -.8294889695615747,
1618
- 1.7626640603183463,
1619
- .023624685841943577
1620
- ],
1621
- [
1622
- .03584583024378447,
1623
- -.07617238926804182,
1624
- .9568845240076872
1625
- ]
1626
- ]
1627
- }), qt = [
1628
- [
1629
- .41239079926595934,
1630
- .357584339383878,
1631
- .1804807884018343
1632
- ],
1633
- [
1634
- .21263900587151027,
1635
- .715168678767756,
1636
- .07219231536073371
1637
- ],
1638
- [
1639
- .01933081871559182,
1640
- .11919477979462598,
1641
- .9505321522496607
1642
- ]
1643
- ], q = [
1644
- [
1645
- 3.2409699419045226,
1646
- -1.537383177570094,
1647
- -.4986107602930034
1648
- ],
1649
- [
1650
- -.9692436362808796,
1651
- 1.8759675015077202,
1652
- .04155505740717559
1653
- ],
1654
- [
1655
- .05563007969699366,
1656
- -.20397695888897652,
1657
- 1.0569715142428786
1658
- ]
1659
- ], Jt = new A({
1660
- id: "srgb-linear",
1661
- name: "Linear sRGB",
1662
- white: "D65",
1663
- toXYZ_M: qt,
1664
- fromXYZ_M: q
1665
- }), Yt = {
1666
- aliceblue: [
1667
- 240 / 255,
1668
- 248 / 255,
1669
- 1
1670
- ],
1671
- antiquewhite: [
1672
- 250 / 255,
1673
- 235 / 255,
1674
- 215 / 255
1675
- ],
1676
- aqua: [
1677
- 0,
1678
- 1,
1679
- 1
1680
- ],
1681
- aquamarine: [
1682
- 127 / 255,
1683
- 1,
1684
- 212 / 255
1685
- ],
1686
- azure: [
1687
- 240 / 255,
1688
- 1,
1689
- 1
1690
- ],
1691
- beige: [
1692
- 245 / 255,
1693
- 245 / 255,
1694
- 220 / 255
1695
- ],
1696
- bisque: [
1697
- 1,
1698
- 228 / 255,
1699
- 196 / 255
1700
- ],
1701
- black: [
1702
- 0,
1703
- 0,
1704
- 0
1705
- ],
1706
- blanchedalmond: [
1707
- 1,
1708
- 235 / 255,
1709
- 205 / 255
1710
- ],
1711
- blue: [
1712
- 0,
1713
- 0,
1714
- 1
1715
- ],
1716
- blueviolet: [
1717
- 138 / 255,
1718
- 43 / 255,
1719
- 226 / 255
1720
- ],
1721
- brown: [
1722
- 165 / 255,
1723
- 42 / 255,
1724
- 42 / 255
1725
- ],
1726
- burlywood: [
1727
- 222 / 255,
1728
- 184 / 255,
1729
- 135 / 255
1730
- ],
1731
- cadetblue: [
1732
- 95 / 255,
1733
- 158 / 255,
1734
- 160 / 255
1735
- ],
1736
- chartreuse: [
1737
- 127 / 255,
1738
- 1,
1739
- 0
1740
- ],
1741
- chocolate: [
1742
- 210 / 255,
1743
- 105 / 255,
1744
- 30 / 255
1745
- ],
1746
- coral: [
1747
- 1,
1748
- 127 / 255,
1749
- 80 / 255
1750
- ],
1751
- cornflowerblue: [
1752
- 100 / 255,
1753
- 149 / 255,
1754
- 237 / 255
1755
- ],
1756
- cornsilk: [
1757
- 1,
1758
- 248 / 255,
1759
- 220 / 255
1760
- ],
1761
- crimson: [
1762
- 220 / 255,
1763
- 20 / 255,
1764
- 60 / 255
1765
- ],
1766
- cyan: [
1767
- 0,
1768
- 1,
1769
- 1
1770
- ],
1771
- darkblue: [
1772
- 0,
1773
- 0,
1774
- 139 / 255
1775
- ],
1776
- darkcyan: [
1777
- 0,
1778
- 139 / 255,
1779
- 139 / 255
1780
- ],
1781
- darkgoldenrod: [
1782
- 184 / 255,
1783
- 134 / 255,
1784
- 11 / 255
1785
- ],
1786
- darkgray: [
1787
- 169 / 255,
1788
- 169 / 255,
1789
- 169 / 255
1790
- ],
1791
- darkgreen: [
1792
- 0,
1793
- 100 / 255,
1794
- 0
1795
- ],
1796
- darkgrey: [
1797
- 169 / 255,
1798
- 169 / 255,
1799
- 169 / 255
1800
- ],
1801
- darkkhaki: [
1802
- 189 / 255,
1803
- 183 / 255,
1804
- 107 / 255
1805
- ],
1806
- darkmagenta: [
1807
- 139 / 255,
1808
- 0,
1809
- 139 / 255
1810
- ],
1811
- darkolivegreen: [
1812
- 85 / 255,
1813
- 107 / 255,
1814
- 47 / 255
1815
- ],
1816
- darkorange: [
1817
- 1,
1818
- 140 / 255,
1819
- 0
1820
- ],
1821
- darkorchid: [
1822
- 153 / 255,
1823
- 50 / 255,
1824
- 204 / 255
1825
- ],
1826
- darkred: [
1827
- 139 / 255,
1828
- 0,
1829
- 0
1830
- ],
1831
- darksalmon: [
1832
- 233 / 255,
1833
- 150 / 255,
1834
- 122 / 255
1835
- ],
1836
- darkseagreen: [
1837
- 143 / 255,
1838
- 188 / 255,
1839
- 143 / 255
1840
- ],
1841
- darkslateblue: [
1842
- 72 / 255,
1843
- 61 / 255,
1844
- 139 / 255
1845
- ],
1846
- darkslategray: [
1847
- 47 / 255,
1848
- 79 / 255,
1849
- 79 / 255
1850
- ],
1851
- darkslategrey: [
1852
- 47 / 255,
1853
- 79 / 255,
1854
- 79 / 255
1855
- ],
1856
- darkturquoise: [
1857
- 0,
1858
- 206 / 255,
1859
- 209 / 255
1860
- ],
1861
- darkviolet: [
1862
- 148 / 255,
1863
- 0,
1864
- 211 / 255
1865
- ],
1866
- deeppink: [
1867
- 1,
1868
- 20 / 255,
1869
- 147 / 255
1870
- ],
1871
- deepskyblue: [
1872
- 0,
1873
- 191 / 255,
1874
- 1
1875
- ],
1876
- dimgray: [
1877
- 105 / 255,
1878
- 105 / 255,
1879
- 105 / 255
1880
- ],
1881
- dimgrey: [
1882
- 105 / 255,
1883
- 105 / 255,
1884
- 105 / 255
1885
- ],
1886
- dodgerblue: [
1887
- 30 / 255,
1888
- 144 / 255,
1889
- 1
1890
- ],
1891
- firebrick: [
1892
- 178 / 255,
1893
- 34 / 255,
1894
- 34 / 255
1895
- ],
1896
- floralwhite: [
1897
- 1,
1898
- 250 / 255,
1899
- 240 / 255
1900
- ],
1901
- forestgreen: [
1902
- 34 / 255,
1903
- 139 / 255,
1904
- 34 / 255
1905
- ],
1906
- fuchsia: [
1907
- 1,
1908
- 0,
1909
- 1
1910
- ],
1911
- gainsboro: [
1912
- 220 / 255,
1913
- 220 / 255,
1914
- 220 / 255
1915
- ],
1916
- ghostwhite: [
1917
- 248 / 255,
1918
- 248 / 255,
1919
- 1
1920
- ],
1921
- gold: [
1922
- 1,
1923
- 215 / 255,
1924
- 0
1925
- ],
1926
- goldenrod: [
1927
- 218 / 255,
1928
- 165 / 255,
1929
- 32 / 255
1930
- ],
1931
- gray: [
1932
- 128 / 255,
1933
- 128 / 255,
1934
- 128 / 255
1935
- ],
1936
- green: [
1937
- 0,
1938
- 128 / 255,
1939
- 0
1940
- ],
1941
- greenyellow: [
1942
- 173 / 255,
1943
- 1,
1944
- 47 / 255
1945
- ],
1946
- grey: [
1947
- 128 / 255,
1948
- 128 / 255,
1949
- 128 / 255
1950
- ],
1951
- honeydew: [
1952
- 240 / 255,
1953
- 1,
1954
- 240 / 255
1955
- ],
1956
- hotpink: [
1957
- 1,
1958
- 105 / 255,
1959
- 180 / 255
1960
- ],
1961
- indianred: [
1962
- 205 / 255,
1963
- 92 / 255,
1964
- 92 / 255
1965
- ],
1966
- indigo: [
1967
- 75 / 255,
1968
- 0,
1969
- 130 / 255
1970
- ],
1971
- ivory: [
1972
- 1,
1973
- 1,
1974
- 240 / 255
1975
- ],
1976
- khaki: [
1977
- 240 / 255,
1978
- 230 / 255,
1979
- 140 / 255
1980
- ],
1981
- lavender: [
1982
- 230 / 255,
1983
- 230 / 255,
1984
- 250 / 255
1985
- ],
1986
- lavenderblush: [
1987
- 1,
1988
- 240 / 255,
1989
- 245 / 255
1990
- ],
1991
- lawngreen: [
1992
- 124 / 255,
1993
- 252 / 255,
1994
- 0
1995
- ],
1996
- lemonchiffon: [
1997
- 1,
1998
- 250 / 255,
1999
- 205 / 255
2000
- ],
2001
- lightblue: [
2002
- 173 / 255,
2003
- 216 / 255,
2004
- 230 / 255
2005
- ],
2006
- lightcoral: [
2007
- 240 / 255,
2008
- 128 / 255,
2009
- 128 / 255
2010
- ],
2011
- lightcyan: [
2012
- 224 / 255,
2013
- 1,
2014
- 1
2015
- ],
2016
- lightgoldenrodyellow: [
2017
- 250 / 255,
2018
- 250 / 255,
2019
- 210 / 255
2020
- ],
2021
- lightgray: [
2022
- 211 / 255,
2023
- 211 / 255,
2024
- 211 / 255
2025
- ],
2026
- lightgreen: [
2027
- 144 / 255,
2028
- 238 / 255,
2029
- 144 / 255
2030
- ],
2031
- lightgrey: [
2032
- 211 / 255,
2033
- 211 / 255,
2034
- 211 / 255
2035
- ],
2036
- lightpink: [
2037
- 1,
2038
- 182 / 255,
2039
- 193 / 255
2040
- ],
2041
- lightsalmon: [
2042
- 1,
2043
- 160 / 255,
2044
- 122 / 255
2045
- ],
2046
- lightseagreen: [
2047
- 32 / 255,
2048
- 178 / 255,
2049
- 170 / 255
2050
- ],
2051
- lightskyblue: [
2052
- 135 / 255,
2053
- 206 / 255,
2054
- 250 / 255
2055
- ],
2056
- lightslategray: [
2057
- 119 / 255,
2058
- 136 / 255,
2059
- 153 / 255
2060
- ],
2061
- lightslategrey: [
2062
- 119 / 255,
2063
- 136 / 255,
2064
- 153 / 255
2065
- ],
2066
- lightsteelblue: [
2067
- 176 / 255,
2068
- 196 / 255,
2069
- 222 / 255
2070
- ],
2071
- lightyellow: [
2072
- 1,
2073
- 1,
2074
- 224 / 255
2075
- ],
2076
- lime: [
2077
- 0,
2078
- 1,
2079
- 0
2080
- ],
2081
- limegreen: [
2082
- 50 / 255,
2083
- 205 / 255,
2084
- 50 / 255
2085
- ],
2086
- linen: [
2087
- 250 / 255,
2088
- 240 / 255,
2089
- 230 / 255
2090
- ],
2091
- magenta: [
2092
- 1,
2093
- 0,
2094
- 1
2095
- ],
2096
- maroon: [
2097
- 128 / 255,
2098
- 0,
2099
- 0
2100
- ],
2101
- mediumaquamarine: [
2102
- 102 / 255,
2103
- 205 / 255,
2104
- 170 / 255
2105
- ],
2106
- mediumblue: [
2107
- 0,
2108
- 0,
2109
- 205 / 255
2110
- ],
2111
- mediumorchid: [
2112
- 186 / 255,
2113
- 85 / 255,
2114
- 211 / 255
2115
- ],
2116
- mediumpurple: [
2117
- 147 / 255,
2118
- 112 / 255,
2119
- 219 / 255
2120
- ],
2121
- mediumseagreen: [
2122
- 60 / 255,
2123
- 179 / 255,
2124
- 113 / 255
2125
- ],
2126
- mediumslateblue: [
2127
- 123 / 255,
2128
- 104 / 255,
2129
- 238 / 255
2130
- ],
2131
- mediumspringgreen: [
2132
- 0,
2133
- 250 / 255,
2134
- 154 / 255
2135
- ],
2136
- mediumturquoise: [
2137
- 72 / 255,
2138
- 209 / 255,
2139
- 204 / 255
2140
- ],
2141
- mediumvioletred: [
2142
- 199 / 255,
2143
- 21 / 255,
2144
- 133 / 255
2145
- ],
2146
- midnightblue: [
2147
- 25 / 255,
2148
- 25 / 255,
2149
- 112 / 255
2150
- ],
2151
- mintcream: [
2152
- 245 / 255,
2153
- 1,
2154
- 250 / 255
2155
- ],
2156
- mistyrose: [
2157
- 1,
2158
- 228 / 255,
2159
- 225 / 255
2160
- ],
2161
- moccasin: [
2162
- 1,
2163
- 228 / 255,
2164
- 181 / 255
2165
- ],
2166
- navajowhite: [
2167
- 1,
2168
- 222 / 255,
2169
- 173 / 255
2170
- ],
2171
- navy: [
2172
- 0,
2173
- 0,
2174
- 128 / 255
2175
- ],
2176
- oldlace: [
2177
- 253 / 255,
2178
- 245 / 255,
2179
- 230 / 255
2180
- ],
2181
- olive: [
2182
- 128 / 255,
2183
- 128 / 255,
2184
- 0
2185
- ],
2186
- olivedrab: [
2187
- 107 / 255,
2188
- 142 / 255,
2189
- 35 / 255
2190
- ],
2191
- orange: [
2192
- 1,
2193
- 165 / 255,
2194
- 0
2195
- ],
2196
- orangered: [
2197
- 1,
2198
- 69 / 255,
2199
- 0
2200
- ],
2201
- orchid: [
2202
- 218 / 255,
2203
- 112 / 255,
2204
- 214 / 255
2205
- ],
2206
- palegoldenrod: [
2207
- 238 / 255,
2208
- 232 / 255,
2209
- 170 / 255
2210
- ],
2211
- palegreen: [
2212
- 152 / 255,
2213
- 251 / 255,
2214
- 152 / 255
2215
- ],
2216
- paleturquoise: [
2217
- 175 / 255,
2218
- 238 / 255,
2219
- 238 / 255
2220
- ],
2221
- palevioletred: [
2222
- 219 / 255,
2223
- 112 / 255,
2224
- 147 / 255
2225
- ],
2226
- papayawhip: [
2227
- 1,
2228
- 239 / 255,
2229
- 213 / 255
2230
- ],
2231
- peachpuff: [
2232
- 1,
2233
- 218 / 255,
2234
- 185 / 255
2235
- ],
2236
- peru: [
2237
- 205 / 255,
2238
- 133 / 255,
2239
- 63 / 255
2240
- ],
2241
- pink: [
2242
- 1,
2243
- 192 / 255,
2244
- 203 / 255
2245
- ],
2246
- plum: [
2247
- 221 / 255,
2248
- 160 / 255,
2249
- 221 / 255
2250
- ],
2251
- powderblue: [
2252
- 176 / 255,
2253
- 224 / 255,
2254
- 230 / 255
2255
- ],
2256
- purple: [
2257
- 128 / 255,
2258
- 0,
2259
- 128 / 255
2260
- ],
2261
- rebeccapurple: [
2262
- 102 / 255,
2263
- 51 / 255,
2264
- 153 / 255
2265
- ],
2266
- red: [
2267
- 1,
2268
- 0,
2269
- 0
2270
- ],
2271
- rosybrown: [
2272
- 188 / 255,
2273
- 143 / 255,
2274
- 143 / 255
2275
- ],
2276
- royalblue: [
2277
- 65 / 255,
2278
- 105 / 255,
2279
- 225 / 255
2280
- ],
2281
- saddlebrown: [
2282
- 139 / 255,
2283
- 69 / 255,
2284
- 19 / 255
2285
- ],
2286
- salmon: [
2287
- 250 / 255,
2288
- 128 / 255,
2289
- 114 / 255
2290
- ],
2291
- sandybrown: [
2292
- 244 / 255,
2293
- 164 / 255,
2294
- 96 / 255
2295
- ],
2296
- seagreen: [
2297
- 46 / 255,
2298
- 139 / 255,
2299
- 87 / 255
2300
- ],
2301
- seashell: [
2302
- 1,
2303
- 245 / 255,
2304
- 238 / 255
2305
- ],
2306
- sienna: [
2307
- 160 / 255,
2308
- 82 / 255,
2309
- 45 / 255
2310
- ],
2311
- silver: [
2312
- 192 / 255,
2313
- 192 / 255,
2314
- 192 / 255
2315
- ],
2316
- skyblue: [
2317
- 135 / 255,
2318
- 206 / 255,
2319
- 235 / 255
2320
- ],
2321
- slateblue: [
2322
- 106 / 255,
2323
- 90 / 255,
2324
- 205 / 255
2325
- ],
2326
- slategray: [
2327
- 112 / 255,
2328
- 128 / 255,
2329
- 144 / 255
2330
- ],
2331
- slategrey: [
2332
- 112 / 255,
2333
- 128 / 255,
2334
- 144 / 255
2335
- ],
2336
- snow: [
2337
- 1,
2338
- 250 / 255,
2339
- 250 / 255
2340
- ],
2341
- springgreen: [
2342
- 0,
2343
- 1,
2344
- 127 / 255
2345
- ],
2346
- steelblue: [
2347
- 70 / 255,
2348
- 130 / 255,
2349
- 180 / 255
2350
- ],
2351
- tan: [
2352
- 210 / 255,
2353
- 180 / 255,
2354
- 140 / 255
2355
- ],
2356
- teal: [
2357
- 0,
2358
- 128 / 255,
2359
- 128 / 255
2360
- ],
2361
- thistle: [
2362
- 216 / 255,
2363
- 191 / 255,
2364
- 216 / 255
2365
- ],
2366
- tomato: [
2367
- 1,
2368
- 99 / 255,
2369
- 71 / 255
2370
- ],
2371
- turquoise: [
2372
- 64 / 255,
2373
- 224 / 255,
2374
- 208 / 255
2375
- ],
2376
- violet: [
2377
- 238 / 255,
2378
- 130 / 255,
2379
- 238 / 255
2380
- ],
2381
- wheat: [
2382
- 245 / 255,
2383
- 222 / 255,
2384
- 179 / 255
2385
- ],
2386
- white: [
2387
- 1,
2388
- 1,
2389
- 1
2390
- ],
2391
- whitesmoke: [
2392
- 245 / 255,
2393
- 245 / 255,
2394
- 245 / 255
2395
- ],
2396
- yellow: [
2397
- 1,
2398
- 1,
2399
- 0
2400
- ],
2401
- yellowgreen: [
2402
- 154 / 255,
2403
- 205 / 255,
2404
- 50 / 255
2405
- ]
2406
- }, Xt = [
2407
- ,
2408
- ,
2409
- ,
2410
- ].fill("<percentage> | <number>[0, 255]"), Zt = [
2411
- ,
2412
- ,
2413
- ,
2414
- ].fill("<number>[0, 255]"), J = new A({
2415
- id: "srgb",
2416
- name: "sRGB",
2417
- base: Jt,
2418
- fromBase: (e) => e.map((e) => {
2419
- let t = e < 0 ? -1 : 1, n = e * t;
2420
- return n > .0031308 ? t * (1.055 * n ** (1 / 2.4) - .055) : 12.92 * e;
2421
- }),
2422
- toBase: (e) => e.map((e) => {
2423
- let t = e < 0 ? -1 : 1, n = e * t;
2424
- return n <= .04045 ? e / 12.92 : t * ((n + .055) / 1.055) ** 2.4;
2425
- }),
2426
- formats: {
2427
- rgb: { coords: Xt },
2428
- rgb_number: {
2429
- name: "rgb",
2430
- commas: !0,
2431
- coords: Zt,
2432
- noAlpha: !0
2433
- },
2434
- color: {},
2435
- rgba: {
2436
- coords: Xt,
2437
- commas: !0,
2438
- lastAlpha: !0
2439
- },
2440
- rgba_number: {
2441
- name: "rgba",
2442
- commas: !0,
2443
- coords: Zt
2444
- },
2445
- hex: {
2446
- type: "custom",
2447
- toGamut: !0,
2448
- test: (e) => /^#([a-f0-9]{3,4}){1,2}$/i.test(e),
2449
- parse(e) {
2450
- e.length <= 5 && (e = e.replace(/[a-f0-9]/gi, "$&$&"));
2451
- let t = [];
2452
- return e.replace(/[a-f0-9]{2}/gi, (e) => {
2453
- t.push(parseInt(e, 16) / 255);
2454
- }), {
2455
- spaceId: "srgb",
2456
- coords: t.slice(0, 3),
2457
- alpha: t.slice(3)[0]
2458
- };
2459
- },
2460
- serialize: (e, t, { collapse: n = !0 } = {}) => {
2461
- t < 1 && e.push(t), e = e.map((e) => Math.round(e * 255));
2462
- let r = n && e.every((e) => e % 17 == 0);
2463
- return "#" + e.map((e) => r ? (e / 17).toString(16) : e.toString(16).padStart(2, "0")).join("");
2464
- }
2465
- },
2466
- keyword: {
2467
- type: "custom",
2468
- test: (e) => /^[a-z]+$/i.test(e),
2469
- parse(e) {
2470
- e = e.toLowerCase();
2471
- let t = {
2472
- spaceId: "srgb",
2473
- coords: null,
2474
- alpha: 1
2475
- };
2476
- if (e === "transparent" ? (t.coords = Yt.black, t.alpha = 0) : t.coords = Yt[e], t.coords) return t;
2477
- }
2478
- }
2479
- }
2480
- }), Qt = new A({
2481
- id: "p3",
2482
- cssId: "display-p3",
2483
- name: "P3",
2484
- base: Kt,
2485
- fromBase: J.fromBase,
2486
- toBase: J.toBase
2487
- });
2488
- x.display_space = J;
2489
- var $t;
2490
- if (typeof CSS < "u" && CSS.supports) for (let e of [
2491
- I,
2492
- Gt,
2493
- Qt
2494
- ]) {
2495
- let t = Vt({
2496
- space: e,
2497
- coords: e.getMinCoords(),
2498
- alpha: 1
2499
- });
2500
- if (CSS.supports("color", t)) {
2501
- x.display_space = e;
2502
- break;
2503
- }
2504
- }
2505
- function en(e, { space: t = x.display_space, ...n } = {}) {
2506
- let r = Vt(e, n);
2507
- if (typeof CSS > "u" || CSS.supports("color", r) || !x.display_space) r = new String(r), r.color = e;
2508
- else {
2509
- let o = e;
2510
- if ((e.coords.some(i) || i(e.alpha)) && !($t ??= CSS.supports("color", "hsl(none 50% 50%)")) && (o = H(e), o.coords = o.coords.map(a), o.alpha = a(o.alpha), r = Vt(o, n), CSS.supports("color", r))) return r = new String(r), r.color = o, r;
2511
- o = K(o, t), r = new String(Vt(o, n)), r.color = o;
2512
- }
2513
- return r;
2514
- }
2515
- function tn(e, t) {
2516
- return e = D(e), t = D(t), e.space === t.space && e.alpha === t.alpha && e.coords.every((e, n) => e === t.coords[n]);
2517
- }
2518
- function Y(e) {
2519
- return M(e, [k, "y"]);
2520
- }
2521
- function nn(e, t) {
2522
- P(e, [k, "y"], t);
2523
- }
2524
- function rn(e) {
2525
- Object.defineProperty(e.prototype, "luminance", {
2526
- get() {
2527
- return Y(this);
2528
- },
2529
- set(e) {
2530
- nn(this, e);
2531
- }
2532
- });
2533
- }
2534
- var an = /*#__PURE__*/ Object.freeze({
2535
- __proto__: null,
2536
- getLuminance: Y,
2537
- register: rn,
2538
- setLuminance: nn
2539
- });
2540
- function on(e, t) {
2541
- e = D(e), t = D(t);
2542
- let n = Math.max(Y(e), 0), r = Math.max(Y(t), 0);
2543
- return r > n && ([n, r] = [r, n]), (n + .05) / (r + .05);
2544
- }
2545
- var sn = .56, cn = .57, ln = .62, un = .65, dn = .022, fn = 1.414, pn = .1, mn = 5e-4, hn = 1.14, gn = .027, _n = 1.14;
2546
- function vn(e) {
2547
- return e >= dn ? e : e + (dn - e) ** fn;
2548
- }
2549
- function X(e) {
2550
- return (e < 0 ? -1 : 1) * Math.abs(e) ** 2.4;
2551
- }
2552
- function yn(e, t) {
2553
- t = D(t), e = D(e);
2554
- let n, r, i, a, o, s;
2555
- t = K(t, "srgb"), [a, o, s] = t.coords;
2556
- let c = X(a) * .2126729 + X(o) * .7151522 + X(s) * .072175;
2557
- e = K(e, "srgb"), [a, o, s] = e.coords;
2558
- let l = X(a) * .2126729 + X(o) * .7151522 + X(s) * .072175, u = vn(c), d = vn(l), f = d > u;
2559
- return Math.abs(d - u) < mn ? r = 0 : f ? (n = d ** sn - u ** cn, r = n * hn) : (n = d ** un - u ** ln, r = n * _n), i = Math.abs(r) < pn ? 0 : r > 0 ? r - gn : r + gn, i * 100;
2560
- }
2561
- function bn(e, t) {
2562
- e = D(e), t = D(t);
2563
- let n = Math.max(Y(e), 0), r = Math.max(Y(t), 0);
2564
- r > n && ([n, r] = [r, n]);
2565
- let i = n + r;
2566
- return i === 0 ? 0 : (n - r) / i;
2567
- }
2568
- var xn = 5e4;
2569
- function Sn(e, t) {
2570
- e = D(e), t = D(t);
2571
- let n = Math.max(Y(e), 0), r = Math.max(Y(t), 0);
2572
- return r > n && ([n, r] = [r, n]), r === 0 ? xn : (n - r) / r;
2573
- }
2574
- function Cn(e, t) {
2575
- e = D(e), t = D(t);
2576
- let n = M(e, [I, "l"]), r = M(t, [I, "l"]);
2577
- return Math.abs(n - r);
2578
- }
2579
- var wn = 216 / 24389, Tn = 24 / 116, En = 24389 / 27, Dn = S.D65, On = new O({
2580
- id: "lab-d65",
2581
- name: "Lab D65",
2582
- coords: {
2583
- l: {
2584
- refRange: [0, 100],
2585
- name: "Lightness"
2586
- },
2587
- a: { refRange: [-125, 125] },
2588
- b: { refRange: [-125, 125] }
2589
- },
2590
- white: Dn,
2591
- base: k,
2592
- fromBase(e) {
2593
- let t = e.map((e, t) => e / Dn[t]).map((e) => e > wn ? Math.cbrt(e) : (En * e + 16) / 116);
2594
- return [
2595
- 116 * t[1] - 16,
2596
- 500 * (t[0] - t[1]),
2597
- 200 * (t[1] - t[2])
2598
- ];
2599
- },
2600
- toBase(e) {
2601
- let t = [];
2602
- return t[1] = (e[0] + 16) / 116, t[0] = e[1] / 500 + t[1], t[2] = t[1] - e[2] / 200, [
2603
- t[0] > Tn ? t[0] ** 3 : (116 * t[0] - 16) / En,
2604
- e[0] > 8 ? ((e[0] + 16) / 116) ** 3 : e[0] / En,
2605
- t[2] > Tn ? t[2] ** 3 : (116 * t[2] - 16) / En
2606
- ].map((e, t) => e * Dn[t]);
2607
- },
2608
- formats: { "lab-d65": { coords: [
2609
- "<number> | <percentage>",
2610
- "<number> | <percentage>[-1,1]",
2611
- "<number> | <percentage>[-1,1]"
2612
- ] } }
2613
- }), kn = 5 ** .5 * .5 + .5;
2614
- function An(e, t) {
2615
- e = D(e), t = D(t);
2616
- let n = M(e, [On, "l"]), r = M(t, [On, "l"]), i = Math.abs(n ** +kn - r ** +kn) ** (1 / kn) * Math.SQRT2 - 40;
2617
- return i < 7.5 ? 0 : i;
2618
- }
2619
- var jn = /*#__PURE__*/ Object.freeze({
2620
- __proto__: null,
2621
- contrastAPCA: yn,
2622
- contrastDeltaPhi: An,
2623
- contrastLstar: Cn,
2624
- contrastMichelson: bn,
2625
- contrastWCAG21: on,
2626
- contrastWeber: Sn
2627
- });
2628
- function Mn(e, n, r = {}) {
2629
- t(r) && (r = { algorithm: r });
2630
- let { algorithm: i, ...a } = r;
2631
- if (!i) {
2632
- let e = Object.keys(jn).map((e) => e.replace(/^contrast/, "")).join(", ");
2633
- throw TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${e}`);
2634
- }
2635
- e = D(e), n = D(n);
2636
- for (let t in jn) if ("contrast" + i.toLowerCase() === t.toLowerCase()) return jn[t](e, n, a);
2637
- throw TypeError(`Unknown contrast algorithm: ${i}`);
2638
- }
2639
- function Nn(e) {
2640
- let [t, n, r] = j(e, k), i = t + 15 * n + 3 * r;
2641
- return [4 * t / i, 9 * n / i];
2642
- }
2643
- function Pn(e) {
2644
- let [t, n, r] = j(e, k), i = t + n + r;
2645
- return [t / i, n / i];
2646
- }
2647
- function Fn(e) {
2648
- Object.defineProperty(e.prototype, "uv", { get() {
2649
- return Nn(this);
2650
- } }), Object.defineProperty(e.prototype, "xy", { get() {
2651
- return Pn(this);
2652
- } });
2653
- }
2654
- var In = /*#__PURE__*/ Object.freeze({
2655
- __proto__: null,
2656
- register: Fn,
2657
- uv: Nn,
2658
- xy: Pn
2659
- });
2660
- function Ln(e, n, r = {}) {
2661
- t(r) && (r = { method: r });
2662
- let { method: i = x.deltaE, ...a } = r;
2663
- for (let t in W) if ("deltae" + i.toLowerCase() === t.toLowerCase()) return W[t](e, n, a);
2664
- throw TypeError(`Unknown deltaE method: ${i}`);
2665
- }
2666
- function Rn(e, t = .25) {
2667
- return P(e, [O.get("oklch", "lch"), "l"], (e) => e * (1 + t));
2668
- }
2669
- function zn(e, t = .25) {
2670
- return P(e, [O.get("oklch", "lch"), "l"], (e) => e * (1 - t));
2671
- }
2672
- var Bn = /*#__PURE__*/ Object.freeze({
2673
- __proto__: null,
2674
- darken: zn,
2675
- lighten: Rn
2676
- });
2677
- function Vn(e, t, r = .5, i = {}) {
2678
- return [e, t] = [D(e), D(t)], n(r) === "object" && ([r, i] = [.5, r]), Un(e, t, i)(r);
2679
- }
2680
- function Hn(e, t, n = {}) {
2681
- let r;
2682
- Wn(e) && ([r, n] = [e, t], [e, t] = r.rangeArgs.colors);
2683
- let { maxDeltaE: i, deltaEMethod: a, steps: o = 2, maxSteps: s = 1e3, ...c } = n;
2684
- r ||= ([e, t] = [D(e), D(t)], Un(e, t, c));
2685
- let l = Ln(e, t), u = i > 0 ? Math.max(o, Math.ceil(l / i) + 1) : o, d = [];
2686
- if (s !== void 0 && (u = Math.min(u, s)), u === 1) d = [{
2687
- p: .5,
2688
- color: r(.5)
2689
- }];
2690
- else {
2691
- let e = 1 / (u - 1);
2692
- d = Array.from({ length: u }, (t, n) => {
2693
- let i = n * e;
2694
- return {
2695
- p: i,
2696
- color: r(i)
2697
- };
2698
- });
2699
- }
2700
- if (i > 0) {
2701
- let e = d.reduce((e, t, n) => {
2702
- if (n === 0) return 0;
2703
- let r = Ln(t.color, d[n - 1].color, a);
2704
- return Math.max(e, r);
2705
- }, 0);
2706
- for (; e > i;) {
2707
- e = 0;
2708
- for (let t = 1; t < d.length && d.length < s; t++) {
2709
- let n = d[t - 1], i = d[t], a = (i.p + n.p) / 2, o = r(a);
2710
- e = Math.max(e, Ln(o, n.color), Ln(o, i.color)), d.splice(t, 0, {
2711
- p: a,
2712
- color: r(a)
2713
- }), t++;
2714
- }
2715
- }
2716
- }
2717
- return d = d.map((e) => e.color), d;
2718
- }
2719
- function Un(e, t, n = {}) {
2720
- if (Wn(e)) {
2721
- let [n, r] = [e, t];
2722
- return Un(...n.rangeArgs.colors, {
2723
- ...n.rangeArgs.options,
2724
- ...r
2725
- });
2726
- }
2727
- let { space: r, outputSpace: i, progression: a, premultiplied: o } = n;
2728
- e = D(e), t = D(t), e = H(e), t = H(t);
2729
- let s = {
2730
- colors: [e, t],
2731
- options: n
2732
- };
2733
- if (r = r ? O.get(r) : O.registry[x.interpolationSpace] || e.space, i = i ? O.get(i) : r, e = K(e, r), t = K(t, r), e = G(e), t = G(t), r.coords.h && r.coords.h.type === "angle") {
2734
- let i = n.hue = n.hue || "shorter", a = [r, "h"], [o, s] = [M(e, a), M(t, a)];
2735
- isNaN(o) && !isNaN(s) ? o = s : isNaN(s) && !isNaN(o) && (s = o), [o, s] = ce(i, [o, s]), P(e, a, o), P(t, a, s);
2736
- }
2737
- return o && (e.coords = e.coords.map((t) => t * e.alpha), t.coords = t.coords.map((e) => e * t.alpha)), Object.assign((n) => {
2738
- n = a ? a(n) : n;
2739
- let s = e.coords.map((e, r) => {
2740
- let i = t.coords[r];
2741
- return u(e, i, n);
2742
- }), c = u(e.alpha, t.alpha, n), l = {
2743
- space: r,
2744
- coords: s,
2745
- alpha: c
2746
- };
2747
- return o && (l.coords = l.coords.map((e) => e / c)), i !== r && (l = K(l, i)), l;
2748
- }, { rangeArgs: s });
2749
- }
2750
- function Wn(e) {
2751
- return n(e) === "function" && !!e.rangeArgs;
2752
- }
2753
- x.interpolationSpace = "lab";
2754
- function Gn(e) {
2755
- e.defineFunction("mix", Vn, { returns: "color" }), e.defineFunction("range", Un, { returns: "function<color>" }), e.defineFunction("steps", Hn, { returns: "array<color>" });
2756
- }
2757
- var Kn = /*#__PURE__*/ Object.freeze({
2758
- __proto__: null,
2759
- isRange: Wn,
2760
- mix: Vn,
2761
- range: Un,
2762
- register: Gn,
2763
- steps: Hn
2764
- }), qn = new O({
2765
- id: "hsl",
2766
- name: "HSL",
2767
- coords: {
2768
- h: {
2769
- refRange: [0, 360],
2770
- type: "angle",
2771
- name: "Hue"
2772
- },
2773
- s: {
2774
- range: [0, 100],
2775
- name: "Saturation"
2776
- },
2777
- l: {
2778
- range: [0, 100],
2779
- name: "Lightness"
2780
- }
2781
- },
2782
- base: J,
2783
- fromBase: (e) => {
2784
- let t = Math.max(...e), n = Math.min(...e), [r, i, a] = e, [o, s, c] = [
2785
- NaN,
2786
- 0,
2787
- (n + t) / 2
2788
- ], l = t - n;
2789
- if (l !== 0) {
2790
- switch (s = c === 0 || c === 1 ? 0 : (t - c) / Math.min(c, 1 - c), t) {
2791
- case r:
2792
- o = (i - a) / l + (i < a ? 6 : 0);
2793
- break;
2794
- case i:
2795
- o = (a - r) / l + 2;
2796
- break;
2797
- case a: o = (r - i) / l + 4;
2798
- }
2799
- o *= 60;
2800
- }
2801
- return s < 0 && (o += 180, s = Math.abs(s)), o >= 360 && (o -= 360), [
2802
- o,
2803
- s * 100,
2804
- c * 100
2805
- ];
2806
- },
2807
- toBase: (e) => {
2808
- let [t, n, r] = e;
2809
- t %= 360, t < 0 && (t += 360), n /= 100, r /= 100;
2810
- function i(e) {
2811
- let i = (e + t / 30) % 12, a = n * Math.min(r, 1 - r);
2812
- return r - a * Math.max(-1, Math.min(i - 3, 9 - i, 1));
2813
- }
2814
- return [
2815
- i(0),
2816
- i(8),
2817
- i(4)
2818
- ];
2819
- },
2820
- formats: {
2821
- hsl: { coords: [
2822
- "<number> | <angle>",
2823
- "<percentage>",
2824
- "<percentage>"
2825
- ] },
2826
- hsla: {
2827
- coords: [
2828
- "<number> | <angle>",
2829
- "<percentage>",
2830
- "<percentage>"
2831
- ],
2832
- commas: !0,
2833
- lastAlpha: !0
2834
- }
2835
- }
2836
- }), Jn = new O({
2837
- id: "hsv",
2838
- name: "HSV",
2839
- coords: {
2840
- h: {
2841
- refRange: [0, 360],
2842
- type: "angle",
2843
- name: "Hue"
2844
- },
2845
- s: {
2846
- range: [0, 100],
2847
- name: "Saturation"
2848
- },
2849
- v: {
2850
- range: [0, 100],
2851
- name: "Value"
2852
- }
2853
- },
2854
- base: qn,
2855
- fromBase(e) {
2856
- let [t, n, r] = e;
2857
- n /= 100, r /= 100;
2858
- let i = r + n * Math.min(r, 1 - r);
2859
- return [
2860
- t,
2861
- i === 0 ? 0 : 200 * (1 - r / i),
2862
- 100 * i
2863
- ];
2864
- },
2865
- toBase(e) {
2866
- let [t, n, r] = e;
2867
- n /= 100, r /= 100;
2868
- let i = r * (1 - n / 2);
2869
- return [
2870
- t,
2871
- i === 0 || i === 1 ? 0 : (r - i) / Math.min(i, 1 - i) * 100,
2872
- i * 100
2873
- ];
2874
- },
2875
- formats: { color: {
2876
- id: "--hsv",
2877
- coords: [
2878
- "<number> | <angle>",
2879
- "<percentage> | <number>",
2880
- "<percentage> | <number>"
2881
- ]
2882
- } }
2883
- }), Yn = new O({
2884
- id: "hwb",
2885
- name: "HWB",
2886
- coords: {
2887
- h: {
2888
- refRange: [0, 360],
2889
- type: "angle",
2890
- name: "Hue"
2891
- },
2892
- w: {
2893
- range: [0, 100],
2894
- name: "Whiteness"
2895
- },
2896
- b: {
2897
- range: [0, 100],
2898
- name: "Blackness"
2899
- }
2900
- },
2901
- base: Jn,
2902
- fromBase(e) {
2903
- let [t, n, r] = e;
2904
- return [
2905
- t,
2906
- r * (100 - n) / 100,
2907
- 100 - r
2908
- ];
2909
- },
2910
- toBase(e) {
2911
- let [t, n, r] = e;
2912
- n /= 100, r /= 100;
2913
- let i = n + r;
2914
- if (i >= 1) return [
2915
- t,
2916
- 0,
2917
- n / i * 100
2918
- ];
2919
- let a = 1 - r;
2920
- return [
2921
- t,
2922
- (a === 0 ? 0 : 1 - n / a) * 100,
2923
- a * 100
2924
- ];
2925
- },
2926
- formats: { hwb: { coords: [
2927
- "<number> | <angle>",
2928
- "<percentage> | <number>",
2929
- "<percentage> | <number>"
2930
- ] } }
2931
- }), Xn = new A({
2932
- id: "a98rgb-linear",
2933
- cssId: "--a98-rgb-linear",
2934
- name: "Linear Adobe® 98 RGB compatible",
2935
- white: "D65",
2936
- toXYZ_M: [
2937
- [
2938
- .5766690429101305,
2939
- .1855582379065463,
2940
- .1882286462349947
2941
- ],
2942
- [
2943
- .29734497525053605,
2944
- .6273635662554661,
2945
- .07529145849399788
2946
- ],
2947
- [
2948
- .02703136138641234,
2949
- .07068885253582723,
2950
- .9913375368376388
2951
- ]
2952
- ],
2953
- fromXYZ_M: [
2954
- [
2955
- 2.0415879038107465,
2956
- -.5650069742788596,
2957
- -.34473135077832956
2958
- ],
2959
- [
2960
- -.9692436362808795,
2961
- 1.8759675015077202,
2962
- .04155505740717557
2963
- ],
2964
- [
2965
- .013444280632031142,
2966
- -.11836239223101838,
2967
- 1.0151749943912054
2968
- ]
2969
- ]
2970
- }), Zn = new A({
2971
- id: "a98rgb",
2972
- cssId: "a98-rgb",
2973
- name: "Adobe® 98 RGB compatible",
2974
- base: Xn,
2975
- toBase: (e) => e.map((e) => Math.abs(e) ** (563 / 256) * Math.sign(e)),
2976
- fromBase: (e) => e.map((e) => Math.abs(e) ** (256 / 563) * Math.sign(e))
2977
- }), Qn = new A({
2978
- id: "prophoto-linear",
2979
- cssId: "--prophoto-rgb-linear",
2980
- name: "Linear ProPhoto",
2981
- white: "D50",
2982
- base: ie,
2983
- toXYZ_M: [
2984
- [
2985
- .7977666449006423,
2986
- .13518129740053308,
2987
- .0313477341283922
2988
- ],
2989
- [
2990
- .2880748288194013,
2991
- .711835234241873,
2992
- 8993693872564e-17
2993
- ],
2994
- [
2995
- 0,
2996
- 0,
2997
- .8251046025104602
2998
- ]
2999
- ],
3000
- fromXYZ_M: [
3001
- [
3002
- 1.3457868816471583,
3003
- -.25557208737979464,
3004
- -.05110186497554526
3005
- ],
3006
- [
3007
- -.5446307051249019,
3008
- 1.5082477428451468,
3009
- .02052744743642139
3010
- ],
3011
- [
3012
- 0,
3013
- 0,
3014
- 1.2119675456389452
3015
- ]
3016
- ]
3017
- }), $n = 1 / 512, er = 16 / 512, tr = new A({
3018
- id: "prophoto",
3019
- cssId: "prophoto-rgb",
3020
- name: "ProPhoto",
3021
- base: Qn,
3022
- toBase(e) {
3023
- return e.map((e) => e < er ? e / 16 : e ** 1.8);
3024
- },
3025
- fromBase(e) {
3026
- return e.map((e) => e >= $n ? e ** (1 / 1.8) : 16 * e);
3027
- }
3028
- }), nr = new O({
3029
- id: "oklch",
3030
- name: "Oklch",
3031
- coords: {
3032
- l: {
3033
- refRange: [0, 1],
3034
- name: "Lightness"
3035
- },
3036
- c: {
3037
- refRange: [0, .4],
3038
- name: "Chroma"
3039
- },
3040
- h: {
3041
- refRange: [0, 360],
3042
- type: "angle",
3043
- name: "Hue"
3044
- }
3045
- },
3046
- white: "D65",
3047
- base: B,
3048
- fromBase(e) {
3049
- let [t, n, r] = e, i, a = 2e-4;
3050
- return i = Math.abs(n) < a && Math.abs(r) < a ? NaN : Math.atan2(r, n) * 180 / Math.PI, [
3051
- t,
3052
- Math.sqrt(n ** 2 + r ** 2),
3053
- L(i)
3054
- ];
3055
- },
3056
- toBase(e) {
3057
- let [t, n, r] = e, i, a;
3058
- return isNaN(r) ? (i = 0, a = 0) : (i = n * Math.cos(r * Math.PI / 180), a = n * Math.sin(r * Math.PI / 180)), [
3059
- t,
3060
- i,
3061
- a
3062
- ];
3063
- },
3064
- formats: { oklch: { coords: [
3065
- "<percentage> | <number>",
3066
- "<number> | <percentage>[0,1]",
3067
- "<number> | <angle>"
3068
- ] } }
3069
- }), rr = S.D65, ir = 216 / 24389, ar = 24389 / 27, [or, sr] = Nn({
3070
- space: k,
3071
- coords: rr
3072
- }), cr = new O({
3073
- id: "luv",
3074
- name: "Luv",
3075
- coords: {
3076
- l: {
3077
- refRange: [0, 100],
3078
- name: "Lightness"
3079
- },
3080
- u: { refRange: [-215, 215] },
3081
- v: { refRange: [-215, 215] }
3082
- },
3083
- white: rr,
3084
- base: k,
3085
- fromBase(e) {
3086
- let t = [
3087
- a(e[0]),
3088
- a(e[1]),
3089
- a(e[2])
3090
- ], n = t[1], [r, i] = Nn({
3091
- space: k,
3092
- coords: t
3093
- });
3094
- if (!Number.isFinite(r) || !Number.isFinite(i)) return [
3095
- 0,
3096
- 0,
3097
- 0
3098
- ];
3099
- let o = n <= ir ? ar * n : 116 * Math.cbrt(n) - 16;
3100
- return [
3101
- o,
3102
- 13 * o * (r - or),
3103
- 13 * o * (i - sr)
3104
- ];
3105
- },
3106
- toBase(e) {
3107
- let [t, n, r] = e;
3108
- if (t === 0 || i(t)) return [
3109
- 0,
3110
- 0,
3111
- 0
3112
- ];
3113
- n = a(n), r = a(r);
3114
- let o = n / (13 * t) + or, s = r / (13 * t) + sr, c = t <= 8 ? t / ar : ((t + 16) / 116) ** 3;
3115
- return [
3116
- c * (9 * o / (4 * s)),
3117
- c,
3118
- c * ((12 - 3 * o - 20 * s) / (4 * s))
3119
- ];
3120
- },
3121
- formats: { color: {
3122
- id: "--luv",
3123
- coords: [
3124
- "<number> | <percentage>",
3125
- "<number> | <percentage>[-1,1]",
3126
- "<number> | <percentage>[-1,1]"
3127
- ]
3128
- } }
3129
- }), lr = new O({
3130
- id: "lchuv",
3131
- name: "LChuv",
3132
- coords: {
3133
- l: {
3134
- refRange: [0, 100],
3135
- name: "Lightness"
3136
- },
3137
- c: {
3138
- refRange: [0, 220],
3139
- name: "Chroma"
3140
- },
3141
- h: {
3142
- refRange: [0, 360],
3143
- type: "angle",
3144
- name: "Hue"
3145
- }
3146
- },
3147
- base: cr,
3148
- fromBase(e) {
3149
- let [t, n, r] = e, i, a = .02;
3150
- return i = Math.abs(n) < a && Math.abs(r) < a ? NaN : Math.atan2(r, n) * 180 / Math.PI, [
3151
- t,
3152
- Math.sqrt(n ** 2 + r ** 2),
3153
- L(i)
3154
- ];
3155
- },
3156
- toBase(e) {
3157
- let [t, n, r] = e;
3158
- return n < 0 && (n = 0), isNaN(r) && (r = 0), [
3159
- t,
3160
- n * Math.cos(r * Math.PI / 180),
3161
- n * Math.sin(r * Math.PI / 180)
3162
- ];
3163
- },
3164
- formats: { color: {
3165
- id: "--lchuv",
3166
- coords: [
3167
- "<number> | <percentage>",
3168
- "<number> | <percentage>",
3169
- "<number> | <angle>"
3170
- ]
3171
- } }
3172
- }), ur = 216 / 24389, dr = 24389 / 27, fr = q[0][0], pr = q[0][1], mr = q[0][2], hr = q[1][0], gr = q[1][1], _r = q[1][2], vr = q[2][0], yr = q[2][1], br = q[2][2];
3173
- function Z(e, t, n) {
3174
- let r = t / (Math.sin(n) - e * Math.cos(n));
3175
- return r < 0 ? Infinity : r;
3176
- }
3177
- function xr(e) {
3178
- let t = (e + 16) ** 3 / 1560896, n = t > ur ? t : e / dr, r = n * (284517 * fr - 94839 * mr), i = n * (838422 * mr + 769860 * pr + 731718 * fr), a = n * (632260 * mr - 126452 * pr), o = n * (284517 * hr - 94839 * _r), s = n * (838422 * _r + 769860 * gr + 731718 * hr), c = n * (632260 * _r - 126452 * gr), l = n * (284517 * vr - 94839 * br), u = n * (838422 * br + 769860 * yr + 731718 * vr), d = n * (632260 * br - 126452 * yr);
3179
- return {
3180
- r0s: r / a,
3181
- r0i: i * e / a,
3182
- r1s: r / (a + 126452),
3183
- r1i: (i - 769860) * e / (a + 126452),
3184
- g0s: o / c,
3185
- g0i: s * e / c,
3186
- g1s: o / (c + 126452),
3187
- g1i: (s - 769860) * e / (c + 126452),
3188
- b0s: l / d,
3189
- b0i: u * e / d,
3190
- b1s: l / (d + 126452),
3191
- b1i: (u - 769860) * e / (d + 126452)
3192
- };
3193
- }
3194
- function Sr(e, t) {
3195
- let n = t / 360 * Math.PI * 2, r = Z(e.r0s, e.r0i, n), i = Z(e.r1s, e.r1i, n), a = Z(e.g0s, e.g0i, n), o = Z(e.g1s, e.g1i, n), s = Z(e.b0s, e.b0i, n), c = Z(e.b1s, e.b1i, n);
3196
- return Math.min(r, i, a, o, s, c);
3197
- }
3198
- var Cr = new O({
3199
- id: "hsluv",
3200
- name: "HSLuv",
3201
- coords: {
3202
- h: {
3203
- refRange: [0, 360],
3204
- type: "angle",
3205
- name: "Hue"
3206
- },
3207
- s: {
3208
- range: [0, 100],
3209
- name: "Saturation"
3210
- },
3211
- l: {
3212
- range: [0, 100],
3213
- name: "Lightness"
3214
- }
3215
- },
3216
- base: lr,
3217
- gamutSpace: J,
3218
- fromBase(e) {
3219
- let [t, n, r] = [
3220
- a(e[0]),
3221
- a(e[1]),
3222
- a(e[2])
3223
- ], i;
3224
- return t > 99.9999999 ? (i = 0, t = 100) : t < 1e-8 ? (i = 0, t = 0) : i = n / Sr(xr(t), r) * 100, [
3225
- r,
3226
- i,
3227
- t
3228
- ];
3229
- },
3230
- toBase(e) {
3231
- let [t, n, r] = [
3232
- a(e[0]),
3233
- a(e[1]),
3234
- a(e[2])
3235
- ], i;
3236
- return r > 99.9999999 ? (r = 100, i = 0) : r < 1e-8 ? (r = 0, i = 0) : i = Sr(xr(r), t) / 100 * n, [
3237
- r,
3238
- i,
3239
- t
3240
- ];
3241
- },
3242
- formats: { color: {
3243
- id: "--hsluv",
3244
- coords: [
3245
- "<number> | <angle>",
3246
- "<percentage> | <number>",
3247
- "<percentage> | <number>"
3248
- ]
3249
- } }
3250
- });
3251
- q[0][0], q[0][1], q[0][2], q[1][0], q[1][1], q[1][2], q[2][0], q[2][1], q[2][2];
3252
- function Q(e, t) {
3253
- return Math.abs(t) / Math.sqrt(e ** 2 + 1);
3254
- }
3255
- function wr(e) {
3256
- let t = Q(e.r0s, e.r0i), n = Q(e.r1s, e.r1i), r = Q(e.g0s, e.g0i), i = Q(e.g1s, e.g1i), a = Q(e.b0s, e.b0i), o = Q(e.b1s, e.b1i);
3257
- return Math.min(t, n, r, i, a, o);
3258
- }
3259
- var Tr = new O({
3260
- id: "hpluv",
3261
- name: "HPLuv",
3262
- coords: {
3263
- h: {
3264
- refRange: [0, 360],
3265
- type: "angle",
3266
- name: "Hue"
3267
- },
3268
- s: {
3269
- range: [0, 100],
3270
- name: "Saturation"
3271
- },
3272
- l: {
3273
- range: [0, 100],
3274
- name: "Lightness"
3275
- }
3276
- },
3277
- base: lr,
3278
- gamutSpace: "self",
3279
- fromBase(e) {
3280
- let [t, n, r] = [
3281
- a(e[0]),
3282
- a(e[1]),
3283
- a(e[2])
3284
- ], i;
3285
- return t > 99.9999999 ? (i = 0, t = 100) : t < 1e-8 ? (i = 0, t = 0) : i = n / wr(xr(t)) * 100, [
3286
- r,
3287
- i,
3288
- t
3289
- ];
3290
- },
3291
- toBase(e) {
3292
- let [t, n, r] = [
3293
- a(e[0]),
3294
- a(e[1]),
3295
- a(e[2])
3296
- ], i;
3297
- return r > 99.9999999 ? (r = 100, i = 0) : r < 1e-8 ? (r = 0, i = 0) : i = wr(xr(r)) / 100 * n, [
3298
- r,
3299
- i,
3300
- t
3301
- ];
3302
- },
3303
- formats: { color: {
3304
- id: "--hpluv",
3305
- coords: [
3306
- "<number> | <angle>",
3307
- "<percentage> | <number>",
3308
- "<percentage> | <number>"
3309
- ]
3310
- } }
3311
- }), Er = 203, Dr = 2610 / 2 ** 14, Or = 2 ** 14 / 2610, kr = 2523 / 2 ** 5, Ar = 2 ** 5 / 2523, jr = 3424 / 2 ** 12, Mr = 2413 / 2 ** 7, Nr = 2392 / 2 ** 7, Pr = new A({
3312
- id: "rec2100pq",
3313
- cssId: "rec2100-pq",
3314
- name: "REC.2100-PQ",
3315
- base: Ht,
3316
- toBase(e) {
3317
- return e.map(function(e) {
3318
- return (Math.max(e ** Ar - jr, 0) / (Mr - Nr * e ** Ar)) ** Or * 1e4 / Er;
3319
- });
3320
- },
3321
- fromBase(e) {
3322
- return e.map(function(e) {
3323
- let t = Math.max(e * Er / 1e4, 0);
3324
- return ((jr + Mr * t ** Dr) / (1 + Nr * t ** Dr)) ** kr;
3325
- });
3326
- }
3327
- }), Fr = .17883277, Ir = .28466892, Lr = .55991073, Rr = 3.7743, zr = new A({
3328
- id: "rec2100hlg",
3329
- cssId: "rec2100-hlg",
3330
- name: "REC.2100-HLG",
3331
- referred: "scene",
3332
- base: Ht,
3333
- toBase(e) {
3334
- return e.map(function(e) {
3335
- return e <= .5 ? e ** 2 / 3 * Rr : (Math.exp((e - Lr) / Fr) + Ir) / 12 * Rr;
3336
- });
3337
- },
3338
- fromBase(e) {
3339
- return e.map(function(e) {
3340
- return e /= Rr, e <= 1 / 12 ? Math.sqrt(3 * e) : Fr * Math.log(12 * e - Ir) + Lr;
3341
- });
3342
- }
3343
- }), Br = {};
3344
- b.add("chromatic-adaptation-start", (e) => {
3345
- e.options.method && (e.M = Hr(e.W1, e.W2, e.options.method));
3346
- }), b.add("chromatic-adaptation-end", (e) => {
3347
- e.M ||= Hr(e.W1, e.W2, e.options.method);
3348
- });
3349
- function Vr({ id: e, toCone_M: t, fromCone_M: n }) {
3350
- Br[e] = arguments[0];
3351
- }
3352
- function Hr(t, n, r = "Bradford") {
3353
- let i = Br[r], [a, o, s] = e(i.toCone_M, t), [c, l, u] = e(i.toCone_M, n), d = e([
3354
- [
3355
- c / a,
3356
- 0,
3357
- 0
3358
- ],
3359
- [
3360
- 0,
3361
- l / o,
3362
- 0
3363
- ],
3364
- [
3365
- 0,
3366
- 0,
3367
- u / s
3368
- ]
3369
- ], i.toCone_M);
3370
- return e(i.fromCone_M, d);
3371
- }
3372
- Vr({
3373
- id: "von Kries",
3374
- toCone_M: [
3375
- [
3376
- .40024,
3377
- .7076,
3378
- -.08081
3379
- ],
3380
- [
3381
- -.2263,
3382
- 1.16532,
3383
- .0457
3384
- ],
3385
- [
3386
- 0,
3387
- 0,
3388
- .91822
3389
- ]
3390
- ],
3391
- fromCone_M: [
3392
- [
3393
- 1.8599363874558397,
3394
- -1.1293816185800916,
3395
- .21989740959619328
3396
- ],
3397
- [
3398
- .3611914362417676,
3399
- .6388124632850422,
3400
- -6370596838649899e-21
3401
- ],
3402
- [
3403
- 0,
3404
- 0,
3405
- 1.0890636230968613
3406
- ]
3407
- ]
3408
- }), Vr({
3409
- id: "Bradford",
3410
- toCone_M: [
3411
- [
3412
- .8951,
3413
- .2664,
3414
- -.1614
3415
- ],
3416
- [
3417
- -.7502,
3418
- 1.7135,
3419
- .0367
3420
- ],
3421
- [
3422
- .0389,
3423
- -.0685,
3424
- 1.0296
3425
- ]
3426
- ],
3427
- fromCone_M: [
3428
- [
3429
- .9869929054667121,
3430
- -.14705425642099013,
3431
- .15996265166373122
3432
- ],
3433
- [
3434
- .4323052697233945,
3435
- .5183602715367774,
3436
- .049291228212855594
3437
- ],
3438
- [
3439
- -.00852866457517732,
3440
- .04004282165408486,
3441
- .96848669578755
3442
- ]
3443
- ]
3444
- }), Vr({
3445
- id: "CAT02",
3446
- toCone_M: [
3447
- [
3448
- .7328,
3449
- .4296,
3450
- -.1624
3451
- ],
3452
- [
3453
- -.7036,
3454
- 1.6975,
3455
- .0061
3456
- ],
3457
- [
3458
- .003,
3459
- .0136,
3460
- .9834
3461
- ]
3462
- ],
3463
- fromCone_M: [
3464
- [
3465
- 1.0961238208355142,
3466
- -.27886900021828726,
3467
- .18274517938277307
3468
- ],
3469
- [
3470
- .4543690419753592,
3471
- .4735331543074117,
3472
- .07209780371722911
3473
- ],
3474
- [
3475
- -.009627608738429355,
3476
- -.00569803121611342,
3477
- 1.0153256399545427
3478
- ]
3479
- ]
3480
- }), Vr({
3481
- id: "CAT16",
3482
- toCone_M: [
3483
- [
3484
- .401288,
3485
- .650173,
3486
- -.051461
3487
- ],
3488
- [
3489
- -.250268,
3490
- 1.204414,
3491
- .045854
3492
- ],
3493
- [
3494
- -.002079,
3495
- .048952,
3496
- .953127
3497
- ]
3498
- ],
3499
- fromCone_M: [
3500
- [
3501
- 1.862067855087233,
3502
- -1.0112546305316845,
3503
- .14918677544445172
3504
- ],
3505
- [
3506
- .3875265432361372,
3507
- .6214474419314753,
3508
- -.008973985167612521
3509
- ],
3510
- [
3511
- -.01584149884933386,
3512
- -.03412293802851557,
3513
- 1.0499644368778496
3514
- ]
3515
- ]
3516
- }), Object.assign(S, {
3517
- A: [
3518
- 1.0985,
3519
- 1,
3520
- .35585
3521
- ],
3522
- C: [
3523
- .98074,
3524
- 1,
3525
- 1.18232
3526
- ],
3527
- D55: [
3528
- .95682,
3529
- 1,
3530
- .92149
3531
- ],
3532
- D75: [
3533
- .94972,
3534
- 1,
3535
- 1.22638
3536
- ],
3537
- E: [
3538
- 1,
3539
- 1,
3540
- 1
3541
- ],
3542
- F2: [
3543
- .99186,
3544
- 1,
3545
- .67393
3546
- ],
3547
- F7: [
3548
- .95041,
3549
- 1,
3550
- 1.08747
3551
- ],
3552
- F11: [
3553
- 1.00962,
3554
- 1,
3555
- .6435
3556
- ]
3557
- }), S.ACES = [
3558
- .32168 / .33767,
3559
- 1,
3560
- .34065 / .33767
3561
- ];
3562
- var Ur = new A({
3563
- id: "acescg",
3564
- cssId: "--acescg",
3565
- name: "ACEScg",
3566
- coords: {
3567
- r: {
3568
- range: [0, 65504],
3569
- name: "Red"
3570
- },
3571
- g: {
3572
- range: [0, 65504],
3573
- name: "Green"
3574
- },
3575
- b: {
3576
- range: [0, 65504],
3577
- name: "Blue"
3578
- }
3579
- },
3580
- referred: "scene",
3581
- white: S.ACES,
3582
- toXYZ_M: [
3583
- [
3584
- .6624541811085053,
3585
- .13400420645643313,
3586
- .1561876870049078
3587
- ],
3588
- [
3589
- .27222871678091454,
3590
- .6740817658111484,
3591
- .05368951740793705
3592
- ],
3593
- [
3594
- -.005574649490394108,
3595
- .004060733528982826,
3596
- 1.0103391003129971
3597
- ]
3598
- ],
3599
- fromXYZ_M: [
3600
- [
3601
- 1.6410233796943257,
3602
- -.32480329418479,
3603
- -.23642469523761225
3604
- ],
3605
- [
3606
- -.6636628587229829,
3607
- 1.6153315916573379,
3608
- .016756347685530137
3609
- ],
3610
- [
3611
- .011721894328375376,
3612
- -.008284441996237409,
3613
- .9883948585390215
3614
- ]
3615
- ]
3616
- }), Wr = 2 ** -16, Gr = -.35828683, Kr = (Math.log2(65504) + 9.72) / 17.52, qr = new A({
3617
- id: "acescc",
3618
- cssId: "--acescc",
3619
- name: "ACEScc",
3620
- coords: {
3621
- r: {
3622
- range: [Gr, Kr],
3623
- name: "Red"
3624
- },
3625
- g: {
3626
- range: [Gr, Kr],
3627
- name: "Green"
3628
- },
3629
- b: {
3630
- range: [Gr, Kr],
3631
- name: "Blue"
3632
- }
3633
- },
3634
- referred: "scene",
3635
- base: Ur,
3636
- toBase(e) {
3637
- return e.map(function(e) {
3638
- return e <= -.3013698630136986 ? (2 ** (e * 17.52 - 9.72) - Wr) * 2 : e < Kr ? 2 ** (e * 17.52 - 9.72) : 65504;
3639
- });
3640
- },
3641
- fromBase(e) {
3642
- return e.map(function(e) {
3643
- return e <= 0 ? (Math.log2(Wr) + 9.72) / 17.52 : e < Wr ? (Math.log2(Wr + e * .5) + 9.72) / 17.52 : (Math.log2(e) + 9.72) / 17.52;
3644
- });
3645
- }
3646
- }), Jr = /*#__PURE__*/ Object.freeze({
3647
- __proto__: null,
3648
- A98RGB: Zn,
3649
- A98RGB_Linear: Xn,
3650
- ACEScc: qr,
3651
- ACEScg: Ur,
3652
- CAM16_JMh: Ct,
3653
- HCT: Mt,
3654
- HPLuv: Tr,
3655
- HSL: qn,
3656
- HSLuv: Cr,
3657
- HSV: Jn,
3658
- HWB: Yn,
3659
- ICTCP: tt,
3660
- JzCzHz: He,
3661
- Jzazbz: Ve,
3662
- LCH: R,
3663
- LCHuv: lr,
3664
- Lab: I,
3665
- Lab_D65: On,
3666
- Luv: cr,
3667
- OKLCH: nr,
3668
- OKLab: B,
3669
- P3: Qt,
3670
- P3_Linear: Kt,
3671
- ProPhoto: tr,
3672
- ProPhoto_Linear: Qn,
3673
- REC_2020: Gt,
3674
- REC_2020_Linear: Ht,
3675
- REC_2100_HLG: zr,
3676
- REC_2100_PQ: Pr,
3677
- XYZ_ABS_D65: Te,
3678
- XYZ_D50: ie,
3679
- XYZ_D65: k,
3680
- sRGB: J,
3681
- sRGB_Linear: Jt
3682
- }), $ = class e {
3683
- constructor(...e) {
3684
- let t;
3685
- e.length === 1 && (t = D(e[0]));
3686
- let n, r, i;
3687
- t ? (n = t.space || t.spaceId, r = t.coords, i = t.alpha) : [n, r, i] = e, Object.defineProperty(this, "space", {
3688
- value: O.get(n),
3689
- writable: !1,
3690
- enumerable: !0,
3691
- configurable: !0
3692
- }), this.coords = r ? r.slice() : [
3693
- 0,
3694
- 0,
3695
- 0
3696
- ], this.alpha = i > 1 || i === void 0 ? 1 : i < 0 ? 0 : i;
3697
- for (let e = 0; e < this.coords.length; e++) this.coords[e] === "NaN" && (this.coords[e] = NaN);
3698
- for (let e in this.space.coords) Object.defineProperty(this, e, {
3699
- get: () => this.get(e),
3700
- set: (t) => this.set(e, t)
3701
- });
3702
- }
3703
- get spaceId() {
3704
- return this.space.id;
3705
- }
3706
- clone() {
3707
- return new e(this.space, this.coords, this.alpha);
3708
- }
3709
- toJSON() {
3710
- return {
3711
- spaceId: this.spaceId,
3712
- coords: this.coords,
3713
- alpha: this.alpha
3714
- };
3715
- }
3716
- display(...t) {
3717
- let n = en(this, ...t);
3718
- return n.color = new e(n.color), n;
3719
- }
3720
- static get(t, ...n) {
3721
- return t instanceof e ? t : new e(t, ...n);
3722
- }
3723
- static defineFunction(t, n, r = n) {
3724
- let { instance: i = !0, returns: a } = r, o = function(...t) {
3725
- let r = n(...t);
3726
- if (a === "color") r = e.get(r);
3727
- else if (a === "function<color>") {
3728
- let t = r;
3729
- r = function(...n) {
3730
- let r = t(...n);
3731
- return e.get(r);
3732
- }, Object.assign(r, t);
3733
- } else a === "array<color>" && (r = r.map((t) => e.get(t)));
3734
- return r;
3735
- };
3736
- t in e || (e[t] = o), i && (e.prototype[t] = function(...e) {
3737
- return o(this, ...e);
3738
- });
3739
- }
3740
- static defineFunctions(t) {
3741
- for (let n in t) e.defineFunction(n, t[n], t[n]);
3742
- }
3743
- static extend(t) {
3744
- if (t.register) t.register(e);
3745
- else for (let n in t) e.defineFunction(n, t[n]);
3746
- }
3747
- };
3748
- $.defineFunctions({
3749
- get: M,
3750
- getAll: j,
3751
- set: P,
3752
- setAll: N,
3753
- to: K,
3754
- equals: tn,
3755
- inGamut: V,
3756
- toGamut: G,
3757
- distance: be,
3758
- toString: Vt
3759
- }), Object.assign($, {
3760
- util: y,
3761
- hooks: b,
3762
- WHITES: S,
3763
- Space: O,
3764
- spaces: O.registry,
3765
- parse: E,
3766
- defaults: x
3767
- });
3768
- for (let e of Object.keys(Jr)) O.register(Jr[e]);
3769
- for (let e in O.registry) Yr(e, O.registry[e]);
3770
- b.add("colorspace-init-end", (e) => {
3771
- Yr(e.id, e), e.aliases?.forEach((t) => {
3772
- Yr(t, e);
3773
- });
3774
- });
3775
- function Yr(e, t) {
3776
- let n = e.replace(/-/g, "_");
3777
- Object.defineProperty($.prototype, n, {
3778
- get() {
3779
- let n = this.getAll(e);
3780
- return typeof Proxy > "u" ? n : new Proxy(n, {
3781
- has: (e, n) => {
3782
- try {
3783
- return O.resolveCoord([t, n]), !0;
3784
- } catch {}
3785
- return Reflect.has(e, n);
3786
- },
3787
- get: (e, n, r) => {
3788
- if (n && typeof n != "symbol" && !(n in e)) {
3789
- let { index: r } = O.resolveCoord([t, n]);
3790
- if (r >= 0) return e[r];
3791
- }
3792
- return Reflect.get(e, n, r);
3793
- },
3794
- set: (n, r, i, a) => {
3795
- if (r && typeof r != "symbol" && !(r in n) || r >= 0) {
3796
- let { index: a } = O.resolveCoord([t, r]);
3797
- if (a >= 0) return n[a] = i, this.setAll(e, n), !0;
3798
- }
3799
- return Reflect.set(n, r, i, a);
3800
- }
3801
- });
3802
- },
3803
- set(t) {
3804
- this.setAll(e, t);
3805
- },
3806
- configurable: !0,
3807
- enumerable: !0
3808
- });
3809
- }
3810
- $.extend(W), $.extend({ deltaE: Ln }), Object.assign($, { deltaEMethods: W }), $.extend(Bn), $.extend({ contrast: Mn }), $.extend(In), $.extend(an), $.extend(Kn), $.extend(jn);
3811
- //#endregion
3812
- export { $ as t };