zenml-nightly 0.68.1.dev20241111__py3-none-any.whl → 0.70.0.dev20241114__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +77 -0
  3. zenml/VERSION +1 -1
  4. zenml/__init__.py +2 -0
  5. zenml/artifacts/utils.py +5 -1
  6. zenml/cli/base.py +1 -1
  7. zenml/client.py +9 -2
  8. zenml/config/server_config.py +17 -1
  9. zenml/constants.py +1 -7
  10. zenml/enums.py +8 -0
  11. zenml/exceptions.py +4 -0
  12. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +1 -14
  13. zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +29 -9
  14. zenml/model/model.py +16 -62
  15. zenml/model/utils.py +5 -0
  16. zenml/models/v2/base/filter.py +121 -8
  17. zenml/models/v2/core/artifact_version.py +23 -0
  18. zenml/models/v2/core/model_version.py +23 -0
  19. zenml/models/v2/core/pipeline_run.py +22 -1
  20. zenml/models/v2/core/step_run.py +22 -0
  21. zenml/orchestrators/base_orchestrator.py +12 -1
  22. zenml/orchestrators/step_launcher.py +2 -1
  23. zenml/orchestrators/utils.py +45 -26
  24. zenml/stack_deployments/aws_stack_deployment.py +23 -6
  25. zenml/stack_deployments/azure_stack_deployment.py +28 -5
  26. zenml/stack_deployments/gcp_stack_deployment.py +25 -8
  27. zenml/stack_deployments/stack_deployment.py +3 -5
  28. zenml/steps/utils.py +5 -0
  29. zenml/utils/metadata_utils.py +335 -0
  30. zenml/zen_server/auth.py +221 -3
  31. zenml/zen_server/cache.py +208 -0
  32. zenml/zen_server/dashboard/assets/{404-DT4QRUqN.js → 404-NVXKFp-x.js} +1 -1
  33. zenml/zen_server/dashboard/assets/{@radix-DP6vWzyx.js → @radix-DeK6qiuw.js} +1 -1
  34. zenml/zen_server/dashboard/assets/{@react-router-BMhZulnd.js → @react-router-B3Z5rLr2.js} +1 -1
  35. zenml/zen_server/dashboard/assets/{@reactflow-8U9qNlMR.js → @reactflow-CK0KJUen.js} +2 -2
  36. zenml/zen_server/dashboard/assets/{@tanstack-BUCbhJyH.js → @tanstack-DT5WLu9C.js} +1 -1
  37. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-DezXKmDf.js +1 -0
  38. zenml/zen_server/dashboard/assets/{CodeSnippet-CqybNv0k.js → CodeSnippet-JzR8CEtw.js} +2 -2
  39. zenml/zen_server/dashboard/assets/{CollapsibleCard-0r_8G2Lj.js → CollapsibleCard-DQW_ktMO.js} +1 -1
  40. zenml/zen_server/dashboard/assets/{Commands-BDjgBQKi.js → Commands-DL2kwkRd.js} +1 -1
  41. zenml/zen_server/dashboard/assets/ComponentBadge-D_g62Wv8.js +1 -0
  42. zenml/zen_server/dashboard/assets/{CopyButton-C745BrKi.js → CopyButton-LNcWaa14.js} +1 -1
  43. zenml/zen_server/dashboard/assets/{CsvVizualization-PpAq0CeZ.js → CsvVizualization-DknpE5ej.js} +5 -5
  44. zenml/zen_server/dashboard/assets/{DialogItem-DcVCZEew.js → DialogItem-Bxf8FuAT.js} +1 -1
  45. zenml/zen_server/dashboard/assets/{DisplayDate-BeXgUG_C.js → DisplayDate-CDMUcQHS.js} +1 -1
  46. zenml/zen_server/dashboard/assets/{EmptyState-DeK7H4pr.js → EmptyState-BzdlCwp3.js} +1 -1
  47. zenml/zen_server/dashboard/assets/{Error-BMlzibXj.js → Error-DYflYyps.js} +1 -1
  48. zenml/zen_server/dashboard/assets/ExecutionStatus-C7zyIQKZ.js +1 -0
  49. zenml/zen_server/dashboard/assets/{Helpbox-BLf40fLV.js → Helpbox-oYSGpLqd.js} +1 -1
  50. zenml/zen_server/dashboard/assets/{Infobox-BwisKifi.js → Infobox-Cx4xGoXR.js} +1 -1
  51. zenml/zen_server/dashboard/assets/{InlineAvatar-jEgodSgX.js → InlineAvatar-DiGOWNKF.js} +1 -1
  52. zenml/zen_server/dashboard/assets/{Lock-3lLt1ih0.js → Lock-CYYy18Mm.js} +1 -1
  53. zenml/zen_server/dashboard/assets/{MarkdownVisualization-8O9kTr-2.js → MarkdownVisualization-ylXaAxev.js} +1 -1
  54. zenml/zen_server/dashboard/assets/NestedCollapsible-DYbgyKxK.js +1 -0
  55. zenml/zen_server/dashboard/assets/{NumberBox-T9eELfLZ.js → NumberBox-Dtp3J6g5.js} +1 -1
  56. zenml/zen_server/dashboard/assets/Partials-03iZf8-N.js +1 -0
  57. zenml/zen_server/dashboard/assets/{PasswordChecker-CW0kqY0W.js → PasswordChecker-B0nadgh6.js} +1 -1
  58. zenml/zen_server/dashboard/assets/ProBadge-D_EB8HNo.js +1 -0
  59. zenml/zen_server/dashboard/assets/ProCta-DqNS4v3x.js +1 -0
  60. zenml/zen_server/dashboard/assets/ProviderIcon-Bki2aw8w.js +1 -0
  61. zenml/zen_server/dashboard/assets/{ProviderRadio-BROY1700.js → ProviderRadio-8f43sPD4.js} +1 -1
  62. zenml/zen_server/dashboard/assets/RunSelector-DkPiIiNr.js +1 -0
  63. zenml/zen_server/dashboard/assets/RunsBody-07YEO7qI.js +1 -0
  64. zenml/zen_server/dashboard/assets/SearchField-lp1KgU4e.js +1 -0
  65. zenml/zen_server/dashboard/assets/{SecretTooltip-C_qByGWB.js → SecretTooltip-CgnbyeOx.js} +1 -1
  66. zenml/zen_server/dashboard/assets/{SetPassword-7pRB00El.js → SetPassword-CpP418A2.js} +1 -1
  67. zenml/zen_server/dashboard/assets/StackList-WvuKQusZ.js +1 -0
  68. zenml/zen_server/dashboard/assets/Tabs-BktHkCJJ.js +1 -0
  69. zenml/zen_server/dashboard/assets/Tick-BlMoIlJT.js +1 -0
  70. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DckMEkFf.js → UpdatePasswordSchemas-Sc0A0pP-.js} +1 -1
  71. zenml/zen_server/dashboard/assets/{UsageReason-DVceN14P.js → UsageReason-YYduL4fj.js} +1 -1
  72. zenml/zen_server/dashboard/assets/{WizardFooter-CW0Cvd70.js → WizardFooter-dgmizSJC.js} +1 -1
  73. zenml/zen_server/dashboard/assets/all-pipeline-runs-query-D-c2G6lV.js +1 -0
  74. zenml/zen_server/dashboard/assets/check-DloQpStc.js +1 -0
  75. zenml/zen_server/dashboard/assets/{check-circle-Dwxliy1Z.js → check-circle-jNbX5-sR.js} +1 -1
  76. zenml/zen_server/dashboard/assets/{chevron-down-8wLBS5pQ.js → chevron-down-6JyMkfjR.js} +1 -1
  77. zenml/zen_server/dashboard/assets/{chevron-right-double-DoD8iXWM.js → chevron-right-double-D7ojK9Co.js} +1 -1
  78. zenml/zen_server/dashboard/assets/{code-browser-CZUQs3Wa.js → code-browser-CUFUIHfp.js} +1 -1
  79. zenml/zen_server/dashboard/assets/{copy-CaSMXwiU.js → copy-C8XQA2Ug.js} +1 -1
  80. zenml/zen_server/dashboard/assets/create-stack-DM_JPgef.js +1 -0
  81. zenml/zen_server/dashboard/assets/delete-run-CJdh1P_h.js +1 -0
  82. zenml/zen_server/dashboard/assets/{docker-BFNgg-z3.js → docker-BdA9vrnW.js} +1 -1
  83. zenml/zen_server/dashboard/assets/{dots-horizontal-DK5Duzx4.js → dots-horizontal-otGBOSDJ.js} +1 -1
  84. zenml/zen_server/dashboard/assets/{form-schemas-1AyOCx90.js → form-schemas-K6FYKjwa.js} +1 -1
  85. zenml/zen_server/dashboard/assets/{gcp-7M2Yf3ZK.js → gcp-CFtm4BA7.js} +1 -1
  86. zenml/zen_server/dashboard/assets/{help-Dam461dC.js → help-Cc9bBIJH.js} +1 -1
  87. zenml/zen_server/dashboard/assets/index-B1mVPYxf.js +1 -0
  88. zenml/zen_server/dashboard/assets/index-BAkC7FXi.js +1 -0
  89. zenml/zen_server/dashboard/assets/{index-QQb7wQEC.js → index-CCOPpudF.js} +8 -8
  90. zenml/zen_server/dashboard/assets/index-CEV4Cvaf.js +1 -0
  91. zenml/zen_server/dashboard/assets/index-DlGvJQPn.css +1 -0
  92. zenml/zen_server/dashboard/assets/{index-BVJ8n2-j.js → index-Uu49AX48.js} +1 -1
  93. zenml/zen_server/dashboard/assets/{index.esm-cuVep_NJ.js → index.esm-Dy6Z9Ung.js} +1 -1
  94. zenml/zen_server/dashboard/assets/{kubernetes--g7r02Zu.js → kubernetes-B2wmAJ1d.js} +1 -1
  95. zenml/zen_server/dashboard/assets/{layout-DCSYN7-C.js → layout-BtHBmE4w.js} +1 -1
  96. zenml/zen_server/dashboard/assets/{link-external-CBEk6kEG.js → link-external-b9AXw_sW.js} +1 -1
  97. zenml/zen_server/dashboard/assets/{login-mutation-DTcAFP1l.js → login-mutation-hf-lK87O.js} +1 -1
  98. zenml/zen_server/dashboard/assets/{logs-D5bdJGur.js → logs-WMSM52RF.js} +1 -1
  99. zenml/zen_server/dashboard/assets/{not-found-Cc-JkRH2.js → not-found-BGirLjU-.js} +1 -1
  100. zenml/zen_server/dashboard/assets/{package-Cs35Szwh.js → package-C6uypY4h.js} +1 -1
  101. zenml/zen_server/dashboard/assets/page-0JE_-Ec1.js +1 -0
  102. zenml/zen_server/dashboard/assets/{page-DH_Z7iW1.js → page-6m6yHHlE.js} +1 -1
  103. zenml/zen_server/dashboard/assets/page-BDigxVpo.js +1 -0
  104. zenml/zen_server/dashboard/assets/page-BR68V0V1.js +1 -0
  105. zenml/zen_server/dashboard/assets/page-BRLpxOt0.js +1 -0
  106. zenml/zen_server/dashboard/assets/{page-BQQKaabe.js → page-BU7huvKw.js} +3 -3
  107. zenml/zen_server/dashboard/assets/page-BvqLv2Ky.js +1 -0
  108. zenml/zen_server/dashboard/assets/page-C00YAkaB.js +1 -0
  109. zenml/zen_server/dashboard/assets/{page-N4qoPHKb.js → page-CD-DcWoy.js} +1 -1
  110. zenml/zen_server/dashboard/assets/page-COXXJj1k.js +1 -0
  111. zenml/zen_server/dashboard/assets/page-CbpvrsDL.js +1 -0
  112. zenml/zen_server/dashboard/assets/page-CdMWnQak.js +1 -0
  113. zenml/zen_server/dashboard/assets/{page-ClUVkl-O.js → page-CjGdWY13.js} +1 -1
  114. zenml/zen_server/dashboard/assets/page-CwxrFarU.js +1 -0
  115. zenml/zen_server/dashboard/assets/{page-DLixvR-7.js → page-D01JhjQB.js} +1 -1
  116. zenml/zen_server/dashboard/assets/page-D6uU2ax4.js +1 -0
  117. zenml/zen_server/dashboard/assets/page-D7S3aCbF.js +1 -0
  118. zenml/zen_server/dashboard/assets/{page-9yplj5JT.js → page-DLC-bNBP.js} +1 -1
  119. zenml/zen_server/dashboard/assets/page-DXSTpqRD.js +1 -0
  120. zenml/zen_server/dashboard/assets/{page-DzpVUZ8f.js → page-DakHVWXF.js} +1 -1
  121. zenml/zen_server/dashboard/assets/{page-DIOXwhiD.js → page-Df-Fw0aq.js} +1 -1
  122. zenml/zen_server/dashboard/assets/{page-B-y2XKIc.js → page-DfbXf_8s.js} +1 -1
  123. zenml/zen_server/dashboard/assets/page-DjRJCGb3.js +1 -0
  124. zenml/zen_server/dashboard/assets/{page-C0N5q3l7.js → page-Djikxq_S.js} +1 -1
  125. zenml/zen_server/dashboard/assets/page-Dnovpa0i.js +3 -0
  126. zenml/zen_server/dashboard/assets/page-Dot3LPmL.js +1 -0
  127. zenml/zen_server/dashboard/assets/page-Vcxara9U.js +1 -0
  128. zenml/zen_server/dashboard/assets/page-Xynx4btY.js +14 -0
  129. zenml/zen_server/dashboard/assets/page-YpKAqVSa.js +1 -0
  130. zenml/zen_server/dashboard/assets/page-yYC9OI-E.js +1 -0
  131. zenml/zen_server/dashboard/assets/{persist-DNb5cdrU.js → persist-Coz7ZWvz.js} +1 -1
  132. zenml/zen_server/dashboard/assets/{persist-CP0JmYZ4.js → persist-GjC8PZoC.js} +1 -1
  133. zenml/zen_server/dashboard/assets/{plus-C9IxgN2M.js → plus-tf1V2hTJ.js} +1 -1
  134. zenml/zen_server/dashboard/assets/{refresh-BVu22P_C.js → refresh-BjOeWlEq.js} +1 -1
  135. zenml/zen_server/dashboard/assets/{rocket-CONEmRmB.js → rocket-DjT2cDvG.js} +1 -1
  136. zenml/zen_server/dashboard/assets/sharedSchema-CQb14VSr.js +14 -0
  137. zenml/zen_server/dashboard/assets/stack-detail-query-OPEW-cDJ.js +1 -0
  138. zenml/zen_server/dashboard/assets/{tick-circle-CM1ZScbQ.js → tick-circle-BEX_Tp4v.js} +1 -1
  139. zenml/zen_server/dashboard/assets/{trash-DkJHMOg7.js → trash-arLUMWMS.js} +1 -1
  140. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-DsU8cNVl.js → update-server-settings-mutation-LwuQfHYn.js} +1 -1
  141. zenml/zen_server/dashboard/assets/upgrade-form-CwRHBuXB.webp +0 -0
  142. zenml/zen_server/dashboard/assets/url-CkvKAnwF.js +1 -0
  143. zenml/zen_server/dashboard/assets/{zod-D89GC_vc.js → zod-BwEbpOxH.js} +1 -1
  144. zenml/zen_server/dashboard/index.html +7 -7
  145. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  146. zenml/zen_server/deploy/helm/README.md +2 -2
  147. zenml/zen_server/exceptions.py +2 -0
  148. zenml/zen_server/jwt.py +30 -13
  149. zenml/zen_server/routers/auth_endpoints.py +134 -102
  150. zenml/zen_server/routers/logs_endpoints.py +66 -0
  151. zenml/zen_server/template_execution/utils.py +14 -16
  152. zenml/zen_server/utils.py +27 -0
  153. zenml/zen_server/zen_server_api.py +6 -1
  154. zenml/zen_stores/migrations/versions/0.70.0_release.py +23 -0
  155. zenml/zen_stores/migrations/versions/904464ea4041_add_pipeline_model_run_unique_constraints.py +192 -0
  156. zenml/zen_stores/rest_zen_store.py +13 -10
  157. zenml/zen_stores/schemas/model_schemas.py +25 -1
  158. zenml/zen_stores/schemas/pipeline_run_schemas.py +5 -0
  159. zenml/zen_stores/schemas/pipeline_schemas.py +8 -2
  160. zenml/zen_stores/sql_zen_store.py +215 -121
  161. {zenml_nightly-0.68.1.dev20241111.dist-info → zenml_nightly-0.70.0.dev20241114.dist-info}/METADATA +2 -2
  162. {zenml_nightly-0.68.1.dev20241111.dist-info → zenml_nightly-0.70.0.dev20241114.dist-info}/RECORD +165 -151
  163. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-C6N2rGrB.js +0 -1
  164. zenml/zen_server/dashboard/assets/ComponentBadge-DUiEYJHu.js +0 -1
  165. zenml/zen_server/dashboard/assets/ComponentFallbackDialog-BFoH5K4V.js +0 -1
  166. zenml/zen_server/dashboard/assets/ComponentIcon-CAIoUis2.js +0 -1
  167. zenml/zen_server/dashboard/assets/Partials-YPBB3V4q.js +0 -1
  168. zenml/zen_server/dashboard/assets/ProviderIcon-Bb3Xha5A.js +0 -1
  169. zenml/zen_server/dashboard/assets/RunSelector-DCiL3M1c.js +0 -1
  170. zenml/zen_server/dashboard/assets/SearchField-DfUiGFVd.js +0 -1
  171. zenml/zen_server/dashboard/assets/Tick-CykQFPj2.js +0 -1
  172. zenml/zen_server/dashboard/assets/cloud-only-B-s_HMDm.js +0 -1
  173. zenml/zen_server/dashboard/assets/codespaces-BitYDX9d.gif +0 -0
  174. zenml/zen_server/dashboard/assets/create-stack-CEmaPZ4c.js +0 -1
  175. zenml/zen_server/dashboard/assets/delete-run-D-LKbGyz.js +0 -1
  176. zenml/zen_server/dashboard/assets/index-Bpmj40BI.js +0 -1
  177. zenml/zen_server/dashboard/assets/index-CbU4Ln_E.css +0 -1
  178. zenml/zen_server/dashboard/assets/index-DKPhqP2B.js +0 -1
  179. zenml/zen_server/dashboard/assets/page-BBpOxVcY.js +0 -1
  180. zenml/zen_server/dashboard/assets/page-BRInM1Lg.js +0 -1
  181. zenml/zen_server/dashboard/assets/page-BjjlMk7s.js +0 -1
  182. zenml/zen_server/dashboard/assets/page-Bvd7YH2A.js +0 -1
  183. zenml/zen_server/dashboard/assets/page-CT3Nep8W.js +0 -1
  184. zenml/zen_server/dashboard/assets/page-C_f47pBf.js +0 -1
  185. zenml/zen_server/dashboard/assets/page-Cmv8C_yM.js +0 -3
  186. zenml/zen_server/dashboard/assets/page-CyN2bdWG.js +0 -1
  187. zenml/zen_server/dashboard/assets/page-CzzXH4fs.js +0 -1
  188. zenml/zen_server/dashboard/assets/page-DTlGjgnG.js +0 -1
  189. zenml/zen_server/dashboard/assets/page-Dbpl86h0.js +0 -1
  190. zenml/zen_server/dashboard/assets/page-Ddgy6kDS.js +0 -1
  191. zenml/zen_server/dashboard/assets/page-DtCAfBLy.js +0 -9
  192. zenml/zen_server/dashboard/assets/page-Dx16z7nA.js +0 -1
  193. zenml/zen_server/dashboard/assets/page-McUyYbo1.js +0 -1
  194. zenml/zen_server/dashboard/assets/page-T1P3RyAR.js +0 -1
  195. zenml/zen_server/dashboard/assets/page-bKaULTGG.js +0 -1
  196. zenml/zen_server/dashboard/assets/page-sbXUJy9t.js +0 -1
  197. zenml/zen_server/dashboard/assets/sharedSchema-TMLu-nYQ.js +0 -14
  198. zenml/zen_server/dashboard/assets/stack-detail-query-xmYxSsUY.js +0 -1
  199. zenml/zen_server/dashboard/assets/url-D5le3J4q.js +0 -1
  200. {zenml_nightly-0.68.1.dev20241111.dist-info → zenml_nightly-0.70.0.dev20241114.dist-info}/LICENSE +0 -0
  201. {zenml_nightly-0.68.1.dev20241111.dist-info → zenml_nightly-0.70.0.dev20241114.dist-info}/WHEEL +0 -0
  202. {zenml_nightly-0.68.1.dev20241111.dist-info → zenml_nightly-0.70.0.dev20241114.dist-info}/entry_points.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{c as Ne,g as br,j as Un}from"./@radix-DP6vWzyx.js";function wr(n,e){const t={};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function _e(n,e){return(Er.jsx?Cr:Sr).test(n)}const Ir=/[ \t\n\f\r]/g;function Ar(n){return typeof n=="object"?n.type==="text"?Be(n.value):!1:Be(n)}function Be(n){return n.replace(Ir,"")===""}class Nn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}Nn.prototype.property={};Nn.prototype.normal={};Nn.prototype.space=null;function Tt(n,e){const t={},r={};let i=-1;for(;++i<n.length;)Object.assign(t,n[i].property),Object.assign(r,n[i].normal);return new Nn(t,r,e)}function se(n){return n.toLowerCase()}class tn{constructor(e,t){this.property=e,this.attribute=t}}tn.prototype.space=null;tn.prototype.boolean=!1;tn.prototype.booleanish=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.number=!1;tn.prototype.commaSeparated=!1;tn.prototype.spaceSeparated=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.mustUseProperty=!1;tn.prototype.defined=!1;let Pr=0;const L=Sn(),$=Sn(),zt=Sn(),k=Sn(),B=Sn(),An=Sn(),Z=Sn();function Sn(){return 2**++Pr}const ce=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:An,number:k,overloadedBoolean:zt,spaceSeparated:B},Symbol.toStringTag,{value:"Module"})),Gn=Object.keys(ce);class xe extends tn{constructor(e,t,r,i){let l=-1;if(super(e,t),je(this,"space",i),typeof r=="number")for(;++l<Gn.length;){const o=Gn[l];je(this,Gn[l],(r&ce[o])===ce[o])}}}xe.prototype.defined=!0;function je(n,e,t){t&&(n[e]=t)}const Tr={}.hasOwnProperty;function Tn(n){const e={},t={};let r;for(r in n.properties)if(Tr.call(n.properties,r)){const i=n.properties[r],l=new xe(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),e[r]=l,t[se(r)]=r,t[se(l.attribute)]=r}return new Nn(e,t,n.space)}const Lt=Tn({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ot=Tn({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Dt(n,e){return e in n?n[e]:e}function Ft(n,e){return Dt(n,e.toLowerCase())}const vt=Tn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ft,properties:{xmlns:null,xmlnsXLink:null}}),Rt=Tn({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:$,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:B,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:B,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null}}),zr=Tn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ft,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:An,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,cols:k,colSpan:null,content:null,contentEditable:$,controls:L,controlsList:B,coords:k|An,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:zt,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:k,hidden:L,high:k,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:k,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:k,rowSpan:k,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:L,disableRemotePlayback:L,prefix:null,property:null,results:k,security:null,unselectable:null}}),Lr=Tn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Dt,properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:An,g2:An,glyphName:An,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Or=/^data[-\w.:]+$/i,He=/-[a-z]/g,Dr=/[A-Z]/g;function Fr(n,e){const t=se(e);let r=e,i=tn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Or.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(He,Rr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!He.test(l)){let o=l.replace(Dr,vr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xe}return new i(r,e)}function vr(n){return"-"+n.toLowerCase()}function Rr(n){return n.charAt(1).toUpperCase()}const Mr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nr=Tt([Ot,Lt,vt,Rt,zr],"html"),ke=Tt([Ot,Lt,vt,Rt,Lr],"svg");function _r(n){return n.join(" ").trim()}var Mt={},Ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Br=/\n/g,jr=/^\s*/,Hr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ur=/^:\s*/,Vr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qr=/^[;\s]*/,$r=/^\s+|\s+$/g,Wr=`
1
+ import{c as Ne,g as br,j as Un}from"./@radix-DeK6qiuw.js";function wr(n,e){const t={};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function _e(n,e){return(Er.jsx?Cr:Sr).test(n)}const Ir=/[ \t\n\f\r]/g;function Ar(n){return typeof n=="object"?n.type==="text"?Be(n.value):!1:Be(n)}function Be(n){return n.replace(Ir,"")===""}class Nn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}Nn.prototype.property={};Nn.prototype.normal={};Nn.prototype.space=null;function Tt(n,e){const t={},r={};let i=-1;for(;++i<n.length;)Object.assign(t,n[i].property),Object.assign(r,n[i].normal);return new Nn(t,r,e)}function se(n){return n.toLowerCase()}class tn{constructor(e,t){this.property=e,this.attribute=t}}tn.prototype.space=null;tn.prototype.boolean=!1;tn.prototype.booleanish=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.number=!1;tn.prototype.commaSeparated=!1;tn.prototype.spaceSeparated=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.mustUseProperty=!1;tn.prototype.defined=!1;let Pr=0;const L=Sn(),$=Sn(),zt=Sn(),k=Sn(),B=Sn(),An=Sn(),Z=Sn();function Sn(){return 2**++Pr}const ce=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:An,number:k,overloadedBoolean:zt,spaceSeparated:B},Symbol.toStringTag,{value:"Module"})),Gn=Object.keys(ce);class xe extends tn{constructor(e,t,r,i){let l=-1;if(super(e,t),je(this,"space",i),typeof r=="number")for(;++l<Gn.length;){const o=Gn[l];je(this,Gn[l],(r&ce[o])===ce[o])}}}xe.prototype.defined=!0;function je(n,e,t){t&&(n[e]=t)}const Tr={}.hasOwnProperty;function Tn(n){const e={},t={};let r;for(r in n.properties)if(Tr.call(n.properties,r)){const i=n.properties[r],l=new xe(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),e[r]=l,t[se(r)]=r,t[se(l.attribute)]=r}return new Nn(e,t,n.space)}const Lt=Tn({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ot=Tn({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Dt(n,e){return e in n?n[e]:e}function Ft(n,e){return Dt(n,e.toLowerCase())}const vt=Tn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ft,properties:{xmlns:null,xmlnsXLink:null}}),Rt=Tn({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:$,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:B,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:B,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null}}),zr=Tn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ft,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:An,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,cols:k,colSpan:null,content:null,contentEditable:$,controls:L,controlsList:B,coords:k|An,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:zt,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:k,hidden:L,high:k,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:k,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:k,rowSpan:k,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:L,disableRemotePlayback:L,prefix:null,property:null,results:k,security:null,unselectable:null}}),Lr=Tn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Dt,properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:An,g2:An,glyphName:An,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Or=/^data[-\w.:]+$/i,He=/-[a-z]/g,Dr=/[A-Z]/g;function Fr(n,e){const t=se(e);let r=e,i=tn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Or.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(He,Rr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!He.test(l)){let o=l.replace(Dr,vr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xe}return new i(r,e)}function vr(n){return"-"+n.toLowerCase()}function Rr(n){return n.charAt(1).toUpperCase()}const Mr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nr=Tt([Ot,Lt,vt,Rt,zr],"html"),ke=Tt([Ot,Lt,vt,Rt,Lr],"svg");function _r(n){return n.join(" ").trim()}var Mt={},Ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Br=/\n/g,jr=/^\s*/,Hr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ur=/^:\s*/,Vr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qr=/^[;\s]*/,$r=/^\s+|\s+$/g,Wr=`
2
2
  `,Ve="/",qe="*",wn="",Qr="comment",Xr="declaration",Yr=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var b=y.match(Br);b&&(t+=b.length);var I=y.lastIndexOf(Wr);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(b){return b.position=new o(y),s(),b}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var b=new Error(e.source+":"+t+":"+r+": "+y);if(b.reason=y,b.filename=e.source,b.line=t,b.column=r,b.source=n,!e.silent)throw b}function u(y){var b=y.exec(n);if(b){var I=b[0];return i(I),n=n.slice(I.length),b}}function s(){u(jr)}function c(y){var b;for(y=y||[];b=f();)b!==!1&&y.push(b);return y}function f(){var y=l();if(!(Ve!=n.charAt(0)||qe!=n.charAt(1))){for(var b=2;wn!=n.charAt(b)&&(qe!=n.charAt(b)||Ve!=n.charAt(b+1));)++b;if(b+=2,wn===n.charAt(b-1))return a("End of comment missing");var I=n.slice(2,b-2);return r+=2,i(I),n=n.slice(b),r+=2,y({type:Qr,comment:I})}}function d(){var y=l(),b=u(Hr);if(b){if(f(),!u(Ur))return a("property missing ':'");var I=u(Vr),w=y({type:Xr,property:$e(b[0].replace(Ue,wn)),value:I?$e(I[0].replace(Ue,wn)):wn});return u(qr),w}}function p(){var y=[];c(y);for(var b;b=d();)b!==!1&&(y.push(b),c(y));return y}return s(),p()};function $e(n){return n?n.replace($r,wn):wn}var Kr=Ne&&Ne.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Mt,"__esModule",{value:!0});var Jr=Kr(Yr);function Gr(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,Jr.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var We=Mt.default=Gr;const Zr=We.default||We,Nt=_t("end"),be=_t("start");function _t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ni(n){const e=be(n),t=Nt(n);if(e&&t)return{start:e,end:t}}function vn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Qe(n.position):"start"in n||"end"in n?Qe(n):"line"in n||"column"in n?pe(n):""}function pe(n){return Xe(n&&n.line)+":"+Xe(n&&n.column)}function Qe(n){return pe(n&&n.start)+"-"+pe(n&&n.end)}function Xe(n){return n&&typeof n=="number"?n:1}class Y extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=vn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;const we={}.hasOwnProperty,ei=new Map,ti=/[A-Z]/g,ri=/-([a-z])/g,ii=new Set(["table","tbody","thead","tfoot","tr"]),li=new Set(["td","th"]),Bt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oi(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=mi(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=hi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?ke:Nr,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=jt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function jt(n,e,t){if(e.type==="element")return ai(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return ui(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return ci(n,e,t);if(e.type==="mdxjsEsm")return si(n,e);if(e.type==="root")return pi(n,e,t);if(e.type==="text")return fi(n,e)}function ai(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ke,n.schema=i),n.ancestors.push(e);const l=Ut(n,e.tagName,!1),o=di(n,e);let a=Ce(n,e);return ii.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ar(u):!0})),Ht(n,o,l,e),Se(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function ui(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}Mn(n,e.position)}function si(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);Mn(n,e.position)}function ci(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=ke,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Ut(n,e.name,!0),o=gi(n,e),a=Ce(n,e);return Ht(n,o,l,e),Se(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function pi(n,e,t){const r={};return Se(r,Ce(n,e)),n.create(e,n.Fragment,r,t)}function fi(n,e){return e.value}function Ht(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Se(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function hi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function mi(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=be(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function di(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&we.call(e.properties,i)){const l=yi(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&li.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function gi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else Mn(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else Mn(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ce(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ei;for(;++r<e.children.length;){const l=e.children[r];let o;if(n.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const s=i.get(u)||0;o=u+"-"+s,i.set(u,s+1)}}const a=jt(n,l,o);a!==void 0&&t.push(a)}return t}function yi(n,e,t){const r=Fr(n.schema,e);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?wr(t):_r(t)),r.property==="style"){let i=typeof t=="object"?t:xi(n,String(t));return n.stylePropertyNameCase==="css"&&(i=ki(i)),["style",i]}return[n.elementAttributeNameCase==="react"&&r.space?Mr[r.property]||r.property:r.attribute,t]}}function xi(n,e){const t={};try{Zr(e,r)}catch(i){if(!n.ignoreInvalidStyle){const l=i,o=new Y("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Bt+"#cannot-parse-style-attribute",o}}return t;function r(i,l){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(ri,wi)),t[o]=l}}function Ut(n,e,t){let r;if(!t)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let l=-1,o;for(;++l<i.length;){const a=_e(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=_e(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return we.call(n.components,i)?n.components[i]:i}if(n.evaluater)return n.evaluater.evaluateExpression(r);Mn(n)}function Mn(n,e){const t=new Y("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=n.filePath||void 0,t.url=Bt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ki(n){const e={};let t;for(t in n)we.call(n,t)&&(e[bi(t)]=n[t]);return e}function bi(n){let e=n.replace(ti,Si);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function wi(n,e){return e.toUpperCase()}function Si(n){return"-"+n.toLowerCase()}const Zn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ci={};function Ei(n,e){const t=Ci,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Vt(n,r,i)}function Vt(n,e,t){if(Ii(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(e&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Ye(n.children,e,t)}return Array.isArray(n)?Ye(n,e,t):""}function Ye(n,e,t){const r=[];let i=-1;for(;++i<n.length;)r[i]=Vt(n[i],e,t);return r.join("")}function Ii(n){return!!(n&&typeof n=="object")}const Ke=document.createElement("i");function Ee(n){const e="&"+n+";";Ke.innerHTML=e;const t=Ke.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===e?!1:t}function cn(n,e,t,r){const i=n.length;let l=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(e,0),n.splice(...o),l+=1e4,e+=1e4}function en(n,e){return n.length>0?(cn(n,n.length,0,e),n):e}const Je={}.hasOwnProperty;function Ai(n){const e={};let t=-1;for(;++t<n.length;)Pi(e,n[t]);return e}function Pi(n,e){let t;for(t in e){const i=(Je.call(n,t)?n[t]:void 0)||(n[t]={}),l=e[t];let o;if(l)for(o in l){Je.call(i,o)||(i[o]=[]);const a=l[o];Ti(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ti(n,e){let t=-1;const r=[];for(;++t<e.length;)(e[t].add==="after"?n:r).push(e[t]);cn(n,0,0,r)}function qt(n,e){const t=Number.parseInt(n,e);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=yn(/[A-Za-z]/),nn=yn(/[\dA-Za-z]/),zi=yn(/[#-'*+\--9=?A-Z^-~]/);function fe(n){return n!==null&&(n<32||n===127)}const he=yn(/\d/),Li=yn(/[\dA-Fa-f]/),Oi=yn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function M(n){return n===-2||n===-1||n===32}const Di=yn(new RegExp("\\p{P}|\\p{S}","u")),Fi=yn(/\s/);function yn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function zn(n){const e=[];let t=-1,r=0,i=0;for(;++t<n.length;){const l=n.charCodeAt(t);let o="";if(l===37&&nn(n.charCodeAt(t+1))&&nn(n.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return M(u)?(n.enter(t),a(u)):e(u)}function a(u){return M(u)&&l++<i?(n.consume(u),a):(n.exit(t),e(u))}}const vi={tokenize:Ri};function Ri(n){const e=n.attempt(this.parser.constructs.contentInitial,r,i);let t;return e;function r(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),j(n,e,"linePrefix")}function i(a){return n.enter("paragraph"),l(a)}function l(a){const u=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return T(a)?(n.consume(a),n.exit("chunkText"),l):(n.consume(a),o)}}const Mi={tokenize:Ni},Ge={tokenize:_i};function Ni(n){const e=this,t=[];let r=0,i,l,o;return a;function a(C){if(r<t.length){const v=t[r];return e.containerState=v[1],n.attempt(v[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&E();const v=e.events.length;let O=v,x;for(;O--;)if(e.events[O][0]==="exit"&&e.events[O][1].type==="chunkFlow"){x=e.events[O][1].end;break}w(r);let R=v;for(;R<e.events.length;)e.events[R][1].end=Object.assign({},x),R++;return cn(e.events,O+1,0,e.events.slice(v)),e.events.length=R,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return d(C);if(i.currentConstruct&&i.currentConstruct.concrete)return y(C);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},n.check(Ge,c,f)(C)}function c(C){return i&&E(),w(r),d(C)}function f(C){return e.parser.lazy[e.now().line]=r!==t.length,o=e.now().offset,y(C)}function d(C){return e.containerState={},n.attempt(Ge,p,y)(C)}function p(C){return r++,t.push([e.currentConstruct,e.containerState]),d(C)}function y(C){if(C===null){i&&E(),w(0),n.consume(C);return}return i=i||e.parser.flow(e.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),b(C)}function b(C){if(C===null){I(n.exit("chunkFlow"),!0),w(0),n.consume(C);return}return T(C)?(n.consume(C),I(n.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(n.consume(C),b)}function I(C,v){const O=e.sliceStream(C);if(v&&O.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(O),e.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const R=e.events.length;let V=R,_,H;for(;V--;)if(e.events[V][0]==="exit"&&e.events[V][1].type==="chunkFlow"){if(_){H=e.events[V][1].end;break}_=!0}for(w(r),x=R;x<e.events.length;)e.events[x][1].end=Object.assign({},H),x++;cn(e.events,V+1,0,e.events.slice(R)),e.events.length=x}}function w(C){let v=t.length;for(;v-- >C;){const O=t[v];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function _i(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ze(n){if(n===null||J(n)||Fi(n))return 1;if(Di(n))return 2}function Ie(n,e,t){const r=[];let i=-1;for(;++i<n.length;){const l=n[i].resolveAll;l&&!r.includes(l)&&(e=l(e,t),r.push(l))}return e}const me={name:"attention",tokenize:ji,resolveAll:Bi};function Bi(n,e){let t=-1,r,i,l,o,a,u,s,c;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(r=t;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&e.sliceSerialize(n[r][1]).charCodeAt(0)===e.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[r][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;u=n[r][1].end.offset-n[r][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);nt(f,-u),nt(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=en(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=en(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=en(s,Ie(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=en(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=en(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,cn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function ji(n,e){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ze(r);let l;return o;function o(u){return l=u,n.enter("attentionSequence"),a(u)}function a(u){if(u===l)return n.consume(u),a;const s=n.exit("attentionSequence"),c=Ze(u),f=!c||c===2&&i||t.includes(u),d=!i||i===2&&c||t.includes(r);return s._open=!!(l===42?f:f&&(i||!d)),s._close=!!(l===42?d:d&&(c||!f)),e(u)}}function nt(n,e){n.column+=e,n.offset+=e,n._bufferIndex+=e}const Hi={name:"autolink",tokenize:Ui};function Ui(n,e,t){let r=0;return i;function i(p){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}function l(p){return sn(p)?(n.consume(p),o):s(p)}function o(p){return p===43||p===45||p===46||nn(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(n.consume(p),r=0,u):(p===43||p===45||p===46||nn(p))&&r++<32?(n.consume(p),a):(r=0,s(p))}function u(p){return p===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),e):p===null||p===32||p===60||fe(p)?t(p):(n.consume(p),u)}function s(p){return p===64?(n.consume(p),c):zi(p)?(n.consume(p),s):t(p)}function c(p){return nn(p)?f(p):t(p)}function f(p){return p===46?(n.consume(p),r=0,c):p===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),e):d(p)}function d(p){if((p===45||nn(p))&&r++<63){const y=p===45?d:f;return n.consume(p),y}return t(p)}}const Xn={tokenize:Vi,partial:!0};function Vi(n,e,t){return r;function r(l){return M(l)?j(n,i,"linePrefix")(l):i(l)}function i(l){return l===null||T(l)?e(l):t(l)}}const $t={name:"blockQuote",tokenize:qi,continuation:{tokenize:$i},exit:Wi};function qi(n,e,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(o),n.exit("blockQuoteMarker"),l}return t(o)}function l(o){return M(o)?(n.enter("blockQuotePrefixWhitespace"),n.consume(o),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),e):(n.exit("blockQuotePrefix"),e(o))}}function $i(n,e,t){const r=this;return i;function i(o){return M(o)?j(n,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return n.attempt($t,e,t)(o)}}function Wi(n){n.exit("blockQuote")}const Wt={name:"characterEscape",tokenize:Qi};function Qi(n,e,t){return r;function r(l){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),i}function i(l){return Oi(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),e):t(l)}}const Qt={name:"characterReference",tokenize:Xi};function Xi(n,e,t){const r=this;let i=0,l,o;return a;function a(f){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),u}function u(f){return f===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(f),n.exit("characterReferenceMarkerNumeric"),s):(n.enter("characterReferenceValue"),l=31,o=nn,c(f))}function s(f){return f===88||f===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(f),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,o=Li,c):(n.enter("characterReferenceValue"),l=7,o=he,c(f))}function c(f){if(f===59&&i){const d=n.exit("characterReferenceValue");return o===nn&&!Ee(r.sliceSerialize(d))?t(f):(n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),n.exit("characterReference"),e)}return o(f)&&i++<l?(n.consume(f),c):t(f)}}const et={tokenize:Ki,partial:!0},tt={name:"codeFenced",tokenize:Yi,concrete:!0};function Yi(n,e,t){const r=this,i={tokenize:O,partial:!0};let l=0,o=0,a;return u;function u(x){return s(x)}function s(x){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=x,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===a?(o++,n.consume(x),c):o<3?t(x):(n.exit("codeFencedFenceSequence"),M(x)?j(n,f,"whitespace")(x):f(x))}function f(x){return x===null||T(x)?(n.exit("codeFencedFence"),r.interrupt?e(x):n.check(et,b,v)(x)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===null||T(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),f(x)):M(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(n,p,"whitespace")(x)):x===96&&x===a?t(x):(n.consume(x),d)}function p(x){return x===null||T(x)?f(x):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||T(x)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?t(x):(n.consume(x),y)}function b(x){return n.attempt(i,v,I)(x)}function I(x){return n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),w}function w(x){return l>0&&M(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(et,b,v)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function v(x){return n.exit("codeFenced"),e(x)}function O(x,R,V){let _=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),M(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):V(F)}function U(F){return F===a?(_++,x.consume(F),U):_>=o?(x.exit("codeFencedFenceSequence"),M(F)?j(x,q,"whitespace")(F):q(F)):V(F)}function q(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):V(F)}}}function Ki(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const ne={name:"codeIndented",tokenize:Gi},Ji={tokenize:Zi,partial:!0};function Gi(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",5)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(Ji,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function Zi(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const nl={name:"codeText",tokenize:rl,resolve:el,previous:tl};function el(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r<e;)if(n[r][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[e][1].type="codeTextPadding",t+=2,e-=2;break}}for(r=t-1,e++;++r<=e;)i===void 0?r!==e&&n[r][1].type!=="lineEnding"&&(i=r):(r===e||n[r][1].type==="lineEnding")&&(n[i][1].type="codeTextData",r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return n}function tl(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rl(n,e,t){let r=0,i,l;return o;function o(f){return n.enter("codeText"),n.enter("codeTextSequence"),a(f)}function a(f){return f===96?(n.consume(f),r++,a):(n.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(n.enter("space"),n.consume(f),n.exit("space"),u):f===96?(l=n.enter("codeTextSequence"),i=0,c(f)):T(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),u):(n.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||T(f)?(n.exit("codeTextData"),u(f)):(n.consume(f),s)}function c(f){return f===96?(n.consume(f),i++,c):i===r?(n.exit("codeTextSequence"),n.exit("codeText"),e(f)):(l.type="codeTextData",s(f))}}function Xt(n){const e={};let t=-1,r,i,l,o,a,u,s;for(;++t<n.length;){for(;t in e;)t=e[t];if(r=n[t],t&&r[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,il(n,t)),t=e[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--&&(o=n[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(n[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},n[i][1].start),a=n.slice(i,t),a.unshift(r),cn(n,i,t-i+1,a))}}return!s}function il(n,e){const t=n[e][1],r=n[e][2];let i=e-1;const l=[],o=t._tokenizer||r.parser[t.contentType](t.start),a=o.events,u=[],s={};let c,f,d=-1,p=t,y=0,b=0;const I=[b];for(;p;){for(;n[++i][1]!==p;);l.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,I.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),d=I.length;d--;){const w=a.slice(I[d],I[d+1]),E=l.pop();u.unshift([E,E+w.length-1]),cn(n,E,2,w)}for(d=-1;++d<u.length;)s[y+u[d][0]]=y+u[d][1],y+=u[d][1]-u[d][0]-1;return s}const ll={tokenize:ul,resolve:al},ol={tokenize:sl,partial:!0};function al(n){return Xt(n),n}function ul(n,e){let t;return r;function r(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?n.check(ol,o,l)(a):(n.consume(a),i)}function l(a){return n.exit("chunkContent"),n.exit("content"),e(a)}function o(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function sl(n,e,t){const r=this;return i;function i(o){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),j(n,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function Yt(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||fe(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),b(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function b(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c<s&&w===40?(n.consume(w),c++,b):w===41?(n.consume(w),c--,b):w===null||w===32||w===40||fe(w)?t(w):(n.consume(w),w===92?I:b)}function I(w){return w===40||w===41||w===92?(n.consume(w),b):b(w)}}function Kt(n,e,t,r,i,l){const o=this;let a=0,u;return s;function s(p){return n.enter(r),n.enter(i),n.consume(p),n.exit(i),n.enter(l),c}function c(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!M(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function Jt(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Rn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):M(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const cl={name:"definition",tokenize:fl},pl={tokenize:hl,partial:!0};function fl(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return Kt.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Rn(n,s)(p):s(p)}function s(p){return Yt(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(pl,f,f)(p)}function f(p){return M(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function hl(n,e,t){return r;function r(a){return J(a)?Rn(n,i)(a):t(a)}function i(a){return Jt(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return M(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const ml={name:"hardBreakEscape",tokenize:dl};function dl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const gl={name:"headingAtx",tokenize:xl,resolve:yl};function yl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},cn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function xl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):M(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const kl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],bl={name:"htmlFlow",tokenize:El,resolveTo:Cl,concrete:!0},wl={tokenize:Al,partial:!0},Sl={tokenize:Il,partial:!0};function Cl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function El(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,b):m===63?(n.consume(m),i=3,r.interrupt?e:h):sn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):sn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const on="CDATA[";return m===on.charCodeAt(a++)?(n.consume(m),a===on.length?r.interrupt?e:A:y):t(m)}function b(m){return sn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const on=m===47,xn=o.toLowerCase();return!on&&!l&&rt.includes(xn)?(i=1,r.interrupt?e(m):A(m)):kl.includes(o.toLowerCase())?(i=6,on?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||nn(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return M(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||sn(m)?(n.consume(m),v):M(m)?(n.consume(m),C):H(m)}function v(m){return m===45||m===46||m===58||m===95||nn(m)?(n.consume(m),v):O(m)}function O(m){return m===61?(n.consume(m),x):M(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):M(m)?(n.consume(m),x):V(m)}function R(m){return m===u?(n.consume(m),u=null,_):m===null||T(m)?t(m):(n.consume(m),R)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),V)}function _(m){return m===47||m===62||M(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):M(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),X):m===60&&i===1?(n.consume(m),W):m===62&&i===4?(n.consume(m),ln):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),pn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(wl,fn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(Sl,q,fn)(m)}function q(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function X(m){return m===45?(n.consume(m),h):A(m)}function W(m){return m===47?(n.consume(m),o="",rn):A(m)}function rn(m){if(m===62){const on=o.toLowerCase();return rt.includes(on)?(n.consume(m),ln):A(m)}return sn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),rn):A(m)}function pn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),ln):m===45&&i===2?(n.consume(m),h):A(m)}function ln(m){return m===null||T(m)?(n.exit("htmlFlowData"),fn(m)):(n.consume(m),ln)}function fn(m){return n.exit("htmlFlow"),e(m)}}function Il(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function Al(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Xn,e,t)}}const Pl={name:"htmlText",tokenize:Tl};function Tl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):sn(h)?(n.consume(h),V):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):sn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,W(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?X(h):h===45?d(h):f(h)}function y(h){const ln="CDATA[";return h===ln.charCodeAt(l++)?(n.consume(h),l===ln.length?b:y):t(h)}function b(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=b,W(h)):(n.consume(h),b)}function I(h){return h===93?(n.consume(h),w):b(h)}function w(h){return h===62?X(h):h===93?(n.consume(h),w):b(h)}function E(h){return h===null||h===62?X(h):T(h)?(o=E,W(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),v):T(h)?(o=C,W(h)):(n.consume(h),C)}function v(h){return h===62?X(h):C(h)}function O(h){return sn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||nn(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,W(h)):M(h)?(n.consume(h),R):X(h)}function V(h){return h===45||nn(h)?(n.consume(h),V):h===47||h===62||J(h)?_(h):t(h)}function _(h){return h===47?(n.consume(h),X):h===58||h===95||sn(h)?(n.consume(h),H):T(h)?(o=_,W(h)):M(h)?(n.consume(h),_):X(h)}function H(h){return h===45||h===46||h===58||h===95||nn(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,W(h)):M(h)?(n.consume(h),P):_(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,W(h)):M(h)?(n.consume(h),A):(n.consume(h),q)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,W(h)):(n.consume(h),U)}function q(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?_(h):(n.consume(h),q)}function F(h){return h===47||h===62||J(h)?_(h):t(h)}function X(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function W(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),rn}function rn(h){return M(h)?j(n,pn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):pn(h)}function pn(h){return n.enter("htmlTextData"),o(h)}}const Ae={name:"labelEnd",tokenize:vl,resolveTo:Fl,resolveAll:Dl},zl={tokenize:Rl},Ll={tokenize:Ml},Ol={tokenize:Nl};function Dl(n){let e=-1;for(;++e<n.length;){const t=n[e][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(e+1,t.type==="labelImage"?4:2),t.type="data",e++)}return n}function Fl(n,e){let t=n.length,r=0,i,l,o,a;for(;t--;)if(i=n[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;n[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(n[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const u={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[o][1].end)},c={type:"labelText",start:Object.assign({},n[l+r+2][1].end),end:Object.assign({},n[o-2][1].start)};return a=[["enter",u,e],["enter",s,e]],a=en(a,n.slice(l+1,l+r+3)),a=en(a,[["enter",c,e]]),a=en(a,Ie(e.parser.constructs.insideSpan.null,n.slice(l+r+4,o-3),e)),a=en(a,[["exit",c,e],n[o-2],n[o-1],["exit",s,e]]),a=en(a,n.slice(o+1)),a=en(a,[["exit",u,e]]),cn(n,l,n.length,a),n}function vl(n,e,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?f(d):(o=r.parser.defined.includes(Pn(r.sliceSerialize({start:l.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelEnd"),u):t(d)}function u(d){return d===40?n.attempt(zl,c,o?c:f)(d):d===91?n.attempt(Ll,c,o?s:f)(d):o?c(d):f(d)}function s(d){return n.attempt(Ol,c,f)(d)}function c(d){return e(d)}function f(d){return l._balanced=!0,t(d)}}function Rl(n,e,t){return r;function r(f){return n.enter("resource"),n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),i}function i(f){return J(f)?Rn(n,l)(f):l(f)}function l(f){return f===41?c(f):Yt(n,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Rn(n,u)(f):c(f)}function a(f){return t(f)}function u(f){return f===34||f===39||f===40?Jt(n,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return J(f)?Rn(n,c)(f):c(f)}function c(f){return f===41?(n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),n.exit("resource"),e):t(f)}}function Ml(n,e,t){const r=this;return i;function i(a){return Kt.call(r,n,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):t(a)}function o(a){return t(a)}}function Nl(n,e,t){return r;function r(l){return n.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),i}function i(l){return l===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),e):t(l)}}const _l={name:"labelStartImage",tokenize:Bl,resolveAll:Ae.resolveAll};function Bl(n,e,t){const r=this;return i;function i(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),l}function l(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):e(a)}}const jl={name:"labelStartLink",tokenize:Hl,resolveAll:Ae.resolveAll};function Hl(n,e,t){const r=this;return i;function i(o){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(o),n.exit("labelMarker"),n.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):e(o)}}const ee={name:"lineEnding",tokenize:Ul};function Ul(n,e){return t;function t(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),j(n,e,"linePrefix")}}const Vn={name:"thematicBreak",tokenize:Vl};function Vl(n,e,t){let r=0,i;return l;function l(s){return n.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(n.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),M(s)?j(n,a,"whitespace")(s):a(s))}}const K={name:"list",tokenize:Wl,continuation:{tokenize:Ql},exit:Yl},ql={tokenize:Kl,partial:!0},$l={tokenize:Xl,partial:!0};function Wl(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:he(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Vn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return he(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Xn,r.interrupt?t:c,n.attempt(ql,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return M(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function Ql(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Xn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt($l,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(K,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Xl(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function Yl(n){n.exit(this.containerState.type)}function Kl(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!M(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const it={name:"setextUnderline",tokenize:Gl,resolveTo:Jl};function Jl(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function Gl(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),M(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const Zl={tokenize:no};function no(n){const e=this,t=n.attempt(Xn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(ll,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const eo={resolveAll:Zt()},to=Gt("string"),ro=Gt("text");function Gt(n){return{tokenize:e,resolveAll:Zt(n==="text"?io:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Zt(n){return e;function e(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return n?n(t,r):t}}function io(n,e){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const r=n[t-1][1],i=e.sliceStream(r);let l=i.length,o=-1,a=0,u;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)u=!0,a++;else if(s!==-1){l++;break}}if(a){const s={type:t===n.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},s.start),r.start.offset===r.end.offset?Object.assign(r,s):(n.splice(t,0,["enter",s,e],["exit",s,e]),t+=2)}t++}return n}function lo(n,e,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],a=[];const u={consume:E,enter:C,exit:v,attempt:R(O),check:R(x),interrupt:R(x,{interrupt:!0})},s={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:p,sliceSerialize:d,now:y,defineSkip:b,write:f};let c=e.tokenize.call(s,u);return e.resolveAll&&l.push(e),s;function f(P){return o=en(o,P),I(),o[o.length-1]!==null?[]:(V(e,0),s.events=Ie(l,s.events,s),s.events)}function d(P,A){return ao(p(P),A)}function p(P){return oo(o,P)}function y(){const{line:P,column:A,offset:U,_index:q,_bufferIndex:F}=r;return{line:P,column:A,offset:U,_index:q,_bufferIndex:F}}function b(P){i[P.line]=P.column,H()}function I(){let P;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<A.length;)w(A.charCodeAt(r._bufferIndex));else w(A)}}function w(P){c=c(P)}function E(P){T(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,H()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function C(P,A){const U=A||{};return U.type=P,U.start=y(),s.events.push(["enter",U,s]),a.push(U),U}function v(P){const A=a.pop();return A.end=y(),s.events.push(["exit",A,s]),A}function O(P,A){V(P,A.from)}function x(P,A){A.restore()}function R(P,A){return U;function U(q,F,X){let W,rn,pn,h;return Array.isArray(q)?fn(q):"tokenize"in q?fn([q]):ln(q);function ln(Q){return Ln;function Ln(dn){const Cn=dn!==null&&Q[dn],kn=dn!==null&&Q.null,Jn=[...Array.isArray(Cn)?Cn:Cn?[Cn]:[],...Array.isArray(kn)?kn:kn?[kn]:[]];return fn(Jn)(dn)}}function fn(Q){return W=Q,rn=0,Q.length===0?X:m(Q[rn])}function m(Q){return Ln;function Ln(dn){return h=_(),pn=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?xn():Q.tokenize.call(A?Object.assign(Object.create(s),A):s,u,on,xn)(dn)}}function on(Q){return P(pn,h),F}function xn(Q){return h.restore(),++rn<W.length?m(W[rn]):X}}}function V(P,A){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&cn(s.events,A,s.events.length-A,P.resolve(s.events.slice(A),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function _(){const P=y(),A=s.previous,U=s.currentConstruct,q=s.events.length,F=Array.from(a);return{restore:X,from:q};function X(){r=P,s.previous=A,s.currentConstruct=U,s.events.length=q,a=F,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function oo(n,e){const t=e.start._index,r=e.start._bufferIndex,i=e.end._index,l=e.end._bufferIndex;let o;if(t===i)o=[n[t].slice(r,l)];else{if(o=n.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function ao(n,e){let t=-1;const r=[];let i;for(;++t<n.length;){const l=n[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
3
  `;break}case-3:{o=`\r
4
4
  `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const uo={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:$t},so={91:cl},co={[-2]:ne,[-1]:ne,32:ne},po={35:gl,42:Vn,45:[it,Vn],60:bl,61:it,95:Vn,96:tt,126:tt},fo={38:Qt,92:Wt},ho={[-5]:ee,[-4]:ee,[-3]:ee,33:_l,38:Qt,42:me,60:[Hi,Pl],91:jl,92:[ml,Wt],93:Ae,95:me,96:nl},mo={null:[me,eo]},go={null:[42,95]},yo={null:[]},xo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:go,contentInitial:so,disable:yo,document:uo,flow:po,flowInitial:co,insideSpan:mo,string:fo,text:ho},Symbol.toStringTag,{value:"Module"}));function ko(n){const t=Ai([xo,...(n||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(vi),document:i(Mi),flow:i(Zl),string:i(to),text:i(ro)};return r;function i(l){return o;function o(a){return lo(r,l,a)}}}function bo(n){for(;!Xt(n););return n}const lt=/[\0\t\n\r]/g;function wo(){let n=1,e="",t=!0,r;return i;function i(l,o,a){const u=[];let s,c,f,d,p;for(l=e+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,e="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(lt.lastIndex=f,s=lt.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){e=l.slice(f);break}if(p===10&&f===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<d&&(u.push(l.slice(f,d)),n+=d-f),p){case 0:{u.push(65533),n++;break}case 9:{for(c=Math.ceil(n/4)*4,u.push(-2);n++<c;)u.push(-1);break}case 10:{u.push(-4),n=1;break}default:r=!0,n=1}f=d+1}return a&&(r&&u.push(-5),e&&u.push(e),u.push(null)),u}}const So=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Co(n){return n.replace(So,Eo)}function Eo(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return qt(t.slice(l?2:1),l?16:10)}return Ee(t)||n}const nr={}.hasOwnProperty;function Io(n,e,t){return typeof e!="string"&&(t=e,e=void 0),Ao(t)(bo(ko(t).document().write(wo()(n,e,!0))))}function Ao(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Re),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(De),blockQuote:l(Cn),characterEscape:_,characterReference:_,codeFenced:l(kn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(kn,o),codeText:l(Jn,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(fr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(hr),hardBreakEscape:l(Fe),hardBreakTrailing:l(Fe),htmlFlow:l(ve,o),htmlFlowData:_,htmlText:l(ve,o),htmlTextData:_,image:l(mr),label:o,link:l(Re),listItem:l(dr),listItemValue:d,listOrdered:l(Me,f),listUnordered:l(Me),paragraph:l(gr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(De),strong:l(yr),thematicBreak:l(kr)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:dn,autolinkProtocol:Ln,blockQuote:u(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:xn,characterReferenceMarkerNumeric:xn,characterReferenceValue:Q,codeFenced:u(I),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:H,codeIndented:u(w),codeText:u(F),codeTextData:H,data:H,definition:u(),definitionDestinationString:v,definitionLabelString:E,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(A),hardBreakTrailing:u(A),htmlFlow:u(U),htmlFlowData:H,htmlText:u(q),htmlTextData:H,image:u(W),label:pn,labelText:rn,lineEnding:P,link:u(X),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:on,resourceDestinationString:h,resourceTitleString:ln,resource:fn,setextHeading:u(V),setextHeadingLineSequence:R,setextHeadingText:x,strong:u(),thematicBreak:u()}};er(e,(n||{}).mdastExtensions||[]);const t={};return r;function r(g){let S={type:"root",children:[]};const z={stack:[S],tokenStack:[],config:e,enter:a,exit:s,buffer:o,resume:c,data:t},D=[];let N=-1;for(;++N<g.length;)if(g[N][1].type==="listOrdered"||g[N][1].type==="listUnordered")if(g[N][0]==="enter")D.push(N);else{const an=D.pop();N=i(g,an,N)}for(N=-1;++N<g.length;){const an=e[g[N][0]];nr.call(an,g[N][1].type)&&an[g[N][1].type].call(Object.assign({sliceSerialize:g[N][2].sliceSerialize},z),g[N][1])}if(z.tokenStack.length>0){const an=z.tokenStack[z.tokenStack.length-1];(an[1]||ot).call(z,void 0,an[0])}for(S.position={start:gn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:gn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<e.transforms.length;)S=e.transforms[N](S)||S;return S}function i(g,S,z){let D=S-1,N=-1,an=!1,bn,hn,On,Dn;for(;++D<=z;){const G=g[D];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{G[0]==="enter"?N++:N--,Dn=void 0;break}case"lineEndingBlank":{G[0]==="enter"&&(bn&&!Dn&&!N&&!On&&(On=D),Dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dn=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(bn){let En=D;for(hn=void 0;En--;){const mn=g[En];if(mn[1].type==="lineEnding"||mn[1].type==="lineEndingBlank"){if(mn[0]==="exit")continue;hn&&(g[hn][1].type="lineEndingBlank",an=!0),mn[1].type="lineEnding",hn=En}else if(!(mn[1].type==="linePrefix"||mn[1].type==="blockQuotePrefix"||mn[1].type==="blockQuotePrefixWhitespace"||mn[1].type==="blockQuoteMarker"||mn[1].type==="listItemIndent"))break}On&&(!hn||On<hn)&&(bn._spread=!0),bn.end=Object.assign({},hn?g[hn][1].start:G[1].end),g.splice(hn||D,0,["exit",bn,G[2]]),D++,z++}if(G[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};bn=En,g.splice(D,0,["enter",En,G[2]]),D++,z++,On=void 0,Dn=!0}}}return g[S][1]._spread=an,z}function l(g,S){return z;function z(D){a.call(this,g(D),D),S&&S.call(this,D)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,S,z){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,z]),g.position={start:gn(S.start),end:void 0}}function u(g){return S;function S(z){g&&g.call(this,z),s.call(this,z)}}function s(g,S){const z=this.stack.pop(),D=this.tokenStack.pop();if(D)D[0].type!==g.type&&(S?S.call(this,g,D[0]):(D[1]||ot).call(this,g,D[0]));else throw new Error("Cannot close `"+g.type+"` ("+vn({start:g.start,end:g.end})+"): it’s not open");z.position.end=gn(g.end)}function c(){return Ei(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function y(){const g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function E(g){const S=this.resume(),z=this.stack[this.stack.length-1];z.label=S,z.identifier=Pn(this.sliceSerialize(g)).toLowerCase()}function C(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function v(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function O(g){const S=this.stack[this.stack.length-1];if(!S.depth){const z=this.sliceSerialize(g).length;S.depth=z}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function R(g){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const z=this.stack[this.stack.length-1].children;let D=z[z.length-1];(!D||D.type!=="text")&&(D=xr(),D.position={start:gn(g.start),end:void 0},z.push(D)),this.stack.push(D)}function H(g){const S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=gn(g.end)}function P(g){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=S.children[S.children.length-1];z.position.end=gn(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(S.type)&&(_.call(this,g),H.call(this,g))}function A(){this.data.atHardBreak=!0}function U(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function q(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function F(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function W(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function rn(g){const S=this.sliceSerialize(g),z=this.stack[this.stack.length-2];z.label=Co(S),z.identifier=Pn(S).toLowerCase()}function pn(){const g=this.stack[this.stack.length-1],S=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const D=g.children;z.children=D}else z.alt=S}function h(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function ln(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function fn(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function on(g){const S=this.resume(),z=this.stack[this.stack.length-1];z.label=S,z.identifier=Pn(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xn(g){this.data.characterReferenceType=g.type}function Q(g){const S=this.sliceSerialize(g),z=this.data.characterReferenceType;let D;z?(D=qt(S,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):D=Ee(S);const N=this.stack.pop();N.value+=D,N.position.end=gn(g.end)}function Ln(g){H.call(this,g);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function dn(g){H.call(this,g);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Cn(){return{type:"blockquote",children:[]}}function kn(){return{type:"code",lang:null,meta:null,value:""}}function Jn(){return{type:"inlineCode",value:""}}function fr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hr(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Fe(){return{type:"break"}}function ve(){return{type:"html",value:""}}function mr(){return{type:"image",title:null,url:"",alt:null}}function Re(){return{type:"link",title:null,url:"",children:[]}}function Me(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function dr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function gr(){return{type:"paragraph",children:[]}}function yr(){return{type:"strong",children:[]}}function xr(){return{type:"text",value:""}}function kr(){return{type:"thematicBreak"}}}function gn(n){return{line:n.line,column:n.column,offset:n.offset}}function er(n,e){let t=-1;for(;++t<e.length;){const r=e[t];Array.isArray(r)?er(n,r):Po(n,r)}}function Po(n,e){let t;for(t in e)if(nr.call(e,t))switch(t){case"canContainEols":{const r=e[t];r&&n[t].push(...r);break}case"transforms":{const r=e[t];r&&n[t].push(...r);break}case"enter":case"exit":{const r=e[t];r&&Object.assign(n[t],r);break}}}function ot(n,e){throw n?new Error("Cannot close `"+n.type+"` ("+vn({start:n.start,end:n.end})+"): a different token (`"+e.type+"`, "+vn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+vn({start:e.start,end:e.end})+") is still open")}function To(n){const e=this;e.parser=t;function t(r){return Io(r,{...e.data("settings"),...n,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function zo(n,e){const t={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(e),!0)};return n.patch(e,t),n.applyData(e,t)}function Lo(n,e){const t={type:"element",tagName:"br",properties:{},children:[]};return n.patch(e,t),[n.applyData(e,t),{type:"text",value:`
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-DeK6qiuw.js";import{i as f}from"./url-CkvKAnwF.js";import{n as u,T as g,E as N,G as y,H as b}from"./index-CCOPpudF.js";import{C as V}from"./CodeSnippet-JzR8CEtw.js";import{C as O}from"./CollapsibleCard-DQW_ktMO.js";function F({children:r,className:a,...l}){return e.jsx("dt",{...l,className:u("col-span-1 flex min-w-0 items-center truncate text-theme-text-secondary",a),children:r})}function K({children:r,className:a,...l}){return e.jsx("dd",{...l,className:u("col-span-2 flex h-6 w-full min-w-0 items-center truncate text-neutral-700",a),children:r})}function C({label:r,value:a}){return e.jsxs(e.Fragment,{children:[e.jsx(F,{children:r}),e.jsx(K,{children:a})]})}function c(r){return typeof r=="string"}function H(r){return typeof r=="number"&&!isNaN(r)}function d(r){return Array.isArray(r)}function m(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function w({title:r,data:a,intent:l="primary",isInitialOpen:o=!1,contentClassName:i,children:t,className:A}){const x={},p={},j={},T=/^<class\s+'.*'>$/;for(const[n,s]of Object.entries(a||{}))m(s)?x[n]=s:d(s)?j[n]=s:p[n]=s;const h=Object.entries(p);return h.sort((n,s)=>n[0].localeCompare(s[0])),e.jsxs(O,{contentClassName:i,className:A,initialOpen:o,intent:l,title:r,children:[Object.keys(a||{}).length===0?e.jsx("p",{children:"Not available"}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:h.map(([n,s])=>e.jsx(C,{label:e.jsx(g,{children:e.jsxs(N,{children:[e.jsx(y,{className:"cursor-default truncate",children:n}),e.jsx(b,{className:"max-w-[480px]",children:n})]})}),value:e.jsx(e.Fragment,{children:c(s)&&T.test(s)?e.jsx(V,{className:"py-1",highlightCode:!0,code:s}):s===null?e.jsx("div",{children:"null"}):c(s)&&f(s)?e.jsx("a",{className:"underline transition-all duration-200 hover:decoration-transparent",href:s,target:"_blank",rel:"noopener noreferrer",children:s}):e.jsx("div",{className:"whitespace-normal",children:c(s)?s:JSON.stringify(s)})})},n))}),Object.entries(j).map(([n,s])=>e.jsx(S,{title:n,value:s},n)),Object.entries(x).map(([n,s])=>e.jsx(w,{intent:"secondary",title:n,data:s},n))]}),t]})}function S({title:r,value:a}){const l=a.filter(i=>!d(i)&&!m(i)||i===null),o=a.filter(i=>d(i)||m);return e.jsx(e.Fragment,{children:e.jsxs(O,{intent:"secondary",title:r,children:[l.length>0&&e.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 truncate md:grid-cols-3 md:gap-y-4",children:Object.entries(l).map(([i,t])=>e.jsx(C,{label:e.jsx(g,{children:e.jsxs(N,{children:[e.jsx(y,{className:"cursor-default truncate",children:i}),e.jsx(b,{className:"max-w-[480px]",children:i})]})}),value:e.jsx("div",{className:"py-1",children:t===null?e.jsx("div",{children:"null"}):c(t)&&f(t)?e.jsx("a",{className:"underline transition-all duration-200 hover:decoration-transparent",href:t,target:"_blank",rel:"noopener noreferrer",children:t}):e.jsx("div",{className:"whitespace-normal",children:c(t)?t:JSON.stringify(t)})})},i))}),o.length>0&&e.jsx("ul",{className:"space-y-4",children:o.map((i,t)=>e.jsx("li",{children:e.jsx(w,{intent:"secondary",title:t,data:i},t)},t))})]},r)})}export{C as K,w as N,K as V,F as a,c as b,H as c,m as i};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-DP6vWzyx.js";function s({children:t}){return e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-primary-100 text-text-lg font-semibold text-theme-text-brand",children:t})}export{s as N};
1
+ import{j as e}from"./@radix-DeK6qiuw.js";function s({children:t}){return e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-primary-100 text-text-lg font-semibold text-theme-text-brand",children:t})}export{s as N};
@@ -0,0 +1 @@
1
+ import{r as p,j as e}from"./@radix-DeK6qiuw.js";import{S as L}from"./package-C6uypY4h.js";import{I as C}from"./Infobox-Cx4xGoXR.js";import{b as E,C as O}from"./index.esm-Dy6Z9Ung.js";import{T as N}from"./Tick-BlMoIlJT.js";import{aN as T,aO as V,aP as H,ad as I,S as b,V as k,A as z,b as A,f as G,B as W,aw as Y,ax as F,ay as q,az as Q,aA as $}from"./index-CCOPpudF.js";import{C as o}from"./ComponentBadge-D_g62Wv8.js";import{s as v}from"./index-CEV4Cvaf.js";import{g as J}from"./ProviderRadio-8f43sPD4.js";import{a as y}from"./@tanstack-DT5WLu9C.js";import{S as P}from"./logs-WMSM52RF.js";import{C as w}from"./CodeSnippet-JzR8CEtw.js";import{N as M}from"./NumberBox-Dtp3J6g5.js";import{p as K,s as U}from"./persist-Coz7ZWvz.js";import{S as X}from"./link-external-b9AXw_sW.js";import{C as ee}from"./ProviderIcon-Bki2aw8w.js";const D=p.createContext(null);function Ie({children:a}){const{success:t,data:s}=K(),[r,n]=p.useState(!1),[l,i]=p.useState(!!t),[c,h]=p.useState(t?{location:s.location,provider:s.provider,stackName:s.stackName}:{}),[x,u]=p.useState(t?s.timestamp:""),m=p.useRef(null);return e.jsx(D.Provider,{value:{isNextButtonDisabled:r,setIsNextButtonDisabled:n,data:c,setData:h,isLoading:l,setIsLoading:i,formRef:m,timestamp:x,setTimestamp:u},children:a})}function S(){const a=p.useContext(D);if(a===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return a}const re=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"})),ae=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.16145 4L18.8385 4C19.3657 3.99998 19.8205 3.99997 20.195 4.03057C20.5904 4.06287 20.9836 4.13419 21.362 4.32698C21.9265 4.6146 22.3854 5.07354 22.673 5.63803C22.8658 6.01641 22.9371 6.40963 22.9694 6.80498C23 7.17954 23 7.6343 23 8.16144V15.8386C23 16.3657 23 16.8205 22.9694 17.195C22.9371 17.5904 22.8658 17.9836 22.673 18.362C22.3854 18.9265 21.9265 19.3854 21.362 19.673C20.9836 19.8658 20.5904 19.9371 20.195 19.9694C19.8205 20 19.3657 20 18.8386 20L5.16148 20C4.63432 20 4.17955 20 3.80497 19.9694C3.40963 19.9371 3.01641 19.8658 2.63803 19.673C2.07354 19.3854 1.6146 18.9265 1.32698 18.362C1.13419 17.9836 1.06287 17.5904 1.03057 17.195C0.999967 16.8205 0.999983 16.3657 1 15.8385L1 10.0006C1 10.0004 1 10.0008 1 10.0006C1 10.0004 1 9.99958 1 9.99937L1 8.16146C0.999983 7.63431 0.999968 7.17955 1.03057 6.80497C1.06287 6.40963 1.13419 6.01641 1.32698 5.63803C1.6146 5.07354 2.07354 4.6146 2.63803 4.32698C3.01641 4.13419 3.40963 4.06287 3.80497 4.03057C4.17955 3.99997 4.63431 3.99998 5.16145 4ZM3 11V15.8C3 16.3766 3.00078 16.7488 3.02393 17.0322C3.04612 17.3038 3.0838 17.4045 3.109 17.454C3.20487 17.6422 3.35785 17.7951 3.54601 17.891C3.59546 17.9162 3.69617 17.9539 3.96784 17.9761C4.25117 17.9992 4.62345 18 5.2 18L18.8 18C19.3766 18 19.7488 17.9992 20.0322 17.9761C20.3038 17.9539 20.4045 17.9162 20.454 17.891C20.6422 17.7951 20.7951 17.6422 20.891 17.454C20.9162 17.4045 20.9539 17.3038 20.9761 17.0322C20.9992 16.7488 21 16.3766 21 15.8V11H3ZM21 9H3V8.2C3 7.62345 3.00078 7.25117 3.02393 6.96784C3.04612 6.69617 3.0838 6.59546 3.109 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.109C3.59546 6.0838 3.69617 6.04612 3.96784 6.02393C4.25118 6.00078 4.62345 6 5.2 6L18.8 6C19.3766 6 19.7488 6.00078 20.0322 6.02393C20.3038 6.04613 20.4045 6.0838 20.454 6.109C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C20.9162 6.59546 20.9539 6.69617 20.9761 6.96784C20.9992 7.25118 21 7.62345 21 8.2V9ZM5 14C5 13.4477 5.44772 13 6 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H6C5.44772 15 5 14.5523 5 14Z"}));function _({provider:a}){return e.jsxs(T,{children:[e.jsx(V,{className:"block",children:e.jsxs(C,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",J(a)," communication. You can revoke these permissions at any time."]})}),e.jsx(H,{sideOffset:0,className:"w-auto p-5",children:e.jsx(I,{viewportClassName:"max-h-[300px]",children:e.jsx(te,{provider:a})})})]})}function te({provider:a}){const{isPending:t,isError:s,error:r,data:n}=y(v.stackDeploymentInfo({provider:a}));if(t)return e.jsx(b,{className:"h-[100px] w-full"});if(s)return e.jsx("p",{children:r.message});const l=Object.entries(n.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:l.map(([i,c])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:i}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:c.map((h,x)=>e.jsx("li",{children:h},x))})]},i))})}function se({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"IAM Role",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to AWS resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),n&&e.jsx(_,{provider:"aws"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"S3 Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"ECR Repository",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"SageMaker",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Sagemaker Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/sagemaker.png",alt:"Sagemaker step operator logo"}})})]})}function le({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j,R,B;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Service Account",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to GCP resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/gcp-iam.webp",alt:"Service Account logo"}}),n&&e.jsx(_,{provider:"gcp"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"GCS Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/gcp.png",alt:"GCS logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Google Artifact Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/gcp.png",alt:"Google Artifact Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Vertex AI",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/vertexai.png",alt:"VertexAI logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.imageBuilder)==null?void 0:f.name)||"Cloud Build",isLoading:t,isSuccess:s,subtitle:((j=r==null?void 0:r.imageBuilder)==null?void 0:j.id)||"Build, test, and deploy images",badge:e.jsx(o,{type:"image_builder",children:"Image Builder"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/gcp.png",alt:"Cloud Build logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((R=r==null?void 0:r.operator)==null?void 0:R.name)||"Vertex Step Operator",subtitle:((B=r==null?void 0:r.operator)==null?void 0:B.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/vertexai.png",alt:"Vertex step operator logo"}})})]})}function ie(){return e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:'The Cloud Shell session will warn you that the ZenML GitHub repository is untrusted. We recommend that you review the contents of the repository and then check the "Trust repo" checkbox to proceed with the deployment, otherwise the Cloud Shell session will not be authenticated to access your GCP projects.'})}function ce(){const{data:a}=S(),t=y({...v.stackDeploymentConfig({provider:"gcp",stack_name:a.stackName,location:a.location})});return t.isError?null:t.isPending?e.jsx(b,{className:"h-[200px] w-full"}):e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(P,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]}),e.jsx(w,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})]})}function Pe(){const{data:a}=S();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(C,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),a.provider!=="azure"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(ee,{provider:a.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),a.provider==="gcp"&&e.jsx(ie,{}),a.provider!=="azure"&&e.jsx(Z,{setTimestampBool:!0}),a.provider==="gcp"&&e.jsx(ce,{}),a.provider==="azure"&&e.jsx(de,{displayInfobox:!0})]})}function Z({setTimestampBool:a,children:t}){const{data:s,setTimestamp:r,setIsLoading:n}=S(),l=y({...v.stackDeploymentConfig({provider:s.provider,location:s.location,stack_name:s.stackName})});if(l.isError)return null;if(l.isPending)return e.jsx(b,{className:"h-[48px] w-[100px]"});function i(){const c=new Date().toISOString().slice(0,-1);a&&r(c),U({location:s.location||"",provider:s.provider||"aws",stackName:s.stackName,timestamp:c}),n(!0)}return e.jsx(G,{asChild:!0,className:"w-fit gap-3 whitespace-nowrap",size:"lg",onClick:()=>i(),children:e.jsxs("a",{href:l.data.deployment_url,target:"_blank",rel:"noopener noreferrer",children:[t||e.jsxs("div",{children:["Deploy in ",e.jsx("span",{className:"uppercase",children:s.provider})]}),e.jsx(X,{className:"h-5 w-5 shrink-0 fill-white"})]})})}function oe({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Azure Service Principal",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to Azure resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/azure-service-principal.webp",alt:"Service Principal logo"}}),n&&e.jsx(_,{provider:"azure"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"Azure Blob Storage",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/azure.png",alt:"Blob Storage logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Azure Container Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/azure.png",alt:"Azure Container Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Azure ML",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/azureml.png",alt:"Azure ML logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Azure Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/azureml.png",alt:"Azure Step Operator logo"}})})]})}function de({displayInfobox:a=!1}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(pe,{}),e.jsx(ne,{displayInfobox:a}),e.jsx(xe,{}),e.jsx(he,{})]})}function ne({displayInfobox:a=!1}){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"1"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell Console"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack using the Azure Cloud Shell console."})]}),e.jsx(Z,{setTimestampBool:!0,children:e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell"})}),a&&e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:"After the Terraform deployment is complete, you can close the Cloud Shell session and return to the dashboard to view details about the associated ZenML stack automatically registered with ZenML."})]})}function xe(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),e.jsx(ue,{})]})}function he(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(w,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(w,{code:"terraform apply"})]})]})}function ue(){const{data:a}=S(),t=y({...v.stackDeploymentConfig({provider:"azure",stack_name:a.stackName,location:a.location}),enabled:!!a.stackName});return t.isError?null:t.isPending?e.jsx(b,{className:"h-[200px] w-full"}):e.jsx(w,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function pe(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(P,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]})}function me({componentProps:a,type:t}){switch(t){case"aws":return e.jsx(se,{...a});case"gcp":return e.jsx(le,{...a});case"azure":return e.jsx(oe,{...a})}}function d({img:a,title:t,subtitle:s,badge:r,isSuccess:n,isLoading:l}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[l&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),n&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:a.alt,src:a.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:t}),e.jsx("p",{className:"text-theme-text-secondary",children:s})]})]}),r]})}function De({provider:a}){function t(){let s="#";switch(a){case"aws":s="https://calculator.aws/#/";break;case"gcp":s="https://cloud.google.com/products/calculator";break;case"azure":s="https://azure.microsoft.com/en-us/pricing/calculator/";break}return e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"link",children:"official pricing calculator"})}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(re,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(W,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(ae,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["A small training job would cost around:"," ",e.jsx("span",{className:"font-semibold text-theme-text-success",children:"$0.60"})]}),e.jsxs("p",{className:"text-text-xs text-theme-text-secondary",children:["Please use the ",e.jsx(t,{})," for a detailed estimate"]})]})]})]})}const ge=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function fe({provider:a}){const{control:t}=E(),{isPending:s,isError:r,data:n}=y({...v.stackDeploymentInfo({provider:a})});if(r)return null;if(s)return e.jsx(b,{className:"h-[40px] w-[100px]"});const l=Object.entries(n.locations);return e.jsx(O,{control:t,name:"region",render:({field:{onChange:i,ref:c,...h}})=>e.jsxs(Y,{...h,onValueChange:i,children:[e.jsx(F,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx(q,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(Q,{children:e.jsx(I,{viewportClassName:"max-h-[300px]",children:l.map(([x,u])=>e.jsxs($,{value:u,children:[x," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},x))})})]})})}function Ze({provider:a}){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ge,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your cloud infrastructure for optimal performance and compliance."})]}),e.jsx(fe,{provider:a})]})}function Le({provider:a}){const{watch:t}=E();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(L,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(me,{type:a,componentProps:{displayPermissions:!0,stackName:t("stackName")}}),e.jsx(C,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}export{de as A,me as C,Z as D,De as E,ce as G,Ie as N,Ze as R,Le as a,Pe as b,S as u};
@@ -1 +1 @@
1
- import{j as s}from"./@radix-DP6vWzyx.js";const a={uppercase:"Password must contain at least one uppercase letter",lowercase:"Password must contain at least one lowercase letter",number:"Password must contain at least one number",special:"Password must contain at least one special character",length:"Password must be at least 8 characters"};function l({errors:c,val:t}){const e=n(c||{});function r(o){return t?e.includes(o)?"text-theme-text-error":"text-theme-text-success":"text-theme-text-secondary"}return s.jsxs("div",{className:"space-y-1 rounded-md border border-theme-border-moderate bg-theme-surface-secondary px-5 py-3 text-text-xs text-theme-text-secondary",children:[s.jsx("p",{className:"text-text-sm text-theme-text-primary",children:"Password criteria"}),s.jsxs("div",{children:[s.jsx("p",{className:r(a.length),children:"Minimum 8 characters"}),s.jsx("p",{className:r(a.number),children:"Must Contain one Numeric value"}),s.jsx("p",{className:r(a.uppercase),children:"Must include upper cases"}),s.jsx("p",{className:r(a.lowercase),children:"Must include lower cases"}),s.jsx("p",{className:r(a.special),children:"Must include one special character (!,@,#...)"})]})]})}function n(c){const t=[];return Object.values(c).forEach(e=>{typeof e=="string"?t.push(e):Array.isArray(e)?t.push(...e):typeof e=="object"&&e!==null&&t.push(...n(e))}),t}export{l as P};
1
+ import{j as s}from"./@radix-DeK6qiuw.js";const a={uppercase:"Password must contain at least one uppercase letter",lowercase:"Password must contain at least one lowercase letter",number:"Password must contain at least one number",special:"Password must contain at least one special character",length:"Password must be at least 8 characters"};function l({errors:c,val:t}){const e=n(c||{});function r(o){return t?e.includes(o)?"text-theme-text-error":"text-theme-text-success":"text-theme-text-secondary"}return s.jsxs("div",{className:"space-y-1 rounded-md border border-theme-border-moderate bg-theme-surface-secondary px-5 py-3 text-text-xs text-theme-text-secondary",children:[s.jsx("p",{className:"text-text-sm text-theme-text-primary",children:"Password criteria"}),s.jsxs("div",{children:[s.jsx("p",{className:r(a.length),children:"Minimum 8 characters"}),s.jsx("p",{className:r(a.number),children:"Must Contain one Numeric value"}),s.jsx("p",{className:r(a.uppercase),children:"Must include upper cases"}),s.jsx("p",{className:r(a.lowercase),children:"Must include lower cases"}),s.jsx("p",{className:r(a.special),children:"Must include one special character (!,@,#...)"})]})]})}function n(c){const t=[];return Object.values(c).forEach(e=>{typeof e=="string"?t.push(e):Array.isArray(e)?t.push(...e):typeof e=="object"&&e!==null&&t.push(...n(e))}),t}export{l as P};
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-DeK6qiuw.js";import{e as o}from"./index-CCOPpudF.js";function a(){return e.jsx(o,{color:"yellow",rounded:!1,className:"rounded-md",children:e.jsx("span",{className:"font-semibold uppercase",children:"Pro"})})}export{a as P};
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-DeK6qiuw.js";import{n as a,e as l,f as i,r as d}from"./index-CCOPpudF.js";import{S as c}from"./check-DloQpStc.js";import{L as m}from"./@react-router-B3Z5rLr2.js";function g({className:s,...r}){return e.jsx("div",{className:a("flex items-center overflow-hidden rounded-md border border-warning-100 bg-theme-surface-primary px-7 py-5",s),...r})}function j({className:s,...r}){return e.jsx("h2",{className:a("text-display-xs font-semibold",s),...r})}function w(){return e.jsxs("div",{className:"flex w-fit gap-2 rounded-md bg-[#FFF6EA] px-3 py-1",children:[e.jsx("p",{children:"Instantly access Pro features while keeping your existing setup"}),e.jsx(l,{color:"yellow",rounded:!0,size:"sm",className:"font-semibold uppercase",children:"New"})]})}function b({className:s,features:r,...t}){return e.jsx("ul",{...t,className:a("grid grid-cols-1 gap-x-7 gap-y-5 md:grid-cols-2"),children:r.map((n,o)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(u,{}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:n.title}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:n.subtitle})]})]},o))})}function N(){return e.jsxs("div",{className:"flex w-fit flex-wrap gap-2",children:[e.jsx(i,{asChild:!0,className:"truncate bg-warning-600 hover:bg-warning-400 active:bg-warning-500 active:ring-warning-50",size:"md",children:e.jsx(m,{to:d.upgrade,children:"Try Pro Features"})}),e.jsx(i,{asChild:!0,intent:"secondary",className:"w-fit truncate",emphasis:"minimal",size:"md",children:e.jsx("a",{href:"https://www.zenml.io/pro",target:"_blank",rel:"noopener noreferrer",children:"Learn More"})})]})}function y({className:s,...r}){return e.jsx("img",{className:a("hidden w-full shrink-0 rounded-md border border-theme-border-moderate 2xl:block",s),...r})}function u(){return e.jsx("div",{className:"flex aspect-square h-5 w-5 shrink-0 items-center justify-center rounded-rounded bg-warning-400",children:e.jsx(c,{className:"h-3 w-3 shrink-0 fill-white"})})}export{g as P,u as T,j as a,w as b,b as c,N as d,y as e};
@@ -0,0 +1 @@
1
+ import{j as r}from"./@radix-DeK6qiuw.js";import{S as o,a as n,b as m}from"./gcp-CFtm4BA7.js";import{n as t}from"./index-CCOPpudF.js";function x({provider:c,className:e,...s}){const a=t("w-5 h-5 shrink-0",e);switch(c){case"aws":return r.jsx(m,{...s,className:a});case"azure":return r.jsx(n,{...s,className:a});case"gcp":return r.jsx(o,{...s,className:a})}}export{x as C};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./@radix-DP6vWzyx.js";import{Q as i,f as d,r as m,a6 as u,I as x,e as p}from"./index-QQb7wQEC.js";import{T as f}from"./Tick-CykQFPj2.js";import{c as h}from"./persist-DNb5cdrU.js";import{b as j}from"./@react-router-BMhZulnd.js";import{b as N}from"./index.esm-cuVep_NJ.js";const o=c.createContext(null);function P({children:t,initialStep:r=0,maxSteps:s}){const[a,n]=c.useState(r);return e.jsx(o.Provider,{value:{currentStep:a,setCurrentStep:n,maxSteps:s},children:t})}function l(){const t=c.useContext(o);if(t===null)throw new Error("useWizardContext must be used within a WizardProvider");return t}function W({entries:t}){return e.jsx("aside",{className:"whitespace-nowrap p-2 text-text-sm",children:e.jsx("ul",{className:"space-y-5",children:t.map((r,s)=>e.jsx("li",{children:e.jsx(y,{index:s,children:r})},s))})})}function y({index:t,children:r}){const{currentStep:s}=l(),a=i("font-semibold flex items-center gap-1",{"text-theme-text-tertiary":t<s,"text-theme-text-secondary":t>s});return e.jsxs("div",{className:a,children:[e.jsx(b,{index:t}),e.jsx("span",{children:r})]})}function b({index:t}){const{currentStep:r}=l(),s=t+1;if(r>t)return e.jsx(f,{className:"h-5 w-5",tickClasses:"w-3 h-3"});if(r===t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-primary-300 text-white",children:s});if(r<t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-neutral-300 text-white",children:s})}function B(){const t=j();function r(){h(),t(m.stacks.create.index)}return e.jsx(d,{onClick:()=>r(),intent:"secondary",size:"md",children:"Cancel"})}function I(t){switch(t){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function R(){var s;const{register:t,formState:{errors:r}}=N();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(u,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(x,{className:`${r.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...t("stackName")}),r.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(s=r.stackName.message)==null?void 0:s.toString()})]})})]})}const v=c.forwardRef(({children:t,className:r,id:s,...a},n)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:s,...a,ref:n,className:i("peer sr-only",r),type:"radio"}),e.jsx("label",{htmlFor:s,className:"flex h-full w-full flex-col items-start justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100 peer-disabled:cursor-default peer-disabled:bg-neutral-50",children:t})]}));v.displayName="CloudProviderRadioButton";function E({icon:t,title:r,subtitle:s,comingSoon:a}){return e.jsxs("div",{className:"space-y-1 text-left",children:[t,e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:r}),a&&e.jsx(p,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s})]})}export{v as C,W as L,E as P,R as S,P as W,B as a,I as g,l as u};
1
+ import{r as n,j as e}from"./@radix-DeK6qiuw.js";import{n as i,f as d,r as m,a9 as u,I as x,e as p}from"./index-CCOPpudF.js";import{T as f}from"./Tick-BlMoIlJT.js";import{c as h}from"./persist-Coz7ZWvz.js";import{b as j}from"./@react-router-B3Z5rLr2.js";import{b as N}from"./index.esm-Dy6Z9Ung.js";const o=n.createContext(null);function P({children:t,initialStep:r=0,maxSteps:s}){const[a,c]=n.useState(r);return e.jsx(o.Provider,{value:{currentStep:a,setCurrentStep:c,maxSteps:s},children:t})}function l(){const t=n.useContext(o);if(t===null)throw new Error("useWizardContext must be used within a WizardProvider");return t}function W({entries:t}){return e.jsx("aside",{className:"whitespace-nowrap p-2 text-text-sm",children:e.jsx("ul",{className:"space-y-5",children:t.map((r,s)=>e.jsx("li",{children:e.jsx(y,{index:s,children:r})},s))})})}function y({index:t,children:r}){const{currentStep:s}=l(),a=i("font-semibold flex items-center gap-1",{"text-theme-text-tertiary":t<s,"text-theme-text-secondary":t>s});return e.jsxs("div",{className:a,children:[e.jsx(b,{index:t}),e.jsx("span",{children:r})]})}function b({index:t}){const{currentStep:r}=l(),s=t+1;if(r>t)return e.jsx(f,{className:"h-5 w-5",tickClasses:"w-3 h-3"});if(r===t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-primary-300 text-white",children:s});if(r<t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-neutral-300 text-white",children:s})}function B(){const t=j();function r(){h(),t(m.stacks.create.index)}return e.jsx(d,{onClick:()=>r(),intent:"secondary",size:"md",children:"Cancel"})}function I(t){switch(t){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function R(){var s;const{register:t,formState:{errors:r}}=N();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(u,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(x,{className:`${r.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...t("stackName")}),r.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(s=r.stackName.message)==null?void 0:s.toString()})]})})]})}const v=n.forwardRef(({children:t,className:r,id:s,...a},c)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:s,...a,ref:c,className:i("peer sr-only",r),type:"radio"}),e.jsx("label",{htmlFor:s,className:"flex h-full w-full flex-col items-start justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100 peer-disabled:cursor-default peer-disabled:bg-neutral-50",children:t})]}));v.displayName="CloudProviderRadioButton";function E({icon:t,title:r,subtitle:s,comingSoon:a}){return e.jsxs("div",{className:"space-y-1 text-left",children:[t,e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:r}),a&&e.jsx(p,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s})]})}export{v as C,W as L,E as P,R as S,P as W,B as a,I as g,l as u};
@@ -0,0 +1 @@
1
+ import{r as a,j as e}from"./@radix-DeK6qiuw.js";import{S as p}from"./trash-arLUMWMS.js";import{u as j,D as x,a as D}from"./delete-run-CJdh1P_h.js";import{i as R,t as C,v as w,f as b,D as y,w as S,x as v,C as A}from"./index-CCOPpudF.js";import{S as O}from"./dots-horizontal-otGBOSDJ.js";import{A as k}from"./AlertDialogDropdownItem-DezXKmDf.js";import{c as T}from"./@tanstack-DT5WLu9C.js";const g=a.createContext(null);function z({children:t}){const[s,r]=a.useState([]),l=T(),{toast:n}=R(),u=j(),o=async i=>{try{const c=i.map(f=>u.mutateAsync({runId:f}));await Promise.all(c),n({description:"Deleted successfully.",status:"success",emphasis:"subtle",rounded:!0}),await l.invalidateQueries({queryKey:["runs"]}),r([])}catch(c){console.error("Failed to delete some runs:",c)}};return e.jsx(g.Provider,{value:{selectedRuns:s,setSelectedRuns:r,bulkDeleteRuns:o},children:t})}function h(){const t=a.useContext(g);if(!t)throw new Error("useRunsSelectorContext must be used within a RunsSelectorProvider");return t}function N(){const[t,s]=a.useState(!1),{bulkDeleteRuns:r,selectedRuns:l}=h();async function n(){await r(l),s(!1)}return e.jsxs(C,{open:t,onOpenChange:s,children:[e.jsx(w,{children:e.jsxs(b,{className:"rounded-sharp border-none bg-white",size:"md",emphasis:"subtle",intent:"secondary",children:[e.jsx(p,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(x,{title:`Delete Run${l.length>=2?"s":""}`,handleDelete:n,children:e.jsxs(D,{children:[e.jsx("p",{children:"Are you sure?"}),e.jsx("p",{children:"This action cannot be undone."})]})})]})}function F(){const{selectedRuns:t}=h();return e.jsxs("div",{className:"flex items-center divide-x divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsx("div",{className:"bg-primary-25 px-2 py-1 font-semibold text-theme-text-brand",children:`${t==null?void 0:t.length} Run${(t==null?void 0:t.length)>1?"s":""} selected`}),e.jsx(N,{})]})}function H({id:t}){const[s,r]=a.useState(!1),[l,n]=a.useState(!1),u=a.useRef(null),o=a.useRef(null),{bulkDeleteRuns:i}=h();async function c(){await i([t]),m(!1)}function f(){o.current=u.current}function m(d){if(d===!1){n(!1),setTimeout(()=>{r(d)},200);return}r(d)}return e.jsxs(y,{onOpenChange:n,open:l,children:[e.jsx(S,{ref:u,children:e.jsx(O,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(v,{hidden:s,onCloseAutoFocus:d=>{o.current&&(o.current.focus(),o.current=null,d.preventDefault())},align:"end",sideOffset:7,children:e.jsx(k,{onSelect:f,open:s,onOpenChange:m,triggerChildren:"Delete",icon:e.jsx(p,{fill:"red"}),children:e.jsx(x,{title:"Delete Run",handleDelete:c,children:e.jsxs(D,{children:[e.jsx("p",{children:"Are you sure?"}),e.jsx("p",{children:"This action cannot be undone."})]})})})})]})}const Q=({id:t})=>{const{selectedRuns:s,setSelectedRuns:r}=h(),l=(n,u)=>{r(o=>n?[...o,u]:o.filter(i=>i!==u))};return e.jsx(A,{id:t,onCheckedChange:n=>l(n,t),checked:s.includes(t),className:"h-3 w-3"})};export{z as R,Q as a,H as b,F as c,h as u};
@@ -0,0 +1 @@
1
+ import{j as s}from"./@radix-DeK6qiuw.js";import{S as x}from"./refresh-BjOeWlEq.js";import{S as h,P as f}from"./SearchField-lp1KgU4e.js";import{u as j}from"./all-pipeline-runs-query-D-c2G6lV.js";import{K as g,r as o,T as b,E as v,G as y,H as N,J as m,z as i,f as S,L as P,S as u}from"./index-CCOPpudF.js";import{a as R,b as T,u as k,c as F}from"./RunSelector-DkPiIiNr.js";import{C as p}from"./CopyButton-LNcWaa14.js";import{D as C}from"./DisplayDate-CDMUcQHS.js";import{g as w,E}from"./ExecutionStatus-C7zyIQKZ.js";import{I as D}from"./InlineAvatar-DiGOWNKF.js";import{L as l,c as _}from"./@react-router-B3Z5rLr2.js";const A=[{id:"check",header:"",meta:{width:"1%"},accessorFn:e=>({id:e.id}),cell:({getValue:e})=>{const{id:a}=e();return s.jsx(R,{id:a})}},{id:"name",header:"Run",accessorFn:e=>{var a;return{id:e.id,name:e.name,status:(a=e.body)==null?void 0:a.status}},cell:({getValue:e})=>{const{name:a,status:t,id:r}=e();return s.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[s.jsx(g,{className:`h-5 w-5 ${w(t)}`}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(l,{to:o.runs.detail(r),className:"flex items-center gap-1",children:s.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:a})}),s.jsx(b,{children:s.jsxs(v,{children:[s.jsx(y,{className:"hover:text-theme-text-brand hover:underline",children:s.jsx(E,{status:t})}),s.jsx(N,{className:"z-20 capitalize",children:t})]})}),s.jsx(p,{copyText:a})]}),s.jsxs(l,{to:o.runs.detail(r),className:"flex items-center gap-1",children:[s.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),s.jsx(p,{copyText:r})]})]})]})}},{id:"pipeline",header:"Pipeline",accessorFn:e=>{var a,t;return(t=(a=e.body)==null?void 0:a.pipeline)==null?void 0:t.name},cell:({getValue:e})=>{const a=e();return a?s.jsx(l,{to:o.pipelines.namespace(a),children:s.jsx(m,{color:"purple",className:"inline-flex items-center gap-0.5 truncate",rounded:!1,emphasis:"subtle",children:a})}):null}},{id:"stack",header:"Stack",accessorFn:e=>{var a,t,r,n;return{name:(t=(a=e.body)==null?void 0:a.stack)==null?void 0:t.name,id:(n=(r=e.body)==null?void 0:r.stack)==null?void 0:n.id}},cell:({getValue:e})=>{const{name:a,id:t}=e();return!a||!t?null:s.jsx(m,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:a})}},{id:"created-at",header:"Created at",accessorFn:e=>{var a;return{date:(a=e.body)==null?void 0:a.created}},cell:({getValue:e})=>{const{date:a}=e();return s.jsx(C,{dateString:a})}},{id:"author",header:"Author",accessorFn:e=>{var a,t,r,n,d;return{name:((r=(t=(a=e.body)==null?void 0:a.user)==null?void 0:t.body)==null?void 0:r.full_name)||((d=(n=e.body)==null?void 0:n.user)==null?void 0:d.name)}},cell:({getValue:e})=>{const{name:a}=e();return s.jsx(D,{username:a})}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:e})=>s.jsx(T,{id:e.original.id})}],c=1,z=i.object({page:i.coerce.number().min(c).optional().default(c).catch(c),name:i.string().optional(),operator:i.enum(["and","or"]).optional(),status:i.enum(["pending","running","completed"]).optional()});function B(){const[e]=_(),{page:a,name:t,operator:r,status:n}=z.parse({page:e.get("page")||void 0,name:e.get("name")||void 0,operator:e.get("operator")||void 0,status:e.get("status")||void 0});return{page:a,name:t,logical_operator:r,status:n}}function Q({fixedQueryParams:e={}}){const{selectedRuns:a}=k(),t=B(),{data:r,refetch:n}=j({params:{...t,sort_by:"desc:updated",...e}});return s.jsxs("div",{className:"mt-5 flex flex-col gap-5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[a.length?s.jsx(F,{}):s.jsx(h,{searchParams:t}),s.jsx("div",{className:"flex justify-between",children:s.jsxs(S,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[s.jsx(x,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),s.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s.jsx("div",{className:"w-full",children:r?s.jsx(P,{columns:A,data:r.items}):s.jsx(u,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&s.jsx(f,{searchParams:t,paginate:r}):s.jsx(u,{className:"h-[36px] w-[300px]"})]})]})}export{Q as R};
@@ -0,0 +1 @@
1
+ import{r as n,j as t}from"./@radix-DeK6qiuw.js";import{S}from"./dots-horizontal-otGBOSDJ.js";import{S as w}from"./chevron-right-double-D7ojK9Co.js";import{aI as j,n as C,I as P}from"./index-CCOPpudF.js";import{o as x}from"./url-CkvKAnwF.js";import{b as v,c as E}from"./@react-router-B3Z5rLr2.js";import{d as L}from"./index-Uu49AX48.js";const N=r=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},n.createElement("g",{id:"chevron-left-double"},n.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"}))),R=r=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},n.createElement("g",{id:"chevron-left"},n.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z"})));function D({paginate:r,searchParams:c,inMemoryHandler:i}){const m=v(),{index:a,total_pages:d}=r;function u(l){if(i){i(l);return}const o=new URLSearchParams(x(c));o.set("page",l.toString()),m(`?${o.toString()}`,{preventScrollReset:!1})}const f=()=>{const l=[];let p=!1,g=!1;for(let e=1;e<=d;e++){const s=e>1&&e<d&&Math.abs(e-a)>1;(e===1||e===d||s||Math.abs(e-a)<=1)&&(s?e<a&&!p?(l.push(t.jsx(b,{},"ellipsis-left")),p=!0):e>a&&!g&&(l.push(t.jsx(b,{},"ellipsis-right")),g=!0):l.push(t.jsx(h,{"aria-label":`Go to page ${e}`,"aria-current":e===a,className:`${e===a?"!bg-primary-500 text-theme-text-negative":""}`,onClick:()=>u(e),disabled:e===a,children:e},e)))}return l};return t.jsx("nav",{role:"navigation","aria-label":"Pagination Navigation",children:t.jsxs("ul",{className:"flex gap-1",children:[t.jsx("li",{children:t.jsx(h,{disabled:a===1,onClick:()=>u(1),"aria-label":"Go to first page",children:t.jsx(N,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(h,{disabled:a===1,onClick:()=>u(a-1),"aria-label":"Go to previous page",children:t.jsx(R,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),f().map((l,o)=>t.jsx("li",{children:l},o)),t.jsx("li",{children:t.jsx(h,{disabled:a===d,onClick:()=>u(a+1),"aria-label":"Go to next page",children:t.jsx(j,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(h,{disabled:a===d,onClick:()=>u(d),"aria-label":"Go to last page",children:t.jsx(w,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function b(){return t.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:t.jsx(S,{className:"h-4 w-4"})})}const h=n.forwardRef(({className:r,...c},i)=>t.jsx("button",{...c,ref:i,className:C("group/button flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-neutral-300 hover:bg-neutral-200 active:border-neutral-400 active:bg-neutral-300 disabled:pointer-events-none disabled:bg-theme-surface-primary ",r)}));h.displayName="PaginationButton";const k=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function y(r){const c=k.find(i=>r.startsWith(i));return c?r.slice(c.length):r}const B=n.forwardRef(({searchParams:r,searchContains:c=!0,inMemoryHandler:i,...m},a)=>{const d=v(),[u]=E(),[f,l]=n.useState(y(r.name||"")||""),o=n.useMemo(()=>L(p,500),[]);n.useEffect(()=>()=>{o.cancel()},[o]);function p(e){if(i){i(e);return}const s=new URLSearchParams({...Object.fromEntries(u),...x(r)});s.delete("logical_operator"),e?(s.set("name",c?`contains:${e}`:`${e}`),s.set("operator","or"),s.set("page","1")):(s.delete("name"),s.delete("operator")),d(`?${s.toString()}`,{preventScrollReset:!0,replace:!0})}function g(e){const{value:s}=e.target;l(s),o(s)}return t.jsx(P,{...m,ref:a,value:f,onChange:g,placeholder:"Search...",inputSize:"md"})});B.displayName="SearchField";export{D as P,B as S};
@@ -1 +1 @@
1
- import{r as y,j as e}from"./@radix-DP6vWzyx.js";import{S as M}from"./plus-C9IxgN2M.js";import{S as $}from"./trash-DkJHMOg7.js";import{q as T,b as Q,a as z,c as L}from"./@tanstack-BUCbhJyH.js";import{l as C,m as w,k as g,n as v,F as N,z as c,a9 as Z,aa as O,ab as R,i as B,I as f,f as h,aq as G,ar as U,as as H,T as J,v as W,w as _,W as X,x as Y}from"./index-QQb7wQEC.js";import{o as I}from"./url-D5le3J4q.js";import{t as ee}from"./zod-D89GC_vc.js";import{u as se,a as te,C as p}from"./index.esm-cuVep_NJ.js";import{C as ae}from"./CodeSnippet-CqybNv0k.js";async function re({params:s}){const i=C(w.secrets.all+"?"+I(s)),t=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const l=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Failed to fetch secrets");throw new N({status:t.status,statusText:t.statusText,message:l})}return t.json()}async function ie(s){const i=C(w.secrets.detail(s)),t=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const l=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Failed to fetch secret ${s}`);throw new N({status:t.status,statusText:t.statusText,message:l})}return t.json()}const j={all:["secrets"],secretList:s=>T({queryKey:[...j.all,s],queryFn:async()=>re({params:s})}),secretDetail:s=>T({queryKey:[...j.all,s],queryFn:async()=>ie(s)})},le=s=>y.createElement("svg",{viewBox:"0 0 20 14",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29898 3.86908C4.04374 4.91672 3.16532 6.14781 2.72143 6.85066C2.69198 6.89729 2.67138 6.92996 2.65417 6.95831C2.64281 6.97702 2.63531 6.98996 2.63029 6.99898C2.63029 6.99932 2.63029 6.99966 2.63029 6.99999C2.63029 7.00033 2.63029 7.00067 2.63029 7.001C2.63531 7.01003 2.64281 7.02297 2.65417 7.04168C2.67138 7.07003 2.69198 7.1027 2.72143 7.14933C3.16532 7.85218 4.04374 9.08327 5.29898 10.1309C6.55226 11.1769 8.13098 12 10.0004 12C11.8699 12 13.4486 11.1769 14.7019 10.1309C15.9571 9.08327 16.8355 7.85218 17.2794 7.14933C17.3089 7.1027 17.3295 7.07003 17.3467 7.04168C17.358 7.02297 17.3655 7.01002 17.3705 7.001C17.3705 7.00067 17.3705 7.00033 17.3705 6.99999C17.3705 6.99966 17.3705 6.99932 17.3705 6.99899C17.3655 6.98997 17.358 6.97702 17.3467 6.95831C17.3295 6.92996 17.3089 6.89729 17.2794 6.85066C16.8355 6.14781 15.9571 4.91672 14.7019 3.86908C13.4486 2.82308 11.8699 1.99999 10.0004 1.99999C8.13097 1.99999 6.55226 2.82308 5.29898 3.86908ZM4.23104 2.58952C5.67154 1.38726 7.61569 0.333328 10.0004 0.333328C12.3851 0.333328 14.3293 1.38726 15.7698 2.58952C17.2083 3.79014 18.1946 5.17857 18.6886 5.9607C18.6951 5.97104 18.7018 5.98159 18.7086 5.99236C18.8067 6.14664 18.9339 6.34696 18.9983 6.62764C19.0502 6.85426 19.0502 7.14573 18.9983 7.37235C18.9339 7.65303 18.8067 7.85335 18.7086 8.00763C18.7018 8.01841 18.6951 8.02895 18.6886 8.03929C18.1946 8.82142 17.2083 10.2098 15.7698 11.4105C14.3293 12.6127 12.3851 13.6667 10.0004 13.6667C7.61569 13.6667 5.67154 12.6127 4.23104 11.4105C2.7925 10.2098 1.80622 8.82142 1.31227 8.03929C1.30574 8.02895 1.29904 8.01841 1.2922 8.00764C1.19418 7.85335 1.06692 7.65303 1.00258 7.37235C0.950637 7.14573 0.950637 6.85426 1.00258 6.62764C1.06692 6.34696 1.19418 6.14664 1.2922 5.99235C1.29904 5.98158 1.30574 5.97104 1.31227 5.9607C1.80622 5.17857 2.7925 3.79014 4.23104 2.58952ZM10.0004 5.33333C9.07994 5.33333 8.33375 6.07952 8.33375 6.99999C8.33375 7.92047 9.07994 8.66666 10.0004 8.66666C10.9209 8.66666 11.6671 7.92047 11.6671 6.99999C11.6671 6.07952 10.9209 5.33333 10.0004 5.33333ZM6.66708 6.99999C6.66708 5.15905 8.15947 3.66666 10.0004 3.66666C11.8414 3.66666 13.3338 5.15905 13.3338 6.99999C13.3338 8.84094 11.8414 10.3333 10.0004 10.3333C8.15947 10.3333 6.66708 8.84094 6.66708 6.99999Z"})),ne=c.object({secretName:c.string().min(1,"Secret Name is required"),keysValues:c.array(c.object({key:c.string().min(1,"Key is required"),value:c.string().min(1,"Value is required"),showPassword:c.boolean().optional()}))});async function oe(s,i){const t=C(w.secrets.detail(s)),l=await g(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(l.status===404&&v(),!l.ok)throw new N({message:"Error updating secret",status:l.status,statusText:l.statusText});return l.json()}function ce(s){return Q({mutationFn:async({id:i,body:t})=>oe(i,t),...s})}function we({secretId:s,isSecretNameEditable:i,dialogTitle:t}){return e.jsxs(Z,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(O,{children:e.jsx(R,{children:t})}),e.jsx(ue,{secretId:s,isSecretNameEditable:i})]})}function ue({secretId:s,isSecretNameEditable:i}){const{data:t,isLoading:l,isError:n}=z({...j.secretDetail(s)}),{handleSubmit:V,control:u,setValue:m,watch:b,formState:{isValid:E}}=se({resolver:ee(ne),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:x,append:q,remove:D}=te({control:u,name:"keysValues"});y.useEffect(()=>{var a;t&&(m("secretName",t.name),m("keysValues",Object.entries(((a=t.body)==null?void 0:a.values)||{}).map(([r,o])=>({key:r,value:String(o)}))))},[t,m]);const F=()=>{q({key:"",value:"",showPassword:!1})},{toast:k}=B(),S=L(),{mutate:P}=ce({onError(a){H(a)&&k({status:"error",emphasis:"subtle",description:a.message,rounded:!0})},onSuccess(){k({status:"success",emphasis:"subtle",description:"Secret updated successfull",rounded:!0}),S.invalidateQueries({queryKey:["secrets"]}),S.invalidateQueries({queryKey:["secretDetail",s]})}}),K=a=>{const r={name:a.secretName,scope:"workspace",values:a.keysValues.reduce((o,d)=>(d.key&&d.value&&(o[d.key]=d.value),o),{})};P({id:s,body:r})},A=a=>{const r=b(`keysValues.${a}.showPassword`);m(`keysValues.${a}.showPassword`,!r)};return l?e.jsx("p",{children:"Loading..."}):n?e.jsx("p",{children:"Error fetching secret details."}):e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"edit-secret-form",className:"gap-5 p-5",onSubmit:V(K),children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(p,{name:"secretName",control:u,render:({field:a})=>e.jsx(f,{...a,className:"mb-3 w-full",required:!0,disabled:!i})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),x.map((a,r)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(p,{name:`keysValues.${r}.key`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(p,{name:`keysValues.${r}.value`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:b(`keysValues.${r}.showPassword`)?"text":"password"})}),e.jsx("button",{type:"button",onClick:()=>A(r),className:"absolute inset-y-1 right-0 flex items-center pb-1 pr-3",children:e.jsx(le,{className:"h-4 w-4 flex-shrink-0"})})]})}),e.jsxs("div",{className:"flex items-center",children:[r===x.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:F,className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(M,{className:"flex-shrink-0 fill-primary-600"})}),r!==x.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>D(r),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx($,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},a.id))]})}),e.jsxs(G,{className:"gap-[10px]",children:[e.jsx(U,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",type:"submit",form:"edit-secret-form",disabled:!E,children:"Save Secret"})]})]})}function ge({code:s}){return e.jsx(J,{children:e.jsxs(W,{children:[e.jsx(_,{children:e.jsx(X,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})}),e.jsxs(Y,{className:"z-50 flex max-w-[480px] flex-col gap-2 bg-theme-surface-primary p-5 text-text-sm text-theme-text-primary",children:[e.jsx("p",{className:"text-md text-theme-text-primary",children:"To use your secret in a step, you can use the following code:"}),e.jsx(ae,{highlightCode:!0,wrap:!0,codeClasses:"break-words",code:s}),e.jsx("a",{className:"link w-fit text-primary-400",target:"_blank",href:"https://docs.zenml.io/how-to/interact-with-secrets#accessing-registered-secrets",children:"Learn More"})]})]})})}export{we as E,le as S,ge as a,j as b,ne as s,ce as u};
1
+ import{r as y,j as e}from"./@radix-DeK6qiuw.js";import{S as M}from"./plus-tf1V2hTJ.js";import{S as $}from"./trash-arLUMWMS.js";import{q as T,b as Q,a as z,c as L}from"./@tanstack-DT5WLu9C.js";import{p as C,q as w,k as g,s as v,F as N,z as c,ag as Z,ah as G,ai as O,i as R,I as f,f as h,al as B,am as H,an as U,T as J,E as X,G as _,X as W,H as Y}from"./index-CCOPpudF.js";import{o as I}from"./url-CkvKAnwF.js";import{t as ee}from"./zod-BwEbpOxH.js";import{u as se,a as te,C as p}from"./index.esm-Dy6Z9Ung.js";import{C as ae}from"./CodeSnippet-JzR8CEtw.js";async function re({params:s}){const i=C(w.secrets.all+"?"+I(s)),t=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const l=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Failed to fetch secrets");throw new N({status:t.status,statusText:t.statusText,message:l})}return t.json()}async function ie(s){const i=C(w.secrets.detail(s)),t=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const l=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Failed to fetch secret ${s}`);throw new N({status:t.status,statusText:t.statusText,message:l})}return t.json()}const j={all:["secrets"],secretList:s=>T({queryKey:[...j.all,s],queryFn:async()=>re({params:s})}),secretDetail:s=>T({queryKey:[...j.all,s],queryFn:async()=>ie(s)})},le=s=>y.createElement("svg",{viewBox:"0 0 20 14",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29898 3.86908C4.04374 4.91672 3.16532 6.14781 2.72143 6.85066C2.69198 6.89729 2.67138 6.92996 2.65417 6.95831C2.64281 6.97702 2.63531 6.98996 2.63029 6.99898C2.63029 6.99932 2.63029 6.99966 2.63029 6.99999C2.63029 7.00033 2.63029 7.00067 2.63029 7.001C2.63531 7.01003 2.64281 7.02297 2.65417 7.04168C2.67138 7.07003 2.69198 7.1027 2.72143 7.14933C3.16532 7.85218 4.04374 9.08327 5.29898 10.1309C6.55226 11.1769 8.13098 12 10.0004 12C11.8699 12 13.4486 11.1769 14.7019 10.1309C15.9571 9.08327 16.8355 7.85218 17.2794 7.14933C17.3089 7.1027 17.3295 7.07003 17.3467 7.04168C17.358 7.02297 17.3655 7.01002 17.3705 7.001C17.3705 7.00067 17.3705 7.00033 17.3705 6.99999C17.3705 6.99966 17.3705 6.99932 17.3705 6.99899C17.3655 6.98997 17.358 6.97702 17.3467 6.95831C17.3295 6.92996 17.3089 6.89729 17.2794 6.85066C16.8355 6.14781 15.9571 4.91672 14.7019 3.86908C13.4486 2.82308 11.8699 1.99999 10.0004 1.99999C8.13097 1.99999 6.55226 2.82308 5.29898 3.86908ZM4.23104 2.58952C5.67154 1.38726 7.61569 0.333328 10.0004 0.333328C12.3851 0.333328 14.3293 1.38726 15.7698 2.58952C17.2083 3.79014 18.1946 5.17857 18.6886 5.9607C18.6951 5.97104 18.7018 5.98159 18.7086 5.99236C18.8067 6.14664 18.9339 6.34696 18.9983 6.62764C19.0502 6.85426 19.0502 7.14573 18.9983 7.37235C18.9339 7.65303 18.8067 7.85335 18.7086 8.00763C18.7018 8.01841 18.6951 8.02895 18.6886 8.03929C18.1946 8.82142 17.2083 10.2098 15.7698 11.4105C14.3293 12.6127 12.3851 13.6667 10.0004 13.6667C7.61569 13.6667 5.67154 12.6127 4.23104 11.4105C2.7925 10.2098 1.80622 8.82142 1.31227 8.03929C1.30574 8.02895 1.29904 8.01841 1.2922 8.00764C1.19418 7.85335 1.06692 7.65303 1.00258 7.37235C0.950637 7.14573 0.950637 6.85426 1.00258 6.62764C1.06692 6.34696 1.19418 6.14664 1.2922 5.99235C1.29904 5.98158 1.30574 5.97104 1.31227 5.9607C1.80622 5.17857 2.7925 3.79014 4.23104 2.58952ZM10.0004 5.33333C9.07994 5.33333 8.33375 6.07952 8.33375 6.99999C8.33375 7.92047 9.07994 8.66666 10.0004 8.66666C10.9209 8.66666 11.6671 7.92047 11.6671 6.99999C11.6671 6.07952 10.9209 5.33333 10.0004 5.33333ZM6.66708 6.99999C6.66708 5.15905 8.15947 3.66666 10.0004 3.66666C11.8414 3.66666 13.3338 5.15905 13.3338 6.99999C13.3338 8.84094 11.8414 10.3333 10.0004 10.3333C8.15947 10.3333 6.66708 8.84094 6.66708 6.99999Z"})),ne=c.object({secretName:c.string().min(1,"Secret Name is required"),keysValues:c.array(c.object({key:c.string().min(1,"Key is required"),value:c.string().min(1,"Value is required"),showPassword:c.boolean().optional()}))});async function oe(s,i){const t=C(w.secrets.detail(s)),l=await g(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(l.status===404&&v(),!l.ok)throw new N({message:"Error updating secret",status:l.status,statusText:l.statusText});return l.json()}function ce(s){return Q({mutationFn:async({id:i,body:t})=>oe(i,t),...s})}function we({secretId:s,isSecretNameEditable:i,dialogTitle:t}){return e.jsxs(Z,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(G,{children:e.jsx(O,{children:t})}),e.jsx(ue,{secretId:s,isSecretNameEditable:i})]})}function ue({secretId:s,isSecretNameEditable:i}){const{data:t,isLoading:l,isError:n}=z({...j.secretDetail(s)}),{handleSubmit:E,control:u,setValue:m,watch:b,formState:{isValid:V}}=se({resolver:ee(ne),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:x,append:q,remove:D}=te({control:u,name:"keysValues"});y.useEffect(()=>{var a;t&&(m("secretName",t.name),m("keysValues",Object.entries(((a=t.body)==null?void 0:a.values)||{}).map(([r,o])=>({key:r,value:String(o)}))))},[t,m]);const F=()=>{q({key:"",value:"",showPassword:!1})},{toast:k}=R(),S=L(),{mutate:P}=ce({onError(a){U(a)&&k({status:"error",emphasis:"subtle",description:a.message,rounded:!0})},onSuccess(){k({status:"success",emphasis:"subtle",description:"Secret updated successfull",rounded:!0}),S.invalidateQueries({queryKey:["secrets"]}),S.invalidateQueries({queryKey:["secretDetail",s]})}}),K=a=>{const r={name:a.secretName,scope:"workspace",values:a.keysValues.reduce((o,d)=>(d.key&&d.value&&(o[d.key]=d.value),o),{})};P({id:s,body:r})},A=a=>{const r=b(`keysValues.${a}.showPassword`);m(`keysValues.${a}.showPassword`,!r)};return l?e.jsx("p",{children:"Loading..."}):n?e.jsx("p",{children:"Error fetching secret details."}):e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"edit-secret-form",className:"gap-5 p-5",onSubmit:E(K),children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(p,{name:"secretName",control:u,render:({field:a})=>e.jsx(f,{...a,className:"mb-3 w-full",required:!0,disabled:!i})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),x.map((a,r)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(p,{name:`keysValues.${r}.key`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(p,{name:`keysValues.${r}.value`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:b(`keysValues.${r}.showPassword`)?"text":"password"})}),e.jsx("button",{type:"button",onClick:()=>A(r),className:"absolute inset-y-1 right-0 flex items-center pb-1 pr-3",children:e.jsx(le,{className:"h-4 w-4 flex-shrink-0"})})]})}),e.jsxs("div",{className:"flex items-center",children:[r===x.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:F,className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(M,{className:"flex-shrink-0 fill-primary-600"})}),r!==x.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>D(r),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx($,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},a.id))]})}),e.jsxs(B,{className:"gap-[10px]",children:[e.jsx(H,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",type:"submit",form:"edit-secret-form",disabled:!V,children:"Save Secret"})]})]})}function ge({code:s}){return e.jsx(J,{children:e.jsxs(X,{children:[e.jsx(_,{children:e.jsx(W,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})}),e.jsxs(Y,{className:"z-50 flex max-w-[480px] flex-col gap-2 bg-theme-surface-primary p-5 text-text-sm text-theme-text-primary",children:[e.jsx("p",{className:"text-md text-theme-text-primary",children:"To use your secret in a step, you can use the following code:"}),e.jsx(ae,{highlightCode:!0,wrap:!0,codeClasses:"break-words",code:s}),e.jsx("a",{className:"link w-fit text-primary-400",target:"_blank",href:"https://docs.zenml.io/how-to/interact-with-secrets#accessing-registered-secrets",children:"Learn More"})]})]})})}export{we as E,le as S,ge as a,j as b,ne as s,ce as u};
@@ -1 +1 @@
1
- import{j as s}from"./@radix-DP6vWzyx.js";import{I as a,f as p}from"./index-QQb7wQEC.js";import{u as w}from"./index.esm-cuVep_NJ.js";import{t as u}from"./zod-D89GC_vc.js";import{P as f}from"./PasswordChecker-CW0kqY0W.js";import{g as h}from"./form-schemas-1AyOCx90.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:u(h(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(f,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
1
+ import{j as s}from"./@radix-DeK6qiuw.js";import{I as a,f as p}from"./index-CCOPpudF.js";import{u as w}from"./index.esm-Dy6Z9Ung.js";import{t as u}from"./zod-BwEbpOxH.js";import{P as f}from"./PasswordChecker-B0nadgh6.js";import{g as h}from"./form-schemas-K6FYKjwa.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:u(h(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(f,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
@@ -0,0 +1 @@
1
+ import{j as e,r as o}from"./@radix-DeK6qiuw.js";import{S as I}from"./plus-tf1V2hTJ.js";import{S as z}from"./refresh-BjOeWlEq.js";import{S as R,P as O}from"./SearchField-lp1KgU4e.js";import{s as f}from"./index-CEV4Cvaf.js";import{W as F,Z as L,$ as q,a0 as U,S as h,A as C,b as k,B as _,r as y,a8 as M,ag as B,ah as H,ai as $,F as Q,p as W,q as G,i as K,j as Z,ao as J,ap as V,aq as X,ar as Y,f as p,D as w,w as ee,x as se,at as te,z as u,L as ae}from"./index-CCOPpudF.js";import{a as N,b as re,c as ne}from"./@tanstack-DT5WLu9C.js";import{L as D,b as ie,c as le}from"./@react-router-B3Z5rLr2.js";import{C as b}from"./CopyButton-LNcWaa14.js";import{D as ce}from"./DisplayDate-CDMUcQHS.js";import{I as oe}from"./InlineAvatar-DiGOWNKF.js";import{C as g}from"./CodeSnippet-JzR8CEtw.js";import{C as de}from"./CollapsibleCard-DQW_ktMO.js";import{S as me}from"./chevron-right-double-D7ojK9Co.js";import{e as S}from"./components-Br2ezRib.js";import{s as xe}from"./url-CkvKAnwF.js";import{N as v}from"./NumberBox-Dtp3J6g5.js";import{C as ue}from"./ComponentBadge-D_g62Wv8.js";import{S as he}from"./dots-horizontal-otGBOSDJ.js";import{D as pe,S as fe}from"./DialogItem-Bxf8FuAT.js";import{S as je}from"./trash-arLUMWMS.js";import{I as ge}from"./Infobox-Cx4xGoXR.js";import{A as ye}from"./AlertDialogDropdownItem-DezXKmDf.js";function Ne(){return e.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:e.jsxs(F,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[e.jsx(me,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})}const A=o.createContext(null);function be({children:s}){const[t,a]=o.useState([]);return e.jsx(A.Provider,{value:{integrations:t,setIntegrations:a},children:s})}function T(){const s=o.useContext(A);if(s===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return s}function we({children:s,stackId:t,stackName:a}){return e.jsxs(L,{children:[e.jsx(q,{children:s}),e.jsx(U,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(be,{children:[e.jsx(Ne,{}),e.jsx(Se,{stackId:t}),e.jsx(ke,{name:a}),e.jsx(ve,{stackId:t})]})})]})}function Se({stackId:s}){const t=N({...f.stackDetail(s)});return t.isError?null:t.isPending?e.jsx("div",{className:"p-5",children:e.jsx(h,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center space-x-2 border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsx(C,{type:"square",size:"lg",children:e.jsx(k,{size:"lg",children:t.data.name[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:t.data.id}),e.jsx(b,{copyText:t.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:t.data.name})})]})]})}function ve({stackId:s}){var n;const{setIntegrations:t}=T(),a=N({...f.stackDetail(s)});if(o.useEffect(()=>{var d;if(!a.data)return;const l=S((d=a.data.metadata)==null?void 0:d.components).map(c=>{var m;return(m=c.body)==null?void 0:m.integration}).filter(c=>!!c&&c!=="built-in"&&c!=="custom");l.length>=1&&t(c=>Array.from(new Set([...c,...l])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(h,{className:"h-[300px] w-full"})});const r=S((n=a.data.metadata)==null?void 0:n.components);return e.jsx("ul",{className:"space-y-5 p-5",children:r.map(i=>e.jsx("li",{children:e.jsx(Ce,{component:i})},i.id))})}function Ce({component:s}){var t,a,r,n;return e.jsxs(_,{className:"flex items-center justify-between p-5",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("img",{width:32,height:32,alt:`${(t=s.body)==null?void 0:t.flavor_name} logo`,src:xe(((a=s.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(D,{to:y.components.detail(s.id),className:"text-text-xl",children:s.name}),e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.id.split("-")[0]}),e.jsx(b,{copyText:s.id})]})]})]}),e.jsx(ue,{type:((r=s.body)==null?void 0:r.type)||"orchestrator",children:M(((n=s.body)==null?void 0:n.type)||"")})]})}function ke({name:s}){const{integrations:t}=T();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(de,{title:e.jsx("span",{className:"text-text-lg",children:"Set this stack"}),children:e.jsxs("ul",{className:"space-y-5",children:[e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{children:"1"}),e.jsx("p",{className:"font-semibold",children:"Set your stack"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the stack as active on your client"}),e.jsx(g,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${s}`})]})]}),t.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{children:"2"}),e.jsx("p",{className:"font-semibold",children:"Install the integrations"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the required integrations to run pipelines in your stack"}),e.jsx(g,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${t.join(" ")}`})]})]})]})})})}const P=o.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(B,{...a,ref:r,children:[e.jsx(H,{children:e.jsx($,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(De,{action:"update"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Update a stack"}),e.jsx(g,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${t} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));P.displayName="UpdateStackDialog";function De({action:s}){function t(){switch(s){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(ge,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to ",t()," your stack."]})]})})})}async function Ae({stackId:s},t){const a=W(G.stacks.detail(s)),r=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while deleting stack ${s}`);throw new Q({status:r.status,statusText:r.statusText,message:n})}return r.json()}function Te(s){return re({...s,mutationFn:async({stackId:t})=>Ae({stackId:t})})}function Pe(s){const{toast:t}=K(),a=ne(),r=ie(),n=Te({onSuccess:async()=>{a.invalidateQueries({queryKey:f.all}),r(y.stacks.overview)},onError:l=>{t({status:"error",emphasis:"subtle",icon:e.jsx(Z,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:l.message,rounded:!0})}});function i(){n.mutate({stackId:s})}return{handleDelete:i,deleteStack:n}}const E=o.forwardRef(({closeModal:s,name:t,stackId:a,...r},n)=>{const{handleDelete:i,deleteStack:l}=Pe(a);return e.jsxs(J,{...r,className:"p-0",ref:n,children:[e.jsxs(V,{className:"m-0 py-2 pl-5 pr-3 text-text-lg font-semibold",children:["Delete ",t]}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(X,{children:["Are you sure you want to delete this stack? ",e.jsx("br",{}),"This action cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(Y,{onClick:()=>s==null?void 0:s(),asChild:!0,children:e.jsx(p,{intent:"secondary",children:"Cancel"})}),e.jsxs(p,{disabled:l.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[l.isPending&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-error"}),"Delete"]})]})]})});E.displayName="DeleteStackDialog";function Ee({name:s,id:t}){const[a,r]=o.useState(!1),[n,i]=o.useState(!1),l=o.useRef(null),d=o.useRef(null);function c(){d.current=l.current}function m(x){r(x),x===!1&&i(!1)}return e.jsx(w,{open:n,onOpenChange:i,children:e.jsxs(w,{children:[e.jsx(ee,{className:"z-10",ref:l,children:e.jsx(he,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(se,{hidden:a,onCloseAutoFocus:x=>{d.current&&(d.current.focus(),d.current=null,x.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(pe,{onSelect:c,onOpenChange:m,icon:e.jsx(fe,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(P,{name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})}),e.jsx(ye,{onSelect:c,onOpenChange:m,icon:e.jsx(je,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(E,{stackId:t,name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})})]})]})})}function Ie(){return[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:t,id:a}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(C,{type:"square",size:"md",children:e.jsx(k,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(we,{stackName:t,stackId:a,children:e.jsx("h2",{className:"text-text-md font-semibold",children:t})})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(b,{copyText:a})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ce,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.body)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(oe,{username:te(t)}):null}},{id:"actions",header:"",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{id:t,name:a}=s();return e.jsx(Ee,{name:a,id:t})}}]}const j=1,ze=u.object({page:u.coerce.number().min(j).optional().default(j).catch(j),name:u.string().optional(),operator:u.enum(["and","or"]).optional()});function Re(){const[s]=le(),{page:t,name:a,operator:r}=ze.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function rs({fixedQueryParams:s={}}){const t=Re(),{refetch:a,data:r}=N({...f.stackList({...t,sort_by:"desc:updated",...s}),throwOnError:!0});return e.jsx("section",{children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx(R,{searchParams:t}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(p,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>a(),children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(p,{size:"md",asChild:!0,children:e.jsxs(D,{to:y.stacks.create.index,children:[e.jsx(I,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Stack"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:r?e.jsx(ae,{columns:Ie(),data:r.items}):e.jsx(h,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&e.jsx(O,{searchParams:t,paginate:r}):e.jsx(h,{className:"h-[36px] w-[300px]"})]})]})})}export{rs as S};
@@ -0,0 +1 @@
1
+ import{j as e,r as h}from"./@radix-DeK6qiuw.js";import{R as C,o as y,S as o,e as S,a8 as T,a1 as w,a2 as P,a3 as k,a4 as E,J as D,at as B,z as b,M as O,N as I,O as f,aF as R,a9 as U,K as q,P as g}from"./index-CCOPpudF.js";import{s as v}from"./url-CkvKAnwF.js";import{C as F}from"./CopyButton-LNcWaa14.js";import{S as H}from"./chevron-down-6JyMkfjR.js";import{c as K}from"./index-B1mVPYxf.js";import{a as M}from"./@tanstack-DT5WLu9C.js";import{K as m,N as _}from"./NestedCollapsible-DYbgyKxK.js";import{D as N}from"./DisplayDate-CDMUcQHS.js";import{I as $}from"./InlineAvatar-DiGOWNKF.js";import{c as z,b as A}from"./@react-router-B3Z5rLr2.js";function i(t){return M({...K.componentDetail(t),throwOnError:!0})}function ue({componentId:t,isPanel:a}){return e.jsxs(C,{className:"space-y-1",children:[e.jsx(L,{isPanel:a,componentId:t}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(V,{componentId:t}),e.jsx(Q,{componentId:t}),e.jsx(J,{componentId:t})]})]})}function L({componentId:t,isPanel:a}){const s=i(t),{setCurrentBreadcrumbData:r}=y();if(h.useEffect(()=>{s.data&&!a&&r({segment:"componentDetail",data:s.data})},[s.data,a]),s.isError)return null;if(s.isPending)return e.jsx(o,{className:"h-6 w-[200px]"});const n=s.data.id;return e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:n}),e.jsx(F,{copyText:n})]})}function Q({componentId:t}){const a=i(t);return a.isError?null:a.isPending?e.jsx(o,{className:"h-6 w-[100px]"}):e.jsx("p",{className:"truncate text-display-xs font-semibold",children:a.data.name})}function V({componentId:t}){var s;const a=i(t);return a.isError?null:a.isPending?e.jsx(o,{className:"h-5 w-5"}):e.jsx("img",{className:"h-5 w-5",src:v(((s=a.data.body)==null?void 0:s.logo_url)||""),alt:`Icon of component ${a.data.name}`})}function J({componentId:t}){var s;const a=i(t);return a.isError?null:a.isPending?e.jsx(o,{className:"h-6 w-[100px]"}):e.jsx(S,{className:"whitespace-nowrap rounded-md bg-turquoise-25 font-semibold text-turquoise-700",color:"turquoise",rounded:!1,children:T(((s=a.data.body)==null?void 0:s.type)||"")})}function G({componentId:t}){return e.jsxs("section",{className:"grid grid-cols-1 gap-5 @5xl:grid-cols-2",children:[e.jsx("div",{children:e.jsx(W,{componentId:t})}),e.jsx("div",{children:e.jsx(X,{componentId:t})})]})}function W({componentId:t}){var x,p,l,c,j;const[a,s]=h.useState(!0),r=i(t);if(r.isError)return null;if(r.isPending)return e.jsx(o,{className:"h-[150px] w-full"});const n=(x=r.data.body)==null?void 0:x.user,u=(p=r.data.body)==null?void 0:p.created,d=(l=r.data.body)==null?void 0:l.updated;return e.jsxs(w,{open:a,onOpenChange:s,children:[e.jsx(P,{className:"flex items-center gap-[10px]",children:e.jsxs(k,{className:"flex w-full items-center",children:[e.jsx(H,{className:` ${a?"":"-rotate-90"} mr-2 h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Basic Parameters"]})}),e.jsx(E,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:e.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[e.jsx(m,{label:"Component Name",value:r.data.name}),e.jsx(m,{label:"Flavor",value:e.jsxs(D,{rounded:!1,className:"w-fit gap-0.5 text-theme-text-primary",color:"grey",emphasis:"minimal",children:[e.jsx("img",{width:20,height:20,src:v(((c=r.data.body)==null?void 0:c.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{className:"truncate",children:(j=r.data.body)==null?void 0:j.flavor_name})]})}),e.jsx(m,{label:"Author",value:n?e.jsx($,{username:B(n)}):"Not available"}),e.jsx(m,{label:"Updated",value:d?e.jsx(N,{dateString:d}):"Not available"}),e.jsx(m,{label:"Created",value:u?e.jsx(N,{dateString:u}):"Not available"})]})})]})}function X({componentId:t}){var s;const a=i(t);return a.isError?null:a.isPending?e.jsx(o,{className:"h-[150px] w-full"}):e.jsx(_,{isInitialOpen:!0,intent:"primary",title:"Configuration",data:(s=a.data.metadata)==null?void 0:s.configuration})}const Y=b.object({tab:b.enum(["configuration","stacks","runs"]).optional().default("configuration").catch("configuration")});function Z(){const[t]=z(),{tab:a}=Y.parse({tab:t.get("tab")||void 0});return a}function de({componentId:t,isPanel:a,stacksTabContent:s,runsTabContent:r}){const[n,u]=h.useState("configuration"),d=Z(),x=A();function p(l){if(a){u(l);return}const c=new URLSearchParams;c.set("tab",l),x(`?${c.toString()}`)}return e.jsx("div",{className:"p-5",children:e.jsxs(O,{value:a?n:d,onValueChange:p,children:[e.jsxs(I,{children:[e.jsxs(f,{className:"flex items-center gap-2 text-text-md",value:"configuration",children:[e.jsx(R,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Configuration"})]}),e.jsxs(f,{className:"flex items-center gap-2 text-text-md",value:"stacks",children:[e.jsx(U,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Stacks"})]}),e.jsxs(f,{className:"flex items-center gap-2 text-text-md",value:"runs",children:[e.jsx(q,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Runs"})]})]}),e.jsx(g,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:e.jsx(G,{componentId:t})}),e.jsx(g,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"stacks",children:s}),e.jsx(g,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"runs",children:r})]})})}export{ue as S,de as a};