/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
v5.0.0-next.103 */
import{kk as m,pk as c,vg as a}from"./KJY5DUBE.js";export default $arcgis.t(([j])=>{m();function k(){return!!window.MonacoEnvironment?.getWorker}var l="",g=new Map,u=!1;async function p(t,r,e){if(e)return r?r():new Worker(t);let o=window.location.origin;if(new URL(t,window.location.href).origin!==o){let n=await j(t,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([n.data],{type:"text/javascript"})),{type:"module"})}return new Worker(t,{type:"module"})}function L(t){if(k())return;y(),l=t;let r=`${l}/code-editor`,e={arcade:`${r}/arcade.worker.js`,"arcgis-sql-expression":`${r}/sql-expr.worker.js`,html:`${r}/html.worker.js`,css:`${r}/css.worker.js`,typescript:`${r}/ts.worker.js`,json:`${r}/json.worker.js`,default:`${r}/editor.worker.js`},o={arcade:{url:e.arcade},"arcgis-sql-expression":{url:e["arcgis-sql-expression"]},html:{url:e.html},css:{url:e.css},typescript:{url:e.typescript},javascript:{url:e.typescript},json:{url:e.json},default:{url:e.default}};window.MonacoEnvironment={getWorker:async(n,s)=>{let i=g.get(s);if(i)return await p(i,void 0,u);let{url:d,localWorker:f}=o[s]||o.default;return await p(d,f,u)}}}var w=!1;function y(){w||(c.get(a),w=!0)}async function M(){return(await v()).getArcadeDiagnosticService()}async function v(){return await import("./KBRQ2UOV.js")}return{a:L,b:M,c:v}},"request")