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

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