nmrium 1.12.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  2. package/lib/component/1d/database/DatabaseSpectrum.js +1 -1
  3. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  4. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  5. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +3 -17
  6. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  7. package/lib/component/2d/ft/Contours.d.ts.map +1 -1
  8. package/lib/component/2d/ft/Contours.js +10 -12
  9. package/lib/component/2d/ft/Contours.js.map +1 -1
  10. package/lib/component/elements/ActionsButtonsPopover.js +1 -1
  11. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  12. package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
  13. package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
  14. package/lib/component/hooks/reduce2DSpectrum.js +60 -0
  15. package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
  16. package/lib/component/hooks/use2DReducer.d.ts +14 -0
  17. package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
  18. package/lib/component/hooks/use2DReducer.js +30 -0
  19. package/lib/component/hooks/use2DReducer.js.map +1 -0
  20. package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
  21. package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
  22. package/lib/component/hooks/useCreateNmriumZip.js +28 -0
  23. package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
  24. package/lib/component/hooks/useExport.d.ts +8 -5
  25. package/lib/component/hooks/useExport.d.ts.map +1 -1
  26. package/lib/component/hooks/useExport.js +4 -21
  27. package/lib/component/hooks/useExport.js.map +1 -1
  28. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  29. package/lib/component/loader/useLoadFiles.js +4 -5
  30. package/lib/component/loader/useLoadFiles.js.map +1 -1
  31. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  32. package/lib/component/main/InnerNMRium.js +2 -2
  33. package/lib/component/main/InnerNMRium.js.map +1 -1
  34. package/lib/component/main/NMRium.d.ts +48 -3
  35. package/lib/component/main/NMRium.d.ts.map +1 -1
  36. package/lib/component/main/NMRium.js.map +1 -1
  37. package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
  38. package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
  39. package/lib/component/main/NMRiumRefAPI.js +4 -1
  40. package/lib/component/main/NMRiumRefAPI.js.map +1 -1
  41. package/lib/component/main/NMRiumStateProvider.d.ts +5 -2
  42. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  43. package/lib/component/main/NMRiumStateProvider.js +36 -30
  44. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  45. package/lib/component/modal/LoadJCAMPModal.js +4 -4
  46. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  47. package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
  48. package/lib/component/modal/setting/general_settings.js +3 -3
  49. package/lib/component/modal/setting/general_settings.js.map +1 -1
  50. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +4 -2
  51. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  52. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +46 -29
  53. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  54. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +920 -188
  55. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  56. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +10 -2
  57. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  58. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +920 -188
  59. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  60. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1353 -6
  61. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  62. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +43 -32
  63. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  64. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +1353 -6
  65. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -1
  66. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +88 -83
  67. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -1
  68. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +466 -0
  69. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
  70. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +59 -0
  71. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
  72. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1354 -0
  73. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
  74. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +32 -0
  75. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
  76. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1354 -0
  77. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
  78. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +80 -0
  79. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
  80. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +920 -188
  81. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  82. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  83. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +37 -9
  84. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  85. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1354 -0
  86. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
  87. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +58 -0
  88. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
  89. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +920 -188
  90. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  91. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +1 -1
  92. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -1
  93. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +920 -188
  94. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  95. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +920 -188
  96. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  97. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +65 -112
  98. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -1
  99. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +920 -188
  100. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  101. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +3 -3
  102. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -1
  103. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1354 -0
  104. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
  105. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +142 -0
  106. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
  107. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1354 -0
  108. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
  109. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
  110. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
  111. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1354 -0
  112. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
  113. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
  114. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
  115. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +68 -0
  116. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
  117. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +133 -0
  118. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
  119. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
  120. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
  121. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
  122. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
  123. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +71 -0
  124. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
  125. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +67 -0
  126. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
  127. package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.d.ts → validation/check_unique_by_key.d.ts} +1 -1
  128. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
  129. package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.js → validation/check_unique_by_key.js} +1 -1
  130. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
  131. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
  132. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
  133. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
  134. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
  135. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
  136. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
  137. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
  138. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
  139. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +2 -0
  140. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -1
  141. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +3 -6
  142. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -1
  143. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +12 -4
  144. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
  145. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +4 -3
  146. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
  147. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +20 -0
  148. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
  149. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +12 -4
  150. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
  151. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
  152. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
  153. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
  154. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
  155. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
  156. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
  157. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
  158. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
  159. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
  160. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
  161. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
  162. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
  163. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
  164. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
  165. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
  166. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
  167. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +255 -39
  168. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  169. package/lib/component/modal/setting/tanstack_general_settings/validation.js +16 -27
  170. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
  171. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
  172. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +27 -0
  173. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  174. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
  175. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -2
  176. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
  177. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -1
  178. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
  179. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +8 -3
  180. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  181. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
  182. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  183. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  184. package/lib/component/panels/databasePanel/DatabasePanel.js +2 -2
  185. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  186. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  187. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +26 -33
  188. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  189. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  190. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  191. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  192. package/lib/component/reducer/Reducer.js +1 -3
  193. package/lib/component/reducer/Reducer.js.map +1 -1
  194. package/lib/component/reducer/actions/FiltersActions.d.ts +2 -4
  195. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  196. package/lib/component/reducer/actions/FiltersActions.js +14 -5
  197. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  198. package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
  199. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  200. package/lib/component/reducer/actions/LoadAction.js +8 -17
  201. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  202. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  203. package/lib/component/reducer/actions/MoleculeActions.js +3 -0
  204. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  205. package/lib/component/reducer/actions/SpectraActions.d.ts +5 -1
  206. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  207. package/lib/component/reducer/actions/SpectraActions.js +4 -2
  208. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  209. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  210. package/lib/component/reducer/actions/ToolsActions.js +1 -1
  211. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  212. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
  213. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
  214. package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
  215. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  216. package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
  217. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  218. package/lib/component/workspaces/workspaceDefaultProperties.js +9 -0
  219. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  220. package/lib/data/PredictionManager.d.ts.map +1 -1
  221. package/lib/data/PredictionManager.js +3 -0
  222. package/lib/data/PredictionManager.js.map +1 -1
  223. package/lib/data/data2d/Spectrum2D/contours.d.ts +7 -6
  224. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  225. package/lib/data/data2d/Spectrum2D/contours.js +22 -6
  226. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  227. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  228. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
  229. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  230. package/lib/data/molecules/Molecule.d.ts +5 -1
  231. package/lib/data/molecules/Molecule.d.ts.map +1 -1
  232. package/lib/data/molecules/Molecule.js +9 -7
  233. package/lib/data/molecules/Molecule.js.map +1 -1
  234. package/lib/data/molecules/MoleculeManager.d.ts +0 -6
  235. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  236. package/lib/data/molecules/MoleculeManager.js +25 -25
  237. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  238. package/lib/versionInfo.d.ts.map +1 -1
  239. package/lib/versionInfo.js +1 -1
  240. package/lib/versionInfo.js.map +1 -1
  241. package/package.json +30 -29
  242. package/src/component/1d/database/DatabaseSpectrum.tsx +3 -1
  243. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +10 -22
  244. package/src/component/2d/ft/Contours.tsx +14 -27
  245. package/src/component/elements/ActionsButtonsPopover.tsx +1 -1
  246. package/src/component/hooks/reduce2DSpectrum.ts +98 -0
  247. package/src/component/hooks/use2DReducer.tsx +56 -0
  248. package/src/component/hooks/useCreateNmriumZip.ts +37 -0
  249. package/src/component/hooks/useExport.tsx +16 -31
  250. package/src/component/loader/useLoadFiles.ts +6 -10
  251. package/src/component/main/InnerNMRium.tsx +4 -2
  252. package/src/component/main/NMRium.tsx +50 -2
  253. package/src/component/main/NMRiumRefAPI.ts +7 -1
  254. package/src/component/main/NMRiumStateProvider.tsx +57 -35
  255. package/src/component/modal/LoadJCAMPModal.tsx +4 -4
  256. package/src/component/modal/setting/general_settings.tsx +4 -3
  257. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +80 -54
  258. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +48 -1
  259. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +75 -68
  260. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +165 -184
  261. package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +95 -0
  262. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +81 -0
  263. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +210 -0
  264. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +48 -8
  265. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +150 -0
  266. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +3 -3
  267. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +164 -233
  268. package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +10 -10
  269. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +352 -0
  270. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +248 -0
  271. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
  272. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +163 -0
  273. package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
  274. package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +73 -0
  275. package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
  276. package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
  277. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +4 -6
  278. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +11 -8
  279. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +17 -9
  280. package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
  281. package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
  282. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
  283. package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
  284. package/src/component/modal/setting/tanstack_general_settings/validation.ts +16 -31
  285. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +35 -0
  286. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -2
  287. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +12 -4
  288. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
  289. package/src/component/panels/databasePanel/DatabasePanel.tsx +6 -4
  290. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +34 -49
  291. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -1
  292. package/src/component/reducer/Reducer.ts +1 -3
  293. package/src/component/reducer/actions/FiltersActions.ts +16 -10
  294. package/src/component/reducer/actions/LoadAction.ts +12 -27
  295. package/src/component/reducer/actions/MoleculeActions.ts +3 -0
  296. package/src/component/reducer/actions/SpectraActions.ts +14 -6
  297. package/src/component/reducer/actions/ToolsActions.ts +3 -1
  298. package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
  299. package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
  300. package/src/component/workspaces/workspaceDefaultProperties.ts +9 -0
  301. package/src/data/PredictionManager.ts +3 -0
  302. package/src/data/data2d/Spectrum2D/contours.ts +28 -12
  303. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -17
  304. package/src/data/molecules/Molecule.ts +17 -7
  305. package/src/data/molecules/MoleculeManager.ts +31 -29
  306. package/src/versionInfo.ts +1 -1
  307. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +0 -1
  308. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +0 -1
  309. /package/src/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.ts → validation/check_unique_by_key.ts} +0 -0
@@ -1,6 +1,7 @@
1
1
  import type { NMRRange } from '@zakodium/nmr-types';
2
2
  import type {
3
3
  Color2D,
4
+ ContourLevel,
4
5
  Display1D,
5
6
  Display2D,
6
7
  SpectraColors,
@@ -30,6 +31,7 @@ import {
30
31
  getMissingProjection,
31
32
  isSpectrum2D,
32
33
  } from '../../../data/data2d/Spectrum2D/index.js';
34
+ import { isFt2DSpectrum } from '../../../data/data2d/Spectrum2D/isSpectrum2D.ts';
33
35
  import {
34
36
  adjustAlpha,
35
37
  generateColor,
@@ -87,10 +89,15 @@ type ChangeActiveSpectrumAction = ActionType<
87
89
  >;
88
90
  type ChangeSpectrumSettingAction = ActionType<
89
91
  'CHANGE_SPECTRUM_SETTING',
90
- {
91
- id: string;
92
- display: Display1D | Display2D;
93
- }
92
+ | {
93
+ id: string;
94
+ display: Display1D | Display2D;
95
+ }
96
+ | {
97
+ id: string;
98
+ display: Display2D;
99
+ contourOptions: ContourLevel;
100
+ }
94
101
  >;
95
102
  type DeleteSpectraAction = ActionType<
96
103
  'DELETE_SPECTRA',
@@ -443,8 +450,9 @@ function handleChangeSpectrumSetting(
443
450
  if (!spectrum) return;
444
451
 
445
452
  spectrum.display = display;
446
- if (isSpectrum2D(spectrum)) {
447
- const { checkLevel } = contoursManager(spectrum);
453
+ if (isFt2DSpectrum(spectrum) && 'contourOptions' in action.payload) {
454
+ draft.view.spectraContourLevels[id] = action.payload.contourOptions;
455
+ const { checkLevel } = contoursManager(draft.view.spectraContourLevels[id]);
448
456
  checkLevel();
449
457
  }
450
458
  }
@@ -697,7 +697,9 @@ function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction) {
697
697
 
698
698
  try {
699
699
  for (const spectrum of spectra as Spectrum2D[]) {
700
- const zoom = contoursManager(spectrum);
700
+ const zoom = contoursManager(
701
+ draft.view.spectraContourLevels[spectrum.id],
702
+ );
701
703
  zoom.wheel(deltaY, { altKey, invertScroll });
702
704
  }
703
705
  } catch (error) {
@@ -3,7 +3,6 @@ import type { Draft } from 'immer';
3
3
  import type {
4
4
  ApplyGeneralPreferences,
5
5
  PreferencesState,
6
- WorkspaceWithSource,
7
6
  } from '../preferencesReducer.js';
8
7
 
9
8
  export function applyGeneralPreferences(
@@ -12,5 +11,5 @@ export function applyGeneralPreferences(
12
11
  ) {
13
12
  const { data } = action.payload;
14
13
 
15
- draft.workspaces[draft.workspace.current] = data as WorkspaceWithSource;
14
+ draft.workspaces[draft.workspace.current] = data;
16
15
  }
@@ -69,7 +69,7 @@ export const WORKSPACES_KEYS = {
69
69
  export interface Settings {
70
70
  version: number;
71
71
  workspaces: Record<string, WorkspaceWithSource>;
72
- currentWorkspace: any;
72
+ currentWorkspace: NMRiumWorkspace;
73
73
  }
74
74
 
75
75
  type InitPreferencesAction = ActionType<
@@ -106,8 +106,8 @@ export type AddWorkspaceAction = ActionType<
106
106
  { workspaceKey: string; data?: Omit<Workspace, 'version' | 'label'> }
107
107
  >;
108
108
  export type ApplyGeneralPreferences = ActionType<
109
- 'APPLY_General_PREFERENCES',
110
- { data: Omit<Workspace, 'version' | 'label'> }
109
+ 'APPLY_GENERAL_PREFERENCES',
110
+ { data: WorkspaceWithSource }
111
111
  >;
112
112
  export type AnalyzeSpectraAction = ActionType<
113
113
  'ANALYZE_SPECTRA',
@@ -301,7 +301,7 @@ function innerPreferencesReducer(
301
301
  return addWorkspace(draft, action);
302
302
  case 'REMOVE_WORKSPACE':
303
303
  return removeWorkspace(draft, action);
304
- case 'APPLY_General_PREFERENCES':
304
+ case 'APPLY_GENERAL_PREFERENCES':
305
305
  return applyGeneralPreferences(draft, action);
306
306
  case 'ANALYZE_SPECTRA':
307
307
  return analyzeSpectra(draft, action);
@@ -114,6 +114,15 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
114
114
  },
115
115
  infoBlock: {
116
116
  visible: false,
117
+ nameStyle: {
118
+ fontSize: 11,
119
+ fill: 'black',
120
+ fontWeight: 'bold',
121
+ },
122
+ valueStyle: {
123
+ fontSize: 12,
124
+ fill: 'black',
125
+ },
117
126
  fields: [
118
127
  { label: 'Name', jpath: ['info', 'name'], visible: true, format: '' },
119
128
  {
@@ -87,8 +87,11 @@ export const FREQUENCIES: Array<{ value: number; label: string }> = [
87
87
  { value: 400, label: '400 MHz' },
88
88
  { value: 500, label: '500 MHz' },
89
89
  { value: 600, label: '600 MHz' },
90
+ { value: 700, label: '700 MHz' },
90
91
  { value: 800, label: '800 MHz' },
92
+ { value: 950, label: '950 MHz' },
91
93
  { value: 1000, label: '1000 MHz' },
94
+ { value: 1100, label: '1100 MHz' },
92
95
  { value: 1200, label: '1200 MHz' },
93
96
  ];
94
97
 
@@ -2,9 +2,13 @@ import type { Spectrum2D } from '@zakodium/nmrium-core';
2
2
  import type { NmrData2DFt } from 'cheminfo-types';
3
3
  import { Conrec } from 'ml-conrec';
4
4
  import { xMaxAbsoluteValue } from 'ml-spectra-processing';
5
+ import type { Spectrum } from 'nmr-correlation';
5
6
 
7
+ import type { SpectrumFTData } from '../../../component/hooks/use2DReducer.tsx';
6
8
  import { calculateSanPlot } from '../../utilities/calculateSanPlot.js';
7
9
 
10
+ import { isFt2DSpectrum } from './isSpectrum2D.ts';
11
+
8
12
  interface Level {
9
13
  positive: ContourItem;
10
14
  negative: ContourItem;
@@ -91,8 +95,8 @@ function getDefaultContoursLevel(spectrum: Spectrum2D, quadrant = 'rr') {
91
95
  return defaultLevel;
92
96
  }
93
97
 
94
- function contoursManager(spectrum: Spectrum2D): ReturnContoursManager {
95
- const contourOptions = { ...spectrum.display.contourOptions };
98
+ function contoursManager(options: ContourOptions): ReturnContoursManager {
99
+ const contourOptions = { ...options };
96
100
 
97
101
  const wheel = (value: any, options: any) =>
98
102
  prepareWheel(value, { ...options, contourOptions });
@@ -194,9 +198,8 @@ function range(from: number, to: number, step: number) {
194
198
 
195
199
  function drawContours(
196
200
  level: ContourItem,
197
- spectrum: Spectrum2D,
201
+ spectrum: SpectrumFTData,
198
202
  negative = false,
199
- quadrant = 'rr',
200
203
  ) {
201
204
  const { contourLevels, numberOfLayers } = level;
202
205
 
@@ -204,8 +207,7 @@ function drawContours(
204
207
  negative,
205
208
  boundary: contourLevels,
206
209
  nbLevels: numberOfLayers,
207
- // @ts-expect-error type of NmrData2D should have a discriminator field to separate fid and ft
208
- data: spectrum.data[quadrant],
210
+ data: spectrum.data,
209
211
  });
210
212
  }
211
213
 
@@ -270,10 +272,24 @@ function calculateValueOfLevel(level: number, max: number, invert = false) {
270
272
  return (max * (2 ** (level / 10) - 1)) / (2 ** 10 - 1);
271
273
  }
272
274
 
273
- export {
274
- DEFAULT_CONTOURS_OPTIONS,
275
- contoursManager,
276
- drawContours,
277
- getDefaultContoursLevel,
278
- };
275
+ export function initializeContoursLevels(spectrum: any) {
276
+ const { data } = spectrum;
277
+
278
+ if ('rr' in data) return getDefaultContoursLevel(spectrum);
279
+
280
+ return DEFAULT_CONTOURS_OPTIONS;
281
+ }
282
+
283
+ export function initializeContours(spectra: Spectrum[]) {
284
+ const contoursOptions: Record<string, ContourOptions> = {};
285
+ for (const spectrum of spectra) {
286
+ if (isFt2DSpectrum(spectrum)) {
287
+ const spectrum2D = spectrum as Spectrum2D;
288
+ contoursOptions[spectrum2D.id] = initializeContoursLevels(spectrum2D);
289
+ }
290
+ }
291
+ return contoursOptions;
292
+ }
293
+
294
+ export { contoursManager, drawContours };
279
295
  export type { LevelSign };
@@ -7,10 +7,6 @@ import { Filters2DManager } from 'nmr-processing';
7
7
  import type { UsedColors } from '../../../types/UsedColors.js';
8
8
  import { initiateFilters } from '../../initiateFilters.js';
9
9
 
10
- import {
11
- DEFAULT_CONTOURS_OPTIONS,
12
- getDefaultContoursLevel,
13
- } from './contours.js';
14
10
  import { get2DColor } from './get2DColor.js';
15
11
  import { initiateZones } from './zones/initiateZones.js';
16
12
 
@@ -42,18 +38,6 @@ function initiateInfo(spectrum: any) {
42
38
  ...spectrum.info,
43
39
  };
44
40
  }
45
- function initiateContoursLevels(spectrum: any) {
46
- const {
47
- display: { contourOptions },
48
- data,
49
- } = spectrum;
50
-
51
- if (contourOptions) return contourOptions;
52
-
53
- if ('rr' in data) return getDefaultContoursLevel(spectrum);
54
-
55
- return DEFAULT_CONTOURS_OPTIONS;
56
- }
57
41
 
58
42
  export function initiateDatum2D(
59
43
  spectrum: any,
@@ -82,7 +66,7 @@ export function initiateDatum2D(
82
66
  //reapply filters after load the original data
83
67
  Filters2DManager.reapplyFilters(datum);
84
68
 
85
- datum.display.contourOptions = initiateContoursLevels(datum);
69
+ // datum.display.contourOptions = initializeSpectrumContoursOptions(datum);
86
70
 
87
71
  return datum;
88
72
  }
@@ -31,15 +31,25 @@ export const DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT: MoleculeBoundingRect =
31
31
 
32
32
  export type MoleculesView = Record<string, MoleculeView>;
33
33
 
34
+ type InitializeMoleculeOptions = { text: string } & Omit<
35
+ Partial<StateMolecule>,
36
+ 'molfile'
37
+ >;
38
+
34
39
  export function initMolecule(
35
- options: Partial<StateMolecule> = {},
40
+ options: InitializeMoleculeOptions,
36
41
  ): StateMoleculeExtended {
37
- const id = options.id || crypto.randomUUID();
38
- const label = options.label || 'p#';
39
- const molfile = options.molfile || '';
42
+ const { id = crypto.randomUUID(), label = 'p#', text } = options;
43
+
44
+ const molecule = Molecule.fromText(text);
40
45
 
41
- const mol = Molecule.fromMolfile(molfile);
42
- const mfInfo = mol.getMolecularFormula();
46
+ if (!molecule) {
47
+ throw new Error(
48
+ 'Failed to parse SMILES or molfile. Please paste a valid format',
49
+ );
50
+ }
51
+ const molfile = molecule.toMolfileV3();
52
+ const mfInfo = molecule.getMolecularFormula();
43
53
 
44
54
  return {
45
55
  id,
@@ -49,7 +59,7 @@ export function initMolecule(
49
59
  mf: mfInfo.formula,
50
60
  em: mfInfo.absoluteWeight,
51
61
  mw: mfInfo.relativeWeight,
52
- svg: mol.toSVG(50, 50),
62
+ svg: molecule.toSVG(50, 50),
53
63
  atoms: getAtomsFromMF(mfInfo.formula),
54
64
  };
55
65
  }
@@ -1,5 +1,5 @@
1
1
  import type { StateMolecule } from '@zakodium/nmrium-core';
2
- import { readSDF, readSMILES } from '@zakodium/nmrium-core-plugins';
2
+ import { readSDF } from '@zakodium/nmrium-core-plugins';
3
3
  import { Molecule } from 'openchemlib';
4
4
 
5
5
  import type { StateMoleculeExtended } from './Molecule.js';
@@ -14,22 +14,23 @@ export function fromJSON(
14
14
 
15
15
  const molecules: StateMoleculeExtended[] = [];
16
16
  for (const mol of mols) {
17
- const molecule = Molecule.fromMolfile(mol.molfile);
18
-
19
- const atomCount = molecule.getAllAtoms();
20
-
21
- if (atomCount === 0) {
22
- continue;
23
- }
24
-
17
+ const {
18
+ molfile,
19
+ label = `P${getLabelNumber(reservedNumbers)}`,
20
+ id,
21
+ ...others
22
+ } = mol;
25
23
  const moleculeOverride = {
26
- ...mol,
27
- molfile: molecule.toMolfileV3(),
28
- label: mol.label || `P${getLabelNumber(reservedNumbers)}`,
29
- id: mol.id,
24
+ ...others,
25
+ text: molfile,
26
+ label,
27
+ id,
30
28
  };
31
-
32
- molecules.push(initMolecule(moleculeOverride));
29
+ try {
30
+ molecules.push(initMolecule(moleculeOverride));
31
+ } catch {
32
+ continue;
33
+ }
33
34
  }
34
35
 
35
36
  return molecules;
@@ -49,10 +50,9 @@ export function addMolfile(
49
50
 
50
51
  // try to parse molfile
51
52
  // this will throw if the molecule can not be parsed !
52
- const molecule = Molecule.fromMolfile(molfile);
53
53
  molecules.push(
54
54
  initMolecule({
55
- molfile: molecule.toMolfileV3(),
55
+ text: molfile,
56
56
  label: label ?? `P${getLabelNumber(reservedNumbers)}`,
57
57
  id,
58
58
  }),
@@ -66,9 +66,8 @@ export function setMolfile(
66
66
  const { molfile, id, label } = currentMolecule;
67
67
  // try to parse molfile
68
68
  // this will throw if the molecule can not be parsed !
69
- const molecule = Molecule.fromMolfile(molfile);
70
69
  const _mol = initMolecule({
71
- molfile: molecule.toMolfileV3(),
70
+ text: molfile,
72
71
  id,
73
72
  label,
74
73
  });
@@ -137,20 +136,23 @@ function validateMolecules(molecules: StateMolecule[]) {
137
136
  * @param text - text containing one or several molecules in SMILES, molfile or SDF format
138
137
  * @returns
139
138
  */
140
- export function getMolecules(text?: string) {
141
- if (!text?.trim()) {
142
- throw new Error(parseErrorMessage);
143
- }
144
139
 
145
- // parse SDF
146
- let molecules = [];
147
- const parse = /v[23]000/i.test(text) ? readSDF : readSMILES;
140
+ function parseSDF(text: string) {
148
141
  try {
149
- molecules = parse(text);
142
+ const molecules = readSDF(text);
143
+ validateMolecules(molecules);
144
+ return molecules;
150
145
  } catch (error) {
151
146
  throw new Error(parseErrorMessage, { cause: error });
152
147
  }
148
+ }
153
149
 
154
- validateMolecules(molecules);
155
- return molecules;
150
+ export function getMolecules(text?: string) {
151
+ if (!text?.trim()) {
152
+ throw new Error(parseErrorMessage);
153
+ }
154
+
155
+ const isSDF = /v[23]000/i.test(text);
156
+
157
+ return isSDF ? parseSDF(text) : [initMolecule({ text })];
156
158
  }
@@ -1 +1 @@
1
- export default { version: 'v1.12.0' };
1
+ export default { version: 'v2.0.0' };
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkUniqueByKey.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEzC,UAAU,uBAAuB,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,WA6CtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkUniqueByKey.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,gBAAgB,CAAI,OAAmC;IACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAE3D,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,MAAM,kBAAkB,GAGpB,EAAE,CAAC;IACP,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,GAAG,CAAC;QACR,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEnC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,GAAG,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;QACjC,CAAC;QAED,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;gBAChC,kBAAkB,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;iBAAM,CAAC;gBACN,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;YACjE,CAAC;QACH,CAAC;QACD,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACrC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACzD,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC;oBACf,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,GAAG,GAAG,iBAAiB;oBAChC,IAAI,EAAE,QAAQ;wBACZ,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;wBACrC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;iBAC9B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}