@arcgis/core 5.1.0-next.70 → 5.1.0-next.72

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 (699) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/assets/components/assets/combobox/t9n/messages.ar.json +1 -1
  3. package/assets/components/assets/combobox/t9n/messages.bg.json +1 -1
  4. package/assets/components/assets/combobox/t9n/messages.bs.json +1 -1
  5. package/assets/components/assets/combobox/t9n/messages.ca.json +1 -1
  6. package/assets/components/assets/combobox/t9n/messages.cs.json +1 -1
  7. package/assets/components/assets/combobox/t9n/messages.da.json +1 -1
  8. package/assets/components/assets/combobox/t9n/messages.de.json +1 -1
  9. package/assets/components/assets/combobox/t9n/messages.el.json +1 -1
  10. package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
  11. package/assets/components/assets/combobox/t9n/messages.es.json +1 -1
  12. package/assets/components/assets/combobox/t9n/messages.et.json +1 -1
  13. package/assets/components/assets/combobox/t9n/messages.fi.json +1 -1
  14. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  15. package/assets/components/assets/combobox/t9n/messages.he.json +1 -1
  16. package/assets/components/assets/combobox/t9n/messages.hr.json +1 -1
  17. package/assets/components/assets/combobox/t9n/messages.hu.json +1 -1
  18. package/assets/components/assets/combobox/t9n/messages.id.json +1 -1
  19. package/assets/components/assets/combobox/t9n/messages.it.json +1 -1
  20. package/assets/components/assets/combobox/t9n/messages.ja.json +1 -1
  21. package/assets/components/assets/combobox/t9n/messages.json +1 -1
  22. package/assets/components/assets/combobox/t9n/messages.ko.json +1 -1
  23. package/assets/components/assets/combobox/t9n/messages.lt.json +1 -1
  24. package/assets/components/assets/combobox/t9n/messages.lv.json +1 -1
  25. package/assets/components/assets/combobox/t9n/messages.nl.json +1 -1
  26. package/assets/components/assets/combobox/t9n/messages.no.json +1 -1
  27. package/assets/components/assets/combobox/t9n/messages.pl.json +1 -1
  28. package/assets/components/assets/combobox/t9n/messages.pt-BR.json +1 -1
  29. package/assets/components/assets/combobox/t9n/messages.pt-PT.json +1 -1
  30. package/assets/components/assets/combobox/t9n/messages.ro.json +1 -1
  31. package/assets/components/assets/combobox/t9n/messages.ru.json +1 -1
  32. package/assets/components/assets/combobox/t9n/messages.sk.json +1 -1
  33. package/assets/components/assets/combobox/t9n/messages.sl.json +1 -1
  34. package/assets/components/assets/combobox/t9n/messages.sr.json +1 -1
  35. package/assets/components/assets/combobox/t9n/messages.sv.json +1 -1
  36. package/assets/components/assets/combobox/t9n/messages.th.json +1 -1
  37. package/assets/components/assets/combobox/t9n/messages.tr.json +1 -1
  38. package/assets/components/assets/combobox/t9n/messages.uk.json +1 -1
  39. package/assets/components/assets/combobox/t9n/messages.vi.json +1 -1
  40. package/assets/components/assets/combobox/t9n/messages.zh-CN.json +1 -1
  41. package/assets/components/assets/combobox/t9n/messages.zh-HK.json +1 -1
  42. package/assets/components/assets/combobox/t9n/messages.zh-TW.json +1 -1
  43. package/assets/components/assets/icon/addToLivestreamVideoLayer16.json +1 -0
  44. package/assets/components/assets/icon/addToLivestreamVideoLayer24.json +1 -0
  45. package/assets/components/assets/icon/addToLivestreamVideoLayer32.json +1 -0
  46. package/assets/components/assets/icon/addToVideoLayer16.json +1 -0
  47. package/assets/components/assets/icon/addToVideoLayer24.json +1 -0
  48. package/assets/components/assets/icon/addToVideoLayer32.json +1 -0
  49. package/assets/components/assets/icon/arcgisQuickcapture16.json +1 -0
  50. package/assets/components/assets/icon/arcgisQuickcapture24.json +1 -0
  51. package/assets/components/assets/icon/arcgisQuickcapture32.json +1 -0
  52. package/assets/components/assets/icon/arcgisSurvey12316.json +1 -0
  53. package/assets/components/assets/icon/arcgisSurvey12324.json +1 -0
  54. package/assets/components/assets/icon/arcgisSurvey12332.json +1 -0
  55. package/assets/components/assets/icon/bicycleTravelMode16.json +1 -0
  56. package/assets/components/assets/icon/bicycleTravelMode16F.json +1 -0
  57. package/assets/components/assets/icon/bicycleTravelMode24.json +1 -0
  58. package/assets/components/assets/icon/bicycleTravelMode24F.json +1 -0
  59. package/assets/components/assets/icon/bicycleTravelMode32.json +1 -0
  60. package/assets/components/assets/icon/bicycleTravelMode32F.json +1 -0
  61. package/assets/components/assets/icon/busTravelMode16.json +1 -0
  62. package/assets/components/assets/icon/busTravelMode16F.json +1 -0
  63. package/assets/components/assets/icon/busTravelMode24.json +1 -0
  64. package/assets/components/assets/icon/busTravelMode24F.json +1 -0
  65. package/assets/components/assets/icon/busTravelMode32.json +1 -0
  66. package/assets/components/assets/icon/busTravelMode32F.json +1 -0
  67. package/assets/components/assets/icon/carTravelMode16.json +1 -0
  68. package/assets/components/assets/icon/carTravelMode16F.json +1 -0
  69. package/assets/components/assets/icon/carTravelMode24.json +1 -0
  70. package/assets/components/assets/icon/carTravelMode24F.json +1 -0
  71. package/assets/components/assets/icon/carTravelMode32.json +1 -0
  72. package/assets/components/assets/icon/carTravelMode32F.json +1 -0
  73. package/assets/components/assets/icon/conditionalRulesDown16.json +1 -0
  74. package/assets/components/assets/icon/conditionalRulesDown24.json +1 -0
  75. package/assets/components/assets/icon/conditionalRulesDown32.json +1 -0
  76. package/assets/components/assets/icon/emergency16.json +1 -0
  77. package/assets/components/assets/icon/emergency16F.json +1 -0
  78. package/assets/components/assets/icon/emergency24.json +1 -0
  79. package/assets/components/assets/icon/emergency24F.json +1 -0
  80. package/assets/components/assets/icon/emergency32.json +1 -0
  81. package/assets/components/assets/icon/emergency32F.json +1 -0
  82. package/assets/components/assets/icon/eyedropper16.json +1 -1
  83. package/assets/components/assets/icon/eyedropper24.json +1 -1
  84. package/assets/components/assets/icon/eyedropper32.json +1 -1
  85. package/assets/components/assets/icon/featureDetailsSet16.json +1 -0
  86. package/assets/components/assets/icon/featureDetailsSet24.json +1 -0
  87. package/assets/components/assets/icon/featureDetailsSet32.json +1 -0
  88. package/assets/components/assets/icon/fileBim16.json +1 -0
  89. package/assets/components/assets/icon/fileBim24.json +1 -0
  90. package/assets/components/assets/icon/fileBim32.json +1 -0
  91. package/assets/components/assets/icon/fileDwg16.json +1 -0
  92. package/assets/components/assets/icon/fileDwg24.json +1 -0
  93. package/assets/components/assets/icon/fileDwg32.json +1 -0
  94. package/assets/components/assets/icon/fileRvt16.json +1 -0
  95. package/assets/components/assets/icon/fileRvt24.json +1 -0
  96. package/assets/components/assets/icon/fileRvt32.json +1 -0
  97. package/assets/components/assets/icon/gradient16.json +1 -0
  98. package/assets/components/assets/icon/gradient24.json +1 -0
  99. package/assets/components/assets/icon/gradient32.json +1 -0
  100. package/assets/components/assets/icon/layerStreamSetting16.json +1 -0
  101. package/assets/components/assets/icon/layerStreamSetting24.json +1 -0
  102. package/assets/components/assets/icon/layerStreamSetting32.json +1 -0
  103. package/assets/components/assets/icon/mopedTravelMode16.json +1 -0
  104. package/assets/components/assets/icon/mopedTravelMode16F.json +1 -0
  105. package/assets/components/assets/icon/mopedTravelMode24.json +1 -0
  106. package/assets/components/assets/icon/mopedTravelMode24F.json +1 -0
  107. package/assets/components/assets/icon/mopedTravelMode32.json +1 -0
  108. package/assets/components/assets/icon/mopedTravelMode32F.json +1 -0
  109. package/assets/components/assets/icon/motorcycleTravelMode16.json +1 -0
  110. package/assets/components/assets/icon/motorcycleTravelMode16F.json +1 -0
  111. package/assets/components/assets/icon/motorcycleTravelMode24.json +1 -0
  112. package/assets/components/assets/icon/motorcycleTravelMode24F.json +1 -0
  113. package/assets/components/assets/icon/motorcycleTravelMode32.json +1 -0
  114. package/assets/components/assets/icon/motorcycleTravelMode32F.json +1 -0
  115. package/assets/components/assets/icon/publish16.json +1 -0
  116. package/assets/components/assets/icon/publish24.json +1 -0
  117. package/assets/components/assets/icon/publish32.json +1 -0
  118. package/assets/components/assets/icon/scooterTravelMode16.json +1 -0
  119. package/assets/components/assets/icon/scooterTravelMode16F.json +1 -0
  120. package/assets/components/assets/icon/scooterTravelMode24.json +1 -0
  121. package/assets/components/assets/icon/scooterTravelMode24F.json +1 -0
  122. package/assets/components/assets/icon/scooterTravelMode32.json +1 -0
  123. package/assets/components/assets/icon/scooterTravelMode32F.json +1 -0
  124. package/assets/components/assets/icon/shuttleTravelMode16.json +1 -0
  125. package/assets/components/assets/icon/shuttleTravelMode16F.json +1 -0
  126. package/assets/components/assets/icon/shuttleTravelMode24.json +1 -0
  127. package/assets/components/assets/icon/shuttleTravelMode24F.json +1 -0
  128. package/assets/components/assets/icon/shuttleTravelMode32.json +1 -0
  129. package/assets/components/assets/icon/shuttleTravelMode32F.json +1 -0
  130. package/assets/components/assets/icon/strollerTravelMode16.json +1 -0
  131. package/assets/components/assets/icon/strollerTravelMode16F.json +1 -0
  132. package/assets/components/assets/icon/strollerTravelMode24.json +1 -0
  133. package/assets/components/assets/icon/strollerTravelMode24F.json +1 -0
  134. package/assets/components/assets/icon/strollerTravelMode32.json +1 -0
  135. package/assets/components/assets/icon/strollerTravelMode32F.json +1 -0
  136. package/assets/components/assets/icon/trainTravelMode16.json +1 -0
  137. package/assets/components/assets/icon/trainTravelMode16F.json +1 -0
  138. package/assets/components/assets/icon/trainTravelMode24.json +1 -0
  139. package/assets/components/assets/icon/trainTravelMode24F.json +1 -0
  140. package/assets/components/assets/icon/trainTravelMode32.json +1 -0
  141. package/assets/components/assets/icon/trainTravelMode32F.json +1 -0
  142. package/assets/components/assets/icon/tramTravelMode16.json +1 -0
  143. package/assets/components/assets/icon/tramTravelMode16F.json +1 -0
  144. package/assets/components/assets/icon/tramTravelMode24.json +1 -0
  145. package/assets/components/assets/icon/tramTravelMode24F.json +1 -0
  146. package/assets/components/assets/icon/tramTravelMode32.json +1 -0
  147. package/assets/components/assets/icon/tramTravelMode32F.json +1 -0
  148. package/assets/components/assets/icon/truckTravelMode16.json +1 -0
  149. package/assets/components/assets/icon/truckTravelMode16F.json +1 -0
  150. package/assets/components/assets/icon/truckTravelMode24.json +1 -0
  151. package/assets/components/assets/icon/truckTravelMode24F.json +1 -0
  152. package/assets/components/assets/icon/truckTravelMode32.json +1 -0
  153. package/assets/components/assets/icon/truckTravelMode32F.json +1 -0
  154. package/assets/components/assets/icon/velocityServer16.json +1 -0
  155. package/assets/components/assets/icon/velocityServer24.json +1 -0
  156. package/assets/components/assets/icon/velocityServer32.json +1 -0
  157. package/assets/components/assets/icon/walkingTravelMode16.json +1 -0
  158. package/assets/components/assets/icon/walkingTravelMode16F.json +1 -0
  159. package/assets/components/assets/icon/walkingTravelMode24.json +1 -0
  160. package/assets/components/assets/icon/walkingTravelMode24F.json +1 -0
  161. package/assets/components/assets/icon/walkingTravelMode32.json +1 -0
  162. package/assets/components/assets/icon/walkingTravelMode32F.json +1 -0
  163. package/assets/components/assets/icon/wheelchairTravelMode16.json +1 -0
  164. package/assets/components/assets/icon/wheelchairTravelMode16F.json +1 -0
  165. package/assets/components/assets/icon/wheelchairTravelMode24.json +1 -0
  166. package/assets/components/assets/icon/wheelchairTravelMode24F.json +1 -0
  167. package/assets/components/assets/icon/wheelchairTravelMode32.json +1 -0
  168. package/assets/components/assets/icon/wheelchairTravelMode32F.json +1 -0
  169. package/assets/esri/core/workers/RemoteClient.js +1 -1
  170. package/assets/esri/core/workers/chunks/003fd7745966fe03510c.js +1 -0
  171. package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +1 -0
  172. package/assets/esri/core/workers/chunks/026d3fa331caec1ea3d2.js +1 -0
  173. package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +1 -0
  174. package/assets/esri/core/workers/chunks/{81b2985b83be8f8f1090.js → 02876e434dc91c42b2f4.js} +1 -1
  175. package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +1 -0
  176. package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +1 -0
  177. package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +1 -0
  178. package/assets/esri/core/workers/chunks/0839da55707f7c4cf780.js +1 -0
  179. package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +2 -0
  180. package/assets/esri/core/workers/chunks/{d82b543c96f09ded3bf9.js.LICENSE.txt → 0b1454a77a6a682541dc.js.LICENSE.txt} +6 -1
  181. package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +1 -0
  182. package/assets/esri/core/workers/chunks/{478879ba965798f61bf3.js → 0d96e39380fd84cea9ba.js} +1 -1
  183. package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +1 -0
  184. package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +1 -0
  185. package/assets/esri/core/workers/chunks/{03e20ac54d6f141b5001.js → 11241781baaed346af52.js} +1 -1
  186. package/assets/esri/core/workers/chunks/127cd8fee3717a473fc5.js +1 -0
  187. package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +1 -0
  188. package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +1 -0
  189. package/assets/esri/core/workers/chunks/1661684357912726a72a.js +1 -0
  190. package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +1 -0
  191. package/assets/esri/core/workers/chunks/1961b59756933e0a82f2.js +1 -0
  192. package/assets/esri/core/workers/chunks/1c7183551f5269bdcf13.js +30 -0
  193. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +1 -0
  194. package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +1 -0
  195. package/assets/esri/core/workers/chunks/{b364ec104dd59faa41b6.js → 1f82a0f134ea912fc686.js} +1 -1
  196. package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +1 -0
  197. package/assets/esri/core/workers/chunks/2171aaa147aa4d9fc5b5.js +1 -0
  198. package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +1 -0
  199. package/assets/esri/core/workers/chunks/260d4571722cb1ff1366.js +1 -0
  200. package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +1 -0
  201. package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +1 -0
  202. package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +1 -0
  203. package/assets/esri/core/workers/chunks/{333a0038d782d8a34d58.js → 2abf124e2956e4f76688.js} +1 -1
  204. package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +1 -0
  205. package/assets/esri/core/workers/chunks/30e710ec4d22c43d4e7e.js +1 -0
  206. package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +1 -0
  207. package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +1 -0
  208. package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +1 -0
  209. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +1 -0
  210. package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +1 -0
  211. package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +1 -0
  212. package/assets/esri/core/workers/chunks/3cd9bd20e75ba4d5b294.js +1 -0
  213. package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +1 -0
  214. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +1 -0
  215. package/assets/esri/core/workers/chunks/41809c16544ec25120fa.js +1 -0
  216. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +1 -0
  217. package/assets/esri/core/workers/chunks/427dec43ef2d67467699.js +1 -0
  218. package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +1 -0
  219. package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +1 -0
  220. package/assets/esri/core/workers/chunks/{746b3e98bad32c366a27.js → 444f0f51b3ee0b9845a5.js} +1 -1
  221. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +1 -0
  222. package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +1 -0
  223. package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +1 -0
  224. package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +1 -0
  225. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +1 -0
  226. package/assets/esri/core/workers/chunks/{f209a7076d67cbf4d205.js → 4e676e888a935c507d90.js} +1 -1
  227. package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +1 -0
  228. package/assets/esri/core/workers/chunks/50d5d6654ada9f28345d.js +1 -0
  229. package/assets/esri/core/workers/chunks/54c6e870262469d0d702.js +1 -0
  230. package/assets/esri/core/workers/chunks/54d07eadf113f0e4e506.js +1 -0
  231. package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +1 -0
  232. package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +1 -0
  233. package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +1 -0
  234. package/assets/esri/core/workers/chunks/58c79e15ca95238a4b43.js +1 -0
  235. package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +1 -0
  236. package/assets/esri/core/workers/chunks/5a4d7ba6dc1d4b41d80d.js +1 -0
  237. package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +1 -0
  238. package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +1 -0
  239. package/assets/esri/core/workers/chunks/5ef37f37e405b3bb5450.js +1 -0
  240. package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +1 -0
  241. package/assets/esri/core/workers/chunks/61ef14e42bc09b787d89.js +1 -0
  242. package/assets/esri/core/workers/chunks/628f56c09838eb9c573b.js +1 -0
  243. package/assets/esri/core/workers/chunks/656d6963e8f837fbf28f.js +1 -0
  244. package/assets/esri/core/workers/chunks/68b47a5a50e0b5fffca2.js +1 -0
  245. package/assets/esri/core/workers/chunks/6a0352d20596ca3f4b64.js +1 -0
  246. package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +1 -0
  247. package/assets/esri/core/workers/chunks/6dac8dfcd63fc757ae2d.js +1 -0
  248. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +1 -0
  249. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +1 -0
  250. package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +1 -0
  251. package/assets/esri/core/workers/chunks/6f67c9f68101a084b683.js +30 -0
  252. package/assets/esri/core/workers/chunks/6f9ea461c268c421f9c9.js +1 -0
  253. package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +1 -0
  254. package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +1 -0
  255. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  256. package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +1 -0
  257. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +1 -0
  258. package/assets/esri/core/workers/chunks/751609831b283903ba48.js +1 -0
  259. package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +1 -0
  260. package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +1 -0
  261. package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +2 -0
  262. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +1 -0
  263. package/assets/esri/core/workers/chunks/7e6ccf9f3e756186e93e.js +1 -0
  264. package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +1 -0
  265. package/assets/esri/core/workers/chunks/824051af00e7a1f05ed0.js +1 -0
  266. package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +1 -0
  267. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +2 -0
  268. package/assets/esri/core/workers/chunks/{2d2c10c31cc1460dd96a.js → 88827e23f8938342781c.js} +1 -1
  269. package/assets/esri/core/workers/chunks/88b480a1d1fb01778798.js +267 -0
  270. package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +1 -0
  271. package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +1 -0
  272. package/assets/esri/core/workers/chunks/8a14e3db28c403b046cf.js +1 -0
  273. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +1 -0
  274. package/assets/esri/core/workers/chunks/8a664451845a47048859.js +1 -0
  275. package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +1 -0
  276. package/assets/esri/core/workers/chunks/8acee3fba488f202f82f.js +1 -0
  277. package/assets/esri/core/workers/chunks/8b73f4d2f99c0b54cced.js +1 -0
  278. package/assets/esri/core/workers/chunks/91a0227a64a944af3286.js +596 -0
  279. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +1 -0
  280. package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +1 -0
  281. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  282. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +1 -0
  283. package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +1 -0
  284. package/assets/esri/core/workers/chunks/{e0a63b5861e8c975097e.js → 9aaf78b831f8739bc127.js} +1 -1
  285. package/assets/esri/core/workers/chunks/{4d378d4e021a33b0047e.js → 9be4438ce2c7180adadf.js} +1 -1
  286. package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +1 -0
  287. package/assets/esri/core/workers/chunks/9f4b97204def91567e3c.js +1 -0
  288. package/assets/esri/core/workers/chunks/a169d9fe66b5865911d9.js +1 -0
  289. package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +1 -0
  290. package/assets/esri/core/workers/chunks/a37fc886227365f7ecd5.js +1 -0
  291. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +1 -0
  292. package/assets/esri/core/workers/chunks/a65d576e90179a2b5400.js +1 -0
  293. package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +1 -0
  294. package/assets/esri/core/workers/chunks/{678c9f15712cf3d3bb9e.js → aa1a3a849aba84cf585b.js} +1 -1
  295. package/assets/esri/core/workers/chunks/abc06d10c7ac8ba5b0e4.js +1 -0
  296. package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +1 -0
  297. package/assets/esri/core/workers/chunks/ae0a572cbbdd9815ee2e.js +1 -0
  298. package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +1 -0
  299. package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +1 -0
  300. package/assets/esri/core/workers/chunks/b2983f521d8c96becd8a.js +1 -0
  301. package/assets/esri/core/workers/chunks/{915a5e8aecf25f3bc72b.js → b475f5492c6e3fd4cca8.js} +1 -1
  302. package/assets/esri/core/workers/chunks/b495f14d90abe8d1a558.js +1 -0
  303. package/assets/esri/core/workers/chunks/{f11ea0d3de93ec0392af.js → b54b7cc6b23a70fed700.js} +1 -1
  304. package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +1 -0
  305. package/assets/esri/core/workers/chunks/b79058f5bda6fcac22f8.js +1 -0
  306. package/assets/esri/core/workers/chunks/b801631b58e6fc6cec8a.js +1 -0
  307. package/assets/esri/core/workers/chunks/b92794def31592a6a25f.js +1 -0
  308. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +1 -0
  309. package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +1 -0
  310. package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +1 -0
  311. package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +1 -0
  312. package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +1 -0
  313. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  314. package/assets/esri/core/workers/chunks/c1838822b096d5f36a8b.js +1 -0
  315. package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +1 -0
  316. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +1 -0
  317. package/assets/esri/core/workers/chunks/{c2882a9e67124b7c18be.js → c503c79ba5761f7abbeb.js} +1 -1
  318. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +1 -0
  319. package/assets/esri/core/workers/chunks/c9065cee85eb8dde6a42.js +1 -0
  320. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +1 -0
  321. package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +1 -0
  322. package/assets/esri/core/workers/chunks/cca095f0c623e037002d.js +1 -0
  323. package/assets/esri/core/workers/chunks/ce2aa75e084ee56f5e29.js +1 -0
  324. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +1 -0
  325. package/assets/esri/core/workers/chunks/d05a7ce6c1d4b883ed4c.js +30 -0
  326. package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +1 -0
  327. package/assets/esri/core/workers/chunks/d2aa75816e84b1e7fd25.js +1 -0
  328. package/assets/esri/core/workers/chunks/d4a9eb4470cc6a1f67fc.js +2 -0
  329. package/assets/esri/core/workers/chunks/{8ccf2f65d8ed3c48ffff.js → d950d5c2844206502ff0.js} +1 -1
  330. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +1 -0
  331. package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +1 -0
  332. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +1 -0
  333. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +1 -0
  334. package/assets/esri/core/workers/chunks/{6bb090f3e5c18604cb39.js → dd5b362bded458afa2d6.js} +1 -1
  335. package/assets/esri/core/workers/chunks/de583214195eff13cb00.js +1140 -0
  336. package/assets/esri/core/workers/chunks/dec6d41d614105e6fd93.js +1 -0
  337. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +1 -0
  338. package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +1 -0
  339. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +1 -0
  340. package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +1 -0
  341. package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +1 -0
  342. package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +1 -0
  343. package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +1 -0
  344. package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +1 -0
  345. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +1 -0
  346. package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +2 -0
  347. package/assets/esri/core/workers/chunks/f1673e723b336204ad77.js +1 -0
  348. package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +1 -0
  349. package/assets/esri/core/workers/chunks/f52443cd203e687551da.js +1 -0
  350. package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +1 -0
  351. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
  352. package/assets/esri/core/workers/chunks/ffcd4fca7f67e1f943f1.js +1 -0
  353. package/assets/esri/themes/dark/main.css +1 -1
  354. package/assets/esri/themes/light/main.css +1 -1
  355. package/assets/esri/themes/light/view.css +1 -1
  356. package/chunks/CheckerBoard.glsl.js +3 -5
  357. package/chunks/ColorMaterial.glsl.js +4 -6
  358. package/chunks/ComponentShader.glsl.js +42 -44
  359. package/chunks/DefaultMaterial.glsl.js +21 -23
  360. package/chunks/EdgeShader.glsl.js +9 -11
  361. package/chunks/GaussianSplat.glsl.js +8 -8
  362. package/chunks/ImageMaterial.glsl.js +5 -7
  363. package/chunks/LineCallout.glsl.js +9 -12
  364. package/chunks/LineMarker.glsl.js +24 -26
  365. package/chunks/OITDim.glsl.js +3 -4
  366. package/chunks/Path.glsl.js +15 -17
  367. package/chunks/Pattern.glsl.js +25 -27
  368. package/chunks/RealisticTree.glsl.js +11 -13
  369. package/chunks/RibbonLine.glsl.js +42 -45
  370. package/chunks/ShadedColorMaterial.glsl.js +8 -9
  371. package/chunks/Water.glsl.js +18 -20
  372. package/config.js +1 -1
  373. package/core/workers/WorkerHandle.js +1 -1
  374. package/geometry/Mesh.js +1 -1
  375. package/geometry/support/DoubleArray.js +1 -1
  376. package/geometry/support/triangulationUtilsDeprecated.js +1 -1
  377. package/kernel.js +1 -1
  378. package/layers/VoxelWasmPerSceneView.js +1 -1
  379. package/layers/graphics/FlatFeature.js +1 -1
  380. package/layers/graphics/FlatFeatureSet.js +1 -1
  381. package/layers/graphics/OptimizedFeature.js +1 -1
  382. package/layers/graphics/data/AttributesBuilder.js +1 -1
  383. package/layers/graphics/data/QueryEngineResult.js +1 -1
  384. package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +1 -1
  385. package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
  386. package/layers/graphics/featureConversionUtils.js +1 -1
  387. package/layers/support/LabelClass.js +1 -1
  388. package/layers/support/featureLayerUtils.js +1 -1
  389. package/layers/support/labelUtils.js +1 -1
  390. package/layers/video/videoUtils.js +1 -1
  391. package/package.json +3 -3
  392. package/popup/Feature.d.ts +2 -0
  393. package/popup/Feature.js +1 -1
  394. package/popup/actions.js +1 -1
  395. package/popupTemplateUtils.js +2 -0
  396. package/renderers/visualVariables/SizeVariable.js +1 -1
  397. package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
  398. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  399. package/rest/support/OutDistance.js +2 -0
  400. package/rest/support/Query.js +1 -1
  401. package/smartMapping/statistics/support/utils.js +1 -1
  402. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  403. package/support/arcadeUtils.js +1 -1
  404. package/support/revision.js +1 -1
  405. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  406. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  407. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  408. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  409. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  410. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  411. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  412. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  413. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  414. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  415. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  416. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  417. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  418. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  419. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  420. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  421. package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
  422. package/views/3d/FocusAreasView.js +1 -1
  423. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  424. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  425. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  426. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  427. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  428. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  429. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  430. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  431. package/views/3d/layers/StreamLayerView3D.js +1 -1
  432. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  433. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  434. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  435. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  436. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  437. package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
  438. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  439. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  440. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  441. package/views/3d/state/ViewStateManager.js +1 -1
  442. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  443. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +1 -1
  444. package/views/3d/terrain/OverlayRenderer.js +1 -1
  445. package/views/3d/terrain/PatchRenderData.js +1 -1
  446. package/views/3d/terrain/TerrainRenderer.js +1 -1
  447. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  448. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  449. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
  450. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  451. package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
  452. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  453. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +20 -32
  454. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +5 -3
  455. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  456. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  457. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  458. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  459. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  460. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  461. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  462. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  463. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  464. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  465. package/views/3d/webgl-engine/lib/SamplerRepository.js +2 -0
  466. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  467. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  468. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  469. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  470. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
  471. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  472. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  473. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  474. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  475. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  476. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  477. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  478. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  479. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  480. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  481. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  482. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  483. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  484. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  485. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  486. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  487. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  488. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  489. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  490. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  491. package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
  492. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  493. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  494. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  495. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  496. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  497. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  498. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  499. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  500. package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
  501. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  502. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  503. package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
  504. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  505. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  506. package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
  507. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  508. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  509. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  510. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  511. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  512. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  513. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  514. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  515. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  516. package/views/VideoView.js +1 -1
  517. package/views/ViewAnimation.d.ts +2 -21
  518. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  519. package/views/layers/FeatureLikeLayerView.js +1 -1
  520. package/views/support/rasterHitTestUtils.js +2 -0
  521. package/views/video/VideoOperationalDataView.js +1 -1
  522. package/views/webgl/Sampler.js +1 -1
  523. package/views/webgl/ShaderBuilder.js +1 -1
  524. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +19 -3
  525. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  526. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  527. package/widgets/FeatureTable/VisibleElements.d.ts +15 -1
  528. package/widgets/FeatureTable/VisibleElements.js +1 -1
  529. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  530. package/widgets/FeatureTable.d.ts +15 -1
  531. package/widgets/FeatureTable.js +1 -1
  532. package/widgets/Search/SearchViewModel.js +1 -1
  533. package/widgets/support/widgetUtils.js +1 -1
  534. package/assets/esri/core/workers/chunks/01be1315c60810651783.js +0 -1
  535. package/assets/esri/core/workers/chunks/0dd12d6af0cf7707109c.js +0 -2
  536. package/assets/esri/core/workers/chunks/0e2e4cb34ac6aac88ebf.js +0 -1
  537. package/assets/esri/core/workers/chunks/155f57fe9886ef322e2a.js +0 -1
  538. package/assets/esri/core/workers/chunks/170f4d83555d238e365b.js +0 -1
  539. package/assets/esri/core/workers/chunks/171cca726a763c770469.js +0 -1
  540. package/assets/esri/core/workers/chunks/1761dc5799850ca7b66c.js +0 -1
  541. package/assets/esri/core/workers/chunks/17d54e77001ccb48a258.js +0 -1
  542. package/assets/esri/core/workers/chunks/19afacc9a741038e4bfb.js +0 -1
  543. package/assets/esri/core/workers/chunks/1a198c9e17f7a058669e.js +0 -1
  544. package/assets/esri/core/workers/chunks/1ae4e43a399e1974f106.js +0 -1
  545. package/assets/esri/core/workers/chunks/1c742bfe3b0aa51823d1.js +0 -1
  546. package/assets/esri/core/workers/chunks/1d8777266fb1c5cfca55.js +0 -1
  547. package/assets/esri/core/workers/chunks/1f76c06af4682c85bc21.js +0 -1
  548. package/assets/esri/core/workers/chunks/205e957ffd7e95f530f7.js +0 -1
  549. package/assets/esri/core/workers/chunks/20e715e3aeb1c3265901.js +0 -1
  550. package/assets/esri/core/workers/chunks/210629f3c28d4339c655.js +0 -1
  551. package/assets/esri/core/workers/chunks/21a8e2a11ffacc226e2b.js +0 -1
  552. package/assets/esri/core/workers/chunks/27643750dce502fedef3.js +0 -1
  553. package/assets/esri/core/workers/chunks/29b1a4ce7646b403008e.js +0 -1
  554. package/assets/esri/core/workers/chunks/2a65bbe6c63c384cbf5f.js +0 -1
  555. package/assets/esri/core/workers/chunks/2fa69ca3ba8c442dd7d6.js +0 -1
  556. package/assets/esri/core/workers/chunks/314140e2e9b813191907.js +0 -1
  557. package/assets/esri/core/workers/chunks/3158a3487d3e8a61b680.js +0 -1
  558. package/assets/esri/core/workers/chunks/35217befc8f9882d139e.js +0 -1
  559. package/assets/esri/core/workers/chunks/38328a785365c4783b1e.js +0 -1
  560. package/assets/esri/core/workers/chunks/3a2ecb883fdb5c598544.js +0 -30
  561. package/assets/esri/core/workers/chunks/3eef3c2e94aa2a00d76a.js +0 -1
  562. package/assets/esri/core/workers/chunks/40d6ad030614099155cd.js +0 -1414
  563. package/assets/esri/core/workers/chunks/41396724040180d2537f.js +0 -1
  564. package/assets/esri/core/workers/chunks/41e59d75ccb51a238739.js +0 -1
  565. package/assets/esri/core/workers/chunks/44016e1176629c36bc11.js +0 -1
  566. package/assets/esri/core/workers/chunks/453280ea87a696a4df81.js +0 -1
  567. package/assets/esri/core/workers/chunks/499b899bf88aaf29230d.js +0 -1
  568. package/assets/esri/core/workers/chunks/4b0d6309abf273f1f79f.js +0 -1
  569. package/assets/esri/core/workers/chunks/4e07827ab870c65377d3.js +0 -1
  570. package/assets/esri/core/workers/chunks/51852ef71ac04954fdae.js +0 -1
  571. package/assets/esri/core/workers/chunks/53b797e384be9628fc94.js +0 -1
  572. package/assets/esri/core/workers/chunks/549a51dedcc49f366e53.js +0 -1
  573. package/assets/esri/core/workers/chunks/54c0306082d30d59cba2.js +0 -1
  574. package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +0 -1
  575. package/assets/esri/core/workers/chunks/57cdd5d4ae073d5ca725.js +0 -1
  576. package/assets/esri/core/workers/chunks/5a1d975b3e9e6b7eff67.js +0 -1
  577. package/assets/esri/core/workers/chunks/5b9257c5359fa05f4f28.js +0 -1
  578. package/assets/esri/core/workers/chunks/5d574079f0e96e883aab.js +0 -1
  579. package/assets/esri/core/workers/chunks/5d967bcf71c05ddb1ab6.js +0 -1
  580. package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +0 -1
  581. package/assets/esri/core/workers/chunks/60d0f8a949b130baff81.js +0 -1
  582. package/assets/esri/core/workers/chunks/61778185d702da468b00.js +0 -1
  583. package/assets/esri/core/workers/chunks/61b49cdaf288f36f9288.js +0 -1
  584. package/assets/esri/core/workers/chunks/621ea864e2774f160d1c.js +0 -1
  585. package/assets/esri/core/workers/chunks/679086351352756b33c9.js +0 -1
  586. package/assets/esri/core/workers/chunks/681e97ebbf9c69c410c6.js +0 -1
  587. package/assets/esri/core/workers/chunks/69644b8a6ce340ca1159.js +0 -1
  588. package/assets/esri/core/workers/chunks/6a567755b67c06d16f21.js +0 -1
  589. package/assets/esri/core/workers/chunks/6e7bb6d3e739527116a4.js +0 -1
  590. package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +0 -1
  591. package/assets/esri/core/workers/chunks/71326d16b5cc35c3ff7f.js +0 -1
  592. package/assets/esri/core/workers/chunks/73a045061e69a22b6869.js +0 -1
  593. package/assets/esri/core/workers/chunks/73e000cc3c4da10e9937.js +0 -1
  594. package/assets/esri/core/workers/chunks/75669912cddcb5db52c8.js +0 -1
  595. package/assets/esri/core/workers/chunks/78fbfc03d9b827c3f767.js +0 -1
  596. package/assets/esri/core/workers/chunks/7d0350f459844162d3a7.js +0 -1
  597. package/assets/esri/core/workers/chunks/7e39e9d4d68843b60e4c.js +0 -1
  598. package/assets/esri/core/workers/chunks/823127b23bec07e1f9d0.js +0 -2
  599. package/assets/esri/core/workers/chunks/84eb889b9cce35dac2e5.js +0 -1
  600. package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +0 -1
  601. package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +0 -1
  602. package/assets/esri/core/workers/chunks/888f6387e795d45a7ad3.js +0 -2
  603. package/assets/esri/core/workers/chunks/891d97d0da6361d63679.js +0 -1
  604. package/assets/esri/core/workers/chunks/8969788c57bcc11bf77b.js +0 -1
  605. package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +0 -1
  606. package/assets/esri/core/workers/chunks/8ede12f54b215c52cf3c.js +0 -1
  607. package/assets/esri/core/workers/chunks/8fb336c2066113300d0d.js +0 -1
  608. package/assets/esri/core/workers/chunks/8fed6becd107d2ed9bbd.js +0 -1
  609. package/assets/esri/core/workers/chunks/97062996e1e4196cfa7c.js +0 -1
  610. package/assets/esri/core/workers/chunks/97210bcb5e3cf3ac961b.js +0 -1
  611. package/assets/esri/core/workers/chunks/9a235c92f21df2c17aa8.js +0 -1
  612. package/assets/esri/core/workers/chunks/9c819ebdc98ed8b6afcf.js +0 -1
  613. package/assets/esri/core/workers/chunks/9d7ffd83f69d6e639f09.js +0 -1
  614. package/assets/esri/core/workers/chunks/9dfd00972c12a4adc15d.js +0 -1
  615. package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +0 -1
  616. package/assets/esri/core/workers/chunks/9fab410b9fa668dc498b.js +0 -1
  617. package/assets/esri/core/workers/chunks/a061a17b62686f945e81.js +0 -1
  618. package/assets/esri/core/workers/chunks/a30815a0155a3b8790b4.js +0 -1
  619. package/assets/esri/core/workers/chunks/a43decc8ede8b4910553.js +0 -1
  620. package/assets/esri/core/workers/chunks/a462aa1c7b68efad6906.js +0 -1
  621. package/assets/esri/core/workers/chunks/a4b6fdbc995be03d2afb.js +0 -1
  622. package/assets/esri/core/workers/chunks/a520f83ae0c3c3e78858.js +0 -1
  623. package/assets/esri/core/workers/chunks/a5d9dbb1fef8c4465943.js +0 -1
  624. package/assets/esri/core/workers/chunks/a73e8b80760dc88f926f.js +0 -1
  625. package/assets/esri/core/workers/chunks/a96692514dcaa50340dd.js +0 -1
  626. package/assets/esri/core/workers/chunks/aa7aaeae31ddb259e55e.js +0 -1
  627. package/assets/esri/core/workers/chunks/b014f0b2385dc82dc683.js +0 -2
  628. package/assets/esri/core/workers/chunks/b2120c4c56656be941ae.js +0 -1
  629. package/assets/esri/core/workers/chunks/b3950d5f1f3352521504.js +0 -1
  630. package/assets/esri/core/workers/chunks/b3f0600729227b458a75.js +0 -1
  631. package/assets/esri/core/workers/chunks/b8005b1996f42dee8237.js +0 -1
  632. package/assets/esri/core/workers/chunks/b85c9ceeece1bae67a16.js +0 -1
  633. package/assets/esri/core/workers/chunks/b8a11d32a4847513619b.js +0 -1
  634. package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +0 -1
  635. package/assets/esri/core/workers/chunks/b8e85b7d5eed6e7c79b5.js +0 -1
  636. package/assets/esri/core/workers/chunks/bbaf1d9835671c0165ca.js +0 -1
  637. package/assets/esri/core/workers/chunks/bbdf27bc34fadbe8e6fe.js +0 -1
  638. package/assets/esri/core/workers/chunks/bc2c7cb99e227ddbd3a6.js +0 -1
  639. package/assets/esri/core/workers/chunks/bc85bb82cfcbc216fa31.js +0 -1
  640. package/assets/esri/core/workers/chunks/bcefdf9753d9d2f6f1be.js +0 -1
  641. package/assets/esri/core/workers/chunks/be42fe0b7ba0e27030b2.js +0 -1
  642. package/assets/esri/core/workers/chunks/be4d13088a557b7de4b1.js +0 -1
  643. package/assets/esri/core/workers/chunks/be61ea8e1883b915bbb1.js +0 -1
  644. package/assets/esri/core/workers/chunks/bf758d57091fa534c1f8.js +0 -1
  645. package/assets/esri/core/workers/chunks/bfd516c37fb717e14d71.js +0 -1
  646. package/assets/esri/core/workers/chunks/c22945637a40355fbe61.js +0 -1
  647. package/assets/esri/core/workers/chunks/c25a58d9f94aaa96957d.js +0 -1
  648. package/assets/esri/core/workers/chunks/c6a43f748dbf8bac4bb5.js +0 -1
  649. package/assets/esri/core/workers/chunks/c79827f879d1d58d3f1b.js +0 -1
  650. package/assets/esri/core/workers/chunks/c7ca47f5d4b2f3885239.js +0 -1
  651. package/assets/esri/core/workers/chunks/cb903ccbce87172a0757.js +0 -1
  652. package/assets/esri/core/workers/chunks/cda2e445eb2ac269abdf.js +0 -1
  653. package/assets/esri/core/workers/chunks/d024278a1c2aa7d22be3.js +0 -1
  654. package/assets/esri/core/workers/chunks/d264aed5dbe09e34040f.js +0 -1
  655. package/assets/esri/core/workers/chunks/d315098b038a96084ff5.js +0 -1
  656. package/assets/esri/core/workers/chunks/d4e55eb75fa4d3ac1e84.js +0 -1
  657. package/assets/esri/core/workers/chunks/d5c7ebfd5c2ca635a7a8.js +0 -1
  658. package/assets/esri/core/workers/chunks/d635f97b7b82a37482d6.js +0 -1
  659. package/assets/esri/core/workers/chunks/d7b92bd9198dd3b27eb5.js +0 -1
  660. package/assets/esri/core/workers/chunks/d816d1a4220d827faf63.js +0 -1
  661. package/assets/esri/core/workers/chunks/d82b543c96f09ded3bf9.js +0 -2
  662. package/assets/esri/core/workers/chunks/d8dde0d1759e009b8373.js +0 -1
  663. package/assets/esri/core/workers/chunks/da0a61f73d45ea9e71fc.js +0 -1
  664. package/assets/esri/core/workers/chunks/e305ced975d885c28e7e.js +0 -1
  665. package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +0 -1
  666. package/assets/esri/core/workers/chunks/e3c60b7df2740e600066.js +0 -1
  667. package/assets/esri/core/workers/chunks/e5801b0f3893d4d4f5b0.js +0 -1
  668. package/assets/esri/core/workers/chunks/e59f5dc8c85bcea66e98.js +0 -1
  669. package/assets/esri/core/workers/chunks/e611cd03eee4fae7c413.js +0 -1
  670. package/assets/esri/core/workers/chunks/e62d08f5488a74cbda82.js +0 -1
  671. package/assets/esri/core/workers/chunks/e64a92b6f4075616f40f.js +0 -1
  672. package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +0 -1
  673. package/assets/esri/core/workers/chunks/e78b442417f6a903b9b1.js +0 -1
  674. package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +0 -1
  675. package/assets/esri/core/workers/chunks/ea6d3b7c7d720aa7bc94.js +0 -1
  676. package/assets/esri/core/workers/chunks/edc2e87968c958bc852b.js +0 -1
  677. package/assets/esri/core/workers/chunks/ef0fe4e1a9e960a74c60.js +0 -1
  678. package/assets/esri/core/workers/chunks/ef9d74f8d5a502fda809.js +0 -1
  679. package/assets/esri/core/workers/chunks/efbbcf467b2a27a92b85.js +0 -1
  680. package/assets/esri/core/workers/chunks/f09446b9ff937a84d6d3.js +0 -1
  681. package/assets/esri/core/workers/chunks/f0bc5e8e44d53b73d431.js +0 -1
  682. package/assets/esri/core/workers/chunks/f201edf9b68717a6106d.js +0 -1
  683. package/assets/esri/core/workers/chunks/f59f1db572be1f19887f.js +0 -1
  684. package/assets/esri/core/workers/chunks/f9cde38cb56c547e87e5.js +0 -1
  685. package/assets/esri/core/workers/chunks/fb9a889ec9fd23739a14.js +0 -1
  686. package/assets/esri/core/workers/chunks/fc64ae69581e4c38fa8a.js +0 -1
  687. package/assets/esri/core/workers/chunks/fd6bbe47773bbd9f7dd9.js +0 -1
  688. package/assets/esri/core/workers/chunks/fe1b67ab7748a3aef231.js +0 -1
  689. package/assets/esri/core/workers/chunks/fe3b42eadcdd9ba54f05.js +0 -1
  690. package/chunks/HUDCompositing.glsl.js +0 -2
  691. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +0 -5
  692. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +0 -8
  693. package/views/3d/webgl-engine/effects/fboFormatUtils.js +0 -2
  694. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +0 -2
  695. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +0 -2
  696. /package/assets/esri/core/workers/chunks/{0dd12d6af0cf7707109c.js.LICENSE.txt → 7bacdd65a6cc4d284e0a.js.LICENSE.txt} +0 -0
  697. /package/assets/esri/core/workers/chunks/{823127b23bec07e1f9d0.js.LICENSE.txt → 85edbb072a2ce6c1bb30.js.LICENSE.txt} +0 -0
  698. /package/assets/esri/core/workers/chunks/{888f6387e795d45a7ad3.js.LICENSE.txt → d4a9eb4470cc6a1f67fc.js.LICENSE.txt} +0 -0
  699. /package/assets/esri/core/workers/chunks/{b014f0b2385dc82dc683.js.LICENSE.txt → f09a41ad239d467d9438.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.1.0-next.70",
3
+ "version": "5.1.0-next.72",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -19,9 +19,9 @@
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
21
  "@amcharts/amcharts5": "~5.17.1",
22
- "@arcgis/toolkit": "^5.1.0-next.70",
22
+ "@arcgis/toolkit": "^5.1.0-next.73",
23
23
  "@esri/arcgis-html-sanitizer": "~4.1.0",
24
- "@esri/calcite-components": "^5.0.2",
24
+ "@esri/calcite-components": "^5.1.0-next.30",
25
25
  "@vaadin/grid": "~25.1.0",
26
26
  "@zip.js/zip.js": "~2.8.26",
27
27
  "luxon": "~3.7.2",
@@ -123,6 +123,8 @@ export default class Feature extends FeatureSuperclass {
123
123
  * @default false
124
124
  */
125
125
  accessor defaultPopupTemplateEnabled: boolean;
126
+ /** A read-only map of Arcade expression names to their evaluated values for the current feature. */
127
+ get expressionAttributes(): Record<string, any> | null | undefined;
126
128
  /**
127
129
  * The formatted attributes calculated from `fieldInfo` [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
128
130
  * content. They are obtained from the feature's [graphic](#graphic) attribute values
package/popup/Feature.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import e from"../Graphic.js";import{FeatureSetQueryInterceptor as i}from"../arcade/featureset/support/FeatureSetQueryInterceptor.js";import r from"../core/Accessor.js";import{isSome as s}from"../core/arrayUtils.js";import{createTask as o}from"../core/asyncUtils.js";import{IdentifiableMixin as a}from"../core/Identifiable.js";import n from"../core/Logger.js";import{abortMaybe as l}from"../core/maybe.js";import{eachAlways as p,isAbortError as h,throwIfAborted as c}from"../core/promiseUtils.js";import{watch as u,initial as d,when as f}from"../core/reactiveUtils.js";import{throttle as m}from"../core/throttle.js";import{property as g,subclass as y}from"../core/accessorSupport/decorators.js";import _ from"../geometry/Point.js";import b from"../geometry/SpatialReference.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import T from"./content/TextContent.js";import{compileExpressionInfos as I,formatArcadeValue as A}from"./support/arcadeFeatureUtils.js";import x from"./support/FeatureAbilities.js";import{preLayerQueryCallback as C,preRequestCallback as E,createFieldInfoMap as w,getAllFieldInfos as F,querySourceLayer as k,queryUpdatedFeature as j,isRelatableFeatureSupportedLayer as P,isAssociatedFeatureSupportedLayer as R,formatEditInfo as O,substituteFieldsInLinksAndAttributes as M,graphicCallback as Z,formatAttributes as U,isRelatedField as L}from"./support/featureUtils.js";import{queryLayerInfos as N,queryRelatedFeatures as S,setRelatedFeatures as H,getRelatedFieldInfo as G,createRelatedInfo as q,updateRelatedInfo as z}from"./support/relatedFeatureUtils.js";import{system as B}from"../time/constants.js";var Q;const D=1;let J=class extends(a(r)){static{Q=this}constructor(t){super(t),this._error=null,this._graphicChangedTask=null,this._evaluateExpressionAttributesTask=null,this._expressionAttributes=null,this._graphicExpressionAttributes=null,this.abilities=new x,this.content=null,this.description=null,this.defaultPopupTemplateEnabled=!1,this.formattedAttributes=null,this.graphic=null,this.lastEditInfo=null,this.location=null,this.relatedInfos=new Map,this.heading="",this.view=null,this._graphicChangedThrottled=m(this._graphicChanged,()=>this.notifyChange("waitingForContent"),D,this),this._isAllowedContentType=t=>{const{abilities:e}=this;return"attachments"===t.type&&!!e.attachmentsContent||"custom"===t.type&&!!e.customContent||"fields"===t.type&&!!e.fieldsContent||"media"===t.type&&!!e.mediaContent||"text"===t.type&&!!e.textContent||"expression"===t.type&&!!e.expressionContent||"relationship"===t.type&&!!e.relationshipContent||"utility-network-associations"===t.type&&!!e.utilityNetworkAssociationsContent},this._evaluateExpressionAttributesThrottled=m(this._evaluateExpressionAttributes,()=>this.notifyChange("waitingForContent"),D,this),this.addHandles([u(()=>[this._effectivePopupTemplate,this.abilities.attachmentsContent,this.abilities.chartAnimation,this.abilities.customContent,this.abilities.expressionContent,this.abilities.fieldsContent,this.abilities.mediaContent,this.abilities.relationshipContent,this.abilities.textContent,this.abilities.utilityNetworkAssociationsContent,this.graphic,this.timeZone],()=>this._graphicChangedThrottled(),d),f(()=>{if(!this._graphicChangedTask?.finished||null==this._graphicChangedTask.value)return null;const t=this._graphicChangedTask.value,e=t?.expressionInfos?.dependencies;return[t,e?.has("view-scale")?this.view?.scale:null,e?.has("view-time-extent")?this.view?.timeExtent?.start:null,e?.has("view-time-extent")?this.view?.timeExtent?.end:null]},([t])=>this._evaluateExpressionAttributesThrottled(t))])}initialize(){this.addHandles([this._graphicChangedThrottled,this._evaluateExpressionAttributesThrottled])}destroy(){this._clear(),this._graphicChangedTask=l(this._graphicChangedTask),this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._error=null,this.graphic=null,this.relatedInfos.clear()}static{this.interceptor=new i(C,E)}get _effectivePopupTemplate(){return null!=this.graphic?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return w(F(this._effectivePopupTemplate),this._layer)}get _layer(){const{graphic:t}=this;return t?v(t):void 0}get isFeatureFromTable(){return this._layer?.isTable||!1}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(t){this._override("spatialReference",t)}get timeZone(){return this.view?.timeZone??B}set timeZone(t){this._overrideIfSome("timeZone",t)}get map(){return this.view?.map||null}set map(t){this._override("map",t)}get waitingForContent(){const{_graphicChangedThrottled:t,_evaluateExpressionAttributesThrottled:e,_graphicChangedTask:i,_evaluateExpressionAttributesTask:r}=this;return t.hasPendingUpdates()||e.hasPendingUpdates()||null!=i&&!i.finished||null!=r&&!r.finished}async updateGeometry(){const{graphic:t,spatialReference:e,_layer:i}=this;await(i?.load());const r=i?.objectIdField;if(!r||!t||!i)return;const s=t?.attributes?.[r];if(null==s)return;const o=[s];if(!t.geometry){const r=await k({layer:i,graphic:t,outFields:[],objectIds:o,returnGeometry:!0,spatialReference:e}),s=r?.geometry;s&&(t.geometry=s)}}_clear(){this._set("heading",""),this._set("content",null),this._set("formattedAttributes",null)}_graphicChanged(){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._graphicChangedTask=l(this._graphicChangedTask),this._graphicChangedTask=o(async t=>{this._error=null,this._clear();const{graphic:e}=this;try{if(!e)return null;const{_layer:i,_effectivePopupTemplate:r}=this,s=this.spatialReference;await j({graphic:e,popupTemplate:r,layer:i,spatialReference:s},{signal:t});const[{value:o},{value:a}]=await p([this._getContent(),this._getTitle()]),[,{value:n}]=await p([this._checkForRelatedFeatures({signal:t}),I(r?.expressionInfos,e)]);return{expressionInfos:n,content:o,heading:a}}catch(i){throw h(i)||(this._error=i,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:i,graphic:e,popupTemplate:this._effectivePopupTemplate})),i}})}_compileContentElement(t){return"relationship"===t.type?P(this._layer)?t:void 0:"utility-network-associations"===t.type?R(this._layer)?t:void 0:t}_compileContent(t){if(this.graphic)return Array.isArray(t)?t.filter(this._isAllowedContentType).map(t=>this._compileContentElement(t)).filter(s):"string"==typeof t?new T({text:t}).text:t}_compileLastEditInfo(){const{_effectivePopupTemplate:t,_layer:e,graphic:i,timeZone:r}=this;if(!t)return;const{lastEditInfoEnabled:s}=t,o=e?.editFieldsInfo;return s&&o?O(o,i?.attributes,r,e):void 0}_compileHeading(t){const{_fieldInfoMap:e,_layer:i,graphic:r,_expressionAttributes:s}=this,o=r?.attributes??{},a=this.formattedAttributes?.global??{};return M({attributes:o,fieldInfoMap:e,globalAttributes:a,expressionAttributes:s,layer:i,text:t})}async _getTitle(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"title",value:t?.title,event:{graphic:e}}):null}async _getContent(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"content",value:t?.content,event:{graphic:e}}):null}_evaluateExpressionAttributes({heading:t,content:e,expressionInfos:i}){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._evaluateExpressionAttributesTask=o(async r=>{const{graphic:s,map:o,view:a,spatialReference:l,location:p}=this;try{if(!s)return;let n;if(null!=i){const t=[];for(const[e,n]of i.expressions.entries())null!=n?t.push(n.evaluate({graphic:s,interceptor:Q.interceptor,location:p,map:o,options:{signal:r},spatialReference:l,view:a}).then(t=>[e,"string"==typeof t?A(t):t]).catch(()=>[e,void 0])):t.push(Promise.resolve([e,void 0]));n=Object.fromEntries(await Promise.all(t)),c(r)}this._expressionAttributes=n,this._graphicExpressionAttributes={...s.attributes,...n},this._set("formattedAttributes",this._createFormattedAttributes(e)),this._set("heading",this._compileHeading(t)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(e)||null)}catch(u){h(u)||(this._error=u,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:u,graphic:s,popupTemplate:this._effectivePopupTemplate}))}})}_createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){const{_effectivePopupTemplate:r,graphic:s,relatedInfos:o,_layer:a,_fieldInfoMap:n,_graphicExpressionAttributes:l,timeZone:p}=this;i.content[e]=U({attributes:{...l,...t.attributes},fieldInfoMap:n,fieldInfos:r?.fieldInfos,graphic:s,layer:a,relatedInfos:o,timeZone:p})}_createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){if(t.fieldInfos){const{graphic:r,relatedInfos:s,_layer:o,_fieldInfoMap:a,_graphicExpressionAttributes:n,timeZone:l}=this;i.content[e]=U({attributes:{...n,...t.attributes},fieldInfoMap:a,fieldInfos:t.fieldInfos,graphic:r,isContentFieldInfos:!0,layer:o,relatedInfos:s,timeZone:l})}}_createFormattedAttributes(t){const{_effectivePopupTemplate:e,graphic:i,relatedInfos:r,_layer:s,_fieldInfoMap:o,_graphicExpressionAttributes:a,timeZone:n}=this,l=e?.fieldInfos,p={global:U({attributes:a,fieldInfoMap:o,fieldInfos:l,graphic:i,layer:s,relatedInfos:r,timeZone:n}),content:[]};return Array.isArray(t)&&t.forEach((t,e)=>{"fields"===t.type&&this._createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p}),"media"===t.type&&this._createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p})}),p}_checkForRelatedFeatures(t){const{graphic:e,_effectivePopupTemplate:i}=this;return this._queryRelatedInfos(e,F(i),t)}async _queryRelatedInfos(t,e,i){const{relatedInfos:r,_layer:s}=this;r.clear();const o=null!=s?.associatedLayer?await(s?.associatedLayer.load(i)):s;if(!o||!t)return;const a=e.filter(t=>!!t.fieldName&&L(t.fieldName));if(!a?.length)return;e.forEach(t=>this._configureRelatedInfo(t,o));const n=await N({relatedInfos:r,layer:o},i);Object.keys(n).forEach(t=>{const e=r.get(t.toString()),i=n[t]?.value;e&&i&&(e.layerInfo=i.data)});const l=await S({graphic:t,relatedInfos:r,layer:o},i);Object.keys(l).forEach(t=>{H(l[t]?.value,r.get(t.toString()))})}_configureRelatedInfo(t,e){const{relatedInfos:i}=this,r=G(t.fieldName||"");if(!r)return;const{layerId:s,fieldName:o}=r;if(!s)return;const a=i.get(s.toString())||q(s,e);a&&(z({relatedInfo:a,fieldName:o,fieldInfo:t}),this.relatedInfos.set(s,a))}};t([g()],J.prototype,"_error",void 0),t([g()],J.prototype,"_graphicChangedTask",void 0),t([g()],J.prototype,"_evaluateExpressionAttributesTask",void 0),t([g({readOnly:!0})],J.prototype,"_effectivePopupTemplate",null),t([g({readOnly:!0})],J.prototype,"_fieldInfoMap",null),t([g({readOnly:!0})],J.prototype,"_layer",null),t([g({type:x})],J.prototype,"abilities",void 0),t([g({readOnly:!0})],J.prototype,"content",void 0),t([g()],J.prototype,"description",void 0),t([g({type:Boolean})],J.prototype,"defaultPopupTemplateEnabled",void 0),t([g({readOnly:!0})],J.prototype,"isFeatureFromTable",null),t([g({readOnly:!0})],J.prototype,"state",null),t([g({readOnly:!0})],J.prototype,"formattedAttributes",void 0),t([g({type:e})],J.prototype,"graphic",void 0),t([g({readOnly:!0})],J.prototype,"lastEditInfo",void 0),t([g({type:_})],J.prototype,"location",void 0),t([g({readOnly:!0})],J.prototype,"relatedInfos",void 0),t([g({type:b})],J.prototype,"spatialReference",null),t([g()],J.prototype,"timeZone",null),t([g({readOnly:!0})],J.prototype,"heading",void 0),t([g()],J.prototype,"map",null),t([g({readOnly:!0})],J.prototype,"waitingForContent",null),t([g()],J.prototype,"view",void 0),J=Q=t([y("esri.popup.Feature")],J);const K=J;export{K as default};
2
+ import{__decorate as t}from"tslib";import e from"../Graphic.js";import{FeatureSetQueryInterceptor as i}from"../arcade/featureset/support/FeatureSetQueryInterceptor.js";import r from"../core/Accessor.js";import{isSome as s}from"../core/arrayUtils.js";import{createTask as o}from"../core/asyncUtils.js";import{IdentifiableMixin as a}from"../core/Identifiable.js";import n from"../core/Logger.js";import{abortMaybe as l}from"../core/maybe.js";import{eachAlways as p,isAbortError as h,throwIfAborted as c}from"../core/promiseUtils.js";import{watch as u,initial as d,when as f}from"../core/reactiveUtils.js";import{throttle as m}from"../core/throttle.js";import{property as g,subclass as y}from"../core/accessorSupport/decorators.js";import _ from"../geometry/Point.js";import b from"../geometry/SpatialReference.js";import{getGraphicLayer as v}from"../graphic/graphicOriginUtils.js";import T from"./content/TextContent.js";import{compileExpressionInfos as I,formatArcadeValue as A}from"./support/arcadeFeatureUtils.js";import x from"./support/FeatureAbilities.js";import{preLayerQueryCallback as C,preRequestCallback as E,createFieldInfoMap as w,getAllFieldInfos as F,querySourceLayer as k,queryUpdatedFeature as j,isRelatableFeatureSupportedLayer as P,isAssociatedFeatureSupportedLayer as R,formatEditInfo as O,substituteFieldsInLinksAndAttributes as M,graphicCallback as Z,formatAttributes as U,isRelatedField as L}from"./support/featureUtils.js";import{queryLayerInfos as N,queryRelatedFeatures as S,setRelatedFeatures as H,getRelatedFieldInfo as G,createRelatedInfo as q,updateRelatedInfo as z}from"./support/relatedFeatureUtils.js";import{system as B}from"../time/constants.js";var Q;const D=1;let J=class extends(a(r)){static{Q=this}constructor(t){super(t),this._error=null,this._graphicChangedTask=null,this._evaluateExpressionAttributesTask=null,this._graphicExpressionAttributes=null,this.abilities=new x,this.content=null,this.description=null,this.defaultPopupTemplateEnabled=!1,this.expressionAttributes=null,this.formattedAttributes=null,this.graphic=null,this.lastEditInfo=null,this.location=null,this.relatedInfos=new Map,this.heading="",this.view=null,this._graphicChangedThrottled=m(this._graphicChanged,()=>this.notifyChange("waitingForContent"),D,this),this._isAllowedContentType=t=>{const{abilities:e}=this;return"attachments"===t.type&&!!e.attachmentsContent||"custom"===t.type&&!!e.customContent||"fields"===t.type&&!!e.fieldsContent||"media"===t.type&&!!e.mediaContent||"text"===t.type&&!!e.textContent||"expression"===t.type&&!!e.expressionContent||"relationship"===t.type&&!!e.relationshipContent||"utility-network-associations"===t.type&&!!e.utilityNetworkAssociationsContent},this._evaluateExpressionAttributesThrottled=m(this._evaluateExpressionAttributes,()=>this.notifyChange("waitingForContent"),D,this),this.addHandles([u(()=>[this._effectivePopupTemplate,this.abilities.attachmentsContent,this.abilities.chartAnimation,this.abilities.customContent,this.abilities.expressionContent,this.abilities.fieldsContent,this.abilities.mediaContent,this.abilities.relationshipContent,this.abilities.textContent,this.abilities.utilityNetworkAssociationsContent,this.graphic,this.timeZone],()=>this._graphicChangedThrottled(),d),f(()=>{if(!this._graphicChangedTask?.finished||null==this._graphicChangedTask.value)return null;const t=this._graphicChangedTask.value,e=t?.expressionInfos?.dependencies;return[t,e?.has("view-scale")?this.view?.scale:null,e?.has("view-time-extent")?this.view?.timeExtent?.start:null,e?.has("view-time-extent")?this.view?.timeExtent?.end:null]},([t])=>this._evaluateExpressionAttributesThrottled(t))])}initialize(){this.addHandles([this._graphicChangedThrottled,this._evaluateExpressionAttributesThrottled])}destroy(){this._clear(),this._graphicChangedTask=l(this._graphicChangedTask),this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._error=null,this.graphic=null,this.relatedInfos.clear()}static{this.interceptor=new i(C,E)}get _effectivePopupTemplate(){return null!=this.graphic?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return w(F(this._effectivePopupTemplate),this._layer)}get _layer(){const{graphic:t}=this;return t?v(t):void 0}get isFeatureFromTable(){return this._layer?.isTable||!1}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(t){this._override("spatialReference",t)}get timeZone(){return this.view?.timeZone??B}set timeZone(t){this._overrideIfSome("timeZone",t)}get map(){return this.view?.map||null}set map(t){this._override("map",t)}get waitingForContent(){const{_graphicChangedThrottled:t,_evaluateExpressionAttributesThrottled:e,_graphicChangedTask:i,_evaluateExpressionAttributesTask:r}=this;return t.hasPendingUpdates()||e.hasPendingUpdates()||null!=i&&!i.finished||null!=r&&!r.finished}async updateGeometry(){const{graphic:t,spatialReference:e,_layer:i}=this;await(i?.load());const r=i?.objectIdField;if(!r||!t||!i)return;const s=t?.attributes?.[r];if(null==s)return;const o=[s];if(!t.geometry){const r=await k({layer:i,graphic:t,outFields:[],objectIds:o,returnGeometry:!0,spatialReference:e}),s=r?.geometry;s&&(t.geometry=s)}}_clear(){this._set("heading",""),this._set("content",null),this._set("formattedAttributes",null),this._set("expressionAttributes",null)}_graphicChanged(){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._graphicChangedTask=l(this._graphicChangedTask),this._graphicChangedTask=o(async t=>{this._error=null,this._clear();const{graphic:e}=this;try{if(!e)return null;const{_layer:i,_effectivePopupTemplate:r}=this,s=this.spatialReference;await j({graphic:e,popupTemplate:r,layer:i,spatialReference:s},{signal:t});const[{value:o},{value:a}]=await p([this._getContent(),this._getTitle()]),[,{value:n}]=await p([this._checkForRelatedFeatures({signal:t}),I(r?.expressionInfos,e)]);return{expressionInfos:n,content:o,heading:a}}catch(i){throw h(i)||(this._error=i,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:i,graphic:e,popupTemplate:this._effectivePopupTemplate})),i}})}_compileContentElement(t){return"relationship"===t.type?P(this._layer)?t:void 0:"utility-network-associations"===t.type?R(this._layer)?t:void 0:t}_compileContent(t){if(this.graphic)return Array.isArray(t)?t.filter(this._isAllowedContentType).map(t=>this._compileContentElement(t)).filter(s):"string"==typeof t?new T({text:t}).text:t}_compileLastEditInfo(){const{_effectivePopupTemplate:t,_layer:e,graphic:i,timeZone:r}=this;if(!t)return;const{lastEditInfoEnabled:s}=t,o=e?.editFieldsInfo;return s&&o?O(o,i?.attributes,r,e):void 0}_compileHeading(t){const{_fieldInfoMap:e,_layer:i,graphic:r,expressionAttributes:s}=this,o=r?.attributes??{},a=this.formattedAttributes?.global??{};return M({attributes:o,fieldInfoMap:e,globalAttributes:a,expressionAttributes:s,layer:i,text:t})}async _getTitle(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"title",value:t?.title,event:{graphic:e}}):null}async _getContent(){const{_effectivePopupTemplate:t,graphic:e}=this;return e?Z({type:"content",value:t?.content,event:{graphic:e}}):null}_evaluateExpressionAttributes({heading:t,content:e,expressionInfos:i}){this._evaluateExpressionAttributesTask=l(this._evaluateExpressionAttributesTask),this._evaluateExpressionAttributesTask=o(async r=>{const{graphic:s,map:o,view:a,spatialReference:l,location:p}=this;try{if(!s)return;let n;if(null!=i){const t=[];for(const[e,n]of i.expressions.entries())null!=n?t.push(n.evaluate({graphic:s,interceptor:Q.interceptor,location:p,map:o,options:{signal:r},spatialReference:l,view:a}).then(t=>[e,"string"==typeof t?A(t):t]).catch(()=>[e,void 0])):t.push(Promise.resolve([e,void 0]));n=Object.fromEntries(await Promise.all(t)),c(r)}this._set("expressionAttributes",n??null),this._graphicExpressionAttributes={...s.attributes,...n},this._set("formattedAttributes",this._createFormattedAttributes(e)),this._set("heading",this._compileHeading(t)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(e)||null)}catch(u){h(u)||(this._error=u,n.getLogger(this).error("error","The popupTemplate could not be displayed for this feature.",{error:u,graphic:s,popupTemplate:this._effectivePopupTemplate}))}})}_createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){const{_effectivePopupTemplate:r,graphic:s,relatedInfos:o,_layer:a,_fieldInfoMap:n,_graphicExpressionAttributes:l,timeZone:p}=this;i.content[e]=U({attributes:{...l,...t.attributes},fieldInfoMap:n,fieldInfos:r?.fieldInfos,graphic:s,layer:a,relatedInfos:o,timeZone:p})}_createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:i}){if(t.fieldInfos){const{graphic:r,relatedInfos:s,_layer:o,_fieldInfoMap:a,_graphicExpressionAttributes:n,timeZone:l}=this;i.content[e]=U({attributes:{...n,...t.attributes},fieldInfoMap:a,fieldInfos:t.fieldInfos,graphic:r,isContentFieldInfos:!0,layer:o,relatedInfos:s,timeZone:l})}}_createFormattedAttributes(t){const{_effectivePopupTemplate:e,graphic:i,relatedInfos:r,_layer:s,_fieldInfoMap:o,_graphicExpressionAttributes:a,timeZone:n}=this,l=e?.fieldInfos,p={global:U({attributes:a,fieldInfoMap:o,fieldInfos:l,graphic:i,layer:s,relatedInfos:r,timeZone:n}),content:[]};return Array.isArray(t)&&t.forEach((t,e)=>{"fields"===t.type&&this._createFieldsFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p}),"media"===t.type&&this._createMediaFormattedAttributes({contentElement:t,contentElementIndex:e,formattedAttributes:p})}),p}_checkForRelatedFeatures(t){const{graphic:e,_effectivePopupTemplate:i}=this;return this._queryRelatedInfos(e,F(i),t)}async _queryRelatedInfos(t,e,i){const{relatedInfos:r,_layer:s}=this;r.clear();const o=null!=s?.associatedLayer?await(s?.associatedLayer.load(i)):s;if(!o||!t)return;const a=e.filter(t=>!!t.fieldName&&L(t.fieldName));if(!a?.length)return;e.forEach(t=>this._configureRelatedInfo(t,o));const n=await N({relatedInfos:r,layer:o},i);Object.keys(n).forEach(t=>{const e=r.get(t.toString()),i=n[t]?.value;e&&i&&(e.layerInfo=i.data)});const l=await S({graphic:t,relatedInfos:r,layer:o},i);Object.keys(l).forEach(t=>{H(l[t]?.value,r.get(t.toString()))})}_configureRelatedInfo(t,e){const{relatedInfos:i}=this,r=G(t.fieldName||"");if(!r)return;const{layerId:s,fieldName:o}=r;if(!s)return;const a=i.get(s.toString())||q(s,e);a&&(z({relatedInfo:a,fieldName:o,fieldInfo:t}),this.relatedInfos.set(s,a))}};t([g()],J.prototype,"_error",void 0),t([g()],J.prototype,"_graphicChangedTask",void 0),t([g()],J.prototype,"_evaluateExpressionAttributesTask",void 0),t([g({readOnly:!0})],J.prototype,"_effectivePopupTemplate",null),t([g({readOnly:!0})],J.prototype,"_fieldInfoMap",null),t([g({readOnly:!0})],J.prototype,"_layer",null),t([g({type:x})],J.prototype,"abilities",void 0),t([g({readOnly:!0})],J.prototype,"content",void 0),t([g()],J.prototype,"description",void 0),t([g({type:Boolean})],J.prototype,"defaultPopupTemplateEnabled",void 0),t([g({readOnly:!0})],J.prototype,"expressionAttributes",void 0),t([g({readOnly:!0})],J.prototype,"isFeatureFromTable",null),t([g({readOnly:!0})],J.prototype,"state",null),t([g({readOnly:!0})],J.prototype,"formattedAttributes",void 0),t([g({type:e})],J.prototype,"graphic",void 0),t([g({readOnly:!0})],J.prototype,"lastEditInfo",void 0),t([g({type:_})],J.prototype,"location",void 0),t([g({readOnly:!0})],J.prototype,"relatedInfos",void 0),t([g({type:b})],J.prototype,"spatialReference",null),t([g()],J.prototype,"timeZone",null),t([g({readOnly:!0})],J.prototype,"heading",void 0),t([g()],J.prototype,"map",null),t([g({readOnly:!0})],J.prototype,"waitingForContent",null),t([g()],J.prototype,"view",void 0),J=Q=t([y("esri.popup.Feature")],J);const K=J;export{K as default};
package/popup/actions.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"../core/Collection.js";import t from"../support/actions/ActionBase.js";import o from"../support/actions/ActionButton.js";import s from"../support/actions/ActionToggle.js";import{legacyIcon as a}from"../widgets/support/legacyIcon.js";const n=e.ofType({key:"type",defaultKeyValue:"button",base:t,typeMap:{button:o,toggle:s}}),i=new o({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"})._internalSetClassName(a.zoomInMagnifyingGlass),l=new o({icon:"magnifying-glass-plus",id:"zoom-to-clustered-features",title:"{messages.zoom}"})._internalSetClassName(a.zoomInMagnifyingGlass),r=new s({icon:"table",id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}",value:!1})._internalSetClassName(a.table);export{n as ActionsCollection,r as browseClusteredFeatures,l as zoomToClusteredFeatures,i as zoomToFeature};
2
+ import e from"../core/Collection.js";import t from"../support/actions/ActionBase.js";import o from"../support/actions/ActionButton.js";import s from"../support/actions/ActionToggle.js";import{legacyIcon as a}from"../widgets/support/legacyIcon.js";const n=e.ofType({key:"type",defaultKeyValue:"button",base:t,typeMap:{button:o,toggle:s}}),i=new o({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"})._internalSetClassName(a.zoomInMagnifyingGlass),r=new o({icon:"magnifying-glass-plus",id:"zoom-to-clustered-features",title:"{messages.zoom}"})._internalSetClassName(a.zoomInMagnifyingGlass),l=new o({icon:"table",id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}"})._internalSetClassName(a.table);export{n as ActionsCollection,l as browseClusteredFeatures,r as zoomToClusteredFeatures,i as zoomToFeature};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ const n=Symbol("PopupTemplateInstance");function t(t){return null!=t&&"object"==typeof t&&n in t}export{n as PopupTemplateSymbol,t as isPopupTemplate};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import i from"../../core/Logger.js";import{property as s,subclass as r}from"../../core/accessorSupport/decorators.js";import n from"./VisualVariable.js";import{castSizeFromStringOrNumber as a}from"./support/castSizeVariable.js";import o from"./support/SizeStop.js";import l from"./support/SizeVariableLegendOptions.js";import{isSizeVariable as p,getInputValueType as u,getTransformationType as m}from"./support/sizeVariableUtils.js";import{viewScaleRE as h}from"./support/visualVariableUtils.js";import{addPropertyUnsupportedError as d,addUnsupportedMessage as y}from"../../webdoc/support/unsupportedErrors.js";import{reader as c}from"../../core/accessorSupport/decorators/reader.js";import{writer as S}from"../../core/accessorSupport/decorators/writer.js";var z;const x=new t({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),w=new t({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function v(e){if(null!=e)return"string"==typeof e||"number"==typeof e?a(e):"size"===e.type?p(e)?e:(delete(e={...e}).type,new V(e)):void 0}function g(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;const s=new V;return s.read(e,i),s}function f(e,t,i,s){"number"!=typeof e?"web-scene"!==s?.origin?t[i]=e.toJSON(s):y(s,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e}let V=z=class extends n{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&h.test(this.valueExpression)}}set index(e){p(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),p(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return u(this)}set maxDataValue(e){e&&this.stops&&(i.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(i.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",v(e))}readMaxSize(e,t,i){return g(e,t,i)}writeMaxSize(e,t,i,s){return f(e,t,i,s)}set minDataValue(e){e&&this.stops&&(i.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(i.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",v(e))}readMinSize(e,t,i){return g(e,t,i)}writeMinSize(e,t,i,s){return f(e,t,i,s)}get arcadeRequired(){return!!this.valueExpression||(null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired)}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(i.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return m(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if(h.test(e)){if(s?.messages){const e=this.index;d(s,`visualVariables[${"string"==typeof e?e:`visualVariables[${e}]`}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?w.read(e):null}clone(){return new z({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:p(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:p(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};e([s({readOnly:!0})],V.prototype,"cache",null),e([s({type:x.apiValues,json:{type:x.jsonValues,origins:{"web-map":{read:!1}},read:x.read,write:x.write}})],V.prototype,"axis",void 0),e([s()],V.prototype,"index",null),e([s({type:String,readOnly:!0})],V.prototype,"inputValueType",null),e([s({type:l,json:{write:!0}})],V.prototype,"legendOptions",void 0),e([s({type:Number,value:null,json:{write:!0}})],V.prototype,"maxDataValue",null),e([s({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],V.prototype,"maxSize",null),e([c("maxSize")],V.prototype,"readMaxSize",null),e([S("maxSize")],V.prototype,"writeMaxSize",null),e([s({type:Number,value:null,json:{write:!0}})],V.prototype,"minDataValue",null),e([s({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],V.prototype,"minSize",null),e([c("minSize")],V.prototype,"readMinSize",null),e([S("minSize")],V.prototype,"writeMinSize",null),e([s({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),e([s({readOnly:!0})],V.prototype,"arcadeRequired",null),e([s({type:String})],V.prototype,"scaleBy",void 0),e([s({type:[o],value:null,json:{write:!0}})],V.prototype,"stops",null),e([s({type:["outline"],json:{write:!0}})],V.prototype,"target",void 0),e([s({type:String,readOnly:!0})],V.prototype,"transformationType",null),e([s({type:["size"],json:{type:["sizeInfo"]}})],V.prototype,"type",void 0),e([s({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],V.prototype,"useSymbolValue",void 0),e([s({type:String,json:{write:!0}})],V.prototype,"valueExpression",void 0),e([c("valueExpression",["valueExpression","expression"])],V.prototype,"readValueExpression",null),e([S("web-scene","valueExpression")],V.prototype,"writeValueExpressionWebScene",null),e([s({type:["radius","diameter","area","width","distance"],json:{write:!0}})],V.prototype,"valueRepresentation",void 0),e([s({type:w.apiValues,json:{write:w.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],V.prototype,"valueUnit",void 0),e([c("valueUnit")],V.prototype,"readValueUnit",null),V=z=e([r("esri.renderers.visualVariables.SizeVariable")],V);export{V as default};
2
+ import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import i from"../../core/Logger.js";import{property as s,subclass as r}from"../../core/accessorSupport/decorators.js";import n from"./VisualVariable.js";import{castSizeFromStringOrNumber as a}from"./support/castSizeVariable.js";import o from"./support/SizeStop.js";import l from"./support/SizeVariableLegendOptions.js";import{isSizeVariable as p,getInputValueType as u,getTransformationType as m,SizeVariableSymbol as h}from"./support/sizeVariableUtils.js";import{viewScaleRE as d}from"./support/visualVariableUtils.js";import{addPropertyUnsupportedError as y,addUnsupportedMessage as c}from"../../webdoc/support/unsupportedErrors.js";import{reader as S}from"../../core/accessorSupport/decorators/reader.js";import{writer as z}from"../../core/accessorSupport/decorators/writer.js";var x,w;const v=new t({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),g=new t({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function f(e){if(null!=e)return"string"==typeof e||"number"==typeof e?a(e):"size"===e.type?p(e)?e:(delete(e={...e}).type,new j(e)):void 0}function V(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;const s=new j;return s.read(e,i),s}function b(e,t,i,s){"number"!=typeof e?"web-scene"!==s?.origin?t[i]=e.toJSON(s):c(s,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e}let j=w=class extends n{static{x=h}constructor(e){super(e),this[x]=!0,this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&d.test(this.valueExpression)}}set index(e){p(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),p(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return u(this)}set maxDataValue(e){e&&this.stops&&(i.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(i.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",f(e))}readMaxSize(e,t,i){return V(e,t,i)}writeMaxSize(e,t,i,s){return b(e,t,i,s)}set minDataValue(e){e&&this.stops&&(i.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(i.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",f(e))}readMinSize(e,t,i){return V(e,t,i)}writeMinSize(e,t,i,s){return b(e,t,i,s)}get arcadeRequired(){return!!this.valueExpression||(null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired)}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(i.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return m(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if(d.test(e)){if(s?.messages){const e=this.index;y(s,`visualVariables[${"string"==typeof e?e:`visualVariables[${e}]`}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?g.read(e):null}clone(){return new w({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:p(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:p(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};e([s({readOnly:!0})],j.prototype,"cache",null),e([s({type:v.apiValues,json:{type:v.jsonValues,origins:{"web-map":{read:!1}},read:v.read,write:v.write}})],j.prototype,"axis",void 0),e([s()],j.prototype,"index",null),e([s({type:String,readOnly:!0})],j.prototype,"inputValueType",null),e([s({type:l,json:{write:!0}})],j.prototype,"legendOptions",void 0),e([s({type:Number,value:null,json:{write:!0}})],j.prototype,"maxDataValue",null),e([s({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],j.prototype,"maxSize",null),e([S("maxSize")],j.prototype,"readMaxSize",null),e([z("maxSize")],j.prototype,"writeMaxSize",null),e([s({type:Number,value:null,json:{write:!0}})],j.prototype,"minDataValue",null),e([s({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],j.prototype,"minSize",null),e([S("minSize")],j.prototype,"readMinSize",null),e([z("minSize")],j.prototype,"writeMinSize",null),e([s({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),e([s({readOnly:!0})],j.prototype,"arcadeRequired",null),e([s({type:String})],j.prototype,"scaleBy",void 0),e([s({type:[o],value:null,json:{write:!0}})],j.prototype,"stops",null),e([s({type:["outline"],json:{write:!0}})],j.prototype,"target",void 0),e([s({type:String,readOnly:!0})],j.prototype,"transformationType",null),e([s({type:["size"],json:{type:["sizeInfo"]}})],j.prototype,"type",void 0),e([s({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],j.prototype,"useSymbolValue",void 0),e([s({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),e([S("valueExpression",["valueExpression","expression"])],j.prototype,"readValueExpression",null),e([z("web-scene","valueExpression")],j.prototype,"writeValueExpressionWebScene",null),e([s({type:["radius","diameter","area","width","distance"],json:{write:!0}})],j.prototype,"valueRepresentation",void 0),e([s({type:g.apiValues,json:{write:g.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],j.prototype,"valueUnit",void 0),e([S("valueUnit")],j.prototype,"readValueUnit",null),j=w=e([r("esri.renderers.visualVariables.SizeVariable")],j);export{j as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- function n(n){return n&&"esri.renderers.visualVariables.SizeVariable"===n.declaredClass}function e(n){return null!=n&&!isNaN(n)&&isFinite(n)}function i(n){return n.valueExpression?"expression":n.field&&"string"==typeof n.field?"field":"unknown"}function l(n,e){const l=e||i(n),a=n.valueUnit||"unknown";return"unknown"===l?"constant":n.stops?"stops":null!=n.minSize&&null!=n.maxSize&&null!=n.minDataValue&&null!=n.maxDataValue?"clamped-linear":"unknown"===a?null!=n.minSize&&null!=n.minDataValue?n.minSize&&n.minDataValue?"proportional":"additive":"identity":"real-world-size"}export{i as getInputValueType,l as getTransformationType,n as isSizeVariable,e as isValidNumber};
2
+ const n=Symbol("SizeVariableInstance");function i(i){return null!=i&&"object"==typeof i&&n in i}function e(n){return null!=n&&!isNaN(n)&&isFinite(n)}function l(n){return n.valueExpression?"expression":n.field&&"string"==typeof n.field?"field":"unknown"}function t(n,i){const e=i||l(n),t=n.valueUnit||"unknown";return"unknown"===e?"constant":n.stops?"stops":null!=n.minSize&&null!=n.maxSize&&null!=n.minDataValue&&null!=n.maxDataValue?"clamped-linear":"unknown"===t?null!=n.minSize&&null!=n.minDataValue?n.minSize&&n.minDataValue?"proportional":"additive":"identity":"real-world-size"}export{n as SizeVariableSymbol,l as getInputValueType,t as getTransformationType,i as isSizeVariable,e as isValidNumber};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__addDisposableResource as e,__disposeResources as t}from"tslib";import s from"../../../core/Error.js";import r from"../../../core/pbf.js";import{featureGeometryTypeKebabDictionary as n}from"../../../geometry/support/typeUtils.js";const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],o=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],i=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function l(e,t){const s=e.getEnum();return s<t.length?t[s]:void 0}function u(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?n.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?n.toJSON(t):t}function p(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function f(e){const t=e.asUnsafe(),s={type:o[0]};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=l(t,o);break;case 3:s.alias=t.getString();break;case 4:s.sqlType=l(t,i);break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function y(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}let d=[];function h(e,t,s){let r=g(t),n=0;const o=e.asUnsafe();for(;o.next();)switch(o.tag()){case 1:1===s?r=g(t,l(o,a)):o.skip();continue;case 2:for(const e=o.getPackedEnd();o.pos()<e;)d[n++]=o.getUInt32();continue;case 3:n>0?(d.length=n,null!=t.geometry(s,r,d)&&(d=[])):t.geometry(s,r,[]);for(const e=o.getPackedEnd();o.pos()<e;)t.coord(o.getSInt64());continue;default:o.skip()}}function m(e,t){const s=[],r=e.asUnsafe();for(;r.next();)if(3!==r.tag())r.skip();else for(const e=r.getPackedEnd();r.pos()<e;)s.push(r.getSInt64());t.centroid(s)}let k=[],T=[],b=[];function S(s,r){const n={stack:[],error:void 0,hasError:!1};try{let o=0;const i=d;let c=0;const l=s.asUnsafe(),u=e(n,l.clonePooled().asUnsafe(),!1);for(;l.next();)switch(l.tag()){case 2:for(const p=l.getPackedEnd();l.pos()<p;)i[o++]=l.getUInt32();continue;case 3:if(!("curvedGeometry"in r))throw new Error(`Tried to parse curved geometry in a ${r.constructor.name}, which doesn't support them.`);l.processMessageWithArgs(I,c++);continue;case 4:{const f=l.getUInt32(),y=l.pos()+f;if(0===c||0===o||0===f){l.move(y);continue}i.length=o,b.length=T.length=c,r.curvedGeometry(g(r),i,T,b);const{hasZ:h,hasM:m}=r.featureSet,S=[],q=[0,0];function w(){for(let e=0;e<q.length;++e)S[e]=q[e],q[e]=l.getSInt64()}h&&q.push(0),m&&q.push(0);const F=[0,0],U=[0,0],D=F,M=F;let x=0;for(let G=0;G<o;++G){w(),S.fill(0),r.startCurvedPart(q);for(const E=x+i[G];x<E;++x){const v=T[x],A=b[x];switch(v){case 0:for(let P=0;P<A;++P)w(),q[0]+=S[0],q[1]+=S[1],r.lineSegment(S,q);continue;case 1:for(let W=0;W<A;++W)w(),D[0]=l.getSInt64(),D[1]=l.getSInt64(),r.circularArcSegment(S,q,D);continue;case 2:for(let O=0;O<A;++O)w(),F[0]=l.getSInt64(),F[1]=l.getSInt64(),U[0]=l.getSInt64(),U[1]=l.getSInt64(),r.bezierSegment(S,q,F,U);continue;case 3:u.move(k[x]);if(u.getUInt32()<7*A)throw new Error("Not implemented: compressed full circle encoding");for(let B=0;B<A;++B){w(),M[0]=u.getDouble(),M[1]=u.getDouble();const N=u.getDouble(),V=u.getDouble(),L=u.getDouble(),C=u.getDouble(),R=u.getDouble();r.ellipticArcSegment(S,q,M,N,V,L,C,R)}continue}}r.finishCurvedPart(q)}continue}default:l.skip()}}catch(a){n.error=a,n.hasError=!0}finally{t(n)}}function I(e,t){const s=e.asUnsafe();let r=0,n=0,a=0;for(;s.next();)switch(s.tag()){case 1:r=s.getEnum();continue;case 2:n=s.getUInt32();continue;case 3:a=s.pos(),s.skip();continue;default:s.skip()}if(3===r&&0===a)throw new Error("An elliptic arc segment set did not include a parameters array");T[t]=r,b[t]=n,k[t]=a}function q(e,t){t.feature();const s=t.featureSet.features.at(-1);let r=0;const{fields:n}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==n)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");s.attributes[n[r++].name]=e.processMessage(p);continue;case 2:e.processMessageWithArgs(h,t,0);continue;case 4:e.processMessageWithArgs(m,t);continue;case 7:e.processMessageWithArgs(S,t);continue;default:e.skip();continue}t.finishFeature?.()}function w(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function F(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function U(e){const t={originPosition:c[0]},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=l(s,c);break;case 2:t.scale=s.processMessage(w);break;case 3:t.translate=s.processMessage(F);break;default:s.skip()}return t}function D(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function M(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function x(e,t){const s=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let r=0,n=e.next().value;for(;s.next();)15===s.tag()&&r++===n?(n=e.next().value,s.processMessageWithArgs(q,t)):s.skip();return}let r=!1;for("metadata"===t.parseOnly?.type&&(r=!0,t.parseOnly.featureCount=0),u(t,"esriGeometryPoint");s.next();)switch(s.tag()){case 1:t.idField(s.getString());continue;case 3:t.featureSet.globalIdFieldName=s.getString();continue;case 4:t.featureSet.geohashFieldName=s.getString();continue;case 5:t.featureSet.geometryProperties=s.processMessage(D);continue;case 7:u(t,l(s,a));continue;case 8:t.featureSet.spatialReference=s.processMessageWithArgs(M);continue;case 10:t.featureSet.hasZ=s.getBool();continue;case 11:t.featureSet.hasM=s.getBool();continue;case 12:t.featureSet.transform=s.processMessage(U);continue;case 9:t.featureSet.exceededTransferLimit=s.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(s.processMessage(f));continue;case 15:if(r){++t.parseOnly.featureCount,s.skip();continue}s.processMessageWithArgs(q,t);continue;case 2:t.idField(s.processMessage(y));continue;default:s.skip()}}function G(e,t,s){let r=-1;for(;e.next();)switch(e.tag()){case 4:r=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(x,t);continue;default:e.skip()}if(-1!==r){if(!t.queryGeometry()){const s=e.pos();e.move(r),e.processMessageWithArgs(h,t,1),e.move(s)}s.queryGeometryType=t.queryGeometryType(),s.queryGeometry=t.queryGeometry()}t.finish(),s.featureResult=t.featureSet}function E(n,a){const o={stack:[],error:void 0,hasError:!1};try{e(o,{[Symbol.dispose](){d=[],k=[],T=[],b=[]}},!1);try{const s={stack:[],error:void 0,hasError:!1};try{const t=e(s,r.constructPooled(new Uint8Array(n),new DataView(n)),!1);let o;for(;t.next();)if(2===t.tag())o={},t.processMessageWithArgs(G,a,o);else t.skip();return o}catch(i){s.error=i,s.hasError=!0}finally{t(s)}}catch(c){throw new s("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:c})}}catch(l){o.error=l,o.hasError=!0}finally{t(o)}}export{E as parseFeatureQuery,f as parseField,U as parseTransform};
2
+ import{__addDisposableResource as e,__disposeResources as t}from"tslib";import s from"../../../core/Error.js";import r from"../../../core/pbf.js";import{featureGeometryTypeKebabDictionary as n}from"../../../geometry/support/typeUtils.js";const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],o=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],i=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function l(e,t){const s=e.getEnum();return s<t.length?t[s]:void 0}function u(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?n.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?n.toJSON(t):t}function p(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function f(e){const t=e.asUnsafe(),s={type:o[0]};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=l(t,o);break;case 3:s.alias=t.getString();break;case 4:s.sqlType=l(t,i);break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function y(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}let d=[];function h(e,t,s){let r=g(t),n=0;const o=e.asUnsafe();for(;o.next();)switch(o.tag()){case 1:1===s?r=g(t,l(o,a)):o.skip();continue;case 2:for(const e=o.getPackedEnd();o.pos()<e;)d[n++]=o.getUInt32();continue;case 3:n>0?(d.length=n,null!=t.geometry(s,r,d)&&(d=[])):t.geometry(s,r,[]);for(const e=o.getPackedEnd();o.pos()<e;)t.coord(o.getSInt64());continue;default:o.skip()}}function m(e,t){const s=[],r=e.asUnsafe();for(;r.next();)if(3!==r.tag())r.skip();else for(const e=r.getPackedEnd();r.pos()<e;)s.push(r.getSInt64());t.centroid(s)}let k=[],b=[],T=[];function S(s,r){const n={stack:[],error:void 0,hasError:!1};try{let o=0;const i=d;let c=0;const l=s.asUnsafe(),u=e(n,l.clonePooled().asUnsafe(),!1);for(;l.next();)switch(l.tag()){case 2:for(const p=l.getPackedEnd();l.pos()<p;)i[o++]=l.getUInt32();continue;case 3:if(!("curvedGeometry"in r))throw new Error(`Tried to parse curved geometry in a ${r.constructor.name}, which doesn't support them.`);l.processMessageWithArgs(I,c++);continue;case 4:{const f=l.getUInt32(),y=l.pos()+f;if(0===c||0===o||0===f){l.move(y);continue}i.length=o,T.length=b.length=c,r.curvedGeometry(g(r),i,b,T);const{hasZ:h,hasM:m}=r.featureSet,S=[],q=[0,0];function w(){for(let e=0;e<q.length;++e)S[e]=q[e],q[e]=l.getSInt64()}h&&q.push(0),m&&q.push(0);const F=[0,0],D=[0,0],U=F,M=F;let x=0;for(let G=0;G<o;++G){w(),S.fill(0),r.startCurvedPart(q);for(const E=x+i[G];x<E;++x){const v=b[x],A=T[x];switch(v){case 0:for(let P=0;P<A;++P)w(),q[0]+=S[0],q[1]+=S[1],r.lineSegment(S,q);continue;case 1:for(let W=0;W<A;++W)w(),U[0]=l.getSInt64(),U[1]=l.getSInt64(),r.circularArcSegment(S,q,U);continue;case 2:for(let O=0;O<A;++O)w(),F[0]=l.getSInt64(),F[1]=l.getSInt64(),D[0]=l.getSInt64(),D[1]=l.getSInt64(),r.bezierSegment(S,q,F,D);continue;case 3:u.move(k[x]);if(u.getUInt32()<7*A)throw new Error("Not implemented: compressed full circle encoding");for(let B=0;B<A;++B){w(),M[0]=u.getDouble(),M[1]=u.getDouble();const N=u.getDouble(),V=u.getDouble(),L=u.getDouble(),C=u.getDouble(),R=u.getDouble();r.ellipticArcSegment(S,q,M,N,V,L,C,R)}continue}}r.finishCurvedPart(q)}continue}default:l.skip()}}catch(a){n.error=a,n.hasError=!0}finally{t(n)}}function I(e,t){const s=e.asUnsafe();let r=0,n=0,a=0;for(;s.next();)switch(s.tag()){case 1:r=s.getEnum();continue;case 2:n=s.getUInt32();continue;case 3:a=s.pos(),s.skip();continue;default:s.skip()}if(3===r&&0===a)throw new Error("An elliptic arc segment set did not include a parameters array");b[t]=r,T[t]=n,k[t]=a}function q(e,t){t.feature();const s=t.featureSet.features.at(-1);let r=0;const{fields:n}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==n)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");s.attributes[n[r++].name]=e.processMessage(p);continue;case 2:e.processMessageWithArgs(h,t,0);continue;case 4:e.processMessageWithArgs(m,t);continue;case 7:e.processMessageWithArgs(S,t);continue;case 11:s.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function w(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function F(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function D(e){const t={originPosition:c[0]},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=l(s,c);break;case 2:t.scale=s.processMessage(w);break;case 3:t.translate=s.processMessage(F);break;default:s.skip()}return t}function U(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function M(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function x(e,t){const s=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let r=0,n=e.next().value;for(;s.next();)15===s.tag()&&r++===n?(n=e.next().value,s.processMessageWithArgs(q,t)):s.skip();return}let r=!1;for("metadata"===t.parseOnly?.type&&(r=!0,t.parseOnly.featureCount=0),u(t,"esriGeometryPoint");s.next();)switch(s.tag()){case 1:t.idField(s.getString());continue;case 3:t.featureSet.globalIdFieldName=s.getString();continue;case 4:t.featureSet.geohashFieldName=s.getString();continue;case 5:t.featureSet.geometryProperties=s.processMessage(U);continue;case 7:u(t,l(s,a));continue;case 8:t.featureSet.spatialReference=s.processMessageWithArgs(M);continue;case 10:t.featureSet.hasZ=s.getBool();continue;case 11:t.featureSet.hasM=s.getBool();continue;case 12:t.featureSet.transform=s.processMessage(D);continue;case 9:t.featureSet.exceededTransferLimit=s.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(s.processMessage(f));continue;case 15:if(r){++t.parseOnly.featureCount,s.skip();continue}s.processMessageWithArgs(q,t);continue;case 2:t.idField(s.processMessage(y));continue;default:s.skip()}}function G(e,t,s){let r=-1;for(;e.next();)switch(e.tag()){case 4:r=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(x,t);continue;default:e.skip()}if(-1!==r){if(!t.queryGeometry()){const s=e.pos();e.move(r),e.processMessageWithArgs(h,t,1),e.move(s)}s.queryGeometryType=t.queryGeometryType(),s.queryGeometry=t.queryGeometry()}t.finish(),s.featureResult=t.featureSet}function E(n,a){const o={stack:[],error:void 0,hasError:!1};try{e(o,{[Symbol.dispose](){d=[],k=[],b=[],T=[]}},!1);try{const s={stack:[],error:void 0,hasError:!1};try{const t=e(s,r.constructPooled(new Uint8Array(n),new DataView(n)),!1);let o;for(;t.next();)if(2===t.tag())o={},t.processMessageWithArgs(G,a,o);else t.skip();return o}catch(i){s.error=i,s.hasError=!0}finally{t(s)}}catch(c){throw new s("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:c})}}catch(l){o.error=l,o.hasError=!0}finally{t(o)}}export{E as parseFeatureQuery,f as parseField,D as parseTransform};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{__decorate as r}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e,subclass as s}from"../../core/accessorSupport/decorators.js";var o;let n=class extends t{constructor(){super(...arguments),this.returnDistance=!0,this.ascendingOrder=!0}static{o=this}clone(){return new o({returnDistance:this.returnDistance,ascendingOrder:this.ascendingOrder})}};r([e()],n.prototype,"returnDistance",void 0),r([e()],n.prototype,"ascendingOrder",void 0),n=o=r([s("esri.rest.support.OutDistance")],n);const i=n;export{i as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{JSONMap as e}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as o}from"../../core/lang.js";import{property as i,cast as s,subclass as n}from"../../core/accessorSupport/decorators.js";import{ensureClass as a}from"../../core/accessorSupport/ensureType.js";import l from"../../geometry/Point.js";import p from"../../geometry/SpatialReference.js";import{fromJSON as u}from"../../geometry/support/jsonUtils.js";import{geometryTypes as m}from"../../geometry/support/typeUtils.js";import d from"../layerSources/DynamicDataLayer.js";import c from"./FullTextSearch.js";import y from"./QuantizationParameters.js";import{spatialRelKebabDict as h}from"./spatialRelationships.js";import f from"./StatisticDefinition.js";import j from"../../time/TimeExtent.js";import{writer as v}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as w}from"../../core/accessorSupport/decorators/enumeration.js";var S;const g=new e({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends r{static{S=this}static from(t){return a(S,t)}constructor(t){super(t),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(t){return"number"==typeof t||"object"==typeof t?t:null}writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}writeParameterValues(t,e){if(t){const r={};for(const e in t){const o=t[e];Array.isArray(o)?r[e]=o.map(t=>t instanceof Date?t.getTime():t):o instanceof Date?r[e]=o.getTime():r[e]=o}e.parameterValues=r}}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}writeWhere(t,e){e.where=t||"1=1"}clone(){return new S(o({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};t([i({json:{write:!0}})],R.prototype,"aggregateIds",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),t([i({json:{write:!0}})],R.prototype,"datumTransformation",void 0),t([s("datumTransformation")],R.prototype,"castDatumTransformation",null),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),t([i({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),t([i({type:d,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),t([i({type:[c],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),t([i({types:m,json:{read:u,write:!0}})],R.prototype,"geometry",void 0),t([i({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"having",void 0),t([i({type:Date})],R.prototype,"historicMoment",void 0),t([v("historicMoment")],R.prototype,"writeHistoricMoment",null),t([i({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),t([i({type:Number,cast:t=>t<1?1:t>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:t,json:{write:{overridePolicy:t=>({enabled:t>1})}}})],R.prototype,"maxRecordCountFactor",void 0),t([i({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),t([i({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),t([i({json:{write:!0}})],R.prototype,"objectIds",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),t([i({type:p,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),t([i({type:[f],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),t([i({json:{write:!0}})],R.prototype,"parameterValues",void 0),t([v("parameterValues")],R.prototype,"writeParameterValues",null),t([i({type:l,json:{write:!0}})],R.prototype,"pixelSize",void 0),t([i({type:y,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),t([i({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),t([i({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),t([i({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),t([i({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],R.prototype,"returnZ",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),t([i({type:p,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),t([w(h,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),t([i({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),t([v("start"),v("num")],R.prototype,"writeStart",null),t([i({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"text",void 0),t([i({type:j,json:{write:!0}})],R.prototype,"timeExtent",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),t([w(g,{ignoreUnknown:!1}),i({json:{write:{overridePolicy(t){return{enabled:!!t&&null!=this.distance}}}}})],R.prototype,"units",void 0),t([i({type:String,json:{write:{overridePolicy(t){return{enabled:null!=t||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),t([v("where")],R.prototype,"writeWhere",null),R=S=t([n("esri.rest.support.Query")],R);export{R as default};
2
+ import{__decorate as t}from"tslib";import{JSONMap as e}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as o}from"../../core/lang.js";import{property as i,cast as s,subclass as n}from"../../core/accessorSupport/decorators.js";import{ensureClass as a}from"../../core/accessorSupport/ensureType.js";import l from"../../geometry/Point.js";import p from"../../geometry/SpatialReference.js";import{fromJSON as u}from"../../geometry/support/jsonUtils.js";import{geometryTypes as m}from"../../geometry/support/typeUtils.js";import d from"../layerSources/DynamicDataLayer.js";import c from"./FullTextSearch.js";import y from"./QuantizationParameters.js";import{spatialRelKebabDict as h}from"./spatialRelationships.js";import f from"./StatisticDefinition.js";import j from"../../time/TimeExtent.js";import{writer as v}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as w}from"../../core/accessorSupport/decorators/enumeration.js";var S;const g=new e({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends r{static{S=this}static from(t){return a(S,t)}constructor(t){super(t),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.outDistance=null,this.where=null}castDatumTransformation(t){return"number"==typeof t||"object"==typeof t?t:null}writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}writeParameterValues(t,e){if(t){const r={};for(const e in t){const o=t[e];Array.isArray(o)?r[e]=o.map(t=>t instanceof Date?t.getTime():t):o instanceof Date?r[e]=o.getTime():r[e]=o}e.parameterValues=r}}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}writeWhere(t,e){e.where=t||"1=1"}clone(){return new S(o({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,outDistance:this.outDistance,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};t([i({json:{write:!0}})],R.prototype,"aggregateIds",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),t([i({json:{write:!0}})],R.prototype,"datumTransformation",void 0),t([s("datumTransformation")],R.prototype,"castDatumTransformation",null),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),t([i({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),t([i({type:d,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),t([i({type:[c],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),t([i({types:m,json:{read:u,write:!0}})],R.prototype,"geometry",void 0),t([i({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"having",void 0),t([i({type:Date})],R.prototype,"historicMoment",void 0),t([v("historicMoment")],R.prototype,"writeHistoricMoment",null),t([i({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),t([i({type:Number,cast:t=>t<1?1:t>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:t,json:{write:{overridePolicy:t=>({enabled:t>1})}}})],R.prototype,"maxRecordCountFactor",void 0),t([i({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),t([i({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),t([i({json:{write:!0}})],R.prototype,"objectIds",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),t([i({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),t([i({type:p,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),t([i({type:[f],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),t([i({json:{write:!0}})],R.prototype,"parameterValues",void 0),t([v("parameterValues")],R.prototype,"writeParameterValues",null),t([i({type:l,json:{write:!0}})],R.prototype,"pixelSize",void 0),t([i({type:y,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),t([i({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),t([i({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),t([i({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),t([i({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],R.prototype,"returnZ",void 0),t([i({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),t([i({type:p,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),t([w(h,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),t([i({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),t([v("start"),v("num")],R.prototype,"writeStart",null),t([i({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),t([i({type:String,json:{write:!0}})],R.prototype,"text",void 0),t([i({type:j,json:{write:!0}})],R.prototype,"timeExtent",void 0),t([i({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),t([w(g,{ignoreUnknown:!1}),i({json:{write:{overridePolicy(t){return{enabled:!!t&&null!=this.distance}}}}})],R.prototype,"units",void 0),t([i()],R.prototype,"outDistance",void 0),t([i({type:String,json:{write:{overridePolicy(t){return{enabled:null!=t||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),t([v("where")],R.prototype,"writeWhere",null),R=S=t([n("esri.rest.support.Query")],R);export{R as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"../../../core/Error.js";import{pt2px as t}from"../../../core/screenUtils.js";import{timeOnlyToMilliseconds as n}from"../../../core/timeUtils.js";import o from"../../../geometry/Point.js";import i from"../../../geometry/SpatialReference.js";import{quantizePoint as r}from"../../../geometry/support/quantizationUtils.js";import{isWrappable as s,getInfo as l}from"../../../geometry/support/spatialReferenceUtils.js";import a from"../../../layers/support/FieldsIndex.js";import{isTimeOnlyField as u,isNumericField as f,numericTypes as c}from"../../../layers/support/fieldUtils.js";import{createValueFunction as p,evaluateDensityKernel as m}from"../../../renderers/support/heatmapUtils.js";import{isAnyDateField as d,getWhereClause as h}from"../../support/utils.js";import{processNullValue as y,getNormalizedValue as $}from"../../../statistics/utils.js";import{loadArcade as g}from"../../../support/loadArcade.js";let j=null;function w(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}function x(e,t,n,i){const a=s(n)?l(n):null,u=a?Math.round((a.valid[1]-a.valid[0])/t.scale[0]):null;return e.map(e=>{const n=new o(e.geometry);return r(t,n,n),e.geometry=a?w(n,u??0,i[0]):n,e})}function I(e,n=18,o,i,r){const s=new Float64Array(i*r);n=Math.round(t(n));let l=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;const u=p(o);for(const{geometry:t,attributes:f}of e){const{x:e,y:o}=t,c=Math.max(0,e-n),p=Math.max(0,o-n),d=Math.min(r,o+n),h=Math.min(i,e+n),y=+u(f);for(let t=p;t<d;t++)for(let r=c;r<h;r++){const u=t*i+r,f=m(r-e,t-o,n)*y,c=s[u]+=f;l=Math.min(l,c),a=Math.max(a,c)}}return{min:l,max:a}}async function F(e,t,o=!0){if(!t)return[];const{field:r,field2:s,field3:l,fieldDelimiter:f,sqlExpression:c,fieldInfos:p,timeZone:m}=e,w=r&&p?.find(e=>e.name.toLowerCase()===r.toLowerCase()),x=!!w&&u(w),I=!!w&&d(w),F=e.valueExpression,b=e.normalizationType,E=e.normalizationField,v=e.normalizationTotal,N=[],U=e.viewInfoParams;let M=null,T=null;if(F){if(!j){const{arcadeUtils:e}=await g();j=e}j.hasGeometryOperations(F)&&await j.enableGeometryOperations(),M=j.createFunction(F),T=U?j.getViewInfo({viewingMode:U.viewingMode,scale:U.scale,spatialReference:new i(U.spatialReference)}):null}const z=e.fieldInfos,O=!(t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass)&&z?{fields:z}:null;for await(const i of t){const e=i.attributes;let t;if(c){const e=await h(c,new a(z));e&&(t=e.calculateValue(i.attributes))}else if(F){const e=O?Object.assign({},i,{layer:O}):i,n=j.createExecContext(e,T,m);t=j.executeFunction(M,n)}else e&&(t=e[r],s?(t=`${y(t)}${f}${y(e[s])}`,l&&(t=`${t}${f}${y(e[l])}`)):"string"==typeof t&&o&&(I?t=t?new Date(t).getTime():null:x&&(t=t?n(t):null)));if(b&&"number"==typeof t&&isFinite(t)){const n=e&&parseFloat(e[E]);t=$(t,b,n,v)}N.push(t)}return N}function b(e){const t=e.field,n=e.normalizationType,o=e.normalizationField;let i;return"field"===n?i="(NOT "+o+" = 0)":"log"!==n&&"natural-log"!==n&&"square-root"!==n||(i=`(${t} > 0)`),i}function E(e,t,n){const o=null!=t?e+" >= "+t:"",i=null!=n?e+" <= "+n:"";let r="";return r=o&&i?U(o,i):o||i,r?"("+r+")":""}function v(t,n,o,i){let r;return n?n.name!==t.objectIdField&&i.includes(n.type)||(r=new e(o,"'field' should be one of these types: "+i.join(","))):r=new e(o,"'field' is not defined in the layer schema"),r}function N(t,n,o){let i;return n?n.name!==t.objectIdField&&f(n)||(i=new e(o,"'field' should be one of these numeric types: "+c.join(","))):i=new e(o,"'field' is not defined in the layer schema"),i}function U(e,t){let n=null!=e?e:"";return null!=t&&t&&(n=n?"("+n+") AND ("+t+")":t),n}function M(t,n){if(t&&"intersects"!==t.spatialRelationship)return new e(n,"Only 'intersects' spatialRelationship is supported for featureFilter")}function T(t,n,o){const i=z({layer:t,fields:n});if(i.length)return new e(o,"Unknown fields: "+i.join(", ")+". You can only use fields defined in the layer schema");const r=O({layer:t,fields:n});return r.length?new e(o,"Unsupported fields: "+r.join(", ")+". You can only use fields that can be fetched i.e. AdapterFieldUsageInfo.supportsStatistics must be true"):void 0}function z(e){const t=e.layer;return e.fields.filter(e=>!t.getField(e))}function O(e){const t=e.layer;return e.fields.filter(e=>{const n=t.getFieldUsageInfo(e);return!n||!n.supportsStatistics})}function R(e,t,n){const o=[],i=[],r=[],s=[],l=[];e.forEach((e,t)=>{const a=e.field?"field":"expression",u=e.field||e.valueExpression;e.field?(l.push(u),i.push(`var ${a}${t} = Number($feature["${u}"]);`)):(o.push(`function getValueForExpr${t}() {\n ${u} \n}`),i.push(`var ${a}${t} = Number(getValueForExpr${t}());`)),n||r.push(`${a}${t} = IIf(${a}${t} < 0, 0, ${a}${t});`),s.push(`${a}${t}`)});const a=o.length?null:l.reduce((e,t)=>`${e} + ${t}`);let u=null;t||n?t?n||a&&(u=`(( ${a} ) >= 0)`):a&&(u=`(( ${a} ) <> 0)`):a&&(u=`(( ${a} ) > 0)`);return{valueExpression:[o.length?o.join("\n"):"",i.join("\n"),r.join("\n"),`var total = ${s.join(" + ")};`,"return total;"].filter(Boolean).join("\n\n"),sqlExpression:a,sqlWhere:u}}export{I as calculateHeatmapStats,F as getDataValues,E as getRangeExpr,b as getSQLFilterForNormalization,R as getSumOfAttributesExpr,U as mergeWhereClauses,x as quantizeFeatures,T as verifyBasicFieldValidity,v as verifyFieldType,M as verifyFilterValidity,N as verifyNumericField};
2
+ import e from"../../../core/Error.js";import{pt2px as t}from"../../../core/screenUtils.js";import{timeOnlyToMilliseconds as n}from"../../../core/timeUtils.js";import o from"../../../geometry/Point.js";import i from"../../../geometry/SpatialReference.js";import{quantizePoint as r}from"../../../geometry/support/quantizationUtils.js";import{isWrappable as s,getInfo as l}from"../../../geometry/support/spatialReferenceUtils.js";import a from"../../../layers/support/FieldsIndex.js";import{isTimeOnlyField as u,isNumericField as f,numericTypes as c}from"../../../layers/support/fieldUtils.js";import{createValueFunction as p,evaluateDensityKernel as m}from"../../../renderers/support/heatmapUtils.js";import{isAnyDateField as d,getWhereClause as h}from"../../support/utils.js";import{processNullValue as y,getNormalizedValue as $}from"../../../statistics/utils.js";import{loadArcade as g}from"../../../support/loadArcade.js";let j;function w(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}function x(e,t,n,i){const a=s(n)?l(n):null,u=a?Math.round((a.valid[1]-a.valid[0])/t.scale[0]):null;return e.map(e=>{const n=new o(e.geometry);return r(t,n,n),e.geometry=a?w(n,u??0,i[0]):n,e})}function I(e,n=18,o,i,r){const s=new Float64Array(i*r);n=Math.round(t(n));let l=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;const u=p(o);for(const{geometry:t,attributes:f}of e){const{x:e,y:o}=t,c=Math.max(0,e-n),p=Math.max(0,o-n),d=Math.min(r,o+n),h=Math.min(i,e+n),y=+u(f);for(let t=p;t<d;t++)for(let r=c;r<h;r++){const u=t*i+r,f=m(r-e,t-o,n)*y,c=s[u]+=f;l=Math.min(l,c),a=Math.max(a,c)}}return{min:l,max:a}}async function F(e,t,o=!0){if(!t)return[];const{field:r,field2:s,field3:l,fieldDelimiter:f,sqlExpression:c,fieldInfos:p,timeZone:m}=e,w=r&&p?.find(e=>e.name.toLowerCase()===r.toLowerCase()),x=!!w&&u(w),I=!!w&&d(w),F=e.valueExpression,b=e.normalizationType,E=e.normalizationField,v=e.normalizationTotal,N=[],U=e.viewInfoParams;let M,T=null;if(F){if(!j){const{arcadeUtils:e}=await g();j=e}j.hasGeometryOperations(F)&&await j.enableGeometryOperations(),T=j.createFunction(F),M=U?j.getViewInfo({viewingMode:U.viewingMode,scale:U.scale,spatialReference:new i(U.spatialReference)}):null}const z=e.fieldInfos,O=!(t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass)&&z?{fields:z}:null;for await(const i of t){const e=i.attributes;let t;if(c){const e=await h(c,new a(z));e&&(t=e.calculateValue(i.attributes))}else if(F){const e=O?Object.assign({},i,{layer:O}):i,n=j.createExecContext(e,M,m);t=j.executeFunction(T,n)}else e&&(t=e[r],s?(t=`${y(t)}${f}${y(e[s])}`,l&&(t=`${t}${f}${y(e[l])}`)):"string"==typeof t&&o&&(I?t=t?new Date(t).getTime():null:x&&(t=t?n(t):null)));if(b&&"number"==typeof t&&isFinite(t)){const n=e&&parseFloat(e[E]);t=$(t,b,n,v)}N.push(t)}return N}function b(e){const t=e.field,n=e.normalizationType,o=e.normalizationField;let i;return"field"===n?i="(NOT "+o+" = 0)":"log"!==n&&"natural-log"!==n&&"square-root"!==n||(i=`(${t} > 0)`),i}function E(e,t,n){const o=null!=t?e+" >= "+t:"",i=null!=n?e+" <= "+n:"";let r="";return r=o&&i?U(o,i):o||i,r?"("+r+")":""}function v(t,n,o,i){let r;return n?n.name!==t.objectIdField&&i.includes(n.type)||(r=new e(o,"'field' should be one of these types: "+i.join(","))):r=new e(o,"'field' is not defined in the layer schema"),r}function N(t,n,o){let i;return n?n.name!==t.objectIdField&&f(n)||(i=new e(o,"'field' should be one of these numeric types: "+c.join(","))):i=new e(o,"'field' is not defined in the layer schema"),i}function U(e,t){let n=null!=e?e:"";return null!=t&&t&&(n=n?"("+n+") AND ("+t+")":t),n}function M(t,n){if(t&&"intersects"!==t.spatialRelationship)return new e(n,"Only 'intersects' spatialRelationship is supported for featureFilter")}function T(t,n,o){const i=z({layer:t,fields:n});if(i.length)return new e(o,"Unknown fields: "+i.join(", ")+". You can only use fields defined in the layer schema");const r=O({layer:t,fields:n});return r.length?new e(o,"Unsupported fields: "+r.join(", ")+". You can only use fields that can be fetched i.e. AdapterFieldUsageInfo.supportsStatistics must be true"):void 0}function z(e){const t=e.layer;return e.fields.filter(e=>!t.getField(e))}function O(e){const t=e.layer;return e.fields.filter(e=>{const n=t.getFieldUsageInfo(e);return!n||!n.supportsStatistics})}function R(e,t,n){const o=[],i=[],r=[],s=[],l=[];e.forEach((e,t)=>{const a=e.field?"field":"expression",u=e.field||e.valueExpression;e.field?(l.push(u),i.push(`var ${a}${t} = Number($feature["${u}"]);`)):(o.push(`function getValueForExpr${t}() {\n ${u} \n}`),i.push(`var ${a}${t} = Number(getValueForExpr${t}());`)),n||r.push(`${a}${t} = IIf(${a}${t} < 0, 0, ${a}${t});`),s.push(`${a}${t}`)});const a=o.length?null:l.reduce((e,t)=>`${e} + ${t}`);let u=null;t||n?t?n||a&&(u=`(( ${a} ) >= 0)`):a&&(u=`(( ${a} ) <> 0)`):a&&(u=`(( ${a} ) > 0)`);return{valueExpression:[o.length?o.join("\n"):"",i.join("\n"),r.join("\n"),`var total = ${s.join(" + ")};`,"return total;"].filter(Boolean).join("\n\n"),sqlExpression:a,sqlWhere:u}}export{I as calculateHeatmapStats,F as getDataValues,E as getRangeExpr,b as getSQLFilterForNormalization,R as getSumOfAttributesExpr,U as mergeWhereClauses,x as quantizeFeatures,T as verifyBasicFieldValidity,v as verifyFieldType,M as verifyFilterValidity,N as verifyNumericField};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{pickRandom as t}from"../../../core/arrayUtils.js";import r from"../../../core/Error.js";import a from"../../../core/Logger.js";import{assertIsSome as i}from"../../../core/maybe.js";import{timeout as s,throwIfAborted as o}from"../../../core/promiseUtils.js";import{whenOnce as n}from"../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../core/accessorSupport/decorators.js";import{toQuantizationTransform as m}from"../../../geometry/support/quantizationUtils.js";import{kebabDict as p}from"../../../layers/support/fieldType.js";import{isTimeOnlyField as y}from"../../../layers/support/fieldUtils.js";import f from"../../../rest/support/QuantizationParameters.js";import{getArcadeForPredominantCategory as c}from"../../statistics/support/predominanceUtils.js";import{summaryStatistics as d,uniqueValues as h,histogram as w,classBreaks as g,heatmapStatistics as F}from"../../statistics/support/statsWorker.js";import{mergeWhereClauses as S}from"../../statistics/support/utils.js";import{WorkerClient as q}from"../../statistics/support/WorkerClient.js";import{getFieldsList as v,isAnyDateField as x,getFieldsFromWhereClauses as V,fieldDelimiter as _}from"../utils.js";import z from"./LayerAdapter.js";import{getHistogramAttributeDefinition as T,getAttributeBinsQuery as N,processQueryAttributeBinsResult as M}from"./support/histogramUtils.js";import{ensureFeaturesJSON as L,getSummaryStatsQuery as E,getSummaryStatisticsFromFeatureSet as C,getViewInfoParams as j,getMissingFields as b,updateQueryWithFeatureFilter as I,getUVQuery as k,getUniqueValuesFromFeatureSet as O,getBins as Q,getDomainsForFields as J,getPredominantCategoriesFromUVInfos as B}from"./support/utils.js";import{processSummaryStatisticsResult as P,createUVResult as U,resolveCBResult as A}from"../../../statistics/utils.js";import{loadArcade as $}from"../../../support/loadArcade.js";const G=5;let R=null,D=class extends z{constructor(){super(...arguments),this._hasLocalSource=!1,this.adapterName="in-memory-layer-adapter"}destroy(){this.workerClient?.destroy()}async _waitForLayerViewUpdate(e){if(!e)throw new r(`${this.adapterName}:insufficient-data`,"layerView is required to fetch the features");const t=new AbortController,i=n(()=>!e.updating,t.signal);await s(i,5e3,t).catch(e=>{throw a.getLogger(this).warn("LayerView is taking too long to update. Aborting fetch from layerView."),e})}async _fetchFeatureSetFromMemory(e,t,a){const i=this.layer;if(this._hasLocalSource&&"queryFeatures"in i)return i.queryFeatures(e);if(!t)throw new r(`${this.adapterName}:insufficient-data`,"view is required to fetch the features from layerView");const s=await t.whenLayerView(this.layer);return await this._waitForLayerViewUpdate(s),s.queryFeatures(e,{signal:a})}async _fetchFeaturesFromMemory(e,t,a,i){const s=this.layer,o="json"===i;if(this._hasLocalSource&&"queryFeatures"in s){const e=await s.queryFeatures(t);return o?L(e.features):e.features}if(await this._waitForLayerViewUpdate(e),o&&"queryFeaturesJSON"in e&&e.queryFeaturesJSON){const{features:r}=await e.queryFeaturesJSON(t,{signal:a});return r}if(!("queryFeatures"in e))throw new r(`${this.adapterName}:not-supported`,"'queryFeatures' is not supported on the layerView");const n=await e.queryFeatures(t,{signal:a});return o?L(n.features):n.features}_fetchFeaturesForStats(e,t){return v({field:e.field,field2:e.field2,field3:e.field3,normalizationField:e.normalizationField,valueExpression:e.valueExpression,fields:e.fields}).then(r=>this.getSampleFeatures({sampleSize:-1,view:e.view,returnGeometry:e.returnGeometry,filter:e.filter,requiredFields:r,sqlWhere:e.sqlWhere,signal:e.signal},t))}async _summaryStatsFromClientQuery(e,t){const{view:r,signal:a}=e,i=E(this,e,t),s=await this._fetchFeatureSetFromMemory(i,r,a),o=C(s,x(t)||y(t));return P(o,e.outStatisticTypes)}async _getNormalizationTotalFromMemory(e,t,a){const{featuresJSON:i,graphics:s,layerView:o,query:n}=t,l={include:["sum"]},u=(!i&&!s&&o&&"querySummaryStatistics"in o?await o.querySummaryStatistics(n,{field:e},{signal:a}):i?await this.workerClient.summaryStatistics({field:e,outStatisticTypes:l},i):await d({attribute:{field:e,outStatisticTypes:l},features:s??[]})).sum;if(null==u)throw new r(`${this.adapterName}:invalid`,"invalid normalizationTotal");return u}async _summaryStatsFromMemory(e,t){const{view:r,field:a,valueExpression:i,normalizationType:s,signal:o}=e,n={field:a,valueExpression:i,normalizationType:s,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,minValue:e.minValue,maxValue:e.maxValue,outStatisticTypes:e.outStatisticTypes},{featuresJSON:l,graphics:u,layerView:m,query:y,fieldInfos:f}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"querySummaryStatistics"});return i&&r&&(l||u)&&(n.fieldType=t?.type?p.toJSON(t.type):null,n.viewInfoParams=j(r),n.timeZone=r.timeZone,n.fieldInfos=f),"percent-of-total"===s&&null==e.normalizationTotal&&(n.normalizationTotal=await this._getNormalizationTotalFromMemory(a,{featuresJSON:l,graphics:u,layerView:m,query:y},o)),!l&&!u&&m&&"querySummaryStatistics"in m?m.querySummaryStatistics(y,n,{signal:o}):l?this.workerClient.summaryStatistics(n,l):d({attribute:n,features:u})}async _getFilteredFeatures(e,t){let r=e;const a=t?.geometry;if("intersects"===t?.spatialRelationship&&a){const t=await import("../../../geometry/operators/intersectionOperator.js");r=e.filter(({geometry:e})=>!(!e||!t.execute(e,a)))}return e.length&&"declaredClass"in e[0]&&"esri.Graphic"===e[0].declaredClass?{graphics:r}:{featuresJSON:r}}async _processStatsFromMemoryParams(e){const{features:t,filter:r}=e;if(t?.length)return this._getFilteredFeatures(t,r);const{view:a,field:i,field2:s,field3:o,normalizationField:n,valueExpression:l,sqlExpression:u,sqlWhere:m,layerViewFunc:p,signal:y}=e;let f=e.returnGeometry;if(null==f&&l){if(!R){const{arcadeUtils:e}=await $();R=e}const e=R.hasGeometryOperations(l);e&&await R.enableGeometryOperations(),f=e}let c=null,d=null,h=null,w=null,g=null;if(a)try{const e="subtype-sublayer"===this.layer.type?this.layer.parent:this.layer;c=await a.whenLayerView(e),d=null!=p&&null!=c&&p in c&&"function"==typeof c[p]}catch{d=!1}if(d)try{await this._waitForLayerViewUpdate(c);const e=await v({field:i,field2:s,field3:o,normalizationField:n,valueExpression:l,fields:await V([u,m],this.layer.fieldsIndex)});b(this,e,c).length?d=!1:(h=this.layer.createQuery(),h.outFields=e,h.returnGeometry=!1,h.where=S(h.where,m),I(h,r)),c.suspended&&(d=!1)}catch{d=!1}return d||(w=await this._fetchFeaturesForStats({field:i,field2:s,field3:o,fields:await V([u,m],this.layer.fieldsIndex),valueExpression:l,normalizationField:n,returnGeometry:f,filter:r,sqlWhere:m,view:a,signal:y},"json"),g=(await v({valueExpression:l})).map(e=>this.getField(e)?.toJSON()).filter(Boolean)),{layerView:c,query:h,featuresJSON:w,fieldInfos:g}}async _uvFromClientQuery(e,t){const{view:r,signal:a}=e,i=k(this,e),s=await this._fetchFeatureSetFromMemory(i,r,a),o=await O(s,{layer:this,field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:_,view:e.view,signal:e.signal});return U(o,t,e.returnAllCodedValues,_)}async _uvFromMemory(e,t){const{view:r,field:a,valueExpression:i,returnAllCodedValues:s,signal:o}=e,{featuresJSON:n,graphics:l,layerView:u,query:m,fieldInfos:p}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryUniqueValues"}),y={field:a,field2:e.field2,field3:e.field3,fieldDelimiter:_,valueExpression:i,domains:t,returnAllCodedValues:s};return i&&r&&(n||l)&&(y.viewInfoParams=j(r),y.timeZone=r.timeZone,y.fieldInfos=p),!n&&!l&&u&&"queryUniqueValues"in u?u.queryUniqueValues(m,y,{signal:o}):n?this.workerClient.uniqueValues(y,n):h({attribute:y,features:l})}_histogramForField(e){let t=null;return t=null!=e.minValue&&null!=e.maxValue?Promise.resolve({min:e.minValue,max:e.maxValue}):this.summaryStatistics({...e,outStatisticTypes:{include:["min","max","count"]}}).then(e=>{if(!e.count)throw new r(`${this.adapterName}:insufficient-data`,"Either the layer has no features or none of the features have data for the field");return{min:e.min,max:e.max}}),t.then(t=>Q(this,{min:t.min,max:t.max},e.field,e.numBins??void 0,e.view,e.filter,e.signal))}async _histogramFromQueryAttributeBinsFromMemory(e){const{field:t,normalizationType:r,signal:a}=e,i=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryAttributeBins"}),{featuresJSON:s,graphics:o,layerView:n,query:l}=i,u="percent-of-total"===r?e.normalizationTotal??await this._getNormalizationTotalFromMemory(t,i,a):void 0;if(!n||!("queryAttributeBins"in n)||s||o){const t=T(e,i,u);return s?this.workerClient.histogram(t,s):w({attribute:t,features:o})}const{query:m,min:p,max:y}=await N(e,this,u,l);if(!m)return{bins:[],minValue:p,maxValue:y,normalizationTotal:u};const f=await n.queryAttributeBins(m,{signal:a});return M(f,t?this.getField(t):null,{minValue:p,maxValue:y,normalizationTotal:u})}async _histogramFromMemory(e){const{field:t,signal:r}=e,a=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryHistogram"}),{featuresJSON:i,graphics:s,layerView:o,query:n}=a,l="percent-of-total"===e.normalizationType?e.normalizationTotal??await this._getNormalizationTotalFromMemory(t,a,r):void 0,u=T(e,a,l);return!i&&!s&&o&&"queryHistogram"in o?o.queryHistogram(n,u,{signal:r}):i?this.workerClient.histogram(u,i):w({attribute:u,features:s})}_classBreaksFromInterpolation(e){const{minValue:t,maxValue:r}=e,a=e.numClasses||G,i=[],s=(r-t)/a;for(let l=0;l<a;l++){const e=t+l*s;i.push({minValue:e,maxValue:e+s})}i[a-1].maxValue=r;const o={classBreaks:i,normalizationTotal:e.normalizationTotal},n=A(o,e.classificationMethod);return Promise.resolve(n)}async _classBreaksFromMemory(e){const{view:t,field:r,valueExpression:a,signal:i}=e,{featuresJSON:s,graphics:o,layerView:n,query:l,fieldInfos:u}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryClassBreaks"}),m={field:r,valueExpression:a,normalizationType:e.normalizationType,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,minValue:e.minValue,maxValue:e.maxValue,standardDeviationInterval:e.standardDeviationInterval,classificationMethod:e.classificationMethod,numClasses:e.numClasses};return a&&t&&(s||o)&&(m.viewInfoParams=j(t),m.timeZone=t.timeZone,m.fieldInfos=u),"percent-of-total"===e.normalizationType&&null==e.normalizationTotal&&(m.normalizationTotal=await this._getNormalizationTotalFromMemory(r,{featuresJSON:s,graphics:o,layerView:n,query:l},i)),!s&&!o&&n&&"queryClassBreaks"in n?n.queryClassBreaks(l,m,{signal:i}):s?this.workerClient.classBreaks(m,s):g({attribute:m,features:o})}async _heatmapStatsFromMemory(e){const{view:t,field:r,radius:a,signal:s}=e;i(t,"InMemoryLayerAdapter: must have a view");try{const r=await t.whenLayerView(this.layer);if("queryHeatmapStatistics"in r&&!r.updating&&!e.filter)return await r.queryHeatmapStatistics({field:e.field,radius:e.radius})}catch{o(s)}const{featuresJSON:n,graphics:l}=await this._processStatsFromMemoryParams({...e,returnGeometry:!0}),u=new f({extent:t.extent,tolerance:"2d"===t.type?t.state.resolution:t.pixelSizeAt?.(t.center)}),p={field:r,radius:a,transform:m(u),spatialReference:t.spatialReference?.toJSON(),size:t.size};return n?.length||l?.length?n?this.workerClient.heatmapStatistics(p,n):F({attribute:p,features:l}):{min:null,max:null}}getField(e=""){return this.layer.getField(e)}getFieldUsageInfo(e){return this.getField(e)?{supportsLabelingInfo:!0,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:!0,supportsStatistics:!0}:null}getFieldDomain(e,t){return this.layer.getFieldDomain(e,t)}createQuery(){return this.layer.createQuery()}async summaryStatistics(e){const{field:t,valueExpression:a,sqlExpression:i,features:s,view:o}=e,n=t?this.getField(t):null,l=!!a,u="3d"===o?.type;if(!a&&i&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return l||s||u?this._summaryStatsFromMemory(e,n):this._summaryStatsFromClientQuery(e,n)}async uniqueValues(e){const{valueExpression:t,sqlExpression:a,features:i,view:s}=e,o=await J(e,this),n=!!t,l="3d"===s?.type;if(!t&&a&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return n||i||l?this._uvFromMemory(e,o):this._uvFromClientQuery(e,o)}async histogram(e){const{features:t,valueExpression:a,normalizationType:i,sqlExpression:s}=e,o=t||!!a;if(!a&&s&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return o||i?this._histogramFromMemory(e):this._histogramForField(e)}async classBreaks(e){return!1!==e.analyzeData?this._classBreaksFromMemory(e):this._classBreaksFromInterpolation(e)}async queryFeatureCount(e){const{whereClause:t,view:a,signal:i}=e;if(!a)throw new r(`${this.adapterName}:insufficient-data`,"view is required to fetch the features from layerView");const s=this.layer.createQuery();s.where=S(s.where,t);const o=await a.whenLayerView(this.layer);return await n(()=>!o.updating,i),o.queryFeatureCount(s,{signal:i})}async generateRenderer(e,t){throw new r(`${this.adapterName}:not-supported`,"Layer does not support generateRenderer operation")}async predominantCategories(e){const{fields:t,view:r,signal:a,filter:i}=e,s=c(t),o=await this._uvFromMemory({valueExpression:s,view:r,signal:a,filter:i});return B(o.uniqueValueInfos,t)}async heatmapStatistics(e){return this._heatmapStatsFromMemory(e)}async getSampleFeatures(e,a){const{view:i,sampleSize:s,requiredFields:o,returnGeometry:n,sqlWhere:l,filter:u,signal:m}=e,p=this.layer.createQuery(),y=1;if(p.outSpatialReference=i?.spatialReference,p.returnGeometry=!!n,p.outFields=o,p.where=S(p.where,l),I(p,u),!i)throw new r(`${this.adapterName}:not-supported`,"view is required to get sample features for Layer");const f=await i.whenLayerView(this.layer);if(b(this,o,f).length)throw new r(`${this.adapterName}:not-supported`,"Required fields need to be passed in the outFields for Layer");const c=await this._fetchFeaturesFromMemory(f,p,m,a),d=null!=s&&s>0&&s<=c.length?s:c.length;return t(c,d,y)}load(e){const t=this.layer.load(e).then(async t=>{this.geometryType=t.geometryType,this.objectIdField=t.objectIdField,this.supportsSQLExpression="stream"===t.type||!!t.capabilities?.query?.supportsSqlExpression,this.minScale=t.minScale,this.maxScale=t.maxScale,this.fullExtent="fullExtent"in t?t.fullExtent:t.parent?.fullExtent,this._hasLocalSource=!1,this.hasQueryEngine=!0,this.workerClient=q.getInstance(),await this.workerClient.open(e.signal)});return this.addResolvingPromise(t),Promise.resolve(this)}};e([l({readOnly:!0})],D.prototype,"adapterName",void 0),e([l({constructOnly:!0})],D.prototype,"layer",void 0),D=e([u("esri.smartMapping.support.adapters.InMemoryLayerAdapter")],D);export{D as default};
2
+ import{__decorate as e}from"tslib";import{pickRandom as t}from"../../../core/arrayUtils.js";import r from"../../../core/Error.js";import a from"../../../core/Logger.js";import{assertIsSome as i}from"../../../core/maybe.js";import{timeout as s,throwIfAborted as o}from"../../../core/promiseUtils.js";import{whenOnce as n}from"../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../core/accessorSupport/decorators.js";import{toQuantizationTransform as m}from"../../../geometry/support/quantizationUtils.js";import{kebabDict as p}from"../../../layers/support/fieldType.js";import{isTimeOnlyField as y}from"../../../layers/support/fieldUtils.js";import f from"../../../rest/support/QuantizationParameters.js";import{getArcadeForPredominantCategory as c}from"../../statistics/support/predominanceUtils.js";import{summaryStatistics as d,uniqueValues as h,histogram as w,classBreaks as g,heatmapStatistics as F}from"../../statistics/support/statsWorker.js";import{mergeWhereClauses as S}from"../../statistics/support/utils.js";import{WorkerClient as q}from"../../statistics/support/WorkerClient.js";import{getFieldsList as v,isAnyDateField as x,getFieldsFromWhereClauses as V,fieldDelimiter as _}from"../utils.js";import z from"./LayerAdapter.js";import{getHistogramAttributeDefinition as T,getAttributeBinsQuery as N,processQueryAttributeBinsResult as M}from"./support/histogramUtils.js";import{ensureFeaturesJSON as L,getSummaryStatsQuery as E,getSummaryStatisticsFromFeatureSet as C,getViewInfoParams as j,getMissingFields as b,updateQueryWithFeatureFilter as I,getUVQuery as k,getUniqueValuesFromFeatureSet as O,getBins as Q,getDomainsForFields as J,getPredominantCategoriesFromUVInfos as B}from"./support/utils.js";import{processSummaryStatisticsResult as P,createUVResult as U,resolveCBResult as A}from"../../../statistics/utils.js";import{loadArcade as $}from"../../../support/loadArcade.js";const G=5;let R,D=class extends z{constructor(){super(...arguments),this._hasLocalSource=!1,this.adapterName="in-memory-layer-adapter"}destroy(){this.workerClient?.destroy()}async _waitForLayerViewUpdate(e){if(!e)throw new r(`${this.adapterName}:insufficient-data`,"layerView is required to fetch the features");const t=new AbortController,i=n(()=>!e.updating,t.signal);await s(i,5e3,t).catch(e=>{throw a.getLogger(this).warn("LayerView is taking too long to update. Aborting fetch from layerView."),e})}async _fetchFeatureSetFromMemory(e,t,a){const i=this.layer;if(this._hasLocalSource&&"queryFeatures"in i)return i.queryFeatures(e);if(!t)throw new r(`${this.adapterName}:insufficient-data`,"view is required to fetch the features from layerView");const s=await t.whenLayerView(this.layer);return await this._waitForLayerViewUpdate(s),s.queryFeatures(e,{signal:a})}async _fetchFeaturesFromMemory(e,t,a,i){const s=this.layer,o="json"===i;if(this._hasLocalSource&&"queryFeatures"in s){const e=await s.queryFeatures(t);return o?L(e.features):e.features}if(await this._waitForLayerViewUpdate(e),o&&"queryFeaturesJSON"in e&&e.queryFeaturesJSON){const{features:r}=await e.queryFeaturesJSON(t,{signal:a});return r}if(!("queryFeatures"in e))throw new r(`${this.adapterName}:not-supported`,"'queryFeatures' is not supported on the layerView");const n=await e.queryFeatures(t,{signal:a});return o?L(n.features):n.features}_fetchFeaturesForStats(e,t){return v({field:e.field,field2:e.field2,field3:e.field3,normalizationField:e.normalizationField,valueExpression:e.valueExpression,fields:e.fields}).then(r=>this.getSampleFeatures({sampleSize:-1,view:e.view,returnGeometry:e.returnGeometry,filter:e.filter,requiredFields:r,sqlWhere:e.sqlWhere,signal:e.signal},t))}async _summaryStatsFromClientQuery(e,t){const{view:r,signal:a}=e,i=E(this,e,t),s=await this._fetchFeatureSetFromMemory(i,r,a),o=C(s,x(t)||y(t));return P(o,e.outStatisticTypes)}async _getNormalizationTotalFromMemory(e,t,a){const{featuresJSON:i,graphics:s,layerView:o,query:n}=t,l={include:["sum"]},u=(!i&&!s&&o&&"querySummaryStatistics"in o?await o.querySummaryStatistics(n,{field:e},{signal:a}):i?await this.workerClient.summaryStatistics({field:e,outStatisticTypes:l},i):await d({attribute:{field:e,outStatisticTypes:l},features:s??[]})).sum;if(null==u)throw new r(`${this.adapterName}:invalid`,"invalid normalizationTotal");return u}async _summaryStatsFromMemory(e,t){const{view:r,field:a,valueExpression:i,normalizationType:s,signal:o}=e,n={field:a,valueExpression:i,normalizationType:s,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,minValue:e.minValue,maxValue:e.maxValue,outStatisticTypes:e.outStatisticTypes},{featuresJSON:l,graphics:u,layerView:m,query:y,fieldInfos:f}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"querySummaryStatistics"});return i&&r&&(l||u)&&(n.fieldType=t?.type?p.toJSON(t.type):null,n.viewInfoParams=j(r),n.timeZone=r.timeZone,n.fieldInfos=f),"percent-of-total"===s&&null==e.normalizationTotal&&(n.normalizationTotal=await this._getNormalizationTotalFromMemory(a,{featuresJSON:l,graphics:u,layerView:m,query:y},o)),!l&&!u&&m&&"querySummaryStatistics"in m?m.querySummaryStatistics(y,n,{signal:o}):l?this.workerClient.summaryStatistics(n,l):d({attribute:n,features:u})}async _getFilteredFeatures(e,t){let r=e;const a=t?.geometry;if("intersects"===t?.spatialRelationship&&a){const t=await import("../../../geometry/operators/intersectionOperator.js");r=e.filter(({geometry:e})=>!(!e||!t.execute(e,a)))}return e.length&&"declaredClass"in e[0]&&"esri.Graphic"===e[0].declaredClass?{graphics:r}:{featuresJSON:r}}async _processStatsFromMemoryParams(e){const{features:t,filter:r}=e;if(t?.length)return this._getFilteredFeatures(t,r);const{view:a,field:i,field2:s,field3:o,normalizationField:n,valueExpression:l,sqlExpression:u,sqlWhere:m,layerViewFunc:p,signal:y}=e;let f=e.returnGeometry;if(null==f&&l){if(!R){const{arcadeUtils:e}=await $();R=e}const e=R.hasGeometryOperations(l);e&&await R.enableGeometryOperations(),f=e}let c=null,d=null,h=null,w=null,g=null;if(a)try{const e="subtype-sublayer"===this.layer.type?this.layer.parent:this.layer;c=await a.whenLayerView(e),d=null!=p&&null!=c&&p in c&&"function"==typeof c[p]}catch{d=!1}if(d)try{await this._waitForLayerViewUpdate(c);const e=await v({field:i,field2:s,field3:o,normalizationField:n,valueExpression:l,fields:await V([u,m],this.layer.fieldsIndex)});b(this,e,c).length?d=!1:(h=this.layer.createQuery(),h.outFields=e,h.returnGeometry=!1,h.where=S(h.where,m),I(h,r)),c.suspended&&(d=!1)}catch{d=!1}return d||(w=await this._fetchFeaturesForStats({field:i,field2:s,field3:o,fields:await V([u,m],this.layer.fieldsIndex),valueExpression:l,normalizationField:n,returnGeometry:f,filter:r,sqlWhere:m,view:a,signal:y},"json"),g=(await v({valueExpression:l})).map(e=>this.getField(e)?.toJSON()).filter(Boolean)),{layerView:c,query:h,featuresJSON:w,fieldInfos:g}}async _uvFromClientQuery(e,t){const{view:r,signal:a}=e,i=k(this,e),s=await this._fetchFeatureSetFromMemory(i,r,a),o=await O(s,{layer:this,field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:_,view:e.view,signal:e.signal});return U(o,t,e.returnAllCodedValues,_)}async _uvFromMemory(e,t){const{view:r,field:a,valueExpression:i,returnAllCodedValues:s,signal:o}=e,{featuresJSON:n,graphics:l,layerView:u,query:m,fieldInfos:p}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryUniqueValues"}),y={field:a,field2:e.field2,field3:e.field3,fieldDelimiter:_,valueExpression:i,domains:t,returnAllCodedValues:s};return i&&r&&(n||l)&&(y.viewInfoParams=j(r),y.timeZone=r.timeZone,y.fieldInfos=p),!n&&!l&&u&&"queryUniqueValues"in u?u.queryUniqueValues(m,y,{signal:o}):n?this.workerClient.uniqueValues(y,n):h({attribute:y,features:l})}_histogramForField(e){let t=null;return t=null!=e.minValue&&null!=e.maxValue?Promise.resolve({min:e.minValue,max:e.maxValue}):this.summaryStatistics({...e,outStatisticTypes:{include:["min","max","count"]}}).then(e=>{if(!e.count)throw new r(`${this.adapterName}:insufficient-data`,"Either the layer has no features or none of the features have data for the field");return{min:e.min,max:e.max}}),t.then(t=>Q(this,{min:t.min,max:t.max},e.field,e.numBins??void 0,e.view,e.filter,e.signal))}async _histogramFromQueryAttributeBinsFromMemory(e){const{field:t,normalizationType:r,signal:a}=e,i=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryAttributeBins"}),{featuresJSON:s,graphics:o,layerView:n,query:l}=i,u="percent-of-total"===r?e.normalizationTotal??await this._getNormalizationTotalFromMemory(t,i,a):void 0;if(!n||!("queryAttributeBins"in n)||s||o){const t=T(e,i,u);return s?this.workerClient.histogram(t,s):w({attribute:t,features:o})}const{query:m,min:p,max:y}=await N(e,this,u,l);if(!m)return{bins:[],minValue:p,maxValue:y,normalizationTotal:u};const f=await n.queryAttributeBins(m,{signal:a});return M(f,t?this.getField(t):null,{minValue:p,maxValue:y,normalizationTotal:u})}async _histogramFromMemory(e){const{field:t,signal:r}=e,a=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryHistogram"}),{featuresJSON:i,graphics:s,layerView:o,query:n}=a,l="percent-of-total"===e.normalizationType?e.normalizationTotal??await this._getNormalizationTotalFromMemory(t,a,r):void 0,u=T(e,a,l);return!i&&!s&&o&&"queryHistogram"in o?o.queryHistogram(n,u,{signal:r}):i?this.workerClient.histogram(u,i):w({attribute:u,features:s})}_classBreaksFromInterpolation(e){const{minValue:t,maxValue:r}=e,a=e.numClasses||G,i=[],s=(r-t)/a;for(let l=0;l<a;l++){const e=t+l*s;i.push({minValue:e,maxValue:e+s})}i[a-1].maxValue=r;const o={classBreaks:i,normalizationTotal:e.normalizationTotal},n=A(o,e.classificationMethod);return Promise.resolve(n)}async _classBreaksFromMemory(e){const{view:t,field:r,valueExpression:a,signal:i}=e,{featuresJSON:s,graphics:o,layerView:n,query:l,fieldInfos:u}=await this._processStatsFromMemoryParams({...e,layerViewFunc:"queryClassBreaks"}),m={field:r,valueExpression:a,normalizationType:e.normalizationType,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,minValue:e.minValue,maxValue:e.maxValue,standardDeviationInterval:e.standardDeviationInterval,classificationMethod:e.classificationMethod,numClasses:e.numClasses};return a&&t&&(s||o)&&(m.viewInfoParams=j(t),m.timeZone=t.timeZone,m.fieldInfos=u),"percent-of-total"===e.normalizationType&&null==e.normalizationTotal&&(m.normalizationTotal=await this._getNormalizationTotalFromMemory(r,{featuresJSON:s,graphics:o,layerView:n,query:l},i)),!s&&!o&&n&&"queryClassBreaks"in n?n.queryClassBreaks(l,m,{signal:i}):s?this.workerClient.classBreaks(m,s):g({attribute:m,features:o})}async _heatmapStatsFromMemory(e){const{view:t,field:r,radius:a,signal:s}=e;i(t,"InMemoryLayerAdapter: must have a view");try{const r=await t.whenLayerView(this.layer);if("queryHeatmapStatistics"in r&&!r.updating&&!e.filter)return await r.queryHeatmapStatistics({field:e.field,radius:e.radius})}catch{o(s)}const{featuresJSON:n,graphics:l}=await this._processStatsFromMemoryParams({...e,returnGeometry:!0}),u=new f({extent:t.extent,tolerance:"2d"===t.type?t.state.resolution:t.pixelSizeAt?.(t.center)}),p={field:r,radius:a,transform:m(u),spatialReference:t.spatialReference?.toJSON(),size:t.size};return n?.length||l?.length?n?this.workerClient.heatmapStatistics(p,n):F({attribute:p,features:l}):{min:null,max:null}}getField(e=""){return this.layer.getField(e)}getFieldUsageInfo(e){return this.getField(e)?{supportsLabelingInfo:!0,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:!0,supportsStatistics:!0}:null}getFieldDomain(e,t){return this.layer.getFieldDomain(e,t)}createQuery(){return this.layer.createQuery()}async summaryStatistics(e){const{field:t,valueExpression:a,sqlExpression:i,features:s,view:o}=e,n=t?this.getField(t):null,l=!!a,u="3d"===o?.type;if(!a&&i&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return l||s||u?this._summaryStatsFromMemory(e,n):this._summaryStatsFromClientQuery(e,n)}async uniqueValues(e){const{valueExpression:t,sqlExpression:a,features:i,view:s}=e,o=await J(e,this),n=!!t,l="3d"===s?.type;if(!t&&a&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return n||i||l?this._uvFromMemory(e,o):this._uvFromClientQuery(e,o)}async histogram(e){const{features:t,valueExpression:a,normalizationType:i,sqlExpression:s}=e,o=t||!!a;if(!a&&s&&!this.supportsSQLExpression)throw new r(`${this.adapterName}:not-supported`,"Layer does not support standardized SQL expression for queries");return o||i?this._histogramFromMemory(e):this._histogramForField(e)}async classBreaks(e){return!1!==e.analyzeData?this._classBreaksFromMemory(e):this._classBreaksFromInterpolation(e)}async queryFeatureCount(e){const{whereClause:t,view:a,signal:i}=e;if(!a)throw new r(`${this.adapterName}:insufficient-data`,"view is required to fetch the features from layerView");const s=this.layer.createQuery();s.where=S(s.where,t);const o=await a.whenLayerView(this.layer);return await n(()=>!o.updating,i),o.queryFeatureCount(s,{signal:i})}async generateRenderer(e,t){throw new r(`${this.adapterName}:not-supported`,"Layer does not support generateRenderer operation")}async predominantCategories(e){const{fields:t,view:r,signal:a,filter:i}=e,s=c(t),o=await this._uvFromMemory({valueExpression:s,view:r,signal:a,filter:i});return B(o.uniqueValueInfos,t)}async heatmapStatistics(e){return this._heatmapStatsFromMemory(e)}async getSampleFeatures(e,a){const{view:i,sampleSize:s,requiredFields:o,returnGeometry:n,sqlWhere:l,filter:u,signal:m}=e,p=this.layer.createQuery(),y=1;if(p.outSpatialReference=i?.spatialReference,p.returnGeometry=!!n,p.outFields=o,p.where=S(p.where,l),I(p,u),!i)throw new r(`${this.adapterName}:not-supported`,"view is required to get sample features for Layer");const f=await i.whenLayerView(this.layer);if(b(this,o,f).length)throw new r(`${this.adapterName}:not-supported`,"Required fields need to be passed in the outFields for Layer");const c=await this._fetchFeaturesFromMemory(f,p,m,a),d=null!=s&&s>0&&s<=c.length?s:c.length;return t(c,d,y)}load(e){const t=this.layer.load(e).then(async t=>{this.geometryType=t.geometryType,this.objectIdField=t.objectIdField,this.supportsSQLExpression="stream"===t.type||!!t.capabilities?.query?.supportsSqlExpression,this.minScale=t.minScale,this.maxScale=t.maxScale,this.fullExtent="fullExtent"in t?t.fullExtent:t.parent?.fullExtent,this._hasLocalSource=!1,this.hasQueryEngine=!0,this.workerClient=q.getInstance(),await this.workerClient.open(e.signal)});return this.addResolvingPromise(t),Promise.resolve(this)}};e([l({readOnly:!0})],D.prototype,"adapterName",void 0),e([l({constructOnly:!0})],D.prototype,"layer",void 0),D=e([u("esri.smartMapping.support.adapters.InMemoryLayerAdapter")],D);export{D as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{c as e,p as r,r as n,e as t,a as o,b as a,d as l,l as s,f as u,s as c,g as f,h as p}from"../chunks/arcade.js";export{i as arcade}from"../chunks/arcade.js";import{ArcadeDate as m}from"../arcade/ArcadeDate.js";import{toSymbolId as d}from"../arcade/arcadeEnvironment.js";import y from"../arcade/Dictionary.js";import{Feature as v}from"../arcade/Feature.js";import{j as g,e as x,k as j,m as S,l as h}from"../chunks/languageUtils.js";import{Pixel as w}from"../arcade/Pixel.js";import{Voxel as A}from"../arcade/Voxel.js";import{clone as $}from"../core/lang.js";import{DateOnly as b}from"../core/sql/DateOnly.js";import{TimeOnly as E}from"../core/sql/TimeOnly.js";import F from"../geometry/Extent.js";import P from"../geometry/Multipoint.js";import C from"../geometry/Point.js";import M from"../geometry/Polygon.js";import _ from"../geometry/Polyline.js";import{isArray as D,isString as I,isBoolean as R,isNumber as T}from"./guards.js";const k={vars:{$feature:"any",$view:"any"}};function z(e){return e.replaceAll(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function J(e){return null==e?null:D(e)||g(e)?"array":x(e)?"date":I(e)?"text":R(e)?"boolean":T(e)?"number":e instanceof y?"dictionary":j(e)?"feature":e instanceof C?"point":e instanceof M?"polygon":e instanceof _?"polyline":e instanceof P?"multipoint":e instanceof F?"extent":e instanceof b?"dateOnly":e instanceof E?"time":S(e)?"featureSet":h(e)?"featureSetCollection":null}function O(e){if(!e)return null;try{return r(e)}catch(n){}return null}function V(r,n){const t="string"==typeof r?O(r):r;if(!t)return null;try{return n=n||$(k),e(t,n)}catch(o){}return null}function Z(e,r,n){return{vars:{$feature:null==e?new v:v.createFromGraphic(e,n),$view:r?.view},spatialReference:r?.sr,timeZone:n??null}}function q(e,r,n){return v.createFromGraphicLikeObject(r,e,n,null)}function G(e,r){null!=e.vars&&(e.vars.$feature=r)}function L(e,r){let n;try{n=a(e,r)}catch(t){n=null}return n}function N(e,r){let n;try{n=e?e(r):null}catch(t){n=null}return n}function U(e,r){try{return e?e(r):Promise.resolve(null)}catch(n){return Promise.resolve(null)}}const B=["$feature","$aggregatedFeatures","$voxel"].map(e=>d(e));function H(e,r){if(!e)return[];const n="string"==typeof e?O(e):e;if(!n)return[];const t=new Map;if(Array.isArray(r)||null==r)for(const a of B)t.set(a,r);else for(const[a,i]of r)t.set(d(a),i);const o=l(n).flatMap(({varId:e,memberNamePattern:r})=>{if(!t.has(e))return[];if(r.includes("*")){const n=t.get(e);if(null==n)return[];const o=new RegExp(`^${r.split(/\*+/).map(z).join(".*")}$`,"i");return n.filter(e=>o.test(e))}return r.toLowerCase()});return[...new Set(o.sort())]}function K(e){return n(e,"$view")}function Q(e,r){return!!e&&n(e,r)}function W(e){if(!e||null==e.spatialReference&&(null==e.scale||null==e.viewingMode))return;let r,n;const{timeProperties:t,timeZone:o}=e;if(null!=t){const{currentStart:e,currentEnd:a}=t;null!=o?(r=null!=e?m.dateJSAndZoneToArcadeDate(e,o):null,n=null!=a?m.dateJSAndZoneToArcadeDate(a,o):null):(r=null!=e?m.dateJSToArcadeDate(e):null,n=null!=a?m.dateJSToArcadeDate(a):null)}return{view:e.viewingMode&&null!=e.scale?new y({__proto__:null,viewingMode:e.viewingMode,scale:e.scale,timeProperties:null!=r||null!=n?new y({__proto__:null,currentStart:r,currentEnd:n,startIncluded:!0,endIncluded:!0}):null}):null,sr:e.spatialReference}}function X({url:e,spatialReference:r,lrucache:n,interceptor:t}){const o=u();return o?o.createFeatureSetCollectionFromService(e,r,n,t):null}function Y({layer:e,spatialReference:r,outFields:n,returnGeometry:t,lrucache:o,interceptor:a}){if(null===e)return null;const i=u();return i?i.constructFeatureSet(e,r,n,t??!0,o,a):null}function ee(e){if(null===e?.map)return null;const r=u();return r?r.createFeatureSetCollectionFromMap(e.map,e.spatialReference,e.lrucache,e.interceptor):null}function re(e,r){return y.convertJsonToArcade(e,r)}function ne(e,r,n=[]){return s(e,r,n)}function te(){return o()}function oe(){return t()}function ae(e){return"type"in e&&("class-breaks"===e.type||"dictionary"===e.type||"dot-density"===e.type||"pie-chart"===e.type||"simple"===e.type||"unique-value"===e.type)}function ie(e){return"esri.layers.support.LabelClass"===e.declaredClass}function le(e){return"esri.PopupTemplate"===e.declaredClass}function se(e,r){if(!e)return!1;if("string"==typeof e)return r(e);const n=e;if(ae(n)){if("dot-density"===n.type){const e=n.attributes?.some(e=>r(e.valueExpression));if(e)return e}const e=n.visualVariables,t=!!e&&e.some(e=>{let n=r(e.valueExpression);return"size"===e.type&&(de(e.minSize)&&(n=n||r(e.minSize.valueExpression)),de(e.maxSize)&&(n=n||r(e.maxSize.valueExpression))),n});return!(!("valueExpression"in n)||!r(n.valueExpression))||t}if(ie(n)){const e=n.labelExpressionInfo?.expression;return!(!e||!r(e))||!1}return!!le(n)&&(!!n.expressionInfos&&n.expressionInfos.some(e=>r(e.expression))||Array.isArray(n.content)&&n.content.some(e=>"expression"===e.type&&r(e.expressionInfo?.expression)))}function ue(e){const r=O(e);return!!r&&f(r)}function ce(e){return se(e,ue)}function fe(e){const r=O(e);return!!r&&p(r)}function pe(e){return se(e,fe)}function me(e){return se(e,e=>{const r=O(e);return!!r&&c(r)})}function de(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}export{y as Dictionary,w as Pixel,A as Voxel,v as arcadeFeature,Y as convertFeatureLayerToFeatureSet,re as convertJsonToArcade,ee as convertMapToFeatureSetCollection,X as convertServiceUrlToWorkspace,Z as createExecContext,q as createFeature,V as createFunction,O as createSyntaxTree,K as dependsOnView,oe as enableFeatureSetOperations,te as enableGeometryOperations,L as evalSyntaxTree,U as executeAsyncFunction,N as executeFunction,H as extractFieldNames,J as getArcadeType,W as getViewInfo,ce as hasGeometryFunctions,pe as hasGeometryOperations,Q as hasVariable,ne as loadScriptDependencies,me as requiresTrack,G as updateExecContext};
2
+ import{isPopupTemplate as e}from"../popupTemplateUtils.js";import{c as r,p as n,r as t,e as o,a,b as l,d as u,l as s,f as c,s as f,g as p,h as m}from"../chunks/arcade.js";export{i as arcade}from"../chunks/arcade.js";import{ArcadeDate as d}from"../arcade/ArcadeDate.js";import{toSymbolId as y}from"../arcade/arcadeEnvironment.js";import v from"../arcade/Dictionary.js";import{Feature as g}from"../arcade/Feature.js";import{j as x,e as j,k as S,m as h,l as w}from"../chunks/languageUtils.js";import{Pixel as b}from"../arcade/Pixel.js";import{Voxel as A}from"../arcade/Voxel.js";import{clone as $}from"../core/lang.js";import{DateOnly as E}from"../core/sql/DateOnly.js";import{TimeOnly as F}from"../core/sql/TimeOnly.js";import I from"../geometry/Extent.js";import P from"../geometry/Multipoint.js";import M from"../geometry/Point.js";import _ from"../geometry/Polygon.js";import D from"../geometry/Polyline.js";import{isLabelClass as R}from"../layers/support/labelUtils.js";import{isSizeVariable as T}from"../renderers/visualVariables/support/sizeVariableUtils.js";import{isArray as k,isString as z,isBoolean as J,isNumber as C}from"./guards.js";const O={vars:{$feature:"any",$view:"any"}};function U(e){return e.replaceAll(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function V(e){return null==e?null:k(e)||x(e)?"array":j(e)?"date":z(e)?"text":J(e)?"boolean":C(e)?"number":e instanceof v?"dictionary":S(e)?"feature":e instanceof M?"point":e instanceof _?"polygon":e instanceof D?"polyline":e instanceof P?"multipoint":e instanceof I?"extent":e instanceof E?"dateOnly":e instanceof F?"time":h(e)?"featureSet":w(e)?"featureSetCollection":null}function Z(e){if(!e)return null;try{return n(e)}catch(r){}return null}function q(e,n){const t="string"==typeof e?Z(e):e;if(!t)return null;try{return n=n||$(O),r(t,n)}catch(o){}return null}function G(e,r,n){return{vars:{$feature:null==e?new g:g.createFromGraphic(e,n),$view:r?.view},spatialReference:r?.sr,timeZone:n??null}}function L(e,r,n){return g.createFromGraphicLikeObject(r,e,n,null)}function N(e,r){null!=e.vars&&(e.vars.$feature=r)}function B(e,r){let n;try{n=l(e,r)}catch(t){n=null}return n}function H(e,r){let n;try{n=e?e(r):null}catch(t){n=null}return n}function K(e,r){try{return e?e(r):Promise.resolve(null)}catch(n){return Promise.resolve(null)}}const Q=["$feature","$aggregatedFeatures","$voxel"].map(e=>y(e));function W(e,r){if(!e)return[];const n="string"==typeof e?Z(e):e;if(!n)return[];const t=new Map;if(Array.isArray(r)||null==r)for(const i of Q)t.set(i,r);else for(const[i,a]of r)t.set(y(i),a);const o=u(n).flatMap(({varId:e,memberNamePattern:r})=>{if(!t.has(e))return[];if(r.includes("*")){const n=t.get(e);if(null==n)return[];const o=new RegExp(`^${r.split(/\*+/).map(U).join(".*")}$`,"i");return n.filter(e=>o.test(e))}return r.toLowerCase()});return[...new Set(o.sort())]}function X(e){return t(e,"$view")}function Y(e,r){return!!e&&t(e,r)}function ee(e){if(!e||null==e.spatialReference&&(null==e.scale||null==e.viewingMode))return;let r,n;const{timeProperties:t,timeZone:o}=e;if(null!=t){const{currentStart:e,currentEnd:i}=t;null!=o?(r=null!=e?d.dateJSAndZoneToArcadeDate(e,o):null,n=null!=i?d.dateJSAndZoneToArcadeDate(i,o):null):(r=null!=e?d.dateJSToArcadeDate(e):null,n=null!=i?d.dateJSToArcadeDate(i):null)}return{view:e.viewingMode&&null!=e.scale?new v({__proto__:null,viewingMode:e.viewingMode,scale:e.scale,timeProperties:null!=r||null!=n?new v({__proto__:null,currentStart:r,currentEnd:n,startIncluded:!0,endIncluded:!0}):null}):null,sr:e.spatialReference}}function re({url:e,spatialReference:r,lrucache:n,interceptor:t}){const o=c();return o?o.createFeatureSetCollectionFromService(e,r,n,t):null}function ne({layer:e,spatialReference:r,outFields:n,returnGeometry:t,lrucache:o,interceptor:i}){if(null===e)return null;const a=c();return a?a.constructFeatureSet(e,r,n,t??!0,o,i):null}function te(e){if(null===e?.map)return null;const r=c();return r?r.createFeatureSetCollectionFromMap(e.map,e.spatialReference,e.lrucache,e.interceptor):null}function oe(e,r){return v.convertJsonToArcade(e,r)}function ie(e,r,n=[]){return s(e,r,n)}function ae(){return a()}function le(){return o()}function ue(e){return"type"in e&&("class-breaks"===e.type||"dictionary"===e.type||"dot-density"===e.type||"pie-chart"===e.type||"simple"===e.type||"unique-value"===e.type)}function se(r,n){if(!r)return!1;if("string"==typeof r)return n(r);const t=r;if(ue(t)){if("dot-density"===t.type){const e=t.attributes?.some(e=>n(e.valueExpression));if(e)return e}const e=t.visualVariables,r=!!e&&e.some(e=>{let r=n(e.valueExpression);return"size"===e.type&&(T(e.minSize)&&(r=r||n(e.minSize.valueExpression)),T(e.maxSize)&&(r=r||n(e.maxSize.valueExpression))),r});return!(!("valueExpression"in t)||!n(t.valueExpression))||r}if(R(t)){const e=t.labelExpressionInfo?.expression;return!(!e||!n(e))||!1}return!!e(t)&&(!!t.expressionInfos&&t.expressionInfos.some(e=>n(e.expression))||Array.isArray(t.content)&&t.content.some(e=>"expression"===e.type&&n(e.expressionInfo?.expression)))}function ce(e){const r=Z(e);return!!r&&p(r)}function fe(e){return se(e,ce)}function pe(e){if("renderer"in e&&e.renderer&&fe(e.renderer))return!0;if("labelingInfo"in e&&e.labelingInfo)for(const r of e.labelingInfo)if(fe(r))return!0;return!1}function me(e){const r=Z(e);return!!r&&m(r)}function de(e){return se(e,me)}function ye(e){return se(e,e=>{const r=Z(e);return!!r&&f(r)})}export{v as Dictionary,b as Pixel,A as Voxel,g as arcadeFeature,ne as convertFeatureLayerToFeatureSet,oe as convertJsonToArcade,te as convertMapToFeatureSetCollection,re as convertServiceUrlToWorkspace,G as createExecContext,L as createFeature,q as createFunction,Z as createSyntaxTree,X as dependsOnView,le as enableFeatureSetOperations,ae as enableGeometryOperations,B as evalSyntaxTree,K as executeAsyncFunction,H as executeFunction,W as extractFieldNames,V as getArcadeType,ee as getViewInfo,fe as hasGeometryFunctions,de as hasGeometryOperations,Y as hasVariable,pe as layerHasGeometryFunctions,ie as loadScriptDependencies,ye as requiresTrack,N as updateExecContext};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const e="20260413",f="f8efd2643bdbee755f08fe1738239ea2239c114b";export{e as buildDate,f as commitHash};
2
+ const b="20260415",c="e4e8ab06cf7d673c0c5194d4b97bf8b34a172204";export{b as buildDate,c as commitHash};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{GeometryCursor as e}from"../../../../../../../geometry/GeometryCursor.js";import{loadGeometryOperatorsForEffect as t}from"../../../../../../../symbols/cim/CIMEffects.js";import{EffectHelper as r}from"../../../../../../../symbols/cim/effects/EffectHelper.js";import{MeshWriterVertexPack as s}from"./MeshWriterVertexPack.js";class a{constructor(e,t,r,s){this._instanceId=e,this._evaluator=t,this._enabledOptionalAttributes=r,this._viewParams=s,this._evaluator.evaluator=e=>this.vertexSpec.createComputedParams(e)}get _vertexPack(){if(!this._cachedVertexPack){const e=s.fromVertexSpec(this.vertexSpec,this._enabledOptionalAttributes);this._evaluator.hasDynamicProperties||e.pack(this._evaluator.evaluatedMeshParams,this._viewParams),this._cachedVertexPack=e}return this._cachedVertexPack}get evaluatedMeshParams(){return this._evaluator.evaluatedMeshParams}get hasEffects(){return!!this.evaluatedMeshParams.effects}get effectInfos(){return this._evaluator.inputMeshParams.effects?.effectInfos}get instanceId(){return this._instanceId}get attributeLayout(){return this._vertexPack.attributeLayout}get _preventEffectClipping(){return!1}setReferences(e){this._references=e}getBoundsInfo(){return null}getTileInfo(){return this._viewParams.tileInfo}async loadDependencies(){for(const{effect:e}of this.effectInfos||[])await t(e)}enqueueRequest(e,t,r){this._evaluator.hasDynamicProperties&&this._evaluator.enqueueRequest(e,t,r)}write(e,t,r,s,a,i){this.ensurePacked(t,r,s);const n=this.evaluatedMeshParams.effects;if(!n||0===n.length)return void this._write(e,r,void 0,a,i);const c=this.getEffectCursor(e,r,n);if(!c)return;let o;for(;o=c.next();)o.invertY(),this._write(e,r,o,a,i)}ensurePacked(e,t,r){if(!this._evaluator.hasDynamicProperties)return;const s=this._evaluator.evaluateMeshParams(e,t,r);this._vertexPack.pack(s,this._viewParams)}hasArcadeDependency(e){return this._evaluator.hasArcadeDependency(e)}_writeVertex(e,t,r,s,a){const i=this.evaluatedMeshParams;this._vertexPack.writeVertex(e,t,r,s,i,a)}getEffectCursor(t,s,a){const i=s.readGeometryForDisplay()?.clone();if(!i)return;const n=e.fromOptimizedCIM(i,s.geometryType);n.invertY();const c=t.id||"";return r.executeEffects(a,n,c,this._preventEffectClipping)}}export{a as MeshWriter};
2
+ import{GeometryCursor as e}from"../../../../../../../geometry/GeometryCursor.js";import{loadGeometryOperatorsForEffect as t,loadGeometryOperatorsForPlacement as r}from"../../../../../../../symbols/cim/CIMEffects.js";import{EffectHelper as s}from"../../../../../../../symbols/cim/effects/EffectHelper.js";import{MeshWriterVertexPack as a}from"./MeshWriterVertexPack.js";class i{constructor(e,t,r,s){this._instanceId=e,this._evaluator=t,this._enabledOptionalAttributes=r,this._viewParams=s,this._evaluator.evaluator=e=>this.vertexSpec.createComputedParams(e)}get _vertexPack(){if(!this._cachedVertexPack){const e=a.fromVertexSpec(this.vertexSpec,this._enabledOptionalAttributes);this._evaluator.hasDynamicProperties||e.pack(this._evaluator.evaluatedMeshParams,this._viewParams),this._cachedVertexPack=e}return this._cachedVertexPack}get evaluatedMeshParams(){return this._evaluator.evaluatedMeshParams}get hasEffects(){return!!this.evaluatedMeshParams.effects}get effectInfos(){return this._evaluator.inputMeshParams.effects?.effectInfos}get placementInfo(){return this._evaluator.inputMeshParams.placement}get instanceId(){return this._instanceId}get attributeLayout(){return this._vertexPack.attributeLayout}get _preventEffectClipping(){return!1}setReferences(e){this._references=e}getBoundsInfo(){return null}getTileInfo(){return this._viewParams.tileInfo}async loadDependencies(){for(const{effect:e}of this.effectInfos||[])await t(e);this.placementInfo&&await r(this.placementInfo.placement)}enqueueRequest(e,t,r){this._evaluator.hasDynamicProperties&&this._evaluator.enqueueRequest(e,t,r)}write(e,t,r,s,a,i){this.ensurePacked(t,r,s);const n=this.evaluatedMeshParams.effects;if(!n||0===n.length)return void this._write(e,r,void 0,a,i);const c=this.getEffectCursor(e,r,n);if(!c)return;let o;for(;o=c.next();)o.invertY(),this._write(e,r,o,a,i)}ensurePacked(e,t,r){if(!this._evaluator.hasDynamicProperties)return;const s=this._evaluator.evaluateMeshParams(e,t,r);this._vertexPack.pack(s,this._viewParams)}hasArcadeDependency(e){return this._evaluator.hasArcadeDependency(e)}_writeVertex(e,t,r,s,a){const i=this.evaluatedMeshParams;this._vertexPack.writeVertex(e,t,r,s,i,a)}getEffectCursor(t,r,a){const i=r.readGeometryForDisplay()?.clone();if(!i)return;const n=e.fromOptimizedCIM(i,r.geometryType);n.invertY();const c=t.id||"";return s.executeEffects(a,n,c,this._preventEffectClipping)}}export{i as MeshWriter};