@sheetxl/react 0.8.0-beta.2 → 0.8.0-beta.20

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 (405) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/B06WJCAWTIB7QYlK.mjs +45 -0
  3. package/browser/esm/B8_6V0LUnuA1dLW6.mjs +20 -0
  4. package/browser/esm/BFjx8_H3wUxrWDq9.mjs +60 -0
  5. package/browser/esm/BGcs5WWx5PpaiJo4.mjs +36 -0
  6. package/browser/esm/BcC6S9k7zkHfCNRX.mjs +42 -0
  7. package/browser/esm/BkBxhk45Iln3h-sG.mjs +67 -0
  8. package/browser/esm/BzZ2vOT8CNsqcL8P.mjs +79 -0
  9. package/browser/esm/C1Qp40Kq88D9nzcX.mjs +19 -0
  10. package/browser/esm/C5RaHvks1HTBfWcr.mjs +14092 -0
  11. package/browser/esm/CM9e6dbkYbw56iFf.mjs +401 -0
  12. package/browser/esm/COn0z_IT5hyEPNfV.mjs +8 -0
  13. package/browser/esm/CPjk4grd05Rp-e3V.mjs +9560 -0
  14. package/browser/esm/CU67T36gmVTq9ZwH.mjs +31 -0
  15. package/browser/esm/CUPlUCBX7owYqDq5.mjs +78 -0
  16. package/browser/esm/Ca_Ki0Si5ozlm1sl.mjs +197 -0
  17. package/browser/esm/CckrsFaUWle82oNL.mjs +63 -0
  18. package/browser/esm/Ch5X-uGft55TOqxa.mjs +262 -0
  19. package/browser/esm/CtbJ8PCap2NGxlu0.mjs +32 -0
  20. package/browser/esm/Cwye4MAU1-EF7Xlv.mjs +341 -0
  21. package/browser/esm/DcEGutcM_5gl0fZm.mjs +145 -0
  22. package/browser/esm/DeOhqQroIiAic6-j.mjs +2706 -0
  23. package/browser/esm/Dkw3FFdQKXZQrkFv.mjs +303 -0
  24. package/browser/esm/QJPDAP6UIHTbY1fM.mjs +134 -0
  25. package/browser/esm/SESUB_fypyWmhCWm.mjs +323 -0
  26. package/browser/esm/chart.mjs +41 -0
  27. package/browser/esm/control.mjs +217 -0
  28. package/browser/esm/group.mjs +123 -0
  29. package/browser/esm/index.mjs +22345 -13175
  30. package/browser/esm/note.mjs +112 -0
  31. package/browser/esm/picture.mjs +7 -0
  32. package/browser/esm/qeb-_mAjUAWD7bo4.mjs +128 -0
  33. package/browser/esm/shape.mjs +7 -0
  34. package/browser/esm/slicer.mjs +277 -0
  35. package/licenses/dependencies.txt +284 -565
  36. package/node/esm/77PQMLXXAN7fjBHS.mjs +8 -0
  37. package/node/esm/7_AWLfp_6MpYBpiV.mjs +32 -0
  38. package/node/esm/BOAB33GIG2M2CWMr.mjs +80 -0
  39. package/node/esm/BbnUYxeK64Fq92Lo.mjs +406 -0
  40. package/node/esm/C7wmHIY8RLeNSX3T.mjs +35 -0
  41. package/node/esm/C9Yq98-vMDznppO2.mjs +134 -0
  42. package/node/esm/CBHY_xaB7ke3yH-f.mjs +66 -0
  43. package/node/esm/CER7_OJffhze14wR.mjs +20 -0
  44. package/node/esm/CWOKAmLpdinc-0TK.mjs +263 -0
  45. package/node/esm/CqnJ_hGK1txHO0j9.mjs +328 -0
  46. package/node/esm/D63HF8XToGXrf7ds.mjs +45 -0
  47. package/node/esm/DmPmSA-2Aha-_6qu.mjs +198 -0
  48. package/node/esm/DrFBSp6XMEAjkdoG.mjs +1697 -0
  49. package/node/esm/DytW9LaLlJGM-6m6.mjs +2706 -0
  50. package/node/esm/Ef8HHL90yLZgk3Gf.mjs +146 -0
  51. package/node/esm/G9tXP39ldfioRVhL.mjs +68 -0
  52. package/node/esm/Jy5x43_CAF31L14-.mjs +37 -0
  53. package/node/esm/Nn0yfoegNHIym4QM.mjs +63 -0
  54. package/node/esm/UBas29HOMjk4p5jo.mjs +19 -0
  55. package/node/esm/c1FOnFN_eCD6KR4l.mjs +80 -0
  56. package/node/esm/chart.mjs +41 -0
  57. package/node/esm/control.mjs +217 -0
  58. package/node/esm/gfwmGAXGhq9IIu1U.mjs +128 -0
  59. package/node/esm/group.mjs +123 -0
  60. package/node/esm/index.mjs +19282 -9996
  61. package/node/esm/note.mjs +113 -0
  62. package/node/esm/picture.mjs +305 -0
  63. package/node/esm/shape.mjs +342 -0
  64. package/node/esm/slicer.mjs +279 -0
  65. package/package.json +56 -15
  66. package/resources/contents.json +36 -0
  67. package/resources/locales/contents.json +84 -0
  68. package/resources/locales/de/chart.cmd.json +82 -0
  69. package/resources/locales/de/movable.cmd.json +68 -0
  70. package/resources/locales/de/picture.cmd.json +188 -0
  71. package/resources/locales/de/pivot.cmd.json +79 -0
  72. package/resources/locales/de/shape.cmd.json +17 -0
  73. package/resources/locales/de/sheet.cmd.json +314 -27
  74. package/resources/locales/de/slicer.cmd.json +17 -0
  75. package/resources/locales/de/sparkline.cmd.json +301 -0
  76. package/resources/locales/de/table.cmd.json +13 -2
  77. package/resources/locales/de/ui.msg.json +367 -3
  78. package/resources/locales/de/workbook.cmd.json +8 -1
  79. package/resources/locales/en/chart.cmd.json +82 -0
  80. package/resources/locales/en/movable.cmd.json +68 -0
  81. package/resources/locales/en/picture.cmd.json +188 -0
  82. package/resources/locales/en/pivot.cmd.json +79 -0
  83. package/resources/locales/en/shape.cmd.json +17 -0
  84. package/resources/locales/en/sheet.cmd.json +328 -29
  85. package/resources/locales/en/slicer.cmd.json +17 -0
  86. package/resources/locales/en/sparkline.cmd.json +301 -0
  87. package/resources/locales/en/table.cmd.json +13 -2
  88. package/resources/locales/en/ui.msg.json +369 -3
  89. package/resources/locales/en/workbook.cmd.json +8 -1
  90. package/types/chart.d.ts +2 -0
  91. package/types/control.d.ts +2 -0
  92. package/types/group.d.ts +2 -0
  93. package/types/note.d.ts +2 -0
  94. package/types/picture.d.ts +2 -0
  95. package/types/shape.d.ts +2 -0
  96. package/types/slicer.d.ts +2 -0
  97. package/types/src/annotation/RangeAnnotationLayer.d.ts +110 -0
  98. package/types/src/annotation/RangeAnnotationTag.d.ts +23 -0
  99. package/types/src/annotation/RangeAnnotations.d.ts +180 -0
  100. package/types/src/annotation/index.d.ts +4 -0
  101. package/types/src/autoFill/FillMenu.d.ts +2 -2
  102. package/types/src/autoFill/FillSeries.d.ts +2 -2
  103. package/types/src/border/StaticBorderRenderer.d.ts +18 -1
  104. package/types/src/border/useBorders.d.ts +95 -3
  105. package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
  106. package/types/src/cell/CellContent.d.ts +68 -0
  107. package/types/src/cell/CellControlContext.d.ts +37 -0
  108. package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +10 -7
  109. package/types/src/cell/CellImageRenderer.d.ts +11 -0
  110. package/types/src/cell/CellRenderers.d.ts +190 -0
  111. package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +11 -8
  112. package/types/src/cell/ColumnButton.d.ts +3 -3
  113. package/types/src/cell/CornerTriangle.d.ts +6 -0
  114. package/types/src/cell/OutlineButton.d.ts +123 -0
  115. package/types/src/cell/PivotButton.d.ts +55 -0
  116. package/types/src/cell/SheetHeaderRenderer.d.ts +6 -1
  117. package/types/src/cell/StaticCellRenderer.d.ts +3 -3
  118. package/types/src/cell/_DropdownFace.d.ts +29 -0
  119. package/types/src/cell/index.d.ts +10 -2
  120. package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
  121. package/types/src/cell/useInsertableCellControls.d.ts +25 -0
  122. package/types/src/chart/ChartCommands.d.ts +15 -0
  123. package/types/src/chart/ChartEditor.d.ts +12 -2
  124. package/types/src/chart/ChartElement.d.ts +122 -0
  125. package/types/src/chart/ChartKind.d.ts +7 -0
  126. package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
  127. package/types/src/chart/index.d.ts +2 -1
  128. package/types/src/chart/paint/_fills.d.ts +24 -0
  129. package/types/src/chart/paint/_graphics.d.ts +38 -0
  130. package/types/src/chart/paint/_mode.d.ts +6 -0
  131. package/types/src/chart/paint/echarts.d.ts +33 -0
  132. package/types/src/chart/paint/index.d.ts +12 -0
  133. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +140 -0
  134. package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
  135. package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
  136. package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
  137. package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
  138. package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
  139. package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
  140. package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
  141. package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
  142. package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
  143. package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
  144. package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
  145. package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
  146. package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
  147. package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
  148. package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
  149. package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
  150. package/types/src/chart/paint/kinds/_builtIns.d.ts +3 -0
  151. package/types/src/chart/paint/toEChartsOption.d.ts +42 -0
  152. package/types/src/checklist/ValueChecklist.d.ts +60 -19
  153. package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
  154. package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
  155. package/types/src/commands/ContextualToolbar.d.ts +19 -0
  156. package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
  157. package/types/src/commands/index.d.ts +1 -0
  158. package/types/src/comment/CommentCardRequest.d.ts +94 -0
  159. package/types/src/comment/CommentUtils.d.ts +43 -0
  160. package/types/src/comment/NoteEditor.d.ts +20 -0
  161. package/types/src/comment/index.d.ts +5 -0
  162. package/types/src/comment/useCommentThread.d.ts +37 -0
  163. package/types/src/comment/useSheetComments.d.ts +28 -0
  164. package/types/src/conditionalFormat/ConditionalFormatPresets.d.ts +6 -6
  165. package/types/src/context/WorksheetContext.d.ts +18 -0
  166. package/types/src/context/index.d.ts +1 -1
  167. package/types/src/control/FormControlRenderers.d.ts +22 -0
  168. package/types/src/editableLabel/EditableLabel.d.ts +3 -1
  169. package/types/src/editor/EditorCommands.d.ts +3 -3
  170. package/types/src/editor/FunctionPreviewPanel.d.ts +1 -1
  171. package/types/src/editor/SheetCellEditorLayer.d.ts +2 -10
  172. package/types/src/editor/SheetCellEditorStartLayer.d.ts +61 -0
  173. package/types/src/editor/SheetCellInput.d.ts +14 -0
  174. package/types/src/editor/SheetEditable.d.ts +6 -6
  175. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
  176. package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
  177. package/types/src/editor/VirtualKeyboardLayer.d.ts +50 -0
  178. package/types/src/editor/formulaAnchor.d.ts +12 -0
  179. package/types/src/editor/index.d.ts +3 -0
  180. package/types/src/editor/pickedReference.d.ts +3 -3
  181. package/types/src/editor/useEditRejectedNotice.d.ts +3 -3
  182. package/types/src/editor/useFormulaHints.d.ts +3 -3
  183. package/types/src/editor/useFormulaInput.d.ts +15 -3
  184. package/types/src/editor/validationAlert.d.ts +24 -0
  185. package/types/src/form/FormulaInput.d.ts +5 -2
  186. package/types/src/form/useEditCommit.d.ts +23 -3
  187. package/types/src/form/useInputField.d.ts +2 -3
  188. package/types/src/frame/CommandContext.d.ts +101 -3
  189. package/types/src/group/GroupEditor.d.ts +25 -0
  190. package/types/src/index.d.ts +12 -1
  191. package/types/src/layer/BorderLayer.d.ts +5 -2
  192. package/types/src/layer/CellErrorLayer.d.ts +18 -7
  193. package/types/src/layer/CellFillLayer.d.ts +2 -2
  194. package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
  195. package/types/src/layer/CellInsertLayer.d.ts +71 -0
  196. package/types/src/layer/CircularIndicatorLayer.d.ts +3 -3
  197. package/types/src/layer/CommentCardLayer.d.ts +43 -0
  198. package/types/src/layer/CommentsLayer.d.ts +35 -0
  199. package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
  200. package/types/src/layer/ConditionalIcons.d.ts +4 -4
  201. package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
  202. package/types/src/layer/ContextMenuLayer.d.ts +2 -2
  203. package/types/src/layer/FreezeDragLines.d.ts +17 -0
  204. package/types/src/layer/GridFreezeLayer.d.ts +11 -0
  205. package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
  206. package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
  207. package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
  208. package/types/src/layer/HyperlinkLayer.d.ts +116 -0
  209. package/types/src/layer/MovableKindScope.d.ts +17 -0
  210. package/types/src/layer/PivotLayer.d.ts +47 -0
  211. package/types/src/layer/PivotToolbar.d.ts +29 -0
  212. package/types/src/layer/ProtectionLayer.d.ts +4 -5
  213. package/types/src/layer/RangeToolbar.d.ts +75 -0
  214. package/types/src/layer/ResizeIndicator.d.ts +11 -10
  215. package/types/src/layer/ResizeTooltip.d.ts +13 -0
  216. package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
  217. package/types/src/layer/SheetCellLayer.d.ts +15 -8
  218. package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
  219. package/types/src/layer/SheetGridLineLayer.d.ts +25 -15
  220. package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
  221. package/types/src/layer/SheetLayers.d.ts +171 -0
  222. package/types/src/layer/SheetMovableLayer.d.ts +4 -3
  223. package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
  224. package/types/src/layer/SheetPivotCommandLayer.d.ts +13 -0
  225. package/types/src/layer/SheetSparklineCommandLayer.d.ts +14 -0
  226. package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
  227. package/types/src/layer/SparklineLayer.d.ts +32 -0
  228. package/types/src/layer/SpillLayer.d.ts +2 -2
  229. package/types/src/layer/TableLayer.d.ts +6 -5
  230. package/types/src/layer/TableToolbar.d.ts +23 -0
  231. package/types/src/layer/ValidationDropdownLayer.d.ts +2 -2
  232. package/types/src/layer/ValidationIndicatorLayer.d.ts +2 -2
  233. package/types/src/layer/ValidationPromptLayer.d.ts +47 -16
  234. package/types/src/layer/_sheetBorders.d.ts +6 -0
  235. package/types/src/layer/_tableColor.d.ts +6 -0
  236. package/types/src/layer/_visibleCellFeatures.d.ts +11 -0
  237. package/types/src/layer/cellTip.d.ts +13 -0
  238. package/types/src/layer/freezeDragState.d.ts +21 -0
  239. package/types/src/layer/index.d.ts +17 -0
  240. package/types/src/layer/resizeIndicatorState.d.ts +3 -1
  241. package/types/src/layer/useFreezeDrag.d.ts +22 -0
  242. package/types/src/layer/useNormalBorderLines.d.ts +15 -0
  243. package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
  244. package/types/src/layer/useSheetVisibleCells.d.ts +5 -6
  245. package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
  246. package/types/src/layer/useTableHeaderCells.d.ts +2 -2
  247. package/types/src/layer/useValidationPicker.d.ts +3 -3
  248. package/types/src/layer/useVisibleTables.d.ts +2 -2
  249. package/types/src/layer/validationMark.d.ts +3 -3
  250. package/types/src/listener/index.d.ts +5 -0
  251. package/types/src/listener/useCell.d.ts +29 -0
  252. package/types/src/listener/useCellRange.d.ts +23 -0
  253. package/types/src/listener/useCellValue.d.ts +26 -0
  254. package/types/src/listener/useModelListener.d.ts +8 -8
  255. package/types/src/listener/useRangeListener.d.ts +13 -7
  256. package/types/src/listener/useRangeSnapshot.d.ts +35 -0
  257. package/types/src/listener/useTable.d.ts +26 -0
  258. package/types/src/movable/ConnectionSites.d.ts +18 -0
  259. package/types/src/movable/DefaultMovable.d.ts +8 -0
  260. package/types/src/movable/IMovableArea.d.ts +56 -0
  261. package/types/src/movable/MovableAdornment.d.ts +26 -0
  262. package/types/src/movable/MovableCommandGroups.d.ts +22 -0
  263. package/types/src/movable/MovableCommands.d.ts +8 -3
  264. package/types/src/movable/MovableControl.d.ts +80 -0
  265. package/types/src/movable/MovableEdit.d.ts +22 -0
  266. package/types/src/movable/MovableFrame.d.ts +18 -14
  267. package/types/src/movable/MovableLayer.d.ts +30 -5
  268. package/types/src/movable/MovableRenderers.d.ts +210 -0
  269. package/types/src/movable/PlaceholderFrames.d.ts +11 -0
  270. package/types/src/movable/RotateHandle.d.ts +37 -0
  271. package/types/src/movable/TextBox.d.ts +34 -0
  272. package/types/src/movable/connect.d.ts +16 -0
  273. package/types/src/movable/framePlacement.d.ts +72 -0
  274. package/types/src/movable/geometry.d.ts +61 -0
  275. package/types/src/movable/index.d.ts +11 -0
  276. package/types/src/movable/pressTarget.d.ts +20 -0
  277. package/types/src/movable/useFramePreview.d.ts +17 -0
  278. package/types/src/picker/cellPickerOpen.d.ts +3 -3
  279. package/types/src/picker/useCellPicker.d.ts +7 -5
  280. package/types/src/picture/PictureCommands.d.ts +20 -0
  281. package/types/src/picture/PictureKind.d.ts +7 -0
  282. package/types/src/picture/_pictureHyperlink.d.ts +13 -0
  283. package/types/src/picture/index.d.ts +0 -1
  284. package/types/src/picture/pictureCrop.d.ts +32 -0
  285. package/types/src/pivot/PivotAreas.d.ts +16 -0
  286. package/types/src/pivot/PivotChip.d.ts +33 -0
  287. package/types/src/pivot/PivotChipMenu.d.ts +74 -0
  288. package/types/src/pivot/PivotCommands.d.ts +24 -0
  289. package/types/src/pivot/PivotFieldList.d.ts +14 -0
  290. package/types/src/pivot/PivotFields.d.ts +47 -0
  291. package/types/src/pivot/PivotFieldsModel.d.ts +143 -0
  292. package/types/src/pivot/PivotTablePane.d.ts +47 -0
  293. package/types/src/pivot/_PivotFieldsContext.d.ts +41 -0
  294. package/types/src/pivot/_pivotNew.d.ts +12 -0
  295. package/types/src/pivot/_pivotRegion.d.ts +14 -0
  296. package/types/src/pivot/index.d.ts +9 -0
  297. package/types/src/pivot/usePivotFields.d.ts +17 -0
  298. package/types/src/presence/PresenceCommands.d.ts +35 -0
  299. package/types/src/presence/PresenceHost.d.ts +58 -0
  300. package/types/src/presence/PresenceMessages.d.ts +42 -0
  301. package/types/src/presence/PresenceStore.d.ts +165 -0
  302. package/types/src/presence/PresenceTypes.d.ts +78 -0
  303. package/types/src/presence/index.d.ts +7 -0
  304. package/types/src/presence/usePresence.d.ts +20 -0
  305. package/types/src/richText/RichTextEditor.d.ts +41 -0
  306. package/types/src/richText/index.d.ts +2 -0
  307. package/types/src/selection/SelectionCommands.d.ts +2 -2
  308. package/types/src/selection/SheetSelectionLayer.d.ts +6 -12
  309. package/types/src/shape/ConnectorControl.d.ts +46 -0
  310. package/types/src/shape/ShapeCommands.d.ts +11 -0
  311. package/types/src/shape/ShapeControl.d.ts +8 -0
  312. package/types/src/shape/ShapeEditor.d.ts +15 -2
  313. package/types/src/shape/ShapeGallery.d.ts +31 -0
  314. package/types/src/shape/ShapeHandles.d.ts +28 -0
  315. package/types/src/shape/ShapeKind.d.ts +7 -0
  316. package/types/src/shape/ShapeSVG.d.ts +22 -0
  317. package/types/src/shape/ShapeText.d.ts +17 -0
  318. package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
  319. package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
  320. package/types/src/shape/index.d.ts +3 -1
  321. package/types/src/shape/shapeFrame.d.ts +50 -0
  322. package/types/src/shape/shapeStyle.d.ts +82 -0
  323. package/types/src/sheet/ISheetHeaderElement.d.ts +3 -3
  324. package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +111 -81
  325. package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
  326. package/types/src/sheet/SheetCommandProvider.d.ts +14 -6
  327. package/types/src/sheet/SheetCommands.d.ts +20 -5
  328. package/types/src/sheet/SheetKindIcon.d.ts +14 -0
  329. package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
  330. package/types/src/sheet/SheetPanels.d.ts +11 -0
  331. package/types/src/sheet/SheetScrollbar.d.ts +4 -13
  332. package/types/src/sheet/TopLeftCorner.d.ts +2 -2
  333. package/types/src/sheet/WorksheetElement.d.ts +12 -0
  334. package/types/src/sheet/_freezeAt.d.ts +10 -0
  335. package/types/src/sheet/_hyperlinkEdit.d.ts +7 -0
  336. package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
  337. package/types/src/sheet/circularReferences.d.ts +4 -4
  338. package/types/src/sheet/index.d.ts +5 -2
  339. package/types/src/sheet/useCycleHighlight.d.ts +2 -2
  340. package/types/src/slicer/SlicerCommands.d.ts +10 -0
  341. package/types/src/slicer/SlicerEditor.d.ts +8 -2
  342. package/types/src/slicer/SlicerKind.d.ts +7 -0
  343. package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
  344. package/types/src/slicer/index.d.ts +2 -1
  345. package/types/src/slicer/slicerStyles.d.ts +32 -0
  346. package/types/src/sparkline/PictureCache.d.ts +37 -0
  347. package/types/src/sparkline/SparklineCommands.d.ts +23 -0
  348. package/types/src/sparkline/SparklinePictures.d.ts +7 -0
  349. package/types/src/sparkline/paint/_drawing.d.ts +24 -0
  350. package/types/src/sparkline/paint/echarts.d.ts +8 -0
  351. package/types/src/sparkline/paint/index.d.ts +8 -0
  352. package/types/src/tabStrip/SheetTab.d.ts +1 -1
  353. package/types/src/tabStrip/Sortable.d.ts +5 -5
  354. package/types/src/tabStrip/TabStrip.d.ts +13 -6
  355. package/types/src/tabStrip/TabStripItem.d.ts +15 -13
  356. package/types/src/table/TableCommands.d.ts +2 -2
  357. package/types/src/taskPane/CellControlPane.d.ts +15 -0
  358. package/types/src/taskPane/MovablePane.d.ts +15 -0
  359. package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
  360. package/types/src/taskPane/TaskPaneFrame.d.ts +4 -4
  361. package/types/src/taskPane/TaskPaneKeys.d.ts +38 -0
  362. package/types/src/taskPane/TaskPaneRegistry.d.ts +32 -12
  363. package/types/src/taskPane/_paneReasons.d.ts +7 -0
  364. package/types/src/taskPane/index.d.ts +3 -0
  365. package/types/src/taskPane/useTaskPane.d.ts +6 -3
  366. package/types/src/theme/ThemeState.d.ts +15 -2
  367. package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
  368. package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
  369. package/types/src/theme/useGridColorScheme.d.ts +3 -3
  370. package/types/src/theme/useSystemColors.d.ts +2 -2
  371. package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
  372. package/types/src/workbook/DefaultRenderers.d.ts +5 -4
  373. package/types/src/workbook/IWorkbookElement.d.ts +108 -23
  374. package/types/src/workbook/WorkbookCommands.d.ts +8 -3
  375. package/types/src/workbook/WorkbookStrip.d.ts +14 -5
  376. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  377. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
  378. package/browser/cjs/index.cjs +0 -41
  379. package/browser/esm/Dsn3z1hmkv-bWGVr.mjs +0 -6286
  380. package/node/esm/CyU4sKDpHyc6kF7j.mjs +0 -9
  381. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
  382. package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
  383. package/types/src/chart/templates/area-template.json.d.ts +0 -9
  384. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
  385. package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
  386. package/types/src/chart/templates/bar-template.json.d.ts +0 -9
  387. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
  388. package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
  389. package/types/src/chart/templates/column-template.json.d.ts +0 -9
  390. package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
  391. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
  392. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
  393. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
  394. package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
  395. package/types/src/chart/templates/line-template.json.d.ts +0 -9
  396. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
  397. package/types/src/chart/templates/pie-template.json.d.ts +0 -9
  398. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
  399. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
  400. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
  401. package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
  402. package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
  403. package/types/src/context/SheetContext.d.ts +0 -18
  404. package/types/src/movable/MoveableBundle.d.ts +0 -4
  405. package/types/src/sheet/SheetElement.d.ts +0 -15
@@ -0,0 +1,1697 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.20
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { t as e } from "./C7wmHIY8RLeNSX3T.mjs";
8
+ import { Color as t, IFill as i, IStroke as r, PaintUtils as s } from "@sheetxl/sdk";
9
+ import * as n from "echarts/core";
10
+ import { BarChart as o, LineChart as l, PieChart as a } from "echarts/charts";
11
+ import { GraphicComponent as p, GridComponent as h, LegendComponent as c, TitleComponent as d, TooltipComponent as y } from "echarts/components";
12
+ import { SVGRenderer as f } from "echarts/renderers";
13
+ var u = {
14
+ pct5: "0040000000040000",
15
+ pct10: "0004004000040040",
16
+ pct20: "0044001100440011",
17
+ pct25: "1144114411441144",
18
+ pct30: "8855225588552255",
19
+ pct40: "8A55AA55A855AA55",
20
+ pct50: "AA55AA55AA55AA55",
21
+ pct60: "AA77AADDAA77AADD",
22
+ pct70: "EEBBEEBBEEBBEEBB",
23
+ pct75: "FFBBFFEEFFBBFFEE",
24
+ pct80: "FF7FFFF7FF7FFFF7",
25
+ pct90: "BFFFFFFFFBFFFFFF",
26
+ dkHorz: "00FFFF0000FFFF00",
27
+ dkVert: "6666666666666666",
28
+ dkDnDiag: "CC663399CC663399",
29
+ dkUpDiag: "CC993366CC993366",
30
+ smCheck: "CCCC3333CCCC3333",
31
+ trellis: "CCFF33FFCCFF33FF",
32
+ ltHorz: "00FF000000FF0000",
33
+ ltVert: "4444444444444444",
34
+ ltDnDiag: "8844221188442211",
35
+ ltUpDiag: "4488112244881122",
36
+ smGrid: "44FF444444FF4444",
37
+ dotDmnd: "0040001100040011",
38
+ wdDnDiag: "C1E070381C0E0783",
39
+ wdUpDiag: "E0C183070E1C3870",
40
+ dashUpDiag: "1122440000000088",
41
+ dashDnDiag: "2211880000000044",
42
+ narVert: "AAAAAAAAAAAAAAAA",
43
+ narHorz: "00FF00FF00FF00FF",
44
+ dashVert: "0440404040040404",
45
+ dashHorz: "0078000000870000",
46
+ lgConfetti: "D8C606606C8D8118",
47
+ lgGrid: "0404040404FF0404",
48
+ horzBrick: "04FF404040FF0404",
49
+ lgCheck: "8778787878878787",
50
+ smConfetti: "1080080120044002",
51
+ zigZag: "C00C1221C00C1221",
52
+ solidDmnd: "F7E3C1800080C1E3",
53
+ diagBrick: "40C021120C081020",
54
+ openDmnd: "8041221408142241",
55
+ plaid: "AA8787878755AA55",
56
+ sphere: "7CBBC4C7C7BB4C7C",
57
+ weave: "2A44A0118A44A211",
58
+ dotGrid: "0004000400550004",
59
+ divot: "8000040804008040",
60
+ shingle: "8160100808182442",
61
+ wave: "0600C0290600C029"
62
+ }, g = (e) => {
63
+ const t = e ? u[e] : void 0;
64
+ if (!t) return null;
65
+ const i = [];
66
+ for (let e = 0; e < 8; e++) {
67
+ const r = parseInt(t.slice(2 * e, 2 * e + 2), 16);
68
+ i.push(Array.from({ length: 8 }, (e, t) => !!(r & 128 >> t)));
69
+ }
70
+ return i;
71
+ }, x = (e, t, i) => {
72
+ let r = "";
73
+ e.forEach((e, t) => e.forEach((e, i) => {
74
+ e && (r += `M${i} ${t}h1v1h-1z`);
75
+ }));
76
+ return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" shape-rendering="crispEdges"><rect width="8" height="8" fill="${i}"/><path d="${r}" fill="${t}"/></svg>`)}`;
77
+ }, m = (e) => Math.max(0, Math.min(1, e ?? 0)), b = (e) => {
78
+ const t = ((e) => {
79
+ const t = e.stops ?? [], i = Math.max(1, t.length - 1);
80
+ return t.map((e, t) => ({
81
+ offset: m("object" == typeof e && "number" == typeof e.offset ? e.offset : t / i),
82
+ color: "string" == typeof e ? e : String(e.color)
83
+ })).sort((e, t) => e.offset - t.offset);
84
+ })(e);
85
+ if ((e.gradientType ?? i.GradientType.Linear) === i.GradientType.Linear) {
86
+ const i = ((e.angle ?? 90) - 90) % 360 * Math.PI / 180, r = Math.cos(i), s = Math.sin(i), n = (Math.abs(r) + Math.abs(s)) / 2, o = (e) => Math.round(1e9 * e) / 1e9;
87
+ return {
88
+ type: "linear",
89
+ x: o(.5 - r * n),
90
+ y: o(.5 - s * n),
91
+ x2: o(.5 + r * n),
92
+ y2: o(.5 + s * n),
93
+ colorStops: t,
94
+ global: !1
95
+ };
96
+ }
97
+ const r = e.focus, s = (m(r?.left) + m(r?.right ?? r?.left)) / 2, n = (m(r?.top) + m(r?.bottom ?? r?.top)) / 2;
98
+ return {
99
+ type: "radial",
100
+ x: s,
101
+ y: n,
102
+ r: Math.hypot(Math.max(s, 1 - s), Math.max(n, 1 - n)),
103
+ colorStops: t,
104
+ global: !1
105
+ };
106
+ }, k = (e, t = "transparent") => {
107
+ if (!e) return t;
108
+ switch (e.type) {
109
+ case i.Type.Solid: return e.color ?? t;
110
+ case i.Type.Gradient: return (e.stops?.length ?? 0) > 0 ? b(e) : t;
111
+ case i.Type.Pattern: {
112
+ const t = String(e.foreground ?? "#000000"), i = String(e.background ?? "#FFFFFF");
113
+ return {
114
+ image: x(g(e.patternType) ?? g("pct50"), t, i),
115
+ repeat: "repeat",
116
+ imageWidth: 8,
117
+ imageHeight: 8
118
+ };
119
+ }
120
+ default: return t;
121
+ }
122
+ }, w = (e) => e?.width ?? 0, A = (e) => r.toDashLengths(e.dash)?.map((t) => t * w(e)), v = (e) => e.font?.family ?? "Calibri", F = (e) => (e.weight ?? 400) >= 600, z = (e) => "italic" === e.style, C = (e) => e.size ?? 0, M = (e) => "string" == typeof e.color ? e.color : k(e.color, "#000000"), S = (e) => ({
123
+ fontFamily: v(e),
124
+ fontSize: C(e),
125
+ color: M(e),
126
+ fontWeight: F(e) ? "bold" : "normal",
127
+ fontStyle: z(e) ? "italic" : "normal"
128
+ }), L = (e, t = C(e)) => {
129
+ return `${z(e) ? "italic " : ""}${F(e) ? "bold " : ""}${t}px ${i = v(e), i.includes(" ") ? `'${i}'` : i}`;
130
+ var i;
131
+ }, B = (e) => e ? {
132
+ stroke: k(e.fill, "none"),
133
+ lineWidth: w(e),
134
+ lineCap: e.lineCap ?? "butt",
135
+ lineDash: A(e)
136
+ } : {
137
+ stroke: "none",
138
+ lineWidth: 0
139
+ }, I = (e) => e ? {
140
+ color: k(e.fill),
141
+ width: w(e),
142
+ cap: e.lineCap ?? "butt",
143
+ join: "round",
144
+ type: A(e) ?? "solid"
145
+ } : { width: 0 }, E = {
146
+ x: [[
147
+ 0,
148
+ 0,
149
+ 1,
150
+ 1
151
+ ], [
152
+ 1,
153
+ 0,
154
+ 0,
155
+ 1
156
+ ]],
157
+ star: [
158
+ [
159
+ 0,
160
+ 0,
161
+ 1,
162
+ 1
163
+ ],
164
+ [
165
+ 1,
166
+ 0,
167
+ 0,
168
+ 1
169
+ ],
170
+ [
171
+ .5,
172
+ 0,
173
+ .5,
174
+ 1
175
+ ]
176
+ ],
177
+ plus: [[
178
+ .5,
179
+ 0,
180
+ .5,
181
+ 1
182
+ ], [
183
+ 0,
184
+ .5,
185
+ 1,
186
+ .5
187
+ ]]
188
+ }, $ = (e) => {
189
+ const t = e.size, i = w(e.stroke), r = E[e.symbol];
190
+ if (r) return {
191
+ symbol: "path://" + r.map(([e, t, i, r]) => `M${e} ${t}L${i} ${r}`).join(""),
192
+ symbolSize: t
193
+ };
194
+ switch (e.symbol) {
195
+ case "circle": return {
196
+ symbol: "circle",
197
+ symbolSize: t - i
198
+ };
199
+ case "square": return {
200
+ symbol: "rect",
201
+ symbolSize: t - i
202
+ };
203
+ case "dash": return {
204
+ symbol: "rect",
205
+ symbolSize: [t - i, t / 5 - i]
206
+ };
207
+ case "dot": return {
208
+ symbol: "rect",
209
+ symbolSize: [t / 2, t / 5 - i],
210
+ symbolOffset: [t / 4, 0]
211
+ };
212
+ case "triangle": return {
213
+ symbol: "triangle",
214
+ symbolSize: t
215
+ };
216
+ default: return {
217
+ symbol: "diamond",
218
+ symbolSize: t
219
+ };
220
+ }
221
+ }, D = (e) => e && E[e.symbol] && e.fill ? e.fill : null, W = (e, t, i, r) => {
222
+ const s = e.size, n = s / 2, o = {
223
+ fill: k(e.fill),
224
+ ...B(e.stroke)
225
+ }, l = E[e.symbol];
226
+ if (l) {
227
+ const o = D(e);
228
+ return [...o ? [{
229
+ type: "rect",
230
+ silent: !0,
231
+ z: r,
232
+ shape: {
233
+ x: t - n,
234
+ y: i - n,
235
+ width: s,
236
+ height: s
237
+ },
238
+ style: { fill: k(o) }
239
+ }] : [], ...l.map(([o, l, a, p]) => ({
240
+ type: "line",
241
+ silent: !0,
242
+ z: r,
243
+ shape: {
244
+ x1: t - n + o * s,
245
+ y1: i - n + l * s,
246
+ x2: t - n + a * s,
247
+ y2: i - n + p * s
248
+ },
249
+ style: B(e.stroke)
250
+ }))];
251
+ }
252
+ const a = w(e.stroke), p = s - a, h = s / 5 - a;
253
+ switch (e.symbol) {
254
+ case "circle": return [{
255
+ type: "circle",
256
+ silent: !0,
257
+ z: r,
258
+ shape: {
259
+ cx: t,
260
+ cy: i,
261
+ r: p / 2
262
+ },
263
+ style: o
264
+ }];
265
+ case "square": return [{
266
+ type: "rect",
267
+ silent: !0,
268
+ z: r,
269
+ shape: {
270
+ x: t - p / 2,
271
+ y: i - p / 2,
272
+ width: p,
273
+ height: p
274
+ },
275
+ style: o
276
+ }];
277
+ case "dash": return [{
278
+ type: "rect",
279
+ silent: !0,
280
+ z: r,
281
+ shape: {
282
+ x: t - p / 2,
283
+ y: i - h / 2,
284
+ width: p,
285
+ height: h
286
+ },
287
+ style: o
288
+ }];
289
+ case "dot": return [{
290
+ type: "rect",
291
+ silent: !0,
292
+ z: r,
293
+ shape: {
294
+ x: t,
295
+ y: i - h / 2,
296
+ width: n,
297
+ height: h
298
+ },
299
+ style: o
300
+ }];
301
+ case "triangle": return [{
302
+ type: "polygon",
303
+ silent: !0,
304
+ z: r,
305
+ shape: { points: [
306
+ [t, i - n],
307
+ [t + n, i + n],
308
+ [t - n, i + n]
309
+ ] },
310
+ style: o
311
+ }];
312
+ default: return [{
313
+ type: "polygon",
314
+ silent: !0,
315
+ z: r,
316
+ shape: { points: [
317
+ [t, i - n],
318
+ [t + n, i],
319
+ [t, i + n],
320
+ [t - n, i]
321
+ ] },
322
+ style: o
323
+ }];
324
+ }
325
+ }, H = (e, t, i, r) => {
326
+ const { rect: s, font: n } = e, o = [];
327
+ return (t || i) && o.push({
328
+ type: "rect",
329
+ silent: !0,
330
+ z: 59,
331
+ shape: {
332
+ x: s.x,
333
+ y: s.y,
334
+ width: s.width,
335
+ height: s.height
336
+ },
337
+ style: {
338
+ fill: k(t),
339
+ ...B(i)
340
+ }
341
+ }), o.push({
342
+ type: "text",
343
+ silent: !0,
344
+ z: 60,
345
+ x: s.x + s.width / 2,
346
+ y: s.y + s.height / 2,
347
+ rotation: (e.rotation ?? 0) * Math.PI / 180,
348
+ style: {
349
+ x: 0,
350
+ y: 0,
351
+ text: e.text,
352
+ fill: M(n),
353
+ font: L(n),
354
+ align: "center",
355
+ verticalAlign: "middle",
356
+ ...r ? { lineHeight: r } : {}
357
+ }
358
+ }), o;
359
+ }, j = (e) => (e?.segments ?? []).map((t) => ({
360
+ type: "line",
361
+ silent: !0,
362
+ z: 3,
363
+ shape: {
364
+ x1: t.from.x,
365
+ y1: t.from.y,
366
+ x2: t.to.x,
367
+ y2: t.to.y
368
+ },
369
+ style: {
370
+ fill: "none",
371
+ ...B(e.stroke)
372
+ }
373
+ })), G = (e) => (e?.bars ?? []).map((t) => {
374
+ const i = t.up ? e.up : e.down;
375
+ return {
376
+ type: "rect",
377
+ silent: !0,
378
+ z: 3,
379
+ shape: {
380
+ x: t.rect.x,
381
+ y: t.rect.y,
382
+ width: t.rect.width,
383
+ height: t.rect.height
384
+ },
385
+ style: {
386
+ fill: k(i.fill, "none"),
387
+ ...B(i.stroke)
388
+ }
389
+ };
390
+ }), P = {
391
+ types: ["bar"],
392
+ horizontal: (e) => "bar" === e.type && "bar" === e.barDir,
393
+ series: (e, t) => "bar" === e.type ? ((e, t) => {
394
+ const i = t.cartesian(e), r = "clustered" === e.grouping ? void 0 : `bar:${e.axisIds.join(":")}`, s = e.series.map((s, n) => ({
395
+ ...i.base(s),
396
+ type: "bar",
397
+ data: i.placed(s, s.plotted.map((e, t) => e === s.values[t] ? e : {
398
+ value: e,
399
+ source: s.values[t]
400
+ })),
401
+ ...r ? {
402
+ stack: r,
403
+ stackStrategy: "samesign"
404
+ } : {},
405
+ clip: !0,
406
+ barWidth: e.barWidth,
407
+ barMinWidth: 1e-6,
408
+ barGap: -e.overlap + "%",
409
+ z: 2 + n / e.series.length,
410
+ itemStyle: {
411
+ color: t.paint(s.fill),
412
+ borderColor: t.paint(s.stroke?.fill),
413
+ borderWidth: t.width(s.stroke)
414
+ }
415
+ }));
416
+ return "bar" === e.barDir == !!t.axisOf(e.axisIds[0])?.reversed || r ? s : s.reverse();
417
+ })(e, t) : [],
418
+ graphic: (e, t) => "bar" === e.type ? t.lines(e.seriesLines) : []
419
+ }, T = {
420
+ types: ["waterfall"],
421
+ graphic: (e, t) => "waterfall" === e.type ? ((e, t) => {
422
+ const i = [];
423
+ for (const r of e.series) for (const e of r.bars ?? []) e && i.push({
424
+ type: "rect",
425
+ silent: !0,
426
+ z: 2,
427
+ shape: {
428
+ x: e.rect.x,
429
+ y: e.rect.y,
430
+ width: e.rect.width,
431
+ height: e.rect.height
432
+ },
433
+ style: {
434
+ fill: t.paint(e.fill, "none"),
435
+ ...t.stroke(e.stroke)
436
+ }
437
+ });
438
+ return i.push(...t.lines(e.connectorLines)), i;
439
+ })(e, t) : []
440
+ }, O = {
441
+ types: ["sunburst"],
442
+ grid: !1,
443
+ graphic: (e, t) => "sunburst" === e.type ? ((e, t) => {
444
+ const i = [], r = [], { x: s, y: n } = e.center;
445
+ for (const o of e.series) for (const e of o.segments ?? []) e.endAngle > e.startAngle && (i.push({
446
+ type: "sector",
447
+ silent: !0,
448
+ z: 2,
449
+ shape: {
450
+ cx: s,
451
+ cy: n,
452
+ r0: e.innerRadius,
453
+ r: e.outerRadius,
454
+ startAngle: (e.startAngle - 90) * Math.PI / 180,
455
+ endAngle: (e.endAngle - 90) * Math.PI / 180,
456
+ clockwise: !0
457
+ },
458
+ style: {
459
+ fill: t.paint(e.fill, "none"),
460
+ ...t.stroke(e.stroke)
461
+ }
462
+ }), e.label && r.push(...t.text(e.label, null, null)));
463
+ return [...i, ...r];
464
+ })(e, t) : []
465
+ }, V = {
466
+ types: ["histogram"],
467
+ graphic: (e, t) => "histogram" === e.type ? ((e, t) => {
468
+ const i = [];
469
+ for (const r of e.series) {
470
+ for (const e of r.bars) e && i.push({
471
+ type: "rect",
472
+ silent: !0,
473
+ z: 2,
474
+ shape: {
475
+ x: e.x,
476
+ y: e.y,
477
+ width: e.width,
478
+ height: e.height
479
+ },
480
+ style: {
481
+ fill: t.paint(r.fill, "none"),
482
+ ...t.stroke(r.stroke)
483
+ }
484
+ });
485
+ if (r.line) {
486
+ const e = r.line.points.filter((e) => !!e);
487
+ e.length > 1 && i.push({
488
+ type: "polyline",
489
+ silent: !0,
490
+ z: 3,
491
+ shape: { points: e.map((e) => [e.x, e.y]) },
492
+ style: {
493
+ fill: "none",
494
+ ...t.stroke(r.stroke)
495
+ }
496
+ });
497
+ }
498
+ }
499
+ return i;
500
+ })(e, t) : []
501
+ }, R = {
502
+ types: ["boxWhisker"],
503
+ graphic: (e, t) => "boxWhisker" === e.type ? ((e, t) => {
504
+ const i = [], r = (e, i, r) => ({
505
+ type: "line",
506
+ silent: !0,
507
+ z: r,
508
+ shape: {
509
+ x1: e.from.x,
510
+ y1: e.from.y,
511
+ x2: e.to.x,
512
+ y2: e.to.y
513
+ },
514
+ style: {
515
+ fill: "none",
516
+ ...t.stroke(i)
517
+ }
518
+ });
519
+ for (const s of e.series) {
520
+ for (const e of s.boxes) {
521
+ if (!e) continue;
522
+ const s = t.stroke(e.stroke);
523
+ i.push({
524
+ type: "rect",
525
+ silent: !0,
526
+ z: 2,
527
+ shape: {
528
+ x: e.rect.x,
529
+ y: e.rect.y,
530
+ width: e.rect.width,
531
+ height: e.rect.height
532
+ },
533
+ style: {
534
+ fill: t.paint(e.fill, "none"),
535
+ ...s
536
+ }
537
+ }), i.push(r(e.median, e.stroke, 3));
538
+ for (const t of [e.whiskerHigh, e.whiskerLow]) t && i.push(r(t.line, e.stroke, 3), r(t.cap, e.stroke, 3));
539
+ if (e.mean) {
540
+ const { center: t, size: s } = e.mean, n = s / 2;
541
+ i.push(r({
542
+ from: {
543
+ x: t.x - n,
544
+ y: t.y - n
545
+ },
546
+ to: {
547
+ x: t.x + n,
548
+ y: t.y + n
549
+ }
550
+ }, e.stroke, 4), r({
551
+ from: {
552
+ x: t.x - n,
553
+ y: t.y + n
554
+ },
555
+ to: {
556
+ x: t.x + n,
557
+ y: t.y - n
558
+ }
559
+ }, e.stroke, 4));
560
+ }
561
+ for (const r of e.outliers) i.push({
562
+ type: "circle",
563
+ silent: !0,
564
+ z: 4,
565
+ shape: {
566
+ cx: r.center.x,
567
+ cy: r.center.y,
568
+ r: r.size / 2
569
+ },
570
+ style: {
571
+ fill: t.paint(e.fill, "none"),
572
+ ...s
573
+ }
574
+ });
575
+ for (const r of e.innerPoints) i.push({
576
+ type: "circle",
577
+ silent: !0,
578
+ z: 4,
579
+ shape: {
580
+ cx: r.center.x,
581
+ cy: r.center.y,
582
+ r: r.size / 2
583
+ },
584
+ style: {
585
+ fill: t.color("#FFFFFF"),
586
+ ...s
587
+ }
588
+ });
589
+ }
590
+ i.push(...t.lines(s.meanLine));
591
+ }
592
+ return i;
593
+ })(e, t) : []
594
+ }, U = {
595
+ types: ["treemap"],
596
+ grid: !1,
597
+ graphic: (e, t) => "treemap" === e.type ? ((e, t) => {
598
+ const i = [], r = [];
599
+ for (const s of e.series) {
600
+ for (const e of s.tiles) e.rect.width > 0 && e.rect.height > 0 && (i.push({
601
+ type: "rect",
602
+ silent: !0,
603
+ z: 2,
604
+ shape: {
605
+ x: e.rect.x,
606
+ y: e.rect.y,
607
+ width: e.rect.width,
608
+ height: e.rect.height
609
+ },
610
+ style: {
611
+ fill: t.paint(e.fill, "none"),
612
+ ...t.stroke(e.stroke)
613
+ }
614
+ }), e.label && r.push(...t.text(e.label, null, null)));
615
+ for (const e of s.parents) {
616
+ if (e.banner) {
617
+ const { rect: r } = e.banner;
618
+ i.push({
619
+ type: "rect",
620
+ silent: !0,
621
+ z: 3,
622
+ shape: {
623
+ x: r.x,
624
+ y: r.y,
625
+ width: r.width,
626
+ height: r.height
627
+ },
628
+ style: {
629
+ fill: t.paint(e.banner.fill, "none"),
630
+ ...t.stroke(e.banner.stroke)
631
+ }
632
+ });
633
+ }
634
+ r.push(...t.text(e.label, null, null));
635
+ }
636
+ }
637
+ return [...i, ...r];
638
+ })(e, t) : []
639
+ }, K = {
640
+ types: ["funnel"],
641
+ grid: !1,
642
+ graphic: (e, t) => "funnel" === e.type ? ((e, t) => {
643
+ const i = [];
644
+ e.axisLine && i.push({
645
+ type: "line",
646
+ silent: !0,
647
+ z: 1,
648
+ shape: {
649
+ x1: e.axisLine.from.x,
650
+ y1: e.axisLine.from.y,
651
+ x2: e.axisLine.to.x,
652
+ y2: e.axisLine.to.y
653
+ },
654
+ style: {
655
+ fill: "none",
656
+ ...t.stroke(e.axisStroke)
657
+ }
658
+ });
659
+ for (const r of e.categoryLabels) r && i.push(...t.text(r, null, null));
660
+ for (const r of e.series) for (const e of r.bars) e && i.push({
661
+ type: "rect",
662
+ silent: !0,
663
+ z: 2,
664
+ shape: {
665
+ x: e.x,
666
+ y: e.y,
667
+ width: e.width,
668
+ height: e.height
669
+ },
670
+ style: {
671
+ fill: t.paint(r.fill, "none"),
672
+ ...t.stroke(r.stroke)
673
+ }
674
+ });
675
+ return i;
676
+ })(e, t) : []
677
+ }, J = (e, t, i) => {
678
+ const r = t.x + t.width / 2, s = t.y + t.height / 2, n = [];
679
+ return e.stroke && n.push({
680
+ type: "line",
681
+ silent: !0,
682
+ z: 50,
683
+ shape: {
684
+ x1: t.x,
685
+ y1: s,
686
+ x2: t.x + t.width,
687
+ y2: s
688
+ },
689
+ style: i.stroke(e.stroke)
690
+ }), e.marker && n.push(...i.marker.graphic(e.marker, r, s, 51)), n;
691
+ }, Z = {
692
+ types: ["line"],
693
+ series: (e, t) => "line" === e.type ? ((e, t) => {
694
+ const i = t.cartesian(e), r = "standard" === e.grouping ? void 0 : `line:${e.axisIds.join(":")}`;
695
+ return e.series.flatMap((s) => t.withMarkerFills(s, {
696
+ ...i.base(s),
697
+ ...t.lineSeries(s, !1, e.spanBlanks),
698
+ ...r ? {
699
+ data: i.placed(s, s.plotted.map((e, t) => e === s.values[t] ? e : {
700
+ value: e,
701
+ source: s.values[t]
702
+ })),
703
+ stack: r
704
+ } : {}
705
+ }));
706
+ })(e, t) : [],
707
+ graphic: (e, t) => "line" === e.type ? [
708
+ ...t.upDownBars(e.upDownBars),
709
+ ...t.lines(e.hiLowLines),
710
+ ...t.lines(e.dropLines)
711
+ ] : [],
712
+ legendKey: (e, t, i, r, s) => J(t, r, s)
713
+ }, q = {
714
+ types: ["area"],
715
+ series: (e, t) => "area" === e.type ? ((e, t) => {
716
+ const i = t.cartesian(e), r = "standard" === e.grouping ? void 0 : `area:${e.axisIds.join(":")}`;
717
+ return e.series.map((s) => ({
718
+ ...i.base(s),
719
+ ...t.lineSeries(s, !1),
720
+ data: i.placed(s, s.plotted.map((e, t) => e === s.values[t] ? e : {
721
+ value: e,
722
+ source: s.values[t]
723
+ })),
724
+ ...r ? { stack: r } : {},
725
+ areaStyle: {
726
+ color: t.paint(s.fill),
727
+ opacity: 1,
728
+ origin: e.baseValue
729
+ },
730
+ z: 1
731
+ }));
732
+ })(e, t) : [],
733
+ graphic: (e, t) => "area" === e.type ? t.lines(e.dropLines) : []
734
+ }, N = {
735
+ types: ["scatter"],
736
+ series: (e, t) => "scatter" === e.type ? ((e, t) => {
737
+ const i = t.cartesian(e);
738
+ return e.series.flatMap((r) => t.withMarkerFills(r, {
739
+ ...i.base(r),
740
+ ...t.lineSeries(r, r.smooth, e.spanBlanks),
741
+ data: r.values.map((e, t) => [r.xValues[t], e])
742
+ }));
743
+ })(e, t) : [],
744
+ legendKey: (e, t, i, r, s) => J(t, r, s)
745
+ }, Q = {
746
+ types: ["bubble"],
747
+ series: (e, t) => "bubble" === e.type ? ((e, t) => {
748
+ const i = t.cartesian(e);
749
+ return e.series.map((r) => ({
750
+ ...i.base(r),
751
+ type: "line",
752
+ showSymbol: !0,
753
+ symbol: "circle",
754
+ lineStyle: {
755
+ width: 0,
756
+ opacity: 0
757
+ },
758
+ data: r.values.flatMap((i, s) => {
759
+ if (null === r.radii[s]) return [];
760
+ const n = r.negative[s] ? e.negative : {
761
+ fill: r.fill,
762
+ stroke: r.stroke
763
+ };
764
+ return [{
765
+ value: [r.xValues[s], i],
766
+ symbolSize: 2 * r.radii[s] - t.width(n.stroke),
767
+ ...r.negative[s] ? { itemStyle: {
768
+ color: t.paint(n.fill),
769
+ borderColor: t.paint(n.stroke?.fill),
770
+ borderWidth: t.width(n.stroke)
771
+ } } : {}
772
+ }];
773
+ }),
774
+ itemStyle: {
775
+ color: t.paint(r.fill),
776
+ borderColor: t.paint(r.stroke?.fill),
777
+ borderWidth: t.width(r.stroke)
778
+ },
779
+ z: 2
780
+ }));
781
+ })(e, t) : []
782
+ }, X = (e, t, i, r, s, n, o) => {
783
+ if (0 === n.length) return [];
784
+ const l = (e) => e.center.x !== i.x || e.center.y !== i.y, a = (e, i, l) => ({
785
+ type: "pie",
786
+ id: e,
787
+ name: t,
788
+ center: [i.x, i.y],
789
+ radius: [r, s],
790
+ startAngle: 90 - n[0].slice.startAngle,
791
+ clockwise: !0,
792
+ minAngle: 0,
793
+ stillShowZeroSum: !0,
794
+ avoidLabelOverlap: !1,
795
+ selectedMode: !1,
796
+ label: { show: !1 },
797
+ labelLine: { show: !1 },
798
+ emphasis: { disabled: !0 },
799
+ animation: !1,
800
+ data: n.map((e) => (({ slice: e, name: t }, i) => ({
801
+ name: t,
802
+ value: e.endAngle - e.startAngle,
803
+ itemStyle: i ? {
804
+ color: o.paint(e.fill),
805
+ borderColor: o.paint(e.stroke?.fill),
806
+ borderWidth: o.width(e.stroke)
807
+ } : {
808
+ color: "transparent",
809
+ borderWidth: 0
810
+ },
811
+ ...i ? {} : { tooltip: { show: !1 } }
812
+ }))(e, l(e.slice)))
813
+ }), p = [a(e, i, (e) => !l(e))];
814
+ return n.forEach(({ slice: t }, i) => {
815
+ l(t) && p.push(a(`${e}:${i}`, t.center, (e) => e === t));
816
+ }), p;
817
+ }, Y = (e, t, i, r) => [{
818
+ type: "rect",
819
+ silent: !0,
820
+ z: 50,
821
+ shape: {
822
+ x: i.x,
823
+ y: i.y,
824
+ width: i.width,
825
+ height: i.height
826
+ },
827
+ style: {
828
+ fill: r.paint(e),
829
+ ...r.stroke(t ?? null)
830
+ }
831
+ }], _ = {
832
+ types: ["pie"],
833
+ series: (e, t) => "pie" === e.type ? ((e, t) => e.series.flatMap((i) => {
834
+ const r = i.slices.flatMap((e, t) => e ? [{
835
+ slice: e,
836
+ name: String(t + 1)
837
+ }] : []);
838
+ return X(i.id, i.name, e.center, i.innerRadius, i.outerRadius, r, t);
839
+ }))(e, t) : [],
840
+ legendKey: (e, t, i, r, s) => {
841
+ const n = void 0 === e.pointIndex ? void 0 : t.slices[e.pointIndex];
842
+ return n ? Y(n.fill, n.stroke, r, s) : void 0;
843
+ }
844
+ }, ee = (e, t) => e.series.flatMap((e) => (e.bars ?? []).flatMap((e) => e ? [{
845
+ type: "rect",
846
+ silent: !0,
847
+ z: 2,
848
+ shape: {
849
+ x: e.rect.x,
850
+ y: e.rect.y,
851
+ width: e.rect.width,
852
+ height: e.rect.height
853
+ },
854
+ style: {
855
+ fill: t.paint(e.fill, "none"),
856
+ ...t.stroke(e.stroke)
857
+ }
858
+ }] : [])), te = {
859
+ types: ["ofPie"],
860
+ series: (e, t) => "ofPie" === e.type ? ((e, t) => e.series.flatMap((i) => {
861
+ const r = i.slices.flatMap((e, t) => e ? [{
862
+ slice: e,
863
+ name: String(t + 1),
864
+ k: t
865
+ }] : []), s = r.filter(({ k: e }) => !i.second[e]);
866
+ i.other && s.unshift({
867
+ slice: i.other,
868
+ name: "Other",
869
+ k: -1
870
+ });
871
+ const n = X(i.id, i.name, e.center, 0, e.radius, s, t);
872
+ return e.second && n.push(...X(`${i.id}:second`, i.name, e.second.center, 0, e.second.radius, r.filter(({ k: e }) => i.second[e]), t)), n;
873
+ }))(e, t) : [],
874
+ graphic: (e, t) => "ofPie" === e.type ? [...ee(e, t), ...t.lines(e.seriesLines)] : [],
875
+ legendKey: (e, t, i, r, s) => {
876
+ if ("ofPie" !== i.type || void 0 === e.pointIndex) return;
877
+ const n = i.series[0], o = n?.slices[e.pointIndex] ?? n?.bars?.[e.pointIndex];
878
+ return o ? Y(o.fill, o.stroke, r, s) : void 0;
879
+ }
880
+ }, ie = {
881
+ types: ["radar"],
882
+ grid: !1,
883
+ graphic: (e, t) => "radar" === e.type ? ((e, t) => {
884
+ const i = [];
885
+ for (const r of e.rings) i.push({
886
+ type: "polygon",
887
+ silent: !0,
888
+ z: 1,
889
+ shape: { points: r.map((e) => [e.x, e.y]) },
890
+ style: {
891
+ fill: "none",
892
+ ...t.stroke(e.ringStroke)
893
+ }
894
+ });
895
+ for (const r of e.spokes) i.push({
896
+ type: "line",
897
+ silent: !0,
898
+ z: 1,
899
+ shape: {
900
+ x1: r.from.x,
901
+ y1: r.from.y,
902
+ x2: r.to.x,
903
+ y2: r.to.y
904
+ },
905
+ style: t.stroke(e.spokeStroke)
906
+ });
907
+ e.series.forEach((r, s) => {
908
+ const n = 2 + s / Math.max(1, e.series.length), o = [[]];
909
+ r.points.forEach((e) => {
910
+ e ? o[o.length - 1].push(e) : o.push([]);
911
+ }), e.filled ? i.push({
912
+ type: "polygon",
913
+ silent: !0,
914
+ z: n,
915
+ shape: { points: r.points.filter((e) => !!e).map((e) => [e.x, e.y]) },
916
+ style: {
917
+ fill: t.paint(r.fill, "none"),
918
+ ...t.stroke(r.stroke)
919
+ }
920
+ }) : r.stroke && (r.points.length > 1 && r.points.every((e) => !!e) ? i.push({
921
+ type: "polygon",
922
+ silent: !0,
923
+ z: n,
924
+ shape: { points: r.points.map((e) => [e.x, e.y]) },
925
+ style: {
926
+ fill: "none",
927
+ ...t.stroke(r.stroke),
928
+ lineJoin: "round"
929
+ }
930
+ }) : o.filter((e) => e.length > 1).forEach((e) => i.push({
931
+ type: "polyline",
932
+ silent: !0,
933
+ z: n,
934
+ shape: { points: e.map((e) => [e.x, e.y]) },
935
+ style: {
936
+ fill: "none",
937
+ ...t.stroke(r.stroke),
938
+ lineJoin: "round"
939
+ }
940
+ }))), r.marker && r.points.forEach((e) => {
941
+ e && i.push(...t.marker.graphic(r.marker, e.x, e.y, n + .5));
942
+ });
943
+ });
944
+ for (const r of e.categoryLabels) r && i.push(...t.text(r, null, null));
945
+ for (const r of e.valueLabels) i.push(...t.text(r, null, null));
946
+ return i;
947
+ })(e, t) : [],
948
+ legendKey: (e, t, i, r, s) => "radar" !== i.type || i.filled ? void 0 : J(t, r, s)
949
+ }, re = {
950
+ types: ["surface"],
951
+ grid: !1,
952
+ graphic: (e, t) => "surface" === e.type ? ((e, t) => {
953
+ const i = [];
954
+ e.bands.forEach((r) => {
955
+ for (const s of r.polygons) i.push({
956
+ type: "polygon",
957
+ silent: !0,
958
+ z: 2,
959
+ shape: { points: s.map((e) => [e.x, e.y]) },
960
+ style: e.wireframe ? {
961
+ fill: "none",
962
+ ...t.stroke(r.stroke)
963
+ } : {
964
+ fill: t.paint(r.fill, "none"),
965
+ stroke: t.paint(r.fill, "none"),
966
+ lineWidth: .5
967
+ }
968
+ });
969
+ });
970
+ for (const r of [...e.categoryLabels, ...e.seriesLabels]) i.push(...t.text(r, null, null));
971
+ return i;
972
+ })(e, t) : [],
973
+ legendKey: (e, t, i, r, s) => {
974
+ const n = "surface" === i.type && void 0 !== e.bandIndex ? i.bands[e.bandIndex] : void 0;
975
+ return n ? Y(n.fill, n.stroke, r, s) : void 0;
976
+ }
977
+ }, se = {
978
+ types: ["regionMap"],
979
+ grid: !1,
980
+ graphic: (e) => "label" in e && e.label ? H(e.label, null, null) : []
981
+ };
982
+ function ne(e) {
983
+ for (const t of [
984
+ P,
985
+ T,
986
+ O,
987
+ V,
988
+ R,
989
+ U,
990
+ K,
991
+ Z,
992
+ q,
993
+ N,
994
+ Q,
995
+ _,
996
+ te,
997
+ ie,
998
+ re,
999
+ se
1000
+ ]) e(t);
1001
+ }
1002
+ var oe = /* @__PURE__ */ new Map(), le = (e) => {
1003
+ let i = oe.get(e);
1004
+ if (void 0 === i) {
1005
+ try {
1006
+ i = s.toConcreteCSS(new t(e), !0);
1007
+ } catch {
1008
+ i = e;
1009
+ }
1010
+ oe.set(e, i);
1011
+ }
1012
+ return i;
1013
+ }, ae = /* @__PURE__ */ new Set([
1014
+ "color",
1015
+ "foreground",
1016
+ "background"
1017
+ ]), pe = (e, t) => {
1018
+ if ("data" === t) return e;
1019
+ if ("string" == typeof e) return t && ae.has(t) ? le(e) : e;
1020
+ if (Array.isArray(e)) return e.map((e) => "stops" === t && "string" == typeof e ? le(e) : pe(e));
1021
+ if (e && "object" == typeof e) {
1022
+ const t = {};
1023
+ for (const [i, r] of Object.entries(e)) t[i] = pe(r, i);
1024
+ return t;
1025
+ }
1026
+ return e;
1027
+ };
1028
+ function he(t, i) {
1029
+ e.registerBuiltIns(ne);
1030
+ const r = i?.darkMode ?? !1, s = i?.background ?? "#FFFFFF";
1031
+ t = ((e, t) => t ? pe(e) : e)(t, r);
1032
+ const n = i?.interactive ?? !0, o = i?.legend ?? "graphic", l = (t) => e.of(t), a = t.axes.filter((e) => "bottom" === e.position || "top" === e.position), p = t.axes.filter((e) => "left" === e.position || "right" === e.position), h = ye(t.groups, l), c = fe(t, (e) => {
1033
+ const t = a.findIndex((t) => t.id === e);
1034
+ if (t >= 0) return {
1035
+ dim: "x",
1036
+ index: t
1037
+ };
1038
+ const i = p.findIndex((t) => t.id === e);
1039
+ if (i >= 0) return {
1040
+ dim: "y",
1041
+ index: i
1042
+ };
1043
+ throw new Error(`chart layout names axis ${e}, which it does not have`);
1044
+ }, r), d = [], y = t.chartArea.cornerRadius, f = t.chartArea.fill, u = void 0 !== f ? f : "transparent" === s ? null : {
1045
+ type: "solid",
1046
+ color: r ? le(s) : s
1047
+ }, g = !!u && (y > 0 || "solid" !== u.type);
1048
+ if (g && d.push({
1049
+ type: "rect",
1050
+ silent: !0,
1051
+ z: -100,
1052
+ shape: {
1053
+ x: 0,
1054
+ y: 0,
1055
+ width: t.width,
1056
+ height: t.height,
1057
+ r: y
1058
+ },
1059
+ style: { fill: k(u, "none") }
1060
+ }), t.chartArea.border) {
1061
+ const e = w(t.chartArea.border);
1062
+ d.push({
1063
+ type: "rect",
1064
+ silent: !0,
1065
+ z: 100,
1066
+ shape: {
1067
+ x: e / 2,
1068
+ y: e / 2,
1069
+ width: t.width - e,
1070
+ height: t.height - e,
1071
+ r: Math.max(0, y - e / 2)
1072
+ },
1073
+ style: {
1074
+ fill: "none",
1075
+ ...B(t.chartArea.border)
1076
+ }
1077
+ });
1078
+ }
1079
+ t.legend && "graphic" === o && d.push(...function(t, i, r) {
1080
+ const s = (e) => {
1081
+ for (const t of i) {
1082
+ const i = t.series.find((t) => t.id === e);
1083
+ if (i) return {
1084
+ series: i,
1085
+ group: t
1086
+ };
1087
+ }
1088
+ }, n = [];
1089
+ for (const i of t.entries) {
1090
+ const o = s(i.seriesId), l = i.keyRect, a = void 0 === i.trendlineIndex ? void 0 : o?.series.trendlines?.[i.trendlineIndex];
1091
+ if (a) {
1092
+ const e = l.y + l.height / 2;
1093
+ n.push({
1094
+ type: "line",
1095
+ silent: !0,
1096
+ z: 50,
1097
+ shape: {
1098
+ x1: l.x,
1099
+ y1: e,
1100
+ x2: l.x + l.width,
1101
+ y2: e
1102
+ },
1103
+ style: B(a.stroke)
1104
+ });
1105
+ } else {
1106
+ const t = o && !i.swatch ? e.of(o.group)?.legendKey?.(i, o.series, o.group, l, r) : void 0;
1107
+ if (t) n.push(...t);
1108
+ else {
1109
+ const e = i.swatch ?? {
1110
+ fill: o?.series.fill ?? null,
1111
+ stroke: o?.series.stroke ?? null
1112
+ };
1113
+ n.push({
1114
+ type: "rect",
1115
+ silent: !0,
1116
+ z: 50,
1117
+ shape: {
1118
+ x: l.x,
1119
+ y: l.y,
1120
+ width: l.width,
1121
+ height: l.height
1122
+ },
1123
+ style: {
1124
+ fill: k(e.fill),
1125
+ ...B(e.stroke)
1126
+ }
1127
+ });
1128
+ }
1129
+ }
1130
+ const p = l.x + l.width + (l.x - i.rect.x);
1131
+ n.push({
1132
+ type: "text",
1133
+ silent: !0,
1134
+ z: 50,
1135
+ style: {
1136
+ x: p,
1137
+ y: i.rect.y + i.rect.height / 2,
1138
+ text: i.text,
1139
+ fill: M(t.font),
1140
+ font: L(t.font),
1141
+ verticalAlign: "middle",
1142
+ align: "left"
1143
+ }
1144
+ });
1145
+ }
1146
+ return n;
1147
+ }(t.legend, t.groups, c));
1148
+ for (const e of t.axes) d.push(...Ae(e)), d.push(...we(e, t.plotArea.inner)), e.title && !e.deleted && d.push(...H(e.title, null, null)), e.unitLabel && !e.deleted && d.push(...H(e.unitLabel, null, null)), "category" !== e.kind || e.deleted || d.push(...me(e)), e.labelVertical && d.push(...ke(e, t.plotArea.inner));
1149
+ for (const e of t.groups) {
1150
+ d.push(...l(e)?.graphic?.(e, c) ?? []);
1151
+ for (const t of e.series) {
1152
+ for (const e of t.labels ?? []) e && d.push(...H(e, e.fill, e.border));
1153
+ for (const e of t.trendlines ?? []) d.push(...Fe(e));
1154
+ for (const e of t.errorBars ?? []) d.push(...ve(e));
1155
+ }
1156
+ }
1157
+ return {
1158
+ animation: !1,
1159
+ backgroundColor: g ? "transparent" : k(u),
1160
+ textStyle: { fontFamily: v(t.axes.find((e) => e.labelFont)?.labelFont ?? {}) },
1161
+ title: t.title ? {
1162
+ show: !0,
1163
+ text: t.title.text,
1164
+ left: t.title.rect.x,
1165
+ top: t.title.rect.y,
1166
+ padding: [
1167
+ t.title.insets.top,
1168
+ t.title.insets.right,
1169
+ t.title.insets.bottom,
1170
+ t.title.insets.left
1171
+ ],
1172
+ triggerEvent: !0,
1173
+ textStyle: {
1174
+ ...S(t.title.font),
1175
+ lineHeight: t.title.rect.height - t.title.insets.top - t.title.insets.bottom
1176
+ }
1177
+ } : { show: !1 },
1178
+ grid: [{
1179
+ id: "plot",
1180
+ left: t.plotArea.inner.x,
1181
+ top: t.plotArea.inner.y,
1182
+ width: t.plotArea.inner.width,
1183
+ height: t.plotArea.inner.height,
1184
+ containLabel: !1,
1185
+ outerBoundsMode: "none",
1186
+ show: !(!t.plotArea.fill && !t.plotArea.border),
1187
+ backgroundColor: k(t.plotArea.fill),
1188
+ borderColor: k(t.plotArea.border?.fill),
1189
+ borderWidth: w(t.plotArea.border)
1190
+ }, ...t.axes.some((e) => 1 === h(e.id)) ? [{
1191
+ id: "plot:vertical",
1192
+ left: t.plotArea.inner.x,
1193
+ top: t.plotArea.inner.y,
1194
+ width: t.plotArea.inner.width,
1195
+ height: t.plotArea.inner.height,
1196
+ containLabel: !1,
1197
+ outerBoundsMode: "none",
1198
+ show: !1
1199
+ }] : []],
1200
+ xAxis: a.map((e) => ue(e, t.plotArea.inner, h(e.id))),
1201
+ yAxis: p.map((e) => ue(e, t.plotArea.inner, h(e.id))),
1202
+ series: t.groups.flatMap((e) => l(e)?.series?.(e, c) ?? []),
1203
+ legend: t.legend && "native" === o ? xe(t.legend) : { show: !1 },
1204
+ graphic: d,
1205
+ tooltip: n ? {
1206
+ show: !0,
1207
+ trigger: "item",
1208
+ formatter: (e) => {
1209
+ const t = e.data?.source, i = void 0 !== t ? t : Array.isArray(e.value) ? e.value[1] : e.value;
1210
+ return `Series "${e.seriesName}" Point "${e.name}" Value: ${i}`;
1211
+ }
1212
+ } : { show: !1 }
1213
+ };
1214
+ }
1215
+ var ce = (e) => (t) => {
1216
+ const i = e.ticks.find((i) => Math.abs(i.value - t) <= ((t) => e.logBase ? 1e-9 * Math.abs(t) : 1e-6 * e.majorUnit)(i.value));
1217
+ return i ? i.label : "";
1218
+ }, de = (e, t) => {
1219
+ const i = e.labelsAt ?? e.lineAt;
1220
+ let r;
1221
+ switch (e.position) {
1222
+ case "bottom":
1223
+ r = i - (t.y + t.height);
1224
+ break;
1225
+ case "top":
1226
+ r = t.y - i;
1227
+ break;
1228
+ case "left":
1229
+ r = t.x - i;
1230
+ break;
1231
+ default: r = i - (t.x + t.width);
1232
+ }
1233
+ return Math.abs(r) < 1e-6 ? 0 : r;
1234
+ }, ye = (e, t) => {
1235
+ const i = (e) => t(e)?.horizontal?.(e) ?? !1, r = e.filter((e) => t(e)?.grid ?? ("axisIds" in e && 2 === e.axisIds.length)), s = r.some(i) && r.some((e) => !i(e)), n = new Set(s ? r.filter((e) => !i(e)).flatMap((e) => e.axisIds) : []);
1236
+ return (e) => n.has(e) ? 1 : 0;
1237
+ }, fe = (e, t, i) => {
1238
+ const r = (t) => e.axes.find((e) => e.id === t);
1239
+ return {
1240
+ layout: e,
1241
+ darkMode: i,
1242
+ color: (e) => i ? le(e) : e,
1243
+ axisOf: r,
1244
+ cartesian: (e) => {
1245
+ const i = t(e.axisIds[0]), s = t(e.axisIds[1]), n = "x" === i.dim ? i.index : s.index, o = "y" === i.dim ? i.index : s.index, l = r(e.axisIds[1]), a = "value" === l?.kind && !!l.logBase, p = (e, t) => {
1246
+ a && (t = t.map((e) => {
1247
+ const t = null !== e && "object" == typeof e ? e.value : e;
1248
+ return "number" != typeof t || t > 0 ? e : null;
1249
+ }));
1250
+ const r = e.slots;
1251
+ if (!r) return t;
1252
+ const s = (e, t) => "x" === i.dim ? [e, t] : [t, e];
1253
+ return t.map((e, t) => {
1254
+ const i = r[t];
1255
+ return null == i ? null : null !== e && "object" == typeof e ? {
1256
+ ...e,
1257
+ value: s(i, e.value)
1258
+ } : s(i, e);
1259
+ }).filter((e) => null !== e);
1260
+ };
1261
+ return {
1262
+ xAxisIndex: n,
1263
+ yAxisIndex: o,
1264
+ isLog: a,
1265
+ placed: p,
1266
+ base: (e) => ({
1267
+ id: e.id,
1268
+ name: e.name,
1269
+ xAxisIndex: n,
1270
+ yAxisIndex: o,
1271
+ data: p(e, e.values),
1272
+ emphasis: { disabled: !0 },
1273
+ label: { show: !1 },
1274
+ animation: !1
1275
+ })
1276
+ };
1277
+ },
1278
+ paint: k,
1279
+ stroke: B,
1280
+ line: I,
1281
+ width: w,
1282
+ lineSeries: (e, t, i = !1) => ({
1283
+ type: "line",
1284
+ smooth: t,
1285
+ connectNulls: i,
1286
+ showSymbol: !!e.marker,
1287
+ ...e.marker ? $(e.marker) : {
1288
+ symbol: "none",
1289
+ symbolSize: 0
1290
+ },
1291
+ lineStyle: I(e.stroke),
1292
+ itemStyle: {
1293
+ color: e.marker && !E[e.marker.symbol] ? k(e.marker.fill) : e.marker ? "transparent" : k(e.stroke?.fill),
1294
+ borderColor: k(e.marker?.stroke?.fill),
1295
+ borderWidth: w(e.marker?.stroke)
1296
+ }
1297
+ }),
1298
+ withMarkerFills: (e, t) => {
1299
+ const i = D(e.marker);
1300
+ return i ? [{
1301
+ ...t,
1302
+ id: `${e.id}:fill`,
1303
+ name: `${e.name}:fill`,
1304
+ silent: !0,
1305
+ tooltip: { show: !1 },
1306
+ symbol: "rect",
1307
+ symbolSize: e.marker.size,
1308
+ lineStyle: {
1309
+ width: 0,
1310
+ opacity: 0
1311
+ },
1312
+ itemStyle: {
1313
+ color: k(i),
1314
+ borderWidth: 0
1315
+ },
1316
+ z: (t.z ?? 2) - .5
1317
+ }, t] : [t];
1318
+ },
1319
+ marker: {
1320
+ symbol: $,
1321
+ fill: D,
1322
+ graphic: W
1323
+ },
1324
+ text: H,
1325
+ lines: j,
1326
+ upDownBars: G
1327
+ };
1328
+ };
1329
+ function ue(e, t, i) {
1330
+ const r = {
1331
+ id: String(e.id),
1332
+ gridIndex: i,
1333
+ position: e.position,
1334
+ offset: de(e, t),
1335
+ show: !e.deleted,
1336
+ inverse: e.reversed,
1337
+ axisLine: {
1338
+ show: !!e.line && void 0 === e.labelsAt,
1339
+ onZero: !1,
1340
+ lineStyle: I(e.line)
1341
+ },
1342
+ axisTick: {
1343
+ show: "none" !== e.tickMark && !!e.line,
1344
+ inside: "in" === e.tickMark,
1345
+ length: e.tickLength,
1346
+ lineStyle: I(e.line)
1347
+ },
1348
+ splitLine: { show: !1 },
1349
+ z: 3,
1350
+ axisLabel: {
1351
+ show: !!e.labelFont && !e.labelVertical,
1352
+ margin: e.labelMargin,
1353
+ ...e.labelFont ? S(e.labelFont) : {},
1354
+ interval: 0,
1355
+ hideOverlap: !1,
1356
+ showMinLabel: !0,
1357
+ showMaxLabel: !0
1358
+ },
1359
+ triggerEvent: !0
1360
+ };
1361
+ return "category" === e.kind ? {
1362
+ ...r,
1363
+ type: "category",
1364
+ data: e.categories,
1365
+ boundaryGap: "between" === e.crossBetween,
1366
+ axisTick: {
1367
+ ...r.axisTick,
1368
+ ...e.dividers ? { show: !1 } : {},
1369
+ alignWithLabel: "midCat" === e.crossBetween
1370
+ },
1371
+ axisLabel: {
1372
+ ...r.axisLabel,
1373
+ ...ge(e),
1374
+ formatter: (t, i) => e.labels[i] ?? "",
1375
+ lineHeight: e.labelLineHeight,
1376
+ overflow: "none"
1377
+ }
1378
+ } : e.logBase ? {
1379
+ ...r,
1380
+ type: "log",
1381
+ logBase: e.logBase,
1382
+ min: e.min,
1383
+ max: e.max,
1384
+ interval: Math.round(Math.log(e.majorUnit) / Math.log(e.logBase)),
1385
+ axisLabel: {
1386
+ ...r.axisLabel,
1387
+ formatter: ce(e)
1388
+ }
1389
+ } : {
1390
+ ...r,
1391
+ type: "value",
1392
+ min: e.min,
1393
+ max: e.max,
1394
+ interval: e.majorUnit,
1395
+ alignTicks: !1,
1396
+ axisLabel: {
1397
+ ...r.axisLabel,
1398
+ formatter: ce(e)
1399
+ }
1400
+ };
1401
+ }
1402
+ function ge(e) {
1403
+ const t = e.labelRotation;
1404
+ if ("left" === e.position || "right" === e.position) return {
1405
+ rotate: t,
1406
+ align: "left" === e.position ? "right" : "left",
1407
+ verticalAlign: "middle"
1408
+ };
1409
+ const i = "bottom" === e.position;
1410
+ return 0 === t ? {
1411
+ rotate: t,
1412
+ align: "center",
1413
+ verticalAlign: i ? "top" : "bottom"
1414
+ } : {
1415
+ rotate: t,
1416
+ align: t > 0 === i ? "right" : "left",
1417
+ verticalAlign: i ? "top" : "bottom"
1418
+ };
1419
+ }
1420
+ function xe(e) {
1421
+ const t = e.entries[0], i = e.entries.length > 1 ? e.entries[1].rect.x - (t.rect.x + t.rect.width) : 0;
1422
+ return {
1423
+ show: !0,
1424
+ left: e.rect.x,
1425
+ top: e.rect.y,
1426
+ width: e.rect.width,
1427
+ height: e.rect.height,
1428
+ orient: e.orient,
1429
+ padding: 0,
1430
+ itemGap: Math.max(0, i),
1431
+ itemWidth: t?.keyRect.width ?? 10,
1432
+ itemHeight: t?.keyRect.height ?? 10,
1433
+ align: "left",
1434
+ selectedMode: !1,
1435
+ textStyle: S(e.font),
1436
+ data: e.entries.map((e) => ({ name: e.text }))
1437
+ };
1438
+ }
1439
+ function me(e) {
1440
+ const t = [];
1441
+ for (const i of e.levels ?? []) for (const e of i.labels) t.push(...H(e, null, null, e.lineHeight));
1442
+ if (e.line) for (const { from: i, to: r } of e.dividers ?? []) t.push({
1443
+ type: "line",
1444
+ silent: !0,
1445
+ z: 50,
1446
+ shape: {
1447
+ x1: i.x,
1448
+ y1: i.y,
1449
+ x2: r.x,
1450
+ y2: r.y
1451
+ },
1452
+ style: B(e.line)
1453
+ });
1454
+ return t;
1455
+ }
1456
+ var be = .95;
1457
+ function ke(e, t) {
1458
+ const i = e.labelFont;
1459
+ if (!i || e.deleted) return [];
1460
+ const r = "bottom" === e.position || "top" === e.position, s = e.labelsAt ?? e.lineAt, n = e.labelLineHeight ?? C(i), o = r ? t.x : t.y + t.height, l = r ? t.width : t.height, a = (e) => r ? o + e * l : o - e * l, p = [];
1461
+ if ("category" === e.kind) {
1462
+ const t = e.categories.length;
1463
+ e.labels.forEach((i, r) => {
1464
+ if (null === i) return;
1465
+ const s = e.reversed ? t - 1 - r : r, n = "between" === e.crossBetween ? (s + .5) / t : 1 === t ? .5 : s / (t - 1);
1466
+ p.push([i, a(n)]);
1467
+ });
1468
+ } else {
1469
+ const [t, i] = e.logBase ? [Math.log(e.min), Math.log(e.max)] : [e.min, e.max];
1470
+ for (const r of e.ticks) {
1471
+ if (!r.label) continue;
1472
+ const s = e.logBase ? Math.log(r.value) : r.value, n = i === t ? .5 : (s - t) / (i - t);
1473
+ p.push([r.label, a(e.reversed ? 1 - n : n)]);
1474
+ }
1475
+ }
1476
+ const h = {
1477
+ fill: M(i),
1478
+ font: L(i),
1479
+ lineHeight: n
1480
+ }, c = [];
1481
+ for (const [t, n] of p) {
1482
+ if (!r) {
1483
+ c.push({
1484
+ type: "text",
1485
+ silent: !0,
1486
+ z: 3,
1487
+ x: "left" === e.position ? s - e.labelMargin : s + e.labelMargin,
1488
+ y: n,
1489
+ style: {
1490
+ ...h,
1491
+ text: t,
1492
+ align: "left" === e.position ? "right" : "left",
1493
+ verticalAlign: "middle"
1494
+ }
1495
+ });
1496
+ continue;
1497
+ }
1498
+ const o = t.split(" "), l = be * C(i);
1499
+ o.forEach((t, i) => c.push({
1500
+ type: "text",
1501
+ silent: !0,
1502
+ z: 3,
1503
+ x: n + (i - (o.length - 1) / 2) * l,
1504
+ y: "bottom" === e.position ? s + e.labelMargin : s - e.labelMargin,
1505
+ style: {
1506
+ ...h,
1507
+ text: t,
1508
+ align: "center",
1509
+ verticalAlign: "bottom" === e.position ? "top" : "bottom"
1510
+ }
1511
+ }));
1512
+ }
1513
+ return c;
1514
+ }
1515
+ function we(e, t) {
1516
+ return void 0 === e.labelsAt || !e.line || e.deleted ? [] : [{
1517
+ type: "line",
1518
+ silent: !0,
1519
+ z: 3,
1520
+ shape: "bottom" === e.position || "top" === e.position ? {
1521
+ x1: t.x,
1522
+ y1: e.lineAt,
1523
+ x2: t.x + t.width,
1524
+ y2: e.lineAt
1525
+ } : {
1526
+ x1: e.lineAt,
1527
+ y1: t.y,
1528
+ x2: e.lineAt,
1529
+ y2: t.y + t.height
1530
+ },
1531
+ style: B(e.line)
1532
+ }];
1533
+ }
1534
+ function Ae(e) {
1535
+ return e.gridlines && e.majorGridlines ? e.gridlines.map((t) => ({
1536
+ type: "line",
1537
+ silent: !0,
1538
+ z: 0,
1539
+ shape: {
1540
+ x1: t.from.x,
1541
+ y1: t.from.y,
1542
+ x2: t.to.x,
1543
+ y2: t.to.y
1544
+ },
1545
+ style: {
1546
+ fill: "none",
1547
+ ...B(e.majorGridlines)
1548
+ }
1549
+ })) : [];
1550
+ }
1551
+ function ve(e) {
1552
+ return e.paths.map((t) => ({
1553
+ type: "polyline",
1554
+ silent: !0,
1555
+ z: 29,
1556
+ shape: { points: t.map((e) => [e.x, e.y]) },
1557
+ style: {
1558
+ fill: "none",
1559
+ ...B(e.stroke)
1560
+ }
1561
+ }));
1562
+ }
1563
+ function Fe(e) {
1564
+ const t = e.paths.map((t) => ({
1565
+ type: "polyline",
1566
+ silent: !0,
1567
+ z: 30,
1568
+ shape: { points: t.map((e) => [e.x, e.y]) },
1569
+ style: {
1570
+ fill: "none",
1571
+ ...B(e.stroke),
1572
+ lineJoin: "round"
1573
+ }
1574
+ })), i = e.label;
1575
+ if (!i) return t;
1576
+ const { rect: r, font: s } = i;
1577
+ (i.fill || i.border) && t.push({
1578
+ type: "rect",
1579
+ silent: !0,
1580
+ z: 59,
1581
+ shape: {
1582
+ x: r.x,
1583
+ y: r.y,
1584
+ width: r.width,
1585
+ height: r.height
1586
+ },
1587
+ style: {
1588
+ fill: k(i.fill),
1589
+ ...B(i.border)
1590
+ }
1591
+ });
1592
+ const n = (e) => L(s, e);
1593
+ return i.lines.forEach((e, o) => {
1594
+ t.push({
1595
+ type: "text",
1596
+ silent: !0,
1597
+ z: 60,
1598
+ x: r.x + r.width / 2,
1599
+ y: r.y + i.insets.top + (o + .5) * i.lineHeight,
1600
+ style: {
1601
+ x: 0,
1602
+ y: 0,
1603
+ text: e.map((e) => `{${e.superscript ? "raised" : "plain"}|${e.text}}`).join(""),
1604
+ rich: {
1605
+ plain: {
1606
+ font: n(C(s)),
1607
+ fill: M(s),
1608
+ lineHeight: i.lineHeight
1609
+ },
1610
+ raised: {
1611
+ font: n(i.superscriptSize),
1612
+ fill: M(s),
1613
+ lineHeight: i.lineHeight,
1614
+ verticalAlign: "top"
1615
+ }
1616
+ },
1617
+ align: "center",
1618
+ verticalAlign: "middle"
1619
+ }
1620
+ });
1621
+ }), t;
1622
+ }
1623
+ var ze = !1;
1624
+ function Ce() {
1625
+ ze || (ze = !0, n.use([
1626
+ f,
1627
+ h,
1628
+ c,
1629
+ d,
1630
+ y,
1631
+ p
1632
+ ]));
1633
+ }
1634
+ var Me = {
1635
+ bar: [o],
1636
+ line: [l],
1637
+ area: [l],
1638
+ scatter: [l],
1639
+ bubble: [l],
1640
+ pie: [a],
1641
+ ofPie: [a]
1642
+ }, Se = /* @__PURE__ */ new Set();
1643
+ function Le(t) {
1644
+ for (const i of t.groups) {
1645
+ const t = e.typeOf(i);
1646
+ if (Se.has(t)) continue;
1647
+ Se.add(t);
1648
+ const r = e.get(t)?.modules?.() ?? Me[t] ?? [];
1649
+ r.length > 0 && n.use(r);
1650
+ }
1651
+ }
1652
+ function Be(e, t) {
1653
+ Ce();
1654
+ const i = he(e, {
1655
+ interactive: !1,
1656
+ ...t
1657
+ });
1658
+ Le(e);
1659
+ const r = n.init(null, null, {
1660
+ renderer: "svg",
1661
+ ssr: !0,
1662
+ width: e.width,
1663
+ height: e.height
1664
+ });
1665
+ return r.setOption(i), r;
1666
+ }
1667
+ function Ie(e, t) {
1668
+ const i = Be(e, t);
1669
+ try {
1670
+ return i.renderToSVGString();
1671
+ } finally {
1672
+ i.dispose();
1673
+ }
1674
+ }
1675
+ function Ee(e, t, i) {
1676
+ Ce();
1677
+ let r = t, s = i;
1678
+ const o = he(t, i);
1679
+ Le(t);
1680
+ const l = n.init(e, null, {
1681
+ renderer: "svg",
1682
+ width: t.width,
1683
+ height: t.height
1684
+ });
1685
+ return l.setOption(o), {
1686
+ update: (e, t) => {
1687
+ e.width === r.width && e.height === r.height || l.resize({
1688
+ width: e.width,
1689
+ height: e.height
1690
+ }), r = e, t && (s = t);
1691
+ const i = he(e, s);
1692
+ Le(e), l.setOption(i, { notMerge: !0 });
1693
+ },
1694
+ dispose: () => l.dispose()
1695
+ };
1696
+ }
1697
+ export { Be as createHeadlessChart, Ce as ensureRegistered, Ee as mountChart, Ie as renderChartToSVG };