zenml-nightly 0.58.2.dev20240623__py3-none-any.whl → 0.61.0.dev20240712__py3-none-any.whl

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 (249) hide show
  1. README.md +30 -9
  2. RELEASE_NOTES.md +240 -0
  3. zenml/VERSION +1 -1
  4. zenml/actions/base_action.py +177 -174
  5. zenml/actions/pipeline_run/pipeline_run_action.py +28 -23
  6. zenml/analytics/enums.py +3 -0
  7. zenml/artifact_stores/base_artifact_store.py +7 -1
  8. zenml/artifacts/utils.py +13 -10
  9. zenml/cli/__init__.py +28 -0
  10. zenml/cli/artifact.py +1 -2
  11. zenml/cli/integration.py +9 -8
  12. zenml/cli/server.py +6 -0
  13. zenml/cli/service_connectors.py +1 -0
  14. zenml/cli/stack.py +946 -39
  15. zenml/cli/stack_components.py +7 -0
  16. zenml/cli/text_utils.py +35 -1
  17. zenml/cli/utils.py +127 -10
  18. zenml/client.py +257 -72
  19. zenml/config/compiler.py +10 -9
  20. zenml/config/docker_settings.py +33 -14
  21. zenml/constants.py +11 -2
  22. zenml/container_registries/base_container_registry.py +1 -0
  23. zenml/enums.py +7 -0
  24. zenml/event_hub/base_event_hub.py +5 -5
  25. zenml/event_hub/event_hub.py +20 -14
  26. zenml/event_sources/base_event.py +0 -11
  27. zenml/event_sources/base_event_source.py +7 -0
  28. zenml/event_sources/webhooks/base_webhook_event_source.py +1 -4
  29. zenml/exceptions.py +4 -0
  30. zenml/hooks/hook_validators.py +2 -3
  31. zenml/integrations/aws/__init__.py +1 -0
  32. zenml/integrations/azure/__init__.py +1 -0
  33. zenml/integrations/bitbucket/plugins/event_sources/bitbucket_webhook_event_source.py +3 -3
  34. zenml/integrations/deepchecks/__init__.py +1 -0
  35. zenml/integrations/discord/__init__.py +1 -0
  36. zenml/integrations/evidently/__init__.py +1 -0
  37. zenml/integrations/facets/__init__.py +1 -0
  38. zenml/integrations/feast/__init__.py +1 -0
  39. zenml/integrations/gcp/__init__.py +3 -1
  40. zenml/integrations/gcp/google_credentials_mixin.py +1 -1
  41. zenml/integrations/gcp/service_connectors/gcp_service_connector.py +320 -64
  42. zenml/integrations/huggingface/__init__.py +1 -0
  43. zenml/integrations/integration.py +24 -0
  44. zenml/integrations/kubeflow/__init__.py +3 -0
  45. zenml/integrations/kubeflow/flavors/kubeflow_orchestrator_flavor.py +1 -1
  46. zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +0 -1
  47. zenml/integrations/kubernetes/__init__.py +3 -1
  48. zenml/integrations/kubernetes/orchestrators/kube_utils.py +4 -1
  49. zenml/integrations/label_studio/annotators/label_studio_annotator.py +1 -0
  50. zenml/integrations/langchain/__init__.py +1 -0
  51. zenml/integrations/mlflow/__init__.py +4 -2
  52. zenml/integrations/neural_prophet/__init__.py +1 -0
  53. zenml/integrations/polars/__init__.py +1 -0
  54. zenml/integrations/prodigy/__init__.py +1 -0
  55. zenml/integrations/pycaret/__init__.py +6 -0
  56. zenml/integrations/registry.py +37 -0
  57. zenml/integrations/s3/artifact_stores/s3_artifact_store.py +93 -9
  58. zenml/integrations/seldon/__init__.py +1 -0
  59. zenml/integrations/seldon/model_deployers/seldon_model_deployer.py +1 -0
  60. zenml/integrations/skypilot/flavors/skypilot_orchestrator_base_vm_config.py +2 -2
  61. zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +1 -1
  62. zenml/integrations/skypilot/orchestrators/skypilot_orchestrator_entrypoint.py +2 -2
  63. zenml/integrations/skypilot_aws/__init__.py +2 -1
  64. zenml/integrations/skypilot_azure/__init__.py +1 -1
  65. zenml/integrations/skypilot_gcp/__init__.py +1 -1
  66. zenml/integrations/skypilot_lambda/__init__.py +1 -1
  67. zenml/integrations/skypilot_lambda/flavors/skypilot_orchestrator_lambda_vm_flavor.py +1 -1
  68. zenml/integrations/slack/__init__.py +1 -0
  69. zenml/integrations/tekton/__init__.py +1 -0
  70. zenml/integrations/tensorboard/__init__.py +0 -1
  71. zenml/integrations/tensorflow/__init__.py +18 -6
  72. zenml/integrations/wandb/__init__.py +1 -0
  73. zenml/logging/step_logging.py +54 -51
  74. zenml/models/__init__.py +28 -0
  75. zenml/models/v2/core/action.py +276 -0
  76. zenml/models/v2/core/component.py +18 -0
  77. zenml/models/v2/core/model.py +1 -2
  78. zenml/models/v2/core/service_connector.py +17 -0
  79. zenml/models/v2/core/stack.py +31 -0
  80. zenml/models/v2/core/trigger.py +182 -141
  81. zenml/models/v2/misc/full_stack.py +97 -0
  82. zenml/models/v2/misc/stack_deployment.py +86 -0
  83. zenml/new/pipelines/pipeline.py +14 -4
  84. zenml/new/pipelines/pipeline_decorator.py +1 -2
  85. zenml/new/pipelines/run_utils.py +1 -12
  86. zenml/new/steps/step_decorator.py +2 -3
  87. zenml/orchestrators/input_utils.py +3 -6
  88. zenml/pipelines/base_pipeline.py +0 -2
  89. zenml/pipelines/pipeline_decorator.py +1 -2
  90. zenml/stack/stack.py +3 -6
  91. zenml/stack/stack_component.py +4 -0
  92. zenml/stack_deployments/__init__.py +14 -0
  93. zenml/stack_deployments/aws_stack_deployment.py +254 -0
  94. zenml/stack_deployments/gcp_stack_deployment.py +260 -0
  95. zenml/stack_deployments/stack_deployment.py +208 -0
  96. zenml/stack_deployments/utils.py +44 -0
  97. zenml/steps/base_step.py +1 -2
  98. zenml/steps/step_decorator.py +1 -2
  99. zenml/types.py +10 -1
  100. zenml/utils/function_utils.py +1 -1
  101. zenml/utils/pagination_utils.py +7 -5
  102. zenml/utils/pipeline_docker_image_builder.py +117 -73
  103. zenml/utils/pydantic_utils.py +6 -5
  104. zenml/zen_server/cloud_utils.py +18 -3
  105. zenml/zen_server/dashboard/assets/{404-CDPQCl4D.js → 404-DpJaNHKF.js} +1 -1
  106. zenml/zen_server/dashboard/assets/@radix-CFOkMR_E.js +85 -0
  107. zenml/zen_server/dashboard/assets/{@react-router-DYovave8.js → @react-router-CO-OsFwI.js} +2 -2
  108. zenml/zen_server/dashboard/assets/{@reactflow-CHBapDaj.js → @reactflow-DJfzkHO1.js} +2 -2
  109. zenml/zen_server/dashboard/assets/@tanstack-DYiOyJUL.js +22 -0
  110. zenml/zen_server/dashboard/assets/AwarenessChannel-BYDLT2xC.js +1 -0
  111. zenml/zen_server/dashboard/assets/{CodeSnippet-BidtnWOi.js → CodeSnippet-BkOuRmyq.js} +2 -2
  112. zenml/zen_server/dashboard/assets/Commands-ZvWR1BRs.js +1 -0
  113. zenml/zen_server/dashboard/assets/CopyButton-DVwLkafa.js +2 -0
  114. zenml/zen_server/dashboard/assets/{CsvVizualization-BOuez-fG.js → CsvVizualization-C2IiqX4I.js} +7 -7
  115. zenml/zen_server/dashboard/assets/DisplayDate-DYgIjlDF.js +1 -0
  116. zenml/zen_server/dashboard/assets/EmptyState-BMLnFVlB.js +1 -0
  117. zenml/zen_server/dashboard/assets/Error-CqX0VqW_.js +1 -0
  118. zenml/zen_server/dashboard/assets/ExecutionStatus-BoLUXR9t.js +1 -0
  119. zenml/zen_server/dashboard/assets/Helpbox-LFydyVwh.js +1 -0
  120. zenml/zen_server/dashboard/assets/Infobox-DnENC0sh.js +1 -0
  121. zenml/zen_server/dashboard/assets/InlineAvatar-CbJtYr0t.js +1 -0
  122. zenml/zen_server/dashboard/assets/{MarkdownVisualization-DsB2QZiK.js → MarkdownVisualization-xp3hhULl.js} +2 -2
  123. zenml/zen_server/dashboard/assets/Pagination-DEbVUupy.js +1 -0
  124. zenml/zen_server/dashboard/assets/PasswordChecker-DUveqlva.js +1 -0
  125. zenml/zen_server/dashboard/assets/SetPassword-BYBdbQDo.js +1 -0
  126. zenml/zen_server/dashboard/assets/SuccessStep-Nx743hll.js +1 -0
  127. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DnM-c11H.js → UpdatePasswordSchemas-DF9gSzE0.js} +1 -1
  128. zenml/zen_server/dashboard/assets/{aws-t0gKCj_R.js → aws-BgKTfTfx.js} +1 -1
  129. zenml/zen_server/dashboard/assets/{check-circle-BVvhm5dy.js → check-circle-i56092KI.js} +1 -1
  130. zenml/zen_server/dashboard/assets/{chevron-down-zcvCWmyP.js → chevron-down-D_ZlKMqH.js} +1 -1
  131. zenml/zen_server/dashboard/assets/{chevron-right-double-CJ50E9Gr.js → chevron-right-double-BiEMg7rd.js} +1 -1
  132. zenml/zen_server/dashboard/assets/cloud-only-DVbIeckv.js +1 -0
  133. zenml/zen_server/dashboard/assets/{copy-BRhQz3j-.js → copy-BXNk6BjL.js} +1 -1
  134. zenml/zen_server/dashboard/assets/{database-CRRnyFWh.js → database-1xWSgZfO.js} +1 -1
  135. zenml/zen_server/dashboard/assets/{docker-BAonhm6G.js → docker-CQMVm_4d.js} +1 -1
  136. zenml/zen_server/dashboard/assets/{file-text-CbVERUON.js → file-text-CqD_iu6l.js} +1 -1
  137. zenml/zen_server/dashboard/assets/{help-B8rqCvqn.js → help-bu_DgLKI.js} +1 -1
  138. zenml/zen_server/dashboard/assets/index-C_CrU4vI.js +1 -0
  139. zenml/zen_server/dashboard/assets/index-DK1ynKjA.js +55 -0
  140. zenml/zen_server/dashboard/assets/index-inApY3KQ.css +1 -0
  141. zenml/zen_server/dashboard/assets/index-rK_Wuy2W.js +1 -0
  142. zenml/zen_server/dashboard/assets/index.esm-Corw4lXQ.js +1 -0
  143. zenml/zen_server/dashboard/assets/{login-mutation-wzzl23C6.js → login-mutation-BUnVASxp.js} +1 -1
  144. zenml/zen_server/dashboard/assets/not-found-B4VnX8gK.js +1 -0
  145. zenml/zen_server/dashboard/assets/package-CsUhPmou.js +1 -0
  146. zenml/zen_server/dashboard/assets/{page-BmkSiYeQ.js → page-3efNCDeb.js} +2 -2
  147. zenml/zen_server/dashboard/assets/page-7zTHbhhI.js +1 -0
  148. zenml/zen_server/dashboard/assets/page-BEs6jK71.js +1 -0
  149. zenml/zen_server/dashboard/assets/page-BpSqIf4B.js +1 -0
  150. zenml/zen_server/dashboard/assets/{page-AQKopn_4.js → page-Bx6o0ARS.js} +1 -1
  151. zenml/zen_server/dashboard/assets/page-C43QGHTt.js +9 -0
  152. zenml/zen_server/dashboard/assets/page-CR0OG7ss.js +1 -0
  153. zenml/zen_server/dashboard/assets/page-CRTJ0UuR.js +1 -0
  154. zenml/zen_server/dashboard/assets/page-CUZIGO-3.js +1 -0
  155. zenml/zen_server/dashboard/assets/page-CaopxiU1.js +1 -0
  156. zenml/zen_server/dashboard/assets/{page-CuT1SUik.js → page-Cx67M0QT.js} +1 -1
  157. zenml/zen_server/dashboard/assets/page-D7Z399xy.js +1 -0
  158. zenml/zen_server/dashboard/assets/page-D93kd7Xj.js +1 -0
  159. zenml/zen_server/dashboard/assets/{page-BzVZGExK.js → page-DKlIdAe5.js} +1 -1
  160. zenml/zen_server/dashboard/assets/{page-Bi5AI0S7.js → page-DMOYZppS.js} +1 -1
  161. zenml/zen_server/dashboard/assets/page-DMsSn3dv.js +2 -0
  162. zenml/zen_server/dashboard/assets/{page-BW6Ket3a.js → page-Dc_7KMQE.js} +1 -1
  163. zenml/zen_server/dashboard/assets/page-DvCvroOM.js +1 -0
  164. zenml/zen_server/dashboard/assets/page-Hus2pr9T.js +1 -0
  165. zenml/zen_server/dashboard/assets/page-JyfeDUfu.js +1 -0
  166. zenml/zen_server/dashboard/assets/{page-yN4rZ-ZS.js → page-Sxn82W-5.js} +1 -1
  167. zenml/zen_server/dashboard/assets/page-TKXERe16.js +1 -0
  168. zenml/zen_server/dashboard/assets/page-Xu8JEjSU.js +1 -0
  169. zenml/zen_server/dashboard/assets/{play-circle-DK5QMJyp.js → play-circle-CNtZKDnW.js} +1 -1
  170. zenml/zen_server/dashboard/assets/plus-DOeLmm7C.js +1 -0
  171. zenml/zen_server/dashboard/assets/{terminal-B2ovgWuz.js → terminal-By9cErXc.js} +1 -1
  172. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-0Wgz8pUE.js → update-server-settings-mutation-CR8e3Sir.js} +1 -1
  173. zenml/zen_server/dashboard/assets/{url-6_xv0WJS.js → url-DuQMeqYA.js} +1 -1
  174. zenml/zen_server/dashboard/assets/{zod-DrZvVLjd.js → zod-BhoGpZ63.js} +1 -1
  175. zenml/zen_server/dashboard/index.html +7 -7
  176. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  177. zenml/zen_server/dashboard_legacy/index.html +1 -1
  178. zenml/zen_server/dashboard_legacy/{precache-manifest.f4abc5b7cfa7d90c1caf5521918e29a8.js → precache-manifest.c8c57fb0d2132b1d3c2119e776b7dfb3.js} +4 -4
  179. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  180. zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js → main.382439a7.chunk.js} +2 -2
  181. zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js.map → main.382439a7.chunk.js.map} +1 -1
  182. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  183. zenml/zen_server/deploy/helm/README.md +2 -2
  184. zenml/zen_server/feature_gate/zenml_cloud_feature_gate.py +11 -5
  185. zenml/zen_server/pipeline_deployment/utils.py +57 -44
  186. zenml/zen_server/rbac/models.py +1 -0
  187. zenml/zen_server/rbac/utils.py +22 -1
  188. zenml/zen_server/rbac/zenml_cloud_rbac.py +11 -5
  189. zenml/zen_server/routers/actions_endpoints.py +324 -0
  190. zenml/zen_server/routers/stack_deployment_endpoints.py +158 -0
  191. zenml/zen_server/routers/triggers_endpoints.py +30 -158
  192. zenml/zen_server/routers/workspaces_endpoints.py +64 -0
  193. zenml/zen_server/zen_server_api.py +4 -0
  194. zenml/zen_stores/migrations/utils.py +1 -1
  195. zenml/zen_stores/migrations/versions/0.60.0_release.py +23 -0
  196. zenml/zen_stores/migrations/versions/0.61.0_release.py +23 -0
  197. zenml/zen_stores/migrations/versions/0d707865f404_adding_labels_to_stacks.py +30 -0
  198. zenml/zen_stores/migrations/versions/25155145c545_separate_actions_and_triggers.py +228 -0
  199. zenml/zen_stores/rest_zen_store.py +248 -8
  200. zenml/zen_stores/schemas/__init__.py +2 -0
  201. zenml/zen_stores/schemas/action_schemas.py +192 -0
  202. zenml/zen_stores/schemas/stack_schemas.py +10 -0
  203. zenml/zen_stores/schemas/step_run_schemas.py +27 -11
  204. zenml/zen_stores/schemas/trigger_schemas.py +43 -50
  205. zenml/zen_stores/schemas/user_schemas.py +10 -2
  206. zenml/zen_stores/schemas/workspace_schemas.py +5 -0
  207. zenml/zen_stores/sql_zen_store.py +540 -36
  208. zenml/zen_stores/zen_store_interface.py +165 -0
  209. {zenml_nightly-0.58.2.dev20240623.dist-info → zenml_nightly-0.61.0.dev20240712.dist-info}/METADATA +33 -11
  210. {zenml_nightly-0.58.2.dev20240623.dist-info → zenml_nightly-0.61.0.dev20240712.dist-info}/RECORD +213 -193
  211. zenml/zen_server/dashboard/assets/@radix-C9DBgJhe.js +0 -77
  212. zenml/zen_server/dashboard/assets/@tanstack-CEbkxrhX.js +0 -30
  213. zenml/zen_server/dashboard/assets/AwarenessChannel-nXGpmj_f.js +0 -1
  214. zenml/zen_server/dashboard/assets/Cards-nwsvQLVS.js +0 -1
  215. zenml/zen_server/dashboard/assets/Commands-DuIWKg_Q.js +0 -1
  216. zenml/zen_server/dashboard/assets/CopyButton-B_YSm-Ds.js +0 -2
  217. zenml/zen_server/dashboard/assets/DisplayDate-BdguISQF.js +0 -1
  218. zenml/zen_server/dashboard/assets/EmptyState-BkooiGtL.js +0 -1
  219. zenml/zen_server/dashboard/assets/Error-B6M0dPph.js +0 -1
  220. zenml/zen_server/dashboard/assets/Helpbox-BQoqCm04.js +0 -1
  221. zenml/zen_server/dashboard/assets/Infobox-Ce9mefqU.js +0 -1
  222. zenml/zen_server/dashboard/assets/InlineAvatar-DGf3dVhV.js +0 -1
  223. zenml/zen_server/dashboard/assets/PageHeader-DGaemzjc.js +0 -1
  224. zenml/zen_server/dashboard/assets/Pagination-DVYfBCCc.js +0 -1
  225. zenml/zen_server/dashboard/assets/PasswordChecker-DSLBp7Vl.js +0 -1
  226. zenml/zen_server/dashboard/assets/SetPassword-B5s7DJug.js +0 -1
  227. zenml/zen_server/dashboard/assets/SuccessStep-ZzczaM7g.js +0 -1
  228. zenml/zen_server/dashboard/assets/cloud-only-Ba_ShBR5.js +0 -1
  229. zenml/zen_server/dashboard/assets/index-CWJ3xbIf.css +0 -1
  230. zenml/zen_server/dashboard/assets/index-QORVVTMN.js +0 -55
  231. zenml/zen_server/dashboard/assets/index.esm-F7nqy9zY.js +0 -1
  232. zenml/zen_server/dashboard/assets/not-found-Dh2la7kh.js +0 -1
  233. zenml/zen_server/dashboard/assets/page-B-5jAKoO.js +0 -1
  234. zenml/zen_server/dashboard/assets/page-B-vWk8a6.js +0 -1
  235. zenml/zen_server/dashboard/assets/page-B0BrqfS8.js +0 -1
  236. zenml/zen_server/dashboard/assets/page-BQxVFlUl.js +0 -1
  237. zenml/zen_server/dashboard/assets/page-ByrHy6Ss.js +0 -1
  238. zenml/zen_server/dashboard/assets/page-CPtY4Kv_.js +0 -1
  239. zenml/zen_server/dashboard/assets/page-CmmukLsl.js +0 -1
  240. zenml/zen_server/dashboard/assets/page-D2D-7qyr.js +0 -9
  241. zenml/zen_server/dashboard/assets/page-DAQQyLxT.js +0 -1
  242. zenml/zen_server/dashboard/assets/page-DHkUMl_E.js +0 -1
  243. zenml/zen_server/dashboard/assets/page-DZCbwOEs.js +0 -2
  244. zenml/zen_server/dashboard/assets/page-DdaIt20-.js +0 -1
  245. zenml/zen_server/dashboard/assets/page-LqLs24Ot.js +0 -1
  246. zenml/zen_server/dashboard/assets/page-lebv0c7C.js +0 -1
  247. {zenml_nightly-0.58.2.dev20240623.dist-info → zenml_nightly-0.61.0.dev20240712.dist-info}/LICENSE +0 -0
  248. {zenml_nightly-0.58.2.dev20240623.dist-info → zenml_nightly-0.61.0.dev20240712.dist-info}/WHEEL +0 -0
  249. {zenml_nightly-0.58.2.dev20240623.dist-info → zenml_nightly-0.61.0.dev20240712.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,9 @@
1
+ const __vite__fileDeps=["assets/CsvVizualization-C2IiqX4I.js","assets/@radix-CFOkMR_E.js","assets/index-DK1ynKjA.js","assets/@tanstack-DYiOyJUL.js","assets/@react-router-CO-OsFwI.js","assets/@reactflow-DJfzkHO1.js","assets/@reactflow-C26Olbza.css","assets/index-inApY3KQ.css","assets/MarkdownVisualization-xp3hhULl.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ var nr=Object.defineProperty;var sr=(e,t,r)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t,r)=>(sr(e,typeof t!="symbol"?t+"":t,r),r);import{r as p,j as s,g as ar}from"./@radix-CFOkMR_E.js";import{q as $e,j as U,n as se,F as R,k as F,l as H,s as Re,C as ae,t as te,v as ie,w as oe,S as C,r as me,T as E,m as Ae,x as ir,y as or,E as lr,G as dr,H as t1,_ as r1,i as Ee,h as $,J as De,K as cr,L as n1,p as ne,M as Fe,N as He,O as G,Q as ze,R as B,U as s1,V as a1,W as i1,X as ur,Y as hr,Z as Lt,$ as fr,o as mr,P as pr,z as St,c as xr,a0 as Cr}from"./index-DK1ynKjA.js";import{S as gr}from"./database-1xWSgZfO.js";import{H as Ot,P as Tt,u as Ge,a as br,g as vr,p as wr,S as yr,b as o1,c as jr,d as Er,e as Nr}from"./@reactflow-DJfzkHO1.js";import{D as l1}from"./chevron-right-double-BiEMg7rd.js";import{a as z,c as _r}from"./@tanstack-DYiOyJUL.js";import{E as W}from"./Error-CqX0VqW_.js";import{D as pe}from"./DisplayDate-DYgIjlDF.js";import{a as we,E as le,b as d1,g as kr}from"./ExecutionStatus-BoLUXR9t.js";import{I as Be}from"./InlineAvatar-CbJtYr0t.js";import{L as xe,g as Q,c as c1,b as u1}from"./@react-router-CO-OsFwI.js";import{C as D}from"./CodeSnippet-BkOuRmyq.js";import{S as de}from"./chevron-down-D_ZlKMqH.js";import{E as ee}from"./EmptyState-BMLnFVlB.js";import{s as Lr}from"./url-DuQMeqYA.js";import{I as Sr}from"./Infobox-DnENC0sh.js";import{S as Or}from"./docker-CQMVm_4d.js";import{C as J,R as Tr}from"./CopyButton-DVwLkafa.js";import{S as Pr}from"./plus-DOeLmm7C.js";import{S as Ir}from"./terminal-By9cErXc.js";import"./check-circle-i56092KI.js";import"./copy-BXNk6BjL.js";const Mr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2C3.55228 2 4 2.44772 4 3V21C4 21.5523 3.55228 22 3 22C2.44772 22 2 21.5523 2 21V3C2 2.44772 2.44772 2 3 2ZM14.7071 4.29289C15.0976 4.68342 15.0976 5.31658 14.7071 5.70711L9.41421 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9.41421L14.7071 18.2929C15.0976 18.6834 15.0976 19.3166 14.7071 19.7071C14.3166 20.0976 13.6834 20.0976 13.2929 19.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L13.2929 4.29289C13.6834 3.90237 14.3166 3.90237 14.7071 4.29289Z"})),Vr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V12.0001C22 12.5524 21.5523 13.0001 21 13.0001C20.4477 13.0001 20 12.5524 20 12.0001V8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.4443C13.3511 20.4447 13.6916 20.6302 13.8742 20.9589C14.1424 21.4417 13.9684 22.0505 13.4856 22.3187L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 16.0001C17.8954 16.0001 17 16.8955 17 18.0001C17 19.1047 17.8954 20.0001 19 20.0001C20.1046 20.0001 21 19.1047 21 18.0001C21 16.8955 20.1046 16.0001 19 16.0001ZM15 18.0001C15 15.7909 16.7909 14.0001 19 14.0001C21.2091 14.0001 23 15.7909 23 18.0001C23 18.8713 22.7215 19.6775 22.2486 20.3344L22.7071 20.793C23.0976 21.1835 23.0976 21.8167 22.7071 22.2072C22.3166 22.5977 21.6834 22.5977 21.2929 22.2072L20.7052 21.6195C20.1879 21.8636 19.6099 22.0001 19 22.0001C16.7909 22.0001 15 20.2092 15 18.0001Z"})),$r=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77687 1.00001C2.78469 1.00001 2.79241 1.00001 2.80001 1.00001H6.20001C6.20762 1.00001 6.21533 1.00001 6.22315 1.00001C6.34227 0.999961 6.48452 0.999906 6.60984 1.01015C6.75506 1.02201 6.96305 1.05245 7.181 1.1635C7.46324 1.30731 7.69271 1.53678 7.83652 1.81903C7.94757 2.03697 7.97801 2.24496 7.98988 2.39018C8.00012 2.5155 8.00006 2.65776 8.00002 2.77687C8.00001 2.78469 8.00001 2.79241 8.00001 2.80001V6.20001C8.00001 6.20762 8.00001 6.21533 8.00002 6.22315C8.00006 6.34227 8.00012 6.48452 7.98988 6.60984C7.97801 6.75506 7.94757 6.96305 7.83652 7.181C7.69271 7.46324 7.46324 7.69271 7.181 7.83652C6.96305 7.94757 6.75506 7.97801 6.60984 7.98988C6.48452 8.00012 6.34227 8.00006 6.22315 8.00002C6.21533 8.00001 6.20762 8.00001 6.20001 8.00001H2.80001C2.79241 8.00001 2.78469 8.00001 2.77687 8.00002C2.65776 8.00006 2.5155 8.00012 2.39018 7.98988C2.24496 7.97801 2.03697 7.94757 1.81903 7.83652C1.53678 7.69271 1.30731 7.46324 1.1635 7.181C1.05245 6.96305 1.02201 6.75506 1.01015 6.60984C0.999906 6.48452 0.999961 6.34227 1.00001 6.22315C1.00001 6.21533 1.00001 6.20762 1.00001 6.20001V2.80001C1.00001 2.79241 1.00001 2.78469 1.00001 2.77687C0.999961 2.65776 0.999906 2.5155 1.01015 2.39018C1.02201 2.24496 1.05245 2.03697 1.1635 1.81903C1.30731 1.53678 1.53678 1.30731 1.81903 1.1635C2.03697 1.05245 2.24496 1.02201 2.39018 1.01015C2.5155 0.999906 2.65776 0.999961 2.77687 1.00001ZM3.00001 3.00001V6.00001H6.00001V3.00001H3.00001ZM19.5322 5.52394C19.2488 5.50079 18.8766 5.50001 18.3 5.50001H11C10.4477 5.50001 10 5.0523 10 4.50001C10 3.94773 10.4477 3.50001 11 3.50001L18.3386 3.50001C18.8657 3.49999 19.3205 3.49998 19.695 3.53058C20.0904 3.56288 20.4836 3.6342 20.862 3.82699C21.4265 4.11461 21.8854 4.57356 22.173 5.13804C22.3658 5.51642 22.4371 5.90964 22.4694 6.30498C22.5 6.67955 22.5 7.13431 22.5 7.66145V9.032C22.5 9.47065 22.5 9.84914 22.4787 10.1624C22.4562 10.4922 22.4067 10.8221 22.2717 11.1481C21.9672 11.8832 21.3831 12.4672 20.6481 12.7717C20.3221 12.9067 19.9922 12.9562 19.6624 12.9787C19.3491 13 18.9706 13 18.532 13H18.5C17.9477 13 17.5 12.5523 17.5 12C17.5 11.4477 17.9477 11 18.5 11C18.9796 11 19.2893 10.9995 19.5263 10.9833C19.7542 10.9677 19.8411 10.9411 19.8827 10.9239C20.1277 10.8224 20.3224 10.6277 20.4239 10.3827C20.4411 10.3411 20.4677 10.2543 20.4833 10.0263C20.4995 9.78927 20.5 9.47964 20.5 9.00001V7.70001C20.5 7.12346 20.4992 6.75118 20.4761 6.46785C20.4539 6.19618 20.4162 6.09547 20.391 6.04602C20.2951 5.85786 20.1422 5.70488 19.954 5.60901C19.9046 5.58381 19.8038 5.54613 19.5322 5.52394ZM10.2769 8.50001C10.2847 8.50001 10.2924 8.50001 10.3 8.50001H13.7C13.7076 8.50001 13.7153 8.50001 13.7232 8.50001C13.8423 8.49996 13.9845 8.49991 14.1098 8.51015C14.2551 8.52201 14.4631 8.55245 14.681 8.6635C14.9632 8.80731 15.1927 9.03678 15.3365 9.31903C15.4476 9.53697 15.478 9.74496 15.4899 9.89018C15.5001 10.0155 15.5001 10.1578 15.5 10.2769C15.5 10.2847 15.5 10.2924 15.5 10.3V13.7C15.5 13.7076 15.5 13.7153 15.5 13.7231C15.5001 13.8423 15.5001 13.9845 15.4899 14.1098C15.478 14.2551 15.4476 14.4631 15.3365 14.681C15.1927 14.9632 14.9632 15.1927 14.681 15.3365C14.4631 15.4476 14.2551 15.478 14.1098 15.4899C13.9845 15.5001 13.8423 15.5001 13.7231 15.5C13.7153 15.5 13.7076 15.5 13.7 15.5H10.3C10.2924 15.5 10.2847 15.5 10.2769 15.5C10.1578 15.5001 10.0155 15.5001 9.89018 15.4899C9.74496 15.478 9.53697 15.4476 9.31903 15.3365C9.03678 15.1927 8.80731 14.9632 8.6635 14.681C8.55245 14.4631 8.52201 14.2551 8.51015 14.1098C8.49991 13.9845 8.49996 13.8423 8.50001 13.7232C8.50001 13.7153 8.50001 13.7076 8.50001 13.7V10.3C8.50001 10.2924 8.50001 10.2847 8.50001 10.2769C8.49996 10.1578 8.49991 10.0155 8.51015 9.89018C8.52201 9.74496 8.55245 9.53697 8.6635 9.31903C8.80731 9.03678 9.03678 8.80731 9.31903 8.6635C9.53697 8.55245 9.74496 8.52201 9.89018 8.51015C10.0155 8.49991 10.1578 8.49996 10.2769 8.50001ZM10.5 10.5V13.5H13.5V10.5H10.5ZM5.46802 11H5.50001C6.0523 11 6.50001 11.4477 6.50001 12C6.50001 12.5523 6.0523 13 5.50001 13C5.02039 13 4.71075 13.0006 4.47377 13.0167C4.24577 13.0323 4.15894 13.0589 4.11733 13.0761C3.8723 13.1776 3.67763 13.3723 3.57613 13.6173C3.5589 13.6589 3.53228 13.7458 3.51672 13.9738C3.50055 14.2108 3.50001 14.5204 3.50001 15V16.3C3.50001 16.8766 3.50079 17.2488 3.52394 17.5322C3.54614 17.8038 3.58381 17.9046 3.60901 17.954C3.70488 18.1422 3.85786 18.2951 4.04602 18.391C4.09547 18.4162 4.19618 18.4539 4.46785 18.4761C4.75119 18.4992 5.12346 18.5 5.70001 18.5H13C13.5523 18.5 14 18.9477 14 19.5C14 20.0523 13.5523 20.5 13 20.5H5.66145C5.13431 20.5 4.67955 20.5 4.30498 20.4694C3.90964 20.4371 3.51642 20.3658 3.13804 20.173C2.57356 19.8854 2.11461 19.4265 1.82699 18.862C1.6342 18.4836 1.56288 18.0904 1.53058 17.695C1.49998 17.3205 1.49999 16.8657 1.50001 16.3386L1.50001 14.968C1.5 14.5294 1.49999 14.1509 1.52136 13.8376C1.54387 13.5078 1.59337 13.1779 1.72837 12.852C2.03286 12.1169 2.61688 11.5329 3.35196 11.2284C3.67789 11.0934 4.0078 11.0439 4.33763 11.0214C4.65089 11 5.02937 11 5.46802 11ZM17.7769 16H21.2231C21.3423 16 21.4845 15.9999 21.6098 16.0101C21.7551 16.022 21.9631 16.0525 22.181 16.1635C22.4632 16.3073 22.6927 16.5368 22.8365 16.819C22.9476 17.037 22.978 17.245 22.9899 17.3902C23.0001 17.5155 23.0001 17.6577 23 17.7769C23 17.7847 23 17.7924 23 17.8V21.2C23 21.2076 23 21.2153 23 21.2232C23.0001 21.3423 23.0001 21.4845 22.9899 21.6098C22.978 21.7551 22.9476 21.9631 22.8365 22.181C22.6927 22.4632 22.4632 22.6927 22.181 22.8365C21.9631 22.9476 21.7551 22.978 21.6098 22.9899C21.4845 23.0001 21.3423 23.0001 21.2232 23C21.2153 23 21.2076 23 21.2 23H17.8C17.7924 23 17.7847 23 17.7769 23C17.6577 23.0001 17.5155 23.0001 17.3902 22.9899C17.245 22.978 17.037 22.9476 16.819 22.8365C16.5368 22.6927 16.3073 22.4632 16.1635 22.181C16.0525 21.9631 16.022 21.7551 16.0101 21.6098C15.9999 21.4845 16 21.3423 16 21.2231V17.7769C16 17.6578 15.9999 17.5155 16.0101 17.3902C16.022 17.245 16.0525 17.037 16.1635 16.819C16.3073 16.5368 16.5368 16.3073 16.819 16.1635C17.037 16.0525 17.245 16.022 17.3902 16.0101C17.5155 15.9999 17.6578 16 17.7769 16ZM18 18V21H21V18H18Z"})),Rr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5C3 6.10457 3.89543 7 5 7C6.10457 7 7 6.10457 7 5C7 3.89543 6.10457 3 5 3ZM1 5C1 2.79086 2.79086 1 5 1C7.20914 1 9 2.79086 9 5C9 7.20914 7.20914 9 5 9C2.79086 9 1 7.20914 1 5ZM15.3531 6.06506C14.5699 6.00083 13.4768 6 11.9344 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4L11.9846 4C13.4658 3.99999 14.6415 3.99998 15.5166 4.07176C15.9623 4.10831 16.3749 4.16645 16.736 4.26872C17.0962 4.37071 17.4673 4.53362 17.771 4.82093C18.5209 5.53055 18.8532 6.57592 18.6507 7.58832C18.5688 7.99821 18.3599 8.34552 18.1247 8.63678C17.8889 8.92882 17.5856 9.21455 17.2429 9.50177C16.5699 10.0657 15.61 10.7447 14.4007 11.6L10.2952 14.5039C9.0359 15.3946 8.14402 16.0264 7.54167 16.5312C7.24297 16.7815 7.0505 16.9721 6.9314 17.1196C6.83281 17.2417 6.81191 17.3009 6.80978 17.3071C6.74385 17.6425 6.8538 17.9884 7.1013 18.2241C7.10663 18.2279 7.15787 18.2642 7.30887 18.3069C7.49129 18.3586 7.75849 18.4031 8.1469 18.4349C8.93013 18.4992 10.0232 18.5 11.5656 18.5H12.5C13.0523 18.5 13.5 18.9477 13.5 19.5C13.5 20.0523 13.0523 20.5 12.5 20.5H11.5154C10.0343 20.5 8.85853 20.5 7.98341 20.4282C7.53771 20.3917 7.12511 20.3335 6.76395 20.2313C6.40378 20.1293 6.03267 19.9664 5.72904 19.6791C4.97912 18.9694 4.64679 17.9241 4.84925 16.9117C4.93123 16.5018 5.14013 16.1545 5.37529 15.8632C5.61108 15.5712 5.91437 15.2854 6.25714 14.9982C6.93015 14.4343 7.89004 13.7553 9.09927 12.9L13.2048 9.99611C14.4641 9.1054 15.356 8.47355 15.9583 7.96881C16.257 7.71851 16.4495 7.5279 16.5686 7.38039C16.6672 7.25833 16.6881 7.19915 16.6902 7.1929C16.7562 6.85751 16.6462 6.51165 16.3987 6.2759C16.3934 6.27206 16.3421 6.23581 16.1911 6.19305C16.0087 6.1414 15.7415 6.09692 15.3531 6.06506ZM19 17C17.8954 17 17 17.8954 17 19C17 20.1046 17.8954 21 19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17ZM15 19C15 16.7909 16.7909 15 19 15C21.2091 15 23 16.7909 23 19C23 21.2091 21.2091 23 19 23C16.7909 23 15 21.2091 15 19Z"})),Pt=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H17.8385C18.3657 1.99998 18.8205 1.99997 19.195 2.03057C19.5904 2.06287 19.9836 2.13419 20.362 2.32698C20.9265 2.6146 21.3854 3.07354 21.673 3.63803C21.8658 4.01641 21.9371 4.40963 21.9694 4.80497C22 5.17954 22 5.6343 22 6.16144V17.8386C22 18.3657 22 18.8205 21.9694 19.195C21.9371 19.5904 21.8658 19.9836 21.673 20.362C21.3854 20.9265 20.9265 21.3854 20.362 21.673C19.9836 21.8658 19.5904 21.9371 19.195 21.9694C18.8205 22 18.3657 22 17.8386 22H6.16144C5.6343 22 5.17954 22 4.80497 21.9694C4.40963 21.9371 4.01641 21.8658 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2.13419 19.9836 2.06287 19.5904 2.03057 19.195C1.99997 18.8205 1.99998 18.3657 2 17.8385V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17955 1.99997 5.63431 1.99998 6.16146 2ZM4 10.4649V17.8C4 18.3766 4.00078 18.7488 4.02393 19.0322C4.04612 19.3038 4.0838 19.4045 4.109 19.454C4.20487 19.6422 4.35785 19.7951 4.54601 19.891C4.59546 19.9162 4.69617 19.9539 4.96784 19.9761C5.25117 19.9992 5.62345 20 6.2 20H8L8 15.5681C7.99997 15.3157 7.99994 15.0699 8.01695 14.8618C8.03562 14.6332 8.07969 14.3634 8.21799 14.092C8.40974 13.7157 8.7157 13.4097 9.09202 13.218C9.36344 13.0797 9.63318 13.0356 9.86177 13.0169C10.0699 12.9999 10.3157 13 10.5681 13H13.4319C13.6843 13 13.9301 12.9999 14.1382 13.0169C14.3668 13.0356 14.6366 13.0797 14.908 13.218C15.2843 13.4097 15.5903 13.7157 15.782 14.092C15.9203 14.3634 15.9644 14.6332 15.9831 14.8618C16.0001 15.0699 16 15.3157 16 15.5681L16 20H17.8C18.3766 20 18.7488 19.9992 19.0322 19.9761C19.3038 19.9539 19.4045 19.9162 19.454 19.891C19.6422 19.7951 19.7951 19.6422 19.891 19.454C19.9162 19.4045 19.9539 19.3038 19.9761 19.0322C19.9992 18.7488 20 18.3766 20 17.8V10.4649C19.4117 10.8052 18.7286 11 18 11C16.8053 11 15.7329 10.4762 15 9.64583C14.2671 10.4762 13.1947 11 12 11C10.8053 11 9.73295 10.4762 9 9.64582C8.26706 10.4762 7.19469 11 6 11C5.27143 11 4.58835 10.8052 4 10.4649ZM10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7C14 6.44772 14.4477 6 15 6C15.5523 6 16 6.44772 16 7C16 8.10457 16.8954 9 18 9C19.1046 9 20 8.10457 20 7V6.2C20 5.62345 19.9992 5.25118 19.9761 4.96784C19.9539 4.69617 19.9162 4.59546 19.891 4.54601C19.7951 4.35785 19.6422 4.20487 19.454 4.109C19.4045 4.0838 19.3038 4.04612 19.0322 4.02393C18.7488 4.00078 18.3766 4 17.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59546 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V7C4 8.10457 4.89543 9 6 9C7.10457 9 8 8.10457 8 7C8 6.44772 8.44772 6 9 6C9.55229 6 10 6.44772 10 7ZM14 20V15.6C14 15.3035 13.9992 15.1412 13.9897 15.0246C13.9893 15.02 13.9889 15.0156 13.9886 15.0115C13.9844 15.0111 13.98 15.0107 13.9754 15.0103C13.8588 15.0008 13.6965 15 13.4 15H10.6C10.3035 15 10.1412 15.0008 10.0246 15.0103C10.02 15.0107 10.0156 15.0111 10.0114 15.0115C10.0111 15.0156 10.0107 15.02 10.0103 15.0246C10.0008 15.1412 10 15.3035 10 15.6V20H14Z"}));function h1({artifactType:e,className:t}){switch(e){case"DataAnalysisArtifact":return s.jsx(Vr,{className:t});case"DataArtifact":return s.jsx(gr,{className:t});case"ModelArtifact":return s.jsx($r,{className:t});case"SchemaArtifact":return s.jsx(Rr,{className:t});case"ServiceArtifact":return s.jsx(Pt,{className:t});case"StatisticsArtifact":return s.jsx(Pt,{className:t});default:return s.jsx($e,{className:t})}}function f1({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(Ot,{style:{border:"transparent",top:0,background:"transparent",width:0,height:0},type:"target",position:Tt.Top}),s.jsx("div",{className:"flex w-[300px] items-center justify-center",children:e}),s.jsx(Ot,{isConnectable:!1,type:"source",style:{border:"transparent",bottom:0,background:"transparent",width:0,height:0},position:Tt.Bottom})]})}const Pe=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55229 12 9 12.4477 9 13V17C9 17.5523 8.55229 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"})),Ar=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM10.2071 8.29289C10.5976 8.68342 10.5976 9.31658 10.2071 9.70711L7.91421 12L10.2071 14.2929C10.5976 14.6834 10.5976 15.3166 10.2071 15.7071C9.81658 16.0976 9.18342 16.0976 8.79289 15.7071L5.79289 12.7071C5.40237 12.3166 5.40237 11.6834 5.79289 11.2929L8.79289 8.29289C9.18342 7.90237 9.81658 7.90237 10.2071 8.29289ZM13.7929 8.29289C14.1834 7.90237 14.8166 7.90237 15.2071 8.29289L18.2071 11.2929C18.5976 11.6834 18.5976 12.3166 18.2071 12.7071L15.2071 15.7071C14.8166 16.0976 14.1834 16.0976 13.7929 15.7071C13.4024 15.3166 13.4024 14.6834 13.7929 14.2929L16.0858 12L13.7929 9.70711C13.4024 9.31658 13.4024 8.68342 13.7929 8.29289Z"})),m1=p.createContext(null);function Dr({children:e}){const[t,r]=p.useState(!1);return s.jsx(m1.Provider,{value:{isVisualizationConfirmed:t,setVisualizationConfirmed:r},children:e})}function Fr(){const e=p.useContext(m1);if(!e)throw new Error("useArtifactLoadConfirmationContext must be used within a VisualizationConfirmProvider");return e}function Hr({versionId:e}){return["artifact_versions",e]}async function zr({versionId:e}){const t=F(H.artifactVersions.detail(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching artifact version ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ce(e,t){return z({queryKey:Hr(e),queryFn:()=>zr(e),...t})}const Gr=e=>p.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.22222C5.70445 2.22222 2.22222 5.70445 2.22222 10C2.22222 14.2955 5.70445 17.7778 10 17.7778C14.2955 17.7778 17.7778 14.2955 17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#D1D5DB"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222V0C15.5228 0 20 4.47715 20 10H17.7778Z",fill:"#7A3EF4"})),Br=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L10.7071 11.2929C11.0976 11.6834 11.0976 12.3166 10.7071 12.7071L7.70711 15.7071C7.31658 16.0976 6.68342 16.0976 6.29289 15.7071C5.90237 15.3166 5.90237 14.6834 6.29289 14.2929L8.58579 12L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289ZM12 15C12 14.4477 12.4477 14 13 14H17C17.5523 14 18 14.4477 18 15C18 15.5523 17.5523 16 17 16H13C12.4477 16 12 15.5523 12 15Z"}));function Y({children:e,className:t,...r}){return s.jsx("dt",{...r,className:Re("col-span-1 flex min-w-0 items-center truncate text-theme-text-secondary",t),children:e})}function K({children:e,className:t,...r}){return s.jsx("dd",{...r,className:Re("col-span-2 flex h-6 w-full min-w-0 items-center truncate text-neutral-700",t),children:e})}function g({label:e,value:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Y,{children:e}),s.jsx(K,{children:t})]})}function Zr({componentId:e}){return["components",e]}async function qr({componentId:e}){const t=F(H.components.detail(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching component ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Yr(e,t){return z({queryKey:Zr(e),queryFn:()=>qr(e),...t})}function Kr({runId:e}){return["runs",e]}async function Ur({runId:e}){const t=F(H.runs.detail(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching pipeline run ${e}`,status:r.status,statusText:r.statusText});return r.json()}function q(e,t){return z({queryKey:Kr(e),queryFn:()=>Ur(e),...t})}function Wr({stepId:e}){return["steps",e]}async function Qr({stepId:e}){const t=F(H.steps.detail(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching step ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ge(e,t){return z({queryKey:Wr(e),queryFn:()=>Qr(e),...t})}function L({title:e,children:t,initialOpen:r=!1,className:n,contentClassName:a,intent:i="primary"}){const[o,l]=p.useState(r);return s.jsxs(ae,{className:n,open:o,onOpenChange:l,children:[s.jsx(te,{intent:i,children:s.jsxs(ie,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(de,{className:` ${o?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),e]})}),s.jsx(oe,{className:Re("space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",a),children:t})]})}function Xr({artifactVersionId:e}){var o,l,d,c,u,h,f,m,x,b,v,j,S,O,T,P,I,M,N,_,V,ue;const t=ce({versionId:e}),r=(l=(o=t.data)==null?void 0:o.body)==null?void 0:l.producer_pipeline_run_id,n=q({runId:r},{throwOnError:!0,enabled:!!r}),a=(c=(d=t.data)==null?void 0:d.metadata)==null?void 0:c.producer_step_run_id,i=ge({stepId:a},{enabled:!!a});return t.isPending||n.isPending?s.jsx(C,{className:"h-[500px] w-full"}):t.isError||n.isError?s.jsx(W,{err:t.error||n.error}):s.jsx(L,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Pipeline",value:s.jsx(xe,{to:me.pipelines.namespace(encodeURIComponent((h=(u=n.data.body)==null?void 0:u.pipeline)==null?void 0:h.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Ae,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(m=(f=n.data.body)==null?void 0:f.pipeline)==null?void 0:m.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(v=(b=(x=n.data.body)==null?void 0:x.pipeline)==null?void 0:b.body)==null?void 0:v.version})]})})}),((j=t.data.body)==null?void 0:j.producer_pipeline_run_id)&&((S=n.data.body)==null?void 0:S.status)&&s.jsx(g,{label:"Producer Run",value:s.jsx(xe,{to:me.runs.detail((O=t.data.body)==null?void 0:O.producer_pipeline_run_id),children:s.jsxs(E,{color:we((T=n.data.body)==null?void 0:T.status),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[((P=n.data.body)==null?void 0:P.status)==="running"?s.jsx(Gr,{className:"mr-1 h-4 w-4 border-[2px]"}):s.jsx(Br,{className:"mr-1 h-4 w-4 fill-current"}),(I=t.data.body)==null?void 0:I.producer_pipeline_run_id]})})}),((M=t.data.body)==null?void 0:M.artifact.id)&&s.jsx(g,{label:"Producer Step",value:s.jsx(s.Fragment,{children:i.data?s.jsxs(E,{color:we("completed"),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(le,{className:"mr-1 fill-current",status:"completed"}),i.data.name]}):s.jsx(C,{className:"h-full w-[150px]"})})}),s.jsx(g,{label:"Type",value:(N=t.data.body)==null?void 0:N.type}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Be,{username:((V=(_=t.data.body)==null?void 0:_.user)==null?void 0:V.name)||""})})}),s.jsx(g,{label:"Updated",value:s.jsx(pe,{dateString:((ue=t.data.body)==null?void 0:ue.updated)||""})})]})})}function Jr({artifactVersionId:e}){var d,c,u,h,f,m;const{data:t,isPending:r,isError:n,error:a}=ce({versionId:e}),i=(d=t==null?void 0:t.metadata)==null?void 0:d.artifact_store_id,{data:o,isSuccess:l}=Yr({componentId:i},{enabled:!!i});return n?s.jsx(W,{err:a}):r?s.jsx(C,{className:"h-[500px] w-full"}):s.jsx(L,{initialOpen:!0,title:"Data",children:s.jsxs("dl",{className:"grid w-full grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(Y,{className:"col-span-3",children:"URI"}),s.jsx(K,{className:"col-span-3 h-auto",children:s.jsx(D,{fullWidth:!0,codeClasses:"truncate",code:((c=t.body)==null?void 0:c.uri)||""})}),((u=t.metadata)==null?void 0:u.artifact_store_id)&&s.jsx(g,{label:"Artifact Store",value:s.jsx(s.Fragment,{children:l?s.jsx(E,{emphasis:"subtle",rounded:!1,color:"grey",className:"text-theme-text-primary",children:o==null?void 0:o.name}):s.jsx(C,{className:"h-6 w-12"})})}),s.jsx(g,{label:"Data Type",value:s.jsx(E,{className:"flex w-fit items-center text-theme-text-primary",color:"grey",emphasis:"subtle",rounded:!1,children:s.jsx(ir,{children:s.jsxs(or,{children:[s.jsx(lr,{className:"cursor-auto",children:(h=t.body)==null?void 0:h.data_type.attribute}),s.jsxs(dr,{children:[(f=t.body)==null?void 0:f.data_type.module,".",(m=t.body)==null?void 0:m.data_type.attribute," "]})]})})})})]})})}function en({artifactVersionId:e}){function t(r){return`from zenml.client import Client
3
+
4
+ artifact = Client().get_artifact_version('${r}')
5
+ loaded_artifact = artifact.load()`}return s.jsx(L,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})})}function tn({artifactVersionId:e}){const{data:t,isError:r,error:n}=ce({versionId:e});return r?s.jsx(W,{err:n}):s.jsxs("div",{className:"space-y-5",children:[t?s.jsx(Xr,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Jr,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(en,{artifactVersionId:t.id}):s.jsx(C,{className:"h-[500px] rounded-md lg:col-span-2"})]})}function Z({title:e,data:t,intent:r="primary",isInitialOpen:n=!1,contentClassName:a,className:i}){const o={},l={},d={},c=/^<class\s+'.*'>$/;for(const[h,f]of Object.entries(t||{}))typeof f=="object"&&!Array.isArray(f)?o[h]=f:Array.isArray(f)?d[h]=f:l[h]=f;if(Object.keys(t||{}).length===0)return null;const u=Object.entries(l);return u.sort((h,f)=>h[0].localeCompare(f[0])),s.jsx(L,{contentClassName:a,className:i,initialOpen:n,intent:r,title:e,children:s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:u.map(([h,f])=>s.jsx(g,{label:h,value:s.jsx(s.Fragment,{children:typeof f=="boolean"?s.jsx("div",{className:"py-1",children:JSON.stringify(f)}):c.test(f)?s.jsx(D,{className:"py-1",highlightCode:!0,code:f}):s.jsx("div",{className:"overflow-x-auto py-1",children:f})})},h))}),Object.entries(d).map(([h,f])=>s.jsx(rn,{title:h,value:f},h)),Object.entries(o).map(([h,f])=>s.jsx(Z,{intent:"secondary",title:h,data:f},h))]})})}function rn({title:e,value:t}){const r=t.filter(a=>!Array.isArray(a)&&typeof a!="object"||a===null),n=t.filter(a=>Array.isArray(a)||typeof a=="object");return s.jsx(s.Fragment,{children:s.jsxs(L,{intent:"secondary",title:e,children:[r.length>0&&s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 truncate md:grid-cols-3 md:gap-y-4",children:Object.entries(r).map(([a,i])=>s.jsx(g,{label:a,value:s.jsx("div",{className:"py-1",children:t1(i)})},a))}),n.length>0&&s.jsx("ul",{className:"space-y-4",children:n.map((a,i)=>s.jsx("li",{children:s.jsx(Z,{intent:"secondary",title:i,data:a},i)},i))})]},e)})}function nn(){return s.jsx(L,{initialOpen:!0,title:"Metadata",children:s.jsx(ee,{icon:s.jsx($e,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No metadata found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no metadata available."})]})})})}function p1({metadata:e}){const t=Object.values(e||{}).filter(r=>r.body.type==="dict");return s.jsx(s.Fragment,{children:t.map(r=>s.jsx(Z,{data:r.body.value,title:r.body.key},r.id))})}function Ze({metadata:e,title:t}){const r=Object.entries(e||{}),n=/^<class\s+'.*'>$/,a=r.filter(([o,l])=>l.body.type!=="dict");if(a.length===0)return null;a.sort((o,l)=>o[0].localeCompare(l[0]));const i=o=>o<1024?o+" bytes":o<Math.pow(1024,2)?(o/1024).toFixed(2)+" KB":o<Math.pow(1024,3)?(o/Math.pow(1024,2)).toFixed(2)+" MB":(o/Math.pow(1024,3)).toFixed(2)+" GB";return s.jsx("div",{children:s.jsx(L,{initialOpen:!0,title:t||"Uncategorized",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:a.map(([o,l])=>s.jsx(g,{label:l.body.key,value:s.jsx(s.Fragment,{children:n.test(l.body.value)?s.jsx(D,{className:"py-1",highlightCode:!0,code:l.body.value}):l.body.type==="StorageSize"?s.jsx("div",{className:"py-1",children:i(l.body.value)}):l.body.type==="Uri"?s.jsx("a",{className:"py-1 underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:l.body.value,children:l.body.value}):s.jsx("div",{className:"py-1",children:l.body.value})})},l.id))})})})}function sn({artifactVersionId:e}){var a,i;const{data:t,isError:r,error:n}=ce({versionId:e});return r?s.jsx(W,{err:n}):t!=null&&t.metadata?s.jsxs("div",{className:"flex flex-col gap-5",children:[t?s.jsx(Ze,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(C,{className:"h-9 w-full"}),t?s.jsx(p1,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(C,{className:"h-9 w-full"})]}):s.jsx(ee,{icon:s.jsx($e,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("h1",{className:"mb-2 text-display-xs font-semibold",children:"No Metadata Found for this Artifact"})})})}function x1({versionId:e}){return["artifact_versions",e,"visualize"]}async function an({versionId:e},t){const r=F(H.artifactVersions.visualize(e)),n=await U(r,{method:"GET",headers:{"Content-Type":"application/json"},signal:t});if(n.status===404){const a=await n.json().then(i=>i.detail).catch(()=>["","Failed to fetch artifact visualization"]);throw new R({message:a[1]||"Failed to fetch artifact visualization",status:n.status,statusText:n.statusText})}if(!n.ok)throw new R({message:`Error while fetching artifact visualization for version ${e}`,status:n.status,statusText:n.statusText});return n.json()}function on(e,t){return z({queryKey:x1(e),queryFn:({signal:r})=>an(e,r),...t})}function ln({content:e}){const t=p.useRef(null),r=()=>{var n;if(t.current){const a=(n=t.current.contentWindow)==null?void 0:n.document.documentElement.scrollHeight;t.current.height=a?`${a}px`:"100%"}};return p.useEffect(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[]),s.jsx("div",{children:s.jsx("iframe",{className:"w-full",title:"Secure HTML Content",ref:t,srcDoc:e,onLoad:r})})}function dn({content:e}){return s.jsx("div",{className:"flex items-center justify-center",children:s.jsx("img",{src:Lr("data:image/png;base64,"+e),alt:"Visualization for artifact"})})}const cn=p.lazy(()=>r1(()=>import("./CsvVizualization-C2IiqX4I.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),un=p.lazy(()=>r1(()=>import("./MarkdownVisualization-xp3hhULl.js"),__vite__mapDeps([8,1])));function hn({artifactVersionId:e,artifactName:t}){const[r,n]=p.useState(!1),{isVisualizationConfirmed:a,setVisualizationConfirmed:i}=Fr(),o=_r(),{data:l,isError:d,error:c,isPending:u}=on({versionId:e},{retry:!1,enabled:!r});return r?s.jsx(ee,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"flex flex-col items-center text-center",children:[s.jsx("p",{className:"mb-5 text-text-lg text-theme-text-secondary",children:"Loading the visualization cancelled"}),s.jsx($,{size:"md",onClick:()=>n(!1),children:"Load Visualization"})]})}):d?c.status===501?s.jsxs(ee,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:[s.jsx("p",{children:"This artifact cannot be visualized because it cannot be loaded from the artifact store. This might happen if your ZenML server does not have the artifact stores dependencies installed or if the server is not authenticated to access it. For more information, see our"}),s.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:"https://docs.zenml.io/stack-components/artifact-stores/custom",children:"docs"})]}):s.jsx(ee,{icon:s.jsx(Ee,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:c.message})})}):u?s.jsxs("div",{className:"flex flex-col items-center gap-7 py-12",children:[s.jsx(De,{}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading Visualization"}),s.jsx($,{onClick:()=>{o.cancelQueries({queryKey:x1({versionId:e})}),n(!0)},intent:"secondary",size:"md",children:"Cancel"})]})]}):a?s.jsxs("div",{children:[s.jsx("div",{className:"flex justify-end",children:s.jsx(C1,{artifactName:t,...l})}),s.jsxs("div",{children:[l.type==="image"&&s.jsx(dn,{content:l.value}),l.type==="html"&&s.jsx(ln,{content:l.value}),l.type==="markdown"&&s.jsx(un,{content:l.value}),l.type==="csv"&&s.jsx(cn,{content:l.value})]})]}):s.jsx(fn,{artifactName:t,setConfirmed:i,...l})}function fn({artifactName:e,setConfirmed:t,...r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center gap-8",children:[s.jsx(Sr,{children:"This preview may contain harmful code. Only proceed if you trust the source. Loading content from untrusted sources can pose risks. If unsure, avoid loading."}),s.jsxs("div",{className:"flex justify-center gap-4",children:[s.jsx($,{size:"md",onClick:()=>t(!0),children:"Load Preview"}),s.jsx(C1,{...r,buttonIntent:"secondary",artifactName:e})]})]})}function C1({type:e,value:t,artifactName:r,buttonIntent:n="primary"}){const a={image:"png",html:"html",markdown:"md",csv:"csv"},i={image:"image/png",html:"text/html",markdown:"text/markdown",csv:"text/csv"};function o(){const d=atob(t),c=new Array(d.length);for(let h=0;h<d.length;h++)c[h]=d.charCodeAt(h);return new Uint8Array(c)}function l(){try{const d=new Blob([e==="image"?o():t],{type:i[e]}),c=window.URL.createObjectURL(d),u=document.createElement("a");u.href=c,u.download=`${r}.`+a[e],u.click()}catch(d){console.error(d)}}return s.jsx($,{intent:n,size:"md",className:"mb-4",onClick:l,children:"Download"})}function mn({artifactVersionId:e}){var d,c,u,h,f,m;const[t,r]=p.useState(!1),{data:n,isPending:a,isError:i,error:o}=ce({versionId:e});if(i)return s.jsx(ee,{icon:s.jsx(Pe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:o.message})})});if(a)return s.jsx(C,{className:"h-[300px] w-full"});const l=(h=(u=(c=(d=n.metadata)==null?void 0:d.run_metadata)==null?void 0:c.storage_size)==null?void 0:u.body)==null?void 0:h.value;return(f=n.metadata)!=null&&f.visualizations&&n.metadata.visualizations.length<1?s.jsx(ee,{icon:s.jsx(Pe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No visualizations found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no visualizations available for this artifact version."})]})}):s.jsx("div",{children:l<cr||t?s.jsx(hn,{artifactName:((m=n.body)==null?void 0:m.artifact.name)||"artifact",artifactVersionId:e}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center",children:[s.jsx("p",{className:"mb-4",children:"Artifact Visualization is larger than 5MB. Confirm to proceed:"}),s.jsx($,{onClick:()=>r(!0),size:"md",children:"Confirm"})]})})}function pn({artifactVersionId:e}){var n,a,i;const{data:t}=ce({versionId:e}),r=(n=t==null?void 0:t.body)==null?void 0:n.version;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(n1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(l1,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsxs("div",{className:"border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[t?s.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:e}):s.jsx(C,{className:"w-9"}),t?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(h1,{artifactType:((a=t.body)==null?void 0:a.type)||"BaseArtifact",className:"h-5 w-5 fill-theme-surface-strong"}),s.jsx("h2",{className:"text-display-xs font-semibold",children:(i=t.body)==null?void 0:i.artifact.name}),s.jsx(ne,{color:r?"light-purple":"light-grey",rounded:!1,children:r||"None"})]}):s.jsx(C,{className:"h-6 w-7"})]}),s.jsx("div",{className:"p-5",children:s.jsx(Dr,{children:s.jsxs(Fe,{defaultValue:"overview",children:[s.jsxs(He,{children:[s.jsxs(G,{className:"flex items-center gap-2 text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"metadata",children:[s.jsx(Ar,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Metadata"})]}),s.jsxs(G,{className:"flex items-center gap-2 text-text-md",value:"visualization",children:[s.jsx(Pe,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Visualization"})]})]}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(tn,{artifactVersionId:e})}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(sn,{artifactVersionId:e})}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"visualization",children:s.jsx(mn,{artifactVersionId:e})})]})})})]})}function xn({children:e,artifactVersionId:t,onOpenChange:r}){return s.jsxs(s1,{onOpenChange:r,children:[s.jsx(a1,{asChild:!0,children:e}),s.jsx(i1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(pn,{artifactVersionId:t})})]})}function Cn({data:e,selected:t}){const{unselectNodesAndEdges:r}=Ge(a=>({unselectNodesAndEdges:a.unselectNodesAndEdges}));function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(f1,{children:s.jsx(xn,{onOpenChange:n,artifactVersionId:e.execution_id,children:s.jsxs("button",{"data-selected":!!t,className:"group flex h-[50px] min-w-0 max-w-[300px] items-center justify-center gap-1 rounded-rounded border border-primary-100 bg-primary-25 py-1 pl-1 pr-2 transition-all duration-200 hover:border-primary-400 data-[selected=true]:border-primary-500 data-[selected=true]:bg-primary-500",children:[s.jsx("div",{className:"rounded-rounded bg-primary-50 p-0.5 group-data-[selected=true]:bg-white/20",children:s.jsx(h1,{className:"h-4 w-4 fill-primary-400 group-data-[selected=true]:fill-theme-text-negative",artifactType:e.artifact_type})}),s.jsxs("div",{className:"min-w-0 text-left",children:[s.jsx("p",{className:"truncate text-text-sm font-semibold text-theme-text-brand group-data-[selected=true]:text-theme-text-negative",children:e.name}),s.jsx("p",{className:"truncate text-text-xs text-theme-text-secondary group-data-[selected=true]:text-white/70",children:e.artifact_data_type})]})]})})})}const It=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function gn(e,t,r,n){const a=Math.min(It(e,t)/2,It(t,r)/2,n),{x:i,y:o}=t;if(e.x===i&&i===r.x||e.y===o&&o===r.y)return`L${i} ${o}`;if(e.y===o){const c=e.x<r.x?-1:1,u=e.y<r.y?1:-1;return`L ${i+a*c},${o}Q ${i},${o} ${i},${o+a*u}`}const l=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${i},${o+a*d}Q ${i},${o} ${i+a*l},${o}`}function Ne(e){return{x:e[0],y:e[1]}}const bn=e=>(t,r,n)=>{const a=e.borderRadius;let i=`M ${t.x}, ${t.y} `;const o=n.reduce((l,d,c)=>{let u="";if(c>0&&c<n.length-1)u=gn(Ne(n[c-1]),Ne(d),Ne(n[c+1]),a);else{const[h,f]=d;u=`${c===0?"M":"L"}${h} ${f}`}return l+=u,l},"");return i+=o,i+=`L ${r.x}, ${r.y} `,i};function vn(e){const t=br(),r=vr({nodes:t,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition,sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,options:{drawEdge:bn({borderRadius:10}),generatePath:wr,gridRatio:t.length>20?6:t.length>10?3:2}});return r===null?s.jsx(yr,{...e}):s.jsx(s.Fragment,{children:s.jsx("path",{className:"react-flow__edge-path",d:r.svgPathString,markerEnd:e.markerEnd,markerStart:e.markerStart})})}const wn=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75871 2L17.2413 2C18.0463 1.99999 18.7106 1.99998 19.2518 2.0442C19.8139 2.09012 20.3306 2.18869 20.816 2.43598C21.5686 2.81947 22.1805 3.43139 22.564 4.18404C22.8113 4.66938 22.9099 5.18608 22.9558 5.74818C23 6.28937 23 6.95372 23 7.75868V16.2413C23 17.0463 23 17.7106 22.9558 18.2518C22.9099 18.8139 22.8113 19.3306 22.564 19.816C22.1805 20.5686 21.5686 21.1805 20.816 21.564C20.3306 21.8113 19.8139 21.9099 19.2518 21.9558C18.7106 22 18.0463 22 17.2413 22H6.75877C5.95377 22 5.28939 22 4.74817 21.9558C4.18608 21.9099 3.66937 21.8113 3.18404 21.564C2.43139 21.1805 1.81947 20.5686 1.43597 19.816C1.18868 19.3306 1.09012 18.8139 1.04419 18.2518C0.999977 17.7106 0.999988 17.0463 1 16.2413L1 9.00066C1 9.00088 1 9.00044 1 9.00066C1 9.00044 1 8.99956 1 8.99934L1 7.7587C0.999988 6.95373 0.999977 6.28937 1.04419 5.74818C1.09012 5.18608 1.18868 4.66937 1.43598 4.18404C1.81947 3.43139 2.43139 2.81947 3.18404 2.43597C3.66938 2.18868 4.18608 2.09012 4.74818 2.04419C5.28937 1.99998 5.95374 1.99999 6.75871 2ZM3 10V16.2C3 17.0566 3.00078 17.6389 3.03755 18.089C3.07337 18.5274 3.1383 18.7516 3.21799 18.908C3.40973 19.2843 3.7157 19.5903 4.09202 19.782C4.24842 19.8617 4.47262 19.9266 4.91104 19.9624C5.36113 19.9992 5.94342 20 6.8 20H17.2C18.0566 20 18.6389 19.9992 19.089 19.9625C19.5274 19.9266 19.7516 19.8617 19.908 19.782C20.2843 19.5903 20.5903 19.2843 20.782 18.908C20.8617 18.7516 20.9266 18.5274 20.9625 18.089C20.9992 17.6389 21 17.0566 21 16.2V10H3ZM21 8H3V7.8C3 6.94342 3.00078 6.36113 3.03755 5.91104C3.07337 5.47262 3.1383 5.24842 3.21799 5.09202C3.40974 4.7157 3.7157 4.40973 4.09202 4.21799C4.24842 4.1383 4.47262 4.07337 4.91104 4.03755C5.36113 4.00078 5.94342 4 6.8 4L17.2 4C18.0566 4 18.6389 4.00078 19.089 4.03755C19.5274 4.07337 19.7516 4.1383 19.908 4.21799C20.2843 4.40974 20.5903 4.7157 20.782 5.09202C20.8617 5.24842 20.9266 5.47262 20.9625 5.91104C20.9992 6.36113 21 6.94342 21 7.8V8ZM10.7071 11.7929C11.0976 12.1834 11.0976 12.8166 10.7071 13.2071L8.91422 15L10.7071 16.7929C11.0976 17.1834 11.0976 17.8166 10.7071 18.2071C10.3166 18.5976 9.68342 18.5976 9.2929 18.2071L6.7929 15.7071C6.40237 15.3166 6.40237 14.6834 6.7929 14.2929L9.2929 11.7929C9.68342 11.4024 10.3166 11.4024 10.7071 11.7929ZM13.2929 11.7929C13.6834 11.4024 14.3166 11.4024 14.7071 11.7929L17.2071 14.2929C17.5976 14.6834 17.5976 15.3166 17.2071 15.7071L14.7071 18.2071C14.3166 18.5976 13.6834 18.5976 13.2929 18.2071C12.9024 17.8166 12.9024 17.1834 13.2929 16.7929L15.0858 15L13.2929 13.2071C12.9024 12.8166 12.9024 12.1834 13.2929 11.7929Z"})),g1=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.29292 1.29292C2.56075 1.02509 2.95692 0.931566 3.31625 1.05134L6.31626 2.05134C6.7246 2.18746 7.00003 2.5696 7.00003 3.00003V5.58581L10.11 8.69574C10.0377 8.30745 10 7.9077 10 7.50003C10 3.91018 12.9102 1.00003 16.5 1.00003C17.6867 1.00003 18.8019 1.31894 19.7614 1.87638C20.0298 2.03232 20.2105 2.30406 20.2506 2.61187C20.2907 2.91968 20.1856 3.22865 19.9661 3.44815L17.3385 6.07576C17.1288 6.28544 17.0146 6.40072 16.9389 6.48989C16.9359 6.49344 16.9331 6.49682 16.9304 6.50003C16.9331 6.50323 16.9359 6.50661 16.9389 6.51016C17.0146 6.59933 17.1288 6.71461 17.3385 6.92429L17.5758 7.16155C17.7854 7.37123 17.9007 7.48541 17.9899 7.56111C17.9934 7.56412 17.9968 7.56696 18 7.56962C18.0032 7.56696 18.0066 7.56412 18.0102 7.56111C18.0993 7.48541 18.2146 7.37123 18.4243 7.16155L20.8822 4.70364C21.1187 4.46713 21.4578 4.36452 21.7858 4.43023C22.1137 4.49594 22.3871 4.72126 22.5142 5.03063C22.8277 5.7933 23 6.62779 23 7.50003C23 10.5046 20.9614 13.0331 18.1919 13.7777L21.2071 16.7928C22.4261 18.0117 22.4261 19.9881 21.2071 21.207C19.9882 22.426 18.0119 22.426 16.7929 21.207L12.0001 16.4142L7.20713 21.2071C5.98818 22.4261 4.01187 22.4261 2.79292 21.2071C1.57397 19.9882 1.57397 18.0119 2.79292 16.7929L9.08581 10.5L5.58581 7.00003H3.00003C2.5696 7.00003 2.18746 6.7246 2.05134 6.31626L1.05134 3.31625C0.931566 2.95692 1.02509 2.56075 1.29292 2.29292L2.29292 1.29292ZM5.00003 5.00003V3.72079L3.27012 3.14415L3.14415 3.27012L3.72079 5.00003H5.00003ZM11.2062 11.2081L4.20714 18.2071C3.76923 18.645 3.76923 19.355 4.20714 19.7929C4.64504 20.2308 5.35502 20.2308 5.79292 19.7929L12.9499 12.6359C12.9689 12.617 12.9882 12.5975 13.0079 12.5776C13.0487 12.5366 13.0913 12.4937 13.1355 12.4504L13.2326 12.3533C13.3452 12.2406 13.4665 12.1456 13.5937 12.0668C13.6314 12.0423 13.6697 12.0194 13.7087 11.9985C13.8064 11.9462 13.9249 11.8887 14.0691 11.8448C14.2133 11.8009 14.3438 11.7827 14.4541 11.7718C14.4756 11.7696 14.497 11.768 14.5184 11.7668C14.7885 11.7445 15.0574 11.7719 15.3055 11.84C15.4095 11.8686 15.515 11.8935 15.622 11.9146C15.6224 11.9147 15.6228 11.9148 15.6233 11.9149C15.6427 11.9187 15.6621 11.9224 15.6816 11.926C15.8091 11.9493 15.9384 11.9674 16.0696 11.9798C16.211 11.9932 16.3546 12 16.5 12C18.9853 12 21 9.98531 21 7.50003C21 7.47163 20.9998 7.44329 20.9992 7.41502L19.816 8.5983C19.6375 8.77679 19.4637 8.95062 19.3045 9.08579C19.1297 9.23422 18.9078 9.39379 18.6181 9.48793C18.2164 9.61844 17.7837 9.61844 17.382 9.48793C17.0923 9.39379 16.8704 9.23422 16.6955 9.08579C16.5363 8.95062 16.3625 8.7768 16.1841 8.59832L15.9017 8.31596C15.7233 8.13751 15.5494 7.96373 15.4143 7.80452C15.2658 7.62967 15.1063 7.40778 15.0121 7.11806C14.8816 6.71637 14.8816 6.28368 15.0121 5.88199C15.1063 5.59228 15.2658 5.37038 15.4143 5.19554C15.5494 5.03633 15.7232 4.86255 15.9017 4.68412L17.4792 3.10665C17.1643 3.03685 16.8367 3.00003 16.5 3.00003C14.0147 3.00003 12 5.01475 12 7.50003C12 7.80093 12.0294 8.09398 12.0852 8.37677L12.0888 8.39527C12.1337 8.62253 12.1727 8.82052 12.1978 8.97939C12.2214 9.12834 12.2493 9.33506 12.2283 9.54599C12.2173 9.65623 12.1991 9.78675 12.1552 9.93093C12.1114 10.0751 12.0538 10.1937 12.0015 10.2913C11.8581 10.5594 11.6197 10.7962 11.4224 10.9921C11.4025 11.0119 11.3831 11.0312 11.3642 11.0501L11.2081 11.2062C11.2078 11.2065 11.2074 11.2068 11.2071 11.2071C11.2068 11.2074 11.2065 11.2078 11.2062 11.2081ZM13.4143 15L18.2071 19.7928C18.645 20.2307 19.355 20.2307 19.7929 19.7928C20.2308 19.3549 20.2308 18.6449 19.7929 18.207L15.5109 13.9251C15.4187 13.911 15.3272 13.895 15.2363 13.8771C14.9852 13.8275 14.825 13.7961 14.7082 13.7777C14.6855 13.7741 14.667 13.7714 14.652 13.7694C14.6484 13.7726 14.6444 13.7762 14.64 13.7802C14.5816 13.8331 14.5053 13.9089 14.3727 14.0416C14.3699 14.0444 14.367 14.0472 14.3642 14.0501L13.4143 15Z"}));function yn({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=ge({stepId:e});return n?s.jsx(W,{err:a}):r?s.jsx(C,{className:"h-[300px] w-full"}):s.jsx(L,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:((i=t==null?void 0:t.metadata)==null?void 0:i.source_code)||""})})}const jn=e=>p.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.7587 4.31292e-07L8 9.08129e-07C8.55229 9.08129e-07 9 0.447716 9 1C9 1.55229 8.55229 2 8 2H5.8C4.94342 2 4.36113 2.00078 3.91104 2.03755C3.47262 2.07337 3.24842 2.1383 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.1383 3.24842 2.07337 3.47262 2.03755 3.91104C2.00078 4.36113 2 4.94342 2 5.8V14.2C2 15.0566 2.00078 15.6389 2.03755 16.089C2.07337 16.5274 2.1383 16.7516 2.21799 16.908C2.40973 17.2843 2.7157 17.5903 3.09202 17.782C3.24842 17.8617 3.47262 17.9266 3.91104 17.9624C4.36113 17.9992 4.94342 18 5.8 18H14.2C15.0566 18 15.6389 17.9992 16.089 17.9624C16.5274 17.9266 16.7516 17.8617 16.908 17.782C17.2843 17.5903 17.5903 17.2843 17.782 16.908C17.8617 16.7516 17.9266 16.5274 17.9624 16.089C17.9992 15.6389 18 15.0566 18 14.2V12C18 11.4477 18.4477 11 19 11C19.5523 11 20 11.4477 20 12V14.2413C20 15.0463 20 15.7106 19.9558 16.2518C19.9099 16.8139 19.8113 17.3306 19.564 17.816C19.1805 18.5686 18.5686 19.1805 17.816 19.564C17.3306 19.8113 16.8139 19.9099 16.2518 19.9558C15.7106 20 15.0463 20 14.2413 20H5.75868C4.95372 20 4.28936 20 3.74817 19.9558C3.18608 19.9099 2.66937 19.8113 2.18404 19.564C1.43139 19.1805 0.819468 18.5686 0.435975 17.816C0.188684 17.3306 0.0901197 16.8139 0.0441945 16.2518C-2.28137e-05 15.7106 -1.23241e-05 15.0463 4.31292e-07 14.2413V5.7587C-1.23241e-05 4.95373 -2.28137e-05 4.28937 0.0441945 3.74817C0.0901197 3.18608 0.188684 2.66937 0.435975 2.18404C0.819468 1.43139 1.43139 0.819468 2.18404 0.435975C2.66937 0.188684 3.18608 0.0901197 3.74817 0.0441945C4.28937 -2.28137e-05 4.95373 -1.23241e-05 5.7587 4.31292e-07ZM12 1.00001C12 0.447726 12.4477 1.04449e-05 13 1.04449e-05H19C19.5523 1.04449e-05 20 0.447725 20 1.00001L20 7.00001C20 7.55229 19.5523 8.00001 19 8.00001C18.4477 8.00001 18 7.5523 18 7.00001L18 3.41422L10.7071 10.7071C10.3166 11.0976 9.68342 11.0976 9.29289 10.7071C8.90237 10.3166 8.90237 9.68342 9.29289 9.29289L16.5858 2.00001H13C12.4477 2.00001 12 1.5523 12 1.00001Z"}));function b1({data:e}){const[t,r]=p.useState(!0);return s.jsxs(ae,{open:t,onOpenChange:r,children:[s.jsx(te,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ie,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(de,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Docker Image"]})}),s.jsxs(oe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Docker Image",value:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs(E,{className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Or,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),ur(e.image)]}),s.jsxs("div",{className:"align-center mr-1 flex",children:[s.jsx("a",{className:"cursor-pointer",rel:"noopener noreferrer",target:"_blank",href:`https://${e.image}`,children:s.jsx(jn,{className:"mr-1 mt-0.5 h-5 w-5 fill-theme-text-tertiary"})}),s.jsx(J,{copyText:e.image,isVisible:!0,copyTitle:"Copy url"})]})]})}),s.jsx(g,{label:"Contains Code",value:s.jsx(E,{color:e.contains_code?"green":"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:e.contains_code?"Available":"None"})})]}),e.dockerfile&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Dockerfile"}),s.jsx(D,{fullWidth:!0,wrap:!0,code:e.dockerfile})]}),e.requirements&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Requirements"}),s.jsx(D,{fullWidth:!0,wrap:!0,code:e.requirements})]})]})]})}function En({buildId:e}){return["pipeline-builds",e]}async function Nn({buildId:e},t){const r=F(H.runs.detail(e)),n=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",...t&&{Authorization:`Bearer ${t}`}}});if(!n.ok)throw new R({message:`Error while fetching pipeline build ${e}`,status:n.status,statusText:n.statusText});return n.json()}function v1(e,t){return z({queryKey:En(e),queryFn:()=>Nn(e),...t})}function _n({stepId:e}){var f,m,x,b,v,j,S,O,T,P,I,M;const{data:t,isPending:r,isError:n,error:a}=ge({stepId:e}),i=Object.values(((m=(f=t==null?void 0:t.metadata)==null?void 0:f.config)==null?void 0:m.extra)||{}),{runId:o}=Q(),{data:l}=q({runId:o},{throwOnError:!0,enabled:!!o}),{data:d}=v1({buildId:(b=(x=l==null?void 0:l.body)==null?void 0:x.build)==null?void 0:b.id},{enabled:!!((j=(v=l==null?void 0:l.body)==null?void 0:v.build)!=null&&j.id)}),u=(()=>{var _;const N=(_=d==null?void 0:d.metadata)==null?void 0:_.images;if(!N)return null;if(Object.keys(N).length===1&&Object.keys(N)[0]!=="orchestrator")return Object.keys(N)[0];for(const V in N)if(V!=="orchestrator"&&V.split(".")[1]!=="orchestrator")return V;return"orchestrator"})(),h=u&&((O=(S=d==null?void 0:d.metadata)==null?void 0:S.images)==null?void 0:O[u]);return n?s.jsx(W,{err:a}):r?s.jsxs("div",{className:"space-y-5",children:[s.jsx(C,{className:"h-[200]"}),s.jsx(C,{className:"h-[200px]"}),s.jsx(C,{className:"h-[200px]"})]}):s.jsxs("div",{className:"space-y-5",children:[((T=t.metadata)==null?void 0:T.run_metadata)&&s.jsx(Ze,{title:"Metadata",metadata:(P=t.metadata)==null?void 0:P.run_metadata}),s.jsx(Mt,{data:(M=(I=t.metadata)==null?void 0:I.config)==null?void 0:M.parameters,title:"Parameters"}),h?s.jsx(b1,{data:h}):null,s.jsx(kn,{id:t.id}),i.length>0?s.jsx(Mt,{data:i,title:"Extra"}):null]})}function Mt({data:e,title:t}){return s.jsx(L,{initialOpen:!0,title:t,children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:Object.entries(e).map(([r,n])=>typeof n!="object"&&s.jsx(g,{label:r,value:s.jsx("div",{children:t1(n)})},r))})})}function kn({id:e}){function t(r){return`from zenml.client import Client
6
+ artifact = Client().get_pipeline_run('${r}')
7
+ config = run.config()`}return s.jsxs(L,{initialOpen:!0,title:"Code",children:[s.jsx("h2",{className:"mb-2 text-text-md text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})]})}function Ln(e,t){if(!e||!t)return"";const r=new Date(e),n=new Date(t);if(isNaN(r.getTime())||isNaN(n.getTime()))return"";const a=Math.abs(n.getTime()-r.getTime()),i=Math.floor(a/(1e3*60)),o=Math.floor(a%(1e3*60)/1e3);return`${i}min ${o}s`}const Sn=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0083 2C6.47396 2 2 6.58331 2 12.2535C2 16.786 4.86662 20.6226 8.84338 21.9805C9.34058 22.0826 9.5227 21.7599 9.5227 21.4885C9.5227 21.2508 9.50631 20.436 9.50631 19.587C6.72225 20.1983 6.14249 18.3647 6.14249 18.3647C5.69508 17.1764 5.03215 16.871 5.03215 16.871C4.12092 16.2429 5.09852 16.2429 5.09852 16.2429C6.1093 16.3108 6.63969 17.2954 6.63969 17.2954C7.53432 18.857 8.97592 18.4158 9.55588 18.1441C9.63865 17.482 9.90394 17.0237 10.1856 16.7691C7.96514 16.5314 5.62891 15.6487 5.62891 11.7102C5.62891 10.5898 6.02634 9.67309 6.65608 8.96018C6.55672 8.7056 6.20866 7.65289 6.75564 6.24394C6.75564 6.24394 7.60069 5.97228 9.5061 7.29644C10.3219 7.07199 11.1632 6.95782 12.0083 6.95685C12.8533 6.95685 13.7148 7.07581 14.5102 7.29644C16.4159 5.97228 17.2609 6.24394 17.2609 6.24394C17.8079 7.65289 17.4596 8.7056 17.3603 8.96018C18.0066 9.67309 18.3876 10.5898 18.3876 11.7102C18.3876 15.6487 16.0514 16.5143 13.8143 16.7691C14.179 17.0916 14.4936 17.7026 14.4936 18.6703C14.4936 20.0453 14.4773 21.1489 14.4773 21.4883C14.4773 21.7599 14.6596 22.0826 15.1566 21.9808C19.1333 20.6224 22 16.786 22 12.2535C22.0163 6.58331 17.526 2 12.0083 2Z",fill:"#0D061D"}));function On({repositoryId:e}){return["code_repositories",e]}async function Tn({repositoryId:e}){const t=F(H.code_repositories.detail(e)),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching code repository ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Pn(e,t){return z({queryKey:On(e),queryFn:()=>Tn(e),...t})}function In({stepId:e,runId:t}){var v,j,S,O,T,P,I,M,N,_,V,ue,Qe,Xe,Je,et,tt,rt,nt,st,at,it,ot,lt,dt,ct,ut,ht,ft,mt,pt,xt,Ct,gt,bt,vt,wt,yt,jt;const{data:r,isError:n,isPending:a,error:i}=ge({stepId:e}),{data:o}=q({runId:t}),l=(S=(j=(v=o==null?void 0:o.body)==null?void 0:v.code_reference)==null?void 0:j.body)==null?void 0:S.code_repository,{data:d}=Pn({repositoryId:l==null?void 0:l.id},{throwOnError:!0,enabled:!!(l!=null&&l.id)}),c=(O=d==null?void 0:d.metadata)==null?void 0:O.config;if(n)return s.jsx(W,{err:i});if(a)return s.jsx(C,{className:"h-[300px] w-full"});const u=(P=(T=r.metadata)==null?void 0:T.config)==null?void 0:P.enable_cache,h=(I=o==null?void 0:o.metadata)==null?void 0:I.orchestrator_url,f=(M=o==null?void 0:o.metadata)==null?void 0:M.orchestrator_run_id,m=(_=(N=r.metadata)==null?void 0:N.config)==null?void 0:_.enable_artifact_metadata,x=(ue=(V=r.metadata)==null?void 0:V.config)==null?void 0:ue.enable_artifact_visualization,b=()=>{var Et,Nt,_t,kt;let he=l==null?void 0:l.name,be="";return((Nt=(Et=l==null?void 0:l.body)==null?void 0:Et.source)==null?void 0:Nt.attribute)==="GitHubCodeRepository"?(he=`${c==null?void 0:c.owner}/${c==null?void 0:c.repository}`,be=`https://www.github.com/${he}`):((kt=(_t=l==null?void 0:l.body)==null?void 0:_t.source)==null?void 0:kt.attribute)==="GitLabCodeRepository"&&(he=`${c==null?void 0:c.group}/${c==null?void 0:c.project}`,be=`https://www.gitlab.com/${he}`),s.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:`flex items-center ${be?"":"pointer-events-none"}`,onClick:rr=>rr.stopPropagation(),href:be,children:[s.jsx(Sn,{className:"mr-1 h-5 w-5 fill-theme-text-brand"}),he]})};return s.jsx(L,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(g,{label:"Orchestrator url",value:h?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[h,s.jsx(J,{copyText:h})]}):"Not available"}),s.jsx(g,{label:"Orchestrator run Id",value:f?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[f,s.jsx(J,{copyText:f})]}):"Not available"}),s.jsx(g,{label:"Id",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[r.id,s.jsx(J,{copyText:r.id})]})}),s.jsx(g,{label:"Status",value:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs(E,{color:we((Qe=r.body)==null?void 0:Qe.status),rounded:!0,emphasis:"subtle",className:"flex w-fit items-center gap-1 capitalize",children:[s.jsx(le,{className:"fill-current",status:(Xe=r.body)==null?void 0:Xe.status}),(Je=r.body)==null?void 0:Je.status]}),typeof u=="boolean"&&s.jsx(ne,{size:"sm",color:u?"green":"grey",children:u?"Enable cache":"Disabled cache"})]})}),o?s.jsxs(s.Fragment,{children:[s.jsx(g,{label:"Pipeline",value:s.jsx(xe,{to:me.pipelines.namespace(encodeURIComponent((tt=(et=o.body)==null?void 0:et.pipeline)==null?void 0:tt.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Ae,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(nt=(rt=o.body)==null?void 0:rt.pipeline)==null?void 0:nt.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(it=(at=(st=o.body)==null?void 0:st.pipeline)==null?void 0:at.body)==null?void 0:it.version})]})})}),((ot=o.body)==null?void 0:ot.code_reference)&&c&&s.jsx(g,{label:"Repository/Commit",value:s.jsxs("div",{className:"group/copybutton mr-1",children:[s.jsxs(E,{color:"grey",className:"inline-flex items-center font-semibold text-neutral-900",rounded:!1,emphasis:"subtle",children:[b(),s.jsx("div",{className:"ml-1 rounded-sm bg-neutral-200 px-1 py-0.25",children:hr((ct=(dt=(lt=o==null?void 0:o.body)==null?void 0:lt.code_reference)==null?void 0:dt.body)==null?void 0:ct.commit,10)})]}),s.jsx(J,{copyText:(ft=(ht=(ut=o==null?void 0:o.body)==null?void 0:ut.code_reference)==null?void 0:ht.body)==null?void 0:ft.commit})]})})]}):s.jsx(C,{className:"h-6 w-full"}),s.jsx(g,{label:"Cache key",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[(mt=r.metadata)==null?void 0:mt.cache_key,s.jsx(J,{copyText:(pt=r.metadata)==null?void 0:pt.cache_key})]})}),s.jsx(g,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Be,{username:(Ct=(xt=r.body)==null?void 0:xt.user)==null?void 0:Ct.name})})}),s.jsx(g,{label:"Start Time",value:(gt=r.metadata)!=null&&gt.start_time?s.jsx(pe,{dateString:(bt=r.metadata)==null?void 0:bt.start_time}):"Not available"}),s.jsx(g,{label:"End Time",value:(vt=r.metadata)!=null&&vt.end_time?s.jsx(pe,{dateString:(wt=r.metadata)==null?void 0:wt.end_time}):"Not available"}),s.jsx(g,{label:"Duration",value:Ln(((yt=r.metadata)==null?void 0:yt.start_time)||"",((jt=r.metadata)==null?void 0:jt.end_time)||"")}),s.jsx(g,{label:"Artifact metadata",value:s.jsx(ne,{size:"sm",color:m?"green":"grey",children:m?"Enable":"Disabled"})}),s.jsx(g,{label:"Artifact visualization",value:s.jsx(ne,{size:"sm",color:x?"green":"grey",children:x?"Enable":"Disabled"})})]})})}function Mn({stepId:e}){return["logs",e]}async function Vn({stepId:e}){const t=F(H.steps.logs(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new R({message:n.detail[1].includes("File")&&n.detail[1]||`The logs for step ${e} cannot be fetched or this pipeline run ran locally and logs were not tracked`,status:r.status,statusText:r.statusText})}return r.json()}function $n(e,t){return z({queryKey:Mn(e),queryFn:()=>Vn(e),...t})}const w1=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2242 3.0552C14.0208 3.00637 13.7931 2.99994 13.0118 2.99994H8.5C8.00379 2.99994 7.85253 3.0021 7.73895 3.01705C6.84148 3.13521 6.13526 3.84142 6.01711 4.73889C6.00216 4.85247 6 5.00373 6 5.49994C6 6.05223 5.55228 6.49994 5 6.49994C4.44772 6.49994 4 6.05223 4 5.49994C4 5.47668 3.99999 5.45376 3.99999 5.43118C3.99988 5.03374 3.9998 4.73929 4.03422 4.47784C4.27053 2.6829 5.68296 1.27047 7.4779 1.03416C7.73935 0.99974 8.0338 0.99982 8.43124 0.999929C8.45382 0.999935 8.47674 0.999941 8.5 0.999941H13.0118C13.0462 0.999941 13.0801 0.999925 13.1137 0.999909C13.7487 0.999607 14.2284 0.999378 14.6911 1.11046C15.0993 1.20845 15.4895 1.37007 15.8474 1.58938C16.2531 1.83801 16.5922 2.17744 17.041 2.62667C17.0647 2.65038 17.0887 2.6744 17.113 2.69872L20.3012 5.88695C20.3255 5.91126 20.3495 5.93525 20.3732 5.95893C20.8225 6.40774 21.1619 6.74686 21.4106 7.15259C21.6299 7.51048 21.7915 7.90065 21.8895 8.3088C22.0006 8.77149 22.0003 9.25128 22 9.88627C22 9.9198 22 9.95375 22 9.98817V17.2413C22 18.0462 22 18.7106 21.9558 19.2518C21.9099 19.8139 21.8113 20.3306 21.564 20.8159C21.1805 21.5686 20.5686 22.1805 19.816 22.564C19.3306 22.8113 18.8139 22.9098 18.2518 22.9557C17.7106 23 17.0463 23 16.2413 22.9999H8.5C8.47673 22.9999 8.45381 22.9999 8.43122 23C8.03379 23.0001 7.73935 23.0001 7.4779 22.9657C5.68296 22.7294 4.27053 21.317 4.03422 19.522C3.9998 19.2606 3.99988 18.9661 3.99999 18.5687C3.99999 18.5461 4 18.5232 4 18.4999C4 17.9477 4.44772 17.4999 5 17.4999C5.55228 17.4999 6 17.9477 6 18.4999C6 18.9961 6.00216 19.1474 6.01711 19.261C6.13526 20.1585 6.84148 20.8647 7.73895 20.9828C7.85253 20.9978 8.00379 20.9999 8.5 20.9999H16.2C17.0566 20.9999 17.6389 20.9992 18.089 20.9624C18.5274 20.9266 18.7516 20.8616 18.908 20.782C19.2843 20.5902 19.5903 20.2842 19.782 19.9079C19.8617 19.7515 19.9266 19.5273 19.9624 19.0889C19.9992 18.6388 20 18.0565 20 17.1999V9.98817C20 9.20679 19.9936 8.9791 19.9447 8.77569C19.8957 8.57162 19.8149 8.37653 19.7053 8.19758C19.596 8.01923 19.4395 7.85366 18.887 7.30116L15.6988 4.11294C15.1463 3.56042 14.9807 3.40396 14.8024 3.29466C14.6234 3.185 14.4283 3.10419 14.2242 3.0552ZM5.70711 8.79283C6.09763 9.18336 6.09763 9.81652 5.70711 10.207L3.91421 11.9999L5.70711 13.7928C6.09763 14.1834 6.09763 14.8165 5.70711 15.207C5.31658 15.5976 4.68342 15.5976 4.29289 15.207L1.79289 12.707C1.40237 12.3165 1.40237 11.6834 1.79289 11.2928L4.29289 8.79283C4.68342 8.40231 5.31658 8.40231 5.70711 8.79283ZM8.29289 8.79283C8.68342 8.40231 9.31658 8.40231 9.70711 8.79283L12.2071 11.2928C12.5976 11.6834 12.5976 12.3165 12.2071 12.707L9.70711 15.207C9.31658 15.5976 8.68342 15.5976 8.29289 15.207C7.90237 14.8165 7.90237 14.1834 8.29289 13.7928L10.0858 11.9999L8.29289 10.207C7.90237 9.81652 7.90237 9.18336 8.29289 8.79283Z"})),Rn=()=>s.jsx("section",{className:"flex h-[calc(100vh_-_270px)] items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center justify-center",children:[s.jsxs("div",{className:"relative mb-2 flex items-center justify-center",children:[s.jsx(De,{className:"h-[120px] w-[120px]"}),s.jsx(Dn,{})]}),s.jsx("h2",{className:"my-3 text-center text-display-xs font-semibold",children:"Loading the Logs"}),s.jsxs("p",{className:"text-center text-text-lg text-theme-text-secondary",children:["It can take up to a few minutes. ",s.jsx("br",{})," Please wait while we fetch logs from the artifact store."]})]})});function An({stepId:e,stepDetail:t}){var l,d;const r=(d=(l=t==null?void 0:t.metadata)==null?void 0:l.config)==null?void 0:d.enable_step_logs,{data:n,isPending:a,isError:i,error:o}=$n({stepId:e});return i?s.jsx(W,{err:o}):a?s.jsx(Rn,{}):s.jsx(L,{initialOpen:!0,title:"Logs",children:typeof r=="boolean"&&r===!1?s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:s.jsx(g,{label:"Enable logs",value:"Disabled"})}):s.jsx(D,{codeClasses:"whitespace-pre-line",fullWidth:!0,wrap:!0,code:n||""})})}function Dn(){return s.jsx("div",{className:"absolute rounded-rounded bg-primary-25 p-3",children:s.jsx(w1,{className:"h-7 w-7 fill-primary-400"})})}function Fn({stackId:e}){return["stacks",e]}async function Hn({stackId:e}){const t=F(H.stacks.detail(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&se(),!r.ok)throw new R({message:`Error while fetching stack ${e}`,status:r.status,statusText:r.statusText});return r.json()}function zn(e,t){return z({queryKey:Fn(e),queryFn:()=>Hn(e),...t})}function Gn({component:e,run:t}){var a,i,o,l,d,c;const r=`${(a=e.body)==null?void 0:a.type}.${(i=e.body)==null?void 0:i.flavor}`,n=((l=(o=t.metadata)==null?void 0:o.config.settings)==null?void 0:l[r])??"";return!n||Object.keys(n).length===0?s.jsxs(te,{intent:"secondary",className:"grid w-full grid-cols-2 gap-2 rounded-md border border-theme-border-moderate pl-[60px]",children:[s.jsx("span",{children:Lt((d=e.body)==null?void 0:d.type)}),s.jsx("div",{children:e.name})]}):s.jsx(Z,{intent:"secondary",contentClassName:"pl-[60px]",className:"w-full",isInitialOpen:!1,data:n,title:s.jsxs("div",{className:"grid w-full grid-cols-2 gap-2 text-left",children:[s.jsx("span",{children:Lt((c=e.body)==null?void 0:c.type)}),s.jsx("div",{children:e.name})]})})}function y1(){var l,d,c,u;const[e,t]=p.useState(!0),{runId:r}=Q(),{data:n,isError:a,isPending:i}=q({runId:r},{throwOnError:!0}),o=(d=(l=n==null?void 0:n.body)==null?void 0:l.stack)==null?void 0:d.id;return i?s.jsx(C,{className:"h-[250px] w-full"}):a?null:s.jsxs(ae,{open:e,onOpenChange:t,children:[s.jsxs(te,{className:"flex justify-between",children:[s.jsx(ie,{className:" flex w-full items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-[10px]",children:[s.jsx(de,{className:` ${e?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Stack"]})}),s.jsx(xe,{to:me.stacks.overview,children:s.jsxs(E,{rounded:!1,className:"inline-flex items-center gap-0.5",color:"turquoise",emphasis:"subtle",children:[s.jsx(fr,{className:"h-4 w-4 fill-current"}),s.jsx("span",{children:(u=(c=n==null?void 0:n.body)==null?void 0:c.stack)==null?void 0:u.name})]})})]}),s.jsx(oe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsx(Bn,{stackId:o,run:n})})]})}function Bn({stackId:e,run:t}){var i;const{data:r,isError:n,isPending:a}=zn({stackId:e});return n?null:a?s.jsx("div",{className:"space-y-5",children:Array.from({length:3}).map((o,l)=>s.jsx(C,{className:"h-8 w-full"},l))}):s.jsx("ul",{className:"space-y-5",children:Object.values(((i=r==null?void 0:r.metadata)==null?void 0:i.components)||{}).map(o=>s.jsx("li",{className:"flex w-full items-center justify-between",children:s.jsx(Gn,{component:o[0],run:t})},o[0].id))})}function Zn(e){if(!e)return"light-grey";switch(e){case"completed":return"green";default:return"light-grey"}}function qn({stepId:e}){var i,o,l;const{runId:t}=Q(),{data:r}=ge({stepId:e}),n=(i=r==null?void 0:r.body)==null?void 0:i.status,a=(l=(o=r==null?void 0:r.metadata)==null?void 0:o.config)==null?void 0:l.enable_cache;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(n1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(l1,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsx("div",{className:"flex justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:s.jsx("div",{children:r?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${d1(n)}`,children:s.jsx(le,{status:n,className:"h-4 w-4"})}),s.jsx("h2",{className:"text-display-xs font-semibold",children:r.name}),s.jsx(ne,{size:"sm",color:Zn(n),children:n||"None"}),typeof a=="boolean"&&s.jsx(ne,{size:"sm",color:a?"green":"grey",children:a?"Enable cache":"Disabled cache"})]}):s.jsx(C,{className:"h-6 w-7"})})}),s.jsx("div",{className:"p-5",children:s.jsxs(Fe,{defaultValue:"overview",children:[s.jsxs(He,{children:[s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"code",children:[s.jsx(wn,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Code"})]}),s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"logs",children:[s.jsx(w1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Logs"})]}),s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"config",children:[s.jsx(g1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]})]}),s.jsxs(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:[s.jsx(In,{runId:t,stepId:e}),s.jsx("div",{className:"mt-5",children:s.jsx(y1,{})})]}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"code",children:s.jsx(yn,{stepId:e})}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"logs",children:s.jsx(An,{stepId:e,stepDetail:r})}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"config",children:s.jsx(_n,{stepId:e})})]})})]})}function Yn({children:e,stepId:t,onOpenChange:r}){return s.jsxs(s1,{onOpenChange:r,children:[s.jsx(a1,{asChild:!0,children:e}),s.jsx(i1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(qn,{stepId:t})})]})}const Kn=e=>({unselectAll:e.unselectNodesAndEdges});function Un({data:e,selected:t}){const{unselectAll:r}=Ge(Kn);function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(f1,{children:s.jsx(Yn,{onOpenChange:n,stepId:e.execution_id,children:s.jsx("button",{"data-selected":!!t,className:"h-[44px] max-w-[300px] overflow-hidden rounded-md border border-theme-border-moderate bg-theme-surface-primary transition-all duration-200 hover:border-neutral-400 hover:shadow-md data-[selected=true]:border-theme-border-bold data-[selected=true]:shadow-md",children:s.jsxs("div",{className:"flex items-center gap-1 py-1 pl-1 pr-2",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${d1(e.status)}`,children:s.jsx(le,{status:e.status,className:"h-4 w-4"})}),s.jsx("p",{className:"truncate font-semibold",children:e.name})]})})})})}var Wn="\0",X="\0",Vt="";let Qn=class{constructor(t){w(this,"_isDirected",!0);w(this,"_isMultigraph",!1);w(this,"_isCompound",!1);w(this,"_label");w(this,"_defaultNodeLabelFn",()=>{});w(this,"_defaultEdgeLabelFn",()=>{});w(this,"_nodes",{});w(this,"_in",{});w(this,"_preds",{});w(this,"_out",{});w(this,"_sucs",{});w(this,"_edgeObjs",{});w(this,"_edgeLabels",{});w(this,"_nodeCount",0);w(this,"_edgeCount",0);w(this,"_parent");w(this,"_children");t&&(this._isDirected=t.hasOwnProperty("directed")?t.directed:!0,this._isMultigraph=t.hasOwnProperty("multigraph")?t.multigraph:!1,this._isCompound=t.hasOwnProperty("compound")?t.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[X]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return this._defaultNodeLabelFn=t,typeof t!="function"&&(this._defaultNodeLabelFn=()=>t),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var t=this;return this.nodes().filter(r=>Object.keys(t._in[r]).length===0)}sinks(){var t=this;return this.nodes().filter(r=>Object.keys(t._out[r]).length===0)}setNodes(t,r){var n=arguments,a=this;return t.forEach(function(i){n.length>1?a.setNode(i,r):a.setNode(i)}),this}setNode(t,r){return this._nodes.hasOwnProperty(t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=X,this._children[t]={},this._children[X][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return this._nodes.hasOwnProperty(t)}removeNode(t){var r=this;if(this._nodes.hasOwnProperty(t)){var n=a=>r.removeEdge(r._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],this.children(t).forEach(function(a){r.setParent(a)}),delete this._children[t]),Object.keys(this._in[t]).forEach(n),delete this._in[t],delete this._preds[t],Object.keys(this._out[t]).forEach(n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=X;else{r+="";for(var n=r;n!==void 0;n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==X)return r}}children(t=X){if(this._isCompound){var r=this._children[t];if(r)return Object.keys(r)}else{if(t===X)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Object.keys(r)}successors(t){var r=this._sucs[t];if(r)return Object.keys(r)}neighbors(t){var r=this.predecessors(t);if(r){const a=new Set(r);for(var n of this.successors(t))a.add(n);return Array.from(a.values())}}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([o,l]){t(o)&&r.setNode(o,l)}),Object.values(this._edgeObjs).forEach(function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var a={};function i(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(a[o]=l,l):l in a?a[l]:i(l)}return this._isCompound&&r.nodes().forEach(o=>r.setParent(o,i(o))),r}setDefaultEdgeLabel(t){return this._defaultEdgeLabelFn=t,typeof t!="function"&&(this._defaultEdgeLabelFn=()=>t),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(t,r){var n=this,a=arguments;return t.reduce(function(i,o){return a.length>1?n.setEdge(i,o,r):n.setEdge(i,o),o}),this}setEdge(){var t,r,n,a,i=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(a=arguments[1],i=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),t=""+t,r=""+r,n!==void 0&&(n=""+n);var l=fe(this._isDirected,t,r,n);if(this._edgeLabels.hasOwnProperty(l))return i&&(this._edgeLabels[l]=a),this;if(n!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=i?a:this._defaultEdgeLabelFn(t,r,n);var d=Xn(this._isDirected,t,r,n);return t=d.v,r=d.w,Object.freeze(d),this._edgeObjs[l]=d,$t(this._preds[r],t),$t(this._sucs[t],r),this._in[r][l]=d,this._out[t][l]=d,this._edgeCount++,this}edge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):fe(this._isDirected,t,r,n);return this._edgeLabels[a]}edgeAsObj(){const t=this.edge(...arguments);return typeof t!="object"?{label:t}:t}hasEdge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):fe(this._isDirected,t,r,n);return this._edgeLabels.hasOwnProperty(a)}removeEdge(t,r,n){var a=arguments.length===1?_e(this._isDirected,arguments[0]):fe(this._isDirected,t,r,n),i=this._edgeObjs[a];return i&&(t=i.v,r=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],Rt(this._preds[r],t),Rt(this._sucs[t],r),delete this._in[r][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.v===r):a}}outEdges(t,r){var n=this._out[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.w===r):a}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};function $t(e,t){e[t]?e[t]++:e[t]=1}function Rt(e,t){--e[t]||delete e[t]}function fe(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}return a+Vt+i+Vt+(n===void 0?Wn:n)}function Xn(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}var l={v:a,w:i};return n&&(l.name=n),l}function _e(e,t){return fe(e,t.v,t.w,t.name)}var qe=Qn,Jn="2.2.2",es={Graph:qe,version:Jn},ts=qe,rs={write:ns,read:is};function ns(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ss(e),edges:as(e)};return e.graph()!==void 0&&(t.value=structuredClone(e.graph())),t}function ss(e){return e.nodes().map(function(t){var r=e.node(t),n=e.parent(t),a={v:t};return r!==void 0&&(a.value=r),n!==void 0&&(a.parent=n),a})}function as(e){return e.edges().map(function(t){var r=e.edge(t),n={v:t.v,w:t.w};return t.name!==void 0&&(n.name=t.name),r!==void 0&&(n.value=r),n})}function is(e){var t=new ts(e.options).setGraph(e.value);return e.nodes.forEach(function(r){t.setNode(r.v,r.value),r.parent&&t.setParent(r.v,r.parent)}),e.edges.forEach(function(r){t.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),t}var os=ls;function ls(e){var t={},r=[],n;function a(i){t.hasOwnProperty(i)||(t[i]=!0,n.push(i),e.successors(i).forEach(a),e.predecessors(i).forEach(a))}return e.nodes().forEach(function(i){n=[],a(i),n.length&&r.push(n)}),r}let ds=class{constructor(){w(this,"_arr",[]);w(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(t){return t.key})}has(t){return this._keyIndices.hasOwnProperty(t)}priority(t){var r=this._keyIndices[t];if(r!==void 0)return this._arr[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(t,r){var n=this._keyIndices;if(t=String(t),!n.hasOwnProperty(t)){var a=this._arr,i=a.length;return n[t]=i,a.push({key:t,priority:r}),this._decrease(i),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key}decrease(t,r){var n=this._keyIndices[t];if(r>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+r);this._arr[n].priority=r,this._decrease(n)}_heapify(t){var r=this._arr,n=2*t,a=n+1,i=t;n<r.length&&(i=r[n].priority<r[i].priority?n:i,a<r.length&&(i=r[a].priority<r[i].priority?a:i),i!==t&&(this._swap(t,i),this._heapify(i)))}_decrease(t){for(var r=this._arr,n=r[t].priority,a;t!==0&&(a=t>>1,!(r[a].priority<n));)this._swap(t,a),t=a}_swap(t,r){var n=this._arr,a=this._keyIndices,i=n[t],o=n[r];n[t]=o,n[r]=i,a[o.key]=t,a[i.key]=r}};var j1=ds,cs=j1,E1=hs,us=()=>1;function hs(e,t,r,n){return fs(e,String(t),r||us,n||function(a){return e.outEdges(a)})}function fs(e,t,r,n){var a={},i=new cs,o,l,d=function(c){var u=c.v!==o?c.v:c.w,h=a[u],f=r(c),m=l.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+c+" Weight: "+f);m<h.distance&&(h.distance=m,h.predecessor=o,i.decrease(u,m))};for(e.nodes().forEach(function(c){var u=c===t?0:Number.POSITIVE_INFINITY;a[c]={distance:u},i.add(c,u)});i.size()>0&&(o=i.removeMin(),l=a[o],l.distance!==Number.POSITIVE_INFINITY);)n(o).forEach(d);return a}var ms=E1,ps=xs;function xs(e,t,r){return e.nodes().reduce(function(n,a){return n[a]=ms(e,a,t,r),n},{})}var N1=Cs;function Cs(e){var t=0,r=[],n={},a=[];function i(o){var l=n[o]={onStack:!0,lowlink:t,index:t++};if(r.push(o),e.successors(o).forEach(function(u){n.hasOwnProperty(u)?n[u].onStack&&(l.lowlink=Math.min(l.lowlink,n[u].index)):(i(u),l.lowlink=Math.min(l.lowlink,n[u].lowlink))}),l.lowlink===l.index){var d=[],c;do c=r.pop(),n[c].onStack=!1,d.push(c);while(o!==c);a.push(d)}}return e.nodes().forEach(function(o){n.hasOwnProperty(o)||i(o)}),a}var gs=N1,bs=vs;function vs(e){return gs(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var ws=js,ys=()=>1;function js(e,t,r){return Es(e,t||ys,r||function(n){return e.outEdges(n)})}function Es(e,t,r){var n={},a=e.nodes();return a.forEach(function(i){n[i]={},n[i][i]={distance:0},a.forEach(function(o){i!==o&&(n[i][o]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(o){var l=o.v===i?o.w:o.v,d=t(o);n[i][l]={distance:d,predecessor:i}})}),a.forEach(function(i){var o=n[i];a.forEach(function(l){var d=n[l];a.forEach(function(c){var u=d[i],h=o[c],f=d[c],m=u.distance+h.distance;m<f.distance&&(f.distance=m,f.predecessor=h.predecessor)})})}),n}function _1(e){var t={},r={},n=[];function a(i){if(r.hasOwnProperty(i))throw new Ie;t.hasOwnProperty(i)||(r[i]=!0,t[i]=!0,e.predecessors(i).forEach(a),delete r[i],n.push(i))}if(e.sinks().forEach(a),Object.keys(t).length!==e.nodeCount())throw new Ie;return n}class Ie extends Error{constructor(){super(...arguments)}}var k1=_1;_1.CycleException=Ie;var At=k1,Ns=_s;function _s(e){try{At(e)}catch(t){if(t instanceof At.CycleException)return!1;throw t}return!0}var L1=ks;function ks(e,t,r){Array.isArray(t)||(t=[t]);var n=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),a=r==="post"?Ls:Ss,i=[],o={};return t.forEach(l=>{if(!e.hasNode(l))throw new Error("Graph does not have node: "+l);a(l,n,o,i)}),i}function Ls(e,t,r,n){for(var a=[[e,!1]];a.length>0;){var i=a.pop();i[1]?n.push(i[0]):r.hasOwnProperty(i[0])||(r[i[0]]=!0,a.push([i[0],!0]),S1(t(i[0]),o=>a.push([o,!1])))}}function Ss(e,t,r,n){for(var a=[e];a.length>0;){var i=a.pop();r.hasOwnProperty(i)||(r[i]=!0,n.push(i),S1(t(i),o=>a.push(o)))}}function S1(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}var Os=L1,Ts=Ps;function Ps(e,t){return Os(e,t,"post")}var Is=L1,Ms=Vs;function Vs(e,t){return Is(e,t,"pre")}var $s=qe,Rs=j1,As=Ds;function Ds(e,t){var r=new $s,n={},a=new Rs,i;function o(d){var c=d.v===i?d.w:d.v,u=a.priority(c);if(u!==void 0){var h=t(d);h<u&&(n[c]=i,a.decrease(c,h))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(d){a.add(d,Number.POSITIVE_INFINITY),r.setNode(d)}),a.decrease(e.nodes()[0],0);for(var l=!1;a.size()>0;){if(i=a.removeMin(),n.hasOwnProperty(i))r.setEdge(i,n[i]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(i).forEach(o)}return r}var Fs={components:os,dijkstra:E1,dijkstraAll:ps,findCycles:bs,floydWarshall:ws,isAcyclic:Ns,postorder:Ts,preorder:Ms,prim:As,tarjan:N1,topsort:k1},Dt=es,A={Graph:Dt.Graph,json:rs,alg:Fs,version:Dt.version};let Hs=class{constructor(){let t={};t._next=t._prev=t,this._sentinel=t}dequeue(){let t=this._sentinel,r=t._prev;if(r!==t)return Ft(r),r}enqueue(t){let r=this._sentinel;t._prev&&t._next&&Ft(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){let t=[],r=this._sentinel,n=r._prev;for(;n!==r;)t.push(JSON.stringify(n,zs)),n=n._prev;return"["+t.join(", ")+"]"}};function Ft(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zs(e,t){if(e!=="_next"&&e!=="_prev")return t}var Gs=Hs;let Bs=A.Graph,Zs=Gs;var qs=Ks;let Ys=()=>1;function Ks(e,t){if(e.nodeCount()<=1)return[];let r=Ws(e,t||Ys);return Us(r.graph,r.buckets,r.zeroIdx).flatMap(a=>e.outEdges(a.v,a.w))}function Us(e,t,r){let n=[],a=t[t.length-1],i=t[0],o;for(;e.nodeCount();){for(;o=i.dequeue();)ke(e,t,r,o);for(;o=a.dequeue();)ke(e,t,r,o);if(e.nodeCount()){for(let l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(ke(e,t,r,o,!0));break}}}return n}function ke(e,t,r,n,a){let i=a?[]:void 0;return e.inEdges(n.v).forEach(o=>{let l=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=l,Me(t,r,d)}),e.outEdges(n.v).forEach(o=>{let l=e.edge(o),d=o.w,c=e.node(d);c.in-=l,Me(t,r,c)}),e.removeNode(n.v),i}function Ws(e,t){let r=new Bs,n=0,a=0;e.nodes().forEach(l=>{r.setNode(l,{v:l,in:0,out:0})}),e.edges().forEach(l=>{let d=r.edge(l.v,l.w)||0,c=t(l),u=d+c;r.setEdge(l.v,l.w,u),a=Math.max(a,r.node(l.v).out+=c),n=Math.max(n,r.node(l.w).in+=c)});let i=Qs(a+n+3).map(()=>new Zs),o=n+1;return r.nodes().forEach(l=>{Me(i,o,r.node(l))}),{graph:r,buckets:i,zeroIdx:o}}function Me(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Qs(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}let O1=A.Graph;var y={addBorderNode:ia,addDummyNode:T1,asNonCompoundGraph:Js,buildLayerMatrix:na,intersectRect:ra,mapValues:ha,maxRank:P1,normalizeRanks:sa,notime:da,partition:oa,pick:ua,predecessorWeights:ta,range:M1,removeEmptyRanks:aa,simplify:Xs,successorWeights:ea,time:la,uniqueId:I1,zipObject:Ye};function T1(e,t,r,n){let a;do a=I1(n);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function Xs(e){let t=new O1().setGraph(e.graph());return e.nodes().forEach(r=>t.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),t}function Js(e){let t=new O1({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t}function ea(e){let t=e.nodes().map(r=>{let n={};return e.outEdges(r).forEach(a=>{n[a.w]=(n[a.w]||0)+e.edge(a).weight}),n});return Ye(e.nodes(),t)}function ta(e){let t=e.nodes().map(r=>{let n={};return e.inEdges(r).forEach(a=>{n[a.v]=(n[a.v]||0)+e.edge(a).weight}),n});return Ye(e.nodes(),t)}function ra(e,t){let r=e.x,n=e.y,a=t.x-r,i=t.y-n,o=e.width/2,l=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");let d,c;return Math.abs(i)*o>Math.abs(a)*l?(i<0&&(l=-l),d=l*a/i,c=l):(a<0&&(o=-o),d=o,c=o*i/a),{x:r+d,y:n+c}}function na(e){let t=M1(P1(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),a=n.rank;a!==void 0&&(t[a][n.order]=r)}),t}function sa(e){let t=Math.min(...e.nodes().map(r=>{let n=e.node(r).rank;return n===void 0?Number.MAX_VALUE:n}));e.nodes().forEach(r=>{let n=e.node(r);n.hasOwnProperty("rank")&&(n.rank-=t)})}function aa(e){let t=Math.min(...e.nodes().map(i=>e.node(i).rank)),r=[];e.nodes().forEach(i=>{let o=e.node(i).rank-t;r[o]||(r[o]=[]),r[o].push(i)});let n=0,a=e.graph().nodeRankFactor;Array.from(r).forEach((i,o)=>{i===void 0&&o%a!==0?--n:i!==void 0&&n&&i.forEach(l=>e.node(l).rank+=n)})}function ia(e,t,r,n){let a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),T1(e,"border",a,t)}function P1(e){return Math.max(...e.nodes().map(t=>{let r=e.node(t).rank;return r===void 0?Number.MIN_VALUE:r}))}function oa(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function la(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function da(e,t){return t()}let ca=0;function I1(e){var t=++ca;return toString(e)+t}function M1(e,t,r=1){t==null&&(t=e,e=0);let n=i=>i<t;r<0&&(n=i=>t<i);const a=[];for(let i=e;n(i);i+=r)a.push(i);return a}function ua(e,t){const r={};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r}function ha(e,t){let r=t;return typeof t=="string"&&(r=n=>n[t]),Object.entries(e).reduce((n,[a,i])=>(n[a]=r(i,a),n),{})}function Ye(e,t){return e.reduce((r,n,a)=>(r[n]=t[a],r),{})}let fa=qs,ma=y.uniqueId;var pa={run:xa,undo:ga};function xa(e){(e.graph().acyclicer==="greedy"?fa(e,r(e)):Ca(e)).forEach(n=>{let a=e.edge(n);e.removeEdge(n),a.forwardName=n.name,a.reversed=!0,e.setEdge(n.w,n.v,a,ma("rev"))});function r(n){return a=>n.edge(a).weight}}function Ca(e){let t=[],r={},n={};function a(i){n.hasOwnProperty(i)||(n[i]=!0,r[i]=!0,e.outEdges(i).forEach(o=>{r.hasOwnProperty(o.w)?t.push(o):a(o.w)}),delete r[i])}return e.nodes().forEach(a),t}function ga(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}let ba=y;var va={run:wa,undo:ja};function wa(e){e.graph().dummyChains=[],e.edges().forEach(t=>ya(e,t))}function ya(e,t){let r=t.v,n=e.node(r).rank,a=t.w,i=e.node(a).rank,o=t.name,l=e.edge(t),d=l.labelRank;if(i===n+1)return;e.removeEdge(t);let c,u,h;for(h=0,++n;n<i;++h,++n)l.points=[],u={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},c=ba.addDummyNode(e,"edge",u,"_d"),n===d&&(u.width=l.width,u.height=l.height,u.dummy="edge-label",u.labelpos=l.labelpos),e.setEdge(r,c,{weight:l.weight},o),h===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:l.weight},o)}function ja(e){e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeLabel,a;for(e.setEdge(r.edgeObj,n);r.dummy;)a=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=a,r=e.node(t)})}var je={longestPath:Ea,slack:Na};function Ea(e){var t={};function r(n){var a=e.node(n);if(t.hasOwnProperty(n))return a.rank;t[n]=!0;var i=Math.min(...e.outEdges(n).map(o=>o==null?Number.POSITIVE_INFINITY:r(o.w)-e.edge(o).minlen));return i===Number.POSITIVE_INFINITY&&(i=0),a.rank=i}e.sources().forEach(r)}function Na(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var _a=A.Graph,ye=je.slack,V1=ka;function ka(e){var t=new _a({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var a,i;La(t,e)<n;)a=Sa(t,e),i=t.hasNode(a.v)?ye(e,a):-ye(e,a),Oa(t,e,i);return t}function La(e,t){function r(n){t.nodeEdges(n).forEach(a=>{var i=a.v,o=n===i?a.w:i;!e.hasNode(o)&&!ye(t,a)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return e.nodes().forEach(r),e.nodeCount()}function Sa(e,t){return t.edges().reduce((n,a)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(a.v)!==e.hasNode(a.w)&&(i=ye(t,a)),i<n[0]?[i,a]:n},[Number.POSITIVE_INFINITY,null])[1]}function Oa(e,t,r){e.nodes().forEach(n=>t.node(n).rank+=r)}var Ta=V1,Ht=je.slack,Pa=je.longestPath,Ia=A.alg.preorder,Ma=A.alg.postorder,Va=y.simplify,$a=re;re.initLowLimValues=Ue;re.initCutValues=Ke;re.calcCutValue=$1;re.leaveEdge=A1;re.enterEdge=D1;re.exchangeEdges=F1;function re(e){e=Va(e),Pa(e);var t=Ta(e);Ue(t),Ke(t,e);for(var r,n;r=A1(t);)n=D1(t,e,r),F1(t,e,r,n)}function Ke(e,t){var r=Ma(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>Ra(e,t,n))}function Ra(e,t,r){var n=e.node(r),a=n.parent;e.edge(r,a).cutvalue=$1(e,t,r)}function $1(e,t,r){var n=e.node(r),a=n.parent,i=!0,o=t.edge(r,a),l=0;return o||(i=!1,o=t.edge(a,r)),l=o.weight,t.nodeEdges(r).forEach(d=>{var c=d.v===r,u=c?d.w:d.v;if(u!==a){var h=c===i,f=t.edge(d).weight;if(l+=h?f:-f,Da(e,r,u)){var m=e.edge(r,u).cutvalue;l+=h?-m:m}}}),l}function Ue(e,t){arguments.length<2&&(t=e.nodes()[0]),R1(e,{},1,t)}function R1(e,t,r,n,a){var i=r,o=e.node(n);return t[n]=!0,e.neighbors(n).forEach(l=>{t.hasOwnProperty(l)||(r=R1(e,t,r,l,n))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function A1(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function D1(e,t,r){var n=r.v,a=r.w;t.hasEdge(n,a)||(n=r.w,a=r.v);var i=e.node(n),o=e.node(a),l=i,d=!1;i.lim>o.lim&&(l=o,d=!0);var c=t.edges().filter(u=>d===zt(e,e.node(u.v),l)&&d!==zt(e,e.node(u.w),l));return c.reduce((u,h)=>Ht(t,h)<Ht(t,u)?h:u)}function F1(e,t,r,n){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(n.v,n.w,{}),Ue(e),Ke(e,t),Aa(e,t)}function Aa(e,t){var r=e.nodes().find(a=>!t.node(a).parent),n=Ia(e,r);n=n.slice(1),n.forEach(a=>{var i=e.node(a).parent,o=t.edge(a,i),l=!1;o||(o=t.edge(i,a),l=!0),t.node(a).rank=t.node(i).rank+(l?o.minlen:-o.minlen)})}function Da(e,t,r){return e.hasEdge(t,r)}function zt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var Fa=je,H1=Fa.longestPath,Ha=V1,za=$a,Ga=Ba;function Ba(e){switch(e.graph().ranker){case"network-simplex":Gt(e);break;case"tight-tree":qa(e);break;case"longest-path":Za(e);break;default:Gt(e)}}var Za=H1;function qa(e){H1(e),Ha(e)}function Gt(e){za(e)}var Ya=Ka;function Ka(e){let t=Wa(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),a=n.edgeObj,i=Ua(e,t,a.v,a.w),o=i.path,l=i.lca,d=0,c=o[d],u=!0;for(;r!==a.w;){if(n=e.node(r),u){for(;(c=o[d])!==l&&e.node(c).maxRank<n.rank;)d++;c===l&&(u=!1)}if(!u){for(;d<o.length-1&&e.node(c=o[d+1]).minRank<=n.rank;)d++;c=o[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function Ua(e,t,r,n){let a=[],i=[],o=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),d,c;d=r;do d=e.parent(d),a.push(d);while(d&&(t[d].low>o||l>t[d].lim));for(c=d,d=n;(d=e.parent(d))!==c;)i.push(d);return{path:a.concat(i.reverse()),lca:c}}function Wa(e){let t={},r=0;function n(a){let i=r;e.children(a).forEach(n),t[a]={low:i,lim:r++}}return e.children().forEach(n),t}let Ve=y;var Qa={run:Xa,cleanup:ti};function Xa(e){let t=Ve.addDummyNode(e,"root",{},"_root"),r=Ja(e),n=Math.max(...Object.values(r))-1,a=2*n+1;e.graph().nestingRoot=t,e.edges().forEach(o=>e.edge(o).minlen*=a);let i=ei(e)+1;e.children().forEach(o=>z1(e,t,a,i,n,r,o)),e.graph().nodeRankFactor=a}function z1(e,t,r,n,a,i,o){let l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}let d=Ve.addBorderNode(e,"_bt"),c=Ve.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(d,o),u.borderTop=d,e.setParent(c,o),u.borderBottom=c,l.forEach(h=>{z1(e,t,r,n,a,i,h);let f=e.node(h),m=f.borderTop?f.borderTop:h,x=f.borderBottom?f.borderBottom:h,b=f.borderTop?n:2*n,v=m!==x?1:a-i[o]+1;e.setEdge(d,m,{weight:b,minlen:v,nestingEdge:!0}),e.setEdge(x,c,{weight:b,minlen:v,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,d,{weight:0,minlen:a+i[o]})}function Ja(e){var t={};function r(n,a){var i=e.children(n);i&&i.length&&i.forEach(o=>r(o,a+1)),t[n]=a}return e.children().forEach(n=>r(n,1)),t}function ei(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function ti(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(r=>{var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}let ri=y;var ni=si;function si(e){function t(r){let n=e.children(r),a=e.node(r);if(n.length&&n.forEach(t),a.hasOwnProperty("minRank")){a.borderLeft=[],a.borderRight=[];for(let i=a.minRank,o=a.maxRank+1;i<o;++i)Bt(e,"borderLeft","_bl",r,a,i),Bt(e,"borderRight","_br",r,a,i)}}e.children().forEach(t)}function Bt(e,t,r,n,a,i){let o={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],d=ri.addDummyNode(e,"border",o,r);a[t][i]=d,e.setParent(d,n),l&&e.setEdge(l,d,{weight:1})}var ai={adjust:ii,undo:oi};function ii(e){let t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&G1(e)}function oi(e){let t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&li(e),(t==="lr"||t==="rl")&&(di(e),G1(e))}function G1(e){e.nodes().forEach(t=>Zt(e.node(t))),e.edges().forEach(t=>Zt(e.edge(t)))}function Zt(e){let t=e.width;e.width=e.height,e.height=t}function li(e){e.nodes().forEach(t=>Le(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Le),r.hasOwnProperty("y")&&Le(r)})}function Le(e){e.y=-e.y}function di(e){e.nodes().forEach(t=>Se(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Se),r.hasOwnProperty("x")&&Se(r)})}function Se(e){let t=e.x;e.x=e.y,e.y=t}let ci=y;var ui=hi;function hi(e){let t={},r=e.nodes().filter(l=>!e.children(l).length),n=Math.max(...r.map(l=>e.node(l).rank)),a=ci.range(n+1).map(()=>[]);function i(l){if(t[l])return;t[l]=!0;let d=e.node(l);a[d.rank].push(l),e.successors(l).forEach(i)}return r.sort((l,d)=>e.node(l).rank-e.node(d).rank).forEach(i),a}let fi=y.zipObject;var mi=pi;function pi(e,t){let r=0;for(let n=1;n<t.length;++n)r+=xi(e,t[n-1],t[n]);return r}function xi(e,t,r){let n=fi(r,r.map((c,u)=>u)),a=t.flatMap(c=>e.outEdges(c).map(u=>({pos:n[u.w],weight:e.edge(u).weight})).sort((u,h)=>u.pos-h.pos)),i=1;for(;i<r.length;)i<<=1;let o=2*i-1;i-=1;let l=new Array(o).fill(0),d=0;return a.forEach(c=>{let u=c.pos+i;l[u]+=c.weight;let h=0;for(;u>0;)u%2&&(h+=l[u+1]),u=u-1>>1,l[u]+=c.weight;d+=c.weight*h}),d}var Ci=gi;function gi(e,t=[]){return t.map(r=>{let n=e.inEdges(r);if(n.length){let a=n.reduce((i,o)=>{let l=e.edge(o),d=e.node(o.v);return{sum:i.sum+l.weight*d.order,weight:i.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}let bi=y;var vi=wi;function wi(e,t){let r={};e.forEach((a,i)=>{let o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};a.barycenter!==void 0&&(o.barycenter=a.barycenter,o.weight=a.weight)}),t.edges().forEach(a=>{let i=r[a.v],o=r[a.w];i!==void 0&&o!==void 0&&(o.indegree++,i.out.push(r[a.w]))});let n=Object.values(r).filter(a=>!a.indegree);return yi(n)}function yi(e){let t=[];function r(a){return i=>{i.merged||(i.barycenter===void 0||a.barycenter===void 0||i.barycenter>=a.barycenter)&&ji(a,i)}}function n(a){return i=>{i.in.push(a),--i.indegree===0&&e.push(i)}}for(;e.length;){let a=e.pop();t.push(a),a.in.reverse().forEach(r(a)),a.out.forEach(n(a))}return t.filter(a=>!a.merged).map(a=>bi.pick(a,["vs","i","barycenter","weight"]))}function ji(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}let Ei=y;var Ni=_i;function _i(e,t){let r=Ei.partition(e,u=>u.hasOwnProperty("barycenter")),n=r.lhs,a=r.rhs.sort((u,h)=>h.i-u.i),i=[],o=0,l=0,d=0;n.sort(ki(!!t)),d=qt(i,a,d),n.forEach(u=>{d+=u.vs.length,i.push(u.vs),o+=u.barycenter*u.weight,l+=u.weight,d=qt(i,a,d)});let c={vs:i.flat(!0)};return l&&(c.barycenter=o/l,c.weight=l),c}function qt(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}function ki(e){return(t,r)=>t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}let Li=Ci,Si=vi,Oi=Ni;var Ti=B1;function B1(e,t,r,n){let a=e.children(t),i=e.node(t),o=i?i.borderLeft:void 0,l=i?i.borderRight:void 0,d={};o&&(a=a.filter(f=>f!==o&&f!==l));let c=Li(e,a);c.forEach(f=>{if(e.children(f.v).length){let m=B1(e,f.v,r,n);d[f.v]=m,m.hasOwnProperty("barycenter")&&Ii(f,m)}});let u=Si(c,r);Pi(u,d);let h=Oi(u,n);if(o&&(h.vs=[o,h.vs,l].flat(!0),e.predecessors(o).length)){let f=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);h.hasOwnProperty("barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+m.order)/(h.weight+2),h.weight+=2}return h}function Pi(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function Ii(e,t){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)}let Mi=A.Graph,Vi=y;var $i=Ri;function Ri(e,t,r){let n=Ai(e),a=new Mi({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(i=>e.node(i));return e.nodes().forEach(i=>{let o=e.node(i),l=e.parent(i);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(i),a.setParent(i,l||n),e[r](i).forEach(d=>{let c=d.v===i?d.w:d.v,u=a.edge(c,i),h=u!==void 0?u.weight:0;a.setEdge(c,i,{weight:e.edge(d).weight+h})}),o.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}function Ai(e){for(var t;e.hasNode(t=Vi.uniqueId("_root")););return t}var Di=Fi;function Fi(e,t,r){let n={},a;r.forEach(i=>{let o=e.parent(i),l,d;for(;o;){if(l=e.parent(o),l?(d=n[l],n[l]=o):(d=a,a=o),d&&d!==o){t.setEdge(d,o);return}o=l}})}let Hi=ui,zi=mi,Gi=Ti,Bi=$i,Zi=Di,qi=A.Graph,ve=y;var Yi=Z1;function Z1(e,t){if(t&&typeof t.customOrder=="function"){t.customOrder(e,Z1);return}let r=ve.maxRank(e),n=Yt(e,ve.range(1,r+1),"inEdges"),a=Yt(e,ve.range(r-1,-1,-1),"outEdges"),i=Hi(e);if(Kt(e,i),t&&t.disableOptimalOrderHeuristic)return;let o=Number.POSITIVE_INFINITY,l;for(let d=0,c=0;c<4;++d,++c){Ki(d%2?n:a,d%4>=2),i=ve.buildLayerMatrix(e);let u=zi(e,i);u<o&&(c=0,l=Object.assign({},i),o=u)}Kt(e,l)}function Yt(e,t,r){return t.map(function(n){return Bi(e,n,r)})}function Ki(e,t){let r=new qi;e.forEach(function(n){let a=n.graph().root,i=Gi(n,a,r,t);i.vs.forEach((o,l)=>n.node(o).order=l),Zi(n,r,i.vs)})}function Kt(e,t){Object.values(t).forEach(r=>r.forEach((n,a)=>e.node(n).order=a))}let Ui=A.Graph,Ce=y;var Wi={positionX:Ji,findType1Conflicts:q1,findType2Conflicts:Y1,addConflict:We,hasConflict:K1,verticalAlignment:U1,horizontalCompaction:W1,alignCoordinates:X1,findSmallestWidthAlignment:Q1,balance:J1};function q1(e,t){let r={};function n(a,i){let o=0,l=0,d=a.length,c=i[i.length-1];return i.forEach((u,h)=>{let f=Qi(e,u),m=f?e.node(f).order:d;(f||u===c)&&(i.slice(l,h+1).forEach(x=>{e.predecessors(x).forEach(b=>{let v=e.node(b),j=v.order;(j<o||m<j)&&!(v.dummy&&e.node(x).dummy)&&We(r,b,x)})}),l=h+1,o=m)}),i}return t.length&&t.reduce(n),r}function Y1(e,t){let r={};function n(i,o,l,d,c){let u;Ce.range(o,l).forEach(h=>{u=i[h],e.node(u).dummy&&e.predecessors(u).forEach(f=>{let m=e.node(f);m.dummy&&(m.order<d||m.order>c)&&We(r,f,u)})})}function a(i,o){let l=-1,d,c=0;return o.forEach((u,h)=>{if(e.node(u).dummy==="border"){let f=e.predecessors(u);f.length&&(d=e.node(f[0]).order,n(o,c,h,l,d),c=h,l=d)}n(o,c,o.length,d,i.length)}),o}return t.length&&t.reduce(a),r}function Qi(e,t){if(e.node(t).dummy)return e.predecessors(t).find(r=>e.node(r).dummy)}function We(e,t,r){if(t>r){let a=t;t=r,r=a}let n=e[t];n||(e[t]=n={}),n[r]=!0}function K1(e,t,r){if(t>r){let n=t;t=r,r=n}return!!e[t]&&e[t].hasOwnProperty(r)}function U1(e,t,r,n){let a={},i={},o={};return t.forEach(l=>{l.forEach((d,c)=>{a[d]=d,i[d]=d,o[d]=c})}),t.forEach(l=>{let d=-1;l.forEach(c=>{let u=n(c);if(u.length){u=u.sort((f,m)=>o[f]-o[m]);let h=(u.length-1)/2;for(let f=Math.floor(h),m=Math.ceil(h);f<=m;++f){let x=u[f];i[c]===c&&d<o[x]&&!K1(r,c,x)&&(i[x]=c,i[c]=a[c]=a[x],d=o[x])}}})}),{root:a,align:i}}function W1(e,t,r,n,a){let i={},o=Xi(e,t,r,a),l=a?"borderLeft":"borderRight";function d(h,f){let m=o.nodes(),x=m.pop(),b={};for(;x;)b[x]?h(x):(b[x]=!0,m.push(x),m=m.concat(f(x))),x=m.pop()}function c(h){i[h]=o.inEdges(h).reduce((f,m)=>Math.max(f,i[m.v]+o.edge(m)),0)}function u(h){let f=o.outEdges(h).reduce((x,b)=>Math.min(x,i[b.w]-o.edge(b)),Number.POSITIVE_INFINITY),m=e.node(h);f!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(i[h]=Math.max(i[h],f))}return d(c,o.predecessors.bind(o)),d(u,o.successors.bind(o)),Object.keys(n).forEach(h=>i[h]=i[r[h]]),i}function Xi(e,t,r,n){let a=new Ui,i=e.graph(),o=e2(i.nodesep,i.edgesep,n);return t.forEach(l=>{let d;l.forEach(c=>{let u=r[c];if(a.setNode(u),d){var h=r[d],f=a.edge(h,u);a.setEdge(h,u,Math.max(o(e,c,d),f||0))}d=c})}),a}function Q1(e,t){return Object.values(t).reduce((r,n)=>{let a=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([l,d])=>{let c=t2(e,l)/2;a=Math.max(d+c,a),i=Math.min(d-c,i)});const o=a-i;return o<r[0]&&(r=[o,n]),r},[Number.POSITIVE_INFINITY,null])[1]}function X1(e,t){let r=Object.values(t),n=Math.min(...r),a=Math.max(...r);["u","d"].forEach(i=>{["l","r"].forEach(o=>{let l=i+o,d=e[l];if(d===t)return;let c=Object.values(d),u=n-Math.min(...c);o!=="l"&&(u=a-Math.max(...c)),u&&(e[l]=Ce.mapValues(d,h=>h+u))})})}function J1(e,t){return Ce.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let a=Object.values(e).map(i=>i[n]).sort((i,o)=>i-o);return(a[1]+a[2])/2}})}function Ji(e){let t=Ce.buildLayerMatrix(e),r=Object.assign(q1(e,t),Y1(e,t)),n={},a;["u","d"].forEach(o=>{a=o==="u"?t:Object.values(t).reverse(),["l","r"].forEach(l=>{l==="r"&&(a=a.map(h=>Object.values(h).reverse()));let d=(o==="u"?e.predecessors:e.successors).bind(e),c=U1(e,a,r,d),u=W1(e,a,c.root,c.align,l==="r");l==="r"&&(u=Ce.mapValues(u,h=>-h)),n[o+l]=u})});let i=Q1(e,n);return X1(n,i),J1(n,e.graph().align)}function e2(e,t,r){return(n,a,i)=>{let o=n.node(a),l=n.node(i),d=0,c;if(d+=o.width/2,o.hasOwnProperty("labelpos"))switch(o.labelpos.toLowerCase()){case"l":c=-o.width/2;break;case"r":c=o.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(o.dummy?t:e)/2,d+=(l.dummy?t:e)/2,d+=l.width/2,l.hasOwnProperty("labelpos"))switch(l.labelpos.toLowerCase()){case"l":c=l.width/2;break;case"r":c=-l.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function t2(e,t){return e.node(t).width}let er=y,r2=Wi.positionX;var n2=s2;function s2(e){e=er.asNonCompoundGraph(e),a2(e),Object.entries(r2(e)).forEach(([t,r])=>e.node(t).x=r)}function a2(e){let t=er.buildLayerMatrix(e),r=e.graph().ranksep,n=0;t.forEach(a=>{const i=a.reduce((o,l)=>{const d=e.node(l).height;return o>d?o:d},0);a.forEach(o=>e.node(o).y=n+i/2),n+=i+r})}let Ut=pa,Wt=va,i2=Ga,o2=y.normalizeRanks,l2=Ya,d2=y.removeEmptyRanks,Qt=Qa,c2=ni,Xt=ai,u2=Yi,h2=n2,k=y,f2=A.Graph;var m2=p2;function p2(e,t){let r=t&&t.debugTiming?k.time:k.notime;r("layout",()=>{let n=r(" buildLayoutGraph",()=>N2(e));r(" runLayout",()=>x2(n,r)),r(" updateInputGraph",()=>C2(e,n))})}function x2(e,t){t(" makeSpaceForEdgeLabels",()=>_2(e)),t(" removeSelfEdges",()=>V2(e)),t(" acyclic",()=>Ut.run(e)),t(" nestingGraph.run",()=>Qt.run(e)),t(" rank",()=>i2(k.asNonCompoundGraph(e))),t(" injectEdgeLabelProxies",()=>k2(e)),t(" removeEmptyRanks",()=>d2(e)),t(" nestingGraph.cleanup",()=>Qt.cleanup(e)),t(" normalizeRanks",()=>o2(e)),t(" assignRankMinMax",()=>L2(e)),t(" removeEdgeLabelProxies",()=>S2(e)),t(" normalize.run",()=>Wt.run(e)),t(" parentDummyChains",()=>l2(e)),t(" addBorderSegments",()=>c2(e)),t(" order",()=>u2(e)),t(" insertSelfEdges",()=>$2(e)),t(" adjustCoordinateSystem",()=>Xt.adjust(e)),t(" position",()=>h2(e)),t(" positionSelfEdges",()=>R2(e)),t(" removeBorderNodes",()=>M2(e)),t(" normalize.undo",()=>Wt.undo(e)),t(" fixupEdgeLabelCoords",()=>P2(e)),t(" undoCoordinateSystem",()=>Xt.undo(e)),t(" translateGraph",()=>O2(e)),t(" assignNodeIntersects",()=>T2(e)),t(" reversePoints",()=>I2(e)),t(" acyclic.undo",()=>Ut.undo(e))}function C2(e,t){e.nodes().forEach(r=>{let n=e.node(r),a=t.node(r);n&&(n.x=a.x,n.y=a.y,n.rank=a.rank,t.children(r).length&&(n.width=a.width,n.height=a.height))}),e.edges().forEach(r=>{let n=e.edge(r),a=t.edge(r);n.points=a.points,a.hasOwnProperty("x")&&(n.x=a.x,n.y=a.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}let g2=["nodesep","edgesep","ranksep","marginx","marginy"],b2={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v2=["acyclicer","ranker","rankdir","align"],w2=["width","height"],Jt={width:0,height:0},y2=["minlen","weight","width","height","labeloffset"],j2={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E2=["labelpos"];function N2(e){let t=new f2({multigraph:!0,compound:!0}),r=Te(e.graph());return t.setGraph(Object.assign({},b2,Oe(r,g2),k.pick(r,v2))),e.nodes().forEach(n=>{let a=Te(e.node(n));const i=Oe(a,w2);Object.keys(Jt).forEach(o=>{i[o]===void 0&&(i[o]=Jt[o])}),t.setNode(n,i),t.setParent(n,e.parent(n))}),e.edges().forEach(n=>{let a=Te(e.edge(n));t.setEdge(n,Object.assign({},j2,Oe(a,y2),k.pick(a,E2)))}),t}function _2(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(r=>{let n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function k2(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.width&&r.height){let n=e.node(t.v),i={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};k.addDummyNode(e,"edge-proxy",i,"_ep")}})}function L2(e){let t=0;e.nodes().forEach(r=>{let n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=Math.max(t,n.maxRank))}),e.graph().maxRank=t}function S2(e){e.nodes().forEach(t=>{let r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function O2(e){let t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,l=i.marginy||0;function d(c){let u=c.x,h=c.y,f=c.width,m=c.height;t=Math.min(t,u-f/2),r=Math.max(r,u+f/2),n=Math.min(n,h-m/2),a=Math.max(a,h+m/2)}e.nodes().forEach(c=>d(e.node(c))),e.edges().forEach(c=>{let u=e.edge(c);u.hasOwnProperty("x")&&d(u)}),t-=o,n-=l,e.nodes().forEach(c=>{let u=e.node(c);u.x-=t,u.y-=n}),e.edges().forEach(c=>{let u=e.edge(c);u.points.forEach(h=>{h.x-=t,h.y-=n}),u.hasOwnProperty("x")&&(u.x-=t),u.hasOwnProperty("y")&&(u.y-=n)}),i.width=r-t+o,i.height=a-n+l}function T2(e){e.edges().forEach(t=>{let r=e.edge(t),n=e.node(t.v),a=e.node(t.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=n),r.points.unshift(k.intersectRect(n,i)),r.points.push(k.intersectRect(a,o))})}function P2(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.hasOwnProperty("x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function I2(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function M2(e){e.nodes().forEach(t=>{if(e.children(t).length){let r=e.node(t),n=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(r.borderLeft[r.borderLeft.length-1]),o=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-n.y),r.x=i.x+r.width/2,r.y=n.y+r.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy==="border"&&e.removeNode(t)})}function V2(e){e.edges().forEach(t=>{if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function $2(e){var t=k.buildLayerMatrix(e);t.forEach(r=>{var n=0;r.forEach((a,i)=>{var o=e.node(a);o.order=i+n,(o.selfEdges||[]).forEach(l=>{k.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:i+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function R2(e){e.nodes().forEach(t=>{var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),a=n.x+n.width/2,i=n.y,o=r.x-a,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:a+2*o/3,y:i-l},{x:a+5*o/6,y:i-l},{x:a+o,y:i},{x:a+5*o/6,y:i+l},{x:a+2*o/3,y:i+l}],r.label.x=r.x,r.label.y=r.y}})}function Oe(e,t){return k.mapValues(k.pick(e,t),Number)}function Te(e){var t={};return e&&Object.entries(e).forEach(([r,n])=>{typeof r=="string"&&(r=r.toLowerCase()),t[r]=n}),t}let A2=y,D2=A.Graph;var F2={debugOrdering:H2};function H2(e){let t=A2.buildLayerMatrix(e),r=new D2({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(n=>{r.setNode(n,{label:n}),r.setParent(n,"layer"+e.node(n).rank)}),e.edges().forEach(n=>r.setEdge(n.v,n.w,{},n.name)),t.forEach((n,a)=>{let i="layer"+a;r.setNode(i,{rank:"same"}),n.reduce((o,l)=>(r.setEdge(o,l,{style:"invis"}),l))}),r}var z2="1.1.2",G2={graphlib:A,layout:m2,debug:F2,util:{time:y.time,notime:y.notime},version:z2};const e1=ar(G2),B2=300,Z2=44,q2=50;function Y2(e,t){const r=new e1.graphlib.Graph().setDefaultEdgeLabel(()=>({}));return r.setGraph({rankdir:"TB",ranksep:35,nodesep:5}),!e||!t?{nodes:[],edges:[]}:e.length<1?{nodes:[],edges:[]}:(t.forEach(n=>{r.setEdge(n.source,n.target)}),e.forEach(n=>{r.setNode(n.id,{width:B2,height:n.type==="step"?q2:Z2})}),e1.layout(r),{nodes:e.map(n=>{const{x:a,y:i}=r.node(n.id);return{...n,position:{x:a,y:i}}}),edges:t.map(n=>({...n,type:e.length>30?"smoothstep":"smart"}))})}function K2({runId:e}){return["runs",e,"graph"]}async function U2({runId:e}){const t=F(H.runs.graph(e)),r=await U(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new R({message:`Error while fetching pipeline run graph for ${e}`,status:r.status,statusText:r.statusText});return r.json()}function tr(e,t){return z({queryKey:K2(e),queryFn:()=>U2(e),...t})}const W2=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z"})),Q2=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2L8 2C8.55229 2 9 2.44772 9 3C9 3.55229 8.55229 4 8 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V8C4 8.55229 3.55229 9 3 9C2.44772 9 2 8.55229 2 8L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H16C15.4477 4 15 3.55229 15 3C15 2.44772 15.4477 2 16 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V8C22 8.55229 21.5523 9 21 9C20.4477 9 20 8.55229 20 8V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM3 15C3.55229 15 4 15.4477 4 16V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H8C8.55229 20 9 20.4477 9 21C9 21.5523 8.55229 22 8 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 16C2 15.4477 2.44772 15 3 15ZM21 15C21.5523 15 22 15.4477 22 16V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H16C15.4477 22 15 21.5523 15 21C15 20.4477 15.4477 20 16 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V16C20 15.4477 20.4477 15 21 15Z"}));function X2({runId:e}){const{fitView:t,zoomIn:r,zoomOut:n}=o1(),a=q({runId:e}),i=tr({runId:e});return s.jsxs("div",{"aria-label":"Dag Controls",className:"absolute left-4 top-4 z-10 flex flex-col gap-1",children:[s.jsxs("div",{className:"divide-y divide-neutral-300 overflow-hidden rounded-md border border-neutral-300",children:[s.jsx("div",{children:s.jsx($,{onClick:()=>r(),emphasis:"subtle",className:"rounded-sharp border-none p-0.5",intent:"secondary",children:s.jsx(Pr,{className:"h-5 w-5 bg-theme-surface-primary fill-theme-text-primary"})})}),s.jsx("div",{children:s.jsx($,{onClick:()=>n(),emphasis:"subtle",className:"rounded-sharp border-none bg-theme-surface-primary p-0.5",intent:"secondary",children:s.jsx(W2,{className:"h-5 w-5 fill-theme-text-primary"})})})]}),s.jsx($,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>t(),emphasis:"subtle",intent:"secondary",children:s.jsx(Q2,{className:"h-5 w-5 fill-theme-text-primary"})}),s.jsxs($,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>{a.refetch(),i.refetch()},emphasis:"subtle",intent:"secondary",children:[s.jsx("span",{className:"sr-only",children:"Refresh"}),s.jsx(Tr,{className:"h-5 w-5 fill-theme-text-primary"})]})]})}const J2={step:Un,artifact:Cn},e0={smart:vn};function t0(){const{runId:e}=Q(),{data:t,isPending:r,isError:n}=tr({runId:e}),{fitView:a}=o1(),{width:i,height:o}=Ge(x=>({width:x.width,height:x.height})),[l,d,c]=jr([]),[u,h,f]=Er([]),m=p.useCallback(()=>{const x=Y2(t==null?void 0:t.nodes,t==null?void 0:t.edges);d([...x.nodes]),h([...x.edges]),window.requestAnimationFrame(()=>{a()})},[t==null?void 0:t.nodes,t==null?void 0:t.edges]);return p.useEffect(()=>{a()},[i,o]),p.useEffect(()=>{const x=setTimeout(()=>{a({duration:200})},100);return()=>{clearTimeout(x)}},[t]),p.useLayoutEffect(()=>{m()},[t==null?void 0:t.nodes,t==null?void 0:t.edges,m]),n?null:r?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[s.jsx(De,{}),s.jsx("div",{className:"mt-4 flex flex-col items-center",children:s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading DAG Visualization"})})]}):s.jsx(Nr,{minZoom:-2,connectOnClick:!1,nodesDraggable:!1,nodesConnectable:!1,edgeTypes:e0,nodeTypes:J2,nodes:l,edges:u,edgesFocusable:!1,multiSelectionKeyCode:null,onNodesChange:c,onEdgesChange:f,fitView:!0,children:s.jsx(X2,{runId:e})})}function r0(){var a,i;const{runId:e}=Q(),{setCurrentBreadcrumbData:t}=mr(),{data:r,isSuccess:n}=q({runId:e},{throwOnError:!0});return p.useEffect(()=>{r&&t({segment:"runs",data:r})},[r]),s.jsx(pr,{children:s.jsx("div",{className:"flex items-center gap-1",children:n?s.jsxs(s.Fragment,{children:[s.jsx(Ir,{className:`h-5 w-5 shrink-0 ${kr((a=r==null?void 0:r.body)==null?void 0:a.status)}`}),s.jsx("h1",{className:"min-w-0 truncate text-display-xs font-semibold",children:r==null?void 0:r.name}),s.jsx(le,{className:"h-5 w-5 shrink-0",status:(i=r==null?void 0:r.body)==null?void 0:i.status})]}):s.jsxs(s.Fragment,{children:[s.jsx(C,{className:"h-5 w-5"}),s.jsx(C,{className:"h-6 w-[250px]"}),s.jsx(C,{className:"h-5 w-5"})]})})})}const n0=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 2C21.5523 2 22 2.44772 22 3V21C22 21.5523 21.5523 22 21 22C20.4477 22 20 21.5523 20 21V3C20 2.44772 20.4477 2 21 2ZM9.29289 4.29289C9.68342 3.90237 10.3166 3.90237 10.7071 4.29289L17.7071 11.2929C17.8946 11.4804 18 11.7348 18 12C18 12.2652 17.8946 12.5196 17.7071 12.7071L10.7071 19.7071C10.3166 20.0976 9.68342 20.0976 9.29289 19.7071C8.90237 19.3166 8.90237 18.6834 9.29289 18.2929L14.5858 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H14.5858L9.29289 5.70711C8.90237 5.31658 8.90237 4.68342 9.29289 4.29289Z"}));function s0({runId:e}){const[t,r]=p.useState(!1),n=`from zenml.client import Client
8
+ run = Client().get_pipeline_run('${e}')
9
+ config = run.config`;return s.jsxs(ae,{open:t,onOpenChange:r,children:[s.jsx(te,{className:"flex items-center gap-[10px]",children:s.jsxs(ie,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(de,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Code"]})}),s.jsxs(oe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:n})]})]})}function a0({run:e}){var n,a;const[t,r]=p.useState(!1);return s.jsxs(ae,{open:t,onOpenChange:r,children:[s.jsx(te,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ie,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(de,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Environment"]})}),s.jsxs(oe,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx(Z,{isInitialOpen:!0,intent:"secondary",title:"Client Environment",data:(n=e.metadata)==null?void 0:n.client_environment}),s.jsx(Z,{isInitialOpen:!0,intent:"secondary",title:"Orchestrator Environment",data:(a=e.metadata)==null?void 0:a.orchestrator_environment})]})]})}function i0(){var i,o,l,d,c,u,h,f,m,x,b,v;const{runId:e}=Q(),{data:t,isError:r,isPending:n}=q({runId:e},{throwOnError:!0}),{data:a}=v1({buildId:(o=(i=t==null?void 0:t.body)==null?void 0:i.build)==null?void 0:o.id},{enabled:!!((d=(l=t==null?void 0:t.body)==null?void 0:l.build)!=null&&d.id)});return r?null:n?s.jsxs("div",{className:"space-y-5",children:[s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"}),s.jsx(C,{className:"h-[56px] w-full"})]}):s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(Z,{title:"Parameters",data:((c=t.metadata)==null?void 0:c.config.parameters)??void 0}),((h=(u=a==null?void 0:a.metadata)==null?void 0:u.images)==null?void 0:h.orchestrator)&&s.jsx(b1,{data:(m=(f=a==null?void 0:a.metadata)==null?void 0:f.images)==null?void 0:m.orchestrator}),s.jsx(s0,{runId:e}),s.jsx(a0,{run:t}),s.jsx(Z,{title:"Extra",data:(x=t.metadata)==null?void 0:x.config.extra}),s.jsx(Z,{title:"Resources",data:((v=(b=t.metadata)==null?void 0:b.config.settings)==null?void 0:v.resources)||{}})]})}function o0(){var d,c,u,h,f,m,x,b,v,j,S,O,T,P,I,M;const{runId:e}=Q(),[t,r]=p.useState(!0),[n]=c1(),a=u1(),{data:i,isError:o,isPending:l}=q({runId:e},{throwOnError:!0});return p.useEffect(()=>{if(!n.get("tab")){const _=new URL(window.location.href);_.searchParams.set("tab","overview");const V=`${_.pathname}${_.search}`;a(V,{replace:!0})}},[n,a]),o?null:l?s.jsx(C,{className:"h-[200px] w-full"}):s.jsxs(ae,{open:t,onOpenChange:r,children:[s.jsx(te,{className:"flex items-center gap-[10px]",children:s.jsxs(ie,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(de,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),s.jsx("span",{children:"Details"})]})}),s.jsx(oe,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(Y,{children:"Id"}),s.jsx(K,{children:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[i.id,s.jsx(J,{copyText:i.id})]})}),s.jsx(Y,{children:"Status"}),s.jsx(K,{children:s.jsxs(E,{className:"inline-flex items-center gap-0.5",emphasis:"subtle",color:we((d=i.body)==null?void 0:d.status),children:[s.jsx(le,{className:"fill-current",status:(c=i.body)==null?void 0:c.status}),(u=i.body)==null?void 0:u.status]})}),s.jsx(Y,{children:"Pipeline"}),s.jsx(K,{children:s.jsx(xe,{to:me.pipelines.namespace(encodeURIComponent((f=(h=i.body)==null?void 0:h.pipeline)==null?void 0:f.name)),children:s.jsxs(E,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Ae,{className:"h-4 w-4 fill-theme-text-brand"}),(x=(m=i.body)==null?void 0:m.pipeline)==null?void 0:x.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(j=(v=(b=i.body)==null?void 0:b.pipeline)==null?void 0:v.body)==null?void 0:j.version})]})})}),s.jsx(Y,{children:"Author"}),s.jsx(K,{children:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Be,{username:((O=(S=i.body)==null?void 0:S.user)==null?void 0:O.name)||""})})}),s.jsx(Y,{children:"Start Time"}),s.jsx(K,{children:(T=i.metadata)!=null&&T.start_time?s.jsx(pe,{dateString:(P=i.metadata)==null?void 0:P.start_time}):"Not available"}),s.jsx(Y,{children:"End Time"}),s.jsx(K,{children:(I=i.metadata)!=null&&I.end_time?s.jsx(pe,{dateString:(M=i.metadata)==null?void 0:M.end_time}):"Not available"})]})})]})}function l0(){var a,i,o;const{runId:e}=Q(),{data:t,isError:r,isPending:n}=q({runId:e},{throwOnError:!0});return r?null:n?s.jsx(C,{className:"h-[200px] w-full"}):!((a=t.metadata)!=null&&a.run_metadata)||Object.keys(t.metadata.run_metadata).length===0?s.jsx(nn,{}):s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(Ze,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}),s.jsx(p1,{metadata:(o=t.metadata)==null?void 0:o.run_metadata})]})}function d0(){return s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(o0,{}),s.jsx(y1,{}),s.jsx(l0,{})]})}const c0=St.object({tab:St.enum(["overview","configuration"]).optional().default("overview").catch("overview")});function u0(){const[e]=c1(),{tab:t}=c0.parse({tab:e.get("tab")||void 0});return t}function h0({setIsPanelOpen:e}){return s.jsxs("div",{className:"flex items-center gap-4 border-b border-theme-border-moderate bg-theme-surface-primary px-5 py-4",children:[s.jsx($,{className:"flex h-6 w-6 items-center justify-center bg-transparent p-0.5",intent:"secondary",onClick:()=>e(!1),children:s.jsx(n0,{className:"h-5 w-5 fill-theme-text-secondary"})}),s.jsx("span",{className:"text-text-xl",children:"Run Insights"})]})}function f0(){const e=u0(),t=u1();function r(n){const a=new URLSearchParams;a.set("tab",n),t(`?${a.toString()}`)}return s.jsx("div",{className:"flex flex-col gap-5 p-5",children:s.jsxs(Fe,{value:e,onValueChange:r,children:[s.jsxs(He,{children:[s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ze,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(G,{className:"flex items-center gap-2 truncate text-text-md",value:"configuration",children:[s.jsx(g1,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]})]}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(d0,{})}),s.jsx(B,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:s.jsx(i0,{})})]})})}function H0(){var a;const e=xr(),t=Cr(((a=e.data)==null?void 0:a.deployment_type)||"other"),[r,n]=p.useState(!0);return s.jsxs("div",{children:[s.jsx(r0,{}),s.jsxs("div",{className:`flex ${t?"h-[calc(100vh_-_4rem_-_4rem_-_4rem_-_2px)]":"h-[calc(100vh_-_4rem_-_4rem_-_2px)]"} w-full`,children:[s.jsxs("div",{className:`relative bg-white/40 transition-all duration-500 ${r?"w-1/2":"w-full"}`,children:[s.jsx(t0,{}),s.jsx(m0,{isPanelOpen:r,setIsPanelOpen:n})]}),s.jsxs("div",{"aria-hidden":!r,className:`h-full min-w-0 overflow-x-hidden text-ellipsis whitespace-nowrap bg-theme-surface-secondary transition-all duration-500 ${r?"w-1/2 border-l border-theme-border-moderate":"w-0 overflow-x-hidden border-transparent"}`,children:[s.jsx(h0,{setIsPanelOpen:n}),s.jsx(f0,{})]})]})]})}function m0({isPanelOpen:e,setIsPanelOpen:t}){return s.jsx($,{intent:"secondary",className:`absolute right-4 top-4 h-7 w-7 items-center justify-center border border-neutral-300 bg-transparent p-0.5 ${e?"hidden":"flex"}`,onClick:()=>t(!0),children:s.jsx(Mr,{className:"h-5 w-5 fill-theme-text-primary"})})}export{H0 as default};
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-CFOkMR_E.js";import{B as d,p as l,c as m,S as x,a0 as u,r as f,az as p}from"./index-DK1ynKjA.js";import{S as h}from"./database-1xWSgZfO.js";import{L as j}from"./@react-router-CO-OsFwI.js";import"./@tanstack-DYiOyJUL.js";import"./@reactflow-DJfzkHO1.js";function o({icon:t,estimatedTime:r,subtitle:a,title:s,comingSoon:i=!1,isRecommended:c=!1}){return e.jsxs(d,{className:`h-full w-full space-y-1 px-6 py-5 ${i&&"bg-neutral-50"}`,children:[t,e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:s}),c&&e.jsx(l,{className:"font-semibold",color:"green",size:"sm",children:"Recommended"}),i&&e.jsx(l,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:a}),e.jsxs("p",{className:"text-text-xs text-theme-text-tertiary",children:["Estimated time: ",r," mins"]})]})}function g(){const{isError:t,isPending:r,data:a}=m();if(r)return e.jsx(x,{className:"h-[200px] w-full"});if(t)return e.jsx("div",{children:"Failed to load server info"});const s=u(a.deployment_type||"other");return e.jsxs("section",{className:"w-full space-y-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Smart Stack Setup"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Use our smart tools to connect to your Cloud in a quick and simplified way."})]}),e.jsxs("div",{className:"grid w-full grid-cols-1 gap-6 md:grid-cols-2",children:[e.jsx(y,{isLocalDeployment:s}),e.jsx(N,{isLocalDeployment:s})]})]})}function y({isLocalDeployment:t}){return e.jsxs("div",{className:"relative",children:[t&&e.jsx(n,{}),e.jsx(j,{to:f.stacks.create.newInfra,children:e.jsx(o,{title:"New Infrastructure",isRecommended:!0,subtitle:"Use a script to set a new cloud infrastructure from scratch",icon:e.jsx(h,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"3"})})]})}function N({isLocalDeployment:t}){return e.jsxs("div",{className:"relative",children:[t&&e.jsx(n,{}),e.jsx(o,{comingSoon:!0,title:"Use existing Cloud",subtitle:"Connect to your existing Cloud and configure your components manually.",icon:e.jsx(p,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"15"})]})}function n(){return e.jsx("div",{className:"group absolute flex h-full w-full items-center justify-center rounded-md border border-theme-border-moderate bg-white/70",children:e.jsx("div",{className:"hidden rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg animate-in fade-in-0 fade-out-0 zoom-in-95 group-hover:block",children:"Smart Setup is not available for local deployments"})})}function L(){return e.jsx("section",{className:"layout-container flex gap-2 p-5",children:e.jsx(g,{})})}export{L as default};
@@ -0,0 +1 @@
1
+ import{r as o,j as e}from"./@radix-CFOkMR_E.js";import{z as i,f as v,a7 as y,aq as j,aa as S,i as C,u as k,B as w,S as E}from"./index-DK1ynKjA.js";import{u as F}from"./update-server-settings-mutation-CR8e3Sir.js";import{t as q}from"./zod-BhoGpZ63.js";import{c as A}from"./@tanstack-DYiOyJUL.js";import{u as I,C as b}from"./index.esm-Corw4lXQ.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DJfzkHO1.js";const _=i.object({announcements:i.boolean(),updates:i.boolean()});function K({settings:t}){var h,f;const c=o.useId(),d=o.useId(),{toast:l}=v(),u=A(),{mutate:g}=F({onError:s=>{u.invalidateQueries({queryKey:j()}),S(s)&&l({status:"error",emphasis:"subtle",icon:e.jsx(C,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:s.message,rounded:!0})},onSuccess:()=>{u.invalidateQueries({queryKey:j()}),l({status:"success",emphasis:"subtle",rounded:!0,description:"Settings updated successfully"})}}),{control:m,handleSubmit:p,watch:x}=I({resolver:q(_),defaultValues:{announcements:((h=t.body)==null?void 0:h.display_announcements)??void 0,updates:((f=t.body)==null?void 0:f.display_updates)??void 0}});function N({announcements:s,updates:a}){g({display_announcements:s,display_updates:a})}return o.useEffect(()=>{const s=x(()=>p(N)());return()=>s.unsubscribe()},[p,x]),e.jsx("form",{id:"create-user-form",className:"space-y-5",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"announcements",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:c})}),e.jsxs("label",{htmlFor:c,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Announcements"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Enable Announcements for important ZenML updates, surveys, and feedback opportunities."})]})]}),e.jsx("hr",{}),e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"updates",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:d})}),e.jsxs("label",{htmlFor:d,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Updates"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Activate Updates to receive the latest ZenML news and feature releases."})]})]})]})})}function P(){const{data:t}=k({throwOnError:!0});return e.jsxs(w,{className:"flex flex-col gap-5 p-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Notifications"}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"ZenML comes equipped with default widgets designed to enhance your experience by analyzing usage patterns, gathering your feedback, and ensuring you stay informed about our latest updates and features."})]}),e.jsx("div",{className:"",children:t?e.jsx(K,{settings:t}):e.jsx(E,{className:"h-[250px] w-full"})})]})}export{P as default};
@@ -0,0 +1 @@
1
+ import{j as e,r as f}from"./@radix-CFOkMR_E.js";import{z as d,k as x,l as h,j,F as p,B as m,f as N,aF as S,h as D,i as P,J as C}from"./index-DK1ynKjA.js";import{c as E}from"./@react-router-CO-OsFwI.js";import{E as F}from"./EmptyState-BMLnFVlB.js";import{a as _,b as k}from"./@tanstack-DYiOyJUL.js";import{o as T}from"./url-DuQMeqYA.js";import{E as I}from"./Error-CqX0VqW_.js";import{t as A}from"./zod-BhoGpZ63.js";import{u as V,C as z}from"./index.esm-Corw4lXQ.js";import{S as q}from"./check-circle-i56092KI.js";import"./@reactflow-DJfzkHO1.js";const B=d.object({device_id:d.string().optional(),user_code:d.string().optional()});function Y(){const[s]=E(),{device_id:t,user_code:i}=B.parse({device_id:s.get("device_id")||void 0,user_code:s.get("user_code")||void 0});return{user_code:i,device_id:t}}const J=d.object({trustDevice:d.boolean()});function K({deviceId:s,queryParams:t}){return["devices",s,t]}async function L({deviceId:s,queryParams:t}){const i=x(h.devices.detail(s)+"?"+T(t)),r=await j(i,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new p({message:"Error while fetching Device details",status:r.status,statusText:r.statusText});return r.json()}function R(s,t){return _({queryKey:K(s),queryFn:async()=>L(s),...t})}function W({device:s}){var t,i,r,a,c,n;return e.jsx(m,{className:"w-full p-5",children:e.jsxs("dl",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("dt",{children:"IP Address"}),e.jsx("dd",{children:(t=s.body)==null?void 0:t.ip_address})]}),((i=s.metadata)==null?void 0:i.city)&&((r=s.metadata)==null?void 0:r.country)&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("dt",{children:"Location"}),e.jsxs("dd",{children:[(a=s.metadata)==null?void 0:a.city,", ",(c=s.metadata)==null?void 0:c.country]})]}),e.jsxs("div",{className:"flex min-w-0 items-center justify-between",children:[e.jsx("dt",{children:"Hostname"}),e.jsx("dd",{className:"truncate",children:(n=s.body)==null?void 0:n.hostname})]})]})})}async function G({deviceId:s,payload:t}){const i=x(h.devices.verify(s)),r=await j(i,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const a=await r.json().then(c=>c.detail).catch(()=>["","Failed to verify device."]);throw new p({status:r.status,statusText:r.statusText,message:a[1]||"Failed to verify device."})}return r.json()}function H(s){return k({mutationFn:async t=>G(t),...s})}function M({deviceId:s,user_code:t,setSuccess:i}){const r=f.useId(),{handleSubmit:a,formState:{isValid:c},control:n}=V({resolver:A(J),defaultValues:{trustDevice:!1}}),{toast:l}=N(),{mutate:v,isPending:y}=H({onSuccess:()=>{i(!0)},onError:o=>{o instanceof Error&&l({status:"error",emphasis:"subtle",icon:e.jsx(P,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:o.message,rounded:!0})}});function g(o){v({deviceId:s,payload:{user_code:t,trusted_device:o.trustDevice}})}return e.jsxs("form",{onSubmit:a(g),className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(z,{control:n,name:"trustDevice",render:({field:{onChange:o,value:w}})=>e.jsx(S,{checked:w,onCheckedChange:b=>o(!!b),id:r})}),e.jsxs("label",{htmlFor:r,children:[e.jsx("p",{children:"Trust this device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"We won't ask you again soon on this device."})]})]}),e.jsx(D,{disabled:y||!c,size:"md",className:"flex w-full justify-center",children:"Authorize this device"})]})}function O(){return e.jsxs(m,{className:"flex min-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[e.jsx(q,{className:"h-[120px] w-[120px] fill-theme-text-success"}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-display-xs font-semibold",children:"You successfully added your device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"You may close this screen and return to your CLI."})]})]})}function ce(){const{device_id:s,user_code:t}=Y(),[i,r]=f.useState(!1),{data:a,isPending:c,isError:n,error:l}=R({deviceId:s,queryParams:{user_code:t}},{enabled:!!s&&!!t});return!s||!t?e.jsx(F,{children:e.jsx("p",{children:"Invalid device verification link."})}):n?e.jsx(u,{children:e.jsx(I,{isAlertCircle:!0,err:l})}):c?e.jsx(u,{children:e.jsx(C,{})}):i?e.jsx(O,{}):e.jsx(u,{children:e.jsxs("div",{className:"w-full space-y-7",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-0.5 text-display-xs font-semibold",children:"Authorize a new device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"You are logging in from a new device."})]}),e.jsx(W,{device:a}),e.jsx(M,{setSuccess:r,deviceId:s,user_code:t})]})})}function u({children:s}){return e.jsx(m,{className:"flex w-full min-w-[540px] flex-col items-center justify-center gap-5 p-7",children:s})}export{ce as default};
@@ -0,0 +1 @@
1
+ import{r as n,j as e}from"./@radix-CFOkMR_E.js";import{T as M,S as K}from"./package-CsUhPmou.js";import{s as H,T as X,aA as e1,aB as t1,aC as s1,aD as Y,S as N,J as Z,A as r1,b as a1,B as V,z as f,ar as n1,as as i1,at as o1,au as l1,av as C1,$ as c1,I as d1,k as m1,l as u1,j as x1,n as p1,F as h1,h as E,aE as f1,p as v1,r as $}from"./index-DK1ynKjA.js";import{b as j1,L as g1}from"./@react-router-CO-OsFwI.js";import{I as j}from"./Infobox-DnENC0sh.js";import{t as q}from"./zod-BhoGpZ63.js";import{a as R,C as w1,u as G,F as y1}from"./index.esm-Corw4lXQ.js";import{S as N1}from"./database-1xWSgZfO.js";import{s as b,f as b1}from"./index-C_CrU4vI.js";import{a as L,b as L1}from"./@tanstack-DYiOyJUL.js";import{o as k1}from"./url-DuQMeqYA.js";import{d as S1}from"./index-rK_Wuy2W.js";import{S as M1,a as H1,b as Z1}from"./aws-BgKTfTfx.js";import"./@reactflow-DJfzkHO1.js";const U=n.createContext(null);function V1({children:t}){const[s,a]=n.useState(1),[r,i]=n.useState(!1);return e.jsx(U.Provider,{value:{currentStep:s,setCurrentStep:a,isLoading:r,setIsLoading:i},children:t})}function x(){const t=n.useContext(U);if(t===null)throw new Error("useNewInfraContext must be used within an AuthProvider");return t}function E1({entries:t}){return e.jsx("aside",{className:"whitespace-nowrap p-2 text-text-sm",children:e.jsx("ul",{className:"space-y-5",children:t.map((s,a)=>e.jsx("li",{children:e.jsx(R1,{index:a,children:s})},a))})})}function R1({index:t,children:s}){const{currentStep:a}=x(),r=H("font-semibold flex items-center gap-1",{"text-theme-text-tertiary":t<a,"text-theme-text-secondary":t>a});return e.jsxs("div",{className:r,children:[e.jsx(I1,{index:t}),e.jsx("span",{children:s})]})}function I1({index:t}){const{currentStep:s}=x(),a=t+1;if(s>t)return e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"});if(s===t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-primary-300 text-white",children:a});if(s<t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-neutral-300 text-white",children:a})}const Q=n.createContext(null);function P1({children:t}){const[s,a]=n.useState(!1),[r,i]=n.useState({}),[c,o]=n.useState(""),l=n.useRef(null);return e.jsx(Q.Provider,{value:{isNextButtonDisabled:s,setIsNextButtonDisabled:a,data:r,setData:i,formRef:l,timestamp:c,setTimestamp:o},children:t})}function m(){const t=n.useContext(Q);if(t===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return t}const B1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"})),D1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.16145 4L18.8385 4C19.3657 3.99998 19.8205 3.99997 20.195 4.03057C20.5904 4.06287 20.9836 4.13419 21.362 4.32698C21.9265 4.6146 22.3854 5.07354 22.673 5.63803C22.8658 6.01641 22.9371 6.40963 22.9694 6.80498C23 7.17954 23 7.6343 23 8.16144V15.8386C23 16.3657 23 16.8205 22.9694 17.195C22.9371 17.5904 22.8658 17.9836 22.673 18.362C22.3854 18.9265 21.9265 19.3854 21.362 19.673C20.9836 19.8658 20.5904 19.9371 20.195 19.9694C19.8205 20 19.3657 20 18.8386 20L5.16148 20C4.63432 20 4.17955 20 3.80497 19.9694C3.40963 19.9371 3.01641 19.8658 2.63803 19.673C2.07354 19.3854 1.6146 18.9265 1.32698 18.362C1.13419 17.9836 1.06287 17.5904 1.03057 17.195C0.999967 16.8205 0.999983 16.3657 1 15.8385L1 10.0006C1 10.0004 1 10.0008 1 10.0006C1 10.0004 1 9.99958 1 9.99937L1 8.16146C0.999983 7.63431 0.999968 7.17955 1.03057 6.80497C1.06287 6.40963 1.13419 6.01641 1.32698 5.63803C1.6146 5.07354 2.07354 4.6146 2.63803 4.32698C3.01641 4.13419 3.40963 4.06287 3.80497 4.03057C4.17955 3.99997 4.63431 3.99998 5.16145 4ZM3 11V15.8C3 16.3766 3.00078 16.7488 3.02393 17.0322C3.04612 17.3038 3.0838 17.4045 3.109 17.454C3.20487 17.6422 3.35785 17.7951 3.54601 17.891C3.59546 17.9162 3.69617 17.9539 3.96784 17.9761C4.25117 17.9992 4.62345 18 5.2 18L18.8 18C19.3766 18 19.7488 17.9992 20.0322 17.9761C20.3038 17.9539 20.4045 17.9162 20.454 17.891C20.6422 17.7951 20.7951 17.6422 20.891 17.454C20.9162 17.4045 20.9539 17.3038 20.9761 17.0322C20.9992 16.7488 21 16.3766 21 15.8V11H3ZM21 9H3V8.2C3 7.62345 3.00078 7.25117 3.02393 6.96784C3.04612 6.69617 3.0838 6.59546 3.109 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.109C3.59546 6.0838 3.69617 6.04612 3.96784 6.02393C4.25118 6.00078 4.62345 6 5.2 6L18.8 6C19.3766 6 19.7488 6.00078 20.0322 6.02393C20.3038 6.04613 20.4045 6.0838 20.454 6.109C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C20.9162 6.59546 20.9539 6.69617 20.9761 6.96784C20.9992 7.25118 21 7.62345 21 8.2V9ZM5 14C5 13.4477 5.44772 13 6 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H6C5.44772 15 5 14.5523 5 14Z"})),A1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V13.5343C22 14.2041 22 14.7569 21.9691 15.2095C21.9371 15.6788 21.8686 16.1129 21.6955 16.5307C21.2895 17.5108 20.5108 18.2895 19.5307 18.6955C19.1129 18.8686 18.6788 18.9371 18.2095 18.9691C17.7569 19 17.2041 19 16.5343 19H16.5C15.9634 19 15.8569 19.0063 15.7702 19.0268C15.6192 19.0624 15.4784 19.1328 15.3593 19.2322C15.2909 19.2893 15.2219 19.3707 14.9 19.8L13.4231 21.7693C13.3297 21.8938 13.2242 22.0346 13.1226 22.1476C13.0106 22.2721 12.8244 22.4555 12.5437 22.5647C12.194 22.7007 11.806 22.7007 11.4563 22.5647C11.1756 22.4555 10.9894 22.2721 10.8774 22.1476C10.7758 22.0346 10.6703 21.8938 10.577 21.7693L9.1 19.8C8.77806 19.3708 8.70913 19.2893 8.64075 19.2322C8.52156 19.1328 8.38085 19.0624 8.22975 19.0268C8.14307 19.0063 8.03656 19 7.5 19H7.46573C6.79594 19 6.24307 19 5.79046 18.9691C5.32118 18.9371 4.88708 18.8686 4.46927 18.6955C3.48915 18.2895 2.71046 17.5108 2.30448 16.5307C2.13142 16.1129 2.06288 15.6788 2.03087 15.2095C1.99998 14.7569 1.99999 14.2041 2 13.5343L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V13.5C4 14.2126 4.00054 14.697 4.02623 15.0734C4.0513 15.4409 4.09694 15.6319 4.15224 15.7654C4.35523 16.2554 4.74458 16.6448 5.23463 16.8478C5.36813 16.9031 5.55915 16.9487 5.9266 16.9738C6.30304 16.9995 6.78741 17 7.5 17C7.52818 17 7.55611 17 7.58382 16.9999C7.9894 16.9996 8.34611 16.9992 8.68926 17.0803C9.14254 17.1873 9.56467 17.3983 9.92224 17.6967C10.1929 17.9227 10.4067 18.2082 10.6497 18.5329C10.6663 18.5551 10.6831 18.5775 10.7 18.6L12 20.3333L13.3 18.6C13.3169 18.5775 13.3337 18.5551 13.3503 18.5329C13.5933 18.2082 13.8071 17.9227 14.0778 17.6967C14.4353 17.3983 14.8575 17.1873 15.3107 17.0803C15.6539 16.9992 16.0106 16.9996 16.4162 16.9999C16.4439 17 16.4718 17 16.5 17C17.2126 17 17.697 16.9995 18.0734 16.9738C18.4409 16.9487 18.6319 16.9031 18.7654 16.8478C19.2554 16.6448 19.6448 16.2554 19.8478 15.7654C19.9031 15.6319 19.9487 15.4409 19.9738 15.0734C19.9995 14.697 20 14.2126 20 13.5V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V10.5C13 11.0523 12.5523 11.5 12 11.5C11.4477 11.5 11 11.0523 11 10.5V7C11 6.44772 11.4477 6 12 6ZM11 14C11 13.4477 11.4477 13 12 13H12.01C12.5623 13 13.01 13.4477 13.01 14C13.01 14.5523 12.5623 15 12.01 15H12C11.4477 15 11 14.5523 11 14Z"})),z1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.71569 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"})),T1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56808 1C9.5787 1 9.58933 1.00001 9.59997 1.00001L14.4319 1C14.6843 0.999973 14.93 0.999943 15.1382 1.01695C15.3668 1.03563 15.6365 1.07969 15.908 1.21799C16.2843 1.40974 16.5902 1.7157 16.782 2.09202C16.9203 2.36345 16.9644 2.63318 16.983 2.86178C16.9869 2.90871 16.9898 2.95756 16.9921 3.00797C17.3873 3.02072 17.7257 3.05337 18.0353 3.1363C19.4156 3.50617 20.4938 4.58436 20.8637 5.96473C21.0008 6.47638 21.0005 7.06704 21 7.86243C21 7.90762 21 7.95347 21 8.00001V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.8159 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75865C7.95369 23 7.28934 23 6.74815 22.9558C6.18605 22.9099 5.66935 22.8113 5.18401 22.564C4.43136 22.1805 3.81944 21.5686 3.43595 20.816C3.18866 20.3306 3.09009 19.8139 3.04417 19.2518C2.99995 18.7106 2.99996 18.0463 2.99997 17.2413L2.99997 8.00001C2.99997 7.95347 2.99995 7.90762 2.99993 7.86242C2.99949 7.06704 2.99917 6.47638 3.13627 5.96473C3.50614 4.58436 4.58433 3.50617 5.9647 3.1363C6.27421 3.05337 6.61264 3.02072 7.00782 3.00796C7.01012 2.95756 7.01308 2.90871 7.01692 2.86178C7.0356 2.63318 7.07966 2.36345 7.21796 2.09202C7.40971 1.7157 7.71567 1.40974 8.09199 1.21799C8.36342 1.07969 8.63315 1.03563 8.86174 1.01695C9.0699 0.999943 9.31569 0.999973 9.56808 1ZM7.00865 5.00956C6.74556 5.01867 6.60245 5.03597 6.48234 5.06815C5.79215 5.25309 5.25306 5.79218 5.06812 6.48237C5.00856 6.70465 4.99997 7.00565 4.99997 8.00001V17.2C4.99997 18.0566 5.00075 18.6389 5.03753 19.089C5.07335 19.5274 5.13827 19.7516 5.21796 19.908C5.40971 20.2843 5.71567 20.5903 6.09199 20.782C6.24839 20.8617 6.4726 20.9266 6.91101 20.9625C7.3611 20.9992 7.94339 21 8.79997 21H15.2C16.0566 21 16.6388 20.9992 17.0889 20.9625C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5902 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V8.00001C19 7.00565 18.9914 6.70465 18.9318 6.48237C18.7469 5.79218 18.2078 5.25309 17.5176 5.06815C17.3975 5.03597 17.2544 5.01867 16.9913 5.00956C16.9891 5.05378 16.9864 5.09676 16.983 5.13824C16.9644 5.36683 16.9203 5.63656 16.782 5.90799C16.5902 6.28431 16.2843 6.59027 15.908 6.78202C15.6365 6.92032 15.3668 6.96438 15.1382 6.98306C14.93 7.00007 14.6843 7.00004 14.4319 7.00001L9.59997 7.00001C9.58933 7.00001 9.5787 7.00001 9.56808 7.00001C9.31569 7.00004 9.0699 7.00007 8.86174 6.98306C8.63315 6.96438 8.36342 6.92032 8.09199 6.78202C7.71567 6.59027 7.40971 6.28431 7.21796 5.90799C7.07966 5.63656 7.0356 5.36683 7.01692 5.13824C7.01353 5.09676 7.01082 5.05378 7.00865 5.00956ZM15 3.60001C15 3.30348 14.9992 3.14122 14.9897 3.02464C14.9893 3.02 14.9889 3.0156 14.9885 3.01145C14.9844 3.01107 14.98 3.01069 14.9753 3.01031C14.8588 3.00078 14.6965 3.00001 14.4 3.00001H9.59997C9.30345 3.00001 9.14119 3.00078 9.02461 3.01031C9.01997 3.01069 9.01557 3.01107 9.01142 3.01145C9.01104 3.0156 9.01066 3.02 9.01028 3.02464C9.00075 3.14122 8.99997 3.30348 8.99997 3.60001V4.40001C8.99997 4.69653 9.00075 4.85879 9.01028 4.97537C9.01066 4.98001 9.01104 4.98441 9.01142 4.98856C9.01557 4.98894 9.01997 4.98932 9.02461 4.9897C9.14119 4.99923 9.30345 5.00001 9.59997 5.00001H14.4C14.6965 5.00001 14.8588 4.99923 14.9753 4.9897C14.98 4.98932 14.9844 4.98894 14.9885 4.98856C14.9889 4.98441 14.9893 4.98001 14.9897 4.97537C14.9992 4.85879 15 4.69653 15 4.40001V3.60001Z"})),O=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.2742 18.2966C3.04307 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907C11.9985 3.1498 11.9969 3.15056 11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136C12.0031 3.15056 12.0015 3.1498 12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9953 16.407 19.9951 16.4088C19.9936 16.4098 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"})),_1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05463C9.96938 4.01302 9.8127 3.99997 9.02229 3.99997H5.2C4.62345 3.99997 4.25117 4.00075 3.96784 4.0239C3.69617 4.04609 3.59546 4.08377 3.54601 4.10896C3.35785 4.20484 3.20487 4.35782 3.109 4.54598C3.0838 4.59542 3.04612 4.69614 3.02393 4.96781C3.00357 5.21695 3.00052 5.53487 3.00007 5.99997H11.382L10.99 5.2161C10.6366 4.50915 10.5548 4.37484 10.4637 4.28555C10.3578 4.18184 10.2301 4.10296 10.09 4.05463ZM13.618 5.99997L12.7789 4.32168C12.7602 4.28429 12.7417 4.24719 12.7234 4.2104C12.4586 3.67916 12.2258 3.21196 11.8631 2.85672C11.5454 2.54557 11.1625 2.30893 10.7421 2.16394C10.2622 1.99839 9.74022 1.99908 9.14666 1.99986C9.10555 1.99992 9.0641 1.99997 9.02229 1.99997L5.16146 1.99997C4.63431 1.99995 4.17955 1.99994 3.80497 2.03054C3.40963 2.06284 3.01641 2.13416 2.63803 2.32695C2.07354 2.61457 1.6146 3.07351 1.32698 3.638C1.13419 4.01638 1.06287 4.4096 1.03057 4.80494C0.999967 5.17952 0.999983 5.63428 1 6.16143L1 16.2413C0.999989 17.0462 0.999978 17.7106 1.0442 18.2518C1.09012 18.8139 1.18868 19.3306 1.43598 19.8159C1.81947 20.5686 2.43139 21.1805 3.18404 21.564C3.66938 21.8113 4.18608 21.9099 4.74818 21.9558C5.28937 22 5.95372 22 6.75868 22H17.2413C18.0463 22 18.7106 22 19.2518 21.9558C19.8139 21.9099 20.3306 21.8113 20.816 21.564C21.5686 21.1805 22.1805 20.5686 22.564 19.8159C22.8113 19.3306 22.9099 18.8139 22.9558 18.2518C23 17.7106 23 17.0463 23 16.2413V11.7586C23 10.9537 23 10.2893 22.9558 9.74815C22.9099 9.18605 22.8113 8.66934 22.564 8.18401C22.1805 7.43136 21.5686 6.81944 20.816 6.43595C20.3306 6.18865 19.8139 6.09009 19.2518 6.04417C18.7106 5.99995 18.0463 5.99996 17.2413 5.99997L13.618 5.99997ZM12.9799 7.99997C12.9938 8.00026 13.0077 8.00026 13.0217 7.99997H17.2C18.0566 7.99997 18.6389 8.00075 19.089 8.03752C19.5274 8.07334 19.7516 8.13827 19.908 8.21796C20.2843 8.40971 20.5903 8.71567 20.782 9.09199C20.8617 9.24839 20.9266 9.47259 20.9625 9.91101C20.9992 10.3611 21 10.9434 21 11.8V16.2C21 17.0566 20.9992 17.6388 20.9625 18.0889C20.9266 18.5273 20.8617 18.7516 20.782 18.908C20.5903 19.2843 20.2843 19.5902 19.908 19.782C19.7516 19.8617 19.5274 19.9266 19.089 19.9624C18.6389 19.9992 18.0566 20 17.2 20H6.8C5.94342 20 5.36113 19.9992 4.91104 19.9624C4.47262 19.9266 4.24842 19.8617 4.09202 19.782C3.7157 19.5902 3.40974 19.2843 3.21799 18.908C3.1383 18.7516 3.07337 18.5273 3.03755 18.0889C3.00078 17.6388 3 17.0566 3 16.2V7.99997H12.9799Z"})),F1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43598 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM10 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H10L10 20ZM8 4L8 20H7.8C6.94342 20 6.36113 19.9992 5.91104 19.9624C5.47262 19.9266 5.24842 19.8617 5.09202 19.782C4.7157 19.5903 4.40973 19.2843 4.21799 18.908C4.1383 18.7516 4.07337 18.5274 4.03755 18.089C4.00078 17.6389 4 17.0566 4 16.2V7.8C4 6.94342 4.00078 6.36113 4.03755 5.91104C4.07337 5.47262 4.1383 5.24842 4.21799 5.09202C4.40973 4.7157 4.7157 4.40973 5.09202 4.21799C5.24842 4.1383 5.47262 4.07337 5.91104 4.03755C6.36113 4.00078 6.94342 4 7.8 4H8ZM11.5 7C11.5 6.44772 11.9477 6 12.5 6H17.5C18.0523 6 18.5 6.44772 18.5 7C18.5 7.55229 18.0523 8 17.5 8H12.5C11.9477 8 11.5 7.55229 11.5 7ZM11.5 11C11.5 10.4477 11.9477 10 12.5 10H17.5C18.0523 10 18.5 10.4477 18.5 11C18.5 11.5523 18.0523 12 17.5 12H12.5C11.9477 12 11.5 11.5523 11.5 11ZM11.5 15C11.5 14.4477 11.9477 14 12.5 14H17.5C18.0523 14 18.5 14.4477 18.5 15C18.5 15.5523 18.0523 16 17.5 16H12.5C11.9477 16 11.5 15.5523 11.5 15Z"})),W1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0331 3.55266C16.2491 2.10798 17.4952 1 19 1C20.6569 1 22 2.34315 22 4C22 5.65685 20.6569 7 19 7C18.0222 7 17.1537 6.53221 16.606 5.80823L14.7071 7.70711C14.5196 7.89464 14.2652 8 14 8H11.3028L8.5547 9.83205C8.39043 9.94156 8.19742 10 8 10H6C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8H7.69722L10.4453 6.16795C10.6096 6.05844 10.8026 6 11 6H13.5858L16.0331 3.55266ZM19 3C18.4477 3 18 3.44771 18 4C18 4.55228 18.4477 5 19 5C19.5523 5 20 4.55228 20 4C20 3.44772 19.5523 3 19 3ZM4.62228 2.69442C6.62277 1.19905 9.25414 1.36395 11.3162 2.05132C11.8402 2.22596 12.1233 2.79228 11.9487 3.31623C11.774 3.84017 11.2077 4.12333 10.6838 3.94868C8.90412 3.35547 7.06274 3.36718 5.81971 4.29634C4.46575 5.30843 3 7.24435 3 12C3 12.9382 3.05705 13.7667 3.15904 14.5H4.99576C5.16125 14.5 5.32416 14.4589 5.46986 14.3805L11.7479 11H16.1707C16.5825 9.83481 17.6938 9 19 9C20.6569 9 22 10.3431 22 12C22 13.6569 20.6569 15 19 15C17.6938 15 16.5825 14.1652 16.1707 13H12.2521L6.41806 16.1414C5.98094 16.3768 5.49223 16.5 4.99576 16.5H3.61096C4.1633 18.166 5.01143 19.0995 5.81971 19.7037C7.06274 20.6328 8.90412 20.6445 10.6838 20.0513C11.2077 19.8767 11.774 20.1598 11.9487 20.6838C12.1233 21.2077 11.8402 21.774 11.3162 21.9487C9.25414 22.636 6.62277 22.8009 4.62228 21.3056C2.65716 19.8367 1 17.241 1 12C1 6.75899 2.65716 4.16335 4.62228 2.69442ZM19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11ZM8.79289 16.2929C8.98043 16.1054 9.23478 16 9.5 16H14C14.2652 16 14.5196 16.1054 14.7071 16.2929L16.606 18.1918C17.1537 17.4678 18.0222 17 19 17C20.6569 17 22 18.3431 22 20C22 21.6569 20.6569 23 19 23C17.4952 23 16.2491 21.892 16.0331 20.4473L13.5858 18H9.91421L9.20711 18.7071C8.81658 19.0976 8.18342 19.0976 7.79289 18.7071C7.40237 18.3166 7.40237 17.6834 7.79289 17.2929L8.79289 16.2929ZM19 19C18.4477 19 18 19.4477 18 20C18 20.5523 18.4477 21 19 21C19.5523 21 20 20.5523 20 20C20 19.4477 19.5523 19 19 19Z"})),O1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153L22 12.5001C22 13.0524 21.5523 13.5001 21 13.5001C20.4477 13.5001 20 13.0524 20 12.5001L20 8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.3006L13.5144 20.0148C13.9971 19.7466 14.6059 19.9205 14.8742 20.4033C15.1424 20.8861 14.9684 21.4949 14.4856 21.7631L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 14.0001C19.5523 14.0001 20 14.4478 20 15.0001V17.0001H22C22.5523 17.0001 23 17.4478 23 18.0001C23 18.5524 22.5523 19.0001 22 19.0001H20V21.0001C20 21.5524 19.5523 22.0001 19 22.0001C18.4477 22.0001 18 21.5524 18 21.0001V19.0001H16C15.4477 19.0001 15 18.5524 15 18.0001C15 17.4478 15.4477 17.0001 16 17.0001H18V15.0001C18 14.4478 18.4477 14.0001 19 14.0001Z"})),Y1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6634 4.40771C20.7762 3.73089 20.1894 3.14411 19.5126 3.25691L16.114 3.82335C16.8361 4.39318 17.5361 5.01441 18.2079 5.68618C18.8896 6.36789 19.5193 7.07869 20.096 7.81215L20.6634 4.40771ZM19.3551 10.1804C18.6205 9.10701 17.7659 8.07266 16.7937 7.10039C15.8308 6.13747 14.8069 5.29004 13.7446 4.56019L9.9976 8.56559C9.98958 8.57449 9.9814 8.58322 9.97309 8.5918L7.17626 11.5815C6.05341 12.7818 5.89351 14.5446 6.68049 15.9047L12.2925 10.2927C12.683 9.90216 13.3162 9.90216 13.7067 10.2927C14.0973 10.6832 14.0973 11.3164 13.7067 11.7069L8.11719 17.2965C9.46251 18.0183 11.1682 17.8391 12.3388 16.7441L15.3245 13.9509C15.3357 13.94 15.3472 13.9293 15.3589 13.9188L19.3551 10.1804ZM17.1759 14.9578L20.7743 11.5915C21.327 11.0744 21.694 10.3896 21.8184 9.64298L22.6362 4.7365C22.9746 2.70604 21.2143 0.945715 19.1838 1.28413L14.2773 2.10187C13.5307 2.22631 12.8459 2.59329 12.3288 3.14605L8.96251 6.74448L6.69595 5.98896C6.03378 5.76824 5.30444 5.9087 4.77161 6.35955L1.91445 8.77715C0.744598 9.76702 1.07695 11.6508 2.51492 12.1806L4.32557 12.8477C3.98551 14.3806 4.29093 16.0249 5.23466 17.3505L2.79252 19.7927C2.402 20.1832 2.402 20.8164 2.79252 21.2069C3.18305 21.5974 3.81621 21.5974 4.20674 21.2069L6.66301 18.7506C7.97201 19.6433 9.57553 19.9269 11.0727 19.5947L11.7397 21.4052C12.2695 22.8432 14.1533 23.1756 15.1432 22.0057L17.5608 19.1485C18.0116 18.6157 18.1521 17.8864 17.9314 17.2242L17.1759 14.9578ZM15.5688 16.4611L13.7051 18.2046C13.4573 18.4364 13.1941 18.6417 12.9189 18.8205L13.6164 20.7138L16.034 17.8567L15.5688 16.4611ZM5.09979 11.0015C5.27862 10.7263 5.48391 10.463 5.71572 10.2152L7.45914 8.35154L6.06349 7.88633L3.20634 10.3039L5.09979 11.0015Z"})),$1=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V16.0082C20.0476 16.0105 20.0938 16.0133 20.1382 16.0169C20.3668 16.0356 20.6366 16.0797 20.908 16.218C21.2843 16.4097 21.5903 16.7157 21.782 17.092C21.9203 17.3634 21.9644 17.6332 21.9831 17.8618C22.0001 18.0699 22 18.3157 22 18.5681V19.4319C22 19.6843 22.0001 19.9301 21.9831 20.1382C21.9644 20.3668 21.9203 20.6366 21.782 20.908C21.5903 21.2843 21.2843 21.5903 20.908 21.782C20.6366 21.9203 20.3668 21.9644 20.1382 21.9831C19.9301 22.0001 19.6843 22 19.4319 22H18.5681C18.3157 22 18.0699 22.0001 17.8618 21.9831C17.6332 21.9644 17.3634 21.9203 17.092 21.782C16.7157 21.5903 16.4097 21.2843 16.218 20.908C16.0797 20.6366 16.0356 20.3668 16.0169 20.1382C16.0133 20.0938 16.0105 20.0476 16.0082 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H16.0082C16.0105 17.9524 16.0133 17.9062 16.0169 17.8618C16.0356 17.6332 16.0797 17.3634 16.218 17.092C16.4097 16.7157 16.7157 16.4097 17.092 16.218C17.3634 16.0797 17.6332 16.0356 17.8618 16.0169C17.9062 16.0133 17.9524 16.0105 18 16.0082V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179ZM6.00001 4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18.6 18C18.3035 18 18.1412 18.0008 18.0246 18.0103C18.02 18.0107 18.0156 18.0111 18.0115 18.0115C18.0111 18.0156 18.0107 18.02 18.0103 18.0246C18.0008 18.1412 18 18.3035 18 18.6V19.4C18 19.6965 18.0008 19.8588 18.0103 19.9754C18.0107 19.98 18.0111 19.9844 18.0115 19.9885C18.0156 19.9889 18.02 19.9893 18.0246 19.9897C18.1412 19.9992 18.3035 20 18.6 20H19.4C19.6965 20 19.8588 19.9992 19.9754 19.9897C19.98 19.9893 19.9844 19.9889 19.9886 19.9885C19.9889 19.9844 19.9893 19.98 19.9897 19.9754C19.9992 19.8588 20 19.6965 20 19.4V18.6C20 18.3035 19.9992 18.1412 19.9897 18.0246C19.9893 18.02 19.9889 18.0156 19.9885 18.0115C19.9844 18.0111 19.98 18.0107 19.9754 18.0103C19.8588 18.0008 19.6965 18 19.4 18H18.6ZM6.00001 18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6Z"}));function q1({type:t,...s}){switch(t){case"orchestrator":return e.jsx(W1,{...s});case"artifact_store":return e.jsx(_1,{...s});case"container_registry":return e.jsx(O,{...s});case"step_operator":return e.jsx(O,{...s});case"model_deployer":return e.jsx(Y1,{...s});case"feature_store":return e.jsx(N1,{...s});case"experiment_tracker":return e.jsx(T1,{...s});case"alerter":return e.jsx(A1,{...s});case"annotator":return e.jsx($1,{...s});case"data_validator":return e.jsx(z1,{...s});case"image_builder":return e.jsx(O1,{...s});case"model_registry":return e.jsx(F1,{...s})}}function g({type:t,children:s}){return e.jsxs(X,{rounded:!1,className:"inline-flex items-center gap-0.5 text-text-sm",color:"purple",emphasis:"minimal",children:[e.jsx(q1,{type:t,className:"h-4 w-4 fill-current"}),e.jsx("span",{children:s})]})}function G1(){return e.jsxs(e1,{children:[e.jsx(t1,{className:"block",children:e.jsxs(j,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," Provider communication. You can revoke these permissions at any time."]})}),e.jsx(s1,{sideOffset:0,className:"w-auto p-5",children:e.jsx(Y,{viewportClassName:"max-h-[300px]",children:e.jsx(U1,{})})})]})}function U1(){const{data:t}=m(),{isPending:s,isError:a,error:r,data:i}=L(b.stackDeploymentInfo({provider:t.provider}));if(s)return e.jsx(N,{className:"h-[100px] w-full"});if(a)return e.jsx("p",{children:r.message});const c=Object.entries(i.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:c.map(([o,l])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:o}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:l.map((C,d)=>e.jsx("li",{children:C},d))})]},o))})}const Q1={orchestratorCosts:"$0.45",storageCosts:"$4.90"};function J1({stackName:t,isLoading:s,isSuccess:a,components:r,displayPermissions:i=!1}){var c,o,l,C,d,u,p,h;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[s&&e.jsx(Z,{className:"h-5 w-5 shrink-0 border-[3px]"}),a&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(r1,{type:"square",size:"lg",children:e.jsx(a1,{size:"lg",children:t[0]})}),t]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(w,{title:((c=r==null?void 0:r.connector)==null?void 0:c.name)||"IAM Role",isLoading:s,isSuccess:a,subtitle:((o=r==null?void 0:r.connector)==null?void 0:o.id)||"Manage access to AWS resources",badge:e.jsx(g,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),i&&e.jsx(G1,{})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(w,{title:((l=r==null?void 0:r.artifactStore)==null?void 0:l.name)||"S3 Bucket",subtitle:((C=r==null?void 0:r.artifactStore)==null?void 0:C.id)||"Artifact storage for ML pipelines",badge:e.jsx(g,{type:"artifact_store",children:"Artifact Store"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(w,{title:((d=r==null?void 0:r.registry)==null?void 0:d.name)||"ECR Repository",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(g,{type:"container_registry",children:"Container Registry"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(w,{title:((p=r==null?void 0:r.orchestrator)==null?void 0:p.name)||"SageMaker",isLoading:s,isSuccess:a,subtitle:((h=r==null?void 0:r.orchestrator)==null?void 0:h.id)||"ML Workflow orchestration",badge:e.jsx(g,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})})]})}function I({componentProps:t,type:s}){switch(s){case"aws":return e.jsx(J1,{...t})}}function w({img:t,title:s,subtitle:a,badge:r,isSuccess:i,isLoading:c}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[c&&e.jsx(Z,{className:"h-5 w-5 shrink-0 border-[3px]"}),i&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:t.alt,src:t.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:s}),e.jsx("p",{className:"text-theme-text-secondary",children:a})]})]}),r]})}function K1(){var a,r;const{data:t}=m();function s(){switch(t.provider){case"aws":return Q1}}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(B1,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(V,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(D1,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["Processing jobs:"," ",e.jsx("span",{className:"font-semibold text-theme-text-secondary",children:(a=s())==null?void 0:a.orchestratorCosts})," ",e.jsx("span",{className:"text-theme-text-secondary",children:"per hour"})]}),e.jsxs("p",{children:["200GB of general storage:"," ",e.jsx("span",{className:"font-semibold text-theme-text-secondary",children:(r=s())==null?void 0:r.storageCosts})," ",e.jsx("span",{className:"text-theme-text-secondary",children:"per month"})]}),e.jsx("p",{className:"pt-3 text-text-xs text-theme-text-secondary",children:"Use the official pricing Calculator for a detailed estimate"})]})]})]})}const X1=f.object({provider:f.enum(["aws"])}),e9=f.object({region:f.string().trim().min(1),stackName:f.string().trim().min(1,"Stack name is required").max(32,"Stack name must be less than 32 characters").regex(/^[a-zA-Z0-9-]+$/,"Stack name can only contain alphanumeric characters and hyphens")}),t9=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function s9(){const{control:t}=R(),{data:s}=m(),{isPending:a,isError:r,data:i}=L({...b.stackDeploymentInfo({provider:s.provider})});if(r)return null;if(a)return e.jsx(N,{className:"h-[40px] w-[100px]"});const c=Object.entries(i.locations);return e.jsx(w1,{control:t,name:"region",render:({field:{onChange:o,ref:l,...C}})=>e.jsxs(n1,{...C,onValueChange:o,children:[e.jsx(i1,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx(o1,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(l1,{children:e.jsx(Y,{viewportClassName:"max-h-[300px]",children:c.map(([d,u])=>e.jsxs(C1,{value:u,children:[d," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},d))})})]})})}function r9(){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(t9,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your Cloud components for optimal performance and compliance."})]}),e.jsx(s9,{})]})}function a9(){const{data:t}=m(),{watch:s}=R();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(K,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(I,{type:t.provider,componentProps:{displayPermissions:!0,stackName:s("stackName")}}),e.jsx(j,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}function n9(){const{register:t,setError:s,clearErrors:a,formState:{errors:r}}=R(),[i,c]=n.useState(!1),o=n.useCallback(S1(async C=>{c(!0);try{(await b1({name:C})).total>0?s("stackName",{type:"manual",message:"Name already exists"}):a("root.stackName.manual")}catch(d){console.error("API call failed",d)}finally{c(!1)}},500),[]),l=C=>{const d=C.target.value;d&&o(d)};return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(c1,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(d1,{className:`${r.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...t("stackName",{onChange(C){l(C)}})}),r.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:r.stackName.message})]}),i&&e.jsx(Z,{className:"h-5 w-5 shrink-0 border-[3px]"})]})]})}function i9(){const{formRef:t,setIsNextButtonDisabled:s,setData:a,data:r}=m(),i=G({resolver:q(e9),mode:"onChange",defaultValues:{region:r.location,stackName:r.stackName||""}});n.useEffect(()=>{s(!i.formState.isValid)},[i.formState.isValid,s]);function c(o){a(l=>({...l,location:o.region,stackName:o.stackName}))}return e.jsx(k,{title:"Review Stack Configuration",children:e.jsx(y1,{...i,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs(j,{className:"text-text-sm",children:[e.jsx("p",{className:"font-semibold",children:"Important"}),e.jsx("p",{children:"This will create new resources in your account. Ensure you have the necessary permissions and are aware of any potential costs."})]}),e.jsxs("form",{onSubmit:i.handleSubmit(c),ref:t,className:"space-y-5",children:[e.jsx(r9,{}),e.jsx(n9,{})]}),e.jsx(a9,{}),e.jsx(K1,{})]})})})}function v({provider:t,className:s,...a}){const r=H("w-5 h-5 shrink-0",s);switch(t){case"aws":return e.jsx(Z1,{...a,className:r});case"azure":return e.jsx(H1,{...a,className:r});case"gcp":return e.jsx(M1,{...a,className:r})}}const o9=t=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2L10 2C10.5523 2 11 2.44772 11 3C11 3.55229 10.5523 4 10 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V14C20 13.4477 20.4477 13 21 13C21.5523 13 22 13.4477 22 14V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43598 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM14 3.00001C14 2.44773 14.4477 2.00001 15 2.00001H21C21.5523 2.00001 22 2.44773 22 3.00001L22 9.00001C22 9.55229 21.5523 10 21 10C20.4477 10 20 9.5523 20 9.00001L20 5.41422L12.7071 12.7071C12.3166 13.0976 11.6834 13.0976 11.2929 12.7071C10.9024 12.3166 10.9024 11.6834 11.2929 11.2929L18.5858 4.00001H15C14.4477 4.00001 14 3.5523 14 3.00001Z"}));async function l9(t){const s=m1(u1.stackDeployment.url)+(t?`?${k1(t)}`:""),a=await x1(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(a.status===404&&p1(),!a.ok){const r=await a.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while fetching stack deployment url");throw new h1({status:a.status,statusText:a.statusText,message:r})}return a.json()}function C9(t){return L1({mutationFn:async s=>l9(s),...t})}function c9(){const{data:t}=m();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(j,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(v,{provider:t.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),e.jsx(J,{setTimestampBool:!0})]})}function J({setTimestampBool:t}){var o;const{data:s,setTimestamp:a}=m(),{setIsLoading:r}=x(),{mutate:i}=C9({onSuccess:async l=>{t&&a(new Date().toISOString().slice(0,-1)),r(!0),window.open(l[0],"_blank")}});function c(){i({stack_name:s.stackName,location:s.location,provider:s.provider})}return e.jsxs(E,{className:"min-w-fit",size:"md",onClick:()=>c(),children:["Deploy in ",(o=s.provider)==null?void 0:o.toUpperCase()," ",e.jsx(o9,{className:"h-5 w-5 fill-white"})]})}function d9(){const{data:t,timestamp:s,setIsNextButtonDisabled:a}=m(),{setCurrentStep:r}=x(),{isPending:i,isError:c,data:o}=L({...b.stackDeploymentStack({provider:t.provider,stack_name:t.stackName,date_start:s}),refetchInterval:5e3,throwOnError:!0});return n.useEffect(()=>{o&&(r(l=>l+1),a(!1))},[o]),i?e.jsx(N,{className:"h-[200px] w-full"}):c?null:e.jsxs("div",{className:"space-y-5",children:[e.jsx(m9,{}),e.jsx(u9,{stack:o})]})}function m9(){const{data:t}=m();return e.jsxs(V,{className:"flex items-center justify-between gap-4 px-6 py-5",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(v,{provider:t.provider,className:"h-6 w-6 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploying the Stack..."}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow the steps in your Cloud console to finish the setup. You can come back to check once your components are deployed."})]})]}),e.jsx(J,{})]})}function u9({stack:t}){const s=!!t;return e.jsxs("div",{className:"space-y-5",children:[!s&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(f1,{className:"h-5 w-5 fill-primary-400"}),"Creating your stack and components..."]}),e.jsx("p",{className:"text-theme-text-secondary",children:"We are creating your stack and stack components based on your configuration. Once you finish the setup, come back to check your brand new stack and components ready."})]}),e.jsx(p9,{isReady:s}),e.jsx(x9,{stack:t})]})}function x9({stack:t}){const s=!!t,{data:a}=m();return e.jsxs("div",{className:"relative overflow-hidden rounded-md",children:[!s&&e.jsx("div",{className:"absolute z-50 h-full w-full bg-neutral-50/50"}),e.jsx(I,{type:a.provider,componentProps:{isLoading:!s,isSuccess:s,stackName:a.stackName}})]})}function p9({isReady:t}){const[s,a]=n.useState(!1);return n.useEffect(()=>{const r=setTimeout(()=>{a(!0)},3e5);return()=>clearTimeout(r)},[]),!s||t?null:e.jsx(j,{children:"Your stack is taking longer than usual to deploy. Please check your Cloud console, or the stacks list in ZenML."})}function h9(){return e.jsx(k,{title:"Deploy ZenML Stack",children:e.jsx(f9,{})})}function f9(){const{isLoading:t}=x(),{setIsNextButtonDisabled:s}=m();return n.useEffect(()=>{s(!0)},[]),t?e.jsx(d9,{}):e.jsx(c9,{})}function v9(){const{formRef:t,setIsNextButtonDisabled:s,setData:a,data:r}=m(),{register:i,handleSubmit:c,formState:{isValid:o}}=G({resolver:q(X1),defaultValues:{provider:r.provider}});n.useEffect(()=>{s(!o)},[o,s]);function l(C){a(d=>({...d,provider:C.provider}))}return e.jsx(k,{title:"New Cloud Infrastructure",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where your want to create your infrastructure and deploy your ZenML models. You will be able to remove the ZenML stack at any time."})]}),e.jsxs("form",{id:"provider-form",onSubmit:c(l),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",ref:t,children:[e.jsx(y,{id:"aws-provider",...i("provider"),value:"aws",children:e.jsx(S,{icon:e.jsx(v,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"ZenML stack with S3, ECR, and SageMaker integration"})}),e.jsx(y,{disabled:!0,id:"gcp-provider",...i("provider"),value:"gcp",children:e.jsx(S,{comingSoon:!0,icon:e.jsx(v,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Create ZenML infrastructure using GCS, Artifact Registry, and Vertex AI"})}),e.jsx(y,{disabled:!0,id:"azure-provider",...i("provider"),value:"azure",children:e.jsx(S,{comingSoon:!0,icon:e.jsx(v,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Set up ZenML with Azure Storage, Container Registry, and ML services"})})]})]})})}const y=n.forwardRef(({children:t,className:s,id:a,...r},i)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:a,...r,ref:i,className:H("peer sr-only",s),type:"radio"}),e.jsx("label",{htmlFor:a,className:"flex h-full w-full flex-col items-start justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100 peer-disabled:cursor-default peer-disabled:bg-neutral-50",children:t})]}));y.displayName="CloudProviderRadioButton";function S({icon:t,title:s,subtitle:a,comingSoon:r}){return e.jsxs("div",{className:"space-y-1 text-left",children:[t,e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:s})," ",r&&e.jsx(v1,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:a})]})}function j9(){const{setIsNextButtonDisabled:t}=m();return t(!1),e.jsx(k,{title:"Your Stack",children:e.jsxs("div",{className:"space-y-5",children:[e.jsx("p",{className:"text-theme-text-secondary",children:"Here you can review the created stack and stack components. Now you can start running pipelines using this new configuration."}),e.jsx(g9,{})]})})}function g9(){var u,p,h,P,B,D,A,z,T,_,F,W;const{timestamp:t,data:s}=m(),{isPending:a,isError:r,data:i}=L({...b.stackDeploymentStack({provider:s.provider,stack_name:s.stackName,date_start:t}),throwOnError:!0});if(a)return e.jsx(N,{className:"h-[200px] w-full"});if(r)return null;const c=i.stack.name,o=(u=i.stack.metadata)==null?void 0:u.components.orchestrator,l=(p=i.stack.metadata)==null?void 0:p.components.artifact_store,C=(h=i.stack.metadata)==null?void 0:h.components.container_registry,d={orchestrator:{name:((P=o==null?void 0:o[0])==null?void 0:P.name)??"Orchestrator",id:((B=o==null?void 0:o[0])==null?void 0:B.id.split("-")[0])??""},artifactStore:{name:((D=l==null?void 0:l[0])==null?void 0:D.name)??"Artifact Store",id:((A=l==null?void 0:l[0])==null?void 0:A.id.split("-")[0])??""},registry:{name:((z=C==null?void 0:C[0])==null?void 0:z.name)??"Container Registry",id:((T=C==null?void 0:C[0])==null?void 0:T.id.split("-")[0])??""},connector:{name:(_=i.service_connector)==null?void 0:_.name,id:((W=(F=i.service_connector)==null?void 0:F.id)==null?void 0:W.split("-")[0])??""}};return e.jsx(I,{type:s.provider,componentProps:{components:d,isSuccess:!0,stackName:c}})}function w9(){const{currentStep:t}=x();if(t===1)return e.jsx(v9,{});if(t===2)return e.jsx(i9,{});if(t===3)return e.jsx(h9,{});if(t===4)return e.jsx(j9,{})}function y9(){var l;const{setCurrentStep:s,currentStep:a}=x(),{formRef:r,isNextButtonDisabled:i}=m(),c=j1();async function o(){r.current&&(r.current.requestSubmit(),await new Promise(C=>setTimeout(C,20))),s(C=>C<4?C+1:C),a===4&&c($.stacks.overview)}return e.jsx(E,{form:(l=r.current)==null?void 0:l.id,disabled:i,onClick:()=>o(),size:"md",children:a===4?"Finish":"Next"})}function N9(){return e.jsx(E,{intent:"secondary",size:"md",children:e.jsx(g1,{to:$.stacks.create.index,children:"Cancel"})})}function k({children:t,title:s}){return e.jsxs(V,{className:"w-full",children:[e.jsx("div",{className:"border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",children:s}),e.jsx("div",{className:"p-5",children:t}),e.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:[e.jsx(N9,{}),e.jsx(y9,{})]})]})}function A9(){return e.jsx(V1,{children:e.jsx(P1,{children:e.jsxs("section",{className:"layout-container flex flex-col gap-5 p-5 xl:flex-row",children:[e.jsx(E1,{entries:["Infrastructure Type","Cloud Provider","Review Configuration","Deploy Stack"]}),e.jsx("div",{className:"w-full",children:e.jsx(w9,{})})]})})})}export{A9 as default};
@@ -1 +1 @@
1
- import{j as e,c as f}from"./@tanstack-CEbkxrhX.js";import{u as m,S,a as j,b as v}from"./SuccessStep-ZzczaM7g.js";import{f as b,ao as g,aA as w,i as A,h as x,A as C,a as U,b as P,am as _,S as N}from"./index-QORVVTMN.js";import{A as k,a as z,P as H}from"./AwarenessChannel-nXGpmj_f.js";import{r as l}from"./@radix-C9DBgJhe.js";import"./UpdatePasswordSchemas-DnM-c11H.js";import"./check-circle-BVvhm5dy.js";import"./url-6_xv0WJS.js";import"./@react-router-DYovave8.js";import"./@reactflow-CHBapDaj.js";import"./zod-DrZvVLjd.js";import"./index.esm-F7nqy9zY.js";import"./file-text-CbVERUON.js";import"./play-circle-DK5QMJyp.js";const h=l.createContext(null);function E({children:t,initialUser:r}){const[s,a]=l.useState(r||{});return e.jsx(h.Provider,{value:{user:s,setUser:a},children:t})}function d(){const t=l.useContext(h);if(t===null)throw new Error("useSurveyUserContext must be used within an SurveyUserProvider");return t}function F({user:t}){var o,u;const{setSurveyStep:r}=m(),{setUser:s}=d();function a({fullName:n,getUpdates:i,email:c}){s(p=>({...p,...c?{email:c}:{email:null},full_name:n,email_opted_in:i})),r(2)}return e.jsx(k,{email:(o=t.metadata)==null?void 0:o.email,fullName:(u=t.body)==null?void 0:u.full_name,submitHandler:a})}function Z(){const{user:t}=d(),{setSurveyStep:r}=m(),{toast:s}=b(),a=f(),{mutate:o}=g({onSuccess:async()=>{await a.invalidateQueries({queryKey:w()}),r(n=>n+1)},onError:n=>{n instanceof Error&&s({status:"error",emphasis:"subtle",icon:e.jsx(A,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:n.message,rounded:!0})}});function u({other:n,channels:i,otherVal:c}){const y={awareness_channels:n?[...i,c]:i};o({...t,user_metadata:{...t.user_metadata,...y}})}return e.jsx(z,{submitHandler:u})}function B({user:t}){const{setSurveyStep:r}=m(),{setUser:s}=d();function a({amountProductionModels:o,primaryUse:u}){const n={models_production:o,primary_use:u};s(i=>({...i,user_metadata:{...i.user_metadata,...n}})),r(3)}return e.jsx(H,{user:t,submitHandler:a})}const D="/assets/adam-e-y0WnB_.webp",L="/assets/alex-DcCuDHPg.webp",M="/assets/baris-C0ZrZ10g.webp",K="/assets/hamza-NKKOZz1I.webp",T="/assets/stefan-B08Ftbba.webp";function q(){const{setSurveyStep:t}=m();function r(){window.open("https://zenml.io/slack","_blank"),t(s=>s+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(J,{}),e.jsx(x,{onClick:()=>r(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(x,{intent:"secondary",emphasis:"minimal",onClick:()=>t(s=>s+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const I=[{name:"Adam",image:D},{name:"Hamza",image:K},{name:"Alex",image:L},{name:"Stefan",image:T},{name:"Baris",image:M}];function J(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:I.map(t=>e.jsxs(C,{size:"lg",type:"rounded",children:[e.jsx(U,{alt:`Portrait of ${t.name}`,src:t.image}),e.jsx(P,{size:"lg",children:t.name[0]})]},t.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function O(){const{data:t,isPending:r,isError:s}=_({throwOnError:!0}),{surveyStep:a}=m();return s?null:r?e.jsx(N,{className:"h-[300px]"}):e.jsx(e.Fragment,{children:e.jsxs(E,{children:[e.jsx(S,{stepAmount:4}),a===1&&e.jsx(F,{user:t}),a===2&&e.jsx(B,{user:t}),a===3&&e.jsx(Z,{}),a===4&&e.jsx(q,{}),a===5&&e.jsx(j,{subHeader:"Your ZenML account is now updated",displayBody:!1,username:t.name})]})})}function ie(){return e.jsx("div",{children:e.jsx(v,{children:e.jsx(O,{})})})}export{ie as default};
1
+ import{r as l,j as e}from"./@radix-CFOkMR_E.js";import{u as m,S as f,a as S,b as j}from"./SuccessStep-Nx743hll.js";import{f as v,ap as b,aI as g,i as w,h as x,A,a as C,b as U,ao as P,S as _}from"./index-DK1ynKjA.js";import{A as N,a as k,P as z}from"./AwarenessChannel-BYDLT2xC.js";import{c as H}from"./@tanstack-DYiOyJUL.js";import"./UpdatePasswordSchemas-DF9gSzE0.js";import"./check-circle-i56092KI.js";import"./url-DuQMeqYA.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DJfzkHO1.js";import"./zod-BhoGpZ63.js";import"./index.esm-Corw4lXQ.js";import"./file-text-CqD_iu6l.js";import"./play-circle-CNtZKDnW.js";const h=l.createContext(null);function E({children:t,initialUser:r}){const[s,a]=l.useState(r||{});return e.jsx(h.Provider,{value:{user:s,setUser:a},children:t})}function d(){const t=l.useContext(h);if(t===null)throw new Error("useSurveyUserContext must be used within an SurveyUserProvider");return t}function F({user:t}){var o,u;const{setSurveyStep:r}=m(),{setUser:s}=d();function a({fullName:n,getUpdates:i,email:c}){s(p=>({...p,...c?{email:c}:{email:null},full_name:n,email_opted_in:i})),r(2)}return e.jsx(N,{email:(o=t.metadata)==null?void 0:o.email,fullName:(u=t.body)==null?void 0:u.full_name,submitHandler:a})}function Z(){const{user:t}=d(),{setSurveyStep:r}=m(),{toast:s}=v(),a=H(),{mutate:o}=b({onSuccess:async()=>{await a.invalidateQueries({queryKey:g()}),r(n=>n+1)},onError:n=>{n instanceof Error&&s({status:"error",emphasis:"subtle",icon:e.jsx(w,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:n.message,rounded:!0})}});function u({other:n,channels:i,otherVal:c}){const y={awareness_channels:n?[...i,c]:i};o({...t,user_metadata:{...t.user_metadata,...y}})}return e.jsx(k,{submitHandler:u})}function B({user:t}){const{setSurveyStep:r}=m(),{setUser:s}=d();function a({amountProductionModels:o,primaryUse:u}){const n={models_production:o,primary_use:u};s(i=>({...i,user_metadata:{...i.user_metadata,...n}})),r(3)}return e.jsx(z,{user:t,submitHandler:a})}const D="/assets/adam-e-y0WnB_.webp",L="/assets/alex-DcCuDHPg.webp",M="/assets/baris-C0ZrZ10g.webp",K="/assets/hamza-NKKOZz1I.webp",I="/assets/stefan-B08Ftbba.webp";function T(){const{setSurveyStep:t}=m();function r(){window.open("https://zenml.io/slack","_blank"),t(s=>s+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(J,{}),e.jsx(x,{onClick:()=>r(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(x,{intent:"secondary",emphasis:"minimal",onClick:()=>t(s=>s+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const q=[{name:"Adam",image:D},{name:"Hamza",image:K},{name:"Alex",image:L},{name:"Stefan",image:I},{name:"Baris",image:M}];function J(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:q.map(t=>e.jsxs(A,{size:"lg",type:"rounded",children:[e.jsx(C,{alt:`Portrait of ${t.name}`,src:t.image}),e.jsx(U,{size:"lg",children:t.name[0]})]},t.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function O(){const{data:t,isPending:r,isError:s}=P({throwOnError:!0}),{surveyStep:a}=m();return s?null:r?e.jsx(_,{className:"h-[300px]"}):e.jsx(e.Fragment,{children:e.jsxs(E,{children:[e.jsx(f,{stepAmount:4}),a===1&&e.jsx(F,{user:t}),a===2&&e.jsx(B,{user:t}),a===3&&e.jsx(Z,{}),a===4&&e.jsx(T,{}),a===5&&e.jsx(S,{subHeader:"Your ZenML account is now updated",displayBody:!1,username:t.name})]})})}function ie(){return e.jsx("div",{children:e.jsx(j,{children:e.jsx(O,{})})})}export{ie as default};
@@ -0,0 +1 @@
1
+ import{j as e,r as a}from"./@radix-CFOkMR_E.js";import{B as r,ax as n,P as l,p as i}from"./index-DK1ynKjA.js";import{C as m}from"./CodeSnippet-BkOuRmyq.js";import{I as c}from"./Infobox-DnENC0sh.js";import{c as d}from"./@react-router-CO-OsFwI.js";import{C as x,m as p}from"./cloud-only-DVbIeckv.js";import"./@tanstack-DYiOyJUL.js";import"./@reactflow-DJfzkHO1.js";import"./copy-BXNk6BjL.js";function u(){return e.jsx(c,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"This is a ZenML Cloud feature. "}),e.jsx("p",{children:"Upgrade to ZenML Cloud to access the Model Control Plane and interact with your models in the Dashboard."})]})})}function f(){const[o]=d(),s=o.get("model");function t(){return s?`zenml model list --name='contains:${s}'`:"zenml model list"}return e.jsxs(r,{className:"flex flex-wrap justify-between p-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-xl font-semibold",children:"Staying Open Source? "}),e.jsx("p",{className:"text-theme-text-secondary",children:"No problem! Use this CLI command to list your models"})]}),e.jsx(m,{code:t()})]})}const h="/assets/mcp-Cb1aMeoq.webp";function w(){const{setTourState:o,tourState:{tourActive:s}}=n();return a.useEffect(()=>{s&&o(t=>({...t,run:!0,stepIndex:t.stepIndex}))},[s]),e.jsxs("div",{children:[e.jsxs(l,{className:"flex items-center gap-1",children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Models"}),e.jsx(i,{color:"purple",rounded:!0,size:"sm",children:e.jsx("span",{className:"font-semibold text-primary-500",children:"Cloud"})})]}),e.jsxs("div",{className:"layout-container space-y-5 py-5",children:[e.jsx(u,{}),e.jsx(x,{image:{src:h,alt:"Screenshot of the ZenML Cloud Model Control plane"},features:p}),e.jsx(f,{})]})]})}export{w as default};