"use strict";(globalThis.webpackChunk_smart_cloud_flow_admin=globalThis.webpackChunk_smart_cloud_flow_admin||[]).push([[994],{63994(n,o,e){e.d(o,{A:()=>a});const c={monaco:null,isInitialized:!1,resolve:null,reject:null},i=new Promise((n,o)=>{c.resolve=n,c.reject=o});function t(n){c.monaco=n}const a={config:function(n){n.monaco&&t(n.monaco)},init:function(){if(!c.isInitialized)if(c.isInitialized=!0,c.monaco)c.resolve?.(c.monaco);else{const n=function(){const n=window;return n.monaco?.editor?n.monaco:null}();n?(t(n),c.resolve?.(n)):c.reject?.(new Error("Monaco instance is not configured for the local loader shim."))}return function(n){let o=!1;const e=new Promise((e,c)=>{n.then(n=>{o?c({type:"cancelation",msg:"operation is manually canceled"}):e(n)},n=>c(n))});return e.cancel=()=>{o=!0},e}(i)},__getMonacoInstance:function(){return c.monaco}}}}]);