/*! 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.14 */
import{b as g}from"./G5RZ22V3.js";import b from"./OVF5PFR4.js";import{a as c}from"./KDP7O4UJ.js";import a from"./GSFNFFA7.js";import{k as i}from"./RDGIBW2N.js";import{Sl as n,kk as p}from"./GIXWNZRN.js";export default $arcgis.t(([t,o])=>{p();var s=new Set;function m(e,a){return()=>{s.has(e)||s.add(e),a()}}async function y(e){s.has(e)||(await i()).createModel("",e).dispose()}var u={"light-theme":{comment:"#606060",constant:"#9809C8",date:"#296389",identifier:"#0000B3",keyword:"#BF4900",number:"#136D3D",string:"#A31515",operator:"#9809C8",predefined:"#0000B3"},"dark-theme":{comment:"#BFBFBF",constant:"#CDBAEA",date:"#97A6CE",identifier:"#9FD4F3",keyword:"#EEAA5A",number:"#AAD04B",string:"#F2877B",operator:"#CDBAEA",predefined:"#9FD4F3"}};f();function f(){i().then(e=>{["light","dark"].forEach(a=>{let d=a==="light"?"vs":"vs-dark",r=u[`${a}-theme`];e.defineTheme(d,{base:d,inherit:!0,rules:[{token:"comment.arcgis",foreground:r.comment},{token:"constant.arcgis",foreground:r.constant},{token:"keyword.arcgis",foreground:r.keyword},{token:"identifier.arcgis",foreground:r.identifier},{token:"number.arcgis",foreground:r.number},{token:"string.arcgis",foreground:r.string},{token:"operator.arcgis",foreground:r.operator},{token:"predefined.arcgis",foreground:r.predefined}],colors:{}})})})}n.register({id:o.languageId,aliases:["Arcade","arcade"],extensions:[".arc"],mimetypes:["application/arcade"]});n.onLanguage(o.languageId,m(o.languageId,()=>{g().then(e=>{e.setupMode(o)}).catch(e=>{throw e})}));n.register({id:t.languageId,aliases:["EsiSqlExpression","sql-expression"],extensions:[".sql-expression"],mimetypes:["application/sql-expression"]});n.onLanguage(t.languageId,m(t.languageId,()=>{c().then(e=>{e.setupMode(t)}).catch(e=>{throw e})}));return y},a,b)