zenml-nightly 0.66.0.dev20240919__py3-none-any.whl → 0.66.0.dev20240927__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.
- zenml/VERSION +1 -1
- zenml/cli/__init__.py +7 -0
- zenml/cli/base.py +2 -2
- zenml/cli/pipeline.py +21 -0
- zenml/cli/utils.py +14 -11
- zenml/client.py +68 -3
- zenml/config/step_configurations.py +0 -5
- zenml/constants.py +3 -0
- zenml/enums.py +2 -0
- zenml/integrations/__init__.py +1 -0
- zenml/integrations/aws/flavors/sagemaker_orchestrator_flavor.py +76 -7
- zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +370 -115
- zenml/integrations/azure/orchestrators/azureml_orchestrator.py +157 -4
- zenml/integrations/constants.py +1 -0
- zenml/integrations/deepchecks/__init__.py +1 -1
- zenml/integrations/deepchecks/data_validators/deepchecks_data_validator.py +55 -14
- zenml/integrations/deepchecks/validation_checks.py +62 -5
- zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +207 -18
- zenml/integrations/lightning/__init__.py +1 -1
- zenml/integrations/lightning/flavors/lightning_orchestrator_flavor.py +9 -0
- zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +18 -17
- zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint.py +2 -6
- zenml/integrations/mlflow/__init__.py +14 -15
- zenml/integrations/mlflow/steps/mlflow_registry.py +2 -0
- zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +38 -26
- zenml/integrations/skypilot_kubernetes/__init__.py +52 -0
- zenml/integrations/skypilot_kubernetes/flavors/__init__.py +26 -0
- zenml/integrations/skypilot_kubernetes/flavors/skypilot_orchestrator_kubernetes_vm_flavor.py +125 -0
- zenml/integrations/skypilot_kubernetes/orchestrators/__init__.py +25 -0
- zenml/integrations/skypilot_kubernetes/orchestrators/skypilot_kubernetes_vm_orchestrator.py +74 -0
- zenml/integrations/tensorboard/visualizers/tensorboard_visualizer.py +1 -1
- zenml/models/v2/base/filter.py +315 -149
- zenml/models/v2/base/scoped.py +5 -2
- zenml/models/v2/core/artifact_version.py +69 -8
- zenml/models/v2/core/model.py +43 -6
- zenml/models/v2/core/model_version.py +49 -1
- zenml/models/v2/core/model_version_artifact.py +18 -3
- zenml/models/v2/core/model_version_pipeline_run.py +18 -4
- zenml/models/v2/core/pipeline.py +108 -1
- zenml/models/v2/core/pipeline_run.py +172 -21
- zenml/models/v2/core/run_template.py +53 -1
- zenml/models/v2/core/stack.py +33 -5
- zenml/models/v2/core/step_run.py +7 -0
- zenml/new/pipelines/pipeline.py +4 -0
- zenml/new/pipelines/run_utils.py +4 -1
- zenml/orchestrators/base_orchestrator.py +41 -12
- zenml/stack/stack.py +11 -2
- zenml/utils/env_utils.py +54 -1
- zenml/utils/string_utils.py +50 -0
- zenml/zen_server/cloud_utils.py +33 -8
- zenml/zen_server/dashboard/assets/{404-iO8vpun1.js → 404-Y50hSt65.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-B6kq9fJZ.js → @reactflow-ytavUpwh.js} +1 -1
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-xLR9a1iw.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-DNWdQmbo.js → CodeSnippet-IxXNxUDa.js} +2 -2
- zenml/zen_server/dashboard/assets/{CollapsibleCard-B2OVjWYE.js → CollapsibleCard-BhutZbBL.js} +1 -1
- zenml/zen_server/dashboard/assets/{Commands-DsoaVElZ.js → Commands-Bf-rd1z8.js} +1 -1
- zenml/zen_server/dashboard/assets/ComponentBadge-gKR1OIwG.js +1 -0
- zenml/zen_server/dashboard/assets/{CopyButton-BqE_-PHO.js → CopyButton-DcFHidFJ.js} +1 -1
- zenml/zen_server/dashboard/assets/{CsvVizualization-Dyasr2jU.js → CsvVizualization-QSbjrfxw.js} +1 -1
- zenml/zen_server/dashboard/assets/{DialogItem-Cz1VLRwa.js → DialogItem-Cd3HqST4.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-DorJD_va.js → Error-BhwdmqK7.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-CIfQTutR.js → ExecutionStatus-D6r6aK8J.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-CmfvtNeq.js → Helpbox-0pBpTwTm.js} +1 -1
- zenml/zen_server/dashboard/assets/Infobox-BTK_EUKT.js +1 -0
- zenml/zen_server/dashboard/assets/{InlineAvatar-Ds2ZFHPc.js → InlineAvatar-CA3DFMcM.js} +1 -1
- zenml/zen_server/dashboard/assets/Partials-QLOZw624.js +1 -0
- zenml/zen_server/dashboard/assets/{ProviderIcon-BOQJgapd.js → ProviderIcon-C16CCIN4.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-BsYBw9YA.js → ProviderRadio-D3FuCHf3.js} +1 -1
- zenml/zen_server/dashboard/assets/{SearchField-W3GXpLlI.js → SearchField-BzmfxS0L.js} +1 -1
- zenml/zen_server/dashboard/assets/SecretTooltip-BaMwHF-Q.js +1 -0
- zenml/zen_server/dashboard/assets/{SetPassword-B-0a8UCj.js → SetPassword-DuIC65H9.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tick-i1DYsVcX.js → Tick-DJTCF0Re.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-C6Zb7ASL.js → UpdatePasswordSchemas-CUm-DMpw.js} +1 -1
- zenml/zen_server/dashboard/assets/UsageReason-CKw0juLF.js +1 -0
- zenml/zen_server/dashboard/assets/{WizardFooter-BHbO7zOa.js → WizardFooter-Cv9ApYWU.js} +1 -1
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-BBEe6I9-.js → all-pipeline-runs-query-BA3R2Sey.js} +1 -1
- zenml/zen_server/dashboard/assets/{cloud-only-BuP4Kt_7.js → cloud-only-BB4BVa6E.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-B2x2d4r1.js → create-stack-F29xAUEx.js} +1 -1
- zenml/zen_server/dashboard/assets/delete-run-CP0pcJ3U.js +1 -0
- zenml/zen_server/dashboard/assets/{form-schemas-Bap0f854.js → form-schemas-BKXwSDK2.js} +1 -1
- zenml/zen_server/dashboard/assets/index-BhJ6ZJxv.css +1 -0
- zenml/zen_server/dashboard/assets/{index-B9wVwe7u.js → index-Ci0nJ8EZ.js} +5 -5
- zenml/zen_server/dashboard/assets/{index-DFi8BroH.js → index-D-mtoBj3.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-DwxUz8VA.js → login-mutation-ax6iL2Mb.js} +1 -1
- zenml/zen_server/dashboard/assets/{not-found-D5i9DunU.js → not-found-DbjllLY_.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-oS4hqS8M.js → page-3qPX9WYH.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-iwoJnwPv.js → page-6mfzecin.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DGMa3ZQL.js → page-8kYmrh0B.js} +1 -1
- zenml/zen_server/dashboard/assets/page-B1n7_W7z.js +1 -0
- zenml/zen_server/dashboard/assets/page-BDg1F-Ug.js +6 -0
- zenml/zen_server/dashboard/assets/{page-xQG6GmFJ.js → page-BXarY9K2.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BZZhLo2u.js +1 -0
- zenml/zen_server/dashboard/assets/page-Bbf_oBjn.js +1 -0
- zenml/zen_server/dashboard/assets/page-BjjuBvZG.js +9 -0
- zenml/zen_server/dashboard/assets/{page-J0s8Sq3N.js → page-BukXK1Aa.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CHaQkFK5.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BitfWsiW.js → page-CKHNAq7z.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DE03uZZR.js → page-CS0SYFK8.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-WCQ659by.js → page-CvKnNK1S.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CrSdkteO.js → page-DGM1CbYT.js} +2 -2
- zenml/zen_server/dashboard/assets/{page-DQGCHKrQ.js → page-DMSLXKGT.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DOmIZ2ra.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DgM-N9RL.js → page-DRfcRK1w.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DYVmJ9_w.js +3 -0
- zenml/zen_server/dashboard/assets/{page-BiF8hLbO.js → page-DcTjHmYZ.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DuqYMYmH.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dwow2doB.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DQdwZZ9x.js → page-HkVBdZl6.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-bimkItOg.js → page-MAXyfXBq.js} +1 -1
- zenml/zen_server/dashboard/assets/page-miU2rhYG.js +1 -0
- zenml/zen_server/dashboard/assets/page-p0BhSAWx.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DFCK65G9.js → page-uORspyRu.js} +1 -1
- zenml/zen_server/dashboard/assets/persist-BxIR2XZs.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-xsYgVtR1.js → persist-CfJMar_k.js} +1 -1
- zenml/zen_server/dashboard/assets/sharedSchema-vub0rii3.js +14 -0
- zenml/zen_server/dashboard/assets/stack-detail-query-DQcyzG-2.js +1 -0
- zenml/zen_server/dashboard/assets/tick-circle-m-hJG8i9.js +1 -0
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-DNqmQXDM.js → update-server-settings-mutation-FGVP7X2U.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-DwbuKk1b.js → url-CbAPzsmT.js} +1 -1
- zenml/zen_server/dashboard/index.html +4 -4
- zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
- zenml/zen_server/dashboard_legacy/index.html +1 -1
- zenml/zen_server/dashboard_legacy/{precache-manifest.290b95d5b43efa3368b3dc63d20c4782.js → precache-manifest.6d320abb70db612019dda6c4948e7a90.js} +4 -4
- zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
- zenml/zen_server/dashboard_legacy/static/js/{main.840d1bf0.chunk.js → main.fa9299d5.chunk.js} +2 -2
- zenml/zen_server/dashboard_legacy/static/js/{main.840d1bf0.chunk.js.map → main.fa9299d5.chunk.js.map} +1 -1
- zenml/zen_server/rbac/utils.py +6 -2
- zenml/zen_server/routers/runs_endpoints.py +89 -3
- zenml/zen_stores/sql_zen_store.py +1 -0
- {zenml_nightly-0.66.0.dev20240919.dist-info → zenml_nightly-0.66.0.dev20240927.dist-info}/METADATA +8 -1
- {zenml_nightly-0.66.0.dev20240919.dist-info → zenml_nightly-0.66.0.dev20240927.dist-info}/RECORD +134 -126
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BXeSvmMY.js +0 -1
- zenml/zen_server/dashboard/assets/EditSecretDialog-Du423_3U.js +0 -1
- zenml/zen_server/dashboard/assets/Infobox-BL9NOS37.js +0 -1
- zenml/zen_server/dashboard/assets/Partials-DX-8iEa1.js +0 -1
- zenml/zen_server/dashboard/assets/UsageReason-CCnzmwS8.js +0 -1
- zenml/zen_server/dashboard/assets/index-6DYjZgDn.css +0 -1
- zenml/zen_server/dashboard/assets/page-BFuJICXM.js +0 -9
- zenml/zen_server/dashboard/assets/page-CDOQLrPC.js +0 -1
- zenml/zen_server/dashboard/assets/page-CEJWu1YO.js +0 -1
- zenml/zen_server/dashboard/assets/page-CIbehp7V.js +0 -1
- zenml/zen_server/dashboard/assets/page-CLiRGfWo.js +0 -1
- zenml/zen_server/dashboard/assets/page-CV44mQn9.js +0 -1
- zenml/zen_server/dashboard/assets/page-D5F3DJjm.js +0 -1
- zenml/zen_server/dashboard/assets/page-DI-qTWrm.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dt8VgzbE.js +0 -1
- zenml/zen_server/dashboard/assets/page-oSqx9dkH.js +0 -1
- zenml/zen_server/dashboard/assets/page-p3GqEAUW.js +0 -1
- zenml/zen_server/dashboard/assets/page-qvcUVPE-.js +0 -1
- zenml/zen_server/dashboard/assets/persist-mEZN_fgH.js +0 -1
- zenml/zen_server/dashboard/assets/sharedSchema-BfZcy7aP.js +0 -14
- zenml/zen_server/dashboard/assets/stack-detail-query-CU4egfhp.js +0 -1
- {zenml_nightly-0.66.0.dev20240919.dist-info → zenml_nightly-0.66.0.dev20240927.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.66.0.dev20240919.dist-info → zenml_nightly-0.66.0.dev20240927.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.66.0.dev20240919.dist-info → zenml_nightly-0.66.0.dev20240927.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
import{r as g,j as e}from"./@radix-DnFH_oo1.js";import{o as m,p,ag as d,aH as h}from"./index-Ci0nJ8EZ.js";const x=g.forwardRef((r,t)=>{const{triggerChildren:a,children:i,onSelect:o,onOpenChange:l,icon:D,open:n,...s}=r;return e.jsxs(m,{open:n,onOpenChange:l,children:[e.jsx(p,{asChild:!0,children:e.jsx(d,{...s,className:"hover:cursor-pointer",icon:r.icon,ref:t,onSelect:c=>{c.preventDefault(),o&&o()},children:a})}),e.jsx(h,{children:i})]})});x.displayName="AlertDialogItem";export{x as A};
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import{c as N,g as te,r as Y,j as E}from"./@radix-DnFH_oo1.js";import{X}from"./index-
|
1
|
+
import{c as N,g as te,r as Y,j as E}from"./@radix-DnFH_oo1.js";import{Q as X}from"./index-Ci0nJ8EZ.js";import{S as ae}from"./copy-CaGlDsUy.js";var J={exports:{}};(function(A){var R=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
3
3
|
*
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|
5
5
|
* @author Lea Verou <https://lea.verou.me>
|
6
6
|
* @namespace
|
7
7
|
* @public
|
8
|
-
*/var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,K=v.alias;if(B&&!v.pattern.global){var Q=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,Q+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),G=w+T.length;u&&G>u.reach&&(u.reach=G);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,K,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var q={cause:o+","+d,reach:G};_(t,e,a,b.prev,w,q),u&&q.reach>u.reach&&(u.reach=q.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
|
8
|
+
*/var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,Q=v.alias;if(B&&!v.pattern.global){var K=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,K+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),G=w+T.length;u&&G>u.reach&&(u.reach=G);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,Q,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var q={cause:o+","+d,reach:G};_(t,e,a,b.prev,w,q),u&&q.reach>u.reach&&(u.reach=q.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
|
9
9
|
`),c.hasAttribute("data-start")||c.setAttribute("data-start",String(l+1))}h.textContent=r,i.highlightElement(h)},function(r){c.setAttribute(s,_),h.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var h=(c||document).querySelectorAll(j),t=0,e;e=h[t++];)i.highlightElement(e)}};var z=!1;i.fileHighlight=function(){z||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),z=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(J);var ne=J.exports;const re=te(ne);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;function ie({code:A}){return Y.useEffect(()=>{re.highlightAll()},[]),E.jsx("code",{className:"language-python",children:A})}function oe({code:A,wrap:R=!1,fullWidth:i=!1,highlightCode:g=!1,className:p,codeClasses:y}){const[x,s]=Y.useState(!1);async function m($){try{await navigator.clipboard.writeText($),s(!0),setTimeout(()=>{s(!1)},2e3)}catch(_){console.error("Failed to copy:",_)}}return E.jsxs("div",{className:X(`flex ${i?"w-full":"max-w-fit"} justify-between gap-4 rounded-md border border-theme-border-moderate bg-theme-surface-tertiary px-4 py-3`,p),children:[E.jsx("pre",{className:X(`${R?"":"whitespace-nowrap"} overflow-auto text-left font-mono text-theme-text-primary`,y),children:g?E.jsx(ie,{code:A}):E.jsx("code",{children:A})}),E.jsx("button",{onClick:()=>m(A),children:x?E.jsx("p",{children:"Copied!"}):E.jsx(ae,{className:"fill-neutral-500",width:24,height:24})})]})}export{oe as C};
|
zenml/zen_server/dashboard/assets/{CollapsibleCard-B2OVjWYE.js → CollapsibleCard-BhutZbBL.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{
|
1
|
+
import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{a0 as m,a1 as c,a2 as d,a3 as x,Q as b}from"./index-Ci0nJ8EZ.js";import{S as f}from"./chevron-down-Cwb-W_B_.js";function g({title:r,children:s,initialOpen:o=!1,className:l,contentClassName:t,intent:n="primary"}){const[a,i]=p.useState(o);return e.jsxs(m,{className:l,open:a,onOpenChange:i,children:[e.jsx(c,{intent:n,children:e.jsxs(d,{className:"flex w-full items-center gap-[10px]",children:[e.jsx(f,{className:` ${a?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),r]})}),e.jsx(x,{className:b("space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",t),children:s})]})}export{g as C};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{
|
1
|
+
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{a7 as c,a8 as t,f as l,a9 as d,ab as n,ap as C,aq as m}from"./index-Ci0nJ8EZ.js";import{C as x}from"./CodeSnippet-IxXNxUDa.js";const h=s=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},a.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 12ZM11.2451 7.43304C11.2546 7.43912 11.264 7.44517 11.2734 7.45121L15.994 10.4859C16.0026 10.4914 16.0112 10.497 16.02 10.5026C16.171 10.5996 16.3361 10.7057 16.4676 10.8083C16.6071 10.917 16.8273 11.1089 16.9571 11.4162C17.1148 11.7894 17.1148 12.2106 16.9571 12.5838C16.8273 12.8911 16.6071 13.083 16.4676 13.1917C16.3361 13.2943 16.171 13.4004 16.02 13.4974C16.0112 13.503 16.0026 13.5086 15.994 13.5141L11.2734 16.5488C11.264 16.5548 11.2545 16.5609 11.2451 16.567C11.0694 16.68 10.8846 16.7988 10.7219 16.8835C10.5582 16.9687 10.2611 17.1066 9.89314 17.0804C9.45914 17.0494 9.05999 16.8314 8.79923 16.4831C8.57813 16.1878 8.5335 15.8633 8.51664 15.6796C8.49989 15.4969 8.49995 15.2772 8.49999 15.0683C8.5 15.057 8.5 15.0458 8.5 15.0347V8.96533C8.5 8.95417 8.5 8.94296 8.49999 8.93173C8.49995 8.72279 8.49989 8.50311 8.51664 8.32042C8.5335 8.13665 8.57813 7.81219 8.79923 7.51687C9.05999 7.16856 9.45914 6.95064 9.89314 6.91964C10.2611 6.89336 10.5582 7.03127 10.7219 7.11647C10.8846 7.20117 11.0694 7.32001 11.2451 7.43304ZM10.5 9.33167V14.6683L14.6507 12L10.5 9.33167Z"}));function g({videoLink:s,isButton:r=!0,buttonText:i,fallbackImage:o}){return e.jsxs(c,{children:[r?e.jsx(t,{asChild:!0,children:e.jsxs(l,{className:"mt-5 h-auto gap-1 px-2 py-1 sm:h-7",size:"md",children:[e.jsx(h,{className:"h-5 w-5 shrink-0 fill-white"}),i??e.jsx(e.Fragment,{children:"Watch the Quickstart Guide (3 min)"})]})}):e.jsx(t,{children:o}),e.jsxs(d,{className:"max-w-[1000px]",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:e.jsx(n,{className:"text-text-lg",children:"Get Started"})}),e.jsx("div",{className:"",children:e.jsx("iframe",{className:"aspect-video w-full overflow-hidden",src:s,allowFullScreen:!0,allow:"fullscreen"})}),e.jsx(C,{children:e.jsx(m,{asChild:!0,children:e.jsx(l,{size:"md",children:"Close"})})})]})]})}function w(s){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.description}),e.jsx(x,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:s.command})]})}export{g as V,w as g};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{y as n}from"./index-Ci0nJ8EZ.js";import{C as o}from"./stack-detail-query-DQcyzG-2.js";function m({type:s,children:r}){return e.jsxs(n,{rounded:!1,className:"inline-flex shrink items-center gap-0.5 overflow-x-hidden text-text-sm",color:"purple",emphasis:"minimal",children:[e.jsx(o,{type:s,className:"h-4 w-4 shrink-0 fill-current"}),e.jsx("div",{className:"truncate",children:r})]})}export{m as C};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{T as d,
|
1
|
+
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{T as d,v as u,w as m,x}from"./index-Ci0nJ8EZ.js";import{S as f}from"./copy-CaGlDsUy.js";function v({copyText:s,isVisible:o,copyTitle:n}){const r=a.useRef(null),[p,i]=a.useState(!1),l=o?n:"Copy to Clipboard",c=()=>{navigator.clipboard&&(navigator.clipboard.writeText(s),i(!0),setTimeout(()=>{i(!1)},2e3))};return e.jsx(d,{children:e.jsxs(u,{delayDuration:200,children:[e.jsxs(m,{className:`${o?"":"invisible opacity-0 group-hover/copybutton:opacity-100"} h-4 w-4 rounded-sm p-0.25 transition-all
|
2
2
|
duration-200 hover:bg-theme-surface-primary active:bg-neutral-300 group-hover/copybutton:visible `,onClick:t=>{t.preventDefault(),c()},ref:r,children:[e.jsx("span",{className:"sr-only",children:"Copy to Clipboard"}),e.jsx(f,{className:`${o?"h-5 w-5":"h-3 w-3"} pointer-events-none fill-theme-text-tertiary`})]}),e.jsx(x,{onPointerDownOutside:t=>{t.currentTarget===r.current&&t.preventDefault()},className:"z-50 rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg",sideOffset:5,children:p?"Copied!":l})]})})}export{v as C};
|
zenml/zen_server/dashboard/assets/{CsvVizualization-Dyasr2jU.js → CsvVizualization-QSbjrfxw.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{c as we,r as pe,j as G}from"./@radix-DnFH_oo1.js";import{aY as Ce,aZ as xe,a_ as ke,a$ as Re,b0 as Oe,b1 as Te}from"./index-
|
1
|
+
import{c as we,r as pe,j as G}from"./@radix-DnFH_oo1.js";import{aY as Ce,aZ as xe,a_ as ke,a$ as Re,b0 as Oe,b1 as Te}from"./index-Ci0nJ8EZ.js";import"./@tanstack-QbMbTrh5.js";import"./@react-router-APVeuk-U.js";import"./@reactflow-ytavUpwh.js";var be={exports:{}};/* @license
|
2
2
|
Papa Parse
|
3
3
|
v5.4.1
|
4
4
|
https://github.com/mholt/PapaParse
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,j as r}from"./@radix-DnFH_oo1.js";import{
|
1
|
+
import{r as o,j as r}from"./@radix-DnFH_oo1.js";import{a7 as d,a8 as g,ag as m}from"./index-Ci0nJ8EZ.js";const f=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),p=o.forwardRef((e,n)=>{const{triggerChildren:a,children:C,onSelect:t,onOpenChange:i,icon:L,open:l,...s}=e;return r.jsxs(d,{open:l,onOpenChange:i,children:[r.jsx(g,{asChild:!0,children:r.jsx(m,{...s,className:"hover:cursor-pointer",icon:e.icon,ref:n,onSelect:c=>{c.preventDefault(),t&&t()},children:a})}),C]})});p.displayName="DialogItem";export{p as D,f as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-DnFH_oo1.js";import{j as r,
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{j as r,O as a}from"./index-Ci0nJ8EZ.js";import{E as l}from"./EmptyState-Cs3DEmso.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
|
zenml/zen_server/dashboard/assets/{ExecutionStatus-CIfQTutR.js → ExecutionStatus-D6r6aK8J.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{r,j as t}from"./@radix-DnFH_oo1.js";import{
|
1
|
+
import{r,j as t}from"./@radix-DnFH_oo1.js";import{Q as a,j as l}from"./index-Ci0nJ8EZ.js";import{S as c}from"./check-circle-DOoS4yhF.js";const s=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6569 6.34315C14.5327 3.21895 9.46734 3.21895 6.34315 6.34315C5.23515 7.45114 4.52139 8.80057 4.19904 10.2213C4.07684 10.7599 3.54115 11.0974 3.00256 10.9752C2.46396 10.853 2.12641 10.3173 2.24862 9.77873C2.652 8.00086 3.54638 6.31149 4.92893 4.92893C8.83418 1.02369 15.1658 1.02369 19.0711 4.92893C19.8691 5.72692 20.5003 6.3951 21 6.95359V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H20.1257C19.6137 8.38306 18.8352 7.52152 17.6569 6.34315ZM20.9974 13.0248C21.536 13.147 21.8736 13.6827 21.7514 14.2213C21.348 15.9991 20.4536 17.6885 19.0711 19.0711C15.1658 22.9763 8.83418 22.9763 4.92893 19.0711C4.13094 18.2731 3.49975 17.6049 3 17.0464V20C3 20.5523 2.55228 21 2 21C1.44772 21 1 20.5523 1 20V14C1 13.4477 1.44772 13 2 13H8C8.55228 13 9 13.4477 9 14C9 14.5523 8.55228 15 8 15H3.87429C4.38627 15.6169 5.16477 16.4785 6.34315 17.6569C9.46734 20.781 14.5327 20.781 17.6569 17.6569C18.7648 16.5489 19.4786 15.1994 19.801 13.7787C19.9232 13.2401 20.4588 12.9026 20.9974 13.0248Z"})),C=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.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 12ZM10.7071 8.29289C11.0976 8.68342 11.0976 9.31658 10.7071 9.70711L8.41421 12L10.7071 14.2929C11.0976 14.6834 11.0976 15.3166 10.7071 15.7071C10.3166 16.0976 9.68342 16.0976 9.29289 15.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L9.29289 8.29289C9.68342 7.90237 10.3166 7.90237 10.7071 8.29289ZM16.2071 8.29289C16.5976 8.68342 16.5976 9.31658 16.2071 9.70711L13.9142 12L16.2071 14.2929C16.5976 14.6834 16.5976 15.3166 16.2071 15.7071C15.8166 16.0976 15.1834 16.0976 14.7929 15.7071L11.7929 12.7071C11.4024 12.3166 11.4024 11.6834 11.7929 11.2929L14.7929 8.29289C15.1834 7.90237 15.8166 7.90237 16.2071 8.29289Z"})),o=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.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 12Z"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5C6.67157 13.5 6 12.8284 6 12ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM15 12C15 11.1716 15.6716 10.5 16.5 10.5C17.3284 10.5 18 11.1716 18 12C18 12.8284 17.3284 13.5 16.5 13.5C15.6716 13.5 15 12.8284 15 12Z"}));function u(e){if(!e)return null;switch(e){case"completed":return"fill-success-500";case"failed":return"fill-error-500";case"initializing":return"fill-primary-400";case"cached":return"fill-neutral-400";case"running":return"fill-warning-500"}}function f(e){if(!e)return null;switch(e){case"completed":return"bg-success-50";case"failed":return"bg-error-50";case"initializing":return"bg-primary-50";case"cached":return"bg-theme-surface-tertiary";case"running":return"bg-warning-50"}}function p(e){if(!e)return"grey";switch(e){case"completed":return"green";case"failed":return"red";case"initializing":return"purple";case"cached":return"grey";case"running":return"yellow"}}function w({status:e,className:i}){if(!e)return null;const n=a("h-4 shrink-0 w-4",u(e),i);switch(e){case"completed":return t.jsx(c,{className:n});case"failed":return t.jsx(l,{className:n});case"initializing":return t.jsx(o,{className:n});case"cached":return t.jsx(C,{className:n});case"running":return t.jsx(s,{className:a("animate-spin [animation-duration:_5s] motion-reduce:animate-none",n)})}}export{w as E,p as a,f as b,u as g};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-DnFH_oo1.js";import{B as t,
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{B as t,aP as a}from"./index-Ci0nJ8EZ.js";import{H as l}from"./help-CwN931fX.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,j as r}from"./@radix-DnFH_oo1.js";import{Q as i,W as o,j as l,aQ as m}from"./index-Ci0nJ8EZ.js";const c=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12 8C12.5523 8 13 8.44771 13 9V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V9C11 8.44771 11.4477 8 12 8Z"}),t.createElement("path",{d:"M12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2476 2.11111C11.0074 0.729566 12.9926 0.729561 13.7524 2.11111L23.0612 19.0361C23.7943 20.369 22.8299 21.9999 21.3087 21.9999H2.69127C1.17006 21.9999 0.205733 20.369 0.938833 19.0361L10.2476 2.11111ZM21.3087 19.9999L12 3.07495L2.69126 19.9999L21.3087 19.9999Z"})),d=m("flex items-center text-text-sm rounded-md border px-4 py-3",{variants:{intent:{primary:"border-primary-400 bg-primary-25",warning:"bg-[#FFF6EA] border-theme-border-moderate",neutral:"border-theme-border-moderate",error:"bg-error-50 border-error-300"}},defaultVariants:{intent:"primary"}});function h({children:e,className:n,intent:a,...s}){return r.jsxs("div",{...s,className:i(d({intent:a}),n),children:[r.jsx(x,{intent:a}),r.jsx("div",{className:"w-full min-w-0",children:e})]})}function x({intent:e}){switch(e){case"warning":return r.jsx(c,{className:"mr-4 h-5 w-5 shrink-0 fill-warning-700"});case"error":return r.jsx(l,{className:"mr-4 h-5 w-5 shrink-0 fill-error-700"});default:return r.jsx(o,{className:"mr-4 h-5 w-5 shrink-0 fill-theme-text-brand"})}}export{h as I};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-DnFH_oo1.js";import{A as s,b as a}from"./index-
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{A as s,b as a}from"./index-Ci0nJ8EZ.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{S as Z}from"./package-DYKZ5jKW.js";import{I as C}from"./Infobox-BTK_EUKT.js";import{b as E,C as O}from"./index.esm-BE1uqCX5.js";import{T as N}from"./Tick-DJTCF0Re.js";import{aM as T,aN as H,aO as V,aL as I,S as b,U as k,A as z,b as A,f as G,B as W,ay as Y,az as F,aA as q,aB as Q,aC as U}from"./index-Ci0nJ8EZ.js";import{C as o}from"./ComponentBadge-gKR1OIwG.js";import{s as v}from"./sharedSchema-vub0rii3.js";import{g as $}from"./ProviderRadio-D3FuCHf3.js";import{a as y}from"./@tanstack-QbMbTrh5.js";import{S as P}from"./logs-GiDJXbLS.js";import{C as w}from"./CodeSnippet-IxXNxUDa.js";import{N as M}from"./NumberBox-CrN0_kqI.js";import{p as J,s as K}from"./persist-BxIR2XZs.js";import{S as X}from"./link-external-BT2L8hAQ.js";import{C as ee}from"./ProviderIcon-C16CCIN4.js";const D=p.createContext(null);function Ie({children:a}){const{success:t,data:s}=J(),[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(H,{className:"block",children:e.jsxs(C,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",$(a)," communication. You can revoke these permissions at any time."]})}),e.jsx(V,{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,B,R;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:((B=r==null?void 0:r.operator)==null?void 0:B.name)||"Vertex Step Operator",subtitle:((R=r==null?void 0:r.operator)==null?void 0:R.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(L,{setTimestampBool:!0}),a.provider==="gcp"&&e.jsx(ce,{}),a.provider==="azure"&&e.jsx(de,{displayInfobox:!0})]})}function L({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),K({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(L,{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(U,{value:u,children:[x," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},x))})})]})})}function Le({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 Ze({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(Z,{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,L as D,De as E,ce as G,Ie as N,Le as R,Ze as a,Pe as b,S as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as r}from"./@radix-DnFH_oo1.js";import{S as o,a as m,b as n}from"./gcp-Dj6ntk0L.js";import{
|
1
|
+
import{j as r}from"./@radix-DnFH_oo1.js";import{S as o,a as m,b as n}from"./gcp-Dj6ntk0L.js";import{Q as t}from"./index-Ci0nJ8EZ.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(n,{...s,className:a});case"azure":return r.jsx(m,{...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-DnFH_oo1.js";import{
|
1
|
+
import{r as c,j as e}from"./@radix-DnFH_oo1.js";import{Q as i,f as d,r as m,a6 as u,I as x,e as p}from"./index-Ci0nJ8EZ.js";import{T as f}from"./Tick-DJTCF0Re.js";import{c as h}from"./persist-BxIR2XZs.js";import{b as j}from"./@react-router-APVeuk-U.js";import{b as N}from"./index.esm-BE1uqCX5.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 +1 @@
|
|
1
|
-
import{r as l,j as t}from"./@radix-DnFH_oo1.js";import{S as v}from"./dots-horizontal-C6K59vUm.js";import{F as w}from"./chevron-right-double-c9H46Kl8.js";import{
|
1
|
+
import{r as l,j as t}from"./@radix-DnFH_oo1.js";import{S as v}from"./dots-horizontal-C6K59vUm.js";import{F as w}from"./chevron-right-double-c9H46Kl8.js";import{aG as S,Q as j,I as C}from"./index-Ci0nJ8EZ.js";import{o as b}from"./url-CbAPzsmT.js";import{b as x,c as L}from"./@react-router-APVeuk-U.js";import{d as P}from"./index-5GJ5ysEZ.js";const E=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left-double"},l.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"}))),N=E,R=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left"},l.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"}))),y=R;function z({paginate:r,searchParams:o}){const d=x(),{index:a,total_pages:c}=r;function u(n){const i=new URLSearchParams(b(o));i.set("page",n.toString()),d(`?${i.toString()}`,{preventScrollReset:!1})}const g=()=>{const n=[];let h=!1,m=!1;for(let e=1;e<=c;e++){const s=e>1&&e<c&&Math.abs(e-a)>1;(e===1||e===c||s||Math.abs(e-a)<=1)&&(s?e<a&&!h?(n.push(t.jsx(f,{},"ellipsis-left")),h=!0):e>a&&!m&&(n.push(t.jsx(f,{},"ellipsis-right")),m=!0):n.push(t.jsx(p,{"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 n};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(p,{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(p,{disabled:a===1,onClick:()=>u(a-1),"aria-label":"Go to previous page",children:t.jsx(y,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),g().map((n,i)=>t.jsx("li",{children:n},i)),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(a+1),"aria-label":"Go to next page",children:t.jsx(S,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(c),"aria-label":"Go to last page",children:t.jsx(w,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function f(){return t.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:t.jsx(v,{className:"h-4 w-4"})})}const p=l.forwardRef(({className:r,...o},d)=>t.jsx("button",{...o,ref:d,className:j("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)}));p.displayName="PaginationButton";const k=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function B(r){const o=k.find(d=>r.startsWith(d));return o?r.slice(o.length):r}const G=l.forwardRef(({searchParams:r,searchContains:o=!0,...d},a)=>{const c=x(),[u]=L(),[g,n]=l.useState(B(r.name||"")||""),i=l.useMemo(()=>P(h,500),[]);l.useEffect(()=>()=>{i.cancel()},[i]);function h(e){const s=new URLSearchParams({...Object.fromEntries(u),...b(r)});s.delete("logical_operator"),e?(s.set("name",o?`contains:${e}`:`${e}`),s.set("operator","or"),s.set("page","1")):(s.delete("name"),s.delete("operator")),c(`?${s.toString()}`,{preventScrollReset:!0,replace:!0})}function m(e){const{value:s}=e.target;n(s),i(s)}return t.jsx(C,{...d,ref:a,value:g,onChange:m,placeholder:"Search...",inputSize:"md"})});G.displayName="SearchField";export{z as P,G as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as y,j as e}from"./@radix-DnFH_oo1.js";import{S as M}from"./plus-Bc8eLSDM.js";import{S as $}from"./trash-DUWZWzse.js";import{q as T,b as Q,a as z,c as L}from"./@tanstack-QbMbTrh5.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,ap as G,aq as U,ar as H,T as J,v as W,w as _,W as X,x as Y}from"./index-Ci0nJ8EZ.js";import{o as I}from"./url-CbAPzsmT.js";import{t as ee}from"./zod-uFd1wBcd.js";import{u as se,a as te,C as p}from"./index.esm-BE1uqCX5.js";import{C as ae}from"./CodeSnippet-IxXNxUDa.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 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-DnFH_oo1.js";import{I as a,f as p}from"./index-
|
1
|
+
import{j as s}from"./@radix-DnFH_oo1.js";import{I as a,f as p}from"./index-Ci0nJ8EZ.js";import{u as w}from"./index.esm-BE1uqCX5.js";import{t as u}from"./zod-uFd1wBcd.js";import{P as f}from"./PasswordChecker-DE71J_3F.js";import{g as h}from"./form-schemas-BKXwSDK2.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 +1 @@
|
|
1
|
-
import{r as s,j as r}from"./@radix-DnFH_oo1.js";import{aX as c,
|
1
|
+
import{r as s,j as r}from"./@radix-DnFH_oo1.js";import{aX as c,Q as l}from"./index-Ci0nJ8EZ.js";const o=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"}));function n({tickClasses:e,...t}){return r.jsx(c,{...t,children:r.jsx(o,{className:l("h-4 w-4 fill-success-300",e)})})}export{n as T};
|
@@ -1 +1 @@
|
|
1
|
-
import{z as s}from"./index-
|
1
|
+
import{z as s}from"./index-Ci0nJ8EZ.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as t}from"./@radix-DnFH_oo1.js";import{u as Q,d as S,I as k,p as H,U as D}from"./form-schemas-BKXwSDK2.js";import{f as A,A as U,a as T,b as R,I as E,C as u,af as w,Q as F,aK as J}from"./index-Ci0nJ8EZ.js";import{t as j}from"./zod-uFd1wBcd.js";import{u as L,C as Z}from"./index.esm-BE1uqCX5.js";import{S as O,b as V,a as K}from"./gcp-Dj6ntk0L.js";import{S as z}from"./kubernetes-BjbR6D-1.js";import{S as P}from"./rocket-SESCGQXm.js";const Y="/assets/adam-e-y0WnB_.webp",q="/assets/alex-DcCuDHPg.webp",W="/assets/baris-C0ZrZ10g.webp",X="/assets/hamza-NKKOZz1I.webp",G="/assets/stefan-B08Ftbba.webp";function M1(){const{setSurveyStep:s}=Q();function o(){window.open("https://zenml.io/slack","_blank"),s(l=>l+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx($,{}),e.jsx(A,{onClick:()=>o(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s(l=>l+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const _=[{name:"Adam",image:Y},{name:"Hamza",image:X},{name:"Alex",image:q},{name:"Stefan",image:G},{name:"Baris",image:W}];function $(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:_.map(s=>e.jsxs(U,{size:"lg",type:"rounded",children:[e.jsx(T,{alt:`Portrait of ${s.name}`,src:s.image}),e.jsx(R,{size:"lg",children:s.name[0]})]},s.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function j1({email:s,fullName:o,submitHandler:l}){const i=t.useId(),r=t.useId(),d=t.useId(),{register:m,handleSubmit:x,control:h,watch:a,formState:{isValid:p}}=L({resolver:j(S),defaultValues:{fullName:o||"",getUpdates:!0,email:s||""}});return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Add your account details"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please, fill in your details to get started with ZenML."})]}),e.jsxs("form",{onSubmit:x(l),className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:i,className:"text-text-sm",children:"Name"}),e.jsx(E,{...m("fullName"),id:i,className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:r,className:"text-text-sm",children:["Email ",!a("getUpdates")&&e.jsx(e.Fragment,{children:"(optional)"})]}),e.jsx(E,{placeholder:"example@company.inc",...m("email"),type:"email",id:r,className:"w-full"})]})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(Z,{control:h,name:"getUpdates",render:({field:{onChange:c,value:C}})=>e.jsx(u,{checked:C,onCheckedChange:n=>c(!!n),id:d})}),e.jsx("label",{htmlFor:d,className:"text-text-sm",children:"I want to receive news and recommendations about how to use ZenML"})]}),e.jsx(A,{disabled:!p,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsxs("p",{className:"text-center text-theme-text-secondary",children:["By continuing you agree to the"," ",e.jsx("a",{className:"link text-theme-text-brand",href:"https://www.zenml.io/privacy-policy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]})]})}const e1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M21.9999 8.18613C21.7761 7.72384 21.5171 7.2777 21.2166 6.85693L18.006 8.02537C18.3794 8.40751 18.6931 8.83704 18.9496 9.29639L21.9999 8.18613ZM7.80775 11.7372L4.59619 12.9056C4.63724 13.4206 4.72618 13.9294 4.85077 14.4278L7.90158 13.317C7.80236 12.801 7.76717 12.2693 7.80775 11.7372Z",fill:"#C22133"}),t.createElement("path",{d:"M14.9352 7.27651C15.6032 7.58829 16.1818 8.01343 16.67 8.51188L19.8806 7.34348C18.9912 6.09541 17.7798 5.05258 16.2957 4.36011C11.7056 2.21972 6.22948 4.21253 4.0896 8.80215C3.39666 10.2873 3.13911 11.8647 3.2603 13.3923L6.4714 12.2238C6.52464 11.528 6.69423 10.8307 7.0055 10.1622C8.3963 7.18027 11.9533 5.8863 14.9352 7.27651ZM18.3597 13.1438C18.3084 13.8392 18.1329 14.5365 17.8207 15.2055C16.4304 18.1879 12.8729 19.4819 9.89149 18.0916C9.22247 17.7793 8.6395 17.3576 8.15325 16.8582L4.94904 18.0242C5.83647 19.2722 7.04643 20.3155 8.53149 21.0085C13.1216 23.1484 18.5967 21.1556 20.7371 16.5655C21.4305 15.0814 21.6861 13.5039 21.5639 11.9778L18.3597 13.1438Z",fill:"#DB212E"}),t.createElement("path",{d:"M19.1492 9.22388L16.0983 10.3341C16.6652 11.3496 16.933 12.5185 16.845 13.6943L20.0493 12.5288C19.9575 11.3807 19.6523 10.2599 19.1492 9.22388ZM5.05081 14.3546L2 15.4658C2.28133 16.5824 2.76785 17.637 3.43475 18.5757L6.63849 17.4093C5.81607 16.5648 5.26923 15.4961 5.05081 14.3546Z",fill:"#EB2126"}),t.createElement("path",{d:"M21.535 7.34025C21.4338 7.17606 21.3288 7.01429 21.2169 6.85693L18.0063 8.02537C18.1475 8.17002 18.2775 8.32346 18.4016 8.48082L21.535 7.34025ZM7.79556 12.382C7.78742 12.167 7.79149 11.9518 7.80775 11.7374L4.59619 12.9058C4.61281 13.1115 4.63869 13.3158 4.66949 13.5196L7.79556 12.382Z",fill:"#AD213B"}),t.createElement("path",{d:"M21.5637 11.9778L18.3594 13.1438C18.3257 13.6051 18.2358 14.0674 18.0887 14.5218L21.5764 13.2503C21.6015 12.8263 21.5972 12.4012 21.5637 11.9778ZM4.94922 18.0246C5.19771 18.374 5.47059 18.7053 5.76581 19.0162L9.25396 17.7441C8.84641 17.489 8.47795 17.1915 8.15296 16.8582L4.94922 18.0246Z",fill:"#BA2133"})),s1=[{name:"GCP",icon:e.jsx(O,{className:"h-5 w-5 shrink-0"})},{name:"AWS",icon:e.jsx(V,{className:"h-5 w-5 shrink-0"})},{name:"Azure",icon:e.jsx(K,{className:"h-5 w-5 shrink-0"})},{name:"Native Kubernetes",icon:e.jsx(z,{className:"h-5 w-5 shrink-0"})},{name:"Openshift",icon:e.jsx(e1,{className:"h-5 w-5 shrink-0"})}];function L1({submitHandler:s}){const o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(k),defaultValues:{providers:[]},shouldUnregister:!0}),h=r("other");return t.useEffect(()=>{var a;h&&((a=o.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What is your current infrastructure?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select all the applicable options"})]}),e.jsxs("form",{onSubmit:d(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid w-full grid-cols-1 gap-[20px] md:grid-cols-2 lg:min-w-[700px]",children:[e.jsx(Z,{control:m,name:"providers",render:({field:{onChange:a,value:p}})=>e.jsx(e.Fragment,{children:s1.map((c,C)=>e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("providers").includes(c.name),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!r("providers").includes(c.name)}),children:[e.jsx(u,{onCheckedChange:n=>{a(n?[...p,c.name]:p.filter(B=>B!==c.name))},value:c.name,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[c.icon,c.name]})]},C))})}),e.jsxs("div",{className:w("flex items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("other"),"border-theme-border-minimal hover:border-theme-border-bold":!r("other")}),children:[e.jsx(u,{onCheckedChange:a=>i("other",!!a),...l("other",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherVal"),ref:a=>{l("otherVal").ref(a),o.current=a},placeholder:"Specify...",className:"w-full border-none p-0 pr-2 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})]}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s({providers:["local"],other:!1}),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})]})}const t1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H9.83854C10.3657 1.99998 10.8205 1.99997 11.195 2.03057C11.5904 2.06287 11.9836 2.13419 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C13.8658 4.01641 13.9371 4.40963 13.9694 4.80497C14 5.17955 14 5.63432 14 6.16148V10L17.8385 10C18.3657 9.99998 18.8205 9.99997 19.195 10.0306C19.5904 10.0629 19.9836 10.1342 20.362 10.327C20.9265 10.6146 21.3854 11.0735 21.673 11.638C21.8658 12.0164 21.9371 12.4096 21.9694 12.805C22 13.1795 22 13.6343 22 14.1614V20C22.5523 20 23 20.4477 23 21C23 21.5523 22.5523 22 22 22H2C1.44772 22 1 21.5523 1 21C1 20.4477 1.44772 20 2 20V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17954 1.99997 5.63431 1.99998 6.16146 2ZM4 20H12V6.2C12 5.62345 11.9992 5.25118 11.9761 4.96784C11.9539 4.69617 11.9162 4.59546 11.891 4.54601C11.7951 4.35785 11.6422 4.20487 11.454 4.109C11.4045 4.0838 11.3038 4.04612 11.0322 4.02393C10.7488 4.00078 10.3766 4 9.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59545 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.10899 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V20ZM14 12V20H20V14.2C20 13.6234 19.9992 13.2512 19.9761 12.9678C19.9539 12.6962 19.9162 12.5955 19.891 12.546C19.7951 12.3578 19.6422 12.2049 19.454 12.109C19.4045 12.0838 19.3038 12.0461 19.0322 12.0239C18.7488 12.0008 18.3766 12 17.8 12H14ZM5.5 7C5.5 6.44772 5.94772 6 6.5 6H9.5C10.0523 6 10.5 6.44772 10.5 7C10.5 7.55229 10.0523 8 9.5 8H6.5C5.94772 8 5.5 7.55229 5.5 7ZM5.5 11C5.5 10.4477 5.94772 10 6.5 10H9.5C10.0523 10 10.5 10.4477 10.5 11C10.5 11.5523 10.0523 12 9.5 12H6.5C5.94772 12 5.5 11.5523 5.5 11ZM5.5 15C5.5 14.4477 5.94772 14 6.5 14H9.5C10.0523 14 10.5 14.4477 10.5 15C10.5 15.5523 10.0523 16 9.5 16H6.5C5.94772 16 5.5 15.5523 5.5 15Z"})),r1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8026 4.52039L11.8026 4.52039L11.8026 4.52039ZM12 4.61798L19.7639 8.49994L19.5721 8.59583C19.5596 8.6018 19.5471 8.60803 19.5348 8.6145L17 9.88191L12.4472 7.60552C11.9532 7.35853 11.3526 7.55875 11.1056 8.05273C10.8586 8.54671 11.0588 9.14738 11.5528 9.39437L14.7639 10.9999L12 12.3819L4.4652 8.61451C4.4529 8.60803 4.44044 8.6018 4.42784 8.59583L4.23607 8.49994L12 4.61798ZM3 10.118L1.55279 9.39437C1.214 9.22498 1 8.87872 1 8.49994C1 8.12117 1.214 7.77491 1.55279 7.60552L11.195 2.7844C11.2024 2.7807 11.211 2.77633 11.2206 2.77143C11.3139 2.72382 11.507 2.62529 11.7234 2.58468C11.9062 2.55039 12.0938 2.55039 12.2766 2.58468C12.493 2.62529 12.6861 2.72382 12.7794 2.77143C12.789 2.77633 12.7976 2.7807 12.805 2.7844L22.4472 7.60552C22.786 7.77491 23 8.12117 23 8.49994C23 8.87872 22.786 9.22498 22.4472 9.39437L21 10.118V16.3066C21 16.332 21.0001 16.3582 21.0002 16.3851C21.0013 16.6707 21.0027 17.0296 20.884 17.3629C20.7814 17.6508 20.6142 17.9113 20.3952 18.1245C20.1417 18.3713 19.8149 18.5196 19.5548 18.6376C19.5303 18.6487 19.5065 18.6595 19.4833 18.6701L13.0833 21.6035C13.0667 21.6111 13.0496 21.619 13.0321 21.6271C12.8423 21.7147 12.6034 21.8251 12.3421 21.8704C12.1157 21.9097 11.8843 21.9097 11.6579 21.8704C11.3966 21.8251 11.1577 21.7147 10.9679 21.6271C10.9504 21.619 10.9333 21.6111 10.9167 21.6035L4.5167 18.6701L4.93335 17.7611L4.51669 18.6701C4.49354 18.6595 4.46967 18.6487 4.44522 18.6376C4.1851 18.5196 3.85826 18.3713 3.60476 18.1245C3.3858 17.9113 3.21862 17.6508 3.11604 17.3629C2.99727 17.0296 2.99867 16.6707 2.99979 16.3851C2.9999 16.3582 3 16.332 3 16.3066V10.118ZM5 11.118V16.3066C5 16.505 5.00047 16.6074 5.00521 16.6814C5.00536 16.6837 5.0055 16.6859 5.00565 16.688C5.00747 16.6889 5.00938 16.69 5.01138 16.6911C5.07675 16.7262 5.16965 16.7693 5.35001 16.852L11.75 19.7853C11.8813 19.8455 11.9473 19.8754 11.9962 19.895C11.9975 19.8955 11.9988 19.896 12 19.8965C12.0012 19.896 12.0025 19.8955 12.0038 19.895C12.0527 19.8754 12.1187 19.8455 12.25 19.7853L18.65 16.852C18.8304 16.7693 18.9233 16.7262 18.9886 16.6911C18.9906 16.69 18.9925 16.6889 18.9944 16.688C18.9945 16.6859 18.9946 16.6837 18.9948 16.6814C18.9995 16.6074 19 16.505 19 16.3066V11.118L18 11.618V14.4999C18 15.0522 17.5523 15.4999 17 15.4999C16.4477 15.4999 16 15.0522 16 14.4999V12.618L12.805 14.2155C12.7976 14.2192 12.789 14.2236 12.7794 14.2285C12.6861 14.2761 12.493 14.3746 12.2766 14.4152C12.0938 14.4495 11.9062 14.4495 11.7234 14.4152C11.507 14.3746 11.3139 14.2761 11.2206 14.2285C11.211 14.2236 11.2024 14.2192 11.195 14.2155L5 11.118ZM11.8026 12.4795C11.8024 12.4796 11.8024 12.4796 11.8026 12.4795L11.8026 12.4795ZM12.1974 12.4795C12.1976 12.4796 12.1976 12.4796 12.1974 12.4795L12.1974 12.4795ZM12.1974 4.52039L12.1974 4.52039L12.1974 4.52039Z"})),a1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.067 4 8.50002 5.567 8.50002 7.5C8.50002 9.433 10.067 11 12 11C13.933 11 15.5 9.433 15.5 7.5C15.5 5.567 13.933 4 12 4ZM6.50002 7.5C6.50002 4.46243 8.96246 2 12 2C15.0376 2 17.5 4.46243 17.5 7.5C17.5 10.5376 15.0376 13 12 13C8.96246 13 6.50002 10.5376 6.50002 7.5ZM9.32629 14.5C9.38335 14.5 9.44125 14.5 9.50003 14.5H14.5C14.5588 14.5 14.6167 14.5 14.6738 14.5C15.901 14.4995 16.739 14.4992 17.4514 14.7153C19.0495 15.2 20.3 16.4506 20.7847 18.0486C21.0008 18.761 21.0005 19.599 21.0001 20.8263C21 20.8833 21 20.9412 21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 19.5317 18.9892 19.0192 18.8708 18.6291C18.58 17.6703 17.8297 16.92 16.8709 16.6292C16.4808 16.5108 15.9683 16.5 14.5 16.5H9.50003C8.03171 16.5 7.51923 16.5108 7.12917 16.6292C6.17036 16.92 5.42005 17.6703 5.1292 18.6291C5.01088 19.0192 5.00002 19.5317 5.00002 21C5.00002 21.5523 4.55231 22 4.00002 22C3.44774 22 3.00002 21.5523 3.00002 21C3.00002 20.9412 3 20.8833 2.99998 20.8263C2.99953 19.599 2.99922 18.761 3.21532 18.0486C3.70007 16.4506 4.95059 15.2 6.54859 14.7153C7.261 14.4992 8.09902 14.4995 9.32629 14.5Z"})),M=t.forwardRef(({children:s,className:o,id:l,...i},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:l,...i,ref:r,className:F("peer sr-only",o),type:"radio"}),e.jsx("label",{htmlFor:l,className:"flex h-full w-full flex-col items-center 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 transition-all duration-150 hover:cursor-pointer hover:border-theme-border-bold hover:shadow-sm peer-checked:border-primary-400 peer-checked:bg-primary-25 peer-checked:shadow-sm peer-focus-visible:border-primary-100",children:s})]}));M.displayName="UseRadioButton";function Z1({submitHandler:s,user:o}){var d,m;const{handleSubmit:l,register:i,formState:{isValid:r}}=L({defaultValues:{primaryUse:(m=(d=o==null?void 0:o.metadata)==null?void 0:d.user_metadata)==null?void 0:m.primary_use},resolver:j(H)});return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"What will be your primary use for ZenML?"})}),e.jsxs("form",{onSubmit:l(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-[20px] md:grid-cols-3",children:[e.jsxs(M,{id:"use-personal",...i("primaryUse"),value:"personal",children:[e.jsx(a1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(M,{...i("primaryUse"),id:"use-work",value:"work",children:[e.jsx(t1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Work"})]}),e.jsxs(M,{...i("primaryUse"),id:"use-student",value:"student",children:[e.jsx(r1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Student"})]})]}),e.jsx(A,{disabled:!r,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}const l1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.82253%2022.4201L12.3982%2012.6043C12.4582%2012.5428%2012.4697%2012.4478%2012.4196%2012.3779C11.8371%2011.5648%2010.7629%2011.4239%2010.3647%2010.8777C9.18504%209.25951%208.88573%208.34364%208.37885%208.40044C8.34344%208.40442%208.31187%208.42347%208.28699%208.44897L4.82777%2011.9949C2.83774%2014.0348%202.55236%2018.5262%202.50002%2022.2871C2.49766%2022.457%202.70384%2022.5417%202.82253%2022.4201Z'%20fill='%23017CEE'%20/%3e%3cpath%20d='M22.4202%2022.1774L12.6044%2012.6017C12.543%2012.5418%2012.4479%2012.5302%2012.3781%2012.5803C11.565%2013.1628%2011.424%2014.237%2010.8778%2014.6353C9.25964%2015.8148%208.34376%2016.1142%208.40057%2016.6211C8.40454%2016.6565%208.42359%2016.6881%208.4491%2016.7129L11.9951%2020.1721C14.035%2022.1622%2018.5264%2022.4475%2022.2872%2022.4998C22.4571%2022.5023%2022.5418%2022.2961%2022.4202%2022.1774Z'%20fill='%2300AD46'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9954%2020.1722C10.8811%2019.0852%2010.3641%2016.9347%2012.5003%2012.5C9.02851%2014.0515%207.81187%2016.0911%208.41038%2016.675L11.9954%2020.1722Z'%20fill='%2304D659'%20/%3e%3cpath%20d='M22.1775%202.57985L12.6019%2012.3956C12.5419%2012.4571%2012.5304%2012.5521%2012.5804%2012.622C13.1629%2013.4351%2014.2372%2013.576%2014.6353%2014.1223C15.815%2015.7404%2016.1143%2016.6562%2016.6211%2016.5995C16.6565%2016.5955%2016.6881%2016.5764%2016.713%2016.5509L20.1722%2013.005C22.1623%2010.965%2022.4477%206.4737%2022.5%202.71283C22.5023%202.54288%2022.2962%202.45819%2022.1775%202.57985Z'%20fill='%2300C7D4'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.1726%2013.005C19.0855%2014.1192%2016.935%2014.6363%2012.5002%2012.5C14.0518%2015.9718%2016.0913%2017.1885%2016.6752%2016.5899L20.1726%2013.005Z'%20fill='%2311E1EE'%20/%3e%3cpath%20d='M2.57973%202.82253L12.3955%2012.3982C12.457%2012.4581%2012.552%2012.4697%2012.6219%2012.4196C13.4349%2011.8371%2013.5759%2010.7629%2014.1221%2010.3647C15.7403%209.18504%2016.6562%208.88574%2016.5993%208.37885C16.5954%208.34344%2016.5763%208.31187%2016.5509%208.28699L13.0049%204.82777C10.9649%202.83774%206.47358%202.55236%202.71271%202.50002C2.54276%202.49765%202.45807%202.70384%202.57973%202.82253Z'%20fill='%23E43921'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.0052%204.82764C14.1195%205.91469%2014.6365%208.06516%2012.5002%2012.4999C15.972%2010.9484%2017.1888%208.90882%2016.5902%208.32495L13.0052%204.82764Z'%20fill='%23FF7557'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.828%2011.9953C5.91505%2010.881%208.06553%2010.364%2012.5003%2012.5002C10.9487%209.02839%208.90919%207.81175%208.32532%208.41025L4.828%2011.9953Z'%20fill='%230CB6FF'%20/%3e%3cpath%20d='M12.507%2012.9272C12.7434%2012.9242%2012.9328%2012.7302%2012.9298%2012.4937C12.9269%2012.2573%2012.7328%2012.0679%2012.4964%2012.0709C12.2599%2012.0738%2012.0706%2012.2679%2012.0735%2012.5043C12.0765%2012.7408%2012.2705%2012.9301%2012.507%2012.9272Z'%20fill='%234A4848'%20/%3e%3c/svg%3e",o1="/assets/flyte-Cj-xy_8I.svg",n1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_839)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_839'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_839'%20transform='scale(0.005)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_839'%20width='200'%20height='200'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAaxSURBVHgB7d1JjuNWEEVRZu7JA6/O5dUVCt6SUWk9pb6sjhSb30RzL0BAgsYHJEQyYprITF//TH/pmIjovjOOX9PX+QAJ0f/d4QCJqT4mGtoZwu/px8sfP6cfH39Mf080LIAMbBFHCSRDA8igVuEogWRYABnQJhwlkAwJIJ3bhaMEku4BpGOHcJRA0jWAdKoKjhJIugWQDlXFUQJJlwDSuCY4SiBpHkAa1hRHCSRNA0ijuuAogaRZAGlQVxwlkDQJIJUbgqMEkuoBpGJDcZRAUjWAVMoEjhJIqgWQCpnCUQJJlQByMJM4SiA5HEAOZBpHCSSHAsjOXOAogWR3ANmRKxwlkOwKIBtziaMEks0BZEOucZRAsimArCwEjhJIVgeQFYXCUQLJqgDyppA4SiB5G0AWCo2jBJLFADJTChwlkMwGkBelwlECycsA8lBKHCWQPAWQm1LjKIHkLoBcAsdNILkGkAkcLwPJufRAwLEQSHIDAceKkiNJCwQcG0qMJCUQcOwoKZJ0QMBxoIRIUgEBR4WSIUkDBBwVS4QkBRBwNCgJkvBAwNGwBEhCAwFHh4IjCQsEHB0LjCQkEHAMKCiScEDAMbCASEIBAYeBgiEJAwQchgqEJAQQcBgsCBL3QMBhuABIXAMBh4OcI3ELBByOcozEJRBwOMwpEndAwOE4h0hcAQFHgJwhcQMEHIFyhMQFEHAEzAkS80DAETgHSEwDAUeCjCMxCwQciTKMxCQQcCTMKBJzQMCROINITAEBB1lDYgYIOOiaISQmgICDnjKCZDgQcNBsBpAMBQIOettgJMOAgINWNxDJECDgoM0NQtIdCDhodwOQdAUCDjpcZyTdgICDqtURSRcg4KDqdULSHAg4qFkdkDQFAg5qXmMkzYCAg7rVEEkTIOCg7jVCUh0IOGhYDZBUBQIOGl5lJNWAgIPMVBFJFSDgIHNVQnIYCDjIbBWQHAICDjLfQSS7gYCD3HQAyS4g4CB37USyGQg4yG07kGwCAg5y30Ykq4GAg8K0AckqIOCgcK1E8hYIOChsK5AsAgEHhe8Nklkg4KA0LSB5CQQclK4ZJE9AwEFpe4HkDgg4KH0PSK5AwEF06QbJGQg4iB66IPkAB9FMJySf07+2d6UTDetk4/sS6+fpDPJ5OpMQ0Xe/T5dXf54us8p3kBBduuDQx/u/eUFC2bvBoZ5vFIKEsvaAQ71+1AQklK0XONT8w4ogoSzN4FDLj7uDhKK3gEO9f2EKJBS1NzjUulduQULRWoFDrR/aABKK0kocatvYH5CQ9zbgUNsHx4GEvLYRh9o3ehQk5K0dONT+4dUgIS/txKGOrT8ACVnvAA51fIEOSMhqB3GoOivYQELWqoBD1VviCRKyUiUcqu4aaJDQ6CriUNXfRwcJDasyDtVkYANIqHsNcKhmE01AQt1qhEM1HfkDEmpeQxyq+UwskFCzGuNQXYbGgYSq1wGH6jZVESRUrU44VNexoyChw3XEobrP5QUJ7a4zDjVkcDVIaHMDcKhhk91BQqsbhEMNXX0AEnrbQBxq+G4QkNBsg3EoE8tzQEJPGcChzGyXAgldM4JDmVq/BhKyhEOZ208IksQZw6FMLvAEScIM4lBmN9yCJFFGcSjTK6BBkiDDOJT5HekgCZxxHMo8EAWSgDnAoVwAUSAJlBMcyg0QBZIAOcKhXAFRIHGcMxzKHRAFEoc5xKFcAlEgcZRTHMotEAUSBznGoVwDUSAxnHMcyj0QBRKDBcChQgBRIDFUEBwqDBAFEgMFwqFCAVEgGVgwHCocEAWSAQXEoUICUSDpWFAcKiwQBZIOBcahQgNRIGlYcBwqPBAFkgYlwKFSAFEgqVgSHCoNEAWSCiXCoVIBUSA5UDIcKh0QBZIdJcShUgJRINlQUhwqLRAFkhUlxqFSA1EgWSg5DpUeiALJi8BxDiCXQHITOK4B5CaQTOB4CCAPpUYCjqcA8qKUSMDxMoDMlAoJOGYDyEIpkIBjMYC8KTQScLwNICsKiQQcqwLIykIhAcfqALKhEEjAsSmAbMw1EnBsDiA7cokEHLsCyM5cIQHH7gByIBdIwHEogBzMNBJwHA4gFTKJBBxVAkilTCEBR7UAUjETSMBRNYBUbigScFQPIA0aggQcTQJIo7oiAUezANKwLkjA0TSANK4pEnA0DyAdaoIEHF0CSKeqIgFHtwDSsSpIwNE1gHTuEBJwdA8gA9qFBBxDAsigNiEBx7AAMrBVSMAxNIAMbhEJOIi+kXz9mr7ujp/AILp2hwQcRM+dkYDDVP8Bu8MD8WVDwpYAAAAASUVORK5CYII='%20/%3e%3c/defs%3e%3c/svg%3e",i1="/assets/metaflow-weOkWNyT.svg",c1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_1180)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_1180'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_1180'%20transform='scale(0.00416667)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_1180'%20width='240'%20height='240'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAarSURBVHgB7d29jlxFGsfhYwJvZs/eAJuxyXrJNho5I0JcgAfhyEg7niVDYhZ5I5BsLsA4gMiWmwtYEZFZkxEhZ2RwA+CQyLgatYABz+mP81H/6ueRWuMJHP5UZ+rU23Xp8pWD5x0Q6ZUOiCVgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCZgCCbgBh1cvdr9778fdF+fPVn+LL/TpkuXrxw872hCCfW92//u/nN8/Ltov/v+++7ju/e6h4svOtoi4EaUcO+cnl642gq5PQIO987RjRePyafd3159de3/I+R2CDjU9cPD7vMH9zcK9zwh5xNwmBJu2ZgqP4ci5FwCDjFGuOd98/Rp9/7ph92Ts7OODAKu3BThnlcCLiGXoKmbgCs1R7jnPVosuo/ufrJ8xKZOAq5M2ZQqm1NzhnuekOsl4EqUcO+8WHFvHh11tRJyfQQ8s3LwooT73vFxl0LI9RDwTF527DGJkOcn4Im1EO5vlXhLyA8ffyHkGQh4Iq2Fe94q5LIiMx0Bj6z1cM9zqmtaAh7ROhNCrRLyNAQ8gm0mhFol5HEJeEBDTAi1SsjjEPAAajj2mELIwxLwDoS7vTIwUXasTT7tRsBbEO5wSsC3jk+8Q96SgDcg3PE41bUdAa+hxgmhVgl5MwLucef0g+UrIaZVQi6P1lxMwGt45+ho+ejs9dC0/nL1rx0XE/AGhDwtAfcT8IZKvCXkm2/fEPLIBNxPwFtahVxWZMYh4H4C3tHyq3BebHTdfLver8JJJeB+Ah6IkIcn4H4CHpiQhyPgfgIeiZB3J+B+Ah6ZkLcn4H4Cnohz1JsTcD8BT8zQ//oE3O+VjkmV8bnXrr1uhI5BWIFn5njmy1mB+wm4EkL+IwH3E3BlhPwrAfcTcKWELOB1CLhi+z75JOB+Ag6wr5NPAu4n4CD7dqpLwP0EHGhfQhZwPwEHaz1kAfcTcANaDVnA/QTckNZCFnA/ATeolcknAfcTcMM++/R+9Gos4H6mkRpm2ql9AoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAoZgAu7x+YP7e3m59pyenJ11b7z5Vkc/AfcoF2t/+/QbIU9gFW75lH/TT8BrEvJ4hLs9AW9oFXK5PEzIuxHu7gS8pTunp91XX/5fyFsQ7nAEvINf7uP9JeSbRzc6LlYuW3v3+ES4AxLwAErInz34dPloLeQ/WoX72rXXu4eLRcdwBDwgIf/ej8+edR/d/aT71+F14Y5EwCPY95BX4f79xYr78b17y98Zh4BHtG8hC3d6Ap7Ab0O+fnjYtUa48xHwhErIZce6fFoIWbjzE/AMSrwl4uRTXY8eL5abU8Kdl4BnlHg8s4RbXgfdun2yfD3EvARcgYSQV6enhFsXAVekxpAde6ybgCtUQ8jCzSDgis0x+STcLAIOMMXkk3AzCTjEWJNPJoSyCTjMUMczTQi1QcChtg3ZhFBbBBxu3ZAde2yTgBvxspCF27ZLl68cPO94qZ+e/dAlKn/jvn/64XJjSrTtsgI3qqzI/7z2D/E2TsAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMAQTMA9yhekQ60E3KPc3nfr+ETIVEnAa3i0WAiZKgl4A0KmNgLegpCphYB3UEJ+4823ltd3Cpk5CHhHJdxy7+4qZJiSgAeyCrk8Wj98vOhgCgIeWAn53dsnQmYSAh6JkJmCgEcmZMYk4IkImTEIeGKrkMuu9ZOzsw52IeCZlHhLxOXjHTLbEvDMSshOdbEtAVfC8Uy2IeDKCJlNCLhSQmYdAq6ckLmIgEOYfOLPCDiIySfOE3Agk0+sCDiY45kIuAFC3l8CboiQ98+ly1cOnndAJCswBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBBMwBPsZxDRB8Hcuz9AAAAAASUVORK5CYII='%20/%3e%3c/defs%3e%3c/svg%3e",C1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 1.5C15.4138 1.5 15.7848 1.75483 15.9333 2.14102L17.112 5.20544C17.4124 5.98648 17.5068 6.21155 17.6359 6.39315C17.7655 6.57535 17.9246 6.73455 18.1069 6.86411C18.2884 6.99323 18.5135 7.08763 19.2946 7.38803L22.359 8.56665C22.7452 8.71519 23 9.08623 23 9.5C23 9.91377 22.7452 10.2848 22.359 10.4333L19.2946 11.612C18.5135 11.9124 18.2884 12.0068 18.1069 12.1359C17.9246 12.2654 17.7655 12.4246 17.6359 12.6069C17.5068 12.7884 17.4124 13.0135 17.112 13.7946L15.9333 16.859C15.7848 17.2452 15.4138 17.5 15 17.5C14.5862 17.5 14.2152 17.2452 14.0667 16.859L12.888 13.7946C12.5876 13.0135 12.4932 12.7884 12.3641 12.6069C12.2345 12.4246 12.0754 12.2654 11.8931 12.1359C11.7116 12.0068 11.4865 11.9124 10.7054 11.612L7.64102 10.4333C7.25483 10.2848 7 9.91377 7 9.5C7 9.08623 7.25483 8.71519 7.64102 8.56665L10.7054 7.38803C11.4865 7.08763 11.7116 6.99323 11.8931 6.86411C12.0754 6.73455 12.2345 6.57535 12.3641 6.39315C12.4932 6.21155 12.5876 5.98648 12.888 5.20544L14.0667 2.14102C14.2152 1.75483 14.5862 1.5 15 1.5ZM15 5.28568L14.7547 5.9234C14.7415 5.95787 14.7284 5.99189 14.7155 6.02548C14.4719 6.65974 14.2879 7.13886 13.9941 7.55214C13.7349 7.91655 13.4166 8.23494 13.0521 8.49406C12.6389 8.78793 12.1597 8.97192 11.5255 9.2155C11.4919 9.2284 11.4579 9.24147 11.4234 9.25472L10.7857 9.5L11.4234 9.74528C11.4579 9.75854 11.4919 9.7716 11.5255 9.7845C12.1597 10.0281 12.6389 10.2121 13.0521 10.5059C13.4166 10.7651 13.7349 11.0834 13.9941 11.4479C14.2879 11.8611 14.4719 12.3403 14.7155 12.9745C14.7284 13.0081 14.7415 13.0421 14.7547 13.0766L15 13.7143L15.2453 13.0766C15.2585 13.0421 15.2716 13.0081 15.2845 12.9745C15.5281 12.3403 15.7121 11.8611 16.0059 11.4479C16.2651 11.0834 16.5834 10.7651 16.9479 10.5059C17.3611 10.2121 17.8403 10.0281 18.4745 9.7845C18.5081 9.7716 18.5421 9.75854 18.5766 9.74528L19.2143 9.5L18.5766 9.25472C18.5421 9.24146 18.5081 9.2284 18.4745 9.2155C17.8403 8.97192 17.3611 8.78793 16.9479 8.49406C16.5834 8.23494 16.2651 7.91655 16.0059 7.55214C15.7121 7.13886 15.5281 6.65974 15.2845 6.02548C15.2716 5.99189 15.2585 5.95787 15.2453 5.9234L15 5.28568ZM6.5 12.5C6.87877 12.5 7.22503 12.714 7.39443 13.0528L8.17889 14.6217C8.46137 15.1867 8.54745 15.3493 8.65204 15.4849C8.75695 15.621 8.87896 15.7431 9.01506 15.848C9.15075 15.9525 9.31333 16.0386 9.8783 16.3211L11.4472 17.1056C11.786 17.275 12 17.6212 12 18C12 18.3788 11.786 18.725 11.4472 18.8944L9.8783 19.6789C9.31333 19.9614 9.15075 20.0475 9.01506 20.152C8.87896 20.257 8.75695 20.379 8.65204 20.5151C8.54745 20.6507 8.46137 20.8133 8.17889 21.3783L7.39443 22.9472C7.22504 23.286 6.87877 23.5 6.5 23.5C6.12123 23.5 5.77497 23.286 5.60557 22.9472L4.82111 21.3783C4.53863 20.8133 4.45255 20.6507 4.34796 20.5151C4.24305 20.379 4.12104 20.257 3.98494 20.152C3.84925 20.0475 3.68667 19.9614 3.1217 19.6789L1.55279 18.8944C1.214 18.725 1 18.3788 1 18C1 17.6212 1.214 17.275 1.55279 17.1056L3.1217 16.3211C3.68667 16.0386 3.84925 15.9526 3.98494 15.848C4.12104 15.7431 4.24305 15.621 4.34796 15.4849C4.45255 15.3493 4.53863 15.1867 4.82111 14.6217L5.60557 13.0528C5.77496 12.714 6.12123 12.5 6.5 12.5ZM6.5 15.736C6.30478 16.1251 6.14371 16.4313 5.93198 16.706C5.72217 16.9781 5.47815 17.2222 5.20595 17.432C4.93128 17.6437 4.62509 17.8048 4.23604 18C4.62509 18.1952 4.93128 18.3563 5.20595 18.568C5.47814 18.7778 5.72217 19.0219 5.93198 19.294C6.14371 19.5687 6.30478 19.8749 6.5 20.264C6.69522 19.8749 6.85629 19.5687 7.06802 19.294C7.27784 19.0219 7.52186 18.7778 7.79405 18.568C8.06872 18.3563 8.37491 18.1952 8.76396 18C8.37491 17.8048 8.06872 17.6437 7.79405 17.432C7.52185 17.2222 7.27783 16.9781 7.06802 16.706C6.85629 16.4313 6.69522 16.1251 6.5 15.736Z"})),d1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2929 2.29289C15.6834 1.90237 16.3166 1.90237 16.7071 2.29289L20.7071 6.29289C21.0976 6.68342 21.0976 7.31658 20.7071 7.70711L16.7071 11.7071C16.3166 12.0976 15.6834 12.0976 15.2929 11.7071C14.9024 11.3166 14.9024 10.6834 15.2929 10.2929L17.5858 8H4C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6H17.5858L15.2929 3.70711C14.9024 3.31658 14.9024 2.68342 15.2929 2.29289ZM8.70711 12.2929C9.09763 12.6834 9.09763 13.3166 8.70711 13.7071L6.41421 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H6.41421L8.70711 20.2929C9.09763 20.6834 9.09763 21.3166 8.70711 21.7071C8.31658 22.0976 7.68342 22.0976 7.29289 21.7071L3.29289 17.7071C2.90237 17.3166 2.90237 16.6834 3.29289 16.2929L7.29289 12.2929C7.68342 11.9024 8.31658 11.9024 8.70711 12.2929Z"})),f="h-5 w-5 shrink-0 fill-primary-400",m1=[{label:"I'm new to MLOps and exploring",key:"exploring",icon:e.jsx(C1,{className:f})},{label:"I'm planning or conducting a Proof of Concept",key:"planning_poc",icon:e.jsx(J,{className:f})},{label:"I'm comparing ZenML to other MLOps tools",key:"comparing_tools",icon:e.jsx(d1,{className:f})},{label:"I'm implementing ZenML in a production environment",key:"implementing_production_environment",icon:e.jsx(P,{className:f})}],h1=[{name:"Metaflow",icon:i1},{name:"Flyte",icon:o1},{name:"Prefect",icon:c1},{name:"Kedro",icon:n1},{name:"Airflow",icon:l1}];function y1({submitHandler:s}){const o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(D),defaultValues:{usageReason:""},shouldUnregister:!0}),h=r("otherTool");return t.useEffect(()=>{var a;h&&((a=o.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What best describes your current situation with ZenML?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select only one of the options"})]}),e.jsxs("form",{onSubmit:d(s),className:"w-full space-y-5 lg:w-[700px]",children:[e.jsx("ul",{className:"space-y-2",children:m1.map(({key:a,label:p,icon:c})=>e.jsxs("li",{className:"space-y-2",children:[e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("usageReason")===a,"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":r("usageReason")!==a}),children:[e.jsx("input",{type:"radio",...l("usageReason"),value:a,name:"usageReason",className:"h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[c,p]})]}),r("usageReason")==="comparing_tools"&&a==="comparing_tools"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Select all the tools that apply:"}),e.jsxs("ul",{className:"grid w-full grid-cols-1 gap-2 xl:grid-cols-3",children:[h1.map(({icon:C,name:n})=>e.jsx("li",{className:"",children:e.jsx(Z,{defaultValue:[],control:m,name:"comparison_tools",render:({field:{onChange:B,value:g,...v}})=>{var y,b;return e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":(y=r("comparison_tools"))==null?void 0:y.includes(n),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!((b=r("comparison_tools"))!=null&&b.includes(n))}),children:[e.jsx(u,{...v,checked:g==null?void 0:g.includes(n),onCheckedChange:N=>{B(N?[...g??[],n]:g==null?void 0:g.filter(I=>I!==n))},value:n,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[e.jsx("img",{className:"h-5 w-5 shrink-0",src:C,alt:`${n} icon`}),n]})]})}})},n)),e.jsx("li",{children:e.jsxs("div",{className:w("flex h-full items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("otherTool"),"border-theme-border-minimal hover:border-theme-border-bold":!r("otherTool")}),children:[e.jsx(u,{onCheckedChange:C=>i("otherTool",!!C),...l("otherTool",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherToolVal"),ref:C=>{l("otherToolVal").ref(C),o.current=C},placeholder:"Specify...",className:"box-border w-full border-none p-0 pr-1 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})})]})]})]},a))}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{j1 as A,L1 as I,Z1 as P,M1 as S,y1 as U};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-DnFH_oo1.js";import{B as o}from"./index-
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{B as o}from"./index-Ci0nJ8EZ.js";import{a as s}from"./ProviderRadio-D3FuCHf3.js";function m({children:r}){return e.jsx(o,{className:"w-full",children:r})}function u({children:r}){return e.jsx("div",{className:"border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",children:r})}function x({children:r}){return e.jsx("div",{className:"p-5",children:r})}function a({children:r}){return e.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:r})}function c({children:r,displayCancel:t=!0}){return e.jsxs(a,{children:[t&&e.jsx(s,{}),r]})}export{x as B,u as H,c as S,m as W};
|
@@ -1 +1 @@
|
|
1
|
-
import{l as n,m as r,k as a,n as o,F as u}from"./index-
|
1
|
+
import{l as n,m as r,k as a,n as o,F as u}from"./index-Ci0nJ8EZ.js";import{a as i}from"./@tanstack-QbMbTrh5.js";import{o as c}from"./url-CbAPzsmT.js";function l({params:e}){return["runs",e]}async function p({params:e}){const s=n(r.runs.all+"?"+c(e)),t=await a(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&o(),!t.ok)throw new u({message:"Error while fetching pipeline runs",status:t.status,statusText:t.statusText});return t.json()}function y(e,s){return i({queryKey:l(e),queryFn:()=>p(e),...s})}export{y as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-DnFH_oo1.js";import{B as d,
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{B as d,aP as r}from"./index-Ci0nJ8EZ.js";const s=["Managed ZenML server on your VPC or hosted on our servers","Social SSO, RBAC, and User Management"],m=["Model Control Plane Dashboard",...s,"CI/CD/CT, Artifact Control Plane and more!"],x=["Artifact Control Plane Dashboard",...s,"CI/CD/CT, Model Control Plane and more!"];function p({features:t,image:a,feature:n}){return e.jsxs(d,{className:"relative overflow-hidden px-7 py-5",children:[e.jsxs("div",{className:"max-w-[450px] space-y-4",children:[e.jsxs("p",{className:"text-display-xs font-semibold",children:["Access Advanced ",n==="artifact"?"Artifact":"Model"," Management Features with ZenML Pro"]}),e.jsx("ul",{className:"space-y-2",children:t.map((o,l)=>e.jsx("li",{className:"text-text-md text-theme-text-secondary",children:o},l))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("a",{href:"https://cloud.zenml.io/signup",target:"_blank",rel:"noopener noreferrer",className:r({intent:"primary",size:"md"}),children:"Upgrade to ZenML Pro"}),e.jsx("a",{href:"https://www.zenml.io/cloud",target:"_blank",rel:"noopener noreferrer",className:r({intent:"primary",size:"md",emphasis:"minimal"}),children:"Learn more"})]})]}),e.jsx("img",{className:"absolute right-0 top-0 hidden translate-x-[45%] translate-y-[10%] rounded-md border border-theme-border-moderate lg:block",src:a.src,alt:a.alt})]})}export{p as C,x as a,m};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,j as n}from"./@radix-DnFH_oo1.js";import{
|
1
|
+
import{r as o,j as n}from"./@radix-DnFH_oo1.js";import{Q as i,F as d,l as u,m}from"./index-Ci0nJ8EZ.js";import{b as l}from"./@tanstack-QbMbTrh5.js";const p=o.forwardRef(({className:e,...a},t)=>n.jsx("label",{ref:t,...a,className:i("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));p.displayName="RadioItemLabel";const f=o.forwardRef(({className:e,type:a,...t},r)=>n.jsx("input",{type:"radio",ref:r,...t,className:i("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));f.displayName="RadioItem";async function h({workspaceId:e,payload:a}){const t=u(m.workspaces.stacks(e)),r=await fetch(t,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!r.ok){const c=await r.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new d({status:r.status,statusText:r.statusText,message:c})}return r.json()}function x(e){return l({...e,mutationFn:async({workspaceId:a,payload:t})=>h({workspaceId:a,payload:t})})}export{p as R,f as a,x as u};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as m,j as e}from"./@radix-DnFH_oo1.js";import{t as u}from"./zod-uFd1wBcd.js";import{z as l,ai as f,aj as x,ak as p,I as h,al as j,am as D,f as o,Q as E,F as g,l as y,m as A}from"./index-Ci0nJ8EZ.js";import{u as C}from"./index.esm-BE1uqCX5.js";import{b}from"./@tanstack-QbMbTrh5.js";const T=l.object({delete:l.string()}).refine(t=>t.delete==="DELETE",{message:"Please type DELETE to confirm"}),N=m.forwardRef(({handleDelete:t,title:a,children:s},r)=>{const{register:n,handleSubmit:i,formState:{isValid:c}}=C({resolver:u(T),defaultValues:{delete:""}});return e.jsxs(f,{ref:r,children:[e.jsx(x,{children:e.jsx(p,{children:a})}),e.jsxs("form",{onSubmit:i(()=>t()),id:"delete-form",className:"space-y-5 p-5",children:[s,e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"mb-0.5 text-text-sm",children:"Please type DELETE to confirm"}),e.jsx(h,{onPaste:d=>d.preventDefault(),...n("delete"),className:"w-full"})]})]}),e.jsxs(j,{className:"gap-[10px]",children:[e.jsx(D,{asChild:!0,children:e.jsx(o,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(o,{form:"delete-form",disabled:!c,intent:"danger",type:"submit",children:"Delete"})]})]})});N.displayName="DeleteAlertContent";function S({children:t,className:a}){return e.jsx("div",{className:E("text-text-md text-theme-text-secondary",a),children:t})}async function w({runId:t}){const a=y(A.runs.detail(t)),s=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!s.ok){const r=await s.json().then(n=>n.detail).catch(()=>`Failed to delete run ${t}`);throw new g({status:s.status,statusText:s.statusText,message:r})}return s.json()}function k(t){return b({mutationFn:w,...t})}export{N as D,S as a,k as u};
|