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