@arcgis/coding-components 4.30.0-next.46 → 4.30.0-next.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-cf08aaa7.js → p-0fee5174.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-aa672cd9.js → p-1a627096.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-f6784d16.js → p-29207f1e.js} +1 -1
  6. package/dist/arcgis-coding-components/p-2b6dab4b.entry.js +6 -0
  7. package/dist/arcgis-coding-components/{p-c6853dc2.js → p-4fd5a02d.js} +3 -3
  8. package/dist/arcgis-coding-components/{p-eb83782e.js → p-621187ef.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-18c03356.js → p-6fd22ff7.js} +3 -3
  10. package/dist/arcgis-coding-components/{p-6eb6e8f4.js → p-833b0216.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-7704534b.js → p-a0704d86.js} +10 -10
  12. package/dist/arcgis-coding-components/{p-77e30a82.js → p-a412be74.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-c595c17c.js → p-ab7e89c0.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-42693ecc.js → p-d5df8d73.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-c2d9ee63.js → arcade-defaults-4e0664fb.js} +10 -10
  16. package/dist/cjs/{arcade-mode-df790d78.js → arcade-mode-61a07430.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +85 -66
  18. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  19. package/dist/cjs/{css-6cf982a2.js → css-fac19960.js} +1 -1
  20. package/dist/cjs/{cssMode-2aac2bd5.js → cssMode-22d917f0.js} +3 -3
  21. package/dist/cjs/{html-2b04b1a3.js → html-5bc24648.js} +3 -3
  22. package/dist/cjs/{htmlMode-3e08f577.js → htmlMode-f09628e1.js} +3 -3
  23. package/dist/cjs/{index-d8bdd589.js → index-02749111.js} +6 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-153d4a21.js → javascript-29521fd3.js} +4 -4
  26. package/dist/cjs/{jsonMode-de534cc0.js → jsonMode-99606370.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tsMode-9a00f595.js → tsMode-e34432d7.js} +3 -3
  29. package/dist/cjs/{typescript-85db784c.js → typescript-8ce06335.js} +3 -3
  30. package/dist/components/arcade-api.js +2 -2
  31. package/dist/components/arcade-contribution.js +1 -1
  32. package/dist/components/arcade-defaults.js +1 -1
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +2 -2
  35. package/dist/components/arcade-suggestions.js +2 -2
  36. package/dist/components/arcade-variables.js +2 -2
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +14 -11
  39. package/dist/components/arcgis-arcade-results.js +1 -1
  40. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  41. package/dist/components/arcgis-arcade-variables.js +1 -1
  42. package/dist/components/arcgis-assets.d.ts +1 -1
  43. package/dist/components/arcgis-assets.js +1 -1
  44. package/dist/components/arcgis-code-editor.js +1 -1
  45. package/dist/components/{chunk-HXHHCYA6.js → chunk-36QZLGG2.js} +22 -12
  46. package/dist/components/code-editor.js +54 -61
  47. package/dist/components/fields.js +1 -1
  48. package/dist/components/index.js +1 -1
  49. package/dist/components/index2.js +1 -1
  50. package/dist/components/markdown.js +1 -1
  51. package/dist/components/utilities.js +1 -1
  52. package/dist/esm/{arcade-defaults-48c8832f.js → arcade-defaults-fdba0972.js} +10 -10
  53. package/dist/esm/{arcade-mode-1f2ea7da.js → arcade-mode-0d144d92.js} +3 -3
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +85 -66
  55. package/dist/esm/arcgis-coding-components.js +4 -4
  56. package/dist/esm/{css-b5f0f74b.js → css-58b4c966.js} +1 -1
  57. package/dist/esm/{cssMode-265b57f6.js → cssMode-f5916932.js} +3 -3
  58. package/dist/esm/{html-c4501640.js → html-7c8fbcc5.js} +3 -3
  59. package/dist/esm/{htmlMode-36324801.js → htmlMode-d7755346.js} +3 -3
  60. package/dist/esm/{index-56d42c6b.js → index-c6b28dae.js} +6 -1
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-25150788.js → javascript-9ac36865.js} +4 -4
  63. package/dist/esm/{jsonMode-141814de.js → jsonMode-ef328849.js} +3 -3
  64. package/dist/esm/loader.js +4 -4
  65. package/dist/esm/{tsMode-d3956e42.js → tsMode-0daf7dc9.js} +3 -3
  66. package/dist/esm/{typescript-7e8d8a9a.js → typescript-a34ba038.js} +3 -3
  67. package/dist/loader/cdn.js +1 -1
  68. package/dist/loader/index.cjs.js +1 -1
  69. package/dist/loader/index.es2017.js +1 -1
  70. package/dist/loader/index.js +1 -1
  71. package/dist/types/components/arcade-editor/arcade-editor.d.ts +9 -5
  72. package/dist/types/components/code-editor/code-editor.d.ts +14 -12
  73. package/dist/types/components.d.ts +22 -11
  74. package/package.json +9 -9
  75. package/dist/arcgis-coding-components/p-873cb602.entry.js +0 -6
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
- import{z as t,y as e}from"./p-7704534b.js";import"./p-42693ecc.js";
6
+ import{z as t,y as e}from"./p-a0704d86.js";import"./p-d5df8d73.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
- import{A as e,e as t,M as s,R as n,l as r,B as i,E as o}from"./p-7704534b.js";import"./p-42693ecc.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
6
+ import{A as e,e as t,M as s,R as n,l as r,B as i,E as o}from"./p-a0704d86.js";import"./p-d5df8d73.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
- let n,e,t=!1;const l=n=>{const e=new URL(n,rn.t);return e.origin!==sn.location.origin?e.href:e.pathname},o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="http://www.w3.org/1999/xlink",i={},c=n=>"object"==(n=typeof n)||"function"===n;function r(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(n,e,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),e){e.key&&(o=e.key);{const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}}if("function"==typeof n)return n(null===e?{}:e,r,d);const f=a(n,null);return f.o=e,r.length>0&&(f.i=r),f.u=o,f},a=(n,e)=>({v:0,p:n,l:e,m:null,i:null,o:null,u:null}),f={},d={forEach:(n,e)=>n.map(v).forEach(e),map:(n,e)=>n.map(v).map(e).map(p)},v=n=>({vattrs:n.o,vchildren:n.i,vkey:n.u,vname:n.h,vtag:n.p,vtext:n.l}),p=n=>{if("function"==typeof n.vtag){const e=Object.assign({},n.vattrs);return n.vkey&&(e.key=n.vkey),n.vname&&(e.name=n.vname),u(n.vtag,e,...n.vchildren||[])}const e=a(n.vtag,n.vtext);return e.o=n.vattrs,e.i=n.vchildren,e.u=n.vkey,e.h=n.vname,e},y=n=>X(n).$hostElement$,m=(n,e,t)=>{const l=y(n);return{emit:n=>h(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},h=(n,e,t)=>{const l=rn.ce(e,t);return n.dispatchEvent(l),l},$=new WeakMap,b=n=>"sc-"+n.$,w=(n,e,t,l,o,i)=>{if(t!==l){let r=nn(n,e),u=e.toLowerCase();if("class"===e){const e=n.classList,o=k(t),s=k(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(n);else if(r||"o"!==e[0]||"n"!==e[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(e)||(f?n.removeAttributeNS(s,e):n.removeAttribute(e)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(s,e,l):n.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):nn(sn,u)?u.slice(2):u[2]+e.slice(3),t||l){const o=e.endsWith(S);e=e.replace(j,""),t&&rn.rel(n,e,t,o),l&&rn.ael(n,e,l,o)}}},g=/\s/,k=n=>n?n.split(g):[],S="Capture",j=RegExp(S+"$"),O=(n,e,t,l)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,s=n&&n.o||i,c=e.o||i;for(l in s)l in c||w(o,l,s[l],void 0,t,e.v);for(l in c)w(o,l,s[l],c[l],t,e.v)},C=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=cn.createTextNode(s.l);else if(i=s.m=cn.createElement(s.p),O(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.i)for(r=0;r<s.i.length;++r)c=C(t,s,r),c&&i.appendChild(c);return i["s-hn"]=e,i},M=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=C(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},x=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.m;E(e),n&&n.remove()}}},P=(n,e,t=!1)=>n.p===e.p&&(!!t||n.u===e.u),R=(n,e,t=!1)=>{const l=e.m=n.m,o=n.i,s=e.i,i=e.l;null===i?(O(n,e,!1),null!==o&&null!==s?((n,e,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=e.length-1,d=e[0],v=e[f],p=l.length-1,y=l[0],m=l[p];for(;c<=f&&r<=p;)if(null==d)d=e[++c];else if(null==v)v=e[--f];else if(null==y)y=l[++r];else if(null==m)m=l[--p];else if(P(d,y,o))R(d,y,o),d=e[++c],y=l[++r];else if(P(v,m,o))R(v,m,o),v=e[--f],m=l[--p];else if(P(d,m,o))R(d,m,o),n.insertBefore(d.m,v.m.nextSibling),d=e[++c],m=l[--p];else if(P(v,y,o))R(v,y,o),n.insertBefore(v.m,d.m),v=e[--f],y=l[++r];else{for(u=-1,a=c;a<=f;++a)if(e[a]&&null!==e[a].u&&e[a].u===y.u){u=a;break}u>=0?(i=e[u],i.p!==y.p?s=C(e&&e[r],t,u):(R(i,y,o),e[u]=void 0,s=i.m),y=l[++r]):(s=C(e&&e[r],t,r),y=l[++r]),s&&d.m.parentNode.insertBefore(s,d.m)}c>f?M(n,null==l[p+1]?null:l[p+1].m,t,l,r,p):r>p&&x(e,c,f)})(l,o,e,s,t):null!==s?(null!==n.l&&(l.textContent=""),M(l,null,e,s,0,s.length-1)):null!==o&&x(o,0,o.length-1)):n.l!==i&&(l.data=i)},E=n=>{n.o&&n.o.ref&&n.o.ref(null),n.i&&n.i.map(E)},L=(n,e)=>{e&&!n.k&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.k=e)))},U=(n,e)=>{if(n.v|=16,!(4&n.v))return L(n,n.S),hn((()=>W(n,e)));n.v|=512},W=(n,e)=>{const t=n.j;let l;return l=V(t,e?"componentWillLoad":"componentWillUpdate"),l=A(l,(()=>V(t,"componentWillRender"))),A(l,(()=>N(n,t,e)))},A=(n,e)=>D(n)?n.then(e):e(),D=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,N=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.O,t=n.$hostElement$,l=e.v,s=((n,e)=>{var t;const l=b(e),s=on.get(l);if(n=11===n.nodeType?n:cn,s)if("string"==typeof s){let i,c=$.get(n=n.head||n);if(c||$.set(n,c=new Set),!c.has(l)){{i=cn.createElement("style"),i.innerHTML=s;const e=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.v&&(i.innerHTML+=o),c&&c.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);T(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>F(n);0===e.length?t():(Promise.all(e).then(t),n.v|=4,e.length=0)}},T=(t,l,o,s)=>{try{l=l.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O,c=t.M||a(null,null),r=(n=>n&&n.p===f)(l)?l:u(null,null,l);if(e=s.tagName,i.P&&(r.o=r.o||{},i.P.map((([n,e])=>r.o[e]=s[n]))),o&&r.o)for(const n of Object.keys(r.o))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.o[n]=s[n]);r.p=null,r.v|=4,t.M=r,r.m=c.m=s.shadowRoot||s,n=s["s-sc"],R(c,r,o)})(t,l,s)}catch(n){en(n,t.$hostElement$)}return null},F=n=>{const e=n.$hostElement$,t=n.j,l=n.S;V(t,"componentDidRender"),64&n.v?V(t,"componentDidUpdate"):(n.v|=64,_(e),V(t,"componentDidLoad"),n.R(e),l||q()),n.L(e),n.k&&(n.k(),n.k=void 0),512&n.v&&mn((()=>U(n,!1))),n.v&=-517},H=n=>{{const e=X(n),t=e.$hostElement$.isConnected;return t&&2==(18&e.v)&&U(e,!1),t}},q=()=>{_(cn.documentElement),mn((()=>h(sn,"appload",{detail:{namespace:"arcgis-coding-components"}})))},V=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){en(n)}},_=n=>n.setAttribute("hydrated",""),z=(n,e,t)=>{var l;const o=n.prototype;if(e.U){n.watchers&&(e.W=n.watchers);const s=Object.entries(e.U);if(s.map((([n,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,n,{get(){return((n,e)=>X(this).A.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=X(n),s=o.$hostElement$,i=o.A.get(e),r=o.v,u=o.j;if(t=((n,e)=>null==n||c(n)?n:4&e?"false"!==n&&(""===n||!!n):1&e?n+"":n)(t,l.U[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.A.set(e,t),u)){if(l.W&&128&r){const n=l.W[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){en(n,s)}}))}2==(18&r)&&U(o,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,n,{value(...e){var t;const l=X(this);return null===(t=null==l?void 0:l.D)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.j)||void 0===t?void 0:t[n](...e)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,l,s){rn.jmp((()=>{var i;const c=t.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=X(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=e.W)||void 0===i?void 0:i[n];null==c||c.forEach((e=>{null!=o[e]&&o[e].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.W)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,l])=>{var o;const s=l[1]||n;return t.set(s,n),512&l[0]&&(null===(o=e.P)||void 0===o||o.push([n,s])),s}))]))}}return n},B=n=>{V(n,"connectedCallback")},G=n=>{V(n,"disconnectedCallback")},I=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=sn.customElements,c=cn.head,u=c.querySelector("meta[charset]"),a=cn.createElement("style"),f=[];let d,v=!0;Object.assign(rn,e),rn.t=new URL(e.resourcesUrl||"./",cn.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((e=>{var t;const o={v:e[0],$:e[1],U:e[2],N:e[3]};4&o.v&&(p=!0),o.U=e[2],o.P=[],o.W=null!==(t=e[4])&&void 0!==t?t:{};const c=o.$,r=class extends HTMLElement{constructor(n){super(n),Z(n=this,o),1&o.v&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):rn.jmp((()=>(n=>{if(0==(1&rn.v)){const e=X(n),t=e.O,l=()=>{};if(1&e.v)(null==e?void 0:e.j)?B(e.j):(null==e?void 0:e.T)&&e.T.then((()=>B(e.j)));else{e.v|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(e,e.S=t);break}}t.U&&Object.entries(t.U).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.v)){e.v|=32;{if(l=ln(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(t.W=l.watchers,z(l,t,2),l.isProxied=!0);const n=()=>{};e.v|=8;try{l.__registerControllers=n=>(Y(n,e),e.O.U??{}),new l(e),l.__registerControllers=void 0}catch(n){en(n)}e.v&=-9,e.v|=128,n(),B(e.j)}if(l.style){let n=l.style;const e=b(t);if(!on.has(e)){const l=()=>{};((n,e,t)=>{let l=on.get(n);an&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,on.set(n,l)})(e,n,!!(1&t.v)),l()}}}const o=e.S,s=()=>U(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){rn.jmp((()=>(async()=>{if(0==(1&rn.v)){const n=X(this);(null==n?void 0:n.j)?G(n.j):(null==n?void 0:n.T)&&n.T.then((()=>G(n.j)))}})()))}componentOnReady(){return X(this).T}};o.F=n[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,z(r,o,1)))}))})),p&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=n&&a.setAttribute("nonce",n),c.insertBefore(a,u?u.nextSibling:c.firstChild)}v=!1,f.length?f.map((n=>n.connectedCallback())):rn.jmp((()=>d=setTimeout(q,30)))},J=(n,e)=>e,K=n=>rn.C=n,Q=new WeakMap,X=n=>Q.get(n),Y=(n,e)=>Q.set(e.j=n,e),Z=(n,e)=>{const t={v:0,$hostElement$:n,O:e,A:new Map};return t.D=new Promise((n=>t.L=n)),t.T=new Promise((n=>t.R=n)),n["s-p"]=[],n["s-rc"]=[],Q.set(n,t)},nn=(n,e)=>e in n,en=(n,e)=>(0,console.error)(n,e),tn=new Map,ln=n=>{const e=n.$.replace(/-/g,"_"),t=n.F,l=tn.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(tn.set(t,n),n[e])),en)
6
+ let n,e,t=!1;const l=n=>{const e=new URL(n,rn.t);return e.origin!==sn.location.origin?e.href:e.pathname},o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="http://www.w3.org/1999/xlink",i={},c=n=>"object"==(n=typeof n)||"function"===n;function r(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(n,e,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),e){e.key&&(o=e.key);{const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}}if("function"==typeof n)return n(null===e?{}:e,r,d);const f=a(n,null);return f.o=e,r.length>0&&(f.i=r),f.u=o,f},a=(n,e)=>({v:0,p:n,l:e,m:null,i:null,o:null,u:null}),f={},d={forEach:(n,e)=>n.map(v).forEach(e),map:(n,e)=>n.map(v).map(e).map(p)},v=n=>({vattrs:n.o,vchildren:n.i,vkey:n.u,vname:n.h,vtag:n.p,vtext:n.l}),p=n=>{if("function"==typeof n.vtag){const e=Object.assign({},n.vattrs);return n.vkey&&(e.key=n.vkey),n.vname&&(e.name=n.vname),u(n.vtag,e,...n.vchildren||[])}const e=a(n.vtag,n.vtext);return e.o=n.vattrs,e.i=n.vchildren,e.u=n.vkey,e.h=n.vname,e},y=n=>X(n).$hostElement$,m=(n,e,t)=>{const l=y(n);return{emit:n=>h(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},h=(n,e,t)=>{const l=rn.ce(e,t);return n.dispatchEvent(l),l},$=new WeakMap,b=n=>"sc-"+n.$,w=(n,e,t,l,o,i)=>{if(t!==l){let r=nn(n,e),u=e.toLowerCase();if("class"===e){const e=n.classList,o=k(t),s=k(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(n);else if(r||"o"!==e[0]||"n"!==e[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(e)||(f?n.removeAttributeNS(s,e):n.removeAttribute(e)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(s,e,l):n.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):nn(sn,u)?u.slice(2):u[2]+e.slice(3),t||l){const o=e.endsWith(S);e=e.replace(j,""),t&&rn.rel(n,e,t,o),l&&rn.ael(n,e,l,o)}}},g=/\s/,k=n=>n?n.split(g):[],S="Capture",j=RegExp(S+"$"),O=(n,e,t,l)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,s=n&&n.o||i,c=e.o||i;for(l in s)l in c||w(o,l,s[l],void 0,t,e.v);for(l in c)w(o,l,s[l],c[l],t,e.v)},C=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=cn.createTextNode(s.l);else if(i=s.m=cn.createElement(s.p),O(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.i)for(r=0;r<s.i.length;++r)c=C(t,s,r),c&&i.appendChild(c);return i["s-hn"]=e,i},M=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=C(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},x=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.m;E(e),n&&n.remove()}}},P=(n,e,t=!1)=>n.p===e.p&&(!!t||n.u===e.u),R=(n,e,t=!1)=>{const l=e.m=n.m,o=n.i,s=e.i,i=e.l;null===i?(O(n,e,!1),null!==o&&null!==s?((n,e,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=e.length-1,d=e[0],v=e[f],p=l.length-1,y=l[0],m=l[p];for(;c<=f&&r<=p;)if(null==d)d=e[++c];else if(null==v)v=e[--f];else if(null==y)y=l[++r];else if(null==m)m=l[--p];else if(P(d,y,o))R(d,y,o),d=e[++c],y=l[++r];else if(P(v,m,o))R(v,m,o),v=e[--f],m=l[--p];else if(P(d,m,o))R(d,m,o),n.insertBefore(d.m,v.m.nextSibling),d=e[++c],m=l[--p];else if(P(v,y,o))R(v,y,o),n.insertBefore(v.m,d.m),v=e[--f],y=l[++r];else{for(u=-1,a=c;a<=f;++a)if(e[a]&&null!==e[a].u&&e[a].u===y.u){u=a;break}u>=0?(i=e[u],i.p!==y.p?s=C(e&&e[r],t,u):(R(i,y,o),e[u]=void 0,s=i.m),y=l[++r]):(s=C(e&&e[r],t,r),y=l[++r]),s&&d.m.parentNode.insertBefore(s,d.m)}c>f?M(n,null==l[p+1]?null:l[p+1].m,t,l,r,p):r>p&&x(e,c,f)})(l,o,e,s,t):null!==s?(null!==n.l&&(l.textContent=""),M(l,null,e,s,0,s.length-1)):null!==o&&x(o,0,o.length-1)):n.l!==i&&(l.data=i)},E=n=>{n.o&&n.o.ref&&n.o.ref(null),n.i&&n.i.map(E)},L=(n,e)=>{e&&!n.k&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.k=e)))},U=(n,e)=>{if(n.v|=16,!(4&n.v))return L(n,n.S),hn((()=>W(n,e)));n.v|=512},W=(n,e)=>{const t=n.j;let l;return l=V(t,e?"componentWillLoad":"componentWillUpdate"),l=A(l,(()=>V(t,"componentWillRender"))),A(l,(()=>N(n,t,e)))},A=(n,e)=>D(n)?n.then(e):e(),D=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,N=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.O,t=n.$hostElement$,l=e.v,s=((n,e)=>{var t;const l=b(e),s=on.get(l);if(n=11===n.nodeType?n:cn,s)if("string"==typeof s){let i,c=$.get(n=n.head||n);if(c||$.set(n,c=new Set),!c.has(l)){{i=cn.createElement("style"),i.innerHTML=s;const e=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.v&&(i.innerHTML+=o),c&&c.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);T(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>F(n);0===e.length?t():(Promise.all(e).then(t),n.v|=4,e.length=0)}},T=(t,l,o,s)=>{try{l=l.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O,c=t.M||a(null,null),r=(n=>n&&n.p===f)(l)?l:u(null,null,l);if(e=s.tagName,i.P&&(r.o=r.o||{},i.P.map((([n,e])=>r.o[e]=s[n]))),o&&r.o)for(const n of Object.keys(r.o))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.o[n]=s[n]);r.p=null,r.v|=4,t.M=r,r.m=c.m=s.shadowRoot||s,n=s["s-sc"],R(c,r,o)})(t,l,s)}catch(n){en(n,t.$hostElement$)}return null},F=n=>{const e=n.$hostElement$,t=n.j,l=n.S;V(t,"componentDidRender"),64&n.v?V(t,"componentDidUpdate"):(n.v|=64,_(e),V(t,"componentDidLoad"),n.R(e),l||q()),n.L(e),n.k&&(n.k(),n.k=void 0),512&n.v&&mn((()=>U(n,!1))),n.v&=-517},H=n=>{{const e=X(n),t=e.$hostElement$.isConnected;return t&&2==(18&e.v)&&U(e,!1),t}},q=()=>{_(cn.documentElement),mn((()=>h(sn,"appload",{detail:{namespace:"arcgis-coding-components"}})))},V=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){en(n)}},_=n=>n.setAttribute("hydrated",""),z=(n,e,t)=>{var l;const o=n.prototype;if(e.U){n.watchers&&(e.W=n.watchers);const s=Object.entries(e.U);if(s.map((([n,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,n,{get(){return((n,e)=>X(this).A.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=X(n),s=o.$hostElement$,i=o.A.get(e),r=o.v,u=o.j;if(t=((n,e)=>null==n||c(n)?n:4&e?"false"!==n&&(""===n||!!n):1&e?n+"":n)(t,l.U[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.A.set(e,t),u)){if(l.W&&128&r){const n=l.W[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){en(n,s)}}))}if(2==(18&r)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(t,i,e))return;U(o,!1)}}})(this,n,t,e)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,n,{value(...e){var t;const l=X(this);return null===(t=null==l?void 0:l.D)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.j)||void 0===t?void 0:t[n](...e)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,l,s){rn.jmp((()=>{var i;const c=t.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=X(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=e.W)||void 0===i?void 0:i[n];null==c||c.forEach((e=>{null!=o[e]&&o[e].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.W)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,l])=>{var o;const s=l[1]||n;return t.set(s,n),512&l[0]&&(null===(o=e.P)||void 0===o||o.push([n,s])),s}))]))}}return n},B=n=>{V(n,"connectedCallback")},G=n=>{V(n,"disconnectedCallback")},I=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=sn.customElements,c=cn.head,u=c.querySelector("meta[charset]"),a=cn.createElement("style"),f=[];let d,v=!0;Object.assign(rn,e),rn.t=new URL(e.resourcesUrl||"./",cn.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((e=>{var t;const o={v:e[0],$:e[1],U:e[2],N:e[3]};4&o.v&&(p=!0),o.U=e[2],o.P=[],o.W=null!==(t=e[4])&&void 0!==t?t:{};const c=o.$,r=class extends HTMLElement{constructor(n){super(n),Z(n=this,o),1&o.v&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):rn.jmp((()=>(n=>{if(0==(1&rn.v)){const e=X(n),t=e.O,l=()=>{};if(1&e.v)(null==e?void 0:e.j)?B(e.j):(null==e?void 0:e.T)&&e.T.then((()=>B(e.j)));else{e.v|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(e,e.S=t);break}}t.U&&Object.entries(t.U).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.v)){e.v|=32;{if(l=ln(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(t.W=l.watchers,z(l,t,2),l.isProxied=!0);const n=()=>{};e.v|=8;try{l.__registerControllers=n=>(Y(n,e),e.O.U??{}),new l(e),l.__registerControllers=void 0}catch(n){en(n)}e.v&=-9,e.v|=128,n(),B(e.j)}if(l.style){let n=l.style;const e=b(t);if(!on.has(e)){const l=()=>{};((n,e,t)=>{let l=on.get(n);an&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,on.set(n,l)})(e,n,!!(1&t.v)),l()}}}const o=e.S,s=()=>U(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){rn.jmp((()=>(async()=>{if(0==(1&rn.v)){const n=X(this);(null==n?void 0:n.j)?G(n.j):(null==n?void 0:n.T)&&n.T.then((()=>G(n.j)))}})()))}componentOnReady(){return X(this).T}};o.F=n[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,z(r,o,1)))}))})),p&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=n&&a.setAttribute("nonce",n),c.insertBefore(a,u?u.nextSibling:c.firstChild)}v=!1,f.length?f.map((n=>n.connectedCallback())):rn.jmp((()=>d=setTimeout(q,30)))},J=(n,e)=>e,K=n=>rn.C=n,Q=new WeakMap,X=n=>Q.get(n),Y=(n,e)=>Q.set(e.j=n,e),Z=(n,e)=>{const t={v:0,$hostElement$:n,O:e,A:new Map};return t.D=new Promise((n=>t.L=n)),t.T=new Promise((n=>t.R=n)),n["s-p"]=[],n["s-rc"]=[],Q.set(n,t)},nn=(n,e)=>e in n,en=(n,e)=>(0,console.error)(n,e),tn=new Map,ln=n=>{const e=n.$.replace(/-/g,"_"),t=n.F,l=tn.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(tn.set(t,n),n[e])),en)
7
7
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},on=new Map,sn="undefined"!=typeof window?window:{},cn=sn.document||{head:{}},rn={v:0,t:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},un=n=>Promise.resolve(n),an=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),fn=[],dn=[],vn=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&rn.v?mn(yn):rn.raf(yn))},pn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){en(n)}n.length=0},yn=()=>{pn(fn),pn(dn),(t=fn.length>0)&&rn.raf(yn)},mn=n=>un().then(n),hn=vn(dn,!0);export{J as F,f as H,y as a,I as b,m as c,H as f,l as g,u as h,un as p,Y as r,K as s}
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-d8bdd589.js');
8
+ const index = require('./index-02749111.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -120544,7 +120544,7 @@ registerLanguage({
120544
120544
  mimetypes: ["text/css"],
120545
120545
  loader: () => {
120546
120546
  {
120547
- return Promise.resolve().then(function () { return require('./css-6cf982a2.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-fac19960.js'); });
120548
120548
  }
120549
120549
  }
120550
120550
  });
@@ -120562,7 +120562,7 @@ registerLanguage({
120562
120562
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120563
120563
  loader: () => {
120564
120564
  {
120565
- return Promise.resolve().then(function () { return require('./html-2b04b1a3.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-5bc24648.js'); });
120566
120566
  }
120567
120567
  }
120568
120568
  });
@@ -120582,7 +120582,7 @@ registerLanguage({
120582
120582
  mimetypes: ["text/javascript"],
120583
120583
  loader: () => {
120584
120584
  {
120585
- return Promise.resolve().then(function () { return require('./javascript-153d4a21.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-29521fd3.js'); });
120586
120586
  }
120587
120587
  }
120588
120588
  });
@@ -120600,7 +120600,7 @@ registerLanguage({
120600
120600
  mimetypes: ["text/typescript"],
120601
120601
  loader: () => {
120602
120602
  {
120603
- return Promise.resolve().then(function () { return require('./typescript-85db784c.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-8ce06335.js'); });
120604
120604
  }
120605
120605
  }
120606
120606
  });
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120721
120721
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120722
120722
  function getMode$3() {
120723
120723
  {
120724
- return Promise.resolve().then(function () { return require('./cssMode-2aac2bd5.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-22d917f0.js'); });
120725
120725
  }
120726
120726
  }
120727
120727
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
120846
120846
  };
120847
120847
  function getMode$2() {
120848
120848
  {
120849
- return Promise.resolve().then(function () { return require('./htmlMode-3e08f577.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-f09628e1.js'); });
120850
120850
  }
120851
120851
  }
120852
120852
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120948
120948
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120949
120949
  function getMode$1() {
120950
120950
  {
120951
- return Promise.resolve().then(function () { return require('./jsonMode-de534cc0.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-99606370.js'); });
120952
120952
  }
120953
120953
  }
120954
120954
  monaco_editor_core_exports$1.languages.register({
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
121217
121217
  };
121218
121218
  function getMode() {
121219
121219
  {
121220
- return Promise.resolve().then(function () { return require('./tsMode-9a00f595.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-e34432d7.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-c2d9ee63.js');
9
- require('./index-d8bdd589.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
12
12
 
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.46
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-d8bdd589.js');
11
- const arcadeDefaults = require('./arcade-defaults-c2d9ee63.js');
10
+ const index = require('./index-02749111.js');
11
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
12
12
 
13
13
  async function colorizeCode(code) {
14
14
  return await arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
@@ -4002,7 +4002,6 @@ var ControllerManager = class extends GenericController {
4002
4002
  this._connected = new Deferred();
4003
4003
  this.internals = new ComponentInternals(this.component);
4004
4004
  this.connected = this._connected.promise;
4005
- this.hasDestroy = false;
4006
4005
  this.destroyed = false;
4007
4006
  this._updatePromise = new Deferred();
4008
4007
  this._originalLifecycles = {};
@@ -4073,9 +4072,9 @@ var ControllerManager = class extends GenericController {
4073
4072
  retrieveComponentMeta(component);
4074
4073
  this._controllers = controllers;
4075
4074
  this.exports = void 0;
4076
- this.hasDestroy = "preserveOnDisconnect" in this.component && typeof this.component.destroy === "function";
4075
+ this.hasDestroy = "autoDestroyDisabled" in this.component && typeof this.component.destroy === "function";
4077
4076
  if (this.hasDestroy)
4078
- this.watch("preserveOnDisconnect", () => this._preserveOnDisconnectWatcher());
4077
+ this.watch("autoDestroyDisabled", () => this._autoDestroyDisabledWatcher());
4079
4078
  this._bindLifecycleMethods();
4080
4079
  Object.defineProperty(component, "updateComplete", {
4081
4080
  get: async () => await this._updatePromise.promise
@@ -4128,9 +4127,11 @@ var ControllerManager = class extends GenericController {
4128
4127
  const tagName = this.component.el.tagName.toLowerCase();
4129
4128
  this.component.el.remove();
4130
4129
  throw new Error(
4131
- `The ${tagName} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the preserveOnDisconnect prop.`
4130
+ `The ${tagName} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the autoDestroyDisabled prop.`
4132
4131
  );
4133
4132
  }
4133
+ if (this._autoDestroyTimeout !== void 0)
4134
+ clearTimeout(this._autoDestroyTimeout);
4134
4135
  this.internals.enabledWatchers = this.internals.allWatchers;
4135
4136
  keyTrackResolve();
4136
4137
  this._connected.resolve();
@@ -4147,7 +4148,7 @@ var ControllerManager = class extends GenericController {
4147
4148
  );
4148
4149
  this._originalLifecycles.disconnectedCallback?.call(this.component);
4149
4150
  if (this.hasDestroy)
4150
- this._preserveOnDisconnectWatcher();
4151
+ this._autoDestroyDisabledWatcher();
4151
4152
  }
4152
4153
  async _componentWillLoad() {
4153
4154
  await this.internals.reactiveUtilsIntegration();
@@ -4204,18 +4205,26 @@ var ControllerManager = class extends GenericController {
4204
4205
  return;
4205
4206
  if (this.component.el.isConnected) {
4206
4207
  this.hasDestroy = false;
4207
- this.component.el.remove();
4208
- this.hasDestroy = true;
4208
+ try {
4209
+ this.component.el.remove();
4210
+ } finally {
4211
+ this.hasDestroy = true;
4212
+ }
4209
4213
  }
4214
+ this._autoDestroyTimeout = void 0;
4210
4215
  this.destroyed = true;
4211
4216
  this._controllers.forEach(
4212
4217
  (controller) => "triggerDestroy" in controller ? controller.triggerDestroy() : safeCall(() => controller.hostDestroy?.())
4213
4218
  );
4214
4219
  await this._originalLifecycles.destroy?.call(this.component);
4215
4220
  }
4216
- _preserveOnDisconnectWatcher() {
4217
- if (!this.component.el.isConnected && !this.component.preserveOnDisconnect)
4218
- void this.destroy().catch(console.error);
4221
+ _autoDestroyDisabledWatcher() {
4222
+ if (!this.component.el.isConnected && !this.component.autoDestroyDisabled) {
4223
+ if (this._autoDestroyTimeout !== void 0)
4224
+ clearTimeout(this._autoDestroyTimeout);
4225
+ const destroy = () => void this.destroy().catch(console.error);
4226
+ this._autoDestroyTimeout = setTimeout(destroy, autoDestroyOnDisconnectTimeout);
4227
+ }
4219
4228
  }
4220
4229
  /**
4221
4230
  * Make a @Prop() or @State() readonly (prevent overwriting default value).
@@ -4286,8 +4295,9 @@ var destroyErrorMessage = `
4286
4295
  If the component uses a controller that uses destroy() method, then the
4287
4296
  component must have the following properties:
4288
4297
  ${// Don't expose internal code in production, and keep bundle smaller:
4289
- `preserveOnDisconnect and destroy` }
4298
+ `autoDestroyDisabled and destroy` }
4290
4299
  `.trim();
4300
+ var autoDestroyOnDisconnectTimeout = 1e3;
4291
4301
 
4292
4302
  // src/proxyExports.ts
4293
4303
  var proxyExports = (Class) => (...args) => {
@@ -4536,7 +4546,7 @@ async function getArcadeWorker(uri) {
4536
4546
  * @returns arcade mode module
4537
4547
  */
4538
4548
  async function getMode() {
4539
- return await Promise.resolve().then(function () { return require('./arcade-mode-df790d78.js'); });
4549
+ return await Promise.resolve().then(function () { return require('./arcade-mode-61a07430.js'); });
4540
4550
  }
4541
4551
  // Register the language in Monaco
4542
4552
  arcadeDefaults.languages.register({
@@ -4981,8 +4991,9 @@ const ArcgisArcadeEditor = class {
4981
4991
  }
4982
4992
  };
4983
4993
  this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
4984
- this._emitScriptChange = (e) => {
4994
+ this._onCodeEditorValueChange = (e) => {
4985
4995
  e.stopPropagation();
4996
+ this.script = e.detail;
4986
4997
  this.arcgisScriptChange.emit(e.detail);
4987
4998
  };
4988
4999
  this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
@@ -5008,6 +5019,10 @@ const ArcgisArcadeEditor = class {
5008
5019
  this.sideActionBarExpanded = false;
5009
5020
  this.openedSidePanel = "none";
5010
5021
  this.editorOptions = undefined;
5022
+ this.editorInstance = this.manager.getSet(undefined, {
5023
+ get: () => this._codeEditorElt?.editorInstance,
5024
+ set: (_value, prevValue) => prevValue,
5025
+ });
5011
5026
  }
5012
5027
  _profileChanged() {
5013
5028
  this._updateEditorProfile().catch(console.error);
@@ -5026,12 +5041,11 @@ const ArcgisArcadeEditor = class {
5026
5041
  // #endregion
5027
5042
  // #region Public methods API
5028
5043
  /**
5029
- * Returns the current script.
5030
- * @returns {Promise<string>}
5044
+ * @deprecated Use `script` property instead.
5031
5045
  */
5032
5046
  async getScript() {
5033
5047
  await this._componentReadyDefer.promise;
5034
- return await this._codeEditorElt?.getValue();
5048
+ return this._codeEditorElt?.value;
5035
5049
  }
5036
5050
  /**
5037
5051
  * Set the focus on the element.
@@ -5042,12 +5056,11 @@ const ArcgisArcadeEditor = class {
5042
5056
  }
5043
5057
  /**
5044
5058
  * @internal
5045
- * Returns the editor instance.
5046
- * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
5059
+ * @deprecated Use `editorInstance` property instead.
5047
5060
  */
5048
5061
  async getEditorInstance() {
5049
5062
  await this._componentReadyDefer.promise;
5050
- return await this._codeEditorElt?.getEditorInstance();
5063
+ return this._codeEditorElt?.editorInstance;
5051
5064
  }
5052
5065
  /**
5053
5066
  * Returns the Arcade result for the script for the provided test data.
@@ -5166,7 +5179,7 @@ const ArcgisArcadeEditor = class {
5166
5179
  //#endregion
5167
5180
  //#region Render Main Panel
5168
5181
  renderMainPanel() {
5169
- return (index.h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
5182
+ return (index.h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
5170
5183
  }
5171
5184
  //#endregion
5172
5185
  //#region Rendering the Action Bar
@@ -5767,65 +5780,66 @@ const ArcgisCodeEditor = class {
5767
5780
  index.registerInstance(this, hostRef);
5768
5781
  this.arcgisValueChange = index.createEvent(this, "arcgisValueChange", 3);
5769
5782
  this.arcgisSelectionChange = index.createEvent(this, "arcgisSelectionChange", 3);
5783
+ this.manager = useControllerManager(this);
5770
5784
  this._componentReadyDefer = new arcadeDefaults.Deferred();
5771
5785
  this._disposables = [];
5772
- this.value = undefined;
5786
+ this.value = this.manager.getSet("", {
5787
+ get: () => this._editorInstance?.getValue() ?? "",
5788
+ set: (newValue, oldValue) => {
5789
+ if (!this._editorInstance) {
5790
+ return "";
5791
+ }
5792
+ const model = this._editorInstance.getModel();
5793
+ if (!model) {
5794
+ return "";
5795
+ }
5796
+ if (model.getValue() === newValue) {
5797
+ return newValue;
5798
+ }
5799
+ // Set the value and preserve the undo stack
5800
+ const range = model.getFullModelRange();
5801
+ this._editorInstance.executeEdits("", [{ range, text: newValue ?? "", forceMoveMarkers: true }]);
5802
+ this._editorInstance.pushUndoStop();
5803
+ // By returning oldValue we are preventing a re-render.
5804
+ // The getter will return the new value anyway.
5805
+ return oldValue;
5806
+ },
5807
+ });
5773
5808
  this.language = undefined;
5774
5809
  this.modelId = arcadeDefaults.generateGuid();
5775
5810
  this.options = undefined;
5776
- }
5777
- valuePropChange(newValue) {
5778
- if (!this._editorInstance) {
5779
- return;
5780
- }
5781
- this._editorInstance.setValue(newValue ?? "");
5811
+ this.editorInstance = this.manager.getSet(undefined, {
5812
+ get: () => this._editorInstance,
5813
+ set: (_value, prevValue) => prevValue,
5814
+ });
5782
5815
  }
5783
5816
  languagePropChange() {
5784
- if (!this._editorInstance) {
5785
- return;
5786
- }
5787
5817
  this.updateModel();
5788
5818
  }
5789
5819
  modelIdPropChange() {
5790
- if (!this._editorInstance) {
5791
- return;
5792
- }
5793
5820
  this.updateModel();
5794
5821
  }
5795
5822
  optionsPropChange(newValue) {
5796
- if (!this._editorInstance || !newValue) {
5823
+ if (!newValue) {
5797
5824
  return;
5798
5825
  }
5799
- this._editorInstance.updateOptions(newValue);
5826
+ this._editorInstance?.updateOptions(newValue);
5800
5827
  }
5801
5828
  //#endregion
5802
5829
  // #region Public methods API
5803
5830
  /**
5804
- * Gets the current value in the editor.
5805
- * @returns {Promise<string>}
5831
+ * @deprecated Use `value` property instead.
5806
5832
  */
5807
5833
  async getValue() {
5808
5834
  await this._componentReadyDefer.promise;
5809
- return this._editorInstance?.getValue() ?? "";
5835
+ return this.value;
5810
5836
  }
5811
5837
  /**
5812
- * Sets the new value in the editor. Use this method instead of setting the value
5813
- * on the model to preserve undo/redo stack.
5814
- * @param text
5815
- * @returns {Promise<void>}
5838
+ * @deprecated Use `value` property instead.
5816
5839
  */
5817
5840
  async setValue(text) {
5818
5841
  await this._componentReadyDefer.promise;
5819
- if (!this._editorInstance) {
5820
- return;
5821
- }
5822
- const model = this._editorInstance.getModel();
5823
- if (!model) {
5824
- return;
5825
- }
5826
- const range = model.getFullModelRange();
5827
- this._editorInstance.executeEdits("", [{ range, text: text ?? "", forceMoveMarkers: true }]);
5828
- this._editorInstance.pushUndoStop();
5842
+ this.value = text ?? "";
5829
5843
  }
5830
5844
  /**
5831
5845
  * Inserts a text at the current position in the editor.
@@ -5860,8 +5874,7 @@ const ArcgisCodeEditor = class {
5860
5874
  }
5861
5875
  /**
5862
5876
  * @internal
5863
- * Returns the editor instance.
5864
- * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
5877
+ * @deprecated Use `editorInstance` property instead.
5865
5878
  */
5866
5879
  async getEditorInstance() {
5867
5880
  await this._componentReadyDefer.promise;
@@ -5895,7 +5908,7 @@ const ArcgisCodeEditor = class {
5895
5908
  const model = arcadeDefaults.editor.createModel("", this.language, this.getUri());
5896
5909
  // Create the editor for the host element.
5897
5910
  // This will not trigger a diagnostic.
5898
- this._editorInstance = arcadeDefaults.editor.create(this._hostElt, {
5911
+ this._editorInstance = arcadeDefaults.editor.create(this.el, {
5899
5912
  ...(this.options ?? {}),
5900
5913
  model,
5901
5914
  fixedOverflowWidgets: true,
@@ -5908,19 +5921,19 @@ const ArcgisCodeEditor = class {
5908
5921
  this._componentReadyDefer.resolve();
5909
5922
  this._editorInstance.updateOptions(EditorOptionsDefaults);
5910
5923
  this._editorInstance.onDidChangeModelContent(() => {
5911
- const script = this._editorInstance?.getValue() ?? "";
5912
- this.arcgisValueChange.emit(script);
5924
+ this.value = this._editorInstance?.getValue() ?? "";
5925
+ this.arcgisValueChange.emit(this.value);
5913
5926
  });
5914
5927
  this._editorInstance.onDidChangeCursorSelection((e) => {
5915
5928
  this.arcgisSelectionChange.emit({ selection: e.selection, model: this._editorInstance?.getModel() });
5916
5929
  });
5917
5930
  // Detect if the host element or its ancestors got a theme attribute mutation
5918
- this._themeObserver = arcadeDefaults.observeAncestorsMutation(this._hostElt, ["class"], () => this.updateTheme());
5931
+ this._themeObserver = arcadeDefaults.observeAncestorsMutation(this.el, ["class"], () => this.updateTheme());
5919
5932
  // Update the theme of the Monaco Editor
5920
5933
  this.updateTheme();
5921
5934
  // Creates a resize observer to re-layout the editor on size changing
5922
5935
  const resizeObserver = new ResizeObserver(() => this._editorInstance?.layout());
5923
- resizeObserver.observe(this._hostElt);
5936
+ resizeObserver.observe(this.el);
5924
5937
  // Add common actions to the Monaco Editor's context menu and command palette
5925
5938
  this.addCommonEditorActions();
5926
5939
  }
@@ -5930,6 +5943,13 @@ const ArcgisCodeEditor = class {
5930
5943
  }
5931
5944
  this._themeObserver?.remove();
5932
5945
  }
5946
+ componentShouldUpdate(_newVal, _oldVal, propName) {
5947
+ if (propName === "value" || propName === "language" || propName === "modelId" || propName === "options") {
5948
+ // These are properties that we directly pass to the editor
5949
+ return false;
5950
+ }
5951
+ return true;
5952
+ }
5933
5953
  //#endregion
5934
5954
  // #region Private methods API
5935
5955
  updateModel() {
@@ -5937,7 +5957,7 @@ const ArcgisCodeEditor = class {
5937
5957
  return;
5938
5958
  }
5939
5959
  this._editorInstance.getModel()?.dispose();
5940
- this._editorInstance.setModel(arcadeDefaults.editor.createModel(this.value ?? "", this.language, this.getUri()));
5960
+ this._editorInstance.setModel(arcadeDefaults.editor.createModel(this.value, this.language, this.getUri()));
5941
5961
  }
5942
5962
  getUri() {
5943
5963
  return this.modelId ? arcadeDefaults.Uri.parse(this.modelId) : arcadeDefaults.Uri.parse("");
@@ -5946,7 +5966,7 @@ const ArcgisCodeEditor = class {
5946
5966
  // This is called the first time and subsequently by the Mutation Observer
5947
5967
  // Figure out the theme by walking the ancestor path.
5948
5968
  // If no theme is found then default to light.
5949
- const theme = arcadeDefaults.getElementTheme(this._hostElt) === "light" ? "vs" : "vs-dark";
5969
+ const theme = arcadeDefaults.getElementTheme(this.el) === "light" ? "vs" : "vs-dark";
5950
5970
  if (theme === this._currentTheme) {
5951
5971
  return;
5952
5972
  }
@@ -5988,9 +6008,8 @@ const ArcgisCodeEditor = class {
5988
6008
  return index.h(index.Host, null);
5989
6009
  }
5990
6010
  static get assetsDirs() { return ["assets"]; }
5991
- get _hostElt() { return index.getElement(this); }
6011
+ get el() { return index.getElement(this); }
5992
6012
  static get watchers() { return {
5993
- "value": ["valuePropChange"],
5994
6013
  "language": ["languagePropChange"],
5995
6014
  "modelId": ["modelIdPropChange"],
5996
6015
  "options": ["optionsPropChange"]