define("vs/initialize-DL0l1TGY",["exports","./editorWorkerHost-fVE1cjcC"],function(e,r){"use strict";let t=!1;function o(e){let o;const n=function(e){if(t)throw new Error("WebWorker already initialized!");t=!0;const o=new r.WebWorkerServer(e=>globalThis.postMessage(e),r=>e(r));return globalThis.onmessage=e=>{o.onmessage(e.data)},o}(t=>{const i=r.EditorWorkerHost.getChannel(t),s={host:new Proxy({},{get(e,r,t){if("then"!==r){if("string"!=typeof r)throw new Error("Not supported");return(...e)=>i.$fhr(r,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return o=e(s),new r.EditorWorker(o)});return o}let n=!1;e.initialize=function(e){n=!0,self.onmessage=r=>{o(t=>e(t,r.data))}},e.isWorkerInitialized=function(){return n},e.start=o});