mage-ai 0.9.46__py3-none-any.whl → 0.9.48__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.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (405) hide show
  1. mage_ai/api/operations/base.py +27 -5
  2. mage_ai/api/policies/GlobalHookPolicy.py +1 -1
  3. mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
  4. mage_ai/api/policies/OauthPolicy.py +6 -6
  5. mage_ai/api/presenters/GlobalHookPresenter.py +1 -1
  6. mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
  7. mage_ai/api/presenters/PipelinePresenter.py +3 -0
  8. mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
  9. mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
  10. mage_ai/api/resources/BlockResource.py +5 -0
  11. mage_ai/api/resources/DataProviderResource.py +2 -0
  12. mage_ai/api/resources/IntegrationSourceResource.py +149 -2
  13. mage_ai/data_integrations/sources/constants.py +5 -0
  14. mage_ai/data_integrations/utils/scheduler.py +57 -2
  15. mage_ai/data_preparation/executors/block_executor.py +30 -2
  16. mage_ai/data_preparation/executors/pipeline_executor.py +19 -4
  17. mage_ai/data_preparation/models/block/__init__.py +75 -32
  18. mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
  19. mage_ai/data_preparation/models/block/data_integration/mixins.py +6 -6
  20. mage_ai/data_preparation/models/block/data_integration/utils.py +198 -39
  21. mage_ai/data_preparation/models/block/sql/bigquery.py +2 -2
  22. mage_ai/data_preparation/models/block/sql/snowflake.py +2 -2
  23. mage_ai/data_preparation/models/block/sql/trino.py +2 -2
  24. mage_ai/data_preparation/models/block/sql/utils/shared.py +20 -3
  25. mage_ai/data_preparation/models/block/utils.py +53 -29
  26. mage_ai/data_preparation/models/global_hooks/constants.py +50 -1
  27. mage_ai/data_preparation/models/global_hooks/models.py +148 -84
  28. mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
  29. mage_ai/data_preparation/models/pipeline.py +7 -0
  30. mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
  31. mage_ai/data_preparation/models/project/__init__.py +0 -2
  32. mage_ai/data_preparation/preferences.py +29 -18
  33. mage_ai/data_preparation/repo_manager.py +12 -2
  34. mage_ai/data_preparation/sync/__init__.py +2 -0
  35. mage_ai/data_preparation/templates/constants.py +14 -0
  36. mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
  37. mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
  38. mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
  39. mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
  40. mage_ai/io/base.py +1 -0
  41. mage_ai/io/chroma.py +162 -0
  42. mage_ai/io/config.py +8 -0
  43. mage_ai/orchestration/db/models/schedules.py +169 -34
  44. mage_ai/orchestration/pipeline_scheduler.py +59 -89
  45. mage_ai/server/constants.py +1 -1
  46. mage_ai/server/frontend_dist/404.html +2 -2
  47. mage_ai/server/frontend_dist/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
  48. mage_ai/server/frontend_dist/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  49. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  56. mage_ai/server/frontend_dist/_next/static/chunks/{4366-93e09e5a4a7e182c.js → 4366-3e52497942acbafe.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  59. mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  60. mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  61. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js → frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  64. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
  66. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7858-d9df72e95e438284.js → frontend_dist/_next/static/chunks/7858-26a5a5d04fa3c703.js} +1 -1
  67. mage_ai/server/frontend_dist/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  69. mage_ai/server/frontend_dist/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  71. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js → frontend_dist/_next/static/chunks/8731-2f78ec7b7760be8f.js} +1 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  73. mage_ai/server/frontend_dist/_next/static/chunks/9264-727704fc34e74ae0.js +1 -0
  74. mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  75. mage_ai/server/frontend_dist/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  76. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/976-18c98af60b76f1a7.js → frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-8254de4f793643d0.js +1 -0
  78. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-85cecae037fd7a70.js +1 -0
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-286133386c97a2b6.js +1 -0
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-hooks-e561ae38cf5592e8.js → global-hooks-3da370825153056c.js} +1 -1
  85. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js → frontend_dist/_next/static/chunks/pages/manage/files-39b73da5a15590f6.js} +1 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-60845f0b59142f32.js → settings-666748ff5d101411.js} +1 -1
  87. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  88. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js → frontend_dist/_next/static/chunks/pages/manage/users/new-1932ce64823b372b.js} +1 -1
  89. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  90. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js → frontend_dist/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  92. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js → frontend_dist/_next/static/chunks/pages/overview-7b2ba2d5405c05fe.js} +1 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  95. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  96. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-7bca6f718b939934.js} +1 -1
  97. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  98. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  99. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-ddddcddd2f74b4f6.js → block-runs-15d307e6ba934a56.js} +1 -1
  100. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  101. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-25dbd73201d99e80.js} +1 -1
  102. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  103. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  104. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js +1 -0
  105. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  106. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  107. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  108. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  109. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js +1 -0
  110. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  111. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  112. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  113. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  114. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  115. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  116. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  117. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  118. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js → frontend_dist/_next/static/chunks/pages/sign-in-f3a33e8f83abdb58.js} +1 -1
  119. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  120. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  121. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  122. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  123. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-0e0c2713a2922be7.js +1 -0
  124. mage_ai/server/frontend_dist/_next/static/xxcdnITr3IkTdETH5ghqw/_buildManifest.js +1 -0
  125. mage_ai/server/frontend_dist/block-layout.html +2 -2
  126. mage_ai/server/frontend_dist/compute.html +5 -5
  127. mage_ai/server/frontend_dist/files.html +5 -5
  128. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  129. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  130. mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
  131. mage_ai/server/frontend_dist/global-hooks.html +5 -5
  132. mage_ai/server/frontend_dist/index.html +2 -2
  133. mage_ai/server/frontend_dist/manage/files.html +5 -5
  134. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  135. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  136. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  137. mage_ai/server/frontend_dist/manage/users.html +5 -5
  138. mage_ai/server/frontend_dist/manage.html +5 -5
  139. mage_ai/server/frontend_dist/oauth.html +4 -4
  140. mage_ai/server/frontend_dist/overview.html +5 -5
  141. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  142. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  143. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  144. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  145. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  146. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  147. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  148. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  149. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  150. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  151. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  152. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  153. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  154. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  155. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  156. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  157. mage_ai/server/frontend_dist/pipelines.html +5 -5
  158. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  159. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  160. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  161. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  162. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  163. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  164. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  165. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  166. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  167. mage_ai/server/frontend_dist/settings.html +2 -2
  168. mage_ai/server/frontend_dist/sign-in.html +24 -24
  169. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  170. mage_ai/server/frontend_dist/templates.html +5 -5
  171. mage_ai/server/frontend_dist/terminal.html +5 -5
  172. mage_ai/server/frontend_dist/test.html +5 -5
  173. mage_ai/server/frontend_dist/triggers.html +5 -5
  174. mage_ai/server/frontend_dist/version-control.html +5 -5
  175. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  178. mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  180. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  181. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  183. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4366-93e09e5a4a7e182c.js → 4366-3e52497942acbafe.js} +1 -1
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  187. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  188. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  189. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  190. mage_ai/server/{frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js → frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  191. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  192. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  193. mage_ai/server/{frontend_dist/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  194. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
  195. mage_ai/server/{frontend_dist/_next/static/chunks/7858-d9df72e95e438284.js → frontend_dist_base_path_template/_next/static/chunks/7858-26a5a5d04fa3c703.js} +1 -1
  196. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  197. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  198. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  199. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  200. mage_ai/server/{frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js → frontend_dist_base_path_template/_next/static/chunks/8731-2f78ec7b7760be8f.js} +1 -1
  201. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  202. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-727704fc34e74ae0.js +1 -0
  203. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  204. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  205. mage_ai/server/{frontend_dist/_next/static/chunks/976-18c98af60b76f1a7.js → frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js} +1 -1
  206. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-8254de4f793643d0.js +1 -0
  207. mage_ai/server/{frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  208. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  209. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-85cecae037fd7a70.js +1 -0
  210. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  211. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  212. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-286133386c97a2b6.js +1 -0
  213. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-hooks-e561ae38cf5592e8.js → global-hooks-3da370825153056c.js} +1 -1
  214. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-39b73da5a15590f6.js} +1 -1
  215. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{settings-60845f0b59142f32.js → settings-666748ff5d101411.js} +1 -1
  216. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  217. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-1932ce64823b372b.js} +1 -1
  218. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  219. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  220. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  221. mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-7b2ba2d5405c05fe.js} +1 -1
  222. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  223. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  224. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  225. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-7bca6f718b939934.js} +1 -1
  226. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  227. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  228. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-ddddcddd2f74b4f6.js → block-runs-15d307e6ba934a56.js} +1 -1
  229. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  230. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-25dbd73201d99e80.js} +1 -1
  231. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  232. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  233. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js +1 -0
  234. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  235. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  236. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  237. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  238. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js +1 -0
  239. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  240. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  241. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  242. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  243. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  244. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  245. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  246. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  247. mage_ai/server/{frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js → frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-f3a33e8f83abdb58.js} +1 -1
  248. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  249. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  250. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  251. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  252. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-0e0c2713a2922be7.js +1 -0
  253. mage_ai/server/frontend_dist_base_path_template/_next/static/gDn6inKdLyj35NvURBSCV/_buildManifest.js +1 -0
  254. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  255. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  256. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  257. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  258. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  259. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
  260. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
  261. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  262. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  263. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  264. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  265. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  266. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  267. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  268. mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
  269. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  270. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  271. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  272. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  273. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  274. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  275. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  276. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  277. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  278. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  279. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  280. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  281. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  282. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  283. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  284. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  285. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  286. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  287. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  288. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  289. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  290. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  291. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  292. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  293. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  294. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  295. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  296. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  297. mage_ai/server/frontend_dist_base_path_template/sign-in.html +20 -20
  298. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  299. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  300. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  301. mage_ai/server/frontend_dist_base_path_template/test.html +5 -5
  302. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  303. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  304. mage_ai/server/server.py +11 -3
  305. mage_ai/services/k8s/job_manager.py +1 -0
  306. mage_ai/settings/repo.py +3 -0
  307. mage_ai/shared/files.py +47 -0
  308. mage_ai/shared/models.py +1 -0
  309. mage_ai/streaming/constants.py +1 -0
  310. mage_ai/streaming/sinks/postgres.py +2 -0
  311. mage_ai/streaming/sinks/rabbitmq.py +76 -0
  312. mage_ai/streaming/sinks/sink_factory.py +4 -0
  313. mage_ai/streaming/sources/nats_js.py +12 -1
  314. mage_ai/tests/api/operations/test_operations_with_hooks.py +136 -91
  315. mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
  316. mage_ai/tests/data_preparation/executors/test_block_executor.py +2 -0
  317. mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +33 -8
  318. mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +82 -38
  319. mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
  320. mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +6 -1
  321. mage_ai/tests/data_preparation/models/test_block.py +26 -0
  322. mage_ai/tests/data_preparation/models/test_pipeline.py +15 -0
  323. mage_ai/tests/factory.py +40 -2
  324. mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
  325. mage_ai/tests/services/k8s/test_job_manager.py +16 -0
  326. mage_ai/tests/shared/mixins.py +60 -23
  327. mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
  328. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/METADATA +7 -4
  329. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/RECORD +335 -321
  330. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/WHEEL +1 -1
  331. mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +0 -1
  332. mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +0 -1
  333. mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +0 -1
  334. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  335. mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
  336. mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
  337. mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
  338. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  339. mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
  340. mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +0 -1
  341. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  342. mage_ai/server/frontend_dist/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  343. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  344. mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
  345. mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
  346. mage_ai/server/frontend_dist/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  347. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
  348. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  349. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
  350. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
  351. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  352. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
  353. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
  354. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
  355. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  356. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
  357. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
  358. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  359. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
  360. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
  361. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
  362. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
  363. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
  364. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
  365. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
  366. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +0 -1
  367. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +0 -1
  368. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  369. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
  370. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
  371. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
  372. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  373. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
  374. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +0 -1
  375. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  376. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  377. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  378. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
  379. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
  380. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  381. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
  382. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  383. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
  384. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
  385. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  386. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
  387. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
  388. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
  389. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  390. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
  391. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
  392. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  393. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
  394. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
  395. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
  396. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
  397. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
  398. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
  399. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
  400. mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +0 -1
  401. /mage_ai/server/frontend_dist/_next/static/{9jB4XPuz6BzxBcG9VNao5 → xxcdnITr3IkTdETH5ghqw}/_ssgManifest.js +0 -0
  402. /mage_ai/server/frontend_dist_base_path_template/_next/static/{uPDjJYpJMst1q6psbRyte → gDn6inKdLyj35NvURBSCV}/_ssgManifest.js +0 -0
  403. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/LICENSE +0 -0
  404. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/entry_points.txt +0 -0
  405. {mage_ai-0.9.46.dist-info → mage_ai-0.9.48.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8487],{87848:function(e,n,t){t.d(n,{u:function(){return c}});var r=t(38626),i=t(44897),o=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],o.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},28026:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(89565),o=t.n(i),c=t(82684),l=t(40761),a=t(50724),s=t(30160),u=t(38626),d=t(44897),h=t(70515),f=t(47041),p=(0,u.css)([""," ",""],(function(e){return!e.width&&"\n width: 100%;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),x=u.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),g=u.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,h.cd*h.iI),v=(u.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,u.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(e){return e.focusBeginning&&"\n position: absolute;\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}),(function(e){return e.focused&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}))),m=u.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],v),b=u.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],v,(function(e){return e.focused&&"\n position: absolute;\n "})),j=t(48339),y=t(39643),w=t(11498),Z=t(42041),k=t(3314),C=t(44688),O=t(28598);function P(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return F(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return F(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n=e.lastMessage,t=e.onFocus,r=e.sendMessage,i=e.uuid,u=void 0===i?"terminal":i,d=e.width,h=(0,c.useRef)(null),f=(0,c.useRef)(null),p=(0,c.useState)(""),v=p[0],F=p[1],M=(0,c.useState)(0),S=M[0],z=M[1],H=(0,c.useState)(0),D=H[0],I=H[1],E=(0,c.useState)([]),T=E[0],L=E[1],A=(0,c.useState)(!1),N=A[0],B=A[1],R=(0,c.useState)(),U=R[0],G=R[1],q=(0,c.useMemo)((function(){return new l.Z}),[]),X=(0,c.useMemo)((function(){return{api_key:w.l,token:q.decodedToken.token}}),[q]);(0,c.useEffect)((function(){if(n){var e=JSON.parse(n.data);G((function(n){var t=n||"";return"stdout"===e[0]?t+e[1]:t}))}}),[n]);var W=(0,c.useMemo)((function(){return U?U.split("\n").filter((function(e){return!e.includes("# Mage terminal settings command")})).map((function(e){return{data:e,type:j.Gi.TEXT}})):[]}),[U]);(0,c.useEffect)((function(){if(h.current&&f.current){var e=f.current.getBoundingClientRect().height;h.current.scrollTo(0,e)}}),[v,W,h,f]);var Y=(0,C.y)(),V=Y.registerOnKeyDown,J=Y.setDisableGlobalKeyboardShortcuts,Q=Y.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Q(u)}}),[Q,u]);var K=(0,c.useCallback)((function(){I((function(e){return e>0?e-1:e}))}),[]),$=(0,c.useCallback)((function(){I((function(e){return e<v.length?e+1:e}))}),[v]),ee=(0,c.useCallback)((function(e){r(JSON.stringify(_(_({},X),{},{command:["stdin",e]}))),r(JSON.stringify(_(_({},X),{},{command:["stdin","\r"]}))),(null===e||void 0===e?void 0:e.length)>=2&&(z(T.length+1),L((function(n){return n.concat(e)})),I(0)),F("")}),[T,r,F,L,z,I]),ne=(0,c.useCallback)((function(e){var n=(null===e||void 0===e?void 0:e.split(/\n/))||[];if(n.length>1){var t=n.slice(0,-1);ee(v+t.join("\n"));var r=(n.slice(-1)[0]||"").trim();F(r),I(r.length)}else F((function(n){return n+e})),I(v.length+e.length)}),[v,ee,F,I]);V(u,(function(e,n,t){var i=e.code,o=e.key;if(N)if((0,k.j)(e),(0,Z.y)([y.PQ,y.VS],n))(null===v||void 0===v?void 0:v.length)>=0&&(r(JSON.stringify(_(_({},X),{},{command:["stdin",v]}))),r(JSON.stringify(_(_({},X),{},{command:["stdin","\x03"]}))),I(0)),F("");else if(y.Qj!==i||n[y.zX])if((0,Z.y)([y.QK],n))K();else if((0,Z.y)([y.DY],n))$();else if((0,Z.y)([y.Bu],n)){if(T.length>=1){var c,l=Math.max(0,S-1);F(T[l]),z(l),I((null===(c=T[l])||void 0===c?void 0:c.length)||0)}}else if((0,Z.y)([y.kD],n)){if(T.length>=1){var a=Math.min(T.length,S+1),s=T[a]||"";F(s),z(a),I(s.length)}}else if((0,Z.y)([y.Uq],n))ee(v);else if((0,Z.y)([y.zX,y.VS],n))navigator.clipboard.writeText(window.getSelection().toString());else if((0,Z.y)([y.zX,y.Pd],n)||(0,Z.y)([y.PQ,y.Pd],n)){var u,d,h,f,p;"undefined"===typeof(null===(u=navigator)||void 0===u?void 0:u.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(h=d.clipboard)&&void 0!==h&&h.readText?navigator.clipboard.readText().then(ne).catch((function(e){return alert("".concat(e,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(p=f.clipboard)&&void 0!==p&&p.read?navigator.clipboard.read().then((function(e){var n,t=P(e);try{for(t.s();!(n=t.n()).done;){var r,i=n.value,o=P(i.types);try{for(o.s();!(r=o.n()).done;){var c=r.value;if("text/plain"===c)return i.getType(c)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){t.e(l)}finally{t.f()}})).then((function(e){return e.text()})).then(ne).catch((function(e){return alert("".concat(e,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else n[y.zX]||n[y.PQ]||1!==o.length||(F((function(e){return e.slice(0,D)+o+e.slice(D)})),I((function(e){return e+1})));else{var x=Math.max(0,D-1);F((function(e){return e.slice(0,x)+e.slice(D)})),I((function(e){return Math.max(0,e-1)}))}}),[v,T,S,N,F,L,z,u]);var te=(0,c.useMemo)((function(){var e;return null===(e=W[W.length-1])||void 0===e?void 0:e.data}),[W]);return(0,O.jsx)(x,{ref:h,width:d,children:(0,O.jsx)(a.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),B(!0),J(!0)},onClickOutside:function(){B(!1),J(!1)},style:{minHeight:"100%"},children:(0,O.jsxs)(g,{ref:f,width:d,children:[null===W||void 0===W?void 0:W.reduce((function(e,n,t){if(t==W.length-1)return e;var r=n||{},i=r.command,c=r.data,l=r.type,a=[];a=(a=Array.isArray(c)?c:[c]).filter((function(e){return e}));var u=[];return a.forEach((function(e,n){var r;if(j.jU.includes(l)&&(r=(0,O.jsx)(s.ZP,{monospace:!0,preWrap:!0,children:e&&(0,O.jsx)(o(),{children:e})})),r){var c="command-".concat(t,"-").concat(n,"-").concat(e);i||u.push((0,O.jsx)("div",{children:r},c))}})),e.concat(u)}),[]),(0,O.jsx)(m,{focused:N&&0===(null===v||void 0===v?void 0:v.length),children:(0,O.jsxs)(s.ZP,{monospace:!0,children:[(0,O.jsx)(s.ZP,{inline:!0,monospace:!0,children:te&&(0,O.jsx)(o(),{children:te})}),null===v||void 0===v?void 0:v.split("").map((function(e,n,t){return(0,O.jsxs)(b,{focusBeginning:N&&0===D&&0===n,focused:N&&(D===n+1||D>=t.length&&n===t.length-1),children:[" "===e&&(0,O.jsx)(O.Fragment,{children:"\xa0"}),"\n"===e&&(0,O.jsx)("br",{})," "!==e&&e]},"command-".concat(n,"-").concat(e))}))]})})]})})})}},31353:function(e,n,t){t.d(n,{Mz:function(){return a},T5:function(){return u},bf:function(){return s}});var r,i=t(82394),o=t(72473),c=t(89370),l=t(70515),a=7*l.iI,s=22,u=(l.iI,l.iI,r={},(0,i.Z)(r,c.RL.CATEGORY,o.WD),(0,i.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,o.Rj),(0,i.Z)(r,c.RL.DATETIME,o.aw),(0,i.Z)(r,c.RL.EMAIL,o.GT),(0,i.Z)(r,c.RL.LIST,o.aV),(0,i.Z)(r,c.RL.NUMBER,o.qZ),(0,i.Z)(r,c.RL.NUMBER_WITH_DECIMALS,o.As),(0,i.Z)(r,c.RL.PHONE_NUMBER,o.LP),(0,i.Z)(r,c.RL.TEXT,o.KJ),(0,i.Z)(r,c.RL.TRUE_OR_FALSE,o.Kb),(0,i.Z)(r,c.RL.UUID,o.SS),(0,i.Z)(r,c.RL.ZIP_CODE,o.$t),r)},68487:function(e,n,t){t.d(n,{Z:function(){return Se}});var r=t(75582),i=t(12691),o=t.n(i),c=t(38626),l=t(82684),a=t(34376),s=t(40761),u=t(54750),d=t(71180),h=t(39867),f=t(50724),p=t(58036),x=t(97618),g=t(55485),v=t(70374),m=t(82394),b=t(56085),j=t(69864),y=t(70652),w=t(44085),Z=t(38276),k=t(4190),C=t(28026),O=t(30160),P=t(35576),F=t(17488),M=t(69650),_=t(35686),S=t(72473),z=t(44897),H=t(42631),D=t(31353),I=t(47041),E=t(70515),T=c.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],D.Mz),L=c.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],D.Mz),A=c.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],H.n_,(function(e){return"\n background-color: ".concat((e.theme.background||z.Z.background).panel,";\n ")})),N=c.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],I.w5,2*E.iI,D.Mz),B=t(4383),R=t(72619),U=t(86735),G=t(50178),q=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,m.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var V=function(e){var n,t=e.branch,i=(e.fetchBranch,(0,l.useState)()),o=i[0],c=i[1],a=(0,l.useState)(),s=a[0],u=a[1],h=(0,l.useState)(),f=h[0],p=h[1],x=(0,l.useState)(),v=x[0],m=x[1],z=(0,l.useState)(),H=z[0],D=z[1],I=(0,l.useState)(),E=I[0],X=I[1],V=_.ZP.git_custom_branches.list(),J=V.data,Q=V.mutate,K=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.git_custom_branches}),[J]),$=_.ZP.syncs.list().data,ee=(0,l.useMemo)((function(){var e;if($)return null===(e=$.syncs)||void 0===e?void 0:e[0]}),[$]),ne=(0,j.Db)(_.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){Q(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),te=(0,r.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,j.Db)((function(){return _.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),ce=(0,r.Z)(oe,1)[0],le=(0,j.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){D(null),m("DONE")},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),ae=(0,r.Z)(le,2),se=ae[0],ue=ae[1].isLoading,de=(0,j.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){D(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),he=(0,r.Z)(de,2),fe=he[0],pe=he[1].isLoading,xe=(0,l.useState)(),ge=xe[0],ve=xe[1],me=(0,l.useState)([]),be=me[0],je=me[1],ye=(0,l.useState)([]),we=ye[0],Ze=ye[1],ke=(0,l.useCallback)((function(){ce().then((function(e){var n=e.data,t=null===n||void 0===n?void 0:n.git_branch,r=null===t||void 0===t?void 0:t.status,i=null===t||void 0===t?void 0:t.modified_files,o=null===t||void 0===t?void 0:t.untracked_files;ve(r),je(o),Ze(i)}))}),[ce]),Ce=(0,l.useMemo)((function(){return ie||ue||pe}),[ie,ue,pe]);(0,l.useEffect)((function(){return ke()}),[f,ke]);var Oe=(0,l.useMemo)((function(){return(0,G.PR)()||{}}),[]),Pe=(0,l.useMemo)((function(){var e={term_name:null!==Oe&&void 0!==Oe&&Oe.id?"git_".concat(null===Oe||void 0===Oe?void 0:Oe.id):"git"};return null!==ee&&void 0!==ee&&ee.repo_path&&(e.cwd=null===ee||void 0===ee?void 0:ee.repo_path),e}),[null===ee||void 0===ee?void 0:ee.repo_path,Oe]),Fe=(0,b.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in Pe),Me=Fe.lastMessage,_e=Fe.sendMessage,Se=(0,l.useCallback)((function(e){return(0,q.jsx)(y.Z,{checked:((null===o||void 0===o?void 0:o.files)||[]).includes(e),label:(0,q.jsx)(O.ZP,{small:!0,children:e}),onClick:function(){c((function(n){var t=(null===n||void 0===n?void 0:n.files)||[];return t=t.includes(e)?(0,U.Od)(t,(function(n){return n===e})):[e].concat(t),W(W({},n),{},{files:t})}))},small:!0},e)}),[o]),ze=(0,l.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(d.ZP,{onClick:function(){return c((function(e){return W(W({},e),{},{files:we.concat(be)})}))},children:"Include all changes"}),we&&we.length>0&&(0,q.jsxs)(Z.Z,{mb:1,children:[(0,q.jsx)(Z.Z,{my:1,children:(0,q.jsx)(O.ZP,{children:"Modified files"})}),we.map(Se)]}),be&&be.length>0&&(0,q.jsxs)(Z.Z,{mb:1,children:[(0,q.jsx)(Z.Z,{my:1,children:(0,q.jsx)(O.ZP,{children:"Untracked files"})}),be.map(Se)]})]})}),[Se,we,be]),He=(0,l.useMemo)((function(){return(0,q.jsx)(Z.Z,{p:2,children:Ce?(0,q.jsx)(k.Z,{color:"white"}):(0,q.jsxs)(q.Fragment,{children:["commit"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return c((function(n){return W(W({},n),{},{message:e.target.value})}))},required:!0,value:null===o||void 0===o?void 0:o.message}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsxs)(g.ZP,{children:[(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){se({git_branch:W({action_type:"commit"},o)}).then((function(){ke(),c(null)}))},success:!0,children:"Commit"}),(0,q.jsx)(Z.Z,{mr:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){se({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(F.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return c({name:e.target.value})},value:null===o||void 0===o?void 0:o.name}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){re({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(O.ZP,{children:["Clone from ",(0,q.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.remote_repo_link})," to ",(0,q.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.repo_path}),". This ",(0,q.jsx)(O.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===f&&(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{mb:1,children:(0,q.jsx)(O.ZP,{children:s||"This will reset your local branch to match the remote branch."})}),s?(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){u(null),fe({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){return u("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,q.jsx)(Z.Z,{mt:1,children:!Ce&&(0,q.jsxs)(q.Fragment,{children:[!H&&v&&(0,q.jsx)(O.ZP,{children:v}),H&&(0,q.jsx)(O.ZP,{preWrap:!0,danger:!0,children:H})]})})]})})}),[Ce,f,H,ee,v,o,s,ge]),De=(0,l.useMemo)((function(){return(0,q.jsx)(C.Z,{lastMessage:Me,sendMessage:_e})}),[Me,_e]);return(0,q.jsxs)(A,{children:[(0,q.jsxs)(T,{children:[(0,q.jsx)(Z.Z,{m:2,children:(0,q.jsxs)(g.ZP,{children:[(0,q.jsx)(w.Z,{beforeIcon:(0,q.jsx)(S.I0,{}),compact:!0,onChange:function(e){e.preventDefault(),re({git_branch:{name:e.target.value}})},placeholder:"Select a branch",value:t,children:null===K||void 0===K?void 0:K.map((function(e){var n=e.name;return(0,q.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsxs)(w.Z,{compact:!0,onChange:function(e){e.preventDefault(),p(e.target.value),X(!1),m(null),c(null)},value:f,children:[(0,q.jsx)("option",{value:"",children:"Select an action"}),Object.entries(Y).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,q.jsx)("option",{value:t,children:i},t)}))]},"select_git_action")]})}),(0,q.jsx)(Z.Z,{m:2,children:(0,q.jsxs)(g.ZP,{alignItems:"center",children:[(0,q.jsx)(O.ZP,{children:"UI"}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(M.Z,{checked:!!E,monotone:!0,onCheck:function(){return X((function(e){return!e}))}}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(O.ZP,{children:"Terminal"})]})})]}),(0,q.jsxs)(g.ZP,{children:[(0,q.jsx)("div",{style:{width:"50%"},children:(0,q.jsx)(N,{children:"commit"===f?ze:(0,q.jsx)(q.Fragment,{children:null===ge||void 0===ge||null===(n=ge.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,q.jsx)(O.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,q.jsx)("div",{style:{width:"50%"},children:E?(0,q.jsx)(L,{children:De}):He})]})]})},J=18.53/14;var Q=function(e){var n=e.height,t=e.width,r=n||(t?t*(1/J):14),i=t||(n?n*J:18.53);return(0,q.jsxs)("svg",{width:i,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,q.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,q.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,q.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,q.jsxs)("defs",{children:[(0,q.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,q.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,q.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},K=t(93369),$=t(48670),ee=t(63637),ne=t(89515),te=t(26304),re="12px 20px",ie="1px",oe=(0,c.default)(d.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||z.Z.background).dashboard,";\n ")})),ce=c.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*E.iI,ie,(function(e){return(e.theme.borders||z.Z.borders).darkLight}),H.n_,(function(e){return(e.theme.borders||z.Z.borders).darkLight})),le=c.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],re,(function(e){return(e.theme.background||z.Z.background).panel})),ae=c.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*E.iI,ie),se=c.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],ie),ue=c.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],re,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||z.Z.background).dashboard})),de=c.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),he=(0,c.default)(ue).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;"]),fe=["active","mountedCallback","time","timeZone"];function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,m.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ge(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,o=(0,te.Z)(e,fe),c=(0,l.useRef)(null);return(0,l.useEffect)((function(){null!==c&&void 0!==c&&c.current&&t(c.current.offsetHeight)}),[t]),(0,q.jsx)(oe,xe(xe({},o),{},{active:n,borderLess:!0,borderRadius:"".concat(H.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:c,transparent:!0,children:(0,q.jsx)(O.ZP,{inline:!0,monospace:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var ve=(0,l.memo)(ge),me=t(63055),be=t(79633),je=t(3917),ye=t(78419),we=t(53808);var Ze=[je.Oh.UTC,je.Oh.LOCAL];var ke=function(){var e=(0,l.useState)((0,we.U2)(ye.Uo,!1)),n=e[0],t=e[1],r=(0,l.useState)((0,we.U2)(ye.kL,!1)),i=r[0],o=r[1],c=(0,l.useState)(!1),a=c[0],s=c[1],u=(0,l.useState)((0,je.e)({includeSeconds:!0,timeZones:Ze})),d=u[0],h=u[1],p=(0,l.useState)(0),x=p[0],g=p[1],v=n?je.Oh.LOCAL:je.Oh.UTC,m=window.innerWidth<me.nc,b=(0,l.useCallback)((function(){s((function(e){return!e}))}),[]),j=(0,l.useCallback)((function(e){g(e)}),[]),y=(0,l.useCallback)((function(){var e=(0,je.e)({includeSeconds:i,timeZones:Ze});h((function(n){return n.size===e.size&&n.get(je.Oh.UTC)===e.get(je.Oh.UTC)?n:e}))}),[i]),w=[{checked:n,label:"Show as local time",onCheck:function(){var e;t((e=!n,(0,we.uN)(ye.Uo,e)))}},{checked:i,label:"Include seconds",onCheck:function(){var e;o((e=!i,(0,we.uN)(ye.kL,e)))}}];return(0,l.useEffect)((function(){var e=setInterval((function(){y()}),1e3);return function(){return clearInterval(e)}}),[y]),(0,l.useEffect)((function(){y()}),[i,y]),d?(0,q.jsx)(f.Z,{onClickOutside:function(){return s(!1)},open:!0,children:(0,q.jsxs)("div",{style:{position:"relative"},children:[(0,q.jsx)(ve,{active:a,disabled:m,mountedCallback:j,onClick:b,time:d.get(v),timeZone:(0,je.WT)(v)}),!m&&a&&(0,q.jsxs)(ce,{top:x,children:[(0,q.jsx)(le,{children:(0,q.jsx)(O.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,q.jsx)(ae,{children:Ze.map((function(e){return(0,q.jsxs)(se,{children:[(0,q.jsx)(ue,{children:(0,q.jsx)(O.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===je.Oh.LOCAL?" - ".concat((0,je.WT)(e)):"")})}),(0,q.jsxs)(ue,{flexDirection:"column",flexGrow:3,children:[(0,q.jsx)(O.ZP,{bold:!0,center:!0,color:be.J$,largeLg:!0,children:d.get(e)}),(0,q.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:e===je.Oh.UTC?"Universal Time":je.mi[e]})]})]},e)}))}),(0,q.jsx)(de,{children:w.map((function(e){return(0,q.jsxs)(he,{children:[(0,q.jsx)(M.Z,{checked:e.checked,compact:!0,onCheck:e.onCheck,purpleBackground:!0}),(0,q.jsx)(O.ZP,{children:e.label})]},e.label)}))})]})]})}):null},Ce=t(12468),Oe=t(46684),Pe=t(87848),Fe=t(95363),Me=t(69419),_e=t(89538);var Se=function(e){var n=e.breadcrumbs,t=e.menuItems,i=e.project,m=e.version,b=(0,l.useContext)(c.ThemeContext),j=(0,G.PR)(),y=(0,l.useState)(!1),w=y[0],k=y[1],C=(0,l.useState)(null),P=C[0],F=C[1],M=(0,l.useState)(!1),z=M[0],H=M[1],D=(0,l.useState)(null),I=D[0],T=D[1],L=(0,l.useRef)(null),A=(0,l.useRef)(null),N=(0,a.useRouter)(),B=_.ZP.git_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1}),R=B.data,U=B.mutate,X=(0,l.useMemo)((function(){return(null===R||void 0===R?void 0:R.git_branch)||{}}),[R]),W=X.is_git_integration_enabled,Y=X.name,J=_.ZP.projects.list({},{revalidateOnFocus:!1},{pauseFetch:!!i}).data,te=(0,l.useMemo)((function(){var e;return i||(null===J||void 0===J||null===(e=J.projects)||void 0===e?void 0:e[0])}),[J,i]),re=(0,l.useMemo)((function(){return m||(null===te||void 0===te?void 0:te.version)}),[te,m]),ie=s.Z.isLoggedIn(),oe=(0,l.useMemo)((function(){return n||[{bold:!0,label:function(){return null===te||void 0===te?void 0:te.name},linkProps:{href:"/",sameColorText:!0}}]}),[n,te]),ce=N.query.pipeline,le=(te||{}).latest_version,ae=(0,l.useMemo)((function(){return(0,q.jsx)(o(),{as:"/",href:"/",passHref:!0,children:(0,q.jsx)($.Z,{block:!0,height:Oe.y7,noHoverUnderline:!0,noOutline:!0,children:(0,q.jsx)(Q,{height:Oe.y7})})})}),[]),se=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,G.YB)()&&se.push({label:function(){return"Sign out"},onClick:function(){s.Z.logout((function(){_.ZP.sessions.updateAsync(null,1).then((function(){(0,Me.nL)("/sign-in")})).catch((function(){(0,Me.nL)("/")}))}))},uuid:"sign_out"});var ue=(0,_e.dd)((function(){return(0,q.jsx)(V,{branch:Y,fetchBranch:U})}),{},[Y,U],{background:!0,uuid:"git_actions"}),de=(0,r.Z)(ue,2),he=de[0],fe=(de[1],(0,l.useMemo)((function(){return(null===Y||void 0===Y?void 0:Y.length)>=21?"".concat(Y.slice(0,21),"..."):Y}),[Y])),pe=(0,l.useMemo)((function(){return!(!j||null===j||void 0===j||!j.avatar)&&!!/[A-Za-z0-9]+/.exec((null===j||void 0===j?void 0:j.avatar)||"")}),[j]),xe=(0,l.useMemo)((function(){var e;if(!j||null===j||void 0===j||!j.avatar)return(0,q.jsx)(ee.Z,{});var n={color:null===b||void 0===b||null===(e=b.content)||void 0===e?void 0:e.active,fontFamily:Fe.v$};return pe?(n.fontSize=2*E.iI,n.lineHeight="".concat(2*E.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*E.iI,(0,q.jsx)("div",{style:n,children:null===j||void 0===j?void 0:j.avatar})}),[pe,j]);return(0,q.jsx)(Oe.I5,{children:(0,q.jsx)(p.Z,{children:(0,q.jsxs)(g.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,q.jsxs)(x.Z,{alignItems:"center",children:[re&&(0,q.jsx)(Ce.Z,{height:Oe.y7,label:"Version ".concat(re),size:null,visibleDelay:300,widthFitContent:!0,children:ae}),!re&&ae,(0,q.jsx)(u.Z,{breadcrumbs:oe})]}),(0,q.jsxs)(x.Z,{alignItems:"center",children:[W&&Y&&(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:he,sameColorAsText:!0,title:Y,uuid:"Header/GitActions",children:(0,q.jsxs)(g.ZP,{alignItems:"center",children:[(0,q.jsx)(S.I0,{size:1.5*E.iI}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(O.ZP,{monospace:!0,small:!0,children:fe})]})})}),(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(ke,{})}),re&&"undefined"!==typeof re&&(0,q.jsx)(Z.Z,{ml:2,children:(0,q.jsx)($.Z,{href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(re)})}),le&&re&&le!==re&&(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(d.ZP,{backgroundColor:be.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(le),children:(0,q.jsx)(O.ZP,{black:!0,bold:!0,children:"Update"})})}),(0,q.jsx)(Z.Z,{ml:3,children:(0,q.jsx)(K.ZP,{beforeElement:(0,q.jsx)(S.jR,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),t&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsx)(f.Z,{onClickOutside:function(){return F(null)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(g.ZP,{children:[(0,q.jsx)(Pe.u,{highlighted:0===P,onClick:function(){return F((function(e){return 0===e?null:0}))},onMouseEnter:function(){return F((function(e){return null!==e?0:null}))},ref:L,children:(0,q.jsx)(O.ZP,{children:"Menu"})}),(0,q.jsx)(v.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return F(null)},open:0===P,parentRef:L,rightOffset:0,setConfirmationAction:T,setConfirmationDialogueOpen:H,uuid:"PipelineDetail/Header/menu"})]})}),(0,q.jsx)(f.Z,{onClickOutside:function(){return H(!1)},open:z,children:(0,q.jsx)(ne.Z,{danger:!0,onCancel:function(){return H(!1)},onClick:I,right:16*E.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(ce,"?"),width:40*E.iI})})]}),(ie||!(0,G.YB)())&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsx)(f.Z,{onClickOutside:function(){return k(!1)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(g.ZP,{children:[(0,q.jsx)(Pe.u,{onClick:function(){return k(!0)},ref:A,children:(0,q.jsx)(h.Z,{color:be.Jm,size:4*E.iI,children:xe})}),(0,q.jsx)(v.Z,{alternateBackground:!0,items:se,onClickCallback:function(){return k(!1)},open:w,parentRef:A,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},48339:function(e,n,t){var r,i;t.d(n,{Gi:function(){return i},jU:function(){return c},uF:function(){return r}}),function(e){e.BUSY="busy",e.IDLE="idle",e.QUEUED="queued"}(r||(r={})),function(e){e.IMAGE_PNG="image/png",e.PROGRESS="progress",e.TABLE="table",e.TEXT="text",e.TEXT_HTML="text/html",e.TEXT_PLAIN="text/plain"}(i||(i={}));var o,c=[i.TEXT,i.TEXT_PLAIN];!function(e){e.DISPLAY_DATA="display_data",e.STATUS="status",e.STREAM="stream",e.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},89515:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(71180),i=t(55485),o=t(38626),c=t(44897),l=t(42631),a=t(31353),s=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],l.TR,2*s.iI,a.bf+100,(function(e){return"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||c.Z.shadow).window,";\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n right: ".concat(e.right,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")}),(function(e){return"undefined"===typeof e.top&&"undefined"===typeof e.bottom&&"\n top: ".concat(a.Mz-1*s.iI,"px;\n ")}),(function(e){return e.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return!e.width&&"\n min-width: ".concat(33*s.iI,"px;\n ")}));var h=function(e){var n=e.bottom,t=e.centerOnScreen,r=e.children,i=e.left,o=e.right,c=e.top,l=e.width;return(0,u.jsx)(d,{bottom:n,centerOnScreen:t,left:i,right:o,top:c,width:l,children:r})},f=t(38276),p=t(30160),x=32*s.iI;var g=function(e){var n=e.bottom,t=e.cancelText,o=e.centerOnScreen,c=e.confirmText,l=e.danger,a=e.left,s=e.isLoading,d=e.neutral,g=e.onCancel,v=e.onClick,m=e.right,b=e.subtitle,j=e.title,y=e.top,w=e.width;return(0,u.jsxs)(h,{bottom:n,centerOnScreen:o,left:a,right:m,top:y,width:w||x,children:[(0,u.jsxs)(i.ZP,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,large:!0,warning:!l,whiteSpaceNormal:!0,children:j})}),(0,u.jsx)(p.ZP,{small:!0,children:b})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(i.ZP,{alignItems:"center",justifyContent:"center",children:[g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.ZP,{onClick:g,children:t||"Cancel"}),(0,u.jsx)(f.Z,{mr:1})]}),(0,u.jsx)(r.ZP,{loading:s,onClick:v,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,success:!l&&!d,children:c||"Confirm"})})]})})]})}},70652:function(e,n,t){var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(38626)),l=t(55485),a=t(38276),s=t(30160),u=t(44897),d=t(72473),h=t(42631),f=t(70515),p=t(28598),x=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),b=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(h.PV,"px ").concat(h.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,u=e.label,h=e.labelDescription,g=e.large,Z=e.meta,k=e.monospace,C=void 0!==k&&k,O=e.onClick,P=e.required,F=e.small,M=void 0!==F&&F,_=e.warning,S=e.xsmall,z=void 0!==S&&S,H=(0,o.Z)(e,x),D=_||!!(c||Z&&Z.touched&&Z.error);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(w,{onClick:function(e){e.preventDefault(),O&&!i&&O(e)},children:[(0,p.jsxs)(m,{children:[(0,p.jsx)(j,v(v({},H),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,p.jsx)(y,{checked:t,disabled:i,large:g,required:P,warning:D,children:(0,p.jsx)(d.Jr,{size:f.iI*(g?3:2)})})]}),n&&(0,p.jsx)(a.Z,{ml:1,children:(0,p.jsx)(l.ZP,{children:n})}),u&&(0,p.jsxs)(a.Z,{pl:1,children:["string"===typeof u&&(0,p.jsx)(s.ZP,{disabled:i,lineThrough:i,monospace:C,small:M,xsmall:z,children:u}),"string"!==typeof u&&u,h&&(0,p.jsx)(s.ZP,{muted:!0,small:!0,children:h})]})]}),(c||Z&&Z.touched&&Z.error)&&(0,p.jsx)(b,{children:(0,p.jsx)(s.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):Z.error})})]})}},39867:function(e,n,t){var r=t(82394),i=t(26304),o=t(38626),c=t(97618),l=t(55485),a=t(44897),s=t(42631),u=t(70515),d=t(28598),h=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=o.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.square&&"\n border-radius: 50%;\n "}),(function(e){return e.square&&"\n border-radius: ".concat(e.size>=2*u.iI?s.BG:2,"px;\n ")}),(function(e){return!e.color&&!(e.borderSize||e.borderColor)&&"\n background-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return!e.color&&e.primary&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimary,";\n ")}),(function(e){return!e.color&&e.primaryLight&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimaryLight,";\n ")}),(function(e){return e.success&&!e.borderSize&&"\n background-color: ".concat((e.theme.status||a.Z.status).positive,";\n ")}),(function(e){return e.warning&&!e.borderSize&&"\n background-color: ".concat((e.theme.accent||a.Z.accent).warning,";\n ")}),(function(e){return e.success&&e.borderSize&&"\n border-color: ".concat((e.theme.status||a.Z.status).positive," !important;\n ")}),(function(e){return e.warning&&e.borderSize&&"\n border-color: ".concat((e.theme.accent||a.Z.accent).warning," !important;\n ")}),(function(e){return e.borderSize&&"\n border-style: solid;\n border-width: ".concat(e.borderSize,"px;\n ")}),(function(e){return(e.borderSize||e.borderColor)&&"\n border: ".concat(e.borderSize||1,"px solid ").concat(e.borderColor||(e.theme.content||a.Z.content).active,";\n ")}),(function(e){return e.color&&"\n background-color: ".concat(e.color,";\n ")}),(function(e){return e.size&&"\n height: ".concat(e.size,"px;\n width: ").concat(e.size,"px;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.borders||a.Z.borders).danger,";\n ")}),(function(e){return e.muted&&"\n border-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return e.default&&"\n border-color: ".concat((e.theme.monotone||a.Z.monotone).gray,";\n ")}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,h);return(0,d.jsx)(x,p(p({},t),{},{children:(0,d.jsx)(l.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:n&&(0,d.jsx)(c.Z,{children:n})})}))}},35576:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(28598),s=["rows"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],l.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,s);return(0,a.jsx)(l.Z,d(d({},o),{},{input:(0,a.jsx)(h,d({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},69650:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(44897),s=t(3314),u=t(28598),d=["checked","disabled","onCheck","pauseEvent"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}"," ",""],l.p,46,46,26,(function(e){return e.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?a.Z.monotone.white:a.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(a.Z.monotone.grey200)}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"translateX(15px)":"translateX(20px)"}),(function(e){return!e.disabled&&!e.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.accent.sky,';\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: ').concat(a.Z.monotone.white,";\n }\n ")}),(function(e){return e.purpleBackground&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.interactive.purple,";\n }\n ")})),x=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=e.pauseEvent,a=void 0===c||c,h=(0,i.Z)(e,d);return(0,u.jsx)(l.Z,f(f({},h),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},h),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,readOnly:!0,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(e){a&&(0,s.j)(e),null===o||void 0===o||o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(x)},63637:function(e,n,t){var r=t(38626),i=t(28598),o=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,c=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(o,{height:t,viewBox:c,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}},42041:function(e,n,t){t.d(n,{y:function(){return o}});var r=t(75582),i=t(39643);function o(e,n){var t=e.map((function(e){return String(e)})),o=e.includes(i.PQ),c=e.includes(i.zX),l=e.includes(i.XR),a=i.xU.map((function(e){return String(e)})),s=i.vk.map((function(e){return String(e)})),u=i.Tr.map((function(e){return String(e)})),d=Object.entries(n).find((function(e){var n=(0,r.Z)(e,2),i=n[0];return n[1]&&!t.includes(String(i))&&(!c||!s.includes(String(i)))&&(!o||!a.includes(String(i)))&&(!l||!u.includes(String(i)))}));return e.every((function(e){return n[e]}))&&!d}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90],{74521:function(e,t,n){var i=n(82394),r=n(92083),o=n.n(r),l=n(15338),u=n(97618),a=n(55485),d=n(65956),s=n(38276),c=n(71417),p=n(75499),v=n(30160),f=n(35686),m=n(3917),h=n(70515),g=n(8970),_=n(88422),j=n(10332),b=n(86735),x=n(70320),y=n(28598),E=n(82684);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.disableJobExpansion,n=e.disableStageExpansion,i=e.jobs,r=e.stagesMapping,O=(0,x.q)();return(0,y.jsx)(p.Z,{apiForFetchingAfterAction:t?null:f.ZP.spark_jobs.detail,buildApiOptionsFromObject:t?null:function(e){var t,n,i,r;return[null===e||void 0===e?void 0:e.job_id,{application_id:null!==e&&void 0!==e&&null!==(t=e.application)&&void 0!==t&&t.calculated_id?encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.calculated_id):"",application_spark_ui_url:null!==e&&void 0!==e&&null!==(i=e.application)&&void 0!==i&&i.spark_ui_url?encodeURIComponent(null===e||void 0===e||null===(r=e.application)||void 0===r?void 0:r.spark_ui_url):""}]},columnFlex:[null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"Name"},{uuid:"Submitted"},{uuid:"Status"},{center:!0,uuid:"Stages"},{center:!0,uuid:"Tasks"}],getObjectAtRowIndex:function(e){return null===i||void 0===i?void 0:i[e]},renderExpandedRowWithObject:t?null:function(e,t){var i=null===t||void 0===t?void 0:t.spark_job;if(i){var o=i.num_active_stages,p=i.num_active_tasks,f=i.num_completed_stages,m=i.num_completed_tasks,g=i.num_failed_stages,_=i.num_failed_tasks,x=i.num_killed_tasks,E=i.num_skipped_stages,O=i.num_skipped_tasks,P=i.num_tasks,Z=i.stage_ids,k=(0,b.YC)(Z,(function(e){return e}),{ascending:!1}).reduce((function(e,t){var n,o,l=null===r||void 0===r||null===(n=r[null===i||void 0===i||null===(o=i.application)||void 0===o?void 0:o.calculated_id])||void 0===n?void 0:n[t];return l?e.concat(l):l}),[]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.Z,{p:h.cd,children:(0,y.jsxs)(a.ZP,{children:[(0,y.jsx)(u.Z,{flex:1,alignItems:"stretch",children:(0,y.jsxs)(d.Z,{noPadding:!0,children:[(0,y.jsx)(s.Z,{px:h.cd,py:h.cd,children:(0,y.jsx)(v.ZP,{bold:!0,large:!0,children:"Stage summary"})}),(0,y.jsx)(l.Z,{light:!0,short:!0}),(0,j.s)([["IDs",null===Z||void 0===Z?void 0:Z.join(", ")],["Completed",f],["Active",o],["Skipped",E],["Failed",g]])]})}),(0,y.jsx)(s.Z,{mr:h.cd}),(0,y.jsx)(u.Z,{flex:1,alignItems:"stretch",children:(0,y.jsxs)(d.Z,{noPadding:!0,children:[(0,y.jsx)(s.Z,{px:h.cd,py:h.cd,children:(0,y.jsx)(v.ZP,{bold:!0,large:!0,children:"Task summary"})}),(0,y.jsx)(l.Z,{light:!0,short:!0}),(0,j.s)([["Total",P],["Completed",m],["Active",p],["Skipped",O],["Failed",_],["Killed",x]])]})})]})}),(0,y.jsx)(l.Z,{light:!0}),(0,y.jsx)(s.Z,{p:h.cd,children:(0,y.jsxs)(d.Z,{noPadding:!0,children:[(0,y.jsx)(s.Z,{p:h.cd,children:(0,y.jsxs)(v.ZP,{bold:!0,large:!0,children:["Stages\xa0\xa0\xa0",(0,y.jsx)(v.ZP,{default:!0,inline:!0,large:!0,monospace:!0,children:null===k||void 0===k?void 0:k.length})]})}),(0,y.jsx)(l.Z,{light:!0}),(0,y.jsx)(c.Z,{disableStageExpansion:n,stages:k}),(0,y.jsx)(s.Z,{p:h.cd})]})})]})}return(0,y.jsx)(s.Z,{p:h.cd})},rows:null===i||void 0===i?void 0:i.map((function(e){var t=e.job_id,n=e.name,i=e.num_tasks,r=e.stage_ids,l=e.status,u=e.submission_time,a=(null===n||void 0===n?void 0:n.length)>=100?"".concat(null===n||void 0===n?void 0:n.slice(0,97),"..."):n;return[(0,E.createElement)(v.ZP,P(P({},g.eB),{},{key:"id"}),t),(0,E.createElement)(v.ZP,P(P({},g.eB),{},{key:"name",preWrap:!0,title:n}),a),(0,E.createElement)(v.ZP,P(P({},g.eB),{},{key:"submittedAt"}),u?(0,m.XG)(o()(u,m.kE).format(m.BL),O):"-"),(0,E.createElement)(v.ZP,P(P({},g.eB),{},{danger:_.CN.FAILED===l,key:"status",success:_.CN.SUCCEEDED===l}),l),(0,E.createElement)(v.ZP,P(P({},g.eB),{},{center:!0,key:"stageIds"}),(null===r||void 0===r?void 0:r.length)||"-"),(0,E.createElement)(v.ZP,P(P({},g.eB),{},{center:!0,key:"tasks"}),i)]})),uuid:"jobs"})}},72748:function(e,t,n){n.d(t,{Z:function(){return A}});var i=n(21831),r=n(82394),o=n(38626),l=n(82684),u=n(75499),a=n(30160),d=n(44897),s=n(42631),c=n(31608),p=n(70515),v=c.DI,f=2*p.iI,m=5*p.iI+2*f,h=o.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-9bk2jw-0"})(["border-radius:","px;"," ",""],s.n_,(function(e){return"\n background-color: ".concat((e.theme||d.Z).background.dashboard,";\n border: 1px solid ").concat((e.theme||d.Z).borders.light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__NodeHeaderStyle",componentId:"sc-9bk2jw-1"})(["padding-left:","px;padding-right:","px;padding-top:","px;padding-bottom:","px;",""],v,v,f,f,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||d.Z).borders.light,";\n ")})),_=n(8970),j=n(28598);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e){var t=e.height,n=e.node,i=(0,l.useMemo)((function(){return(null===n||void 0===n?void 0:n.metrics)||[]}),n),r=(0,l.useMemo)((function(){return(0,j.jsx)(u.Z,{columnFlex:[null,null],columns:[{uuid:"Metric"},{rightAligned:!0,uuid:"Value"}],rows:null===i||void 0===i?void 0:i.map((function(e){var t=e.name,n=e.value;return[(0,l.createElement)(a.ZP,x(x({},_.eB),{},{key:"name"}),t),(0,l.createElement)(a.ZP,x(x({},_.eB),{},{key:"value",rightAligned:!0}),n)]}))})}),[i]);return(0,j.jsxs)(h,{height:t,children:[(0,j.jsx)(g,{children:(0,j.jsx)(a.ZP,{monospace:!0,children:null===n||void 0===n?void 0:n.node_name})}),(null===i||void 0===i?void 0:i.length)>=1&&r]})},E=n(35686),O=n(24138),P=n(21978),Z=n(55187),k=n(99543);function S(e){var t=(null===e||void 0===e?void 0:e.metrics)||[],n=m,i=new RegExp("\n","g"),r=0;null===t||void 0===t||t.forEach((function(e){var t=e.name,n=e.value;r+=1;var o=[];[t,n].forEach((function(e){var t=e.matchAll(i);if(t){for(var n=0;"undefined"!==typeof t.next().value;)n+=1;o.push(n)}})),r+=Math.max.apply(Math,o)}));var o=(null===t||void 0===t?void 0:t.length)||0;return o>=1&&(n+=37,n+=18*(r||0),n+=17*(o||0)),n}function w(e){var t=(null===e||void 0===e?void 0:e.node_name)||"",n=(null===e||void 0===e?void 0:e.metrics)||[],r=Math.max.apply(Math,[(null===t||void 0===t?void 0:t.length)||0].concat((0,i.Z)(null===n||void 0===n?void 0:n.map((function(e){var t=e.name,n=e.value;return((null===t||void 0===t?void 0:t.length)||0)+((null===n||void 0===n?void 0:n.length)||0)}))))),o=2*v+r*(k.YE+.3);return null!==n&&void 0!==n&&n.length&&(o+=4*v),o}var R=n(86735);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=function(e){var t,n,r,u,a=e.disableGraph,d=e.height,s=e.heightOffset,c=e.model,p=e.overrideScroll,v=e.treeRef,f=(0,l.useRef)(null),m=v||f,h=(0,l.useContext)(o.ThemeContext),g=E.ZP.spark_sqls.detail(null===c||void 0===c?void 0:c.id,{application_id:null!==c&&void 0!==c&&null!==(t=c.application)&&void 0!==t&&t.calculated_id?encodeURIComponent(null===c||void 0===c||null===(n=c.application)||void 0===n?void 0:n.calculated_id):"",application_spark_ui_url:null!==c&&void 0!==c&&null!==(r=c.application)&&void 0!==r&&r.spark_ui_url?encodeURIComponent(null===c||void 0===c||null===(u=c.application)||void 0===u?void 0:u.spark_ui_url):"",include_jobs_and_stages:1,_format:"with_jobs_and_stages"}).data,_=(0,l.useMemo)((function(){return null===g||void 0===g?void 0:g.spark_sql}),[g]),b=(0,l.useMemo)((function(){return(0,R.HK)((null===_||void 0===_?void 0:_.jobs)||[],(function(e){return e.job_id}))}),[_]),x=(0,l.useMemo)((function(){return(0,R.HK)((null===_||void 0===_?void 0:_.stages)||[],(function(e){return e.stage_id}))}),[_]),k=(0,l.useMemo)((function(){var e,t=[],n=[],r=(null===_||void 0===_?void 0:_.edges)||[],o=((0,R.vM)(r,(function(e){return e.from_id})),(0,R.vM)(r,(function(e){return e.to_id})),{});return null===r||void 0===r||r.forEach((function(e){var t=e.from_id,i=e.to_id;n.push({from:t,fromPort:"".concat(t,"-").concat(i,"-from"),id:"".concat(t,"-").concat(i),to:i,toPort:"".concat(t,"-").concat(i,"-to")}),t in o||(o[t]=[]),o[t].push(T(T({},P.bJ),{},{disabled:!0,id:"".concat(t,"-").concat(i,"-from"),side:P.rl.SOUTH})),i in o||(o[i]=[]),o[i].push(T(T({},P.bJ),{},{disabled:!0,id:"".concat(t,"-").concat(i,"-to"),side:P.rl.NORTH}))})),null===_||void 0===_||null===(e=_.nodes)||void 0===e||e.forEach((function(e){var n=null===e||void 0===e?void 0:e.node_id,r=(0,i.Z)((null===o||void 0===o?void 0:o[n])||[]);t.push({data:{sqlNode:e},height:S(e),id:n,ports:r,width:w(e)})})),{edges:n,nodes:t}}),[b,_,x]),C=k.edges,A=k.nodes;(0,l.useEffect)((function(){a||setTimeout((function(){var e,t,n,i,r;0===(null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n?void 0:n.scrollTop)&&(null===m||void 0===m||null===(i=m.current)||void 0===i||null===(r=i.fitCanvas)||void 0===r||r.call(i))}),1e3)}),[m,a]);var I=(0,l.useMemo)((function(){var e=0;return d&&(e+=d),s&&(e-=s),Math.max(0,e)}),[d,s]),N=(0,l.useCallback)((function(e){e.preventDefault()}),[]);(0,l.useEffect)((function(){var e,t,n,i,r,o;a?null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n||n.addEventListener("wheel",N):null===m||void 0===m||null===(i=m.current)||void 0===i||null===(r=i.containerRef)||void 0===r||null===(o=r.current)||void 0===o||o.removeEventListener("wheel",N)}),[a,N]);var M=(0,l.useCallback)((function(e){e.stopPropagation()}),[]);return(0,l.useEffect)((function(){var e,t,n,i,r,o;p?null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n||n.addEventListener("wheel",M):null===m||void 0===m||null===(i=m.current)||void 0===i||null===(r=i.containerRef)||void 0===r||null===(o=r.current)||void 0===o||o.removeEventListener("wheel",M)}),[p,M]),(0,j.jsx)(Z.$4,{height:I,onDoubleClick:function(){var e,t;return null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.fitCanvas)||void 0===t?void 0:t.call(e)},children:(0,j.jsx)(O.Xz,{arrow:null,disabled:a,edge:function(e){var t;return(0,j.jsx)(O.kS,T(T({},e),{},{style:{stroke:null===h||void 0===h||null===(t=h.accent)||void 0===t?void 0:t.purple}}))},edges:C,fit:!0,forwardedRef:m,maxHeight:P.Jo,maxWidth:P.Jo,maxZoom:1,minZoom:-.7,node:function(e){var t,n;return(0,j.jsx)(O.NB,T(T({},e),{},{dragType:"port",linkable:!0,port:(0,j.jsx)(O.GR,{style:{fill:null===h||void 0===h||null===(t=h.borders)||void 0===t?void 0:t.light,stroke:null===h||void 0===h||null===(n=h.accent)||void 0===n?void 0:n.purple,strokeWidth:"1px"}}),style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(e){var t=e.height,n=e.node.data.sqlNode;return(0,j.jsx)("foreignObject",{height:t,width:e.width,x:0,y:0,children:(0,j.jsx)(y,{height:t,node:n})})}}))},nodes:A})})}},93004:function(e,t,n){var i=n(82394),r=n(92083),o=n.n(r),l=n(82684),u=n(32013),a=n(98777),d=n(15338),s=n(97618),c=n(55485),p=n(74521),v=n(85854),f=n(65956),m=n(38276),h=n(72748),g=n(75499),_=n(30160),j=n(35686),b=n(3917),x=n(70515),y=n(8970),E=n(88422),O=n(81728),P=n(70320),Z=n(28598);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.disableGraph,n=e.disableJobExpansion,i=e.overrideScrollForGraph,r=e.setSelectedSql,k=e.showSparkGraph,w=e.sqls,R=e.stagesMapping,C=(0,P.q)(),T=j.ZP.spark_sqls.list({length:9999},{},{pauseFetch:"undefined"!==typeof w&&null!==w}).data,A=(0,l.useMemo)((function(){return w||((null===T||void 0===T?void 0:T.spark_sqls)||[])}),[T,w]),I=(0,l.useMemo)((function(){var e,P={};null===A||void 0===A||A.forEach((function(e){var t,n,i=null===e||void 0===e?void 0:e.application;(null===i||void 0===i?void 0:i.calculated_id)in P||(P[null===i||void 0===i?void 0:i.calculated_id]={application:i,sqls:[]}),null===(t=P[null===i||void 0===i?void 0:i.calculated_id])||void 0===t||null===(n=t.sqls)||void 0===n||n.push(e)}));var w=null===(e=Object.values(P))||void 0===e?void 0:e.length;return Object.values(P).map((function(e){var P=e.application,T=e.sqls;return(0,Z.jsxs)("div",{children:[w>=2&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(m.Z,{p:x.cd,children:(0,Z.jsxs)(_.ZP,{default:!0,bold:!0,children:["Application ",null===P||void 0===P?void 0:P.calculated_id]})}),(0,Z.jsx)(d.Z,{light:!0})]}),(0,Z.jsx)(g.Z,{apiForFetchingAfterAction:j.ZP.spark_sqls.detail,buildApiOptionsFromObject:function(e){var t,n,i,r;return[null===e||void 0===e?void 0:e.id,{application_id:null!==e&&void 0!==e&&null!==(t=e.application)&&void 0!==t&&t.calculated_id?encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.calculated_id):"",application_spark_ui_url:null!==e&&void 0!==e&&null!==(i=e.application)&&void 0!==i&&i.spark_ui_url?encodeURIComponent(null===e||void 0===e||null===(r=e.application)||void 0===r?void 0:r.spark_ui_url):"",include_jobs_and_stages:1,_format:"with_jobs_and_stages"}]},columnFlex:[null,null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"Submitted"},{center:!0,uuid:"Duration"},{uuid:"Status"},{center:!0,uuid:"Successful jobs"},{center:!0,uuid:"Running jobs"},{center:!0,uuid:"Failed jobs"}],getObjectAtRowIndex:function(e){return null===T||void 0===T?void 0:T[e]},onClickRow:function(e){var t=null===T||void 0===T?void 0:T[e];null===r||void 0===r||r((function(e){return e&&(null===e||void 0===e?void 0:e.id)===(null===t||void 0===t?void 0:t.id)?null:t}))},renderExpandedRowWithObject:function(e,r){var o,l=null===r||void 0===r||null===(o=r.spark_sql)||void 0===o?void 0:o.jobs,d=null===T||void 0===T?void 0:T[e];return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(m.Z,{p:x.cd,children:(0,Z.jsxs)(f.Z,{noPadding:!0,children:[(0,Z.jsx)(m.Z,{p:x.cd,children:(0,Z.jsx)(c.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,Z.jsxs)(s.Z,{flex:1,flexDirection:"column",children:[(0,Z.jsx)(v.Z,{level:5,children:"Description"}),(0,Z.jsx)(m.Z,{mt:1,children:(0,Z.jsx)(_.ZP,{default:!0,monospace:!0,children:null===d||void 0===d?void 0:d.description})})]})})}),(0,Z.jsx)(m.Z,{p:x.cd,children:(0,Z.jsxs)(u.Z,{noBoxShadow:!0,children:[(0,Z.jsx)(a.Z,{noPaddingContent:!0,title:"Plan",titleXPadding:x.cd*x.iI,titleYPadding:1.5*x.iI,children:(0,Z.jsx)(m.Z,{p:x.cd,children:(0,Z.jsx)(_.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:null===d||void 0===d?void 0:d.plan_description})})}),k&&(0,Z.jsx)(a.Z,{noPaddingContent:!0,title:"Graph",titleXPadding:x.cd*x.iI,titleYPadding:1.5*x.iI,children:(0,Z.jsx)(h.Z,{disableGraph:t,height:100*x.iI,model:d,overrideScroll:i})})]})})]})}),(0,Z.jsxs)(m.Z,{mb:x.cd,px:x.cd,children:[(0,Z.jsx)(m.Z,{mb:x.cd,children:(0,Z.jsx)(c.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,Z.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,Z.jsx)(v.Z,{level:5,children:"Jobs"})})})}),(0,Z.jsxs)(f.Z,{overflowVisible:!0,noPadding:!0,children:[(0,Z.jsx)(p.Z,{disableJobExpansion:n,jobs:l,stagesMapping:R}),(0,Z.jsx)(m.Z,{pb:x.cd})]})]})]})},rows:null===T||void 0===T?void 0:T.map((function(e){var t=e.duration,n=e.failed_job_ids,i=e.id,r=e.running_job_ids,u=e.status,a=e.submission_time,d=e.success_job_ids;return[(0,l.createElement)(_.ZP,S(S({},y.eB),{},{key:"id"}),i),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{key:"submissionTime"}),a?(0,b.XG)(o()(a,b.kE).format(b.OC),C):"-"),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{center:!0,key:"duration"}),t?(0,O.NR)(t):0),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{key:"status",success:E.oD.COMPLETED===u}),u),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{center:!0,key:"successJobIds"}),null===d||void 0===d?void 0:d.length),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{center:!0,key:"runningJobIds"}),null===r||void 0===r?void 0:r.length),(0,l.createElement)(_.ZP,S(S({},y.eB),{},{center:!0,key:"failedJobIds"}),null===n||void 0===n?void 0:n.length)]}))})]},null===P||void 0===P?void 0:P.calculated_id)}))}),[t,i,A,R]);return(0,Z.jsx)(Z.Fragment,{children:I})}},71417:function(e,t,n){n.d(t,{Z:function(){return D}});var i=n(82394),r=n(92083),o=n.n(r),l=n(15338),u=n(97618),a=n(55485),d=n(65956),s=n(38276),c=n(75499),p=n(38626),v=n(82684),f=n(39867),m=n(30160),h=n(12468),g=n(44897),_=n(70515),j=3*_.iI,b=p.default.div.withConfig({displayName:"indexstyle__BarsContainerStyle",componentId:"sc-15hlddf-0"})(["width:100%;"]),x=p.default.div.withConfig({displayName:"indexstyle__BarContainerStyle",componentId:"sc-15hlddf-1"})(["align-items:center;display:flex;height:","px;width:100%;"],j),y=p.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15hlddf-2"})(["height:100%;"," "," "," "," "," "," "," "," ",""],(function(e){return e.widthPercentage&&"\n width: ".concat(100*e.widthPercentage,"%;\n ")}),(function(e){return e.blue&&"\n background-color: ".concat((e.theme||g.Z).accent.blue,";\n ")}),(function(e){return e.green&&"\n background-color: ".concat((e.theme||g.Z).accent.positive,";\n ")}),(function(e){return e.orange&&"\n background-color: ".concat((e.theme||g.Z).accent.dbt,";\n ")}),(function(e){return e.purple&&"\n background-color: ".concat((e.theme||g.Z).accent.purple,";\n ")}),(function(e){return e.red&&"\n background-color: ".concat((e.theme||g.Z).accent.negative,";\n ")}),(function(e){return e.teal&&"\n background-color: ".concat((e.theme||g.Z).accent.teal,";\n ")}),(function(e){return e.yellow&&"\n background-color: ".concat((e.theme||g.Z).accent.yellow,";\n ")}),(function(e){return e.empty&&"\n background-color: ".concat((e.theme||g.Z).background.chartBlock,";\n ")})),E=p.default.div.withConfig({displayName:"indexstyle__FillerStyle",componentId:"sc-15hlddf-3"})(["height:","px;width:100%;"],j),O=p.default.div.withConfig({displayName:"indexstyle__TextStyle",componentId:"sc-15hlddf-4"})(["align-items:center;display:flex;height:","px;justify-content:flex-end;"],j),P=n(3917),Z=n(70320),k=n(86735),S=n(28598);var w=function(e){var t,n=e.stageAttempt,i=(0,v.useContext)(p.ThemeContext),r=(0,Z.q)(),l=(n.submission_time,(0,v.useMemo)((function(){return(0,k.YC)(Object.values((null===n||void 0===n?void 0:n.tasks)||{}),(function(e){return e.launch_time}),{ascending:!0})}),[n])),d=(0,v.useMemo)((function(){var e,t;return null===l||void 0===l||l.forEach((function(n){var i=n.duration,r=n.launch_time,l=o()(r,P.kE).valueOf();(!t||l<t)&&(t=l);var u=l+i;(!e||u>e)&&(e=u)})),{maxEndTimestamp:e,minLaunchTimestamp:t}}),[l]),c=d.maxEndTimestamp,g=d.minLaunchTimestamp,j=(0,v.useCallback)((function(e){return(0,S.jsx)(h.Z,{appearAbove:!0,block:!0,fullSize:!0,label:(0,S.jsx)(m.ZP,{leftAligned:!0,children:e}),lightBackground:!0,muted:!0,widthFitContent:!0,children:(0,S.jsx)(E,{})})}),[]),w=(0,v.useMemo)((function(){var e=c-g,t=[];return null===l||void 0===l||l.forEach((function(n,i){var r=n.duration,l=n.task_id,u=n.launch_time,a=n.scheduler_delay,d=n.task_metrics,p=d.executor_deserialize_time,v=d.shuffle_read_metrics.fetch_wait_time,f=d.executor_run_time,m=d.shuffle_write_metrics.write_time,h=d.result_serialization_time,_=n.getting_result_time,b=o()(u,P.kE).valueOf(),E=b+r,O=[(0,S.jsx)(y,{empty:!0,widthPercentage:(b-g)/e,children:j("Waiting to start")},"launchTimestamp"),(0,S.jsx)(y,{blue:!0,widthPercentage:a/e,children:j("Scheduler delay")},"schedulerDelay"),(0,S.jsx)(y,{red:!0,widthPercentage:p/e,children:j("Task deserialization time")},"executorDeserializeTime"),(0,S.jsx)(y,{orange:!0,widthPercentage:v/e,children:j("Shuffle read time")},"fetchWaitTime"),(0,S.jsx)(y,{green:!0,widthPercentage:f/e,children:j("Executor computing time")},"executorRunTime"),(0,S.jsx)(y,{widthPercentage:m/e,yellow:!0,children:j("Shuffle write time")},"writeTime"),(0,S.jsx)(y,{purple:!0,widthPercentage:h/e,children:j("Result serialization time")},"resultSerializationTime"),(0,S.jsx)(y,{teal:!0,widthPercentage:_/e,children:j("Getting result time")},"gettingResultTime"),(0,S.jsx)(y,{empty:!0,widthPercentage:(c-E)/e,children:j("Already finished")},"endTime")];t.push((0,S.jsx)(s.Z,{mt:1},"divider-".concat(l))),t.push((0,S.jsx)(x,{children:O},l))})),(0,S.jsxs)(b,{children:[(0,S.jsx)(x,{children:(0,S.jsxs)(a.ZP,{fullWidth:!0,justifyContent:"space-between",children:[(0,S.jsx)(u.Z,{flex:1,children:(0,S.jsx)(m.ZP,{monospace:!0,muted:!0,children:(0,P.XG)((0,P.Mg)(g,{withMilliseconds:!0}).format(P.OC),r)})}),(0,S.jsx)(u.Z,{flex:1,justifyContent:"flex-end",children:(0,S.jsx)(m.ZP,{monospace:!0,muted:!0,children:(0,P.XG)((0,P.Mg)(c,{withMilliseconds:!0}).format(P.OC),r)})})]})}),t]})}),[c,g,j,l]);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s.Z,{mb:_.cd,children:(0,S.jsx)(m.ZP,{bold:!0,large:!0,children:"Task timeline"})}),(0,S.jsx)(s.Z,{mb:_.cd,children:[{color:null===i||void 0===i||null===(t=i.accent)||void 0===t?void 0:t.blue,uuid:"Scheduler delay"},{color:null===i||void 0===i?void 0:i.accent.negative,uuid:"Task deserialization time"},{color:null===i||void 0===i?void 0:i.accent.dbt,uuid:"Shuffle read time"},{color:null===i||void 0===i?void 0:i.accent.positive,uuid:"Executor computing time"},{color:null===i||void 0===i?void 0:i.accent.yellow,uuid:"Shuffle write time"},{color:null===i||void 0===i?void 0:i.accent.purple,uuid:"Result serialization time"},{color:null===i||void 0===i?void 0:i.accent.teal,uuid:"Getting result time"}].map((function(e,t){var n=e.color,i=e.uuid;return(0,S.jsx)(s.Z,{mt:t>=1?1:0,children:(0,S.jsxs)(a.ZP,{alignItems:"center",children:[(0,S.jsx)(f.Z,{color:n,size:1*_.iI}),(0,S.jsx)(s.Z,{mr:1}),(0,S.jsx)(m.ZP,{default:!0,children:i})]})},i)}))}),(0,S.jsxs)(a.ZP,{children:[(0,S.jsxs)("div",{children:[(0,S.jsx)(O,{children:(0,S.jsx)(m.ZP,{bold:!0,monospace:!0,muted:!0,noWrapping:!0,children:"ID"})}),null===l||void 0===l?void 0:l.map((function(e,t){var n=e.task_id;return(0,S.jsx)(s.Z,{mt:1,children:(0,S.jsx)(O,{children:(0,S.jsx)(m.ZP,{default:!0,monospace:!0,noWrapping:!0,children:n})})},n)}))]}),(0,S.jsx)(s.Z,{mr:2}),w]})]})},R=n(35686),C=n(88422),T=n(8970),A=n(10332),I=n(81728);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=function(e){var t=e.disableStageExpansion,n=e.stages,i=e.tasksContained,r=(0,Z.q)();return(0,S.jsx)(c.Z,{columnFlex:[null,null,null,null,null,null,null,null,null,null,null,null,null],columns:[{uuid:"ID"},{center:!0,uuid:"Attempt"},{uuid:"Name"},{uuid:"Submitted"},{center:!0,uuid:"Duration"},{uuid:"Status"},{center:!0,uuid:"Tasks"},{center:!0,tooltipMessage:"Bytes read from storage in this stage",uuid:"In"},{center:!0,uuid:"In recs"},{center:!0,tooltipMessage:"Bytes written in storage in this stage",uuid:"Out"},{center:!0,uuid:"Out recs"},{center:!0,tooltipMessage:"Total shuffle bytes and records read, includes both data read locally and data read from remote executors.",uuid:"Sh read"},{rightAligned:!0,tooltipMessage:"Bytes and records written to disk in order to be read by a shuffle in a future stage.",uuid:"Sh write"}],getObjectAtRowIndex:function(e){return null===n||void 0===n?void 0:n[e]},buildApiOptionsFromObject:t?null:function(e){var t,n,i,r;return[null===e||void 0===e?void 0:e.stage_id,{application_id:null!==e&&void 0!==e&&null!==(t=e.application)&&void 0!==t&&t.calculated_id?encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.calculated_id):"",application_spark_ui_url:null!==e&&void 0!==e&&null!==(i=e.application)&&void 0!==i&&i.spark_ui_url?encodeURIComponent(null===e||void 0===e||null===(r=e.application)||void 0===r?void 0:r.spark_ui_url):"",quantiles:C.k$.map((function(e){return e})).join(","),withSummaries:!0}]},apiForFetchingAfterAction:t?null:R.ZP.spark_stages.detail,renderExpandedRowWithObject:t?null:function(e,t){var p,f,g=null===n||void 0===n?void 0:n[e];if(!g)return(0,S.jsx)("div",{});var j=g.details,b=g.num_active_tasks,x=g.num_complete_tasks,y=g.num_failed_tasks,E=g.num_killed_tasks,O=g.num_tasks,Z=null===t||void 0===t||null===(p=t.spark_stage)||void 0===p?void 0:p.stage_attempts;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s.Z,{p:_.cd,children:(0,S.jsxs)(a.ZP,{children:[(0,S.jsx)(u.Z,{flex:1,alignItems:"stretch",children:(0,S.jsxs)(d.Z,{noPadding:!0,children:[(0,S.jsx)(s.Z,{px:_.cd,py:_.cd,children:(0,S.jsx)(m.ZP,{bold:!0,large:!0,children:"Task summary"})}),(0,S.jsx)(l.Z,{light:!0,short:!0}),(0,A.s)([["Total",O],["Completed",x],["Active",b],["Failed",y],["Killed",E]])]})}),(0,S.jsx)(s.Z,{mr:_.cd}),(0,S.jsx)(u.Z,{flex:2,alignItems:"stretch",children:(0,S.jsxs)(d.Z,{noPadding:!0,children:[(0,S.jsx)(s.Z,{px:_.cd,py:_.cd,children:(0,S.jsx)(m.ZP,{bold:!0,large:!0,children:"Details"})}),(0,S.jsx)(l.Z,{light:!0,short:!0}),(0,S.jsx)(s.Z,{p:_.cd,children:null===j||void 0===j||null===(f=j.split("\n"))||void 0===f?void 0:f.map((function(e){return(0,S.jsx)(m.ZP,{muted:!0,monospace:!0,small:!0,children:e},e)}))})]})})]})}),null===Z||void 0===Z?void 0:Z.map((function(e){e.attempt_id;var t,n=e.task_metrics_distributions,p=e.tasks,f=n||{},g=f.input_metrics,j=f.output_metrics,b=f.quantiles,x=void 0===b?C.k$:b,y=f.shuffle_read_metrics,E=f.shuffle_write_metrics,O=(0,S.jsx)(c.Z,{columnFlex:[null,null,null,null,null,null,null,null,null],columns:[{uuid:"ID"},{center:!0,uuid:"Attempt"},{uuid:"Status"},{uuid:"Locality"},{uuid:"Launch"},{center:!0,uuid:"Duration"},{center:!0,tooltipMessage:"GC time is the total JVM garbage collection time.",uuid:"GC time"},{center:!0,tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Delayed"},{center:!0,tooltipMessage:"Result serialization time is the time spent serializing the task result on an executor before sending it back to the driver.",uuid:"Result time"}],rows:(0,k.YC)(Object.values(p||{}),(function(e){return e.task_id}),{ascending:!1}).map((function(e){var t=e.attempt,n=e.duration,i=e.launch_time,l=e.scheduler_delay,u=e.status,a=e.task_id,d=e.task_locality,s=e.task_metrics;return[(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"taskId"}),a),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"attempt"}),t),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"status",success:C.q.SUCCESS===u}),u),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"taskLocality"}),d),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"launchTime"}),i?(0,P.XG)(o()(i,P.kE).format(P.BL),r):"-"),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"duration"}),n?(0,I.NR)(n):0),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"jvmGcTime"}),null!==s&&void 0!==s&&s.jvm_gc_time?(0,I.NR)(null===s||void 0===s?void 0:s.jvm_gc_time):0),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"schedulerDelay"}),l?(0,I.NR)(l):0),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"resultSerializationTime"}),null!==s&&void 0!==s&&s.result_serialization_time?(0,I.NR)(null===s||void 0===s?void 0:s.result_serialization_time):0)]}))});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(l.Z,{light:!0}),(0,S.jsx)(s.Z,{p:_.cd,children:(0,S.jsx)(w,{stageAttempt:e})}),(0,S.jsx)(l.Z,{light:!0}),(0,S.jsx)(s.Z,{px:_.cd,mt:_.cd,children:(0,S.jsx)(a.ZP,{children:(0,S.jsx)(u.Z,{flex:1,alignItems:"stretch",children:(0,S.jsxs)(d.Z,{noPadding:!0,children:[(0,S.jsx)(s.Z,{px:_.cd,py:_.cd,children:(0,S.jsxs)(m.ZP,{bold:!0,large:!0,children:["Summary metrics for ",(0,I._6)("completed task",null===e||void 0===e?void 0:e.num_complete_tasks)]})}),(0,S.jsx)(l.Z,{light:!0,short:!0}),(0,S.jsx)(c.Z,{columnFlex:[null].concat(null===x||void 0===x?void 0:x.map((function(){return null}))),columns:[{uuid:"Metric"}].concat((null===x||void 0===x?void 0:x.map((function(e,t){return{center:!0,label:function(){return 0===t?"Min":t===(null===x||void 0===x?void 0:x.length)-1?"Max":t===Math.floor((null===x||void 0===x?void 0:x.length)/2)?"Median":"".concat(Number(100*e),"th")},uuid:e}})))||[]),rows:[{uuid:"Duration",values:((null===n||void 0===n?void 0:n.duration)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"GC time is the total JVM garbage collection time.",uuid:"GC time",values:((null===n||void 0===n?void 0:n.jvm_gc_time)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Bytes read from storage in this stage.",uuid:"Input read (bytes)",values:(null===g||void 0===g?void 0:g.bytes_read)||[]},{tooltipMessage:"Records read from storage in this stage.",uuid:"Input records read",values:(null===g||void 0===g?void 0:g.records_read)||[]},{tooltipMessage:"Total shuffle bytes read, includes both data read locally and data read from remote executors.",uuid:"Shuffle read (bytes)",values:(null===y||void 0===y?void 0:y.read_bytes)||[]},{tooltipMessage:"Total shuffle records read, includes both data read locally and data read from remote executors.",uuid:"Shuffle read records",values:(null===y||void 0===y?void 0:y.read_records)||[]},{uuid:"Shuffle read fetch time",values:((null===y||void 0===y?void 0:y.fetch_wait_time)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Bytes written to storage in this stage.",uuid:"Input write (bytes)",values:(null===j||void 0===j?void 0:j.bytes_written)||[]},{tooltipMessage:"Records written to storage in this stage.",uuid:"Input records write",values:(null===j||void 0===j?void 0:j.records_written)||[]},{tooltipMessage:"Bytes written to disk in order to be read by a shuffle in a future stage.",uuid:"Shuffle write (bytes)",values:(null===E||void 0===E?void 0:E.write_bytes)||[]},{tooltipMessage:"Records written to disk in order to be read by a shuffle in a future stage.",uuid:"Shuffle write records",values:(null===E||void 0===E?void 0:E.write_records)||[]},{uuid:"Shuffle write time",values:((null===E||void 0===E?void 0:E.write_time)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Scheduler delay",values:(null===n||void 0===n?void 0:n.scheduler_delay)||[]},{uuid:"Task deserialization time",values:((null===n||void 0===n?void 0:n.executor_deserialize_time)||[]).map((function(e){return(0,I.NR)(e)}))},{uuid:"Task deserialization CPU time",values:((null===n||void 0===n?void 0:n.executor_deserialize_cpu_time)||[]).map((function(e){return(0,I.NR)(e)}))},{uuid:"Result size",values:(null===n||void 0===n?void 0:n.result_size)||[]},{tooltipMessage:"Result serialization time is the time spent serializing the task result on an executor before sending it back to the driver.",uuid:"Result serialization time",values:((null===n||void 0===n?void 0:n.result_serialization_time)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Getting result time is the time that the driver spends fetching task results from workers.",uuid:"Getting result time",values:((null===n||void 0===n?void 0:n.getting_result_time)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Scheduler delay",values:((null===n||void 0===n?void 0:n.scheduler_delay)||[]).map((function(e){return(0,I.NR)(e)}))},{tooltipMessage:"Peak execution memory is the maximum memory used by the internal data structures created during shuffles, aggregations and joins.",uuid:"Peak execution memory",values:(null===n||void 0===n?void 0:n.peak_execution_memory)||[]},{tooltipMessage:"Shuffle spill (memory) is the size of the deserialized form of the shuffled data in memory.",uuid:"Memory spilled (bytes)",values:(null===n||void 0===n?void 0:n.memory_bytes_spilled)||[]},{tooltipMessage:"Shuffle spill (disk) is the size of the serialized form of the data on disk.",uuid:"Disk spilled (bytes)",values:(null===n||void 0===n?void 0:n.disk_bytes_spilled)||[]}].map((function(e){var t=e.tooltipMessage,n=e.uuid,i=e.values;return[(0,S.jsxs)(a.ZP,{alignItems:"center",children:[(0,S.jsx)(m.ZP,M(M({},T.eB),{},{children:n})),t&&(0,S.jsx)("div",{style:{marginLeft:4},children:(0,S.jsx)(h.Z,{appearAbove:!0,label:(0,S.jsx)(m.ZP,{leftAligned:!0,children:t}),lightBackground:!0,maxWidth:200,muted:!0})})]},n)].concat(null===i||void 0===i?void 0:i.map((function(e,t){return(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"quantile-".concat(x[t],"-").concat(n)}),e)})))}))}),(0,S.jsx)(s.Z,{p:1})]})})})}),(0,S.jsx)(s.Z,{p:_.cd,children:(0,S.jsxs)(m.ZP,{bold:!0,large:!0,children:["Tasks\xa0\xa0\xa0",(0,S.jsx)(m.ZP,{default:!0,inline:!0,large:!0,monospace:!0,children:p?null===(t=Object.keys(p||{}))||void 0===t?void 0:t.length:""})]})}),!i&&O,i&&(0,S.jsx)(s.Z,{px:_.cd,children:(0,S.jsxs)(d.Z,{noPadding:!0,children:[O,(0,S.jsx)(s.Z,{pb:_.cd})]})}),(0,S.jsx)(s.Z,{p:1})]})}))]})},rows:null===n||void 0===n?void 0:n.map((function(e){var t=e.attempt_id,n=e.completion_time,i=e.first_task_launched_time,l=e.input_bytes,u=e.input_records,a=e.name,d=e.output_bytes,s=e.output_records,c=e.shuffle_read_bytes,p=e.shuffle_write_bytes,f=e.stage_id,h=e.status,g=e.submission_time,_=e.tasks,j=i&&o()(i,P.kE),b=n&&o()(n,P.kE),x=b&&b.diff(j),y=(null===a||void 0===a?void 0:a.length)>=12?"".concat(null===a||void 0===a?void 0:a.slice(0,9),"..."):a;return[(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"stageID"}),f),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"attemptID"}),t),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"displayName",title:a}),y),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"submissionTime"}),g?(0,P.XG)(o()(g,P.kE).format(P.BL),r):"-"),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"diffDisplayText",center:!0}),x?(0,I.NR)(x):0),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"status",success:C.Dd.COMPLETE===h}),h),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"tasks",center:!0}),Object.keys(_||{}).length||0),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"inputBytes"}),l),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"inputRecords"}),u),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"outputBytes"}),d),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"outputRecords"}),s),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{center:!0,key:"shuffleReadBytes"}),c),(0,v.createElement)(m.ZP,M(M({},T.eB),{},{key:"shuffleWriteBytes",rightAligned:!0}),p)]}))})}},8970:function(e,t,n){n.d(t,{sY:function(){return k},l:function(){return O},Eb:function(){return P},LF:function(){return Z},B2:function(){return y},TD:function(){return E},uK:function(){return b},eB:function(){return S},kI:function(){return w}});var i=n(82394),r=n(28598),o=69.063,l=o/85;var u,a,d,s,c=function(e){var t,n,i=e.height,u=e.size,a=e.width;return u?(t=u/l,n=u):i?(t=i,n=i*l):a&&(t=a/l,n=a),(0,r.jsxs)("svg",{fill:"#fff",fillRule:"evenodd",height:t,stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 ".concat(o," ").concat(85),width:n,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,r.jsx)("use",{xlinkHref:"#A",x:"2.031",y:"2.5"}),(0,r.jsx)("symbol",{id:"A",overflow:"visible",children:(0,r.jsxs)("g",{stroke:"none",children:[(0,r.jsx)("path",{d:"M16.829 39.981L13.086 62.83l-9.812 2.283-3.255-1.659V39.981h16.81z",fill:"#9d5025"}),(0,r.jsx)("path",{d:"M65 31.932l-32.5 2.351L0 31.932 32.5 0 65 31.932z",fill:"#6b3b19"}),(0,r.jsx)("path",{d:"M38.971 39.981H3.274v25.132l35.697-8.322v-16.81z",fill:"#f58534"}),(0,r.jsx)("path",{d:"M21.127 39.981l1.168 25.698-11.43 3.298-3.992-2.029V39.981h14.254z",fill:"#9d5025"}),(0,r.jsx)("path",{d:"M49.664 39.981H10.865v28.995l38.799-11.22V39.981z",fill:"#f58534"}),(0,r.jsx)("path",{d:"M29.255 39.981v30.507l-8.912 3.317-5.016-2.556V39.981h13.929z",fill:"#9d5025"}),(0,r.jsx)("path",{d:"M58.117 39.981H20.342v33.824l37.775-14.078V39.981z",fill:"#f58534"}),(0,r.jsx)("path",{d:"M26.019 76.703V39.981h24.602l11.803 24.771L32.49 80.001l-6.471-3.297z",fill:"#9d5025"}),(0,r.jsx)("path",{d:"M32.49 80.001v-40.02h32.5v23.464l-32.5 16.556zM65 31.932l-32.5-5.697V0L65 16.556v15.376z",fill:"#f58534"}),(0,r.jsx)("path",{d:"M0 31.932l32.5-5.697V0L0 16.556v15.376z",fill:"#9d5025"})]})})]})},p=n(55485),v=n(30160),f=n(72473),m=n(74260),h=n(70515),g=n(81728);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b,x=8*h.iI,y=j({},m.GO);!function(e){e.CLUSTERS="clusters",e.MONITORING="monitoring",e.RESOURCES="resources",e.SETUP="setup",e.SYSTEM="system"}(b||(b={}));var E=(u={},(0,i.Z)(u,b.CLUSTERS,"Clusters"),(0,i.Z)(u,b.RESOURCES,"Resources"),(0,i.Z)(u,b.MONITORING,"Monitoring"),(0,i.Z)(u,b.SETUP,"Setup"),(0,i.Z)(u,b.SYSTEM,"System"),u),O=(a={},(0,i.Z)(a,y.AWS_EMR,"AWS EMR"),(0,i.Z)(a,y.STANDALONE_CLUSTER,"Standalone cluster"),a),P=(d={},(0,i.Z)(d,y.AWS_EMR,"Spark"),(0,i.Z)(d,y.STANDALONE_CLUSTER,"Spark"),d),Z=(s={},(0,i.Z)(s,y.AWS_EMR,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;return(0,r.jsx)(c,{height:e})})),(0,i.Z)(s,y.STANDALONE_CLUSTER,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;return(0,r.jsx)(f.Hm,{size:e,warning:!0})})),s),k=[{buildPayload:function(e){return{emr_config:null,spark_config:j({app_name:"",spark_master:"local"},null===e||void 0===e?void 0:e.spark_config)}},displayName:O[y.STANDALONE_CLUSTER],documentationHref:"https://docs.mage.ai/integrations/spark-pyspark#standalone-spark-cluster",kicker:P[y.STANDALONE_CLUSTER],renderIcon:Z[y.STANDALONE_CLUSTER],uuid:y.STANDALONE_CLUSTER},{buildPayload:function(e){return{emr_config:j({master_instance_type:""},null===e||void 0===e?void 0:e.emr_config),spark_config:j({app_name:""},null===e||void 0===e?void 0:e.spark_config)}},displayName:O[y.AWS_EMR],documentationHref:"https://docs.mage.ai/integrations/spark-pyspark#aws",kicker:P[y.AWS_EMR],renderIcon:Z[y.AWS_EMR],uuid:y.AWS_EMR}],S={default:!0,monospace:!0,preWrap:!0,small:!0};function w(e){var t=[{Icon:f.Zr,uuid:b.SETUP},{Icon:f.hd,uuid:b.RESOURCES}];return m.GO.AWS_EMR===(null===e||void 0===e?void 0:e.uuid)&&t.push.apply(t,[{Icon:f.su,renderStatus:function(e){var t=e.clusters;return e.clustersLoading?null:(0,r.jsx)(v.ZP,{default:!0,large:!0,monospace:!0,children:null===t||void 0===t?void 0:t.length})},uuid:b.CLUSTERS}]),[m.GO.AWS_EMR,m.GO.STANDALONE_CLUSTER].includes(null===e||void 0===e?void 0:e.uuid)&&t.push.apply(t,[{Icon:f.ug,renderStatus:function(e){var t=e.applications,n=e.applicationsLoading,i=e.jobs;e.jobsLoading;return n?null:(0,r.jsxs)(p.ZP,{flexDirection:"column",justifyContent:"flex-end",children:[(0,r.jsx)(v.ZP,{default:!0,monospace:!0,rightAligned:!0,xsmall:!0,children:(0,g._6)("application",(null===t||void 0===t?void 0:t.length)||0)}),(0,r.jsx)("div",{style:{marginBottom:h.iI/2}}),(0,r.jsx)(v.ZP,{default:!0,monospace:!0,rightAligned:!0,xsmall:!0,children:(0,g._6)("job",(null===i||void 0===i?void 0:i.length)||0)})]})},uuid:b.MONITORING},{Icon:f.m1,uuid:b.SYSTEM}]),t}},10332:function(e,t,n){n.d(t,{d:function(){return a},s:function(){return d}});var i=n(75499),r=n(30160),o=n(74260),l=n(42122),u=n(28598);function a(e){if(!(0,l.Qr)((null===e||void 0===e?void 0:e.spark_config)||{}))return(0,l.Qr)((null===e||void 0===e?void 0:e.emr_config)||{})?o.GO.STANDALONE_CLUSTER:o.GO.AWS_EMR}function d(e){return(0,u.jsx)(i.Z,{columnFlex:[null,1],columns:[{uuid:"Attribute"},{uuid:"Value"}],rows:e.map((function(e){return[(0,u.jsx)(r.ZP,{monospace:!0,muted:!0,small:!0,children:e[0]},"attribute"),(0,u.jsx)(r.ZP,{monospace:!0,muted:!0,small:!0,children:e[1]},"value")]}))})}},74260:function(e,t,n){var i,r,o;n.d(t,{GO:function(){return i},IK:function(){return o},br:function(){return r}}),function(e){e.AWS_EMR="AWS_EMR",e.STANDALONE_CLUSTER="STANDALONE_CLUSTER"}(i||(i={})),function(e){e.COMPLETED="completed",e.ERROR="error",e.INCOMPLETE="incomplete"}(r||(r={})),function(e){e.ACTIVATE_CLUSTER="activate_cluster",e.AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID",e.AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY",e.CLUSTER_CONNECTION="cluster_connection",e.CONFIGURE="configure",e.CREDENTIALS="credentials",e.EC2_KEY_NAME="ec2_key_name",e.EC2_KEY_PAIR="ec2_key_pair",e.EC2_KEY_PATH="ec2_key_path",e.IAM_PROFILE="iam_instance_profile",e.LAUNCH_CLUSTER="launch_cluster",e.OBSERVABILITY="observability",e.PERMISSIONS="permissions",e.PERMISSIONS_SSH="permissions_ssh",e.REMOTE_VARIABLES_DIR="remote_variables_dir",e.SETUP="setup"}(o||(o={}))},72098:function(e,t,n){var i;n.d(t,{U:function(){return i}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(i||(i={}))},57653:function(e,t,n){n.d(t,{$1:function(){return m},G7:function(){return _},LM:function(){return j},Mj:function(){return b},QK:function(){return f},RH:function(){return g},a_:function(){return y},fj:function(){return E},kA:function(){return x},qL:function(){return u},r0:function(){return h}});var i,r,o,l,u,a=n(75582),d=n(82394),s=n(72473),c=n(72098);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,d.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(u||(u={}));var f,m,h,g=(i={},(0,d.Z)(i,u.INTEGRATION,"Integration"),(0,d.Z)(i,u.PYTHON,"Python"),(0,d.Z)(i,u.PYSPARK,"PySpark"),(0,d.Z)(i,u.STREAMING,"Streaming"),i),_=(r={},(0,d.Z)(r,u.INTEGRATION,"Integration"),(0,d.Z)(r,u.PYTHON,"Standard"),(0,d.Z)(r,u.PYSPARK,"PySpark"),(0,d.Z)(r,u.STREAMING,"Streaming"),r),j="all",b=(u.PYTHON,u.INTEGRATION,u.STREAMING,o={},(0,d.Z)(o,j,s.ie),(0,d.Z)(o,u.INTEGRATION,s.YC),(0,d.Z)(o,u.PYTHON,s.El),(0,d.Z)(o,u.STREAMING,s.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(f||(f={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(h||(h={}));var x=[f.ACTIVE,f.INACTIVE,f.NO_SCHEDULES],y=(l={},(0,d.Z)(l,u.PYTHON,c.U.PYTHON3),(0,d.Z)(l,u.PYSPARK,c.U.PYSPARK),l),E=Object.entries(y).reduce((function(e,t){var n=(0,a.Z)(t,2),i=n[0],r=n[1];return v(v({},e),{},(0,d.Z)({},r,i))}),{})},88422:function(e,t,n){var i,r,o,l,u;n.d(t,{CN:function(){return i},Dd:function(){return r},k$:function(){return a},oD:function(){return u},q:function(){return l}}),function(e){e.FAILED="FAILED",e.RUNNING="RUNNING",e.SUCCEEDED="SUCCEEDED"}(i||(i={})),function(e){e.COMPLETE="COMPLETE",e.PENDING="PENDING",e.SKIPPED="SKIPPED"}(r||(r={})),function(e){e.NODE_LOCAL="NODE_LOCAL",e.PROCESS_LOCAL="PROCESS_LOCAL",e.RACK_LOCAL="RACK_LOCAL"}(o||(o={})),function(e){e.SUCCESS="SUCCESS"}(l||(l={})),function(e){e.COMPLETED="COMPLETED"}(u||(u={}));var a=[.01,.25,.5,.75,.99]},35185:function(e,t,n){var i=n(82394),r=n(91835),o=(n(82684),n(38626)),l=n(44897),u=n(42631),a=n(70515),d=n(28598);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],u.BG,.75*a.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),v=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));t.Z=function(e){var t=(0,r.Z)({},e);return(0,d.jsx)(p,c(c({},t),{},{children:(0,d.jsx)(v,c({},t))}))}}}]);