@cyber-harbour/ui 1.0.74 → 1.0.75

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 (176) hide show
  1. package/README.md +76 -0
  2. package/bin/switch-ui-lib.js +196 -0
  3. package/dist/index.js +90 -90
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +6 -6
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +12 -2
  8. package/.env.example +0 -0
  9. package/src/Core/Alert/Alert.tsx +0 -87
  10. package/src/Core/Alert/index.ts +0 -1
  11. package/src/Core/Box/Box.tsx +0 -46
  12. package/src/Core/Box/index.ts +0 -1
  13. package/src/Core/Button/Button.tsx +0 -208
  14. package/src/Core/Button/index.ts +0 -1
  15. package/src/Core/Checkbox/Checkbox.tsx +0 -73
  16. package/src/Core/Checkbox/index.ts +0 -1
  17. package/src/Core/ContentLoader/ContentLoader.tsx +0 -13
  18. package/src/Core/ContentLoader/index.ts +0 -1
  19. package/src/Core/ContextMenu/ContextMenu.tsx +0 -153
  20. package/src/Core/ContextMenu/ContextMenuDelimiter.tsx +0 -13
  21. package/src/Core/ContextMenu/index.ts +0 -3
  22. package/src/Core/ContextMenu/useContextMenuControl.ts +0 -21
  23. package/src/Core/Drawer/Drawer.tsx +0 -118
  24. package/src/Core/Drawer/index.ts +0 -1
  25. package/src/Core/EmptyData/EmptyData.tsx +0 -44
  26. package/src/Core/EmptyData/index.ts +0 -1
  27. package/src/Core/Flex/FlexContainer.tsx +0 -94
  28. package/src/Core/Flex/FlexItem.tsx +0 -58
  29. package/src/Core/Flex/index.ts +0 -4
  30. package/src/Core/Header/Header.tsx +0 -37
  31. package/src/Core/Header/HeaderDelimeter.tsx +0 -12
  32. package/src/Core/Header/HeaderSection.tsx +0 -37
  33. package/src/Core/Header/index.ts +0 -3
  34. package/src/Core/IconComponents/AlertIcon.tsx +0 -18
  35. package/src/Core/IconComponents/AndroidIcon.tsx +0 -28
  36. package/src/Core/IconComponents/ApiIcon.tsx +0 -26
  37. package/src/Core/IconComponents/ArrowCircleTopRightIcon.tsx +0 -27
  38. package/src/Core/IconComponents/ArrowRightIcon.tsx +0 -23
  39. package/src/Core/IconComponents/BallsMenu.tsx +0 -15
  40. package/src/Core/IconComponents/BugReportIcon.tsx +0 -16
  41. package/src/Core/IconComponents/BusIcon.tsx +0 -24
  42. package/src/Core/IconComponents/CalendarIcon.tsx +0 -26
  43. package/src/Core/IconComponents/CarIcon.tsx +0 -16
  44. package/src/Core/IconComponents/Check.tsx +0 -16
  45. package/src/Core/IconComponents/ChevronDown.tsx +0 -18
  46. package/src/Core/IconComponents/ChevronLeftIcon.tsx +0 -23
  47. package/src/Core/IconComponents/ChevronRightIcon.tsx +0 -23
  48. package/src/Core/IconComponents/ChevronUp.tsx +0 -18
  49. package/src/Core/IconComponents/CloseCircleIcon.tsx +0 -24
  50. package/src/Core/IconComponents/ClosedLockIcon.tsx +0 -22
  51. package/src/Core/IconComponents/Cross.tsx +0 -16
  52. package/src/Core/IconComponents/DataSetsIcon.tsx +0 -26
  53. package/src/Core/IconComponents/DeepSearchIcon.tsx +0 -16
  54. package/src/Core/IconComponents/DisabledVisibleIcon.tsx +0 -26
  55. package/src/Core/IconComponents/DocsIcon.tsx +0 -26
  56. package/src/Core/IconComponents/DownloadIcon.tsx +0 -26
  57. package/src/Core/IconComponents/EditUserIcon.tsx +0 -26
  58. package/src/Core/IconComponents/EnableVisibleIcon.tsx +0 -22
  59. package/src/Core/IconComponents/EnterArrowLeftIcon.tsx +0 -16
  60. package/src/Core/IconComponents/FileIcon.tsx +0 -16
  61. package/src/Core/IconComponents/FiltersIcon.tsx +0 -38
  62. package/src/Core/IconComponents/FlashIcon.tsx +0 -16
  63. package/src/Core/IconComponents/FolderAlertIcon.tsx +0 -32
  64. package/src/Core/IconComponents/FolderInfoIcon.tsx +0 -28
  65. package/src/Core/IconComponents/HomepageIcon.tsx +0 -16
  66. package/src/Core/IconComponents/InfoCircleFilled.tsx +0 -18
  67. package/src/Core/IconComponents/InfoCircleIcon.tsx +0 -23
  68. package/src/Core/IconComponents/IosIcon.tsx +0 -20
  69. package/src/Core/IconComponents/MapRadarIcon.tsx +0 -22
  70. package/src/Core/IconComponents/MaximizeIcon.tsx +0 -28
  71. package/src/Core/IconComponents/MicrosoftIcon.tsx +0 -28
  72. package/src/Core/IconComponents/MoonIcon.tsx +0 -16
  73. package/src/Core/IconComponents/OpenLockIcon.tsx +0 -30
  74. package/src/Core/IconComponents/OrganizationIcon.tsx +0 -26
  75. package/src/Core/IconComponents/PassportIcon.tsx +0 -796
  76. package/src/Core/IconComponents/PasswordFinderIcon.tsx +0 -22
  77. package/src/Core/IconComponents/PencilIcon.tsx +0 -16
  78. package/src/Core/IconComponents/PhonebookIcon.tsx +0 -22
  79. package/src/Core/IconComponents/PlaneIcon.tsx +0 -17
  80. package/src/Core/IconComponents/Plus.tsx +0 -20
  81. package/src/Core/IconComponents/PointIcon.tsx +0 -16
  82. package/src/Core/IconComponents/PrintIcon.tsx +0 -16
  83. package/src/Core/IconComponents/Profiler2Icon.tsx +0 -30
  84. package/src/Core/IconComponents/ProfilerIcon.tsx +0 -22
  85. package/src/Core/IconComponents/RelationIcon.tsx +0 -28
  86. package/src/Core/IconComponents/RelationPointsIcon.tsx +0 -36
  87. package/src/Core/IconComponents/RotateLeftIcon.tsx +0 -24
  88. package/src/Core/IconComponents/RotateRightIcon.tsx +0 -24
  89. package/src/Core/IconComponents/SandBoxIcon.tsx +0 -16
  90. package/src/Core/IconComponents/SearchIcon.tsx +0 -14
  91. package/src/Core/IconComponents/ShipIcon.tsx +0 -32
  92. package/src/Core/IconComponents/StatisticIcon.tsx +0 -26
  93. package/src/Core/IconComponents/SunIcon.tsx +0 -49
  94. package/src/Core/IconComponents/Unfold.tsx +0 -20
  95. package/src/Core/IconComponents/UpRightArrowCircleIcon.tsx +0 -22
  96. package/src/Core/IconComponents/UserInCircle.tsx +0 -24
  97. package/src/Core/IconComponents/Users.tsx +0 -36
  98. package/src/Core/IconComponents/VectorIcon.tsx +0 -17
  99. package/src/Core/IconComponents/WayIcon.tsx +0 -24
  100. package/src/Core/IconComponents/index.ts +0 -66
  101. package/src/Core/Input/Input.tsx +0 -245
  102. package/src/Core/Input/index.ts +0 -1
  103. package/src/Core/Label/Label.tsx +0 -139
  104. package/src/Core/Label/index.ts +0 -1
  105. package/src/Core/Line/Line.tsx +0 -26
  106. package/src/Core/Line/index.ts +0 -1
  107. package/src/Core/LinerProgress/LinerProgress.tsx +0 -47
  108. package/src/Core/LinerProgress/index.ts +0 -1
  109. package/src/Core/ListMenu/ListMenu.tsx +0 -31
  110. package/src/Core/ListMenu/ListMenuItem.tsx +0 -105
  111. package/src/Core/ListMenu/ListMenuSection.tsx +0 -54
  112. package/src/Core/ListMenu/index.ts +0 -3
  113. package/src/Core/Modal/Modal.tsx +0 -116
  114. package/src/Core/Modal/index.ts +0 -1
  115. package/src/Core/Overlay/Overlay.tsx +0 -94
  116. package/src/Core/Overlay/index.ts +0 -1
  117. package/src/Core/Pagination/Pagination.tsx +0 -139
  118. package/src/Core/Pagination/index.ts +0 -1
  119. package/src/Core/RowActionsMenu/RowActionsMenu.tsx +0 -153
  120. package/src/Core/RowActionsMenu/index.ts +0 -1
  121. package/src/Core/Select/Select.tsx +0 -197
  122. package/src/Core/Select/index.ts +0 -1
  123. package/src/Core/Sidebar/Sidebar.tsx +0 -80
  124. package/src/Core/Sidebar/SidebarContext.tsx +0 -13
  125. package/src/Core/Sidebar/SidebarDelimeter.tsx +0 -35
  126. package/src/Core/Sidebar/SidebarItem.tsx +0 -137
  127. package/src/Core/Sidebar/SidebarSection.tsx +0 -31
  128. package/src/Core/Sidebar/index.ts +0 -5
  129. package/src/Core/Switch/Switch.tsx +0 -71
  130. package/src/Core/Switch/index.ts +0 -1
  131. package/src/Core/Table/Cell.tsx +0 -42
  132. package/src/Core/Table/Row.tsx +0 -3
  133. package/src/Core/Table/Table.tsx +0 -94
  134. package/src/Core/Table/index.ts +0 -1
  135. package/src/Core/Tag/Tag.tsx +0 -144
  136. package/src/Core/Tag/index.ts +0 -1
  137. package/src/Core/Tooltip/Tooltip.tsx +0 -103
  138. package/src/Core/Tooltip/index.ts +0 -1
  139. package/src/Core/Typography/Typography.tsx +0 -70
  140. package/src/Core/Typography/index.ts +0 -1
  141. package/src/Core/index.ts +0 -27
  142. package/src/FullscreenCard/FullscreenCard.tsx +0 -56
  143. package/src/FullscreenCard/index.ts +0 -1
  144. package/src/Graph2D/Graph2D.tsx +0 -1837
  145. package/src/Graph2D/GraphLoader.tsx +0 -68
  146. package/src/Graph2D/icons/eye_light.png +0 -0
  147. package/src/Graph2D/icons/eye_light_hover.png +0 -0
  148. package/src/Graph2D/icons/group_light.png +0 -0
  149. package/src/Graph2D/icons/group_light_hover.png +0 -0
  150. package/src/Graph2D/index.ts +0 -2
  151. package/src/Graph2D/json_test.json +0 -44444
  152. package/src/Graph2D/types.ts +0 -122
  153. package/src/Layouts/Container/Container.tsx +0 -33
  154. package/src/Layouts/Container/index.ts +0 -1
  155. package/src/Layouts/PageLayout/PageLayout.tsx +0 -63
  156. package/src/Layouts/PageLayout/index.ts +0 -1
  157. package/src/Layouts/index.ts +0 -2
  158. package/src/Theme/Breakpoint.tsx +0 -50
  159. package/src/Theme/GlobalStyle.tsx +0 -18
  160. package/src/Theme/ThemeProvider.tsx +0 -30
  161. package/src/Theme/componentFabric.tsx +0 -159
  162. package/src/Theme/index.ts +0 -8
  163. package/src/Theme/styled.d.ts +0 -7
  164. package/src/Theme/themes/config.ts +0 -41
  165. package/src/Theme/themes/dark.ts +0 -1005
  166. package/src/Theme/themes/index.ts +0 -2
  167. package/src/Theme/themes/light.ts +0 -1004
  168. package/src/Theme/types.ts +0 -362
  169. package/src/Theme/useTheme.tsx +0 -7
  170. package/src/Theme/utils.ts +0 -205
  171. package/src/custom.d.ts +0 -19
  172. package/src/index.ts +0 -5
  173. package/src/utils.ts +0 -30
  174. package/tsconfig.paths.json +0 -5
  175. package/tsup.config.ts +0 -30
  176. package/tsup.dev.config.ts +0 -10
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
11
11
  font-family: ${e.typography.fontFamily};
12
12
  font-size: ${e.baseSize}px;
13
13
  }
14
- `);var D1=r((e,o)=>{if(!o||typeof o!="string")return;if(!(o.includes(".")||e.colors.hasOwnProperty(o)))return o;let i=o.split(".");if(i.length===1)return e.colors[i[0]];if(i.length===2){let[d,C]=i,u=e.colors[d];if(u&&typeof u=="object")return u[C]}},"resolveThemeColor"),V=r((e,o=16)=>{let t=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(t)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(t/o).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),R5=r((e,o=16)=>{let t=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(t)?0:t*o},"remToPx"),E2={contextMenu:["padding"],baseSize:true},o1=r((e,o=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?`${e}`:`${(t/o).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),v1=r((e,o=14,t)=>{let i={};return Object.entries(e).forEach(([d,C])=>{C!==null&&typeof C=="object"&&!Array.isArray(C)?i[d]=v1(C,o,d):typeof C=="string"&&/^\d+(\.\d+)?px$/.test(C.trim())||typeof C=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(u=>d.toLowerCase().includes(u.toLowerCase()))&&!(t&&Array.isArray(E2[t])&&E2[t].includes(d))&&!E2[d]?i[d]=V(C,o):i[d]=C;}),i},"convertPaletteToRem"),r1=r((e,o,t,i)=>e.button[o][t][i],"getButtonStyles"),i1=r((e,o)=>e.button.sizes[o],"getButtonSizeStyles"),A9=r((e,o,t)=>e.input[o][t],"getInputStyles"),D9=r((e,o="body")=>e.typography.variants[o]||e.typography.variants.body,"getTypographyStyles"),N9=r((e,o="m")=>`@media (min-width: ${e.breakpoints[o]}px)`,"getBreakpoint"),p1=r((e,o)=>{try{let t=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),d=parseInt(e.slice(5,7),16);return `rgba(${t}, ${i}, ${d}, ${o})`}catch{return e}},"hexToRgba");var N1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},u1={xs:320,s:576,m:768,l:992,xl:1200},W1={fontFamily:"Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var A5={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:W1,breakpoints:u1,zIndex:N1,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:224,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#EBEBEB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.5)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},D5=v1(A5,A5.baseSize);var N5={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:W1,breakpoints:u1,zIndex:N1,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#0F1317",border:"#1E2226",width:224,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.5)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},W5=v1(N5,N5.baseSize);var Z2=r(e=>{if(window!==void 0){let t=window.innerWidth;for(let[i,d]of Object.entries(e))if(t<d)return i}let o=Object.keys(e);return o[o.length-1]},"getBreakpoint"),Y5=createContext(Z2(u1)),X5=r(({children:e})=>{let o=useTheme(),[t,i]=useState(Z2(o.breakpoints));return useEffect(()=>{let d=r(()=>{let C=Z2(o.breakpoints);C!==t&&i(C);},"handleResize");return window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d);}},[t]),jsx(Y5.Provider,{value:t,children:e})},"BreakpointProvider"),_5=r(()=>{let e=useContext(Y5),o=useTheme(),t=useMemo(()=>Object.keys(o.breakpoints),[o.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:t}},"useBreakpoint");var ue=r(({children:e,mode:o})=>jsx(StyleSheetManager,{shouldForwardProp:S6,children:jsx(ThemeProvider,{theme:o=="light"||o==="LIGHT"?D5:W5,children:jsxs(X5,{children:[jsx(z5,{}),e]})})}),"ThemeProvider");function S6(e,o){return typeof o=="string"?!["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"].includes(e):true}r(S6,"shouldForwardProp");var M6=r(({ignoreStyles:e}={})=>css(({theme:o,...t})=>`
14
+ `);var D1=r((e,o)=>{if(!o||typeof o!="string")return;if(!(o.includes(".")||e.colors.hasOwnProperty(o)))return o;let i=o.split(".");if(i.length===1)return e.colors[i[0]];if(i.length===2){let[d,C]=i,u=e.colors[d];if(u&&typeof u=="object")return u[C]}},"resolveThemeColor"),V=r((e,o=16)=>{let t=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(t)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(t/o).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),R5=r((e,o=16)=>{let t=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(t)?0:t*o},"remToPx"),E2={contextMenu:["padding"],baseSize:true},o1=r((e,o=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?`${e}`:`${(t/o).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),v1=r((e,o=14,t)=>{let i={};return Object.entries(e).forEach(([d,C])=>{C!==null&&typeof C=="object"&&!Array.isArray(C)?i[d]=v1(C,o,d):typeof C=="string"&&/^\d+(\.\d+)?px$/.test(C.trim())||typeof C=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(u=>d.toLowerCase().includes(u.toLowerCase()))&&!(t&&Array.isArray(E2[t])&&E2[t].includes(d))&&!E2[d]?i[d]=V(C,o):i[d]=C;}),i},"convertPaletteToRem"),r1=r((e,o,t,i)=>e.button[o][t][i],"getButtonStyles"),i1=r((e,o)=>e.button.sizes[o],"getButtonSizeStyles"),A9=r((e,o,t)=>e.input[o][t],"getInputStyles"),D9=r((e,o="body")=>e.typography.variants[o]||e.typography.variants.body,"getTypographyStyles"),N9=r((e,o="m")=>`@media (min-width: ${e.breakpoints[o]}px)`,"getBreakpoint"),p1=r((e,o)=>{try{let t=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),d=parseInt(e.slice(5,7),16);return `rgba(${t}, ${i}, ${d}, ${o})`}catch{return e}},"hexToRgba");var N1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},u1={xs:320,s:576,m:768,l:992,xl:1200},W1={fontFamily:"Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var A5={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:W1,breakpoints:u1,zIndex:N1,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:224,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#EBEBEB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.5)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},D5=v1(A5,A5.baseSize);var N5={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:W1,breakpoints:u1,zIndex:N1,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#0F1317",border:"#1E2226",width:224,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.5)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},W5=v1(N5,N5.baseSize);var Z2=r(e=>{if(typeof window<"u"){let t=window.innerWidth;for(let[i,d]of Object.entries(e))if(t<d)return i}let o=Object.keys(e);return o[o.length-1]},"getBreakpoint"),Y5=createContext(Z2(u1)),X5=r(({children:e})=>{let o=useTheme(),[t,i]=useState(Z2(o.breakpoints));return useEffect(()=>{if(typeof window>"u")return;let d=r(()=>{let C=Z2(o.breakpoints);C!==t&&i(C);},"handleResize");return window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d);}},[t,o.breakpoints]),jsx(Y5.Provider,{value:t,children:e})},"BreakpointProvider"),_5=r(()=>{let e=useContext(Y5),o=useTheme(),t=useMemo(()=>Object.keys(o.breakpoints),[o.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:t}},"useBreakpoint");var ue=r(({children:e,mode:o})=>jsx(StyleSheetManager,{shouldForwardProp:S6,children:jsx(ThemeProvider,{theme:o=="light"||o==="LIGHT"?D5:W5,children:jsxs(X5,{children:[jsx(z5,{}),e]})})}),"ThemeProvider");function S6(e,o){return typeof o=="string"?!["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"].includes(e):true}r(S6,"shouldForwardProp");var M6=r(({ignoreStyles:e}={})=>css(({theme:o,...t})=>`
15
15
  ${F(o,"margin",t.m,e)}
16
16
  ${F(o,"margin-top",t.mt,e)}
17
17
  ${F(o,"margin-right",t.mr,e)}
@@ -453,7 +453,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
453
453
  align-items: center;
454
454
  justify-content: flex-end;
455
455
  gap: ${e.pagination.gap};
456
- `);var G4=r(({isOpen:e,onClickOutside:o,onClick:t,anchor:i,size:d="medium",disabled:C,fullWidth:u,className:x,positions:m=["bottom"],align:y="start",children:k,hasBorder:L=true,maxHeight:I=500,matchAnchorWidth:K=false,anchorIcon:s})=>{let[U,j]=useState(0),q=useRef(null),e1=useTheme();return useLayoutEffect(()=>{q.current&&j(q.current.offsetWidth);},[K]),jsx(Popover,{padding:e1.contextMenu.padding,isOpen:e,positions:m,align:y,onClickOutside:o,content:k,ref:q,containerStyle:{backgroundColor:e1.colors.background,border:`1px solid ${e1.colors.stroke.light}`,boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderRadius:"5px",overflow:"auto",maxHeight:`${I}px`,zIndex:"9999",width:U&&K?`${U}px`:void 0},containerClassName:"cb-ui-context-menu",children:jsxs(V7,{onClick:t,$disabled:C,$fullWidth:u,$size:d,className:x,type:"button",disabled:C,$hasBorder:L,children:[jsx(H7,{children:i}),s||(e?jsx(K2,{width:e1.contextMenu.icon.size,height:e1.contextMenu.icon.size}):jsx(J2,{width:e1.contextMenu.icon.size,height:e1.contextMenu.icon.size}))]})})},"ContextMenu"),H7=styled.div`
456
+ `);var G4=r(({isOpen:e,onClickOutside:o,onClick:t,anchor:i,size:d="medium",disabled:C,fullWidth:u,className:x,positions:m=["bottom"],align:y="start",children:k,hasBorder:L=true,maxHeight:I=500,matchAnchorWidth:K=false,anchorIcon:s})=>{let[U,j]=useState(0),q=useRef(null),e1=useTheme();return useLayoutEffect(()=>{q.current&&typeof window<"u"&&j(q.current.offsetWidth);},[K]),jsx(Popover,{padding:e1.contextMenu.padding,isOpen:e,positions:m,align:y,onClickOutside:o,content:k,ref:q,containerStyle:{backgroundColor:e1.colors.background,border:`1px solid ${e1.colors.stroke.light}`,boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderRadius:"5px",overflow:"auto",maxHeight:`${I}px`,zIndex:"9999",width:U&&K?`${U}px`:void 0},containerClassName:"cb-ui-context-menu",children:jsxs(V7,{onClick:t,$disabled:C,$fullWidth:u,$size:d,className:x,type:"button",disabled:C,$hasBorder:L,children:[jsx(H7,{children:i}),s||(e?jsx(K2,{width:e1.contextMenu.icon.size,height:e1.contextMenu.icon.size}):jsx(J2,{width:e1.contextMenu.icon.size,height:e1.contextMenu.icon.size}))]})})},"ContextMenu"),H7=styled.div`
457
457
  flex-grow: 1;
458
458
  text-align: start;
459
459
  `,V7=styled.button`
@@ -621,7 +621,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
621
621
  background-color: ${e.rowActionsMenu.delimiterColor};
622
622
  }
623
623
  }
624
- `);var nC=forwardRef(r(function({error:o,append:t,prepend:i,size:d="small",variant:C="outlined",multiline:u,disabled:x,className:m,...y},k){return jsxs(q7,{$align:u?"flex-start":"center",className:m,$error:o,$size:d,$variant:C,$disabled:!!x,$multiline:u,children:[!!i&&i,jsxs(X7,{$size:d,$variant:C,children:[u?jsx(Y7,{size:d,disabled:x,...y,ref:k}):jsx(O4,{disabled:x,...y,ref:k}),!!o&&jsx(U7,{$variant:C,children:jsx(Q2,{})})]}),!!t&&t]})},"Input")),Y7=forwardRef(r(function({size:o="small",disabled:t,className:i,rows:d="1",autoResize:C=false,...u},x){let[m,y]=useState(Number(d)),k=useRef(Number(d)),L=useRef(null),I=useTheme(),K=useRef(R5(I.input.sizes[o].lineHeight,I.baseSize)||I.baseSize);return useEffect(()=>{if(L.current&&C){let s=L.current.getBoundingClientRect().height,U=Math.round(s/K.current);k.current!==U&&(k.current=U,y(U));}},[u.value]),jsxs("div",{style:{position:"relative",width:"100%"},children:[jsx(W4,{disabled:t,$autoResize:C,...u,rows:m,ref:x}),jsx(_7,{ref:L,$size:o,style:{minHeight:K.current*Number(d)},children:(u.value||"")+"\u200B"})]})},"Input")),W4=styled.textarea(({$autoResize:e})=>`
624
+ `);var nC=forwardRef(r(function({error:o,append:t,prepend:i,size:d="small",variant:C="outlined",multiline:u,disabled:x,className:m,...y},k){return jsxs(q7,{$align:u?"flex-start":"center",className:m,$error:o,$size:d,$variant:C,$disabled:!!x,$multiline:u,children:[!!i&&i,jsxs(X7,{$size:d,$variant:C,children:[u?jsx(Y7,{size:d,disabled:x,...y,ref:k}):jsx(O4,{disabled:x,...y,ref:k}),!!o&&jsx(U7,{$variant:C,children:jsx(Q2,{})})]}),!!t&&t]})},"Input")),Y7=forwardRef(r(function({size:o="small",disabled:t,className:i,rows:d="1",autoResize:C=false,...u},x){let[m,y]=useState(Number(d)),k=useRef(Number(d)),L=useRef(null),I=useTheme(),K=useRef(R5(I.input.sizes[o].lineHeight,I.baseSize)||I.baseSize);return useEffect(()=>{if(L.current&&C&&typeof window<"u"){let s=L.current.getBoundingClientRect().height,U=Math.round(s/K.current);k.current!==U&&(k.current=U,y(U));}},[u.value,C]),jsxs("div",{style:{position:"relative",width:"100%"},children:[jsx(W4,{disabled:t,$autoResize:C,...u,rows:m,ref:x}),jsx(_7,{ref:L,$size:o,style:{minHeight:K.current*Number(d)},children:(u.value||"")+"\u200B"})]})},"Input")),W4=styled.textarea(({$autoResize:e})=>`
625
625
  resize: none;
626
626
  margin: 0;
627
627
  display: block;
@@ -1017,7 +1017,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
1017
1017
  `),E8=B(styled.label`
1018
1018
  position: relative;
1019
1019
  display: inline-block;
1020
- `);var m2=r(e=>{useEffect(()=>{if(!e)return;let o=window.getComputedStyle(document.body),t=window.innerWidth-document.documentElement.clientWidth,i=o.paddingRight,d=o.overflow;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${parseInt(i)+t}px`,()=>{document.body.style.overflow=d,document.body.style.paddingRight=i;}},[e]);},"useBodyScrollLock");var ic=$(e=>(m2(e.isOpen),e.isOpen?createPortal(jsx(R8,{...e}),document.body):null)),R8=r(({onClose:e,children:o,width:t,header:i})=>{let d=useRef(null);return useEffect(()=>{let C=r(u=>{let x=u.target;d.current&&!d.current.contains(x)&&!x.closest(".cb-ui-context-menu")&&!x.closest(".cb-ui-backdrop")&&e();},"handleClick");return document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C);}},[e]),jsx(A8,{$header:i,$width:t,ref:d,children:o})},"DrawerWithOutclick"),sc=B(styled.div(({theme:e,p:o=e.drawer.padding})=>`
1020
+ `);var m2=r(e=>{useEffect(()=>{if(!e||typeof window>"u")return;let o=window.getComputedStyle(document.body),t=window.innerWidth-document.documentElement.clientWidth,i=o.paddingRight,d=o.overflow;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${parseInt(i)+t}px`,()=>{document.body.style.overflow=d,document.body.style.paddingRight=i;}},[e]);},"useBodyScrollLock");var ic=$(e=>(m2(e.isOpen),!e.isOpen||typeof window>"u"?null:createPortal(jsx(R8,{...e}),document.body))),R8=r(({onClose:e,children:o,width:t,header:i})=>{let d=useRef(null);return useEffect(()=>{if(typeof window>"u")return;let C=r(u=>{let x=u.target;d.current&&!d.current.contains(x)&&!x.closest(".cb-ui-context-menu")&&!x.closest(".cb-ui-backdrop")&&e();},"handleClick");return document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C);}},[e]),jsx(A8,{$header:i,$width:t,ref:d,children:o})},"DrawerWithOutclick"),sc=B(styled.div(({theme:e,p:o=e.drawer.padding})=>`
1021
1021
  grid-area: drawer-header;
1022
1022
  ${F(e,"padding",o)};
1023
1023
  `),{ignoreStyles:["padding-inline"]}),dc=$(B(styled.div(({theme:e,px:o=e.drawer.padding,pb:t=e.drawer.padding})=>`
@@ -1075,7 +1075,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
1075
1075
  from { opacity: 0.5; transform: translateX(-${V(t,e.baseSize)}); }
1076
1076
  to { opacity: 1; transform: translateX(0); }
1077
1077
  }
1078
- `);var Fc=r(e=>{let{contentLoader:{foreground:o,background:t}}=useTheme();return jsx(Y8,{...e,backgroundColor:t,foregroundColor:o})},"ContentLoader");var j4=$(({children:e,onOutsideClick:o,prepend:t,append:i,prependPosition:d,appendPosition:C,isLocked:u=true,...x})=>(m2(u),createPortal(jsxs(Q8,{...x,className:"cb-ui-backdrop",onClick:m=>{m.target===m.currentTarget&&o&&o();},children:[!!t&&jsx(q8,{$position:d,children:t}),jsx(K8,{children:e}),!!i&&jsx(J8,{$position:C,children:i})]}),document.body))),q8=styled.div(({theme:e,$position:o="end"})=>`
1078
+ `);var Fc=r(e=>{let{contentLoader:{foreground:o,background:t}}=useTheme();return jsx(Y8,{...e,backgroundColor:t,foregroundColor:o})},"ContentLoader");var j4=$(({children:e,onOutsideClick:o,prepend:t,append:i,prependPosition:d,appendPosition:C,isLocked:u=true,...x})=>(m2(u),typeof window>"u"?null:createPortal(jsxs(Q8,{...x,className:"cb-ui-backdrop",onClick:m=>{m.target===m.currentTarget&&o&&o();},children:[!!t&&jsx(q8,{$position:d,children:t}),jsx(K8,{children:e}),!!i&&jsx(J8,{$position:C,children:i})]}),document.body))),q8=styled.div(({theme:e,$position:o="end"})=>`
1079
1079
  position: absolute;
1080
1080
  top: ${e.overlay.gap};
1081
1081
  z-index: ${e.zIndex.backdrop};
@@ -1196,7 +1196,7 @@ import w1,{createGlobalStyle,styled,useTheme,css,StyleSheetManager,ThemeProvider
1196
1196
  display: flex;
1197
1197
  align-items: center;
1198
1198
  justify-content: center;
1199
- `,p9=r(({width:e=280,height:o=280})=>{let t=useTheme();return jsx(c9,{children:jsxs(Y8,{foregroundColor:t.contentLoader.foreground,backgroundColor:t.contentLoader.background,width:e,height:o,viewBox:"0 0 280 280",children:[jsx("path",{d:"m55 38-0.97266 0.22852 7.0801 30.092-18.355-20.979-0.75195 0.6582 19.596 22.395 0.43164 1.834 0.97266-0.22852 0.75195-0.6582-0.37695-0.42969 9.625-27.912-0.94531-0.32617-9.4375 27.371-0.10547-0.12109zm8 34-0.78516 0.61914 0.0957 0.12305-12.311 13.258 0.73242 0.67969 12.205-13.145 14.277 18.084 0.78516-0.61914-14.373-18.207 0.10547-0.11328zm15 19-0.48438 0.875 46.992 25.996 8e-3 4e-3 20.506 11.592-28.182 4.5449 0.15998 0.98819 29.418-4.7441 0.25 0.14062-12.555 24.143 0.88672 0.46094 13-25 15 25 26 30v18l-11 18 0.85352 0.52148 9.8008-16.039-4.6543 33.518 0.99023 0.13867 4.7793-34.408 7.2305 16.27 0.91406-0.40625-7.9141-17.807v-17.104l18 12.316 0.56445-0.82617-18.896-12.928-25.855-29.836-14.633-24.387 0.01562-0.02344h23.805v-1h-23.152l13.848-21.234 55.201-28.791-0.45898-0.88476 0.77734 0.62305 11.402-14.25 16.668-11.842-0.58008-0.81641-16.785 11.928-11.486 14.355-55.434 28.912-14.277 21.893-7.7617-27.166-0.96094 0.27344 7.7227 27.031-1.1191 0.17969-21.604-12.211zm140.43-12.912-6.957-17.338-0.92773 0.37305 6.957 17.338zm-6.957-17.338 0.72266 0.69336 16.232-16.896-0.7207-0.69336zm-3.4766 137.25 5 15 0.94922-0.31641-5-15zm-91-63-0.48047-0.87695-31 17 0.48047 0.87695zm-31 17 5 18 0.96289-0.26758-5-18zm0 0-0.70703-0.70703-12.898 12.898-17.881 9.9336 0.48633 0.875 18-10zm5 18-0.64062-0.76758-18 15 0.64062 0.76758z"}),jsx("circle",{cx:"229.92",cy:"63.7318",r:"5",transform:"rotate(173.661 229.92 63.7318)"}),jsx("circle",{cx:"227.711",cy:"43.8541",r:"5",transform:"rotate(173.661 227.711 43.8541)"}),jsx("circle",{cx:"211.478",cy:"60.7499",r:"5",transform:"rotate(173.661 211.478 60.7499)"}),jsx("circle",{cx:"218.434",cy:"78.0877",r:"5",transform:"rotate(173.661 218.434 78.0877)"}),jsx("circle",{cx:"246.705",cy:"51.8054",r:"5",transform:"rotate(173.661 246.705 51.8054)"}),jsx("circle",{cx:"42",cy:"48",r:"5"}),jsx("circle",{cx:"55",cy:"38",r:"5"}),jsx("circle",{cx:"73",cy:"43",r:"5"}),jsx("circle",{cx:"63",cy:"72",r:"5"}),jsx("circle",{cx:"50",cy:"86",r:"5"}),jsx("circle",{cx:"78",cy:"91",r:"5"}),jsx("circle",{cx:"73",cy:"165",r:"5"}),jsx("circle",{cx:"73",cy:"185",r:"5"}),jsx("circle",{cx:"91",cy:"170",r:"5"}),jsx("circle",{cx:"86",cy:"152",r:"5"}),jsx("circle",{cx:"148",cy:"130",r:"5"}),jsx("circle",{cx:"189",cy:"185",r:"5"}),jsx("circle",{cx:"163",cy:"107",r:"5"}),jsx("circle",{cx:"140",cy:"102",r:"5"}),jsx("circle",{cx:"117",cy:"135",r:"5"}),jsx("circle",{cx:"125",cy:"117",r:"5"}),jsx("circle",{cx:"208",cy:"198",r:"5"}),jsx("circle",{cx:"189",cy:"203",r:"5"}),jsx("circle",{cx:"198",cy:"221",r:"5"}),jsx("circle",{cx:"178",cy:"221",r:"5"}),jsx("circle",{cx:"184",cy:"239",r:"5"}),jsx("circle",{cx:"213",cy:"213",r:"5"}),jsx("circle",{cx:"173",cy:"130",r:"5"}),jsx("circle",{cx:"163",cy:"155",r:"5"}),jsx("circle",{cx:"135",cy:"155",r:"5"}),jsx("circle",{cx:"55",cy:"175",r:"5"})]})})},"GraphLoader"),t6=p9;var y2=window.devicePixelRatio||1;function P9(e){return !e||e.length===0?[]:e.map(o=>{let t=new Image;t.src=o.img;let i=new Image;return i.src=o.hoverImg,{...o,normalImg:t,hoverImg:i}})}r(P9,"prepareButtonImages");var A={fontSize:3,nodeSizeBase:30,nodeAreaFactor:2,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},k9=forwardRef(({loading:e,width:o,height:t,graphData:i,buttons:d=[],onNodeClick:C,onBackgroundClick:u,onNodeHover:x,onLinkHover:m,onLinkClick:y},k)=>{let L=useTheme(),[I,K]=useState(true),s=useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNode:null,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:o*y2,height:t*y2,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:U,links:j}=useMemo(()=>m9(i),[i]),[q,e1]=useState([]),D=useRef(null),E=useRef(null),_=useRef(null),v2=scaleOrdinal(schemeCategory10),L2=useCallback(()=>{if(!D.current)return false;try{let n=D.current.getContext("2d");return n?(_.current=n,!0):(console.error("Failed to get 2D context"),!1)}catch(n){return console.error("Error initializing Canvas 2D context:",n),false}},[]),t1=useCallback(()=>E.current?E.current.nodes():null,[]),B1=useCallback(()=>{if(!E.current)return null;let n=E.current.force("link");return n?n.links():null},[]),w5=useCallback(n=>{n.save(),n.setTransform(1,0,0,1,0,0);let{width:c,height:l}=s.current,p=A.gridSpacing,g=A.dotSize;n.fillStyle=L.graph2D.grid.dotColor;for(let b=p/2;b<=c;b+=p)for(let h=p/2;h<=l;h+=p)n.beginPath(),n.arc(b,h,g,0,2*Math.PI),n.fill();n.restore();},[L.graph2D.grid.dotColor,A.gridSpacing,A.dotSize]),i6=useCallback((n,c,l)=>{if(!n)return "";if(l.measureText(n).width<=c)return n;let g=n,b="...";for(;l.measureText(g+b).width>c&&g.length>0;)g=g.slice(0,-1);return g+b},[]),M2=r(n=>{let l=Math.min(n,A.maxZoom)/A.maxZoom;return Math.max(A.fontSize*l,A.fontSize)},"calculateFontSize"),y5=useCallback(n=>{let c=B1(),l=t1();!c||c.length===0||!l||l.length===0||(n.lineWidth=.5,n.globalAlpha=1,c.forEach(p=>{let g=typeof p.source=="object"?p.source:l.find(a1=>a1.id===p.source),b=typeof p.target=="object"?p.target:l.find(a1=>a1.id===p.target);if(!g||!b)return;let h={x:g.x||0,y:g.y||0},f={x:b.x||0,y:b.y||0},w=f.x-h.x,v=f.y-h.y,M=Math.sqrt(w*w+v*v),G=w/M,Z=v/M,O=A.nodeSizeBase/2,R=A.nodeSizeBase/2,N=4,S={x:h.x+G*O,y:h.y+Z*O},P={x:f.x-G*(R+N),y:f.y-Z*(R+N)},H={x:f.x-G*(R+1),y:f.y-Z*(R+1)},Y=s.current.highlightLinks.has(p),W=Y?L.graph2D.link.highlighted:L.graph2D.link.normal,X=Y?1.5:.5,Q=h.x+(f.x-h.x)/2,s1=h.y+(f.y-h.y)/2,d1=Math.atan2(v,w);if(p.label){let a1=s.current.transform.k,C1=M2(a1);n.font=`${C1}px Sans-Serif`;let $5=n.measureText(p.label).width,E5=10;n.beginPath(),n.moveTo(S.x,S.y);let Z5=M/2-($5+E5)/2,B5={x:h.x+G*Z5,y:h.y+Z*Z5};n.lineTo(B5.x,B5.y),n.strokeStyle=W,n.lineWidth=X,n.stroke(),n.beginPath();let T5=M/2+($5+E5)/2,G5={x:h.x+G*T5,y:h.y+Z*T5};n.moveTo(G5.x,G5.y),n.lineTo(P.x,P.y),n.strokeStyle=W,n.lineWidth=X,n.stroke();}else n.beginPath(),n.moveTo(S.x,S.y),n.lineTo(P.x,P.y),n.strokeStyle=W,n.lineWidth=X,n.stroke();let y1=2;if(n.save(),n.translate(H.x,H.y),n.rotate(d1),n.beginPath(),n.moveTo(0,0),n.lineTo(-4,y1),n.lineTo(-4,0),n.lineTo(-4,-2),n.closePath(),n.fillStyle=W,n.fill(),n.restore(),p.label){let a1=s.current.transform.k,C1=M2(a1);n.font=`${C1}px Sans-Serif`,n.textAlign="center",n.textBaseline="middle",n.save(),n.translate(Q,s1),Math.abs(d1)>Math.PI/2?n.rotate(d1+Math.PI):n.rotate(d1),n.fillStyle=Y?L.graph2D.link.highlightedTextColor:L.graph2D.link.textColor,n.fillText(p.label,0,0),n.restore();}}));},[A,L.graph2D.link]),v5=r((n,c,l,p,g,b,h)=>{try{if(b!=null){let f=g*.8;n.font=`${f}px sans-serif`,n.textBaseline="middle",n.textAlign="left";let w=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(b),v=n.measureText(w).width,M=g*.3,Z=(g+M+v)/2;n.drawImage(c,l-Z,p-g/2,g,g),n.fillStyle=h||"#99989C",n.fillText(w,l-Z+g+M,p);}else n.drawImage(c,l-g/2,p-g/2,g,g);}catch(f){console.warn("Error rendering icon:",f);}},"drawIconWithOptionalCounter"),L5=useCallback((n,c)=>{if(!q||q.length===0||!n||!n.x||!n.y)return;let{x:l,y:p}=n,g=A.nodeSizeBase*A.nodeAreaFactor/2;c.save();let b=Math.min(q.length,8),h=Math.min(Math.PI*2/b,Math.PI);for(let f=0;f<b;f++){let w=f*h,v=(f+1)*h,M=s.current.hoveredButtonIndex===f;c.beginPath(),c.arc(l,p,g,w,v,false),c.lineTo(l,p),c.closePath(),c.lineWidth=1,c.strokeStyle=L.graph2D?.button?.stroke||"#FFFFFF",c.stroke(),c.fillStyle=M?L.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":L.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",c.fill();let G=g*.2,Z=(w+v)/2,O=g-A.nodeSizeBase/2+G,R=l+Math.cos(Z)*O,N=p+Math.sin(Z)*O,S=q[f];if(S.loading){let P=G/2,H=G/12;c.save(),c.translate(R,N),c.rotate(s.current.spinnerAngle);for(let Y=0;Y<12;Y++){let W=Math.PI*2*Y/12,X=Y/12,Q=Math.cos(W)*P,s1=Math.sin(W)*P;c.beginPath(),c.fillStyle=p1(L.graph2D?.button?.spinnerColor,X),c.arc(Q,s1,H,0,Math.PI*2),c.fill();}c.restore(),s.current.spinnerAngle+=.1,s.current.spinnerAngle>Math.PI*2&&(s.current.spinnerAngle-=Math.PI*2),s.current.animation.id!==null&&(cancelAnimationFrame(s.current.animation.id),s.current.animation.id=null,s.current.animation.buttonIndex=null),s.current.animation.id=requestAnimationFrame(J),s.current.animation.buttonIndex=f;}else {s.current.animation.id&&s.current.animation.buttonIndex===f&&(cancelAnimationFrame(s.current.animation.id),s.current.animation.id=null,s.current.animation.buttonIndex=null);let P=M?S.hoverImg:S.normalImg,H=S.getCount?S.getCount(n):null;P.complete?v5(c,P,R,N,G,H,L.graph2D?.button?.textColor):P.onload=()=>{_.current&&v5(c,P,R,N,G,H,L.graph2D?.button?.textColor);};}}c.restore();},[q,L.graph2D?.button]),M5=useCallback(n=>{let c=t1();!c||c.length===0||(n.globalAlpha=1,c.forEach(l=>{let{x:p,y:g,color:b,fontColor:h,label:f}=l,w=s.current.highlightNodes.has(l)||l===s.current.hoveredNode||l===s.current.draggedNode,v=l===s.current.selectedNode,M=A.nodeSizeBase,G=A.nodeSizeBase/2;if(w&&!v){let Z=A.nodeSizeBase*A.nodeAreaFactor*.75/2;n.beginPath(),n.arc(p,g,Z,0,2*Math.PI,false),n.fillStyle=L.graph2D.ring.highlightFill,n.fill();}if(v)if(d&&d.length>0)L5(l,n);else {let Z=A.nodeSizeBase*A.nodeAreaFactor/2;n.beginPath(),n.arc(p,g,Z,0,2*Math.PI,false),n.fillStyle=L.graph2D.ring.selectionFill||L.graph2D.ring.highlightFill,n.fill();}if(n.beginPath(),n.arc(p,g,G,0,2*Math.PI),n.fillStyle=b||v2(l.group||"0"),n.fill(),f){n.save(),n.translate(p,g);let Z=s.current.transform.k,O=M2(Z),R=M*A.textPaddingFactor;n.font=`${O}px Sans-Serif`,n.textAlign="center",n.textBaseline="middle",n.fillStyle=h||"#000";let N=i6(f,R,n);n.fillText(N,0,0),n.restore();}}));},[L.graph2D.ring,d,L5]),J=useCallback(()=>{let n=_.current;n&&(n.clearRect(0,0,s.current.width,s.current.height),w5(n),n.save(),n.setTransform(s.current.transform.k,0,0,s.current.transform.k,s.current.transform.x,s.current.transform.y),y5(n),M5(n),n.restore());},[y5,M5,w5]),H5=useCallback((n,c=[],l)=>{let p=B1()||[],g=t1()||[];if(!E.current||!n.length)return;let{width:b,height:h}=s.current,f=l?.smoothAppearance??false,w=l?.transitionDuration??1e3,v=new Set(g.map(S=>S.id)),M=n.filter(S=>!v.has(S.id)),G=new Set(p.map(S=>`${typeof S.source=="object"?S.source.id:S.source}-${typeof S.target=="object"?S.target.id:S.target}`)),Z=c.filter(S=>{let P=`${typeof S.source=="object"?S.source.id:S.source}-${typeof S.target=="object"?S.target.id:S.target}`;return !G.has(P)});if(M.length===0&&Z.length===0)return;let O=[...g,...M],R=[...p,...Z];f&&(M.forEach(S=>{let P=Z.filter(H=>{let Y=typeof H.source=="object"?H.source.id:H.source,W=typeof H.target=="object"?H.target.id:H.target;return Y===S.id&&v.has(W)||W===S.id&&v.has(Y)});if(P.length>0){let H=P[0],Y=typeof H.source=="object"?H.source.id===S.id?H.target:H.source.id:H.source===S.id?H.target:H.source,W=O.find(X=>X.id===Y);if(W&&W.x!==void 0&&W.y!==void 0){let X=30+Math.random()*20,Q=Math.random()*Math.PI*2;S.x=W.x+Math.cos(Q)*X,S.y=W.y+Math.sin(Q)*X,S.vx=0,S.vy=0;}}else {let H=b/2,Y=h/2,W=Math.min(b,h)/4,X=Math.random()*Math.PI*2;S.x=H+Math.cos(X)*(W*Math.random()),S.y=Y+Math.sin(X)*(W*Math.random()),S.vx=0,S.vy=0;}}),g.forEach(S=>{S.fx=S.x,S.fy=S.y;})),E.current.nodes(O);let N=E.current.force("link");N&&N.links(R),Z.forEach(S=>{let P=typeof S.source=="object"?S.source:O.find(Y=>Y.id===S.source),H=typeof S.target=="object"?S.target:O.find(Y=>Y.id===S.target);!P||!H||(!P.neighbors&&(P.neighbors=[]),!H.neighbors&&(H.neighbors=[]),P.neighbors.push(H),H.neighbors.push(P),!P.links&&(P.links=[]),!H.links&&(H.links=[]),P.links.push(S),H.links.push(S));}),f?(E.current.alphaTarget(.3),E.current.alpha(.3),E.current.velocityDecay(.7),E.current.restart(),setTimeout(()=>{g.forEach(S=>{S.fx=void 0,S.fy=void 0;}),E.current?.alphaTarget(0),E.current?.alpha(.1),E.current?.velocityDecay(.6);},w)):E.current.alpha(.1).restart(),J();},[U,J]),V5=useCallback(n=>{let c=t1(),l=B1();if(!E.current||!n.length||!c||c.length===0||!l||l.length===0)return;let p=new Set(n);if(s.current.selectedNode&&s.current.selectedNode.id!==void 0&&p.has(s.current.selectedNode.id)&&(s.current.selectedNode=null),s.current.hoveredNode&&s.current.hoveredNode.id!==void 0&&p.has(s.current.hoveredNode.id)&&(s.current.hoveredNode=null,s.current.highlightNodes=new Set,s.current.highlightLinks=new Set),s.current.hoveredLink){let f=typeof s.current.hoveredLink.source=="object"?s.current.hoveredLink.source.id:s.current.hoveredLink.source,w=typeof s.current.hoveredLink.target=="object"?s.current.hoveredLink.target.id:s.current.hoveredLink.target;(f!==void 0&&p.has(f)||w!==void 0&&p.has(w))&&(s.current.hoveredLink=null,s.current.highlightNodes=new Set,s.current.highlightLinks=new Set);}s.current.draggedNode&&s.current.draggedNode.id!==void 0&&p.has(s.current.draggedNode.id)&&(s.current.draggedNode=null);let g=c.filter(f=>f.id!==void 0&&!p.has(f.id)),b=l.filter(f=>{let w=typeof f.source=="object"?f.source.id:f.source,v=typeof f.target=="object"?f.target.id:f.target;return w!==void 0&&!p.has(w)&&v!==void 0&&!p.has(v)});g.forEach(f=>{f.neighbors=[],f.links=[];}),b.forEach(f=>{let w=typeof f.source=="object"?f.source:g.find(M=>M.id===f.source),v=typeof f.target=="object"?f.target:g.find(M=>M.id===f.target);!w||!v||(w.neighbors=w.neighbors||[],v.neighbors=v.neighbors||[],w.neighbors.push(v),v.neighbors.push(w),w.links=w.links||[],v.links=v.links||[],w.links.push(f),v.links.push(f));}),E.current.nodes(g);let h=E.current.force("link");h&&h.links(b),J();},[J]),T1=useCallback((n=0,c=20)=>{let l=t1();if(!_.current||!D.current||!l||!l.length)return;let g=1/0,b=1/0,h=-1/0,f=-1/0;if(l.forEach(w=>{if(w.x===void 0||w.y===void 0)return;let v=w.x,M=w.y;g=Math.min(g,v),b=Math.min(b,M),h=Math.max(h,v),f=Math.max(f,M);}),isFinite(g)&&isFinite(h)&&isFinite(b)&&isFinite(f)){let{width:w,height:v}=s.current;g-=c,b-=c,h+=c,f+=c;let M=h-g,G=f-b,Z=M>0?w/M:1,O=G>0?v/G:1,R=Math.min(Z,O,10),N=g+M/2,S=b+G/2,P={k:R,x:w/2-N*R,y:v/2-S*R};if(n>0){let H={...s.current.transform},Y=Date.now(),W=r(()=>{let X=Math.min(1,(Date.now()-Y)/n),Q=X===1?1:1-Math.pow(1-X,3),s1={k:H.k+(P.k-H.k)*Q,x:H.x+(P.x-H.x)*Q,y:H.y+(P.y-H.y)*Q};s.current.transform=s1,J(),X<1&&requestAnimationFrame(W);},"animateZoom");requestAnimationFrame(W);}else s.current.transform=P,J();}},[]),G1=useCallback((n,c)=>{let l=t1();if(!l||l.length===0)return null;let p=A.nodeSizeBase/2,g=window.devicePixelRatio||1,b=(n*g-s.current.transform.x)/s.current.transform.k,h=(c*g-s.current.transform.y)/s.current.transform.k;return l.find(f=>{let w=(f.x||0)-b,v=(f.y||0)-h;return Math.sqrt(w*w+v*v)<=p})||null},[]),z1=useCallback((n,c)=>{let l=B1(),p=t1();if(!l||l.length===0||!p||p.length===0)return null;let g=window.devicePixelRatio||1,b=(n*g-s.current.transform.x)/s.current.transform.k,h=(c*g-s.current.transform.y)/s.current.transform.k,f=5;return l.find(w=>{let v=typeof w.source=="object"?w.source:p.find(C1=>C1.id===w.source),M=typeof w.target=="object"?w.target:p.find(C1=>C1.id===w.target);if(!v||!M)return false;let G=v.x||0,Z=v.y||0,O=M.x||0,R=M.y||0,N=b-G,S=h-Z,P=O-G,H=R-Z,Y=N*P+S*H,W=P*P+H*H;if(W===0)return false;let X=Y/W;X=Math.max(0,Math.min(1,X));let Q=G+X*P,s1=Z+X*H,d1=b-Q,y1=h-s1;return Math.sqrt(d1*d1+y1*y1)<=f})||null},[]),F5=useCallback((n,c,l,p,g,b,h)=>{let f=n-l,w=c-p,v=Math.sqrt(f*f+w*w),M=Math.atan2(w,f);M<0&&(M+=2*Math.PI);let O=v>=g*.5&&v<=g*1,R=false;return b===Math.PI&&h===Math.PI*2?R=M>=Math.PI&&M<=Math.PI*2:b===0&&h===Math.PI?R=M>=0&&M<=Math.PI:R=b<=h&&M>=b&&M<=h||b>h&&(M>=b||M<=h),O&&R},[]),H2=useCallback(n=>{if(n===s.current.hoveredNode)return;let c=new Set,l=new Set;n&&(c.add(n),n.neighbors&&n.neighbors.forEach(p=>c.add(p)),n.links&&n.links.forEach(p=>l.add(p))),s.current.hoveredNode=n,x&&x(n),s.current.highlightNodes=c,s.current.highlightLinks=l;},[x]),V2=useCallback(n=>{if(n===s.current.hoveredLink)return;let c=new Set,l=new Set;if(n){l.add(n);let p=t1();if(p){let g=typeof n.source=="object"?n.source:p.find(h=>h.id===n.source),b=typeof n.target=="object"?n.target:p.find(h=>h.id===n.target);g&&c.add(g),b&&c.add(b);}}s.current.hoveredLink=n,m&&m(n),s.current.highlightNodes=c,s.current.highlightLinks=l;},[m,t1]),P5=useCallback(n=>{y&&y(n);},[y]),k5=useCallback(n=>{s.current.selectedNode=n,C&&C(n);},[C]),I5=useCallback(()=>{s.current.selectedNode=null,u&&u();},[u]),F2=useCallback(n=>{if(!D.current||!E.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top;s.current.mouseStartPos={x:l,y:p},s.current.isDragging=false;let g=G1(l,p);g?(s.current.draggedNode=g,g.fx=g.x,g.fy=g.y):(s.current.isPanning=true,s.current.lastMousePos={x:l,y:p});},[G1]),R1=useCallback((n,c)=>{let l=null;if(D.current&&s.current&&q.length>0){let p=A.nodeSizeBase*A.nodeAreaFactor/2,g=D.current.getBoundingClientRect(),b=D.current.width/g.width,h=D.current.height/g.height,f=n*b,w=c*h,v=(f-s.current.transform.x)/s.current.transform.k,M=(w-s.current.transform.y)/s.current.transform.k,G=s.current.selectedNode?.x||0,Z=s.current.selectedNode?.y||0,O=Math.min(q.length,8),R=Math.min(Math.PI*2/O,Math.PI);for(let N=0;N<O;N++){let S=N*R,P=(N+1)*R;if(F5(v,M,G,Z,p,S,P)){l=N;break}}}return l},[q]),P2=useCallback(n=>{if(!D.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top;if(s.current.draggedNode&&s.current.mouseStartPos&&E.current){let h=s.current.mouseStartPos.x,f=s.current.mouseStartPos.y,w=l-h,v=p-f;Math.sqrt(w*w+v*v)>3&&(s.current.isDragging=true,E.current.alphaTarget()===0&&E.current.alphaTarget(0).restart());let Z=window.devicePixelRatio||1,O=(l*Z-s.current.transform.x)/s.current.transform.k,R=(p*Z-s.current.transform.y)/s.current.transform.k;s.current.draggedNode.fx=O,s.current.draggedNode.fy=R;return}if(s.current.isPanning&&s.current.mouseStartPos){let h=l-s.current.lastMousePos.x,f=p-s.current.lastMousePos.y,w=s.current.mouseStartPos.x,v=s.current.mouseStartPos.y;Math.sqrt(Math.pow(l-w,2)+Math.pow(p-v,2))>3&&(s.current.isDragging=true),s.current.transform={...s.current.transform,x:s.current.transform.x+h,y:s.current.transform.y+f},s.current.lastMousePos={x:l,y:p},J();return}let g,b;if(s.current.selectedNode&&D.current&&q.length>0){let h=R1(l,p);h!==null&&(b=s.current.selectedNode),h!==s.current.hoveredButtonIndex&&(g=true),s.current.hoveredButtonIndex=h;}else s.current.hoveredButtonIndex!==null&&(s.current.hoveredButtonIndex=null);if(!b&&(b=G1(l,p),!b)){let h=z1(l,p),f=h!==s.current.hoveredLink;if(h&&s.current.hoveredNode&&H2(null),V2(h),D.current&&(D.current.style.cursor=h?"pointer":"default"),f){J();return}}b&&s.current.hoveredLink&&V2(null),b!==s.current.hoveredNode&&(g=true),H2(b),D.current&&(D.current.style.cursor=b?"pointer":"default"),g&&J();},[q,G1,z1,H2,V2,J,F5,R1]),s6=useCallback(n=>{s.current.mustBeStoppedPropagation&&(n.stopPropagation(),n.preventDefault()),s.current.mustBeStoppedPropagation=false;},[]),A1=useCallback(n=>{let c=s.current.isDragging;if(c&&(s.current.mustBeStoppedPropagation=true),!c&&s.current.mouseStartPos){let l=D.current?.getBoundingClientRect();if(l){let p=n.clientX-l.left,g=n.clientY-l.top;q.length>0&&s.current.hoveredButtonIndex===null&&(s.current.hoveredButtonIndex=R1(p,g));let b=false;if(s.current.selectedNode&&s.current.hoveredButtonIndex!==null&&d[s.current.hoveredButtonIndex]){let h=d[s.current.hoveredButtonIndex];h&&h.onClick&&(h.onClick(s.current.selectedNode),b=true,s.current.hoveredButtonIndex=null);}if(!b&&s.current.draggedNode)k5(s.current.draggedNode);else if(!b&&!s.current.draggedNode){let h=z1(p,g);h?P5(h):I5();}}}if(s.current.draggedNode&&E.current){if(c){E.current.alphaTarget(0);let l=.05,p=.04,g=.6;E.current.alpha(l).alphaDecay(p),E.current.velocityDecay(g);}else E.current.alphaTarget(0);s.current.draggedNode.fx=void 0,s.current.draggedNode.fy=void 0,s.current.draggedNode=null;}s.current.isDragging=false,s.current.mouseStartPos=null,s.current.isPanning&&(s.current.isPanning=false),J();},[d,J,k5,I5,z1,P5,R1,q]),k2=useCallback(n=>{if(n.stopPropagation(),n.preventDefault(),!D.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top,b=-n.deltaY>0?1.1:1/1.1,h=s.current.transform,f=h.k*b;if(f<.01||f>10)return;let w=h.k*b,v=l-(l-h.x)*b,M=p-(p-h.y)*b;s.current.transform={k:w,x:v,y:M},J();},[J]),I2=r((n,c)=>{let l=n.touches[0];if(l){let p={clientX:l.clientX,clientY:l.clientY};c(p);}},"convertTouchToMouseEvent"),d6=useCallback(n=>{I2(n,F2);},[F2]),$2=useCallback(n=>{s.current.mustBeStoppedPropagation&&(n.preventDefault(),n.stopPropagation()),s.current.mustBeStoppedPropagation=false,I2(n,A1);},[A1]),C6=useCallback(n=>{I2(n,P2);},[P2]);return useImperativeHandle(k,()=>({zoomToFit:T1,addNodes:H5,removeNodes:V5}),[T1,H5,V5]),useEffect(()=>{let n=D.current,{width:c,height:l}=s.current;if(!n)return;L2(),K(true);let p=c/2,g=l/2,b=A.nodeSizeBase,h=b/2,f=b*2.5;E.current&&E.current.stop();let w=E.current=forceSimulation(U).force("link",forceLink(j).id(v=>v.id).distance(f).strength(.9)).force("charge",forceManyBody().strength(-b/10*200).theta(.5).distanceMin(b*2)).force("x",forceX().strength(.03)).force("y",forceY().strength(.03)).force("center",forceCenter(p,g).strength(.05)).force("collide",forceCollide().radius(h*2).iterations(2).strength(1)).velocityDecay(.6);return ()=>{w.stop();}},[U,j]),useLayoutEffect(()=>{let n=D.current;n&&(s.current.width=o*y2,s.current.height=t*y2,n.width=s.current.width,n.height=s.current.height);},[o,t]),useEffect(()=>{if(E.current){let n=E.current;n.on("tick",()=>{J();}),n.on("end",()=>{I&&(T1(0,20),setTimeout(()=>{K(false);},200));});}I||J();},[U,j,I,J,T1]),useEffect(()=>{!U||!j||j.forEach(n=>{let c=typeof n.source=="object"?n.source:U.find(p=>p.id===n.source),l=typeof n.target=="object"?n.target:U.find(p=>p.id===n.target);!c||!l||(!c.neighbors&&(c.neighbors=[]),!l.neighbors&&(l.neighbors=[]),c.neighbors.push(l),l.neighbors.push(c),!c.links&&(c.links=[]),!l.links&&(l.links=[]),c.links.push(n),l.links.push(n));});},[U,j]),useEffect(()=>{d&&d.length>0&&e1(P9(d));},[d]),useEffect(()=>{let n=D.current;if(n)return n.addEventListener("wheel",k2,{passive:false}),n.addEventListener("touchend",$2,{passive:false}),()=>{n.removeEventListener("wheel",k2),n.removeEventListener("touchend",$2);}},[k2,$2]),jsxs(I9,{children:[(e||I)&&jsx(t6,{width:o,height:t}),jsx($9,{ref:D,style:{width:o,height:t,display:e||I?"none":"block"},onMouseDown:F2,onMouseMove:P2,onMouseUp:A1,onMouseLeave:A1,onClick:s6,onTouchStart:d6,onTouchMove:C6})]})}),I9=styled.div`
1199
+ `,p9=r(({width:e=280,height:o=280})=>{let t=useTheme();return jsx(c9,{children:jsxs(Y8,{foregroundColor:t.contentLoader.foreground,backgroundColor:t.contentLoader.background,width:e,height:o,viewBox:"0 0 280 280",children:[jsx("path",{d:"m55 38-0.97266 0.22852 7.0801 30.092-18.355-20.979-0.75195 0.6582 19.596 22.395 0.43164 1.834 0.97266-0.22852 0.75195-0.6582-0.37695-0.42969 9.625-27.912-0.94531-0.32617-9.4375 27.371-0.10547-0.12109zm8 34-0.78516 0.61914 0.0957 0.12305-12.311 13.258 0.73242 0.67969 12.205-13.145 14.277 18.084 0.78516-0.61914-14.373-18.207 0.10547-0.11328zm15 19-0.48438 0.875 46.992 25.996 8e-3 4e-3 20.506 11.592-28.182 4.5449 0.15998 0.98819 29.418-4.7441 0.25 0.14062-12.555 24.143 0.88672 0.46094 13-25 15 25 26 30v18l-11 18 0.85352 0.52148 9.8008-16.039-4.6543 33.518 0.99023 0.13867 4.7793-34.408 7.2305 16.27 0.91406-0.40625-7.9141-17.807v-17.104l18 12.316 0.56445-0.82617-18.896-12.928-25.855-29.836-14.633-24.387 0.01562-0.02344h23.805v-1h-23.152l13.848-21.234 55.201-28.791-0.45898-0.88476 0.77734 0.62305 11.402-14.25 16.668-11.842-0.58008-0.81641-16.785 11.928-11.486 14.355-55.434 28.912-14.277 21.893-7.7617-27.166-0.96094 0.27344 7.7227 27.031-1.1191 0.17969-21.604-12.211zm140.43-12.912-6.957-17.338-0.92773 0.37305 6.957 17.338zm-6.957-17.338 0.72266 0.69336 16.232-16.896-0.7207-0.69336zm-3.4766 137.25 5 15 0.94922-0.31641-5-15zm-91-63-0.48047-0.87695-31 17 0.48047 0.87695zm-31 17 5 18 0.96289-0.26758-5-18zm0 0-0.70703-0.70703-12.898 12.898-17.881 9.9336 0.48633 0.875 18-10zm5 18-0.64062-0.76758-18 15 0.64062 0.76758z"}),jsx("circle",{cx:"229.92",cy:"63.7318",r:"5",transform:"rotate(173.661 229.92 63.7318)"}),jsx("circle",{cx:"227.711",cy:"43.8541",r:"5",transform:"rotate(173.661 227.711 43.8541)"}),jsx("circle",{cx:"211.478",cy:"60.7499",r:"5",transform:"rotate(173.661 211.478 60.7499)"}),jsx("circle",{cx:"218.434",cy:"78.0877",r:"5",transform:"rotate(173.661 218.434 78.0877)"}),jsx("circle",{cx:"246.705",cy:"51.8054",r:"5",transform:"rotate(173.661 246.705 51.8054)"}),jsx("circle",{cx:"42",cy:"48",r:"5"}),jsx("circle",{cx:"55",cy:"38",r:"5"}),jsx("circle",{cx:"73",cy:"43",r:"5"}),jsx("circle",{cx:"63",cy:"72",r:"5"}),jsx("circle",{cx:"50",cy:"86",r:"5"}),jsx("circle",{cx:"78",cy:"91",r:"5"}),jsx("circle",{cx:"73",cy:"165",r:"5"}),jsx("circle",{cx:"73",cy:"185",r:"5"}),jsx("circle",{cx:"91",cy:"170",r:"5"}),jsx("circle",{cx:"86",cy:"152",r:"5"}),jsx("circle",{cx:"148",cy:"130",r:"5"}),jsx("circle",{cx:"189",cy:"185",r:"5"}),jsx("circle",{cx:"163",cy:"107",r:"5"}),jsx("circle",{cx:"140",cy:"102",r:"5"}),jsx("circle",{cx:"117",cy:"135",r:"5"}),jsx("circle",{cx:"125",cy:"117",r:"5"}),jsx("circle",{cx:"208",cy:"198",r:"5"}),jsx("circle",{cx:"189",cy:"203",r:"5"}),jsx("circle",{cx:"198",cy:"221",r:"5"}),jsx("circle",{cx:"178",cy:"221",r:"5"}),jsx("circle",{cx:"184",cy:"239",r:"5"}),jsx("circle",{cx:"213",cy:"213",r:"5"}),jsx("circle",{cx:"173",cy:"130",r:"5"}),jsx("circle",{cx:"163",cy:"155",r:"5"}),jsx("circle",{cx:"135",cy:"155",r:"5"}),jsx("circle",{cx:"55",cy:"175",r:"5"})]})})},"GraphLoader"),t6=p9;var y2=typeof window<"u"&&window.devicePixelRatio||1;function P9(e){return !e||e.length===0?[]:e.map(o=>{let t=new Image;t.src=o.img;let i=new Image;return i.src=o.hoverImg,{...o,normalImg:t,hoverImg:i}})}r(P9,"prepareButtonImages");var A={fontSize:3,nodeSizeBase:30,nodeAreaFactor:2,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},k9=forwardRef(({loading:e,width:o,height:t,graphData:i,buttons:d=[],onNodeClick:C,onBackgroundClick:u,onNodeHover:x,onLinkHover:m,onLinkClick:y},k)=>{let L=useTheme(),[I,K]=useState(true),s=useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNode:null,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:o*y2,height:t*y2,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:U,links:j}=useMemo(()=>m9(i),[i]),[q,e1]=useState([]),D=useRef(null),E=useRef(null),_=useRef(null),v2=scaleOrdinal(schemeCategory10),L2=useCallback(()=>{if(!D.current)return false;try{let n=D.current.getContext("2d");return n?(_.current=n,!0):(console.error("Failed to get 2D context"),!1)}catch(n){return console.error("Error initializing Canvas 2D context:",n),false}},[]),t1=useCallback(()=>E.current?E.current.nodes():null,[]),B1=useCallback(()=>{if(!E.current)return null;let n=E.current.force("link");return n?n.links():null},[]),w5=useCallback(n=>{n.save(),n.setTransform(1,0,0,1,0,0);let{width:c,height:l}=s.current,p=A.gridSpacing,g=A.dotSize;n.fillStyle=L.graph2D.grid.dotColor;for(let b=p/2;b<=c;b+=p)for(let h=p/2;h<=l;h+=p)n.beginPath(),n.arc(b,h,g,0,2*Math.PI),n.fill();n.restore();},[L.graph2D.grid.dotColor,A.gridSpacing,A.dotSize]),i6=useCallback((n,c,l)=>{if(!n)return "";if(l.measureText(n).width<=c)return n;let g=n,b="...";for(;l.measureText(g+b).width>c&&g.length>0;)g=g.slice(0,-1);return g+b},[]),M2=r(n=>{let l=Math.min(n,A.maxZoom)/A.maxZoom;return Math.max(A.fontSize*l,A.fontSize)},"calculateFontSize"),y5=useCallback(n=>{let c=B1(),l=t1();!c||c.length===0||!l||l.length===0||(n.lineWidth=.5,n.globalAlpha=1,c.forEach(p=>{let g=typeof p.source=="object"?p.source:l.find(a1=>a1.id===p.source),b=typeof p.target=="object"?p.target:l.find(a1=>a1.id===p.target);if(!g||!b)return;let h={x:g.x||0,y:g.y||0},f={x:b.x||0,y:b.y||0},w=f.x-h.x,v=f.y-h.y,M=Math.sqrt(w*w+v*v),G=w/M,Z=v/M,O=A.nodeSizeBase/2,R=A.nodeSizeBase/2,N=4,S={x:h.x+G*O,y:h.y+Z*O},P={x:f.x-G*(R+N),y:f.y-Z*(R+N)},H={x:f.x-G*(R+1),y:f.y-Z*(R+1)},Y=s.current.highlightLinks.has(p),W=Y?L.graph2D.link.highlighted:L.graph2D.link.normal,X=Y?1.5:.5,Q=h.x+(f.x-h.x)/2,s1=h.y+(f.y-h.y)/2,d1=Math.atan2(v,w);if(p.label){let a1=s.current.transform.k,C1=M2(a1);n.font=`${C1}px Sans-Serif`;let $5=n.measureText(p.label).width,E5=10;n.beginPath(),n.moveTo(S.x,S.y);let Z5=M/2-($5+E5)/2,B5={x:h.x+G*Z5,y:h.y+Z*Z5};n.lineTo(B5.x,B5.y),n.strokeStyle=W,n.lineWidth=X,n.stroke(),n.beginPath();let T5=M/2+($5+E5)/2,G5={x:h.x+G*T5,y:h.y+Z*T5};n.moveTo(G5.x,G5.y),n.lineTo(P.x,P.y),n.strokeStyle=W,n.lineWidth=X,n.stroke();}else n.beginPath(),n.moveTo(S.x,S.y),n.lineTo(P.x,P.y),n.strokeStyle=W,n.lineWidth=X,n.stroke();let y1=2;if(n.save(),n.translate(H.x,H.y),n.rotate(d1),n.beginPath(),n.moveTo(0,0),n.lineTo(-4,y1),n.lineTo(-4,0),n.lineTo(-4,-2),n.closePath(),n.fillStyle=W,n.fill(),n.restore(),p.label){let a1=s.current.transform.k,C1=M2(a1);n.font=`${C1}px Sans-Serif`,n.textAlign="center",n.textBaseline="middle",n.save(),n.translate(Q,s1),Math.abs(d1)>Math.PI/2?n.rotate(d1+Math.PI):n.rotate(d1),n.fillStyle=Y?L.graph2D.link.highlightedTextColor:L.graph2D.link.textColor,n.fillText(p.label,0,0),n.restore();}}));},[A,L.graph2D.link]),v5=r((n,c,l,p,g,b,h)=>{try{if(b!=null){let f=g*.8;n.font=`${f}px sans-serif`,n.textBaseline="middle",n.textAlign="left";let w=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(b),v=n.measureText(w).width,M=g*.3,Z=(g+M+v)/2;n.drawImage(c,l-Z,p-g/2,g,g),n.fillStyle=h||"#99989C",n.fillText(w,l-Z+g+M,p);}else n.drawImage(c,l-g/2,p-g/2,g,g);}catch(f){console.warn("Error rendering icon:",f);}},"drawIconWithOptionalCounter"),L5=useCallback((n,c)=>{if(!q||q.length===0||!n||!n.x||!n.y)return;let{x:l,y:p}=n,g=A.nodeSizeBase*A.nodeAreaFactor/2;c.save();let b=Math.min(q.length,8),h=Math.min(Math.PI*2/b,Math.PI);for(let f=0;f<b;f++){let w=f*h,v=(f+1)*h,M=s.current.hoveredButtonIndex===f;c.beginPath(),c.arc(l,p,g,w,v,false),c.lineTo(l,p),c.closePath(),c.lineWidth=1,c.strokeStyle=L.graph2D?.button?.stroke||"#FFFFFF",c.stroke(),c.fillStyle=M?L.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":L.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",c.fill();let G=g*.2,Z=(w+v)/2,O=g-A.nodeSizeBase/2+G,R=l+Math.cos(Z)*O,N=p+Math.sin(Z)*O,S=q[f];if(S.loading){let P=G/2,H=G/12;c.save(),c.translate(R,N),c.rotate(s.current.spinnerAngle);for(let Y=0;Y<12;Y++){let W=Math.PI*2*Y/12,X=Y/12,Q=Math.cos(W)*P,s1=Math.sin(W)*P;c.beginPath(),c.fillStyle=p1(L.graph2D?.button?.spinnerColor,X),c.arc(Q,s1,H,0,Math.PI*2),c.fill();}c.restore(),s.current.spinnerAngle+=.1,s.current.spinnerAngle>Math.PI*2&&(s.current.spinnerAngle-=Math.PI*2),s.current.animation.id!==null&&(cancelAnimationFrame(s.current.animation.id),s.current.animation.id=null,s.current.animation.buttonIndex=null),s.current.animation.id=requestAnimationFrame(J),s.current.animation.buttonIndex=f;}else {s.current.animation.id&&s.current.animation.buttonIndex===f&&(cancelAnimationFrame(s.current.animation.id),s.current.animation.id=null,s.current.animation.buttonIndex=null);let P=M?S.hoverImg:S.normalImg,H=S.getCount?S.getCount(n):null;P.complete?v5(c,P,R,N,G,H,L.graph2D?.button?.textColor):P.onload=()=>{_.current&&v5(c,P,R,N,G,H,L.graph2D?.button?.textColor);};}}c.restore();},[q,L.graph2D?.button]),M5=useCallback(n=>{let c=t1();!c||c.length===0||(n.globalAlpha=1,c.forEach(l=>{let{x:p,y:g,color:b,fontColor:h,label:f}=l,w=s.current.highlightNodes.has(l)||l===s.current.hoveredNode||l===s.current.draggedNode,v=l===s.current.selectedNode,M=A.nodeSizeBase,G=A.nodeSizeBase/2;if(w&&!v){let Z=A.nodeSizeBase*A.nodeAreaFactor*.75/2;n.beginPath(),n.arc(p,g,Z,0,2*Math.PI,false),n.fillStyle=L.graph2D.ring.highlightFill,n.fill();}if(v)if(d&&d.length>0)L5(l,n);else {let Z=A.nodeSizeBase*A.nodeAreaFactor/2;n.beginPath(),n.arc(p,g,Z,0,2*Math.PI,false),n.fillStyle=L.graph2D.ring.selectionFill||L.graph2D.ring.highlightFill,n.fill();}if(n.beginPath(),n.arc(p,g,G,0,2*Math.PI),n.fillStyle=b||v2(l.group||"0"),n.fill(),f){n.save(),n.translate(p,g);let Z=s.current.transform.k,O=M2(Z),R=M*A.textPaddingFactor;n.font=`${O}px Sans-Serif`,n.textAlign="center",n.textBaseline="middle",n.fillStyle=h||"#000";let N=i6(f,R,n);n.fillText(N,0,0),n.restore();}}));},[L.graph2D.ring,d,L5]),J=useCallback(()=>{let n=_.current;n&&(n.clearRect(0,0,s.current.width,s.current.height),w5(n),n.save(),n.setTransform(s.current.transform.k,0,0,s.current.transform.k,s.current.transform.x,s.current.transform.y),y5(n),M5(n),n.restore());},[y5,M5,w5]),H5=useCallback((n,c=[],l)=>{let p=B1()||[],g=t1()||[];if(!E.current||!n.length)return;let{width:b,height:h}=s.current,f=l?.smoothAppearance??false,w=l?.transitionDuration??1e3,v=new Set(g.map(S=>S.id)),M=n.filter(S=>!v.has(S.id)),G=new Set(p.map(S=>`${typeof S.source=="object"?S.source.id:S.source}-${typeof S.target=="object"?S.target.id:S.target}`)),Z=c.filter(S=>{let P=`${typeof S.source=="object"?S.source.id:S.source}-${typeof S.target=="object"?S.target.id:S.target}`;return !G.has(P)});if(M.length===0&&Z.length===0)return;let O=[...g,...M],R=[...p,...Z];f&&(M.forEach(S=>{let P=Z.filter(H=>{let Y=typeof H.source=="object"?H.source.id:H.source,W=typeof H.target=="object"?H.target.id:H.target;return Y===S.id&&v.has(W)||W===S.id&&v.has(Y)});if(P.length>0){let H=P[0],Y=typeof H.source=="object"?H.source.id===S.id?H.target:H.source.id:H.source===S.id?H.target:H.source,W=O.find(X=>X.id===Y);if(W&&W.x!==void 0&&W.y!==void 0){let X=30+Math.random()*20,Q=Math.random()*Math.PI*2;S.x=W.x+Math.cos(Q)*X,S.y=W.y+Math.sin(Q)*X,S.vx=0,S.vy=0;}}else {let H=b/2,Y=h/2,W=Math.min(b,h)/4,X=Math.random()*Math.PI*2;S.x=H+Math.cos(X)*(W*Math.random()),S.y=Y+Math.sin(X)*(W*Math.random()),S.vx=0,S.vy=0;}}),g.forEach(S=>{S.fx=S.x,S.fy=S.y;})),E.current.nodes(O);let N=E.current.force("link");N&&N.links(R),Z.forEach(S=>{let P=typeof S.source=="object"?S.source:O.find(Y=>Y.id===S.source),H=typeof S.target=="object"?S.target:O.find(Y=>Y.id===S.target);!P||!H||(!P.neighbors&&(P.neighbors=[]),!H.neighbors&&(H.neighbors=[]),P.neighbors.push(H),H.neighbors.push(P),!P.links&&(P.links=[]),!H.links&&(H.links=[]),P.links.push(S),H.links.push(S));}),f?(E.current.alphaTarget(.3),E.current.alpha(.3),E.current.velocityDecay(.7),E.current.restart(),setTimeout(()=>{g.forEach(S=>{S.fx=void 0,S.fy=void 0;}),E.current?.alphaTarget(0),E.current?.alpha(.1),E.current?.velocityDecay(.6);},w)):E.current.alpha(.1).restart(),J();},[U,J]),V5=useCallback(n=>{let c=t1(),l=B1();if(!E.current||!n.length||!c||c.length===0||!l||l.length===0)return;let p=new Set(n);if(s.current.selectedNode&&s.current.selectedNode.id!==void 0&&p.has(s.current.selectedNode.id)&&(s.current.selectedNode=null),s.current.hoveredNode&&s.current.hoveredNode.id!==void 0&&p.has(s.current.hoveredNode.id)&&(s.current.hoveredNode=null,s.current.highlightNodes=new Set,s.current.highlightLinks=new Set),s.current.hoveredLink){let f=typeof s.current.hoveredLink.source=="object"?s.current.hoveredLink.source.id:s.current.hoveredLink.source,w=typeof s.current.hoveredLink.target=="object"?s.current.hoveredLink.target.id:s.current.hoveredLink.target;(f!==void 0&&p.has(f)||w!==void 0&&p.has(w))&&(s.current.hoveredLink=null,s.current.highlightNodes=new Set,s.current.highlightLinks=new Set);}s.current.draggedNode&&s.current.draggedNode.id!==void 0&&p.has(s.current.draggedNode.id)&&(s.current.draggedNode=null);let g=c.filter(f=>f.id!==void 0&&!p.has(f.id)),b=l.filter(f=>{let w=typeof f.source=="object"?f.source.id:f.source,v=typeof f.target=="object"?f.target.id:f.target;return w!==void 0&&!p.has(w)&&v!==void 0&&!p.has(v)});g.forEach(f=>{f.neighbors=[],f.links=[];}),b.forEach(f=>{let w=typeof f.source=="object"?f.source:g.find(M=>M.id===f.source),v=typeof f.target=="object"?f.target:g.find(M=>M.id===f.target);!w||!v||(w.neighbors=w.neighbors||[],v.neighbors=v.neighbors||[],w.neighbors.push(v),v.neighbors.push(w),w.links=w.links||[],v.links=v.links||[],w.links.push(f),v.links.push(f));}),E.current.nodes(g);let h=E.current.force("link");h&&h.links(b),J();},[J]),T1=useCallback((n=0,c=20)=>{let l=t1();if(!_.current||!D.current||!l||!l.length)return;let g=1/0,b=1/0,h=-1/0,f=-1/0;if(l.forEach(w=>{if(w.x===void 0||w.y===void 0)return;let v=w.x,M=w.y;g=Math.min(g,v),b=Math.min(b,M),h=Math.max(h,v),f=Math.max(f,M);}),isFinite(g)&&isFinite(h)&&isFinite(b)&&isFinite(f)){let{width:w,height:v}=s.current;g-=c,b-=c,h+=c,f+=c;let M=h-g,G=f-b,Z=M>0?w/M:1,O=G>0?v/G:1,R=Math.min(Z,O,10),N=g+M/2,S=b+G/2,P={k:R,x:w/2-N*R,y:v/2-S*R};if(n>0){let H={...s.current.transform},Y=Date.now(),W=r(()=>{let X=Math.min(1,(Date.now()-Y)/n),Q=X===1?1:1-Math.pow(1-X,3),s1={k:H.k+(P.k-H.k)*Q,x:H.x+(P.x-H.x)*Q,y:H.y+(P.y-H.y)*Q};s.current.transform=s1,J(),X<1&&requestAnimationFrame(W);},"animateZoom");requestAnimationFrame(W);}else s.current.transform=P,J();}},[]),G1=useCallback((n,c)=>{let l=t1();if(!l||l.length===0)return null;let p=A.nodeSizeBase/2,g=typeof window<"u"&&window.devicePixelRatio||1,b=(n*g-s.current.transform.x)/s.current.transform.k,h=(c*g-s.current.transform.y)/s.current.transform.k;return l.find(f=>{let w=(f.x||0)-b,v=(f.y||0)-h;return Math.sqrt(w*w+v*v)<=p})||null},[]),z1=useCallback((n,c)=>{let l=B1(),p=t1();if(!l||l.length===0||!p||p.length===0)return null;let g=typeof window<"u"&&window.devicePixelRatio||1,b=(n*g-s.current.transform.x)/s.current.transform.k,h=(c*g-s.current.transform.y)/s.current.transform.k,f=5;return l.find(w=>{let v=typeof w.source=="object"?w.source:p.find(C1=>C1.id===w.source),M=typeof w.target=="object"?w.target:p.find(C1=>C1.id===w.target);if(!v||!M)return false;let G=v.x||0,Z=v.y||0,O=M.x||0,R=M.y||0,N=b-G,S=h-Z,P=O-G,H=R-Z,Y=N*P+S*H,W=P*P+H*H;if(W===0)return false;let X=Y/W;X=Math.max(0,Math.min(1,X));let Q=G+X*P,s1=Z+X*H,d1=b-Q,y1=h-s1;return Math.sqrt(d1*d1+y1*y1)<=f})||null},[]),F5=useCallback((n,c,l,p,g,b,h)=>{let f=n-l,w=c-p,v=Math.sqrt(f*f+w*w),M=Math.atan2(w,f);M<0&&(M+=2*Math.PI);let O=v>=g*.5&&v<=g*1,R=false;return b===Math.PI&&h===Math.PI*2?R=M>=Math.PI&&M<=Math.PI*2:b===0&&h===Math.PI?R=M>=0&&M<=Math.PI:R=b<=h&&M>=b&&M<=h||b>h&&(M>=b||M<=h),O&&R},[]),H2=useCallback(n=>{if(n===s.current.hoveredNode)return;let c=new Set,l=new Set;n&&(c.add(n),n.neighbors&&n.neighbors.forEach(p=>c.add(p)),n.links&&n.links.forEach(p=>l.add(p))),s.current.hoveredNode=n,x&&x(n),s.current.highlightNodes=c,s.current.highlightLinks=l;},[x]),V2=useCallback(n=>{if(n===s.current.hoveredLink)return;let c=new Set,l=new Set;if(n){l.add(n);let p=t1();if(p){let g=typeof n.source=="object"?n.source:p.find(h=>h.id===n.source),b=typeof n.target=="object"?n.target:p.find(h=>h.id===n.target);g&&c.add(g),b&&c.add(b);}}s.current.hoveredLink=n,m&&m(n),s.current.highlightNodes=c,s.current.highlightLinks=l;},[m,t1]),P5=useCallback(n=>{y&&y(n);},[y]),k5=useCallback(n=>{s.current.selectedNode=n,C&&C(n);},[C]),I5=useCallback(()=>{s.current.selectedNode=null,u&&u();},[u]),F2=useCallback(n=>{if(!D.current||!E.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top;s.current.mouseStartPos={x:l,y:p},s.current.isDragging=false;let g=G1(l,p);g?(s.current.draggedNode=g,g.fx=g.x,g.fy=g.y):(s.current.isPanning=true,s.current.lastMousePos={x:l,y:p});},[G1]),R1=useCallback((n,c)=>{let l=null;if(D.current&&s.current&&q.length>0){let p=A.nodeSizeBase*A.nodeAreaFactor/2,g=D.current.getBoundingClientRect(),b=D.current.width/g.width,h=D.current.height/g.height,f=n*b,w=c*h,v=(f-s.current.transform.x)/s.current.transform.k,M=(w-s.current.transform.y)/s.current.transform.k,G=s.current.selectedNode?.x||0,Z=s.current.selectedNode?.y||0,O=Math.min(q.length,8),R=Math.min(Math.PI*2/O,Math.PI);for(let N=0;N<O;N++){let S=N*R,P=(N+1)*R;if(F5(v,M,G,Z,p,S,P)){l=N;break}}}return l},[q]),P2=useCallback(n=>{if(!D.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top;if(s.current.draggedNode&&s.current.mouseStartPos&&E.current){let h=s.current.mouseStartPos.x,f=s.current.mouseStartPos.y,w=l-h,v=p-f;Math.sqrt(w*w+v*v)>3&&(s.current.isDragging=true,E.current.alphaTarget()===0&&E.current.alphaTarget(0).restart());let Z=typeof window<"u"&&window.devicePixelRatio||1,O=(l*Z-s.current.transform.x)/s.current.transform.k,R=(p*Z-s.current.transform.y)/s.current.transform.k;s.current.draggedNode.fx=O,s.current.draggedNode.fy=R;return}if(s.current.isPanning&&s.current.mouseStartPos){let h=l-s.current.lastMousePos.x,f=p-s.current.lastMousePos.y,w=s.current.mouseStartPos.x,v=s.current.mouseStartPos.y;Math.sqrt(Math.pow(l-w,2)+Math.pow(p-v,2))>3&&(s.current.isDragging=true),s.current.transform={...s.current.transform,x:s.current.transform.x+h,y:s.current.transform.y+f},s.current.lastMousePos={x:l,y:p},J();return}let g,b;if(s.current.selectedNode&&D.current&&q.length>0){let h=R1(l,p);h!==null&&(b=s.current.selectedNode),h!==s.current.hoveredButtonIndex&&(g=true),s.current.hoveredButtonIndex=h;}else s.current.hoveredButtonIndex!==null&&(s.current.hoveredButtonIndex=null);if(!b&&(b=G1(l,p),!b)){let h=z1(l,p),f=h!==s.current.hoveredLink;if(h&&s.current.hoveredNode&&H2(null),V2(h),D.current&&(D.current.style.cursor=h?"pointer":"default"),f){J();return}}b&&s.current.hoveredLink&&V2(null),b!==s.current.hoveredNode&&(g=true),H2(b),D.current&&(D.current.style.cursor=b?"pointer":"default"),g&&J();},[q,G1,z1,H2,V2,J,F5,R1]),s6=useCallback(n=>{s.current.mustBeStoppedPropagation&&(n.stopPropagation(),n.preventDefault()),s.current.mustBeStoppedPropagation=false;},[]),A1=useCallback(n=>{let c=s.current.isDragging;if(c&&(s.current.mustBeStoppedPropagation=true),!c&&s.current.mouseStartPos){let l=D.current?.getBoundingClientRect();if(l){let p=n.clientX-l.left,g=n.clientY-l.top;q.length>0&&s.current.hoveredButtonIndex===null&&(s.current.hoveredButtonIndex=R1(p,g));let b=false;if(s.current.selectedNode&&s.current.hoveredButtonIndex!==null&&d[s.current.hoveredButtonIndex]){let h=d[s.current.hoveredButtonIndex];h&&h.onClick&&(h.onClick(s.current.selectedNode),b=true,s.current.hoveredButtonIndex=null);}if(!b&&s.current.draggedNode)k5(s.current.draggedNode);else if(!b&&!s.current.draggedNode){let h=z1(p,g);h?P5(h):I5();}}}if(s.current.draggedNode&&E.current){if(c){E.current.alphaTarget(0);let l=.05,p=.04,g=.6;E.current.alpha(l).alphaDecay(p),E.current.velocityDecay(g);}else E.current.alphaTarget(0);s.current.draggedNode.fx=void 0,s.current.draggedNode.fy=void 0,s.current.draggedNode=null;}s.current.isDragging=false,s.current.mouseStartPos=null,s.current.isPanning&&(s.current.isPanning=false),J();},[d,J,k5,I5,z1,P5,R1,q]),k2=useCallback(n=>{if(n.stopPropagation(),n.preventDefault(),!D.current)return;let c=D.current.getBoundingClientRect(),l=n.clientX-c.left,p=n.clientY-c.top,b=-n.deltaY>0?1.1:1/1.1,h=s.current.transform,f=h.k*b;if(f<.01||f>10)return;let w=h.k*b,v=l-(l-h.x)*b,M=p-(p-h.y)*b;s.current.transform={k:w,x:v,y:M},J();},[J]),I2=r((n,c)=>{let l=n.touches[0];if(l){let p={clientX:l.clientX,clientY:l.clientY};c(p);}},"convertTouchToMouseEvent"),d6=useCallback(n=>{I2(n,F2);},[F2]),$2=useCallback(n=>{s.current.mustBeStoppedPropagation&&(n.preventDefault(),n.stopPropagation()),s.current.mustBeStoppedPropagation=false,I2(n,A1);},[A1]),C6=useCallback(n=>{I2(n,P2);},[P2]);return useImperativeHandle(k,()=>({zoomToFit:T1,addNodes:H5,removeNodes:V5}),[T1,H5,V5]),useEffect(()=>{let n=D.current,{width:c,height:l}=s.current;if(!n)return;L2(),K(true);let p=c/2,g=l/2,b=A.nodeSizeBase,h=b/2,f=b*2.5;E.current&&E.current.stop();let w=E.current=forceSimulation(U).force("link",forceLink(j).id(v=>v.id).distance(f).strength(.9)).force("charge",forceManyBody().strength(-b/10*200).theta(.5).distanceMin(b*2)).force("x",forceX().strength(.03)).force("y",forceY().strength(.03)).force("center",forceCenter(p,g).strength(.05)).force("collide",forceCollide().radius(h*2).iterations(2).strength(1)).velocityDecay(.6);return ()=>{w.stop();}},[U,j]),useLayoutEffect(()=>{let n=D.current;n&&(s.current.width=o*y2,s.current.height=t*y2,n.width=s.current.width,n.height=s.current.height);},[o,t]),useEffect(()=>{if(E.current){let n=E.current;n.on("tick",()=>{J();}),n.on("end",()=>{I&&(T1(0,20),setTimeout(()=>{K(false);},200));});}I||J();},[U,j,I,J,T1]),useEffect(()=>{!U||!j||j.forEach(n=>{let c=typeof n.source=="object"?n.source:U.find(p=>p.id===n.source),l=typeof n.target=="object"?n.target:U.find(p=>p.id===n.target);!c||!l||(!c.neighbors&&(c.neighbors=[]),!l.neighbors&&(l.neighbors=[]),c.neighbors.push(l),l.neighbors.push(c),!c.links&&(c.links=[]),!l.links&&(l.links=[]),c.links.push(n),l.links.push(n));});},[U,j]),useEffect(()=>{d&&d.length>0&&e1(P9(d));},[d]),useEffect(()=>{let n=D.current;if(!(!n||typeof window>"u"))return n.addEventListener("wheel",k2,{passive:false}),n.addEventListener("touchend",$2,{passive:false}),()=>{n.removeEventListener("wheel",k2),n.removeEventListener("touchend",$2);}},[k2,$2]),jsxs(I9,{children:[(e||I)&&jsx(t6,{width:o,height:t}),jsx($9,{ref:D,style:{width:o,height:t,display:e||I?"none":"block"},onMouseDown:F2,onMouseMove:P2,onMouseUp:A1,onMouseLeave:A1,onClick:s6,onTouchStart:d6,onTouchMove:C6})]})}),I9=styled.div`
1200
1200
  display: flex;
1201
1201
  align-items: center;
1202
1202
  justify-content: center;