@arcgis/core 5.0.0-next.1 → 5.0.0-next.11

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 (974) hide show
  1. package/Map.js +1 -1
  2. package/PopupTemplate.js +1 -1
  3. package/analysis/ElevationProfileAnalysis.js +1 -1
  4. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.js +1 -1
  5. package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +5 -0
  6. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  7. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +4 -0
  8. package/applications/KnowledgeStudio/generalSdkInternalAccess.js +5 -0
  9. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +1 -0
  10. package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
  11. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +2 -0
  12. package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
  13. package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
  14. package/arcade/featureset/actions/Adapted.js +1 -1
  15. package/arcade/featureset/actions/AttributeFilter.js +1 -1
  16. package/arcade/featureset/actions/GroupBy.js +1 -1
  17. package/arcade/featureset/actions/OrderBy.js +1 -1
  18. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  19. package/arcade/featureset/actions/Top.js +1 -1
  20. package/arcade/featureset/sources/Empty.js +1 -1
  21. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  22. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  23. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  24. package/arcade/featureset/support/FeatureSet.js +1 -1
  25. package/arcade/featureset/support/sqlUtils.js +1 -1
  26. package/arcade/featureset/support/stats.js +1 -1
  27. package/arcade/functions/featuresetbase.js +1 -1
  28. package/arcade/functions/featuresetstring.js +1 -1
  29. package/arcade/functions/knowledgegraph.js +1 -1
  30. package/assets/components/assets/sort-handle/t9n/messages.uk.json +1 -1
  31. package/assets/esri/core/workers/RemoteClient.js +1 -1
  32. package/assets/esri/core/workers/chunks/{1a713dcc9971e1935401.js → 0030d68d9edf42b4af57.js} +1 -1
  33. package/assets/esri/core/workers/chunks/00c77f03dd511c6dbff2.js +1 -0
  34. package/assets/esri/core/workers/chunks/01d460398f3ba6767a37.js +1 -0
  35. package/assets/esri/core/workers/chunks/0200637e0503556a3b97.js +1 -0
  36. package/assets/esri/core/workers/chunks/022c854eff2c2c2aed6b.js +1 -0
  37. package/assets/esri/core/workers/chunks/{14ace5dc4b8984212a57.js → 042cd64e1f4eb326c30f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{66db5f77e09d25e33951.js → 063905fbf9a0c6586949.js} +1 -1
  39. package/assets/esri/core/workers/chunks/06f75c5b6b50934d72a6.js +1 -0
  40. package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +1 -0
  41. package/assets/esri/core/workers/chunks/{89027f6800e17fab8973.js → 0a5d74414dd02a2fb8e1.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{3815ffa13e7b439bca6e.js → 0d5212f59e9b62c16164.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{388482cea4b9fdeaf06e.js → 0f30a9514571c7be9978.js} +1 -1
  44. package/assets/esri/core/workers/chunks/0f735b0dec173142f3b6.js +2 -0
  45. package/assets/esri/core/workers/chunks/{a8f998b8ec8c56150479.js.LICENSE.txt → 0f735b0dec173142f3b6.js.LICENSE.txt} +1 -1
  46. package/assets/esri/core/workers/chunks/{e032f3d2ee19790f8c79.js → 11e96a312f1294d34c50.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{309c5f69ea06f3081d83.js → 1257c37bf04d39c27b62.js} +1 -1
  48. package/assets/esri/core/workers/chunks/125e71b0e29d1d132777.js +1 -0
  49. package/assets/esri/core/workers/chunks/{1e4e7aedf4b779241a02.js → 15c7c10ff9ac63f0e792.js} +1 -1
  50. package/assets/esri/core/workers/chunks/15f969836d63c7fe2d9d.js +1 -0
  51. package/assets/esri/core/workers/chunks/18c5d79d5ee1136e0a57.js +1 -0
  52. package/assets/esri/core/workers/chunks/{f03635ddf56e2ef90e4c.js → 1d06fcae4c2f02fb1c95.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{651b9144abb1895cc510.js → 1e848d9da1c61a27cf18.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{8cea114168d849c38b1b.js → 20278683bddc8c2d8136.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{d84373a6ec94dcfec8c2.js → 24cd7b84cd0f3de4bff2.js} +1 -1
  56. package/assets/esri/core/workers/chunks/27e6a6c5610007ac6a54.js +1 -0
  57. package/assets/esri/core/workers/chunks/2857bcb68df874e9aa62.js +1 -0
  58. package/assets/esri/core/workers/chunks/{94c9d3094c93f7760433.js → 29286234be26680245f6.js} +1 -1
  59. package/assets/esri/core/workers/chunks/292daac70bb828e4923f.js +1 -0
  60. package/assets/esri/core/workers/chunks/2ddcf3cea0efe4052618.js +1 -0
  61. package/assets/esri/core/workers/chunks/2e8a4df83c43f86d7361.js +1 -0
  62. package/assets/esri/core/workers/chunks/{4f01be74dd26e639330f.js → 2f24017e72d41c259faa.js} +1 -1
  63. package/assets/esri/core/workers/chunks/2f2e4f81f3daa3fb8527.js +1 -0
  64. package/assets/esri/core/workers/chunks/30e220f4f843681a4cdd.js +1 -0
  65. package/assets/esri/core/workers/chunks/3109f0a6914e7be088ed.js +1 -0
  66. package/assets/esri/core/workers/chunks/{5d3661d1fe46dd29aae9.js → 311b564e44ae637c960d.js} +1 -1
  67. package/assets/esri/core/workers/chunks/31bb1ee9370c2753ce9d.js +1 -0
  68. package/assets/esri/core/workers/chunks/329fccd7f5cb8401e0c3.js +1 -0
  69. package/assets/esri/core/workers/chunks/37c1f155da14de91565a.js +1 -0
  70. package/assets/esri/core/workers/chunks/37f2ef14399546e697e6.js +1 -0
  71. package/assets/esri/core/workers/chunks/38ee69125da60464d5a1.js +1 -0
  72. package/assets/esri/core/workers/chunks/38f6b9288c82dac9a800.js +1 -0
  73. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js.LICENSE.txt +1 -1
  74. package/assets/esri/core/workers/chunks/{f7c99e9c8d19352af38d.js → 3ac7562ea90f91a9f30c.js} +1 -1
  75. package/assets/esri/core/workers/chunks/3b1848713ee25f750242.js +1 -0
  76. package/assets/esri/core/workers/chunks/4291681d067ebdf86e73.js +1 -0
  77. package/assets/esri/core/workers/chunks/{e9311386f58f3cb95c22.js → 42a1e71d09e8583a7327.js} +1 -1
  78. package/assets/esri/core/workers/chunks/442973ff4dda923def62.js +1 -0
  79. package/assets/esri/core/workers/chunks/443dfe7029ec208f670c.js +1 -0
  80. package/assets/esri/core/workers/chunks/44f27eac92c5ccc57e12.js +1 -0
  81. package/assets/esri/core/workers/chunks/4941bfd3aae7f6bdac97.js +1 -0
  82. package/assets/esri/core/workers/chunks/{b75930d60449eceb0f1c.js → 4baf6f6e7ddedb25f806.js} +1 -1
  83. package/assets/esri/core/workers/chunks/4bd2cc65f7db0d261543.js +1 -0
  84. package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +1 -0
  85. package/assets/esri/core/workers/chunks/4fbe2a8d742065cbaea3.js +1 -0
  86. package/assets/esri/core/workers/chunks/4fe4feeb251f2916a339.js +1 -0
  87. package/assets/esri/core/workers/chunks/509392131ec473d6b988.js +1 -0
  88. package/assets/esri/core/workers/chunks/{2ea6985da4eb0107bb9d.js → 51ab2acac4ecc1ca9c34.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{fc4417d1260b717a9385.js → 52282f767bd0e99ddca0.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{fc06014fb484fc8c697e.js → 53654edd766d9b4ef750.js} +1 -1
  91. package/assets/esri/core/workers/chunks/55eb6a0f1e4569a65f2a.js +1 -0
  92. package/assets/esri/core/workers/chunks/{ed8a85efbd90241512bb.js → 588533c3abe876f20f62.js} +1 -1
  93. package/assets/esri/core/workers/chunks/591e459f9fce34f519ca.js +1 -0
  94. package/assets/esri/core/workers/chunks/59514624daf188a8030f.js +1 -0
  95. package/assets/esri/core/workers/chunks/5c09d98b41f71a036e2a.js +1 -0
  96. package/assets/esri/core/workers/chunks/{72846fb9c87c6642daf0.js → 5e2ce34def5e053913b2.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{b7a17927e14f502006b4.js → 5ea0c62016d56990787b.js} +1 -1
  98. package/assets/esri/core/workers/chunks/605b9643b1baeff16149.js +1 -0
  99. package/assets/esri/core/workers/chunks/{2ce4a0fe4fae63c43a81.js → 61d970ed75c2c358b1e9.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{7a6a96edc892d7060b7d.js → 629127877042ad784ad2.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{00aa85ae6419aad183ea.js → 6293e33f304c4952f88c.js} +1 -1
  102. package/assets/esri/core/workers/chunks/655beaf83e9845a02334.js +1 -0
  103. package/assets/esri/core/workers/chunks/664ae441617afe4b17ec.js +1 -0
  104. package/assets/esri/core/workers/chunks/67f03d042455cd0f7009.js +1 -0
  105. package/assets/esri/core/workers/chunks/{ec13053af1999701464a.js → 6826fe54562dcdc054d7.js} +1 -1
  106. package/assets/esri/core/workers/chunks/6cf391b5ed7351601a2a.js +1 -0
  107. package/assets/esri/core/workers/chunks/{8215015f11221a354273.js → 6d049182bec34a22abcd.js} +1 -1
  108. package/assets/esri/core/workers/chunks/6d9f2b113d6bde936a04.js +1 -0
  109. package/assets/esri/core/workers/chunks/{5132ca68e8c7af111a47.js → 6e22b02a9715c10578d0.js} +1 -1
  110. package/assets/esri/core/workers/chunks/6e25ef5ad6d6b3f88343.js +1 -0
  111. package/assets/esri/core/workers/chunks/{deb2854bb7d082a26f52.js → 7005d956c990a04ee8b2.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{c73def15ccfb2a32afa8.js → 7290e7a819eb291b1df2.js} +4 -4
  113. package/assets/esri/core/workers/chunks/731f7b552dde0fb325cd.js +1 -0
  114. package/assets/esri/core/workers/chunks/7565b382f6b3d2cb46a3.js +2 -0
  115. package/assets/esri/core/workers/chunks/{24921d31efa8d222ad2d.js.LICENSE.txt → 7565b382f6b3d2cb46a3.js.LICENSE.txt} +1 -1
  116. package/assets/esri/core/workers/chunks/759321045c264bc6964e.js +1 -0
  117. package/assets/esri/core/workers/chunks/773f2c6c9d38db76dfed.js +1 -0
  118. package/assets/esri/core/workers/chunks/7803495f8862d9025bcd.js +1 -0
  119. package/assets/esri/core/workers/chunks/79dbfa2b9b332ca0002f.js +1 -0
  120. package/assets/esri/core/workers/chunks/7a23ab84e1144f081c92.js +1 -0
  121. package/assets/esri/core/workers/chunks/7e3f27ebf366d4266350.js +1 -0
  122. package/assets/esri/core/workers/chunks/826072cfc0ac8e36f03c.js +1 -0
  123. package/assets/esri/core/workers/chunks/826fa0dfb63df77bfd95.js +1 -0
  124. package/assets/esri/core/workers/chunks/8372f142c4d7a65c7954.js +1 -0
  125. package/assets/esri/core/workers/chunks/87921f3fa9001f5801ed.js +1 -0
  126. package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +1 -0
  127. package/assets/esri/core/workers/chunks/{0086a09441627842d34a.js → 8f3503b2fb6cd38757b9.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{e7638b9ab6674bc8a18f.js → 91dfd29e2dba200eab09.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{de1f75c907152df7e788.js → 9698f36c143953a975d4.js} +1 -1
  130. package/assets/esri/core/workers/chunks/9b0c2f4311fe9bca370a.js +1 -0
  131. package/assets/esri/core/workers/chunks/9c48d8d17831aa57f8a4.js +1 -0
  132. package/assets/esri/core/workers/chunks/9f28b2800945903bc165.js +1 -0
  133. package/assets/esri/core/workers/chunks/{67d9cfe02613cb73ee37.js → 9ff8ee6ed6b98c03ae7e.js} +2 -2
  134. package/assets/esri/core/workers/chunks/{67d9cfe02613cb73ee37.js.LICENSE.txt → 9ff8ee6ed6b98c03ae7e.js.LICENSE.txt} +1 -1
  135. package/assets/esri/core/workers/chunks/a091623bbfb3d771c8d8.js +1 -0
  136. package/assets/esri/core/workers/chunks/a27e74117c37f3efcbca.js +1 -0
  137. package/assets/esri/core/workers/chunks/a41ba05c09a59d1eb35f.js +1 -0
  138. package/assets/esri/core/workers/chunks/a470f662d73aa8d5d90f.js +1 -0
  139. package/assets/esri/core/workers/chunks/a93ebd076bc55aa6eab0.js +1 -0
  140. package/assets/esri/core/workers/chunks/aa78b69219d9a0ef1c54.js.LICENSE.txt +1 -1
  141. package/assets/esri/core/workers/chunks/aaed35a6414859233678.js +1 -0
  142. package/assets/esri/core/workers/chunks/acd0564ad1544f452f3f.js +1 -0
  143. package/assets/esri/core/workers/chunks/{135e270b4f03c4270870.js → af47272aaaef0ea57e71.js} +1 -1
  144. package/assets/esri/core/workers/chunks/b0f43191a431c9de16e5.js +1 -0
  145. package/assets/esri/core/workers/chunks/b193de09e005b0976a6a.js +1 -0
  146. package/assets/esri/core/workers/chunks/{bc3bcf88b252760e2574.js → b3028b1ff75eafd0c358.js} +1 -1
  147. package/assets/esri/core/workers/chunks/b320bb76c7e9998fe53b.js +1 -0
  148. package/assets/esri/core/workers/chunks/{79968c183135281d2a6f.js → b3613a38178cad2ebc82.js} +1 -1
  149. package/assets/esri/core/workers/chunks/b6853c6a25eaabc9a7f6.js +1 -0
  150. package/assets/esri/core/workers/chunks/b8a3f1e60e24a13749c1.js +1 -0
  151. package/assets/esri/core/workers/chunks/ba4571d2637a74a59552.js +1 -0
  152. package/assets/esri/core/workers/chunks/bb7976e2f883b544add6.js +1 -0
  153. package/assets/esri/core/workers/chunks/{56916e56c20465428dd4.js → be3b874f86f627f4fa98.js} +1 -1
  154. package/assets/esri/core/workers/chunks/c29486c4eeb3e72effff.js +1 -0
  155. package/assets/esri/core/workers/chunks/{2b94623cabc6ae0f86ce.js → c37f7756d48ff9af2656.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{1c52999a6392370844a6.js → c4090a60d149a5962179.js} +1 -1
  157. package/assets/esri/core/workers/chunks/c61c61dac1e8d6188749.js +1 -0
  158. package/assets/esri/core/workers/chunks/c84caf81bfaa4a8b5aa1.js +1 -0
  159. package/assets/esri/core/workers/chunks/c8c8cf43fd640d2f5cb1.js +1 -0
  160. package/assets/esri/core/workers/chunks/{73c1d43070b4fe1e5c1e.js → c8e686efe344a33a0258.js} +1 -1
  161. package/assets/esri/core/workers/chunks/{6bb5158de43c4b59107f.js → c9b16fd41cd59d452522.js} +1 -1
  162. package/assets/esri/core/workers/chunks/ce16489cf7eb0d78c741.js.LICENSE.txt +1 -1
  163. package/assets/esri/core/workers/chunks/d048e4926e78458afa3e.js +1 -0
  164. package/assets/esri/core/workers/chunks/d07f911d40bf05fc0306.js +1 -0
  165. package/assets/esri/core/workers/chunks/d1ca7c3a32ce00ed8b81.js +1 -0
  166. package/assets/esri/core/workers/chunks/{630efe10c871425b6a95.js → d1e97cce5047f1791e22.js} +1 -1
  167. package/assets/esri/core/workers/chunks/d28670cb11164e318e45.js +1 -0
  168. package/assets/esri/core/workers/chunks/{46ef545d2b3b3f4e6d32.js → d391bfbaf0e790cd10d6.js} +2 -2
  169. package/assets/esri/core/workers/chunks/{46ef545d2b3b3f4e6d32.js.LICENSE.txt → d391bfbaf0e790cd10d6.js.LICENSE.txt} +1 -1
  170. package/assets/esri/core/workers/chunks/d56ac52a5288e06365e7.js +1 -0
  171. package/assets/esri/core/workers/chunks/d6e0528eacee7ea4c1ce.js.LICENSE.txt +1 -1
  172. package/assets/esri/core/workers/chunks/{d570c75a425aa29672c8.js → da24ad57747714ac5eda.js} +1 -1
  173. package/assets/esri/core/workers/chunks/{7e43c105f1cfc44b7bd0.js → dc51438b832551924a9e.js} +1 -1
  174. package/assets/esri/core/workers/chunks/dc66490520f97eef15bf.js +316 -0
  175. package/assets/esri/core/workers/chunks/ddca92e18e96ea1c9d89.js +1 -0
  176. package/assets/esri/core/workers/chunks/{cfa3164e7fa1884dc2b9.js → ddfd01bb9ba8577c3ffc.js} +1 -1
  177. package/assets/esri/core/workers/chunks/ded9747ae04ab889d52a.js +1 -0
  178. package/assets/esri/core/workers/chunks/{50d9f69d5255af4b29bb.js → df5afa06c6deb6b40109.js} +1 -1
  179. package/assets/esri/core/workers/chunks/df8279e1baf378faf85f.js +1 -0
  180. package/assets/esri/core/workers/chunks/dff2df259f140b7d97a9.js +1 -0
  181. package/assets/esri/core/workers/chunks/e25c4b4a03270d48f408.js +1 -0
  182. package/assets/esri/core/workers/chunks/e3434f91f47f551d9e02.js +1 -0
  183. package/assets/esri/core/workers/chunks/{da573ecc68e6aa8f6da9.js → e767f83f9e2de6650f80.js} +1 -1
  184. package/assets/esri/core/workers/chunks/e9d4cae2144974489d6e.js +1 -0
  185. package/assets/esri/core/workers/chunks/{91df8638b8b904e6d8c5.js → ead8d0cbcebd12dbfad7.js} +1 -1
  186. package/assets/esri/core/workers/chunks/eb6c3dd440ede4adf603.js +1 -0
  187. package/assets/esri/core/workers/chunks/eb9c166db0db6fa60e95.js +1 -0
  188. package/assets/esri/core/workers/chunks/edc671b9b83c8e19cb42.js +1 -0
  189. package/assets/esri/core/workers/chunks/{16d66770ef841564ee3f.js → ee5aa11750c51b220f1e.js} +1 -1
  190. package/assets/esri/core/workers/chunks/ee5f0fd5384caa11c986.js +1 -0
  191. package/assets/esri/core/workers/chunks/f141c9f7f0d9b2322bf6.js +1 -0
  192. package/assets/esri/core/workers/chunks/{5875a51b97ee9bd438a0.js → f34e3fa0c5b28531e289.js} +1 -1
  193. package/assets/esri/core/workers/chunks/f57401a759f420596b2c.js +1 -0
  194. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +1 -0
  195. package/assets/esri/core/workers/chunks/f651c05604eab83aef5f.js.LICENSE.txt +1 -1
  196. package/assets/esri/core/workers/chunks/{fa4411e0a5ac3fcba365.js → f65c0102af17390a50ac.js} +1 -1
  197. package/assets/esri/core/workers/chunks/f6c11c8ac687de3ef1ab.js +1 -0
  198. package/assets/esri/core/workers/chunks/f7a1f48c53422c6e2028.js +1 -0
  199. package/assets/esri/core/workers/chunks/f7f002ea5ff5fe7f6249.js +1 -0
  200. package/assets/esri/core/workers/chunks/f80f5dbf96c343ac4df6.js +1 -0
  201. package/assets/esri/core/workers/chunks/f8e889be4b45f6f0667e.js +1 -0
  202. package/assets/esri/core/workers/chunks/fbd796c88f07bb6755dc.js +1 -0
  203. package/assets/esri/core/workers/chunks/fbd8d2f61f8a15bcf3db.js +1 -0
  204. package/assets/esri/core/workers/chunks/fccd931f95d81ecc57b2.js +1 -0
  205. package/assets/esri/core/workers/chunks/{2f78861afe0e9037dd8d.js → fe49321dca22dc60d105.js} +1 -1
  206. package/assets/esri/core/workers/chunks/fec3897ed7e8691387ed.js +1 -0
  207. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  208. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  209. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  210. package/assets/esri/themes/base/widgets/_Directions.scss +17 -18
  211. package/assets/esri/themes/base/widgets/_FeatureTable.scss +2 -0
  212. package/assets/esri/themes/base/widgets/_NavigationToggle.scss +1 -1
  213. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -4
  214. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +14 -4
  215. package/assets/esri/themes/base/widgets/_Widget.scss +1 -1
  216. package/assets/esri/themes/dark/main.css +1 -1
  217. package/assets/esri/themes/light/main.css +1 -1
  218. package/assets/esri/themes/light/view.css +1 -1
  219. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ar.json +1 -1
  220. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bg.json +1 -1
  221. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bs.json +1 -1
  222. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ca.json +1 -1
  223. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_cs.json +1 -1
  224. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_da.json +1 -1
  225. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_de.json +1 -1
  226. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_el.json +1 -1
  227. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_es.json +1 -1
  228. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_et.json +1 -1
  229. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fi.json +1 -1
  230. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fr.json +1 -1
  231. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_he.json +1 -1
  232. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hr.json +1 -1
  233. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hu.json +1 -1
  234. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_id.json +1 -1
  235. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_it.json +1 -1
  236. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ja.json +1 -1
  237. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ko.json +1 -1
  238. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lt.json +1 -1
  239. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lv.json +1 -1
  240. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_nl.json +1 -1
  241. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_no.json +1 -1
  242. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pl.json +1 -1
  243. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-BR.json +1 -1
  244. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-PT.json +1 -1
  245. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ro.json +1 -1
  246. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ru.json +1 -1
  247. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sk.json +1 -1
  248. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sl.json +1 -1
  249. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sr.json +1 -1
  250. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sv.json +1 -1
  251. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_th.json +1 -1
  252. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_tr.json +1 -1
  253. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_uk.json +1 -1
  254. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_vi.json +1 -1
  255. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-CN.json +1 -1
  256. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-HK.json +1 -1
  257. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-TW.json +1 -1
  258. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  259. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  260. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  261. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  262. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  263. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  264. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  265. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  266. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  267. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  268. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  269. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  270. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  271. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  272. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  273. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  274. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  275. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  276. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  277. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  278. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  279. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  280. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  281. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  282. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  283. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  284. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  285. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  286. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  287. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  288. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  289. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  290. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  291. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  292. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  293. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  294. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  295. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  296. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  297. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  298. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  299. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  300. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  301. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  302. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  303. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  304. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  305. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  306. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  307. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  308. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  309. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  310. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  311. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  312. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  313. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  314. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  315. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  316. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  317. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  318. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  319. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  320. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  321. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  322. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  323. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  324. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  325. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  326. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  327. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  328. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  329. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  330. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  331. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  332. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  333. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  334. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  335. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  336. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  337. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  338. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  339. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  340. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  341. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  342. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  343. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  344. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  345. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  346. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  347. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  348. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  349. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  350. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  351. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  352. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  353. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  354. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  355. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  356. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  357. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  358. package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
  359. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  360. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  361. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  362. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  363. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  364. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  365. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  366. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  367. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  368. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  369. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  370. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  371. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  372. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  373. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  374. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  375. package/chunks/ComponentShader.glsl.js +72 -39
  376. package/chunks/Envelope.js +1 -1
  377. package/chunks/Geometry.js +1 -1
  378. package/chunks/MultiPathImpl.js +1 -1
  379. package/chunks/OITBlend.glsl.js +3 -3
  380. package/chunks/Point2D.js +1 -1
  381. package/chunks/UnitFactory.js +1 -1
  382. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  383. package/chunks/arcgis-knowledge-client-core.js +1 -1
  384. package/chunks/bundle.js +1 -1
  385. package/chunks/containsOperator.js +1 -1
  386. package/chunks/densifyOperator.js +1 -1
  387. package/chunks/differenceOperator.js +1 -1
  388. package/chunks/intersectsOperator.js +1 -1
  389. package/chunks/persistableUrlUtils.js +1 -1
  390. package/config.js +1 -1
  391. package/core/Identifiable.js +1 -1
  392. package/core/MultiOriginJSONSupport.js +1 -1
  393. package/core/NumericIdentifiable.js +5 -0
  394. package/core/QueueProcessor.js +1 -1
  395. package/core/SetUtils.js +1 -1
  396. package/core/WriteableMultiOriginJSONMixin.js +5 -0
  397. package/core/dedupeResult.js +5 -0
  398. package/core/has.js +1 -1
  399. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  400. package/{views/3d/support/ImageWithType.js → core/performance.js} +1 -1
  401. package/core/sanitizerUtils.js +1 -1
  402. package/core/scheduling.js +1 -1
  403. package/core/unitUtils.js +1 -1
  404. package/core/workers/Connection.js +1 -1
  405. package/core/workers/WorkerHandle.js +1 -1
  406. package/core/workers/utils.js +1 -1
  407. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  408. package/form/FormTemplate.js +1 -1
  409. package/form/elements/Element.js +1 -1
  410. package/form/elements/FieldElement.js +1 -1
  411. package/form/elements/GroupElement.js +1 -1
  412. package/geohash/GeohashCell.js +1 -1
  413. package/geohash/geohashUtils.js +1 -1
  414. package/geometry/Extent.js +1 -1
  415. package/geometry/Geometry.js +1 -1
  416. package/geometry/GeometryCursor.js +1 -1
  417. package/geometry/Point.js +1 -1
  418. package/geometry/SpatialReference.js +1 -1
  419. package/geometry/ellipsoidUtils.js +1 -1
  420. package/geometry/geometryCursorCollectUtils.js +1 -1
  421. package/geometry/libtess.js +1 -1
  422. package/geometry/operators/gx/operatorOffset.js +1 -1
  423. package/geometry/operators/support/jsonConverter.js +1 -1
  424. package/geometry/support/MeshTransform.js +1 -1
  425. package/geometry/support/axisAngleDegrees.js +1 -1
  426. package/geometry/support/jsonUtils.js +1 -1
  427. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  428. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  429. package/geometry/support/meshUtils/rotate.js +1 -1
  430. package/geometry/support/meshUtils/scale.js +1 -1
  431. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  432. package/geometry/support/normalizeUtilsSync.js +1 -1
  433. package/geometry/support/plane.js +1 -1
  434. package/geometry/support/polygonUtils.js +1 -1
  435. package/geometry/support/triangulationUtils.js +1 -1
  436. package/identity/Credential.js +1 -1
  437. package/identity/IdentityManager.js +1 -1
  438. package/identity/IdentityManagerBase.js +1 -1
  439. package/interfaces.d.ts +2091 -462
  440. package/intl/date.js +1 -1
  441. package/intl.d.ts +2 -0
  442. package/intl.js +1 -1
  443. package/kernel.js +1 -1
  444. package/layers/FeatureLayer.js +1 -1
  445. package/layers/KnowledgeGraphLayer.js +1 -1
  446. package/layers/Layer.js +1 -1
  447. package/layers/LinkChartLayer.js +1 -1
  448. package/layers/MapNotesLayer.js +1 -1
  449. package/layers/OrientedImageryLayer.js +1 -1
  450. package/layers/SceneLayer.js +1 -1
  451. package/layers/graphics/OptimizedFeature.js +1 -1
  452. package/layers/graphics/OptimizedGeometry.js +1 -1
  453. package/layers/graphics/centroid.js +1 -1
  454. package/layers/graphics/contains.js +1 -1
  455. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  456. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  457. package/layers/graphics/data/AttributesBuilder.js +1 -1
  458. package/layers/graphics/data/FeatureStore.js +1 -1
  459. package/layers/graphics/data/QueryEngine.js +1 -1
  460. package/layers/graphics/data/QueryEngineResult.js +1 -1
  461. package/layers/graphics/data/geometryUtils.js +1 -1
  462. package/layers/graphics/data/spatialQuerySupport.js +1 -1
  463. package/layers/graphics/featureConversionUtils.js +1 -1
  464. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  465. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  466. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  467. package/layers/graphics/sources/geojson/geojson.js +1 -1
  468. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  469. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  470. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  471. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  472. package/layers/knowledgeGraph/layerUtils.js +1 -1
  473. package/layers/mixins/ArcGISImageService.js +1 -1
  474. package/layers/mixins/ImageryTileMixin.js +1 -1
  475. package/layers/ogc/ogcFeatureUtils.js +1 -1
  476. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  477. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  478. package/layers/save/groupLayerUtils.js +1 -1
  479. package/layers/support/DateTimeFieldFormat.js +1 -1
  480. package/layers/support/FieldFormat.js +1 -1
  481. package/layers/support/MediaElementBase.js +1 -1
  482. package/layers/support/NumberFieldFormat.js +1 -1
  483. package/layers/support/PixelBlock.js +1 -1
  484. package/layers/support/RasterInfo.js +1 -1
  485. package/layers/support/RasterJobHandler.js +1 -1
  486. package/layers/support/RasterSensorInfo.js +1 -1
  487. package/layers/support/RasterStorageInfo.js +1 -1
  488. package/layers/support/RasterWorker.js +1 -1
  489. package/layers/support/Sublayer.js +1 -1
  490. package/layers/support/TitleCreator.js +1 -1
  491. package/layers/support/arcgisLayerUrl.js +1 -1
  492. package/layers/support/capabilities.js +1 -1
  493. package/layers/support/fieldConfigUtils.js +1 -1
  494. package/layers/support/fieldFormatUtils.js +1 -1
  495. package/layers/support/fieldUtils.js +1 -1
  496. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  497. package/layers/support/rasterDatasets/pixelReader.js +1 -1
  498. package/layers/support/rasterFieldUtils.js +1 -1
  499. package/layers/support/rasterFunctions/pixelTransformUtils.js +5 -0
  500. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  501. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  502. package/layers/support/source/DataLayerSource.js +1 -1
  503. package/networks/CircuitManager.d.ts +4 -0
  504. package/networks/UnitIdentifierManager.d.ts +4 -0
  505. package/networks/support/Circuit.d.ts +4 -0
  506. package/networks/support/CircuitLocation.d.ts +4 -0
  507. package/networks/support/CircuitPath.d.ts +4 -0
  508. package/networks/support/CircuitPathConnectivityElement.d.ts +4 -0
  509. package/networks/support/CircuitSection.d.ts +4 -0
  510. package/networks/support/Subcircuit.d.ts +4 -0
  511. package/package.json +5 -5
  512. package/popup/ExpressionInfo.js +1 -1
  513. package/popup/FieldInfo.js +1 -1
  514. package/popup/content/AttachmentsContent.js +1 -1
  515. package/popup/content/BarChartMediaInfo.js +1 -1
  516. package/popup/content/ColumnChartMediaInfo.js +1 -1
  517. package/popup/content/Content.js +1 -1
  518. package/popup/content/CustomContent.js +1 -1
  519. package/popup/content/ExpressionContent.js +1 -1
  520. package/popup/content/FieldsContent.js +1 -1
  521. package/popup/content/ImageMediaInfo.js +1 -1
  522. package/popup/content/LineChartMediaInfo.js +1 -1
  523. package/popup/content/MediaContent.js +1 -1
  524. package/popup/content/PieChartMediaInfo.js +1 -1
  525. package/popup/content/RelationshipContent.js +1 -1
  526. package/popup/content/TextContent.js +1 -1
  527. package/popup/content/UtilityNetworkAssociationsContent.js +1 -1
  528. package/popup/content/mixins/ChartMediaInfo.js +1 -1
  529. package/popup/content/mixins/MediaInfo.js +1 -1
  530. package/popup/content.js +1 -1
  531. package/popup/support/FieldInfoFormat.js +1 -1
  532. package/processRequest.js +5 -0
  533. package/request.js +1 -1
  534. package/requestConfig.js +5 -0
  535. package/requestQueue.js +5 -0
  536. package/rest/geometryService/utils.js +1 -1
  537. package/rest/networks/circuits/support/CircuitTraceResult.d.ts +4 -0
  538. package/rest/networks/circuits/support/CircuitVerifyResult.d.ts +4 -0
  539. package/rest/networks/support/TelecomNetworkElement.d.ts +4 -0
  540. package/rest/networks/unitIdentifiers/support/UnitQueryResult.d.ts +4 -0
  541. package/rest/print.js +1 -1
  542. package/rest/query/executeForCount.js +1 -1
  543. package/rest/query/executeForExtent.js +1 -1
  544. package/rest/query/executeForIds.js +1 -1
  545. package/rest/query/executeQueryJSON.js +1 -1
  546. package/rest/query/executeQueryPBF.js +1 -1
  547. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  548. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  549. package/rest/query/operations/query.js +1 -1
  550. package/rest/query/operations/queryZScale.js +1 -1
  551. package/rest/support/BaseImageMeasureResultValue.js +5 -0
  552. package/rest/support/ImageAreaResult.js +1 -1
  553. package/rest/support/ImageDistanceResult.js +1 -1
  554. package/rest/support/ImageHeightResult.js +1 -1
  555. package/rest/support/ImageMeasureResultAngleValue.js +5 -0
  556. package/rest/support/ImageMeasureResultAreaValue.js +5 -0
  557. package/rest/support/ImageMeasureResultLengthValue.js +5 -0
  558. package/rest/support/ImageWithType.js +5 -0
  559. package/rest/support/imageMeasureUtils.js +1 -1
  560. package/rest/versionManagement/getVersionInfos.js +1 -1
  561. package/smartMapping/renderers/size.js +1 -1
  562. package/smartMapping/statistics/histogram.js +1 -1
  563. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  564. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  565. package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
  566. package/smartMapping/support/adapters/support/utils.js +1 -1
  567. package/smartMapping/support/utils.js +1 -1
  568. package/support/basemapDefinitions.js +1 -1
  569. package/support/elevationInfoUtils.js +1 -1
  570. package/support/requestImageUtils.js +1 -1
  571. package/support/revision.js +1 -1
  572. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  573. package/symbols/support/utils.js +1 -1
  574. package/time/TimeExtent.js +1 -1
  575. package/undoredo/support/Services.js +1 -1
  576. package/views/2d/GoToManager.js +1 -1
  577. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  578. package/views/2d/constraints/GeometryConstraint.js +1 -1
  579. package/views/2d/constraints/RotationConstraint.js +1 -1
  580. package/views/2d/constraints/ZoomConstraint.js +1 -1
  581. package/views/2d/engine/Bitmap.js +1 -1
  582. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  583. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  584. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  585. package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
  586. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  587. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  588. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  589. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  590. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  591. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  592. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  593. package/views/2d/layers/features/aggregation/GridCell.js +1 -1
  594. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  595. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  596. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  597. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  598. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  599. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  600. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  601. package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
  602. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  603. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  604. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  605. package/views/2d/layers/features/schema/ExceedsLimitCache.js +5 -0
  606. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  607. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  608. package/views/2d/layers/features/sources/strategies/AFeatureLoadStrategy.js +1 -1
  609. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  610. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  611. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  612. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  613. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  614. package/views/2d/layers/features/sources/strategies/constants.js +5 -0
  615. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  616. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  617. package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
  618. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  619. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  620. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  621. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  622. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  623. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  624. package/views/3d/FocusAreasView.js +1 -1
  625. package/views/3d/GroundView3D.js +1 -1
  626. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  627. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  628. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  629. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
  630. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  631. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  632. package/views/3d/analysis/VolumeMeasurement/volumeMeasurementErrors.js +5 -0
  633. package/views/3d/environment/CloudsRenderer.js +1 -1
  634. package/views/3d/glTF/DefaultLoadingContext.js +1 -1
  635. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  636. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  637. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  638. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  639. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  640. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  641. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  642. package/views/3d/layers/FlowSubView3D.js +1 -1
  643. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  644. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  645. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  646. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  647. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  648. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  649. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  650. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  651. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  652. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  653. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  654. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  655. package/views/3d/layers/graphics/Labeler.js +1 -1
  656. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  657. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  658. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  659. package/views/3d/layers/graphics/pipeline/featureSet/PBFPointFeatureSetView.js +1 -1
  660. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  661. package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
  662. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  663. package/views/3d/layers/i3s/I3SDataRequester.js +5 -0
  664. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  665. package/views/3d/layers/i3s/I3SNode.js +1 -1
  666. package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
  667. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  668. package/views/3d/layers/i3s/I3SQueryFeatureAdapter.js +1 -1
  669. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  670. package/views/3d/layers/support/FeatureTile.js +1 -1
  671. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  672. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  673. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  674. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  675. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  676. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +5 -0
  677. package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +5 -0
  678. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  679. package/views/3d/layers/support/fetchTile.js +1 -1
  680. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  681. package/views/3d/state/ViewStateManager.js +1 -1
  682. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  683. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  684. package/views/3d/state/controllers/RotateController.js +1 -1
  685. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  686. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  687. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  688. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  689. package/views/3d/state/utils/navigationUtils.js +1 -1
  690. package/views/3d/support/DisplayQualityProfile.js +1 -1
  691. package/views/3d/support/QualitySettings.js +1 -1
  692. package/views/3d/support/ResourceController.js +1 -1
  693. package/views/3d/support/SharedSymbolResources.js +1 -1
  694. package/views/3d/support/StreamTextureCollection.js +1 -1
  695. package/views/3d/support/engineContent/line.js +1 -1
  696. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  697. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  698. package/views/3d/support/flow/FlowWorker.js +1 -1
  699. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  700. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  701. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  702. package/views/3d/support/flow/constants.js +1 -1
  703. package/views/3d/support/flow/geometryUtils.js +1 -1
  704. package/views/3d/support/hitTest.js +1 -1
  705. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  706. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  707. package/views/3d/terrain/OverlayRenderer.js +1 -1
  708. package/views/3d/terrain/TerrainSurface.js +1 -1
  709. package/views/3d/terrain/Tile.js +1 -1
  710. package/views/3d/terrain/TileOverlayData.js +1 -1
  711. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  712. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  713. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  714. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  715. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  716. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +7 -7
  717. package/views/3d/webgl-engine/core/shaderModules/BooleanDrawUniform.js +5 -0
  718. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConstructionContext.js +1 -1
  719. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  720. package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
  721. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  722. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  723. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  724. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  725. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  726. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  727. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  728. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  729. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +10 -4
  730. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  731. package/views/DOMContainer.js +1 -1
  732. package/views/SceneView.js +1 -1
  733. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  734. package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
  735. package/views/analysis/ElevationProfile/ElevationProfileLineInputComputation.js +1 -1
  736. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  737. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  738. package/views/analysis/ElevationProfile/constants.js +1 -1
  739. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
  740. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  741. package/views/analysis/ElevationProfile/elevationProfileLayerUtils.js +5 -0
  742. package/views/draw/DrawOperation.js +1 -1
  743. package/views/draw/MultipointDrawAction.js +1 -1
  744. package/views/draw/PointDrawAction.js +1 -1
  745. package/views/draw/PolygonDrawAction.js +1 -1
  746. package/views/draw/PolylineDrawAction.js +1 -1
  747. package/views/draw/SegmentDrawAction.js +1 -1
  748. package/views/draw/input/CursorUpdateEvents.js +5 -0
  749. package/views/draw/input/DrawCompleteEvent.js +5 -0
  750. package/views/draw/input/VertexAddEvent.js +5 -0
  751. package/views/draw/input/VertexRemoveEvent.js +5 -0
  752. package/views/draw/input/VertexUpdateEvent.js +5 -0
  753. package/views/draw/support/Reshape.js +1 -1
  754. package/views/draw/support/reshapeUtils.js +1 -1
  755. package/views/draw/support/tooltipUtils.js +1 -1
  756. package/views/interactive/dragEventPipeline.js +1 -1
  757. package/views/interactive/editGeometry/CheckpointingEditGeometryOperations.js +5 -0
  758. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  759. package/views/interactive/editGeometry/operations/ReplayableAppendVertex.js +5 -0
  760. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  761. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  762. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  763. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  764. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
  765. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  766. package/views/interactive/tooltip/fields/TooltipField.js +1 -1
  767. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  768. package/views/layers/FeatureLayerView.js +1 -1
  769. package/views/support/PromiseQueue.js +1 -1
  770. package/views/support/Scheduler.js +1 -1
  771. package/views/support/TextureCompressionWorker.js +1 -1
  772. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  773. package/views/webgl/ShaderBuilder.js +1 -1
  774. package/views/webgl/Texture.js +1 -1
  775. package/webdoc/support/webdocSaveUtils.js +1 -1
  776. package/webscene/spec-certification/api.js +1 -1
  777. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  778. package/widgets/BasemapLayerList.js +1 -1
  779. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  780. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  781. package/widgets/BatchAttributeForm.js +1 -1
  782. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  783. package/widgets/CoordinateConversion.js +1 -1
  784. package/widgets/Daylight/DaylightViewModel.js +1 -1
  785. package/widgets/Daylight.js +1 -1
  786. package/widgets/Directions/css.js +1 -1
  787. package/widgets/Directions.js +1 -1
  788. package/widgets/Editor/AddAssociationWorkflow.js +1 -1
  789. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  790. package/widgets/Editor/EditorViewModel.js +1 -1
  791. package/widgets/Editor/Edits.js +1 -1
  792. package/widgets/Editor/MergeFeaturesWorkflow.d.ts +4 -0
  793. package/widgets/Editor/MergeFeaturesWorkflow.js +5 -0
  794. package/widgets/Editor/MergeFeaturesWorkflowData.d.ts +4 -0
  795. package/widgets/Editor/MergeFeaturesWorkflowData.js +5 -0
  796. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  797. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  798. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  799. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  800. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  801. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  802. package/widgets/Editor/UpdateWorkflow.js +1 -1
  803. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  804. package/widgets/Editor/components/FeatureList.js +1 -1
  805. package/widgets/Editor/components/UploadDetails.js +1 -1
  806. package/widgets/Editor/support/EditorItem.js +1 -1
  807. package/widgets/Editor/support/SketchController.js +1 -1
  808. package/widgets/Editor/support/errors.js +5 -0
  809. package/widgets/Editor/support/mergeFeaturesUtils.js +5 -0
  810. package/widgets/Editor/workflowUtils.js +1 -1
  811. package/widgets/Editor.js +1 -1
  812. package/widgets/Feature/FeatureExpression.js +1 -1
  813. package/widgets/Feature/FeatureFields/FeatureFieldsViewModel.js +1 -1
  814. package/widgets/Feature/FeatureFields.js +1 -1
  815. package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
  816. package/widgets/Feature/FeatureMedia.js +1 -1
  817. package/widgets/Feature/FeatureViewModel.js +1 -1
  818. package/widgets/Feature/support/featureUtils.js +1 -1
  819. package/widgets/Feature.js +1 -1
  820. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  821. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  822. package/widgets/FeatureForm/FieldInput.js +1 -1
  823. package/widgets/FeatureForm/InputBase.js +1 -1
  824. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  825. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  826. package/widgets/FeatureForm.js +1 -1
  827. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  828. package/widgets/FeatureTable/FieldColumn.js +1 -1
  829. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  830. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  831. package/widgets/LayerList.js +1 -1
  832. package/widgets/Legend/LegendViewModel.js +1 -1
  833. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  834. package/widgets/Legend.js +1 -1
  835. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  836. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  837. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  838. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  839. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  840. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  841. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  842. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  843. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  844. package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
  845. package/widgets/PanoramicViewer/support/PanoramicMeshManager.js +1 -1
  846. package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
  847. package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
  848. package/widgets/PanoramicViewer/support/getVisibleTiles.js +5 -0
  849. package/widgets/Print.js +1 -1
  850. package/widgets/Search/LayerSearchSource.js +1 -1
  851. package/widgets/Sketch/CreateToolVisibilityMap.js +5 -0
  852. package/widgets/Sketch/SelectionToolVisibilityMap.js +5 -0
  853. package/widgets/Sketch/VisibleElements.js +1 -1
  854. package/widgets/Sketch.js +1 -1
  855. package/widgets/TimeSlider.js +1 -1
  856. package/widgets/UtilityNetworkTrace.js +1 -1
  857. package/widgets/support/ColorPicker.js +1 -1
  858. package/widgets/support/FilterCondition.js +1 -1
  859. package/widgets/support/SelectionList/LayerItem.js +1 -1
  860. package/widgets/support/jsxWidgetSupport.js +1 -1
  861. package/assets/esri/core/workers/chunks/01642fe19e81bfa33eb5.js +0 -1
  862. package/assets/esri/core/workers/chunks/039ec0fbe3b4b398b8c6.js +0 -1
  863. package/assets/esri/core/workers/chunks/0429c1a3690f20647c9f.js +0 -1
  864. package/assets/esri/core/workers/chunks/05eee334d58a0b9f6316.js +0 -1
  865. package/assets/esri/core/workers/chunks/065f2bbcaeef1f13fd48.js +0 -1
  866. package/assets/esri/core/workers/chunks/0731e588afd1f561ec3b.js +0 -1
  867. package/assets/esri/core/workers/chunks/09de8be660174a229efb.js +0 -1
  868. package/assets/esri/core/workers/chunks/0eaa4dccba0d844b9da3.js +0 -1
  869. package/assets/esri/core/workers/chunks/0f9bb3187306f89e3d63.js +0 -1
  870. package/assets/esri/core/workers/chunks/1019fa4818624ba292ef.js +0 -1
  871. package/assets/esri/core/workers/chunks/10fb29ba6f3f81353fbc.js +0 -1
  872. package/assets/esri/core/workers/chunks/147ad5fdd02f46b6da24.js +0 -1
  873. package/assets/esri/core/workers/chunks/17103e6542aae53c7301.js +0 -1
  874. package/assets/esri/core/workers/chunks/188272af9a6470ccfe31.js +0 -1
  875. package/assets/esri/core/workers/chunks/18da83afbc324fef9fd8.js +0 -316
  876. package/assets/esri/core/workers/chunks/1a9f544f20f643161a36.js +0 -1
  877. package/assets/esri/core/workers/chunks/1cfcadaa98ac528fea37.js +0 -1
  878. package/assets/esri/core/workers/chunks/1db0bf570a04687b3130.js +0 -1
  879. package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +0 -1
  880. package/assets/esri/core/workers/chunks/24921d31efa8d222ad2d.js +0 -2
  881. package/assets/esri/core/workers/chunks/24c14e4a1d2a2267097e.js +0 -1
  882. package/assets/esri/core/workers/chunks/25639559336109ff3df1.js +0 -1
  883. package/assets/esri/core/workers/chunks/2a5f331c0f18d8574b4e.js +0 -1
  884. package/assets/esri/core/workers/chunks/2a900a632a1231deb713.js +0 -1
  885. package/assets/esri/core/workers/chunks/31c6e951b99315e8e68a.js +0 -1
  886. package/assets/esri/core/workers/chunks/326a76a4e80269d4029d.js +0 -1
  887. package/assets/esri/core/workers/chunks/35491fbdd287470d40a4.js +0 -1
  888. package/assets/esri/core/workers/chunks/36247c6f6fc2891df2cf.js +0 -1
  889. package/assets/esri/core/workers/chunks/36fe6b8228e622407ec2.js +0 -1
  890. package/assets/esri/core/workers/chunks/3d22fe2f2c40abbc246e.js +0 -1
  891. package/assets/esri/core/workers/chunks/3d53307efbc3f07d7bf2.js +0 -1
  892. package/assets/esri/core/workers/chunks/3d65b8a2fbe1df050a25.js +0 -1
  893. package/assets/esri/core/workers/chunks/40b81d1c2d53cf598b8e.js +0 -1
  894. package/assets/esri/core/workers/chunks/42a72e1d963e4636323b.js +0 -1
  895. package/assets/esri/core/workers/chunks/456161a323be7d640c61.js +0 -1
  896. package/assets/esri/core/workers/chunks/459a67928bde4a62b6a4.js +0 -1
  897. package/assets/esri/core/workers/chunks/4c4227b0ea21a5e429ab.js +0 -1
  898. package/assets/esri/core/workers/chunks/4eebd74ebc20579dade8.js +0 -1
  899. package/assets/esri/core/workers/chunks/500d09d2191127371081.js +0 -1
  900. package/assets/esri/core/workers/chunks/50864c1924030e62497d.js +0 -1
  901. package/assets/esri/core/workers/chunks/5707713c2f27588b9194.js +0 -1
  902. package/assets/esri/core/workers/chunks/5713f96bade5ebb54c81.js +0 -1
  903. package/assets/esri/core/workers/chunks/5718cf135e105e1e026b.js +0 -1
  904. package/assets/esri/core/workers/chunks/5c585b338a9e9aa0e205.js +0 -1
  905. package/assets/esri/core/workers/chunks/5d1d909354c90cb8eb60.js +0 -1
  906. package/assets/esri/core/workers/chunks/5ea03f53d4d64d9e7cae.js +0 -1
  907. package/assets/esri/core/workers/chunks/6201356f7f91e5c06425.js +0 -1
  908. package/assets/esri/core/workers/chunks/620a94b54be3ed78350d.js +0 -1
  909. package/assets/esri/core/workers/chunks/63019a7eb5222dc5e420.js +0 -1
  910. package/assets/esri/core/workers/chunks/64629ddcf008349eaf41.js +0 -1
  911. package/assets/esri/core/workers/chunks/64ee8d2acae2d6fce608.js +0 -1
  912. package/assets/esri/core/workers/chunks/650c94c0e8ab9721015e.js +0 -1
  913. package/assets/esri/core/workers/chunks/67f305b0c72e77a6331a.js +0 -1
  914. package/assets/esri/core/workers/chunks/6e5b3bbee054d072b594.js +0 -1
  915. package/assets/esri/core/workers/chunks/6f4bd0ee85e7e5a74340.js +0 -1
  916. package/assets/esri/core/workers/chunks/72ecf49d03bb24bf0998.js +0 -1
  917. package/assets/esri/core/workers/chunks/7421f9575487cdc9e28e.js +0 -1
  918. package/assets/esri/core/workers/chunks/77a11d7d53325d108ed8.js +0 -1
  919. package/assets/esri/core/workers/chunks/7c5c272612198db83851.js +0 -1
  920. package/assets/esri/core/workers/chunks/7d9882ddfa6495f72baa.js +0 -1
  921. package/assets/esri/core/workers/chunks/7fffad8ff6878fa1fd56.js +0 -1
  922. package/assets/esri/core/workers/chunks/81bbe5251ed13c0d91cc.js +0 -1
  923. package/assets/esri/core/workers/chunks/85622fe99f4d08afe875.js +0 -1
  924. package/assets/esri/core/workers/chunks/8b16aa50d879b92a5375.js +0 -1
  925. package/assets/esri/core/workers/chunks/8bc64fc7c4b9eb8fca4d.js +0 -1
  926. package/assets/esri/core/workers/chunks/8eefa133c36a004c054c.js +0 -1
  927. package/assets/esri/core/workers/chunks/91afee11072471e4eefe.js +0 -1
  928. package/assets/esri/core/workers/chunks/929ece362604dc301229.js +0 -1
  929. package/assets/esri/core/workers/chunks/9834bc11586a2d8d6f35.js +0 -1
  930. package/assets/esri/core/workers/chunks/9a723d739ac44b45432c.js +0 -1
  931. package/assets/esri/core/workers/chunks/9c6fc4fe2c46f40d63d9.js +0 -1
  932. package/assets/esri/core/workers/chunks/a5a67216e0d0cee95a55.js +0 -1
  933. package/assets/esri/core/workers/chunks/a5f25104938ab33e7a85.js +0 -1
  934. package/assets/esri/core/workers/chunks/a7bd294996e6c8b8354a.js +0 -1
  935. package/assets/esri/core/workers/chunks/a87521ebe632bf783ef4.js +0 -1
  936. package/assets/esri/core/workers/chunks/a8f998b8ec8c56150479.js +0 -2
  937. package/assets/esri/core/workers/chunks/abf4f018c692c18c3320.js +0 -1
  938. package/assets/esri/core/workers/chunks/ae6066ea6cb373dc6db3.js +0 -1
  939. package/assets/esri/core/workers/chunks/b0b2670596d6d8c32b5e.js +0 -1
  940. package/assets/esri/core/workers/chunks/b1f667006cba60ef4aa7.js +0 -1
  941. package/assets/esri/core/workers/chunks/b2add7338258ca7c24dd.js +0 -1
  942. package/assets/esri/core/workers/chunks/b2d9f4e057af26a538fb.js +0 -1
  943. package/assets/esri/core/workers/chunks/b62807c6fcfb70a87cd4.js +0 -1
  944. package/assets/esri/core/workers/chunks/b8339c1d60847a9eed3e.js +0 -1
  945. package/assets/esri/core/workers/chunks/bc6619307f312f9241bf.js +0 -1
  946. package/assets/esri/core/workers/chunks/bfc1e8aec7aace3ff30e.js +0 -1
  947. package/assets/esri/core/workers/chunks/c0feec6e2f0e45900ae0.js +0 -1
  948. package/assets/esri/core/workers/chunks/c362fbbafec91c44eeb2.js +0 -1
  949. package/assets/esri/core/workers/chunks/c368a8e8d2f1535af446.js +0 -1
  950. package/assets/esri/core/workers/chunks/c55c096669677321a227.js +0 -1
  951. package/assets/esri/core/workers/chunks/c7a3a44cca5a7d52cca9.js +0 -1
  952. package/assets/esri/core/workers/chunks/c941d15190fc08523d0d.js +0 -1
  953. package/assets/esri/core/workers/chunks/cc70a4a915b0b2ccb2a0.js +0 -1
  954. package/assets/esri/core/workers/chunks/d121045cddbe55c2ecb2.js +0 -1
  955. package/assets/esri/core/workers/chunks/d2120a623b1bd91b9ed9.js +0 -1
  956. package/assets/esri/core/workers/chunks/d466f3f0d3824c77da7c.js +0 -1
  957. package/assets/esri/core/workers/chunks/d48af7bc06b4bb176534.js +0 -1
  958. package/assets/esri/core/workers/chunks/d78c2833cdc4730a88a3.js +0 -1
  959. package/assets/esri/core/workers/chunks/dabc5a38a472c9719df9.js +0 -1
  960. package/assets/esri/core/workers/chunks/dc31865edea480f0ebba.js +0 -1
  961. package/assets/esri/core/workers/chunks/df438b62702007267798.js +0 -1
  962. package/assets/esri/core/workers/chunks/e0bbfbe1ed39c82f1bd4.js +0 -1
  963. package/assets/esri/core/workers/chunks/e6fc278e2390d2787345.js +0 -1
  964. package/assets/esri/core/workers/chunks/f4eb090bcc3eca64306a.js +0 -1
  965. package/assets/esri/core/workers/chunks/f7846523adacbfe5047e.js +0 -1
  966. package/assets/esri/core/workers/chunks/f839b86bee15deaf84e4.js +0 -1
  967. package/assets/esri/core/workers/chunks/f98689562017583f73ee.js +0 -1
  968. package/assets/esri/core/workers/chunks/fa5c87889c2f0bef896b.js +0 -1
  969. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementConfiguration.js +0 -5
  970. package/views/3d/layers/i3s/I3SStreamDataController.js +0 -5
  971. package/views/3d/support/StreamDataLoader.js +0 -5
  972. package/views/3d/support/StreamDataRequester.js +0 -5
  973. package/views/3d/support/downloadSlots.js +0 -5
  974. package/views/draw/input/DrawEvents.js +0 -5
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2883],{1843:(e,t,r)=>{r.d(t,{BP:()=>u,l5:()=>h});var i=r(20498),n=r(13030),o=r(90239),a=r(4431),s=r(620),l=r(85079);class c{constructor(e,t){this.layout=e,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(const t of e.fields.keys()){const r=e.fields.get(t);this[t]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(e,t){const r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new c(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,i=e.count){const n=this.stride;if(n%4==0){const o=new Uint32Array(e.buffer,t*n,i*n/4);new Uint32Array(this.buffer,r*n,i*n/4).set(o)}else{const o=new Uint8Array(e.buffer,t*n,i*n);new Uint8Array(this.buffer,r*n,i*n).set(o)}return this}get usedMemory(){return this.byteLength}dispose(){}}class d{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:f(e[1].constructor)})))}freeze(){return this}get locations(){return(0,l.Xk)((0,a.U)(this))}vec2f16(e,t){return this._appendField(e,i.SX?n.ZD:n.gH,t),this}vec2f(e,t){return this._appendField(e,n.gH,t),this}vec2f64(e,t){return this._appendField(e,n.si,t),this}vec3f16(e,t){return this._appendField(e,i.SX?n.EC:n.xs,t),this}vec3f(e,t){return this._appendField(e,n.xs,t),this}vec3f64(e,t){return this._appendField(e,n.Xm,t),this}vec4f16(e,t){return this._appendField(e,i.SX?n.jz:n.Eq,t),this}vec4f(e,t){return this._appendField(e,n.Eq,t),this}vec4f64(e,t){return this._appendField(e,n.Aj,t),this}mat3f(e,t){return this._appendField(e,n.jZ,t),this}mat3f64(e,t){return this._appendField(e,n.j0,t),this}mat4f(e,t){return this._appendField(e,n.Sx,t),this}mat4f64(e,t){return this._appendField(e,n.E$,t),this}vec4u8(e,t){return this._appendField(e,n.XP,t),this}f16(e,t){return this._appendField(e,i.SX?n.XW:n.Y$,t),this}f32(e,t){return this._appendField(e,n.Y$,t),this}f64(e,t){return this._appendField(e,n.qB,t),this}u8(e,t){return this._appendField(e,n.SL,t),this}u16(e,t){return this._appendField(e,n.h,t),this}i8(e,t){return this._appendField(e,n.bf,t),this}vec2i8(e,t){return this._appendField(e,n.D6,t),this}vec2i16(e,t){return this._appendField(e,n.mJ,t),this}vec2u8(e,t){return this._appendField(e,n.LC,t),this}vec2u16(e,t){return this._appendField(e,n.Yi,t),this}vec4u16(e,t){return this._appendField(e,n.Uz,t),this}vec4i16(e,t){return this._appendField(e,n.E7,t),this}u32(e,t){return this._appendField(e,n.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,s.vA)(!1,`${e} already added to vertex buffer layout`);const i=t.ElementCount*(0,o.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:i,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{const i=(0,o.GJ)(r.constructor.ElementType);e=Math.floor((e+i-1)/i)*i,r.offset=e,e+=r.size,t=Math.max(t,i)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new c(this,e)}createView(e){return new c(this,e)}clone(){const e=new d;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e.BufferType=this.BufferType,e}get stride(){return this._stride}get fields(){return this._fields}}function u(){return new d}class h{constructor(e){this.fields=new Array,e.fields.forEach((e,t)=>{const r={...e,constructor:m(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const p=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function m(e){return`${e.ElementType}_${e.ElementCount}`}function f(e){return g.get(e)}const g=new Map;p.forEach(e=>g.set(m(e),e))},2495:(e,t,r)=>{r.d(t,{$U:()=>Ee,fs:()=>Re,ty:()=>Ie});var i=r(38954),n=r(51850),o=r(49255),a=r(25634),s=r(11725),l=r(33524),c=r(70328),d=r(620);class u{constructor(e=0,t=!1,r=!0){this.tolerance=e,this.isVerticalRay=t,this.normalRequired=r}}const h=(0,c.vt)();function p(e,t,r,n,o,a){if(!e.visible)return;const s=(0,i.a)(S,n,r),l=(e,t,r)=>{a(e,r,t)},{tolerance:c}=t,h=new u(c,!1,t.options.normalRequired);if(e.boundingInfo)(0,d.vA)(0===e.type),f(e.boundingInfo,r,s,c,o,h,l);else{const t=e.positionAttribute,n=t.indices;!function(e,t,r,n,o,a,s,l,c,d){const u=t,h=E,p=Math.abs(u[0]),m=Math.abs(u[1]),f=Math.abs(u[2]),g=p>=m?p>=f?0:2:m>=f?1:2,w=g,b=u[w]<0?2:1,M=(g+b)%3,T=(g+(3-b))%3,C=u[M]/u[w],S=u[T]/u[w],A=1/u[w],R=v,I=_,F=x,{normalRequired:O}=c;for(let t=r;t<n;++t){const r=3*t,n=s*o[r];(0,i.j)(h[0],a[n+0],a[n+1],a[n+2]);const c=s*o[r+1];(0,i.j)(h[1],a[c+0],a[c+1],a[c+2]);const u=s*o[r+2];(0,i.j)(h[2],a[u+0],a[u+1],a[u+2]),l&&((0,i.d)(h[0],l.applyToVertex(h[0][0],h[0][1],h[0][2],t)),(0,i.d)(h[1],l.applyToVertex(h[1][0],h[1][1],h[1][2],t)),(0,i.d)(h[2],l.applyToVertex(h[2][0],h[2][1],h[2][2],t))),(0,i.a)(R,h[0],e),(0,i.a)(I,h[1],e),(0,i.a)(F,h[2],e);const p=R[M]-C*R[w],m=R[T]-S*R[w],f=I[M]-C*I[w],g=I[T]-S*I[w],v=F[M]-C*F[w],_=F[T]-S*F[w],x=v*g-_*f,b=p*_-m*v,E=f*m-g*p;if((x<0||b<0||E<0)&&(x>0||b>0||E>0))continue;const P=x+b+E;if(0===P)continue;const D=x*(A*R[w])+b*(A*I[w])+E*(A*F[w]);if(D*Math.sign(P)<0)continue;const N=D/P;N>=0&&d(N,t,O?y(h):null)}}(r,s,0,n.length/3,n,t.data,t.stride,o,h,l)}}const m=(0,n.vt)();function f(e,t,r,n,o,a,s){if(null==e)return;const l=function(e,t){return(0,i.j)(t,1/e[0],1/e[1],1/e[2])}(r,m);if((0,c.Ne)(h,e.bbMin),(0,c.vI)(h,e.bbMax),null!=o&&o.applyToAabb(h),function(e,t,r,i){return function(e,t,r,i){const n=(e[0]-i-t[0])*r[0],o=(e[3]+i-t[0])*r[0];let a=Math.min(n,o),s=Math.max(n,o);const l=(e[1]-i-t[1])*r[1],c=(e[4]+i-t[1])*r[1];if(s=Math.min(s,Math.max(l,c)),s<0)return!1;if(a=Math.max(a,Math.min(l,c)),a>s)return!1;const d=(e[2]-i-t[2])*r[2],u=(e[5]+i-t[2])*r[2];return s=Math.min(s,Math.max(d,u)),!(s<0)&&(a=Math.max(a,Math.min(d,u)),!(a>s)&&a<1/0)}(e,t,r,i)}(h,t,l,n)){const{primitiveIndices:i,position:l}=e,c=i?i.length:l.indices.length/3;if(c>T){const i=e.getChildren();if(void 0!==i){for(const e of i)f(e,t,r,n,o,a,s);return}}!function(e,t,r,i,n,o,a,s,l,c,d){const u=e[0],h=e[1],p=e[2],m=t[0],f=t[1],v=t[2],{normalRequired:_}=c;for(let e=0;e<i;++e){const t=s[e],r=3*t,i=a*n[r];let c=o[i],x=o[i+1],y=o[i+2];const b=a*n[r+1];let M=o[b],T=o[b+1],S=o[b+2];const E=a*n[r+2];let A=o[E],R=o[E+1],I=o[E+2];null!=l&&([c,x,y]=l.applyToVertex(c,x,y,e),[M,T,S]=l.applyToVertex(M,T,S,e),[A,R,I]=l.applyToVertex(A,R,I,e));const F=M-c,O=T-x,P=S-y,D=A-c,N=R-x,H=I-y,L=f*H-N*v,z=v*D-H*m,B=m*N-D*f,G=F*L+O*z+P*B;if(Math.abs(G)<=C)continue;const U=u-c,V=h-x,j=p-y,W=U*L+V*z+j*B;if(G>0){if(W<0||W>G)continue}else if(W>0||W<G)continue;const k=V*P-O*j,$=j*F-P*U,Z=U*O-F*V,q=m*k+f*$+v*Z;if(G>0){if(q<0||W+q>G)continue}else if(q>0||W+q<G)continue;const Y=(D*k+N*$+H*Z)/G;Y>=0&&d(Y,t,_?w(F,O,P,D,N,H,g):null)}}(t,r,0,c,l.indices,l.data,l.stride,i,o,a,s)}}const g=(0,n.vt)();const v=(0,n.vt)(),_=(0,n.vt)(),x=(0,n.vt)();function w(e,t,r,n,o,a,s){return(0,i.j)(b,e,t,r),(0,i.j)(M,n,o,a),(0,i.i)(s,b,M),(0,i.n)(s,s),s}function y(e){return(0,i.a)(b,e[1],e[0]),(0,i.a)(M,e[2],e[0]),(0,i.i)(g,b,M),(0,i.n)(g,g),g}const b=(0,n.vt)(),M=(0,n.vt)(),T=1e3,C=1e-7,S=(0,n.vt)(),E=[(0,n.vt)(),(0,n.vt)(),(0,n.vt)()];var A=r(16396),R=r(13030),I=r(59907);class F{constructor(e){this.layout=e}elementCount(e){return e.get("position").indices.length}write(e,t,r,i,n,o){return(0,I.vJ)(r,i,this.layout,e,t,n,o)}intersect(e,t,r,n,o,a,s){const l=this.layout.createView(e).getField("position",R.xs);if(null==l)return;const c=(0,i.a)(O,a,o),d=l.count/3,u=n.options.normalRequired;!function(e,t,r,i,n,o,a,s){const l=e[0],c=e[1],d=e[2],u=t[0],h=t[1],p=t[2];for(let e=0;e<i;++e){const t=3*e,r=t+1,i=t+2,m=o*t,f=n[m],v=n[m+1],_=n[m+2],x=o*r,y=o*i,b=n[x]-f,M=n[x+1]-v,T=n[x+2]-_,S=n[y]-f,E=n[y+1]-v,A=n[y+2]-_,R=h*A-E*p,I=p*S-A*u,F=u*E-S*h,O=b*R+M*I+T*F;if(Math.abs(O)<=C)continue;const P=l-f,D=c-v,N=d-_,H=P*R+D*I+N*F;if(O>0){if(H<0||H>O)continue}else if(H>0||H<O)continue;const L=D*T-M*N,z=N*b-T*P,B=P*M-b*D,G=u*L+h*z+p*B;if(O>0){if(G<0||H+G>O)continue}else if(G>0||H+G<O)continue;const U=(S*L+E*z+A*B)/O;U>=0&&s(U,e,a?w(b,M,T,S,E,A,g):null)}}(o,c,0,d,l.typedBuffer,l.typedBufferStride,u,(e,t,r)=>s(e,r,t))}}const O=(0,n.vt)();var P=r(43616),D=r(91829),N=r(4431),H=r(1843),L=r(72824),z=r(97220),B=r(98958),G=r(16943);const U={mask:255},V={function:{func:519,ref:2,mask:2},operation:{fail:7680,zFail:7680,zPass:0}},j={function:{func:519,ref:2,mask:2},operation:{fail:7680,zFail:7680,zPass:7681}};var W=r(4576),k=r(44208);r(53966),r(34275),r(94656),r(63907),(0,k.A)("esri-tests-disable-gpu-memory-measurements");var $=r(31635),Z=r(69622),q=r(65529),Y=r(10107),X=r(64108),J=r(77690),K=r(29242),Q=r(58083),ee=r(9093),te=r(32728);class re{constructor(e){this.localTransform=e.localTransform,this.globalTransform=e.globalTransform,this.modelOrigin=e.modelOrigin,this.model=e.instanceModel,this.modelNormal=e.instanceModelNormal,this.modelScaleFactors=e.modelScaleFactors,this.boundingSphere=e.boundingSphere,this.featureAttribute=e.getField("instanceFeatureAttribute",R.Eq),this.color=e.getField("instanceColor",R.XP),this.olidColor=e.getField("instanceOlidColor",R.XP),this.state=e.getField("state",R.SL),this.lodLevel=e.getField("lodLevel",R.SL)}}let ie=class extends Z.A{constructor(e,t){super(e),this.events=new q.bk,this._capacity=0,this._size=0,this._next=0,this._highlightOptionsMap=new Map,this._highlightOptionsMapPrev=new Map,this._layout=function(e){return oe(ne.clone(),e).u8("state").u8("lodLevel")}(t),this._capacity=de,this._buffer=this._layout.createBuffer(this._capacity),this._view=new re(this._buffer)}get capacity(){return this._capacity}get size(){return this._size}get view(){return this._view}addInstance(){this._size+1>this._capacity&&this._grow();const e=this._findSlot();return this._view.state.set(e,1),this._size++,this.events.emit("instances-changed"),e}removeInstance(e){const t=this._view.state;(0,d.vA)(e>=0&&e<this._capacity&&!!(1&t.get(e)),"invalid instance handle"),this._getStateFlag(e,18)?this._setStateFlags(e,32):this.freeInstance(e),this.events.emit("instances-changed")}freeInstance(e){const t=this._view.state;(0,d.vA)(e>=0&&e<this._capacity&&!!(1&t.get(e)),"invalid instance handle"),t.set(e,0),this._size--}setLocalTransform(e,t,r=!0){this._view.localTransform.setMat(e,t),r&&this.updateModelTransform(e)}getLocalTransform(e,t){this._view.localTransform.getMat(e,t)}setGlobalTransform(e,t,r=!0){this._view.globalTransform.setMat(e,t),r&&this.updateModelTransform(e)}getGlobalTransform(e,t){this._view.globalTransform.getMat(e,t)}updateModelTransform(e){const t=this._view,r=ae,n=se;t.localTransform.getMat(e,le),t.globalTransform.getMat(e,ce);const o=(0,Q.lw)(ce,ce,le);(0,i.j)(r,o[12],o[13],o[14]),t.modelOrigin.setVec(e,r),(0,J.z0)(n,o),t.model.setMat(e,n);const a=(0,te.wp)(ae,o);a.sort(),t.modelScaleFactors.set(e,0,a[1]),t.modelScaleFactors.set(e,1,a[2]),(0,J.B8)(n,n),(0,J.mg)(n,n),t.modelNormal.setMat(e,n),this._setStateFlags(e,64),this.events.emit("instance-transform-changed",{index:e})}getModelTransform(e,t){const r=this._view;r.model.getMat(e,se),r.modelOrigin.getVec(e,ae),t[0]=se[0],t[1]=se[1],t[2]=se[2],t[3]=0,t[4]=se[3],t[5]=se[4],t[6]=se[5],t[7]=0,t[8]=se[6],t[9]=se[7],t[10]=se[8],t[11]=0,t[12]=ae[0],t[13]=ae[1],t[14]=ae[2],t[15]=1}applyShaderTransformation(e,t){null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t)}getCombinedModelTransform(e,t){return this.getModelTransform(e,t),null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t),t}getCombinedLocalTransform(e,t){this._view.localTransform.getMat(e,t),null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t)}getCombinedMaxScaleFactor(e){let t=this._view.modelScaleFactors.get(e,1);return null!=this.shaderTransformation&&(this.shaderTransformation.scaleFactor(ae,this,e),t*=Math.max(ae[0],ae[1],ae[2])),t}getCombinedMedianScaleFactor(e){let t=this._view.modelScaleFactors.get(e,0);return null!=this.shaderTransformation&&(this.shaderTransformation.scaleFactor(ae,this,e),t*=function(e,t,r){return Math.max(Math.min(e,t),Math.min(Math.max(e,t),r))}(ae[0],ae[1],ae[2])),t}getModel(e,t){this._view.model.getMat(e,t)}setFeatureAttribute(e,t){this._view.featureAttribute?.setVec(e,t)}getFeatureAttribute(e,t){this._view.featureAttribute?.getVec(e,t)}setColor(e,t){this._view.color?.setVec(e,t)}setObjectAndLayerIdColor(e,t){this._view.olidColor?.setVec(e,t)}setVisible(e,t){t!==this.getVisible(e)&&(this._setStateFlag(e,4,t),this.events.emit("instance-visibility-changed",{index:e}))}getVisible(e){return this._getStateFlag(e,4)}setHighlight(e,t){const{_highlightOptionsMap:r}=this,i=r.get(e);t?t!==i&&(r.set(e,t),this._setStateFlag(e,8,!0),this.events.emit("instance-highlight-changed")):i&&(r.delete(e),this._setStateFlag(e,8,!1),this.events.emit("instance-highlight-changed"))}get highlightOptionsMap(){return this._highlightOptionsMap}getHighlightStateFlag(e){return this._getStateFlag(e,8)}geHighlightOptionsPrev(e){const t=this._highlightOptionsMapPrev.get(e)??null;return this._highlightOptionsMapPrev.delete(e),t}getHighlightName(e){const t=this.highlightOptionsMap.get(e)??null;return t?this._highlightOptionsMapPrev.set(e,t):this._highlightOptionsMapPrev.delete(e),t}getState(e){return this._view.state.get(e)}getLodLevel(e){return this._view.lodLevel.get(e)}countFlags(e){let t=0;for(let r=0;r<this._capacity;++r)this.getState(r)&e&&++t;return t}_setStateFlags(e,t){const r=this._view.state;t=r.get(e)|t,r.set(e,t)}_clearStateFlags(e,t){const r=this._view.state;t=r.get(e)&~t,r.set(e,t)}_setStateFlag(e,t,r){r?this._setStateFlags(e,t):this._clearStateFlags(e,t)}_getStateFlag(e,t){return!!(this._view.state.get(e)&t)}_grow(){this._capacity=Math.max(de,Math.floor(this._capacity*W.Ji)),this._buffer=this._layout.createBuffer(this._capacity).copyFrom(this._buffer),this._view=new re(this._buffer)}_findSlot(){const e=this._view.state;let t=this._next;for(;1&e.get(t);)t=t+1===this._capacity?0:t+1;return this._next=t+1===this._capacity?0:t+1,t}};(0,$.Cg)([(0,Y.MZ)({constructOnly:!0})],ie.prototype,"shaderTransformation",void 0),(0,$.Cg)([(0,Y.MZ)()],ie.prototype,"_size",void 0),(0,$.Cg)([(0,Y.MZ)({readOnly:!0})],ie.prototype,"size",null),ie=(0,$.Cg)([(0,X.$)("esri.views.3d.webgl-engine.lib.lodRendering.InstanceData")],ie);const ne=(0,H.BP)().mat4f64("localTransform").mat4f64("globalTransform").vec4f64("boundingSphere").vec3f64("modelOrigin").mat3f("instanceModel").mat3f("instanceModelNormal").vec2f("modelScaleFactors");function oe(e,t){return t.instancedFeatureAttribute&&e.vec4f("instanceFeatureAttribute"),t.instancedColor&&e.vec4u8("instanceColor"),(0,G.E)()&&e.vec4u8("instanceOlidColor"),e}const ae=(0,n.vt)(),se=(0,K.vt)(),le=(0,ee.vt)(),ce=(0,ee.vt)(),de=64,ue=(0,H.BP)().vec3f("instanceModelOriginHi").vec3f("instanceModelOriginLo").mat3f("instanceModel").mat3f("instanceModelNormal");var he=r(74810),pe=r(28491),me=r(90644),fe=r(85079),ge=r(49788);class ve extends L.Zo{constructor(){super(...arguments),this.isSchematic=!1,this.usePBR=!1,this.mrrFactors=he.mb,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.doubleSided=!1,this.doubleSidedType="normal",this.cullFace=2,this.instanced=!1,this.instancedFeatureAttribute=!1,this.instancedColor=!1,this.instanceColorEncodesAlphaIgnore=!1,this.emissiveStrength=0,this.emissiveSource=1,this.emissiveBaseColor=n.uY,this.instancedDoublePrecision=!1,this.normalType=0,this.receiveShadows=!0,this.receiveAmbientOcclusion=!0,this.castShadows=!0,this.ambient=(0,n.CN)(.2,.2,.2),this.diffuse=(0,n.CN)(.8,.8,.8),this.externalColor=(0,D.fA)(1,1,1,1),this.colorMixMode="multiply",this.opacity=1,this.layerOpacity=1,this.origin=(0,n.vt)(),this.hasSlicePlane=!1,this.offsetTransparentBackfaces=!1,this.vvSize=null,this.vvColor=null,this.vvOpacity=null,this.vvSymbolAnchor=null,this.vvSymbolRotationMatrix=null,this.modelTransformation=null,this.drivenOpacity=!1,this.writeDepth=!0,this.customDepthTest=0,this.textureAlphaMode=0,this.textureAlphaCutoff=ge.Q,this.textureAlphaPremultiplied=!1,this.renderOccluded=1,this.isDecoration=!1}get hasVVSize(){return!!this.vvSize}get hasVVColor(){return!!this.vvColor}get hasVVOpacity(){return!!this.vvOpacity}}L.gy;class _e extends B.w{constructor(e,t,i=new z.$(pe.D,()=>r.e(5141).then(r.bind(r,5141)))){const n=[(0,N.U)(ye(t))];t.instanced&&t.instancedDoublePrecision&&n.push((0,N.U)(function(e){return oe(ue.clone(),e)}(t))),super(e,t,i,(0,fe._u)(n))}_makePipeline(e,t){const{oitPass:r,output:i,transparent:n,cullFace:a,customDepthTest:s,hasOccludees:c}=e;return(0,me.Ey)({blending:(0,o.RN)(i)&&n?(0,l.Yf)(r):null,culling:we(e)?(0,me.Xt)(a):null,depthTest:{func:(0,l.K_)(r,xe(s))},depthWrite:(0,l.z5)(e),drawBuffers:(0,B.L)(i,(0,l.m6)(r,i)),colorWrite:me.kn,stencilWrite:c?U:null,stencilTest:c?t?j:V:null,polygonOffset:(0,l.mE)(e)})}initializePipeline(e){return this._occludeePipelineState=this._makePipeline(e,!0),this._makePipeline(e,!1)}getPipeline(e){return e?this._occludeePipelineState:super.getPipeline()}}function xe(e){switch(e){case 1:return 515;case 0:case 3:return 513;case 2:return 516}}function we(e){return 0!==e.cullFace||!e.hasSlicePlane&&!e.transparent&&!e.doubleSidedMode}function ye(e){const t=(0,H.BP)().vec3f("position");return 1===e.normalType?t.vec2i16("normalCompressed",{glNormalized:!0}):t.vec3f("normal"),e.hasVertexTangents&&t.vec4f("tangent"),e.hasTextures&&t.vec2f16("uv0"),e.hasVertexColors&&t.vec4u8("color"),e.hasSymbolColors&&t.vec4u8("symbolColor"),!e.instanced&&(0,G.E)()&&t.vec4u8("olidColor"),t}var be=r(51976),Me=r(35256);class Te extends Me.E{constructor(e){super(),this.spherical=e,this.alphaDiscardMode=1,this.doubleSidedMode=0,this.pbrMode=0,this.cullFace=0,this.normalType=0,this.customDepthTest=0,this.emissionSource=0,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.instanced=!1,this.instancedDoublePrecision=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.hasVVSize=!1,this.hasVVColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instancedFeatureAttribute=!1,this.instancedColor=!1,this.writeDepth=!0,this.transparent=!1,this.enableOffset=!0,this.terrainDepthTest=!1,this.cullAboveTerrain=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1,this.occlusionPass=!1,this.useCustomDTRExponentForWater=!1,this.useFillLights=!0,this.draped=!1}get textureCoordinateType(){return this.hasTextures?1:0}get hasTextures(){return this.hasColorTexture||this.hasNormalTexture||this.hasMetallicRoughnessTexture||3===this.emissionSource||this.hasOcclusionTexture}get hasVVInstancing(){return this.instanced}get discardInvisibleFragments(){return this.transparent}}(0,$.Cg)([(0,be.W)({count:4})],Te.prototype,"alphaDiscardMode",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"doubleSidedMode",void 0),(0,$.Cg)([(0,be.W)({count:7})],Te.prototype,"pbrMode",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"cullFace",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"normalType",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"customDepthTest",void 0),(0,$.Cg)([(0,be.W)({count:8})],Te.prototype,"emissionSource",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVertexColors",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasSymbolColors",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVerticalOffset",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasColorTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasMetallicRoughnessTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOcclusionTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasNormalTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasScreenSizePerspective",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVertexTangents",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOccludees",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instanced",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedDoublePrecision",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasModelTransformation",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"offsetBackfaces",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVVSize",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVVColor",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"receiveShadows",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"receiveAmbientOcclusion",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"textureAlphaPremultiplied",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedFeatureAttribute",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedColor",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"writeDepth",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"transparent",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"enableOffset",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"terrainDepthTest",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"cullAboveTerrain",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"snowCover",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasColorTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasEmissionTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasNormalTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOcclusionTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasMetallicRoughnessTextureTransform",void 0);var Ce=r(57323);class Se extends _e{constructor(e,t){super(e,t,new z.$(Ce.R,()=>r.e(2314).then(r.bind(r,39933))))}}class Ee extends s.i{constructor(e,t){super(e,Re),this.materialType="default",this.supportsEdges=!0,this.intersectDraped=void 0,this.produces=new Map([[2,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&!this.transparent],[4,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&this.transparent&&this.parameters.writeDepth],[8,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&this.transparent&&!this.parameters.writeDepth]]),this._layout=ye(this.parameters),this._configuration=new Te(t.spherical)}isVisibleForOutput(e){return 4!==e&&6!==e&&5!==e||this.parameters.castShadows}get visible(){const{layerOpacity:e,colorMixMode:t,opacity:r,externalColor:i}=this.parameters;return e*("replace"===t?1:r)*("ignore"===t||isNaN(i[3])?1:i[3])>=ge.Q}get _hasEmissiveBase(){return!!this.parameters.emissiveTextureId||!(0,i.q)(this.parameters.emissiveBaseColor,n.uY)}get hasEmissions(){return this.parameters.emissiveStrength>0&&(0===this.parameters.emissiveSource&&this._hasEmissiveBase||1===this.parameters.emissiveSource)}getConfiguration(e,t){const{parameters:r,_configuration:i}=this,{treeRendering:n,doubleSided:a,doubleSidedType:s}=r;return super.getConfiguration(e,t,this._configuration),i.hasNormalTexture=r.hasNormalTexture,i.hasColorTexture=r.hasColorTexture,i.hasMetallicRoughnessTexture=r.hasMetallicRoughnessTexture,i.hasOcclusionTexture=r.hasOcclusionTexture,i.hasVertexTangents=!n&&r.hasVertexTangents,i.instanced=r.instanced,i.instancedDoublePrecision=r.instancedDoublePrecision,i.hasVVColor=!!r.vvColor,i.hasVVSize=!!r.vvSize,i.hasVerticalOffset=null!=r.verticalOffset,i.hasScreenSizePerspective=null!=r.screenSizePerspective,i.hasSlicePlane=r.hasSlicePlane,i.alphaDiscardMode=r.textureAlphaMode,i.normalType=n?0:r.normalType,i.transparent=this.transparent,i.writeDepth=r.writeDepth,i.customDepthTest=r.customDepthTest??0,i.hasOccludees=t.hasOccludees,i.cullFace=r.hasSlicePlane?0:r.cullFace,i.cullAboveTerrain=t.cullAboveTerrain,i.hasModelTransformation=!n&&null!=r.modelTransformation,i.hasVertexColors=r.hasVertexColors,i.hasSymbolColors=r.hasSymbolColors,i.doubleSidedMode=n?2:a&&"normal"===s?1:a&&"winding-order"===s?2:0,i.instancedFeatureAttribute=r.instancedFeatureAttribute,i.instancedColor=r.instancedColor,(0,o.RN)(e)?(i.terrainDepthTest=t.terrainDepthTest,i.receiveShadows=r.receiveShadows,i.receiveAmbientOcclusion=r.receiveAmbientOcclusion&&null!=t.ssao):(i.terrainDepthTest=!1,i.receiveShadows=i.receiveAmbientOcclusion=!1),i.textureAlphaPremultiplied=!!r.textureAlphaPremultiplied,i.pbrMode=r.usePBR?r.isSchematic?2:1:0,i.emissionSource=r.emissionSource,i.offsetBackfaces=!(!this.transparent||!r.offsetTransparentBackfaces),i.oitPass=t.oitPass,i.enableOffset=t.camera.relativeElevation<l.xt,i.snowCover=t.snowCover>0,i.hasColorTextureTransform=!!r.colorTextureTransformMatrix,i.hasNormalTextureTransform=!!r.normalTextureTransformMatrix,i.hasEmissionTextureTransform=!!r.emissiveTextureTransformMatrix,i.hasOcclusionTextureTransform=!!r.occlusionTextureTransformMatrix,i.hasMetallicRoughnessTextureTransform=!!r.metallicRoughnessTextureTransformMatrix,i}intersect(e,t,r,n,o,a){if(null!=this.parameters.verticalOffset){const e=r.camera;(0,i.j)(He,t[12],t[13],t[14]);let a=null;switch(r.viewingMode){case 1:a=(0,i.n)(De,He);break;case 2:a=(0,i.d)(De,Pe)}let s=0;const l=(0,i.e)(Le,He,e.eye),c=(0,i.b)(l),d=(0,i.h)(l,l,1/c);let u=null;this.parameters.screenSizePerspective&&(u=(0,i.f)(a,d)),s+=(0,P.kE)(e,c,this.parameters.verticalOffset,u??0,this.parameters.screenSizePerspective,null),(0,i.h)(a,a,s),(0,i.o)(Ne,a,r.transform.inverseRotation),n=(0,i.e)(Fe,n,Ne),o=(0,i.e)(Oe,o,Ne)}p(e,r,n,o,(0,A.ou)(r.verticalOffset),a)}createGLMaterial(e){return new Ae(e)}createBufferWriter(){return new F(this._layout)}get transparent(){return Ie(this.parameters)}}class Ae extends a.m8{constructor(e){super({...e,...e.material.parameters})}beginSlot(e){this._material.setParameters({receiveShadows:e.shadowMap.enabled});const t=this._material.parameters;this.updateTexture(t.textureId);const r=e.camera.viewInverseTransposeMatrix;return(0,i.j)(t.origin,r[3],r[7],r[11]),this._material.setParameters(this.textureBindParameters),this.getTechnique(t.treeRendering?Se:_e,e)}}class Re extends ve{constructor(){super(...arguments),this.treeRendering=!1,this.hasVertexTangents=!1}get hasNormalTexture(){return!this.treeRendering&&!!this.normalTextureId}get hasColorTexture(){return!!this.textureId}get hasMetallicRoughnessTexture(){return!this.treeRendering&&!!this.metallicRoughnessTextureId}get hasOcclusionTexture(){return!this.treeRendering&&!!this.occlusionTextureId}get emissionSource(){return this.treeRendering?0:null!=this.emissiveTextureId&&0===this.emissiveSource?3:this.usePBR?0===this.emissiveSource?2:1:0}get hasTextures(){return this.hasColorTexture||this.hasNormalTexture||this.hasMetallicRoughnessTexture||3===this.emissionSource||this.hasOcclusionTexture}}function Ie(e){const{drivenOpacity:t,opacity:r,externalColor:i,layerOpacity:n,texture:o,textureId:a,textureAlphaMode:s,colorMixMode:l}=e,c=i[3];return t||r<1&&"replace"!==l||c<1&&"ignore"!==l||n<1||(null!=o||null!=a)&&1!==s&&2!==s&&"replace"!==l}const Fe=(0,n.vt)(),Oe=(0,n.vt)(),Pe=(0,n.fA)(0,0,1),De=(0,n.vt)(),Ne=(0,n.vt)(),He=(0,n.vt)(),Le=(0,n.vt)()},4431:(e,t,r)=>{r.d(t,{U:()=>o}),r(44208);var i=r(63907),n=r(74038);function o(e,t=0){const r=e.stride;return Array.from(e.fields.keys()).map(o=>{const a=e.fields.get(o),s=a.constructor.ElementCount,l=function(e){switch(e){case"u8":return i.pe.UNSIGNED_BYTE;case"u16":return i.pe.UNSIGNED_SHORT;case"u32":return i.pe.UNSIGNED_INT;case"i8":return i.pe.BYTE;case"i16":return i.pe.SHORT;case"i32":return i.pe.INT;case"f16":return i.pe.HALF_FLOAT;case"f32":return i.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(a.constructor.ElementType),c=a.offset,d=a.optional?.glNormalized??!1;return new n._(o,s,l,c,r,d,t)})}},6867:(e,t,r)=>{r.d(t,{i:()=>d});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(87317),l=r(91829),c=r(71351);class d{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,o.h)(h,this.ray.direction,this.distance),(0,o.b)(h))}withinDistance(e){return!!u(this)&&this.distanceInRenderSpace<=e}getIntersectionPoint(e){return!!u(this)&&((0,o.h)(h,this.ray.direction,this.distance),(0,o.g)(e,this.ray.origin,h),!0)}getTransformedNormal(e){return(0,o.d)(p,this.normal),p[3]=0,(0,s.t)(p,p,this.transformation),(0,o.d)(e,p),(0,o.n)(e,e)}constructor(e){this.intersector=4,this.normal=(0,a.vt)(),this.transformation=(0,n.vt)(),this._ray=(0,c.vt)(),this.init(e)}init(e){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4,(0,c.C)(e,this._ray)}set(e,t,r,s,l,c,d){this.intersector=e,this.distance=r,(0,o.d)(this.normal,s??a.Cb),(0,i.C)(this.transformation,l??n.zK),this.target=t,this.drapedLayerOrder=c,this.renderPriority=d}copy(e){(0,c.C)(e.ray,this._ray),this.intersector=e.intersector,this.distance=e.distance,this.target=e.target,this.drapedLayerOrder=e.drapedLayerOrder,this.renderPriority=e.renderPriority,(0,o.d)(this.normal,e.normal),(0,i.C)(this.transformation,e.transformation)}}function u(e){return null!=e?.distance}const h=(0,a.vt)(),p=(0,l.vt)()},10906:(e,t,r)=>{r.d(t,{b:()=>o});var i=r(33094),n=r(31821);function o(e,t){t.snowCover&&(e.uniforms.add(new i.U("snowCover",e=>e.snowCover)).code.add(n.H`float getSnow(vec3 normal, vec3 groundNormal) {
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2883],{1843:(e,t,r)=>{r.d(t,{BP:()=>u,l5:()=>h});var i=r(20498),n=r(13030),o=r(90239),a=r(4431),s=r(620),l=r(85079);class c{constructor(e,t){this.layout=e,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(const t of e.fields.keys()){const r=e.fields.get(t);this[t]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(e,t){const r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new c(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,i=e.count){const n=this.stride;if(n%4==0){const o=new Uint32Array(e.buffer,t*n,i*n/4);new Uint32Array(this.buffer,r*n,i*n/4).set(o)}else{const o=new Uint8Array(e.buffer,t*n,i*n);new Uint8Array(this.buffer,r*n,i*n).set(o)}return this}get usedMemory(){return this.byteLength}dispose(){}}class d{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:f(e[1].constructor)})))}freeze(){return this}get locations(){return(0,l.Xk)((0,a.U)(this))}vec2f16(e,t){return this._appendField(e,i.SX?n.ZD:n.gH,t),this}vec2f(e,t){return this._appendField(e,n.gH,t),this}vec2f64(e,t){return this._appendField(e,n.si,t),this}vec3f16(e,t){return this._appendField(e,i.SX?n.EC:n.xs,t),this}vec3f(e,t){return this._appendField(e,n.xs,t),this}vec3f64(e,t){return this._appendField(e,n.Xm,t),this}vec4f16(e,t){return this._appendField(e,i.SX?n.jz:n.Eq,t),this}vec4f(e,t){return this._appendField(e,n.Eq,t),this}vec4f64(e,t){return this._appendField(e,n.Aj,t),this}mat3f(e,t){return this._appendField(e,n.jZ,t),this}mat3f64(e,t){return this._appendField(e,n.j0,t),this}mat4f(e,t){return this._appendField(e,n.Sx,t),this}mat4f64(e,t){return this._appendField(e,n.E$,t),this}vec4u8(e,t){return this._appendField(e,n.XP,t),this}f16(e,t){return this._appendField(e,i.SX?n.XW:n.Y$,t),this}f32(e,t){return this._appendField(e,n.Y$,t),this}f64(e,t){return this._appendField(e,n.qB,t),this}u8(e,t){return this._appendField(e,n.SL,t),this}u16(e,t){return this._appendField(e,n.h,t),this}i8(e,t){return this._appendField(e,n.bf,t),this}vec2i8(e,t){return this._appendField(e,n.D6,t),this}vec2i16(e,t){return this._appendField(e,n.mJ,t),this}vec2u8(e,t){return this._appendField(e,n.LC,t),this}vec2u16(e,t){return this._appendField(e,n.Yi,t),this}vec4u16(e,t){return this._appendField(e,n.Uz,t),this}vec4i16(e,t){return this._appendField(e,n.E7,t),this}u32(e,t){return this._appendField(e,n.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,s.vA)(!1,`${e} already added to vertex buffer layout`);const i=t.ElementCount*(0,o.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:i,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{const i=(0,o.GJ)(r.constructor.ElementType);e=Math.floor((e+i-1)/i)*i,r.offset=e,e+=r.size,t=Math.max(t,i)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new c(this,e)}createView(e){return new c(this,e)}clone(){const e=new d;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e.BufferType=this.BufferType,e}get stride(){return this._stride}get fields(){return this._fields}}function u(){return new d}class h{constructor(e){this.fields=new Array,e.fields.forEach((e,t)=>{const r={...e,constructor:m(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const p=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function m(e){return`${e.ElementType}_${e.ElementCount}`}function f(e){return g.get(e)}const g=new Map;p.forEach(e=>g.set(m(e),e))},2495:(e,t,r)=>{r.d(t,{$U:()=>Ee,fs:()=>Re,ty:()=>Ie});var i=r(38954),n=r(51850),o=r(49255),a=r(25634),s=r(11725),l=r(33524),c=r(70328),d=r(620);class u{constructor(e=0,t=!1,r=!0){this.tolerance=e,this.isVerticalRay=t,this.normalRequired=r}}const h=(0,c.vt)(),p=(0,n.vt)();function m(e,t,r,n,o,a,s){if(null==e)return;const l=function(e,t){return(0,i.j)(t,1/e[0],1/e[1],1/e[2])}(r,p);if((0,c.Ne)(h,e.bbMin),(0,c.vI)(h,e.bbMax),null!=o&&o.applyToAabb(h),function(e,t,r,i){return function(e,t,r,i){const n=(e[0]-i-t[0])*r[0],o=(e[3]+i-t[0])*r[0];let a=Math.min(n,o),s=Math.max(n,o);const l=(e[1]-i-t[1])*r[1],c=(e[4]+i-t[1])*r[1];if(s=Math.min(s,Math.max(l,c)),s<0)return!1;if(a=Math.max(a,Math.min(l,c)),a>s)return!1;const d=(e[2]-i-t[2])*r[2],u=(e[5]+i-t[2])*r[2];return s=Math.min(s,Math.max(d,u)),!(s<0)&&(a=Math.max(a,Math.min(d,u)),!(a>s)&&a<1/0)}(e,t,r,i)}(h,t,l,n)){const{primitiveIndices:i,position:l}=e,c=i?i.length:l.indices.length/3;if(c>T){const i=e.getChildren();if(void 0!==i){for(const e of i)m(e,t,r,n,o,a,s);return}}!function(e,t,r,i,n,o,a,s,l,c,d){const u=e[0],h=e[1],p=e[2],m=t[0],g=t[1],v=t[2],{normalRequired:_}=c;for(let e=0;e<i;++e){const t=s[e],r=3*t,i=a*n[r];let c=o[i],x=o[i+1],y=o[i+2];const b=a*n[r+1];let M=o[b],T=o[b+1],S=o[b+2];const E=a*n[r+2];let A=o[E],R=o[E+1],I=o[E+2];null!=l&&([c,x,y]=l.applyToVertex(c,x,y,e),[M,T,S]=l.applyToVertex(M,T,S,e),[A,R,I]=l.applyToVertex(A,R,I,e));const F=M-c,O=T-x,P=S-y,D=A-c,N=R-x,H=I-y,L=g*H-N*v,z=v*D-H*m,B=m*N-D*g,G=F*L+O*z+P*B;if(Math.abs(G)<=C)continue;const U=u-c,V=h-x,j=p-y,W=U*L+V*z+j*B;if(G>0){if(W<0||W>G)continue}else if(W>0||W<G)continue;const k=V*P-O*j,$=j*F-P*U,Z=U*O-F*V,q=m*k+g*$+v*Z;if(G>0){if(q<0||W+q>G)continue}else if(q>0||W+q<G)continue;const Y=(D*k+N*$+H*Z)/G;Y>=0&&d(Y,t,_?w(F,O,P,D,N,H,f):null)}}(t,r,0,c,l.indices,l.data,l.stride,i,o,a,s)}}const f=(0,n.vt)();function g(e,t,r,i,n,o,a,s){const l=e[0],c=e[1],d=e[2],u=t[0],h=t[1],p=t[2];for(let e=r;e<i;++e){const t=3*e,r=t+1,i=t+2,m=o*t,g=n[m],v=n[m+1],_=n[m+2],x=o*r,y=o*i,b=n[x]-g,M=n[x+1]-v,T=n[x+2]-_,S=n[y]-g,E=n[y+1]-v,A=n[y+2]-_,R=h*A-E*p,I=p*S-A*u,F=u*E-S*h,O=b*R+M*I+T*F;if(Math.abs(O)<=C)continue;const P=l-g,D=c-v,N=d-_,H=P*R+D*I+N*F;if(O>0){if(H<0||H>O)continue}else if(H>0||H<O)continue;const L=D*T-M*N,z=N*b-T*P,B=P*M-b*D,G=u*L+h*z+p*B;if(O>0){if(G<0||H+G>O)continue}else if(G>0||H+G<O)continue;const U=(S*L+E*z+A*B)/O;U>=0&&s(U,e,a?w(b,M,T,S,E,A,f):null)}}const v=(0,n.vt)(),_=(0,n.vt)(),x=(0,n.vt)();function w(e,t,r,n,o,a,s){return(0,i.j)(b,e,t,r),(0,i.j)(M,n,o,a),(0,i.i)(s,b,M),(0,i.n)(s,s),s}function y(e){return(0,i.a)(b,e[1],e[0]),(0,i.a)(M,e[2],e[0]),(0,i.i)(f,b,M),(0,i.n)(f,f),f}const b=(0,n.vt)(),M=(0,n.vt)(),T=1e3,C=1e-7,S=(0,n.vt)(),E=[(0,n.vt)(),(0,n.vt)(),(0,n.vt)()];var A=r(16396),R=r(13030),I=r(59907);class F{constructor(e){this.layout=e}elementCount(e){return e.get("position").indices.length}write(e,t,r,i,n,o){return(0,I.vJ)(r,i,this.layout,e,t,n,o)}intersect(e,t,r,n,o,a,s){const l=this.layout.createView(e).getField("position",R.xs);if(null==l)return;const c=(0,i.a)(O,a,o),d=l.count/3,u=n.options.normalRequired;g(o,c,0,d,l.typedBuffer,l.typedBufferStride,u,(e,t,r)=>s(e,r,t))}}const O=(0,n.vt)();var P=r(43616),D=r(91829),N=r(4431),H=r(1843),L=r(72824),z=r(97220),B=r(98958),G=r(16943);const U={mask:255},V={function:{func:519,ref:2,mask:2},operation:{fail:7680,zFail:7680,zPass:0}},j={function:{func:519,ref:2,mask:2},operation:{fail:7680,zFail:7680,zPass:7681}};var W=r(4576),k=r(44208);r(53966),r(34275),r(94656),r(63907),(0,k.A)("esri-tests-disable-gpu-memory-measurements");var $=r(31635),Z=r(69622),q=r(65529),Y=r(10107),X=r(64108),J=r(77690),K=r(29242),Q=r(58083),ee=r(9093),te=r(32728);class re{constructor(e){this.localTransform=e.localTransform,this.globalTransform=e.globalTransform,this.modelOrigin=e.modelOrigin,this.model=e.instanceModel,this.modelNormal=e.instanceModelNormal,this.modelScaleFactors=e.modelScaleFactors,this.boundingSphere=e.boundingSphere,this.featureAttribute=e.getField("instanceFeatureAttribute",R.Eq),this.color=e.getField("instanceColor",R.XP),this.olidColor=e.getField("instanceOlidColor",R.XP),this.state=e.getField("state",R.SL),this.lodLevel=e.getField("lodLevel",R.SL)}}let ie=class extends Z.A{constructor(e,t){super(e),this.events=new q.bk,this._capacity=0,this._size=0,this._next=0,this._highlightOptionsMap=new Map,this._highlightOptionsMapPrev=new Map,this._layout=function(e){return oe(ne.clone(),e).u8("state").u8("lodLevel")}(t),this._capacity=de,this._buffer=this._layout.createBuffer(this._capacity),this._view=new re(this._buffer)}get capacity(){return this._capacity}get size(){return this._size}get view(){return this._view}addInstance(){this._size+1>this._capacity&&this._grow();const e=this._findSlot();return this._view.state.set(e,1),this._size++,this.events.emit("instances-changed"),e}removeInstance(e){const t=this._view.state;(0,d.vA)(e>=0&&e<this._capacity&&!!(1&t.get(e)),"invalid instance handle"),this._getStateFlag(e,18)?this._setStateFlags(e,32):this.freeInstance(e),this.events.emit("instances-changed")}freeInstance(e){const t=this._view.state;(0,d.vA)(e>=0&&e<this._capacity&&!!(1&t.get(e)),"invalid instance handle"),t.set(e,0),this._size--}setLocalTransform(e,t,r=!0){this._view.localTransform.setMat(e,t),r&&this.updateModelTransform(e)}getLocalTransform(e,t){this._view.localTransform.getMat(e,t)}setGlobalTransform(e,t,r=!0){this._view.globalTransform.setMat(e,t),r&&this.updateModelTransform(e)}getGlobalTransform(e,t){this._view.globalTransform.getMat(e,t)}updateModelTransform(e){const t=this._view,r=ae,n=se;t.localTransform.getMat(e,le),t.globalTransform.getMat(e,ce);const o=(0,Q.lw)(ce,ce,le);(0,i.j)(r,o[12],o[13],o[14]),t.modelOrigin.setVec(e,r),(0,J.z0)(n,o),t.model.setMat(e,n);const a=(0,te.wp)(ae,o);a.sort(),t.modelScaleFactors.set(e,0,a[1]),t.modelScaleFactors.set(e,1,a[2]),(0,J.B8)(n,n),(0,J.mg)(n,n),t.modelNormal.setMat(e,n),this._setStateFlags(e,64),this.events.emit("instance-transform-changed",{index:e})}getModelTransform(e,t){const r=this._view;r.model.getMat(e,se),r.modelOrigin.getVec(e,ae),t[0]=se[0],t[1]=se[1],t[2]=se[2],t[3]=0,t[4]=se[3],t[5]=se[4],t[6]=se[5],t[7]=0,t[8]=se[6],t[9]=se[7],t[10]=se[8],t[11]=0,t[12]=ae[0],t[13]=ae[1],t[14]=ae[2],t[15]=1}applyShaderTransformation(e,t){null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t)}getCombinedModelTransform(e,t){return this.getModelTransform(e,t),null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t),t}getCombinedLocalTransform(e,t){this._view.localTransform.getMat(e,t),null!=this.shaderTransformation&&this.shaderTransformation.applyTransform(this,e,t)}getCombinedMaxScaleFactor(e){let t=this._view.modelScaleFactors.get(e,1);return null!=this.shaderTransformation&&(this.shaderTransformation.scaleFactor(ae,this,e),t*=Math.max(ae[0],ae[1],ae[2])),t}getCombinedMedianScaleFactor(e){let t=this._view.modelScaleFactors.get(e,0);return null!=this.shaderTransformation&&(this.shaderTransformation.scaleFactor(ae,this,e),t*=function(e,t,r){return Math.max(Math.min(e,t),Math.min(Math.max(e,t),r))}(ae[0],ae[1],ae[2])),t}getModel(e,t){this._view.model.getMat(e,t)}setFeatureAttribute(e,t){this._view.featureAttribute?.setVec(e,t)}getFeatureAttribute(e,t){this._view.featureAttribute?.getVec(e,t)}setColor(e,t){this._view.color?.setVec(e,t)}setObjectAndLayerIdColor(e,t){this._view.olidColor?.setVec(e,t)}setVisible(e,t){t!==this.getVisible(e)&&(this._setStateFlag(e,4,t),this.events.emit("instance-visibility-changed",{index:e}))}getVisible(e){return this._getStateFlag(e,4)}setHighlight(e,t){const{_highlightOptionsMap:r}=this,i=r.get(e);t?t!==i&&(r.set(e,t),this._setStateFlag(e,8,!0),this.events.emit("instance-highlight-changed")):i&&(r.delete(e),this._setStateFlag(e,8,!1),this.events.emit("instance-highlight-changed"))}get highlightOptionsMap(){return this._highlightOptionsMap}getHighlightStateFlag(e){return this._getStateFlag(e,8)}geHighlightOptionsPrev(e){const t=this._highlightOptionsMapPrev.get(e)??null;return this._highlightOptionsMapPrev.delete(e),t}getHighlightName(e){const t=this.highlightOptionsMap.get(e)??null;return t?this._highlightOptionsMapPrev.set(e,t):this._highlightOptionsMapPrev.delete(e),t}getState(e){return this._view.state.get(e)}getLodLevel(e){return this._view.lodLevel.get(e)}countFlags(e){let t=0;for(let r=0;r<this._capacity;++r)this.getState(r)&e&&++t;return t}_setStateFlags(e,t){const r=this._view.state;t=r.get(e)|t,r.set(e,t)}_clearStateFlags(e,t){const r=this._view.state;t=r.get(e)&~t,r.set(e,t)}_setStateFlag(e,t,r){r?this._setStateFlags(e,t):this._clearStateFlags(e,t)}_getStateFlag(e,t){return!!(this._view.state.get(e)&t)}_grow(){this._capacity=Math.max(de,Math.floor(this._capacity*W.Ji)),this._buffer=this._layout.createBuffer(this._capacity).copyFrom(this._buffer),this._view=new re(this._buffer)}_findSlot(){const e=this._view.state;let t=this._next;for(;1&e.get(t);)t=t+1===this._capacity?0:t+1;return this._next=t+1===this._capacity?0:t+1,t}};(0,$.Cg)([(0,Y.MZ)({constructOnly:!0})],ie.prototype,"shaderTransformation",void 0),(0,$.Cg)([(0,Y.MZ)()],ie.prototype,"_size",void 0),(0,$.Cg)([(0,Y.MZ)({readOnly:!0})],ie.prototype,"size",null),ie=(0,$.Cg)([(0,X.$)("esri.views.3d.webgl-engine.lib.lodRendering.InstanceData")],ie);const ne=(0,H.BP)().mat4f64("localTransform").mat4f64("globalTransform").vec4f64("boundingSphere").vec3f64("modelOrigin").mat3f("instanceModel").mat3f("instanceModelNormal").vec2f("modelScaleFactors");function oe(e,t){return t.instancedFeatureAttribute&&e.vec4f("instanceFeatureAttribute"),t.instancedColor&&e.vec4u8("instanceColor"),(0,G.E)()&&e.vec4u8("instanceOlidColor"),e}const ae=(0,n.vt)(),se=(0,K.vt)(),le=(0,ee.vt)(),ce=(0,ee.vt)(),de=64,ue=(0,H.BP)().vec3f("instanceModelOriginHi").vec3f("instanceModelOriginLo").mat3f("instanceModel").mat3f("instanceModelNormal");var he=r(74810),pe=r(28491),me=r(90644),fe=r(85079),ge=r(49788);class ve extends L.Zo{constructor(){super(...arguments),this.isSchematic=!1,this.usePBR=!1,this.mrrFactors=he.mb,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.doubleSided=!1,this.doubleSidedType="normal",this.cullFace=2,this.instanced=!1,this.instancedFeatureAttribute=!1,this.instancedColor=!1,this.instanceColorEncodesAlphaIgnore=!1,this.emissiveStrength=0,this.emissiveSource=1,this.emissiveBaseColor=n.uY,this.instancedDoublePrecision=!1,this.normalType=0,this.receiveShadows=!0,this.receiveAmbientOcclusion=!0,this.castShadows=!0,this.ambient=(0,n.CN)(.2,.2,.2),this.diffuse=(0,n.CN)(.8,.8,.8),this.externalColor=(0,D.fA)(1,1,1,1),this.colorMixMode="multiply",this.opacity=1,this.layerOpacity=1,this.origin=(0,n.vt)(),this.hasSlicePlane=!1,this.offsetTransparentBackfaces=!1,this.vvSize=null,this.vvColor=null,this.vvOpacity=null,this.vvSymbolAnchor=null,this.vvSymbolRotationMatrix=null,this.modelTransformation=null,this.drivenOpacity=!1,this.writeDepth=!0,this.customDepthTest=0,this.textureAlphaMode=0,this.textureAlphaCutoff=ge.Q,this.textureAlphaPremultiplied=!1,this.renderOccluded=1,this.isDecoration=!1}get hasVVSize(){return!!this.vvSize}get hasVVColor(){return!!this.vvColor}get hasVVOpacity(){return!!this.vvOpacity}}L.gy;class _e extends B.w{constructor(e,t,i=new z.$(pe.D,()=>r.e(5141).then(r.bind(r,5141)))){const n=[(0,N.U)(ye(t))];t.instanced&&t.instancedDoublePrecision&&n.push((0,N.U)(function(e){return oe(ue.clone(),e)}(t))),super(e,t,i,(0,fe._u)(n))}_makePipeline(e,t){const{oitPass:r,output:i,transparent:n,cullFace:a,customDepthTest:s,hasOccludees:c}=e;return(0,me.Ey)({blending:(0,o.RN)(i)&&n?(0,l.Yf)(r):null,culling:we(e)?(0,me.Xt)(a):null,depthTest:{func:(0,l.K_)(r,xe(s))},depthWrite:(0,l.z5)(e),drawBuffers:(0,B.L)(i,(0,l.m6)(r,i)),colorWrite:me.kn,stencilWrite:c?U:null,stencilTest:c?t?j:V:null,polygonOffset:(0,l.mE)(e)})}initializePipeline(e){return this._occludeePipelineState=this._makePipeline(e,!0),this._makePipeline(e,!1)}getPipeline(e){return e?this._occludeePipelineState:super.getPipeline()}}function xe(e){switch(e){case 1:return 515;case 0:case 3:return 513;case 2:return 516}}function we(e){return 0!==e.cullFace||!e.hasSlicePlane&&!e.transparent&&!e.doubleSidedMode}function ye(e){const t=(0,H.BP)().vec3f("position");return 1===e.normalType?t.vec2i16("normalCompressed",{glNormalized:!0}):t.vec3f("normal"),e.hasVertexTangents&&t.vec4f("tangent"),e.hasTextures&&t.vec2f16("uv0"),e.hasVertexColors&&t.vec4u8("color"),e.hasSymbolColors&&t.vec4u8("symbolColor"),!e.instanced&&(0,G.E)()&&t.vec4u8("olidColor"),t}var be=r(51976),Me=r(35256);class Te extends Me.E{constructor(e){super(),this.spherical=e,this.alphaDiscardMode=1,this.doubleSidedMode=0,this.pbrMode=0,this.cullFace=0,this.normalType=0,this.customDepthTest=0,this.emissionSource=0,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.instanced=!1,this.instancedDoublePrecision=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.hasVVSize=!1,this.hasVVColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instancedFeatureAttribute=!1,this.instancedColor=!1,this.writeDepth=!0,this.transparent=!1,this.enableOffset=!0,this.terrainDepthTest=!1,this.cullAboveTerrain=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1,this.occlusionPass=!1,this.useCustomDTRExponentForWater=!1,this.useFillLights=!0,this.draped=!1}get textureCoordinateType(){return this.hasTextures?1:0}get hasTextures(){return this.hasColorTexture||this.hasNormalTexture||this.hasMetallicRoughnessTexture||3===this.emissionSource||this.hasOcclusionTexture}get hasVVInstancing(){return this.instanced}get discardInvisibleFragments(){return this.transparent}}(0,$.Cg)([(0,be.W)({count:4})],Te.prototype,"alphaDiscardMode",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"doubleSidedMode",void 0),(0,$.Cg)([(0,be.W)({count:7})],Te.prototype,"pbrMode",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"cullFace",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"normalType",void 0),(0,$.Cg)([(0,be.W)({count:3})],Te.prototype,"customDepthTest",void 0),(0,$.Cg)([(0,be.W)({count:8})],Te.prototype,"emissionSource",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVertexColors",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasSymbolColors",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVerticalOffset",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasColorTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasMetallicRoughnessTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOcclusionTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasNormalTexture",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasScreenSizePerspective",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVertexTangents",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOccludees",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instanced",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedDoublePrecision",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasModelTransformation",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"offsetBackfaces",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVVSize",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasVVColor",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"receiveShadows",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"receiveAmbientOcclusion",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"textureAlphaPremultiplied",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedFeatureAttribute",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"instancedColor",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"writeDepth",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"transparent",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"enableOffset",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"terrainDepthTest",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"cullAboveTerrain",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"snowCover",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasColorTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasEmissionTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasNormalTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasOcclusionTextureTransform",void 0),(0,$.Cg)([(0,be.W)()],Te.prototype,"hasMetallicRoughnessTextureTransform",void 0);var Ce=r(57323);class Se extends _e{constructor(e,t){super(e,t,new z.$(Ce.R,()=>r.e(2314).then(r.bind(r,39933))))}}class Ee extends s.i{constructor(e,t){super(e,Re),this.materialType="default",this.supportsEdges=!0,this.intersectDraped=void 0,this.produces=new Map([[2,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&!this.transparent],[4,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&this.transparent&&this.parameters.writeDepth],[8,e=>((0,o.iq)(e)||(0,o.Bf)(e))&&this.transparent&&!this.parameters.writeDepth]]),this._layout=ye(this.parameters),this._configuration=new Te(t.spherical)}isVisibleForOutput(e){return 4!==e&&6!==e&&5!==e||this.parameters.castShadows}get visible(){const{layerOpacity:e,colorMixMode:t,opacity:r,externalColor:i}=this.parameters;return e*("replace"===t?1:r)*("ignore"===t||isNaN(i[3])?1:i[3])>=ge.Q}get _hasEmissiveBase(){return!!this.parameters.emissiveTextureId||!(0,i.q)(this.parameters.emissiveBaseColor,n.uY)}get hasEmissions(){return this.parameters.emissiveStrength>0&&(0===this.parameters.emissiveSource&&this._hasEmissiveBase||1===this.parameters.emissiveSource)}getConfiguration(e,t){const{parameters:r,_configuration:i}=this,{treeRendering:n,doubleSided:a,doubleSidedType:s}=r;return super.getConfiguration(e,t,this._configuration),i.hasNormalTexture=r.hasNormalTexture,i.hasColorTexture=r.hasColorTexture,i.hasMetallicRoughnessTexture=r.hasMetallicRoughnessTexture,i.hasOcclusionTexture=r.hasOcclusionTexture,i.hasVertexTangents=!n&&r.hasVertexTangents,i.instanced=r.instanced,i.instancedDoublePrecision=r.instancedDoublePrecision,i.hasVVColor=!!r.vvColor,i.hasVVSize=!!r.vvSize,i.hasVerticalOffset=null!=r.verticalOffset,i.hasScreenSizePerspective=null!=r.screenSizePerspective,i.hasSlicePlane=r.hasSlicePlane,i.alphaDiscardMode=r.textureAlphaMode,i.normalType=n?0:r.normalType,i.transparent=this.transparent,i.writeDepth=r.writeDepth,i.customDepthTest=r.customDepthTest??0,i.hasOccludees=t.hasOccludees,i.cullFace=r.hasSlicePlane?0:r.cullFace,i.cullAboveTerrain=t.cullAboveTerrain,i.hasModelTransformation=!n&&null!=r.modelTransformation,i.hasVertexColors=r.hasVertexColors,i.hasSymbolColors=r.hasSymbolColors,i.doubleSidedMode=n?2:a&&"normal"===s?1:a&&"winding-order"===s?2:0,i.instancedFeatureAttribute=r.instancedFeatureAttribute,i.instancedColor=r.instancedColor,(0,o.RN)(e)?(i.terrainDepthTest=t.terrainDepthTest,i.receiveShadows=r.receiveShadows,i.receiveAmbientOcclusion=r.receiveAmbientOcclusion&&null!=t.ssao):(i.terrainDepthTest=!1,i.receiveShadows=i.receiveAmbientOcclusion=!1),i.textureAlphaPremultiplied=!!r.textureAlphaPremultiplied,i.pbrMode=r.usePBR?r.isSchematic?2:1:0,i.emissionSource=r.emissionSource,i.offsetBackfaces=!(!this.transparent||!r.offsetTransparentBackfaces),i.oitPass=t.oitPass,i.enableOffset=t.camera.relativeElevation<l.xt,i.snowCover=t.snowCover>0,i.hasColorTextureTransform=!!r.colorTextureTransformMatrix,i.hasNormalTextureTransform=!!r.normalTextureTransformMatrix,i.hasEmissionTextureTransform=!!r.emissiveTextureTransformMatrix,i.hasOcclusionTextureTransform=!!r.occlusionTextureTransformMatrix,i.hasMetallicRoughnessTextureTransform=!!r.metallicRoughnessTextureTransformMatrix,i}intersect(e,t,r,n,o,a){if(null!=this.parameters.verticalOffset){const e=r.camera;(0,i.j)(He,t[12],t[13],t[14]);let a=null;switch(r.viewingMode){case 1:a=(0,i.n)(De,He);break;case 2:a=(0,i.d)(De,Pe)}let s=0;const l=(0,i.e)(Le,He,e.eye),c=(0,i.b)(l),d=(0,i.h)(l,l,1/c);let u=null;this.parameters.screenSizePerspective&&(u=(0,i.f)(a,d)),s+=(0,P.kE)(e,c,this.parameters.verticalOffset,u??0,this.parameters.screenSizePerspective,null),(0,i.h)(a,a,s),(0,i.o)(Ne,a,r.transform.inverseRotation),n=(0,i.e)(Fe,n,Ne),o=(0,i.e)(Oe,o,Ne)}!function(e,t,r,n,o,a){if(!e.visible)return;const s=(0,i.a)(S,n,r),l=(e,t,r)=>a(e,r,t),{tolerance:c}=t,h=new u(c,!1,t.options.normalRequired);if(e.boundingInfo)(0,d.vA)(0===e.type),m(e.boundingInfo,r,s,c,o,h,l);else{const t=e.positionAttribute,n=t.indices;!function(e,t,r,n,o,a,s,l,c,d){const u=t,h=E,p=Math.abs(u[0]),m=Math.abs(u[1]),f=Math.abs(u[2]),g=p>=m?p>=f?0:2:m>=f?1:2,w=g,b=u[w]<0?2:1,M=(g+b)%3,T=(g+(3-b))%3,C=u[M]/u[w],S=u[T]/u[w],A=1/u[w],R=v,I=_,F=x,{normalRequired:O}=c;for(let t=r;t<n;++t){const r=3*t,n=s*o[r];(0,i.j)(h[0],a[n+0],a[n+1],a[n+2]);const c=s*o[r+1];(0,i.j)(h[1],a[c+0],a[c+1],a[c+2]);const u=s*o[r+2];(0,i.j)(h[2],a[u+0],a[u+1],a[u+2]),l&&((0,i.d)(h[0],l.applyToVertex(h[0][0],h[0][1],h[0][2],t)),(0,i.d)(h[1],l.applyToVertex(h[1][0],h[1][1],h[1][2],t)),(0,i.d)(h[2],l.applyToVertex(h[2][0],h[2][1],h[2][2],t))),(0,i.a)(R,h[0],e),(0,i.a)(I,h[1],e),(0,i.a)(F,h[2],e);const p=R[M]-C*R[w],m=R[T]-S*R[w],f=I[M]-C*I[w],g=I[T]-S*I[w],v=F[M]-C*F[w],_=F[T]-S*F[w],x=v*g-_*f,b=p*_-m*v,E=f*m-g*p;if((x<0||b<0||E<0)&&(x>0||b>0||E>0))continue;const P=x+b+E;if(0===P)continue;const D=x*(A*R[w])+b*(A*I[w])+E*(A*F[w]);if(D*Math.sign(P)<0)continue;const N=D/P;N>=0&&d(N,t,O?y(h):null)}}(r,s,0,n.length/3,n,t.data,t.stride,o,h,l)}}(e,r,n,o,(0,A.ou)(r.verticalOffset),a)}createGLMaterial(e){return new Ae(e)}createBufferWriter(){return new F(this._layout)}get transparent(){return Ie(this.parameters)}}class Ae extends a.m8{constructor(e){super({...e,...e.material.parameters})}beginSlot(e){this._material.setParameters({receiveShadows:e.shadowMap.enabled});const t=this._material.parameters;this.updateTexture(t.textureId);const r=e.camera.viewInverseTransposeMatrix;return(0,i.j)(t.origin,r[3],r[7],r[11]),this._material.setParameters(this.textureBindParameters),this.getTechnique(t.treeRendering?Se:_e,e)}}class Re extends ve{constructor(){super(...arguments),this.treeRendering=!1,this.hasVertexTangents=!1}get hasNormalTexture(){return!this.treeRendering&&!!this.normalTextureId}get hasColorTexture(){return!!this.textureId}get hasMetallicRoughnessTexture(){return!this.treeRendering&&!!this.metallicRoughnessTextureId}get hasOcclusionTexture(){return!this.treeRendering&&!!this.occlusionTextureId}get emissionSource(){return this.treeRendering?0:null!=this.emissiveTextureId&&0===this.emissiveSource?3:this.usePBR?0===this.emissiveSource?2:1:0}get hasTextures(){return this.hasColorTexture||this.hasNormalTexture||this.hasMetallicRoughnessTexture||3===this.emissionSource||this.hasOcclusionTexture}}function Ie(e){const{drivenOpacity:t,opacity:r,externalColor:i,layerOpacity:n,texture:o,textureId:a,textureAlphaMode:s,colorMixMode:l}=e,c=i[3];return t||r<1&&"replace"!==l||c<1&&"ignore"!==l||n<1||(null!=o||null!=a)&&1!==s&&2!==s&&"replace"!==l}const Fe=(0,n.vt)(),Oe=(0,n.vt)(),Pe=(0,n.fA)(0,0,1),De=(0,n.vt)(),Ne=(0,n.vt)(),He=(0,n.vt)(),Le=(0,n.vt)()},4431:(e,t,r)=>{r.d(t,{U:()=>o}),r(44208);var i=r(63907),n=r(74038);function o(e,t=0){const r=e.stride;return Array.from(e.fields.keys()).map(o=>{const a=e.fields.get(o),s=a.constructor.ElementCount,l=function(e){switch(e){case"u8":return i.pe.UNSIGNED_BYTE;case"u16":return i.pe.UNSIGNED_SHORT;case"u32":return i.pe.UNSIGNED_INT;case"i8":return i.pe.BYTE;case"i16":return i.pe.SHORT;case"i32":return i.pe.INT;case"f16":return i.pe.HALF_FLOAT;case"f32":return i.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(a.constructor.ElementType),c=a.offset,d=a.optional?.glNormalized??!1;return new n._(o,s,l,c,r,d,t)})}},6867:(e,t,r)=>{r.d(t,{i:()=>d});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(87317),l=r(91829),c=r(71351);class d{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,o.h)(h,this.ray.direction,this.distance),(0,o.b)(h))}withinDistance(e){return!!u(this)&&this.distanceInRenderSpace<=e}getIntersectionPoint(e){return!!u(this)&&((0,o.h)(h,this.ray.direction,this.distance),(0,o.g)(e,this.ray.origin,h),!0)}getTransformedNormal(e){return(0,o.d)(p,this.normal),p[3]=0,(0,s.t)(p,p,this.transformation),(0,o.d)(e,p),(0,o.n)(e,e)}constructor(e){this.intersector=4,this.normal=(0,a.vt)(),this.transformation=(0,n.vt)(),this._ray=(0,c.vt)(),this.init(e)}init(e){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4,(0,c.C)(e,this._ray)}set(e,t,r,s,l,c,d){this.intersector=e,this.distance=r,(0,o.d)(this.normal,s??a.Cb),(0,i.C)(this.transformation,l??n.zK),this.target=t,this.drapedLayerOrder=c,this.renderPriority=d}copy(e){(0,c.C)(e.ray,this._ray),this.intersector=e.intersector,this.distance=e.distance,this.target=e.target,this.drapedLayerOrder=e.drapedLayerOrder,this.renderPriority=e.renderPriority,(0,o.d)(this.normal,e.normal),(0,i.C)(this.transformation,e.transformation)}}function u(e){return null!=e?.distance}const h=(0,a.vt)(),p=(0,l.vt)()},10906:(e,t,r)=>{r.d(t,{b:()=>o});var i=r(33094),n=r(31821);function o(e,t){t.snowCover&&(e.uniforms.add(new i.U("snowCover",e=>e.snowCover)).code.add(n.H`float getSnow(vec3 normal, vec3 groundNormal) {
2
2
  return smoothstep(0.5, 0.55, dot(normal, groundNormal)) * snowCover;
3
3
  }
4
4
  float getRealisticTreeSnow(vec3 faceNormal, vec3 shadingNormal, vec3 groundNormal) {
@@ -8,7 +8,7 @@ smoothstep(0.0, 0.1, dot(shadingNormal, groundNormal)));
8
8
  return snow * snowCover;
9
9
  }`),e.code.add(n.H`vec3 applySnowToMRR(vec3 mrr, float snow) {
10
10
  return mix(mrr, vec3(0.0, 1.0, 0.04), snow);
11
- }`))}},11725:(e,t,r)=>{r.d(t,{i:()=>s});var i=r(24326),n=r(35256),o=r(43616),a=r(65786);class s{constructor(e,t){this.id=(0,i.c)(),this.supportsEdges=!1,this._renderPriority=0,this._parameters=new t,(0,o.MB)(this._parameters,e),this.validateParameters(this._parameters)}get parameters(){return this._parameters}update(e){return!1}setParameters(e,t=!0){(0,o.MB)(this._parameters,e)&&(this.validateParameters(this._parameters),t&&this._parametersChanged())}validateParameters(e){}shouldRender(e){return this.visible&&this.isVisibleForOutput(e.output)&&(!this.parameters.isDecoration||e.bind.decorations)&&0!==(this.parameters.renderOccluded&e.renderOccludedMask)}isVisibleForOutput(e){return!0}get renderPriority(){return this._renderPriority}set renderPriority(e){e!==this._renderPriority&&(this._renderPriority=e,this._parametersChanged())}_parametersChanged(){this.repository?.materialChanged(this)}get renderOccludedFlags(){return this.visible?this.parameters.renderOccluded:0}get hasEmissions(){return!1}getConfiguration(e,t,r=new n.E){return r.output=e,r.hasHighlightMixTexture=9===e&&null!=t.highlightMixTexture,r}}a.Y},11868:(e,t,r)=>{r.d(t,{Wz:()=>o,oe:()=>n});var i=r(34275);function n(e,t=!1){return e<=i.y9?t?new Array(e).fill(0):new Array(e):new Float32Array(e)}function o(e){return(Array.isArray(e)?e.length:e.byteLength/8)<=i.y9?Array.from(e):new Float32Array(e)}},11964:(e,t,r)=>{r.d(t,{Cr:()=>d,H6:()=>p,LV:()=>c,_I:()=>h,kb:()=>u,vt:()=>l});var i=r(34727),n=r(4341),o=r(38954),a=r(51850),s=r(32114);function l(e){return e?{origin:(0,a.o8)(e.origin),vector:(0,a.o8)(e.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function c(e,t){const r=m.get();return r.origin=e,r.vector=t,r}function d(e,t,r=l()){return(0,o.d)(r.origin,e),(0,o.e)(r.vector,t,e),r}function u(e,t){const r=(0,o.e)(s.rq.get(),t,e.origin),n=(0,o.f)(e.vector,r),a=(0,o.f)(e.vector,e.vector),l=(0,i.qE)(n/a,0,1),c=(0,o.e)(s.rq.get(),(0,o.h)(s.rq.get(),e.vector,l),r);return(0,o.f)(c,c)}function h(e,t,r){return p(e,t,0,1,r)}function p(e,t,r,n,a){const{vector:l,origin:c}=e,d=(0,o.e)(s.rq.get(),t,c),u=(0,o.f)(l,d)/(0,o.m)(l);return(0,o.h)(a,l,(0,i.qE)(u,r,n)),(0,o.g)(a,a,e.origin)}(0,a.vt)(),(0,a.vt)();const m=new n.I(()=>l())},12791:(e,t,r)=>{r.d(t,{x:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",0,(r,i)=>r.bindTexture(e,t(i)))}}},14113:(e,t,r)=>{r.d(t,{N5:()=>s});var i=r(49186),n=(r(44208),r(53966));const o=()=>n.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class a{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class s extends a{constructor(){super(...arguments),this.vertex=new u,this.fragment=new u,this.attributes=new h,this.varyings=new p,this.extensions=new m,this.outputs=new f}get fragmentUniforms(){return this.fragment.uniforms.entries}get attributeNames(){return this.attributes.names}get builder(){return this}generate(e,t=!1){const r=this.extensions.generateSource(e),i=this.attributes.generateSource(e),n=this.varyings.generateSource(e),o="vertex"===e?this.vertex:this.fragment,a=o.uniforms.generateSource(),s=o.code.generateSource(),l=o.main.generateSource(t),c="vertex"===e?_:v,d=o.constants.generateSource(),u=this.outputs.generateSource(e);return`#version 300 es\n${r.join("\n")}\n${c}\n${d.join("\n")}\n${a.join("\n")}\n${i.join("\n")}\n${n.join("\n")}\n${u.join("\n")}\n${s.join("\n")}\n${l.join("\n")}`}generateBind(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[0];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[0];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return t=>{for(let n=0;n<i;++n)r[n](e,t)}}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[1];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[1];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return(t,n)=>{for(let o=0;o<i;++o)r[o](e,t,n)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[2];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[2];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return(t,n,o)=>{for(let a=0;a<i;++a)r[a](e,o,t,n)}}}class l{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new i.A("shaderbuilder:duplicate-uniform",`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else o().error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map(({name:e,arraySize:t,type:r})=>null!=t?`uniform ${r} ${e}[${t}];`:`uniform ${r} ${e};`)}get entries(){return Array.from(this._entries.values())}}class c{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(e){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];if(e)throw new i.A("shaderbuilder:missing-main","Shader does not contain main function body.");return[]}}class d{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class u extends a{constructor(){super(...arguments),this.uniforms=new l(this),this.main=new c(this),this.code=new d(this),this.constants=new g(this)}get builder(){return this}}class h{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map(e=>`in ${e[1]} ${e[0]};`)}get names(){return this._entries.map(([e])=>e)}}class p{constructor(){this._entries=new Map}add(e,t,r){this._entries.has(e)?o().warn(`Ignoring duplicate varying ${t} ${e}`):this._entries.set(e,{type:t,invariant:r?.invariant??!1})}generateSource(e){const t=new Array;return this._entries.forEach((r,i)=>t.push((r.invariant&&"vertex"===e?"invariant ":"")+("int"===r.type?"flat ":"")+("vertex"===e?"out":"in")+` ${r.type} ${i};`)),t}}class m{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?m.ALLOWLIST_VERTEX:m.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter(e=>t.includes(e)).map(e=>`#extension ${e} : enable`)}static{this.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"]}static{this.ALLOWLIST_VERTEX=[]}}class f{constructor(){this._entries=new Map}add(e,t,r=0){const i=this._entries.get(r);i?.name!==e||i?.type!==t?this._entries.set(r,{name:e,type:t}):o().warn(`Fragment shader output location ${r} occupied`)}static{this.DEFAULT_TYPE="vec4"}static{this.DEFAULT_NAME="fragColor"}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:f.DEFAULT_NAME,type:f.DEFAULT_TYPE});const t=new Array;return this._entries.forEach((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`)),t}}class g{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let i="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":i=g._numberToFloatStr(r);break;case"int":i=g._numberToIntStr(r);break;case"bool":i=r.toString();break;case"vec2":i=`vec2(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])})`;break;case"vec3":i=`vec3(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])})`;break;case"vec4":i=`vec4(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])}, ${g._numberToFloatStr(r[3])})`;break;case"ivec2":i=`ivec2(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])})`;break;case"ivec3":i=`ivec3(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])})`;break;case"ivec4":i=`ivec4(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])}, ${g._numberToIntStr(r[3])})`;break;case"uvec2":i=`uvec2(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])})`;break;case"uvec3":i=`uvec3(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])})`;break;case"uvec4":i=`uvec4(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])}, ${g._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":i=`${t}(${Array.prototype.map.call(r,e=>g._numberToFloatStr(e)).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${i};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const v="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n precision highp usampler2D;\n precision highp sampler2DArray;\n precision highp sampler2DShadow;\n#else\n precision mediump float;\n precision mediump int;\n precision mediump sampler2D;\n precision mediump usampler2D;\n precision mediump sampler2DArray;\n precision mediump sampler2DShadow;\n#endif",_="precision highp float;\n precision highp sampler2D;\n precision highp usampler2D;\n precision highp sampler2DArray;\n precision highp sampler2DShadow;\n\n\n invariant gl_Position;\n "},14314:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",0,(i,n)=>i.setUniform4fv(e,t(n),r))}}},15581:(e,t,r)=>{r.d(t,{S:()=>x,b:()=>g,g:()=>v});var i=r(37585),n=r(48163),o=r(82048),a=r(52540),s=r(34845),l=r(77108),c=r(47286),d=r(33094),u=r(20304),h=r(31821),p=r(63761),m=r(14113);const f=16;function g(){const e=new m.N5,t=e.fragment;return e.include(o.c),e.include(s.Ir),t.include(a.E),t.uniforms.add(new d.U("radius",e=>v(e.camera))).code.add(h.H`vec3 sphere[16] = vec3[16](
11
+ }`))}},11725:(e,t,r)=>{r.d(t,{i:()=>s});var i=r(24326),n=r(35256),o=r(43616),a=r(65786);class s{constructor(e,t){this.id=(0,i.c)(),this.supportsEdges=!1,this._renderPriority=0,this._parameters=new t,(0,o.MB)(this._parameters,e),this.validateParameters(this._parameters)}get parameters(){return this._parameters}update(e){return!1}setParameters(e,t=!0){(0,o.MB)(this._parameters,e)&&(this.validateParameters(this._parameters),t&&this._parametersChanged())}validateParameters(e){}shouldRender(e){return this.visible&&this.isVisibleForOutput(e.output)&&(!this.parameters.isDecoration||e.bind.decorations)&&0!==(this.parameters.renderOccluded&e.renderOccludedMask)}isVisibleForOutput(e){return!0}get renderPriority(){return this._renderPriority}set renderPriority(e){e!==this._renderPriority&&(this._renderPriority=e,this._parametersChanged())}_parametersChanged(){this.repository?.materialChanged(this)}get renderOccludedFlags(){return this.visible?this.parameters.renderOccluded:0}get hasEmissions(){return!1}getConfiguration(e,t,r=new n.E){return r.output=e,r.hasHighlightMixTexture=9===e&&null!=t.highlightMixTexture,r}}a.Y},11868:(e,t,r)=>{r.d(t,{Wz:()=>o,oe:()=>n});var i=r(34275);function n(e,t=!1){return e<=i.y9?t?new Array(e).fill(0):new Array(e):new Float32Array(e)}function o(e){return(Array.isArray(e)?e.length:e.byteLength/8)<=i.y9?Array.from(e):new Float32Array(e)}},11964:(e,t,r)=>{r.d(t,{Cr:()=>d,H6:()=>p,LV:()=>c,_I:()=>h,kb:()=>u,vt:()=>l});var i=r(34727),n=r(4341),o=r(38954),a=r(51850),s=r(32114);function l(e){return e?{origin:(0,a.o8)(e.origin),vector:(0,a.o8)(e.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function c(e,t){const r=m.get();return r.origin=e,r.vector=t,r}function d(e,t,r=l()){return(0,o.d)(r.origin,e),(0,o.e)(r.vector,t,e),r}function u(e,t){const r=(0,o.e)(s.rq.get(),t,e.origin),n=(0,o.f)(e.vector,r),a=(0,o.f)(e.vector,e.vector),l=(0,i.qE)(n/a,0,1),c=(0,o.e)(s.rq.get(),(0,o.h)(s.rq.get(),e.vector,l),r);return(0,o.f)(c,c)}function h(e,t,r){return p(e,t,0,1,r)}function p(e,t,r,n,a){const{vector:l,origin:c}=e,d=(0,o.e)(s.rq.get(),t,c),u=(0,o.f)(l,d)/(0,o.m)(l);return(0,o.h)(a,l,(0,i.qE)(u,r,n)),(0,o.g)(a,a,e.origin)}(0,a.vt)(),(0,a.vt)();const m=new n.I(()=>l())},12791:(e,t,r)=>{r.d(t,{x:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",0,(r,i)=>r.bindTexture(e,t(i)))}}},14113:(e,t,r)=>{r.d(t,{N5:()=>s});var i=r(49186),n=(r(44208),r(53966));const o=()=>n.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class a{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class s extends a{constructor(){super(...arguments),this.vertex=new u,this.fragment=new u,this.attributes=new h,this.varyings=new p,this.outputs=new m}get fragmentUniforms(){return this.fragment.uniforms.entries}get attributeNames(){return this.attributes.names}get builder(){return this}generate(e,t=!1){const r=this.attributes.generateSource(e),i=this.varyings.generateSource(e),n="vertex"===e?this.vertex:this.fragment,o=n.uniforms.generateSource(),a=n.code.generateSource(),s=n.main.generateSource(t),l="vertex"===e?v:g,c=n.constants.generateSource(),d=this.outputs.generateSource(e);return`#version 300 es\n${l}\n${c.join("\n")}\n${o.join("\n")}\n${r.join("\n")}\n${i.join("\n")}\n${d.join("\n")}\n${a.join("\n")}\n${s.join("\n")}`}generateBind(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[0];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[0];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return t=>{for(let n=0;n<i;++n)r[n](e,t)}}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[1];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[1];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return(t,n)=>{for(let o=0;o<i;++o)r[o](e,t,n)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach(e=>{const r=e.bind[2];r&&t.set(e.name,r)}),this.fragment.uniforms.entries.forEach(e=>{const r=e.bind[2];r&&t.set(e.name,r)});const r=Array.from(t.values()),i=r.length;return(t,n,o)=>{for(let a=0;a<i;++a)r[a](e,o,t,n)}}}class l{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new i.A("shaderbuilder:duplicate-uniform",`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else o().error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map(({name:e,arraySize:t,type:r})=>null!=t?`uniform ${r} ${e}[${t}];`:`uniform ${r} ${e};`)}get entries(){return Array.from(this._entries.values())}}class c{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(e){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];if(e)throw new i.A("shaderbuilder:missing-main","Shader does not contain main function body.");return[]}}class d{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class u extends a{constructor(){super(...arguments),this.uniforms=new l(this),this.main=new c(this),this.code=new d(this),this.constants=new f(this)}get builder(){return this}}class h{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map(e=>`in ${e[1]} ${e[0]};`)}get names(){return this._entries.map(([e])=>e)}}class p{constructor(){this._entries=new Map}add(e,t,r){this._entries.has(e)?o().warn(`Ignoring duplicate varying ${t} ${e}`):this._entries.set(e,{type:t,invariant:r?.invariant??!1})}generateSource(e){const t=new Array;return this._entries.forEach((r,i)=>t.push((r.invariant&&"vertex"===e?"invariant ":"")+("int"===r.type?"flat ":"")+("vertex"===e?"out":"in")+` ${r.type} ${i};`)),t}}class m{constructor(){this._entries=new Map}add(e,t,r=0){const i=this._entries.get(r);i?.name!==e||i?.type!==t?this._entries.set(r,{name:e,type:t}):o().warn(`Fragment shader output location ${r} occupied`)}static{this.DEFAULT_TYPE="vec4"}static{this.DEFAULT_NAME="fragColor"}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:m.DEFAULT_NAME,type:m.DEFAULT_TYPE});const t=new Array;return this._entries.forEach((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`)),t}}class f{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let i="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":i=f._numberToFloatStr(r);break;case"int":i=f._numberToIntStr(r);break;case"bool":i=r.toString();break;case"vec2":i=`vec2(${f._numberToFloatStr(r[0])}, ${f._numberToFloatStr(r[1])})`;break;case"vec3":i=`vec3(${f._numberToFloatStr(r[0])}, ${f._numberToFloatStr(r[1])}, ${f._numberToFloatStr(r[2])})`;break;case"vec4":i=`vec4(${f._numberToFloatStr(r[0])}, ${f._numberToFloatStr(r[1])}, ${f._numberToFloatStr(r[2])}, ${f._numberToFloatStr(r[3])})`;break;case"ivec2":i=`ivec2(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])})`;break;case"ivec3":i=`ivec3(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])}, ${f._numberToIntStr(r[2])})`;break;case"ivec4":i=`ivec4(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])}, ${f._numberToIntStr(r[2])}, ${f._numberToIntStr(r[3])})`;break;case"uvec2":i=`uvec2(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])})`;break;case"uvec3":i=`uvec3(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])}, ${f._numberToIntStr(r[2])})`;break;case"uvec4":i=`uvec4(${f._numberToIntStr(r[0])}, ${f._numberToIntStr(r[1])}, ${f._numberToIntStr(r[2])}, ${f._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":i=`${t}(${Array.prototype.map.call(r,e=>f._numberToFloatStr(e)).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${i};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const g="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n precision highp usampler2D;\n precision highp sampler2DArray;\n precision highp sampler2DShadow;\n#else\n precision mediump float;\n precision mediump int;\n precision mediump sampler2D;\n precision mediump usampler2D;\n precision mediump sampler2DArray;\n precision mediump sampler2DShadow;\n#endif",v="precision highp float;\n precision highp sampler2D;\n precision highp usampler2D;\n precision highp sampler2DArray;\n precision highp sampler2DShadow;\n\n\n invariant gl_Position;\n "},14314:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",0,(i,n)=>i.setUniform4fv(e,t(n),r))}}},15581:(e,t,r)=>{r.d(t,{S:()=>x,b:()=>g,g:()=>v});var i=r(37585),n=r(48163),o=r(82048),a=r(52540),s=r(34845),l=r(77108),c=r(47286),d=r(33094),u=r(20304),h=r(31821),p=r(63761),m=r(14113);const f=16;function g(){const e=new m.N5,t=e.fragment;return e.include(o.c),e.include(s.Ir),t.include(a.E),t.uniforms.add(new d.U("radius",e=>v(e.camera))).code.add(h.H`vec3 sphere[16] = vec3[16](
12
12
  vec3(0.186937, 0.0, 0.0),
13
13
  vec3(0.700542, 0.0, 0.0),
14
14
  vec3(-0.864858, -0.481795, -0.111713),
@@ -726,7 +726,7 @@ return color;
726
726
  `)}},71988:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",1,(i,n,o)=>i.setUniform4fv(e,t(n,o),r))}}},72824:(e,t,r)=>{r.d(t,{Mh:()=>u,Zo:()=>h,gy:()=>p});var i=r(21818),n=r(29242),o=r(91829),a=r(96336),s=r(33752),l=r(31821),c=r(98353),d=r(35644);function u(e,t){switch(t.normalType){case 0:case 1:e.include(a.Y,t),e.varyings.add("vNormalWorld","vec3"),e.varyings.add("vNormalView","vec3"),e.vertex.uniforms.add(new c.h("transformNormalGlobalFromModel",e=>e.transformNormalGlobalFromModel),new d.k("transformNormalViewFromGlobal",e=>e.transformNormalViewFromGlobal)).code.add(l.H`void forwardNormal() {
727
727
  vNormalWorld = transformNormalGlobalFromModel * normalModel();
728
728
  vNormalView = transformNormalViewFromGlobal * vNormalWorld;
729
- }`);break;case 2:e.vertex.code.add(l.H`void forwardNormal() {}`);break;default:(0,i.Xb)(t.normalType);case 3:}}class h extends s.dO{constructor(){super(...arguments),this.transformNormalViewFromGlobal=(0,n.vt)()}}class p extends s.EM{constructor(){super(...arguments),this.transformNormalGlobalFromModel=(0,n.vt)(),this.toMapSpace=(0,o.vt)()}}},74038:(e,t,r)=>{r.d(t,{_:()=>i});class i{constructor(e,t,r,i,n,o=!1,a=0){this.name=e,this.count=t,this.type=r,this.offset=i,this.stride=n,this.normalized=o,this.divisor=a}}},74810:(e,t,r)=>{r.d(t,{Bt:()=>s,Jr:()=>o,SY:()=>l,mb:()=>a});var i=r(38954),n=r(51850);function o({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:o,emissiveTexture:a,emissiveFactor:s,occlusionTexture:l}){return null==e&&null==t&&null==a&&(null==s||(0,i.q)(s,n.uY))&&null==l&&(null==o||1===o)&&(null==r||1===r)}const a=(0,n.CN)(1,1,.5),s=(0,n.CN)(0,.6,.2),l=(0,n.CN)(0,1,.2)},76284:(e,t,r)=>{r.d(t,{g:()=>T});var i=r(49186),n=r(44208),o=r(53966),a=r(97768),s=r(93637),l=r(74887),c=r(94656),d=r(63907),u=r(67171);const h=()=>o.A.getLogger("esri/views/webgl/textureUtils");function p(e){const{width:t,height:r,depth:i}=e;(null!=t&&t<0||null!=r&&r<0||null!=i&&i<0)&&h().error("Negative dimension parameters are not allowed!");const{internalFormat:n}=e;if(n&&(m(n)||f(n))){const{linearFilterDepth:t,compareEnabled:r,samplingMode:i,hasMipmap:n}=e;n&&h().error("Depth textures cannot have mipmaps"),t?9729!==i&&9728!==i&&h().error("Depth textures cannot sample mipmaps"):(9728!==i&&h().error("Depth textures without filtering must use NEAREST filtering"),r&&h().error("Depth textures without filtering cannot use compare function"))}}function m(e){return(0,s.a4)(d.SB,e)}function f(e){return(0,s.a4)(d.iE,e)}function g(e){return null!=e&&"type"in e&&"compressed"===e.type}function v(e){return null!=e&&!g(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function _(e){return 32879===e||35866===e}function x(e,t,r,i=1){let n=Math.max(t,r);return 32879===e&&(n=Math.max(n,i)),Math.floor(Math.log2(n))+1}function w(e){if(null!=e.internalFormat)return e.internalFormat;switch(e.dataType){case d.ld.FLOAT:switch(e.pixelFormat){case 6408:return d.H0.RGBA32F;case 6407:return d.H0.RGB32F;default:throw new i.A("texture:unknown-format","Unable to derive format")}case d.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case 6408:return d.H0.RGBA8;case 6407:return d.H0.RGB8}}const{pixelFormat:t}=e;return e.internalFormat=34041===t?d.iE.DEPTH24_STENCIL8:6402===t?d.SB.DEPTH_COMPONENT24:t,e.internalFormat}class y extends u.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case d.H0.R16F:case d.H0.R32F:case d.H0.R8_SNORM:case d.H0.R8:this.pixelFormat=6403;break;case d.H0.R8I:case d.H0.R8UI:case d.H0.R16I:case d.H0.R16UI:case d.H0.R32I:case d.H0.R32UI:this.pixelFormat=36244}}static validate(e,t){return new y(e,t)}}const b=!!(0,n.A)("esri-tests-disable-gpu-memory-measurements"),M=()=>o.A.getLogger("esri/views/webgl/Texture");let T=class e{static{this.TEXTURE_UNIT_FOR_UPDATES=0}static{this.compressionWorkerHandle=null}constructor(e,t=null,r=null){if(this.type=1,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._shadowFilterDirty=!1,this._wasImmutablyAllocated=!1,"context"in e)this._descriptor=e,r=t;else{const r=y.validate(e,t);if(!r)throw new i.A("texture:invalid-descriptor","Texture descriptor invalid");this._descriptor=r}34067===this._descriptor.target?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return b?0:(0,u.e)(this._descriptor)}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty||this._shadowFilterDirty}get hasWebGLTextureObject(){return!!this._glName}dispose(){this.abortCompression(),this.hasWebGLTextureObject&&this._descriptor.context?.gl&&(this._descriptor.context.instanceCounter.decrement(d.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null,this._descriptor=null)}release(){this.dispose()}[Symbol.dispose](){this.dispose()}resize(e,t){const r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-resize","Immutable textures can't be resized!");r.width=e,r.height=t,34067===this._descriptor.target?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.compress=e}disableCompression(){this._descriptor.compress=void 0}setData(e){this.abortCompression(),!g(e)&&this._descriptor.internalFormat&&(0,s.a4)(d.CQ,this._descriptor.internalFormat)&&(this._descriptor.internalFormat=void 0),this._setData(e),!g(e)&&this._descriptor.compress&&this._compressOnWorker(e)}updateData(t,r,n,o,a,s,l=0){s||M().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||M().error("An attempt to update uninitialized texture!");const c=this._descriptor;c.internalFormat=w(c);const{context:d,pixelFormat:u,dataType:h,target:p,isImmutable:m}=c;if(m&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");const f=d.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||n<0||r+o>c.width||n+a>c.height)&&M().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:_}=d;l&&(o&&a||M().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),_.pixelStorei(_.UNPACK_SKIP_ROWS,l)),v(s)?_.texSubImage2D(p,t,r,n,o,a,u,h,s):g(s)?_.compressedTexSubImage2D(p,t,r,n,o,a,c.internalFormat,s.levels[t]):_.texSubImage2D(p,t,r,n,o,a,u,h,s),l&&_.pixelStorei(_.UNPACK_SKIP_ROWS,0),d.bindTexture(f,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(t,r,n,o,a,s,l,c){c||M().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||M().error("An attempt to update an uninitialized texture!");const d=this._descriptor;d.internalFormat=w(d);const{context:u,pixelFormat:h,dataType:p,isImmutable:m,target:f}=d;if(m&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");_(f)||M().warn("Attempting to set 3D texture data on a non-3D texture");const v=u.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||n<0||o<0||r+a>d.width||n+s>d.height||o+l>d.depth)&&M().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:x}=u;if(g(c))c=c.levels[t],x.compressedTexSubImage3D(f,t,r,n,o,a,s,l,d.internalFormat,c);else{const e=c;x.texSubImage3D(f,t,r,n,o,a,s,l,h,p,e)}u.bindTexture(v,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const t=this._descriptor;if(0===t.width||0===t.height)return;if(!t.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot add mipmaps to immutable texture after allocation");t.hasMipmap=!0,this._samplingModeDirty=!0,p(t)}9729===t.samplingMode?(this._samplingModeDirty=!0,t.samplingMode=9985):9728===t.samplingMode&&(this._samplingModeDirty=!0,t.samplingMode=9984);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(t.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,p(e)}9985===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9729):9984===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9728)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,p(this._descriptor),this._wrapModeDirty=!0)}setShadowFiltering(e){e!==this._descriptor.linearFilterDepth&&(this._descriptor.linearFilterDepth=this._descriptor.compareEnabled=e,this.setSamplingMode(e?9729:9728),p(this._descriptor),this._shadowFilterDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1),this._shadowFilterDirty&&(this._applyShadowMode(),this._shadowFilterDirty=!1)}abortCompression(){this._compressionAbortController=(0,a.DC)(this._compressionAbortController)}_setData(t,r){const n=this._descriptor,o=n.context?.gl;if(!o)return;(0,c.Y2)(o),this.hasWebGLTextureObject||(this._glName=o.createTexture(),n.context.instanceCounter.increment(d.vt.Texture,this)),p(n);const a=n.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);n.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,c.Y2)(o);const l=r??n.target,u=_(l);if(v(t))this._setDataFromTexImageSource(t,l);else{const{width:e,height:r,depth:a}=n;if(null==e||null==r)throw new i.A("texture:missing-size","Width and height must be specified!");if(u&&null==a)throw new i.A("texture:missing-depth","Depth must be specified!");if(n.internalFormat=w(n),n.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(l,n.internalFormat,n.hasMipmap,e,r,a),g(t)){if(!function(e){return null!=e&&(0,s.a4)(d.CQ,e)}(n.internalFormat))throw new i.A("texture:format-mismatch","Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(t,n.internalFormat,l)}else this._texImage(l,0,n.internalFormat,e,r,a,t),(0,c.Y2)(o),n.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),this._applyShadowMode(),(0,c.Y2)(o),n.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=34069;t<=34074;t++)this._setData(e,t)}_configurePixelStorage(){const e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:i}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r?1:0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i?1:0)}_setDataFromTexImageSource(e,t){const{gl:r}=this._descriptor.context,i=this._descriptor;i.internalFormat=w(i);const n=_(t),{width:o,height:a,depth:s}=function(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}(e);i.width&&i.height,i.width||(i.width=o),i.height||(i.height=a),n&&i.depth,n&&(i.depth=s),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,i.internalFormat,i.hasMipmap,o,a,s),this._texImage(t,0,i.internalFormat,o,a,s,e),(0,c.Y2)(r),i.hasMipmap&&(this.generateMipmap(),(0,c.Y2)(r))}_setDataFromCompressedSource(e,t,r){const i=this._descriptor,{width:n,height:o,depth:a}=i,s=e.levels,l=x(r,n,o,a),c=Math.min(l,s.length)-1;this._descriptor.context.gl.texParameteri(i.target,33085,c),this._forEachMipmapLevel((e,i,n,o)=>{const a=s[Math.min(e,s.length-1)];this._compressedTexImage(r,e,t,i,n,o,a)},c)}_texStorage(e,t,r,n,o,a){const{gl:s}=this._descriptor.context;if(!function(e){return d.XN.includes(e)}(t)&&!m(t)&&!f(t))throw new i.A("texture:missing-format","Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const l=r?x(e,n,o,a):1;if(_(e)){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");s.texStorage3D(e,l,t,n,o,a)}else s.texStorage2D(e,l,t,n,o);this._wasImmutablyAllocated=!0}_texImage(e,t,r,n,o,a,s){const l=this._descriptor.context.gl,c=_(e),{isImmutable:d,pixelFormat:u,dataType:h}=this._descriptor;if(d){if(null!=s){const r=s;if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texSubImage3D(e,t,0,0,0,n,o,a,u,h,r)}else l.texSubImage2D(e,t,0,0,n,o,u,h,r)}}else{const d=s;if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texImage3D(e,t,r,n,o,a,0,u,h,d)}else l.texImage2D(e,t,r,n,o,0,u,h,d)}}_compressedTexImage(e,t,r,n,o,a,s){const l=this._descriptor.context.gl,c=_(e);if(this._descriptor.isImmutable){if(null!=s)if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,t,0,0,0,n,o,a,r,s)}else l.compressedTexSubImage2D(e,t,0,0,n,o,r,s)}else if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,t,r,n,o,a,0,s)}else l.compressedTexImage2D(e,t,r,n,o,0,s)}async _compressOnWorker(t){const{width:r,height:i,context:n,flipped:o,preMultiplyAlpha:a,hasMipmap:s}=this._descriptor,c=this._descriptor.compress?.compressionTracker,d=this._descriptor.compress?.compressionCallback,{compressedTextureETC:u,compressedTextureS3TC:h}=n.capabilities;if(!e.compressionWorkerHandle?.isCompressible(t,this._descriptor)||!u&&!h)return;this.abortCompression();const p=new AbortController;this._compressionAbortController=p,c?.increment();try{let n;t instanceof Uint8Array?n=t.buffer:(n=await createImageBitmap(t,{imageOrientation:o?"flipY":"none"}),(0,l.Te)(p));const c={data:n,width:r,height:i,needsFlip:t instanceof Uint8Array&&this.descriptor.flipped,components:6408===this._descriptor.pixelFormat?4:3,preMultiplyAlpha:a,hasMipmap:s,hasETC:!!u,hasS3TC:!!h},m=await e.compressionWorkerHandle.invoke(c,p.signal,"low");if((0,l.Te)(p),m.compressedTexture&&this.hasWebGLTextureObject){const e=this.usedMemory;this._descriptor.internalFormat=m.internalFormat,this._setData(m.compressedTexture),d?.(e-this.usedMemory)}}catch(e){(0,l.zf)(e)||M().error("Texture compression failed!")}finally{c?.decrement(),this._compressionAbortController?.signal.aborted&&(this._compressionAbortController=null)}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:n,depth:o,hasMipmap:a,target:s}=this._descriptor;const l=32879===s;if(null==r||null==n||l&&null==o)throw new i.A("texture:missing-size","Missing texture dimensions for mipmap calculation");for(let i=0;e(i,r,n,o),a&&(1!==r||1!==n||l&&1!==o)&&!(i>=t);++i)r=Math.max(1,r>>1),n=Math.max(1,n>>1),l&&(o=Math.max(1,o>>1))}_applySamplingMode(){const e=this._descriptor,t=e.context?.gl;let r=e.samplingMode,i=e.samplingMode;9985===r||9987===r?(r=9729,e.hasMipmap||(i=9729)):9984!==r&&9986!==r||(r=9728,e.hasMipmap||(i=9728)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,i)}_applyWrapMode(){const e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyShadowMode(){const e=this._descriptor,t=e.context?.gl,r=e.compareEnabled?t.COMPARE_REF_TO_TEXTURE:t.NONE;t.texParameteri(e.target,t.TEXTURE_COMPARE_MODE,r),e.compareEnabled&&t.texParameteri(e.target,t.TEXTURE_COMPARE_FUNC,t.GREATER),(0,c.Y2)(t)}_applyAnisotropicFilteringParameters(){const e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},76591:(e,t,r)=>{r.d(t,{HQ:()=>c,rA:()=>d});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(40710),l=(r(33079),r(31821));function c(e,t){!function(e,t,...r){h(e,t,...r),t.hasSlicePlane?e.code.add("\n void discardBySlice(vec3 pos) {\n if (sliceByPlane(pos)) {\n discard;\n }\n }\n\n vec4 applySliceOutline(vec4 color, vec3 pos) {\n SliceFactors factors = calculateSliceFactors(pos);\n\n factors.front /= 2.0 * fwidth(factors.front);\n factors.side0 /= 2.0 * fwidth(factors.side0);\n factors.side1 /= 2.0 * fwidth(factors.side1);\n factors.side2 /= 2.0 * fwidth(factors.side2);\n factors.side3 /= 2.0 * fwidth(factors.side3);\n\n // return after calling fwidth, to avoid aliasing caused by discontinuities in the input to fwidth\n if (sliceByFactors(factors)) {\n return color;\n }\n\n float outlineFactor = (1.0 - step(0.5, factors.front))\n * (1.0 - step(0.5, factors.side0))\n * (1.0 - step(0.5, factors.side1))\n * (1.0 - step(0.5, factors.side2))\n * (1.0 - step(0.5, factors.side3));\n\n return mix(color, vec4(vec3(0.0), color.a), outlineFactor * 0.3);\n }\n\n vec4 applySlice(vec4 color, vec3 pos) {\n return sliceEnabled() ? applySliceOutline(color, pos) : color;\n }\n "):e.code.add(l.H`void discardBySlice(vec3 pos) { }
729
+ }`);break;case 2:e.vertex.code.add(l.H`void forwardNormal() {}`);break;default:(0,i.Xb)(t.normalType);case 3:}}class h extends s.dO{constructor(){super(...arguments),this.transformNormalViewFromGlobal=(0,n.vt)()}}class p extends s.EM{constructor(){super(...arguments),this.transformNormalGlobalFromModel=(0,n.vt)(),this.toMapSpace=(0,o.vt)()}}},74038:(e,t,r)=>{r.d(t,{_:()=>i});class i{constructor(e,t,r,i,n,o=!1,a=0){this.name=e,this.count=t,this.type=r,this.offset=i,this.stride=n,this.normalized=o,this.divisor=a}}},74810:(e,t,r)=>{r.d(t,{Bt:()=>s,Jr:()=>o,SY:()=>l,mb:()=>a});var i=r(38954),n=r(51850);function o({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:o,emissiveTexture:a,emissiveFactor:s,occlusionTexture:l}){return null==e&&null==t&&null==a&&(null==s||(0,i.q)(s,n.uY))&&null==l&&(null==o||1===o)&&(null==r||1===r)}const a=(0,n.CN)(1,1,.5),s=(0,n.CN)(0,.6,.2),l=(0,n.CN)(0,1,.2)},76284:(e,t,r)=>{r.d(t,{g:()=>T});var i=r(49186),n=r(44208),o=r(53966),a=r(97768),s=r(93637),l=r(74887),c=r(94656),d=r(63907),u=r(67171);const h=()=>o.A.getLogger("esri/views/webgl/textureUtils");function p(e){const{width:t,height:r,depth:i}=e;(null!=t&&t<0||null!=r&&r<0||null!=i&&i<0)&&h().error("Negative dimension parameters are not allowed!");const{internalFormat:n}=e;if(n&&(m(n)||f(n))){const{linearFilterDepth:t,compareEnabled:r,samplingMode:i,hasMipmap:n}=e;n&&h().error("Depth textures cannot have mipmaps"),t?9729!==i&&9728!==i&&h().error("Depth textures cannot sample mipmaps"):(9728!==i&&h().error("Depth textures without filtering must use NEAREST filtering"),r&&h().error("Depth textures without filtering cannot use compare function"))}}function m(e){return(0,s.a4)(d.SB,e)}function f(e){return(0,s.a4)(d.iE,e)}function g(e){return null!=e&&"type"in e&&"compressed"===e.type}function v(e){return null!=e&&!g(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function _(e){return 32879===e||35866===e}function x(e,t,r,i=1){let n=Math.max(t,r);return 32879===e&&(n=Math.max(n,i)),Math.floor(Math.log2(n))+1}function w(e){if(null!=e.internalFormat)return e.internalFormat;switch(e.dataType){case d.ld.FLOAT:switch(e.pixelFormat){case 6408:return d.H0.RGBA32F;case 6407:return d.H0.RGB32F;default:throw new i.A("texture:unknown-format","Unable to derive format")}case d.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case 6408:return d.H0.RGBA8;case 6407:return d.H0.RGB8}}const{pixelFormat:t}=e;return e.internalFormat=34041===t?d.iE.DEPTH24_STENCIL8:6402===t?d.SB.DEPTH_COMPONENT24:t,e.internalFormat}class y extends u.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case d.H0.R16F:case d.H0.R32F:case d.H0.R8_SNORM:case d.H0.R8:this.pixelFormat=6403;break;case d.H0.R8I:case d.H0.R8UI:case d.H0.R16I:case d.H0.R16UI:case d.H0.R32I:case d.H0.R32UI:this.pixelFormat=36244}}static validate(e,t){return new y(e,t)}}const b=!!(0,n.A)("esri-tests-disable-gpu-memory-measurements"),M=()=>o.A.getLogger("esri/views/webgl/Texture");let T=class e{static{this.TEXTURE_UNIT_FOR_UPDATES=0}static{this.compressionWorkerHandle=null}constructor(e,t=null,r=null){if(this.type=1,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._shadowFilterDirty=!1,this._wasImmutablyAllocated=!1,"context"in e)this._descriptor=e,r=t;else{const r=y.validate(e,t);if(!r)throw new i.A("texture:invalid-descriptor","Texture descriptor invalid");this._descriptor=r}34067===this._descriptor.target?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return b?0:(0,u.e)(this._descriptor)}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty||this._shadowFilterDirty}get hasWebGLTextureObject(){return!!this._glName}dispose(){this.abortCompression(),this.hasWebGLTextureObject&&this._descriptor.context?.gl&&(this._descriptor.context.instanceCounter.decrement(d.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null,this._descriptor=null)}release(){this.dispose()}[Symbol.dispose](){this.dispose()}resize(e,t){const r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-resize","Immutable textures can't be resized!");r.width=e,r.height=t,34067===this._descriptor.target?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.compress=e}disableCompression(){this._descriptor.compress=void 0}setData(e){this.abortCompression(),!g(e)&&this._descriptor.internalFormat&&(0,s.a4)(d.CQ,this._descriptor.internalFormat)&&(this._descriptor.internalFormat=void 0),this._setData(e),!g(e)&&this._descriptor.compress&&this._compressOnWorker(e)}updateData(t,r,n,o,a,s,l=0){s||M().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||M().error("An attempt to update uninitialized texture!");const c=this._descriptor;c.internalFormat=w(c);const{context:d,pixelFormat:u,dataType:h,target:p,isImmutable:m}=c;if(m&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");const f=d.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||n<0||r+o>c.width||n+a>c.height)&&M().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:_}=d;l&&(o&&a||M().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),_.pixelStorei(_.UNPACK_SKIP_ROWS,l)),v(s)?_.texSubImage2D(p,t,r,n,o,a,u,h,s):g(s)?_.compressedTexSubImage2D(p,t,r,n,o,a,c.internalFormat,s.levels[t]):_.texSubImage2D(p,t,r,n,o,a,u,h,s),l&&_.pixelStorei(_.UNPACK_SKIP_ROWS,0),d.bindTexture(f,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(t,r,n,o,a,s,l,c){c||M().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||M().error("An attempt to update an uninitialized texture!");const d=this._descriptor;d.internalFormat=w(d);const{context:u,pixelFormat:h,dataType:p,isImmutable:m,target:f}=d;if(m&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");_(f)||M().warn("Attempting to set 3D texture data on a non-3D texture");const v=u.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||n<0||o<0||r+a>d.width||n+s>d.height||o+l>d.depth)&&M().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:x}=u;if(g(c))c=c.levels[t],x.compressedTexSubImage3D(f,t,r,n,o,a,s,l,d.internalFormat,c);else{const e=c;x.texSubImage3D(f,t,r,n,o,a,s,l,h,p,e)}u.bindTexture(v,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const t=this._descriptor;if(0===t.width||0===t.height)return;if(!t.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot add mipmaps to immutable texture after allocation");t.hasMipmap=!0,this._samplingModeDirty=!0,p(t)}9729===t.samplingMode?(this._samplingModeDirty=!0,t.samplingMode=9985):9728===t.samplingMode&&(this._samplingModeDirty=!0,t.samplingMode=9984);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(t.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,p(e)}9985===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9729):9984===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9728)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,p(this._descriptor),this._wrapModeDirty=!0)}setShadowFiltering(e){e!==this._descriptor.linearFilterDepth&&(this._descriptor.linearFilterDepth=this._descriptor.compareEnabled=e,this.setSamplingMode(e?9729:9728),p(this._descriptor),this._shadowFilterDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1),this._shadowFilterDirty&&(this._applyShadowMode(),this._shadowFilterDirty=!1)}abortCompression(){this._compressionAbortController=(0,a.DC)(this._compressionAbortController)}_setData(t,r){const n=this._descriptor,o=n.context?.gl;if(!o)return;(0,c.Y2)(o),this.hasWebGLTextureObject||(this._glName=o.createTexture(),n.context.instanceCounter.increment(d.vt.Texture,this)),p(n);const a=n.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);n.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,c.Y2)(o);const l=r??n.target,u=_(l);if(v(t))this._setDataFromTexImageSource(t,l);else{const{width:e,height:r,depth:a}=n;if(null==e||null==r)throw new i.A("texture:missing-size","Width and height must be specified!");if(u&&null==a)throw new i.A("texture:missing-depth","Depth must be specified!");if(n.internalFormat=w(n),n.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(l,n.internalFormat,n.hasMipmap,e,r,a),g(t)){if(!function(e){return null!=e&&(0,s.a4)(d.CQ,e)}(n.internalFormat))throw new i.A("texture:format-mismatch","Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(t,n.internalFormat,l)}else this._texImage(l,0,n.internalFormat,e,r,a,t),(0,c.Y2)(o),n.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),this._applyShadowMode(),(0,c.Y2)(o),n.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=34069;t<=34074;t++)this._setData(e,t)}_configurePixelStorage(){const e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:i}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r?1:0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i?1:0)}_setDataFromTexImageSource(e,t){const{gl:r}=this._descriptor.context,i=this._descriptor;i.internalFormat=w(i);const n=_(t),{width:o,height:a,depth:s}=function(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}(e);i.width&&i.height,i.width||(i.width=o),i.height||(i.height=a),n&&i.depth,n&&(i.depth=s),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,i.internalFormat,i.hasMipmap,o,a,s),this._texImage(t,0,i.internalFormat,o,a,s,e),(0,c.Y2)(r),i.hasMipmap&&(this.generateMipmap(),(0,c.Y2)(r))}_setDataFromCompressedSource(e,t,r){const i=this._descriptor,{width:n,height:o,depth:a}=i,s=e.levels,l=x(r,n,o,a),c=Math.min(l,s.length)-1;this._descriptor.context.gl.texParameteri(i.target,33085,c),this._forEachMipmapLevel((e,i,n,o)=>{const a=s[Math.min(e,s.length-1)];this._compressedTexImage(r,e,t,i,n,o,a)},c)}_texStorage(e,t,r,n,o,a){const{gl:s}=this._descriptor.context;if(!function(e){return d.XN.includes(e)}(t)&&!m(t)&&!f(t))throw new i.A("texture:missing-format","Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const l=r?x(e,n,o,a):1;if(_(e)){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");s.texStorage3D(e,l,t,n,o,a)}else s.texStorage2D(e,l,t,n,o);this._wasImmutablyAllocated=!0}_texImage(e,t,r,n,o,a,s){const l=this._descriptor.context.gl,c=_(e),{isImmutable:d,pixelFormat:u,dataType:h}=this._descriptor;if(d){if(null!=s){const r=s;if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texSubImage3D(e,t,0,0,0,n,o,a,u,h,r)}else l.texSubImage2D(e,t,0,0,n,o,u,h,r)}}else{const d=s;if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texImage3D(e,t,r,n,o,a,0,u,h,d)}else l.texImage2D(e,t,r,n,o,0,u,h,d)}}_compressedTexImage(e,t,r,n,o,a,s){const l=this._descriptor.context.gl,c=_(e);if(this._descriptor.isImmutable){if(null!=s)if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,t,0,0,0,n,o,a,r,s)}else l.compressedTexSubImage2D(e,t,0,0,n,o,r,s)}else if(c){if(null==a)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,t,r,n,o,a,0,s)}else l.compressedTexImage2D(e,t,r,n,o,0,s)}async _compressOnWorker(t){const{width:r,height:i,context:n,flipped:o,preMultiplyAlpha:a,hasMipmap:s}=this._descriptor,c=this._descriptor.compress?.compressionTracker,d=this._descriptor.compress?.compressionCallback,{compressedTextureETC:u,compressedTextureS3TC:h}=n.capabilities;if(!e.compressionWorkerHandle?.isCompressible(t,this._descriptor)||!u&&!h)return;this.abortCompression();const p=new AbortController;let m;this._compressionAbortController=p,c?.increment();try{t instanceof Uint8Array?m=t.buffer:(m=await createImageBitmap(t,{imageOrientation:o?"flipY":"none"}),(0,l.Te)(p));const n={data:m,width:r,height:i,needsFlip:t instanceof Uint8Array&&this.descriptor.flipped,components:6408===this._descriptor.pixelFormat?4:3,preMultiplyAlpha:a,hasMipmap:s,hasETC:!!u,hasS3TC:!!h},c=await e.compressionWorkerHandle.invoke(n,p.signal,1);if((0,l.Te)(p),c.compressedTexture&&this.hasWebGLTextureObject){const e=this.usedMemory;this._descriptor.internalFormat=c.internalFormat,this._setData(c.compressedTexture),d?.(e-this.usedMemory)}}catch(e){(0,l.zf)(e)||M().error("Texture compression failed!")}finally{c?.decrement(),this._compressionAbortController?.signal.aborted&&(this._compressionAbortController=null),m instanceof ImageBitmap&&m.close()}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:n,depth:o,hasMipmap:a,target:s}=this._descriptor;const l=32879===s;if(null==r||null==n||l&&null==o)throw new i.A("texture:missing-size","Missing texture dimensions for mipmap calculation");for(let i=0;e(i,r,n,o),a&&(1!==r||1!==n||l&&1!==o)&&!(i>=t);++i)r=Math.max(1,r>>1),n=Math.max(1,n>>1),l&&(o=Math.max(1,o>>1))}_applySamplingMode(){const e=this._descriptor,t=e.context?.gl;let r=e.samplingMode,i=e.samplingMode;9985===r||9987===r?(r=9729,e.hasMipmap||(i=9729)):9984!==r&&9986!==r||(r=9728,e.hasMipmap||(i=9728)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,i)}_applyWrapMode(){const e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyShadowMode(){const e=this._descriptor,t=e.context?.gl,r=e.compareEnabled?t.COMPARE_REF_TO_TEXTURE:t.NONE;t.texParameteri(e.target,t.TEXTURE_COMPARE_MODE,r),e.compareEnabled&&t.texParameteri(e.target,t.TEXTURE_COMPARE_FUNC,t.GREATER),(0,c.Y2)(t)}_applyAnisotropicFilteringParameters(){const e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},76591:(e,t,r)=>{r.d(t,{HQ:()=>c,rA:()=>d});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(40710),l=(r(33079),r(31821));function c(e,t){!function(e,t,...r){h(e,t,...r),t.hasSlicePlane?e.code.add("\n void discardBySlice(vec3 pos) {\n if (sliceByPlane(pos)) {\n discard;\n }\n }\n\n vec4 applySliceOutline(vec4 color, vec3 pos) {\n SliceFactors factors = calculateSliceFactors(pos);\n\n factors.front /= 2.0 * fwidth(factors.front);\n factors.side0 /= 2.0 * fwidth(factors.side0);\n factors.side1 /= 2.0 * fwidth(factors.side1);\n factors.side2 /= 2.0 * fwidth(factors.side2);\n factors.side3 /= 2.0 * fwidth(factors.side3);\n\n // return after calling fwidth, to avoid aliasing caused by discontinuities in the input to fwidth\n if (sliceByFactors(factors)) {\n return color;\n }\n\n float outlineFactor = (1.0 - step(0.5, factors.front))\n * (1.0 - step(0.5, factors.side0))\n * (1.0 - step(0.5, factors.side1))\n * (1.0 - step(0.5, factors.side2))\n * (1.0 - step(0.5, factors.side3));\n\n return mix(color, vec4(vec3(0.0), color.a), outlineFactor * 0.3);\n }\n\n vec4 applySlice(vec4 color, vec3 pos) {\n return sliceEnabled() ? applySliceOutline(color, pos) : color;\n }\n "):e.code.add(l.H`void discardBySlice(vec3 pos) { }
730
730
  vec4 applySlice(vec4 color, vec3 pos) { return color; }`)}(e,t,new s.W("slicePlaneOrigin",(e,r)=>g(t,e,r)),new s.W("slicePlaneBasis1",(e,r)=>v(t,e,r,r.slicePlane?.basis1)),new s.W("slicePlaneBasis2",(e,r)=>v(t,e,r,r.slicePlane?.basis2)))}function d(e,t){h(e,t,new s.W("slicePlaneOrigin",(e,r)=>g(t,e,r)),new s.W("slicePlaneBasis1",(e,r)=>v(t,e,r,r.slicePlane?.basis1)),new s.W("slicePlaneBasis2",(e,r)=>v(t,e,r,r.slicePlane?.basis2)))}r(65786).Y;const u=l.H`struct SliceFactors {
731
731
  float front;
732
732
  float side0;
@@ -985,4 +985,4 @@ return normal;
985
985
  }`)}},97146:(e,t,r)=>{r.d(t,{Dg:()=>o,my:()=>a,tM:()=>d,uW:()=>n});var i=r(34275);function n(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<i.y9)return e}else if(e.length<i.y9)return Array.from(e);let r=!0,n=!0;return e.some((e,t)=>(r=r&&0===e,n=n&&e===t,!r&&!n)),r?function(e){if(1===e)return l;if(e<i.y9)return new Array(e).fill(0);if(e>h.length){const t=Math.max(2*h.length,e);h=new Uint8Array(t)}return new Uint8Array(h.buffer,0,e)}(e.length):n?d(e.length):(0,i.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(const r of e){if(r>=65536)return(0,i.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function a(e){return e<=i.y9?new Array(e):e<=65536?new Uint16Array(e):new Uint32Array(e)}let s=u(131072);const l=[0],c=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function d(e){return 1===e?l:e<i.y9?Array.from(new Uint16Array(c.buffer,0,e)):e<c.length?new Uint16Array(c.buffer,0,e):(e>s.length&&(s=u(Math.max(2*s.length,e))),new Uint32Array(s.buffer,0,e))}function u(e){const t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}let h=new Uint8Array(65536)},97220:(e,t,r)=>{r.d(t,{$:()=>i});class i{constructor(e,t){this._module=e,this._load=t}get(){return this._module}async reload(){return this._module=await this._load(),this._module}}},98353:(e,t,r)=>{r.d(t,{h:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"mat3",2,(i,n,o)=>i.setUniformMatrix3fv(e,t(n,o),r))}}},98619:(e,t,r)=>{r.d(t,{Gc:()=>o,O4:()=>a,Vt:()=>s});var i=r(23205),n=r(31821);function o(e){e.uniforms.add(new i.d("mainLightDirection",e=>e.lighting.mainLight.direction))}function a(e){e.uniforms.add(new i.d("mainLightIntensity",e=>e.lighting.mainLight.intensity))}function s(e){o(e.fragment),a(e.fragment),e.fragment.code.add(n.H`vec3 applyShading(vec3 shadingNormal, float shadow) {
986
986
  float dotVal = clamp(dot(shadingNormal, mainLightDirection), 0.0, 1.0);
987
987
  return mainLightIntensity * ((1.0 - shadow) * dotVal);
988
- }`)}},98958:(e,t,r)=>{r.d(t,{w:()=>d,L:()=>u});var i=r(53966),n=r(97768),o=r(49255),a=(r(44208),r(94656));class s{constructor(e,t,r){this._context=e,this.locations=r,this._textures=new Map,this.source=(0,a.en)()?t:null,t.attributeNames.forEach(e=>{r.has(e)||console.error(`Missing VertexAttributeLocation for ${e} used in shader`)}),this._glProgram=e.programCache.acquire(t.generate("vertex",!0),t.generate("fragment",!0),r),this._glProgram.stop=()=>{throw new Error("Wrapped _glProgram used directly")},this.bind=t.generateBind(this),this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this)}dispose(){this._glProgram.dispose()}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,t?1:0)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t,r){this._glProgram.setUniform1f(e,t,r)}setUniform2fv(e,t,r){this._glProgram.setUniform2fv(e,t,r)}setUniform3fv(e,t,r){this._glProgram.setUniform3fv(e,t,r)}setUniform4fv(e,t,r){this._glProgram.setUniform4fv(e,t,r)}setUniformMatrix3fv(e,t,r){this._glProgram.setUniformMatrix3fv(e,t,!1,r)}setUniformMatrix4fv(e,t,r){this._glProgram.setUniformMatrix4fv(e,t,!1,r)}setUniformMatrices4fv(e,t,r){this._glProgram.setUniformMatrices4fv(e,t,!1,r)}setUniform1fv(e,t,r){this._glProgram.setUniform1fv(e,t,r)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e,t){let r=e.locations;if(t){const e=new Map(r);t.forEach((t,i)=>e.set(i,r.size+t)),r=e}r.size!==this.locations.size&&console.error(`VertexAttributeLocations are incompatible: ${r}, ${this.locations}`),this.locations.forEach((e,t)=>{r.get(t)!==e&&console.error(`VertexAttributeLocations are incompatible: Program has ${t} at position ${e}, VAO has it at position ${r.get(t)}.`)})}stop(){this._textures.clear()}bindTexture(e,t){t?.glName||((0,a.en)()&&console.error(`Texture sampler ${e} has no given Texture in ${(new Error).stack} `),t=this._context.emptyTexture);const r=this._ensureTextureUnit(e,t);this._context.useProgram(this),this.setUniform1i(e,r.unit),this._context.bindTexture(t,r.unit)}_ensureTextureUnit(e,t){let r=this._textures.get(e);return null==r?(r={texture:t,unit:this._textures.size},this._textures.set(e,r)):r.texture=t,r}}var l=r(63907),c=r(90644);class d{constructor(e,t,r,o){this.primitiveType=l.WR.TRIANGLES,this.key=t.key,this._program=new s(e.rctx,r.get().build(t),o),this._pipeline=this.initializePipeline(t),this.reload=async a=>{a&&await r.reload(),this.key.equals(t.key)||i.A.getLogger("esri.views.3d.webgl.ShaderTechnique").warn("Configuration was changed after construction, cannot reload shader.",r),(0,n.WD)(this._program),this._program=new s(e.rctx,r.get().build(t),o),this._pipeline=this.initializePipeline(t)}}destroy(){this._program=(0,n.WD)(this._program),this._pipeline=null}get program(){return this._program}get compiled(){return this.program.compiled}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}getPipeline(e,t){return this._pipeline}initializePipeline(e){return(0,c.Ey)({blending:c.RC,colorWrite:c.kn})}}function u(e,t){return(0,o.Dz)(e)?{buffers:[l.$0]}:t??null}},99677:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(78888);async function n(e,t){const{data:r}=await(0,i.A)(e,{responseType:"image",...t});return r}}}]);
988
+ }`)}},98958:(e,t,r)=>{r.d(t,{w:()=>d,L:()=>u});var i=r(53966),n=r(97768),o=r(49255),a=(r(44208),r(94656));class s{constructor(e,t,r){this._context=e,this.locations=r,this._textures=new Map,this.source=(0,a.en)()?t:null,t.attributeNames.forEach(e=>{r.has(e)||console.error(`Missing VertexAttributeLocation for ${e} used in shader`)}),this._glProgram=e.programCache.acquire(t.generate("vertex",!0),t.generate("fragment",!0),r),this._glProgram.stop=()=>{throw new Error("Wrapped _glProgram used directly")},this.bind=t.generateBind(this),this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this)}dispose(){this._glProgram.dispose()}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,t?1:0)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t,r){this._glProgram.setUniform1f(e,t,r)}setUniform2fv(e,t,r){this._glProgram.setUniform2fv(e,t,r)}setUniform3fv(e,t,r){this._glProgram.setUniform3fv(e,t,r)}setUniform4fv(e,t,r){this._glProgram.setUniform4fv(e,t,r)}setUniformMatrix3fv(e,t,r){this._glProgram.setUniformMatrix3fv(e,t,!1,r)}setUniformMatrix4fv(e,t,r){this._glProgram.setUniformMatrix4fv(e,t,!1,r)}setUniformMatrices4fv(e,t,r){this._glProgram.setUniformMatrices4fv(e,t,!1,r)}setUniform1fv(e,t,r){this._glProgram.setUniform1fv(e,t,r)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e,t){let r=e.locations;if(t){const e=new Map(r);t.forEach((t,i)=>e.set(i,r.size+t)),r=e}r.size!==this.locations.size&&console.error(`VertexAttributeLocations are incompatible: ${r}, ${this.locations}`),this.locations.forEach((e,t)=>{r.get(t)!==e&&console.error(`VertexAttributeLocations are incompatible: Program has ${t} at position ${e}, VAO has it at position ${r.get(t)}.`)})}stop(){this._textures.clear()}bindTexture(e,t){t?.glName||((0,a.en)()&&console.error(`Texture sampler ${e} has no given Texture in ${(new Error).stack} `),t=this._context.emptyTexture);const r=this._ensureTextureUnit(e,t);this._context.useProgram(this),this.setUniform1i(e,r.unit),this._context.bindTexture(t,r.unit)}_ensureTextureUnit(e,t){let r=this._textures.get(e);return null==r?(r={texture:t,unit:this._textures.size},this._textures.set(e,r)):r.texture=t,r}}var l=r(63907),c=r(90644);class d{constructor(e,t,r,o){this.primitiveType=l.WR.TRIANGLES,this.key=t.key,this._program=new s(e.rctx,r.get().build(t),o),this._pipeline=this.initializePipeline(t),this.reload=async a=>{a&&await r.reload(),this.key.equals(t.key)||i.A.getLogger("esri.views.3d.webgl.ShaderTechnique").warn("Configuration was changed after construction, cannot reload shader.",r),(0,n.WD)(this._program),this._program=new s(e.rctx,r.get().build(t),o),this._pipeline=this.initializePipeline(t)}}destroy(){this._program=(0,n.WD)(this._program),this._pipeline=null}get program(){return this._program}get compiled(){return this.program.compiled}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}getPipeline(e,t){return this._pipeline}initializePipeline(e){return(0,c.Ey)({blending:c.RC,colorWrite:c.kn})}}function u(e,t){return(0,o.Dz)(e)?{buffers:[l.$0]}:t??null}},99677:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(43773);async function n(e,t){return(await(0,i.A)(e,{responseType:"image",...t})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9203],{6518:(e,t,n)=>{n.d(t,{F:()=>a});var i=n(44208),r=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303:(e,t,n)=>{n.d(t,{A:()=>P});var i=n(31635),r=n(92602),s=n(70333),o=n(43773),a=n(60999),l=n(49186),c=n(53966),u=n(97768),h=n(74887),d=n(84952),p=n(10107),m=(n(44208),n(87811),n(36005)),f=n(64108),g=n(43937),y=n(77548),x=n(20655),_=n(80812),v=n(41318),w=n(10407);const P=e=>{const t=e;let P=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new _.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await n.e(1204).then(n.bind(n,41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let o,a;if(r)o=n.portal.url;else try{o=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,c=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(r?await n.reload():(n=new _.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const n=(0,w.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const i=`${n.owningSystemUrl}/sharing/rest`,r=x.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const l=`${i}/community/self`,c=null!=e?e.signal:null,u=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?v.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||x.A.getDefault());return n&&i&&!(0,d.ut)(i.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,p.MZ)({type:_.default})],P.prototype,"portalItem",null),(0,i.Cg)([(0,m.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,i.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,i.Cg)([(0,f.$)("esri.layers.mixins.PortalLayer")],P),P},M={credential:null,user:null}},10407:(e,t,n)=>{n.d(t,{It:()=>p,LG:()=>o,OM:()=>c,Sm:()=>u,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>h});var i=n(91218),r=n(16930),s=n(28735);function o(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function c(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function u(e,t,n){n?o(e,t):c(e,t)}async function h(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!n&&!!r?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},11006:(e,t,n)=>{function i(e,t,n,i,s){r(e,t,n||0,i||e.length-1,s||o)}function r(e,t,n,i,o){for(;i>n;){if(i-n>600){var a=i-n+1,l=t-n+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);r(e,t,Math.max(n,Math.floor(t-l*u/a+h)),Math.min(i,Math.floor(t+(a-l)*u/a+h)),o)}var d=e[t],p=n,m=i;for(s(e,n,t),o(e[i],d)>0&&s(e,n,i);p<m;){for(s(e,p,m),p++,m--;o(e[p],d)<0;)p++;for(;o(e[m],d)>0;)m--}0===o(e[n],d)?s(e,n,m):s(e,++m,i),m<=t&&(n=m+1),t<=m&&(i=m-1)}}function s(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function o(e,t){return e<t?-1:e>t?1:0}n.d(t,{q:()=>i})},13069:(e,t,n)=>{n.d(t,{AG:()=>a,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},16494:(e,t,n)=>{n.d(t,{Nd:()=>a,W5:()=>o});var i=n(37330);const r=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],o=new i.I({whiteList:r,onTagAttr:(e,t,n)=>{const i=`${t}="${n}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},21287:(e,t,n)=>{n.d(t,{M5:()=>h,eV:()=>u});var i=n(43773),r=n(49186),s=n(74887),o=n(84952),a=n(26306);let l=null,c=!0;function u(e,t,n,i){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(e,t,n)}catch(e){c=!1}const r=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,i);return r.data.set(e,0),r}async function h(e,t){const{arrayBuffer:l,mediaType:c}=await async function(e,t){const n=(0,o.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const r=await(0,i.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:r.data,mediaType:r.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:i}=await n.e(820).then(n.bind(n,10820));if(e(l))return i(l,t)}if(u){const{isAnimatedPNG:e,parseApng:i}=await n.e(2390).then(n.bind(n,22390));if(e(l))return i(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,i.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,s.zf)(e))throw new r.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),t)}},29203:(e,t,n)=>{n.r(t),n.d(t,{default:()=>tt});var i=n(31635),r=n(7762),s=n(49186),o=n(53966),a=n(25728),l=n(74887),c=n(10107),u=n(79901),h=(n(44208),n(87811),n(36005)),d=n(64108),p=n(43937),m=n(4146),f=n(63074),g=n(16131),y=n(8303),x=n(25036),_=n(25482),v=n(77690),w=n(29242),P=n(37585),M=n(38954);const I=(0,n(51850).vt)(),b=(0,w.vt)(),A=(0,w.vt)(),C=(0,w.vt)();function R(e,t,n){return(0,M.j)(I,t[0],t[1],1),(0,M.o)(I,I,(0,v.mg)(b,n)),0===I[2]?(0,P.hZ)(e,I[0],I[1]):(0,P.hZ)(e,I[0]/I[2],I[1]/I[2])}function S(e,t,n){return O(A,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),O(C,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,v.lw)(e,(0,v.KC)(A,A),C),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function O(e,t,n,i,r,s,o,a,l){(0,v.hZ)(e,t,i,s,n,r,o,1,1,1),(0,M.j)(I,a,l,1),(0,v.KC)(b,e);const[c,u,h]=(0,M.o)(I,I,(0,v.mg)(b,b));return(0,v.hZ)(b,c,0,0,0,u,0,0,0,h),(0,v.lw)(e,b,e)}var E=n(90629),L=n(48163),B=n(86738),T=n(39829),Z=n(91218),j=n(16930),Y=n(56560),U=n(69540);let X=class extends U.Pw{projectOrWarn(e,t){if(null==e)return e;const{geometry:n,pending:i}=(0,Z.projectOrLoad)(e,t);return i?null:i||n?n:(o.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}};X=(0,i.Cg)([(0,d.$)("esri.layers.support.GeoreferenceBase")],X);const H=(0,w.vt)(),N=(0,L.vt)();let $=class extends _.o{};(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],$.prototype,"x",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],$.prototype,"y",void 0),$=(0,i.Cg)([(0,d.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],$);let z=class extends((0,_.T)(X)){constructor(e){super(e),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(e,t){const n=j.A.fromJSON(t.spatialReference),i=(0,w.fA)(...t.coefficients,1);return e.map(e=>((0,P.hZ)(N,e.x,e.y),R(N,N,i),{sourcePoint:e,mapPoint:new B.A({x:N[0],y:N[1],spatialReference:n})}))}writeControlPoints(e,t,n,i){if(null==this.transform){const e=new s.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:i?.layer,georeference:this});return void(i?.messages?i.messages.push(e):o.A.getLogger(this).error(e.name,e.message))}null!=e&&V(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;const e=this._updateTransform(H);if(null==e||!V(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,i){const r=(0,L.fA)(0,n),s=(0,L.fA)(0,0),o=(0,L.fA)(t,0),a=(0,L.fA)(t,n);return R(r,r,e),R(s,s,e),R(o,o,e),R(a,a,e),new T.A({rings:[[r,s,o,a,r]],spatialReference:i})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!V(this.controlPoints[0]))return;const t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;const{width:n,height:i}=this,{rings:[[r,s,o,a]]}=e,l=new Y.A({sourcePoint:(0,E.tc)(0,i),mapPoint:new B.A({x:r[0],y:r[1],spatialReference:t})}),c=new Y.A({sourcePoint:(0,E.tc)(0,0),mapPoint:new B.A({x:s[0],y:s[1],spatialReference:t})}),u=new Y.A({sourcePoint:(0,E.tc)(n,0),mapPoint:new B.A({x:o[0],y:o[1],spatialReference:t})}),h=new Y.A({sourcePoint:(0,E.tc)(n,i),mapPoint:new B.A({x:a[0],y:a[1],spatialReference:t})});V(l)&&V(c)&&V(u)&&V(h)&&(te(H,l,c,u,h),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,P.hZ)(N,e.x,e.y),R(N,N,H),{sourcePoint:e,mapPoint:new B.A({x:N[0],y:N[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,v.B8)((0,w.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!V(this.controlPoints[0]))return null;(0,P.hZ)(N,e.x,e.y);const t=this.controlPoints[0].mapPoint.spatialReference;return R(N,N,this.transform),new B.A({x:N[0],y:N[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!V(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,Z.projectOrLoad)(e,t).geometry)?null:((0,P.hZ)(N,e.x,e.y),R(N,N,this.inverseTransform),(0,E.tc)(N[0],N[1]))}toSourceNormalized(e){const t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){const{controlPoints:t,width:n,height:i}=this;if(!(null!=t&&n>0&&i>0))return null;const[r,s,o,a]=t;if(!V(r))return null;const l=r.mapPoint.spatialReference,c=this._projectControlPoint(s,l),u=this._projectControlPoint(o,l),h=this._projectControlPoint(a,l);if(!c.valid||!u.valid||!h.valid)return null;if(!V(c.controlPoint))return null;null==e&&(e=(0,w.vt)());let d=null;return d=V(u.controlPoint)&&V(h.controlPoint)?te(e,r,c.controlPoint,u.controlPoint,h.controlPoint):V(u.controlPoint)?function(e,t,n,i){return ee(k,F,t),ee(G,q,n),ee(W,K,i),(0,P.Cc)(D,k,G,.5),(0,P.e$)(D,W,D,Math.PI),(0,P.Cc)(J,F,q,.5),(0,P.e$)(J,K,J,Math.PI),se(e,k,G,W,D,F,q,K,J)}(e,r,c.controlPoint,u.controlPoint):function(e,t,n){return ee(k,F,t),ee(G,q,n),(0,P.e$)(W,G,k,Q),(0,P.e$)(D,k,G,Q),(0,P.e$)(K,q,F,-Q),(0,P.e$)(J,F,q,-Q),se(e,k,G,W,D,F,q,K,J)}(e,r,c.controlPoint),d.every(e=>0===e)?null:d}_projectControlPoint(e,t){if(!V(e))return{valid:!0,controlPoint:e};const{sourcePoint:n,mapPoint:i}=e,{geometry:r,pending:s}=(0,Z.projectOrLoad)(i,t);return s?{valid:!1,controlPoint:null}:s||r?{valid:!0,controlPoint:new Y.A({sourcePoint:n,mapPoint:r})}:(o.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:i.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function V(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,i.Cg)([(0,c.MZ)({type:[Y.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[$],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:j.A,isRequired:!0}}}}})],z.prototype,"controlPoints",void 0),(0,i.Cg)([(0,h.w)("controlPoints")],z.prototype,"readControlPoints",null),(0,i.Cg)([(0,p.K)("controlPoints")],z.prototype,"writeControlPoints",null),(0,i.Cg)([(0,c.MZ)({clonable:!1})],z.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],z.prototype,"height",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],z.prototype,"inverseTransform",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],z.prototype,"transform",null),(0,i.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],z.prototype,"width",void 0),z=(0,i.Cg)([(0,d.$)("esri.layers.support.ControlPointsGeoreference")],z);const k=(0,L.vt)(),G=(0,L.vt)(),W=(0,L.vt)(),D=(0,L.vt)(),F=(0,L.vt)(),q=(0,L.vt)(),K=(0,L.vt)(),J=(0,L.vt)(),Q=Math.PI/2;function ee(e,t,n){(0,P.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,P.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function te(e,t,n,i,r){return ee(k,F,t),ee(G,q,n),ee(W,K,i),ee(D,J,r),se(e,k,G,W,D,F,q,K,J)}const ne=new Array(8).fill(0),ie=new Array(8).fill(0);function re(e,t,n,i,r){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=i[0],e[5]=i[1],e[6]=r[0],e[7]=r[1],e}function se(e,t,n,i,r,s,o,a,l){return S(e,re(ne,t,n,i,r),re(ie,s,o,a,l))}var oe=n(43773),ae=n(21287),le=n(84952),ce=n(13069),ue=n(92474);let he=0;const de=e=>{const t=e;let n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:he++})}};return n=(0,i.Cg)([(0,d.$)("esri.core.NumericIdentifiable")],n),n};var pe=n(35666),me=n(5443),fe=n(21325);const ge=(0,L.vt)();let ye=class extends X{constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:i}=this;if(null==e||null==t||null==n||null==i)return null;const r=e.spatialReference;return t=this.projectOrWarn(t,r),n=this.projectOrWarn(n,r),i=this.projectOrWarn(i,r),null==t||null==n||null==i?null:new T.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[i.x,i.y],[n.x,n.y]]],spatialReference:r})}set coords(e){const{topLeft:t}=this;if(null==t)return;const n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;const{rings:[[i,r,s,o]]}=e;this.bottomLeft=new B.A({x:i[0],y:i[1],spatialReference:n}),this.topLeft=new B.A({x:r[0],y:r[1],spatialReference:n}),this.topRight=new B.A({x:s[0],y:s[1],spatialReference:n}),this.bottomRight=new B.A({x:o[0],y:o[1],spatialReference:n})}toSourceNormalized(e){const{topLeft:t,topRight:n,bottomRight:i,bottomLeft:r}=this;if(null==e||null==t||null==n||null==i||null==r)return null;const s=t.spatialReference;e=e.normalize();const o=(0,Z.projectOrLoad)(e,s).geometry;if(null==o)return null;(0,P.hZ)(ge,o.x,o.y);const a=S((0,w.vt)(),[t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y],[0,0,0,1,1,0,1,1]);return R(ge,ge,a),(0,E.tc)(ge[0],ge[1])}};(0,i.Cg)([(0,c.MZ)({clonable:!1})],ye.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:B.A})],ye.prototype,"bottomLeft",void 0),(0,i.Cg)([(0,c.MZ)({type:B.A})],ye.prototype,"bottomRight",void 0),(0,i.Cg)([(0,c.MZ)({type:B.A})],ye.prototype,"topLeft",void 0),(0,i.Cg)([(0,c.MZ)({type:B.A})],ye.prototype,"topRight",void 0),ye=(0,i.Cg)([(0,d.$)("esri.layers.support.CornersGeoreference")],ye);const xe=ye;var _e=n(34727),ve=n(34304);let we=class extends X{constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:e,ymin:t,xmax:n,ymax:i,spatialReference:r}=this.extent;let s;if(this.rotation){const{x:r,y:o}=this.extent.center,a=Pe(r,o,this.rotation);s=[a(e,t),a(e,i),a(n,i),a(n,t)],s.push(s[0])}else s=[[e,t],[e,i],[n,i],[n,t],[e,t]];return new T.A({rings:[s],spatialReference:r})}set coords(e){if(null==e||null==this.extent)return;const t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;const{rings:[[n,i,r]],extent:{center:{x:s,y:o}}}=e,a=(0,_e.KJ)(Math.PI/2-Math.atan2(i[1]-n[1],i[0]-n[0])),l=Pe(s,o,-a),[c,u]=l(n[0],n[1]),[h,d]=l(r[0],r[1]);this.extent=new me.A({xmin:c,ymin:u,xmax:h,ymax:d,spatialReference:t}),this.rotation=a}toSourceNormalized(e){const{extent:t,rotation:n}=this;if(null==e||null==t)return null;const{xmin:i,ymin:r,xmax:s,ymax:o,center:a,spatialReference:l}=t;e=e.normalize();const c=(0,Z.projectOrLoad)(e,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return n&&([u,h]=Pe(a.x,a.y,-n)(u,h)),(0,E.tc)((0,_e.hs)(u,i,s,0,1),(0,_e.hs)(h,o,r,0,1))}};function Pe(e,t,n){const i=(0,ve.DF)(n),r=Math.cos(i),s=Math.sin(i);return(n,i)=>[r*(n-e)+s*(i-t)+e,r*(i-t)-s*(n-e)+t]}function Me(e,t){const n=(0,pe.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function Ie(e,t,n){return{enabled:!Me(n?.layer,n?.origin),ignoreOrigin:!0}}(0,i.Cg)([(0,c.MZ)({clonable:!1})],we.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)({type:me.A})],we.prototype,"extent",void 0),(0,i.Cg)([(0,c.MZ)({type:Number})],we.prototype,"rotation",void 0),we=(0,i.Cg)([(0,d.$)("esri.layers.support.ExtentAndRotationGeoreference")],we);const be={json:{name:"url",type:String,write:{overridePolicy:Ie}}},Ae={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:Ie}}},Ce={types:{key:"type",base:X,typeMap:{"control-points":z,corners:xe,"extent-and-rotation":we}},json:{types:{key:"type",base:X,typeMap:{"control-points":z}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Re=class extends(de((0,a.P)(ue.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return z.fromJSON(e)}writeGeoreference(e,t,n,i){const r=i?.resources?.pendingOperations,a=()=>{const r=function(e,t,n){if(!e||"control-points"===e.type)return e;const{coords:i}=e;if(5!==i?.rings[0]?.length)return null;const[r,s,o,a]=i.rings[0],{spatialReference:l}=i;return new z({controlPoints:[new Y.A({mapPoint:new B.A({x:r[0],y:r[1],spatialReference:l}),sourcePoint:(0,E.tc)(0,n)}),new Y.A({mapPoint:new B.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,E.tc)(0,0)}),new Y.A({mapPoint:new B.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,E.tc)(t,0)}),new Y.A({mapPoint:new B.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,E.tc)(t,n)})],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(r){if("control-points"!==e.type&&o.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==r.controlPoints?.length&&i?.messages)return void i.messages.push(new s.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));t[n]=r.write({},i)}};if("control-points"!==e.type&&!this.loaded&&r)return t[n]={},void r.push(this.load().then(a));a()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:n,contentHeight:i}=this;if(null==e||null==t||0===n||0===i)return null;const r=t.toSourceNormalized(e);return null==r?null:(r.x*=n,r.y*=i,r)}};(0,i.Cg)([(0,c.MZ)(Ce)],Re.prototype,"georeference",void 0),(0,i.Cg)([(0,h.w)("georeference")],Re.prototype,"readGeoreference",null),(0,i.Cg)([(0,p.K)("georeference")],Re.prototype,"writeGeoreference",null),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],Re.prototype,"opacity",void 0),Re=(0,i.Cg)([(0,d.$)("esri.layers.support.MediaElementBase")],Re);var Se=n(85648);const Oe=Symbol("ImageElementInstance"),Ee=Symbol("VideoElementInstance");function Le(e){return function(e){return null!=e&&"object"==typeof e&&Oe in e}(e)||function(e){return null!=e&&"object"==typeof e&&Ee in e}(e)}var Be,Te=n(97159);let Ze=class extends Re{static{Be=Oe}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Be]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,ae.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){const t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new s.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,Te.f)(t.url,n)}writeImage(e,t,n,i){if(null==e)return;const r=i?.portalItem,s=i?.resources;if(!r||!s)return void("string"==typeof e&&(t[n]=(0,Te.t)(e,i)));const o=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(o){if(null==(0,Te.i)(o))return void(t[n]=o);const e=(0,Te.t)(o,{...i,verifyItemRelativeUrls:i?.verifyItemRelativeUrls?{writtenUrls:i.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(r&&e&&!(0,le.oP)(e))return s.toKeep.push({resource:r.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",s.pendingOperations.push(async function(e){return"string"==typeof e?(0,le.DB)(e)?(0,le.N9)(e):(await(0,oe.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;const t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=t,i.height=n,e instanceof HTMLImageElement?r.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&r.putImageData(e,0,0),i}(e).toBlob(t))}(e).then(e=>{const i=function(e,t){const n=(0,ce.lk)(),i=`${(0,le.fj)("media",n)}.${(0,Se.n)({type:"blob",blob:e})}`;return t.resourceFromPath(i)}(e,r);t[n]=i.itemRelativeUrl,s.toAdd.push({resource:i,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,i.Cg)([(0,c.MZ)()],Ze.prototype,"animationOptions",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"content",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"contentWidth",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ze.prototype,"contentHeight",null),(0,i.Cg)([(0,c.MZ)(be)],Ze.prototype,"image",void 0),(0,i.Cg)([(0,h.w)("image",["url"])],Ze.prototype,"readImage",null),(0,i.Cg)([(0,p.K)("image")],Ze.prototype,"writeImage",null),(0,i.Cg)([(0,c.MZ)(Ae)],Ze.prototype,"type",void 0),Ze=(0,i.Cg)([(0,d.$)("esri.layers.support.ImageElement")],Ze);var je=n(62885),Ye=n(65529),Ue=n(61893),Xe=n(36708),He=n(19419),Ne=n(12176),$e=n(6518),ze=n(69622),Ve=n(89056);let ke=class extends ze.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,He.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,Z.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return T.A.fromJSON((0,Ve.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,He.VY)(e):null}};(0,i.Cg)([(0,c.MZ)()],ke.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"element",void 0),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"bounds",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"coords",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"normalizedCoords",null),(0,i.Cg)([(0,c.MZ)()],ke.prototype,"normalizedBounds",null),ke=(0,i.Cg)([(0,d.$)("esri.layers.support.MediaElementView")],ke);var Ge,We=n(16494),De=n(38969);const Fe=Symbol("canplay");let qe=class extends Re{static{Ge=Ee}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[Ge]=!0}load(){const e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{const t=document.createElement("video");return t.src=We.W5.sanitizeUrl((0,le.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new s.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;const t=(0,_e.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):o.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,i){if(!e)return void(i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source is missing")));const r=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(!r)return void(i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source must be an absolute url")));!(0,le.oP)(r)&&i?.blockedRelativeUrls&&i.blockedRelativeUrls.push(r);const o=(0,le.s2)(r);(0,Te.i)(o)?i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=o}async _preProcessVideoUrl(e){if((0,le.zs)(e))return(0,le.yM)(e);try{return await(0,oe.A)(e,{method:"head"}),e}catch{try{return(0,le.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,le.w8)(e.src)||(e.src=e.src));try{await(0,De.i)(e,e=>this.addHandles(e,Fe)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(Fe)}}};(0,i.Cg)([(0,c.MZ)()],qe.prototype,"autoplay",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],qe.prototype,"content",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],qe.prototype,"contentWidth",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],qe.prototype,"contentHeight",null),(0,i.Cg)([(0,c.MZ)({type:Number})],qe.prototype,"currentTime",null),(0,i.Cg)([(0,c.MZ)({type:Number})],qe.prototype,"duration",null),(0,i.Cg)([(0,c.MZ)(be)],qe.prototype,"video",null),(0,i.Cg)([(0,p.K)("video")],qe.prototype,"writeVideo",null),(0,i.Cg)([(0,c.MZ)(Ae)],qe.prototype,"type",void 0),qe=(0,i.Cg)([(0,d.$)("esri.layers.support.VideoElement")],qe);const Ke={key:"type",defaultKeyValue:"image",base:Re,typeMap:{image:Ze,video:qe}},Je=r.A.ofType(Ke);let Qe=class extends((0,ue.WV)((0,Ue.g)(Ye.nJ))){constructor(e){super(e),this._index=new $e.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(const t of e.removed){const e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}const{spatialReference:t}=this;for(const n of e.added){if(this._elementViewsMap.get(n))continue;const e=new ke({spatialReference:t,element:n});this._elementViewsMap.set(n,e);const i=(0,Xe.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(i,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Je}async load(e){if((0,l.Te)(e),!this.spatialReference){const e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:j.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(e){this._set("elements",(0,je.V)(e,this._get("elements"),Je))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new me.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):o.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,Z.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const n=(0,fe.aI)(e.spatialReference,this.spatialReference)?e:(0,Z.project)(e,this.spatialReference);if(!n)return[];const i=n.normalize(),r=[];for(const e of i)this._index.forEachInBounds((0,He.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,Ne.fA)(e,t)&&r.push(n)});return r.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),r}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const n=e.normalizedBounds,i=this._index.has(e),r=null!=n;this._index.delete(e),r&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(i!==r?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,i.Cg)([(0,c.MZ)()],Qe.prototype,"elements",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"fullExtent",null),(0,i.Cg)([(0,c.MZ)()],Qe.prototype,"spatialReference",null),Qe=(0,i.Cg)([(0,d.$)("esri.layers.support.LocalMediaElementSource")],Qe);let et=class extends((0,f.dM)((0,x.j)((0,g.q)((0,y.A)((0,a.P)(m.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)(async(e,t,i)=>{const{save:r,saveAs:s}=await n.e(3561).then(n.bind(n,63561));switch(e){case 0:return r(this,t);case 1:return s(this,i,t)}}),this.source=new Qe}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new s.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);const i=Le(t)?new Qe({elements:new r.A([t])}):t;this._set("effectiveSource",i),this.spatialReference&&(i.spatialReference=this.spatialReference),await i.load(e),this.spatialReference=i.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):o.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new Qe({elements:new r.A(e)}):e instanceof r.A?new Qe({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;const i=this._createSource(t);return i?.read(t,n),i}writeSource(e,t,n,i){if(e&&e instanceof Qe){const t=e.elements.length;if(1!==t)return void(i?.messages&&i.messages.push(new s.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}Le(e)?e.write(t,i):i?.messages&&(e?i.messages.push(new s.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):i.messages.push(new s.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new Ze;case"video":return new qe}return null}_getSourceOverride(e,t){if(Le(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=e.toJSON(),i=this._createSource(n);return i.read({...n},{origin:"portal-item"}),i.read({georeference:t},{origin:"web-map"}),i.read({georeference:t},{origin:"web-scene"}),i}return null}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"effectiveSource",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],et.prototype,"georeference",void 0),(0,i.Cg)([(0,h.w)("web-document","georeference")],et.prototype,"readGeoreference",null),(0,i.Cg)([(0,c.MZ)({type:String})],et.prototype,"copyright",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"fullExtent",null),(0,i.Cg)([(0,c.MZ)({type:["MediaLayer"]})],et.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],et.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:z}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Me(this,n?.origin)&&Le(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],et.prototype,"source",null),(0,i.Cg)([(0,u.w)("source")],et.prototype,"castSource",null),(0,i.Cg)([(0,h.w)("source",["url"])],et.prototype,"readSource",null),(0,i.Cg)([(0,p.K)("source")],et.prototype,"writeSource",null),(0,i.Cg)([(0,c.MZ)()],et.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],et.prototype,"type",void 0),et=(0,i.Cg)([(0,d.$)("esri.layers.MediaLayer")],et);const tt=et},38969:(e,t,n)=>{n.d(t,{i:()=>r});var i=n(37955);function r(e,t){return new Promise((n,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,i.Oo)(e,"canplay",n)),t((0,i.Oo)(e,"error",r)))})}},48163:(e,t,n)=>{function i(){return[0,0]}function r(e){return[e[0],e[1]]}function s(e,t){return[e,t]}function o(){return s(1,1)}function a(){return s(1,0)}function l(){return s(0,1)}n.d(t,{Un:()=>c,fA:()=>s,o8:()=>r,vt:()=>i});const c=o(),u=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:h,ZEROS:[0,0],clone:r,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:s,ones:o,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62885:(e,t,n)=>{n.d(t,{H:()=>s,V:()=>r});var i=n(7762);function r(e,t,n=i.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(r=e)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?t.addMany(e):e&&t.add(e)),t;var r}function s(e){return e}},69540:(e,t,n)=>{n.d(t,{OU:()=>u,Pw:()=>h});var i=n(31635),r=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,r={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),c=o.clonable;if(o.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,s.TU)(u,e),null!=u&&null==h)continue;0===a?l.set(t,h):r[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return c}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=u(r.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>b,wq:()=>a});var i=n(4576),r=n(21818),s=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),P.prune(),M.prune(),I.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(_(e,n))for(w.clear();n;){for(let r=0,s=n.children.length;r<s;r++){const s=n.children[r],o=n.leaf?i(s):s;_(e,o)&&(n.leaf?t(s):x(e,o)?l(s,t):w.push(s))}n=w.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!_(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],s=t.leaf?n(r):r;if(_(e,s)){if(t.leaf||x(e,s))return!0;w.push(r)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(M.clear(),I.clear();n||M.length>0;){if(n||(n=M.pop(),s=M.data[M.length-1],o=I.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),M.push(n),this._condense(M),this;a||n.leaf||!x(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(M.push(n),I.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const r=n-t+1;let s=this._maxEntries;if(r<=s){const i=new C(e.slice(t,n+1));return c(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(i-1)));const o=new R([]);o.height=i;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));v(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);v(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,i-1))}}return c(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);M.clear();const s=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=m(o),l=g(e,o)-a;l<r?(r=l,i=a<i?a:i,n=o):l===r&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,M);for(s.children.push(e),h(s,r);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(r,M,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i);if(!s)return;const o=n.children.splice(s,n.children.length-s),a=n.leaf?new C(o):new R(o);a.height=n.height,c(n,this._toBBox),c(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new R([e,t]),this._data.height=e.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,s;i=r=1/0;for(let o=t;o<=n-t;o++){const t=u(e,0,o,this._toBBox),a=u(e,o,n,this._toBBox),l=y(t,a),c=m(t)+m(a);l<i?(i=l,s=o,r=c<r?c:r):l===i&&c<r&&(r=c,s=o)}return s}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,s=u(e,0,t,r),o=u(e,n-t,n,r);let a=f(s)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(s,e.leaf?r(t):t),a+=f(s)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?r(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,i.qh)(s,n,s.length,r.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(P.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.zI)(e));else P.pushArray(n.children);n=P.pop()??null}}function c(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,i,r){r||(r=new C([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],h(r,e.leaf?i(s):s);return r}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,n,i,r){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,r),s.push(n,a,a,t)}}const w=new s.A,P=new s.A,M=new s.A,I=new s.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class C extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>l,kd:()=>a,r8:()=>c});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=c(e);for(const e of n)for(const n of e)n[0]+=t;return e}function c(e){return(0,s.Bi)(e)?e.rings:e.paths}},85648:(e,t,n)=>{n.d(t,{n:()=>r});var i=n(84952);function r(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const s={},o="text/plain",a=s[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},89056:(e,t,n)=>{n.d(t,{b3:()=>h,jZ:()=>u});var i=n(12195),r=n(19419),s=n(6606),o=n(95108),a=n(65864),l=n(80754),c=n(21325);function u(e){return d(e,!0)}function h(e){return d(e,!1)}function d(e,t){if(null==e)return null;const n=e.spatialReference,r=(0,c.Vp)(n),o=(0,i.W)(e)?e.toJSON():e;if(!r)return o;const u=(0,c.K8)(n)?102100:4326,h=l.j7[u].maxX,d=l.j7[u].minX;if((0,a.fT)(o))return m(o,h,d);if((0,a.U9)(o))return o.points=o.points.map(e=>m(e,h,d)),o;if((0,a.ZC)(o))return p(o,r);if((0,a.Bi)(o)||(0,a.Rg)(o)){const e=(0,s.Rg)(v,o),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},i=(0,l.kd)(n.xmin,d)*(2*h),r=0===i?o:(0,l.kS)(o,i);return n.xmin+=i,n.xmax+=i,n.xmax>h?x(r,h,t):n.xmin<d?x(r,d,t):r}return o}function p(e,t){if(!t)return e;const n=function(e,t){const n=[],{ymin:i,ymax:r,xmin:s,xmax:o}=e,a=e.xmax-e.xmin,[l,c]=t.valid,{x:u,frameId:h}=f(e.xmin,t),{x:d,frameId:p}=f(e.xmax,t),m=u===d&&a>0;if(a>2*c){const e={xmin:s<o?u:d,ymin:i,xmax:c,ymax:r},t={xmin:l,ymin:i,xmax:s<o?d:u,ymax:r},a={xmin:0,ymin:i,xmax:c,ymax:r},m={xmin:l,ymin:i,xmax:0,ymax:r},f=[],y=[];g(e,a)&&f.push(h),g(e,m)&&y.push(h),g(t,a)&&f.push(p),g(t,m)&&y.push(p);for(let e=h+1;e<p;e++)f.push(e),y.push(e);n.push(new _(e,[h]),new _(t,[p]),new _(a,f),new _(m,y))}else u>d||m?n.push(new _({xmin:u,ymin:i,xmax:c,ymax:r},[h]),new _({xmin:l,ymin:i,xmax:d,ymax:r},[p])):n.push(new _({xmin:u,ymin:i,xmax:d,ymax:r},[h]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,l.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,l.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,l.kd)(i,t);e.x+=n*(-2*t)}else if(i<n){const t=(0,l.kd)(i,n);e.x+=t*(-2*n)}}return e}function f(e,t){const[n,i]=t.valid,r=2*i;let s,o=0;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r,o=s):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r,o=-s),{x:e,frameId:o}}function g(e,t){const{xmin:n,ymin:i,xmax:r,ymax:s}=t;return y(e,n,i)&&y(e,n,s)&&y(e,r,s)&&y(e,r,i)}function y(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function x(e,t,n=!0){const i=!(0,a.Rg)(e);if(i&&(0,o.m3)(e),n)return(new w).cut(e,t);const r=i?e.rings:e.paths,s=i?4:2,l=r.length,c=-2*t;for(let e=0;e<l;e++){const t=r[e];if(t&&t.length>=s){const e=[];for(const[n,...i]of t)e.push([n+c,...i]);r.push(e)}}return i?e.rings=r:e.paths=r,e}class _{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,r.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(const e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(const n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);const i=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=i;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e[0],e[1],this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){const t=this._side(e[0]);if(t*this._prevSide===-1){const n=this._intersect(this._prevPt,e);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(e[0],e[1],t)}else this._lineTo(e[0],e[1],t);this._prevSide=t,this._prevPt=e}close(){const e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t,n){this._closed?(this._lineIn.push([n<=0?e:this._xCut,t]),this._lineOut.push([n>=0?e:this._xCut,t])):(n<=0&&this._lineIn.push([e,t]),n>=0&&this._lineOut.push([e,t]))}_lineTo(e,t,n){this._closed?(P(this._lineIn,n<=0?e:this._xCut,t),P(this._lineOut,n>=0?e:this._xCut,t)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([e,t])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([e,t])):this._prevSide<0?(this._lineIn.push([e,t]),this._lineOut.push([e,t])):this._prevSide>0&&(this._lineOut.push([e,t]),this._lineIn.push([e,t]))}_checkClosingPt(e){const t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0][1]=e[t-2][1],e.pop())}_side(e){return e<this._xCut?-1:e>this._xCut?1:0}_intersect(e,t){const n=(this._xCut-e[0])/(t[0]-e[0]);return e[1]+n*(t[1]-e[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function P(e,t,n){const i=e.length;i>1&&e[i-1][0]===t&&e[i-2][0]===t?e[i-1][1]=n:e.push([t,n])}}}]);