@arcgis/coding-components 5.0.0-next.136 → 5.0.0-next.138

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 (176) hide show
  1. package/dist/addons/arcade-coding-assistant/useArcadeAssistant.d.ts +7 -17
  2. package/dist/addons/index.d.ts +2 -2
  3. package/dist/addons.js +1 -1
  4. package/dist/cdn/{UCG4NPRP.js → 2263YYN4.js} +2 -2
  5. package/dist/cdn/{FV6JUYSW.js → 2BB3QRVG.js} +2 -2
  6. package/dist/cdn/{Q4UHUY3T.js → 2E4AQ7LP.js} +2 -2
  7. package/dist/cdn/{EZGAUSIF.js → 46IOYPYQ.js} +2 -2
  8. package/dist/cdn/{DSHANUYF.js → 4FUSZCAD.js} +2 -2
  9. package/dist/cdn/{22DCBJ5F.js → 7EGGU2CS.js} +2 -2
  10. package/dist/cdn/{J2DLUEJO.js → 7F5ICS2R.js} +2 -2
  11. package/dist/cdn/{UI5EVXFU.js → 7YIS622N.js} +2 -2
  12. package/dist/cdn/{36Y75YKB.js → AU6VAVFX.js} +2 -2
  13. package/dist/cdn/{TZYBHRPS.js → B6MSWJY2.js} +2 -2
  14. package/dist/cdn/{U77BQSD4.js → BMKVGGGT.js} +2 -2
  15. package/dist/cdn/{MEXDPC7D.js → BTLRRKDQ.js} +1 -1
  16. package/dist/cdn/{HSBLYEZV.js → CP4WW3L6.js} +2 -2
  17. package/dist/cdn/{RIEACZTY.js → DQ2MOHDK.js} +2 -2
  18. package/dist/cdn/{UMHPBSPW.js → EFNX7T2R.js} +1 -1
  19. package/dist/cdn/{TV544T2R.js → EQV3M2CA.js} +2 -2
  20. package/dist/cdn/{PP7BAX5L.js → EZ5XJTDZ.js} +2 -2
  21. package/dist/cdn/{TGBYUAUR.js → GAJRGYGF.js} +2 -2
  22. package/dist/cdn/{XLQLW2QL.js → HHKNAKMH.js} +2 -2
  23. package/dist/cdn/{H3N4UPAY.js → IAOEXBRW.js} +3 -3
  24. package/dist/cdn/{UZMYMIUN.js → ICT2QXVB.js} +2 -2
  25. package/dist/cdn/{PWTWO4LQ.js → IL3ODH4Q.js} +2 -2
  26. package/dist/cdn/{RFPCEKOB.js → J5BB2DTX.js} +2 -2
  27. package/dist/cdn/{ZWJAHBIF.js → JGRG3RTL.js} +2 -2
  28. package/dist/cdn/{YTFTM7FZ.js → KCG4J2TQ.js} +1 -1
  29. package/dist/cdn/{5N7BLQUC.js → KY2A6GJX.js} +1 -1
  30. package/dist/cdn/{CUWBQ6DE.js → LZEK7RTW.js} +2 -2
  31. package/dist/cdn/M2XE3C7T.js +6 -0
  32. package/dist/cdn/{VDMEGRHB.js → MBTVAM7I.js} +2 -2
  33. package/dist/cdn/N3P4PLZT.js +4 -0
  34. package/dist/cdn/{JYHLAFWX.js → NB4EJVRJ.js} +2 -2
  35. package/dist/cdn/{ZBKMCGR7.js → NGXPOKHF.js} +2 -2
  36. package/dist/cdn/{PR666JT5.js → NM7YCIBL.js} +2 -2
  37. package/dist/cdn/{A7BGWNLB.js → OAY75OXY.js} +2 -2
  38. package/dist/cdn/{MMSAWKPK.js → OHULNXEE.js} +2 -2
  39. package/dist/cdn/{OZZYHIPM.js → QN4HJ3GS.js} +1 -1
  40. package/dist/cdn/{ZB3AQDM2.js → RVGC5EOD.js} +2 -2
  41. package/dist/cdn/{Q6ERATMA.js → TBZNDJPR.js} +2 -2
  42. package/dist/cdn/{OCXFKC66.js → TFP62745.js} +1 -1
  43. package/dist/cdn/{ZLUCSP73.js → TXSPPN6R.js} +2 -2
  44. package/dist/cdn/{4RJPAWSA.js → UV5OY4GJ.js} +2 -2
  45. package/dist/cdn/W5PHIIDU.js +4 -0
  46. package/dist/cdn/{Q54H2UGW.js → X6STFO7U.js} +2 -2
  47. package/dist/cdn/{MGX5UEEJ.js → Y3CNVWXF.js} +3 -3
  48. package/dist/cdn/{HEOVDTIB.js → YOZZJZW5.js} +2 -2
  49. package/dist/cdn/{OAJKP3TF.js → Z2EROYP7.js} +1 -1
  50. package/dist/cdn/{224QUA5Z.js → Z45QIMDD.js} +2 -2
  51. package/dist/cdn/{OCZIBXWV.js → ZEXTPWCM.js} +1 -1
  52. package/dist/cdn/index.js +2 -2
  53. package/dist/chunks/arcade-defaults.js +2 -2
  54. package/dist/chunks/arcade-executor.js +1 -1
  55. package/dist/chunks/arcade-mode.js +1 -1
  56. package/dist/chunks/arcade-service-accessors.js +1 -1
  57. package/dist/chunks/colorize.js +1 -1
  58. package/dist/chunks/fields.js +1 -1
  59. package/dist/chunks/language-defaults-base.js +3 -3
  60. package/dist/chunks/markdown.js +1 -1
  61. package/dist/chunks/monaco-importer.js +1 -1
  62. package/dist/chunks/monaco-theme.js +1 -1
  63. package/dist/chunks/runtime.js +1 -1
  64. package/dist/chunks/{arcade-contribution.js → setup-monaco-theme.js} +40 -40
  65. package/dist/chunks/sql-expr-defaults.js +2 -2
  66. package/dist/chunks/sql-expr-mode.js +1 -1
  67. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  68. package/dist/chunks/useT9n.js +1 -1
  69. package/dist/chunks/utilities.js +1 -1
  70. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-coding-assistant/types.d.ts +3 -48
  72. package/dist/components/arcgis-arcade-editor/customElement.d.ts +123 -112
  73. package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
  74. package/dist/components/arcgis-arcade-editor/index.d.ts +0 -13
  75. package/dist/components/arcgis-arcade-results/customElement.js +7 -7
  76. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  77. package/dist/components/arcgis-code-editor/customElement.d.ts +74 -81
  78. package/dist/components/arcgis-code-editor/customElement.js +3 -3
  79. package/dist/components/arcgis-code-editor-shell/customElement.d.ts +9 -5
  80. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  81. package/dist/components/arcgis-code-viewer/customElement.d.ts +23 -37
  82. package/dist/components/arcgis-code-viewer/customElement.js +2 -2
  83. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  84. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  85. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +53 -49
  86. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  87. package/dist/components/arcgis-sql-expression-editor/index.d.ts +0 -7
  88. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  89. package/dist/docs/api.json +1 -1470
  90. package/dist/docs/docs.json +1 -1381
  91. package/dist/docs/vscode.css-custom-data.json +1 -35
  92. package/dist/docs/vscode.html-custom-data.json +1 -119
  93. package/dist/docs/web-types.json +1 -385
  94. package/dist/index.d.ts +34 -21
  95. package/dist/index.js +1 -1
  96. package/dist/loader.js +7 -7
  97. package/dist/types/lumina.d.ts +11 -11
  98. package/dist/types/preact.d.ts +11 -11
  99. package/dist/types/react.d.ts +11 -11
  100. package/dist/types/stencil.d.ts +11 -11
  101. package/dist/utils/arcade-assistant/types.d.ts +8 -72
  102. package/dist/utils/arcade-executor.d.ts +158 -126
  103. package/dist/utils/arcade-monaco/arcade-defaults.d.ts +9 -49
  104. package/dist/utils/custom-panel.d.ts +35 -30
  105. package/dist/utils/editor-suggestions.d.ts +17 -28
  106. package/dist/utils/index.d.ts +4 -6
  107. package/dist/utils/profile/types.d.ts +273 -345
  108. package/dist/utils/sql-expr-monaco/sql-expr-defaults.d.ts +8 -22
  109. package/package.json +6 -6
  110. package/dist/addons/arcade-coding-assistant/chat-helper.d.ts +0 -78
  111. package/dist/addons/arcade-coding-assistant/index.d.ts +0 -2
  112. package/dist/addons/arcade-coding-assistant/temporary-strings.d.ts +0 -47
  113. package/dist/cdn/2WNWZ6AD.js +0 -4
  114. package/dist/cdn/EGURZWSY.js +0 -4
  115. package/dist/cdn/TIR4RXVC.js +0 -6
  116. package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +0 -45
  117. package/dist/components/arcgis-arcade-coding-assistant/functional.d.ts +0 -235
  118. package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +0 -27
  119. package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -32
  120. package/dist/components/arcgis-arcade-results/functional.d.ts +0 -73
  121. package/dist/components/arcgis-arcade-results/index.d.ts +0 -10
  122. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -24
  123. package/dist/components/arcgis-arcade-suggestions/index.d.ts +0 -10
  124. package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -40
  125. package/dist/components/arcgis-editor-variables/index.d.ts +0 -10
  126. package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -42
  127. package/dist/components/arcgis-language-api-panel/index.d.ts +0 -11
  128. package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -23
  129. package/dist/components/arcgis-sql-expression-fields/index.d.ts +0 -7
  130. package/dist/controllers/useT9n.d.ts +0 -1
  131. package/dist/runtime.d.ts +0 -6
  132. package/dist/utils/arcade-assistant/aiContext.d.ts +0 -6
  133. package/dist/utils/arcade-assistant/constants.d.ts +0 -2
  134. package/dist/utils/arcade-assistant/utils.d.ts +0 -9
  135. package/dist/utils/arcade-monaco/arcade-contribution.d.ts +0 -1
  136. package/dist/utils/arcade-monaco/arcade-language-features.d.ts +0 -35
  137. package/dist/utils/arcade-monaco/arcade-language-syntax.d.ts +0 -3
  138. package/dist/utils/arcade-monaco/arcade-mode.d.ts +0 -29
  139. package/dist/utils/arcade-monaco/arcade-profile-strategy.d.ts +0 -12
  140. package/dist/utils/arcade-monaco/arcade-service-accessors.d.ts +0 -31
  141. package/dist/utils/arcade-monaco/arcade-worker-manager.d.ts +0 -22
  142. package/dist/utils/arcade-monaco/arcade.worker.d.ts +0 -23
  143. package/dist/utils/arcade-monaco/types.d.ts +0 -9
  144. package/dist/utils/colorize.d.ts +0 -5
  145. package/dist/utils/constants.d.ts +0 -3
  146. package/dist/utils/css-vars.d.ts +0 -7
  147. package/dist/utils/fields.d.ts +0 -20
  148. package/dist/utils/internal-monaco-apis.d.ts +0 -67
  149. package/dist/utils/language-defaults-base.d.ts +0 -76
  150. package/dist/utils/markdown.d.ts +0 -6
  151. package/dist/utils/monaco-importer.d.ts +0 -28
  152. package/dist/utils/monaco-languages.d.ts +0 -17
  153. package/dist/utils/monaco-theme.json.d.ts +0 -27
  154. package/dist/utils/monaco-typings.d.ts +0 -8
  155. package/dist/utils/patch-monaco.d.ts +0 -16
  156. package/dist/utils/profile/editor-profile.d.ts +0 -278
  157. package/dist/utils/profile/utils.d.ts +0 -49
  158. package/dist/utils/setup-monaco-theme.d.ts +0 -1
  159. package/dist/utils/setup-monaco.d.ts +0 -31
  160. package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +0 -74
  161. package/dist/utils/sql-expr-monaco/sql-expr-constants.d.ts +0 -67
  162. package/dist/utils/sql-expr-monaco/sql-expr-contribution.d.ts +0 -1
  163. package/dist/utils/sql-expr-monaco/sql-expr-language-features.d.ts +0 -23
  164. package/dist/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +0 -3
  165. package/dist/utils/sql-expr-monaco/sql-expr-mode.d.ts +0 -43
  166. package/dist/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +0 -36
  167. package/dist/utils/sql-expr-monaco/sql-expr-profile-utils.d.ts +0 -5
  168. package/dist/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +0 -19
  169. package/dist/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -33
  170. package/dist/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +0 -82
  171. package/dist/utils/sql-expr-monaco/sql-expr-validation.d.ts +0 -41
  172. package/dist/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +0 -22
  173. package/dist/utils/sql-expr-monaco/sql-expr.worker.d.ts +0 -22
  174. package/dist/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +0 -13
  175. package/dist/utils/sql-expr-monaco/types.d.ts +0 -96
  176. package/dist/utils/utilities.d.ts +0 -16
@@ -1,22 +1,8 @@
1
- import { IEditorProfileDefinition, IPredefinedProfile } from '../profile/types';
2
- import { Uri } from 'monaco-editor';
3
- import { LanguageDefaultsBase } from '../language-defaults-base';
4
- import { default as FeatureLayer } from '@arcgis/core/layers/FeatureLayer';
5
- declare class SqlExprDefaults extends LanguageDefaultsBase {
6
- protected _languageId: string;
7
- private _layerMap;
8
- constructor();
9
- updateFeatureLayerForModel(modelId: Uri | string, layer: FeatureLayer): void;
10
- getFeatureLayerForModel(modelId: Uri | string): FeatureLayer | undefined;
11
- setProfileForModel(modelId: Uri | string, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
12
- locale: string;
13
- }): Promise<void>;
14
- }
15
- export type { SqlExprDefaults };
16
- export declare const sqlExprDefaults: SqlExprDefaults;
17
- export declare const sqlExpression: {
18
- setProfileForModel: (modelId: Uri | string, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
19
- locale: string;
20
- }) => Promise<void>;
21
- getApiLibraryForModel: (modelId: string) => Promise<import('@arcgis/languages-api-utils').ApiCategory[]>;
22
- };
1
+ import type { IEditorProfileDefinition, IPredefinedProfile } from "../profile/types.js";
2
+ import type { Uri as Uri2 } from "monaco-editor/esm/vs/editor/editor.api.js";
3
+ import type { ApiCategory } from "@arcgis/languages-api-utils/dist/types.js";
4
+
5
+ export const sqlExpression: {
6
+ setProfileForModel: (modelId: string | Uri2, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: { locale: string; }) => Promise<void>;
7
+ getApiLibraryForModel: (modelId: string) => Promise<Array<ApiCategory>>;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "5.0.0-next.136",
3
+ "version": "5.0.0-next.138",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -42,15 +42,15 @@
42
42
  ],
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
- "@arcgis/arcade-languageservice": "5.0.0-next.136",
46
- "@arcgis/languages-api-utils": "5.0.0-next.136",
47
- "@arcgis/lumina": "5.0.0-next.136",
48
- "@arcgis/toolkit": "5.0.0-next.136",
49
45
  "@lit/task": "^1.0.3",
50
46
  "lit": "^3.3.0",
51
47
  "monaco-editor": "^0.52.0",
52
48
  "tslib": "^2.8.1",
53
- "vscode-languageserver-types": "^3.17.5"
49
+ "vscode-languageserver-types": "^3.17.5",
50
+ "@arcgis/arcade-languageservice": "5.0.0-next.138",
51
+ "@arcgis/languages-api-utils": "5.0.0-next.138",
52
+ "@arcgis/toolkit": "5.0.0-next.138",
53
+ "@arcgis/lumina": "5.0.0-next.138"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@arcgis/core": ">=5.0.0-next.62 <5.1",
@@ -1,78 +0,0 @@
1
- import { ArcadeAiProfileContext } from '../../utils/arcade-assistant/types';
2
- /**
3
- * Helpers to automate chat with a skill
4
- */
5
- type RequestContext = {
6
- kind: "ArcadeCodeRequest";
7
- context: {
8
- profile_id: string;
9
- metadata: [ArcadeAiProfileContext];
10
- };
11
- };
12
- /** successful response */
13
- type ArcadeCodeContext = {
14
- kind: "ArcadeCodeResponse";
15
- arcadeCode?: {
16
- code: string;
17
- };
18
- [key: string]: unknown;
19
- };
20
- /** error response but still 200 status */
21
- type ArcgisErrorAsContext = {
22
- kind: "ArcgisErrorAsContext";
23
- error: {
24
- code: number;
25
- message?: string;
26
- subCode?: string | null;
27
- details?: unknown[];
28
- };
29
- [key: string]: unknown;
30
- };
31
- export type ResponseContext = ArcadeCodeContext | ArcgisErrorAsContext;
32
- type ChatResponse = {
33
- hasMore: boolean;
34
- context?: ResponseContext;
35
- message?: string;
36
- conversationId: string;
37
- inquiryId: string;
38
- sequenceNumber: string;
39
- [key: string]: unknown;
40
- };
41
- /**
42
- * The skill service will often return an error with a message that contains json. The parsed json has the below shape
43
- */
44
- interface ArcadeAssistantErrorResponse {
45
- code?: number | string;
46
- message: string;
47
- subCode?: string | null;
48
- details?: unknown[];
49
- source?: string;
50
- }
51
- export declare class ArcadeAssistantError extends Error implements ArcadeAssistantErrorResponse {
52
- code?: number | string;
53
- subCode?: string | null;
54
- details?: unknown[];
55
- source?: string;
56
- constructor({ message, code, subCode, details, source, }: {
57
- message: string;
58
- code?: number | string;
59
- subCode?: string | null;
60
- details?: unknown[];
61
- source?: string;
62
- });
63
- }
64
- /** Helper to automate chat with a skill */
65
- export declare function chatWithSkill(params: {
66
- baseUrl: string;
67
- skillId: string | null;
68
- message: string;
69
- authToken: string;
70
- previousConversationId?: string | null;
71
- context?: RequestContext;
72
- }): Promise<ChatResponse[]>;
73
- /**
74
- * Some error messages from the Arcade Assistant API are not user-friendly.
75
- * This function adapts those errors to a more user-friendly message.
76
- */
77
- export declare function errorDiagnosticAdapter(error: ArcadeAssistantError): string;
78
- export {};
@@ -1,2 +0,0 @@
1
- export * from './useArcadeAssistant';
2
- export * from './chat-helper';
@@ -1,47 +0,0 @@
1
- /**
2
- * Temporary strings for the Arcade Coding Assistant.
3
- *
4
- * These string were added after the code-freeze and thus are not yet localized.
5
- */
6
- export declare const temporaryStrings: {
7
- welcome: string;
8
- beforeyougetstarted: string;
9
- maybeincorrect: string;
10
- pleasereadhelp: string;
11
- proceed: string;
12
- exit: string;
13
- promptsuggestions: string;
14
- promptsuggestion: string;
15
- assistantresponses: string;
16
- collapse: string;
17
- thumbsup: string;
18
- thumbsdown: string;
19
- refine: string;
20
- startover: string;
21
- helptopic: string;
22
- agreement: string;
23
- esriprivacystatement: string;
24
- supplement: string;
25
- disclaimerpt2: string;
26
- replaceineditor: string;
27
- keepinmind: string;
28
- beconsise: string;
29
- avoidambiguity: string;
30
- documentation: string;
31
- useexamples: string;
32
- moredetails: string;
33
- seedocumentation: string;
34
- assistantinformation: string;
35
- profilecontextlabel: string;
36
- layercontextlabel: string;
37
- numlayers: string;
38
- numlayersplural: string;
39
- numlayerssingular: string;
40
- responsecontext: string;
41
- error: string;
42
- copytoclipboard: string;
43
- copyprompttoclipboard: string;
44
- copiedsuccessfully: string;
45
- helpful: string;
46
- unhelpful: string;
47
- };
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.136 */
4
- import c from"./UZMYMIUN.js";import b from"./VDMEGRHB.js";import{a as m}from"./OCZIBXWV.js";import{a as p}from"./Q4UHUY3T.js";import a from"./U77BQSD4.js";import{a as s}from"./H3N4UPAY.js";import{Rc as k,Tl as d,Wl as t,lk as w}from"./PR666JT5.js";export default $arcgis.t(([a,n,{c:c}])=>{w();k();var x=["arcade","arcgis-sql-expression"],i=new Set,u=new Map;function f(e){let r=u.get(e);return r||(r=Promise.withResolvers(),u.set(e,r)),r}function l(e){f(e).resolve()}function _(e){return x.includes(e)?f(e).promise:Promise.resolve()}function h(e,r){return()=>{i.has(e)||i.add(e),r()}}async function j(e){i.has(e)||(await s()).createModel("",e,d.parse("")).dispose()}I();function I(){s().then(e=>{["light","dark"].forEach(r=>{let g=r==="light"?"vs":"vs-dark",o=m[`${r}-theme`];e.defineTheme(g,{base:g,inherit:!0,rules:[{token:"comment.arcgis",foreground:o.comment},{token:"constant.arcgis",foreground:o.constant},{token:"keyword.arcgis",foreground:o.keyword},{token:"identifier.arcgis",foreground:o.identifier},{token:"number.arcgis",foreground:o.number},{token:"string.arcgis",foreground:o.string},{token:"operator.arcgis",foreground:o.operator},{token:"predefined.arcgis",foreground:o.predefined},{token:"date.arcgis",foreground:o.date}],colors:{}})})})}t.register({id:a.languageId,aliases:["EsiSqlExpression","sql-expression"],extensions:[".sql-expression"],mimetypes:["application/sql-expression"]});t.onLanguage(a.languageId,h(a.languageId,()=>{p().then(e=>{e.setupMode(a),l(a.languageId)}).catch(e=>{throw e})}));t.register({id:n.languageId,aliases:["Arcade","arcade"],extensions:[".arc"],mimetypes:["application/arcade"]});t.onLanguage(n.languageId,h(n.languageId,()=>{c().then(e=>{e.setupMode(n),l(n.languageId)}).catch(e=>{throw e})}));return{a:_,b:j}},a,b,c)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.136 */
4
- import c from"./JYHLAFWX.js";import"./Q4UHUY3T.js";import b from"./U77BQSD4.js";import a from"./36Y75YKB.js";import"./YTFTM7FZ.js";import"./OCXFKC66.js";import"./FV6JUYSW.js";import"./H3N4UPAY.js";import"./MEXDPC7D.js";import"./Q6ERATMA.js";import"./4RJPAWSA.js";import"./TIR4RXVC.js";import"./OZZYHIPM.js";import"./PR666JT5.js";import"./OAJKP3TF.js";export default $arcgis.t(([,,{a:a,b:b,c:c}])=>{return{getSqlExprDiagnosticService:b,getSqlExprWorker:a,setupMode:c}},a,b,c)
@@ -1,6 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.136 */
4
- import{a as A,b as Rt,d as Mt}from"./OZZYHIPM.js";var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yt=Symbol(),It=new WeakMap,k=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==yt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&It.set(e,t))}return t}toString(){return this.cssText}},kt=o=>new k(typeof o=="string"?o:o+"",void 0,yt),ye=(o,...t)=>{let e=o.length===1?o[0]:t.reduce(((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1]),o[0]);return new k(e,o,yt)},jt=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),r=Y.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},gt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return kt(e)})(o):o;var{is:ge,defineProperty:ve,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:$e,getOwnPropertySymbols:be,getPrototypeOf:_e}=Object,tt=globalThis,Ht=tt.trustedTypes,Ae=Ht?Ht.emptyScript:"",Ce=tt.reactiveElementPolyfillSupport,j=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?Ae:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},H=(o,t)=>!ge(o,t),Vt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&ve(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=Ee(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=_e(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,s=[...$e(e),...be(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)e.unshift(gt(r))}else t!==void 0&&e.push(gt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r,this[r]=n.fromAttribute(e,i.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let r=this.constructor,i=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??H)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[j("elementProperties")]=new Map,b[j("finalized")]=new Map,Ce?.({ReactiveElement:b}),(tt.reactiveElementVersions??=[]).push("2.1.0");var Et=globalThis,et=Et.trustedTypes,zt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,$t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+_,we=`<${bt}>`,S=document,z=()=>S.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",_t=Array.isArray,Kt=o=>_t(o)||typeof o?.[Symbol.iterator]=="function",vt=`[
5
- \f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,w=RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,At=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),as=At(1),cs=At(2),ls=At(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=S.createTreeWalker(S,129);function Jt(o,t){if(!_t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return zt!==void 0?zt.createHTML(t):t}var Yt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=V;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===V?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??V,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=V:(n=w,r=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===V?c+we:h>=0?(s.push(l),c.slice(0,h)+$t+c.slice(h)+_+g):c+_+(h===-2?a:g)}return[Jt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},W=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith($t)){let y=u[n++],g=r.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(_),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],z()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],z())}}}else if(r.nodeType===8)if(r.data===bt)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:i}),h+=_.length-1}i++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let r=s!==void 0?e._$Co?.[s]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=T(o,r._$AS(o,t.values),r,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,r=(t?.creationScope??S).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=S,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=W.createElement(Jt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){_t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){let i=this.strings,n=!1;if(i===void 0)t=T(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=T(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Zt={M:$t,P:_,A:bt,C:1,L:Yt,R:st,D:Kt,V:T,I:U,H:P,N:rt,U:it,B:ot,F:nt},Oe=Et.litHtmlPolyfillSupport;Oe?.(W,U),(Et.litHtmlVersions??=[]).push("3.3.0");var Ct=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new U(t.insertBefore(z(),i),i,void 0,e??{})}return r._$AI(o),r};var wt=globalThis,$=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,wt.litElementHydrateSupport?.({LitElement:$});var Se=wt.litElementPolyfillSupport;Se?.({LitElement:$});(wt.litElementVersions??=[]).push("4.2.0");var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},F=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Te=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),As=o=>typeof o?.then=="function";var q,x=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},K=o=>q,N=[],Xt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},te=()=>N,R,Cs=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},Pe=()=>{let o=R;return R=void 0,o},ee=async(o,t)=>{let e=ct(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},se=async o=>{let t=ct(o);return await t.ready,t},ct=o=>{let e=K().manager.X(o);if(e!==void 0)return e;if(Te(o))return o;let s=Pe();if(s!==void 0)return s},at=!1,ws=o=>{at=!0;try{return o()}finally{at=!1}};var Ne=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},xe=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},De=(o=[K(),...te()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>Ne(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){xe(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Le=(o="",t={},e=K())=>{let s={emit:r=>{o===""&&I();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&De(void 0,r=>o=r.key,s),s},Ue=Le.bind(null,""),ie;ie=G;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new A,this.connectedCalled=!1,this.loadedCalled=!1,this[ie]=!0,this.#a=[];let e=this,s=t??K(new.target.name);e.#o=s,e.ready=e.P.promise,e.#n=re(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(Xt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(Mt(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?re(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ee}get useRef(){return x(this.#o),se}get useRefSync(){return x(this.#o),ct}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(oe,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(oe,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function oe(o){p(o,void 0,this)}var ne=Ot,re=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var lt=o=>o.replace(Re,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Re=/[A-Z]+(?![a-z])|[A-Z]/gu;var ae=(o,t)=>new Array(t+1).join(o),Us=o=>{let t='"',e="'";o.includes(t)&&!o.includes(e)&&(e='"',t="'");let r=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${e})+)`,"gu");o=o.replace(r,(n,a,c,l)=>a+c+ae(e,l.length/2));let i=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return o=o.replace(i,(n,a,c,l)=>a+c+ae(`\\${t}`,l.length)),t+o+t},Rs=o=>{let t=o?o.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")},Ms=o=>`\u200E${o??""}\u200E`,Me="randomUUID"in crypto,Is=()=>{if(Me)return crypto.randomUUID();let o=crypto.getRandomValues(new Uint16Array(8));o[3]=o[3]&4095|16384,o[4]=o[4]&16383|32768;let t=e=>o[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var ks=(o,t={})=>(o??"").replace(/\{(?<valueName>.*?)\}/gu,(e,s)=>t[s]??e);var{I:Ie}=Zt;var ht=o=>o.strings===void 0,ce=()=>document.createComment(""),Vs=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(ce(),r),n=s.insertBefore(ce(),r);e=new Ie(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=c.nextSibling;s.insertBefore(c,r),c=l}}}return e},zs=(o,t,e=o)=>(o._$AI(t,e),o),ke={},le=(o,t=ke)=>o._$AH=t,Bs=o=>o._$AH,Ws=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Q=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),Q(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},he=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Ve(t)}};function je(o){this._$AN!==void 0?(dt(this),this._$AM=o,he(this)):this._$AM=o}function He(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)Q(s[i],!1),dt(s[i]);else s!=null&&(Q(s,!1),dt(s));else Q(this,o)}var Ve=o=>{o.type==m.CHILD&&(o._$AP??=He,o._$AQ??=je)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),he(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var to=()=>new Tt,Tt=class{},St=new WeakMap,Pt=E(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Dt={};function Lt(){}var Be=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(We):void 0,C=g?.map(([L])=>L),D=class extends Nt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ut=Object.defineProperty,We=o=>{let t=o.split(":");return t.length===1?[t[0],lt(t[0])]:t},Fe=globalThis.HTMLElement??Lt,Nt=class extends Fe{constructor(){super(),this.#e={},this.#s=[],this.I=new A,this.H=new A,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#r({a:e.A}):e.B.then(async s=>{await e.K.p,t.#r(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ut(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ut(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ut(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Ge(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(qe,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function qe([o,t]){this[o]=t}var Ge=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ut(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ft=class extends ne{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=mt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${mt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=Rt(t,Ke)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},Ke=1e3,mt="autoDestroyDisabled";var pe=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((t=>o[t])).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ue="important",Qe=" !"+ue,Je=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce(((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(Qe);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?ue:""):e[s]=r}}return f}});var Ye=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return le(o),t}});var fe=class o extends ${constructor(){super(),this.M=[],this.manager=new ft(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#r=s?.H??new A,t.I=s?.I??new A,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Dt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:s&1&&typeof t=="string"?lt(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!at&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#r.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===Dt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(mt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var me=o=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var br=o=>typeof o=="object"&&o!=null?pe(o):o;var Ut=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Pt(this.#e)):Pt(t)}},_r=E(Ut);var Ar=d;var J=me({defaultAssetPath:"https://jsdev.arcgis.com/5.0.0-next/coding-components/",hydratedAttribute:"hydrated"}),{customElement:Tr,getAssetPath:Pr,setAssetPath:Nr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{As as a,x as b,Xt as c,te as d,Cs as e,ws as f,kt as g,ye as h,H as i,as as j,f as k,d as l,De as m,Ue as n,Ot as o,Us as p,Rs as q,Ms as r,Is as s,ks as t,Be as u,m as v,E as w,v as x,Vs as y,zs as z,le as A,Bs as B,Ws as C,to as D,Pt as E,fe as F,br as G,Ar as H,J as I,Tr as J,Pr as K};
@@ -1,45 +0,0 @@
1
- /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
3
- import { ArcgisArcadeEditor } from '../arcgis-arcade-editor/customElement.js';
4
- import { ResponseDisplayCard } from './functional';
5
- import { default as FeatureLayer } from '@arcgis/core/layers/FeatureLayer.js';
6
- import { HistoryItem, FeedbackState, Context } from './types';
7
- import { PropertyValues } from 'lit';
8
- import { default as CatalogFootprintLayer } from '@arcgis/core/layers/catalog/CatalogFootprintLayer';
9
- import { default as CSVLayer } from '@arcgis/core/layers/CSVLayer';
10
- import { default as GeoJSONLayer } from '@arcgis/core/layers/GeoJSONLayer';
11
- import { default as OGCFeatureLayer } from '@arcgis/core/layers/OGCFeatureLayer';
12
- import { default as OrientedImageryLayer } from '@arcgis/core/layers/OrientedImageryLayer';
13
- import { default as SceneLayer } from '@arcgis/core/layers/SceneLayer';
14
- import { default as Sublayer } from '@arcgis/core/layers/support/Sublayer';
15
- import { default as SubtypeSublayer } from '@arcgis/core/layers/support/SubtypeSublayer';
16
- import { default as VoxelLayer } from '@arcgis/core/layers/VoxelLayer';
17
- import { default as WFSLayer } from '@arcgis/core/layers/WFSLayer';
18
-
19
- /**
20
- * Arcade Assistant component for AI-powered Arcade code generation.
21
- *
22
- * @private
23
- */
24
- export declare class ArcgisArcadeCodingAssistant extends LitElement {
25
- closePanel?: (e: Event) => void;
26
- insertText?: (text: string) => void;
27
- /** @default "" */
28
- helpBase?: string;
29
- /**
30
- * Whether ai assistants are enabled in the organization's settings.
31
- *
32
- * @default false
33
- */
34
- assistantsEnabled: boolean;
35
- layer: CatalogFootprintLayer | CSVLayer | FeatureLayer | GeoJSONLayer | OGCFeatureLayer | OrientedImageryLayer | SceneLayer | Sublayer | SubtypeSublayer | VoxelLayer | WFSLayer;
36
- portalUrl: string;
37
- serviceUrl: string;
38
- /** @default false */
39
- closed: boolean;
40
- editorRef: ArcgisArcadeEditor;
41
- feedbackServiceUrl?: string;
42
- appVersion?: string;
43
- /** Permanently destroy the component */
44
- destroy(): Promise<void>;
45
- }
@@ -1,235 +0,0 @@
1
- import { JsxNode } from '@arcgis/lumina';
2
- import { Ref } from 'lit/directives/ref.js';
3
- import { Context, FeedbackState, IconName } from './types';
4
- declare const strings: (value: {
5
- arcadeassistant: string;
6
- beta: string;
7
- expressionapplied: string;
8
- askaquestion: string;
9
- enteraprompt: string;
10
- assistantresponse: string;
11
- providefeedback: string;
12
- experiencehelps: string;
13
- submitfeedback: string;
14
- addtoeditor: string;
15
- experiencehelpful: string;
16
- describeexperience: string;
17
- besteffort: string;
18
- ask: string;
19
- disclaimercomment: string;
20
- feedback: string;
21
- erroroccurred: string;
22
- recentprompts: string;
23
- generatingresponse: string;
24
- introducing: string;
25
- capabilities: string;
26
- aiassistants: string;
27
- useofassistant: string;
28
- configureassistants: string;
29
- settings: string;
30
- new: string;
31
- learnmore: string;
32
- welcome: string;
33
- beforeyougetstarted: string;
34
- maybeincorrect: string;
35
- pleasereadhelp: string;
36
- proceed: string;
37
- exit: string;
38
- promptsuggestions: string;
39
- promptsuggestion: string;
40
- assistantresponses: string;
41
- collapse: string;
42
- thumbsup: string;
43
- thumbsdown: string;
44
- refine: string;
45
- startover: string;
46
- helptopic: string;
47
- agreement: string;
48
- esriprivacystatement: string;
49
- supplement: string;
50
- disclaimerpt2: string;
51
- replaceineditor: string;
52
- keepinmind: string;
53
- beconsise: string;
54
- avoidambiguity: string;
55
- documentation: string;
56
- useexamples: string;
57
- moredetails: string;
58
- seedocumentation: string;
59
- assistantinformation: string;
60
- profilecontextlabel: string;
61
- layercontextlabel: string;
62
- numlayers: string;
63
- numlayersplural: string;
64
- numlayerssingular: string;
65
- responsecontext: string;
66
- error: string;
67
- copytoclipboard: string;
68
- copyprompttoclipboard: string;
69
- copiedsuccessfully: string;
70
- helpful: string;
71
- unhelpful: string;
72
- prompsuggestion1: string;
73
- prompsuggestion2: string;
74
- }) => {
75
- arcadeassistant: string;
76
- beta: string;
77
- expressionapplied: string;
78
- askaquestion: string;
79
- enteraprompt: string;
80
- assistantresponse: string;
81
- providefeedback: string;
82
- experiencehelps: string;
83
- submitfeedback: string;
84
- addtoeditor: string;
85
- experiencehelpful: string;
86
- describeexperience: string;
87
- besteffort: string;
88
- ask: string;
89
- disclaimercomment: string;
90
- feedback: string;
91
- erroroccurred: string;
92
- recentprompts: string;
93
- generatingresponse: string;
94
- introducing: string;
95
- capabilities: string;
96
- aiassistants: string;
97
- useofassistant: string;
98
- configureassistants: string;
99
- settings: string;
100
- new: string;
101
- learnmore: string;
102
- welcome: string;
103
- beforeyougetstarted: string;
104
- maybeincorrect: string;
105
- pleasereadhelp: string;
106
- proceed: string;
107
- exit: string;
108
- promptsuggestions: string;
109
- promptsuggestion: string;
110
- assistantresponses: string;
111
- collapse: string;
112
- thumbsup: string;
113
- thumbsdown: string;
114
- refine: string;
115
- startover: string;
116
- helptopic: string;
117
- agreement: string;
118
- esriprivacystatement: string;
119
- supplement: string;
120
- disclaimerpt2: string;
121
- replaceineditor: string;
122
- keepinmind: string;
123
- beconsise: string;
124
- avoidambiguity: string;
125
- documentation: string;
126
- useexamples: string;
127
- moredetails: string;
128
- seedocumentation: string;
129
- assistantinformation: string;
130
- profilecontextlabel: string;
131
- layercontextlabel: string;
132
- numlayers: string;
133
- numlayersplural: string;
134
- numlayerssingular: string;
135
- responsecontext: string;
136
- error: string;
137
- copytoclipboard: string;
138
- copyprompttoclipboard: string;
139
- copiedsuccessfully: string;
140
- helpful: string;
141
- unhelpful: string;
142
- prompsuggestion1: string;
143
- prompsuggestion2: string;
144
- };
145
- export declare function AboutDisplay({ messages }: {
146
- messages: Partial<ReturnType<typeof strings>>;
147
- }): JsxNode;
148
- export declare function DisclaimerDisplay({ popoverContent }: {
149
- popoverContent: JsxNode;
150
- }): JsxNode;
151
- export declare function ErrorDisplay({ errorMessage, slot }: {
152
- errorMessage: JsxNode | string;
153
- slot?: string;
154
- }): JsxNode;
155
- export declare function ConfirmationDisplay({ active, setActive, messages, }: {
156
- active: boolean;
157
- setActive: (e: boolean) => void;
158
- messages: Partial<ReturnType<typeof strings>>;
159
- }): JsxNode;
160
- export declare function ContextDisplay({ context, messages, }: {
161
- context?: Context;
162
- messages: Partial<ReturnType<typeof strings>>;
163
- }): JsxNode;
164
- export declare function SubmissionDisplay({ isDisabled, isReadOnly, setQuestion, setIsViewingResult, textAreaRef, question, errorMessage, setErrorMessage, submitQuestion, messages, mode, context, }: {
165
- isDisabled: boolean;
166
- isReadOnly: boolean;
167
- setQuestion: (e: string) => void;
168
- setIsViewingResult: (e: boolean) => void;
169
- textAreaRef: Ref<HTMLCalciteTextAreaElement>;
170
- question: string;
171
- errorMessage?: string;
172
- setErrorMessage: (e: string) => void;
173
- submitQuestion: () => Promise<void>;
174
- messages: Partial<ReturnType<typeof strings>>;
175
- mode: "prompt" | "refine";
176
- context?: Context;
177
- }): JsxNode;
178
- export declare function FeedbackSheetDisplay({ setOpen, messages, feedback, setFeedback, onSubmit, }: {
179
- setOpen: (open: boolean) => void;
180
- messages: Partial<ReturnType<typeof strings>>;
181
- feedback: FeedbackState;
182
- setFeedback: (feedback: FeedbackState) => void;
183
- onSubmit: () => void;
184
- }): JsxNode;
185
- export declare function InfoDisplay({ assistantsEnabled, messages, slot, assistantHelpUrl, helpTopicUrl, }: {
186
- assistantsEnabled: boolean;
187
- assistantHelpUrl: string;
188
- helpTopicUrl: string;
189
- messages: Partial<ReturnType<typeof strings>>;
190
- slot?: HTMLCalciteBlockElement["slot"];
191
- }): JsxNode;
192
- export declare function SplashDisplay({ messages, onProceed, onExit, helpTopicUrl, }: {
193
- messages: Partial<ReturnType<typeof strings>>;
194
- onProceed: () => void;
195
- onExit: (e: Event) => void;
196
- helpTopicUrl: string;
197
- }): JsxNode;
198
- export declare function PromptSuggestionsDisplay({ messages, suggestions, onSuggestionClick, }: {
199
- suggestions: string[];
200
- onSuggestionClick: (value: string) => void;
201
- messages: Partial<ReturnType<typeof strings>>;
202
- }): JsxNode;
203
- export interface ResponseDisplayCardChip {
204
- label: string;
205
- icon?: IconName;
206
- tooltip?: string;
207
- scale?: "l" | "m" | "s";
208
- appearance?: "outline-fill" | "outline" | "solid";
209
- /** need a unique id for each convo for tooltip reference-ids */
210
- conversationId: string;
211
- }
212
- export interface ResponseDisplayCard {
213
- priorPrompt: string;
214
- code: string;
215
- message?: string;
216
- chips?: ResponseDisplayCardChip[];
217
- onAddToEditor: (insertMode: "add" | "replace") => void;
218
- onThumbsUp: () => void;
219
- onThumbsDown: () => void;
220
- conversationId: string;
221
- }
222
- export declare function ResponseDisplay({ hidden, expanded, messages, cards, heading, collapsible, showEffectsIcon, onCopyCode, standalone, }: {
223
- hidden?: boolean;
224
- expanded?: boolean;
225
- heading?: string;
226
- messages: Partial<ReturnType<typeof strings>>;
227
- cards: ResponseDisplayCard[];
228
- showEffectsIcon?: boolean;
229
- collapsible?: boolean;
230
- editorInsertMode?: "add" | "replace";
231
- setEditorInsertMode?: (mode: "add" | "replace") => void;
232
- onCopyCode: (code: string) => Promise<void>;
233
- standalone?: boolean;
234
- }): JsxNode;
235
- export {};
@@ -1,27 +0,0 @@
1
- import "@esri/calcite-components/components/calcite-chip";
2
- import "@esri/calcite-components/components/calcite-action";
3
- import "@esri/calcite-components/components/calcite-popover";
4
- import "@esri/calcite-components/components/calcite-input-message";
5
- import "@esri/calcite-components/components/calcite-alert";
6
- import "@esri/calcite-components/components/calcite-button";
7
- import "@esri/calcite-components/components/calcite-text-area";
8
- import "@esri/calcite-components/components/calcite-tooltip";
9
- import "@esri/calcite-components/components/calcite-sheet";
10
- import "@esri/calcite-components/components/calcite-panel";
11
- import "@esri/calcite-components/components/calcite-label";
12
- import "@esri/calcite-components/components/calcite-segmented-control";
13
- import "@esri/calcite-components/components/calcite-segmented-control-item";
14
- import "@esri/calcite-components/components/calcite-checkbox";
15
- import "@esri/calcite-components/components/calcite-block";
16
- import "@esri/calcite-components/components/calcite-link";
17
- import "@esri/calcite-components/components/calcite-dialog";
18
- import "@esri/calcite-components/components/calcite-chip-group";
19
- import "@esri/calcite-components/components/calcite-card-group";
20
- import "@esri/calcite-components/components/calcite-card";
21
- import "../arcgis-code-viewer/index.js";
22
- import "@esri/calcite-components/components/calcite-flow";
23
- import "@esri/calcite-components/components/calcite-flow-item";
24
- import "@esri/calcite-components/components/calcite-scrim";
25
- import "@esri/calcite-components/components/calcite-shell";
26
- import "@esri/calcite-components/components/calcite-block-group";
27
- export * from "./customElement.js";
@@ -1,32 +0,0 @@
1
- /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
3
- import { ArcadeResult } from '../../utils/arcade-executor';
4
-
5
- export type ResultPanelName = "console" | "log" | "output";
6
- /** @private */
7
- export declare class ArcgisArcadeResults extends LitElement {
8
- /** The console logs from the execution of an Arcade expression */
9
- consoleLogs?: string[];
10
- /**
11
- * Loading state
12
- *
13
- * @default false
14
- */
15
- loading?: boolean;
16
- /**
17
- * The result panel displayed
18
- *
19
- * @default "output"
20
- */
21
- openedResultPanel: ResultPanelName;
22
- /** The results from the execution of an Arcade expression */
23
- result?: ArcadeResult;
24
- /** Raise when the clode action has been activated */
25
- readonly arcgisClose: TargetedEvent<this, void>;
26
- /** Raised when the opened result panel has changed */
27
- readonly arcgisOpenedResultPanelChange: TargetedEvent<this, ResultPanelName>;
28
- "@eventTypes": {
29
- "arcgisClose": ArcgisArcadeResults["arcgisClose"]["detail"];
30
- "arcgisOpenedResultPanelChange": ArcgisArcadeResults["arcgisOpenedResultPanelChange"]["detail"];
31
- };
32
- }