@arcgis/coding-components 4.30.0-next.9 → 4.30.0-next.90

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 (182) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -4
  3. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  4. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  43. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  44. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  45. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +2 -0
  46. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +2 -0
  47. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +2 -0
  48. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +2 -0
  49. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +2 -0
  50. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +2 -0
  51. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +2 -0
  52. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +2 -0
  53. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +2 -0
  54. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +2 -0
  55. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +2 -0
  56. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +2 -0
  57. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +2 -0
  58. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +2 -0
  59. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
  60. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +2 -0
  61. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +2 -0
  62. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
  63. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +2 -0
  64. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
  65. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
  66. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +2 -0
  67. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +2 -0
  68. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +2 -0
  69. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +2 -0
  70. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +2 -0
  71. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
  72. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +2 -0
  73. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +2 -0
  74. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +2 -0
  75. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +2 -0
  76. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +2 -0
  77. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +2 -0
  78. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +2 -0
  79. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +2 -0
  80. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +2 -0
  81. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +2 -0
  82. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +2 -0
  83. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +2 -0
  84. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
  85. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  86. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  87. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  88. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  89. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  90. package/dist/arcgis-coding-components/index.esm.js +2 -2
  91. package/dist/arcgis-coding-components/{p-ee8182a0.js → p-26bd6f29.js} +2 -2
  92. package/dist/arcgis-coding-components/{p-f6ac0a47.js → p-560553f8.js} +3 -3
  93. package/dist/arcgis-coding-components/{p-acf1a47b.js → p-79a7c8f6.js} +2 -2
  94. package/dist/arcgis-coding-components/{p-24963fee.js → p-8ab17e08.js} +3 -3
  95. package/dist/arcgis-coding-components/{p-22acdf9e.js → p-9a8d10a0.js} +1 -1
  96. package/dist/arcgis-coding-components/p-a907183e.js +68 -0
  97. package/dist/arcgis-coding-components/{p-07a4996f.js → p-c1812436.js} +2 -2
  98. package/dist/arcgis-coding-components/p-c8fbc152.entry.js +6 -0
  99. package/dist/arcgis-coding-components/{p-5bb0cc6f.js → p-c96c1f63.js} +2 -2
  100. package/dist/arcgis-coding-components/p-cbbf8c28.js +7 -0
  101. package/dist/arcgis-coding-components/{p-e8d8cb26.js → p-da9568f1.js} +2 -2
  102. package/dist/arcgis-coding-components/{p-3861533c.js → p-e6b496fb.js} +3 -3
  103. package/dist/cjs/{arcade-defaults-9a205209.js → arcade-defaults-4f585faa.js} +625 -248
  104. package/dist/cjs/{arcade-mode-b45aee7d.js → arcade-mode-07b44b47.js} +45 -51
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1652 -290
  106. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  107. package/dist/cjs/{css-19232df4.js → css-c33e390e.js} +1 -1
  108. package/dist/cjs/{cssMode-4f290a37.js → cssMode-db89e9b2.js} +3 -3
  109. package/dist/cjs/{html-8e42ebe7.js → html-a924e3d5.js} +3 -3
  110. package/dist/cjs/{htmlMode-062349b7.js → htmlMode-9caeb45e.js} +3 -3
  111. package/dist/cjs/{index-f8b11b82.js → index-9d3cd341.js} +40 -4
  112. package/dist/cjs/index.cjs.js +3 -3
  113. package/dist/cjs/{javascript-337ae21a.js → javascript-f4f032c8.js} +4 -4
  114. package/dist/cjs/{jsonMode-247b2a02.js → jsonMode-61d579b5.js} +3 -3
  115. package/dist/cjs/loader.cjs.js +3 -3
  116. package/dist/cjs/{tsMode-a95a4dea.js → tsMode-7584a323.js} +3 -3
  117. package/dist/cjs/{typescript-78dffda3.js → typescript-42c3d4ff.js} +3 -3
  118. package/dist/components/arcade-api.js +23 -33
  119. package/dist/components/arcade-contribution.js +72 -13
  120. package/dist/components/arcade-defaults.js +131 -149
  121. package/dist/components/arcade-mode.js +44 -50
  122. package/dist/components/arcade-results.js +47 -60
  123. package/dist/components/arcade-suggestions.js +23 -33
  124. package/dist/components/arcade-variables.js +22 -36
  125. package/dist/components/arcgis-arcade-api.js +1 -1
  126. package/dist/components/arcgis-arcade-editor.js +60 -150
  127. package/dist/components/arcgis-arcade-results.js +1 -1
  128. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  129. package/dist/components/arcgis-arcade-variables.js +1 -1
  130. package/dist/components/arcgis-assets.d.ts +1 -1
  131. package/dist/components/arcgis-assets.js +1 -1
  132. package/dist/components/arcgis-code-editor.js +1 -1
  133. package/dist/components/chunk-IHYYRFLQ.js +1363 -0
  134. package/dist/components/code-editor.js +70 -78
  135. package/dist/components/fields.js +45 -45
  136. package/dist/components/index.js +1 -1
  137. package/dist/components/index2.js +394 -3
  138. package/dist/components/markdown.js +9 -11
  139. package/dist/components/useT9n.js +37 -0
  140. package/dist/components/utilities.js +3 -3
  141. package/dist/esm/{arcade-defaults-2280f825.js → arcade-defaults-82b8fd29.js} +608 -235
  142. package/dist/esm/{arcade-mode-85d869d0.js → arcade-mode-3f43d922.js} +45 -51
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1652 -290
  144. package/dist/esm/arcgis-coding-components.js +4 -4
  145. package/dist/esm/{css-da967c43.js → css-1dbe6092.js} +1 -1
  146. package/dist/esm/{cssMode-b235d424.js → cssMode-d60fa4bd.js} +3 -3
  147. package/dist/esm/{html-4b5f94a0.js → html-13ac939a.js} +3 -3
  148. package/dist/esm/{htmlMode-c9b00fcc.js → htmlMode-83b26098.js} +3 -3
  149. package/dist/esm/{index-f5eb0427.js → index-b792d4a8.js} +40 -4
  150. package/dist/esm/index.js +3 -3
  151. package/dist/esm/{javascript-42627a0e.js → javascript-263a46b1.js} +4 -4
  152. package/dist/esm/{jsonMode-7dce6c2d.js → jsonMode-e06b248a.js} +3 -3
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{tsMode-85663f7f.js → tsMode-69a014ca.js} +3 -3
  155. package/dist/esm/{typescript-911c34c6.js → typescript-c26d15e4.js} +3 -3
  156. package/dist/loader/cdn.js +1 -1
  157. package/dist/loader/index.cjs.js +1 -1
  158. package/dist/loader/index.es2017.js +1 -1
  159. package/dist/loader/index.js +1 -1
  160. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  161. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  162. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  163. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  164. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  165. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  166. package/dist/types/components.d.ts +57 -35
  167. package/dist/types/controllers/useT9n.d.ts +1 -0
  168. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  169. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  170. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  171. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  172. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  173. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  174. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  175. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  176. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  177. package/dist/types/utils/profile/types.d.ts +15 -13
  178. package/dist/types/utils/profile/utils.d.ts +1 -3
  179. package/package.json +23 -23
  180. package/dist/arcgis-coding-components/p-8f70519f.js +0 -7
  181. package/dist/arcgis-coding-components/p-9d23e7cc.entry.js +0 -6
  182. package/dist/arcgis-coding-components/p-e9157a8c.js +0 -68
@@ -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.9
4
+ * v4.30.0-next.90
5
5
  */
6
- import { g as getAssetPath } from './index-f5eb0427.js';
6
+ import { g as getAssetPath } from './index-b792d4a8.js';
7
7
 
8
8
  /**
9
9
  * Returns the last element of an array.
@@ -20619,7 +20619,7 @@ class DragAndDropObserver extends Disposable {
20619
20619
  }
20620
20620
  }
20621
20621
  const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
20622
- function h$1(tag, ...args) {
20622
+ function h(tag, ...args) {
20623
20623
  let attributes;
20624
20624
  let children;
20625
20625
  if (Array.isArray(args[0])) {
@@ -113875,15 +113875,15 @@ class LinesLayout {
113875
113875
  }
113876
113876
  class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
113877
113877
  constructor(_editor, _viewZone, _move, _kind, _diffModel) {
113878
- const root = h$1('div.diff-hidden-lines-widget');
113878
+ const root = h('div.diff-hidden-lines-widget');
113879
113879
  super(_editor, _viewZone, root.root);
113880
113880
  this._editor = _editor;
113881
113881
  this._move = _move;
113882
113882
  this._kind = _kind;
113883
113883
  this._diffModel = _diffModel;
113884
- this._nodes = h$1('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113885
- h$1('div.text-content@textContent'),
113886
- h$1('div.action-bar@actionBar'),
113884
+ this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113885
+ h('div.text-content@textContent'),
113886
+ h('div.action-bar@actionBar'),
113887
113887
  ]);
113888
113888
  root.root.appendChild(this._nodes.root);
113889
113889
  const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114082,7 +114082,7 @@ class RevertButton {
114082
114082
  this._diffs = _diffs;
114083
114083
  this._selection = _selection;
114084
114084
  this._id = `revertButton${RevertButton.counter++}`;
114085
- this._domNode = h$1('div.revertButton', {
114085
+ this._domNode = h('div.revertButton', {
114086
114086
  title: this._selection
114087
114087
  ? localize('revertSelectedChanges', 'Revert Selected Changes')
114088
114088
  : localize('revertChange', 'Revert Change')
@@ -114555,7 +114555,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
114555
114555
  ], HideUnchangedRegionsFeature);
114556
114556
  class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114557
114557
  constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
114558
- const root = h$1('div.diff-hidden-lines-widget');
114558
+ const root = h('div.diff-hidden-lines-widget');
114559
114559
  super(_editor, _viewZone, root.root);
114560
114560
  this._editor = _editor;
114561
114561
  this._unchangedRegion = _unchangedRegion;
@@ -114564,13 +114564,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114564
114564
  this._modifiedOutlineSource = _modifiedOutlineSource;
114565
114565
  this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
114566
114566
  this._options = _options;
114567
- this._nodes = h$1('div.diff-hidden-lines', [
114568
- h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114569
- h$1('div.center@content', { style: { display: 'flex' } }, [
114570
- h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114571
- h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114567
+ this._nodes = h('div.diff-hidden-lines', [
114568
+ h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114569
+ h('div.center@content', { style: { display: 'flex' } }, [
114570
+ h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114571
+ h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114572
114572
  ]),
114573
- h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114573
+ h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114574
114574
  ]);
114575
114575
  root.root.appendChild(this._nodes.root);
114576
114576
  const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114695,7 +114695,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114695
114695
  for (let i = 0; i < items.length; i++) {
114696
114696
  const item = items[i];
114697
114697
  const icon = SymbolKinds.toIcon(item.kind);
114698
- const divItem = h$1('div.breadcrumb-item', {
114698
+ const divItem = h('div.breadcrumb-item', {
114699
114699
  style: { display: 'flex', alignItems: 'center' },
114700
114700
  }, [
114701
114701
  renderIcon(icon),
@@ -116112,7 +116112,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
116112
116112
  const viewportDomElement = createFastDomNode(document.createElement('div'));
116113
116113
  viewportDomElement.setClassName('diffViewport');
116114
116114
  viewportDomElement.setPosition('absolute');
116115
- const diffOverviewRoot = h$1('div.diffOverview', {
116115
+ const diffOverviewRoot = h('div.diffOverview', {
116116
116116
  style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
116117
116117
  }).root;
116118
116118
  this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
@@ -116592,11 +116592,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
116592
116592
  this._parentInstantiationService = _parentInstantiationService;
116593
116593
  this._audioCueService = _audioCueService;
116594
116594
  this._editorProgressService = _editorProgressService;
116595
- this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116596
- h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116597
- h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116598
- h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116599
- h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116595
+ this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116596
+ h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116597
+ h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116598
+ h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116599
+ h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116600
116600
  ]);
116601
116601
  this._diffModel = observableValue(this, undefined);
116602
116602
  this._shouldDisposeDiffModel = false;
@@ -117730,8 +117730,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117730
117730
  return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
117731
117731
  }
117732
117732
  });
117733
- this._elements = h$1('div.multiDiffEntry', [
117734
- h$1('div.content', {
117733
+ this._elements = h('div.multiDiffEntry', [
117734
+ h('div.content', {
117735
117735
  style: {
117736
117736
  display: 'flex',
117737
117737
  flexDirection: 'column',
@@ -117739,19 +117739,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117739
117739
  overflow: 'hidden',
117740
117740
  }
117741
117741
  }, [
117742
- h$1('div.header@header', [
117743
- h$1('div.collapse-button@collapseButton'),
117744
- h$1('div.title.show-file-icons@title', []),
117745
- h$1('div.actions@actions'),
117742
+ h('div.header@header', [
117743
+ h('div.collapse-button@collapseButton'),
117744
+ h('div.title.show-file-icons@title', []),
117745
+ h('div.actions@actions'),
117746
117746
  ]),
117747
- h$1('div.editorParent', {
117747
+ h('div.editorParent', {
117748
117748
  style: {
117749
117749
  flex: '1',
117750
117750
  display: 'flex',
117751
117751
  flexDirection: 'column',
117752
117752
  }
117753
117753
  }, [
117754
- h$1('div.editorContainer@editor', { style: { flex: '1' } }),
117754
+ h('div.editorContainer@editor', { style: { flex: '1' } }),
117755
117755
  ])
117756
117756
  ])
117757
117757
  ]);
@@ -117952,17 +117952,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
117952
117952
  this._workbenchUIElementFactory = _workbenchUIElementFactory;
117953
117953
  this._parentContextKeyService = _parentContextKeyService;
117954
117954
  this._parentInstantiationService = _parentInstantiationService;
117955
- this._elements = h$1('div', {
117955
+ this._elements = h('div', {
117956
117956
  style: {
117957
117957
  overflowY: 'hidden',
117958
117958
  }
117959
117959
  }, [
117960
- h$1('div@content', {
117960
+ h('div@content', {
117961
117961
  style: {
117962
117962
  overflow: 'hidden',
117963
117963
  }
117964
117964
  }),
117965
- h$1('div.monaco-editor@overflowWidgetsDomNode', {}),
117965
+ h('div.monaco-editor@overflowWidgetsDomNode', {}),
117966
117966
  ]);
117967
117967
  this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
117968
117968
  this._objectPool = this._register(new ObjectPool((data) => {
@@ -120522,7 +120522,7 @@ registerLanguage({
120522
120522
  mimetypes: ["text/css"],
120523
120523
  loader: () => {
120524
120524
  {
120525
- return import('./css-da967c43.js');
120525
+ return import('./css-1dbe6092.js');
120526
120526
  }
120527
120527
  }
120528
120528
  });
@@ -120540,7 +120540,7 @@ registerLanguage({
120540
120540
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120541
120541
  loader: () => {
120542
120542
  {
120543
- return import('./html-4b5f94a0.js');
120543
+ return import('./html-13ac939a.js');
120544
120544
  }
120545
120545
  }
120546
120546
  });
@@ -120560,7 +120560,7 @@ registerLanguage({
120560
120560
  mimetypes: ["text/javascript"],
120561
120561
  loader: () => {
120562
120562
  {
120563
- return import('./javascript-42627a0e.js');
120563
+ return import('./javascript-263a46b1.js');
120564
120564
  }
120565
120565
  }
120566
120566
  });
@@ -120578,7 +120578,7 @@ registerLanguage({
120578
120578
  mimetypes: ["text/typescript"],
120579
120579
  loader: () => {
120580
120580
  {
120581
- return import('./typescript-911c34c6.js');
120581
+ return import('./typescript-c26d15e4.js');
120582
120582
  }
120583
120583
  }
120584
120584
  });
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120699
120699
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120700
120700
  function getMode$3() {
120701
120701
  {
120702
- return import('./cssMode-b235d424.js');
120702
+ return import('./cssMode-d60fa4bd.js');
120703
120703
  }
120704
120704
  }
120705
120705
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
120824
120824
  };
120825
120825
  function getMode$2() {
120826
120826
  {
120827
- return import('./htmlMode-c9b00fcc.js');
120827
+ return import('./htmlMode-83b26098.js');
120828
120828
  }
120829
120829
  }
120830
120830
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120926
120926
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120927
120927
  function getMode$1() {
120928
120928
  {
120929
- return import('./jsonMode-7dce6c2d.js');
120929
+ return import('./jsonMode-e06b248a.js');
120930
120930
  }
120931
120931
  }
120932
120932
  monaco_editor_core_exports$1.languages.register({
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
121195
121195
  };
121196
121196
  function getMode() {
121197
121197
  {
121198
- return import('./tsMode-85663f7f.js');
121198
+ return import('./tsMode-69a014ca.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -132853,8 +132853,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
132853
132853
  this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
132854
132854
  this.allowEditorOverflow = true;
132855
132855
  this.suppressMouseDown = false;
132856
- this.nodes = h$1('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132857
- h$1('div@toolBar'),
132856
+ this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132857
+ h('div@toolBar'),
132858
132858
  ]);
132859
132859
  this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
132860
132860
  this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
@@ -132990,7 +132990,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
132990
132990
  return super.updateLabel();
132991
132991
  }
132992
132992
  if (this.label) {
132993
- const div = h$1('div.keybinding').root;
132993
+ const div = h('div.keybinding').root;
132994
132994
  const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
132995
132995
  k.set(kb);
132996
132996
  this.label.textContent = this._action.label;
@@ -168925,92 +168925,71 @@ var main = createCommonjsModule(function (module, exports) {
168925
168925
  });
168926
168926
  });
168927
168927
 
168928
- const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
168928
+ // src/index.ts
168929
+ var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
168929
168930
  function isDefaultModule(module) {
168930
- return module.default !== undefined;
168931
- }
168932
- async function requireModule(modulePath) {
168933
- return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
168934
- resolve(moduleDefault);
168935
- }));
168931
+ return module.default !== void 0;
168936
168932
  }
168937
168933
  async function importLayersFeatureLayer() {
168938
- if (isAMD) {
168939
- return await requireModule("esri/layers/FeatureLayer");
168940
- }
168941
- const module = await import('@arcgis/core/layers/FeatureLayer.js');
168942
- return isDefaultModule(module) ? module.default : module;
168934
+ if (isAMD) {
168935
+ return await window.$arcgis.import("esri/layers/FeatureLayer");
168936
+ }
168937
+ const module = await import('@arcgis/core/layers/FeatureLayer.js');
168938
+ return isDefaultModule(module) ? module.default : module;
168939
+ }
168940
+ async function newLayersFeatureLayer(properties) {
168941
+ const ModConstructor = await importLayersFeatureLayer();
168942
+ return new ModConstructor(properties);
168943
168943
  }
168944
168944
  async function importPortalPortalItem() {
168945
- if (isAMD) {
168946
- return await requireModule("esri/portal/PortalItem");
168947
- }
168948
- const module = await import('@arcgis/core/portal/PortalItem.js');
168949
- return isDefaultModule(module) ? module.default : module;
168945
+ if (isAMD) {
168946
+ return await window.$arcgis.import("esri/portal/PortalItem");
168947
+ }
168948
+ const module = await import('@arcgis/core/portal/PortalItem.js');
168949
+ return isDefaultModule(module) ? module.default : module;
168950
168950
  }
168951
168951
  async function newPortalPortalItem(properties) {
168952
- const ModConstructor = await importPortalPortalItem();
168953
- return new ModConstructor(properties);
168952
+ const ModConstructor = await importPortalPortalItem();
168953
+ return new ModConstructor(properties);
168954
168954
  }
168955
168955
  async function importWebMap() {
168956
- if (isAMD) {
168957
- return await requireModule("esri/WebMap");
168958
- }
168959
- const module = await import('@arcgis/core/WebMap.js');
168960
- return isDefaultModule(module) ? module.default : module;
168956
+ if (isAMD) {
168957
+ return await window.$arcgis.import("esri/WebMap");
168958
+ }
168959
+ const module = await import('@arcgis/core/WebMap.js');
168960
+ return isDefaultModule(module) ? module.default : module;
168961
168961
  }
168962
168962
  async function newWebMap(properties) {
168963
- const ModConstructor = await importWebMap();
168964
- return new ModConstructor(properties);
168963
+ const ModConstructor = await importWebMap();
168964
+ return new ModConstructor(properties);
168965
168965
  }
168966
168966
  async function importWebScene() {
168967
- if (isAMD) {
168968
- return await requireModule("esri/WebScene");
168969
- }
168970
- const module = await import('@arcgis/core/WebScene.js');
168971
- return isDefaultModule(module) ? module.default : module;
168967
+ if (isAMD) {
168968
+ return await window.$arcgis.import("esri/WebScene");
168969
+ }
168970
+ const module = await import('@arcgis/core/WebScene.js');
168971
+ return isDefaultModule(module) ? module.default : module;
168972
168972
  }
168973
168973
  async function newWebScene(properties) {
168974
- const ModConstructor = await importWebScene();
168975
- return new ModConstructor(properties);
168974
+ const ModConstructor = await importWebScene();
168975
+ return new ModConstructor(properties);
168976
168976
  }
168977
168977
  async function importArcade() {
168978
- if (isAMD) {
168979
- return await requireModule("esri/arcade");
168980
- }
168981
- const module = await import('@arcgis/core/arcade.js');
168982
- return isDefaultModule(module) ? module.default : module;
168978
+ if (isAMD) {
168979
+ return await window.$arcgis.import("esri/arcade");
168980
+ }
168981
+ const module = await import('@arcgis/core/arcade.js');
168982
+ return isDefaultModule(module) ? module.default : module;
168983
168983
  }
168984
168984
  async function importRequest() {
168985
- if (isAMD) {
168986
- return await requireModule("esri/request");
168987
- }
168988
- const module = await import('@arcgis/core/request.js');
168989
- return isDefaultModule(module) ? module.default : module;
168985
+ if (isAMD) {
168986
+ return await window.$arcgis.import("esri/request");
168987
+ }
168988
+ const module = await import('@arcgis/core/request.js');
168989
+ return isDefaultModule(module) ? module.default : module;
168990
168990
  }
168991
168991
 
168992
- //#region core adapter fix
168993
- async function newFeatureLayer(definition) {
168994
- const FeatureLayer = await importLayersFeatureLayer();
168995
- // Fix title for the layer. Instead of defaulting to the map viewer style.
168996
- return new FeatureLayer({ ...definition, sublayerTitleMode: "service-name" });
168997
- }
168998
- //#endregion
168999
168992
  //#region Type Guards
169000
- function isSupportedLayerInstance(item) {
169001
- return (!!item &&
169002
- typeof item === "object" &&
169003
- "declaredClass" in item &&
169004
- typeof item.declaredClass === "string" &&
169005
- item.declaredClass.startsWith("esri.layers."));
169006
- }
169007
- function isFeatureSetInstance(item) {
169008
- return (!!item &&
169009
- typeof item === "object" &&
169010
- "declaredClass" in item &&
169011
- typeof item.declaredClass === "string" &&
169012
- item.declaredClass === "esri.rest.support.FeatureSet");
169013
- }
169014
168993
  function isQueryableLayerInstance(item) {
169015
168994
  return (!!item &&
169016
168995
  typeof item === "object" &&
@@ -169060,10 +169039,13 @@ function isFeatureLayerItemDefinition(item) {
169060
169039
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
169061
169040
  }
169062
169041
  function isFieldsDefinition(item) {
169063
- return (!!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields) && !("declaredClass" in item));
169042
+ return !!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields);
169064
169043
  }
169065
169044
  function isUrlDefinition(item) {
169066
- return (!!item && typeof item === "object" && "url" in item && typeof item.url === "string" && !("declaredClass" in item));
169045
+ return !!item && typeof item === "object" && "url" in item && typeof item.url === "string";
169046
+ }
169047
+ function isSupportedServiceUrlDefinition(item) {
169048
+ return isUrlDefinition(item) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(item.url);
169067
169049
  }
169068
169050
  function isSubtypeInstance(item) {
169069
169051
  return (!!item &&
@@ -169133,11 +169115,11 @@ async function supportedSourceFromDefinition(definition) {
169133
169115
  return null;
169134
169116
  }
169135
169117
  let source = null;
169136
- if (isSupportedLayerInstance(definition) || isFeatureSetInstance(definition) || isFieldsDefinition(definition)) {
169118
+ if (isFieldsDefinition(definition)) {
169137
169119
  source = definition;
169138
169120
  }
169139
169121
  else {
169140
- source = await newFeatureLayer(definition);
169122
+ source = await newLayersFeatureLayer(definition);
169141
169123
  }
169142
169124
  if (isLoadableSource(source)) {
169143
169125
  await source.load();
@@ -169148,32 +169130,428 @@ async function serviceMetaData(url) {
169148
169130
  url += "/layers";
169149
169131
  const request = await importRequest();
169150
169132
  const response = await request(url, { responseType: "json", query: { f: "json" } });
169151
- const data = {
169152
- layers: response.data?.layers ?? [],
169153
- tables: response.data?.tables ?? []
169154
- };
169155
169133
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169156
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169157
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169134
+ const layers = getSupportedLayerInfos(response.data?.layers, queryCapability);
169135
+ const tables = getSupportedLayerInfos(response.data?.tables, queryCapability);
169158
169136
  return { layers, tables };
169159
169137
  }
169160
- function filterFeatureLayerInfos(layers, queryCapability) {
169138
+ function getSupportedLayerInfos(layers, queryCapability) {
169139
+ if (!layers) {
169140
+ return [];
169141
+ }
169161
169142
  return layers.filter((layer) => {
169162
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169163
- return false;
169143
+ switch (layer.type) {
169144
+ case "Feature Layer":
169145
+ case "Oriented Imagery Layer":
169146
+ case "Catalog Layer":
169147
+ case "Table": {
169148
+ const capabilities = layer.capabilities
169149
+ ? layer.capabilities
169150
+ .toLowerCase()
169151
+ .split(",")
169152
+ .map((value) => value.trim())
169153
+ : [];
169154
+ return capabilities.includes(queryCapability);
169155
+ }
169156
+ default:
169157
+ return false;
169164
169158
  }
169165
- const capabilities = layer.capabilities
169166
- ? layer.capabilities
169167
- .toLowerCase()
169168
- .split(",")
169169
- .map((value) => value.trim())
169170
- : [];
169171
- return capabilities.includes(queryCapability);
169172
169159
  });
169173
169160
  }
169174
169161
  //#endregion
169175
169162
 
169176
- var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function v(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function ie(e){try{return new URL(e),!0}catch{return !1}}
169163
+ // src/array-utils.ts
169164
+
169165
+ // src/deferred.ts
169166
+ var Deferred = class {
169167
+ /**
169168
+ * Resolves the promise.
169169
+ * @param value The value to resolve the promise with.
169170
+ */
169171
+ resolve(_value) {
169172
+ }
169173
+ /**
169174
+ * Rejects the promise.
169175
+ */
169176
+ reject(_error) {
169177
+ }
169178
+ /**
169179
+ * Creates a new deferred promise.
169180
+ */
169181
+ constructor() {
169182
+ this.promise = new Promise((resolve, reject) => {
169183
+ this.resolve = resolve;
169184
+ this.reject = reject;
169185
+ });
169186
+ }
169187
+ };
169188
+
169189
+ // src/dom.ts
169190
+ function inTargetElement(element, targetElement) {
169191
+ let currentElement = element;
169192
+ while (currentElement) {
169193
+ if (currentElement === targetElement) {
169194
+ return true;
169195
+ }
169196
+ if (!currentElement.parentNode) {
169197
+ return false;
169198
+ }
169199
+ if (currentElement.parentNode instanceof ShadowRoot) {
169200
+ currentElement = currentElement.parentNode.host;
169201
+ } else {
169202
+ currentElement = currentElement.parentNode;
169203
+ }
169204
+ }
169205
+ return false;
169206
+ }
169207
+ function observeAncestorsMutation(element, attributeFilter, callback) {
169208
+ const { subscribe } = observe(attributeFilter);
169209
+ return subscribe((mutations) => {
169210
+ const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
169211
+ if (matched) {
169212
+ callback();
169213
+ }
169214
+ });
169215
+ }
169216
+ var observers = {};
169217
+ function observe(attributeFilter) {
169218
+ const attributes = attributeFilter.join(",");
169219
+ const previousObserver = observers[attributes];
169220
+ if (previousObserver !== void 0) {
169221
+ return previousObserver;
169222
+ }
169223
+ const subscribers = /* @__PURE__ */ new Set();
169224
+ const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
169225
+ mutationObserver.observe(document.documentElement, {
169226
+ attributes: true,
169227
+ attributeFilter,
169228
+ subtree: true
169229
+ });
169230
+ const observer = {
169231
+ subscribe(callback) {
169232
+ subscribers.add(callback);
169233
+ return {
169234
+ remove: () => {
169235
+ subscribers.delete(callback);
169236
+ if (subscribers.size === 0) {
169237
+ mutationObserver.disconnect();
169238
+ observers[attributes] = void 0;
169239
+ }
169240
+ }
169241
+ };
169242
+ }
169243
+ };
169244
+ observers[attributes] = observer;
169245
+ return observer;
169246
+ }
169247
+ function closestElement(base, selector) {
169248
+ let currentElement = base;
169249
+ while (currentElement) {
169250
+ const element = currentElement.closest(selector);
169251
+ if (element) {
169252
+ return element;
169253
+ }
169254
+ const rootElement = currentElement.getRootNode();
169255
+ if (rootElement === document) {
169256
+ return null;
169257
+ }
169258
+ currentElement = rootElement.host;
169259
+ }
169260
+ return null;
169261
+ }
169262
+ function getElementTheme(base) {
169263
+ const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
169264
+ return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
169265
+ }
169266
+ function getElementAttribute(el, prop, fallbackValue) {
169267
+ const closest = closestElement(el, `[${prop}]`);
169268
+ return closest?.getAttribute(prop) ?? fallbackValue;
169269
+ }
169270
+ function isElement(ref) {
169271
+ return ref.nodeType === Node.ELEMENT_NODE;
169272
+ }
169273
+ function isHTMLWithSetFocus(ref) {
169274
+ return "setFocus" in ref && typeof ref.setFocus === "function";
169275
+ }
169276
+ function setFocus(ref, selector = "") {
169277
+ if (!isElement(ref)) {
169278
+ return false;
169279
+ }
169280
+ if (ref.matches(selector)) {
169281
+ if (isHTMLWithSetFocus(ref)) {
169282
+ setTimeout(() => ref.setFocus(), 0);
169283
+ }
169284
+ return true;
169285
+ }
169286
+ for (const child of ref.children) {
169287
+ if (setFocus(child, selector)) {
169288
+ return true;
169289
+ }
169290
+ }
169291
+ const shadowRoot = ref.shadowRoot;
169292
+ if (shadowRoot) {
169293
+ for (const child of shadowRoot.children) {
169294
+ if (setFocus(child, selector)) {
169295
+ return true;
169296
+ }
169297
+ }
169298
+ }
169299
+ return false;
169300
+ }
169301
+ function setFocusOnElement(ref, selector) {
169302
+ if (!ref?.shadowRoot) {
169303
+ return;
169304
+ }
169305
+ if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
169306
+ setFocus(ref, selector);
169307
+ return;
169308
+ }
169309
+ const mutationObserver = new MutationObserver(() => {
169310
+ mutationObserver.disconnect();
169311
+ setFocus(ref, selector);
169312
+ });
169313
+ mutationObserver.observe(ref, {
169314
+ attributes: true,
169315
+ attributeFilter: ["hydrated", "calcite-hydrated"]
169316
+ });
169317
+ }
169318
+
169319
+ // src/errors.ts
169320
+ function safeCall(callback, thisContext, ...rest) {
169321
+ try {
169322
+ return callback?.call(thisContext, ...rest);
169323
+ } catch (error) {
169324
+ console.error(error, callback);
169325
+ }
169326
+ return void 0;
169327
+ }
169328
+ async function safeAsyncCall(callback, thisContext, ...rest) {
169329
+ try {
169330
+ const result = callback?.call(thisContext, ...rest);
169331
+ return result instanceof Promise ? await result : result;
169332
+ } catch (error) {
169333
+ console.error(error, callback);
169334
+ }
169335
+ return void 0;
169336
+ }
169337
+
169338
+ // src/guid.ts
169339
+ function gen(count) {
169340
+ let out = "";
169341
+ for (let i = 0; i < count; i++) {
169342
+ out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
169343
+ }
169344
+ return out;
169345
+ }
169346
+ function generateGuid() {
169347
+ return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
169348
+ }
169349
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
169350
+ var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
169351
+ var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169352
+ var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
169353
+
169354
+ // src/intl.ts
169355
+ var supportedLocales = /* @__PURE__ */ new Set([
169356
+ "ar",
169357
+ "bg",
169358
+ "bs",
169359
+ "ca",
169360
+ "cs",
169361
+ "da",
169362
+ "de",
169363
+ "el",
169364
+ "en",
169365
+ "es",
169366
+ "et",
169367
+ "fi",
169368
+ "fr",
169369
+ "he",
169370
+ "hr",
169371
+ "hu",
169372
+ "id",
169373
+ "it",
169374
+ "ja",
169375
+ "ko",
169376
+ "lt",
169377
+ "lv",
169378
+ "nl",
169379
+ "nb",
169380
+ "pl",
169381
+ "pt-BR",
169382
+ "pt-PT",
169383
+ "ro",
169384
+ "ru",
169385
+ "sk",
169386
+ "sl",
169387
+ "sr",
169388
+ "sv",
169389
+ "th",
169390
+ "tr",
169391
+ "uk",
169392
+ "vi",
169393
+ "zh-CN",
169394
+ "zh-HK",
169395
+ "zh-TW"
169396
+ ]);
169397
+ var defaultLocale = "en";
169398
+ async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
169399
+ const path = `${assetsPath}/${prefix}`;
169400
+ const filePath = `${path}${locale}.json`;
169401
+ t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
169402
+ return await t9nStringsCache[filePath];
169403
+ }
169404
+ var t9nStringsCache = {};
169405
+ async function fetchBundle(locale, path) {
169406
+ const filePath = `${path}${locale}.json`;
169407
+ try {
169408
+ const response = await fetch(filePath);
169409
+ if (response.ok) {
169410
+ return await response.json();
169411
+ }
169412
+ } catch (error) {
169413
+ console.error(error);
169414
+ return fallbackBundle;
169415
+ }
169416
+ if (locale === defaultLocale) {
169417
+ return fallbackBundle;
169418
+ }
169419
+ return await fetchBundle(defaultLocale, path);
169420
+ }
169421
+ var fallbackBundle = new Proxy(
169422
+ {},
169423
+ {
169424
+ get: (_target, property) => camelToHuman(property.toString())
169425
+ }
169426
+ );
169427
+ function getElementLocales(element) {
169428
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
169429
+ if (supportedLocales.has(lang)) {
169430
+ return { lang, t9nLocale: lang };
169431
+ }
169432
+ const rootCode = lang.slice(0, 2);
169433
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
169434
+ }
169435
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
169436
+ let result = void 0;
169437
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
169438
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
169439
+ onUpdated(newResult);
169440
+ }
169441
+ result = newResult;
169442
+ }).catch(console.error);
169443
+ callback();
169444
+ return observeAncestorsMutation(element, ["lang"], callback);
169445
+ }
169446
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
169447
+ const { lang, t9nLocale } = getElementLocales(element);
169448
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
169449
+ const prefix = `${assetName}.t9n.`;
169450
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
169451
+ return { lang, t9nLocale, t9nStrings };
169452
+ }
169453
+
169454
+ // src/strings.ts
169455
+ var doubleQuote = '"';
169456
+ var singleQuote = "'";
169457
+ function repeatString(value, n) {
169458
+ return new Array(n + 1).join(value);
169459
+ }
169460
+ function quoteString(value) {
169461
+ let quote = doubleQuote;
169462
+ let alternateQuote = singleQuote;
169463
+ const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
169464
+ if (avoidEscape) {
169465
+ alternateQuote = doubleQuote;
169466
+ quote = singleQuote;
169467
+ }
169468
+ const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
169469
+ value = value.replace(
169470
+ alternateEscape,
169471
+ (_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
169472
+ // We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
169473
+ boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
169474
+ )
169475
+ );
169476
+ const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
169477
+ value = value.replace(
169478
+ quoteEscape,
169479
+ (_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
169480
+ );
169481
+ return quote + value + quote;
169482
+ }
169483
+ function createFilterExpression(filterWord) {
169484
+ const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
169485
+ return new RegExp(sanitizedWord, "i");
169486
+ }
169487
+ function setValuesInString(message, values = {}) {
169488
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169489
+ }
169490
+ function addLTRMark(value) {
169491
+ return `\u200E${value ?? ""}\u200E`;
169492
+ }
169493
+
169494
+ // src/timeouts.ts
169495
+ function devToolsAwareTimeout(callback, timeout) {
169496
+ const interval = timeout > longTimeoutThreshold ? longTimeoutInterval : timeout / shortTimeoutIntervals;
169497
+ let elapsed = 0;
169498
+ const reference = setInterval(() => {
169499
+ elapsed += interval;
169500
+ if (elapsed >= timeout) {
169501
+ clearInterval(reference);
169502
+ callback();
169503
+ }
169504
+ }, interval);
169505
+ return reference;
169506
+ }
169507
+ var longTimeoutThreshold = 4e3;
169508
+ var longTimeoutInterval = 2e3;
169509
+ var shortTimeoutIntervals = 4;
169510
+
169511
+ // src/type-guards.ts
169512
+ function isNotNull(item) {
169513
+ return item !== null;
169514
+ }
169515
+ function isNotUndefined(item) {
169516
+ return item !== void 0;
169517
+ }
169518
+
169519
+ // src/ui.ts
169520
+ function debounce(func, waitFor = 100) {
169521
+ let timeout;
169522
+ return (...args) => {
169523
+ const later = () => {
169524
+ clearTimeout(timeout);
169525
+ func(...args);
169526
+ };
169527
+ clearTimeout(timeout);
169528
+ timeout = setTimeout(later, waitFor);
169529
+ };
169530
+ }
169531
+
169532
+ // src/url.ts
169533
+ function hasSameOrigin(url1, url2, ignoreProtocol = false) {
169534
+ if (!url1 || !url2) {
169535
+ return false;
169536
+ }
169537
+ const url1Obj = new URL(url1);
169538
+ const url2Obj = new URL(url2);
169539
+ if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
169540
+ return false;
169541
+ }
169542
+ if (url1Obj.host == null || url2Obj.host == null) {
169543
+ return false;
169544
+ }
169545
+ return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
169546
+ }
169547
+ function isURL(url) {
169548
+ try {
169549
+ new URL(url);
169550
+ return true;
169551
+ } catch (e) {
169552
+ return false;
169553
+ }
169554
+ }
169177
169555
 
169178
169556
  /**
169179
169557
  * Filters a collection of items by the given keys and filter word.
@@ -169186,7 +169564,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169186
169564
  if (!_keys.length) {
169187
169565
  return [];
169188
169566
  }
169189
- const filterExpression = K(filterWord);
169567
+ const filterExpression = createFilterExpression(filterWord);
169190
169568
  return collection.filter((item) => {
169191
169569
  if (beforeFilteringFn) {
169192
169570
  const res = beforeFilteringFn(item);
@@ -169296,7 +169674,7 @@ function fieldAlias(field) {
169296
169674
  //#endregion
169297
169675
  //#region Support functions
169298
169676
  async function getRelatedFeatureLayer(layer, relationship) {
169299
- const relatedFeatureLayer = await newFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169677
+ const relatedFeatureLayer = await newLayersFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169300
169678
  await relatedFeatureLayer.load();
169301
169679
  return relatedFeatureLayer;
169302
169680
  }
@@ -169386,8 +169764,8 @@ function variableToLSVariable(editorVariable, kind) {
169386
169764
  insertTextMode: main.InsertTextMode.asIs,
169387
169765
  insertTextFormat: main.InsertTextFormat.PlainText,
169388
169766
  kind,
169389
- documentation: { kind: "markdown", value: description }
169390
- }
169767
+ documentation: { kind: "markdown", value: description },
169768
+ },
169391
169769
  };
169392
169770
  }
169393
169771
  async function featureToLSFeature(editorFeature, kind) {
@@ -169401,14 +169779,14 @@ async function featureToLSFeature(editorFeature, kind) {
169401
169779
  insertText: name,
169402
169780
  insertTextMode: main.InsertTextMode.asIs,
169403
169781
  insertTextFormat: main.InsertTextFormat.PlainText,
169404
- kind
169782
+ kind,
169405
169783
  };
169406
169784
  const result = {
169407
169785
  name,
169408
169786
  description,
169409
169787
  type: "dictionary",
169410
169788
  properties: [],
169411
- completion: resultCompletion
169789
+ completion: resultCompletion,
169412
169790
  };
169413
169791
  // No source definition, then it will be a feature without any known fields
169414
169792
  if (!source) {
@@ -169446,8 +169824,8 @@ async function featureToLSFeature(editorFeature, kind) {
169446
169824
  insertTextMode: main.InsertTextMode.asIs,
169447
169825
  insertTextFormat: main.InsertTextFormat.PlainText,
169448
169826
  kind: main.CompletionItemKind.Field,
169449
- documentation: { kind: "markdown", value: fieldCompletionDescription }
169450
- }
169827
+ documentation: { kind: "markdown", value: fieldCompletionDescription },
169828
+ },
169451
169829
  });
169452
169830
  if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
169453
169831
  return;
@@ -169468,8 +169846,8 @@ async function featureToLSFeature(editorFeature, kind) {
169468
169846
  insertTextMode: main.InsertTextMode.asIs,
169469
169847
  insertTextFormat: main.InsertTextFormat.PlainText,
169470
169848
  kind: main.CompletionItemKind.Field,
169471
- documentation: { kind: "markdown", value: aliasCompletionDescription }
169472
- }
169849
+ documentation: { kind: "markdown", value: aliasCompletionDescription },
169850
+ },
169473
169851
  });
169474
169852
  });
169475
169853
  result.properties = [...fieldProfileValues, ...aliasProfileValues];
@@ -169502,8 +169880,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
169502
169880
  insertTextMode: main.InsertTextMode.asIs,
169503
169881
  insertTextFormat: main.InsertTextFormat.PlainText,
169504
169882
  kind,
169505
- documentation: { kind: "markdown", value: completionDescription }
169506
- }
169883
+ documentation: { kind: "markdown", value: completionDescription },
169884
+ },
169507
169885
  };
169508
169886
  }
169509
169887
  /**
@@ -169530,9 +169908,9 @@ class ProfileItemBase {
169530
169908
  // If the component is under RTL, the string is messed up.
169531
169909
  // It is converted from $feature to feature$, This is not acceptable since the label
169532
169910
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
169533
- return G(this._label);
169911
+ return addLTRMark(this._label);
169534
169912
  }
169535
- return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169913
+ return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169536
169914
  }
169537
169915
  /**
169538
169916
  * Returns the description string.
@@ -169544,7 +169922,7 @@ class ProfileItemBase {
169544
169922
  if (typeof this.description === "string") {
169545
169923
  return this.description;
169546
169924
  }
169547
- return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169925
+ return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169548
169926
  }
169549
169927
  /**
169550
169928
  * Returns true if the item pass the filter test
@@ -169721,28 +170099,28 @@ class DictionaryVariable extends CollectionBasedVariable {
169721
170099
  return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
169722
170100
  case "featureSet":
169723
170101
  return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
169724
- new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
170102
+ new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
169725
170103
  ]);
169726
170104
  case "featureSetCollection":
169727
170105
  return new FeatureSetCollectionVariable(this, {
169728
170106
  profile: this._profile,
169729
170107
  declaration,
169730
170108
  label: snippet,
169731
- snippet
170109
+ snippet,
169732
170110
  });
169733
170111
  case "dictionary":
169734
170112
  return new DictionaryVariable(this, {
169735
170113
  profile: this._profile,
169736
170114
  declaration,
169737
170115
  label: snippet,
169738
- snippet
170116
+ snippet,
169739
170117
  });
169740
170118
  case "array":
169741
170119
  return new ArrayVariable({
169742
170120
  profile: this._profile,
169743
170121
  declaration,
169744
170122
  label: snippet,
169745
- snippet
170123
+ snippet,
169746
170124
  });
169747
170125
  default:
169748
170126
  console.error("Editor profile: Invalid profile variable", declaration);
@@ -169754,7 +170132,7 @@ class DictionaryVariable extends CollectionBasedVariable {
169754
170132
  type: this.type,
169755
170133
  name: "",
169756
170134
  ...this.declaration,
169757
- properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170135
+ properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
169758
170136
  };
169759
170137
  }
169760
170138
  }
@@ -169785,7 +170163,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169785
170163
  return this._profile?.intlStrings.layer ?? "layer";
169786
170164
  }
169787
170165
  async loadSource() {
169788
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170166
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
169789
170167
  return await this._loadPromise;
169790
170168
  }
169791
170169
  this._loadPromise = this._loadSource();
@@ -169820,7 +170198,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169820
170198
  description: fieldAlias(field),
169821
170199
  snippet: valueSnippet,
169822
170200
  icon: fieldTypeToIconName(field),
169823
- filterDescription: true
170201
+ filterDescription: true,
169824
170202
  });
169825
170203
  }
169826
170204
  _getDomainDictionary(field) {
@@ -169859,6 +170237,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169859
170237
  // Sepcial case for the subtype field
169860
170238
  if (field.name === this._source.subtypeField) {
169861
170239
  const domainDictionary = this._createDomainDictionary(field);
170240
+ domainDictionary.icon = "subtype";
169862
170241
  domainDictionary.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.subtypes, field));
169863
170242
  return domainDictionary;
169864
170243
  }
@@ -169913,7 +170292,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169913
170292
  return null;
169914
170293
  }
169915
170294
  const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
169916
- code: "domainvalues"
170295
+ code: "domainvalues",
169917
170296
  });
169918
170297
  const domainDictionary = this._createDomainDictionary(field);
169919
170298
  domainDictionary.variables.push(domainValuesGroup);
@@ -169931,7 +170310,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169931
170310
  profile: this._profile,
169932
170311
  label: `${label}`,
169933
170312
  description: t.name,
169934
- snippet: `"${label}"`
170313
+ snippet: `"${label}"`,
169935
170314
  });
169936
170315
  }) ?? [];
169937
170316
  return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
@@ -169942,7 +170321,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169942
170321
  label: `${v.code}`,
169943
170322
  description: v.name,
169944
170323
  snippet: `"${v.code}"`,
169945
- filterDescription: true
170324
+ filterDescription: true,
169946
170325
  }));
169947
170326
  return new GroupOfVariables(this._profile, label, values);
169948
170327
  }
@@ -169968,8 +170347,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
169968
170347
  code: "domainvaluesfortypeformat",
169969
170348
  formatValues: {
169970
170349
  fieldName: alias,
169971
- typeName: type.name
169972
- }
170350
+ typeName: type.name,
170351
+ },
169973
170352
  });
169974
170353
  const id = isSubtypeInstance(type) ? type.code : type.id;
169975
170354
  const label = `${id}`;
@@ -169979,7 +170358,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169979
170358
  label,
169980
170359
  snippet,
169981
170360
  description: type.name,
169982
- declaration: { name: alias }
170361
+ declaration: { name: alias },
169983
170362
  });
169984
170363
  subtypeDictionary.variables = [domainValuesGroup];
169985
170364
  variables.push(subtypeDictionary);
@@ -170001,7 +170380,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170001
170380
  description: alias,
170002
170381
  snippet: valueSnippet,
170003
170382
  icon: "form-dropdown",
170004
- declaration: { name: field.name }
170383
+ declaration: { name: field.name },
170005
170384
  });
170006
170385
  // Add the header group
170007
170386
  const headerGroup = new GroupOfVariables(this._profile, alias, [
@@ -170009,8 +170388,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
170009
170388
  profile: this._profile,
170010
170389
  label: valueSnippet,
170011
170390
  description: "",
170012
- snippet: valueSnippet
170013
- })
170391
+ snippet: valueSnippet,
170392
+ }),
170014
170393
  ]);
170015
170394
  domainDictionary.variables = [headerGroup];
170016
170395
  // Add the SubtypeName or DomainName snippet if available
@@ -170020,7 +170399,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170020
170399
  profile: this._profile,
170021
170400
  label: subtypeOrDomainNameSnippet,
170022
170401
  description: "",
170023
- snippet: subtypeOrDomainNameSnippet
170402
+ snippet: subtypeOrDomainNameSnippet,
170024
170403
  }));
170025
170404
  }
170026
170405
  return domainDictionary;
@@ -170050,10 +170429,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
170050
170429
  declaration: { definition: relatedLayer },
170051
170430
  label: relatedLayer.title,
170052
170431
  description: "",
170053
- nonInteractive: true
170432
+ nonInteractive: true,
170054
170433
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
170055
170434
  }));
170056
- relationshipsGroup.variables = relationshipItems.filter(ee);
170435
+ relationshipsGroup.variables = relationshipItems.filter(isNotNull);
170057
170436
  if (!relationshipsGroup.variables.length) {
170058
170437
  return null;
170059
170438
  }
@@ -170066,8 +170445,8 @@ class FeatureVariable extends SourceBasedVariable {
170066
170445
  this.type = "feature";
170067
170446
  }
170068
170447
  get title() {
170069
- if (isSupportedLayerInstance(this._source)) {
170070
- return this._source.title;
170448
+ if (isTitleCapableSource(this._source)) {
170449
+ return this._source.title ?? "";
170071
170450
  }
170072
170451
  return { code: "feature" };
170073
170452
  }
@@ -170081,14 +170460,14 @@ class FeatureVariable extends SourceBasedVariable {
170081
170460
  throw new Error("Invalid definition");
170082
170461
  }
170083
170462
  // The title group and snippet
170084
- const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
170463
+ const title = isTitleCapableSource(this._source) ? this._source.title ?? "" : "";
170085
170464
  this.variables.push(new GroupOfVariables(this._profile, title, [
170086
170465
  new ValueVariable({
170087
170466
  profile: this._profile,
170088
170467
  label: this.snippet,
170089
170468
  description: "",
170090
- snippet: this.snippet
170091
- })
170469
+ snippet: this.snippet,
170470
+ }),
170092
170471
  ]));
170093
170472
  // The collection of feature attribute values
170094
170473
  const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
@@ -170103,7 +170482,7 @@ class FeatureVariable extends SourceBasedVariable {
170103
170482
  description: "Geometry",
170104
170483
  snippet,
170105
170484
  icon: "shapes",
170106
- filterDescription: true
170485
+ filterDescription: true,
170107
170486
  });
170108
170487
  valuesGroup.variables.push(geometryProperty);
170109
170488
  }
@@ -170116,8 +170495,8 @@ class FeatureVariable extends SourceBasedVariable {
170116
170495
  this.variables.push(relationshipsGroup);
170117
170496
  }
170118
170497
  }
170119
- catch (e) {
170120
- console.error("Loading issue", e, this);
170498
+ catch (error) {
170499
+ console.error("Error with definition", error, this._definition);
170121
170500
  this._source = null;
170122
170501
  }
170123
170502
  finally {
@@ -170139,8 +170518,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170139
170518
  this.type = "featureSet";
170140
170519
  }
170141
170520
  get title() {
170142
- if (isSupportedLayerInstance(this._source)) {
170143
- return this._source.title;
170521
+ if (isTitleCapableSource(this._source)) {
170522
+ return this._source.title ?? "";
170144
170523
  }
170145
170524
  return { code: "featureset" };
170146
170525
  }
@@ -170167,8 +170546,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170167
170546
  this.variables.push(relationshipsGroup);
170168
170547
  }
170169
170548
  }
170170
- catch (e) {
170171
- console.error("Loading issue", e, this);
170549
+ catch (error) {
170550
+ console.error("Error with definition", error, this._definition);
170172
170551
  this._source = null;
170173
170552
  }
170174
170553
  finally {
@@ -170217,7 +170596,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170217
170596
  return this._profile?.intlStrings.map ?? "map";
170218
170597
  }
170219
170598
  async loadSource() {
170220
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170599
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
170221
170600
  return await this._loadPromise;
170222
170601
  }
170223
170602
  this._loadPromise = this._loadSource();
@@ -170238,24 +170617,24 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170238
170617
  : {
170239
170618
  code: "webmapformat",
170240
170619
  formatValues: {
170241
- webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
170242
- }
170620
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
170621
+ },
170243
170622
  };
170244
170623
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
170245
170624
  new ValueVariable({
170246
170625
  profile: this._profile,
170247
170626
  label: this.snippet,
170248
170627
  description: "",
170249
- snippet: this.snippet
170250
- })
170628
+ snippet: this.snippet,
170629
+ }),
170251
170630
  ]);
170252
170631
  // Creates the groups for the layer and tables
170253
170632
  const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
170254
170633
  const tablesGroup = new GroupOfVariables(this._profile, { code: "tables" }, this._featureSetCollections.tables);
170255
170634
  this.variables.push(headerGroup, layersGroup, tablesGroup);
170256
170635
  }
170257
- catch (e) {
170258
- console.error("Loading issue", e, this);
170636
+ catch (error) {
170637
+ console.error("Error with definition", error, this._definition);
170259
170638
  this._featureSetCollections = null;
170260
170639
  }
170261
170640
  finally {
@@ -170270,7 +170649,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170270
170649
  if (isMapInstance(this._definition)) {
170271
170650
  return await this._featureSetCollectionFromMap(this._definition);
170272
170651
  }
170273
- if (isSupportedLayerInstance(this._definition)) {
170652
+ if (isUrlDefinition(this._definition)) {
170274
170653
  return await this._featureSetCollectionFromUrl(this._definition.url);
170275
170654
  }
170276
170655
  if (isPortalItemDefinition(this._definition)) {
@@ -170278,10 +170657,6 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170278
170657
  // or Feature Service
170279
170658
  return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
170280
170659
  }
170281
- if (isUrlDefinition(this._definition)) {
170282
- // Assume that the url is pointing to a feature server
170283
- return await this._featureSetCollectionFromUrl(this._definition.url);
170284
- }
170285
170660
  return null;
170286
170661
  }
170287
170662
  async _featureSetCollectionFromMap(map) {
@@ -170294,7 +170669,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170294
170669
  return {
170295
170670
  layers: this._convertWebMapLayersToVariables(map.layers),
170296
170671
  tables: this._convertWebMapLayersToVariables(map.tables, true),
170297
- source: map
170672
+ source: map,
170298
170673
  };
170299
170674
  }
170300
170675
  async _featureSetCollectionFromPortalItem(definition) {
@@ -170325,12 +170700,12 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170325
170700
  }
170326
170701
  const metadata = await serviceMetaData(processedUrl);
170327
170702
  const layersPromise = Promise.all(metadata.layers.map(async (layerInfo) => {
170328
- const featureLayer = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170703
+ const featureLayer = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170329
170704
  await featureLayer.load();
170330
170705
  return this._createFeatureSetVariable(featureLayer);
170331
170706
  }));
170332
170707
  const tablesPromise = Promise.all(metadata.tables.map(async (layerInfo) => {
170333
- const table = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170708
+ const table = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170334
170709
  await table.load();
170335
170710
  return this._createFeatureSetVariable(table);
170336
170711
  }));
@@ -170360,9 +170735,11 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170360
170735
  return new FeatureSetVariable(this, {
170361
170736
  profile: this._profile,
170362
170737
  declaration: { name: featureLayer.title, definition: featureLayer },
170363
- label: featureLayer.title,
170738
+ label: isFromWebMap
170739
+ ? featureLayer.title
170740
+ : featureLayer.sourceJSON.name ?? featureLayer.title,
170364
170741
  description: "",
170365
- nonInteractive: true
170742
+ nonInteractive: true,
170366
170743
  }, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
170367
170744
  }
170368
170745
  _makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
@@ -170374,7 +170751,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170374
170751
  const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
170375
170752
  return [
170376
170753
  new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
170377
- new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
170754
+ new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
170378
170755
  ];
170379
170756
  }
170380
170757
  else {
@@ -170399,7 +170776,7 @@ class EditorProfile extends DictionaryVariable {
170399
170776
  // Delay the load of the variable declarations so we have a `this`
170400
170777
  super(undefined, {
170401
170778
  profile: null,
170402
- declaration: { properties: [] }
170779
+ declaration: { properties: [] },
170403
170780
  });
170404
170781
  this.definition = definition;
170405
170782
  this.intlStrings = intlStrings;
@@ -170431,28 +170808,20 @@ class EditorProfile extends DictionaryVariable {
170431
170808
  toEditorProfileDefinition() {
170432
170809
  return {
170433
170810
  ...this.definition,
170434
- variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170811
+ variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
170435
170812
  };
170436
170813
  }
170437
170814
  }
170438
170815
  //#endregion
170439
170816
 
170440
170817
  function isFeatureDefinition(item) {
170441
- return (isSupportedLayerInstance(item) ||
170442
- isFeatureSetInstance(item) ||
170443
- isUrlDefinition(item) ||
170444
- isFieldsDefinition(item) ||
170445
- isFeatureLayerItemDefinition(item));
170818
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170446
170819
  }
170447
170820
  function isFeatureSetDefinition(item) {
170448
- return (isQueryableLayerInstance(item) ||
170449
- isFeatureSetInstance(item) ||
170450
- isUrlDefinition(item) ||
170451
- isFieldsDefinition(item) ||
170452
- isFeatureLayerItemDefinition(item));
170821
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170453
170822
  }
170454
170823
  function isFeatureSetCollectionDefinition(item) {
170455
- return isPortalItemDefinition(item) || isMapInstance(item) || isFeatureSetDefinition(item);
170824
+ return isPortalItemDefinition(item) || isMapInstance(item) || isSupportedServiceUrlDefinition(item);
170456
170825
  }
170457
170826
  /**
170458
170827
  * Get a PredefinedProfile for a locale. If not already loaded then fetch it.
@@ -170464,7 +170833,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
170464
170833
  if (profiles) {
170465
170834
  return profiles;
170466
170835
  }
170467
- if (!E.has(locale)) {
170836
+ if (!supportedLocales.has(locale)) {
170468
170837
  return await getSdkPredefinedProfiles("en");
170469
170838
  }
170470
170839
  try {
@@ -170502,7 +170871,7 @@ function isExtendedPredefinedProfileDefinition(item) {
170502
170871
  return !!item && typeof item === "object" && "additionalVariables" in item && Array.isArray(item.additionalVariables);
170503
170872
  }
170504
170873
  function convertApiVariables(variables) {
170505
- return variables.map(convertApiVariable);
170874
+ return variables?.map(convertApiVariable);
170506
170875
  }
170507
170876
  function convertApiVariable(variable) {
170508
170877
  switch (variable.type) {
@@ -170510,13 +170879,13 @@ function convertApiVariable(variable) {
170510
170879
  return {
170511
170880
  ...variable,
170512
170881
  type: variable.type,
170513
- properties: convertApiVariables(variable.properties)
170882
+ properties: convertApiVariables(variable.properties),
170514
170883
  };
170515
170884
  case "array": {
170516
170885
  return {
170517
170886
  ...variable,
170518
170887
  type: variable.type,
170519
- elementType: { type: "number", name: "number" }
170888
+ elementType: { type: "number", name: "number" },
170520
170889
  };
170521
170890
  }
170522
170891
  default:
@@ -170534,43 +170903,47 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170534
170903
  const editorProfile = {
170535
170904
  bundles: [...sdkPredefinedProfile.bundles],
170536
170905
  variables: [],
170537
- hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
170906
+ hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
170538
170907
  };
170539
170908
  // Merge the SDK variables' definitions/properties with the predefined profile definitions.
170540
- sdkPredefinedProfile.variables.forEach((sdkVariable) => {
170909
+ sdkPredefinedProfile.variables.forEach((predefinedVariable) => {
170541
170910
  // Don't include disabled variables
170542
- if (predefinedProfile.disabledVariables?.includes(sdkVariable.name)) {
170911
+ if (predefinedProfile.disabledVariables?.includes(predefinedVariable.name)) {
170543
170912
  return;
170544
170913
  }
170545
- // Try to get a definition from the predefined profile.
170546
- const definition = predefinedProfile.definitions[sdkVariable.name];
170914
+ // Try to get a definition from the predefined profile, for the variable that needs one.
170915
+ const definition = predefinedProfile.definitions[predefinedVariable.name];
170547
170916
  // Note: Something is weird with TS. The sdkVariables are being casted to the wrong type
170548
170917
  // despite the type checking from the switch statement.
170549
- switch (sdkVariable.type) {
170550
- case "dictionary":
170918
+ switch (predefinedVariable.type) {
170919
+ case "dictionary": {
170551
170920
  // For dictionary, we support properties overrride
170552
170921
  return editorProfile.variables.push(convertApiVariable({
170553
- ...sdkVariable,
170554
- type: sdkVariable.type,
170555
- properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
170922
+ ...predefinedVariable,
170923
+ type: predefinedVariable.type,
170924
+ properties: Array.isArray(definition) ? [...definition] : predefinedVariable.properties,
170556
170925
  }));
170926
+ }
170557
170927
  case "feature":
170558
- if (isFeatureDefinition(definition)) {
170559
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170928
+ // If the definition is not valid, then we don't include it.
170929
+ if (!isFeatureDefinition(definition)) {
170930
+ return;
170560
170931
  }
170561
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170932
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170562
170933
  case "featureSet":
170563
- if (isFeatureSetDefinition(definition)) {
170564
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170934
+ // If the definition is not valid, then we don't include it.
170935
+ if (!isFeatureSetDefinition(definition)) {
170936
+ return;
170565
170937
  }
170566
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170938
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170567
170939
  case "featureSetCollection":
170568
- if (isFeatureSetCollectionDefinition(definition)) {
170569
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170940
+ // If the definition is not valid, then we don't include it.
170941
+ if (!isFeatureSetCollectionDefinition(definition)) {
170942
+ return;
170570
170943
  }
170571
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170944
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170572
170945
  default:
170573
- return editorProfile.variables.push(convertApiVariable(sdkVariable));
170946
+ return editorProfile.variables.push(convertApiVariable(predefinedVariable));
170574
170947
  }
170575
170948
  });
170576
170949
  if (isExtendedPredefinedProfileDefinition(predefinedProfile)) {
@@ -170581,7 +170954,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170581
170954
 
170582
170955
  const arcadeLanguageId = "arcade";
170583
170956
  const defaultContext = {
170584
- locale: "en"
170957
+ locale: "en",
170585
170958
  };
170586
170959
  class ArcadeLanguageServiceDefaults {
170587
170960
  constructor() {
@@ -170635,7 +171008,7 @@ class ArcadeLanguageServiceDefaults {
170635
171008
  if (isPredefinedProfile(definition)) {
170636
171009
  definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
170637
171010
  }
170638
- const intlStrings = await v(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
171011
+ const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170639
171012
  if (!intlStrings) {
170640
171013
  throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
170641
171014
  }
@@ -170647,7 +171020,7 @@ class ArcadeLanguageServiceDefaults {
170647
171020
  this.updateApiContextForModel(modelId, {
170648
171021
  locale: apiContext.locale,
170649
171022
  profile: apiProfile,
170650
- snippets: apiContext.snippets
171023
+ snippets: apiContext.snippets,
170651
171024
  });
170652
171025
  }
170653
171026
  /**
@@ -170714,7 +171087,7 @@ class ArcadeLanguageServiceDefaults {
170714
171087
  }
170715
171088
  const arcadeDefaults = new ArcadeLanguageServiceDefaults();
170716
171089
  const arcade = {
170717
- setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
171090
+ setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
170718
171091
  };
170719
171092
 
170720
- export { B, D, Emitter as E, G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, W, Z, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importRequest as d, editor as e, arcadeDefaults as f, generateTokensCSSForColorMap as g, filterCollection as h, ie as i, importArcade as j, h as k, languages as l, U as m, k as n, supportedFields as o, K as p, q, KeyMod as r, se as s, monaco_editor_core_star as t, typescriptDefaults as u, main as v, re as w, x };
171093
+ export { observeAncestorsMutation as A, KeyMod as B, monaco_editor_core_star as C, Deferred as D, typescriptDefaults as E, main as F, debounce as G, Emitter as H, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, commonjsGlobal as b, createCommonjsModule as c, camelToKebab as d, editor as e, safeAsyncCall as f, generateTokensCSSForColorMap as g, devToolsAwareTimeout as h, startLocaleObserver as i, getElementLocales as j, isURL as k, hasSameOrigin as l, importRequest as m, languages as n, arcadeDefaults as o, setFocusOnElement as p, filterCollection as q, addLTRMark as r, safeCall as s, importArcade as t, generateGuid as u, getElementTheme as v, setValuesInString as w, quoteString as x, supportedFields as y, createFilterExpression as z };