@arcgis/core 5.0.0-next.85 → 5.0.0-next.87

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 (992) hide show
  1. package/Basemap.d.ts +2 -2
  2. package/Camera.d.ts +3 -3
  3. package/CameraLayout.d.ts +2 -2
  4. package/Graphic.d.ts +3 -3
  5. package/Ground.d.ts +2 -2
  6. package/Ground.js +1 -1
  7. package/Map.d.ts +2 -2
  8. package/PopupTemplate.d.ts +3 -3
  9. package/Viewpoint.d.ts +2 -2
  10. package/WebDocument2D.d.ts +3 -3
  11. package/WebScene.d.ts +3 -3
  12. package/WebScene.js +1 -1
  13. package/analysis/Analysis.d.ts +3 -3
  14. package/analysis/Dimension/types.d.ts +0 -1
  15. package/analysis/DimensionSimpleStyle.d.ts +3 -3
  16. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +2 -2
  17. package/analysis/ElevationProfile/ElevationProfileLine.d.ts +2 -2
  18. package/analysis/ElevationProfile/ElevationProfileLineChartOptions.d.ts +2 -2
  19. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +2 -2
  20. package/analysis/ElevationProfile/ElevationProfileViewOptions.d.ts +2 -2
  21. package/analysis/LengthDimension.d.ts +3 -3
  22. package/analysis/LineOfSightAnalysisObserver.d.ts +3 -3
  23. package/analysis/LineOfSightAnalysisTarget.d.ts +3 -3
  24. package/analysis/ShadowCast/DiscreteOptions.d.ts +2 -2
  25. package/analysis/ShadowCast/MinDurationOptions.d.ts +2 -2
  26. package/analysis/ShadowCast/TotalDurationOptions.d.ts +2 -2
  27. package/analysis/ShadowCast/types.d.ts +0 -1
  28. package/analysis/SlicePlane.d.ts +3 -3
  29. package/analysis/Viewshed.d.ts +3 -3
  30. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +3 -3
  31. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +16 -4
  32. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.js +1 -1
  33. package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +3 -3
  34. package/analysis/VolumeMeasurement/types.d.ts +0 -1
  35. package/analysis/support/AnalysisOriginWebScene.d.ts +2 -2
  36. package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +80 -0
  37. package/applications/Components/OrientedImageryViewer/galleryUtils.js +5 -0
  38. package/applications/Components/clipboard.d.ts +106 -0
  39. package/applications/Components/clipboard.js +5 -0
  40. package/applications/Components/templateUtils.d.ts +30 -1
  41. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  42. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  43. package/assets/esri/core/t9n/Units.json +1 -1
  44. package/assets/esri/core/workers/RemoteClient.js +1 -1
  45. package/assets/esri/core/workers/chunks/{3b6fc34b6d92eef030e5.js → 0276e689e1371b40cff3.js} +1 -1
  46. package/assets/esri/core/workers/chunks/045a9cc900bb4ac8afde.js +1 -0
  47. package/assets/esri/core/workers/chunks/048173088bbeb1f6b8b6.js +1 -0
  48. package/assets/esri/core/workers/chunks/09ca0d05b090e9a70e61.js +1 -0
  49. package/assets/esri/core/workers/chunks/0be8b9d9ef56c37e74c3.js +1 -0
  50. package/assets/esri/core/workers/chunks/0bef671165e64f90ac86.js +1 -0
  51. package/assets/esri/core/workers/chunks/0c025d2b0d3162b07feb.js +1 -0
  52. package/assets/esri/core/workers/chunks/{84a4390b1c277c415d44.js → 0c358199ada2ff71e7d9.js} +1 -1
  53. package/assets/esri/core/workers/chunks/0c4ed18d67dea0c99f01.js +1 -0
  54. package/assets/esri/core/workers/chunks/0e0208b87566f4470f1d.js +1 -0
  55. package/assets/esri/core/workers/chunks/{c791e8ebf3ee0805c479.js → 0fc0fd7618ef25dd6b67.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{59e7a0215791b2b51180.js → 126183819921e6025c90.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{a09099697955eb44bfac.js → 15c180deb8d09127ad31.js} +1 -1
  58. package/assets/esri/core/workers/chunks/1616ee2f6dce0203f1d5.js +1 -0
  59. package/assets/esri/core/workers/chunks/1919ed99166e70021917.js +1 -0
  60. package/assets/esri/core/workers/chunks/1c68befc39d39799fcb8.js +1 -0
  61. package/assets/esri/core/workers/chunks/21bb414cb0623ffad577.js +1 -0
  62. package/assets/esri/core/workers/chunks/21c84e014c73bd85f4a3.js +1 -0
  63. package/assets/esri/core/workers/chunks/262677294d8c653e2b0b.js +1 -0
  64. package/assets/esri/core/workers/chunks/{04fddd41a8e6a4c1bc57.js → 28a6a59033baa44bafab.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{f5b32bc3f7ee911e3c59.js → 28c273f34ffde25cebc6.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{b7e40118b4d645e9f8e1.js → 2a12026f1ca9e8900a8b.js} +1 -1
  67. package/assets/esri/core/workers/chunks/2bc9f407f89d554a43ce.js +1 -0
  68. package/assets/esri/core/workers/chunks/2f21c5ae4fbe85c2792b.js +1 -0
  69. package/assets/esri/core/workers/chunks/3332ee9727874953523c.js +1 -0
  70. package/assets/esri/core/workers/chunks/{c477b0ce55211339c4cb.js → 33f44cc192c72064b5b6.js} +1 -1
  71. package/assets/esri/core/workers/chunks/365cb8aab4ca56999b47.js +1 -0
  72. package/assets/esri/core/workers/chunks/{b190a776de4859ac00f8.js → 3672125daca3df24c8ab.js} +1 -1
  73. package/assets/esri/core/workers/chunks/37a607f3835ec6f60834.js +1 -0
  74. package/assets/esri/core/workers/chunks/{c46a4681cbba638b58c1.js → 39dd80c184ac48f877f1.js} +1 -1
  75. package/assets/esri/core/workers/chunks/3a3adf9b6502ad698aea.js +1 -0
  76. package/assets/esri/core/workers/chunks/3b5f24bb824c95996308.js +1 -0
  77. package/assets/esri/core/workers/chunks/{304ea784c28dc78e5e65.js → 3c663035cf872b66cb98.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{055aead7135a2f8bca29.js → 3d924488471601a17915.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{98e04c2382fa5ba382fc.js → 3dc1ae04cfa2c06daf48.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{156c73a948bde11f0d53.js → 42b56932340b6d0bc712.js} +1 -1
  81. package/assets/esri/core/workers/chunks/45c1a3376b138eeee329.js +1 -0
  82. package/assets/esri/core/workers/chunks/{301fa6276f4098521106.js → 476e51284e6ed7dc5c99.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{18cdd268fc921ffd92e2.js → 47bea83ae7fe0e1acee0.js} +1 -1
  84. package/assets/esri/core/workers/chunks/4de93e9f91fd891ed96f.js +1 -0
  85. package/assets/esri/core/workers/chunks/4eb02a03956d1c9c77ee.js +1 -0
  86. package/assets/esri/core/workers/chunks/{1a41c9127ca5a260d5ef.js → 555a252bdb87e340bd02.js} +1 -1
  87. package/assets/esri/core/workers/chunks/5670e430584f020a3530.js +1 -0
  88. package/assets/esri/core/workers/chunks/5734aefbce8b6425630c.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1fe1a131be1d5e1e23ed.js → 5a1921c177580f17ff96.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{70df4331ed29d823bf38.js → 5b297353b058323f8080.js} +1 -1
  91. package/assets/esri/core/workers/chunks/5ef5dcca7c9b376f7f77.js +1 -0
  92. package/assets/esri/core/workers/chunks/{3849dc35941e569fae5f.js → 614c63dae0158da0ed3d.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{c500b59cd7da54fe72ec.js → 641450da2680ae09b8e7.js} +1 -1
  94. package/assets/esri/core/workers/chunks/{ec03d59984782529031a.js → 687677acc05b5e87effe.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{6de843d1809cba61ded3.js → 727321c615f35d708d46.js} +1 -1
  96. package/assets/esri/core/workers/chunks/782c24211daacb47b0b2.js +1 -0
  97. package/assets/esri/core/workers/chunks/79067e7d1ebc46afd775.js +1 -0
  98. package/assets/esri/core/workers/chunks/7a454e4d6df3360e0ab9.js +1 -0
  99. package/assets/esri/core/workers/chunks/7da56ba34c81d2bbaf25.js +1 -0
  100. package/assets/esri/core/workers/chunks/7f15d15c7e2c5d3e70c3.js +1 -0
  101. package/assets/esri/core/workers/chunks/{ce9467dc1ff695d795e5.js → 824b45b04b4f4f91dbce.js} +1 -1
  102. package/assets/esri/core/workers/chunks/836d10ceb93ed19f0aa6.js +1 -0
  103. package/assets/esri/core/workers/chunks/{854adab6a06af861c104.js → 837d39e70880e4310bda.js} +1 -1
  104. package/assets/esri/core/workers/chunks/890833e98e79b8fd3747.js +1 -0
  105. package/assets/esri/core/workers/chunks/{d6e11f05db698d14f21d.js → 8a7f56139b7de0011a37.js} +1 -1
  106. package/assets/esri/core/workers/chunks/8bcb2180ecc88a39b317.js +1 -0
  107. package/assets/esri/core/workers/chunks/8c5d827cbf8869defb87.js +1 -0
  108. package/assets/esri/core/workers/chunks/{db9a9712038df76e3eda.js → 8ef337e25d65670eb73b.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{e201bfe3158c025edc99.js → 93faad2a759b08dce619.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{1779e6eabc299831fc9f.js → 94c4ef224ff38eca7b87.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{9ff1e650ce0912afa780.js → 97155c8ac832d7c46f24.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{14f8215ab716c6d9d5f8.js → 98cb131b62e30aee35e1.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{b586d7e608e8ba8b88fe.js → 9b3b9df0aa0fdcc77aa2.js} +1 -1
  114. package/assets/esri/core/workers/chunks/{841058de8bc6e328fd68.js → 9d77a7d04872b4535e9e.js} +1 -1
  115. package/assets/esri/core/workers/chunks/{338768f94cc49559b209.js → 9ebc4303e29ee0fc1716.js} +1 -1
  116. package/assets/esri/core/workers/chunks/{5543de9a0435c319f4f9.js → 9fa1512baa6e95d3f878.js} +20 -20
  117. package/assets/esri/core/workers/chunks/{e8f6305744f87bbed961.js → a5ed35f53769feb751db.js} +1 -1
  118. package/assets/esri/core/workers/chunks/a6b8ce1c2996ee392bdf.js +1 -0
  119. package/assets/esri/core/workers/chunks/{a2c0c1bb5e775abefc90.js → aa09e261d1f7dffaad8c.js} +1 -1
  120. package/assets/esri/core/workers/chunks/b268b4cbf5b0c856f88e.js +1 -0
  121. package/assets/esri/core/workers/chunks/b2f6cee006788ce3bd16.js +1 -0
  122. package/assets/esri/core/workers/chunks/{9fac9eda0a41f7f4c2c6.js → b46e772e415e2cfca896.js} +1 -1
  123. package/assets/esri/core/workers/chunks/b4ab715a3c506e122f35.js +1 -0
  124. package/assets/esri/core/workers/chunks/{b91a157fb5f729de6597.js → b9756dce0b3af1a9dc54.js} +1 -1
  125. package/assets/esri/core/workers/chunks/baa7e90ec5259057d86b.js +1 -0
  126. package/assets/esri/core/workers/chunks/{52ae2073604deef63ea2.js → c083045d21636b95f26f.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{348560f083350ad0bf2e.js → c38098f7073a10efdb1e.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{4ff3c03cfbec928c0720.js → c4fb3f0b0cfb21e68413.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{adecd31fd64d6753682d.js → c7c865dc1a93e781a3e3.js} +1 -1
  130. package/assets/esri/core/workers/chunks/c8e56dc1239118ac2a60.js +1 -0
  131. package/assets/esri/core/workers/chunks/{181fab86394f1f912490.js → cc464d5a83f8f405e66c.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{d9d2178d436597b1afaf.js → cc6d9b2062b9de629111.js} +1 -1
  133. package/assets/esri/core/workers/chunks/d5386c0e77063c87fddd.js +1 -0
  134. package/assets/esri/core/workers/chunks/d782671235af2db1c458.js +1 -0
  135. package/assets/esri/core/workers/chunks/{f0eb2bfe5a8607b251f5.js → dc2c9b584f8e4627de7f.js} +1 -1
  136. package/assets/esri/core/workers/chunks/de33ce9b6f4e6c0e1389.js +1 -0
  137. package/assets/esri/core/workers/chunks/{0abb084b8a137f4fcdfc.js → e1c5773c12d9947bdc5f.js} +1 -1
  138. package/assets/esri/core/workers/chunks/e55ce8466aa979ac1e6b.js +1 -0
  139. package/assets/esri/core/workers/chunks/{21739c37160061f229ef.js → e585883d0036aa866420.js} +1 -1
  140. package/assets/esri/core/workers/chunks/e6d6d664fc9f2cd6a042.js +1 -0
  141. package/assets/esri/core/workers/chunks/e7cdc2a21104d84aec4a.js +1 -0
  142. package/assets/esri/core/workers/chunks/e9edf3987039def65859.js +1 -0
  143. package/assets/esri/core/workers/chunks/eb063660c37093f85349.js +1 -0
  144. package/assets/esri/core/workers/chunks/{c825ca22894bdb4d01ba.js → edbe52c2848486d64b16.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{4f8895eb57ec6ab4b318.js → f5a61fa75ac877b5bb74.js} +1 -1
  146. package/assets/esri/core/workers/chunks/f9bc4edfdb1590be2d92.js +1 -0
  147. package/assets/esri/core/workers/chunks/fc763ce37d631e006199.js +1 -0
  148. package/assets/esri/core/workers/chunks/ff2a170acd98edfd0e06.js +1 -0
  149. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  150. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  151. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  152. package/assets/esri/themes/base/widgets/_FeatureTable.scss +9 -1
  153. package/assets/esri/themes/dark/main.css +1 -1
  154. package/assets/esri/themes/light/main.css +1 -1
  155. package/assets/esri/themes/light/view.css +1 -1
  156. package/chunks/bundle.js +1 -1
  157. package/chunks/libtess-f32.js +1 -1
  158. package/chunks/libtess-f64.js +1 -1
  159. package/config.js +1 -1
  160. package/copyright.txt +84 -0
  161. package/core/Clonable.d.ts +0 -2
  162. package/core/Collection.d.ts +1 -1
  163. package/core/Error.d.ts +0 -1
  164. package/core/Evented.d.ts +0 -2
  165. package/core/Identifiable.d.ts +0 -1
  166. package/core/JSONSupport.d.ts +0 -2
  167. package/core/MultiOriginJSONSupport.d.ts +1 -3
  168. package/core/Promise.d.ts +9 -5
  169. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +0 -2
  170. package/core/Version.d.ts +0 -1
  171. package/core/accessorSupport/types.d.ts +0 -1
  172. package/core/quantity.js +1 -1
  173. package/core/quantityFormatUtils.js +1 -1
  174. package/core/sql/types.d.ts +0 -1
  175. package/core/timeUtils.js +1 -1
  176. package/core/types.d.ts +0 -1
  177. package/core/units.d.ts +2 -2
  178. package/core/units.js +1 -1
  179. package/core/workers/WorkerHandle.js +1 -1
  180. package/editing/Clipboard.js +5 -0
  181. package/editing/sharedTemplates/types.d.ts +0 -1
  182. package/effects/FocusArea.d.ts +3 -3
  183. package/effects/FocusAreaOutline.d.ts +3 -3
  184. package/effects/FocusAreas.d.ts +3 -3
  185. package/effects/types.d.ts +0 -1
  186. package/form/ExpressionInfo.d.ts +2 -2
  187. package/form/FormTemplate.d.ts +2 -2
  188. package/form/elements/Element.d.ts +2 -2
  189. package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -2
  190. package/geometry/Geometry.d.ts +2 -2
  191. package/geometry/HeightModelInfo.d.ts +2 -2
  192. package/geometry/Mesh.d.ts +3 -3
  193. package/geometry/SpatialReference.d.ts +2 -2
  194. package/geometry/ellipsoidUtils.js +1 -1
  195. package/geometry/geometryEngineTypes.d.ts +0 -1
  196. package/geometry/libtess.js +1 -1
  197. package/geometry/projection/projectors.js +1 -1
  198. package/geometry/projectionUtils.js +1 -1
  199. package/geometry/support/MeshComponent.d.ts +3 -3
  200. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +3 -3
  201. package/geometry/support/MeshLocalVertexSpace.d.ts +3 -3
  202. package/geometry/support/MeshMaterial.d.ts +3 -3
  203. package/geometry/support/MeshTexture.d.ts +3 -3
  204. package/geometry/support/MeshTextureTransform.d.ts +3 -3
  205. package/geometry/support/MeshTransform.d.ts +3 -3
  206. package/geometry/support/MeshVertexAttributes.d.ts +3 -3
  207. package/geometry/support/meshUtils/projection.js +1 -1
  208. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  209. package/geometry/support/planetGCSUtils.js +1 -1
  210. package/geometry/support/spatialReferenceUtils.js +1 -1
  211. package/graphic/GraphicOrigin.d.ts +0 -1
  212. package/ground/NavigationConstraint.d.ts +2 -2
  213. package/identity/Credential.d.ts +2 -2
  214. package/identity/IdentityModal.js +1 -1
  215. package/identity/OAuthInfo.d.ts +2 -2
  216. package/identity/ServerInfo.d.ts +2 -2
  217. package/interfaces.d.ts +2 -3
  218. package/intl/locale.d.ts +0 -1
  219. package/intl/messages.d.ts +0 -1
  220. package/intl/number.d.ts +0 -1
  221. package/intl/substitute.d.ts +0 -1
  222. package/intl/t9n.d.ts +0 -1
  223. package/kernel.js +1 -1
  224. package/layers/BaseElevationLayer.d.ts +3 -4
  225. package/layers/BingMapsLayer.d.ts +2 -2
  226. package/layers/BuildingSceneLayer.d.ts +5 -4
  227. package/layers/CatalogLayer.d.ts +3 -3
  228. package/layers/DimensionLayer.d.ts +2 -2
  229. package/layers/ElevationLayer.d.ts +3 -4
  230. package/layers/ElevationLayer.js +1 -1
  231. package/layers/FeatureLayer.d.ts +4 -4
  232. package/layers/GaussianSplatLayer.d.ts +2 -2
  233. package/layers/GeoJSONLayer.d.ts +2 -2
  234. package/layers/GeoRSSLayer.d.ts +2 -2
  235. package/layers/GroupLayer.d.ts +2 -2
  236. package/layers/ImageryLayer.d.ts +3 -3
  237. package/layers/ImageryTileLayer.d.ts +3 -3
  238. package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -2
  239. package/layers/IntegratedMeshLayer.d.ts +5 -4
  240. package/layers/KMLLayer.d.ts +2 -2
  241. package/layers/KnowledgeGraphLayer.d.ts +2 -2
  242. package/layers/Layer.d.ts +2 -2
  243. package/layers/LineOfSightLayer.d.ts +2 -2
  244. package/layers/LinkChartLayer.d.ts +2 -2
  245. package/layers/MapImageLayer.d.ts +2 -2
  246. package/layers/MapNotesLayer.d.ts +2 -2
  247. package/layers/MediaLayer.d.ts +2 -2
  248. package/layers/OGCFeatureLayer.d.ts +2 -2
  249. package/layers/ParquetLayer.d.ts +3 -3
  250. package/layers/PointCloudLayer.d.ts +5 -4
  251. package/layers/RouteLayer.d.ts +2 -2
  252. package/layers/SceneLayer.d.ts +6 -5
  253. package/layers/StreamLayer.d.ts +3 -3
  254. package/layers/SubtypeGroupLayer.d.ts +4 -4
  255. package/layers/TileLayer.d.ts +2 -2
  256. package/layers/UnknownLayer.d.ts +2 -2
  257. package/layers/UnsupportedLayer.d.ts +2 -2
  258. package/layers/VectorTileLayer.d.ts +2 -2
  259. package/layers/VideoLayer.d.ts +2 -2
  260. package/layers/ViewshedLayer.d.ts +2 -2
  261. package/layers/VoxelLayer.d.ts +2 -2
  262. package/layers/WCSLayer.d.ts +3 -3
  263. package/layers/WFSLayer.d.ts +2 -2
  264. package/layers/WMSLayer.d.ts +2 -2
  265. package/layers/WMTSLayer.d.ts +2 -2
  266. package/layers/WebTileLayer.d.ts +2 -2
  267. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -2
  268. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
  269. package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -2
  270. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -2
  271. package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
  272. package/layers/effects/types.d.ts +0 -1
  273. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  274. package/layers/knowledgeGraph/IdTypePair.d.ts +0 -1
  275. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
  276. package/layers/mixins/APIKeyMixin.d.ts +0 -1
  277. package/layers/mixins/ArcGISImageService.d.ts +30 -16
  278. package/layers/mixins/CustomParametersMixin.d.ts +0 -1
  279. package/layers/mixins/EditBusLayer.d.ts +0 -2
  280. package/layers/mixins/ImageryTileMixin.d.ts +2 -1
  281. package/layers/mixins/ImageryTileMixin.js +1 -1
  282. package/layers/mixins/OperationalLayer.d.ts +0 -1
  283. package/layers/mixins/ScaleRangeLayer.d.ts +0 -1
  284. package/layers/mixins/SceneService.d.ts +0 -6
  285. package/layers/orientedImagery/transformations/utils.js +1 -1
  286. package/layers/pointCloudFilters/PointCloudFilter.d.ts +2 -2
  287. package/layers/raster/datasets/pixelReader.d.ts +0 -1
  288. package/layers/raster/datasets/types.d.ts +0 -1
  289. package/layers/raster/functions/SpectralConversionFunction.js +5 -0
  290. package/layers/raster/functions/SpectralConversionFunctionArguments.js +5 -0
  291. package/layers/raster/functions/changeDetectionUtils.d.ts +0 -1
  292. package/layers/raster/functions/conversionUtils.js +1 -1
  293. package/layers/raster/functions/focalStatUtils.d.ts +0 -1
  294. package/layers/raster/functions/rasterFunctionHelper.js +1 -1
  295. package/layers/raster/functions/vectorFieldUtils.js +1 -1
  296. package/layers/scene/types.d.ts +11 -0
  297. package/layers/support/AggregateField.d.ts +2 -2
  298. package/layers/support/BuildingFilter.d.ts +2 -2
  299. package/layers/support/BuildingFilterBlock.d.ts +2 -2
  300. package/layers/support/BuildingSummaryStatistics.d.ts +3 -3
  301. package/layers/support/CodedValue.d.ts +2 -2
  302. package/layers/support/ControlPoint.d.ts +2 -2
  303. package/layers/support/ControlPointsGeoreference.d.ts +2 -2
  304. package/layers/support/DimensionalDefinition.d.ts +2 -2
  305. package/layers/support/DisplayFilter.d.ts +3 -3
  306. package/layers/support/DisplayFilterInfo.d.ts +3 -3
  307. package/layers/support/Domain.d.ts +2 -2
  308. package/layers/support/EditFieldsInfo.d.ts +3 -3
  309. package/layers/support/ElevationQuery.js +1 -1
  310. package/layers/support/ElevationTileData.js +1 -1
  311. package/layers/support/ExpressionInfo.d.ts +3 -3
  312. package/layers/support/FacilityLayerInfo.d.ts +2 -2
  313. package/layers/support/FeatureEffect.d.ts +2 -2
  314. package/layers/support/FeatureFilter.d.ts +2 -2
  315. package/layers/support/FeatureReductionBinning.d.ts +2 -2
  316. package/layers/support/FeatureReductionCluster.d.ts +2 -2
  317. package/layers/support/FeatureReductionSelection.d.ts +2 -2
  318. package/layers/support/FeatureTemplate.d.ts +3 -3
  319. package/layers/support/FeatureType.d.ts +3 -3
  320. package/layers/support/Field.d.ts +2 -2
  321. package/layers/support/FieldConfiguration.d.ts +3 -3
  322. package/layers/support/GeometryFieldsInfo.d.ts +3 -3
  323. package/layers/support/KMLSublayer.d.ts +3 -3
  324. package/layers/support/LOD.d.ts +2 -2
  325. package/layers/support/LabelClass.d.ts +2 -2
  326. package/layers/support/LabelExpressionInfo.d.ts +2 -2
  327. package/layers/support/LayerFloorInfo.d.ts +2 -2
  328. package/layers/support/LevelLayerInfo.d.ts +2 -2
  329. package/layers/support/LocalMediaElementSource.d.ts +3 -3
  330. package/layers/support/MapImage.d.ts +2 -2
  331. package/layers/support/MediaElementBase.d.ts +2 -2
  332. package/layers/support/MosaicRule.d.ts +2 -2
  333. package/layers/support/MultidimensionalSubset.d.ts +13 -4
  334. package/layers/support/OrderByInfo.d.ts +2 -2
  335. package/layers/support/ParquetGeometryEncodingLocation.d.ts +3 -3
  336. package/layers/support/ParquetGeometryEncodingWkb.d.ts +3 -3
  337. package/layers/support/PixelBlock.d.ts +2 -2
  338. package/layers/support/PlaybackInfo.d.ts +3 -3
  339. package/layers/support/PurgeOptions.d.ts +2 -2
  340. package/layers/support/RasterBandInfo.d.ts +2 -2
  341. package/layers/support/RasterFunction.d.ts +2 -2
  342. package/layers/support/RasterInfo.d.ts +2 -2
  343. package/layers/support/RasterSensorInfo.d.ts +2 -2
  344. package/layers/support/Relationship.d.ts +5 -3
  345. package/layers/support/RouteStopSymbols.d.ts +2 -2
  346. package/layers/support/RouteSymbols.d.ts +2 -2
  347. package/layers/support/SceneFilter.d.ts +2 -2
  348. package/layers/support/SceneLayerViewFilter.js +5 -0
  349. package/layers/support/SceneModification.d.ts +2 -2
  350. package/layers/support/SceneModifications.d.ts +1 -1
  351. package/layers/support/SiteLayerInfo.d.ts +2 -2
  352. package/layers/support/Sublayer.d.ts +2 -2
  353. package/layers/support/Subtype.d.ts +3 -3
  354. package/layers/support/SubtypeSublayer.d.ts +3 -3
  355. package/layers/support/TelemetryData.d.ts +3 -3
  356. package/layers/support/TelemetryDisplay.d.ts +3 -3
  357. package/layers/support/TileInfo.d.ts +2 -2
  358. package/layers/support/TileMatrixSet.d.ts +2 -2
  359. package/layers/support/TimeInfo.d.ts +3 -3
  360. package/layers/support/TrackInfo.d.ts +3 -3
  361. package/layers/support/TrackPartInfo.d.ts +3 -3
  362. package/layers/support/VideoTimeExtent.d.ts +3 -3
  363. package/layers/support/WMSSublayer.d.ts +2 -2
  364. package/layers/support/WMTSStyle.d.ts +2 -2
  365. package/layers/support/WMTSSublayer.d.ts +2 -2
  366. package/layers/support/rasterFunctionUtils.d.ts +0 -4
  367. package/layers/support/types.d.ts +32 -0
  368. package/layers/video/types.d.ts +0 -1
  369. package/layers/voxel/VoxelColorStop.d.ts +3 -3
  370. package/layers/voxel/VoxelDynamicSection.d.ts +3 -3
  371. package/layers/voxel/VoxelIsosurface.d.ts +3 -3
  372. package/layers/voxel/VoxelOpacityStop.d.ts +3 -3
  373. package/layers/voxel/VoxelRangeFilter.d.ts +3 -3
  374. package/layers/voxel/VoxelSlice.d.ts +3 -3
  375. package/layers/voxel/VoxelTransferFunctionStyle.d.ts +3 -3
  376. package/layers/voxel/VoxelUniqueValue.d.ts +3 -3
  377. package/layers/voxel/VoxelVariable.d.ts +2 -2
  378. package/layers/voxel/VoxelVariableStyle.d.ts +2 -2
  379. package/layers/voxel/VoxelVolumeStyle.d.ts +2 -2
  380. package/layers/wms/types.d.ts +0 -1
  381. package/layers/wmts/types.d.ts +0 -1
  382. package/linkChart/ChronologicalLayoutSettings.d.ts +3 -3
  383. package/linkChart/LayoutSettings.d.ts +3 -3
  384. package/linkChart/LinkChartProperties.d.ts +3 -3
  385. package/linkChart/NonspatialDataDisplay.d.ts +3 -3
  386. package/linkChart/OrganicLayoutSettings.d.ts +3 -3
  387. package/linkChart/types.d.ts +0 -1
  388. package/networks/CircuitManager.d.ts +2 -2
  389. package/networks/Network.d.ts +2 -2
  390. package/networks/UnitIdentifierManager.d.ts +2 -2
  391. package/networks/support/Circuit.d.ts +2 -2
  392. package/networks/support/CircuitLocation.d.ts +2 -2
  393. package/networks/support/CircuitPath.d.ts +2 -2
  394. package/networks/support/CircuitPathConnectivityElement.d.ts +2 -2
  395. package/networks/support/CircuitSection.d.ts +2 -2
  396. package/networks/support/NamedTraceConfiguration.d.ts +2 -2
  397. package/networks/support/Subcircuit.d.ts +2 -2
  398. package/networks/support/Terminal.d.ts +2 -2
  399. package/networks/support/TerminalConfiguration.d.ts +2 -2
  400. package/networks/support/TraceConfiguration.d.ts +2 -2
  401. package/networks/support/UNTraceConfiguration.d.ts +2 -2
  402. package/networks/support/typeUtils.d.ts +0 -1
  403. package/package.json +1 -1
  404. package/popup/ElementExpressionInfo.d.ts +2 -2
  405. package/popup/ExpressionInfo.d.ts +2 -2
  406. package/popup/FieldInfo.d.ts +3 -3
  407. package/popup/LayerOptions.d.ts +2 -2
  408. package/popup/RelatedRecordsInfo.d.ts +2 -2
  409. package/popup/content/AttachmentsContent.d.ts +2 -2
  410. package/popup/content/Content.d.ts +2 -2
  411. package/popup/content/RelationshipContent.d.ts +2 -2
  412. package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -2
  413. package/popup/content/mixins/MediaInfo.d.ts +2 -2
  414. package/popup/content/support/ChartMediaInfoValue.d.ts +2 -2
  415. package/popup/content/support/ImageMediaInfoValue.d.ts +2 -2
  416. package/popup/support/AttachmentsOrderByInfo.d.ts +3 -3
  417. package/popup/support/FieldInfoFormat.d.ts +3 -3
  418. package/popup/support/RelatedRecordsInfoFieldOrder.d.ts +2 -2
  419. package/popup/support/UtilityNetworkAssociationType.d.ts +3 -3
  420. package/portal/Portal.d.ts +2 -2
  421. package/portal/PortalFolder.d.ts +2 -2
  422. package/portal/PortalGroup.d.ts +2 -2
  423. package/portal/PortalItem.d.ts +2 -2
  424. package/portal/PortalUser.d.ts +2 -2
  425. package/portal/timeUnitKebabDictionary.js +1 -1
  426. package/renderers/FlowRenderer.d.ts +2 -2
  427. package/renderers/PieChartRenderer.d.ts +2 -2
  428. package/renderers/PointCloudRenderer.d.ts +2 -2
  429. package/renderers/RasterColormapRenderer.d.ts +2 -2
  430. package/renderers/RasterShadedReliefRenderer.d.ts +2 -2
  431. package/renderers/RasterStretchRenderer.d.ts +2 -2
  432. package/renderers/Renderer.d.ts +2 -2
  433. package/renderers/VectorFieldRenderer.d.ts +2 -2
  434. package/renderers/support/AttributeColorInfo.d.ts +2 -2
  435. package/renderers/support/AuthoringInfo.d.ts +2 -2
  436. package/renderers/support/AuthoringInfoClassBreakInfo.d.ts +2 -2
  437. package/renderers/support/AuthoringInfoFieldInfo.d.ts +2 -2
  438. package/renderers/support/AuthoringInfoVisualVariable.d.ts +2 -2
  439. package/renderers/support/ClassBreakInfo.d.ts +2 -2
  440. package/renderers/support/ColormapInfo.d.ts +2 -2
  441. package/renderers/support/DotDensityLegendOptions.d.ts +2 -2
  442. package/renderers/support/HeatmapColorStop.d.ts +2 -2
  443. package/renderers/support/HeatmapLegendOptions.d.ts +3 -3
  444. package/renderers/support/OthersCategory.d.ts +3 -3
  445. package/renderers/support/RasterPresetRenderer.d.ts +3 -3
  446. package/renderers/support/RendererLegendOptions.d.ts +3 -3
  447. package/renderers/support/UniqueValue.d.ts +3 -3
  448. package/renderers/support/UniqueValueClass.d.ts +3 -3
  449. package/renderers/support/UniqueValueGroup.d.ts +3 -3
  450. package/renderers/support/UniqueValueInfo.d.ts +2 -2
  451. package/renderers/support/pointCloud/ColorClassBreakInfo.d.ts +2 -2
  452. package/renderers/support/pointCloud/ColorModulation.d.ts +2 -2
  453. package/renderers/support/pointCloud/ColorUniqueValueInfo.d.ts +2 -2
  454. package/renderers/visualVariables/VisualVariable.d.ts +2 -2
  455. package/renderers/visualVariables/support/ColorSizeStop.d.ts +2 -2
  456. package/renderers/visualVariables/support/ColorStop.d.ts +2 -2
  457. package/renderers/visualVariables/support/OpacityStop.d.ts +2 -2
  458. package/renderers/visualVariables/support/SizeStop.d.ts +2 -2
  459. package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +3 -3
  460. package/rest/featureService/FeatureService.d.ts +2 -2
  461. package/rest/geoprocessor/GPOptions.d.ts +2 -2
  462. package/rest/geoprocessor/utils.js +1 -1
  463. package/rest/imageService.d.ts +36 -19
  464. package/rest/imageService.js +1 -1
  465. package/rest/knowledgeGraph/DataModel.d.ts +2 -2
  466. package/rest/knowledgeGraph/FieldIndex.d.ts +2 -2
  467. package/rest/knowledgeGraph/GraphObject.d.ts +2 -2
  468. package/rest/knowledgeGraph/GraphObjectType.d.ts +2 -2
  469. package/rest/knowledgeGraph/GraphProperty.d.ts +2 -2
  470. package/rest/knowledgeGraph/KnowledgeGraph.d.ts +2 -2
  471. package/rest/knowledgeGraph/Path.d.ts +2 -2
  472. package/rest/knowledgeGraph/ServiceDefinition.d.ts +2 -2
  473. package/rest/knowledgeGraph/SourceTypeValueBehavior.d.ts +2 -2
  474. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.d.ts +2 -2
  475. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.d.ts +2 -2
  476. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.d.ts +2 -2
  477. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsResultJSON.d.ts +0 -1
  478. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.d.ts +2 -2
  479. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +0 -1
  480. package/rest/lastMileDelivery/types.d.ts +0 -1
  481. package/rest/layerSources/DynamicDataLayer.d.ts +2 -2
  482. package/rest/layerSources/DynamicMapLayer.d.ts +2 -2
  483. package/rest/layerSources/JoinTableDataSource.d.ts +2 -2
  484. package/rest/layerSources/QueryTableDataSource.d.ts +2 -2
  485. package/rest/layerSources/RasterDataSource.d.ts +2 -2
  486. package/rest/layerSources/TableDataSource.d.ts +2 -2
  487. package/rest/networks/circuits/support/CircuitTraceResult.d.ts +2 -2
  488. package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +2 -2
  489. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +2 -2
  490. package/rest/networks/support/AggregatedGeometry.d.ts +2 -2
  491. package/rest/networks/support/Association.d.ts +2 -2
  492. package/rest/networks/support/AssociationGeometriesResult.d.ts +2 -2
  493. package/rest/networks/support/FunctionResult.d.ts +2 -2
  494. package/rest/networks/support/NetworkElement.d.ts +2 -2
  495. package/rest/networks/support/QueryAssociationsParameters.d.ts +2 -2
  496. package/rest/networks/support/QueryAssociationsResult.d.ts +2 -2
  497. package/rest/networks/support/QueryNamedTraceConfigurationsParameters.d.ts +2 -2
  498. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +2 -2
  499. package/rest/networks/support/TraceLocation.d.ts +3 -3
  500. package/rest/networks/support/TraceParameters.d.ts +2 -2
  501. package/rest/networks/support/TraceResult.d.ts +2 -2
  502. package/rest/networks/support/ValidateNetworkTopologyParameters.d.ts +2 -2
  503. package/rest/networks/support/ValidateNetworkTopologyResult.d.ts +2 -2
  504. package/rest/query/support/AttachmentInfo.d.ts +2 -2
  505. package/rest/support/AddressCandidate.d.ts +2 -2
  506. package/rest/support/AddressToLocationsParameters.d.ts +2 -2
  507. package/rest/support/AddressesToLocationsParameters.d.ts +2 -2
  508. package/rest/support/ArealUnit.d.ts +2 -2
  509. package/rest/support/AreasAndLengthsParameters.d.ts +2 -2
  510. package/rest/support/AttachmentQuery.d.ts +2 -2
  511. package/rest/support/AttributeBinsFeatureSet.d.ts +2 -2
  512. package/rest/support/AttributeBinsGrouping.d.ts +3 -3
  513. package/rest/support/AttributeBinsQuery.d.ts +3 -3
  514. package/rest/support/BaseImageMeasureParameters.d.ts +2 -2
  515. package/rest/support/BaseImageMeasureResult.d.ts +2 -2
  516. package/rest/support/BaseImageMeasureResultValue.d.ts +2 -2
  517. package/rest/support/BinParametersBase.d.ts +3 -3
  518. package/rest/support/BufferParameters.d.ts +2 -2
  519. package/rest/support/CameraInfo.d.ts +2 -2
  520. package/rest/support/CameraInfoMixin.d.ts +0 -1
  521. package/rest/support/ClosestFacilityParameters.d.ts +3 -3
  522. package/rest/support/ClosestFacilitySolveResult.d.ts +2 -2
  523. package/rest/support/ColorRamp.d.ts +2 -2
  524. package/rest/support/DataFile.d.ts +2 -2
  525. package/rest/support/DataLayer.d.ts +3 -3
  526. package/rest/support/DateBinTimeInterval.d.ts +3 -3
  527. package/rest/support/DensifyParameters.d.ts +2 -2
  528. package/rest/support/DirectionLine.d.ts +3 -3
  529. package/rest/support/DirectionPoint.d.ts +3 -3
  530. package/rest/support/DirectionsEvent.d.ts +2 -2
  531. package/rest/support/DirectionsString.d.ts +2 -2
  532. package/rest/support/FeatureSet.d.ts +2 -2
  533. package/rest/support/FindImagesParameters.d.ts +3 -3
  534. package/rest/support/FindImagesResult.d.ts +2 -2
  535. package/rest/support/FindParameters.d.ts +2 -2
  536. package/rest/support/FindResult.d.ts +2 -2
  537. package/rest/support/GPMessage.d.ts +2 -2
  538. package/rest/support/GeneralizeParameters.d.ts +2 -2
  539. package/rest/support/IdentifyParameters.d.ts +2 -2
  540. package/rest/support/IdentifyResult.d.ts +2 -2
  541. package/rest/support/ImageAngleParameters.d.ts +2 -2
  542. package/rest/support/ImageAngleResult.d.ts +2 -2
  543. package/rest/support/ImageBoundaryParameters.d.ts +3 -3
  544. package/rest/support/ImageBoundaryResult.d.ts +2 -2
  545. package/rest/support/ImageGPSInfo.d.ts +2 -2
  546. package/rest/support/ImageGPSInfoParameters.d.ts +3 -3
  547. package/rest/support/ImageGPSInfoResult.d.ts +2 -2
  548. package/rest/support/ImageHistogramParameters.d.ts +2 -2
  549. package/rest/support/ImageIdentifyParameters.d.ts +2 -2
  550. package/rest/support/ImageIdentifyResult.d.ts +2 -2
  551. package/rest/support/ImageInspectionInfo.d.ts +2 -2
  552. package/rest/support/ImagePixelLocationParameters.d.ts +2 -2
  553. package/rest/support/ImagePixelLocationResult.d.ts +2 -2
  554. package/rest/support/ImageSample.d.ts +2 -2
  555. package/rest/support/ImageSampleParameters.d.ts +2 -2
  556. package/rest/support/ImageSampleResult.d.ts +2 -2
  557. package/rest/support/ImageToMapMultirayParameters.d.ts +3 -3
  558. package/rest/support/ImageToMapParameters.d.ts +3 -3
  559. package/rest/support/ImageUrlParameters.d.ts +3 -3
  560. package/rest/support/ImageUrlResult.d.ts +2 -2
  561. package/rest/support/ImageVolume.d.ts +2 -2
  562. package/rest/support/ImageVolumeParameters.d.ts +3 -3
  563. package/rest/support/ImageVolumeResult.d.ts +2 -2
  564. package/rest/support/JobInfo.d.ts +2 -2
  565. package/rest/support/LastMileDeliveryParameters.d.ts +3 -3
  566. package/rest/support/LegendLayer.d.ts +2 -2
  567. package/rest/support/LengthsParameters.d.ts +2 -2
  568. package/rest/support/LinearUnit.d.ts +2 -2
  569. package/rest/support/LocateSettingBase.d.ts +3 -3
  570. package/rest/support/LocateSettingSource.d.ts +3 -3
  571. package/rest/support/LocateSettings.d.ts +3 -3
  572. package/rest/support/LocateSettingsOverrides.d.ts +3 -3
  573. package/rest/support/LocationToAddressParameters.d.ts +2 -2
  574. package/rest/support/MapToImageParameters.d.ts +3 -3
  575. package/rest/support/MeasureAreaFromImageResult.d.ts +2 -2
  576. package/rest/support/MeasureFromImageParameters.d.ts +2 -2
  577. package/rest/support/MeasureLengthFromImageResult.d.ts +2 -2
  578. package/rest/support/NetworkUrl.d.ts +3 -3
  579. package/rest/support/NormalizationBinParametersMixin.d.ts +0 -1
  580. package/rest/support/OffsetParameters.d.ts +2 -2
  581. package/rest/support/ParameterValue.d.ts +4 -2
  582. package/rest/support/PointBarrier.d.ts +3 -3
  583. package/rest/support/PolygonBarrier.d.ts +3 -3
  584. package/rest/support/PolylineBarrier.d.ts +3 -3
  585. package/rest/support/ProjectParameters.d.ts +2 -2
  586. package/rest/support/QuantizationParameters.d.ts +2 -2
  587. package/rest/support/Query.d.ts +2 -2
  588. package/rest/support/RasterData.d.ts +2 -2
  589. package/rest/support/RelationParameters.d.ts +2 -2
  590. package/rest/support/RelationshipQuery.d.ts +2 -2
  591. package/rest/support/RouteInfo.d.ts +3 -3
  592. package/rest/support/RouteParameters.d.ts +3 -3
  593. package/rest/support/RouteResult.d.ts +2 -2
  594. package/rest/support/RouteSolveResult.d.ts +2 -2
  595. package/rest/support/ServiceAreaParameters.d.ts +3 -3
  596. package/rest/support/ServiceAreaSolveResult.d.ts +2 -2
  597. package/rest/support/StatisticDefinition.d.ts +2 -2
  598. package/rest/support/Stop.d.ts +3 -3
  599. package/rest/support/SuggestLocationsParameters.d.ts +2 -2
  600. package/rest/support/TimeUnit.d.ts +42 -0
  601. package/rest/support/TimeUnit.js +5 -0
  602. package/rest/support/TopFeaturesQuery.d.ts +2 -2
  603. package/rest/support/TopFilter.d.ts +2 -2
  604. package/rest/support/TravelMode.d.ts +3 -3
  605. package/rest/support/TrimExtendParameters.d.ts +2 -2
  606. package/rest/support/parameterValueUtils.js +1 -1
  607. package/rest/types.d.ts +1 -1
  608. package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.d.ts +2 -2
  609. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.d.ts +2 -2
  610. package/rest/versionManagement/support/CreateVersionParameters.d.ts +2 -2
  611. package/rest/versionManagement/support/GetVersionInfosParameters.d.ts +2 -2
  612. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  613. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  614. package/statistics/types.d.ts +0 -1
  615. package/support/MapFloorInfo.d.ts +2 -2
  616. package/support/revision.js +1 -1
  617. package/symbols/Font.d.ts +2 -2
  618. package/symbols/LineStyleMarker3D.d.ts +3 -3
  619. package/symbols/LineSymbolMarker.d.ts +2 -2
  620. package/symbols/Symbol.d.ts +2 -2
  621. package/symbols/Symbol3DLayer.d.ts +2 -2
  622. package/symbols/callouts/Callout3D.d.ts +2 -2
  623. package/symbols/callouts/LineCallout3DBorder.d.ts +2 -2
  624. package/symbols/edges/Edges3D.d.ts +2 -2
  625. package/symbols/patterns/LinePattern3D.d.ts +2 -2
  626. package/symbols/patterns/Pattern3D.d.ts +2 -2
  627. package/symbols/support/ElevationInfo.d.ts +10 -4
  628. package/symbols/support/FeatureExpressionInfo.d.ts +2 -2
  629. package/symbols/support/IconSymbol3DLayerResource.d.ts +2 -2
  630. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +2 -2
  631. package/symbols/support/OccludedVisibility.d.ts +3 -3
  632. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  633. package/symbols/support/Symbol3DHalo.d.ts +2 -2
  634. package/symbols/support/Symbol3DIconOutline.d.ts +2 -2
  635. package/symbols/support/Symbol3DMaterial.d.ts +6 -4
  636. package/symbols/support/Symbol3DMaterial.js +1 -1
  637. package/symbols/support/Symbol3DOutline.d.ts +2 -2
  638. package/symbols/support/Symbol3DTextBackground.d.ts +3 -3
  639. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  640. package/symbols/support/types.d.ts +0 -1
  641. package/tables/AttributeTableTemplate.d.ts +2 -2
  642. package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -2
  643. package/tables/elements/AttributeTableElement.d.ts +2 -2
  644. package/tables/elements/AttributeTableFieldElement.d.ts +2 -2
  645. package/tables/elements/AttributeTableGroupElement.d.ts +2 -2
  646. package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -2
  647. package/tables/support/FieldOrder.d.ts +3 -3
  648. package/time/TimeExtent.d.ts +2 -2
  649. package/time/TimeExtent.js +1 -1
  650. package/time/TimeInterval.d.ts +3 -3
  651. package/time/types.d.ts +0 -1
  652. package/versionManagement/VersionManagementService.d.ts +2 -2
  653. package/versionManagement/VersioningState.d.ts +2 -2
  654. package/versionManagement/support/type.d.ts +0 -1
  655. package/views/2d/ViewState.d.ts +2 -2
  656. package/views/2d/engine/imagery/RasterVFContainer.js +1 -1
  657. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  658. package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
  659. package/views/2d/engine/rasterBrushes.js +1 -1
  660. package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +5 -0
  661. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
  662. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
  663. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
  664. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
  665. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
  666. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
  667. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
  668. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
  669. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
  670. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
  671. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
  672. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
  673. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
  674. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
  675. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
  676. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
  677. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
  678. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
  679. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
  680. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
  681. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +5 -0
  682. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +5 -0
  683. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  684. package/views/2d/layers/MediaLayerView2D.js +1 -1
  685. package/views/2d/layers/TileLayerView2D.js +1 -1
  686. package/views/2d/layers/imagery/ImageryVFStrategy.js +1 -1
  687. package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
  688. package/views/2d/layers/support/MediaLayerInteractionOptions.d.ts +0 -1
  689. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  690. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  691. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  692. package/views/3d/analysis/Dimension/types.d.ts +0 -1
  693. package/views/3d/analysis/Slice/types.d.ts +0 -1
  694. package/views/3d/analysis/Viewshed/types.d.ts +0 -1
  695. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  696. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementRawResult.js +5 -0
  697. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +5 -1
  698. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.js +1 -1
  699. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  700. package/views/3d/constraints/AltitudeConstraint.d.ts +2 -2
  701. package/views/3d/constraints/ClipDistanceConstraint.d.ts +2 -2
  702. package/views/3d/constraints/Constraints.d.ts +2 -2
  703. package/views/3d/constraints/TiltConstraint.d.ts +2 -2
  704. package/views/3d/environment/CloudyWeather.d.ts +2 -2
  705. package/views/3d/environment/EnvironmentManager.js +1 -1
  706. package/views/3d/environment/FoggyWeather.d.ts +2 -2
  707. package/views/3d/environment/RainyWeather.d.ts +2 -2
  708. package/views/3d/environment/SnowyWeather.d.ts +2 -2
  709. package/views/3d/environment/SunLighting.d.ts +2 -2
  710. package/views/3d/environment/SunnyWeather.d.ts +2 -2
  711. package/views/3d/environment/VirtualLighting.d.ts +2 -2
  712. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  713. package/views/3d/layers/FlowSubView3D.js +1 -1
  714. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  715. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  716. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  717. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  718. package/views/3d/layers/graphics/emissiveUtils.js +5 -0
  719. package/views/3d/layers/support/layerUtils.js +1 -1
  720. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  721. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  722. package/views/3d/support/mathUtils.js +1 -1
  723. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  724. package/views/3d/support/supportedSpatialReference.js +1 -1
  725. package/views/3d/terrain/terrainUtils.js +1 -1
  726. package/views/3d/webgl/ManagedFBO.js +1 -1
  727. package/views/3d/webgl/ManagedFBOResource.d.ts +0 -1
  728. package/views/3d/webgl/RenderNode.d.ts +1 -1
  729. package/views/3d/webgl/RenderNode.js +1 -1
  730. package/views/3d/webgl/types.d.ts +0 -1
  731. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  732. package/views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js +1 -1
  733. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  734. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  735. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  736. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  737. package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
  738. package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
  739. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  740. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  741. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  742. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  743. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +31 -23
  744. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  745. package/views/3d/webgl.d.ts +16 -8
  746. package/views/3d/webgl.js +1 -1
  747. package/views/Theme.d.ts +2 -2
  748. package/views/VideoView.d.ts +4 -4
  749. package/views/VideoView.js +1 -1
  750. package/views/View.d.ts +3 -3
  751. package/views/View2D.d.ts +2 -2
  752. package/views/ViewAnimation.d.ts +2 -2
  753. package/views/Viewport2DMixin.d.ts +0 -2
  754. package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +2 -2
  755. package/views/animation/types.d.ts +0 -1
  756. package/views/draw/CursorUpdateEvent.d.ts +0 -1
  757. package/views/draw/DrawAction.d.ts +3 -3
  758. package/views/draw/DrawCompleteEvent.d.ts +0 -1
  759. package/views/draw/VertexAddEvent.d.ts +0 -1
  760. package/views/draw/VertexRemoveEvent.d.ts +0 -1
  761. package/views/draw/support/managers/{DrawTooltipManager.js → TooltipManager.js} +1 -1
  762. package/views/draw/types.d.ts +0 -1
  763. package/views/input/ViewEvents.js +1 -1
  764. package/views/input/recognizers/VerticalTwoFingerDrag.js +1 -1
  765. package/views/input/types.d.ts +94 -0
  766. package/views/interactive/Tooltip.d.ts +2 -2
  767. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  768. package/views/interactive/tooltip/types.d.ts +0 -1
  769. package/views/layers/ImageryTileLayerViewMixin.d.ts +0 -1
  770. package/views/layers/LayerView.d.ts +3 -3
  771. package/views/layers/SceneLayerView.js +1 -1
  772. package/views/layers/types.d.ts +0 -1
  773. package/views/navigation/types.d.ts +0 -1
  774. package/views/support/AttributionItem.d.ts +0 -1
  775. package/views/support/MeasurementWorker.js +1 -1
  776. package/views/support/MeasurementWorkerHandle.js +1 -1
  777. package/views/support/measurementUtils.js +1 -1
  778. package/views/support/screenUtils.js +1 -1
  779. package/views/ui/UI.d.ts +2 -2
  780. package/webdoc/GeotriggersInfo.d.ts +3 -3
  781. package/webdoc/IPSInfo.d.ts +3 -3
  782. package/webdoc/Widgets.d.ts +2 -2
  783. package/webdoc/applicationProperties/Search.d.ts +2 -2
  784. package/webdoc/applicationProperties/SearchLayer.d.ts +2 -2
  785. package/webdoc/applicationProperties/SearchLayerField.d.ts +2 -2
  786. package/webdoc/applicationProperties/SearchTable.d.ts +2 -2
  787. package/webdoc/applicationProperties/SearchTableField.d.ts +2 -2
  788. package/webdoc/applicationProperties/Viewing.d.ts +2 -2
  789. package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +3 -3
  790. package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +3 -3
  791. package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +3 -3
  792. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +3 -3
  793. package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +3 -3
  794. package/webdoc/geotriggersInfo/Geotrigger.d.ts +3 -3
  795. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +3 -3
  796. package/webdoc/geotriggersInfo/support/typeUtils.d.ts +0 -1
  797. package/webdoc/ips/AppleIPSProperties.d.ts +3 -3
  798. package/webdoc/ips/Configuration.d.ts +3 -3
  799. package/webdoc/ips/GNSSProperties.d.ts +3 -3
  800. package/webdoc/ips/PathSnappingProperties.d.ts +3 -3
  801. package/webdoc/ips/PositioningService.d.ts +3 -3
  802. package/webdoc/ips/SmoothingProperties.d.ts +3 -3
  803. package/webdoc/support/SlideThumbnail.d.ts +3 -3
  804. package/webdoc/support/types.d.ts +0 -1
  805. package/webdoc/widgets/FloorFilter.d.ts +2 -2
  806. package/webdoc/widgets/TimeSlider.d.ts +2 -2
  807. package/webmap/ApplicationProperties.d.ts +2 -2
  808. package/webmap/Bookmark.d.ts +2 -2
  809. package/webmap/InitialViewProperties.d.ts +2 -2
  810. package/webmap/background/ColorBackground.d.ts +2 -2
  811. package/webscene/ApplicationProperties.d.ts +2 -2
  812. package/webscene/Environment.d.ts +2 -2
  813. package/webscene/InitialViewProperties.d.ts +3 -3
  814. package/webscene/Presentation.d.ts +3 -3
  815. package/webscene/Slide.d.ts +4 -4
  816. package/webscene/SlideLegendInfo.d.ts +3 -3
  817. package/webscene/SunLighting.d.ts +2 -2
  818. package/webscene/VirtualLighting.d.ts +2 -2
  819. package/webscene/background/Background.d.ts +2 -2
  820. package/webscene/support/Description.d.ts +3 -3
  821. package/webscene/support/FeatureReference.d.ts +3 -3
  822. package/webscene/support/FeatureReferenceId.d.ts +3 -3
  823. package/webscene/support/LayerReference.d.ts +3 -3
  824. package/webscene/support/SlideElements.d.ts +3 -3
  825. package/webscene/support/SlideEnvironment.d.ts +3 -3
  826. package/webscene/support/SlideGround.d.ts +3 -3
  827. package/webscene/support/SlidePopupInfo.d.ts +3 -3
  828. package/webscene/support/SlideVisibleLayer.d.ts +3 -3
  829. package/webscene/support/Title.d.ts +3 -3
  830. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  831. package/widgets/AreaMeasurement2D.d.ts +1 -0
  832. package/widgets/AreaMeasurement2D.js +1 -1
  833. package/widgets/Attachments/types.d.ts +0 -1
  834. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  835. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
  836. package/widgets/BasemapLayerList/types.d.ts +0 -1
  837. package/widgets/BasemapLayerList.d.ts +1 -0
  838. package/widgets/BasemapLayerList.js +1 -1
  839. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +2 -2
  840. package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -2
  841. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
  842. package/widgets/CatalogLayerList/types.d.ts +0 -1
  843. package/widgets/CatalogLayerList.d.ts +1 -0
  844. package/widgets/CatalogLayerList.js +1 -1
  845. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
  846. package/widgets/Daylight/DaylightViewModel.d.ts +2 -2
  847. package/widgets/Daylight/types.d.ts +0 -1
  848. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +2 -2
  849. package/widgets/DirectionalPad/types.d.ts +0 -1
  850. package/widgets/Directions/DirectionsViewModel.d.ts +2 -2
  851. package/widgets/Directions.d.ts +1 -0
  852. package/widgets/Directions.js +1 -1
  853. package/widgets/DistanceMeasurement2D.d.ts +1 -0
  854. package/widgets/DistanceMeasurement2D.js +1 -1
  855. package/widgets/Editor/EditorViewModel.d.ts +2 -2
  856. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +2 -2
  857. package/widgets/Editor/Workflow.d.ts +2 -2
  858. package/widgets/Editor.d.ts +1 -0
  859. package/widgets/Editor.js +1 -1
  860. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
  861. package/widgets/FeatureForm/FeatureFormViewModel.d.ts +3 -3
  862. package/widgets/FeatureForm.d.ts +1 -0
  863. package/widgets/FeatureForm.js +1 -1
  864. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -2
  865. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +3 -3
  866. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +0 -1
  867. package/widgets/FeatureTable/support/TableTemplate.d.ts +3 -3
  868. package/widgets/FeatureTable.d.ts +1 -0
  869. package/widgets/FeatureTable.js +1 -1
  870. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +2 -2
  871. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  872. package/widgets/FloorFilter.d.ts +1 -0
  873. package/widgets/FloorFilter.js +1 -1
  874. package/widgets/Histogram/types.d.ts +0 -1
  875. package/widgets/HistogramRangeSlider/types.d.ts +0 -1
  876. package/widgets/Home/HomeViewModel.d.ts +2 -2
  877. package/widgets/Home.d.ts +1 -2
  878. package/widgets/LayerList/LayerListViewModel.d.ts +2 -2
  879. package/widgets/LayerList.d.ts +1 -0
  880. package/widgets/LayerList.js +1 -1
  881. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +2 -2
  882. package/widgets/Measurement/types.d.ts +0 -1
  883. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +3 -3
  884. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  885. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  886. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  887. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  888. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  889. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  890. package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
  891. package/widgets/OrientedImageryViewer/services/TransformationService.js +5 -0
  892. package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +5 -0
  893. package/widgets/OrientedImageryViewer/support/geometryUtils.js +5 -0
  894. package/widgets/OrientedImageryViewer/support/typeUtils.js +5 -0
  895. package/widgets/OrientedImageryViewer/types.d.ts +0 -1
  896. package/widgets/Print/CustomTemplate.d.ts +2 -2
  897. package/widgets/Print/PrintViewModel.d.ts +3 -3
  898. package/widgets/ScaleRangeSlider/types.d.ts +0 -1
  899. package/widgets/ScaleRangeSlider.d.ts +1 -0
  900. package/widgets/ScaleRangeSlider.js +1 -1
  901. package/widgets/Search/SearchSource.d.ts +2 -2
  902. package/widgets/Search/SearchViewModel.d.ts +3 -4
  903. package/widgets/ShadowCast/types.d.ts +0 -1
  904. package/widgets/Sketch/SketchViewModel.d.ts +2 -2
  905. package/widgets/Sketch.d.ts +1 -0
  906. package/widgets/Sketch.js +1 -1
  907. package/widgets/Swipe/types.d.ts +0 -1
  908. package/widgets/TableList/TableListViewModel.d.ts +2 -2
  909. package/widgets/TableList.d.ts +1 -0
  910. package/widgets/TableList.js +1 -1
  911. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -2
  912. package/widgets/TimeSlider.d.ts +1 -0
  913. package/widgets/TimeSlider.js +1 -1
  914. package/widgets/Track/types.d.ts +0 -1
  915. package/widgets/UtilityNetworkAssociations.d.ts +1 -0
  916. package/widgets/UtilityNetworkAssociations.js +1 -1
  917. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +2 -2
  918. package/widgets/UtilityNetworkTrace.d.ts +1 -0
  919. package/widgets/UtilityNetworkTrace.js +1 -1
  920. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -0
  921. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  922. package/widgets/ValuePicker/types.d.ts +0 -1
  923. package/widgets/ValuePicker.d.ts +1 -0
  924. package/widgets/ValuePicker.js +1 -1
  925. package/widgets/Weather/types.d.ts +0 -1
  926. package/widgets/Widget.d.ts +3 -3
  927. package/widgets/support/GeolocationPositioning.d.ts +2 -2
  928. package/widgets/support/GridControls/GridControlsViewModel.d.ts +2 -2
  929. package/widgets/support/GridControls/types.d.ts +0 -1
  930. package/widgets/support/forms/types.d.ts +0 -1
  931. package/widgets/types.d.ts +1 -2
  932. package/assets/esri/core/workers/chunks/00e135dc1b4cb024973d.js +0 -1
  933. package/assets/esri/core/workers/chunks/03da31c7635d077e8d99.js +0 -1
  934. package/assets/esri/core/workers/chunks/185c97bc63ce546995ce.js +0 -1
  935. package/assets/esri/core/workers/chunks/1a13b472e0cf9f88e8de.js +0 -1
  936. package/assets/esri/core/workers/chunks/1a62c456e791c82050fe.js +0 -1
  937. package/assets/esri/core/workers/chunks/25dead73dfc5a4c19285.js +0 -1
  938. package/assets/esri/core/workers/chunks/2767b69085c9f7a1e1af.js +0 -1
  939. package/assets/esri/core/workers/chunks/3606fc5537c4d11b9554.js +0 -1
  940. package/assets/esri/core/workers/chunks/3ad7ec46adecf00ae1c2.js +0 -1
  941. package/assets/esri/core/workers/chunks/3b67aa46a60e35469bf8.js +0 -1
  942. package/assets/esri/core/workers/chunks/43e9eaedf65921b58eb2.js +0 -1
  943. package/assets/esri/core/workers/chunks/4b09d92c51c4619b548a.js +0 -1
  944. package/assets/esri/core/workers/chunks/4caec60ac0a5851730c6.js +0 -1
  945. package/assets/esri/core/workers/chunks/5119e3159617b8e1ea13.js +0 -1
  946. package/assets/esri/core/workers/chunks/52684c2abc9e8ce793cf.js +0 -1
  947. package/assets/esri/core/workers/chunks/532935f420ed5f13c011.js +0 -1
  948. package/assets/esri/core/workers/chunks/5348e4dc55428de9bba7.js +0 -1
  949. package/assets/esri/core/workers/chunks/53a1c6e008287d1f12f0.js +0 -1
  950. package/assets/esri/core/workers/chunks/59d3f3fbae775fd7686e.js +0 -1
  951. package/assets/esri/core/workers/chunks/5a706eecd8a988fae6b7.js +0 -1
  952. package/assets/esri/core/workers/chunks/5ba2bbbb42ef1920579d.js +0 -1
  953. package/assets/esri/core/workers/chunks/5cc731f161012b63c77a.js +0 -1
  954. package/assets/esri/core/workers/chunks/5fa8fe6353dbdda0b06a.js +0 -1
  955. package/assets/esri/core/workers/chunks/5fc6cada83bf8462d54c.js +0 -1
  956. package/assets/esri/core/workers/chunks/6107b58457a70c8de9da.js +0 -1
  957. package/assets/esri/core/workers/chunks/654eef3ad30f34c42e12.js +0 -1
  958. package/assets/esri/core/workers/chunks/7130b09300032d3a5925.js +0 -1
  959. package/assets/esri/core/workers/chunks/7a1ec6ac88d974cc5074.js +0 -1
  960. package/assets/esri/core/workers/chunks/7f76566d9b3801742387.js +0 -1
  961. package/assets/esri/core/workers/chunks/7f7c4ffbdf7b20dc7a54.js +0 -1
  962. package/assets/esri/core/workers/chunks/81e395a93c67749c6487.js +0 -1
  963. package/assets/esri/core/workers/chunks/8deae3a426eceae73186.js +0 -1
  964. package/assets/esri/core/workers/chunks/97ad3eb25ad003c16148.js +0 -1
  965. package/assets/esri/core/workers/chunks/9919b3c345785e910c38.js +0 -1
  966. package/assets/esri/core/workers/chunks/a4ee92867ad5cde25aed.js +0 -1
  967. package/assets/esri/core/workers/chunks/a56a5e00964d4cd59a66.js +0 -1
  968. package/assets/esri/core/workers/chunks/a774b4fc7df801503bea.js +0 -1
  969. package/assets/esri/core/workers/chunks/ab3e457c82fa9bd0203f.js +0 -1
  970. package/assets/esri/core/workers/chunks/ac0949ea3d2cf3eb7383.js +0 -1
  971. package/assets/esri/core/workers/chunks/af3d4eba6fe24db3ceba.js +0 -1
  972. package/assets/esri/core/workers/chunks/b1015e1f25b60c08d2cf.js +0 -1
  973. package/assets/esri/core/workers/chunks/b1085fa91724e2d3b24f.js +0 -1
  974. package/assets/esri/core/workers/chunks/b48b0f512a1cd7226bdc.js +0 -1
  975. package/assets/esri/core/workers/chunks/bbb409e54db77bfabdee.js +0 -1
  976. package/assets/esri/core/workers/chunks/c0265669fb616f052b65.js +0 -1
  977. package/assets/esri/core/workers/chunks/c18a2948ae3cb527d8bb.js +0 -1
  978. package/assets/esri/core/workers/chunks/d3c69c9cb3d9c3f5c67a.js +0 -1
  979. package/assets/esri/core/workers/chunks/d477def8bfd8482596d1.js +0 -1
  980. package/assets/esri/core/workers/chunks/d4f4c0201d8b641709c0.js +0 -1
  981. package/assets/esri/core/workers/chunks/dd30c1f5da0af72becd1.js +0 -1
  982. package/assets/esri/core/workers/chunks/dedd9d47ccc019ffc484.js +0 -1
  983. package/assets/esri/core/workers/chunks/dfef6e3d7bbf099de498.js +0 -1
  984. package/assets/esri/core/workers/chunks/ecf7d34b37ce6f0877af.js +0 -1
  985. package/assets/esri/core/workers/chunks/f3fdf9970b3c7acd071d.js +0 -1
  986. package/layers/support/ElevationTileData.d.ts +0 -32
  987. package/rest/geoprocessor/execute.d.ts +0 -6
  988. package/views/2d/engine/imagery/BrushVectorField.js +0 -5
  989. package/views/3d/analysis/AreaMeasurement/support/utils.js +0 -5
  990. package/views/3d/analysis/VolumeMeasurement/volumeMeasurementUtils.js +0 -5
  991. package/widgets/OrientedImageryViewer/dataCaptureUtils.js +0 -5
  992. /package/layers/buildingSublayers/{utils.d.ts → types.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405(t,e,r){r.d(e,{A:()=>y});var s,o=r(31635),i=r(69622),l=r(66552),a=r(4718),n=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let y=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,d.Cv)(this.extent,p.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>h.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],y.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:u.A})],y.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],y.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],y.prototype,"start",void 0),y=s=(0,o.Cg)([(0,n.$K)("esri.portal.PortalQueryParams")],y)},20655(t,e,r){r.d(e,{A:()=>A});var s=r(31635),o=r(92602),i=r(70333),l=r(11254),a=r(49186),n=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(74887),y=r(91429),c=r(56507),m=r(5443),g=r(73444);let C;var v=r(96360),f=r(16405),M=r(69622);let Z=class extends M.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,y.MZ)()],Z.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"queryParams",void 0),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"results",void 0),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"total",void 0),Z=(0,s.Cg)([(0,y.$K)("esri.portal.PortalQueryResult")],Z);var S,P=r(41318),_=r(926),O=r(36005);let w;const b={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:P.A})};let A=class extends((0,u.T)(p.x_)){static{S=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){G.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,_.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=P.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,h.Te)(t),w=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==S.AUTH_MODE_AUTO&&this.authMode!==S.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),G.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(3508),r.e(9953),r.e(812),r.e(4802),r.e(2830),r.e(7548)]).then(r.bind(r,62369))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,n.A)("enable-feature:basemap-groundlayers")){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new f.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new w({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new f.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,g.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,g.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return C&&!C.destroyed||(C=new S),C}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,g.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(f.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new Z({nextQueryParams:r,queryParams:o,total:t.total,results:S._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,h.QP)(e),t)));return r&&b[r]?b[r]().then(({default:t})=>((0,h.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===S.AUTH_MODE_ANONYMOUS||this.authMode===S.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==S.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=S._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===S.AUTH_MODE_ANONYMOUS||this.authMode===S.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new f.A;r.query=t||((0,_.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new w({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,_.Dd)())return[];const s=new f.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new w({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=w.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,y.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,O.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,O.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,O.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,y.MZ)({type:m.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,O.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,O.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,O.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,y.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=S=(0,s.Cg)([(0,y.$K)("esri.portal.Portal")],A);const G=new FinalizationRegistry(t=>{t.remove()})},41318(t,e,r){r.d(e,{A:()=>p});var s=r(31635),o=r(49186),i=r(25482),l=r(91429);let a=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],a.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],a.prototype,"username",void 0),a=(0,s.Cg)([(0,l.$K)("esri.portal.PortalFolder")],a);var n,u=r(96360);let p=n=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=a.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=u.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new n({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userType",void 0),p=n=(0,s.Cg)([(0,l.$K)("esri.portal.PortalUser")],p)},61893(t,e,r){r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(69622),i=r(36563),l=r(74887),a=r(64108);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474(t,e,r){r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360(t,e,r){r.d(e,{A:()=>p});var s,o=r(31635),i=r(49186),l=r(25482),a=r(91429),n=r(56507),u=r(16405);let p=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(u.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,a.$K)("esri.portal.PortalGroup")],p)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921(t,n,e){e.d(n,{$Q:()=>w,C:()=>u,Cr:()=>M,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>I,Tj:()=>p,Ui:()=>x,_I:()=>A,fA:()=>f,gv:()=>S,lU:()=>d,mN:()=>O,mP:()=>P,mR:()=>q,vE:()=>y,vt:()=>o});var r=e(34727),a=e(35522),s=e(51850),i=(e(78955),e(44280),e(32114));function o(t=Q){return[t[0],t[1],t[2],t[3]]}function c(t=Q[0],n=Q[1],e=Q[2],r=Q[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function M(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,M=a*u-s*c,d=f*f+l*l+M*M,m=Math.abs(d-1)>1e-5&&d>1e-12?1/Math.sqrt(d):1;return r[0]=f*m,r[1]=l*m,r[2]=M*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function d(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(_,r);let o=s,c=!1;for(;o<e-1&&!c;)n(v,o),o++,c=!(0,a.t2)(_,v);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.Re)(b,_,v),(0,a.S8)(b,b),(0,a.Re)(j,v,g),(0,a.S8)(j,j),c=!(0,a.t2)(_,g)&&!(0,a.t2)(v,g)&&Math.abs((0,a.Om)(b,j))<m;return c?(M(_,v,g,t),!0):(0!==r||1!==s||2!==i)&&d(t,n,e,0,1,2)}e(32728);const m=.99619469809,_=(0,s.vt)(),v=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.Om)(t,e),t}function q(t,n,e,r){return(0,a.$A)(g,n,t),l(e,g,r)}function x(t,n,e){return null!=n&&z(y(t,n.origin,n.direction,C,e))}function I(t,n,e){return z(y(t,n.origin,n.vector,0,e))}function S(t,n,e){return z(y(t,n.origin,n.vector,1,e))}function p(t,n){return O(t,n)>=0}function w(t,n){const e=(0,a.Om)(t,n.ray.direction),r=-O(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function A(t,n,e){const r=(0,a.hs)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.hs)(i.rq.get(),t,(0,a.Om)(t,n));return(0,a.Re)(e,n,r),e}(t,(0,a.Re)(i.rq.get(),n,r),i.rq.get());return(0,a.WQ)(e,s,r),e}function O(t,n){return(0,a.Om)(t,n)+t[3]}function z(t){return 0===t||1===t}function y(t,n,e,s,i){const o=(0,a.Om)(t,e),c=O(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.WQ)(i,n,(0,a.hs)(i,e,u)),c>=0?0:1)}const Q=[0,0,1,0],C=8},32114(t,n,e){e.d(n,{Rc:()=>M,J8:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),M=(h.createMat3f64(),h.createMat4f64()),d=h.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>i,nu:()=>o,wp:()=>s}),e(34727);var r=e(35522),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,a,s),t}function i(t,n,e){e=e||t;const a=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-a*n[0],t[1]-a*n[1],t[2]-a*n[2]),(0,r.S8)(e,e)}function o(t,n,e,s=(0,a.vt)()){const i=(0,r.Bw)(t),o=(0,r.Bw)(n),h=(0,r.Om)(t,n)/(i*o);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*o)/Math.sin(a),l=f/i*Math.sin((1-e)*a),M=f/o*Math.sin(e*a);return(0,r.hs)(c,t,l),(0,r.hs)(u,n,M),(0,r.WQ)(s,c,u)}return(0,r.Cc)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const c=(0,a.vt)(),u=(0,a.vt)()},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>s,C:()=>i,Cc:()=>p,DI:()=>q,Il:()=>R,Io:()=>g,Ln:()=>v,Om:()=>I,Qr:()=>f,Re:()=>u,S8:()=>x,T9:()=>m,WQ:()=>c,Z0:()=>w,_S:()=>M,aI:()=>C,ei:()=>A,gL:()=>O,hG:()=>b,hZ:()=>o,hs:()=>_,jb:()=>V,jk:()=>d,lo:()=>F,lw:()=>h,m3:()=>j,oW:()=>N,t2:()=>Q,tn:()=>l,uE:()=>E,xg:()=>Z,ze:()=>P});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function _(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function v(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function q(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function I(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function p(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function w(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function A(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function O(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,M=a*l-s*f,d=s*h-r*l,m=r*f-a*h,_=2*i;return t[0]=o+h*_+2*M,t[1]=c+f*_+2*d,t[2]=u+l*_+2*m,t}const z=(0,r.vt)(),y=(0,r.vt)();function Q(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function C(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function N(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const V=u,L=h,T=f,Z=g,F=b,R=s,E=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){x(z,t),x(y,n);const e=I(z,y);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:N,dist:Z,distance:g,div:T,divide:f,dot:I,equals:C,exactEquals:Q,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:q,len:R,length:s,lerp:p,max:m,min:d,mul:L,multiply:h,negate:P,normalize:x,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:_,scaleAndAdd:v,set:o,sign:M,sqrDist:F,sqrLen:E,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:V,subtract:u,transformMat3:A,transformMat4:w,transformQuat:O},Symbol.toStringTag,{value:"Module"}))},44280(t,n,e){e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(35522),s=e(51850);function i(t,n){return(0,a.Om)(t,n)/(0,a.Bw)(t)}function o(t,n){const e=(0,a.Om)(t,n)/((0,a.Bw)(t)*(0,a.Bw)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.S8)(u,t),(0,a.S8)(h,n);const s=(0,a.Om)(u,h),i=(0,r.XM)(s),o=(0,a.$A)(u,u,h);return(0,a.Om)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610(t,n,e){e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163(t,n,e){function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353(t,n,e){e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,d=s.dest.spatialReferenceId;if(u===d&&!h(d)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(d)){const t=o.w5[u][10],r=o.w5[10][d];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,M,0),i(f*l[0],f*l[1],e),e[12]=M[0],e[13]=M[1],e[14]=M[2],!0)}const m=h(u);if((3===d||11===d||2===d||5===d)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][d];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,M,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=M[0],e[13]=M[1],e[14]=M[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),M=(0,s.vt)()},57005(t,n,e){e.d(n,{ab:()=>bt,gm:()=>Ot});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(35522),u=e(51850),h=e(78955),f=e(91829),l=e(73941),M=e(98764),d=e(48353),m=e(9762),_=e(37539),v=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const q=1e-6,x=(0,u.vt)(),I=(0,u.vt)();function S(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=vt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=vt(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}Mt(n,t.minVert[a]),Mt(e,t.maxVert[a])}(t,r,a),vt(r,a)<q?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){V[0]=a[t]-n[0],V[1]=a[t+1]-n[1],V[2]=a[t+2]-n[2];const r=e[0]*V[0]+e[1]*V[1]+e[2]*V[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=V[0]*V[0]+V[1]*V[1]+V[2]*V[2]-r*r/s;c>i&&(i=c,o=t)}return Mt(r,a,o),i}(n,r,i,s)<q?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),dt(e,o,i),mt(e,e),W(n,e,i,o,c,u),0))}const p=(0,u.vt)(),w=(0,u.vt)(),A=(0,u.vt)(),O=(0,u.vt)(),z=(0,u.vt)(),y=(0,u.vt)(),Q=(0,u.vt)(),C=(0,u.vt)();function N(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;Mt(r,s),Mt(a,r),e[0]=gt(D,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,Mt(r,s,t)),i>e[1]&&(e[1]=i,Mt(a,s,t))}}(t,n,L,a,r);const s=gt(e,n);L[1]-q<=s&&(r[0]=void 0),L[0]+q>=s&&(a[0]=void 0)})(t,n,e,p,w),void 0!==p[0]&&(ft(A,p,e),mt(A,A),ft(O,p,r),mt(O,O),ft(z,p,a),mt(z,z),dt(y,O,s),mt(y,y),dt(Q,z,i),mt(Q,Q),dt(C,A,o),mt(C,C),W(t,y,s,O,A,c),W(t,Q,i,z,O,c),W(t,C,o,A,z,c)),void 0!==w[0]&&(ft(A,w,e),mt(A,A),ft(O,w,r),mt(O,O),ft(z,w,a),mt(z,z),dt(y,O,s),mt(y,y),dt(Q,z,i),mt(Q,Q),dt(C,A,o),mt(C,C),W(t,y,s,O,A,c),W(t,Q,i,z,O,c),W(t,C,o,A,z,c))}const V=[0,0,0],L=(0,j.vt)(),T=(0,u.vt)(),Z=(0,u.vt)(),F=(0,u.vt)(),R=(0,u.vt)(),E=(0,u.vt)(),B=(0,u.vt)();function W(t,n,e,r,a,s){if(_t(n)<q)return;dt(T,e,n),dt(Z,r,n),dt(F,a,n),X(t,n,L),E[1]=L[0],R[1]=L[1],B[1]=R[1]-E[1];const i=[e,r,a],o=[T,Z,F];for(let e=0;e<3;++e){X(t,i[e],L),E[0]=L[0],R[0]=L[1],X(t,o[e],L),E[2]=L[0],R[2]=L[1],B[0]=R[0]-E[0],B[2]=R[2]-E[2];const r=ut(B);r<s.quality&&(Mt(s.b0,i[e]),Mt(s.b1,n),Mt(s.b2,o[e]),s.quality=r)}}const D=(0,u.vt)();function X(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function Y(t,n,e){e.center=t,e.halfSize=(0,c.hs)(n,n,.5),e.quaternion=o.zK}const k=(0,u.vt)(),H=(0,u.vt)(),K=(0,u.vt)(),$=(0,u.vt)(),G=(0,u.vt)(),U=(0,u.vt)();function J(t,n,e){Mt(k,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?k[0]=0:Math.abs(n[1])>Math.abs(n[2])?k[1]=0:k[2]=0,_t(k)<q&&(k[0]=k[1]=k[2]=1),dt(H,n,k),mt(H,H),dt(K,n,H),mt(K,K),tt(t,n,H,K,$,G),ft(U,G,$),it(n,H,K,$,G,U,e)}function tt(t,n,e,r,a,s){X(t,n,L),a[0]=L[0],s[0]=L[1],X(t,e,L),a[1]=L[0],s[1]=L[1],X(t,r,L),a[2]=L[0],s[2]=L[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.WQ)(et,et,rt),i.halfSize=(0,c.hs)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];Mt(this.minVert[t],a,n),n=r[t],Mt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function Mt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function dt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=Dt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.hZ)(b.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.hZ)(b.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.gL)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);return(0,c.gL)(t[0],[1,0,0],e),(0,c.gL)(t[1],[0,1,0],e),(0,c.gL)(t[2],[0,0,1],e),t}intersectsFrustum(t){const n=this.center,e=t.planes;for(const t of e){const e=(0,v.Qj)(t),r=this.projectedRadius(e);if((0,c.Om)(e,n)+t[3]-r>0)return!1}const r=this.getAxes(Rt),a=t.points,s=this.halfSize;for(let t=0;t<3;++t){const e=r[t],i=-(0,c.Om)(e,n),o=s[t];let u=!0,h=!0;for(const t of a){const n=(0,c.Om)(t,e)+i;u&&=n>o,h&&=n<-o}if(u||h)return!1}if(this.getCorners(Ft).some(n=>t.intersectsPoint(n)))return!0;const i=Yt;for(let t=0;t<3;++t){const e=r[t];i[t]=(0,c.Om)(e,n)}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=r[n],a=s[n],o=(0,c.Om)(e,t)-i[n];if(o>a||o<-a)return!1}return!0})(t)))return!0;const o=t.lines,u=Xt;for(let t=0;t<8;++t){const e=o[t].direction;for(const t of r){(0,c.$A)(u,e,t);const r=(0,c.Il)(u);if(!(r>0))continue;(0,c.hs)(u,u,1/r);const s=this.projectedRadius(u),i=(0,c.Om)(n,u),o=i-s,h=i+s;let f=!1,l=!1,M=!0;for(const t of a){const n=(0,c.Om)(u,t);if(n>h){if(l){M=!1;break}f=!0}else{if(!(n<o)){M=!1;break}if(f){M=!1;break}l=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(Rt),e=this.halfSize,{center:r}=this;for(let a=0;a<3;++a){const s=n[a],i=e[a],o=(0,c.Om)(s,t)-(0,c.Om)(s,r);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n,radius:e}=t,r=this._data,a=r[3],s=r[4],i=r[5],o=Math.max(a,s,i)+e,c=r[0]-n[0];if(c>o)return!1;const u=r[1]-n[1];if(u>o)return!1;const h=r[2]-n[2];if(h>o)return!1;const f=-r[6],l=-r[7],M=-r[8],d=l*h-M*u,m=M*c-f*h,_=f*u-l*c,v=l*_-M*m,g=M*d-f*_,b=f*m-l*d,j=2*r[9],P=Math.abs(c+d*j+2*v),q=Math.abs(u+m*j+2*g),x=Math.abs(h+_*j+2*b),I=P-Math.min(P,a),S=q-Math.min(q,s),p=x-Math.min(x,i);return I*I+S*S+p*p<e*e}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:r,radius:a}=t,s=n+a,i=e[0]-r[0];if(i>s)return!1;const o=e[1]-r[1];if(o>s)return!1;const c=e[2]-r[2];if(c>s)return!1;if(i*i+o*o+c*c>s*s)return!1;const u=-e[6],h=-e[7],f=-e[8],l=h*c-f*o,M=f*i-u*c,d=u*o-h*i,m=h*d-f*M,_=f*l-u*d,v=u*M-h*l,g=2*e[9],b=Math.abs(i+l*g+2*m),j=Math.abs(o+M*g+2*_),P=Math.abs(c+d*g+2*v),q=b-Math.min(b,e[3]),x=j-Math.min(j,e[4]),I=P-Math.min(P,e[5]);return q*q+x*x+I*I<a*a}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],xt[0]=t[0]-r[0],xt[1]=t[1]-r[1],xt[2]=t[2]-r[2];const s=(0,c.gL)(xt,xt,jt),i=(0,c.gL)(It,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Lt);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),xt[0]=t[0]-this._data[0],xt[1]=t[1]-this._data[1],xt[2]=t[2]-this._data[2],(0,c.gL)(xt,xt,jt);const o=this.getHalfSize(Lt),u=xt[0]<-o[0]?-1:xt[0]>o[0]?1:0,f=xt[1]<-o[1]?-1:xt[1]>o[1]?1:0,l=xt[2]<-o[2]?-1:xt[2]>o[2]?1:0,M=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===M)return 1/0;const d=1===M?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Tt,s),(0,r.hs)(Tt,Tt,o);const _=this.getCenter(Nt);for(let t=0;t<d;t++){const e=At[m+t];(0,c.hZ)(xt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.ei)(xt,xt,Tt),(0,c.WQ)(St,_,xt),St[3]=1,(0,h.Z0)(St,St,n);const r=1/Math.max(1e-6,St[3]);wt[2*t]=St[0]*r,wt[2*t+1]=St[1]*r}const v=2*d-2;let g=wt[0]*(wt[3]-wt[v+1])+wt[v]*(wt[1]-wt[v-1]);for(let t=2;t<v;t+=2)g+=wt[t]*(wt[t+3]-wt[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.gL)(xt,t,jt),Math.abs(xt[0]*this._data[3])+Math.abs(xt[1]*this._data[4])+Math.abs(xt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,v.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,v.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Tt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,M.lO)(e),s=(0,M.lO)(n),o=(0,_.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,M.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Ct),Ct[2]+=r,(0,m.projectBuffer)(Ct,e,0,Ct,a,0),n.center=Ct;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.hZ)(Et,0,0,1),(0,c.gL)(Et,Et,jt);const h=t.getHalfSize(Lt);(0,c.hZ)(Et,h[0]*Math.abs(Et[0]),h[1]*Math.abs(Et[1]),h[2]*Math.abs(Et[2])),(0,c.hs)(Et,Et,s.inverseFlattening),(0,c.WQ)(Et,h,Et),n.halfSize=(0,c.hs)(Et,Et,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,M.lO)(e),s=(0,_.jd)(e,a)){t.getCorners(Ft),t.getCenter(Ct),Ct[2]+=r,(0,d.l)(e,Ct,Zt,a),n.setCenter(Zt[12],Zt[13],Zt[14]);const o=2*Math.sqrt(1+Zt[0]+Zt[5]+Zt[10]);jt[0]=(Zt[6]-Zt[9])/o,jt[1]=(Zt[8]-Zt[2])/o,jt[2]=(Zt[1]-Zt[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.hZ)(Bt,0,0,0);const h=n.getCenter(Vt);for(const t of Ft)t[2]+=r,s(t,0,t,0),(0,c.jb)(Et,t,h),(0,c.gL)(Et,Et,jt),(0,c.tn)(Et,Et),(0,c.T9)(Bt,Bt,Et);n.halfSize=Bt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Nt),Nt[2]+=a;const s=(0,M.lO)(e);(0,m.projectBuffer)(Nt,t,0,Nt,s,0),zt(s,n,Nt,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Nt),Nt[2]+=a,zt(t,n,Nt,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Nt);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Lt))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),qt=(0,o.vt)(),xt=(0,u.vt)(),It=(0,u.vt)(),St=(0,f.vt)();function pt(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(x,s.minProj,s.maxProj),lt(x,x,.5),ft(I,s.maxProj,s.minProj);const i=ut(I),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),M=(0,u.vt)(),d=(0,u.vt)(),m=(0,u.vt)();switch(S(s,t,m,c,h,f,l,M,d,o)){case 1:return void Y(x,I,n);case 2:return void J(t,l,n)}N(t,m,c,h,f,l,M,d,o),tt(t,o.b0,o.b1,o.b2,$,G);const _=(0,u.vt)();ft(_,G,$),o.quality=ut(_),o.quality<i?it(o.b0,o.b1,o.b2,$,G,_,n):Y(x,I,n)}(t,n),n}const wt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],At=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function Ot(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Nt),h=t.getHalfSize(Lt);if(1===r){(0,c.gL)(Et,o,jt),(0,c.tn)(Bt,Et),(0,c.jk)(Wt,Bt,h),(0,c.jb)(Wt,Bt,Wt);const r=(0,c.Bw)(Wt);(0,c.WQ)(Wt,Bt,h);const s=(0,c.Bw)(Wt);if(r<e)a.center=o,(0,c.hZ)(Et,e,e,e),a.halfSize=(0,c.WQ)(Et,h,Et);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.hs)(Wt,Bt,f),a.halfSize=(0,c.Ln)(Wt,Wt,h,u),(0,c.hs)(Wt,Bt,u),(0,c.Ln)(Wt,Wt,h,f),(0,c._S)(Et,Et),(0,c.lw)(Et,Wt,Et);const l=t.getQuaternion(qt);a.center=(0,c.gL)(Et,Et,l)}}else{a.center=(0,c.Ln)(Et,o,u.Cb,(e+n)/2);const t=(0,c.gL)(Et,u.Cb,jt);(0,c.tn)(t,t),a.halfSize=(0,c.Ln)(Bt,h,t,(e-n)/2)}return a}function zt(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Tt,i),c=n.getHalfSize(Lt);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Ct[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Ct[t]*o[3*t+n];yt[3*t+n]=r}}(0,m.projectBuffer)(yt,t,0,yt,a,0,8),pt(Qt,s)}const yt=new Array(24),Qt=new P.K(yt,3),Ct=(0,u.vt)(),Nt=(0,u.vt)(),Vt=(0,u.vt)(),Lt=(0,u.vt)(),Tt=(0,a.vt)(),Zt=(0,s.vt)(),Ft=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Rt=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()],Et=(0,u.vt)(),Bt=(0,u.vt)(),Wt=(0,u.vt)(),Dt=(0,u.CN)(-1,-1,-1),Xt=(0,u.vt)(),Yt=[0,0,0]},67026(t,n,e){e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>M,hZ:()=>v,lw:()=>f,t2:()=>A,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(35522),c=e(78955);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,M,d=e[0],m=e[1],_=e[2],v=e[3];return h=a*d+s*m+o*_+c*v,h<0&&(h=-h,d=-d,m=-m,_=-_,v=-v),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,M=Math.sin(r*u)/f):(l=1-r,M=r),t[0]=l*a+M*d,t[1]=l*s+M*m,t[2]=l*o+M*_,t[3]=l*c+M*v,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function d(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const _=c.C,v=c.hZ,g=c.WQ,b=f,j=c.hs,P=c.Om,q=c.Cc,x=c.Bw,I=x,S=c.m3,p=S,w=c.S8,A=c.t2,O=c.aI,z=(0,s.vt)(),y=(0,s.fA)(1,0,0),Q=(0,s.fA)(0,1,0),C=(0,a.vt)(),N=(0,a.vt)(),V=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:M,copy:_,dot:P,equals:O,exactEquals:A,fromEuler:m,fromMat3:d,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:I,length:x,lerp:q,mul:b,multiply:f,normalize:w,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.Om)(n,e);return r<-.999999?((0,o.$A)(z,y,n),(0,o.Il)(z)<1e-6&&(0,o.$A)(z,Q,n),(0,o.S8)(z,z),u(t,z,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(z,n,e),t[0]=z[0],t[1]=z[1],t[2]=z[2],t[3]=1+r,w(t,t))},scale:j,set:v,setAxes:function(t,n,e,r){const a=V;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],w(t,d(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(C,n,a,s),l(N,e,r,s),l(t,C,N,2*s*(1-s)),t},sqrLen:p,squaredLength:S,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534(t,n,e){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3660],{2272(e,t,s){s.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>h});var i=s(92602),r=s(70333),n=s(4718),o=s(84952),a=s(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function h(e,t,s){const i={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))i[r]=n.map(e=>h(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(s?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?n:JSON.stringify(n);else i[r]=n}return i}async function c(e,t,n){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([s.e(7330),s.e(168),s.e(148)]).then(s.bind(s,50148));const l=await r.id.getCredential(e,n);return l?.token}},6518(e,t,s){s.d(t,{F:()=>a});var i=s(44208),r=s(75503),n=s(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((s,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,n.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,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(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()))}}},8631(e,t,s){s.d(t,{r:()=>d,g:()=>c});var i,r=s(53177),n=s(76357),o=s(31635),a=s(91429),l=s(93223);let u=class extends n.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=s(41628);const c={key:"type",base:n.A,typeMap:{range:h.A,"coded-value":r.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},13069(e,t,s){s.d(t,{AG:()=>a,lk:()=>r,vD:()=>o,yS:()=>n});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 n(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},16271(e,t,s){s.d(t,{Ao:()=>n,KQ:()=>o});var i=s(4576),r=s(31756);function n(e){return 1/(r.j[e]||1)}const o=function(){const e=Object.keys(r.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}()},20437(e,t,s){s.d(t,{A:()=>p});var i,r=s(31635),n=s(66552),o=s(25482),a=s(91429),l=s(56507),u=s(8631),h=s(98453),c=s(36005),d=s(93223);const f=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let p=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?.value??null}readValueType(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?f.fromJSON(s.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,r.Cg)([(0,c.w)("description")],p.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],p.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(h.m)],p.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,r.Cg)([(0,c.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],p)},23323(e,t,s){s.r(t),s.d(t,{default:()=>Fe});var i=s(31635),r=s(65529),n=s(74887),o=s(36708),a=s(91429),l=s(79897),u=s(16930),h=s(65864),c=s(4576),d=s(49186),f=s(53966),p=s(87992),m=s(70328),g=s(6518),y=s(50498),_=s(69397),v=s(27647);class x{constructor(e=null,t={},s,i,r=0){this.geometry=e,this.attributes=t,this.centroid=s,this.objectId=i,this.displayId=r}weakClone(){return new x(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId)}clone(){return new x(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId)}get usedMemory(){return 128+(0,_.lM)(this.attributes)+(this.geometry?.usedMemory??0)}ensureCentroid(e){return this.centroid??=(0,v.Q)(this.geometry&&(0,p.JR)(this.geometry)),this.centroid}}const w={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,s)=>new x((0,p.Nh)(y.gy.fromJSON(s),t),e.attributes,null,e.objectId),getGeometry:e=>e.geometry&&(0,p.JR)(e.geometry),getGeometryWithCurves:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};var C=s(51441);const b=(0,m.vt)();class M{constructor(e,t,s){this.geometryType=e,this.hasZ=t,this.hasM=s,this._boundsStore=new g.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=w}get usedMemory(){return this._usedMemory}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){const e=this._featuresById.size;let t=0;return this._featuresById.forEach(({geometry:e})=>{t+=e?e.vertexCount:0}),{featureCount:e,vertexCount:t}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,i,r]=this.fullBounds;return{xmin:t,ymin:s,xmax:i,ymax:r,spatialReference:(0,C.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(c.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,m.Jt)(b,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void f.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new d.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let i;if(s?(e.displayId=s.displayId,i=this._boundsStore.get(t)??void 0,this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0):this.onFeatureAdd?.(e),!e.geometry)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);this._boundsStore.set(t,(0,p.NO)(e.geometry,i)),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return f.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new d.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const s=this._featuresById.get(t);if(!s)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0;const{geometry:i,attributes:r}=e;for(const e in r)s.attributes[e]=r[e];return i&&(s.geometry=i,this._boundsStore.set(t,(0,p.NO)(i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(s)??0,s}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}var I=s(56390),S=s(87045),F=s(72802),T=s(61956),A=s(88625),z=s(66344),E=s(91869),O=s(86211),P=s(16271);function R(e=!1,t){if(e){const{elevationInfo:e,alignPointsInFeatures:s}=t;return new Z(e,s)}return new B}class B{async alignCandidates(e,t,s){return e}notifyElevationSourceChange(){}}class Z{constructor(e,t){this._elevationInfo=e,this._alignPointsInFeatures=t,this._alignmentsCache=new z.q(1024),this._cacheVersion=0}async alignCandidates(e,t,s){const i=this._elevationInfo;return null==i||"absolute-height"!==i.mode||i.featureExpressionInfo?this._alignComputedElevationCandidates(e,t,s):(function(e,t,s){const{offset:i,unit:r}=s;if(null==i)return;const n=(0,O.G9)(t),o=i*((0,P.Ao)(r??"meters")/n);for(const t of e)switch(t.type){case"edge":t.start.z+=o,t.end.z+=o;continue;case"vertex":t.target.z+=o;continue}}(e,t,i),e)}notifyElevationSourceChange(){this._alignmentsCache.clear(),this._cacheVersion++}async _alignComputedElevationCandidates(e,t,s){const i=new Map;for(const t of e)(0,E.tE)(i,t.objectId,k).push(t);const[r,o,a]=this._prepareQuery(i,t),l=await this._alignPointsInFeatures(r,s);if((0,n.Te)(s),a!==this._cacheVersion)return this._alignComputedElevationCandidates(e,t,s);this._applyCacheAndResponse(r,l,o);const{drapedObjectIds:u,failedObjectIds:h}=l,c=[];for(const t of e){const{objectId:e}=t;u.has(e)&&"edge"===t.type&&(t.draped=!0),h.has(e)||c.push(t)}return c}_prepareQuery(e,t){const s=[],i=[];for(const[t,r]of e){const e=[];for(const s of r)this._addToQueriesOrCachedResult(t,s.target,e,i),"edge"===s.type&&(this._addToQueriesOrCachedResult(t,s.start,e,i),this._addToQueriesOrCachedResult(t,s.end,e,i));0!==e.length&&s.push({objectId:t,points:e})}return[{spatialReference:t.toJSON(),pointsInFeatures:s},i,this._cacheVersion]}_addToQueriesOrCachedResult(e,t,s,i){const r=j(e,t),n=this._alignmentsCache.get(r);null==n?s.push(t):i.push(new N(t,n))}_applyCacheAndResponse(e,{elevations:t,drapedObjectIds:s,failedObjectIds:i},r){for(const e of r)e.apply();let n=0;const o=this._alignmentsCache;for(const{objectId:r,points:a}of e.pointsInFeatures){if(i.has(r)){n+=a.length;continue}const e=!s.has(r);for(const s of a){const i=j(r,s),a=t[n++];s.z=a,e&&o.put(i,a,1)}}}}class N{constructor(e,t){this.point=e,this.z=t}apply(){this.point.z=this.z}}function j(e,{x:t,y:s,z:i,spatialReference:r}){return`${e}-${t}-${s}-${i??0}}-wkid:${r?.wkid}`}function k(){return[]}class L{filter(e,t){return t}notifyElevationSourceChange(){}}class V{filter(e,t){const{point:s,distance:i}=e,{z:r}=s;if(null==r)return t;if(0===t.length)return t;const n=function(e){return"number"==typeof e?{x:e,y:e,z:e}:e}(i),o=this._updateCandidatesTo3D(t,s,n).filter(Y);return o.sort(H),o}_updateCandidatesTo3D(e,t,s){for(const i of e)switch(i.type){case"edge":X(i,t,s);continue;case"vertex":G(i,t,s);continue}return e}}function Y(e){return e.distance<=1}function q(e=!1){return e?new V:new L}function X(e,t,{x:s,y:i,z:r}){const{start:n,end:o,target:a}=e;e.draped||function(e,t,s,i){const r=i.x-s.x,n=i.y-s.y,o=i.z-s.z,a=r*r+n*n+o*o,l=(t.x-s.x)*r+(t.y-s.y)*n+o*(t.z-s.z),u=Math.min(1,Math.max(0,l/a)),h=s.x+r*u,c=s.y+n*u,d=s.z+o*u;e.x=h,e.y=c,e.z=d}(a,t,n,o);const l=(t.x-a.x)/s,u=(t.y-a.y)/i,h=(t.z-a.z)/r;e.distance=Math.sqrt(l*l+u*u+h*h)}function G(e,t,{x:s,y:i,z:r}){const{target:n}=e,o=(t.x-n.x)/s,a=(t.y-n.y)/i,l=(t.z-n.z)/r,u=Math.sqrt(o*o+a*a+l*l);e.distance=u}function H(e,t){return e.distance-t.distance}var U=s(4718),D=s(799);function J(e=!1,t){return e?new W(t):new $}class ${async fetch(){return[]}notifySymbologyChange(){}}class W{constructor(e){this._getSymbologyCandidates=e,this._candidatesCache=new z.q(1024),this._cacheVersion=0}async fetch(e,t){if(0===e.length)return[];const s=[],i=[],r=this._candidatesCache;for(const t of e){const e=K(t),n=r.get(e);if(n)for(const e of n)i.push((0,U.o8)(e));else s.push(t),r.put(e,[],1)}if(0===s.length)return i;const o=this._cacheVersion,{candidates:a,sourceCandidateIndices:l}=await this._getSymbologyCandidates(s,t);if((0,n.Te)(t),o!==this._cacheVersion)return this.fetch(e,t);const u=[],{length:h}=a;for(let e=0;e<h;++e){const t=a[e],i=K(s[l[e]]),n=r.get(i);n.push(t),r.put(i,n,n.length),u.push((0,U.o8)(t))}return i.concat(u)}notifySymbologyChange(){this._candidatesCache.clear(),this._cacheVersion++}}function K(e){switch(e.type){case"vertex":{const{objectId:t,target:s}=e,i=`${t}-vertex-${s.x}-${s.y}-${s.z??0}`;return(0,D.Wm)(i).toString()}case"edge":{const{objectId:t,start:s,end:i}=e,r=`${t}-edge-${s.x}-${s.y}-${s.z??0}-to-${i.x}-${i.y}-${i.z??0}`;return(0,D.Wm)(r).toString()}default:return""}}var Q=s(69622),ee=s(60999),te=s(3483),se=s(13069),ie=s(5443),re=s(19419),ne=s(90708),oe=s(92722),ae=s(54339);class le{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new le;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}var ue=s(60694),he=s(69418),ce=s(80893);class de{constructor(e,t){this.key=e,this.resolution=t,this.state={type:0},this.alive=!0}process(e){switch(this.state.type){case 0:return this.state=this._gotoFetchCount(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 1:case 3:break;case 2:return this.state=this._gotoFetchFeatures(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 4:this.state=this._goToDone(this.state,e)}return null}get debugInfo(){return{key:this.key,featureCount:this._featureCount,state:this._stateToString}}get _featureCount(){switch(this.state.type){case 0:case 1:return 0;case 2:return this.state.featureCount;case 3:return this.state.previous.featureCount;case 4:return this.state.features.length;case 5:return this.state.previous.features.length}}get _stateToString(){switch(this.state.type){case 0:return"created";case 1:return"fetch-count";case 2:return"fetched-count";case 3:return"fetch-features";case 4:return"fetched-features";case 5:return"done"}}_gotoFetchCount(e,t){return{type:1,previous:e,task:(0,ee.UT)(async e=>{const s=await(0,ee.DZ)(t.fetchCount(this,e));1===this.state.type&&(this.state=function(e,t){return{type:2,featureCount:t,previous:e}}(this.state,s.ok?s.value:1/0))})}}_gotoFetchFeatures(e,t){return{type:3,previous:e,task:(0,ee.UT)(async s=>{const i=await(0,ee.DZ)(t.fetchFeatures(this,e.featureCount,s));3===this.state.type&&(this.state=function(e,t){return{type:4,previous:e,features:t}}(this.state,i.ok?i.value:[]))})}}_goToDone(e,t){return t.finish(this,e.features),{type:5,previous:e}}reset(){const e=this.state;switch(this.state={type:0},e.type){case 0:case 2:case 4:case 5:break;case 1:case 3:e.task.abort()}}}let fe=class extends Q.A{get _minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}get _mandatoryOutFields(){const e=new Set;return this.objectIdField&&e.add(this.objectIdField),this.globalIdField&&e.add(this.globalIdField),e}set outFields(e){const t=this._get("outFields"),s=(0,te.KC)(e,this._mandatoryOutFields);(0,te.aI)(s,t)||(this._set("outFields",s),(0,te.Yy)(s,t)||this.refresh())}get outFields(){return this._get("outFields")??this._mandatoryOutFields}set filter(e){const t=this._get("filter"),s=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(s)&&this._set("filter",s)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get _configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&(null!=e&&null!=t&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this._updatingHandles.updating}get hasZ(){return this.store.featureStore.hasZ}constructor(e){super(e),this.suspended=!0,this._historicMoment=null,this.tilesOfInterest=new Array,this.availability=0,this._pendingTiles=new Map,this._updatingHandles=new l.U}initialize(){this._initializeFetchExtent(),this._updatingHandles.add(()=>this._configuration,()=>this.refresh()),this._updatingHandles.add(()=>this.tilesOfInterest,()=>{this._updatePriorities(),this._process()},{sync:!0,initial:!0,equals:(e,t)=>(0,c.aI)(e,t,({id:e},{id:t})=>e===t)}),this.addHandles((0,o.z7)(()=>!this.suspended,()=>this._process()))}_updatePriorities(){this.store.setPriorityOrderByKey(this.tilesOfInterest.map(({id:e})=>e)??[])}destroy(){this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this._updatingHandles.destroy()}refresh(){this.store.refresh(),this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._process()}async handleEdits(e){if(e.historicMoment&&(this._historicMoment=e.historicMoment),!e.addedFeatures.length&&!e.updatedFeatures.length&&!e.deletedFeatures.length)return;for(const e of this._pendingTiles.values())e.reset();const t={...e,deletedFeatures:e.deletedFeatures.map(({objectId:e,globalId:t})=>e&&-1!==e?e:this._lookupObjectIdByGlobalId(t))},s=(0,ee.UT)(async e=>{try{await this.store.processEdits(t,(e,t)=>this._queryFeaturesById(e,t),e),this._processPendingTiles()}catch(e){(0,n.QP)(e),f.A.getLogger(this).warn("Failed to apply edits",e)}});this.addHandles(s),await this._updatingHandles.addPromise(s.promise)}setHistoricMoment(e){e?.getTime()!==this._historicMoment?.getTime()&&(this._historicMoment=e,this.refresh())}_initializeFetchExtent(){if(!this.capabilities.query.supportsExtent||!(0,ue.Wo)(this.url))return;const e=(0,ee.UT)(async e=>{try{const t=await(0,ce.Jf)(this.url,new T.A({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:this.capabilities.query.supportsCacheHint??void 0}),{query:this._configuration.customParameters,signal:e});this.store.extent=ie.A.fromJSON(t?.extent)}catch(e){(0,n.QP)(e),f.A.getLogger(this).warn("Failed to fetch data extent",e)}});this._updatingHandles.addPromise(e.promise.then(()=>this._process())),this.addHandles(e)}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this._pendingTiles.values()).map(e=>e.debugInfo),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const e of this._pendingTiles.values())e.alive=!1}_createPendingTiles(){if(this.suspended)return;const e=this._collectMissingTilesInfo();if(this._setAvailability(null==e?1:e.coveredArea/e.fullArea),null!=e)for(const{data:t,resolution:s}of e.missingTiles){const e=this._pendingTiles.get(t.id);e?(e.resolution=s,e.alive=!0):this._createPendingTile(t,s)}}_collectMissingTilesInfo(){let e=null;for(const t of this.tilesOfInterest){const s=this.store.process(t,(e,t)=>this._verifyTileComplexity(e,t),this.outFields);null==e?e=s:e.prepend(s)}return e}_deletePendingTiles(){for(const e of this._pendingTiles.values())e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(e,t)=>this._fetchCount(e,t),fetchFeatures:(e,t,s)=>this._fetchFeatures(e,t,s),finish:(e,t)=>this._finishPendingTile(e,t),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const t of this._pendingTiles.values())this._verifyTileComplexity(this.store.getFeatureCount(t.key),t.resolution)&&this._updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this._minimumVerticesPerFeature<ge}_verifyFeatureDensity(e,t){if(null==this.tileInfo)return!1;const s=this.tileSize*t;return e*(ye/(s*s))<_e}_ensureFetchAllCounts(e){let t=!0;for(const s of this._pendingTiles.values())s.state.type<2&&this._updatingHandles.addPromise(s.process(e)),s.state.type<=1&&(t=!1);return t}_finishPendingTile(e,t){this.store.add(e.key,t),this._deletePendingTile(e),this._updateAvailability()}_updateAvailability(){const e=this._collectMissingTilesInfo();this._setAvailability(null==e?1:e.coveredArea/e.fullArea)}_setAvailability(e){this._set("availability",e)}_createPendingTile(e,t){const s=new de(e,t);return this._pendingTiles.set(e.id,s),s}_deletePendingTile(e){e.reset(),this._pendingTiles.delete(e.key.id)}async _fetchCount(e,t){return this.store.fetchCount(e.key,this.url,this._createCountQuery(e),{query:this.customParameters,timeout:me,signal:t})}async _fetchFeatures(e,t,s){let i=0;const r=[];let n=0,o=t;for(;;){const a=this._createFeaturesQuery(e),l=this._setPagingParameters(a,i,o),{features:u,exceededTransferLimit:h}=await this._queryFeatures(a,s);l&&(i+=a.num),n+=u.length;for(const e of u)r.push(e);if(o=t-n,!l||!h||o<=0)return r}}_filterProperties(e){return null==e?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}_lookupObjectIdByGlobalId(e){const t=this.globalIdField,s=this.objectIdField;if(null==t)throw new Error("Expected globalIdField to be defined");let i=null;const r=e?(0,se.AG)(e):e;if(this.store.featureStore.forEach(e=>{r===(0,se.AG)(e.attributes[t])&&(i=e.objectId??e.attributes[s])}),null==i)throw new Error(`Expected to find a feature with globalId ${e}`);return i}_queryFeaturesById(e,t){const s=this._createFeaturesQuery();return s.objectIds=e,this._queryFeatures(s,t)}async _queryFeatures(e,t){return 0===e.num?new le:this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}async _queryFeaturesPBF(e,t){const{sourceSpatialReference:s}=this,i=await(0,ce.IJ)(this.url,e,new he.S({sourceSpatialReference:s}),{query:this._configuration.customParameters,timeout:me,signal:t});return function(e){const t=y.gy.fromJSON(e.geometryType),s=new le;return s.globalIdFieldName=e.globalIdFieldName,s.geohashFieldName=e.geohashFieldName,s.geometryProperties=e.geometryProperties,s.geometryType=e.geometryType,s.spatialReference=e.spatialReference,s.hasZ=e.hasZ,s.hasM=e.hasM,s.features=e.features.map(e=>function(e,{geometry:t,attributes:s,centroid:i,objectId:r,displayId:n}){return new x(t&&(0,p.Nh)(e,t),s,i,r,n)}(t,e)),s.fields=e.fields,s.transform=e.transform,s.exceededTransferLimit=e.exceededTransferLimit,s.uniqueIdField=e.uniqueIdField,s.queryGeometry=e.queryGeometry&&(0,p.Nh)(t,e.queryGeometry),s.queryGeometryType=e.queryGeometryType,s}((0,ne.eY)(i))}async _queryFeaturesJSON(e,t){const{sourceSpatialReference:s}=this;return function({exceededTransferLimit:e,features:t,fields:s,geometryType:i,hasM:r,hasZ:n,spatialReference:o,transform:a},l){const u=new le;u.exceededTransferLimit=e??!1;for(const e of t??[]){let t,s;i&&(t=e.geometry&&(0,p.ME)(e.geometry),s=e.centroid&&new oe.A([],[e.centroid.x,e.centroid.y]));const r=(0,ae.W)(e,l);u.features.push(new x(t,e.attributes,s,r))}return u.fields=s??u.fields,u.geometryType=i??null,u.hasM=r??!1,u.hasZ=n??!1,u.spatialReference=o??null,u.transform=a??null,u}(await(0,ce.eW)(this.url,e,s,{query:this._configuration.customParameters,timeout:me,signal:t}),{type:"object-id",fieldName:this.objectIdField})}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e=null){const t=this._createBaseQuery(e),s=null!=e?.key?this.store.getAttributesForTile(e?.key?.id):null,i=(0,te.KC)((0,te.iv)(this.outFields,s??new Set),this._mandatoryOutFields);return t.outFields=Array.from(i),t.returnGeometry=!0,t.returnTrueCurves??=this.capabilities.data.supportsTrueCurve,null!=e&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new T.A({returnZ:this.hasZ,returnM:!1,historicMoment:this._historicMoment,geometry:null!=this.tileInfo&&null!=e?(0,re.w1)(e.key.extent,this.tileInfo.spatialReference):void 0}),s=this._configuration.filter;return null!=s&&(t.where=s.where,t.gdbVersion=s.gdbVersion,t.timeExtent=s.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,s){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:i,supportsCacheHint:r,tileMaxRecordCount:n,maxRecordCount:o,supportsResultType:a}=this.capabilities.query,l=i?T.A.MAX_MAX_RECORD_COUNT_FACTOR:1,u=l*((a||r)&&n?n:o||pe);return e.start=t,i?(e.maxRecordCountFactor=Math.min(l,Math.ceil(s/u)),e.num=Math.min(s,e.maxRecordCountFactor*u)):e.num=Math.min(s,u),!0}};(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"url",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"capabilities",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],fe.prototype,"store",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],fe.prototype,"_minimumVerticesPerFeature",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"_mandatoryOutFields",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"outFields",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"suspended",void 0),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"_historicMoment",void 0),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"filter",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"customParameters",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],fe.prototype,"_configuration",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"tileInfo",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"tileSize",null),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"tilesOfInterest",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],fe.prototype,"updating",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],fe.prototype,"availability",void 0),(0,i.Cg)([(0,a.MZ)()],fe.prototype,"hasZ",null),fe=(0,i.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],fe);const pe=2e3,me=6e5,ge=1e6,ye=25,_e=1;s(44208);class ve{constructor(){this._store=new Map,this._priorities=new Map}get size(){return this._store.size}setPriorityOrderByKey(e){this._priorities.clear();for(let t=e.length-1;t>=0;t--)this._priorities.set(e[t],e.length-t)}hasLowerPriority(e){const t=this._priorities.get(e);if(null==t)return!0;for(const[e]of this._store){const s=this._priorities.get(e);if(null==s||s<t)return!0}return!1}someFromLowestToHighestPriority(e){const{_priorities:t}=this;for(const[s,i]of this._store)if(!t.has(s)&&e(i,s))return!0;for(const[s]of t){const t=this._store.get(s);if(t&&e(t,s))return!0}return!1}set(e,t){this._store.set(e,t)}delete(e){return this._store.delete(e)}get(e){return this._store.get(e)}has(e){return this._store.has(e)}clear(){this._store.clear()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}let xe=class extends Q.A{setPriorityOrderByKey(e){this._tiles.setPriorityOrderByKey(e)}get _memoryLimitExceeded(){return this.featureStore.usedMemory>=this.maximumByteSize}constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10485760,this._tileBounds=new g.F,this._tiles=new ve,this._refCounts=new Map,this._tileFeatureCounts=new Map,this._tmpBoundingRect=(0,re.vt)()}add(e,t){for(const e of t)this._referenceFeature(e.objectId);const s=this.featureStore.upsertMany(t),i=s.map(e=>new Set(Object.keys(e.attributes))).reduce((e,t)=>(0,te.E$)(e,t),new Set(Object.keys(s[0]?.attributes??[]))),r=this._memoryLimitExceeded;this._addTileStorage(e,new Set(s.map(e=>e.objectId)),i),r&&this._applyCacheMemoryLimits()}_applyCacheMemoryLimits(){if(!this._memoryLimitExceeded)return;const{_tiles:e,featureStore:t,maximumByteSize:s}=this;e.someFromLowestToHighestPriority(e=>!this._memoryLimitExceeded||t.usedMemory-this._estimateRemoveTileMemoryReduction(e)<s||(this._removeTileStorage(e),!1))}_estimateRemoveTileMemoryReduction(e){let t=0;for(const s of e.objectIds)if(1===this._refCounts.get(s)){const e=this.featureStore.getFeature(s);e&&(t+=this.featureStore.estimateFeatureUsedMemory?.(e)??0)}return t}_hasAttributesForTile(e,t){if(e){const s=this._tiles.get(e);if(s)return!s.objectIds.size||(0,te.Yy)(t,s.attributeKeys)}return!1}getAttributesForTile(e){return e?this._tiles.get(e)?.attributeKeys:null}destroy(){this.clear(),this._tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this._tileBounds.clear(),this._tiles.clear(),this._refCounts.clear()}refresh(){this.clear(),this._tileFeatureCounts.clear()}processEdits(e,t,s){return this._processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this._processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,s)}_addTileStorage(e,t,s){const i=e.id;this._tiles.set(i,new we(e,t,s)),this._tileBounds.set(i,e.extent),this._tileFeatureCounts.set(i,t.size)}_remove({id:e}){const t=this._tiles.get(e);t&&this._removeTileStorage(t)}_removeTileStorage(e){const t=[];for(const s of e.objectIds)1===this._unreferenceFeature(s)&&t.push(s);this.featureStore.removeManyById(t);const s=e.key.id;this._tiles.delete(s),this._tileBounds.delete(s)}_processEditsDelete(e){this.featureStore.removeManyById(e);for(const t of this._tiles.values()){for(const s of e)t.objectIds.delete(s);this._tileFeatureCounts.set(t.key.id,t.objectIds.size)}for(const t of e)this._refCounts.delete(t)}async _processEditsRefetch(e,t,s){if(!e.length)return;const{features:i}=await t(e,s);for(const e of i){if(this._tmpBoundingRect.fill(0),null==e.geometry||0===e.geometry.vertexCount)continue;(0,re.Ie)(this._tmpBoundingRect);const t=(0,p.NO)(e.geometry,this._tmpBoundingRect);this._tileBounds.forEachInBounds(t,t=>{const s=this._tiles.get(t);this.featureStore.add(e);const i=e.objectId;s.objectIds.has(i)||(s.objectIds.add(i),this._referenceFeature(i),this._tileFeatureCounts.set(s.key.id,s.objectIds.size))})}}process(e,t=()=>!0,s){if(null==this.tileInfo||!e.extent||null!=this.extent&&!(0,re.HY)((0,re.VY)(this.extent,this._tmpBoundingRect),e.extent))return new be(e);if(this._memoryLimitExceeded&&!this._tiles.hasLowerPriority(e.id??""))return new be(e);if(this._hasAttributesForTile(e.id,s))return new be(e);const i=this._createTileTree(e,this.tileInfo);return this._simplify(i,t,null,0,1),this._collectMissingTiles(e,i,this.tileInfo,s)}get debugInfo(){return Array.from(this._tiles.values()).map(({key:e})=>({key:e.toJSON(),featureCount:this._tileFeatureCounts.get(e.id)||0}))}getFeatureCount(e){return this._tileFeatureCounts.get(e.id)??0}async fetchCount(e,t,s,i){let r=this._tileFeatureCounts.get(e.id);return null!=r||(r=await(0,ce.gW)(t,s,i),this._tileFeatureCounts.set(e.id,r)),r}_createTileTree(e,t){const s=new Ce(e.level,e.row,e.col);return t.updateTileInfo(s,1),this._tileBounds.forEachInBounds(e.extent,i=>{const r=this._tiles.get(i)?.key;r&&function(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const s=e.level<t.level,i=s?e:t,r=s?t:e,n=1<<r.level-i.level;return Math.floor(r.row/n)===i.row&&Math.floor(r.col/n)===i.col}(e,r)&&this._populateChildren(s,r,t,this._tileFeatureCounts.get(r.id)||0)}),s}_populateChildren(e,t,s,i){const r=t.level-e.level-1;if(r<0)return void(e.isLeaf=!0);const n=t.row>>r,o=t.col>>r,a=e.row<<1,l=o-(e.col<<1)+(n-a<<1),u=e.children[l];if(null!=u)this._populateChildren(u,t,s,i);else{const r=new Ce(e.level+1,n,o);s.updateTileInfo(r,1),e.children[l]=r,this._populateChildren(r,t,s,i)}}_simplify(e,t,s,i,r){const n=r*r;if(e.isLeaf)return t(this.getFeatureCount(e),r)?0:(this._remove(e),null!=s&&(s.children[i]=null),n);const o=r/2,a=o*o;let l=0;for(let s=0;s<e.children.length;s++){const i=e.children[s];l+=null!=i?this._simplify(i,t,e,s,o):a}return 0===l?this._mergeChildren(e):1-l/n<Ie&&(this._purge(e),null!=s&&(s.children[i]=null),l=n),l}_mergeChildren(e){const t=new Set;let s;this._forEachLeaf(e,e=>{const i=this._tiles.get(e.id);if(i){s=s?(0,te.E$)(s,i.attributeKeys):new Set(i.attributeKeys);for(const e of i.objectIds)t.has(e)||(t.add(e),this._referenceFeature(e));this._remove(e)}}),this._addTileStorage(e,t,s??new Set),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this._tileFeatureCounts.set(e.id,t.size)}_forEachLeaf(e,t){for(const s of e.children)null!=s&&(s.isLeaf?t(s):this._forEachLeaf(s,t))}_purge(e){if(null!=e)if(e.isLeaf)this._remove(e);else for(let t=0;t<e.children.length;t++){const s=e.children[t];this._purge(s),e.children[t]=null}}_collectMissingTiles(e,t,s,i){const r=new Me(s,e,this.extent);return this._collectMissingTilesRecurse(t,r,1,i),r.info}_collectMissingTilesRecurse(e,t,s,i){const r=this._tiles.has(e.id)&&!this._hasAttributesForTile(e.id,i);if(r&&t.addMissing(e.level,e.row,e.col,s),e.isLeaf)return;if(!e.hasChildren)return void(r||t.addMissing(e.level,e.row,e.col,s));const n=s/2;for(let s=0;s<e.children.length;s++){const r=e.children[s];null==r?t.addMissing(e.level+1,(e.row<<1)+((2&s)>>1),(e.col<<1)+(1&s),n):this._collectMissingTilesRecurse(r,t,n,i)}}_referenceFeature(e){const t=(this._refCounts.get(e)||0)+1;return this._refCounts.set(e,t),1===t?0:2}_unreferenceFeature(e){const t=(this._refCounts.get(e)||0)-1;return 0===t?(this._refCounts.delete(e),1):(t>0&&this._refCounts.set(e,t),2)}get test(){}};(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],xe.prototype,"featureStore",void 0),(0,i.Cg)([(0,a.MZ)()],xe.prototype,"tileInfo",void 0),(0,i.Cg)([(0,a.MZ)()],xe.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)()],xe.prototype,"maximumByteSize",void 0),xe=(0,i.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],xe);class we{constructor(e,t,s){this.key=e,this.objectIds=t,this.attributeKeys=s}}class Ce extends F.U{constructor(){super(...arguments),this.isLeaf=!1,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&(null!=this.children[0]||null!=this.children[1]||null!=this.children[2]||null!=this.children[3])}}class be{constructor(e,t=[]){this.missingTiles=t,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,re.Wc)(e.extent),this.coveredArea=this.fullArea}prepend(e){this.missingTiles=e.missingTiles.concat(this.missingTiles),this.coveredArea+=e.coveredArea,this.fullArea+=e.fullArea}}class Me{constructor(e,t,s){this._tileInfo=e,this._extent=null,this.info=new be(t),null!=s&&(this._extent=(0,re.VY)(s))}addMissing(e,t,s,i){const r=new F.U(e,t,s);this._tileInfo.updateTileInfo(r,1)&&(null==this._extent||(0,re.HY)(this._extent,r.extent))&&(this.info.missingTiles.push({data:r,resolution:i}),this.info.coveredArea-=(0,re.Wc)(r.extent))}}const Ie=.18751;let Se=class extends r.nJ{constructor(){super(...arguments),this._isInitializing=!0,this.remoteClient=null,this._whenSetup=(0,n.Tw)(),this._elevationAligner=R(),this._elevationFilter=q(),this._symbologyCandidatesFetcher=J(),this._updatingHandles=new l.U,this._alignPointsInFeatures=async(e,t)=>{const s={query:e},i=await this.remoteClient.invoke("alignElevation",s,{signal:t});return(0,n.Te)(t),i},this._getSymbologyCandidates=async(e,t)=>{const s={candidates:e,spatialReference:this._spatialReference.toJSON()},i=await this.remoteClient.invoke("getSymbologyCandidates",s,{signal:t});return(0,n.Te)(t),i}}get updating(){return this._isInitializing||this._updatingHandles.updating||this._featureFetcher.updating}destroy(){this._featureFetcher?.destroy(),this._queryEngine?.destroy(),this._featureStore?.clear()}async setup(e){if(this.destroyed)return{result:{}};const{geometryType:t,objectIdField:s,timeInfo:i,fieldsIndex:r}=e.serviceInfo,{hasZ:n}=e,a=u.A.fromJSON(e.spatialReference);this._spatialReference=a,this._featureStore=new M(t,n,!1),this._featureStore.estimateFeatureUsedMemory=e=>e.usedMemory,this._queryEngine=new I.do({spatialReference:e.spatialReference,featureStore:this._featureStore,geometryType:t,fieldsIndex:r,hasZ:n,hasM:!1,featureIdInfo:{type:"object-id",fieldName:s},timeInfo:i}),this._featureFetcher=new fe({store:new xe({featureStore:this._featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:a,sourceSpatialReference:u.A.fromJSON(e.serviceInfo.spatialReference),customParameters:e.configuration.customParameters});const l="3d"===e.configuration.viewType;return this._elevationAligner=R(l,{elevationInfo:null!=e.elevationInfo?A.A.fromJSON(e.elevationInfo):null,alignPointsInFeatures:this._alignPointsInFeatures}),this._elevationFilter=q(l),this.addHandles([(0,o.wB)(()=>this._featureFetcher.availability,e=>this.emit("notify-availability",{availability:e}),o.OH),(0,o.wB)(()=>this.updating,()=>this._notifyUpdating())]),this._whenSetup.resolve(),this._isInitializing=!1,this.configure(e.configuration)}async configure(e){return await this._updatingHandles.addPromise(this._whenSetup.promise),this._updateFeatureFetcherConfiguration(e),Te}async setSuspended(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),this._featureFetcher.suspended=e,Te}async updateOutFields(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),this._featureFetcher.outFields=new Set(e??[]),Te}async fetchCandidates(e,t){await this._whenSetup.promise,(0,n.Te)(t);const s=function(e,t){const s=!!t||void 0;if(!e.filter)return{...e,query:{where:"1=1",returnZ:s}};const{distance:i,units:r,spatialRel:n,where:o,timeExtent:a,objectIds:l}=e.filter,u={geometry:e.filter.geometry?(0,h.rS)(e.filter.geometry):void 0,distance:i,units:r,spatialRel:n,timeExtent:a,objectIds:l,returnZ:s,where:o??"1=1"};return{...e,query:u}}(e,this._featureStore.hasZ),i=t?.signal,r=await this._queryEngine.executeQueryForSnapping(s,i);(0,n.Te)(i);const o=await this._elevationAligner.alignCandidates(r.candidates,u.A.fromJSON(e.point.spatialReference)??u.A.WGS84,i);(0,n.Te)(i);const a=await this._symbologyCandidatesFetcher.fetch(o,i);(0,n.Te)(i);const l=0===a.length?o:o.concat(a);return{result:{candidates:this._elevationFilter.filter(s,l)}}}async updateTiles(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),this._featureFetcher.tileSize=e.tileSize,this._featureFetcher.tilesOfInterest=e.tiles.map(e=>F.U.fromJSON(e)),this._featureFetcher.tileInfo=null!=e.tileInfo?S.A.fromJSON(e.tileInfo):null,Te}async refresh(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),this._featureFetcher.refresh(),Te}async whenNotUpdating(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),await(0,o.C_)(()=>!this.updating,t),(0,n.Te)(t),Te}async getDebugInfo(e,t){return(0,n.Te)(t),{result:this._featureFetcher.debugInfo}}async handleEdits(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,n.Te)(t),await this._updatingHandles.addPromise(this._featureFetcher.handleEdits(e)),(0,n.Te)(t),Te}async setHistoricMoment(e,t){return this._featureFetcher.setHistoricMoment(e.moment),Te}async notifyElevationSourceChange(e,t){return this._elevationAligner.notifyElevationSourceChange(),Te}async notifySymbologyChange(e,t){return this._symbologyCandidatesFetcher.notifySymbologyChange(),Te}async setSymbologySnappingSupported(e){return this._symbologyCandidatesFetcher=J(e,this._getSymbologyCandidates),Te}_updateFeatureFetcherConfiguration(e){this._featureFetcher.filter=null!=e.filter?T.A.fromJSON(e.filter):null,this._featureFetcher.customParameters=e.customParameters}_notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],Se.prototype,"updating",null),(0,i.Cg)([(0,a.MZ)()],Se.prototype,"_isInitializing",void 0),Se=(0,i.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],Se);const Fe=Se,Te={result:{}}},31756(e,t,s){s.d(t,{j:()=>n});var i=s(86211),r=s(79258);const n={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",r.$O.radius)}},36708(e,t,s){s.d(t,{C_:()=>d,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>y,wB:()=>l,z7:()=>u});var i=s(37955),r=s(36563),n=s(97768),o=s(74887),a=s(14012);function l(e,t,s={}){return h(e,t,s,f)}function u(e,t,s={}){return h(e,t,s,p)}function h(e,t,s={},i){let r=null;const o=s.once?(e,s)=>{i(e)&&((0,n.xt)(r),t(e,s))}:(e,s)=>{i(e)&&t(e,s)};if(r=(0,a.Cn)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return r}function c(e,t,s,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,n.xt)(h),s(e)}const f=l(e,(e,s)=>{c(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{f.remove(),c()}),h}function d(e,t){return function(e,t,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,n.xt)(a)}return new Promise((i,n)=>{a=(0,r.vE)([(0,o.u7)(s,()=>{l(),n((0,o.NK)())}),h(e,e=>{l(),i(e)},{sync:!1,once:!0},t??f)])})}(e,p,t)}function f(e){return!0}function p(e){return!!e}s(80559);const m={sync:!0},g={initial:!0},y={sync:!0,initial:!0}},39357(e,t,s){s.d(t,{A:()=>a});var i,r=s(31635),n=s(25482),o=s(91429);let a=i=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628(e,t,s){s.d(t,{A:()=>l});var i,r=s(31635),n=s(91429),o=s(76357),a=s(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],l)},50498(e,t,s){s.d(t,{Ye:()=>c,gy:()=>h,iI:()=>f,yR:()=>d});var i=s(66552),r=s(5443),n=s(91075),o=s(48526),a=s(86738),l=s(39829),u=s(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:n.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},53177(e,t,s){s.d(t,{A:()=>h});var i,r=s(31635),n=s(4718),o=s(91429),a=s(39357),l=s(76357),u=s(93223);let h=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const s=String(e);this.codedValues.some(e=>(String(e.code)===s&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,r.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},58501(e,t,s){s.d(t,{q:()=>r});var i=s(62815);function r(e,t,s){if(!s?.features||!s.hasZ)return;const r=(0,i.N)(s.geometryType,t,e.outSpatialReference);if(r)for(const e of s.features)r(e.geometry)}},60408(e,t,s){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?n(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}s.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>c,ZC:()=>i,fT:()=>n,uW:()=>l})},60999(e,t,s){s.d(t,{DZ:()=>p,Ke:()=>f,Tj:()=>h,UT:()=>m,aD:()=>y,jJ:()=>u});var i=s(31635),r=s(69622),n=s(97768),o=s(74887),a=s(10107),l=s(64108);function u(e,t,s){return(0,o.Lx)(e.map((e,i)=>t.apply(s,[e,i])))}async function h(e,t,s){return(await(0,o.Lx)(e.map((e,i)=>t.apply(s,[e,i])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function p(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function m(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},62815(e,t,s){s.d(t,{N:()=>o});var i=s(86211),r=s(73941),n=s(21325);function o(e,t,s){if(null==t||null==s||s.vcsWkid||(0,n.aI)(t,s)||(0,r.xP)(t)||(0,r.xP)(s))return;const o=(0,i.G9)(t)/(0,i.G9)(s);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}},65864(e,t,s){s.d(t,{rS:()=>h,xD:()=>d});var i=s(5443),r=s(91075),n=s(48526),o=s(86738),a=s(39829),l=s(82799),u=s(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?n.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},66344(e,t,s){s.d(t,{q:()=>a});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const s=this._db.get(e.id+t);return s?.size??0}put(e,t,s,r,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==s&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,s,r,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,s,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new n(s,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const s=this._db.get(t);if(!s)return;this._size-=s.size,e.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,s.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}s.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;s[r]=(s[r]||0)+e.size,this._users.forEach(s=>{const{id:r,name:n}=s;if(i.startsWith(r)){const s=t[n]||0;t[n]=s+e.size}})});const i={};this._users.forEach(e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[s]||0;t[s]=r,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"});const r=Object.keys(t);r.sort((e,s)=>t[s]-t[e]),r.forEach(s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]);for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,s]of this._db)t.startsWith(e.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s,i){const r=this._users.get(e.split(o)[0])?.removeFunc,n=r?.(t,i,s);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const s=t??this;if(s.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!i||n.startsWith(i))){const i=t??this._users.get(n.split(o)[0]);if(this._purgeItem(n,a,i),s.size<=.9*e)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!i||r.startsWith(i)){const i=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,n,i),s.size<=.9*e)return}}_purgeItem(e,t,s){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class n{constructor(e,t,s){this.entry=e,this.size=t,this.lifetime=s,this.lives=s}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new r,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69540(e,t,s){s.d(t,{OU:()=>h,Pw:()=>c});var i=s(31635),r=s(69622),n=(s(44208),s(4718)),o=(s(53966),s(97768)),a=s(88620),l=s(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;const s=e;let r=class extends s{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const s=t.metadata,i=t.store,r={},l=new Map;for(const t in s){const o=s[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,n.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):r[t]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,s]of l)e.set(t,s,0)}return u}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},c=h(r.A)},72802(e,t,s){s.d(t,{U:()=>r});var i=s(19419);class r{constructor(e,t,s,r=(0,i.vt)()){this._level=e,this._row=t,this._col=s,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}},75503(e,t,s){s.d(t,{EC:()=>I,wq:()=>a});var i=s(4576),r=s(21818),n=(s(44208),s(15142)),o=s(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=f,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(),C.prune(),b.prune(),M.prune()}all(e){l(this._data,e)}search(e,t){let s=this._data;const i=this._toBBox;if(v(e,s))for(w.clear();s;){for(let r=0,n=s.children.length;r<n;r++){const n=s.children[r],o=s.leaf?i(n):n;v(e,o)&&(s.leaf?t(n):_(e,o)?l(n,t):w.push(n))}s=w.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!v(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],n=t.leaf?s(r):r;if(v(e,n)){if(t.leaf||_(e,n))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,s=e.length;t<s;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 F([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,o=0,a=!1;const l=this._toBBox(e);for(b.clear(),M.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],o=M.pop()??0,a=!0),s.leaf&&(t=(0,i.qh)(s.children,(0,r.z)(e),s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),b.push(s),this._condense(b),this;a||s.leaf||!_(s,l)?n?(o++,s=n.children[o],a=!1):s=null:(b.push(s),M.push(o),o=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,s,i){const r=s-t+1;let n=this._maxEntries;if(r<=n){const i=new F(e.slice(t,s+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(n)),n=Math.ceil(r/n**(i-1)));const o=new T([]);o.height=i;const a=Math.ceil(r/n),l=a*Math.ceil(Math.sqrt(n));x(e,t,s,l,this._compareMinX);for(let r=t;r<=s;r+=l){const t=Math.min(r+l-1,s);x(e,r,t,a,this._compareMinY);for(let s=r;s<=t;s+=a){const r=Math.min(s+a-1,t);o.children.push(this._build(e,s,r,i-1))}}return u(o,this._toBBox),o}_insert(e,t,s){const i=this._toBBox,r=s?e:i(e);b.clear();const n=function(e,t,s,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==s;){let s,i=1/0,r=1/0;for(let n=0,o=t.children.length;n<o;n++){const o=t.children[n],a=p(o),l=g(e,o)-a;l<r?(r=l,i=a<i?a:i,s=o):l===r&&a<i&&(i=a,s=o)}t=s||t.children[0]}return t}(r,this._data,t,b);for(n.children.push(e),c(n,r);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;!function(e,t,s){for(let i=s;i>=0;i--)c(t.data[i],e)}(r,b,t)}_split(e,t){const s=e.data[t],i=s.children.length,r=this._minEntries;this._chooseSplitAxis(s,r,i);const n=this._chooseSplitIndex(s,r,i);if(!n)return;const o=s.children.splice(n,s.children.length-n),a=s.leaf?new F(o):new T(o);a.height=s.height,u(s,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(s,a)}_splitRoot(e,t){this._data=new T([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let i,r,n;i=r=1/0;for(let o=t;o<=s-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,s,this._toBBox),l=y(t,a),u=p(t)+p(a);l<i?(i=l,n=o,r=u<r?u:r):l===i&&u<r&&(r=u,n=o)}return n}_chooseSplitAxis(e,t,s){const i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,s,i)<this._allDistMargin(e,t,s,r)&&e.children.sort(i)}_allDistMargin(e,t,s,i){e.children.sort(i);const r=this._toBBox,n=h(e,0,t,r),o=h(e,s-t,s,r);let a=m(n)+m(o);for(let i=t;i<s-t;i++){const t=e.children[i];c(n,e.leaf?r(t):t),a+=m(n)}for(let i=s-t-1;i>=t;i--){const t=e.children[i];c(o,e.leaf?r(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const r=e.data[t-1],n=r.children;n.splice((0,i.qh)(n,s,n.length,r.indexHint),1)}else this.clear();else u(s,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 s=e;for(C.clear();s;){if(!0===s.leaf)for(const e of s.children)t((0,r.z)(e));else C.pushArray(s.children);s=C.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,s,i,r){r||(r=new F([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let n,o=t;o<s;o++)n=e.children[o],c(r,e.leaf?i(n):n);return r}function c(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 f(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(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 s=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,r-s)*Math.max(0,n-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function v(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,s,i,r){const n=[t,s];for(;n.length;){const t=n.pop(),s=n.pop();if(t-s<=i)continue;const a=s+Math.ceil((t-s)/i/2)*i;(0,o.q)(e,a,s,t,r),n.push(s,a,a,t)}}const w=new n.A,C=new n.A,b=new n.A,M=new n.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class F extends S{constructor(e){super(),this.children=e,this.leaf=!0}}class T extends S{constructor(e){super(),this.children=e,this.leaf=!1}}},76357(e,t,s){s.d(t,{A:()=>u});var i=s(31635),r=s(66552),n=s(25482),o=s(91429),a=s(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},79677(e,t,s){s.d(t,{A:()=>c});var i,r=s(31635),n=s(25482),o=s(88930),a=s(91429),l=s(98623),u=s(36005),h=s(43937);let c=class extends n.o{static{i=this}static get allTime(){return d}static get empty(){return f}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,s=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===i&&s===r}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let s=this.start;s&&(s=(0,o.lL)(s,e,t));let r=this.end;if(r){const s=(0,o.lL)(r,e,t);r=r.getTime()===s.getTime()?s:(0,o.S1)(s,1,e,t)}return new i({start:s,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let o,a;return r>=t&&r<=s?o=r:t>=r&&t<=n&&(o=t),s>=r&&s<=n?a=s:n>=t&&n<=s&&(a=n),null==o||null==a||isNaN(o)||isNaN(a)?i.empty:new i({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,s=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new i,{start:n,end:a}=this;return null!=n&&(r.start=(0,o.S1)(n,e,t,s)),null!=a&&(r.end=(0,o.S1)(a,e,t,s)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:s})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,r.Cg)([(0,h.K)("end")],c.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,r.Cg)([(0,h.K)("start")],c.prototype,"writeStart",null),c=i=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const d=new c,f=new c({start:void 0,end:void 0})},79897(e,t,s){s.d(t,{U:()=>h});var i=s(31635),r=s(69622),n=s(36563),o=s(36708),a=s(76030),l=s(10107),u=s(64108);let h=class extends r.A{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.wB)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.z7)}addOnCollectionChange(e,t,{initial:s=!1,final:i=!1}={}){const r=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.OH),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:i?e=>t({added:[],removed:e.toArray()}):void 0})],r),(0,n.hA)(()=>this.removeHandles(r))}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,n.hA)(()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(c)||this._set("updating",!1))}),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},i){const r=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,r);const o=i(e,t,s);return this.addHandles(o,r),(0,n.hA)(()=>this.removeHandles(r))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),i=(0,o.wB)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(i,t),i}_createSyncUpdatingCallback(){return()=>{this.removeHandles(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a._)(()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(c))}),c)}}};(0,i.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"updating",void 0),h=(0,i.Cg)([(0,u.$)("esri.core.support.UpdatingHandles")],h);const c=-42},87045(e,t,s){s.d(t,{A:()=>v});var i,r=s(31635),n=s(66552),o=s(25482),a=s(86211),l=s(91429),u=s(56507),h=s(86738),c=s(16930),d=s(21325),f=s(28735),p=s(91806),m=s(72802),g=s(36005),y=s(43937);const _=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends o.o{static{i=this}static create(e={}){const{resolutionFactor:t=1,scales:s,size:r=256,spatialReference:n=c.A.WebMercator,numLODs:o=24}=e;if(!(0,d.fn)(n)){const e=[];if(s)for(let t=0;t<s.length;t++){const i=s[t];e.push(new p.A({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new p.A({level:s,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new h.A(0,0,n),size:[r,r],spatialReference:n})}const l=(0,d.Vp)(n),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):new h.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),f=1/(39.37*(0,a.GA)(n)*96),m=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],i=t*f;m.push(new p.A({level:e,scale:t,resolution:i}))}else{let e=(0,d.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const s=Math.ceil(o/t);m.push(new p.A({level:0,scale:e,resolution:e*f}));for(let i=1;i<s;i++){const s=e/2**t,r=s*f;m.push(new p.A({level:i,scale:s,resolution:r})),e=s}}return new i({dpi:96,lods:m,origin:u,size:[r,r],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,d.Vp)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const i=[],r=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach(e=>{i.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,r[e.level]=e})),this._set("scales",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),i=s+1;return t[s]/(t[s]/t[i])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let i=0;for(;i<s;i++){const s=t[i],r=t[i+1];if(s<=e)return i;if(r===e)return i+1;if(s>e&&r<e)return i+Math.log(s/e)/Math.log(s/r)}return i}tileAt(e,t,s,i){const r=this.lodAt(e);if(!r)return null;let n,o;if("number"==typeof t)n=t,o=s;else if((0,d.aI)(t.spatialReference,this.spatialReference))n=t.x,o=t.y,i=s;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,o=e.y,i=s}const a=r.resolution*this.size[0],l=r.resolution*this.size[1];return i??=new m.U(0,0,0),i.level=e,i.row=Math.floor((this.origin.y-o)/l+.001),i.col=Math.floor((n-this.origin.x)/a+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let s=this.lodAt(e.level);if(!s&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return!1;const i=e.level-s.level,r=s.resolution*this.size[0]/2**i,n=s.resolution*this.size[1]/2**i;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+n,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:i}=s,r=i*this.size[0],n=i*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+r,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const s=[],r=this.lods.length-t;for(let e=0;e<r;e++){const i=e+t,{scale:r,resolution:n}=i>=0?this.lods[i]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};s.push(new p.A({level:e,scale:r,resolution:n}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const i=e[s];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r.Cg)([(0,g.w)("origin")],v.prototype,"readOrigin",null),(0,r.Cg)([(0,l.MZ)({type:[p.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,r.Cg)([(0,g.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r.Cg)([(0,y.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,r.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],v)},87992(e,t,s){s.d(t,{JR:()=>I,ME:()=>C,MY:()=>S,NO:()=>w,Nh:()=>M,gh:()=>b});var i=s(31635),r=s(69397),n=s(16930),o=(s(70328),s(19419)),a=s(60408),l=s(21325),u=s(513),h=s(50954),c=s(79567),d=s(52006),f=s(49663),p=s(46068),m=s(92722);class g{constructor({type:e,spatialReference:t,vertexCount:s,vertexXY:i,vertexZ:r,vertexM:n,partCount:o,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:h,segmentParams:c,segmentCountArc:d,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=s,this.vertexXY=i,this.vertexZ=r,this.vertexM=n,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=c,this.segmentCountArc=d,this.segmentCountBezier=f}get segmentParamCount(){return z(4)*this.segmentCountArc+z(2)*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:s}=this;return e&&e-t-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}get hasCurves(){return null!=this.segmentFlags}get isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?r.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:s,hasZ:i,hasM:r,hasCurves:n,segmentCountArc:o,segmentCountBezier:a}=this,l=O(e,t,s,i,r,n,o,a);l.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;l.vertexXY.set(u.subarray(0,2*t),0),l.vertexZ?.set(h.subarray(0,t),0),l.vertexM?.set(c.subarray(0,t),0);const{partOffsets:d,partFlags:f}=this;l.partFlags?.set(f.subarray(0,s+1)),l.partOffsets?.set(d.subarray(0,s+1));const{segmentFlags:p,segmentIndices:m,segmentParams:g,segmentParamCount:y}=this;return l.segmentFlags?.set(p.subarray(0,t),0),l.segmentIndices?.set(m.subarray(0,t),0),l.segmentParams?.set(g.subarray(0,y),0),l}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,l.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves!==e.hasCurves||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const s=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,s)=>Math.abs(e-s)>t||isNaN(e)!==isNaN(s);for(let t=0;t<this.vertexCount;++t)if(s(this.vertexXY[2*t],e.vertexXY[2*t])||s(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(s(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(s(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(s(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return new y(this)}}class y{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=A(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new x(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[s++],i=t[s++],r=t[s++],n=t[s++];return{b:[this.end,[e,i],[r,n]]}}const i=t[s++],r=t[s++],n=t[s++],o=t[s++],a=t[s++],l=t[s++];s++,s++;const u=t[s++],h=t[s++];if(!Boolean(4&i)&&1===n)return{c:[this.end,[u,h]]};const c=2&i?0:1,d=1&i?0:1;return{a:[this.end,[a,l],c,d,o,r,n]}}}function w(e,t){const s={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,i.mS)(s,new F(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{hasCurves:s,vertexCount:r,vertexXY:n,vertexZ:a,vertexM:l}=e,u=T(e);if(s){const s={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(s,new F(e,["vertexZ","vertexM"]),!1);const r=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:s}of t.segments)(0,c.e)(r,e,s),e=(0,d.yP)(s)}const[n,a,l,h]=r;t={xmin:n,ymin:a,xmax:l,ymax:h,spatialReference:u}}catch(e){s.error=e,s.hasError=!0}finally{(0,i.hk)(s)}}else{let e,s,i,o;e=s=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=n[2*t],a=n[2*t+1];e=Math.min(e,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}t={xmin:e,ymin:s,xmax:i,ymax:o,spatialReference:u}}if(a){let e=1/0,s=-1/0;for(const t of a)e=Math.min(e,t),s=Math.max(s,t);t.zmin=e,t.zmax=s}if(l){let e=1/0,s=-1/0;for(const t of l)e=Math.min(e,t),s=Math.max(s,t);t.mmin=e,t.mmax=s}return t}(e)),t}catch(e){s.error=e,s.hasError=!0}finally{(0,i.hk)(s)}}function C(e){let t,s,i;if((0,a.fT)(e)){i="point";const{x:r,y:n,z:o,m:a}=e,l=[r,n];null!=o&&l.push(o),null!=a&&l.push(a),s=[[l]],t=1}else(0,a.U9)(e)?(i="multipoint",s=[e.points],t=e.points.length):(0,a.Rg)(e)?(i="polyline",s=e.curvePaths??e.paths,t=s.reduce((e,t)=>e+t.length,0)):(i="polygon",s=e.curveRings??e.rings,t=s.reduce((e,t)=>e+t.length-E(t),0));const r=O(i,t,i.includes("point")?0:s.length,(0,a.Pv)(e),(0,a.W0)(e),(0,d.Ed)(e));function n(e){r.vertexXY[2*l]=e[0],r.vertexXY[2*l+1]=e[1],r.hasZ&&(r.vertexZ[l]=e[2]),r.hasM&&(r.vertexM[l]=e[o]),++l}r.spatialReference=e.spatialReference??void 0;const o=r.hasZ?3:2;let l=0;if(!r.isMultipart){if(!r.hasZ&&!r.hasM){for(const[e,t]of s[0])r.vertexXY[2*l]=e,r.vertexXY[2*l+1]=t,++l;return r}for(const e of s[0])n(e);return r}const c="polygon"===r.type;let m=0;if(!r.hasCurves){for(const e of s){r.partOffsets[m++]=l;let t=e.length;if(c&&(t-=E(e)),r.hasZ||r.hasM)for(let s=0;s<t;++s)n(e[s]);else for(let s=0;s<t;++s){const[t,i]=e[s];r.vertexXY[2*l]=t,r.vertexXY[2*l+1]=i,++l}}return r.partOffsets[m]=l,r}function g(e){const t=l-1;r.segmentFlags[t]=e;const s=z(e);r.segmentIndices[t]=0===s?R:y,4===e?++r.segmentCountArc:2===e&&++r.segmentCountBezier;const i=y+s;if(i<=(r.segmentParams?.length??0))return;let n=i*P;n=20*Math.ceil(n/20);const o=r.segmentParams;if(r.segmentParams=new Float64Array(n),null!=o)for(let e=0;e<o.length;++e)r.segmentParams[e]=o[e]}let y=0;for(const e of s){r.partOffsets[m++]=l,n(e[0]);let t=e.length;c&&(t-=E(e));for(let s=1;s<t;++s){const t=e[s];if((0,d.wY)(t)){g(4);const i=r.segmentParams,[o,[a,l],u,h,c,f,m]=t.a;let _=4;h||(_|=1),u||(_|=2);const v=(0,p.SW)((0,d.yP)(e[s-1]),t),[x,w]=(0,p.Uk)(v,.5);i[y++]=_,i[y++]=f,i[y++]=m,i[y++]=c,i[y++]=a,i[y++]=l,i[y++]=v.u2-v.u1,i[y++]=v.u1,i[y++]=x,i[y++]=w,n(o);continue}const i=(0,d.aO)(t);if((0,d.DA)(t)||i){g(4);const o=r.segmentParams,a=(0,d.yP)(t),l=i?(0,h.pM)((0,d.yP)(e[s-1]),t):(0,f.i)((0,d.yP)(e[s-1]),t),{cx:c,cy:p,thetaStart:m,thetaEnd:_,radius:v}=l;let x=i?0:4;m>_||(x|=1),Math.abs(_-m)<=Math.PI||(x|=2);const[w,C]=i?t.c[1]:(0,u.mq)(l,.5);o[y++]=x,o[y++]=v,o[y++]=1,o[y++]=0,o[y++]=c,o[y++]=p,o[y++]=_-m,o[y++]=m,o[y++]=w,o[y++]=C,n(a);continue}if((0,d.n1)(t)){g(2);const e=r.segmentParams,[s,[i,o],[a,l]]=t.b;e[y++]=i,e[y++]=o,e[y++]=a,e[y++]=l,n(s);continue}g(1),n(t)}}return r.partOffsets[m]=l,r}function b(e){const t=A(e),{vertexCount:s,partCount:i,hasZ:r,hasM:n}=e,o=T(e);if("point"===e.type){const[t,s]=e.vertexXY,i=e.vertexZ?.[0],r=e.vertexM?.[0];return{x:t,y:s,z:i,m:r,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<s;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:r,hasM:n}}const l="polygon"===e.type;if(!e.hasCurves){const s=new Array;for(let r=0;r<i;++r){const i=e.partOffsets[r+1],n=new Array;for(;a<i;)n.push(t(a++));l&&n.length>0&&n.push(n[0]),s.push(n)}return l?{rings:s,hasZ:r,hasM:n,spatialReference:o}:{paths:s,hasZ:r,hasM:n,spatialReference:o}}const u=new Array;for(const{segments:t,startVertex:s}of e.parts){const e=[s];for(const{curve:s}of t)e.push(s);u.push(e)}return l?{rings:[],curveRings:u,hasZ:r,hasM:n,spatialReference:o}:{paths:[],curvePaths:u,hasZ:r,hasM:n,spatialReference:o}}function M(e,{lengths:t,coords:s,hasZ:i,hasM:r},n){const o=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);i??=!1,r??=!1;const u=O(e,l,o,i,r,!1,0,0);if(u.spatialReference=n??void 0,!u.isMultipart){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=s[t++],u.vertexXY[2*e+1]=s[t++],i&&(u.vertexZ[e]=s[t++]),r&&(u.vertexM[e]=s[t++]);return u}const h=2+Number(i)+Number(r);let c=0,d=0;u.partOffsets[0]=0;for(const e of t){const t=u.partOffsets[d],n=t+e-Number(a);u.partOffsets[++d]=n;for(let e=t;e<n;++e)u.vertexXY[2*e]=s[c++],u.vertexXY[2*e+1]=s[c++],i&&(u.vertexZ[e]=s[c++]),r&&(u.vertexM[e]=s[c++]);a&&(c+=h)}return u}function I({type:e,vertexCount:t,vertexXY:s,vertexZ:i,vertexM:r,partCount:n,partOffsets:o,hasZ:a,hasM:l}){const u=new m.A([],[],a,l);n=Math.max(n,1);const h="polygon"===e;let c=0;for(let e=0;e<n;++e){const n=o?.[e+1]??t,d=u.coords.length;for(let e=c;e<n;++e)u.coords.push(s[2*e],s[2*e+1]),a&&u.coords.push(i[e]),l&&u.coords.push(r[e]);if(h){const e=c;u.coords.push(s[2*e],s[2*e+1]),a&&u.coords.push(i[e]),l&&u.coords.push(r[e])}u.lengths.push((u.coords.length-d)/u.stride),c=n}return"point"===e&&(u.lengths.length=0),u}function S(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,s=e.isCustomWkid()?0:e.getOldID();if(s<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===s)&&(i=void 0);const r=e.getVCS();if(null==r)return{wkid:s,latestWkid:i,wkt:t};const n=r.isCustomWkid()?0:r.getOldID();if(n<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===n)&&(o=void 0),{wkid:s,wkt:t,latestWkid:i,vcsWkid:n,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class F{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const s of t)e[s]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function T({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function A({vertexXY:e,vertexZ:t,vertexM:s}){return t?s?i=>[e[2*i],e[2*i+1],t[i],s[i]]:s=>[e[2*s],e[2*s+1],t[s]]:s?t=>[e[2*t],e[2*t+1],s[t]]:t=>[e[2*t],e[2*t+1]]}function z(e){switch(e){case 1:return 0;case 4:return 10;case 2:return 4}}function E(e){if(e.length>0){const t=e[0],s=(0,d.yP)(e.at(-1));return t.every((e,t)=>e===s[t])?1:0}return 0}function O(e,t,s,i,r,n,o,a){o??=0,a??=0;const l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(u+=Float64Array.BYTES_PER_ELEMENT*t),r&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),n&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(u);let c=0;if(l.vertexXY=new Float64Array(h,c,2*t),c+=l.vertexXY.byteLength,i&&(l.vertexZ=new Float64Array(h,c,t),c+=l.vertexZ.byteLength),r&&(l.vertexM=new Float64Array(h,c,t),c+=l.vertexM.byteLength),n&&(l.segmentParams=new Float64Array(h,c,l.segmentParamCount),c+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(h,c,t),l.segmentIndices.fill(R),c+=l.segmentIndices.byteLength),l.isMultipart&&(l.partOffsets=new Int32Array(h,c,s+1),c+=l.partOffsets.byteLength,l.partFlags=new Int8Array(h,c,s+1),c+=l.partFlags.byteLength),n&&(l.segmentFlags=new Int8Array(h,c,t),l.segmentFlags.fill(1),c+=l.segmentFlags.byteLength),"polygon"===l.type)for(let e=0;e<s;++e)l.partFlags[e]=1;return l}const P=1.61803,R=-1},88625(e,t,s){s.d(t,{A:()=>_});var i,r=s(31635),n=s(69540),o=s(66552),a=s(25482),l=s(97768),u=s(91429),h=s(30524);let c=i=class extends a.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e,t){return(0,h.Dx)(e,t,null,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"expression",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=i=(0,r.Cg)([(0,u.$K)("esri.symbols.support.FeatureExpressionInfo")],c);const d=c;var f=s(16271),p=s(36005),m=s(43937);const g=(0,o.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),y=new o.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let _=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e.expression?e:void 0:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,s,i){t[s]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,l.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,r.Cg)([(0,u.MZ)({type:d,json:{write:!0}})],_.prototype,"featureExpressionInfo",void 0),(0,r.Cg)([(0,p.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],_.prototype,"readFeatureExpressionInfo",null),(0,r.Cg)([(0,m.K)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],_.prototype,"writeFeatureExpressionInfo",null),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],_.prototype,"mode",null),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],_.prototype,"offset",void 0),(0,r.Cg)([(0,u.MZ)({type:f.KQ,json:{type:String,read:y.read,write:y.write}})],_.prototype,"unit",null),_=(0,r.Cg)([(0,u.$K)("esri.symbols.support.ElevationInfo")],_)},91806(e,t,s){s.d(t,{A:()=>l});var i,r=s(31635),n=s(25482),o=s(91429),a=s(56507);let l=class extends n.o{static{i=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,r.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.LOD")],l)},98453(e,t,s){s.d(t,{m:()=>i});const i=new(s(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9855],{24770(t,n,r){r.d(n,{$I:()=>p,AU:()=>M,g7:()=>g,i4:()=>f,ui:()=>l,up:()=>v,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),a=r(67026),s=r(82534),i=r(35522),u=r(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,i.C)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(b,t);return d(n,(0,e.KJ)((0,a.Xd)(n,r))),n}function h(t,n,r=c()){return(0,a.x8)(b,t,p(t)),(0,a.x8)(y,n,p(n)),(0,a.lw)(b,y,b),d(r,(0,e.KJ)((0,a.Xd)(r,b)))}function M(t,n,r,e=c()){return f(u.Cw,t,A),f(u.JP,n,x),f(u.Cb,r,w),h(A,x,A),h(A,w,e),e}function m(t){return t}function g(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function d(t,n){return t[3]=n,t}const v=[0,0,1,0],b=(0,s.vt)(),y=(0,s.vt)(),A=(c(),c()),x=c(),w=c()},27921(t,n,r){r.d(n,{$Q:()=>O,C:()=>c,Cr:()=>M,LV:()=>u,O_:()=>h,Qj:()=>f,T7:()=>_,Tj:()=>S,Ui:()=>w,_I:()=>I,fA:()=>l,gv:()=>q,lU:()=>m,mN:()=>Z,mP:()=>A,mR:()=>x,vE:()=>C,vt:()=>i});var e=r(34727),o=r(35522),a=r(51850),s=(r(78955),r(44280),r(32114));function i(t=N){return[t[0],t[1],t[2],t[3]]}function u(t=N[0],n=N[1],r=N[2],e=N[3]){return l(t,n,r,e,s.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=i()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=i()){const o=r[0]-n[0],a=r[1]-n[1],s=r[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=a*f-s*c,h=s*u-o*f,M=o*c-a*u,m=l*l+h*h+M*M,g=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return e[0]=l*g,e[1]=h*g,e[2]=M*g,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function m(t,n,r,e=0,a=Math.floor(r*(1/3)),s=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let i=a,u=!1;for(;i<r-1&&!u;)n(d,i),i++,u=!(0,o.t2)(p,d);if(!u)return!1;for(i=Math.max(i,s),u=!1;i<r&&!u;)n(v,i),i++,(0,o.Re)(b,p,d),(0,o.S8)(b,b),(0,o.Re)(y,d,v),(0,o.S8)(y,y),u=!(0,o.t2)(p,v)&&!(0,o.t2)(d,v)&&Math.abs((0,o.Om)(b,y))<g;return u?(M(p,d,v,t),!0):(0!==e||1!==a||2!==s)&&m(t,n,r,0,1,2)}r(32728);const g=.99619469809,p=(0,a.vt)(),d=(0,a.vt)(),v=(0,a.vt)(),b=(0,a.vt)(),y=(0,a.vt)();function A(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.Om)(t,r),t}function x(t,n,r,e){return(0,o.$A)(v,n,t),h(r,v,e)}function w(t,n,r){return null!=n&&P(C(t,n.origin,n.direction,R,r))}function _(t,n,r){return P(C(t,n.origin,n.vector,0,r))}function q(t,n,r){return P(C(t,n.origin,n.vector,1,r))}function S(t,n){return Z(t,n)>=0}function O(t,n){const r=(0,o.Om)(t,n.ray.direction),e=-Z(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const a=e/r;return r>0?a<n.c1&&(n.c1=a):a>n.c0&&(n.c0=a),n.c0<=n.c1}function I(t,n,r){const e=(0,o.hs)(s.rq.get(),t,-t[3]),a=function(t,n,r){const e=(0,o.hs)(s.rq.get(),t,(0,o.Om)(t,n));return(0,o.Re)(r,n,e),r}(t,(0,o.Re)(s.rq.get(),n,e),s.rq.get());return(0,o.WQ)(r,a,e),r}function Z(t,n){return(0,o.Om)(t,n)+t[3]}function P(t){return 0===t||1===t}function C(t,n,r,a,s){const i=(0,o.Om)(t,r),u=Z(t,n);if(0===i)return u>=0?2:3;let c=-u/i;return 1&a&&(c=(0,e.qE)(c,0,1)),!(4&a)&&c<0||!(8&a)&&c>1?u>=0?2:3:((0,o.WQ)(s,n,(0,o.hs)(s,r,c)),u>=0?0:1)}const N=[0,0,1,0],R=8},32114(t,n,r){r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),a=r(9093),s=r(82534),i=r(48163),u=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(i.vt)}static createVec3f64(){return new f(u.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(a.vt)}static createQuatf64(){return new f(s.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},32728(t,n,r){r.d(n,{YH:()=>s,nu:()=>i,wp:()=>a}),r(34727);var e=r(35522),o=r(51850);function a(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),a=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.hZ)(t,r,o,a),t}function s(t,n,r){r=r||t;const o=(0,e.Om)(t,n);(0,e.hZ)(r,t[0]-o*n[0],t[1]-o*n[1],t[2]-o*n[2]),(0,e.S8)(r,r)}function i(t,n,r,a=(0,o.vt)()){const s=(0,e.Bw)(t),i=(0,e.Bw)(n),f=(0,e.Om)(t,n)/(s*i);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*s+r*i)/Math.sin(o),h=l/s*Math.sin((1-r)*o),M=l/i*Math.sin(r*o);return(0,e.hs)(u,t,h),(0,e.hs)(c,n,M),(0,e.WQ)(a,u,c)}return(0,e.Cc)(a,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const u=(0,o.vt)(),c=(0,o.vt)()},35522(t,n,r){r.d(n,{$A:()=>q,Bw:()=>a,C:()=>s,Cc:()=>S,DI:()=>x,Il:()=>D,Io:()=>v,Ln:()=>d,Om:()=>_,Qr:()=>l,Re:()=>c,S8:()=>w,T9:()=>g,WQ:()=>u,Z0:()=>O,_S:()=>M,aI:()=>R,ei:()=>I,gL:()=>Z,hG:()=>b,hZ:()=>i,hs:()=>p,jb:()=>X,jk:()=>m,lo:()=>z,lw:()=>f,m3:()=>y,oW:()=>T,t2:()=>N,tn:()=>h,uE:()=>F,xg:()=>Y,ze:()=>A});var e=r(51850),o=r(34304);function a(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function g(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function d(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function A(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function x(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const r=n[0],e=n[1],o=n[2];let a=r*r+e*e+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function _(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function q(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],i=r[1],u=r[2];return t[0]=o*u-a*i,t[1]=a*s-e*u,t[2]=e*i-o*s,t}function S(t,n,r,e){const o=n[0],a=n[1],s=n[2];return t[0]=o+e*(r[0]-o),t[1]=a+e*(r[1]-a),t[2]=s+e*(r[2]-s),t}function O(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*a+r[12],t[1]=r[1]*e+r[5]*o+r[9]*a+r[13],t[2]=r[2]*e+r[6]*o+r[10]*a+r[14],t}function I(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=e*r[0]+o*r[3]+a*r[6],t[1]=e*r[1]+o*r[4]+a*r[7],t[2]=e*r[2]+o*r[5]+a*r[8],t}function Z(t,n,r){const e=r[0],o=r[1],a=r[2],s=r[3],i=n[0],u=n[1],c=n[2],f=o*c-a*u,l=a*i-e*c,h=e*u-o*i,M=o*h-a*l,m=a*f-e*h,g=e*l-o*f,p=2*s;return t[0]=i+f*p+2*M,t[1]=u+l*p+2*m,t[2]=c+h*p+2*g,t}const P=(0,e.vt)(),C=(0,e.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function R(t,n){if(t===n)return!0;const r=t[0],e=t[1],a=t[2],s=n[0],i=n[1],u=n[2],c=(0,o.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))}function T(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],a=r[2]-n[2];let s=e*e+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=e*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const X=c,j=f,E=l,Y=v,z=b,D=a,F=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){w(P,t),w(C,n);const r=_(P,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,a){const s=1-a,i=s*s,u=a*a,c=i*s,f=3*a*i,l=3*u*s,h=u*a;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:s,cross:q,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],i=r[1],u=r[2],c=o*u-a*i,f=a*s-e*u,l=e*i-o*s,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:T,dist:Y,distance:v,div:E,divide:l,dot:_,equals:R,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,a){const s=a*a,i=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=n[0]*i+r[0]*u+e[0]*c+o[0]*f,t[1]=n[1]*i+r[1]*u+e[1]*c+o[1]*f,t[2]=n[2]*i+r[2]*u+e[2]*c+o[2]*f,t},inverse:x,len:D,length:a,lerp:S,max:g,min:m,mul:j,multiply:f,negate:A,normalize:w,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,a=2*r()-1,s=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=a*n,t},rotateX:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0],a[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),a[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),a[1]=o[1],a[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),a[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),a[2]=o[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:d,set:i,sign:M,sqrDist:z,sqrLen:F,squaredDistance:b,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:X,subtract:c,transformMat3:I,transformMat4:O,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},40050(t,n,r){r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>g,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),a=r(91869),s=r(5443),i=r(40036),u=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const a=l.A.fromJSON(r);if(a.geometryType="mesh",!r.assetMaps)return a;const s=p(n,r.assetMaps),i=t.sourceSpatialReference??u.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=g(t,c,i,n,s);a.features.push(new e.A({geometry:r,attributes:h(t)}))}return a}function g(t,n,r,e,o){const a=t.attributes[n],u=o.get(a);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=s.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",g=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(u);return g?i.default.createWithExternalSource(f,g,{extent:l,transform:M,vertexSpace:m,unitConversionDisabled:!0}):i.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:m})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,s=e.assetType,i=e.assetHash,u=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(s,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const m=(0,a.tE)(r,n,()=>({files:new Map}));(0,a.tE)(m.files,o,()=>({name:o,type:s,mimeType:h,status:d(c),parts:[]})).parts[l]={hash:i,url:u}}return r}function d(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280(t,n,r){r.d(n,{EJ:()=>u,g7:()=>i,gr:()=>s});var e=r(34727),o=r(35522),a=r(51850);function s(t,n){return(0,o.Om)(t,n)/(0,o.Bw)(t)}function i(t,n){const r=(0,o.Om)(t,n)/((0,o.Bw)(t)*(0,o.Bw)(n));return-(0,e.XM)(r)}function u(t,n,r){(0,o.S8)(c,t),(0,o.S8)(f,n);const a=(0,o.Om)(c,f),s=(0,e.XM)(a),i=(0,o.$A)(c,c,f);return(0,o.Om)(i,r)<0?2*Math.PI-s:s}const c=(0,a.vt)(),f=(0,a.vt)()},48163(t,n,r){function e(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function s(){return a(1,1)}function i(){return a(1,0)}function u(){return a(0,1)}r.d(n,{Un:()=>c,fA:()=>a,o8:()=>o,vt:()=>e});const c=s(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:s,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353(t,n,r){r.d(n,{l:()=>c});var e=r(34727),o=r(58083),a=r(51850);function s(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),s=Math.cos(n),i=r;return i[0]=-e,i[4]=-a*o,i[8]=s*o,i[12]=0,i[1]=o,i[5]=-a*e,i[9]=s*e,i[13]=0,i[2]=0,i[6]=s,i[10]=a,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(37539),u=r(21325);function c(t,n,r,e){const a=(0,i.Tp)(t,e);if(null==a)return!1;const c=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(c===m&&!f(m)&&(0!==c||(0,u.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(m)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),s(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const g=f(c);if((3===m||11===m||2===m||5===m)&&(2===c||g||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),g?function(t,n,r){s(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,a.vt)(),M=(0,a.vt)()},65806(t,n,r){r.d(n,{g:()=>s});var e=r(51850),o=r(91218),a=r(9762);function s(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,a.projectBuffer)(i,t.spatialReference,0,n,r,0);const s=(0,o.tryProject)(t,r,e);return!!s&&(n[0]=s.x,n[1]=s.y,n[2]=s.z??0,!0)}const i=(0,e.vt)()},67026(t,n,r){r.d(n,{A6:()=>g,Xd:()=>f,Xr:()=>M,hZ:()=>d,lw:()=>l,t2:()=>I,x8:()=>c});var e=r(29242),o=r(82534),a=r(51850),s=r(34304),i=r(35522),u=r(78955);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,s.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],i=r[0],u=r[1],c=r[2],f=r[3];return t[0]=e*f+s*i+o*c-a*u,t[1]=o*f+s*u+a*i-e*c,t[2]=a*f+s*c+e*u-o*i,t[3]=s*f-e*i-o*u-a*c,t}function h(t,n,r,e){const o=n[0],a=n[1],i=n[2],u=n[3];let c,f,l,h,M,m=r[0],g=r[1],p=r[2],d=r[3];return f=o*m+a*g+i*p+u*d,f<0&&(f=-f,m=-m,g=-g,p=-p,d=-d),1-f>(0,s.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*a+M*g,t[2]=h*i+M*p,t[3]=h*u+M*d,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),s=Math.cos(n),i=Math.sin(r),u=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=a*u*f-s*i*c,t[1]=s*i*f+a*u*c,t[2]=s*u*c-a*i*f,t[3]=s*u*f+a*i*c,t}const p=u.C,d=u.hZ,v=u.WQ,b=l,y=u.hs,A=u.Om,x=u.Cc,w=u.Bw,_=w,q=u.m3,S=q,O=u.S8,I=u.t2,Z=u.aI,P=(0,a.vt)(),C=(0,a.fA)(1,0,0),N=(0,a.fA)(0,1,0),R=(0,o.vt)(),T=(0,o.vt)(),X=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:A,equals:Z,exactEquals:I,fromEuler:g,fromMat3:m,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r*r+e*e+o*o+a*a,i=s?1/s:0;return t[0]=-r*i,t[1]=-e*i,t[2]=-o*i,t[3]=a*i,t},len:_,length:w,lerp:x,mul:b,multiply:l,normalize:O,random:function(t){const n=s.Ov,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+s*i,t[1]=o*u+a*i,t[2]=a*u-o*i,t[3]=s*u-e*i,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u-a*i,t[1]=o*u+s*i,t[2]=a*u+e*i,t[3]=s*u-o*i,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*i,t[1]=o*u-e*i,t[2]=a*u+s*i,t[3]=s*u-a*i,t},rotationTo:function(t,n,r){const e=(0,i.Om)(n,r);return e<-.999999?((0,i.$A)(P,C,n),(0,i.Il)(P)<1e-6&&(0,i.$A)(P,N,n),(0,i.S8)(P,P),c(t,P,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.$A)(P,n,r),t[0]=P[0],t[1]=P[1],t[2]=P[2],t[3]=1+e,O(t,t))},scale:y,set:d,setAxes:function(t,n,r,e){const o=X;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],O(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(R,n,o,a),h(T,r,e,a),h(t,R,T,2*a*(1-a)),t},sqrLen:S,squaredLength:q,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836(t,n,r){r.d(n,{A:()=>M});var e=r(31635),o=r(69540),a=r(25482),s=r(91429),i=r(58083),u=r(9093),c=r(67026),f=r(82534),l=r(51850),h=r(24770);let M=class extends((0,o.OU)(a.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(m,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,i.o1)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,e.Cg)([(0,s.MZ)()],M.prototype,"rotation",null),(0,e.Cg)([(0,s.MZ)()],M.prototype,"localMatrix",null),(0,e.Cg)([(0,s.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,e.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],M);const m=(0,f.vt)()},77793(t,n,r){r.d(n,{V:()=>a,f:()=>s});var e=r(86738),o=r(73836);function a(t,n,r=i){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function s(t,n=i){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const i={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534(t,n,r){function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{8303(e,t,i){i.d(t,{A:()=>T});var a=i(31635),s=i(92602),r=i(70333),n=i(11254),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(74887),u=i(84952),y=i(91429),c=i(77548),g=i(20655),f=i(80812),m=i(41318),w=i(10407),M=i(36005),b=i(43937);const T=e=>{const t=e;let T=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.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,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,c.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new f.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?m.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.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,a.Cg)([(0,y.MZ)({type:f.default})],T.prototype,"portalItem",null),(0,a.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],T.prototype,"readPortalItem",null),(0,a.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],T.prototype,"writePortalItem",null),(0,a.Cg)([(0,y.MZ)({clonable:!1})],T.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasUpdateItemPrivileges",void 0),T=(0,a.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],T),T},v={credential:null,user:null}},18768(e,t,i){i.d(t,{b:()=>o});var a=i(31635),s=i(53966),r=i(91429),n=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,a.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,a.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,a.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}},28692(e,t,i){i.r(t),i.d(t,{default:()=>N});var a=i(31635),s=i(67996),r=i(7762),n=i(49186),o=i(53966),l=i(91869),d=i(25728),h=i(74887),p=i(36708),u=i(84952),y=i(13069),c=i(91429),g=i(35666),f=i(4146),m=i(24137),w=i(62796),M=i(40736),b=i(18768),T=i(63074),v=i(69208),_=i(16131),D=i(8303),I=i(54310),A=i(25036),C=i(10873),S=i(48441),L=i(97159),P=i(36005),k=i(43937);let E=class extends((0,T.dM)((0,A.j)((0,I.J)((0,b.b)((0,_.q)((0,D.A)((0,d.M)((0,v.d)(f.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="knowledge-graph",this.url=null,this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(e),await this._initializeLayerProperties(e),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,M.qN)(this)}async _fetchMetadata(e){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const t=await(0,S.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=t;const{edit:i,fullEdit:a,updateItem:s}=await(0,M.N1)(t.serviceDefinition.serviceItemId,this.url,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s),this._forEachGraphType(e=>{e.name&&this._graphTypeLookup.set(e.name,e)})}async _initializeLayerProperties(e){7===this.originIdOf("inclusionModeDefinition")?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(e),this._setMemberTypes(),this.dataManager=new m.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(e){const t=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0,e?.signal?{signal:e.signal}:void 0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach(e=>{const i=this._graphTypeLookup.get(e.graphTypeName);i&&!t.namedTypeDefinitions.has(i.name)&&t.namedTypeDefinitions.set(i.name,{useAllData:!0})}),this.setAtOrigin("inclusionModeDefinition",t,(0,g.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))});else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}}),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach(t=>{e(t)})}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some(e=>e.objectType.name===a.typeName)&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,()=>new Set).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,M.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then(s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})}))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}readDefinitionSetMap(e,t,i){return(0,L.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,g.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,L.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(7===l||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,L.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}get sublayerCapabilities(){return(0,M.hZ)(this.knowledgeGraph)}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new r.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new r.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(e=>{i.add(e.id)})})}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,M.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,()=>new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a.Cg)([(0,c.MZ)()],E.prototype,"dataManager",void 0),(0,a.Cg)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],E.prototype,"definitionSetMap",void 0),(0,a.Cg)([(0,P.w)("definitionSetMap")],E.prototype,"readDefinitionSetMap",null),(0,a.Cg)([(0,k.K)("definitionSetMap")],E.prototype,"writeDefinitionSetMap",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"inclusionModeDefinition",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],E.prototype,"layers",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],E.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],E.prototype,"tables",void 0),(0,a.Cg)([(0,c.MZ)({json:{read:!1}})],E.prototype,"type",void 0),(0,a.Cg)([(0,c.MZ)(C.OZ)],E.prototype,"url",void 0),E=(0,a.Cg)([(0,c.$K)("esri.layers.KnowledgeGraphLayer")],E);const N=E},69208(e,t,i){i.d(t,{d:()=>r});var a=i(31635),s=i(91429);const r=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{8303(e,t,i){i.d(t,{A:()=>T});var a=i(31635),s=i(92602),r=i(70333),n=i(11254),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(74887),u=i(84952),y=i(91429),c=i(77548),g=i(20655),f=i(80812),m=i(41318),w=i(10407),M=i(36005),b=i(43937);const T=e=>{const t=e;let T=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.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,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,c.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new f.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?m.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.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,a.Cg)([(0,y.MZ)({type:f.default})],T.prototype,"portalItem",null),(0,a.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],T.prototype,"readPortalItem",null),(0,a.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],T.prototype,"writePortalItem",null),(0,a.Cg)([(0,y.MZ)({clonable:!1})],T.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasUpdateItemPrivileges",void 0),T=(0,a.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],T),T},v={credential:null,user:null}},18768(e,t,i){i.d(t,{b:()=>o});var a=i(31635),s=i(53966),r=i(91429),n=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,a.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,a.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,a.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}},28692(e,t,i){i.r(t),i.d(t,{default:()=>N});var a=i(31635),s=i(67996),r=i(7762),n=i(49186),o=i(53966),l=i(91869),d=i(25728),h=i(74887),p=i(36708),u=i(84952),y=i(13069),c=i(91429),g=i(35666),f=i(4146),m=i(24137),w=i(62796),M=i(40736),b=i(18768),T=i(63074),v=i(69208),_=i(16131),D=i(8303),I=i(54310),A=i(25036),C=i(10873),S=i(56140),L=i(97159),P=i(36005),k=i(43937);let E=class extends((0,T.dM)((0,A.j)((0,I.J)((0,b.b)((0,_.q)((0,D.A)((0,d.M)((0,v.d)(f.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="knowledge-graph",this.url=null,this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(e),await this._initializeLayerProperties(e),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,M.qN)(this)}async _fetchMetadata(e){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const t=await(0,S.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=t;const{edit:i,fullEdit:a,updateItem:s}=await(0,M.N1)(t.serviceDefinition.serviceItemId,this.url,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s),this._forEachGraphType(e=>{e.name&&this._graphTypeLookup.set(e.name,e)})}async _initializeLayerProperties(e){7===this.originIdOf("inclusionModeDefinition")?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(e),this._setMemberTypes(),this.dataManager=new m.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(e){const t=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0,e?.signal?{signal:e.signal}:void 0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach(e=>{const i=this._graphTypeLookup.get(e.graphTypeName);i&&!t.namedTypeDefinitions.has(i.name)&&t.namedTypeDefinitions.set(i.name,{useAllData:!0})}),this.setAtOrigin("inclusionModeDefinition",t,(0,g.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))});else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}}),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach(t=>{e(t)})}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some(e=>e.objectType.name===a.typeName)&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,()=>new Set).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,M.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then(s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})}))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}readDefinitionSetMap(e,t,i){return(0,L.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,g.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,L.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(7===l||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,L.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}get sublayerCapabilities(){return(0,M.hZ)(this.knowledgeGraph)}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new r.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new r.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(e=>{i.add(e.id)})})}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,M.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,()=>new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a.Cg)([(0,c.MZ)()],E.prototype,"dataManager",void 0),(0,a.Cg)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],E.prototype,"definitionSetMap",void 0),(0,a.Cg)([(0,P.w)("definitionSetMap")],E.prototype,"readDefinitionSetMap",null),(0,a.Cg)([(0,k.K)("definitionSetMap")],E.prototype,"writeDefinitionSetMap",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"inclusionModeDefinition",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],E.prototype,"layers",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],E.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,c.MZ)()],E.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,c.MZ)()],E.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],E.prototype,"tables",void 0),(0,a.Cg)([(0,c.MZ)({json:{read:!1}})],E.prototype,"type",void 0),(0,a.Cg)([(0,c.MZ)(C.OZ)],E.prototype,"url",void 0),E=(0,a.Cg)([(0,c.$K)("esri.layers.KnowledgeGraphLayer")],E);const N=E},69208(e,t,i){i.d(t,{d:()=>r});var a=i(31635),s=i(91429);const r=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}}}]);