@wandelbots/wandelbots-js-react-components 1.12.0 → 1.12.2

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 (260) hide show
  1. package/dist/Setup.d.ts.map +1 -0
  2. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -0
  3. package/dist/components/3d-viewport/PresetEnvironment.d.ts.map +1 -0
  4. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -0
  5. package/dist/components/ConsoleFilter.d.ts.map +1 -0
  6. package/dist/components/CopyableText.d.ts.map +1 -0
  7. package/dist/components/LoadingButton.d.ts.map +1 -0
  8. package/dist/components/LoadingCover.d.ts.map +1 -0
  9. package/dist/components/ThemeSelect.d.ts.map +1 -0
  10. package/dist/components/VelocitySlider.d.ts.map +1 -0
  11. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -0
  12. package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -0
  13. package/dist/components/jogging/JoggingCartesianValues.d.ts.map +1 -0
  14. package/dist/components/jogging/JoggingFreedriveTab.d.ts.map +1 -0
  15. package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -0
  16. package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -0
  17. package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -0
  18. package/dist/components/jogging/JoggingJointValues.d.ts.map +1 -0
  19. package/dist/components/jogging/JoggingOptions.d.ts.map +1 -0
  20. package/dist/components/jogging/JoggingPanel.d.ts.map +1 -0
  21. package/dist/components/jogging/JoggingStore.d.ts.map +1 -0
  22. package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -0
  23. package/dist/components/modal/NoMotionGroupModal.d.ts.map +1 -0
  24. package/dist/components/robots/ABB_1200_07_7.d.ts.map +1 -0
  25. package/dist/components/robots/AxisConfig.d.ts.map +1 -0
  26. package/dist/components/robots/DHRobot.d.ts.map +1 -0
  27. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +1 -0
  28. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +1 -0
  29. package/dist/components/robots/FANUC_CRX10iA.d.ts.map +1 -0
  30. package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +1 -0
  31. package/dist/components/robots/FANUC_CRX25iA.d.ts.map +1 -0
  32. package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +1 -0
  33. package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +1 -0
  34. package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +1 -0
  35. package/dist/components/robots/Robot.d.ts.map +1 -0
  36. package/dist/components/robots/RobotAnimator.d.ts.map +1 -0
  37. package/dist/components/robots/SupportedRobot.d.ts.map +1 -0
  38. package/dist/components/robots/UniversalRobots_UR10.d.ts.map +1 -0
  39. package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +1 -0
  40. package/dist/components/robots/UniversalRobots_UR3.d.ts.map +1 -0
  41. package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +1 -0
  42. package/dist/components/robots/UniversalRobots_UR5.d.ts.map +1 -0
  43. package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +1 -0
  44. package/dist/components/robots/Yaskawa_AR1440.d.ts.map +1 -0
  45. package/dist/components/robots/Yaskawa_AR1730.d.ts.map +1 -0
  46. package/dist/components/robots/Yaskawa_AR2010.d.ts.map +1 -0
  47. package/dist/components/robots/Yaskawa_AR3120.d.ts.map +1 -0
  48. package/dist/components/robots/Yaskawa_AR900.d.ts.map +1 -0
  49. package/dist/components/utils/converters.d.ts.map +1 -0
  50. package/dist/components/utils/errorHandling.d.ts.map +1 -0
  51. package/dist/components/utils/hooks.d.ts.map +1 -0
  52. package/dist/components/utils/robotTreeQuery.d.ts.map +1 -0
  53. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -0
  54. package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +1 -0
  55. package/dist/externalizeComponent.d.ts.map +1 -0
  56. package/dist/i18n/config.d.ts.map +1 -0
  57. package/dist/icons/index.d.ts.map +1 -0
  58. package/dist/index.cjs +20 -20
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.ts.map +1 -0
  61. package/dist/index.js +1528 -1527
  62. package/dist/index.js.map +1 -1
  63. package/dist/themes/theming.d.ts.map +1 -0
  64. package/package.json +1 -1
  65. package/src/components/jogging/JoggingPanel.tsx +4 -4
  66. package/src/icons/orientation-tool.svg +1 -1
  67. package/dist/src/Setup.d.ts.map +0 -1
  68. package/dist/src/components/3d-viewport/CoordinateSystemTransform.d.ts.map +0 -1
  69. package/dist/src/components/3d-viewport/PresetEnvironment.d.ts.map +0 -1
  70. package/dist/src/components/3d-viewport/SafetyZonesRenderer.d.ts.map +0 -1
  71. package/dist/src/components/ConsoleFilter.d.ts.map +0 -1
  72. package/dist/src/components/CopyableText.d.ts.map +0 -1
  73. package/dist/src/components/LoadingButton.d.ts.map +0 -1
  74. package/dist/src/components/LoadingCover.d.ts.map +0 -1
  75. package/dist/src/components/ThemeSelect.d.ts.map +0 -1
  76. package/dist/src/components/VelocitySlider.d.ts.map +0 -1
  77. package/dist/src/components/jogging/JoggingCartesianAxisControl.d.ts.map +0 -1
  78. package/dist/src/components/jogging/JoggingCartesianTab.d.ts.map +0 -1
  79. package/dist/src/components/jogging/JoggingCartesianValues.d.ts.map +0 -1
  80. package/dist/src/components/jogging/JoggingFreedriveTab.d.ts.map +0 -1
  81. package/dist/src/components/jogging/JoggingJointLimitDetector.d.ts.map +0 -1
  82. package/dist/src/components/jogging/JoggingJointRotationControl.d.ts.map +0 -1
  83. package/dist/src/components/jogging/JoggingJointTab.d.ts.map +0 -1
  84. package/dist/src/components/jogging/JoggingJointValues.d.ts.map +0 -1
  85. package/dist/src/components/jogging/JoggingOptions.d.ts.map +0 -1
  86. package/dist/src/components/jogging/JoggingPanel.d.ts.map +0 -1
  87. package/dist/src/components/jogging/JoggingStore.d.ts.map +0 -1
  88. package/dist/src/components/jogging/JoggingVelocitySlider.d.ts.map +0 -1
  89. package/dist/src/components/modal/NoMotionGroupModal.d.ts.map +0 -1
  90. package/dist/src/components/robots/ABB_1200_07_7.d.ts.map +0 -1
  91. package/dist/src/components/robots/AxisConfig.d.ts.map +0 -1
  92. package/dist/src/components/robots/DHRobot.d.ts.map +0 -1
  93. package/dist/src/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +0 -1
  94. package/dist/src/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +0 -1
  95. package/dist/src/components/robots/FANUC_CRX10iA.d.ts.map +0 -1
  96. package/dist/src/components/robots/FANUC_CRX20iAL.d.ts.map +0 -1
  97. package/dist/src/components/robots/FANUC_CRX25iA.d.ts.map +0 -1
  98. package/dist/src/components/robots/FANUC_CRX25iAL.d.ts.map +0 -1
  99. package/dist/src/components/robots/KUKA_KR210_R2700.d.ts.map +0 -1
  100. package/dist/src/components/robots/KUKA_KR270_R2700.d.ts.map +0 -1
  101. package/dist/src/components/robots/Robot.d.ts.map +0 -1
  102. package/dist/src/components/robots/RobotAnimator.d.ts.map +0 -1
  103. package/dist/src/components/robots/SupportedRobot.d.ts.map +0 -1
  104. package/dist/src/components/robots/UniversalRobots_UR10.d.ts.map +0 -1
  105. package/dist/src/components/robots/UniversalRobots_UR10e.d.ts.map +0 -1
  106. package/dist/src/components/robots/UniversalRobots_UR3.d.ts.map +0 -1
  107. package/dist/src/components/robots/UniversalRobots_UR3e.d.ts.map +0 -1
  108. package/dist/src/components/robots/UniversalRobots_UR5.d.ts.map +0 -1
  109. package/dist/src/components/robots/UniversalRobots_UR5e.d.ts.map +0 -1
  110. package/dist/src/components/robots/Yaskawa_AR1440.d.ts.map +0 -1
  111. package/dist/src/components/robots/Yaskawa_AR1730.d.ts.map +0 -1
  112. package/dist/src/components/robots/Yaskawa_AR2010.d.ts.map +0 -1
  113. package/dist/src/components/robots/Yaskawa_AR3120.d.ts.map +0 -1
  114. package/dist/src/components/robots/Yaskawa_AR900.d.ts.map +0 -1
  115. package/dist/src/components/utils/converters.d.ts.map +0 -1
  116. package/dist/src/components/utils/errorHandling.d.ts.map +0 -1
  117. package/dist/src/components/utils/hooks.d.ts.map +0 -1
  118. package/dist/src/components/utils/robotTreeQuery.d.ts.map +0 -1
  119. package/dist/src/components/wandelscript-editor/WandelscriptEditor.d.ts.map +0 -1
  120. package/dist/src/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +0 -1
  121. package/dist/src/externalizeComponent.d.ts.map +0 -1
  122. package/dist/src/i18n/config.d.ts.map +0 -1
  123. package/dist/src/icons/index.d.ts.map +0 -1
  124. package/dist/src/index.d.ts.map +0 -1
  125. package/dist/src/themes/theming.d.ts.map +0 -1
  126. package/dist/stories/JoggingCartesianAxisControl.stories.d.ts +0 -6
  127. package/dist/stories/JoggingCartesianAxisControl.stories.d.ts.map +0 -1
  128. package/dist/stories/JoggingJointRotationControl.stories.d.ts +0 -6
  129. package/dist/stories/JoggingJointRotationControl.stories.d.ts.map +0 -1
  130. package/dist/stories/JoggingPanel.stories.d.ts +0 -6
  131. package/dist/stories/JoggingPanel.stories.d.ts.map +0 -1
  132. package/dist/stories/LoadingButton.stories.d.ts +0 -6
  133. package/dist/stories/LoadingButton.stories.d.ts.map +0 -1
  134. package/dist/stories/MuiSamples/Accordion.d.ts +0 -2
  135. package/dist/stories/MuiSamples/Accordion.d.ts.map +0 -1
  136. package/dist/stories/MuiSamples/Alert.d.ts +0 -3
  137. package/dist/stories/MuiSamples/Alert.d.ts.map +0 -1
  138. package/dist/stories/MuiSamples/AppBar.d.ts +0 -7
  139. package/dist/stories/MuiSamples/AppBar.d.ts.map +0 -1
  140. package/dist/stories/MuiSamples/Avatar.d.ts +0 -2
  141. package/dist/stories/MuiSamples/Avatar.d.ts.map +0 -1
  142. package/dist/stories/MuiSamples/Badge.d.ts +0 -2
  143. package/dist/stories/MuiSamples/Badge.d.ts.map +0 -1
  144. package/dist/stories/MuiSamples/BottomNavigation.d.ts +0 -2
  145. package/dist/stories/MuiSamples/BottomNavigation.d.ts.map +0 -1
  146. package/dist/stories/MuiSamples/Button.d.ts +0 -2
  147. package/dist/stories/MuiSamples/Button.d.ts.map +0 -1
  148. package/dist/stories/MuiSamples/Card.d.ts +0 -2
  149. package/dist/stories/MuiSamples/Card.d.ts.map +0 -1
  150. package/dist/stories/MuiSamples/Checkboxes.d.ts +0 -2
  151. package/dist/stories/MuiSamples/Checkboxes.d.ts.map +0 -1
  152. package/dist/stories/MuiSamples/Chip.d.ts +0 -2
  153. package/dist/stories/MuiSamples/Chip.d.ts.map +0 -1
  154. package/dist/stories/MuiSamples/Dialog.d.ts +0 -7
  155. package/dist/stories/MuiSamples/Dialog.d.ts.map +0 -1
  156. package/dist/stories/MuiSamples/FAB.d.ts +0 -2
  157. package/dist/stories/MuiSamples/FAB.d.ts.map +0 -1
  158. package/dist/stories/MuiSamples/Icon.d.ts +0 -2
  159. package/dist/stories/MuiSamples/Icon.d.ts.map +0 -1
  160. package/dist/stories/MuiSamples/List.d.ts +0 -2
  161. package/dist/stories/MuiSamples/List.d.ts.map +0 -1
  162. package/dist/stories/MuiSamples/Menu.d.ts +0 -2
  163. package/dist/stories/MuiSamples/Menu.d.ts.map +0 -1
  164. package/dist/stories/MuiSamples/Progress.d.ts +0 -2
  165. package/dist/stories/MuiSamples/Progress.d.ts.map +0 -1
  166. package/dist/stories/MuiSamples/RadioGroup.d.ts +0 -2
  167. package/dist/stories/MuiSamples/RadioGroup.d.ts.map +0 -1
  168. package/dist/stories/MuiSamples/Select.d.ts +0 -2
  169. package/dist/stories/MuiSamples/Select.d.ts.map +0 -1
  170. package/dist/stories/MuiSamples/Slider.d.ts +0 -2
  171. package/dist/stories/MuiSamples/Slider.d.ts.map +0 -1
  172. package/dist/stories/MuiSamples/Snackbar.d.ts +0 -2
  173. package/dist/stories/MuiSamples/Snackbar.d.ts.map +0 -1
  174. package/dist/stories/MuiSamples/Stepper.d.ts +0 -2
  175. package/dist/stories/MuiSamples/Stepper.d.ts.map +0 -1
  176. package/dist/stories/MuiSamples/Switch.d.ts +0 -2
  177. package/dist/stories/MuiSamples/Switch.d.ts.map +0 -1
  178. package/dist/stories/MuiSamples/Table.d.ts +0 -2
  179. package/dist/stories/MuiSamples/Table.d.ts.map +0 -1
  180. package/dist/stories/MuiSamples/Tabs.d.ts +0 -2
  181. package/dist/stories/MuiSamples/Tabs.d.ts.map +0 -1
  182. package/dist/stories/MuiSamples/TextField.d.ts +0 -2
  183. package/dist/stories/MuiSamples/TextField.d.ts.map +0 -1
  184. package/dist/stories/MuiSamples/Tooltip.d.ts +0 -2
  185. package/dist/stories/MuiSamples/Tooltip.d.ts.map +0 -1
  186. package/dist/stories/MuiSamples/Typography.d.ts +0 -2
  187. package/dist/stories/MuiSamples/Typography.d.ts.map +0 -1
  188. package/dist/stories/MuiSamples/index.d.ts +0 -8
  189. package/dist/stories/MuiSamples/index.d.ts.map +0 -1
  190. package/dist/stories/SafetyZonesRenderer.stories.d.ts +0 -147
  191. package/dist/stories/SafetyZonesRenderer.stories.d.ts.map +0 -1
  192. package/dist/stories/SupportedRobot.stories.d.ts +0 -156
  193. package/dist/stories/SupportedRobot.stories.d.ts.map +0 -1
  194. package/dist/stories/VelocitySlider.stories.d.ts +0 -6
  195. package/dist/stories/VelocitySlider.stories.d.ts.map +0 -1
  196. package/dist/stories/WandelscriptEditor.stories.d.ts +0 -6
  197. package/dist/stories/WandelscriptEditor.stories.d.ts.map +0 -1
  198. package/dist/stories/defaultTheme.stories.d.ts +0 -7
  199. package/dist/stories/defaultTheme.stories.d.ts.map +0 -1
  200. package/dist/stories/theming.stories.d.ts +0 -7
  201. package/dist/stories/theming.stories.d.ts.map +0 -1
  202. /package/dist/{src/Setup.d.ts → Setup.d.ts} +0 -0
  203. /package/dist/{src/components → components}/3d-viewport/CoordinateSystemTransform.d.ts +0 -0
  204. /package/dist/{src/components → components}/3d-viewport/PresetEnvironment.d.ts +0 -0
  205. /package/dist/{src/components → components}/3d-viewport/SafetyZonesRenderer.d.ts +0 -0
  206. /package/dist/{src/components → components}/ConsoleFilter.d.ts +0 -0
  207. /package/dist/{src/components → components}/CopyableText.d.ts +0 -0
  208. /package/dist/{src/components → components}/LoadingButton.d.ts +0 -0
  209. /package/dist/{src/components → components}/LoadingCover.d.ts +0 -0
  210. /package/dist/{src/components → components}/ThemeSelect.d.ts +0 -0
  211. /package/dist/{src/components → components}/VelocitySlider.d.ts +0 -0
  212. /package/dist/{src/components → components}/jogging/JoggingCartesianAxisControl.d.ts +0 -0
  213. /package/dist/{src/components → components}/jogging/JoggingCartesianTab.d.ts +0 -0
  214. /package/dist/{src/components → components}/jogging/JoggingCartesianValues.d.ts +0 -0
  215. /package/dist/{src/components → components}/jogging/JoggingFreedriveTab.d.ts +0 -0
  216. /package/dist/{src/components → components}/jogging/JoggingJointLimitDetector.d.ts +0 -0
  217. /package/dist/{src/components → components}/jogging/JoggingJointRotationControl.d.ts +0 -0
  218. /package/dist/{src/components → components}/jogging/JoggingJointTab.d.ts +0 -0
  219. /package/dist/{src/components → components}/jogging/JoggingJointValues.d.ts +0 -0
  220. /package/dist/{src/components → components}/jogging/JoggingOptions.d.ts +0 -0
  221. /package/dist/{src/components → components}/jogging/JoggingPanel.d.ts +0 -0
  222. /package/dist/{src/components → components}/jogging/JoggingStore.d.ts +0 -0
  223. /package/dist/{src/components → components}/jogging/JoggingVelocitySlider.d.ts +0 -0
  224. /package/dist/{src/components → components}/modal/NoMotionGroupModal.d.ts +0 -0
  225. /package/dist/{src/components → components}/robots/ABB_1200_07_7.d.ts +0 -0
  226. /package/dist/{src/components → components}/robots/AxisConfig.d.ts +0 -0
  227. /package/dist/{src/components → components}/robots/DHRobot.d.ts +0 -0
  228. /package/dist/{src/components → components}/robots/FANUC_ARC_Mate_100iD.d.ts +0 -0
  229. /package/dist/{src/components → components}/robots/FANUC_ARC_Mate_120iD.d.ts +0 -0
  230. /package/dist/{src/components → components}/robots/FANUC_CRX10iA.d.ts +0 -0
  231. /package/dist/{src/components → components}/robots/FANUC_CRX20iAL.d.ts +0 -0
  232. /package/dist/{src/components → components}/robots/FANUC_CRX25iA.d.ts +0 -0
  233. /package/dist/{src/components → components}/robots/FANUC_CRX25iAL.d.ts +0 -0
  234. /package/dist/{src/components → components}/robots/KUKA_KR210_R2700.d.ts +0 -0
  235. /package/dist/{src/components → components}/robots/KUKA_KR270_R2700.d.ts +0 -0
  236. /package/dist/{src/components → components}/robots/Robot.d.ts +0 -0
  237. /package/dist/{src/components → components}/robots/RobotAnimator.d.ts +0 -0
  238. /package/dist/{src/components → components}/robots/SupportedRobot.d.ts +0 -0
  239. /package/dist/{src/components → components}/robots/UniversalRobots_UR10.d.ts +0 -0
  240. /package/dist/{src/components → components}/robots/UniversalRobots_UR10e.d.ts +0 -0
  241. /package/dist/{src/components → components}/robots/UniversalRobots_UR3.d.ts +0 -0
  242. /package/dist/{src/components → components}/robots/UniversalRobots_UR3e.d.ts +0 -0
  243. /package/dist/{src/components → components}/robots/UniversalRobots_UR5.d.ts +0 -0
  244. /package/dist/{src/components → components}/robots/UniversalRobots_UR5e.d.ts +0 -0
  245. /package/dist/{src/components → components}/robots/Yaskawa_AR1440.d.ts +0 -0
  246. /package/dist/{src/components → components}/robots/Yaskawa_AR1730.d.ts +0 -0
  247. /package/dist/{src/components → components}/robots/Yaskawa_AR2010.d.ts +0 -0
  248. /package/dist/{src/components → components}/robots/Yaskawa_AR3120.d.ts +0 -0
  249. /package/dist/{src/components → components}/robots/Yaskawa_AR900.d.ts +0 -0
  250. /package/dist/{src/components → components}/utils/converters.d.ts +0 -0
  251. /package/dist/{src/components → components}/utils/errorHandling.d.ts +0 -0
  252. /package/dist/{src/components → components}/utils/hooks.d.ts +0 -0
  253. /package/dist/{src/components → components}/utils/robotTreeQuery.d.ts +0 -0
  254. /package/dist/{src/components → components}/wandelscript-editor/WandelscriptEditor.d.ts +0 -0
  255. /package/dist/{src/components → components}/wandelscript-editor/wandelscript.tmLanguage.d.ts +0 -0
  256. /package/dist/{src/externalizeComponent.d.ts → externalizeComponent.d.ts} +0 -0
  257. /package/dist/{src/i18n → i18n}/config.d.ts +0 -0
  258. /package/dist/{src/icons → icons}/index.d.ts +0 -0
  259. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  260. /package/dist/{src/themes → themes}/theming.d.ts +0 -0
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),Ba=require("@monaco-editor/react"),pc=require("shiki"),gc=require("@shikijs/monaco"),L=require("@mui/material"),Ft=require("react-i18next"),yc=require("i18next-browser-languagedetector"),S=require("@react-spring/three"),ie=require("@react-three/drei"),_c=require("@react-three/fiber"),br=require("mobx"),vt=require("three"),bc=require("react-error-boundary"),xc=require("three-stdlib"),He=require("mobx-react-lite"),m=require("prop-types"),Sc=require("@emotion/styled"),mr=require("@emotion/react"),Rt=require("@wandelbots/wandelbots-js");function wi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=wi(Z),Ce=wi(vt);function Ct(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Go={exports:{}},kr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),Ba=require("@monaco-editor/react"),pc=require("shiki"),gc=require("@shikijs/monaco"),L=require("@mui/material"),Ft=require("react-i18next"),yc=require("i18next-browser-languagedetector"),S=require("@react-spring/three"),ie=require("@react-three/drei"),_c=require("@react-three/fiber"),br=require("mobx"),vt=require("three"),bc=require("react-error-boundary"),xc=require("three-stdlib"),He=require("mobx-react-lite"),m=require("prop-types"),Sc=require("@emotion/styled"),mr=require("@emotion/react"),$t=require("@wandelbots/wandelbots-js"),vc=require("lodash-es");function wi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=wi(Z),Ce=wi(vt);function jt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Go={exports:{}},kr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ja;function vc(){if(Ja)return kr;Ja=1;var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,h={},f=null,b=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:b,props:h,_owner:o.current}}return kr.Fragment=r,kr.jsx=i,kr.jsxs=i,kr}var $r={};/**
9
+ */var Ja;function wc(){if(Ja)return kr;Ja=1;var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,h={},f=null,b=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:b,props:h,_owner:o.current}}return kr.Fragment=r,kr.jsx=i,kr.jsxs=i,kr}var $r={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,30 +14,30 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Va;function wc(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var w=y&&p[y]||p[_];return typeof w=="function"?w:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(p){{for(var w=arguments.length,M=new Array(w>1?w-1:0),$=1;$<w;$++)M[$-1]=arguments[$];C("error",p,M)}}function C(p,w,M){{var $=v.ReactDebugCurrentFrame,U=$.getStackAddendum();U!==""&&(w+="%s",M=M.concat([U]));var re=M.map(function(V){return String(V)});re.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,re)}}var k=!1,j=!1,P=!1,O=!1,z=!1,le;le=Symbol.for("react.module.reference");function ue(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||z||p===o||p===u||p===d||O||p===b||k||j||P||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===h||p.$$typeof===i||p.$$typeof===l||p.$$typeof===c||p.$$typeof===le||p.getModuleId!==void 0))}function D(p,w,M){var $=p.displayName;if($)return $;var U=w.displayName||w.name||"";return U!==""?M+"("+U+")":M}function q(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var w=p;return q(w)+".Consumer";case i:var M=p;return q(M._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case h:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case f:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var X=Object.assign,K=0,we,ce,Q,Ae,Ie,ot,bt;function Ke(){}Ke.__reactDisabledLog=!0;function Re(){{if(K===0){we=console.log,ce=console.info,Q=console.warn,Ae=console.error,Ie=console.group,ot=console.groupCollapsed,bt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}K++}}function Tt(){{if(K--,K===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},p,{value:we}),info:X({},p,{value:ce}),warn:X({},p,{value:Q}),error:X({},p,{value:Ae}),group:X({},p,{value:Ie}),groupCollapsed:X({},p,{value:ot}),groupEnd:X({},p,{value:bt})})}K<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ct=v.ReactCurrentDispatcher,qe;function Be(p,w,M){{if(qe===void 0)try{throw Error()}catch(U){var $=U.stack.trim().match(/\n( *(at )?)/);qe=$&&$[1]||""}return`
17
+ */var Va;function Rc(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var w=y&&p[y]||p[_];return typeof w=="function"?w:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(p){{for(var w=arguments.length,M=new Array(w>1?w-1:0),$=1;$<w;$++)M[$-1]=arguments[$];C("error",p,M)}}function C(p,w,M){{var $=v.ReactDebugCurrentFrame,U=$.getStackAddendum();U!==""&&(w+="%s",M=M.concat([U]));var re=M.map(function(V){return String(V)});re.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,re)}}var k=!1,j=!1,P=!1,O=!1,z=!1,le;le=Symbol.for("react.module.reference");function ue(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||z||p===o||p===u||p===d||O||p===b||k||j||P||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===h||p.$$typeof===i||p.$$typeof===l||p.$$typeof===c||p.$$typeof===le||p.getModuleId!==void 0))}function D(p,w,M){var $=p.displayName;if($)return $;var U=w.displayName||w.name||"";return U!==""?M+"("+U+")":M}function q(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var w=p;return q(w)+".Consumer";case i:var M=p;return q(M._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case h:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case f:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var X=Object.assign,K=0,we,ce,Q,Ae,Ie,ot,bt;function Ke(){}Ke.__reactDisabledLog=!0;function Re(){{if(K===0){we=console.log,ce=console.info,Q=console.warn,Ae=console.error,Ie=console.group,ot=console.groupCollapsed,bt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}K++}}function Ot(){{if(K--,K===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},p,{value:we}),info:X({},p,{value:ce}),warn:X({},p,{value:Q}),error:X({},p,{value:Ae}),group:X({},p,{value:Ie}),groupCollapsed:X({},p,{value:ot}),groupEnd:X({},p,{value:bt})})}K<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ct=v.ReactCurrentDispatcher,qe;function Be(p,w,M){{if(qe===void 0)try{throw Error()}catch(U){var $=U.stack.trim().match(/\n( *(at )?)/);qe=$&&$[1]||""}return`
18
18
  `+qe+p}}var ut=!1,dt;{var Ut=typeof WeakMap=="function"?WeakMap:Map;dt=new Ut}function xt(p,w){if(!p||ut)return"";{var M=dt.get(p);if(M!==void 0)return M}var $;ut=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ct.current,ct.current=null,Re();try{if(w){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(Ne){$=Ne}Reflect.construct(p,[],V)}else{try{V.call()}catch(Ne){$=Ne}p.call(V.prototype)}}else{try{throw Error()}catch(Ne){$=Ne}p()}}catch(Ne){if(Ne&&$&&typeof Ne.stack=="string"){for(var B=Ne.stack.split(`
19
19
  `),Me=$.stack.split(`
20
20
  `),ge=B.length-1,xe=Me.length-1;ge>=1&&xe>=0&&B[ge]!==Me[xe];)xe--;for(;ge>=1&&xe>=0;ge--,xe--)if(B[ge]!==Me[xe]){if(ge!==1||xe!==1)do if(ge--,xe--,xe<0||B[ge]!==Me[xe]){var Ye=`
21
- `+B[ge].replace(" at new "," at ");return p.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&dt.set(p,Ye),Ye}while(ge>=1&&xe>=0);break}}}finally{ut=!1,ct.current=re,Tt(),Error.prepareStackTrace=U}var ar=p?p.displayName||p.name:"",Gt=ar?Be(ar):"";return typeof p=="function"&&dt.set(p,Gt),Gt}function Je(p,w,M){return xt(p,!1)}function E(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,M){if(p==null)return"";if(typeof p=="function")return xt(p,E(p));if(typeof p=="string")return Be(p);switch(p){case u:return Be("Suspense");case d:return Be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Je(p.render);case h:return ee(p.type,w,M);case f:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,M)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Le={},ke=v.ReactDebugCurrentFrame;function Et(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);ke.setExtraStackFrame(M)}else ke.setExtraStackFrame(null)}function je(p,w,M,$,U){{var re=Function.call.bind(he);for(var V in p)if(re(p,V)){var B=void 0;try{if(typeof p[V]!="function"){var Me=Error(($||"React class")+": "+M+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Me.name="Invariant Violation",Me}B=p[V](w,V,$,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){B=ge}B&&!(B instanceof Error)&&(Et(U),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",M,V,typeof B),Et(null)),B instanceof Error&&!(B.message in Le)&&(Le[B.message]=!0,Et(U),R("Failed %s type: %s",M,B.message),Et(null))}}}var Mt=Array.isArray;function Bt(p){return Mt(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M}}function Pr(p){try{return Or(p),!1}catch{return!0}}function Or(p){return""+p}function tr(p){if(Pr(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Or(p)}var at=v.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},I,F,W;W={};function Y(p){if(he.call(p,"ref")){var w=Object.getOwnPropertyDescriptor(p,"ref").get;if(w&&w.isReactWarning)return!1}return p.ref!==void 0}function H(p){if(he.call(p,"key")){var w=Object.getOwnPropertyDescriptor(p,"key").get;if(w&&w.isReactWarning)return!1}return p.key!==void 0}function Ve(p,w){if(typeof p.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var M=G(at.current.type);W[M]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(at.current.type),p.ref),W[M]=!0)}}function Xe(p,w){{var M=function(){I||(I=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}}function te(p,w){{var M=function(){F||(F=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};M.isReactWarning=!0,Object.defineProperty(p,"ref",{get:M,configurable:!0})}}var $e=function(p,w,M,$,U,re,V){var B={$$typeof:t,type:p,key:w,ref:M,props:V,_owner:re};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function It(p,w,M,$,U){{var re,V={},B=null,Me=null;M!==void 0&&(tr(M),B=""+M),H(w)&&(tr(w.key),B=""+w.key),Y(w)&&(Me=w.ref,Ve(w,U));for(re in w)he.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ge=p.defaultProps;for(re in ge)V[re]===void 0&&(V[re]=ge[re])}if(B||Me){var xe=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&Xe(V,xe),Me&&te(V,xe)}return $e(p,B,Me,U,$,at.current,V)}}var rr=v.ReactCurrentOwner,Tr=v.ReactDebugCurrentFrame;function St(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Tr.setExtraStackFrame(M)}else Tr.setExtraStackFrame(null)}var Jt;Jt=!1;function Vt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Er(){{if(rr.current){var p=G(rr.current.type);if(p)return`
21
+ `+B[ge].replace(" at new "," at ");return p.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&dt.set(p,Ye),Ye}while(ge>=1&&xe>=0);break}}}finally{ut=!1,ct.current=re,Ot(),Error.prepareStackTrace=U}var ar=p?p.displayName||p.name:"",Gt=ar?Be(ar):"";return typeof p=="function"&&dt.set(p,Gt),Gt}function Je(p,w,M){return xt(p,!1)}function E(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,M){if(p==null)return"";if(typeof p=="function")return xt(p,E(p));if(typeof p=="string")return Be(p);switch(p){case u:return Be("Suspense");case d:return Be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Je(p.render);case h:return ee(p.type,w,M);case f:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,M)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Le={},ke=v.ReactDebugCurrentFrame;function Tt(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);ke.setExtraStackFrame(M)}else ke.setExtraStackFrame(null)}function je(p,w,M,$,U){{var re=Function.call.bind(he);for(var V in p)if(re(p,V)){var B=void 0;try{if(typeof p[V]!="function"){var Me=Error(($||"React class")+": "+M+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Me.name="Invariant Violation",Me}B=p[V](w,V,$,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){B=ge}B&&!(B instanceof Error)&&(Tt(U),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",M,V,typeof B),Tt(null)),B instanceof Error&&!(B.message in Le)&&(Le[B.message]=!0,Tt(U),R("Failed %s type: %s",M,B.message),Tt(null))}}}var Et=Array.isArray;function Bt(p){return Et(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M}}function Pr(p){try{return Or(p),!1}catch{return!0}}function Or(p){return""+p}function tr(p){if(Pr(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Or(p)}var at=v.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},I,F,W;W={};function Y(p){if(he.call(p,"ref")){var w=Object.getOwnPropertyDescriptor(p,"ref").get;if(w&&w.isReactWarning)return!1}return p.ref!==void 0}function H(p){if(he.call(p,"key")){var w=Object.getOwnPropertyDescriptor(p,"key").get;if(w&&w.isReactWarning)return!1}return p.key!==void 0}function Ve(p,w){if(typeof p.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var M=G(at.current.type);W[M]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(at.current.type),p.ref),W[M]=!0)}}function Xe(p,w){{var M=function(){I||(I=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}}function te(p,w){{var M=function(){F||(F=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};M.isReactWarning=!0,Object.defineProperty(p,"ref",{get:M,configurable:!0})}}var $e=function(p,w,M,$,U,re,V){var B={$$typeof:t,type:p,key:w,ref:M,props:V,_owner:re};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Mt(p,w,M,$,U){{var re,V={},B=null,Me=null;M!==void 0&&(tr(M),B=""+M),H(w)&&(tr(w.key),B=""+w.key),Y(w)&&(Me=w.ref,Ve(w,U));for(re in w)he.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ge=p.defaultProps;for(re in ge)V[re]===void 0&&(V[re]=ge[re])}if(B||Me){var xe=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&Xe(V,xe),Me&&te(V,xe)}return $e(p,B,Me,U,$,at.current,V)}}var rr=v.ReactCurrentOwner,Tr=v.ReactDebugCurrentFrame;function St(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Tr.setExtraStackFrame(M)}else Tr.setExtraStackFrame(null)}var Jt;Jt=!1;function Vt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Er(){{if(rr.current){var p=G(rr.current.type);if(p)return`
22
22
 
23
23
  Check the render method of \``+p+"`."}return""}}function Mr(p){return""}var dn={};function Ir(p){{var w=Er();if(!w){var M=typeof p=="string"?p:p.displayName||p.name;M&&(w=`
24
24
 
25
- Check the top-level render call using <`+M+">.")}return w}}function nr(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Ir(w);if(dn[M])return;dn[M]=!0;var $="";p&&p._owner&&p._owner!==rr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),St(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,$),St(null)}}function or(p,w){{if(typeof p!="object")return;if(Bt(p))for(var M=0;M<p.length;M++){var $=p[M];Vt($)&&nr($,w)}else if(Vt(p))p._store&&(p._store.validated=!0);else if(p){var U=g(p);if(typeof U=="function"&&U!==p.entries)for(var re=U.call(p),V;!(V=re.next()).done;)Vt(V.value)&&nr(V.value,w)}}}function xo(p){{var w=p.type;if(w==null||typeof w=="string")return;var M;if(typeof w=="function")M=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===h))M=w.propTypes;else return;if(M){var $=G(w);je(M,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!Jt){Jt=!0;var U=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(p){{for(var w=Object.keys(p.props),M=0;M<w.length;M++){var $=w[M];if($!=="children"&&$!=="key"){St(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}p.ref!==null&&(St(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var fn={};function hn(p,w,M,$,U,re){{var V=ue(p);if(!V){var B="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Me=Mr();Me?B+=Me:B+=Er();var ge;p===null?ge="null":Bt(p)?ge="array":p!==void 0&&p.$$typeof===t?(ge="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var xe=It(p,w,M,U,re);if(xe==null)return xe;if(V){var Ye=w.children;if(Ye!==void 0)if($)if(Bt(Ye)){for(var ar=0;ar<Ye.length;ar++)or(Ye[ar],p);Object.freeze&&Object.freeze(Ye)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else or(Ye,p)}if(he.call(w,"key")){var Gt=G(p),Ne=Object.keys(w).filter(function(mc){return mc!=="key"}),jo=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[Gt+jo]){var hc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+M+">.")}return w}}function nr(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Ir(w);if(dn[M])return;dn[M]=!0;var $="";p&&p._owner&&p._owner!==rr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),St(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,$),St(null)}}function or(p,w){{if(typeof p!="object")return;if(Bt(p))for(var M=0;M<p.length;M++){var $=p[M];Vt($)&&nr($,w)}else if(Vt(p))p._store&&(p._store.validated=!0);else if(p){var U=g(p);if(typeof U=="function"&&U!==p.entries)for(var re=U.call(p),V;!(V=re.next()).done;)Vt(V.value)&&nr(V.value,w)}}}function xo(p){{var w=p.type;if(w==null||typeof w=="string")return;var M;if(typeof w=="function")M=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===h))M=w.propTypes;else return;if(M){var $=G(w);je(M,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!Jt){Jt=!0;var U=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(p){{for(var w=Object.keys(p.props),M=0;M<w.length;M++){var $=w[M];if($!=="children"&&$!=="key"){St(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}p.ref!==null&&(St(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var fn={};function hn(p,w,M,$,U,re){{var V=ue(p);if(!V){var B="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Me=Mr();Me?B+=Me:B+=Er();var ge;p===null?ge="null":Bt(p)?ge="array":p!==void 0&&p.$$typeof===t?(ge="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var xe=Mt(p,w,M,U,re);if(xe==null)return xe;if(V){var Ye=w.children;if(Ye!==void 0)if($)if(Bt(Ye)){for(var ar=0;ar<Ye.length;ar++)or(Ye[ar],p);Object.freeze&&Object.freeze(Ye)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else or(Ye,p)}if(he.call(w,"key")){var Gt=G(p),Ne=Object.keys(w).filter(function(mc){return mc!=="key"}),jo=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[Gt+jo]){var hc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,jo,Gt,hc,Gt),fn[Gt+jo]=!0}}return p===n?So(xe):xo(xe),xe}}function vo(p,w,M){return hn(p,w,M,!0)}function wo(p,w,M){return hn(p,w,M,!1)}var Lr=wo,Ro=vo;$r.Fragment=n,$r.jsx=Lr,$r.jsxs=Ro}()),$r}process.env.NODE_ENV==="production"?Go.exports=vc():Go.exports=wc();var s=Go.exports;const Rc={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},jc={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung"},Cc={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation"},Ac={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Ac,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Ln(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ln(this.logger,t)}}var mt=new Ln;class Kn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Ga=e=>e==null?"":""+e,Pc=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Oc=/###/g,za=e=>e&&e.indexOf("###")>-1?e.replace(Oc,"."):e,Wa=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Wa(e))return{};const a=za(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Wa(e)?{}:{obj:e,k:za(n[o])}},Ha=(e,t,r)=>{const{obj:n,k:o}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},Tc=(e,t,r,n)=>{const{obj:o,k:a}=Jr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},kn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Ec=(e,t,r)=>{const n=kn(e,r);return n!==void 0?n:kn(t,r)},Ri=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Ri(e[n],t[n],r):e[n]=t[n]);return e},sr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ic=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Mc[t]):e;class Lc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const kc=[" ",",","?","!",";"],$c=new Lc(20),Nc=(e,t,r)=>{t=t||"",r=r||"";const n=kc.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=$c.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},zo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},$n=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ka extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&a?l.push(...n.split(a)):l.push(n)));const c=kn(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:zo(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Ha(this.data,l,o),a.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=kn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Ri(c,n,a):c={...c,...n},Ha(this.data,l,c),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ji={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const qa={};class Nn extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Pc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Nc(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const h=this.resolve(t,r);let f=h&&h.res;const b=h&&h.usedKey||i,y=h&&h.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(h.res=k,h.usedParams=this.getUsedParamsDetails(r),h):k}if(a){const k=Array.isArray(f),j=k?[]:{},P=k?y:b;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${P}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=f[O])}f=j}}else if(R&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,j=!1;const P=r.count!==void 0&&typeof r.count!="string",O=Nn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(k=!0,f=D),this.isValidLookup(f)||(j=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:f,X=O&&D!==f&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:f),a){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)K.push(we[Q]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);const ce=(Q,Ae,Ie)=>{const ot=O&&Ie!==f?Ie:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Ae,ot,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Ae,ot,X,r),this.emit("missingKey",Q,c,Ae,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(Q=>{const Ae=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Ie=>{ce([Q],i+Ie,r[`defaultValue${Ie}`]||D)})}):ce(K,i,D))}f=this.extendTranslation(f,t,r,h,n),j&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(h.res=f,h.usedParams=this.getUsedParamsDetails(r),h):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),b=f&&f.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,b=new Array(f),y=0;y<f;y++)b[y]=arguments[y];return a&&a[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=ji.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",b=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(g=>{this.isValidLookup(n)||(l=g,!qa[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qa[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(v=>{if(this.isValidLookup(n))return;i=v;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,v,g,r);else{let k;f&&(k=this.pluralResolver.getSuffix(v,r.count,r));const j=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(R.push(d+k),r.ordinal&&k.indexOf(P)===0&&R.push(d+k.replace(P,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),f&&(R.push(O+k),r.ordinal&&k.indexOf(P)===0&&R.push(O+k.replace(P,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(v,g,C,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const a of r)delete o[a]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Co=e=>e.charAt(0).toUpperCase()+e.slice(1);class Xa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mt.create("languageUtils")}getScriptPartFromCode(t){if(t=$n(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=$n(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Co(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let Fc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Dc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Uc=["v1","v2","v3"],Bc=["v4"],Ya={zero:0,one:1,two:2,few:3,many:4,other:5},Jc=()=>{const e={};return Fc.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Dc[t.fc]}})}),e};class Vc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=mt.create("pluralResolver"),(!this.options.compatibilityJSON||Bc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Jc()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules($n(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Ya[o]-Ya[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Uc.includes(this.options.compatibilityJSON)}}const Za=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Ec(e,t,r);return!a&&o&&typeof r=="string"&&(a=zo(e,r,n),a===void 0&&(a=zo(t,r,n))),a},Ao=e=>e.replace(/\$/g,"$$$$");class Gc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Ic,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?sr(a):i||"{{",this.suffix=l?sr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?sr(f):b||sr("$t("),this.nestingSuffix=y?sr(y):_||sr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const v=Za(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:b}):v}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Za(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Ao(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Ao(this.escape(b)):Ao(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(h){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ga(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),h?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let f=`{${h[1]}`;c=h[0],f=this.interpolate(f,i);const b=f.match(/'/g),y=f.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Ga(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const zc=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},ir=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e($n(n),o),t[i]=l),l(r)}};class Wc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("formatter"),this.options=t,this.formats={number:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:ir((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:ir((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:ir((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ir(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=zc(c);if(this.formats[u]){let h=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=f.locale||f.lng||o.locale||o.lng||n;h=this.formats[u](l,b,{...d,...o,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Hc=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Kc extends Kn{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=mt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(h=>{const f=`${u}|${h}`;!n.reload&&this.store.hasResourceBundle(u,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Tc(c.loaded,[a],i),Hc(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Qa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),es=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),mn=()=>{},qc=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Wr extends Kn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=es(t),this.services={},this.logger=mt,this.modules={external:[]},qc(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Qa();this.options={...o,...this.options,...es(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?mt.init(a(this.modules.logger),this.options):mt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Wc);const h=new Xa(this.options);this.store=new Ka(this.options.resources,this.options);const f=this.services;f.logger=mt,f.resourceStore=this.store,f.languageUtils=h,f.pluralResolver=new Vc(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Gc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Kc(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=mn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Nr(),u=()=>{const d=(h,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(h,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=mn),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ji.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Nr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${f}${y}`):b=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Xa(Qa());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Wr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Wr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new Ka(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Nn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ee=Wr.createInstance();Ee.createInstance=Wr.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Ci=Ee.createInstance();Ci.use(yc).use(Ft.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Cc},de:{translations:jc}},ns:["translations"],defaultNS:"translations"});function en(e){return r=>s.jsx(Xc,{children:s.jsx(e,{...r})})}const Xc=({children:e})=>s.jsx(Ft.I18nextProvider,{i18n:Ci,children:e}),Yc=en(e=>{const t=Ba.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await pc.createHighlighter({langs:[Rc],themes:["dark-plus","light-plus"]})),gc.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(Ba,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Zc="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ai(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ai(t))]}function Qc(e,t){return new RegExp(t??Zc).test(e)}function Pi(e,t){return Ai(e).filter(r=>Qc(r.name,t))}function qn(e){Z.useEffect(e,[])}function Oi(e){qn(()=>br.autorun(e))}function Ti(e,t,r){qn(()=>br.reaction(e,t,r))}function Sr(e){return qn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ye({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=_c.useThree();Z.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):Pi(f),u(),l())},[]);function c(f){o.current=f,h.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}Oi(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function eu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function tu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function ru({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function nu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function ou({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function au({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ts({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function su({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function iu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function lu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function cu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function uu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function du({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function fu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function hu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function mu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function pu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function gu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function rs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function yu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const ns="line",os="mesh";function Po({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function o(c,u){const d=new vt.Vector3,h=new vt.Quaternion,f=new vt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new vt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,h);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(ns),d.getObjectByName(os),u[h])})}function l(c){return Pi(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:ns,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:os,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const _u=console.warn;function bu(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&_u(e)}},[]),s.jsx(s.Fragment,{})}function pa(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Ei=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=pa,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Ce.Mesh&&!h.userData.isGhost){h.material instanceof Ce.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=eu;break;case"UniversalRobots_UR3e":i=tu;break;case"UniversalRobots_UR5":i=ru;break;case"UniversalRobots_UR5e":i=nu;break;case"UniversalRobots_UR10":i=ou;break;case"UniversalRobots_UR10e":i=au;break;case"Yaskawa_AR900":i=ts;break;case"Yaskawa_GP7":i=ts;break;case"Yaskawa_AR1440":i=su;break;case"Yaskawa_AR1730":i=iu;break;case"Yaskawa_AR2010":i=lu;break;case"Yaskawa_AR3120":i=cu;break;case"FANUC_CRX10iA":i=uu;break;case"FANUC_CRX20iAL":i=du;break;case"FANUC_CRX25iA":i=fu;break;case"FANUC_CRX25iAL":i=hu;break;case"FANUC_ARC_Mate_120iD":i=rs;break;case"FANUC_ARC_Mate_120iD35":i=rs;break;case"FANUC_ARC_Mate_100iD":i=gu;break;case"KUKA_KR210_R2700":i=mu;break;case"KUKA_KR270_R2700":i=pu;break;case"ABB_1200_07_7":i=yu;break;default:console.warn(`Unknown robot type: ${t}`),i=Po}return s.jsxs(bc.ErrorBoundary,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(bu,{})]})});function xu({connectedMotionGroup:e,getModel:t=pa,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Ei,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function Su(){return s.jsx(ie.Environment,{children:s.jsx(vu,{})})}function vu({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function wu(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function Ru({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=wu(l);if(c.isCoplanar&&c.normal){const h=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(h)}let u;try{u=new xc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Hr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ju=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"}));var Cu=!1;function Au(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Pu(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ou=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Cu:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Pu(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Au(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Fn="-moz-",ne="-webkit-",Mi="comm",ga="rule",ya="decl",Tu="@import",Ii="@keyframes",Eu="@layer",Mu=Math.abs,Xn=String.fromCharCode,Iu=Object.assign;function Lu(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Li(e){return e.trim()}function ku(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function _a(e){return e.length}function pn(e,t){return t.push(e),e}function $u(e,t){return e.map(t).join("")}var Yn=1,xr=1,ki=0,De=0,Se=0,vr="";function Zn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Yn,column:xr,length:i,return:""}}function Fr(e,t){return Iu(Zn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nu(){return Se}function Fu(){return Se=De>0?Pe(vr,--De):0,xr--,Se===10&&(xr=1,Yn--),Se}function ze(){return Se=De<ki?Pe(vr,De++):0,xr++,Se===10&&(xr=1,Yn++),Se}function pt(){return Pe(vr,De)}function Rn(){return De}function tn(e,t){return Kr(vr,e,t)}function qr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $i(e){return Yn=xr=1,ki=ft(vr=e),De=0,[]}function Ni(e){return vr="",e}function jn(e){return Li(tn(De-1,Ho(e===91?e+2:e===40?e+1:e)))}function Du(e){for(;(Se=pt())&&Se<33;)ze();return qr(e)>2||qr(Se)>3?"":" "}function Uu(e,t){for(;--t&&ze()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return tn(e,Rn()+(t<6&&pt()==32&&ze()==32))}function Ho(e){for(;ze();)switch(Se){case e:return De;case 34:case 39:e!==34&&e!==39&&Ho(Se);break;case 40:e===41&&Ho(e);break;case 92:ze();break}return De}function Bu(e,t){for(;ze()&&e+Se!==57;)if(e+Se===84&&pt()===47)break;return"/*"+tn(t,De-1)+"*"+Xn(e===47?e:ze())}function Ju(e){for(;!qr(pt());)ze();return tn(e,De)}function Vu(e){return Ni(Cn("",null,null,null,[""],e=$i(e),0,[0],e))}function Cn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,v=1,R=0,C="",k=o,j=a,P=n,O=C;g;)switch(y=R,R=ze()){case 40:if(y!=108&&Pe(O,h-1)==58){Wo(O+=oe(jn(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=jn(R);break;case 9:case 10:case 13:case 32:O+=Du(y);break;case 92:O+=Uu(Rn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(Gu(Bu(ze(),Rn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*v;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-h&&pn(b>32?ss(O+";",n,r,h-1):ss(oe(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(pn(P=as(O,t,r,u,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)Cn(O,t,P,P,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Cn(e,P,P,n&&pn(as(e,P,P,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:Cn(O,P,P,P,[""],j,0,l,j)}}u=d=b=0,_=v=1,C=O="",h=i;break;case 58:h=1+ft(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&Fu()==125)continue}switch(O+=Xn(R),R*_){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*v,v=1;break;case 64:pt()===45&&(O+=jn(ze())),f=pt(),d=h=ft(C=O+=Ju(Rn())),R++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function as(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,f=o===0?a:[""],b=_a(f),y=0,_=0,g=0;y<n;++y)for(var v=0,R=Kr(e,h+1,h=Mu(_=i[y])),C=e;v<b;++v)(C=Li(_>0?f[v]+" "+R:oe(R,/&\f/g,f[v])))&&(c[g++]=C);return Zn(e,t,r,o===0?ga:l,c,u,d)}function Gu(e,t,r){return Zn(e,t,r,Mi,Xn(Nu()),Kr(e,2,-2),0)}function ss(e,t,r,n){return Zn(e,t,r,ya,Kr(e,0,n),Kr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=_a(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function zu(e,t,r,n){switch(e.type){case Eu:if(e.children.length)break;case Tu:case ya:return e.return=e.return||e.value;case Mi:return"";case Ii:return e.return=e.value+"{"+pr(e.children,n)+"}";case ga:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wu(e){var t=_a(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function Hu(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ku=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)ze();return tn(t,De)},qu=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=Ku(De-1,r,n);break;case 2:t[n]+=jn(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Xn(o)}while(o=ze());return t},Xu=function(t,r){return Ni(qu($i(t),r))},is=new WeakMap,Yu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!is.get(n))&&!o){is.set(t,!0);for(var a=[],i=Xu(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Zu=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Fi(e,t){switch(Lu(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Fn+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Fn+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?Fi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~Wo(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Qu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ya:t.return=Fi(t.value,t.length);break;case Ii:return pr([Fr(t,{value:oe(t.value,"@","@"+ne)})],o);case ga:if(t.length)return $u(t.props,function(a){switch(ku(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Fr(t,{props:[oe(a,/:(read-\w+)/,":"+Fn+"$1")]})],o);case"::placeholder":return pr([Fr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,":"+Fn+"$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},ed=[Qu],td=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||ed,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(_)});var c,u=[Yu,Zu];{var d,h=[zu,Hu(function(_){d.insert(_)})],f=Wu(u.concat(o,h)),b=function(g){return pr(Vu(g),f)};c=function(g,v,R,C){d=R,b(g?g+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new Ou({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let Ko;typeof document=="object"&&(Ko=td({key:"css",prepend:!0}));function Di(e){const{injectFirst:t,children:r}=e;return t&&Ko?s.jsx(mr.CacheProvider,{value:Ko,children:r}):r}process.env.NODE_ENV!=="production"&&(Di.propTypes={children:m.node,injectFirst:m.bool});function rd(e){return e==null||Object.keys(e).length===0}function Ui(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(rd(o)?r:o):t;return s.jsx(mr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ui.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
30
+ <%s key={someKey} {...props} />`,jo,Gt,hc,Gt),fn[Gt+jo]=!0}}return p===n?So(xe):xo(xe),xe}}function vo(p,w,M){return hn(p,w,M,!0)}function wo(p,w,M){return hn(p,w,M,!1)}var Lr=wo,Ro=vo;$r.Fragment=n,$r.jsx=Lr,$r.jsxs=Ro}()),$r}process.env.NODE_ENV==="production"?Go.exports=wc():Go.exports=Rc();var s=Go.exports;const jc={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},Cc={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung"},Ac={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation"},Pc={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pc,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Ln(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ln(this.logger,t)}}var mt=new Ln;class Kn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Ga=e=>e==null?"":""+e,Oc=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Tc=/###/g,za=e=>e&&e.indexOf("###")>-1?e.replace(Tc,"."):e,Wa=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Wa(e))return{};const a=za(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Wa(e)?{}:{obj:e,k:za(n[o])}},Ha=(e,t,r)=>{const{obj:n,k:o}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},Ec=(e,t,r,n)=>{const{obj:o,k:a}=Jr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},kn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Mc=(e,t,r)=>{const n=kn(e,r);return n!==void 0?n:kn(t,r)},Ri=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Ri(e[n],t[n],r):e[n]=t[n]);return e},sr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ic={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Lc=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Ic[t]):e;class kc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const $c=[" ",",","?","!",";"],Nc=new kc(20),Fc=(e,t,r)=>{t=t||"",r=r||"";const n=$c.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=Nc.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},zo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},$n=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ka extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&a?l.push(...n.split(a)):l.push(n)));const c=kn(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:zo(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Ha(this.data,l,o),a.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=kn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Ri(c,n,a):c={...c,...n},Ha(this.data,l,c),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ji={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const qa={};class Nn extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Oc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Fc(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const h=this.resolve(t,r);let f=h&&h.res;const b=h&&h.usedKey||i,y=h&&h.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(h.res=k,h.usedParams=this.getUsedParamsDetails(r),h):k}if(a){const k=Array.isArray(f),j=k?[]:{},P=k?y:b;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${P}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=f[O])}f=j}}else if(R&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,j=!1;const P=r.count!==void 0&&typeof r.count!="string",O=Nn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(k=!0,f=D),this.isValidLookup(f)||(j=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:f,X=O&&D!==f&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:f),a){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)K.push(we[Q]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);const ce=(Q,Ae,Ie)=>{const ot=O&&Ie!==f?Ie:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Ae,ot,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Ae,ot,X,r),this.emit("missingKey",Q,c,Ae,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(Q=>{const Ae=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Ie=>{ce([Q],i+Ie,r[`defaultValue${Ie}`]||D)})}):ce(K,i,D))}f=this.extendTranslation(f,t,r,h,n),j&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(h.res=f,h.usedParams=this.getUsedParamsDetails(r),h):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),b=f&&f.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,b=new Array(f),y=0;y<f;y++)b[y]=arguments[y];return a&&a[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=ji.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",b=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(g=>{this.isValidLookup(n)||(l=g,!qa[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qa[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(v=>{if(this.isValidLookup(n))return;i=v;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,v,g,r);else{let k;f&&(k=this.pluralResolver.getSuffix(v,r.count,r));const j=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(R.push(d+k),r.ordinal&&k.indexOf(P)===0&&R.push(d+k.replace(P,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),f&&(R.push(O+k),r.ordinal&&k.indexOf(P)===0&&R.push(O+k.replace(P,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(v,g,C,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const a of r)delete o[a]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Co=e=>e.charAt(0).toUpperCase()+e.slice(1);class Xa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mt.create("languageUtils")}getScriptPartFromCode(t){if(t=$n(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=$n(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Co(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let Dc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Uc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Bc=["v1","v2","v3"],Jc=["v4"],Ya={zero:0,one:1,two:2,few:3,many:4,other:5},Vc=()=>{const e={};return Dc.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Uc[t.fc]}})}),e};class Gc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=mt.create("pluralResolver"),(!this.options.compatibilityJSON||Jc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Vc()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules($n(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Ya[o]-Ya[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Bc.includes(this.options.compatibilityJSON)}}const Za=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Mc(e,t,r);return!a&&o&&typeof r=="string"&&(a=zo(e,r,n),a===void 0&&(a=zo(t,r,n))),a},Ao=e=>e.replace(/\$/g,"$$$$");class zc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Lc,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?sr(a):i||"{{",this.suffix=l?sr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?sr(f):b||sr("$t("),this.nestingSuffix=y?sr(y):_||sr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const v=Za(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:b}):v}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Za(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Ao(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Ao(this.escape(b)):Ao(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(h){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ga(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),h?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let f=`{${h[1]}`;c=h[0],f=this.interpolate(f,i);const b=f.match(/'/g),y=f.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Ga(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const Wc=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},ir=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e($n(n),o),t[i]=l),l(r)}};class Hc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("formatter"),this.options=t,this.formats={number:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:ir((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:ir((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:ir((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ir(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=Wc(c);if(this.formats[u]){let h=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=f.locale||f.lng||o.locale||o.lng||n;h=this.formats[u](l,b,{...d,...o,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Kc=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qc extends Kn{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=mt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(h=>{const f=`${u}|${h}`;!n.reload&&this.store.hasResourceBundle(u,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Ec(c.loaded,[a],i),Kc(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Qa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),es=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),mn=()=>{},Xc=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Wr extends Kn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=es(t),this.services={},this.logger=mt,this.modules={external:[]},Xc(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Qa();this.options={...o,...this.options,...es(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?mt.init(a(this.modules.logger),this.options):mt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Hc);const h=new Xa(this.options);this.store=new Ka(this.options.resources,this.options);const f=this.services;f.logger=mt,f.resourceStore=this.store,f.languageUtils=h,f.pluralResolver=new Gc(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new zc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qc(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=mn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Nr(),u=()=>{const d=(h,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(h,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=mn),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ji.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Nr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${f}${y}`):b=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Xa(Qa());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Wr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Wr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new Ka(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Nn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ee=Wr.createInstance();Ee.createInstance=Wr.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Ci=Ee.createInstance();Ci.use(yc).use(Ft.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Ac},de:{translations:Cc}},ns:["translations"],defaultNS:"translations"});function en(e){return r=>s.jsx(Yc,{children:s.jsx(e,{...r})})}const Yc=({children:e})=>s.jsx(Ft.I18nextProvider,{i18n:Ci,children:e}),Zc=en(e=>{const t=Ba.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await pc.createHighlighter({langs:[jc],themes:["dark-plus","light-plus"]})),gc.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(Ba,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Qc="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ai(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ai(t))]}function eu(e,t){return new RegExp(t??Qc).test(e)}function Pi(e,t){return Ai(e).filter(r=>eu(r.name,t))}function qn(e){Z.useEffect(e,[])}function Oi(e){qn(()=>br.autorun(e))}function Ti(e,t,r){qn(()=>br.reaction(e,t,r))}function Sr(e){return qn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ye({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=_c.useThree();Z.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):Pi(f),u(),l())},[]);function c(f){o.current=f,h.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}Oi(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function tu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function ru({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function nu({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function ou({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function au({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function su({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ts({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function iu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function lu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function cu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function uu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function du({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function fu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function hu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function mu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function pu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function gu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function yu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function rs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function _u({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const ns="line",os="mesh";function Po({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function o(c,u){const d=new vt.Vector3,h=new vt.Quaternion,f=new vt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new vt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,h);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(ns),d.getObjectByName(os),u[h])})}function l(c){return Pi(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:ns,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:os,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const bu=console.warn;function xu(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&bu(e)}},[]),s.jsx(s.Fragment,{})}function pa(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Ei=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=pa,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Ce.Mesh&&!h.userData.isGhost){h.material instanceof Ce.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=tu;break;case"UniversalRobots_UR3e":i=ru;break;case"UniversalRobots_UR5":i=nu;break;case"UniversalRobots_UR5e":i=ou;break;case"UniversalRobots_UR10":i=au;break;case"UniversalRobots_UR10e":i=su;break;case"Yaskawa_AR900":i=ts;break;case"Yaskawa_GP7":i=ts;break;case"Yaskawa_AR1440":i=iu;break;case"Yaskawa_AR1730":i=lu;break;case"Yaskawa_AR2010":i=cu;break;case"Yaskawa_AR3120":i=uu;break;case"FANUC_CRX10iA":i=du;break;case"FANUC_CRX20iAL":i=fu;break;case"FANUC_CRX25iA":i=hu;break;case"FANUC_CRX25iAL":i=mu;break;case"FANUC_ARC_Mate_120iD":i=rs;break;case"FANUC_ARC_Mate_120iD35":i=rs;break;case"FANUC_ARC_Mate_100iD":i=yu;break;case"KUKA_KR210_R2700":i=pu;break;case"KUKA_KR270_R2700":i=gu;break;case"ABB_1200_07_7":i=_u;break;default:console.warn(`Unknown robot type: ${t}`),i=Po}return s.jsxs(bc.ErrorBoundary,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(xu,{})]})});function Su({connectedMotionGroup:e,getModel:t=pa,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Ei,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function vu(){return s.jsx(ie.Environment,{children:s.jsx(wu,{})})}function wu({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ru(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function ju({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=Ru(l);if(c.isCoplanar&&c.normal){const h=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(h)}let u;try{u=new xc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Hr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"}));var Au=!1;function Pu(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ou(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Tu=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Au:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ou(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Pu(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Fn="-moz-",ne="-webkit-",Mi="comm",ga="rule",ya="decl",Eu="@import",Ii="@keyframes",Mu="@layer",Iu=Math.abs,Xn=String.fromCharCode,Lu=Object.assign;function ku(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Li(e){return e.trim()}function $u(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function _a(e){return e.length}function pn(e,t){return t.push(e),e}function Nu(e,t){return e.map(t).join("")}var Yn=1,xr=1,ki=0,De=0,Se=0,vr="";function Zn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Yn,column:xr,length:i,return:""}}function Fr(e,t){return Lu(Zn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fu(){return Se}function Du(){return Se=De>0?Pe(vr,--De):0,xr--,Se===10&&(xr=1,Yn--),Se}function ze(){return Se=De<ki?Pe(vr,De++):0,xr++,Se===10&&(xr=1,Yn++),Se}function pt(){return Pe(vr,De)}function Rn(){return De}function tn(e,t){return Kr(vr,e,t)}function qr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $i(e){return Yn=xr=1,ki=ft(vr=e),De=0,[]}function Ni(e){return vr="",e}function jn(e){return Li(tn(De-1,Ho(e===91?e+2:e===40?e+1:e)))}function Uu(e){for(;(Se=pt())&&Se<33;)ze();return qr(e)>2||qr(Se)>3?"":" "}function Bu(e,t){for(;--t&&ze()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return tn(e,Rn()+(t<6&&pt()==32&&ze()==32))}function Ho(e){for(;ze();)switch(Se){case e:return De;case 34:case 39:e!==34&&e!==39&&Ho(Se);break;case 40:e===41&&Ho(e);break;case 92:ze();break}return De}function Ju(e,t){for(;ze()&&e+Se!==57;)if(e+Se===84&&pt()===47)break;return"/*"+tn(t,De-1)+"*"+Xn(e===47?e:ze())}function Vu(e){for(;!qr(pt());)ze();return tn(e,De)}function Gu(e){return Ni(Cn("",null,null,null,[""],e=$i(e),0,[0],e))}function Cn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,v=1,R=0,C="",k=o,j=a,P=n,O=C;g;)switch(y=R,R=ze()){case 40:if(y!=108&&Pe(O,h-1)==58){Wo(O+=oe(jn(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=jn(R);break;case 9:case 10:case 13:case 32:O+=Uu(y);break;case 92:O+=Bu(Rn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(zu(Ju(ze(),Rn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*v;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-h&&pn(b>32?ss(O+";",n,r,h-1):ss(oe(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(pn(P=as(O,t,r,u,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)Cn(O,t,P,P,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Cn(e,P,P,n&&pn(as(e,P,P,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:Cn(O,P,P,P,[""],j,0,l,j)}}u=d=b=0,_=v=1,C=O="",h=i;break;case 58:h=1+ft(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&Du()==125)continue}switch(O+=Xn(R),R*_){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*v,v=1;break;case 64:pt()===45&&(O+=jn(ze())),f=pt(),d=h=ft(C=O+=Vu(Rn())),R++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function as(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,f=o===0?a:[""],b=_a(f),y=0,_=0,g=0;y<n;++y)for(var v=0,R=Kr(e,h+1,h=Iu(_=i[y])),C=e;v<b;++v)(C=Li(_>0?f[v]+" "+R:oe(R,/&\f/g,f[v])))&&(c[g++]=C);return Zn(e,t,r,o===0?ga:l,c,u,d)}function zu(e,t,r){return Zn(e,t,r,Mi,Xn(Fu()),Kr(e,2,-2),0)}function ss(e,t,r,n){return Zn(e,t,r,ya,Kr(e,0,n),Kr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=_a(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Wu(e,t,r,n){switch(e.type){case Mu:if(e.children.length)break;case Eu:case ya:return e.return=e.return||e.value;case Mi:return"";case Ii:return e.return=e.value+"{"+pr(e.children,n)+"}";case ga:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hu(e){var t=_a(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function Ku(e){return function(t){t.root||(t=t.return)&&e(t)}}var qu=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)ze();return tn(t,De)},Xu=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=qu(De-1,r,n);break;case 2:t[n]+=jn(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Xn(o)}while(o=ze());return t},Yu=function(t,r){return Ni(Xu($i(t),r))},is=new WeakMap,Zu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!is.get(n))&&!o){is.set(t,!0);for(var a=[],i=Yu(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Qu=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Fi(e,t){switch(ku(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Fn+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Fn+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?Fi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~Wo(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var ed=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ya:t.return=Fi(t.value,t.length);break;case Ii:return pr([Fr(t,{value:oe(t.value,"@","@"+ne)})],o);case ga:if(t.length)return Nu(t.props,function(a){switch($u(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Fr(t,{props:[oe(a,/:(read-\w+)/,":"+Fn+"$1")]})],o);case"::placeholder":return pr([Fr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,":"+Fn+"$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},td=[ed],rd=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||td,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(_)});var c,u=[Zu,Qu];{var d,h=[Wu,Ku(function(_){d.insert(_)})],f=Hu(u.concat(o,h)),b=function(g){return pr(Gu(g),f)};c=function(g,v,R,C){d=R,b(g?g+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new Tu({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let Ko;typeof document=="object"&&(Ko=rd({key:"css",prepend:!0}));function Di(e){const{injectFirst:t,children:r}=e;return t&&Ko?s.jsx(mr.CacheProvider,{value:Ko,children:r}):r}process.env.NODE_ENV!=="production"&&(Di.propTypes={children:m.node,injectFirst:m.bool});function nd(e){return e==null||Object.keys(e).length===0}function Ui(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(nd(o)?r:o):t;return s.jsx(mr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ui.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
31
31
  * @mui/styled-engine v5.16.6
32
32
  *
33
33
  * @license MIT
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */function Bi(e,t){const r=Sc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Ji=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nd=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ui,StyledEngineProvider:Di,ThemeContext:mr.ThemeContext,css:mr.css,default:Bi,internal_processStyles:Ji,keyframes:mr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function Ue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vi(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Vi(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=tt(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Vi(t[o]):t[o]:n[o]=t[o]}),n}const od=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),ad=["values","unit","step"],sd=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>A({},r,{[n.key]:n.val}),{})};function Gi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,ad),a=sd(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function h(f){const b=i.indexOf(f);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:h,unit:r},o)}const id={borderRadius:4},Dt=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const ba={xs:0,sm:600,md:900,lg:1200,xl:1536},ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ba[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ls;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||ba).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function zi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Wi(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ld(e,...t){const r=zi(e),n=[r,...t].reduce((o,a)=>tt(o,a),{});return Wi(Object.keys(r),n)}function cd(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Oo({values:e,breakpoints:t,base:r}){const n=r||cd(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const ud=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function Qn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Dn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qn(e,r)||n,t&&(o=t(o,n,e)),o}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=Qn(c,n)||{};return it(i,l,h=>{let f=Dn(u,o,h);return h===f&&typeof h=="string"&&(f=Dn(u,o,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function dd(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const fd={m:"margin",p:"padding"},hd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},md=dd(e=>{if(e.length>2)if(cs[e])e=cs[e];else return[e];const[t,r]=e.split(""),n=fd[t],o=hd[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),eo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],to=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pd=[...eo,...to];function rn(e,t,r,n){var o;const a=(o=Qn(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
37
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Ji=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},od=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ui,StyledEngineProvider:Di,ThemeContext:mr.ThemeContext,css:mr.css,default:Bi,internal_processStyles:Ji,keyframes:mr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function Ue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vi(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Vi(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=tt(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Vi(t[o]):t[o]:n[o]=t[o]}),n}const ad=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),sd=["values","unit","step"],id=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>A({},r,{[n.key]:n.val}),{})};function Gi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,sd),a=id(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function h(f){const b=i.indexOf(f);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:h,unit:r},o)}const ld={borderRadius:4},Dt=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const ba={xs:0,sm:600,md:900,lg:1200,xl:1536},ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ba[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ls;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||ba).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function zi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Wi(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function cd(e,...t){const r=zi(e),n=[r,...t].reduce((o,a)=>tt(o,a),{});return Wi(Object.keys(r),n)}function ud(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Oo({values:e,breakpoints:t,base:r}){const n=r||ud(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const dd=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function Qn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Dn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qn(e,r)||n,t&&(o=t(o,n,e)),o}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=Qn(c,n)||{};return it(i,l,h=>{let f=Dn(u,o,h);return h===f&&typeof h=="string"&&(f=Dn(u,o,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function fd(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hd={m:"margin",p:"padding"},md={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pd=fd(e=>{if(e.length>2)if(cs[e])e=cs[e];else return[e];const[t,r]=e.split(""),n=hd[t],o=md[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),eo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],to=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gd=[...eo,...to];function rn(e,t,r,n){var o;const a=(o=Qn(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
38
38
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
39
39
  `))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
40
- `)),()=>{})}function xa(e){return rn(e,"spacing",8,"spacing")}function Ht(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function gd(e,t){return r=>e.reduce((n,o)=>(n[o]=Ht(t,r),n),{})}function yd(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=md(r),a=gd(o,n),i=e[r];return it(e,i,a)}function Hi(e,t){const r=xa(e.theme);return Object.keys(e).map(n=>yd(e,t,n,r)).reduce(Vr,{})}function me(e){return Hi(e,eo)}me.propTypes=process.env.NODE_ENV!=="production"?eo.reduce((e,t)=>(e[t]=Dt,e),{}):{};me.filterProps=eo;function pe(e){return Hi(e,to)}pe.propTypes=process.env.NODE_ENV!=="production"?to.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=to;process.env.NODE_ENV!=="production"&&pd.reduce((e,t)=>(e[t]=Dt,e),{});function _d(e=8){if(e.mui)return e;const t=xa({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function ro(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const bd=nt("border",Qe),xd=nt("borderTop",Qe),Sd=nt("borderRight",Qe),vd=nt("borderBottom",Qe),wd=nt("borderLeft",Qe),Rd=nt("borderColor"),jd=nt("borderTopColor"),Cd=nt("borderRightColor"),Ad=nt("borderBottomColor"),Pd=nt("borderLeftColor"),Od=nt("outline",Qe),Td=nt("outlineColor"),no=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ht(t,n)});return it(e,e.borderRadius,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};no.filterProps=["borderRadius"];ro(bd,xd,Sd,vd,wd,Rd,jd,Cd,Ad,Pd,no,Od,Td);const oo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rn(e.theme,"spacing",8,"gap"),r=n=>({gap:Ht(t,n)});return it(e,e.gap,r)}return null};oo.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};oo.filterProps=["gap"];const ao=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ht(t,n)});return it(e,e.columnGap,r)}return null};ao.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};ao.filterProps=["columnGap"];const so=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ht(t,n)});return it(e,e.rowGap,r)}return null};so.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};so.filterProps=["rowGap"];const Ed=_e({prop:"gridColumn"}),Md=_e({prop:"gridRow"}),Id=_e({prop:"gridAutoFlow"}),Ld=_e({prop:"gridAutoColumns"}),kd=_e({prop:"gridAutoRows"}),$d=_e({prop:"gridTemplateColumns"}),Nd=_e({prop:"gridTemplateRows"}),Fd=_e({prop:"gridTemplateAreas"}),Dd=_e({prop:"gridArea"});ro(oo,ao,so,Ed,Md,Id,Ld,kd,$d,Nd,Fd,Dd);function gr(e,t){return t==="grey"?t:e}const Ud=_e({prop:"color",themeKey:"palette",transform:gr}),Bd=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Jd=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});ro(Ud,Bd,Jd);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Vd=_e({prop:"width",transform:Ge}),Sa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ba[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Sa.filterProps=["maxWidth"];const Gd=_e({prop:"minWidth",transform:Ge}),zd=_e({prop:"height",transform:Ge}),Wd=_e({prop:"maxHeight",transform:Ge}),Hd=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Kd=_e({prop:"boxSizing"});ro(Vd,Sa,Gd,zd,Wd,Hd,Kd);const nn={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:no},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oo},rowGap:{style:so},columnGap:{style:ao},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Sa},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qd(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Xd(e,t){return typeof e=="function"?e(t):e}function Ki(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Qn(o,u)||{};return h?h(i):it(i,n,y=>{let _=Dn(f,d,y);return y===_&&typeof y=="string"&&(_=Dn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nn;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=zi(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=Xd(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));qd(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),Wi(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const on=Ki();on.filterProps=["sx"];function qi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Yd=["breakpoints","palette","spacing","shape"];function an(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Yd),l=Gi(r),c=_d(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},id,a)},i);return u.applyStyles=qi,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const Zd=Object.freeze(Object.defineProperty({__proto__:null,default:an,private_createBreakpoints:Gi,unstable_applyStyles:qi},Symbol.toStringTag,{value:"Module"}));function Qd(e){return Object.keys(e).length===0}function ef(e=null){const t=N.useContext(mr.ThemeContext);return!t||Qd(t)?e:t}const tf=an();function rf(e=tf){return ef(e)}const nf=["sx"],of=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Xi(e){const{sx:t}=e,r=Ue(e,nf),{systemProps:n,otherProps:o}=of(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const af=Object.freeze(Object.defineProperty({__proto__:null,default:on,extendSxProp:Xi,unstable_createStyleFunctionSx:Ki,unstable_defaultSxConfig:nn},Symbol.toStringTag,{value:"Module"})),us=e=>e,sf=()=>{let e=us;return{configure(t){e=t},generate(t){return e(t)},reset(){e=us}}},Yi=sf();function Zi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zi(e))&&(n&&(n+=" "),n+=t);return n}const lf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sn(e,t,r="Mui"){const n=lf[t];return n?`${r}-${n}`:`${Yi.generate(e)}-${t}`}function Qi(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}var qo={exports:{}},ae={};/**
40
+ `)),()=>{})}function xa(e){return rn(e,"spacing",8,"spacing")}function Ht(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function yd(e,t){return r=>e.reduce((n,o)=>(n[o]=Ht(t,r),n),{})}function _d(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=pd(r),a=yd(o,n),i=e[r];return it(e,i,a)}function Hi(e,t){const r=xa(e.theme);return Object.keys(e).map(n=>_d(e,t,n,r)).reduce(Vr,{})}function me(e){return Hi(e,eo)}me.propTypes=process.env.NODE_ENV!=="production"?eo.reduce((e,t)=>(e[t]=Dt,e),{}):{};me.filterProps=eo;function pe(e){return Hi(e,to)}pe.propTypes=process.env.NODE_ENV!=="production"?to.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=to;process.env.NODE_ENV!=="production"&&gd.reduce((e,t)=>(e[t]=Dt,e),{});function bd(e=8){if(e.mui)return e;const t=xa({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function ro(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const xd=nt("border",Qe),Sd=nt("borderTop",Qe),vd=nt("borderRight",Qe),wd=nt("borderBottom",Qe),Rd=nt("borderLeft",Qe),jd=nt("borderColor"),Cd=nt("borderTopColor"),Ad=nt("borderRightColor"),Pd=nt("borderBottomColor"),Od=nt("borderLeftColor"),Td=nt("outline",Qe),Ed=nt("outlineColor"),no=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ht(t,n)});return it(e,e.borderRadius,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};no.filterProps=["borderRadius"];ro(xd,Sd,vd,wd,Rd,jd,Cd,Ad,Pd,Od,no,Td,Ed);const oo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rn(e.theme,"spacing",8,"gap"),r=n=>({gap:Ht(t,n)});return it(e,e.gap,r)}return null};oo.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};oo.filterProps=["gap"];const ao=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ht(t,n)});return it(e,e.columnGap,r)}return null};ao.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};ao.filterProps=["columnGap"];const so=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ht(t,n)});return it(e,e.rowGap,r)}return null};so.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};so.filterProps=["rowGap"];const Md=_e({prop:"gridColumn"}),Id=_e({prop:"gridRow"}),Ld=_e({prop:"gridAutoFlow"}),kd=_e({prop:"gridAutoColumns"}),$d=_e({prop:"gridAutoRows"}),Nd=_e({prop:"gridTemplateColumns"}),Fd=_e({prop:"gridTemplateRows"}),Dd=_e({prop:"gridTemplateAreas"}),Ud=_e({prop:"gridArea"});ro(oo,ao,so,Md,Id,Ld,kd,$d,Nd,Fd,Dd,Ud);function gr(e,t){return t==="grey"?t:e}const Bd=_e({prop:"color",themeKey:"palette",transform:gr}),Jd=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Vd=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});ro(Bd,Jd,Vd);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Gd=_e({prop:"width",transform:Ge}),Sa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ba[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Sa.filterProps=["maxWidth"];const zd=_e({prop:"minWidth",transform:Ge}),Wd=_e({prop:"height",transform:Ge}),Hd=_e({prop:"maxHeight",transform:Ge}),Kd=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const qd=_e({prop:"boxSizing"});ro(Gd,Sa,zd,Wd,Hd,Kd,qd);const nn={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:no},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oo},rowGap:{style:so},columnGap:{style:ao},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Sa},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xd(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Yd(e,t){return typeof e=="function"?e(t):e}function Ki(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Qn(o,u)||{};return h?h(i):it(i,n,y=>{let _=Dn(f,d,y);return y===_&&typeof y=="string"&&(_=Dn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nn;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=zi(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=Yd(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));Xd(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),Wi(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const on=Ki();on.filterProps=["sx"];function qi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Zd=["breakpoints","palette","spacing","shape"];function an(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Zd),l=Gi(r),c=bd(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},ld,a)},i);return u.applyStyles=qi,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const Qd=Object.freeze(Object.defineProperty({__proto__:null,default:an,private_createBreakpoints:Gi,unstable_applyStyles:qi},Symbol.toStringTag,{value:"Module"}));function ef(e){return Object.keys(e).length===0}function tf(e=null){const t=N.useContext(mr.ThemeContext);return!t||ef(t)?e:t}const rf=an();function nf(e=rf){return tf(e)}const of=["sx"],af=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Xi(e){const{sx:t}=e,r=Ue(e,of),{systemProps:n,otherProps:o}=af(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const sf=Object.freeze(Object.defineProperty({__proto__:null,default:on,extendSxProp:Xi,unstable_createStyleFunctionSx:Ki,unstable_defaultSxConfig:nn},Symbol.toStringTag,{value:"Module"})),us=e=>e,lf=()=>{let e=us;return{configure(t){e=t},generate(t){return e(t)},reset(){e=us}}},Yi=lf();function Zi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zi(e))&&(n&&(n+=" "),n+=t);return n}const cf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sn(e,t,r="Mui"){const n=cf[t];return n?`${r}-${n}`:`${Yi.generate(e)}-${t}`}function Qi(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}var qo={exports:{}},ae={};/**
41
41
  * @license React
42
42
  * react-is.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var ds;function cf(){if(ds)return ae;ds=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case h:case a:return g;default:return v}}case t:return v}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=f,ae.Memo=h,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=u,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(g){return _(g)===i},ae.isContextProvider=function(g){return _(g)===a},ae.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ae.isForwardRef=function(g){return _(g)===c},ae.isFragment=function(g){return _(g)===r},ae.isLazy=function(g){return _(g)===f},ae.isMemo=function(g){return _(g)===h},ae.isPortal=function(g){return _(g)===t},ae.isProfiler=function(g){return _(g)===o},ae.isStrictMode=function(g){return _(g)===n},ae.isSuspense=function(g){return _(g)===u},ae.isSuspenseList=function(g){return _(g)===d},ae.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===h||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
48
+ */var ds;function uf(){if(ds)return ae;ds=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case h:case a:return g;default:return v}}case t:return v}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=f,ae.Memo=h,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=u,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(g){return _(g)===i},ae.isContextProvider=function(g){return _(g)===a},ae.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ae.isForwardRef=function(g){return _(g)===c},ae.isFragment=function(g){return _(g)===r},ae.isLazy=function(g){return _(g)===f},ae.isMemo=function(g){return _(g)===h},ae.isPortal=function(g){return _(g)===t},ae.isProfiler=function(g){return _(g)===o},ae.isStrictMode=function(g){return _(g)===n},ae.isSuspense=function(g){return _(g)===u},ae.isSuspenseList=function(g){return _(g)===d},ae.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===h||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
49
49
  * @license React
50
50
  * react-is.development.js
51
51
  *
@@ -53,11 +53,11 @@ React keys must be passed directly to JSX without using spread:
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var fs;function uf(){return fs||(fs=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,v=!1,R=!1,C;C=Symbol.for("react.module.reference");function k(E){return!!(typeof E=="string"||typeof E=="function"||E===r||E===o||R||E===n||E===u||E===d||v||E===b||y||_||g||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===h||E.$$typeof===a||E.$$typeof===i||E.$$typeof===c||E.$$typeof===C||E.getModuleId!==void 0))}function j(E){if(typeof E=="object"&&E!==null){var ee=E.$$typeof;switch(ee){case e:var he=E.type;switch(he){case r:case o:case n:case u:case d:return he;default:var Le=he&&he.$$typeof;switch(Le){case l:case i:case c:case f:case h:case a:return Le;default:return ee}}case t:return ee}}}var P=i,O=a,z=e,le=c,ue=r,D=f,q=h,G=t,X=o,K=n,we=u,ce=d,Q=!1,Ae=!1;function Ie(E){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(E){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function bt(E){return j(E)===i}function Ke(E){return j(E)===a}function Re(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function Tt(E){return j(E)===c}function ct(E){return j(E)===r}function qe(E){return j(E)===f}function Be(E){return j(E)===h}function ut(E){return j(E)===t}function dt(E){return j(E)===o}function Ut(E){return j(E)===n}function xt(E){return j(E)===u}function Je(E){return j(E)===d}se.ContextConsumer=P,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=q,se.Portal=G,se.Profiler=X,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ie,se.isConcurrentMode=ot,se.isContextConsumer=bt,se.isContextProvider=Ke,se.isElement=Re,se.isForwardRef=Tt,se.isFragment=ct,se.isLazy=qe,se.isMemo=Be,se.isPortal=ut,se.isProfiler=dt,se.isStrictMode=Ut,se.isSuspense=xt,se.isSuspenseList=Je,se.isValidElementType=k,se.typeOf=j}()),se}process.env.NODE_ENV==="production"?qo.exports=cf():qo.exports=uf();var hs=qo.exports;const df=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function el(e){const t=`${e}`.match(df);return t&&t[1]||""}function tl(e,t=""){return e.displayName||e.name||el(e)||t}function ms(e,t,r){const n=tl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function rl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hs.ForwardRef:return ms(e,e.render,"ForwardRef");case hs.Memo:return ms(e,e.type,"memo");default:return}}}const ff=Object.freeze(Object.defineProperty({__proto__:null,default:rl,getFunctionName:el},Symbol.toStringTag,{value:"Module"})),hf=["ownerState"],mf=["variants"],pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function gf(e){return Object.keys(e).length===0}function yf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function To(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _f=an(),ps=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return gf(t)?e:t[r]||t}function bf(e){return e?(t,r)=>r[e]:null}function An(e,t){let{ownerState:r}=t,n=Ue(t,hf);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>An(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,mf);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function xf(e={}){const{themeId:t,defaultTheme:r=_f,rootShouldForwardProp:n=To,slotShouldForwardProp:o=To}=e,a=i=>on(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Ji(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=bf(ps(u))}=l,b=Ue(l,pf),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ps(u||"Root")}`);let v=To;u==="Root"||u==="root"?v=n:u?v=o:yf(i)&&(v=void 0);const R=Bi(i,A({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||wt(j)?P=>An(j,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=gn(A({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=An(we,A({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=gn(A({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return An({variants:X},A({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${rl(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}const Sf=xf();function Un(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=Un(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function vf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Un(t.components[r].defaultProps,n)}function wf({props:e,name:t,defaultTheme:r,themeId:n}){let o=rf(r);return n&&(o=o[n]||o),vf({theme:o,name:t,props:e})}const va=typeof window<"u"?N.useLayoutEffect:N.useEffect;function hr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Rf=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));function gs(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function jf(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Cf(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Af(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,a,i)=>{const l=o||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function Pf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function yr(e){return e&&e.ownerDocument||document}function Of(e){return yr(e).defaultView||window}function Tf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const h=u||i,f=r==null?void 0:r[h];if(f){const b=f(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function nl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ys=0;function Ef(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(ys+=1,r(`mui-${ys}`))},[t]),n}const _s=N.useId;function Mf(e){if(_s!==void 0){const t=_s();return e??t}return Ef(e)}function If(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function ol({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[a,i]=N.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
56
+ */var fs;function df(){return fs||(fs=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,v=!1,R=!1,C;C=Symbol.for("react.module.reference");function k(E){return!!(typeof E=="string"||typeof E=="function"||E===r||E===o||R||E===n||E===u||E===d||v||E===b||y||_||g||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===h||E.$$typeof===a||E.$$typeof===i||E.$$typeof===c||E.$$typeof===C||E.getModuleId!==void 0))}function j(E){if(typeof E=="object"&&E!==null){var ee=E.$$typeof;switch(ee){case e:var he=E.type;switch(he){case r:case o:case n:case u:case d:return he;default:var Le=he&&he.$$typeof;switch(Le){case l:case i:case c:case f:case h:case a:return Le;default:return ee}}case t:return ee}}}var P=i,O=a,z=e,le=c,ue=r,D=f,q=h,G=t,X=o,K=n,we=u,ce=d,Q=!1,Ae=!1;function Ie(E){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(E){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function bt(E){return j(E)===i}function Ke(E){return j(E)===a}function Re(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function Ot(E){return j(E)===c}function ct(E){return j(E)===r}function qe(E){return j(E)===f}function Be(E){return j(E)===h}function ut(E){return j(E)===t}function dt(E){return j(E)===o}function Ut(E){return j(E)===n}function xt(E){return j(E)===u}function Je(E){return j(E)===d}se.ContextConsumer=P,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=q,se.Portal=G,se.Profiler=X,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ie,se.isConcurrentMode=ot,se.isContextConsumer=bt,se.isContextProvider=Ke,se.isElement=Re,se.isForwardRef=Ot,se.isFragment=ct,se.isLazy=qe,se.isMemo=Be,se.isPortal=ut,se.isProfiler=dt,se.isStrictMode=Ut,se.isSuspense=xt,se.isSuspenseList=Je,se.isValidElementType=k,se.typeOf=j}()),se}process.env.NODE_ENV==="production"?qo.exports=uf():qo.exports=df();var hs=qo.exports;const ff=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function el(e){const t=`${e}`.match(ff);return t&&t[1]||""}function tl(e,t=""){return e.displayName||e.name||el(e)||t}function ms(e,t,r){const n=tl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function rl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hs.ForwardRef:return ms(e,e.render,"ForwardRef");case hs.Memo:return ms(e,e.type,"memo");default:return}}}const hf=Object.freeze(Object.defineProperty({__proto__:null,default:rl,getFunctionName:el},Symbol.toStringTag,{value:"Module"})),mf=["ownerState"],pf=["variants"],gf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yf(e){return Object.keys(e).length===0}function _f(e){return typeof e=="string"&&e.charCodeAt(0)>96}function To(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bf=an(),ps=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return yf(t)?e:t[r]||t}function xf(e){return e?(t,r)=>r[e]:null}function An(e,t){let{ownerState:r}=t,n=Ue(t,mf);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>An(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,pf);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function Sf(e={}){const{themeId:t,defaultTheme:r=bf,rootShouldForwardProp:n=To,slotShouldForwardProp:o=To}=e,a=i=>on(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Ji(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=xf(ps(u))}=l,b=Ue(l,gf),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ps(u||"Root")}`);let v=To;u==="Root"||u==="root"?v=n:u?v=o:_f(i)&&(v=void 0);const R=Bi(i,A({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||wt(j)?P=>An(j,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=gn(A({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=An(we,A({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=gn(A({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return An({variants:X},A({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${rl(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}const vf=Sf();function Un(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=Un(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function wf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Un(t.components[r].defaultProps,n)}function Rf({props:e,name:t,defaultTheme:r,themeId:n}){let o=nf(r);return n&&(o=o[n]||o),wf({theme:o,name:t,props:e})}const va=typeof window<"u"?N.useLayoutEffect:N.useEffect;function hr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const jf=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));function gs(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Cf(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Af(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Pf(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,a,i)=>{const l=o||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function Of(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function yr(e){return e&&e.ownerDocument||document}function Tf(e){return yr(e).defaultView||window}function Ef(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const h=u||i,f=r==null?void 0:r[h];if(f){const b=f(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function nl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ys=0;function Mf(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(ys+=1,r(`mui-${ys}`))},[t]),n}const _s=N.useId;function If(e){if(_s!==void 0){const t=_s();return e??t}return Mf(e)}function Lf(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function ol({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[a,i]=N.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
57
57
  `))},[n,r,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
58
- `))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Pn(e){const t=N.useRef(e);return va(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Bn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{nl(r,t)})},e)}class wa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let io=!0,Xo=!1;const Lf=new wa,kf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $f(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Nf(e){e.metaKey||e.altKey||e.ctrlKey||(io=!0)}function Eo(){io=!1}function Ff(){this.visibilityState==="hidden"&&Xo&&(io=!0)}function Df(e){e.addEventListener("keydown",Nf,!0),e.addEventListener("mousedown",Eo,!0),e.addEventListener("pointerdown",Eo,!0),e.addEventListener("touchstart",Eo,!0),e.addEventListener("visibilitychange",Ff,!0)}function Uf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return io||$f(t)}function al(){const e=N.useCallback(o=>{o!=null&&Df(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,Lf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return Uf(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Bf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ra(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Jf(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function On(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Vf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=On(A({},o,n)),l=bs(n),c=bs(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}function Gf(e,t,r){return typeof e=="function"?e(t,r):e}const zf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,zf),l=a?{}:Gf(n,o),{props:c,internalRef:u}=Vf(A({},i,{externalSlotProps:l})),d=Bn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jf(r,A({},c,{ref:d}),o)}const Wf=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const Hf=()=>{const e=N.useContext(Wf);return e??!1},Kf=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function qf(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Un(o.defaultProps,n):!o.styleOverrides&&!o.variants?Un(o,n):n}function Xf({props:e,name:t}){const r=N.useContext(Kf);return qf({props:e,name:t,theme:{components:r}})}const Yf=["component","direction","spacing","divider","children","className","useFlexGap"],Zf=an(),Qf=Sf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function eh(e){return wf({props:e,name:"MuiStack",defaultTheme:Zf})}function th(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const rh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],nh=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Oo({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xa(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Oo({values:e.direction,base:o}),i=Oo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Ht(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rh(u?a[u]:e.direction)}`]:Ht(n,c)}}))}return r=ld(t.breakpoints,r),r};function oh(e={}){const{createStyledComponent:t=Qf,useThemeProps:r=eh,componentName:n="MuiStack"}=e,o=()=>Ra({root:["root"]},c=>sn(n,c),{}),a=t(nh),i=N.forwardRef(function(c,u){const d=r(c),h=Xi(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:v,useFlexGap:R=!1}=h,C=Ue(h,Yf),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:gt(j.root,v)},C,{children:_?th(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}var ln={},sl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sl);var lo=sl.exports,Mo={exports:{}},xs;function ah(){return xs||(xs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mo)),Mo.exports}var Io={exports:{}},Ss;function sh(){return Ss||(Ss=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Io)),Io.exports}const ih=Ct(nd),lh=Ct(od),ch=Ct(ud),uh=Ct(ff),dh=Ct(Zd),fh=Ct(af);var wr=lo;Object.defineProperty(ln,"__esModule",{value:!0});var hh=ln.default=Ah;ln.shouldForwardProp=Tn;ln.systemDefaultTheme=void 0;var Ze=wr(ah()),Yo=wr(sh()),vs=vh(ih),mh=lh,ph=wr(ch),gh=wr(uh),yh=wr(dh),_h=wr(fh);const bh=["ownerState"],xh=["variants"],Sh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function il(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(il=function(n){return n?r:t})(e)}function vh(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=il(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function wh(e){return Object.keys(e).length===0}function Rh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jh=ln.systemDefaultTheme=(0,yh.default)(),ws=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return wh(t)?e:t[r]||t}function Ch(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,Yo.default)(t,bh);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Yo.default)(o,xh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function Ah(e={}){const{themeId:t,defaultTheme:r=jh,rootShouldForwardProp:n=Tn,slotShouldForwardProp:o=Tn}=e,a=i=>(0,_h.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,vs.internal_processStyles)(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Ch(ws(u))}=l,b=(0,Yo.default)(l,Sh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ws(u||"Root")}`);let v=Tn;u==="Root"||u==="root"?v=n:u?v=o:Rh(i)&&(v=void 0);const R=(0,vs.default)(i,(0,Ze.default)({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,mh.isPlainObject)(j)?P=>En(j,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=En(we,(0,Ze.default)({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return En({variants:X},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,ph.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,gh.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function Ph(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const Oh=Ct(ju),Th=Ct(Rf);var ll=lo;Object.defineProperty(be,"__esModule",{value:!0});var Rs=be.alpha=fl;be.blend=Uh;be.colorChannel=void 0;var Zo=be.darken=Ca;be.decomposeColor=rt;be.emphasize=hl;var js=be.getContrastRatio=kh;be.getLuminance=Jn;be.hexToRgb=cl;be.hslToRgb=dl;var Qo=be.lighten=Aa;be.private_safeAlpha=$h;be.private_safeColorChannel=void 0;be.private_safeDarken=Nh;be.private_safeEmphasize=Dh;be.private_safeLighten=Fh;be.recomposeColor=Rr;be.rgbToHex=Lh;var Cs=ll(Oh),Eh=ll(Th);function ja(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Eh.default)(e,t,r)}function cl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mh(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt(cl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
58
+ `))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Pn(e){const t=N.useRef(e);return va(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Bn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{nl(r,t)})},e)}class wa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let io=!0,Xo=!1;const kf=new wa,$f={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Nf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&$f[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ff(e){e.metaKey||e.altKey||e.ctrlKey||(io=!0)}function Eo(){io=!1}function Df(){this.visibilityState==="hidden"&&Xo&&(io=!0)}function Uf(e){e.addEventListener("keydown",Ff,!0),e.addEventListener("mousedown",Eo,!0),e.addEventListener("pointerdown",Eo,!0),e.addEventListener("touchstart",Eo,!0),e.addEventListener("visibilitychange",Df,!0)}function Bf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return io||Nf(t)}function al(){const e=N.useCallback(o=>{o!=null&&Uf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,kf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return Bf(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Jf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ra(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Vf(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function On(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Gf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=On(A({},o,n)),l=bs(n),c=bs(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}function zf(e,t,r){return typeof e=="function"?e(t,r):e}const Wf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function It(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,Wf),l=a?{}:zf(n,o),{props:c,internalRef:u}=Gf(A({},i,{externalSlotProps:l})),d=Bn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Vf(r,A({},c,{ref:d}),o)}const Hf=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const Kf=()=>{const e=N.useContext(Hf);return e??!1},qf=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function Xf(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Un(o.defaultProps,n):!o.styleOverrides&&!o.variants?Un(o,n):n}function Yf({props:e,name:t}){const r=N.useContext(qf);return Xf({props:e,name:t,theme:{components:r}})}const Zf=["component","direction","spacing","divider","children","className","useFlexGap"],Qf=an(),eh=vf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function th(e){return Rf({props:e,name:"MuiStack",defaultTheme:Qf})}function rh(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const nh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],oh=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Oo({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xa(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Oo({values:e.direction,base:o}),i=Oo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Ht(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${nh(u?a[u]:e.direction)}`]:Ht(n,c)}}))}return r=cd(t.breakpoints,r),r};function ah(e={}){const{createStyledComponent:t=eh,useThemeProps:r=th,componentName:n="MuiStack"}=e,o=()=>Ra({root:["root"]},c=>sn(n,c),{}),a=t(oh),i=N.forwardRef(function(c,u){const d=r(c),h=Xi(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:v,useFlexGap:R=!1}=h,C=Ue(h,Zf),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:gt(j.root,v)},C,{children:_?rh(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}var ln={},sl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sl);var lo=sl.exports,Mo={exports:{}},xs;function sh(){return xs||(xs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mo)),Mo.exports}var Io={exports:{}},Ss;function ih(){return Ss||(Ss=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Io)),Io.exports}const lh=jt(od),ch=jt(ad),uh=jt(dd),dh=jt(hf),fh=jt(Qd),hh=jt(sf);var wr=lo;Object.defineProperty(ln,"__esModule",{value:!0});var mh=ln.default=Ph;ln.shouldForwardProp=Tn;ln.systemDefaultTheme=void 0;var Ze=wr(sh()),Yo=wr(ih()),vs=wh(lh),ph=ch,gh=wr(uh),yh=wr(dh),_h=wr(fh),bh=wr(hh);const xh=["ownerState"],Sh=["variants"],vh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function il(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(il=function(n){return n?r:t})(e)}function wh(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=il(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Rh(e){return Object.keys(e).length===0}function jh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ch=ln.systemDefaultTheme=(0,_h.default)(),ws=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return Rh(t)?e:t[r]||t}function Ah(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,Yo.default)(t,xh);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Yo.default)(o,Sh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function Ph(e={}){const{themeId:t,defaultTheme:r=Ch,rootShouldForwardProp:n=Tn,slotShouldForwardProp:o=Tn}=e,a=i=>(0,bh.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,vs.internal_processStyles)(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Ah(ws(u))}=l,b=(0,Yo.default)(l,vh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ws(u||"Root")}`);let v=Tn;u==="Root"||u==="root"?v=n:u?v=o:jh(i)&&(v=void 0);const R=(0,vs.default)(i,(0,Ze.default)({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,ph.isPlainObject)(j)?P=>En(j,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=En(we,(0,Ze.default)({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return En({variants:X},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,gh.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,yh.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function Oh(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const Th=jt(Cu),Eh=jt(jf);var ll=lo;Object.defineProperty(be,"__esModule",{value:!0});var Rs=be.alpha=fl;be.blend=Bh;be.colorChannel=void 0;var Zo=be.darken=Ca;be.decomposeColor=rt;be.emphasize=hl;var js=be.getContrastRatio=$h;be.getLuminance=Jn;be.hexToRgb=cl;be.hslToRgb=dl;var Qo=be.lighten=Aa;be.private_safeAlpha=Nh;be.private_safeColorChannel=void 0;be.private_safeDarken=Fh;be.private_safeEmphasize=Uh;be.private_safeLighten=Dh;be.recomposeColor=Rr;be.rgbToHex=kh;var Cs=ll(Th),Mh=ll(Eh);function ja(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Mh.default)(e,t,r)}function cl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ih(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt(cl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
59
59
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Cs.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
60
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Cs.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ul=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=ul;const Ih=(e,t)=>{try{return ul(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};be.private_safeColorChannel=Ih;function Rr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Lh(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>Mh(n===3?Math.round(255*r):r)).join("")}`}function dl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Rr({type:l,values:c})}function Jn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(dl(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kh(e,t){const r=Jn(e),n=Jn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function fl(e,t){return e=rt(e),t=ja(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rr(e)}function $h(e,t,r){try{return fl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ca(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Rr(e)}function Nh(e,t,r){try{return Ca(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Aa(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Rr(e)}function Fh(e,t,r){try{return Aa(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function hl(e,t=.15){return Jn(e)>.5?Ca(e,t):Aa(e,t)}function Dh(e,t,r){try{return hl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Uh(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=rt(e),i=rt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Rr({type:"rgb",values:l})}const Xr={black:"#000",white:"#fff"},Bh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},lr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Dr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ur={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},dr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Jh=["mode","contrastThreshold","tonalOffset"],As={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xr.white,default:Xr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lo={text:{primary:Xr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ps(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Zo(e.main,a)))}function Vh(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function Gh(e="light"){return e==="dark"?{main:lr[200],light:lr[50],dark:lr[400]}:{main:lr[500],light:lr[300],dark:lr[700]}}function zh(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function Wh(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function Hh(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function Kh(e="light"){return e==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:"#ed6c02",light:Dr[500],dark:Dr[900]}}function qh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,Jh),a=e.primary||Vh(t),i=e.secondary||Gh(t),l=e.error||zh(t),c=e.info||Wh(t),u=e.success||Hh(t),d=e.warning||Kh(t);function h(_){const g=js(_,Lo.text.primary)>=r?Lo.text.primary:As.text.primary;if(process.env.NODE_ENV!=="production"){const v=js(_,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
60
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Cs.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ul=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=ul;const Lh=(e,t)=>{try{return ul(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};be.private_safeColorChannel=Lh;function Rr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function kh(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>Ih(n===3?Math.round(255*r):r)).join("")}`}function dl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Rr({type:l,values:c})}function Jn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(dl(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $h(e,t){const r=Jn(e),n=Jn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function fl(e,t){return e=rt(e),t=ja(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rr(e)}function Nh(e,t,r){try{return fl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ca(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Rr(e)}function Fh(e,t,r){try{return Ca(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Aa(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Rr(e)}function Dh(e,t,r){try{return Aa(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function hl(e,t=.15){return Jn(e)>.5?Ca(e,t):Aa(e,t)}function Uh(e,t,r){try{return hl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Bh(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=rt(e),i=rt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Rr({type:"rgb",values:l})}const Xr={black:"#000",white:"#fff"},Jh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},lr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Dr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ur={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},dr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vh=["mode","contrastThreshold","tonalOffset"],As={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xr.white,default:Xr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Lo={text:{primary:Xr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ps(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Zo(e.main,a)))}function Gh(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function zh(e="light"){return e==="dark"?{main:lr[200],light:lr[50],dark:lr[400]}:{main:lr[500],light:lr[300],dark:lr[700]}}function Wh(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function Hh(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function Kh(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function qh(e="light"){return e==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:"#ed6c02",light:Dr[500],dark:Dr[900]}}function Xh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,Vh),a=e.primary||Gh(t),i=e.secondary||zh(t),l=e.error||Wh(t),c=e.info||Hh(t),u=e.success||Kh(t),d=e.warning||qh(t);function h(_){const g=js(_,Lo.text.primary)>=r?Lo.text.primary:As.text.primary;if(process.env.NODE_ENV!=="production"){const v=js(_,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
61
61
  `))}return g}const f=({color:_,name:g,mainShade:v=500,lightShade:R=300,darkShade:C=700})=>{if(_=A({},_),!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
62
62
  The color object needs to have a \`main\` property or a \`${v}\` property.`:Hr(11,g?` (${g})`:"",v));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
63
63
  \`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
72
72
 
73
73
  const theme2 = createTheme({ palette: {
74
74
  primary: { main: green[500] },
75
- } });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ps(_,"light",R,n),Ps(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Lo,light:As};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Xr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Bh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const Xh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Yh(e){return Math.round(e*1e5)/1e5}const Os={textTransform:"uppercase"},Ts='"Roboto", "Helvetica", "Arial", sans-serif';function Zh(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ts,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,Xh);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ts?{letterSpacing:`${Yh(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,Os),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,Os),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const Qh=.2,em=.14,tm=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${em})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tm})`].join(",")}const rm=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],nm=["duration","easing","delay"],om={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},am={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Es(e){return`${Math.round(e)}ms`}function sm(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function im(e){const t=A({},om,e.easing),r=A({},am,e.duration);return A({getAutoHeightDuration:sm,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,nm);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Es(i)} ${l} ${typeof c=="string"?c:Es(c)}`).join(",")}},e,{easing:t,duration:r})}const lm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ea(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,cm);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Hr(18));const l=qh(n),c=an(e);let u=tt(c,{mixins:Ph(c.breakpoints,r),palette:l,shadows:rm.slice(),typography:Zh(l,a),transitions:im(o),zIndex:A({},lm)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=sn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
- `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const um=ea(),dm="$$material";function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fm=e=>Pa(e)&&e!=="classes",At=hh({themeId:dm,defaultTheme:um,rootShouldForwardProp:fm});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Oa(e){return Xf(e)}const _r=oh({createStyledComponent:At("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Oa({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ta=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Sr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var Ta={},ko={};function hm(e){return sn("MuiSvgIcon",e)}Qi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pm=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ra(o,hm,n)},gm=At("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Vn=N.forwardRef(function(t,r){const n=Oa({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,mm),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=pm(_);return s.jsxs(gm,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Vn.muiName="SvgIcon";function ym(e,t){function r(n,o){return s.jsx(Vn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vn.muiName,N.memo(N.forwardRef(r))}const _m={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
- `)),Yi.configure(e)}},bm=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:jf,createSvgIcon:ym,debounce:Cf,deprecatedPropType:Af,isMuiElement:Pf,ownerDocument:yr,ownerWindow:Of,requirePropFactory:Tf,setRef:nl,unstable_ClassNameGenerator:_m,unstable_useEnhancedEffect:va,unstable_useId:Mf,unsupportedProp:If,useControlled:ol,useEventCallback:Pn,useForkRef:Bn,useIsFocusVisible:al},Symbol.toStringTag,{value:"Module"})),xm=Ct(bm);var Ms;function ml(){return Ms||(Ms=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xm}(ko)),ko}var Sm=lo;Object.defineProperty(Ta,"__esModule",{value:!0});var pl=Ta.default=void 0,vm=Sm(ml()),wm=s;pl=Ta.default=(0,vm.default)((0,wm.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ea={},Rm=lo;Object.defineProperty(Ea,"__esModule",{value:!0});var gl=Ea.default=void 0,jm=Rm(ml()),Cm=s;gl=Ea.default=(0,jm.default)((0,Cm.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Am=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Am||Function("return this")(),$o=function(){return _t.Date.now()},Pm=/\s/;function Om(e){for(var t=e.length;t--&&Pm.test(e.charAt(t)););return t}var Tm=/^\s+/;function Em(e){return e&&e.slice(0,Om(e)+1).replace(Tm,"")}var Nt=_t.Symbol,_l=Object.prototype,Mm=_l.hasOwnProperty,Im=_l.toString,Ur=Nt?Nt.toStringTag:void 0;function Lm(e){var t=Mm.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Im.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var km=Object.prototype,$m=km.toString;function Nm(e){return $m.call(e)}var Fm="[object Null]",Dm="[object Undefined]",Is=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Dm:Fm:Is&&Is in Object(e)?Lm(e):Nm(e)}function qt(e){return e!=null&&typeof e=="object"}var Um="[object Symbol]";function co(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Um}var Ls=NaN,Bm=/^[-+]0x[0-9a-f]+$/i,Jm=/^0b[01]+$/i,Vm=/^0o[0-7]+$/i,Gm=parseInt;function ks(e){if(typeof e=="number")return e;if(co(e))return Ls;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Em(e);var r=Jm.test(e);return r||Vm.test(e)?Gm(e.slice(2),r?2:8):Bm.test(e)?Ls:+e}var zm="Expected a function",Wm=Math.max,Hm=Math.min;function Km(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(zm);t=ks(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Wm(ks(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Hm(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=$o();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R($o())}function j(){var P=$o(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var qm="Expected a function";function Xm(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(qm);return Kt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Km(e,t,{leading:n,maxWait:t,trailing:o})}const bl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=Z.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Xm(()=>{u(o())},50);Sr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(pl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(gl,{})})]})})),Ym=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Zm=Z.forwardRef(Ym),Qm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),e0=Z.forwardRef(Qm),t0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),r0=Z.forwardRef(t0),n0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),o0=Z.forwardRef(n0),a0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),s0=Z.forwardRef(a0),i0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),l0=Z.forwardRef(i0),c0=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(s0,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(l0,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function u0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const d0=2;function xl(e,t){return e-t}function $s(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Gn(e,t,r){return(e-t)*100/(r-t)}function f0(e,t,r){return(r-t)*e+t}function h0(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function m0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(h0(t)))}function Ns({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?u0(e,t):!1}const p0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},g0=e=>e;let Sn;function Fs(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function y0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=g0,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=ol({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(xl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ie,ref:ot}=al(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Tt=Bn(ot,Re),ct=Bn(b,Tt),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Be=T=>I=>{var F;Ae(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ut=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=hr(H,c,l),X){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Ns({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!xn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ut(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};va(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ut(I,I.target.valueAsNumber)},xt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=f0(Xe,c,l),_)te=m0(te,_,c);else{const It=$s(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(X){I?$e=xt.current:$e=$s(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Ns({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(It),xt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Pn(T=>{const I=_n(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>d0&&le(!0),G&&!xn(F,D)&&G(T,F,W)}),he=Pn(T=>{const I=_n(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Pn(T=>{if(n)return;Fs()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!xn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:Fs()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Et=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=_n(I,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=E({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),q(H),G&&!xn(H,D)&&G(I,H,Ve)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Gn(X?K[0]:c,c,l),Mt=Gn(K[K.length-1],c,l)-je,Bt=(T={})=>{const I=On(T),F={onMouseDown:Et(I||{})},W=A({},I,F);return A({},T,{ref:ct},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Je,axisProps:p0,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var I;const F=On(T),W={onChange:Ut(F||{}),onFocus:qe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:A({},Bf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const I=On(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Pr(I||{})};return A({},T,I,F)},marks:we,open:P,range:X,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const _0=e=>!e||!Gr(e);function b0(e){return sn("MuiSlider",e)}const et=Qi("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),x0=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Sl(e){const{children:t,className:r,value:n}=e,o=x0(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Sl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const S0=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ds(e){return e}const v0=At("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),w0=At("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),R0=At("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),j0=At("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rs(e.palette[r].main,.16)}`})}}))]}}),C0=At(Sl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),A0=At("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pa(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),P0=At("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pa(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),O0=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(u,b0,i)},T0=({children:e})=>e,vl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=Oa({props:t,name:"MuiSlider"}),q=Hf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ie,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Tt,marks:ct=!1,max:qe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:xt=1,scale:Je=Ds,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=Ds}=D,Et=Ue(D,S0),je=A({},D,{isRtl:q,max:qe,min:Be,classes:Ie,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:xt,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=y0(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=O0(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:v0,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:w0,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:R0,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:j0,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:C0,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:A0,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:P0,Er=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,dn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,nr=(P=E==null?void 0:E.thumb)!=null?P:Q.thumb,or=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,xo=(z=E==null?void 0:E.mark)!=null?z:Q.mark,So=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,fn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Et,additionalProps:A({},_0($e)&&{as:we}),ownerState:A({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Ir,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:St,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:xo,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:So,ownerState:je,className:te.markLabel}),M=Lt({elementType:Er,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=qe).map(($,U)=>{const re=Gn($.value,Be,qe),V=Mt[at].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Gn($,Be,qe),V=Mt[at].offset(re),B=Le==="off"?T0:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,Xe(U),Lr.style),children:s.jsx(Er,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Tt?Tt(Je($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(vl.propTypes={"aria-label":gs(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":gs(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var E0="[object Number]";function M0(e){return typeof e=="number"||qt(e)&&Zt(e)==E0}const wl=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!M0(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(vl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Rl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(wl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),jl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),I0=He.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Rt.poseToWandelscriptString(n):""}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})});function L0(){this.__data__=[],this.size=0}function Cl(e,t){return e===t||e!==e&&t!==t}function uo(e,t){for(var r=e.length;r--;)if(Cl(e[r][0],t))return r;return-1}var k0=Array.prototype,$0=k0.splice;function N0(e){var t=this.__data__,r=uo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$0.call(t,r,1),--this.size,!0}function F0(e){var t=this.__data__,r=uo(t,e);return r<0?void 0:t[r][1]}function D0(e){return uo(this.__data__,e)>-1}function U0(e,t){var r=this.__data__,n=uo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=L0;Pt.prototype.delete=N0;Pt.prototype.get=F0;Pt.prototype.has=D0;Pt.prototype.set=U0;function B0(){this.__data__=new Pt,this.size=0}function J0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function V0(e){return this.__data__.get(e)}function G0(e){return this.__data__.has(e)}var z0="[object AsyncFunction]",W0="[object Function]",H0="[object GeneratorFunction]",K0="[object Proxy]";function Al(e){if(!Kt(e))return!1;var t=Zt(e);return t==W0||t==H0||t==z0||t==K0}var No=_t["__core-js_shared__"],Us=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function q0(e){return!!Us&&Us in e}var X0=Function.prototype,Y0=X0.toString;function Qt(e){if(e!=null){try{return Y0.call(e)}catch{}try{return e+""}catch{}}return""}var Z0=/[\\^$.*+?()[\]{}|]/g,Q0=/^\[object .+?Constructor\]$/,ep=Function.prototype,tp=Object.prototype,rp=ep.toString,np=tp.hasOwnProperty,op=RegExp("^"+rp.call(np).replace(Z0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ap(e){if(!Kt(e)||q0(e))return!1;var t=Al(e)?op:Q0;return t.test(Qt(e))}function sp(e,t){return e==null?void 0:e[t]}function er(e,t){var r=sp(e,t);return ap(r)?r:void 0}var Yr=er(_t,"Map"),Zr=er(Object,"create");function ip(){this.__data__=Zr?Zr(null):{},this.size=0}function lp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cp="__lodash_hash_undefined__",up=Object.prototype,dp=up.hasOwnProperty;function fp(e){var t=this.__data__;if(Zr){var r=t[e];return r===cp?void 0:r}return dp.call(t,e)?t[e]:void 0}var hp=Object.prototype,mp=hp.hasOwnProperty;function pp(e){var t=this.__data__;return Zr?t[e]!==void 0:mp.call(t,e)}var gp="__lodash_hash_undefined__";function yp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?gp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=ip;Xt.prototype.delete=lp;Xt.prototype.get=fp;Xt.prototype.has=pp;Xt.prototype.set=yp;function _p(){this.size=0,this.__data__={hash:new Xt,map:new(Yr||Pt),string:new Xt}}function bp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fo(e,t){var r=e.__data__;return bp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xp(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t}function Sp(e){return fo(this,e).get(e)}function vp(e){return fo(this,e).has(e)}function wp(e,t){var r=fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=_p;Ot.prototype.delete=xp;Ot.prototype.get=Sp;Ot.prototype.has=vp;Ot.prototype.set=wp;var Rp=200;function jp(e,t){var r=this.__data__;if(r instanceof Pt){var n=r.__data__;if(!Yr||n.length<Rp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ot(n)}return r.set(e,t),this.size=r.size,this}function jt(e){var t=this.__data__=new Pt(e);this.size=t.size}jt.prototype.clear=B0;jt.prototype.delete=J0;jt.prototype.get=V0;jt.prototype.has=G0;jt.prototype.set=jp;var Cp="__lodash_hash_undefined__";function Ap(e){return this.__data__.set(e,Cp),this}function Pp(e){return this.__data__.has(e)}function zn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ot;++t<r;)this.add(e[t])}zn.prototype.add=zn.prototype.push=Ap;zn.prototype.has=Pp;function Op(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Tp(e,t){return e.has(t)}var Ep=1,Mp=2;function Pl(e,t,r,n,o,a){var i=r&Ep,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&Mp?new zn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!Op(t,function(v,R){if(!Tp(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bs=_t.Uint8Array;function Ip(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Lp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var kp=1,$p=2,Np="[object Boolean]",Fp="[object Date]",Dp="[object Error]",Up="[object Map]",Bp="[object Number]",Jp="[object RegExp]",Vp="[object Set]",Gp="[object String]",zp="[object Symbol]",Wp="[object ArrayBuffer]",Hp="[object DataView]",Js=Nt?Nt.prototype:void 0,Fo=Js?Js.valueOf:void 0;function Kp(e,t,r,n,o,a,i){switch(r){case Hp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wp:return!(e.byteLength!=t.byteLength||!a(new Bs(e),new Bs(t)));case Np:case Fp:case Bp:return Cl(+e,+t);case Dp:return e.name==t.name&&e.message==t.message;case Jp:case Gp:return e==t+"";case Up:var l=Ip;case Vp:var c=n&kp;if(l||(l=Lp),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=$p,i.set(e,t);var d=Pl(l(e),l(t),n,o,a,i);return i.delete(e),d;case zp:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}function qp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function Xp(e,t,r){var n=t(e);return yt(e)?n:qp(n,r(e))}function Yp(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Zp(){return[]}var Qp=Object.prototype,eg=Qp.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,tg=Vs?function(e){return e==null?[]:(e=Object(e),Yp(Vs(e),function(t){return eg.call(e,t)}))}:Zp;function rg(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ng="[object Arguments]";function Gs(e){return qt(e)&&Zt(e)==ng}var Ol=Object.prototype,og=Ol.hasOwnProperty,ag=Ol.propertyIsEnumerable,Tl=Gs(function(){return arguments}())?Gs:function(e){return qt(e)&&og.call(e,"callee")&&!ag.call(e,"callee")};function sg(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zs=El&&typeof module=="object"&&module&&!module.nodeType&&module,ig=zs&&zs.exports===El,Ws=ig?_t.Buffer:void 0,lg=Ws?Ws.isBuffer:void 0,ra=lg||sg,cg=9007199254740991,ug=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var r=typeof e;return t=t??cg,!!t&&(r=="number"||r!="symbol"&&ug.test(e))&&e>-1&&e%1==0&&e<t}var dg=9007199254740991;function Ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dg}var fg="[object Arguments]",hg="[object Array]",mg="[object Boolean]",pg="[object Date]",gg="[object Error]",yg="[object Function]",_g="[object Map]",bg="[object Number]",xg="[object Object]",Sg="[object RegExp]",vg="[object Set]",wg="[object String]",Rg="[object WeakMap]",jg="[object ArrayBuffer]",Cg="[object DataView]",Ag="[object Float32Array]",Pg="[object Float64Array]",Og="[object Int8Array]",Tg="[object Int16Array]",Eg="[object Int32Array]",Mg="[object Uint8Array]",Ig="[object Uint8ClampedArray]",Lg="[object Uint16Array]",kg="[object Uint32Array]",de={};de[Ag]=de[Pg]=de[Og]=de[Tg]=de[Eg]=de[Mg]=de[Ig]=de[Lg]=de[kg]=!0;de[fg]=de[hg]=de[jg]=de[mg]=de[Cg]=de[pg]=de[gg]=de[yg]=de[_g]=de[bg]=de[xg]=de[Sg]=de[vg]=de[wg]=de[Rg]=!1;function $g(e){return qt(e)&&Ma(e.length)&&!!de[Zt(e)]}function Ng(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Fg=zr&&zr.exports===Il,Do=Fg&&yl.process,Hs=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Do&&Do.binding&&Do.binding("util")}catch{}}(),Ks=Hs&&Hs.isTypedArray,Ll=Ks?Ng(Ks):$g,Dg=Object.prototype,Ug=Dg.hasOwnProperty;function Bg(e,t){var r=yt(e),n=!r&&Tl(e),o=!r&&!n&&ra(e),a=!r&&!n&&!o&&Ll(e),i=r||n||o||a,l=i?rg(e.length,String):[],c=l.length;for(var u in e)Ug.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ml(u,c)))&&l.push(u);return l}var Jg=Object.prototype;function Vg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Jg;return e===r}function Gg(e,t){return function(r){return e(t(r))}}var zg=Gg(Object.keys,Object),Wg=Object.prototype,Hg=Wg.hasOwnProperty;function Kg(e){if(!Vg(e))return zg(e);var t=[];for(var r in Object(e))Hg.call(e,r)&&r!="constructor"&&t.push(r);return t}function kl(e){return e!=null&&Ma(e.length)&&!Al(e)}function Ia(e){return kl(e)?Bg(e):Kg(e)}function qs(e){return Xp(e,Ia,tg)}var qg=1,Xg=Object.prototype,Yg=Xg.hasOwnProperty;function Zg(e,t,r,n,o,a){var i=r&qg,l=qs(e),c=l.length,u=qs(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:Yg.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var na=er(_t,"DataView"),oa=er(_t,"Promise"),aa=er(_t,"Set"),sa=er(_t,"WeakMap"),Xs="[object Map]",Qg="[object Object]",Ys="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",ei="[object DataView]",ey=Qt(na),ty=Qt(Yr),ry=Qt(oa),ny=Qt(aa),oy=Qt(sa),$t=Zt;(na&&$t(new na(new ArrayBuffer(1)))!=ei||Yr&&$t(new Yr)!=Xs||oa&&$t(oa.resolve())!=Ys||aa&&$t(new aa)!=Zs||sa&&$t(new sa)!=Qs)&&($t=function(e){var t=Zt(e),r=t==Qg?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case ey:return ei;case ty:return Xs;case ry:return Ys;case ny:return Zs;case oy:return Qs}return t});var ay=1,ti="[object Arguments]",ri="[object Array]",vn="[object Object]",sy=Object.prototype,ni=sy.hasOwnProperty;function iy(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?ri:$t(e),u=l?ri:$t(t);c=c==ti?vn:c,u=u==ti?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ra(e)){if(!ra(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new jt),i||Ll(e)?Pl(e,t,r,n,o,a):Kp(e,t,c,r,n,o,a);if(!(r&ay)){var b=d&&ni.call(e,"__wrapped__"),y=h&&ni.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new jt),o(_,g,r,n,a)}}return f?(a||(a=new jt),Zg(e,t,r,n,o,a)):!1}function ho(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:iy(e,t,r,n,ho,o)}function ly(e,t){return ho(e,t)}const cy=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Sr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;ly(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},uy=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Ti(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:Rt.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(e0,{})},{id:"y",color:"#42A705",icon:s.jsx(r0,{})},{id:"z",color:"#0075FF",icon:s.jsx(o0,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:Rt.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(I0,{store:e}),s.jsx(c0,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Zm,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Rl,{store:e}),s.jsx(cy,{store:e})]})}),dy=He.observer(({store:e})=>{const t=Z.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})}),fy=He.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(dy,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?Rt.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?Rt.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?Rt.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Rl,{store:e})]})});var oi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function hy(e,t,r){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function my(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function py(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var gy=py();function yy(e,t){return e&&gy(e,t,Ia)}function _y(e,t){return function(r,n){if(r==null)return r;if(!kl(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var by=_y(yy);function xy(e,t,r,n){return by(e,function(o,a,i){t(n,o,r(o),i)}),n}var Sy=1,vy=2;function wy(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new jt,h;if(!(h===void 0?ho(u,c,Sy|vy,n,d):h))return!1}}return!0}function $l(e){return e===e&&!Kt(e)}function Ry(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,$l(o)]}return t}function Nl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function jy(e){var t=Ry(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(r){return r===e||wy(r,e,t)}}var Cy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ay=/^\w*$/;function La(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:Ay.test(e)||!Cy.test(e)||t!=null&&e in Object(t)}var Py="Expected a function";function ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Py);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ka.Cache||Ot),r}ka.Cache=Ot;var Oy=500;function Ty(e){var t=ka(e,function(n){return r.size===Oy&&r.clear(),n}),r=t.cache;return t}var Ey=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,My=/\\(\\)?/g,Iy=Ty(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ey,function(r,n,o,a){t.push(o?a.replace(My,"$1"):n||r)}),t});function Ly(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ky=1/0,ai=Nt?Nt.prototype:void 0,si=ai?ai.toString:void 0;function Fl(e){if(typeof e=="string")return e;if(yt(e))return Ly(e,Fl)+"";if(co(e))return si?si.call(e):"";var t=e+"";return t=="0"&&1/e==-ky?"-0":t}function Dl(e){return e==null?"":Fl(e)}function Ul(e,t){return yt(e)?e:La(e,t)?[e]:Iy(Dl(e))}var $y=1/0;function mo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-$y?"-0":t}function Bl(e,t){t=Ul(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mo(t[r++])];return r&&r==n?e:void 0}function Ny(e,t,r){var n=e==null?void 0:Bl(e,t);return n===void 0?r:n}function Fy(e,t){return e!=null&&t in Object(e)}function Dy(e,t,r){t=Ul(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=mo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Ma(o)&&Ml(i,o)&&(yt(e)||Tl(e)))}function Uy(e,t){return e!=null&&Dy(e,t,Fy)}var By=1,Jy=2;function Vy(e,t){return La(e)&&$l(t)?Nl(mo(e),t):function(r){var n=Ny(r,e);return n===void 0&&n===t?Uy(r,e):ho(t,n,By|Jy)}}function Gy(e){return e}function zy(e){return function(t){return t==null?void 0:t[e]}}function Wy(e){return function(t){return Bl(t,e)}}function Hy(e){return La(e)?zy(mo(e)):Wy(e)}function Ky(e){return typeof e=="function"?e:e==null?Gy:typeof e=="object"?yt(e)?Vy(e[0],e[1]):jy(e):Hy(e)}function qy(e,t){return function(r,n){var o=yt(r)?my:xy,a={};return o(r,e,Ky(n),a)}}var wn=qy(function(e,t,r){hy(e,r,t)}),Xy=0;function Yy(e){var t=++Xy;return Dl(e)+t}const ia=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],Zy=[{id:"continuous"},...ia];class $a{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new $a(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Rt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Zy}get discreteIncrementOptions(){return ia}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ia.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=Yy();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function Jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qy}=Object.prototype,{getPrototypeOf:Na}=Object,po=(e=>t=>{const r=Qy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>po(t)===e),go=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=go("undefined");function e1(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=lt("ArrayBuffer");function t1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const r1=go("string"),We=go("function"),Gl=go("number"),yo=e=>e!==null&&typeof e=="object",n1=e=>e===!0||e===!1,Mn=e=>{if(po(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o1=lt("Date"),a1=lt("File"),s1=lt("Blob"),i1=lt("FileList"),l1=e=>yo(e)&&We(e.pipe),c1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=po(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},u1=lt("URLSearchParams"),[d1,f1,h1,m1]=["ReadableStream","Request","Response","Headers"].map(lt),p1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function zl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Qr(e)&&e!==zt;function la(){const{caseless:e}=Wl(this)&&this||{},t={},r=(n,o)=>{const a=e&&zl(t,o)||o;Mn(t[a])&&Mn(n)?t[a]=la(t[a],n):Mn(n)?t[a]=la({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&cn(arguments[n],r);return t}const g1=(e,t,r,{allOwnKeys:n}={})=>(cn(t,(o,a)=>{r&&We(o)?e[a]=Jl(o,r):e[a]=o},{allOwnKeys:n}),e),y1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},b1=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},x1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},S1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!Gl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},v1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),w1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},R1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},j1=lt("HTMLFormElement"),C1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),A1=lt("RegExp"),Hl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},P1=e=>{Hl(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},O1=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},T1=()=>{},E1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uo="abcdefghijklmnopqrstuvwxyz",li="0123456789",Kl={DIGIT:li,ALPHA:Uo,ALPHA_DIGIT:Uo+Uo.toUpperCase()+li},M1=(e=16,t=Kl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function I1(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const L1=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return cn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},k1=lt("AsyncFunction"),$1=e=>e&&(yo(e)||We(e))&&We(e.then)&&We(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),N1=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ql,x={isArray:jr,isArrayBuffer:Vl,isBuffer:e1,isFormData:c1,isArrayBufferView:t1,isString:r1,isNumber:Gl,isBoolean:n1,isObject:yo,isPlainObject:Mn,isReadableStream:d1,isRequest:f1,isResponse:h1,isHeaders:m1,isUndefined:Qr,isDate:o1,isFile:a1,isBlob:s1,isRegExp:A1,isFunction:We,isStream:l1,isURLSearchParams:u1,isTypedArray:v1,isFileList:i1,forEach:cn,merge:la,extend:g1,trim:p1,stripBOM:y1,inherits:_1,toFlatObject:b1,kindOf:po,kindOfTest:lt,endsWith:x1,toArray:S1,forEachEntry:w1,matchAll:R1,isHTMLForm:j1,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Hl,freezeMethods:P1,toObjectSet:O1,toCamelCase:C1,noop:T1,toFiniteNumber:E1,findKey:zl,global:zt,isContextDefined:Wl,ALPHABET:Kl,generateString:M1,isSpecCompliantForm:I1,toJSONObject:L1,isAsyncFn:k1,isThenable:$1,setImmediate:ql,asap:N1};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}x.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xl=J.prototype,Yl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yl[e]={value:e}});Object.defineProperties(J,Yl);Object.defineProperty(Xl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(Xl);return x.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const F1=null;function ca(e){return x.isPlainObject(e)||x.isArray(e)}function Zl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,r){return e?e.concat(t).map(function(o,a){return o=Zl(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function D1(e){return x.isArray(e)&&!e.some(ca)}const U1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!x.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!c&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let v=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&D1(y)||(x.isFileList(y)||x.endsWith(_,"[]"))&&(v=x.toArray(y)))return _=Zl(_),v.forEach(function(C,k){!(x.isUndefined(C)||C===null)&&t.append(i===!0?ci([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ca(y)?!0:(t.append(ci(g,_,a),u(y)),!1)}const h=[],f=Object.assign(U1,{defaultVisitor:d,convertValue:u,isVisitable:ca});function b(y,_){if(!x.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),x.forEach(y,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,_,f))===!0&&b(v,_?_.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fa(e,t){this._pairs=[],e&&_o(e,this,t)}const Ql=Fa.prototype;Ql.append=function(t,r){this._pairs.push([t,r])};Ql.toString=function(t){const r=t?function(n){return t.call(this,n,ui)}:ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function B1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,r){if(!t)return e;const n=r&&r.encode||B1,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Fa(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class di{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J1=typeof URLSearchParams<"u"?URLSearchParams:Fa,V1=typeof FormData<"u"?FormData:null,G1=typeof Blob<"u"?Blob:null,z1={isBrowser:!0,classes:{URLSearchParams:J1,FormData:V1,Blob:G1},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",W1=(e=>Da&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",K1=Da&&window.location.href||"http://localhost",q1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:W1,hasStandardBrowserWebWorkerEnv:H1,origin:K1},Symbol.toStringTag,{value:"Module"})),st={...q1,...z1};function X1(e,t){return _o(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Y1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z1(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function rc(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&x.isArray(o)?o.length:i,c?(x.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!x.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&x.isArray(o[i])&&(o[i]=Z1(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Y1(n),o,r,0)}),r}return null}function Q1(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const un={transitional:tc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=x.isObject(t);if(a&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(rc(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return X1(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _o(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Q1(t)):t}],transformResponse:[function(t){const r=this.transitional||un.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{un.headers[e]={}});const e_=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t_=e=>{const t={};let r,n,o;return e&&e.split(`
79
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&e_[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},fi=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:x.isArray(e)?e.map(In):String(e)}function r_(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const n_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bo(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function o_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function a_(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Br(c);if(!d)throw new Error("header name must be a non-empty string");const h=x.findKey(o,d);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=In(l))}const i=(l,c)=>x.forEach(l,(u,d)=>a(u,d,c));if(x.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(x.isString(t)&&(t=t.trim())&&!n_(t))i(t_(t),r);else if(x.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Br(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return r_(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Br(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Bo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Br(i),i){const l=x.findKey(n,i);l&&(!r||Bo(n,n[l],l,r))&&(delete n[l],o=!0)}}return x.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||Bo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,a)=>{const i=x.findKey(n,a);if(i){r[i]=In(o),delete r[a];return}const l=t?o_(a):String(a).trim();l!==a&&delete r[a],r[l]=In(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[fi]=this[fi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Br(i);n[l]||(a_(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Fe);function Jo(e,t){const r=this||un,n=t||r,o=Fe.from(n.headers);let a=n.data;return x.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function nc(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Cr,J,{__CANCEL__:!0});function oc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function s_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i_(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let h=a,f=0;for(;h!==o;)f+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(f*1e3/b):void 0}}function l_(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const Wn=(e,t,r=3)=>{let n=0;const o=i_(50,250);return l_(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},hi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mi=e=>(...t)=>x.asap(()=>e(...t)),c_=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=x.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),u_=st.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),x.isString(n)&&i.push("path="+n),x.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function d_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!d_(t)?f_(e,t):t}const pi=e=>e instanceof Fe?{...e}:e;function Yt(e,t){t=t||{};const r={};function n(u,d,h){return x.isPlainObject(u)&&x.isPlainObject(d)?x.merge.call({caseless:h},u,d):x.isPlainObject(d)?x.merge({},d):x.isArray(d)?d.slice():d}function o(u,d,h){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u,h)}else return n(u,d,h)}function a(u,d){if(!x.isUndefined(d))return n(void 0,d)}function i(u,d){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,h){if(h in t)return n(u,d);if(h in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(pi(u),pi(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,f=h(e[d],t[d],d);x.isUndefined(f)&&h!==l||(r[d]=f)}),r}const sc=e=>{const t=Yt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=ec(ac(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&c_(t.url))){const u=o&&a&&u_.read(a);u&&i.set(o,u)}return t},h_=typeof XMLHttpRequest<"u",m_=h_&&function(e){return new Promise(function(r,n){const o=sc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,f,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function v(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};oc(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||tc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Wn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,b]=Wn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Cr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=s_(o.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},p_=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new Cr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},g_=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},y_=async function*(e,t,r){for await(const n of e)yield*g_(ArrayBuffer.isView(n)?n:await r(String(n)),t)},gi=(e,t,r,n,o)=>{const a=y_(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:h}=await a.next();if(d){c(),u.close();return}let f=h.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ic=bo&&typeof ReadableStream=="function",ua=bo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},__=ic&&lc(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yi=64*1024,da=ic&&lc(()=>x.isReadableStream(new Response("").body)),Hn={stream:da&&(e=>e.body)};bo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Hn[t]&&(Hn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const b_=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await ua(e)).byteLength},x_=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??b_(t)},S_=bo&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=sc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?p_([o,a],i):[],_,g;const v=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&__&&r!=="get"&&r!=="head"&&(R=await x_(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=hi(R,Wn(mi(c)));n=gi(P.body,yi,z,le,ua)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=da&&(u==="stream"||u==="response");if(da&&(l||k)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=x.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&hi(O,Wn(mi(l),!0))||[];C=new Response(gi(C.body,yi,z,()=>{le&&le(),k&&v()},ua),P)}u=u||"text";let j=await Hn[x.findKey(Hn,u)||"text"](C,e);return!k&&v(),y&&y(),await new Promise((P,O)=>{oc(P,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),fa={http:F1,xhr:m_,fetch:S_};x.forEach(fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,v_=e=>x.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!v_(r)&&(n=fa[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
75
+ } });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ps(_,"light",R,n),Ps(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Lo,light:As};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Xr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Jh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const Yh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zh(e){return Math.round(e*1e5)/1e5}const Os={textTransform:"uppercase"},Ts='"Roboto", "Helvetica", "Arial", sans-serif';function Qh(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ts,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,Yh);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ts?{letterSpacing:`${Zh(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,Os),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,Os),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const em=.2,tm=.14,rm=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${em})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rm})`].join(",")}const nm=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],om=["duration","easing","delay"],am={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Es(e){return`${Math.round(e)}ms`}function im(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lm(e){const t=A({},am,e.easing),r=A({},sm,e.duration);return A({getAutoHeightDuration:im,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,om);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Es(i)} ${l} ${typeof c=="string"?c:Es(c)}`).join(",")}},e,{easing:t,duration:r})}const cm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},um=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ea(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,um);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Hr(18));const l=Xh(n),c=an(e);let u=tt(c,{mixins:Oh(c.breakpoints,r),palette:l,shadows:nm.slice(),typography:Qh(l,a),transitions:lm(o),zIndex:A({},cm)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=sn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
+ `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const dm=ea(),fm="$$material";function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hm=e=>Pa(e)&&e!=="classes",Ct=mh({themeId:fm,defaultTheme:dm,rootShouldForwardProp:hm});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Oa(e){return Yf(e)}const _r=ah({createStyledComponent:Ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Oa({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ta=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Sr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var Ta={},ko={};function mm(e){return sn("MuiSvgIcon",e)}Qi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gm=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ra(o,mm,n)},ym=Ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Vn=N.forwardRef(function(t,r){const n=Oa({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,pm),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=gm(_);return s.jsxs(ym,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Vn.muiName="SvgIcon";function _m(e,t){function r(n,o){return s.jsx(Vn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vn.muiName,N.memo(N.forwardRef(r))}const bm={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
+ `)),Yi.configure(e)}},xm=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:Cf,createSvgIcon:_m,debounce:Af,deprecatedPropType:Pf,isMuiElement:Of,ownerDocument:yr,ownerWindow:Tf,requirePropFactory:Ef,setRef:nl,unstable_ClassNameGenerator:bm,unstable_useEnhancedEffect:va,unstable_useId:If,unsupportedProp:Lf,useControlled:ol,useEventCallback:Pn,useForkRef:Bn,useIsFocusVisible:al},Symbol.toStringTag,{value:"Module"})),Sm=jt(xm);var Ms;function ml(){return Ms||(Ms=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sm}(ko)),ko}var vm=lo;Object.defineProperty(Ta,"__esModule",{value:!0});var pl=Ta.default=void 0,wm=vm(ml()),Rm=s;pl=Ta.default=(0,wm.default)((0,Rm.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ea={},jm=lo;Object.defineProperty(Ea,"__esModule",{value:!0});var gl=Ea.default=void 0,Cm=jm(ml()),Am=s;gl=Ea.default=(0,Cm.default)((0,Am.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Pm=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Pm||Function("return this")(),$o=function(){return _t.Date.now()},Om=/\s/;function Tm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Em=/^\s+/;function Mm(e){return e&&e.slice(0,Tm(e)+1).replace(Em,"")}var Nt=_t.Symbol,_l=Object.prototype,Im=_l.hasOwnProperty,Lm=_l.toString,Ur=Nt?Nt.toStringTag:void 0;function km(e){var t=Im.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Lm.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var $m=Object.prototype,Nm=$m.toString;function Fm(e){return Nm.call(e)}var Dm="[object Null]",Um="[object Undefined]",Is=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Um:Dm:Is&&Is in Object(e)?km(e):Fm(e)}function qt(e){return e!=null&&typeof e=="object"}var Bm="[object Symbol]";function co(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Bm}var Ls=NaN,Jm=/^[-+]0x[0-9a-f]+$/i,Vm=/^0b[01]+$/i,Gm=/^0o[0-7]+$/i,zm=parseInt;function ks(e){if(typeof e=="number")return e;if(co(e))return Ls;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mm(e);var r=Vm.test(e);return r||Gm.test(e)?zm(e.slice(2),r?2:8):Jm.test(e)?Ls:+e}var Wm="Expected a function",Hm=Math.max,Km=Math.min;function qm(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Wm);t=ks(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Hm(ks(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Km(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=$o();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R($o())}function j(){var P=$o(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Xm="Expected a function";function Ym(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Xm);return Kt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),qm(e,t,{leading:n,maxWait:t,trailing:o})}const bl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=Z.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Ym(()=>{u(o())},50);Sr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(pl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(gl,{})})]})})),Zm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Qm=Z.forwardRef(Zm),e0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),t0=Z.forwardRef(e0),r0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),n0=Z.forwardRef(r0),o0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),a0=Z.forwardRef(o0),s0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),i0=Z.forwardRef(s0),l0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),c0=Z.forwardRef(l0),u0=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(i0,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(c0,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function d0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const f0=2;function xl(e,t){return e-t}function $s(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Gn(e,t,r){return(e-t)*100/(r-t)}function h0(e,t,r){return(r-t)*e+t}function m0(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function p0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(m0(t)))}function Ns({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?d0(e,t):!1}const g0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},y0=e=>e;let Sn;function Fs(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function _0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=y0,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=ol({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(xl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ie,ref:ot}=al(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Bn(ot,Re),ct=Bn(b,Ot),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Be=T=>I=>{var F;Ae(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ut=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=hr(H,c,l),X){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Ns({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!xn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ut(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};va(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ut(I,I.target.valueAsNumber)},xt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=h0(Xe,c,l),_)te=p0(te,_,c);else{const Mt=$s(ce,te);te=ce[Mt]}te=hr(te,c,l);let $e=0;if(X){I?$e=xt.current:$e=$s(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const Mt=te;te=Ns({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(Mt),xt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Pn(T=>{const I=_n(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>f0&&le(!0),G&&!xn(F,D)&&G(T,F,W)}),he=Pn(T=>{const I=_n(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Pn(T=>{if(n)return;Fs()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!xn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:Fs()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=_n(I,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=E({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),q(H),G&&!xn(H,D)&&G(I,H,Ve)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Gn(X?K[0]:c,c,l),Et=Gn(K[K.length-1],c,l)-je,Bt=(T={})=>{const I=On(T),F={onMouseDown:Tt(I||{})},W=A({},I,F);return A({},T,{ref:ct},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Je,axisProps:g0,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var I;const F=On(T),W={onChange:Ut(F||{}),onFocus:qe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:A({},Jf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const I=On(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Pr(I||{})};return A({},T,I,F)},marks:we,open:P,range:X,rootRef:ct,trackLeap:Et,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const b0=e=>!e||!Gr(e);function x0(e){return sn("MuiSlider",e)}const et=Qi("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),S0=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Sl(e){const{children:t,className:r,value:n}=e,o=S0(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Sl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const v0=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ds(e){return e}const w0=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),R0=Ct("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),j0=Ct("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),C0=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rs(e.palette[r].main,.16)}`})}}))]}}),A0=Ct(Sl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),P0=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pa(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),O0=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pa(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),T0=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(u,x0,i)},E0=({children:e})=>e,vl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=Oa({props:t,name:"MuiSlider"}),q=Kf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ie,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:qe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:xt=1,scale:Je=Ds,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=Ds}=D,Tt=Ue(D,v0),je=A({},D,{isRtl:q,max:qe,min:Be,classes:Ie,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:xt,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Et,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=_0(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=T0(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:w0,Mt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:R0,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:j0,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:C0,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:A0,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:P0,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:O0,Er=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,dn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,nr=(P=E==null?void 0:E.thumb)!=null?P:Q.thumb,or=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,xo=(z=E==null?void 0:E.mark)!=null?z:Q.mark,So=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,fn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,hn=It({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Tt,additionalProps:A({},b0($e)&&{as:we}),ownerState:A({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),vo=It({elementType:Mt,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=It({elementType:rr,externalSlotProps:Ir,additionalProps:{style:A({},Et[at].offset(H),Et[at].leap(Ve))},ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=It({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=It({elementType:St,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=It({elementType:Jt,externalSlotProps:xo,ownerState:je,className:te.mark}),w=It({elementType:Vt,externalSlotProps:So,ownerState:je,className:te.markLabel}),M=It({elementType:Er,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(Mt,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=qe).map(($,U)=>{const re=Gn($.value,Be,qe),V=Et[at].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Gn($,Be,qe),V=Et[at].offset(re),B=Le==="off"?E0:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,Xe(U),Lr.style),children:s.jsx(Er,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(vl.propTypes={"aria-label":gs(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":gs(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var M0="[object Number]";function I0(e){return typeof e=="number"||qt(e)&&Zt(e)==M0}const wl=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!I0(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(vl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Rl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(wl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),jl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),L0=He.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})});function k0(){this.__data__=[],this.size=0}function Cl(e,t){return e===t||e!==e&&t!==t}function uo(e,t){for(var r=e.length;r--;)if(Cl(e[r][0],t))return r;return-1}var $0=Array.prototype,N0=$0.splice;function F0(e){var t=this.__data__,r=uo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():N0.call(t,r,1),--this.size,!0}function D0(e){var t=this.__data__,r=uo(t,e);return r<0?void 0:t[r][1]}function U0(e){return uo(this.__data__,e)>-1}function B0(e,t){var r=this.__data__,n=uo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=k0;At.prototype.delete=F0;At.prototype.get=D0;At.prototype.has=U0;At.prototype.set=B0;function J0(){this.__data__=new At,this.size=0}function V0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function G0(e){return this.__data__.get(e)}function z0(e){return this.__data__.has(e)}var W0="[object AsyncFunction]",H0="[object Function]",K0="[object GeneratorFunction]",q0="[object Proxy]";function Al(e){if(!Kt(e))return!1;var t=Zt(e);return t==H0||t==K0||t==W0||t==q0}var No=_t["__core-js_shared__"],Us=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X0(e){return!!Us&&Us in e}var Y0=Function.prototype,Z0=Y0.toString;function Qt(e){if(e!=null){try{return Z0.call(e)}catch{}try{return e+""}catch{}}return""}var Q0=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,tp=Function.prototype,rp=Object.prototype,np=tp.toString,op=rp.hasOwnProperty,ap=RegExp("^"+np.call(op).replace(Q0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sp(e){if(!Kt(e)||X0(e))return!1;var t=Al(e)?ap:ep;return t.test(Qt(e))}function ip(e,t){return e==null?void 0:e[t]}function er(e,t){var r=ip(e,t);return sp(r)?r:void 0}var Yr=er(_t,"Map"),Zr=er(Object,"create");function lp(){this.__data__=Zr?Zr(null):{},this.size=0}function cp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var up="__lodash_hash_undefined__",dp=Object.prototype,fp=dp.hasOwnProperty;function hp(e){var t=this.__data__;if(Zr){var r=t[e];return r===up?void 0:r}return fp.call(t,e)?t[e]:void 0}var mp=Object.prototype,pp=mp.hasOwnProperty;function gp(e){var t=this.__data__;return Zr?t[e]!==void 0:pp.call(t,e)}var yp="__lodash_hash_undefined__";function _p(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?yp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=lp;Xt.prototype.delete=cp;Xt.prototype.get=hp;Xt.prototype.has=gp;Xt.prototype.set=_p;function bp(){this.size=0,this.__data__={hash:new Xt,map:new(Yr||At),string:new Xt}}function xp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fo(e,t){var r=e.__data__;return xp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Sp(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t}function vp(e){return fo(this,e).get(e)}function wp(e){return fo(this,e).has(e)}function Rp(e,t){var r=fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=bp;Pt.prototype.delete=Sp;Pt.prototype.get=vp;Pt.prototype.has=wp;Pt.prototype.set=Rp;var jp=200;function Cp(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Yr||n.length<jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=J0;Rt.prototype.delete=V0;Rt.prototype.get=G0;Rt.prototype.has=z0;Rt.prototype.set=Cp;var Ap="__lodash_hash_undefined__";function Pp(e){return this.__data__.set(e,Ap),this}function Op(e){return this.__data__.has(e)}function zn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}zn.prototype.add=zn.prototype.push=Pp;zn.prototype.has=Op;function Tp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Ep(e,t){return e.has(t)}var Mp=1,Ip=2;function Pl(e,t,r,n,o,a){var i=r&Mp,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&Ip?new zn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!Tp(t,function(v,R){if(!Ep(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bs=_t.Uint8Array;function Lp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function kp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var $p=1,Np=2,Fp="[object Boolean]",Dp="[object Date]",Up="[object Error]",Bp="[object Map]",Jp="[object Number]",Vp="[object RegExp]",Gp="[object Set]",zp="[object String]",Wp="[object Symbol]",Hp="[object ArrayBuffer]",Kp="[object DataView]",Js=Nt?Nt.prototype:void 0,Fo=Js?Js.valueOf:void 0;function qp(e,t,r,n,o,a,i){switch(r){case Kp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hp:return!(e.byteLength!=t.byteLength||!a(new Bs(e),new Bs(t)));case Fp:case Dp:case Jp:return Cl(+e,+t);case Up:return e.name==t.name&&e.message==t.message;case Vp:case zp:return e==t+"";case Bp:var l=Lp;case Gp:var c=n&$p;if(l||(l=kp),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=Np,i.set(e,t);var d=Pl(l(e),l(t),n,o,a,i);return i.delete(e),d;case Wp:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}function Xp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function Yp(e,t,r){var n=t(e);return yt(e)?n:Xp(n,r(e))}function Zp(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Qp(){return[]}var eg=Object.prototype,tg=eg.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,rg=Vs?function(e){return e==null?[]:(e=Object(e),Zp(Vs(e),function(t){return tg.call(e,t)}))}:Qp;function ng(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var og="[object Arguments]";function Gs(e){return qt(e)&&Zt(e)==og}var Ol=Object.prototype,ag=Ol.hasOwnProperty,sg=Ol.propertyIsEnumerable,Tl=Gs(function(){return arguments}())?Gs:function(e){return qt(e)&&ag.call(e,"callee")&&!sg.call(e,"callee")};function ig(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zs=El&&typeof module=="object"&&module&&!module.nodeType&&module,lg=zs&&zs.exports===El,Ws=lg?_t.Buffer:void 0,cg=Ws?Ws.isBuffer:void 0,ra=cg||ig,ug=9007199254740991,dg=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var r=typeof e;return t=t??ug,!!t&&(r=="number"||r!="symbol"&&dg.test(e))&&e>-1&&e%1==0&&e<t}var fg=9007199254740991;function Ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fg}var hg="[object Arguments]",mg="[object Array]",pg="[object Boolean]",gg="[object Date]",yg="[object Error]",_g="[object Function]",bg="[object Map]",xg="[object Number]",Sg="[object Object]",vg="[object RegExp]",wg="[object Set]",Rg="[object String]",jg="[object WeakMap]",Cg="[object ArrayBuffer]",Ag="[object DataView]",Pg="[object Float32Array]",Og="[object Float64Array]",Tg="[object Int8Array]",Eg="[object Int16Array]",Mg="[object Int32Array]",Ig="[object Uint8Array]",Lg="[object Uint8ClampedArray]",kg="[object Uint16Array]",$g="[object Uint32Array]",de={};de[Pg]=de[Og]=de[Tg]=de[Eg]=de[Mg]=de[Ig]=de[Lg]=de[kg]=de[$g]=!0;de[hg]=de[mg]=de[Cg]=de[pg]=de[Ag]=de[gg]=de[yg]=de[_g]=de[bg]=de[xg]=de[Sg]=de[vg]=de[wg]=de[Rg]=de[jg]=!1;function Ng(e){return qt(e)&&Ma(e.length)&&!!de[Zt(e)]}function Fg(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Dg=zr&&zr.exports===Il,Do=Dg&&yl.process,Hs=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Do&&Do.binding&&Do.binding("util")}catch{}}(),Ks=Hs&&Hs.isTypedArray,Ll=Ks?Fg(Ks):Ng,Ug=Object.prototype,Bg=Ug.hasOwnProperty;function Jg(e,t){var r=yt(e),n=!r&&Tl(e),o=!r&&!n&&ra(e),a=!r&&!n&&!o&&Ll(e),i=r||n||o||a,l=i?ng(e.length,String):[],c=l.length;for(var u in e)Bg.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ml(u,c)))&&l.push(u);return l}var Vg=Object.prototype;function Gg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vg;return e===r}function zg(e,t){return function(r){return e(t(r))}}var Wg=zg(Object.keys,Object),Hg=Object.prototype,Kg=Hg.hasOwnProperty;function qg(e){if(!Gg(e))return Wg(e);var t=[];for(var r in Object(e))Kg.call(e,r)&&r!="constructor"&&t.push(r);return t}function kl(e){return e!=null&&Ma(e.length)&&!Al(e)}function Ia(e){return kl(e)?Jg(e):qg(e)}function qs(e){return Yp(e,Ia,rg)}var Xg=1,Yg=Object.prototype,Zg=Yg.hasOwnProperty;function Qg(e,t,r,n,o,a){var i=r&Xg,l=qs(e),c=l.length,u=qs(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:Zg.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var na=er(_t,"DataView"),oa=er(_t,"Promise"),aa=er(_t,"Set"),sa=er(_t,"WeakMap"),Xs="[object Map]",ey="[object Object]",Ys="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",ei="[object DataView]",ty=Qt(na),ry=Qt(Yr),ny=Qt(oa),oy=Qt(aa),ay=Qt(sa),kt=Zt;(na&&kt(new na(new ArrayBuffer(1)))!=ei||Yr&&kt(new Yr)!=Xs||oa&&kt(oa.resolve())!=Ys||aa&&kt(new aa)!=Zs||sa&&kt(new sa)!=Qs)&&(kt=function(e){var t=Zt(e),r=t==ey?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case ty:return ei;case ry:return Xs;case ny:return Ys;case oy:return Zs;case ay:return Qs}return t});var sy=1,ti="[object Arguments]",ri="[object Array]",vn="[object Object]",iy=Object.prototype,ni=iy.hasOwnProperty;function ly(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?ri:kt(e),u=l?ri:kt(t);c=c==ti?vn:c,u=u==ti?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ra(e)){if(!ra(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||Ll(e)?Pl(e,t,r,n,o,a):qp(e,t,c,r,n,o,a);if(!(r&sy)){var b=d&&ni.call(e,"__wrapped__"),y=h&&ni.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),Qg(e,t,r,n,o,a)):!1}function ho(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:ly(e,t,r,n,ho,o)}function cy(e,t){return ho(e,t)}const uy=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Sr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;cy(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},dy=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Ti(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(t0,{})},{id:"y",color:"#42A705",icon:s.jsx(n0,{})},{id:"z",color:"#0075FF",icon:s.jsx(a0,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(L0,{store:e}),s.jsx(u0,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Qm,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Rl,{store:e}),s.jsx(uy,{store:e})]})}),fy=He.observer(({store:e})=>{const t=Z.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})}),hy=He.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(fy,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Rl,{store:e})]})});var oi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function my(e,t,r){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function py(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function gy(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var yy=gy();function _y(e,t){return e&&yy(e,t,Ia)}function by(e,t){return function(r,n){if(r==null)return r;if(!kl(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var xy=by(_y);function Sy(e,t,r,n){return xy(e,function(o,a,i){t(n,o,r(o),i)}),n}var vy=1,wy=2;function Ry(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?ho(u,c,vy|wy,n,d):h))return!1}}return!0}function $l(e){return e===e&&!Kt(e)}function jy(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,$l(o)]}return t}function Nl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Cy(e){var t=jy(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(r){return r===e||Ry(r,e,t)}}var Ay=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Py=/^\w*$/;function La(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:Py.test(e)||!Ay.test(e)||t!=null&&e in Object(t)}var Oy="Expected a function";function ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Oy);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ka.Cache||Pt),r}ka.Cache=Pt;var Ty=500;function Ey(e){var t=ka(e,function(n){return r.size===Ty&&r.clear(),n}),r=t.cache;return t}var My=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Iy=/\\(\\)?/g,Ly=Ey(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(My,function(r,n,o,a){t.push(o?a.replace(Iy,"$1"):n||r)}),t});function ky(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var $y=1/0,ai=Nt?Nt.prototype:void 0,si=ai?ai.toString:void 0;function Fl(e){if(typeof e=="string")return e;if(yt(e))return ky(e,Fl)+"";if(co(e))return si?si.call(e):"";var t=e+"";return t=="0"&&1/e==-$y?"-0":t}function Dl(e){return e==null?"":Fl(e)}function Ul(e,t){return yt(e)?e:La(e,t)?[e]:Ly(Dl(e))}var Ny=1/0;function mo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-Ny?"-0":t}function Bl(e,t){t=Ul(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mo(t[r++])];return r&&r==n?e:void 0}function Fy(e,t,r){var n=e==null?void 0:Bl(e,t);return n===void 0?r:n}function Dy(e,t){return e!=null&&t in Object(e)}function Uy(e,t,r){t=Ul(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=mo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Ma(o)&&Ml(i,o)&&(yt(e)||Tl(e)))}function By(e,t){return e!=null&&Uy(e,t,Dy)}var Jy=1,Vy=2;function Gy(e,t){return La(e)&&$l(t)?Nl(mo(e),t):function(r){var n=Fy(r,e);return n===void 0&&n===t?By(r,e):ho(t,n,Jy|Vy)}}function zy(e){return e}function Wy(e){return function(t){return t==null?void 0:t[e]}}function Hy(e){return function(t){return Bl(t,e)}}function Ky(e){return La(e)?Wy(mo(e)):Hy(e)}function qy(e){return typeof e=="function"?e:e==null?zy:typeof e=="object"?yt(e)?Gy(e[0],e[1]):Cy(e):Ky(e)}function Xy(e,t){return function(r,n){var o=yt(r)?py:Sy,a={};return o(r,e,qy(n),a)}}var wn=Xy(function(e,t,r){my(e,r,t)}),Yy=0;function Zy(e){var t=++Yy;return Dl(e)+t}const ia=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],Qy=[{id:"continuous"},...ia];class $a{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new $a(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Qy}get discreteIncrementOptions(){return ia}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ia.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=Zy();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function Jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:e1}=Object.prototype,{getPrototypeOf:Na}=Object,po=(e=>t=>{const r=e1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>po(t)===e),go=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=go("undefined");function t1(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=lt("ArrayBuffer");function r1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const n1=go("string"),We=go("function"),Gl=go("number"),yo=e=>e!==null&&typeof e=="object",o1=e=>e===!0||e===!1,Mn=e=>{if(po(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a1=lt("Date"),s1=lt("File"),i1=lt("Blob"),l1=lt("FileList"),c1=e=>yo(e)&&We(e.pipe),u1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=po(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},d1=lt("URLSearchParams"),[f1,h1,m1,p1]=["ReadableStream","Request","Response","Headers"].map(lt),g1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function zl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Qr(e)&&e!==zt;function la(){const{caseless:e}=Wl(this)&&this||{},t={},r=(n,o)=>{const a=e&&zl(t,o)||o;Mn(t[a])&&Mn(n)?t[a]=la(t[a],n):Mn(n)?t[a]=la({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&cn(arguments[n],r);return t}const y1=(e,t,r,{allOwnKeys:n}={})=>(cn(t,(o,a)=>{r&&We(o)?e[a]=Jl(o,r):e[a]=o},{allOwnKeys:n}),e),_1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},x1=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},S1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},v1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!Gl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},w1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),R1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},j1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},C1=lt("HTMLFormElement"),A1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P1=lt("RegExp"),Hl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},O1=e=>{Hl(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},T1=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},E1=()=>{},M1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uo="abcdefghijklmnopqrstuvwxyz",li="0123456789",Kl={DIGIT:li,ALPHA:Uo,ALPHA_DIGIT:Uo+Uo.toUpperCase()+li},I1=(e=16,t=Kl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function L1(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k1=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return cn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},$1=lt("AsyncFunction"),N1=e=>e&&(yo(e)||We(e))&&We(e.then)&&We(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),F1=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ql,x={isArray:jr,isArrayBuffer:Vl,isBuffer:t1,isFormData:u1,isArrayBufferView:r1,isString:n1,isNumber:Gl,isBoolean:o1,isObject:yo,isPlainObject:Mn,isReadableStream:f1,isRequest:h1,isResponse:m1,isHeaders:p1,isUndefined:Qr,isDate:a1,isFile:s1,isBlob:i1,isRegExp:P1,isFunction:We,isStream:c1,isURLSearchParams:d1,isTypedArray:w1,isFileList:l1,forEach:cn,merge:la,extend:y1,trim:g1,stripBOM:_1,inherits:b1,toFlatObject:x1,kindOf:po,kindOfTest:lt,endsWith:S1,toArray:v1,forEachEntry:R1,matchAll:j1,isHTMLForm:C1,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Hl,freezeMethods:O1,toObjectSet:T1,toCamelCase:A1,noop:E1,toFiniteNumber:M1,findKey:zl,global:zt,isContextDefined:Wl,ALPHABET:Kl,generateString:I1,isSpecCompliantForm:L1,toJSONObject:k1,isAsyncFn:$1,isThenable:N1,setImmediate:ql,asap:F1};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}x.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xl=J.prototype,Yl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yl[e]={value:e}});Object.defineProperties(J,Yl);Object.defineProperty(Xl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(Xl);return x.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const D1=null;function ca(e){return x.isPlainObject(e)||x.isArray(e)}function Zl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,r){return e?e.concat(t).map(function(o,a){return o=Zl(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function U1(e){return x.isArray(e)&&!e.some(ca)}const B1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!x.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!c&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let v=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&U1(y)||(x.isFileList(y)||x.endsWith(_,"[]"))&&(v=x.toArray(y)))return _=Zl(_),v.forEach(function(C,k){!(x.isUndefined(C)||C===null)&&t.append(i===!0?ci([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ca(y)?!0:(t.append(ci(g,_,a),u(y)),!1)}const h=[],f=Object.assign(B1,{defaultVisitor:d,convertValue:u,isVisitable:ca});function b(y,_){if(!x.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),x.forEach(y,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,_,f))===!0&&b(v,_?_.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fa(e,t){this._pairs=[],e&&_o(e,this,t)}const Ql=Fa.prototype;Ql.append=function(t,r){this._pairs.push([t,r])};Ql.toString=function(t){const r=t?function(n){return t.call(this,n,ui)}:ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function J1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,r){if(!t)return e;const n=r&&r.encode||J1,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Fa(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class di{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V1=typeof URLSearchParams<"u"?URLSearchParams:Fa,G1=typeof FormData<"u"?FormData:null,z1=typeof Blob<"u"?Blob:null,W1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:G1,Blob:z1},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",H1=(e=>Da&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),K1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q1=Da&&window.location.href||"http://localhost",X1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:H1,hasStandardBrowserWebWorkerEnv:K1,origin:q1},Symbol.toStringTag,{value:"Module"})),st={...X1,...W1};function Y1(e,t){return _o(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Z1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q1(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function rc(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&x.isArray(o)?o.length:i,c?(x.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!x.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&x.isArray(o[i])&&(o[i]=Q1(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Z1(n),o,r,0)}),r}return null}function e_(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const un={transitional:tc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=x.isObject(t);if(a&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(rc(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Y1(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _o(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),e_(t)):t}],transformResponse:[function(t){const r=this.transitional||un.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{un.headers[e]={}});const t_=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r_=e=>{const t={};let r,n,o;return e&&e.split(`
79
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&t_[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},fi=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:x.isArray(e)?e.map(In):String(e)}function n_(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const o_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bo(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function a_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function s_(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Br(c);if(!d)throw new Error("header name must be a non-empty string");const h=x.findKey(o,d);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=In(l))}const i=(l,c)=>x.forEach(l,(u,d)=>a(u,d,c));if(x.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(x.isString(t)&&(t=t.trim())&&!o_(t))i(r_(t),r);else if(x.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Br(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return n_(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Br(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Bo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Br(i),i){const l=x.findKey(n,i);l&&(!r||Bo(n,n[l],l,r))&&(delete n[l],o=!0)}}return x.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||Bo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,a)=>{const i=x.findKey(n,a);if(i){r[i]=In(o),delete r[a];return}const l=t?a_(a):String(a).trim();l!==a&&delete r[a],r[l]=In(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[fi]=this[fi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Br(i);n[l]||(s_(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Fe);function Jo(e,t){const r=this||un,n=t||r,o=Fe.from(n.headers);let a=n.data;return x.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function nc(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Cr,J,{__CANCEL__:!0});function oc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function i_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function l_(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let h=a,f=0;for(;h!==o;)f+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(f*1e3/b):void 0}}function c_(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const Wn=(e,t,r=3)=>{let n=0;const o=l_(50,250);return c_(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},hi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mi=e=>(...t)=>x.asap(()=>e(...t)),u_=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=x.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),d_=st.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),x.isString(n)&&i.push("path="+n),x.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!f_(t)?h_(e,t):t}const pi=e=>e instanceof Fe?{...e}:e;function Yt(e,t){t=t||{};const r={};function n(u,d,h){return x.isPlainObject(u)&&x.isPlainObject(d)?x.merge.call({caseless:h},u,d):x.isPlainObject(d)?x.merge({},d):x.isArray(d)?d.slice():d}function o(u,d,h){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u,h)}else return n(u,d,h)}function a(u,d){if(!x.isUndefined(d))return n(void 0,d)}function i(u,d){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,h){if(h in t)return n(u,d);if(h in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(pi(u),pi(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,f=h(e[d],t[d],d);x.isUndefined(f)&&h!==l||(r[d]=f)}),r}const sc=e=>{const t=Yt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=ec(ac(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&u_(t.url))){const u=o&&a&&d_.read(a);u&&i.set(o,u)}return t},m_=typeof XMLHttpRequest<"u",p_=m_&&function(e){return new Promise(function(r,n){const o=sc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,f,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function v(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};oc(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||tc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Wn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,b]=Wn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Cr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=i_(o.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},g_=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new Cr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},y_=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},__=async function*(e,t,r){for await(const n of e)yield*y_(ArrayBuffer.isView(n)?n:await r(String(n)),t)},gi=(e,t,r,n,o)=>{const a=__(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:h}=await a.next();if(d){c(),u.close();return}let f=h.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ic=bo&&typeof ReadableStream=="function",ua=bo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},b_=ic&&lc(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yi=64*1024,da=ic&&lc(()=>x.isReadableStream(new Response("").body)),Hn={stream:da&&(e=>e.body)};bo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Hn[t]&&(Hn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const x_=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await ua(e)).byteLength},S_=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??x_(t)},v_=bo&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=sc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?g_([o,a],i):[],_,g;const v=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&b_&&r!=="get"&&r!=="head"&&(R=await S_(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=hi(R,Wn(mi(c)));n=gi(P.body,yi,z,le,ua)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=da&&(u==="stream"||u==="response");if(da&&(l||k)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=x.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&hi(O,Wn(mi(l),!0))||[];C=new Response(gi(C.body,yi,z,()=>{le&&le(),k&&v()},ua),P)}u=u||"text";let j=await Hn[x.findKey(Hn,u)||"text"](C,e);return!k&&v(),y&&y(),await new Promise((P,O)=>{oc(P,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),fa={http:D1,xhr:p_,fetch:v_};x.forEach(fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,w_=e=>x.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!w_(r)&&(n=fa[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
81
81
  `+a.map(_i).join(`
82
- `):" "+_i(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:fa};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function bi(e){return Vo(e),e.headers=Fe.from(e.headers),e.data=Jo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||un.adapter)(e).then(function(n){return Vo(e),n.data=Jo.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return nc(n)||(Vo(e),n&&n.response&&(n.response.data=Jo.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const uc="1.7.4",Ua={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ua[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xi={};Ua.transitional=function(t,r,n){function o(a,i){return"[Axios v"+uc+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!xi[i]&&(xi[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function w_(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const ha={assertOptions:w_,validators:Ua},kt=ha.validators;let Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
83
- `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ha.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:ha.assertOptions(o,{encode:kt.function,serialize:kt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,h=0,f;if(!c){const y=[bi.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);h<f;)d=d.then(y[h++],y[h++]);return d}f=l.length;let b=r;for(h=0;h<f;){const y=l[h++],_=l[h++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=bi.call(this,b)}catch(y){return Promise.reject(y)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Yt(this.defaults,t);const r=ac(t.baseURL,t.url);return ec(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Yt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Yt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let R_=class dc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new Cr(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new dc(function(o){t=o}),cancel:t}}};function j_(e){return function(r){return e.apply(null,r)}}function C_(e){return x.isObject(e)&&e.isAxiosError===!0}const ma={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ma).forEach(([e,t])=>{ma[t]=e});function fc(e){const t=new Wt(e),r=Jl(Wt.prototype.request,t);return x.extend(r,Wt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return fc(Yt(e,o))},r}const ve=fc(un);ve.Axios=Wt;ve.CanceledError=Cr;ve.CancelToken=R_;ve.isCancel=nc;ve.VERSION=uc;ve.toFormData=_o;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=j_;ve.isAxiosError=C_;ve.mergeConfig=Yt;ve.AxiosHeaders=Fe;ve.formToJSON=e=>rc(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=cc.getAdapter;ve.HttpStatusCode=ma;ve.default=ve;const{Axios:U_,AxiosError:Si,CanceledError:B_,isCancel:J_,CancelToken:V_,VERSION:G_,all:z_,Cancel:W_,isAxiosError:H_,spread:K_,toFormData:q_,AxiosHeaders:X_,HttpStatusCode:Y_,formToJSON:Z_,getAdapter:Q_,mergeConfig:eb}=ve;function A_(e){try{return JSON.stringify(e)}catch{return}}function P_(e){var t,r,n,o;return e instanceof Si&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Si&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${A_(e)||e}`}const O_=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(T_,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},T_=e=>{const t=P_(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},E_=en(He.observer(e=>{var a,i,l,c;const t=e.nova instanceof Rt.NovaClient?e.nova:new Rt.NovaClient({instanceUrl:e.nova}),r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await $a.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(Z.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),Z.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(vi,{children:s.jsx(O_,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(vi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(uy,{store:o}),o.currentTab.id==="joint"&&s.jsx(fy,{store:o}),e.children]})]})})}));function vi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function M_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function I_({baseUrl:e=M_(),...t}){return s.jsxs(L.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const L_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},k_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},$_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function N_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?k_:$_,n=ea({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?ea(n,e):n}exports.JoggingCartesianAxisControl=ta;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=E_;exports.NoMotionGroupModal=I_;exports.PresetEnvironment=Su;exports.Robot=xu;exports.SafetyZonesRenderer=Ru;exports.SupportedRobot=Ei;exports.VelocitySlider=wl;exports.WandelscriptEditor=Yc;exports.createNovaMuiTheme=N_;exports.defaultAxisConfig=L_;exports.defaultGetModel=pa;exports.useAnimationFrame=Sr;exports.useAutorun=Oi;exports.useMounted=qn;exports.useReaction=Ti;
82
+ `):" "+_i(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:fa};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function bi(e){return Vo(e),e.headers=Fe.from(e.headers),e.data=Jo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||un.adapter)(e).then(function(n){return Vo(e),n.data=Jo.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return nc(n)||(Vo(e),n&&n.response&&(n.response.data=Jo.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const uc="1.7.4",Ua={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ua[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xi={};Ua.transitional=function(t,r,n){function o(a,i){return"[Axios v"+uc+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!xi[i]&&(xi[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function R_(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const ha={assertOptions:R_,validators:Ua},Lt=ha.validators;let Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
83
+ `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ha.assertOptions(n,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:ha.assertOptions(o,{encode:Lt.function,serialize:Lt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,h=0,f;if(!c){const y=[bi.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);h<f;)d=d.then(y[h++],y[h++]);return d}f=l.length;let b=r;for(h=0;h<f;){const y=l[h++],_=l[h++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=bi.call(this,b)}catch(y){return Promise.reject(y)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Yt(this.defaults,t);const r=ac(t.baseURL,t.url);return ec(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Yt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Yt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let j_=class dc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new Cr(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new dc(function(o){t=o}),cancel:t}}};function C_(e){return function(r){return e.apply(null,r)}}function A_(e){return x.isObject(e)&&e.isAxiosError===!0}const ma={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ma).forEach(([e,t])=>{ma[t]=e});function fc(e){const t=new Wt(e),r=Jl(Wt.prototype.request,t);return x.extend(r,Wt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return fc(Yt(e,o))},r}const ve=fc(un);ve.Axios=Wt;ve.CanceledError=Cr;ve.CancelToken=j_;ve.isCancel=nc;ve.VERSION=uc;ve.toFormData=_o;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=C_;ve.isAxiosError=A_;ve.mergeConfig=Yt;ve.AxiosHeaders=Fe;ve.formToJSON=e=>rc(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=cc.getAdapter;ve.HttpStatusCode=ma;ve.default=ve;const{Axios:B_,AxiosError:Si,CanceledError:J_,isCancel:V_,CancelToken:G_,VERSION:z_,all:W_,Cancel:H_,isAxiosError:K_,spread:q_,toFormData:X_,AxiosHeaders:Y_,HttpStatusCode:Z_,formToJSON:Q_,getAdapter:eb,mergeConfig:tb}=ve;function P_(e){try{return JSON.stringify(e)}catch{return}}function O_(e){var t,r,n,o;return e instanceof Si&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Si&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${P_(e)||e}`}const T_=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(E_,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},E_=e=>{const t=O_(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},M_=en(He.observer(e=>{var a,i,l,c;const t=vc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await $a.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(Z.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),Z.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(vi,{children:s.jsx(T_,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(vi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(dy,{store:o}),o.currentTab.id==="joint"&&s.jsx(hy,{store:o}),e.children]})]})})}));function vi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function I_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function L_({baseUrl:e=I_(),...t}){return s.jsxs(L.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const k_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},$_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},N_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function F_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?$_:N_,n=ea({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?ea(n,e):n}exports.JoggingCartesianAxisControl=ta;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=M_;exports.NoMotionGroupModal=L_;exports.PresetEnvironment=vu;exports.Robot=Su;exports.SafetyZonesRenderer=ju;exports.SupportedRobot=Ei;exports.VelocitySlider=wl;exports.WandelscriptEditor=Zc;exports.createNovaMuiTheme=F_;exports.defaultAxisConfig=k_;exports.defaultGetModel=pa;exports.useAnimationFrame=Sr;exports.useAutorun=Oi;exports.useMounted=qn;exports.useReaction=Ti;
84
84
  //# sourceMappingURL=index.cjs.map