@arcgis/coding-components 4.30.0-next.21 → 4.30.0-next.22

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 (135) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  42. package/dist/arcgis-coding-components/index.esm.js +2 -2
  43. package/dist/arcgis-coding-components/p-0596e58a.js +68 -0
  44. package/dist/arcgis-coding-components/p-09b3d456.js +6 -0
  45. package/dist/arcgis-coding-components/{p-5583b25d.js → p-237cd069.js} +2 -2
  46. package/dist/arcgis-coding-components/{p-a63eeed9.js → p-3c4c9bb1.js} +1 -1
  47. package/dist/arcgis-coding-components/{p-253f92ea.js → p-52af3d36.js} +2 -2
  48. package/dist/arcgis-coding-components/{p-cb5166f2.js → p-54a3c846.js} +2 -2
  49. package/dist/arcgis-coding-components/{p-192601ca.js → p-68c09f28.js} +2 -2
  50. package/dist/arcgis-coding-components/p-704509f4.entry.js +6 -0
  51. package/dist/arcgis-coding-components/{p-b177db92.js → p-89a837be.js} +2 -2
  52. package/dist/arcgis-coding-components/p-8be62afd.js +7 -0
  53. package/dist/arcgis-coding-components/{p-eb16cce2.js → p-a8a82d95.js} +2 -2
  54. package/dist/arcgis-coding-components/{p-1451e0cc.js → p-bf1aaa39.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-0e7b5896.js → p-bf789380.js} +2 -2
  56. package/dist/arcgis-coding-components/p-f31fa95c.js +6 -0
  57. package/dist/arcgis-coding-components/p-f9bdf871.js +6 -0
  58. package/dist/cjs/Accessor-YDTURKZ7-064d4ec3.js +1249 -0
  59. package/dist/cjs/{arcade-defaults-9d57f506.js → arcade-defaults-75be7a9b.js} +294 -295
  60. package/dist/cjs/{arcade-mode-9079b8e0.js → arcade-mode-bf406304.js} +4 -4
  61. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1347 -89
  62. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  63. package/dist/cjs/chunk-OMA4PI5N-c7c531ca.js +1286 -0
  64. package/dist/cjs/{css-9aa4569b.js → css-a1b28a9f.js} +1 -1
  65. package/dist/cjs/{cssMode-6f57c416.js → cssMode-5b3b9c9b.js} +3 -3
  66. package/dist/cjs/decorators-443AWDOE-ab85b9eb.js +120 -0
  67. package/dist/cjs/{html-95d3a234.js → html-51efc5f2.js} +3 -3
  68. package/dist/cjs/{htmlMode-ebd8894d.js → htmlMode-a3589bc9.js} +3 -3
  69. package/dist/cjs/{index-a3f52cf5.js → index-6a3d1ddd.js} +42 -4
  70. package/dist/cjs/index.cjs.js +3 -3
  71. package/dist/cjs/{javascript-1a01235b.js → javascript-f387480b.js} +4 -4
  72. package/dist/cjs/{jsonMode-26ed7799.js → jsonMode-f9b19644.js} +3 -3
  73. package/dist/cjs/loader.cjs.js +3 -3
  74. package/dist/cjs/{tsMode-9cfeb9a5.js → tsMode-b1e0bb57.js} +3 -3
  75. package/dist/cjs/{typescript-f9907455.js → typescript-64e66362.js} +3 -3
  76. package/dist/components/Accessor-YDTURKZ7.js +1247 -0
  77. package/dist/components/arcade-api.js +9 -15
  78. package/dist/components/arcade-contribution.js +3 -3
  79. package/dist/components/arcade-defaults.js +10 -10
  80. package/dist/components/arcade-mode.js +3 -3
  81. package/dist/components/arcade-results.js +24 -35
  82. package/dist/components/arcade-suggestions.js +10 -16
  83. package/dist/components/arcade-variables.js +11 -20
  84. package/dist/components/arcgis-arcade-api.js +1 -1
  85. package/dist/components/arcgis-arcade-editor.js +20 -24
  86. package/dist/components/arcgis-arcade-results.js +1 -1
  87. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  88. package/dist/components/arcgis-arcade-variables.js +1 -1
  89. package/dist/components/arcgis-assets.d.ts +1 -1
  90. package/dist/components/arcgis-assets.js +1 -1
  91. package/dist/components/arcgis-code-editor.js +1 -1
  92. package/dist/components/chunk-3I7AEPTU.js +1290 -0
  93. package/dist/components/chunk-OMA4PI5N.js +1257 -0
  94. package/dist/components/code-editor.js +6 -6
  95. package/dist/components/decorators-443AWDOE.js +109 -0
  96. package/dist/components/fields.js +40 -39
  97. package/dist/components/index.js +1 -1
  98. package/dist/components/index2.js +3 -3
  99. package/dist/components/markdown.js +1 -1
  100. package/dist/components/utilities.js +3 -3
  101. package/dist/esm/Accessor-YDTURKZ7-4eefd1d8.js +1247 -0
  102. package/dist/esm/{arcade-defaults-1577045c.js → arcade-defaults-fcc709e4.js} +286 -285
  103. package/dist/esm/{arcade-mode-ec8b7890.js → arcade-mode-dbf28353.js} +4 -4
  104. package/dist/esm/arcgis-arcade-api_6.entry.js +1389 -131
  105. package/dist/esm/arcgis-coding-components.js +4 -4
  106. package/dist/esm/chunk-OMA4PI5N-0c09fa7b.js +1257 -0
  107. package/dist/esm/{css-6350c0f7.js → css-6122a30a.js} +1 -1
  108. package/dist/esm/{cssMode-629b1349.js → cssMode-b890adfc.js} +3 -3
  109. package/dist/esm/decorators-443AWDOE-77ed5d5a.js +109 -0
  110. package/dist/esm/{html-979016b0.js → html-2f56c6c3.js} +3 -3
  111. package/dist/esm/{htmlMode-dd504dae.js → htmlMode-84b5c7ea.js} +3 -3
  112. package/dist/esm/{index-093931a1.js → index-e75c4ffc.js} +42 -5
  113. package/dist/esm/index.js +3 -3
  114. package/dist/esm/{javascript-7af48cb1.js → javascript-8456a624.js} +4 -4
  115. package/dist/esm/{jsonMode-eb6b41d1.js → jsonMode-29439efe.js} +3 -3
  116. package/dist/esm/loader.js +4 -4
  117. package/dist/esm/{tsMode-64deb000.js → tsMode-ec7fe1bf.js} +3 -3
  118. package/dist/esm/{typescript-c9b14542.js → typescript-d9362143.js} +3 -3
  119. package/dist/loader/cdn.js +1 -1
  120. package/dist/loader/index.cjs.js +1 -1
  121. package/dist/loader/index.es2017.js +1 -1
  122. package/dist/loader/index.js +1 -1
  123. package/dist/types/components/arcade-api/arcade-api.d.ts +4 -5
  124. package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -4
  125. package/dist/types/components/arcade-results/arcade-results.d.ts +4 -7
  126. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +4 -5
  127. package/dist/types/components/arcade-variables/arcade-variables.d.ts +4 -6
  128. package/package.json +12 -12
  129. package/dist/arcgis-coding-components/p-81935687.js +0 -68
  130. package/dist/arcgis-coding-components/p-a2190df0.js +0 -7
  131. package/dist/arcgis-coding-components/p-e8c2933f.entry.js +0 -6
  132. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
  133. 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 +0 -9
  134. 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 +0 -19
  135. 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 +0 -6
@@ -0,0 +1,1249 @@
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
+ * v4.30.0-next.22
5
+ */
6
+ 'use strict';
7
+
8
+ const chunkOMA4PI5N = require('./chunk-OMA4PI5N-c7c531ca.js');
9
+
10
+ // ../../../node_modules/@arcgis/core/core/ObjectPool.js
11
+ function t$3(t2) {
12
+ return t2?.release && "function" == typeof t2.release;
13
+ }
14
+ function i(t2) {
15
+ return t2?.acquire && "function" == typeof t2.acquire;
16
+ }
17
+ var e$2 = class _e {
18
+ constructor(t2, i2, e2, o = 1, s = 0) {
19
+ if (this._ctor = t2, this._acquireFunction = i2, this._releaseFunction = e2, this.allocationSize = o, this._pool = new Array(s), this._initialSize = s, this._ctor)
20
+ for (let n = 0; n < s; n++)
21
+ this._pool[n] = new this._ctor();
22
+ this.allocationSize = Math.max(o, 1);
23
+ }
24
+ destroy() {
25
+ this.prune(0);
26
+ }
27
+ acquire(...t2) {
28
+ let o;
29
+ if (_e.test.disabled)
30
+ o = new this._ctor();
31
+ else {
32
+ if (0 === this._pool.length) {
33
+ const t3 = this.allocationSize;
34
+ for (let i2 = 0; i2 < t3; i2++)
35
+ this._pool[i2] = new this._ctor();
36
+ }
37
+ o = this._pool.pop();
38
+ }
39
+ return this._acquireFunction ? this._acquireFunction(o, ...t2) : i(o) && o.acquire(...t2), o;
40
+ }
41
+ release(i2) {
42
+ i2 && !_e.test.disabled && (this._releaseFunction ? this._releaseFunction(i2) : t$3(i2) && i2.release(), this._pool.push(i2));
43
+ }
44
+ prune(t2 = this._initialSize) {
45
+ if (!(t2 >= this._pool.length)) {
46
+ for (let i2 = t2; i2 < this._pool.length; ++i2) {
47
+ const t3 = this._pool[i2];
48
+ this._dispose(t3);
49
+ }
50
+ this._pool.length = t2;
51
+ }
52
+ }
53
+ _dispose(t2) {
54
+ t2.dispose && "function" == typeof t2.dispose && t2.dispose();
55
+ }
56
+ };
57
+ e$2.test = { disabled: false };
58
+
59
+ // ../../../node_modules/@arcgis/core/core/nextTick.js
60
+ var o$1 = [];
61
+ function t$2(t2) {
62
+ o$1.push(t2), 1 === o$1.length && queueMicrotask(() => {
63
+ const t3 = o$1.slice();
64
+ o$1.length = 0;
65
+ for (const o2 of t3)
66
+ o2();
67
+ });
68
+ }
69
+
70
+ // ../../../node_modules/@arcgis/core/core/time.js
71
+ function n$1(n2) {
72
+ return n2;
73
+ }
74
+
75
+ // ../../../node_modules/@arcgis/core/core/HeapSort.js
76
+ var o;
77
+ !function(o2) {
78
+ const t2 = (o3, t3, n3, e3) => {
79
+ let i2 = t3, c = t3;
80
+ const l2 = n3 >>> 1, r = o3[i2 - 1];
81
+ for (; c <= l2; ) {
82
+ c = i2 << 1, c < n3 && e3(o3[c - 1], o3[c]) < 0 && ++c;
83
+ const t4 = o3[c - 1];
84
+ if (e3(t4, r) <= 0)
85
+ break;
86
+ o3[i2 - 1] = t4, i2 = c;
87
+ }
88
+ o3[i2 - 1] = r;
89
+ }, n2 = (o3, t3) => o3 < t3 ? -1 : o3 > t3 ? 1 : 0;
90
+ function e2(o3, e3, i2, c) {
91
+ void 0 === e3 && (e3 = 0), void 0 === i2 && (i2 = o3.length), void 0 === c && (c = n2);
92
+ for (let n3 = i2 >>> 1; n3 > e3; n3--)
93
+ t2(o3, n3, i2, c);
94
+ const l2 = e3 + 1;
95
+ for (let n3 = i2 - 1; n3 > e3; n3--) {
96
+ const i3 = o3[e3];
97
+ o3[e3] = o3[n3], o3[n3] = i3, t2(o3, l2, n3, c);
98
+ }
99
+ }
100
+ function* i(o3, e3, i2, c) {
101
+ void 0 === e3 && (e3 = 0), void 0 === i2 && (i2 = o3.length), void 0 === c && (c = n2);
102
+ for (let n3 = i2 >>> 1; n3 > e3; n3--)
103
+ t2(o3, n3, i2, c), yield;
104
+ const l2 = e3 + 1;
105
+ for (let n3 = i2 - 1; n3 > e3; n3--) {
106
+ const i3 = o3[e3];
107
+ o3[e3] = o3[n3], o3[n3] = i3, t2(o3, l2, n3, c), yield;
108
+ }
109
+ }
110
+ o2.sort = e2, o2.iterableSort = i;
111
+ }(o || (o = {}));
112
+ var t$1 = o;
113
+
114
+ // ../../../node_modules/@arcgis/core/core/PooledArray.js
115
+ var a = 1.5;
116
+ var e$1 = 1.1;
117
+ var l$1 = class {
118
+ constructor(h) {
119
+ this.data = [], this._length = 0, this._allocator = void 0, this._deallocator = () => null, this._shrink = () => {
120
+ }, this._hint = new chunkOMA4PI5N.v(), h && (h.initialSize && (this.data = new Array(h.initialSize)), h.allocator && (this._allocator = h.allocator), void 0 !== h.deallocator && (this._deallocator = h.deallocator), h.shrink && (this._shrink = () => n(this)));
121
+ }
122
+ toArray() {
123
+ return this.data.slice(0, this.length);
124
+ }
125
+ filter(t2) {
126
+ const h = new Array();
127
+ for (let i = 0; i < this._length; i++) {
128
+ const s = this.data[i];
129
+ t2(s) && h.push(s);
130
+ }
131
+ return h;
132
+ }
133
+ at(t2) {
134
+ if ((t2 = Math.trunc(t2) || 0) < 0 && (t2 += this._length), !(t2 < 0 || t2 >= this._length))
135
+ return this.data[t2];
136
+ }
137
+ includes(t2, h) {
138
+ const i = this.data.indexOf(t2, h);
139
+ return -1 !== i && i < this.length;
140
+ }
141
+ get length() {
142
+ return this._length;
143
+ }
144
+ set length(t2) {
145
+ if (t2 > this._length) {
146
+ if (this._allocator) {
147
+ for (; this._length < t2; )
148
+ this.data[this._length++] = this._allocator(this.data[this._length]);
149
+ return;
150
+ }
151
+ this._length = t2;
152
+ } else {
153
+ if (this._deallocator)
154
+ for (let h = t2; h < this._length; ++h)
155
+ this.data[h] = this._deallocator(this.data[h]);
156
+ this._length = t2, this._shrink();
157
+ }
158
+ }
159
+ clear() {
160
+ this.length = 0;
161
+ }
162
+ prune() {
163
+ this.clear(), this.data = [];
164
+ }
165
+ push(t2) {
166
+ this.data[this._length++] = t2;
167
+ }
168
+ pushArray(t2, h = t2.length) {
169
+ for (let i = 0; i < h; i++)
170
+ this.data[this._length++] = t2[i];
171
+ }
172
+ fill(t2, h) {
173
+ for (let i = 0; i < h; i++)
174
+ this.data[this._length++] = t2;
175
+ }
176
+ pushNew() {
177
+ this._allocator && (this.data[this.length] = this._allocator(this.data[this.length]));
178
+ const t2 = this.data[this._length];
179
+ return ++this._length, t2;
180
+ }
181
+ unshift(t2) {
182
+ this.data.unshift(t2), this._length++, n(this);
183
+ }
184
+ pop() {
185
+ if (0 === this.length)
186
+ return;
187
+ const t2 = this.data[this.length - 1];
188
+ return this.length = this.length - 1, this._shrink(), t2;
189
+ }
190
+ remove(t2) {
191
+ const i = chunkOMA4PI5N.S(this.data, t2, this.length, this._hint);
192
+ if (-1 !== i)
193
+ return this.data.splice(i, 1), this.length = this.length - 1, t2;
194
+ }
195
+ removeUnordered(t2) {
196
+ return this.removeUnorderedIndex(chunkOMA4PI5N.S(this.data, t2, this.length, this._hint));
197
+ }
198
+ removeUnorderedIndex(t2) {
199
+ if (!(t2 >= this.length || t2 < 0))
200
+ return this.swapElements(t2, this.length - 1), this.pop();
201
+ }
202
+ removeUnorderedMany(t2, h = t2.length, s) {
203
+ this.length = chunkOMA4PI5N.j(this.data, t2, this.length, h, this._hint, s), this._shrink();
204
+ }
205
+ front() {
206
+ if (0 !== this.length)
207
+ return this.data[0];
208
+ }
209
+ back() {
210
+ if (0 !== this.length)
211
+ return this.data[this.length - 1];
212
+ }
213
+ swapElements(t2, h) {
214
+ if (t2 >= this.length || h >= this.length || t2 === h)
215
+ return;
216
+ const i = this.data[t2];
217
+ this.data[t2] = this.data[h], this.data[h] = i;
218
+ }
219
+ sort(t2) {
220
+ t$1.sort(this.data, 0, this.length, t2);
221
+ }
222
+ iterableSort(t2) {
223
+ return t$1.iterableSort(this.data, 0, this.length, t2);
224
+ }
225
+ some(t2, h) {
226
+ for (let i = 0; i < this.length; ++i)
227
+ if (t2.call(h, this.data[i], i, this.data))
228
+ return true;
229
+ return false;
230
+ }
231
+ find(t2, h) {
232
+ for (let i = 0; i < this.length; ++i) {
233
+ const s = this.data[i];
234
+ if (t2.call(h, s, i))
235
+ return s;
236
+ }
237
+ }
238
+ filterInPlace(t2, h) {
239
+ let i = 0;
240
+ for (let s = 0; s < this._length; ++s) {
241
+ const a2 = this.data[s];
242
+ t2.call(h, a2, s, this.data) && (this.data[s] = this.data[i], this.data[i] = a2, i++);
243
+ }
244
+ if (this._deallocator)
245
+ for (let s = i; s < this._length; s++)
246
+ this.data[s] = this._deallocator(this.data[s]);
247
+ return this._length = i, this._shrink(), this;
248
+ }
249
+ forAll(t2, h) {
250
+ const { data: i, length: s } = this;
251
+ for (let a2 = 0; a2 < s; ++a2)
252
+ t2.call(h, i[a2], a2, i);
253
+ }
254
+ forEach(t2, h) {
255
+ this.data.slice(0, this.length).forEach(t2, h);
256
+ }
257
+ map(t2, h) {
258
+ const i = new Array(this.length);
259
+ for (let s = 0; s < this.length; ++s)
260
+ i[s] = t2.call(h, this.data[s], s, this.data);
261
+ return i;
262
+ }
263
+ reduce(t2, h) {
264
+ let i = h;
265
+ for (let s = 0; s < this.length; ++s)
266
+ i = t2(i, this.data[s], s, this.data);
267
+ return i;
268
+ }
269
+ has(t2) {
270
+ const h = this.length, i = this.data;
271
+ for (let s = 0; s < h; ++s)
272
+ if (i[s] === t2)
273
+ return true;
274
+ return false;
275
+ }
276
+ *[Symbol.iterator]() {
277
+ for (let t2 = 0; t2 < this.length; t2++)
278
+ yield this.data[t2];
279
+ }
280
+ };
281
+ function n(t2) {
282
+ t2.data.length > a * t2.length && (t2.data.length = Math.floor(t2.length * e$1));
283
+ }
284
+
285
+ // ../../../node_modules/@arcgis/core/core/maybe.js
286
+ function u(n2) {
287
+ return n2?.destroy(), null;
288
+ }
289
+
290
+ // ../../../node_modules/@arcgis/core/core/PerformanceSampler.js
291
+ var s$1 = class {
292
+ constructor(s2, e = 30) {
293
+ this.name = s2, this._counter = 0, this._samples = new Array(e);
294
+ }
295
+ record(s2) {
296
+ null != s2 && (this._samples[++this._counter % this._samples.length] = s2);
297
+ }
298
+ get median() {
299
+ return this._samples.slice().sort((s2, e) => s2 - e)[Math.floor(this._samples.length / 2)];
300
+ }
301
+ get average() {
302
+ return this._samples.reduce((s2, e) => s2 + e, 0) / this._samples.length;
303
+ }
304
+ get last() {
305
+ return this._samples[this._counter % this._samples.length];
306
+ }
307
+ };
308
+ var c2$1 = class {
309
+ constructor(e) {
310
+ this.callback = e, this.isActive = true;
311
+ }
312
+ remove() {
313
+ this.isActive = false;
314
+ }
315
+ };
316
+ var m = 0;
317
+ var u2 = { time: n$1(0), deltaTime: n$1(0), elapsedFrameTime: n$1(0), frameDuration: n$1(0) };
318
+ var p = ["prepare", "preRender", "render", "postRender", "update", "finish"];
319
+ var f = [];
320
+ var h = new l$1();
321
+ function w() {
322
+ }
323
+ var k = { frameTasks: h, willDispatch: false, clearFrameTasks: T$1, dispatch: _$1, executeFrameTasks: D, reschedule: w };
324
+ function v(t2) {
325
+ const r = new c2$1(t2);
326
+ return f.push(r), k.willDispatch || (k.willDispatch = true, t$2(_$1)), r;
327
+ }
328
+ function T$1(e = false) {
329
+ h.forAll((e2) => {
330
+ e2.removed = true;
331
+ }), e && q$1();
332
+ }
333
+ function D(e) {
334
+ const t2 = n$1(e - m);
335
+ m = e;
336
+ const r = 1e3 / 60, n2 = Math.max(0, t2 - r);
337
+ u2.time = e, u2.frameDuration = n$1(r - n2);
338
+ for (let s2 = 0; s2 < p.length; s2++) {
339
+ const r2 = performance.now(), n3 = p[s2];
340
+ h.forAll((r3) => {
341
+ if (r3.paused || r3.removed)
342
+ return;
343
+ 0 === s2 && r3.ticks++;
344
+ r3.phases[n3] && (u2.elapsedFrameTime = n$1(performance.now() - e), u2.deltaTime = 0 === r3.ticks ? n$1(0) : t2, r3.phases[n3]?.call(r3, u2));
345
+ }), b$1[s2].record(performance.now() - r2);
346
+ }
347
+ q$1(), U.record(performance.now() - e);
348
+ }
349
+ var g = new l$1();
350
+ function q$1() {
351
+ h.forAll((e) => {
352
+ e.removed && g.push(e);
353
+ }), h.removeUnorderedMany(g.data, g.length), g.clear();
354
+ }
355
+ function _$1() {
356
+ for (; f.length; ) {
357
+ const e = f.shift();
358
+ e.isActive && e.callback();
359
+ }
360
+ k.willDispatch = false;
361
+ }
362
+ var b$1 = p.map((e) => new s$1(e));
363
+ var U = new s$1("total");
364
+
365
+ // ../../../node_modules/@arcgis/core/core/iteratorUtils.js
366
+ function t(n2) {
367
+ return null != n2 && "function" == typeof n2[Symbol.iterator];
368
+ }
369
+
370
+ // ../../../node_modules/@arcgis/core/core/Handles.js
371
+ var r = class {
372
+ constructor() {
373
+ this._groups = /* @__PURE__ */ new Map();
374
+ }
375
+ destroy() {
376
+ this.removeAll();
377
+ }
378
+ get size() {
379
+ let t2 = 0;
380
+ return this._groups.forEach((r2) => {
381
+ t2 += r2.length;
382
+ }), t2;
383
+ }
384
+ add(r2, e2) {
385
+ if (t(r2)) {
386
+ const t2 = this._getOrCreateGroup(e2);
387
+ for (const e3 of r2)
388
+ o2(e3) && t2.push(e3);
389
+ } else if (o2(r2)) {
390
+ this._getOrCreateGroup(e2).push(r2);
391
+ }
392
+ return this;
393
+ }
394
+ forEach(t2, r2) {
395
+ if ("function" == typeof t2)
396
+ this._groups.forEach((r3) => r3.forEach(t2));
397
+ else {
398
+ const e2 = this._getGroup(t2);
399
+ e2 && r2 && e2.forEach(r2);
400
+ }
401
+ }
402
+ has(t2) {
403
+ return this._groups.has(e(t2));
404
+ }
405
+ remove(r2) {
406
+ if ("string" != typeof r2 && t(r2)) {
407
+ for (const t2 of r2)
408
+ this.remove(t2);
409
+ return this;
410
+ }
411
+ return this.has(r2) ? (s(this._getGroup(r2)), this._groups.delete(e(r2)), this) : this;
412
+ }
413
+ removeAll() {
414
+ return this._groups.forEach(s), this._groups.clear(), this;
415
+ }
416
+ _getOrCreateGroup(t2) {
417
+ if (this.has(t2))
418
+ return this._getGroup(t2);
419
+ const r2 = [];
420
+ return this._groups.set(e(t2), r2), r2;
421
+ }
422
+ _getGroup(t2) {
423
+ return this._groups.get(e(t2));
424
+ }
425
+ };
426
+ function e(t2) {
427
+ return t2 || "_default_";
428
+ }
429
+ function s(t2) {
430
+ for (const e2 of t2)
431
+ e2 instanceof r ? e2.removeAll() : e2.remove();
432
+ }
433
+ function o2(t2) {
434
+ return null != t2 && (!!t2.remove || t2 instanceof r);
435
+ }
436
+
437
+ // ../../../node_modules/@arcgis/core/core/deprecate.js
438
+ var e3 = /* @__PURE__ */ new WeakMap();
439
+ function n2(n6, t11, i6 = false) {
440
+ const o9 = `\u{1F6D1} DEPRECATED - ${t11}`;
441
+ if (!i6)
442
+ return void n6.warn(o9);
443
+ let r9 = e3.get(n6);
444
+ r9 || (r9 = /* @__PURE__ */ new Set(), e3.set(n6, r9)), r9.has(t11) || (r9.add(t11), n6.warn(o9));
445
+ }
446
+ function i2(e9, n6, t11 = {}) {
447
+ if (chunkOMA4PI5N.has("esri-deprecation-warnings")) {
448
+ const { moduleName: i6 } = t11;
449
+ r3(e9, `Function: ${(i6 ? i6 + "::" : "") + n6 + "()"}`, t11);
450
+ }
451
+ }
452
+ function r3(e9, t11, i6 = {}) {
453
+ if (chunkOMA4PI5N.has("esri-deprecation-warnings")) {
454
+ const { replacement: o9, version: r9, see: a3, warnOnce: s6 } = i6;
455
+ let c3 = t11;
456
+ o9 && (c3 += `
457
+ \u{1F6E0}\uFE0F Replacement: ${o9}`), r9 && (c3 += `
458
+ \u2699\uFE0F Version: ${r9}`), a3 && (c3 += `
459
+ \u{1F517} See ${a3} for more details.`), n2(e9, c3, s6);
460
+ }
461
+ }
462
+
463
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/tracking/ObservationHandle.js
464
+ var s2 = class {
465
+ constructor(r9, s6) {
466
+ this._observers = r9, this._observer = s6;
467
+ }
468
+ remove() {
469
+ chunkOMA4PI5N.O(this._observers, this._observer);
470
+ }
471
+ };
472
+
473
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/ObservableBase.js
474
+ var r4 = class {
475
+ constructor() {
476
+ this._observers = null, this.destroyed = false;
477
+ }
478
+ observe(e9) {
479
+ if (this.destroyed || e9.destroyed)
480
+ return t3;
481
+ null == this._observers && (this._observers = []);
482
+ const r9 = this._observers;
483
+ let o9 = false, i6 = false;
484
+ const n6 = r9.length;
485
+ for (let s6 = 0; s6 < n6; ++s6) {
486
+ const t11 = r9[s6];
487
+ if (t11.destroyed)
488
+ i6 = true;
489
+ else if (t11 === e9) {
490
+ o9 = true;
491
+ break;
492
+ }
493
+ }
494
+ return o9 || (r9.push(e9), i6 && this._removeDestroyedObservers()), new s2(r9, e9);
495
+ }
496
+ _removeDestroyedObservers() {
497
+ const e9 = this._observers;
498
+ if (!e9 || 0 === e9.length)
499
+ return;
500
+ const s6 = e9.length;
501
+ let r9 = 0;
502
+ for (let t11 = 0; t11 < s6; ++t11) {
503
+ for (; t11 + r9 < s6; ) {
504
+ if (!e9[t11 + r9].destroyed)
505
+ break;
506
+ ++r9;
507
+ }
508
+ if (r9 > 0) {
509
+ if (!(t11 + r9 < s6))
510
+ break;
511
+ e9[t11] = e9[t11 + r9];
512
+ }
513
+ }
514
+ e9.length = s6 - r9;
515
+ }
516
+ destroy() {
517
+ if (this.destroyed)
518
+ return;
519
+ this.destroyed = true;
520
+ const e9 = this._observers;
521
+ if (null != e9) {
522
+ for (const s6 of e9)
523
+ s6.onCommitted();
524
+ this._observers = null;
525
+ }
526
+ }
527
+ };
528
+ var t3 = chunkOMA4PI5N.e();
529
+
530
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/PropertyOrigin.js
531
+ var e4;
532
+ !function(e9) {
533
+ e9[e9.DEFAULTS = 0] = "DEFAULTS", e9[e9.COMPUTED = 1] = "COMPUTED", e9[e9.SERVICE = 2] = "SERVICE", e9[e9.PORTAL_ITEM = 3] = "PORTAL_ITEM", e9[e9.WEB_SCENE = 4] = "WEB_SCENE", e9[e9.WEB_MAP = 5] = "WEB_MAP", e9[e9.LINK_CHART = 6] = "LINK_CHART", e9[e9.USER = 7] = "USER";
534
+ }(e4 || (e4 = {}));
535
+ function n3(r9) {
536
+ switch (r9) {
537
+ case "defaults":
538
+ return e4.DEFAULTS;
539
+ case "service":
540
+ return e4.SERVICE;
541
+ case "portal-item":
542
+ return e4.PORTAL_ITEM;
543
+ case "web-scene":
544
+ return e4.WEB_SCENE;
545
+ case "web-map":
546
+ return e4.WEB_MAP;
547
+ case "link-chart":
548
+ return e4.LINK_CHART;
549
+ case "user":
550
+ return e4.USER;
551
+ default:
552
+ return null;
553
+ }
554
+ }
555
+ function t4(r9) {
556
+ switch (r9) {
557
+ case e4.DEFAULTS:
558
+ return "defaults";
559
+ case e4.SERVICE:
560
+ return "service";
561
+ case e4.PORTAL_ITEM:
562
+ return "portal-item";
563
+ case e4.WEB_SCENE:
564
+ return "web-scene";
565
+ case e4.WEB_MAP:
566
+ return "web-map";
567
+ case e4.LINK_CHART:
568
+ return "link-chart";
569
+ case e4.USER:
570
+ return "user";
571
+ }
572
+ }
573
+
574
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/Property.js
575
+ var o4 = class extends r4 {
576
+ constructor(t11, s6) {
577
+ super(), this.propertyName = t11, this.metadata = s6, this._accessed = null, this._handles = null, this.flags = 0, this.flags = chunkOMA4PI5N.i.Dirty | (s6.nonNullable ? chunkOMA4PI5N.i.NonNullable : 0) | (s6.hasOwnProperty("value") ? chunkOMA4PI5N.i.HasDefaultValue : 0) | (void 0 === s6.get ? chunkOMA4PI5N.i.DepTrackingInitialized : 0) | (void 0 === s6.dependsOn ? chunkOMA4PI5N.i.AutoTracked : 0);
578
+ }
579
+ destroy() {
580
+ this.flags & chunkOMA4PI5N.i.Dirty && this.onCommitted(), super.destroy(), this._accessed = null, this._clearObservationHandles();
581
+ }
582
+ getComputed(t11) {
583
+ chunkOMA4PI5N.s3(this);
584
+ const o9 = t11.store, r9 = this.propertyName, h3 = this.flags, d2 = o9.get(r9);
585
+ if (h3 & chunkOMA4PI5N.i.Computing)
586
+ return d2;
587
+ if (~h3 & chunkOMA4PI5N.i.Dirty && o9.has(r9))
588
+ return d2;
589
+ this.flags |= chunkOMA4PI5N.i.Computing;
590
+ const c3 = t11.host;
591
+ let g5;
592
+ h3 & chunkOMA4PI5N.i.AutoTracked ? g5 = chunkOMA4PI5N.f(this, this.metadata.get, c3) : (chunkOMA4PI5N.k2(c3, this), g5 = this.metadata.get.call(c3)), o9.set(r9, g5, e4.COMPUTED);
593
+ const f6 = o9.get(r9);
594
+ return f6 === d2 ? this.flags &= ~chunkOMA4PI5N.i.Dirty : chunkOMA4PI5N.g(this.commit, this), this.flags &= ~chunkOMA4PI5N.i.Computing, f6;
595
+ }
596
+ onObservableAccessed(t11) {
597
+ if (t11 === this)
598
+ return;
599
+ let s6 = this._accessed;
600
+ if (null == s6)
601
+ s6 = [], this._accessed = s6;
602
+ else if (s6.includes(t11))
603
+ return;
604
+ s6.push(t11);
605
+ }
606
+ onTrackingEnd() {
607
+ this._clearObservationHandles(), this.flags |= chunkOMA4PI5N.i.DepTrackingInitialized;
608
+ const t11 = this._accessed;
609
+ if (null == t11 || 0 === t11.length)
610
+ return;
611
+ let s6 = this._handles;
612
+ null == s6 && (s6 = [], this._handles = s6);
613
+ for (let e9 = 0; e9 < t11.length; ++e9)
614
+ s6.push(t11[e9].observe(this));
615
+ t11.length = 0;
616
+ }
617
+ notifyChange() {
618
+ this.onInvalidated(), this.onCommitted();
619
+ }
620
+ invalidate() {
621
+ this.onInvalidated();
622
+ }
623
+ commit() {
624
+ this.flags &= ~chunkOMA4PI5N.i.Dirty, this.onCommitted();
625
+ }
626
+ _clearObservationHandles() {
627
+ const t11 = this._handles;
628
+ if (null !== t11) {
629
+ for (let s6 = 0; s6 < t11.length; ++s6)
630
+ t11[s6].remove();
631
+ t11.length = 0;
632
+ }
633
+ }
634
+ onInvalidated() {
635
+ ~this.flags & chunkOMA4PI5N.i.Overridden && (this.flags |= chunkOMA4PI5N.i.Dirty);
636
+ const t11 = this._observers;
637
+ if (t11 && t11.length > 0)
638
+ for (const s6 of t11)
639
+ s6.onInvalidated();
640
+ }
641
+ onCommitted() {
642
+ const t11 = this._observers;
643
+ if (t11 && t11.length > 0) {
644
+ const s6 = t11.slice();
645
+ for (const t12 of s6)
646
+ t12.onCommitted();
647
+ }
648
+ }
649
+ };
650
+
651
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/Store.js
652
+ var t5 = class _t {
653
+ constructor() {
654
+ this._values = /* @__PURE__ */ new Map(), this.multipleOriginsSupported = false;
655
+ }
656
+ clone(s6) {
657
+ const r9 = new _t();
658
+ return this._values.forEach((t11, i6) => {
659
+ s6 && s6.has(i6) || r9.set(i6, chunkOMA4PI5N.a2(t11));
660
+ }), r9;
661
+ }
662
+ get(e9) {
663
+ return this._values.get(e9);
664
+ }
665
+ originOf() {
666
+ return e4.USER;
667
+ }
668
+ keys() {
669
+ return [...this._values.keys()];
670
+ }
671
+ set(e9, s6) {
672
+ this._values.set(e9, s6);
673
+ }
674
+ delete(e9) {
675
+ this._values.delete(e9);
676
+ }
677
+ has(e9) {
678
+ return this._values.has(e9);
679
+ }
680
+ forEach(e9) {
681
+ this._values.forEach(e9);
682
+ }
683
+ };
684
+
685
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/Properties.js
686
+ function f2(t11, e9, i6) {
687
+ return void 0 !== t11;
688
+ }
689
+ function d(t11, e9, s6, r9) {
690
+ return void 0 !== t11 && (!(null == s6 && t11.flags & chunkOMA4PI5N.i.NonNullable) || (false));
691
+ }
692
+ var g2 = class {
693
+ constructor(t11) {
694
+ this.host = t11, this.propertiesByName = /* @__PURE__ */ new Map(), this.ctorArgs = null, this.lifecycle = chunkOMA4PI5N.I.INITIALIZING, this.store = new t5(), this._origin = e4.USER;
695
+ const e9 = this.host.constructor.__accessorMetadata__;
696
+ for (const i6 in e9) {
697
+ const t12 = new o4(i6, e9[i6]);
698
+ this.propertiesByName.set(i6, t12);
699
+ }
700
+ this.metadata = e9;
701
+ }
702
+ initialize() {
703
+ this.lifecycle = chunkOMA4PI5N.I.CONSTRUCTING;
704
+ }
705
+ constructed() {
706
+ this.lifecycle = chunkOMA4PI5N.I.CONSTRUCTED;
707
+ }
708
+ destroy() {
709
+ this.lifecycle = chunkOMA4PI5N.I.DESTROYED, this.propertiesByName.forEach((t11) => t11.destroy());
710
+ }
711
+ get initialized() {
712
+ return this.lifecycle !== chunkOMA4PI5N.I.INITIALIZING;
713
+ }
714
+ get(t11) {
715
+ const e9 = this.propertiesByName.get(t11);
716
+ if (e9.metadata.get)
717
+ return e9.getComputed(this);
718
+ chunkOMA4PI5N.s3(e9);
719
+ const i6 = this.store;
720
+ return i6.has(t11) ? i6.get(t11) : e9.metadata.value;
721
+ }
722
+ originOf(t11) {
723
+ const e9 = this.store.originOf(t11);
724
+ if (void 0 === e9) {
725
+ const e10 = this.propertiesByName.get(t11);
726
+ if (void 0 !== e10 && e10.flags & chunkOMA4PI5N.i.HasDefaultValue)
727
+ return "defaults";
728
+ }
729
+ return t4(e9);
730
+ }
731
+ has(t11) {
732
+ return this.propertiesByName.has(t11) && this.store.has(t11);
733
+ }
734
+ keys() {
735
+ return [...this.propertiesByName.keys()];
736
+ }
737
+ internalGet(t11) {
738
+ const e9 = this.propertiesByName.get(t11);
739
+ if (f2(e9))
740
+ return this.store.has(t11) ? this.store.get(t11) : e9.metadata.value;
741
+ }
742
+ internalSet(t11, e9) {
743
+ const i6 = this.propertiesByName.get(t11);
744
+ f2(i6) && this._internalSet(i6, e9);
745
+ }
746
+ getDependsInfo(t11, e9, i6) {
747
+ const r9 = this.propertiesByName.get(e9);
748
+ if (!f2(r9))
749
+ return "";
750
+ const o9 = /* @__PURE__ */ new Set(), a3 = chunkOMA4PI5N.f({ onObservableAccessed: (t12) => o9.add(t12), onTrackingEnd: () => {
751
+ } }, () => r9.metadata.get?.call(t11));
752
+ let n6 = `${i6}${t11.declaredClass.split(".").pop()}.${e9}: ${a3}
753
+ `;
754
+ if (0 === o9.size)
755
+ return n6;
756
+ i6 += " ";
757
+ for (const c3 of o9) {
758
+ if (!(c3 instanceof o4))
759
+ continue;
760
+ n6 += `${i6}${c3.propertyName}: undefined
761
+ `;
762
+ }
763
+ return n6;
764
+ }
765
+ setAtOrigin(t11, e9, i6) {
766
+ const s6 = this.propertiesByName.get(t11);
767
+ if (f2(s6))
768
+ return this._setAtOrigin(s6, e9, i6);
769
+ }
770
+ isOverridden(t11) {
771
+ const e9 = this.propertiesByName.get(t11);
772
+ return void 0 !== e9 && !!(e9.flags & chunkOMA4PI5N.i.Overridden);
773
+ }
774
+ clearOverride(t11) {
775
+ const e9 = this.propertiesByName.get(t11);
776
+ e9 && e9.flags & chunkOMA4PI5N.i.Overridden && (e9.flags &= ~chunkOMA4PI5N.i.Overridden, e9.notifyChange());
777
+ }
778
+ override(t11, e9) {
779
+ const i6 = this.propertiesByName.get(t11);
780
+ if (!d(i6, t11, e9))
781
+ return;
782
+ const s6 = i6.metadata.cast;
783
+ if (s6) {
784
+ const t12 = this._cast(s6, e9), { valid: i7, value: r9 } = t12;
785
+ if (u4.release(t12), !i7)
786
+ return;
787
+ e9 = r9;
788
+ }
789
+ i6.flags |= chunkOMA4PI5N.i.Overridden, this._internalSet(i6, e9);
790
+ }
791
+ set(t11, e9) {
792
+ const i6 = this.propertiesByName.get(t11);
793
+ if (!d(i6, t11, e9))
794
+ return;
795
+ const s6 = i6.metadata.cast;
796
+ if (s6) {
797
+ const t12 = this._cast(s6, e9), { valid: i7, value: r10 } = t12;
798
+ if (u4.release(t12), !i7)
799
+ return;
800
+ e9 = r10;
801
+ }
802
+ const r9 = i6.metadata.set;
803
+ r9 ? r9.call(this.host, e9) : this._internalSet(i6, e9);
804
+ }
805
+ setDefaultOrigin(t11) {
806
+ this._origin = n3(t11);
807
+ }
808
+ getDefaultOrigin() {
809
+ return t4(this._origin);
810
+ }
811
+ notifyChange(t11) {
812
+ const e9 = this.propertiesByName.get(t11);
813
+ void 0 !== e9 && e9.notifyChange();
814
+ }
815
+ invalidate(t11) {
816
+ const e9 = this.propertiesByName.get(t11);
817
+ void 0 !== e9 && e9.invalidate();
818
+ }
819
+ commit(t11) {
820
+ const e9 = this.propertiesByName.get(t11);
821
+ void 0 !== e9 && e9.commit();
822
+ }
823
+ _internalSet(t11, e9) {
824
+ const s6 = this.lifecycle !== chunkOMA4PI5N.I.INITIALIZING ? this._origin : e4.DEFAULTS;
825
+ this._setAtOrigin(t11, e9, s6);
826
+ }
827
+ _setAtOrigin(e9, i6, s6) {
828
+ const r9 = this.store, o9 = e9.propertyName;
829
+ r9.has(o9, s6) && chunkOMA4PI5N.j$1(i6, r9.get(o9)) && ~e9.flags & chunkOMA4PI5N.i.Overridden && s6 === r9.originOf(o9) || (e9.invalidate(), r9.set(o9, i6, s6), e9.commit(), chunkOMA4PI5N.m(this.host, e9));
830
+ }
831
+ _cast(t11, e9) {
832
+ const i6 = u4.acquire();
833
+ return i6.valid = true, i6.value = e9, t11 && (i6.value = t11.call(this.host, e9, i6)), i6;
834
+ }
835
+ };
836
+ var m2 = class {
837
+ constructor() {
838
+ this.value = null, this.valid = true;
839
+ }
840
+ acquire() {
841
+ this.valid = true;
842
+ }
843
+ release() {
844
+ this.value = null;
845
+ }
846
+ };
847
+ var u4 = new e$2(m2);
848
+
849
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/testSupport.js
850
+ var r6;
851
+ function o5() {
852
+ return r6;
853
+ }
854
+ var t6;
855
+ !function(r9) {
856
+ r9[r9.Ignore = 0] = "Ignore", r9[r9.Destroy = 1] = "Destroy", r9[r9.ThrowError = 2] = "ThrowError";
857
+ }(t6 || (t6 = {}));
858
+
859
+ // ../../../node_modules/@arcgis/core/core/ArrayPool.js
860
+ function r7(e9) {
861
+ e9.length = 0;
862
+ }
863
+ var t7 = class {
864
+ constructor(t11 = 50, o9 = 50) {
865
+ this._pool = new e$2(Array, void 0, r7, o9, t11);
866
+ }
867
+ acquire() {
868
+ return this._pool.acquire();
869
+ }
870
+ release(e9) {
871
+ this._pool.release(e9);
872
+ }
873
+ prune() {
874
+ this._pool.prune(0);
875
+ }
876
+ static acquire() {
877
+ return o6.acquire();
878
+ }
879
+ static release(e9) {
880
+ return o6.release(e9);
881
+ }
882
+ static prune() {
883
+ o6.prune();
884
+ }
885
+ };
886
+ var o6 = new t7(100);
887
+
888
+ // ../../../node_modules/@arcgis/core/core/ReentrantObjectPool.js
889
+ var s3 = class extends e$2 {
890
+ constructor() {
891
+ super(...arguments), this._set = /* @__PURE__ */ new Set();
892
+ }
893
+ destroy() {
894
+ super.destroy(), this._set = null;
895
+ }
896
+ acquire(...e9) {
897
+ const s6 = super.acquire(...e9);
898
+ return this._set.delete(s6), s6;
899
+ }
900
+ release(e9) {
901
+ e9 && !this._set.has(e9) && (super.release(e9), this._set.add(e9));
902
+ }
903
+ _dispose(e9) {
904
+ this._set.delete(e9), super._dispose(e9);
905
+ }
906
+ };
907
+
908
+ // ../../../node_modules/@arcgis/core/core/uid.js
909
+ var t9 = 0;
910
+ function e6() {
911
+ return ++t9;
912
+ }
913
+
914
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/tracking/SimpleTrackingTarget.js
915
+ var t10 = class {
916
+ constructor(t11) {
917
+ this._accessed = [], this._handles = [], this._observerObject = new e7(t11), s5.register(this, new WeakRef(this._observerObject), this);
918
+ }
919
+ destroy() {
920
+ s5.unregister(this._observerObject), this._accessed.length = 0, this._observerObject?.destroy(), this.clear();
921
+ }
922
+ onObservableAccessed(t11) {
923
+ const e9 = this._accessed;
924
+ e9.includes(t11) || e9.push(t11);
925
+ }
926
+ onTrackingEnd() {
927
+ const t11 = this._handles, e9 = this._accessed, s6 = this._observerObject;
928
+ for (let i6 = 0; i6 < e9.length; ++i6)
929
+ t11.push(e9[i6].observe(s6));
930
+ e9.length = 0;
931
+ }
932
+ clear() {
933
+ const t11 = this._handles;
934
+ for (let e9 = 0; e9 < t11.length; ++e9)
935
+ t11[e9].remove();
936
+ t11.length = 0;
937
+ }
938
+ };
939
+ var e7 = class {
940
+ constructor(t11) {
941
+ this._notify = t11, this._invalidCount = 0, this.destroyed = false;
942
+ }
943
+ onInvalidated() {
944
+ this._invalidCount++;
945
+ }
946
+ onCommitted() {
947
+ if (this.destroyed)
948
+ return;
949
+ const t11 = this._invalidCount;
950
+ if (1 === t11)
951
+ return this._invalidCount = 0, void this._notify();
952
+ this._invalidCount = t11 > 0 ? t11 - 1 : 0;
953
+ }
954
+ destroy() {
955
+ this.destroyed = true, this._notify = i4;
956
+ }
957
+ };
958
+ var s5 = new FinalizationRegistry((t11) => {
959
+ t11.deref()?.destroy();
960
+ });
961
+ function i4() {
962
+ }
963
+
964
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/trackingUtils.js
965
+ var l = false;
966
+ var u6 = [];
967
+ function o8(u7, o9) {
968
+ let e9 = new t10(a3), i6 = null, s6 = false;
969
+ function a3() {
970
+ if (!e9 || s6)
971
+ return;
972
+ if (l)
973
+ return void c2(a3);
974
+ const n6 = i6;
975
+ e9.clear(), l = true, s6 = true, i6 = chunkOMA4PI5N.f(e9, u7), s6 = false, l = false, o9(i6, n6), f4();
976
+ }
977
+ function m5() {
978
+ e9 && (e9.destroy(), e9 = null, i6 = null);
979
+ }
980
+ return s6 = true, i6 = chunkOMA4PI5N.f(e9, u7), s6 = false, chunkOMA4PI5N.e(m5);
981
+ }
982
+ function e8(l2, u7) {
983
+ let o9 = new t10(i6), e9 = null;
984
+ function i6() {
985
+ u7(e9, f6);
986
+ }
987
+ function c3() {
988
+ o9 && (o9.destroy(), o9 = null), e9 = null;
989
+ }
990
+ function f6() {
991
+ return o9 ? (o9.clear(), e9 = chunkOMA4PI5N.f(o9, l2), e9) : null;
992
+ }
993
+ return f6(), chunkOMA4PI5N.e(c3);
994
+ }
995
+ function c2(n6) {
996
+ u6.includes(n6) || u6.unshift(n6);
997
+ }
998
+ function f4() {
999
+ for (; u6.length; )
1000
+ u6.pop()();
1001
+ }
1002
+
1003
+ // ../../../node_modules/@arcgis/core/core/accessorSupport/watch.js
1004
+ var h2;
1005
+ !function(e9) {
1006
+ e9[e9.Untracked = 0] = "Untracked", e9[e9.Tracked = 1] = "Tracked";
1007
+ }(h2 || (h2 = {}));
1008
+ var m3 = class {
1009
+ constructor() {
1010
+ this.uid = e6(), this.removed = false, this.type = null, this.oldValue = null, this.callback = null, this.getValue = null, this.target = null, this.path = null, this.equals = null;
1011
+ }
1012
+ static acquireUntracked(e9, t11, l2, o9, i6) {
1013
+ return this.pool.acquire(h2.Untracked, e9, t11, l2, o9, i6, chunkOMA4PI5N.j$1);
1014
+ }
1015
+ static acquireTracked(e9, t11, r9, l2) {
1016
+ return this.pool.acquire(h2.Tracked, e9, t11, r9, null, null, l2);
1017
+ }
1018
+ notify(e9, t11) {
1019
+ this.type === h2.Untracked ? this.callback.call(this.target, e9, t11, this.path, this.target) : this.callback.call(null, e9, t11, void 0, void 0);
1020
+ }
1021
+ acquire(e9, t11, r9, l2, o9, i6, n6) {
1022
+ this.uid = e6(), this.removed = false, this.type = e9, this.oldValue = t11, this.callback = r9, this.getValue = l2, this.target = o9, this.path = i6, this.equals = n6;
1023
+ }
1024
+ release() {
1025
+ this.target = this.path = this.oldValue = this.callback = this.getValue = null, this.uid = e6(), this.removed = true;
1026
+ }
1027
+ };
1028
+ m3.pool = new s3(m3);
1029
+ var p2 = new t7();
1030
+ var v2 = /* @__PURE__ */ new Set();
1031
+ var k2;
1032
+ function _(e9) {
1033
+ v2.delete(e9), v2.add(e9), k2 || (k2 = v(q));
1034
+ }
1035
+ function g3(e9) {
1036
+ if (e9.removed)
1037
+ return;
1038
+ const t11 = e9.oldValue, r9 = e9.getValue();
1039
+ e9.equals(t11, r9) || (e9.oldValue = r9, e9.notify(r9, t11));
1040
+ }
1041
+ function j2(e9) {
1042
+ for (const t11 of v2.values())
1043
+ t11.target === e9 && (t11.removed = true);
1044
+ }
1045
+ function q() {
1046
+ let e9 = 10;
1047
+ for (; k2 && e9--; ) {
1048
+ k2 = null;
1049
+ const e10 = V(), t11 = p2.acquire();
1050
+ for (const r9 of e10) {
1051
+ const e11 = r9.uid;
1052
+ g3(r9), e11 === r9.uid && r9.removed && t11.push(r9);
1053
+ }
1054
+ for (const r9 of v2)
1055
+ r9.removed && (t11.push(r9), v2.delete(r9));
1056
+ for (const r9 of t11)
1057
+ m3.pool.release(r9);
1058
+ p2.release(t11), p2.release(e10), y2.forEach((e11) => e11());
1059
+ }
1060
+ }
1061
+ function V() {
1062
+ const e9 = p2.acquire();
1063
+ e9.length = v2.size;
1064
+ let t11 = 0;
1065
+ for (const r9 of v2)
1066
+ e9[t11] = r9, ++t11;
1067
+ return v2.clear(), e9;
1068
+ }
1069
+ var y2 = /* @__PURE__ */ new Set();
1070
+ function T(e9, r9, l2) {
1071
+ let o9 = chunkOMA4PI5N.p(e9, r9, l2, (e10, r10, l3) => {
1072
+ let i6, n6, s6 = e8(() => chunkOMA4PI5N.u(e10, r10), (t11, s7) => {
1073
+ e10.__accessor__?.lifecycle === chunkOMA4PI5N.I.DESTROYED || i6 && i6.uid !== n6 ? o9.remove() : (i6 || (i6 = m3.acquireUntracked(t11, l3, s7, e10, r10), n6 = i6.uid), _(i6));
1074
+ });
1075
+ return chunkOMA4PI5N.e(() => {
1076
+ s6.remove(), i6 && (i6.uid !== n6 || i6.removed || (i6.removed = true, _(i6)), i6 = null), o9 = s6 = null;
1077
+ });
1078
+ });
1079
+ return o9;
1080
+ }
1081
+ function E(e9, t11, l2) {
1082
+ const o9 = chunkOMA4PI5N.p(e9, t11, l2, (e10, t12, l3) => {
1083
+ let i6 = false;
1084
+ return o8(() => chunkOMA4PI5N.u(e10, t12), (n6, s6) => {
1085
+ e10.__accessor__.lifecycle !== chunkOMA4PI5N.I.DESTROYED ? i6 || (i6 = true, chunkOMA4PI5N.j$1(s6, n6) || l3.call(e10, n6, s6, t12, e10), i6 = false) : o9.remove();
1086
+ });
1087
+ });
1088
+ return o9;
1089
+ }
1090
+ function b(e9, r9, l2, o9 = false) {
1091
+ return e9.__accessor__ && e9.__accessor__.lifecycle !== chunkOMA4PI5N.I.DESTROYED ? o9 ? E(e9, r9, l2) : T(e9, r9, l2) : chunkOMA4PI5N.e();
1092
+ }
1093
+
1094
+ // ../../../node_modules/@arcgis/core/core/Accessor.js
1095
+ var y3;
1096
+ var m4;
1097
+ function f5(r9) {
1098
+ if (null == r9)
1099
+ return { value: r9 };
1100
+ if (Array.isArray(r9))
1101
+ return { type: [r9[0]], value: null };
1102
+ switch (typeof r9) {
1103
+ case "object":
1104
+ return r9.constructor?.__accessorMetadata__ || r9 instanceof Date ? { type: r9.constructor, value: r9 } : r9;
1105
+ case "boolean":
1106
+ return { type: Boolean, value: r9 };
1107
+ case "string":
1108
+ return { type: String, value: r9 };
1109
+ case "number":
1110
+ return { type: Number, value: r9 };
1111
+ case "function":
1112
+ return { type: r9, value: null };
1113
+ default:
1114
+ return;
1115
+ }
1116
+ }
1117
+ var v3 = Symbol("Accessor-Handles");
1118
+ var g4 = Symbol("Accessor-Initialized");
1119
+ var S2 = class _S {
1120
+ static createSubclass(r9 = {}) {
1121
+ if (Array.isArray(r9))
1122
+ throw new Error("Multi-inheritance unsupported since 4.16");
1123
+ const { properties: t11, declaredClass: e9, constructor: s6 } = r9;
1124
+ delete r9.declaredClass, delete r9.properties, delete r9.constructor;
1125
+ const o9 = this;
1126
+ class i6 extends o9 {
1127
+ constructor(...r10) {
1128
+ super(...r10), this.inherited = null, s6 && s6.apply(this, r10);
1129
+ }
1130
+ }
1131
+ chunkOMA4PI5N.r(i6.prototype);
1132
+ for (const c3 in r9) {
1133
+ const t12 = r9[c3];
1134
+ i6.prototype[c3] = "function" == typeof t12 ? function(...r10) {
1135
+ const e10 = this.inherited;
1136
+ let s7;
1137
+ this.inherited = function(...r11) {
1138
+ if (o9.prototype[c3])
1139
+ return o9.prototype[c3].apply(this, r11);
1140
+ };
1141
+ try {
1142
+ s7 = t12.apply(this, r10);
1143
+ } catch (i7) {
1144
+ throw this.inherited = e10, i7;
1145
+ }
1146
+ return this.inherited = e10, s7;
1147
+ } : r9[c3];
1148
+ }
1149
+ for (const c3 in t11) {
1150
+ const r10 = f5(t11[c3]);
1151
+ chunkOMA4PI5N.y(r10)(i6.prototype, c3);
1152
+ }
1153
+ return chunkOMA4PI5N.a7(e9)(i6);
1154
+ }
1155
+ constructor(...r9) {
1156
+ if (this[y3] = null, this[m4] = false, this.constructor === _S)
1157
+ throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");
1158
+ const t11 = new g2(this);
1159
+ Object.defineProperty(this, "__accessor__", { enumerable: false, value: t11 }), r9.length > 0 && this.normalizeCtorArgs && (t11.ctorArgs = this.normalizeCtorArgs.apply(this, r9)), o5()?.onInstanceConstruct(this);
1160
+ }
1161
+ postscript(r9) {
1162
+ const t11 = this.__accessor__, e9 = t11.ctorArgs || r9;
1163
+ t11.initialize(), e9 && (this.set(e9), t11.ctorArgs = null), t11.constructed(), this.initialize(), this[g4] = true;
1164
+ }
1165
+ initialize() {
1166
+ }
1167
+ [chunkOMA4PI5N.o3]() {
1168
+ this[v3] = u(this[v3]);
1169
+ }
1170
+ destroy() {
1171
+ this.destroyed || (j2(this), this.__accessor__.destroy(), o5()?.onInstanceDestroy(this));
1172
+ }
1173
+ [Symbol.dispose]() {
1174
+ this.destroy();
1175
+ }
1176
+ get constructed() {
1177
+ return this.__accessor__ && this.__accessor__.initialized || false;
1178
+ }
1179
+ get initialized() {
1180
+ return this[g4];
1181
+ }
1182
+ get destroyed() {
1183
+ return this.__accessor__?.lifecycle === chunkOMA4PI5N.I.DESTROYED || false;
1184
+ }
1185
+ commitProperty(r9) {
1186
+ chunkOMA4PI5N.o2(this, r9);
1187
+ }
1188
+ get(t11) {
1189
+ return i2(chunkOMA4PI5N.n2.getLogger(this), "`Accessor.get` is deprecated in favor of using optional chaining", { version: "4.28", see: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining" }), chunkOMA4PI5N.o2(this, t11);
1190
+ }
1191
+ hasOwnProperty(r9) {
1192
+ return this.__accessor__ ? this.__accessor__.has(r9) : Object.prototype.hasOwnProperty.call(this, r9);
1193
+ }
1194
+ keys() {
1195
+ return this.__accessor__ ? this.__accessor__.keys() : [];
1196
+ }
1197
+ set(r9, t11) {
1198
+ return chunkOMA4PI5N.t2(this, r9, t11), this;
1199
+ }
1200
+ watch(r9, t11, e9) {
1201
+ return b(this, r9, t11, e9);
1202
+ }
1203
+ addHandles(r9, e9) {
1204
+ if (this.destroyed) {
1205
+ const t11 = Array.isArray(r9) ? r9 : [r9];
1206
+ for (const r10 of t11)
1207
+ r10.remove();
1208
+ return;
1209
+ }
1210
+ let s6 = this[v3];
1211
+ null == s6 && (s6 = this[v3] = new r()), s6.add(r9, e9);
1212
+ }
1213
+ removeHandles(r9) {
1214
+ const t11 = this[v3];
1215
+ null != t11 && t11.remove(r9);
1216
+ }
1217
+ removeAllHandles() {
1218
+ const r9 = this[v3];
1219
+ null != r9 && r9.removeAll();
1220
+ }
1221
+ hasHandles(r9) {
1222
+ const t11 = this[v3];
1223
+ return null != t11 && t11.has(r9);
1224
+ }
1225
+ _override(r9, t11) {
1226
+ void 0 === t11 ? this.__accessor__.clearOverride(r9) : this.__accessor__.override(r9, t11);
1227
+ }
1228
+ _clearOverride(r9) {
1229
+ return this.__accessor__.clearOverride(r9);
1230
+ }
1231
+ _overrideIfSome(r9, t11) {
1232
+ null == t11 ? this.__accessor__.clearOverride(r9) : this.__accessor__.override(r9, t11);
1233
+ }
1234
+ _isOverridden(r9) {
1235
+ return this.__accessor__.isOverridden(r9);
1236
+ }
1237
+ notifyChange(r9) {
1238
+ this.__accessor__.notifyChange(r9);
1239
+ }
1240
+ _get(r9) {
1241
+ return this.__accessor__.internalGet(r9);
1242
+ }
1243
+ _set(r9, t11) {
1244
+ return this.__accessor__.internalSet(r9, t11), this;
1245
+ }
1246
+ };
1247
+ y3 = v3, m4 = g4;
1248
+
1249
+ exports.default = S2;