@arcgis/core 6.0.0-next.43 → 6.0.0-next.44

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 (706) hide show
  1. package/WebMap.d.ts +9 -1
  2. package/WebMap.js +1 -1
  3. package/WebScene.js +1 -1
  4. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.d.ts +3 -1
  5. package/applications/Components/OrientedImageryViewer/ImageViewer/utils.js +1 -1
  6. package/applications/Components/OrientedImageryViewer/VideoFeatureCache.js +2 -0
  7. package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +2 -1
  8. package/applications/Components/OrientedImageryViewer/galleryUtils.js +1 -1
  9. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +2 -0
  10. package/applications/Components/OrientedImageryViewer/imageUtils.d.ts +756 -0
  11. package/applications/Components/OrientedImageryViewer/imageUtils.js +2 -0
  12. package/applications/Components/OrientedImageryViewer/measurementUtils.d.ts +15 -0
  13. package/applications/Components/OrientedImageryViewer/measurementUtils.js +2 -0
  14. package/applications/Components/OrientedImageryViewer/queryFeatures.js +2 -0
  15. package/applications/Components/OrientedImageryViewer/shared/ImageMeasurementWorker.js +2 -0
  16. package/applications/Components/OrientedImageryViewer/shared/constants.js +2 -0
  17. package/applications/Components/OrientedImageryViewer/shared/featureCoverage.js +2 -0
  18. package/applications/Components/OrientedImageryViewer/shared/galleryUtils.js +2 -0
  19. package/applications/Components/OrientedImageryViewer/shared/imageMeasurementWorkerUtils.js +2 -0
  20. package/applications/Components/OrientedImageryViewer/shared/navigation/queries.js +2 -0
  21. package/applications/Components/OrientedImageryViewer/shared/navigation/utils.js +2 -0
  22. package/applications/Components/OrientedImageryViewer/shared/panoramicImageProperties.js +2 -0
  23. package/applications/Components/OrientedImageryViewer/shared/services/ImageMeasurementService.js +2 -0
  24. package/applications/Components/OrientedImageryViewer/shared/services/SuperimposeService.js +2 -0
  25. package/applications/Components/OrientedImageryViewer/shared/services/TransformationService.js +2 -0
  26. package/applications/Components/OrientedImageryViewer/shared/support/NonPanoramicMedia.js +2 -0
  27. package/applications/Components/OrientedImageryViewer/shared/support/dataCaptureUtils.js +2 -0
  28. package/applications/Components/OrientedImageryViewer/shared/support/geometryUtils.js +2 -0
  29. package/applications/Components/OrientedImageryViewer/shared/support/panConstraint.js +2 -0
  30. package/applications/Components/OrientedImageryViewer/shared/support/resolveMediaProps.js +2 -0
  31. package/applications/Components/OrientedImageryViewer/shared/support/superimposeUtils.js +2 -0
  32. package/applications/Components/OrientedImageryViewer/shared/support/typeUtils.js +2 -0
  33. package/applications/Components/OrientedImageryViewer/shared/support/urlUtils.js +2 -0
  34. package/applications/Components/OrientedImageryViewer/shared/symbols.js +2 -0
  35. package/applications/Components/OrientedImageryViewer/shared/utils.js +2 -0
  36. package/applications/Components/OrientedImageryViewer/videoUtils.d.ts +15 -0
  37. package/applications/Components/OrientedImageryViewer/videoUtils.js +2 -0
  38. package/applications/Components/testUtils.d.ts +9 -0
  39. package/applications/Components/testUtils.js +1 -1
  40. package/applications/SceneViewer/sceneViewerUtils.d.ts +117 -1
  41. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  42. package/arcade/Feature.js +1 -1
  43. package/arcade/arcadeAsyncRuntime.js +1 -1
  44. package/arcade/arcadeCompiler.js +4 -4
  45. package/arcade/arcadeRuntime.js +1 -1
  46. package/arcade/compilerUtils.js +1 -1
  47. package/arcade/featureSetUtils.js +1 -1
  48. package/arcade/featureset/support/sqlUtils.js +1 -1
  49. package/arcade/functions/convertdirection.js +1 -1
  50. package/arcade/functions/hash.js +1 -1
  51. package/arcade/functions/string.js +1 -1
  52. package/arcade/geometry/isSelfIntersecting.js +1 -1
  53. package/arcade/treeAnalysis.js +1 -1
  54. package/arcgisGlobal.d.ts +6 -0
  55. package/assets/esri/core/workers/RemoteClient.js +1 -1
  56. package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +1 -0
  57. package/assets/esri/core/workers/chunks/{fdffefd7de540272a8a6.js → 02feb2550b6878e62e2d.js} +1 -1
  58. package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +1 -0
  59. package/assets/esri/core/workers/chunks/{3ec3589f6e74d7cb87cf.js → 090a7d0b0128d20879be.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{a33ba23aee3f8f40200f.js → 0ac4a3029ba17a9e2492.js} +1 -1
  61. package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +1 -0
  62. package/assets/esri/core/workers/chunks/{18dbee576b7b9dbe69fb.js → 0b480583373b69773333.js} +1 -1
  63. package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +1 -0
  64. package/assets/esri/core/workers/chunks/0caaa03659f4f4e8df03.js +1 -0
  65. package/assets/esri/core/workers/chunks/{3de07326da4c47cd2aab.js → 0dc1ac5531f7c8854686.js} +1 -1
  66. package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +1 -0
  67. package/assets/esri/core/workers/chunks/{2294254af2c6afb560ee.js → 11e313dfca2579e68419.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{cadd60fa4370284c7ae3.js → 13b40a611224ff5f4697.js} +1 -1
  69. package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +1 -0
  70. package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +1 -0
  71. package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +1 -0
  72. package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +1 -0
  73. package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +1 -0
  74. package/assets/esri/core/workers/chunks/{804606b194dc9e71d088.js → 1ca9f823caff691e964d.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{8f4fba4d2339c91c8b3f.js → 1d9b0db37d5f3819ffca.js} +1 -1
  76. package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +1 -0
  77. package/assets/esri/core/workers/chunks/{edd36a1fc80b1d29907e.js → 21939ef53bc71b42370f.js} +1 -1
  78. package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +1 -0
  79. package/assets/esri/core/workers/chunks/{81b9894e81cce3490984.js → 2515ce2ef279cdd4d5fa.js} +1 -1
  80. package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +1 -0
  81. package/assets/esri/core/workers/chunks/{45b5a61c4e9fbd9ca0b3.js → 27f0bbde1e9fa3f06d46.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{d51bb11baadc741c46bc.js → 29a437a2b7b3a9b3e104.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{070684943698fa43c2b4.js → 2a224bc845c9bf682c54.js} +1 -1
  84. package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +1 -0
  85. package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +1 -0
  86. package/assets/esri/core/workers/chunks/{bc38def1983089514e4b.js → 2e9d2f0a4e3c84d2ac2e.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{9fe1812aad6e566aea31.js → 30c5b584e8658b2b3607.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{ae6dc159be974ca0e8da.js → 32ba94e59b411d3ff063.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{67efdd296007a809586c.js → 3463b52d633a9336af28.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{864194927d05ebc4cc31.js → 35426786de409d42a87f.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{898359be6996fd9763b8.js → 377158a19c9d6ef11387.js} +1 -1
  92. package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +1 -0
  93. package/assets/esri/core/workers/chunks/{ca2adcbcf44454484fd5.js → 3a295fab549ae3caf9df.js} +1 -1
  94. package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +1 -0
  95. package/assets/esri/core/workers/chunks/{fd031150d3a7f896e6b3.js → 3cbb3c4e0e60a874ac6d.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{50763ea061d5fb3f2e49.js → 4136c4de42b8818e2710.js} +1 -1
  97. package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +1 -0
  98. package/assets/esri/core/workers/chunks/{0cfdeb53fb7d5532cf01.js → 425347186c279bcc595c.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{6ccf9535013fe672c93b.js → 434a7ef5b25d83593b50.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{4fe10650ba3cd30aa9a2.js → 46d0db736c6e7decbcf6.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{cca8bd07bcd1d267a2e8.js → 489b37c459e1af116aeb.js} +1 -1
  102. package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +1 -0
  103. package/assets/esri/core/workers/chunks/{bfb8fc6b940bd5510e29.js → 4eab4e74c6a479c5f930.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{5fd4d3cb3c9350131a59.js → 4f8a915795f107b772c5.js} +1 -1
  105. package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +1 -0
  106. package/assets/esri/core/workers/chunks/{344f5334ad95c7974349.js → 5744c7350e4e2eb73aa9.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{8d3e92a3367a3ddc02bd.js → 57e0bf4be8a166d5b1eb.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{3dd49f910834a2fb2142.js → 5b3db2c40feaefb7cbc0.js} +1 -1
  109. package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +1 -0
  110. package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +1 -0
  111. package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +1 -0
  112. package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +1 -0
  113. package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +1 -0
  114. package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +1 -0
  115. package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{6b4c3411f63a9ad9354c.js → 72020d86e3fc7ecc139f.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{9630234267098115de4d.js → 73ab4f0275a85b9671ec.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{449a2dee17b54946f245.js → 7b7208237123e948f170.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{5529831dd891382c79df.js → 7d866911d1171d25ca78.js} +1 -1
  120. package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +1 -0
  121. package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +1 -0
  122. package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +1 -0
  123. package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +1 -0
  124. package/assets/esri/core/workers/chunks/{ca204c110438f7315790.js → 834bbda7719b04301f74.js} +1 -1
  125. package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +1 -0
  126. package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +1 -0
  127. package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +1 -0
  128. package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +1 -0
  129. package/assets/esri/core/workers/chunks/{ef274db3fa260eadf371.js → 8cddfdbab3ad3809462f.js} +1 -1
  130. package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +1 -0
  131. package/assets/esri/core/workers/chunks/{076e8d2e08ff2a013736.js → 8f1dd383502432d8a039.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{78a69594c82d37aecbfb.js → 90a7cd7564f2a92199cc.js} +1 -1
  133. package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +1 -0
  134. package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +1 -0
  135. package/assets/esri/core/workers/chunks/{be04f40f8b403befd0ef.js → 9bb90097368b200fa730.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{f7398cfd8bbd041bd635.js → 9bf77f92760aacbd636f.js} +1 -1
  137. package/assets/esri/core/workers/chunks/{237a1f68a0efbfe5b77c.js → 9e7622379d777ea88018.js} +1 -1
  138. package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +1 -0
  139. package/assets/esri/core/workers/chunks/{564d7f2e58fbc16853c0.js → a8bedc53d4a316953108.js} +1 -1
  140. package/assets/esri/core/workers/chunks/{f2dab9fcd90ce38ae3d1.js → a8fbef765a6fb68e1115.js} +1 -1
  141. package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +1 -0
  142. package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +1 -0
  143. package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +1 -0
  144. package/assets/esri/core/workers/chunks/{cb1642ea8b66231cbfb5.js → af70a81620203c030f5b.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{efff269424d76f1dbb15.js → b10850c48f4eee60b8a9.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{f11eaab5354cc6aa9569.js → b25104337f2495a4296a.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{784d6c6949284ed6e10b.js → b3707d2cd2f4b2f70889.js} +1 -1
  148. package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +1 -0
  149. package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +1 -0
  150. package/assets/esri/core/workers/chunks/{8ebaf5754e86a45b0497.js → be11cec9979ed5e9738e.js} +1 -1
  151. package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +1 -0
  152. package/assets/esri/core/workers/chunks/c420ab79d85e5dbddb0b.js +29 -0
  153. package/assets/esri/core/workers/chunks/{14ed0c34b910eba3434e.js → c473c8b480de9802711b.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{b3dbcf43f136ba2dadc5.js → c67ce7896789ac7275b2.js} +1 -1
  155. package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +1 -0
  156. package/assets/esri/core/workers/chunks/{394ae3199c78a94c6a2a.js → c85336a50a4994a2a7eb.js} +1 -1
  157. package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +1 -0
  158. package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +1 -0
  159. package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +1 -0
  160. package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +1 -0
  161. package/assets/esri/core/workers/chunks/{58d10e0b35968680fd9f.js → d31f6598b76380e8688a.js} +1 -1
  162. package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +1 -0
  163. package/assets/esri/core/workers/chunks/{ad94f54b4c88b3a047bc.js → d4028536542db8b623cc.js} +1 -1
  164. package/assets/esri/core/workers/chunks/{cb6fb04fe5c8d90d4196.js → d4fe26716c4eca13d493.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{c86d3af148b28ded5875.js → d64054cd6865d3a1af78.js} +38 -44
  166. package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +1 -0
  167. package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +1 -0
  168. package/assets/esri/core/workers/chunks/{7a8ca15271e42b6131ac.js → d8b9d14f8d3e82ad26dc.js} +1 -1
  169. package/assets/esri/core/workers/chunks/{63c4412c16d8a44a5668.js → d99d5aa04e2d74ef57a7.js} +1 -1
  170. package/assets/esri/core/workers/chunks/{dfd4782b11d6fdca0492.js → d9e75266ac28f934eb61.js} +1 -1
  171. package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +1 -0
  172. package/assets/esri/core/workers/chunks/{0c948ad4572000218afc.js → dc9792b2aa55975b8a95.js} +1 -1
  173. package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +1 -0
  174. package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +1 -0
  175. package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +1 -0
  176. package/assets/esri/core/workers/chunks/{1c378d489c5402888f76.js → e1f5da51115472347b55.js} +1 -1
  177. package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +1 -0
  178. package/assets/esri/core/workers/chunks/{406f24ec13eb30d43405.js → e2ebf0ea3af2e6907987.js} +1 -1
  179. package/assets/esri/core/workers/chunks/{ffe2077a9df7c838ea27.js → e7719bfbc5875a515a2b.js} +1 -1
  180. package/assets/esri/core/workers/chunks/{26ceb0ff8d93dbb9b84f.js → ec88631b5033c19f569e.js} +1 -1
  181. package/assets/esri/core/workers/chunks/{a2cc53ad1a514167e4b8.js → ef8f9b61b829c3bdf999.js} +1 -1
  182. package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +1 -0
  183. package/assets/esri/core/workers/chunks/{f08a2a262a3b55149396.js → f0b897319ca8578df63f.js} +1 -1
  184. package/assets/esri/core/workers/chunks/{acea0946049136578354.js → f1e87e3ff65d8594e6b3.js} +1 -1
  185. package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +1 -0
  186. package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +1 -0
  187. package/assets/esri/core/workers/chunks/{1f9d6180a96d557838e9.js → f4d714d0a1a513861704.js} +1 -1
  188. package/assets/esri/core/workers/chunks/{14ded73842154d91ef4e.js → f7f73de8c63924e347ab.js} +1 -1
  189. package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +1 -0
  190. package/assets/esri/core/workers/chunks/{69f6d5997b8ff1326e39.js → fa5d4b9a098441ebf505.js} +1 -1
  191. package/assets/esri/core/workers/chunks/{9c3db7a7c05fa0e81f0a.js → fc9d66fe2cc9e2d31964.js} +1 -1
  192. package/chunks/Bufferer-CclWhXVb.js +1 -1
  193. package/chunks/ColorMaterial.glsl.js +26 -16
  194. package/chunks/Component.glsl.js +0 -1
  195. package/chunks/CypherParser.js +1 -1
  196. package/chunks/DefaultMaterial.glsl.js +1 -1
  197. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  198. package/chunks/EdgeShader.glsl.js +1 -1
  199. package/chunks/Envelope.js +1 -1
  200. package/chunks/Envelope2D.js +1 -1
  201. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  202. package/chunks/GeodeticUtils.js +1 -1
  203. package/chunks/Geometry.js +1 -1
  204. package/chunks/Jpg.js +1 -1
  205. package/chunks/MultiPathImpl.js +1 -1
  206. package/chunks/OperatorAffineTransform.js +1 -1
  207. package/chunks/OperatorClip.js +1 -1
  208. package/chunks/OperatorCrosses.js +1 -1
  209. package/chunks/OperatorCut.js +1 -1
  210. package/chunks/OperatorDensify.js +1 -1
  211. package/chunks/OperatorDistance.js +1 -1
  212. package/chunks/OperatorEquals.js +1 -1
  213. package/chunks/OperatorGeneralize.js +1 -1
  214. package/chunks/OperatorGeodesicBuffer.js +1 -1
  215. package/chunks/OperatorGeodeticArea.js +1 -1
  216. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  217. package/chunks/OperatorGeodeticDistance.js +1 -1
  218. package/chunks/OperatorGeodeticLength.js +1 -1
  219. package/chunks/OperatorGraphicBuffer.js +1 -1
  220. package/chunks/OperatorIntegrate.js +1 -1
  221. package/chunks/OperatorIntersects.js +1 -1
  222. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  223. package/chunks/OperatorOverlaps.js +1 -1
  224. package/chunks/OperatorProximity.js +1 -1
  225. package/chunks/OperatorProximityGeodesic.js +1 -1
  226. package/chunks/OperatorRelate.js +1 -1
  227. package/chunks/OperatorShapePreservingLength.js +1 -1
  228. package/chunks/OperatorShapePreservingProject.js +1 -1
  229. package/chunks/OperatorSimplifyOGC.js +1 -1
  230. package/chunks/OperatorTouches.js +1 -1
  231. package/chunks/OperatorWithin.js +1 -1
  232. package/chunks/Point2D.js +1 -1
  233. package/chunks/RealisticTree.glsl.js +1 -1
  234. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  235. package/chunks/Transformation2D.js +1 -1
  236. package/chunks/UnitFactory.js +1 -1
  237. package/chunks/antlr4.web.js +3 -3
  238. package/chunks/arcgis-knowledge-client-core-simd.js +3 -3
  239. package/chunks/arcgis-knowledge-client-core.js +3 -3
  240. package/chunks/basis_encoder.js +2 -2
  241. package/chunks/basis_transcoder.js +2 -2
  242. package/chunks/draco_mesh_decoder.js +2 -2
  243. package/chunks/dxt_encoder.js +3 -3
  244. package/chunks/earcut.js +1 -1
  245. package/chunks/i3s.js +2 -2
  246. package/chunks/index.js +2 -2
  247. package/chunks/lclayout.js +2 -2
  248. package/chunks/lerc-wasm.js +1 -1
  249. package/chunks/libtess-f32.js +1 -1
  250. package/chunks/libtess-f64.js +1 -1
  251. package/chunks/lyr3DMain.js +1 -1
  252. package/chunks/lyr3DWorker.js +1 -1
  253. package/chunks/parquet.js +1 -1
  254. package/chunks/pe-wasm.js +1 -1
  255. package/chunks/projector.js +1 -1
  256. package/chunks/qb3-wasm.js +1 -1
  257. package/chunks/text.js +1 -1
  258. package/chunks/urlUtils.js +2 -0
  259. package/chunks/vxlLayer.js +1 -1
  260. package/config.js +1 -1
  261. package/core/Accessor.js +1 -1
  262. package/core/Clonable.js +1 -1
  263. package/core/Collection.js +1 -1
  264. package/core/MD5.js +1 -1
  265. package/core/MemCache.js +1 -1
  266. package/core/ObjectPool.js +1 -1
  267. package/core/RandomLCG.js +1 -1
  268. package/core/accessorSupport/decorators/subclass.js +1 -1
  269. package/core/accessorSupport/diffUtils.js +1 -1
  270. package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
  271. package/core/accessorSupport/get.js +1 -1
  272. package/core/colorUtils.js +1 -1
  273. package/core/has.js +1 -1
  274. package/core/image/apng.js +1 -1
  275. package/core/lang.js +1 -1
  276. package/core/object.js +1 -1
  277. package/core/pbf.js +1 -1
  278. package/core/sql/StandardizedFunctions.js +1 -1
  279. package/core/string.js +1 -1
  280. package/core/typedArrayUtil.js +1 -1
  281. package/core/urlUtils.js +1 -1
  282. package/core/workers/RemoteClient.js +1 -1
  283. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  284. package/geometry/Circle.js +1 -1
  285. package/geometry/SpatialReference.d.ts +12 -3
  286. package/geometry/geodesicUtils.js +1 -1
  287. package/geometry/geometryEngine.js +1 -1
  288. package/geometry/libtess.js +1 -1
  289. package/geometry/operators/extendOperator.js +1 -1
  290. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  291. package/geometry/operators/geodeticLengthOperator.js +1 -1
  292. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  293. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  294. package/geometry/operators/gx/operatorBoundary.js +1 -1
  295. package/geometry/operators/gx/operatorBuffer.js +1 -1
  296. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  297. package/geometry/operators/gx/operatorDifference.js +1 -1
  298. package/geometry/operators/gx/operatorIntersection.js +1 -1
  299. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  300. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  301. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  302. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  303. package/geometry/operators/gx/operatorOffset.js +1 -1
  304. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  305. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  306. package/geometry/operators/gx/operatorSimplify.js +1 -1
  307. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  308. package/geometry/operators/intersectionOperator.js +1 -1
  309. package/geometry/operators/isNearOperator.js +1 -1
  310. package/geometry/operators/reshapeOperator.js +1 -1
  311. package/geometry/operators/simplifyOperator.js +1 -1
  312. package/geometry/operators/support/jsonConverter.js +2 -2
  313. package/geometry/projectionUtils.js +1 -1
  314. package/geometry/support/buffer/types.js +1 -1
  315. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  316. package/geometry/support/frustumPlanes.js +1 -1
  317. package/geometry/support/heightModelInfoUtils.js +1 -1
  318. package/geometry/support/intersectsBase.js +1 -1
  319. package/geometry/support/meshUtils/External.js +1 -1
  320. package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
  321. package/geometry/support/plane.js +1 -1
  322. package/interfaces.d.ts +16 -41
  323. package/kernel.js +1 -1
  324. package/layers/GaussianSplatLayer.d.ts +1 -9
  325. package/layers/GaussianSplatLayer.js +1 -1
  326. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  327. package/layers/IntegratedMesh3DTilesLayer.d.ts +1 -5
  328. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  329. package/layers/IntegratedMeshLayer.d.ts +25 -2
  330. package/layers/IntegratedMeshLayer.js +1 -1
  331. package/layers/LinkChartLayer.js +1 -1
  332. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  333. package/layers/MapNotesLayer.js +1 -1
  334. package/layers/ParquetLayer.d.ts +0 -32
  335. package/layers/ParquetLayer.js +1 -1
  336. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
  337. package/layers/graphics/OptimizedGeometry.js +1 -1
  338. package/layers/graphics/applyEditsUtils.js +1 -1
  339. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  340. package/layers/graphics/data/FeatureIdInfo.js +1 -1
  341. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  342. package/layers/graphics/dehydratedFeatures.js +1 -1
  343. package/layers/graphics/sources/csv/csv.js +2 -2
  344. package/layers/graphics/sources/geojson/geojson.js +1 -1
  345. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  346. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  347. package/layers/mixins/SceneService.js +1 -1
  348. package/layers/orientedImagery/core/NavigationNode.js +2 -0
  349. package/layers/orientedImagery/core/imageNavigationUtils.d.ts +2 -0
  350. package/layers/orientedImagery/core/imageNavigationUtils.js +2 -0
  351. package/layers/orientedImagery/core/utils.js +1 -1
  352. package/layers/orientedImagery/queries.js +1 -1
  353. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  354. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  355. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  356. package/layers/orientedImagery/transformations/utils.js +1 -1
  357. package/layers/orientedImagery/types.d.ts +3 -0
  358. package/layers/raster/datasets/RasterFactory.js +1 -1
  359. package/layers/raster/datasets/xmlUtilities.js +1 -1
  360. package/layers/raster/formats/Lerc.js +1 -1
  361. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  362. package/layers/raster/functions/convolutionUtils.js +1 -1
  363. package/layers/raster/functions/customBandIndexUtils.js +1 -1
  364. package/layers/support/I3SIntegratedMeshElevationQuery.js +1 -1
  365. package/layers/support/MosaicRule.js +1 -1
  366. package/layers/support/PixelBlock.js +1 -1
  367. package/layers/support/SpriteSource.js +1 -1
  368. package/layers/support/arcgisLayers.js +1 -1
  369. package/layers/support/csvUtils.js +1 -1
  370. package/layers/support/featureLayerUtils.js +1 -1
  371. package/layers/support/fieldUtils.js +1 -1
  372. package/layers/support/floorFilterUtils.js +1 -1
  373. package/layers/support/layersCreator.js +1 -1
  374. package/layers/support/tiles3DUtils.js +1 -1
  375. package/layers/support/wmtsUtils.js +1 -1
  376. package/layers/video/VideoController.js +21 -21
  377. package/libs/ajv/ajv.bundle-wrapper.js +1 -1
  378. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  379. package/networks/Network.js +1 -1
  380. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  381. package/package.json +2 -2
  382. package/parcelFabric/ParcelFabric.d.ts +760 -0
  383. package/parcelFabric/ParcelFabric.js +2 -0
  384. package/parcelFabric/support/ParcelJobInfo.d.ts +97 -0
  385. package/parcelFabric/support/ParcelJobInfo.js +2 -0
  386. package/parcelFabric/support/ParcelParameters.d.ts +48 -0
  387. package/parcelFabric/support/ParcelParameters.js +2 -0
  388. package/popup/FeatureModel.d.ts +2 -2
  389. package/popup/FeaturesModel.d.ts +2 -2
  390. package/popup/support/featureUtils.js +1 -1
  391. package/portal/support/loadUtils.js +1 -1
  392. package/portal/support/portalLayers.js +1 -1
  393. package/renderers/support/RasterSymbolizer.js +1 -1
  394. package/renderers/support/rendererConversion.js +1 -1
  395. package/request/queue.js +1 -1
  396. package/rest/geoprocessor/utils.js +1 -1
  397. package/rest/parcelFabric/analyzeByLeastSquaresAdjustment.js +2 -0
  398. package/rest/parcelFabric/applyLeastSquaresAdjustment.js +2 -0
  399. package/rest/parcelFabric/assignFeaturesToRecord.js +2 -0
  400. package/rest/parcelFabric/build.js +2 -0
  401. package/rest/parcelFabric/changeParcelType.js +2 -0
  402. package/rest/parcelFabric/clip.js +2 -0
  403. package/rest/parcelFabric/copyLinesToParcelType.js +2 -0
  404. package/rest/parcelFabric/createSeeds.js +2 -0
  405. package/rest/parcelFabric/deleteParcels.js +2 -0
  406. package/rest/parcelFabric/divide.js +2 -0
  407. package/rest/parcelFabric/duplicateParcels.js +2 -0
  408. package/rest/parcelFabric/merge.js +2 -0
  409. package/rest/parcelFabric/mergeParcelPoints.js +2 -0
  410. package/rest/parcelFabric/reassignFeaturesToRecord.js +2 -0
  411. package/rest/parcelFabric/reconstructFromSeeds.js +2 -0
  412. package/rest/parcelFabric/setParcelLineLabelPosition.js +2 -0
  413. package/rest/parcelFabric/shrinkToSeed.js +2 -0
  414. package/rest/parcelFabric/transferParcel.js +2 -0
  415. package/rest/parcelFabric/updateParcelHistory.js +2 -0
  416. package/rest/parcelFabric/utils.js +2 -0
  417. package/rest/support/JobInfo.js +1 -1
  418. package/rest/support/printTaskUtils.js +1 -1
  419. package/smartMapping/heuristics/scaleRange.js +1 -1
  420. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  421. package/smartMapping/renderers/color.js +1 -1
  422. package/smartMapping/renderers/location.js +1 -1
  423. package/smartMapping/renderers/support/utils.js +1 -1
  424. package/smartMapping/renderers/univariateColorSize.js +1 -1
  425. package/support/basemapUtils.js +1 -1
  426. package/symbols/cim/utils.js +1 -1
  427. package/symbols/support/cimSymbolUtils.js +1 -1
  428. package/undoredo/support/ServiceVersionInfo.js +1 -1
  429. package/views/2d/engine/flow/dataUtils.js +1 -1
  430. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  431. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  432. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  433. package/views/2d/engine/webgl/TextureManager.js +1 -1
  434. package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +1 -1
  435. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  436. package/views/2d/engine/webgl/definitions.js +1 -1
  437. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  438. package/views/2d/engine/webgl/number.js +1 -1
  439. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  440. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  441. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  442. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  443. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  444. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  445. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  446. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  447. package/views/2d/layers/features/support/ComputedAttributeStorage.js +1 -1
  448. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  449. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  450. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  451. package/views/2d/layers/features/support/StaticBitSet.js +1 -1
  452. package/views/2d/layers/features/support/rendererUtils.js +1 -1
  453. package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
  454. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  455. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  456. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  457. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  458. package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
  459. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
  460. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  461. package/views/3d/glTF/internal/Resource.js +1 -1
  462. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  463. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  464. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  465. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  466. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  467. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  468. package/views/3d/interactive/manipulatorUtils.js +1 -1
  469. package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
  470. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  471. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  472. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  473. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  474. package/views/3d/layers/I3SMeshView3D.js +1 -1
  475. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  476. package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +1 -1
  477. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
  478. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  479. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  480. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  481. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  482. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  483. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  484. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  485. package/views/3d/layers/graphics/extrudePolygon.js +1 -1
  486. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  487. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  488. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  489. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  490. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  491. package/views/3d/layers/i3s/IDBCache.js +1 -1
  492. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  493. package/views/3d/layers/support/patternUtils.js +1 -1
  494. package/views/3d/support/PBFDecoder.js +1 -1
  495. package/views/3d/support/cameraUtils.js +1 -1
  496. package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
  497. package/views/3d/support/meshProcessing.js +1 -1
  498. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  499. package/views/3d/support/sunUtils.js +1 -1
  500. package/views/3d/terrain/PatchRenderData.js +1 -1
  501. package/views/3d/terrain/TerrainRenderer.js +1 -1
  502. package/views/3d/terrain/TerrainSurface.js +1 -1
  503. package/views/3d/webgl/RenderCamera.js +1 -1
  504. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  505. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  506. package/views/3d/webgl-engine/collections/Component/ObjectParameters.js +1 -1
  507. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  508. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -6
  509. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -4
  510. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -19
  511. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +16 -15
  512. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  513. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  514. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +5 -5
  515. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  516. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  517. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  518. package/views/3d/webgl-engine/lib/Program.js +1 -1
  519. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  520. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  521. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  522. package/views/3d/webgl-engine/lib/edgeRendering/EdgeUtil.glsl.js +1 -2
  523. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  524. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  525. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  526. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  527. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  528. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  529. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  530. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  531. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  532. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  533. package/views/draw/DrawManipulator3D.js +1 -1
  534. package/views/draw/support/managers/TooltipManager.js +1 -1
  535. package/views/draw/support/reshapeUtils.js +1 -1
  536. package/views/interactive/options/SnappingOptions.d.ts +3 -2
  537. package/views/interactive/sketch/constraints.js +1 -1
  538. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  539. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +6 -3
  540. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  541. package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
  542. package/views/selection/SelectionOperation.js +1 -1
  543. package/views/support/GeometryWorker.js +1 -1
  544. package/views/support/flow/dataUtils.js +1 -1
  545. package/views/support/screenUtils.js +1 -1
  546. package/views/support/screenshotUtils.js +1 -1
  547. package/views/support/waitForResources.js +1 -1
  548. package/views/webgl/InstanceCounter.js +1 -1
  549. package/views/webgl/Program.js +1 -1
  550. package/views/webgl/RenderingContext.js +1 -1
  551. package/webdoc/support/webdocLoadUtils.js +1 -1
  552. package/webscene/spec-certification/api.js +1 -1
  553. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
  554. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  555. package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +2 -2
  556. package/widgets/BasemapLayerList/types.d.ts +3 -3
  557. package/widgets/BasemapLayerList.d.ts +2 -2
  558. package/widgets/BasemapLayerList.js +1 -1
  559. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  560. package/widgets/BatchAttributeForm.js +1 -1
  561. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
  562. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  563. package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +2 -2
  564. package/widgets/CatalogLayerList/types.d.ts +3 -3
  565. package/widgets/CatalogLayerList.d.ts +3 -3
  566. package/widgets/CatalogLayerList.js +1 -1
  567. package/widgets/Editor/workflowUtils.js +1 -1
  568. package/widgets/Editor.js +1 -1
  569. package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
  570. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  571. package/widgets/FeatureForm.js +1 -1
  572. package/widgets/LayerList/LayerListViewModel.js +1 -1
  573. package/widgets/LayerList/LayerListVisibleElements.d.ts +2 -2
  574. package/widgets/LayerList/ListItem.d.ts +1 -1
  575. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  576. package/widgets/LayerList/types.d.ts +1 -1
  577. package/widgets/Measurement.js +1 -1
  578. package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
  579. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  580. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  581. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  582. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  583. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  584. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  585. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  586. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  587. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  588. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  589. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  590. package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
  591. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  592. package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
  593. package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
  594. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  595. package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
  596. package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
  597. package/widgets/OrientedImageryViewer/constants.js +1 -1
  598. package/widgets/OrientedImageryViewer/featureCoverage.js +1 -1
  599. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  600. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  601. package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +1 -1
  602. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  603. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  604. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  605. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  606. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  607. package/widgets/OrientedImageryViewer/panoramicImageProperties.js +1 -1
  608. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  609. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  610. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  611. package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
  612. package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +1 -1
  613. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
  614. package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
  615. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  616. package/widgets/OrientedImageryViewer/support/navigationViewStateUtils.js +1 -1
  617. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  618. package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +1 -1
  619. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  620. package/widgets/OrientedImageryViewer/support/typeUtils.js +1 -1
  621. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  622. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  623. package/widgets/OrientedImageryViewer/types.d.ts +10 -0
  624. package/widgets/OrientedImageryViewer/utils.js +1 -1
  625. package/widgets/OrientedImageryViewer.js +1 -1
  626. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  627. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  628. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  629. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  630. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  631. package/widgets/Sketch/support/PluginManager.js +1 -1
  632. package/widgets/TableList/ListItem.d.ts +2 -2
  633. package/widgets/TableList/ListItemPanel.d.ts +4 -4
  634. package/widgets/TableList/TableListViewModel.d.ts +4 -4
  635. package/widgets/TableList/TableListViewModel.js +1 -1
  636. package/widgets/TableList/TableListVisibleElements.d.ts +2 -2
  637. package/widgets/TableList/types.d.ts +5 -5
  638. package/widgets/TableList.d.ts +3 -3
  639. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  640. package/widgets/UtilityNetworkTrace.js +1 -1
  641. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +0 -1
  642. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +0 -1
  643. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +0 -1
  644. package/assets/esri/core/workers/chunks/1e5c5029b0653047a769.js +0 -1
  645. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +0 -1
  646. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +0 -1
  647. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +0 -1
  648. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +0 -1
  649. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +0 -1
  650. package/assets/esri/core/workers/chunks/361d620b3f91868b1490.js +0 -1
  651. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +0 -1
  652. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +0 -1
  653. package/assets/esri/core/workers/chunks/3a90b6eafa92f1a68ac5.js +0 -1
  654. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +0 -1
  655. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +0 -1
  656. package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +0 -1
  657. package/assets/esri/core/workers/chunks/47f0c717acc2c33ea670.js +0 -1
  658. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +0 -1
  659. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +0 -1
  660. package/assets/esri/core/workers/chunks/4e03aa5518d46a36661c.js +0 -1
  661. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +0 -1
  662. package/assets/esri/core/workers/chunks/59295b99bdff4045a0e7.js +0 -1
  663. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +0 -1
  664. package/assets/esri/core/workers/chunks/5d908a823b324bafda1e.js +0 -1
  665. package/assets/esri/core/workers/chunks/5dea74fe52583e77f3ce.js +0 -1
  666. package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +0 -29
  667. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +0 -1
  668. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +0 -1
  669. package/assets/esri/core/workers/chunks/6f3732e7ba2d031ba789.js +0 -1
  670. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +0 -1
  671. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +0 -1
  672. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +0 -1
  673. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +0 -1
  674. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +0 -1
  675. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +0 -1
  676. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +0 -1
  677. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +0 -1
  678. package/assets/esri/core/workers/chunks/919a6aedf38e9631ee09.js +0 -1
  679. package/assets/esri/core/workers/chunks/9869c696e6321c8db0a9.js +0 -1
  680. package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +0 -1
  681. package/assets/esri/core/workers/chunks/a332e31165b65a6fb92e.js +0 -1
  682. package/assets/esri/core/workers/chunks/a4d3944700f1cc240176.js +0 -1
  683. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +0 -1
  684. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +0 -1
  685. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +0 -1
  686. package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +0 -1
  687. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +0 -1
  688. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +0 -1
  689. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +0 -1
  690. package/assets/esri/core/workers/chunks/c7f49493bd548d5dc1e0.js +0 -1
  691. package/assets/esri/core/workers/chunks/cb62326b6526cde429c1.js +0 -1
  692. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +0 -1
  693. package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +0 -1
  694. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +0 -1
  695. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +0 -1
  696. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +0 -1
  697. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +0 -1
  698. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +0 -1
  699. package/assets/esri/core/workers/chunks/eaf720dfdf6ceca31249.js +0 -1
  700. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +0 -1
  701. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +0 -1
  702. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +0 -1
  703. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +0 -1
  704. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +0 -1
  705. package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +0 -2
  706. package/widgets/OrientedImageryViewer/videoViewerUtils.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6263],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){let t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){let t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}i.d(t,["T",0,r])},6455(e,t,i){i.d(t,{FJ:()=>m,Dp:()=>w,KV:()=>v});var r=i(32198),n=i(93637),l=i(91429),s=i(89317),o=i(69540),a=i(7762),u=i(25482),d=i(83960),p=i(13069);const c={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let f=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilter")],f);var g=i(41560),y=i(43937);let h=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(f)),this.mode="manual"}writeFilters(e,t,i,r){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let i=(0,d.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=n.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],h.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,l.MZ)({type:a.A.ofType(f),nonNullable:!0,json:{write:!0}})],h.prototype,"filters",void 0),(0,r.Cg)([(0,y.K)("filters")],h.prototype,"writeFilters",null),(0,r.Cg)([(0,l.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],h.prototype,"mode",void 0),h=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilterInfo")],h);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,l.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,l.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:h,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends o.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>_});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=Z(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=Z(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=Z(e,t.field,"avg","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=Z(e,t.field,"sum","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=Z(e,i.field,"mode","string"):i.valueExpression&&(i.field=j(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=Z(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=Z(e,i.field,"avg","number"):i.valueExpression&&(i.field=j(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){let i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function j(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function Z(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const _=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>D});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),p=i(15426),c=i(40124),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;let t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function j(){return V((0,o.o8)(m.kF))}function Z(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function _(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return V((0,o.o8)(m.M6))}function E(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return"object"==typeof i&&i||(i=t.write={}),i.ignoreOrigin=!0,e}var T=i(65494),z=i(93223),L=i(36005);let N=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,z.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),K=i(33910),k=i(43937);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?G(r)?null:(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&G(r)?(0,T.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new $.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:K.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,L.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,L.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var q=i(67202);const U={key:"type",base:null,typeMap:{selection:q.A}},B={key:"type",base:null,typeMap:{cluster:P,binning:N}},D={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6263],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){let t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){let t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}i.d(t,["T",0,r])},6455(e,t,i){i.d(t,{FJ:()=>m,Dp:()=>w,KV:()=>v});var r=i(32198),n=i(93637),l=i(91429),s=i(89317),o=i(69540),a=i(7762),u=i(25482),d=i(83960),p=i(13069);const c={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let f=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilter")],f);var g=i(41560),y=i(43937);let h=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(f)),this.mode="manual"}writeFilters(e,t,i,r){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let i=(0,d.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=n.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],h.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,l.MZ)({type:a.A.ofType(f),nonNullable:!0,json:{write:!0}})],h.prototype,"filters",void 0),(0,r.Cg)([(0,y.K)("filters")],h.prototype,"writeFilters",null),(0,r.Cg)([(0,l.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],h.prototype,"mode",void 0),h=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilterInfo")],h);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,l.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,l.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:h,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends o.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>_});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=Z(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=Z(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=Z(e,t.field,"avg","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=Z(e,t.field,"sum","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=Z(e,i.field,"mode","string"):i.valueExpression&&(i.field=j(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=Z(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=Z(e,i.field,"avg","number"):i.valueExpression&&(i.field=j(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){let i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function j(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function Z(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const _=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>D});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),p=i(15426),c=i(40124),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;let t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function j(){return V((0,o.o8)(m.kF))}function Z(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function _(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return V((0,o.o8)(m.M6))}function E(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return"object"==typeof i&&i||(i=t.write={}),i.ignoreOrigin=!0,e}var T=i(65494),z=i(93223),L=i(36005);let N=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,z.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),K=i(33910),k=i(43937);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?G(r)?null:(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&G(r)?(0,T.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new $.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:K.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,L.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,L.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var q=i(67202);const U={key:"type",base:null,typeMap:{selection:q.A}},B={key:"type",base:null,typeMap:{cluster:P,binning:N}},D={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,5879],{92474(e,t,r){r.d(t,{Zm:()=>c});var s=r(32198),o=r(49186),i=r(97768),l=r(61893),a=r(17676),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=e=>{let t=e,r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{let t=this.load.bind(this);this.load=r=>{let s=new Promise((e,t)=>{let s=(0,a.NY)(r,t);this.destroyed&&t(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");let e=this._loadController=new AbortController,r=t({signal:e.signal});(0,a.$X)(r)&&r.catch(()=>{})}return e(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),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")}async load(e){return this}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.$K)("esri.core.Loadable")],r),r},y=h(l.Z);function c(e){return!(!e||!e.load)}r.d(t,["WV",0,h,"x_",0,y])},61893(e,t,r){var s=r(32198),o=r(56372),i=r(36563),l=r(17676),a=r(64108);class n{constructor(){this._resolver=Promise.withResolvers(),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(e){this._resolvingPromises.push(e),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;let e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{let t=e,r=class extends t{constructor(...e){super(...e),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(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,s.Cg)([(0,a.$K)("esri.core.Promise")],r),r},p=u(o.A);r.d(t,["Z",0,p,"g",0,u])},41910(e,t,r){r.d(t,{WH:()=>o});const s=Symbol("arcadeFeatureSource");function o(e){return null!=(t=e)&&s in t?e[s]:null;var t}r.d(t,["e7",0,s])},5757(e,t,r){r.d(t,{B:()=>o});const s=Symbol("PopupTemplateInstance");function o(e){return"object"==typeof e&&!!e&&s in e}r.d(t,["P",0,s])},20655(e,t,r){r.d(t,{A:()=>A});var s=r(32198),o=r(92602),i=r(70333),l=r(56507),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(17676),h=r(91429),y=r(78888),c=r(5443),m=r(73444);let g;var f=r(96360),C=r(16405),v=r(56372);let M=class extends v.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],M.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"total",void 0),M=(0,s.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],M);var Z,S=r(41318),P=r(926),w=r(36005);let _;const O={PortalGroup:()=>Promise.resolve({default:f.A}),PortalItem:()=>r.e(812).then(()=>r(80812)),PortalUser:()=>Promise.resolve({default:S.A})};let A=class extends((0,n.T)(u.x_)){static{Z=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(e){super(e),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}destroy(){b.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(let t of e)o.A.request.trustedServers.includes(t)||o.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){let e=!this.user?.orgId||this.canSearchPublic;return this.id&&!e?`orgid:${this.id}`:null}get hasAPIKey(){return(0,P.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 e=this.url;if(e){let t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){let e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e&&e.toLowerCase()}readUser(e){let t=null;return e&&(t=S.A.fromJSON(e),t.portal=this),t}load(e){let t=Promise.all([r.e(812),r.e(3281),r.e(3116)]).then(()=>r(83116)).then(({default:t})=>{(0,d.Te)(e),_=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&i.id){let e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==Z.AUTH_MODE_AUTO&&this.authMode!==Z.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){let t=i.id;return()=>{let r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();let e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(812),r.e(6874),r.e(7548)]).then(()=>r(38732))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){let r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery){let e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}let s=await this._fetchBasemaps3D(e,t);r.unshift(...s)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;let t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;let r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new _({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){let t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});return t?.length?(r.query=Array.from(t,e=>`(title:"${e.title}" AND owner:${e.owner})`).join(" OR "),this.queryGroups(r,e).then(e=>e.results)):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(e){let t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){let t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return(!g||g.destroyed)&&(g=new Z),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||="username",this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){let s=this.restUrl+"/portals/self",o={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),t&&(o.query.default=!0),this.request(s,o)}queryPortal(e,t,r,s){let o=(0,y.dp)(C.A,t),i=t=>this.request(this.restUrl+e,{...o.toRequestOptions(this),...s}).then(e=>{let r=o.clone();return r.start=e.nextStart,new M({nextQueryParams:r,queryParams:o,total:e.total,results:Z._resultsToTypedArray(t,{portal:this},e,s)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,d.QP)(t),e)));return r&&O[r]?O[r]().then(({default:e})=>((0,d.Te)(s),i(e))):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===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.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);let e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==Z.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){let t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{let t=Z._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){let r={f:"json",...t.query},{authMode:s=(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=t,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return t.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(e),p).then(e=>e.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");return new Z({sourceJSON:e})}_getHelperService(e){let t=this.helperServices?.[e];if(!t)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){let r=new C.A;r.query=e||((0,P.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;let s=await this.queryGroups(r,t);if(!s.total)return[];let 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";let i=await o.queryItems(r,t);return i.total?i.results.filter(e=>"Web Map"===e.type).map(e=>new _({portalItem:e})):[]}async _fetchBasemaps3D(e,t){let r=e||this.basemapGalleryGroupQuery3D;if(!r||(0,P.Dd)())return[];let s=new C.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,t);if(!o.total)return[];let i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";let l=await i.queryItems(s,t);return l.total?l.results.filter(e=>"Web Scene"===e.type).map(e=>new _({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){let t=_.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,s){let o;if(r){let i=null==s?null:s.signal;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(o=o.map(r=>{let s=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,w.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:c.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,w.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,w.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=Z=(0,s.Cg)([(0,h.$K)("esri.portal.Portal")],A);const b=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>p});var s,o=r(32198),i=r(49186),l=r(25482),a=r(91429),n=r(78888),u=r(16405);let p=s=class extends l.o{constructor(e){super(e),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(){let e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){let e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{let r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let t=new s({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,n.dp)(u.A,e),s=this.portal;return parseFloat(s.currentVersion)>5?(r||=new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,t))}_fetchCategorySchemaSet(e,t){let r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{let s=e.contentCategorySetsGroupQuery;if(s){let e=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(e,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){let s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${e}"`});return s.queryItems(o,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{let t=e?.categorySchema;return t?.length?t:[]}):[])}};(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)},16405(e,t,r){r.d(t,{A:()=>y});var s,o=r(32198),i=r(56372),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(e){super(e),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(e){("asc"===e||"desc"===e)&&this._set("sortOrder",e)}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(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let s="";if(this.extent){let e=(0,d.y)(this.extent,p.A.WGS84);null!=e&&(s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let o=this.query,i=e.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);let l={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(l.sortField=this.sortField.split(",").map(e=>h.toJSON(e.trim())).join(","),l.sortOrder=this.sortOrder),{query:{...t,...l}}}};(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)},41318(e,t,r){r.d(t,{A:()=>p});var s=r(32198),o=r(49186),i=r(25482),l=r(91429);let a=class extends i.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){let e=this.portal?.restUrl;return e?`${e}/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(e){super(e),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(){let e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){let e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){let e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){let t=e&&e.item,r=e?.data,s=e?.folder,o={method:"post"};t&&(o.query=t.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(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);let s=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:s}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();let r=this.userContentUrl+"/deleteItems",s=[],i=e.map(e=>e.id);if(i.length){let l={method:"post",query:{items:i.join(","),permanentDelete:t}},a=await this.portal.request(r,l);for(let t of a.results){let r=e.find(e=>t.itemId===e.id),i=t.success,l=null;i?(r.id=null,r.portal=null):t.error&&(l=new o.A("portal:delete-item-failed",t.error.message,t.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{let t=a.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{let t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);let s,{default:o}=await r.e(812).then(()=>r(80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},l=await this.portal.request(t,{query:i});return l?.items?(s=l.items.map(e=>{let t=o.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(s.map(e=>e.load())),{items:s,nextStart:l.nextStart,total:l.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||=new u.A({id:this.favGroupId,portal:this.portal}),this._favGroup.queryItems(e)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){let r=this.userContentUrl,s=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let t=new n({sourceJSON:e});return t.read(e),t}};(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)},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>l,gf:()=>i,of:()=>o});const s=Symbol("SizeVariableInstance");function o(e){return"object"==typeof e&&!!e&&s in e}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){let r=t||l(e),s=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,s])},926(e,t,r){r.d(t,{Dd:()=>h,Jn:()=>y,Qc:()=>c,getApiKey:()=>p,getSessionToken:()=>d});var s=r(92602),o=r(56507),i=r(84952);const l=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),n=new Map;let u=null;function p(e){if(!c(e))return null;let t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(let e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&l.test(e)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function d(e){if(!s.A.sessions?.basemap?.enabled||!l.test(e))return null;let t=p(e);if(!t)return null;u&&await u;let r,{styleFamily:i="arcgis",autoRefresh:a,duration:d=43200}=s.A.sessions.basemap,h=`${t}:${i}`,y=n.get(h);if(y&&(!a||y.endTime>Date.now()))return y.sessionToken;u=(0,o.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:d,styleFamily:i,token:t}});try{r=(await u).data,r.endTime-=5e3,n.set(h,r)}finally{u=null}return r.sessionToken}function h(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function y(e,t){return t?c(e):null!=p(e)}function c(e){let t=(0,i.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},94128(e,t,r){r.d(t,{D:()=>o});const s=Symbol("GraphicInstance");function o(e){return"object"==typeof e&&!!e&&s in e}r.d(t,["Z",0,s])}}]);
@@ -0,0 +1,29 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,6553,9480],{46130(e,t,r){r.d(t,{v:()=>n});var o=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},56512(e,t,r){function o(e){let t,r,o=[],n=!1;return function(...i){return n&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(i,o)||(r=e.apply(this,i),t=this,o=i,n=!0),r}}r.d(t,{B:()=>o})},76553(e,t,r){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},65806(e,t,r){r.d(t,{g:()=>a});var o=r(51850),n=r(99917),i=r(9762);function a(e,t,r,o){if((0,n.canProjectWithoutEngine)(e.spatialReference,r))return s[0]=e.x,s[1]=e.y,s[2]=e.z??0,(0,i.projectBuffer)(s,e.spatialReference,0,t,r,0);let a=(0,n.tryProject)(e,r,o);return!!a&&(t[0]=a.x,t[1]=a.y,t[2]=a.z??0,!0)}const s=(0,o.vt)()},27993(e,t,r){r.d(t,{F:()=>s});var o=r(99917),n=r(16930),i=r(9762),a=r(65806);function s(e,t,r,n){return!(null==t||null==n||e.length<2)&&((0,o.canProjectWithoutEngine)(t,n)?(0,i.projectBuffer)(e,t,0,r,n,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,a.g)(l,r,n)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n.A.WGS84,type:"point"}},52136(e,t,r){var o=r(32198),n=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,o.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},58947(e,t,r){r.d(t,{w6:()=>A,qM:()=>M});var o=r(32198),n=r(56507),i=r(49186),a=r(53966),s=r(17676),l=r(91429),u=r(46130),c=r(5443),d=r(16930),p=r(85707),f=r(60694),h=r(10873),y=r(83898),m=r(73179);var v=r(20655),g=r(80812),w=r(88788),b=r(91682),x=r(26121),C=r(36005);const A=e=>{let t=(0,p.a)(e),r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.minScale=0,this.maxScale=0,this.version={major:NaN,minor:NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,s.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return S(t)}readFullExtent(e,t,r){if("object"==typeof e&&e){let o=null==e.spatialReference?{...e,spatialReference:S(t)}:e;return c.A.fromJSON(o,r)}let o=t.store,n=S(t);return null==n||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<I)?null:new c.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:n})}parseVersionString(e){let t={major:NaN,minor:NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){let r=t.store,o=null==r.version?"":r.version.toString();return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,f.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){let e=(0,f.qg)(this.url);null!=e&&(r=e.title)}let o=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&o&&(r=o+" - "+r),(0,f.cr)(r)}get parsedUrl(){return(0,m.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,a.A.getLogger(this),t),this.indexInfo.catch(()=>{});let{fullExtent:r}=this;null!=r&&!r.hasZ&&this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){let r=t.rootIndex%t.pageSize;M(e,t.rootPage?.nodes?.[r]?.obb)}else if("node"===t?.type){let r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<I)return;let o=r[2],n=r[3];e.zmin=o-n,e.zmax=o+n}}async _fetchService(e){if(null==this.url)throw new i.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){let t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){let t=await(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){let t=await(0,n.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();let o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){let t=(await(0,n.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){let r={...R,...t},o=g.default.from(e);if(!o)throw new i.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);let n=o.portal||v.A.getDefault();await this._ensureLoadBeforeSave(),o.type=T,o.portal=n;let a=(0,w.m)(o,"portal-item",{withResources:!0}),s={layers:[this.write({},a)]};return await Promise.all(a.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(s,a,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),U(o,r,1),await n.signIn(),await n.user.addItem({item:o,folder:r?.folder,data:s}),await(0,b.r)(this.resourceReferences,a),this.portalItem=o,(0,u.v)(a),a.portalItem=o,o}async _save(e){let t={...R,...e};if(!this.portalItem)throw new i.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==T)throw new i.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${T}"`);await this._ensureLoadBeforeSave();let r=(0,w.m)(this.portalItem,"portal-item",{withResources:!0}),o=this.write({},r),a=await async function(e,t){let r=await e.fetchData("json")??{};return Array.isArray(r.layers)||(r.layers=await async function(e,t){let r=await async function(e){let t=_(e.url);if(!t)return null;let r=(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data.layers;if(!Array.isArray(r))return null;let o=r.filter(({id:e})=>null!=e).map(({id:e})=>({id:e}));return o.length?o:null}(e).catch(()=>null);return r?.some(({id:e})=>e===t.id)?r:[t]}(e,t)),function(e,t){let r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}(r.layers,t),r}(this.portalItem,o);await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,r,t);let s=function(e,t){return t&&function(e,t){let r=_(e);return!!r&&r===B(t).url}(e.url,t)?e.url:t}(this.portalItem,this.url);return s&&(this.portalItem.url=s),this.portalItem.title||(this.portalItem.title=this.title),U(this.portalItem,t,0),await(0,b.S)(this.portalItem,a,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){let o=r?.validationOptions;(0,x.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});let n=o?.enabled,s=null;if(n&&s){let t=(await s()).validate(e,r.portalItemLayerType);if(!t.length)return;let n=`Layer item did not validate:\n${t.join("\n")}`;if(a.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${n}`),"throw"===o.failPolicy){let e=t.map(e=>new i.A("sceneservice:schema-validation",e));throw new i.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,l.MZ)(h.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,C.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,C.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,C.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,C.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,C.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,l.MZ)((0,m.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},I=-1e38;function S(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);let t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null==o?null:new d.A(o)}function M(e,t){if(null==t?.center||null==t.halfSize)throw new i.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<I)return;let r=t.halfSize,o=t.center[2],n=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-n,e.zmax=o+n}function U(e,t,r){e.typeKeywords||=[];let o=t.getTypeKeywords();for(let t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const T="Scene Service",R={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}},F={layerId:null};function _(e){if(!e)return null;let t=B(e);if(null!=t.layerId)return null;let r=(0,f.qg)(t.url);return null==r||"SceneServer"===r.serverType?t.url:null}function B(e){return(0,f.HZ)({layer:F,url:e,nonStandardUrlAllowed:!0})}},83898(e,t,r){r.d(t,{F:()=>i});var o=r(56507),n=r(49186);async function i(e,t,r,i,a,s,l){let u=null;if(null!=r){let t=`${e}/nodepages/`,n=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(n,{query:{f:"json",...i,token:a},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){s?.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",n,e),u=e}}if(!t)return null;let c=t?.split("/").pop(),d=`${e}/nodes/`,p=d+c;try{return{type:"node",rootNode:(await(0,o.A)(p,{query:{f:"json",...i,token:a},responseType:"json",signal:l})).data,urlPrefix:d}}catch(e){throw new n.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:p})}}},50805(e,t,r){r.d(t,{L0:()=>m,Ot:()=>p,W4:()=>s,uV:()=>c});var o=r(32198),n=r(25482),i=r(91429),a=r(93223);let s=class extends n.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o.Cg)([(0,i.MZ)({type:Number})],s.prototype,"nodesPerPage",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],s.prototype,"rootIndex",void 0),(0,o.Cg)([(0,i.MZ)({type:String})],s.prototype,"lodSelectionMetricType",void 0),s=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],s);let l=class extends n.o{constructor(){super(...arguments),this.factor=1}};(0,o.Cg)([(0,i.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let u=class extends n.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o.Cg)([(0,i.MZ)({type:[Number]})],u.prototype,"baseColorFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],u.prototype,"baseColorTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],u.prototype,"metallicRoughnessTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],u.prototype,"metallicFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],u.prototype,"roughnessFactor",void 0),u=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],u);let c=class extends n.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o.Cg)([(0,a.e)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,o.Cg)([(0,a.e)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"normalTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"occlusionTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"emissiveTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:u})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],c);let d=class extends n.o{};(0,o.Cg)([(0,i.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>e??`${t.index}`}}})],d.prototype,"name",void 0),(0,o.Cg)([(0,a.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],d);let p=class extends n.o{constructor(){super(...arguments),this.atlas=!1}};(0,o.Cg)([(0,i.MZ)({type:[d]})],p.prototype,"formats",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],p.prototype,"atlas",void 0),p=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],p);let f=class extends n.o{};(0,o.Cg)([(0,a.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],f.prototype,"type",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],f.prototype,"component",void 0),f=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],f);let h=class extends n.o{};(0,o.Cg)([(0,a.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,o.Cg)([(0,i.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let y=class extends n.o{constructor(){super(...arguments),this.offset=0}};(0,o.Cg)([(0,i.MZ)({type:Number})],y.prototype,"offset",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"position",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"normal",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uv0",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"color",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uvRegion",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"featureId",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"faceRange",void 0),(0,o.Cg)([(0,i.MZ)({type:h})],y.prototype,"compressedAttributes",void 0),y=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],y);let m=class extends n.o{};(0,o.Cg)([(0,a.e)({triangle:"triangle"})],m.prototype,"topology",void 0),(0,o.Cg)([(0,i.MZ)()],m.prototype,"geometryBuffers",void 0),m=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],m)},88788(e,t,r){r.d(t,{m:()=>a,v:()=>i});var o=r(84952),n=r(20655);function i(e,t){return{...s(e,t),readResourcePaths:[]}}function a(e,t,r){let n=(0,o.An)(r?.forceNewItemContext?null:e.itemUrl);return{...s(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function s(e,t,r){return{origin:t,url:(0,o.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>s,bg:()=>p,cL:()=>d,fetchResources:()=>a,removeAllResources:()=>u,removeResource:()=>l});var o=r(56507),n=r(49186),i=r(84952);async function a(e,t={},r){await e.load(r);let o=(0,i.fj)(e.itemUrl,"resources"),{start:n=1,num:a=10,sortOrder:s="asc",sortField:l="resource"}=t,u={query:{start:n,num:a,sortOrder:s,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(o,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function s(e,t,r,o){let a=new Map;for(let{resource:e,content:o,compress:i,access:s}of t){if(!e.hasPath())throw new n.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");let[t,l]=c(e.path),u=`${t}/${i??""}/${s??""}`;a.has(u)||a.set(u,{prefix:t,compress:i,access:s,files:[]}),a.get(u).files.push({fileName:l,content:o})}await e.load(o);let s=(0,i.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(let{prefix:t,compress:r,access:i,files:l}of a.values())for(let a=0;a<l.length;a+=25){let u=l.slice(a,a+25),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),i&&c.append("access",i);let d=0;for(let{fileName:e,content:t}of u)c.append("file"+ ++d,t,e);c.append("f","json");try{await e.portal.request(s,{method:"post",body:c,signal:o?.signal})}catch(e){if(o?.ignoreResourceCopyErrors&&e instanceof n.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}async function l(e,t,r){if(!t.hasPath())throw new n.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);let o=(0,i.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);let r=(0,i.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){let t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function d(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function p(e,t){if(!e.hasPath())return null;let[r,,o]=function(e){let[t,r]=function(e){let t=(0,i.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,n]=c(t);return[o,n,r]}(e.path);return e.portalItem.resourceFromPath((0,i.fj)(r,t+o))}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>s,M7:()=>d,XF:()=>c,tW:()=>u,w7:()=>a});var o=r(56512),n=r(86211),i=r(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?p:f}(e).mode}(null==e||(e.hasZ??!1),t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function c(e,t){t&&e.warn(".elevationInfo=",t)}function d(e){return(e?.offset??0)*(0,i.Ao)(e?.unit)}(0,o.B)((e,t,r)=>{if(!e||"decimal-degrees"===t)return 0;let o="unknown"!==t&&t?t:"meters",i=(0,n.mq)(r);return i?(0,n.oU)(e,o,i):0});const p={mode:"absolute-height",offset:0},f={mode:"on-the-ground",offset:null}},59418(e,t,r){r.d(t,{qs:()=>m,wH:()=>y,MA:()=>p,E5:()=>f,m0:()=>g});var o=r(49186),n=r(4718),i=r(53966),a=r(34275),s=r(37203);const l=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,r){let n="",i=0;for(;i<r;){let a=e[t+i];if(a<128)n+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let s=(31&a)<<6|63&e[t+i+1];n+=String.fromCharCode(s),i+=2}else if(a>=224&&a<240){if(i+2>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let s=(15&a)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];n+=String.fromCharCode(s),i+=3}else{if(!(a>=240&&a<248))throw new o.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let s=(7&a)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(s>=65536){let e=55296+(s-65536>>10),t=56320+(1023&s);n+=String.fromCharCode(e,t)}else n+=String.fromCharCode(s);i+=4}}}return n}function c(e,t){let r={byteOffset:0,byteCount:0,fields:Object.create(null)},o=0;for(let n=0;n<t.length;n++){let i=t[n],a=i.valueType||i.type,s=b[a];r.fields[i.property]=s(e,o),o+=w[a].BYTES_PER_ELEMENT}return r.byteCount=o,r}function d(e,t,r){let n,i=[],a=0,s=0;for(;s<e;s+=1){if(n=t[s],n>0){if(i.push(u(r,a,n-1)),0!==r[a+n-1])throw new o.A("string-array-error","Invalid string array: missing null termination.")}else i.push(null);a+=n}return i}function p(e,t){return new w[t.valueType](e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t){if(!e)return null;let r=e[t];return(0,a.IY)(e)?-32768===r?null:r:(0,a._G)(e)?r===a.h2?null:r:r==r?r:null}function h(e,t,r){if(t!==e&&l().error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function y(e,t){let r=c(e,t&&t.header),o=r.byteCount,n={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},i=r.fields,a=null==i.vertexCount?i.count:i.vertexCount;for(let e of t.ordering){if(!t.vertexAttributes[e])continue;let r={...t.vertexAttributes[e],byteOffset:o,count:a},i=v[e]||"_"+e;n.vertexAttributes[i]=r,o+=C(r.valueType)*r.valuesPerElement*a}let s=i.faceCount;if(t.faces&&s){n.faces={};for(let e of t.ordering){if(!t.faces[e])continue;let r={...t.faces[e],byteOffset:o,count:s};n.faces[e]=r,o+=C(r.valueType)*r.valuesPerElement*s}}let l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){n.featureAttributes={};for(let e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;let r={...t.featureAttributes[e],byteOffset:o,count:l};n.featureAttributes[e]=r,o+=("UInt64"===r.valueType?8:C(r.valueType))*r.valuesPerElement*l}}return h(o,e.byteLength,"geometry"),n.byteCount=o-n.byteOffset,n}function m(e,t){return e&&e.compressedAttributes&&"draco"===e.compressedAttributes.encoding?function(e){let t={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let r of e)switch(r){case"position":break;case"normal":t.normal=!0;break;case"uv0":t.uv0=!0;break;case"color":t.color=!0;break;case"uv-region":t.uvRegion=!0;break;case"feature-index":t.featureIndex=!0}return t}(e.compressedAttributes.attributes):e?function(e){return{isDraco:!1,isLegacy:!1,color:null!=e.color,normal:null!=e.normal,uv0:null!=e.uv0,uvRegion:null!=e.uvRegion,featureIndex:null!=e.faceRange&&null!=e.featureId}}(e):function(e){let t={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let r of e.ordering)if(e.vertexAttributes[r])switch(r){case"position":break;case"normal":t.normal=!0;break;case"color":t.color=!0;break;case"uv0":t.uv0=!0;break;case"region":t.uvRegion=!0}return e.featureAttributes&&e.featureAttributeOrder&&(t.featureIndex=!0),t}(t)}const v={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(e,t,r,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,s.mb)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint8Array(e):e.length<1024?Array.from(e):e}((0,s.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,s.Ax)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint16Array(e):e.length<1024?Array.from(e):e}((0,s.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new o.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");let a=function(e,t,r){let i=null==t.header?{byteOffset:0,byteCount:0,fields:{count:r}}:c(e,t.header),a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)},s=i.byteCount;for(let e=0;e<t.ordering.length;e++){let r=t.ordering[e],l=(0,n.o8)(t[r]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=s,l.byteCount=i.fields[r+"ByteCount"],"UTF-8"!==l.encoding)throw new o.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new o.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!x(l.valueType))throw new o.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let e=C(l.valueType);s+=s%e===0?0:e-s%e,l.byteOffset=s,l.byteCount=e*l.valuesPerElement*l.count}}s+=l.byteCount??0,a.entries[r]=l}return a.byteCount=s-a.byteOffset,a}(t,e,r);h(a.byteOffset+a.byteCount,t.byteLength,"attribute");let u=a.entries.attributeValues||a.entries.objectIds;if(u){if("String"===u.valueType){let e=a.entries.attributeByteCounts,r=p(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,u);return u.timeEncoding?function(e,t,r){return d(e,t,r).map(e=>{let t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,r,o):d(e.count,r,o)}return i?p(t,u):function(e,t){let r=p(e,t);if(r.length>=1024)return r;let o=[];return r.forEach((e,t)=>o.push(f(r,t))),o}(t,u)}throw new o.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function x(e){return w.hasOwnProperty(e)}function C(e){return x(e)?w[e].BYTES_PER_ELEMENT:0}},25992(e,t,r){r.d(t,{C:()=>s});var o=r(9093),n=r(51850),i=r(73941),a=r(48353);function s(e,t,r,s,l){let u="east-north-up"===r?e.center:function(e,t,r){let o=(0,n.vt)(),a=e.radius,s=2**(4*Math.ceil(Math.log(a)*Math.LOG2E/4)+1);if(r.isGeographic){let t=s/(0,i.tO)(r).radius*180/Math.PI,n=Math.round(e.center[1]/t),a=Math.max(-90,Math.min(90,n*t)),l=t/Math.cos((Math.abs(a)-t/2)/180*Math.PI);o[0]=Math.round(e.center[0]/l)*l,o[1]=a}else{let t=Math.round(e.center[0]/s),r=Math.round(e.center[1]/s);o[0]=t*s,o[1]=r*s}let l=e.center[2]+t;return o[2]=Math.round(l/s)*s,o}(e,t,s),c=(0,o.vt)();return(0,a.l)(s,u,c,l),c}},66480(e,t,r){r.d(t,{Rm:()=>h,Dd:()=>y,s1:()=>f});var o=r(56507),n=(r(4576),r(49186)),i=(r(44208),r(58083),r(9093)),a=(r(35522),r(51850)),s=(r(99917),r(16930)),l=(r(27993),r(19419));r(39516),r(30524),r(97552);var u=r(59418),c=(r(25992),r(90629),r(91829));(0,c.fA)(0,0,0,.2);(0,c.fA)(0,0,0,.2),r(34727);var d=r(57005);function p(e){return e?parseInt(e.slice(e.lastIndexOf("/")+1),10):void 0}async function f(e,t,r,n,i,a,s,l){let c=[];for(let o of t)if(o&&i.includes(o.name)){let t=`${e}/nodes/${r}/attributes/${o.key}/0`;c.push({url:t,storageInfo:o})}let d=await Promise.allSettled(c.map(e=>(0,o.A)(e.url,{responseType:"array-buffer",query:{...s,token:a},signal:l?.signal}).then(t=>(0,u.m0)(e.storageInfo,t.data)))),p=[];for(let e of n){let t={};for(let r=0;r<d.length;r++){let o=d[r];if("fulfilled"===o.status){let n=o.value;t[c[r].storageInfo.name]=(0,u.E5)(n,e)}}p.push(t)}return p}function h(e){let t=e.store,r=t.indexCRS||t.geographicCRS,o=void 0===r?t.indexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-index-and-no-layer-spatial-reference","Found indexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-index-incompatible","The indexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}let i=r?new s.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}function y(e){let t=e.store,r=t.vertexCRS||t.projectedCRS,o=void 0===r?t.vertexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-vertex-and-no-layer-spatial-reference","Found vertexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-vertex-incompatible","The vertexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}let i=r?new s.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}r(47187),(0,l.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,l.vt)(),(0,l.vt)(),new d.ab,(0,a.vt)(),Array(72),(0,i.vt)()},37203(e,t,r){r.d(t,{Ax:()=>u,Me:()=>i,mb:()=>l});var o=r(49186);function n(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+0,10)),version:t.getUint16(r+10,!0),checksum:t.getUint32(r+12,!0)}}function i(e){let t=new DataView(e,0),r=0,{identifier:i,version:s}=n(e,t,r);if(r+=16,"LEPCC "!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");let l=(c=r,{sizeLo:(u=t).getUint32(c+0,!0),sizeHi:u.getUint32(c+4,!0),minX:u.getFloat64(c+8,!0),minY:u.getFloat64(c+16,!0),minZ:u.getFloat64(c+24,!0),maxX:u.getFloat64(c+32,!0),maxY:u.getFloat64(c+40,!0),maxZ:u.getFloat64(c+48,!0),errorX:u.getFloat64(c+56,!0),errorY:u.getFloat64(c+64,!0),errorZ:u.getFloat64(c+72,!0),count:u.getUint32(c+80,!0),reserved:u.getUint32(c+84,!0)});var u,c;if(r+=88,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let d=new Float64Array(3*l.count),p=[],f=[],h=[],y=[];if(r=a(e,r,p),r=a(e,r,f),r=a(e,r,h),r=a(e,r,y),r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let m=0,v=0;for(let e=0;e<p.length;e++){v+=p[e];let t=0;for(let r=0;r<f[e];r++){t+=h[m];let e=y[m];d[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*t),d[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*v),d[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*e),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:d}}function a(e,t,r){let o=[];t=s(e,t,o);let n=[];for(let i=0;i<o.length;i++){n.length=0,t=s(e,t,n);for(let e=0;e<n.length;e++)r.push(n[e]+o[i])}return t}function s(e,t,r){let n=new DataView(e,t),i=n.getUint8(0),a=31&i,s=!!(32&i),l=(192&i)>>6,u=0;if(0===l)u=n.getUint32(1,!0),t+=5;else if(1===l)u=n.getUint16(1,!0),t+=3;else{if(2!==l)throw new o.A("lepcc-decode-error","Bad count type");u=n.getUint8(1),t+=2}if(s)throw new o.A("lepcc-decode-error","LUT not implemented");let c=Math.ceil(u*a/8),d=new Uint8Array(e,t,c),p=0,f=0,h=0,y=-1>>>32-a;for(let e=0;e<u;e++){for(;f<a;)p|=d[h]<<f,f+=8,h+=1;r[e]=p&y,p>>>=a,f-=a,f+a>32&&(p|=d[h-1]>>8-f)}return t+h}function l(e){let t=new DataView(e,0),r=0,{identifier:i,version:a}=n(e,t,r);if(r+=16,"ClusterRGB"!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");let s=(u=r,{sizeLo:(l=t).getUint32(u+0,!0),sizeHi:l.getUint32(u+4,!0),count:l.getUint32(u+8,!0),colorMapCount:l.getUint16(u+12,!0),lookupMethod:l.getUint8(u+14),compressionMethod:l.getUint8(u+15)});var l,u;if(r+=16,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");if((2===s.lookupMethod||1===s.lookupMethod)&&0===s.compressionMethod){if(3*s.colorMapCount+s.count+r!==e.byteLength||s.colorMapCount>256)throw new o.A("lepcc-decode-error","Bad count");let t=new Uint8Array(e,r,3*s.colorMapCount),n=new Uint8Array(e,r+3*s.colorMapCount,s.count),i=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++){let r=n[e];i[3*e]=t[3*r],i[3*e+1]=t[3*r+1],i[3*e+2]=t[3*r+2]}return i}if(0===s.lookupMethod&&0===s.compressionMethod){if(3*s.count+r!==e.byteLength||0!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(s.lookupMethod<=2&&1===s.compressionMethod){if(r+3!==e.byteLength||1!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");let n=t.getUint8(r),i=t.getUint8(r+1),a=t.getUint8(r+2),l=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++)l[3*e]=n,l[3*e+1]=i,l[3*e+2]=a;return l}throw new o.A("lepcc-decode-error","Bad method "+s.lookupMethod+","+s.compressionMethod)}function u(e){let t=new DataView(e,0),r=0,{identifier:i,version:a}=n(e,t,r);if(r+=16,"Intensity "!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");let l=(c=r,{sizeLo:(u=t).getUint32(c+0,!0),sizeHi:u.getUint32(c+4,!0),count:u.getUint32(c+8,!0),scaleFactor:u.getUint16(c+12,!0),bitsPerPoint:u.getUint8(c+14),reserved:u.getUint8(c+15)});var u,c;if(r+=16,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let d=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let t=new Uint8Array(e,r,l.count);for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let t=new Uint16Array(e,r,l.count);for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}else{let t=[];if(s(e,r,t)!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}return d}},49255(e,t,r){function o(e){return function(e){return function(e){return function(e){return a(e)||function(e){return 10===e||11===e}(e)}(e)||function(e){return 3===e}(e)}(e)||function(e){return 4===e}(e)}(e)||function(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}(e)}function n(e){return 1===e}function i(e){return 2===e}function a(e){return 0===e||function(e){return n(e)||i(e)}(e)}r.d(t,{Rb:()=>i,_$:()=>n,_o:()=>a,uw:()=>o})},29941(e,t,r){r.d(t,{v:()=>i});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.output=0,this.hasEmission=!1,this.useFloatBlend=!0}}(0,o.Cg)([(0,n.W)({count:12})],i.prototype,"output",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"hasEmission",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},53466(e,t,r){r.d(t,{U:()=>n});var o=r(31821);function n(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() {
2
+ vuv0 = uv0;
3
+ vuvRegion = uvRegion;
4
+ }`);default:t.textureCoordinateType;case 0:return void e.vertex.code.add(o.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(e,t,r){r.d(t,{r:()=>a});var o=r(53466),n=r(31821);function i(e){e.fragment.code.add(n.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
5
+ vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
6
+ vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
7
+ float maxdUV = 0.125;
8
+ vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
9
+ vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
10
+ return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
11
+ }`)}function a(e,t){let{textureCoordinateType:r}=t;if(0===r||3===r)return;e.include(o.U,t);let a=2===r;a&&e.include(i),e.fragment.code.add(n.H`
12
+ vec4 textureLookup(sampler2D tex, vec2 uv) {
13
+ return ${a?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
14
+ }
15
+ `)}},47187(e,t,r){r.d(t,{zp:()=>g});var o=r(32198),n=r(34727),i=r(49255),a=r(29941),s=r(99208),l=r(65261),u=r(40710),c=r(33079),d=r(28421),p=r(20304),f=r(31821),h=r(15976),y=r(63761),m=r(51976);r(72458);class v extends a.v{constructor(){super(...arguments),this.emissionSource=0}}function g(e,t){let{hasEmission:r,emissionSource:o,hasEmissiveTextureTransform:a,bindType:m}=t;if(!(0,i._o)(t.output)||!r)return;let v=e.fragment;if(v.include(l.C),0===o)return void v.code.add("vec4 getEmissions(vec3 symbolColor) { return vec4(0.0);}");let g=3===o||4===o||5===o;g&&(e.include(s.r,t),v.uniforms.add(1===m?new y.N("texEmission",e=>e.textureEmissive):new h.o("texEmission",e=>e.textureEmissive)));let w=2===o||g;if(w&&v.uniforms.add(1===m?new c.t("emissiveBaseColor",e=>e.emissiveBaseColor):new u.W("emissiveBaseColor",e=>e.emissiveBaseColor)),function({emissionSource:e}){return 0===e||1===e||2===e||3===e}(t)){let e=e=>(0,n.qE)(e??0,0,16);v.uniforms.add(1===m?new p.m("emissiveStrength",t=>e(t.emissiveStrength)):new d.J("emissiveStrength",t=>e(t.emissiveStrength)))}let b=7===o,x=5===o,C=1===o||6===o||b;v.code.add(f.H`vec4 getEmissions(vec3 symbolColor) {
16
+ vec4 emissions =`),w?x?v.code.add("emissiveSource < 0.5 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(emissiveBaseColor, 1.0)"):C?b?v.code.add("emissiveSource < 0.5 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(0.0)"),v.code.add(";"),g&&(x?v.code.add(f.H`
17
+ if(emissiveSource < 0.5) {
18
+ vec4 emissiveFromTex = textureLookup(texEmission, ${a?"emissiveUV":"vuv0"});
19
+ emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);
20
+ }
21
+ `):v.code.add(`vec4 emissiveFromTex = textureLookup(texEmission, ${a?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`),v.code.add("emissions.a = emissions.rgb == vec3(0.0) ? 0.0: emissions.a;")),v.code.add("\n emissions.rgb *= emissiveStrength;\n return emissions;\n }\n ")}(0,o.Cg)([(0,m.W)({count:8})],v.prototype,"emissionSource",void 0),(0,o.Cg)([(0,m.W)()],v.prototype,"hasEmissiveTextureTransform",void 0)},65261(e,t,r){r.d(t,{C:()=>i});var o=r(40876),n=r(31821);function i(e){e.constants.add("GAMMA","float",2.2).constants.add("INV_GAMMA","float",o.iw).code.add(n.H`vec3 delinearizeGamma(vec3 color) {
22
+ return pow(color, vec3(INV_GAMMA));
23
+ }
24
+ vec4 delinearizeGamma(vec4 color) {
25
+ return vec4(delinearizeGamma(color.rgb), color.a);
26
+ }
27
+ vec3 linearizeGamma(vec3 color) {
28
+ return pow(color, vec3(GAMMA));
29
+ }`)}},40710(e,t,r){r.d(t,{W:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",2,(o,n,i,a)=>o.setUniform3fv(e,t(n,i,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",1,(o,n,i)=>o.setUniform3fv(e,t(n,i),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",2,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",1,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},15976(e,t,r){r.d(t,{o:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"sampler2D",2,(o,n,i)=>o.bindTexture(e,t(n,i),r?.(n,i)))}}},63761(e,t,r){r.d(t,{N:()=>n});var o=r(74333);class n extends o.n{constructor(e,t){super(e,"sampler2D",1,(r,o,n)=>r.bindTexture(e,t(o,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const o=(e,...t)=>{let r="";for(let o=0;o<t.length;o++)r+=e[o]+t[o];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}o.int=e=>e.toFixed(),o.uint=e=>`${Math.max(0,e).toFixed()}u`,o.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,o.float=e=>e.toPrecision(8),r.d(t,["H",0,o])},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var o=r(49186),n=r(4576);class i{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,i=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+i>16;)s++,s>=a.length&&a.push(0);let l=a[s],u=(1<<i)-1<<l;a[s]+=i,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&u)>>l},set(t){let n=this._parameterBits[s];if((n&u)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~u|+t<<l&u,"number"!=typeof t)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&u)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&u)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~u|+e<<l,"boolean"!=typeof e))throw new o.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},72458(e,t,r){r.d(t,{O:()=>a});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.useFloatBlend=!0}}function a(e,t){t.useFloatBlend?(e.constants.add("floatBlendOutputScale","float",1),e.constants.add("floatBlendInputScale","float",1)):(e.constants.add("floatBlendOutputScale","float",1/16),e.constants.add("floatBlendInputScale","float",16)),e.constants.add("maxEmissiveStrength","float",16)}(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},65786(e,t,r){const o=class{};new o,r.d(t,["Y",0,o])},74333(e,t,r){r.d(t,{n:()=>o});class o{constructor(e,t,r,o,n=null){if(this.name=e,this.type=t,this.arraySize=n,this.bind={0:null,1:null,2:null},o)switch(r){case void 0:break;case 0:this.bind[0]=o;break;case 1:this.bind[1]=o;break;case 2:this.bind[2]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>s});var o=r(49186),n=r(17676),i=r(13069),a=r(15804);async function s(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,o,n){let i=await u(r,o,n);await e.update({data:t}),await c(i,o,n)}async function u(e,t,s){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:o}=e,{portalItem:n,portalItemResourcePath:i}=t;return r===n&&(!(o||i)||o===i)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,d=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let p=[],f=[],h=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:o,finish:n}=r,s=(0,a.bg)(t,(0,i.lk)());e.paths.push(s.path),p.push({resource:s,content:await(0,a.cL)(o),compress:r.compress}),n&&h.push(()=>n(s))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let t=r.finish;t&&h.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{p.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let e=r.finish;e&&h.push(()=>e(r.resource))}if(p.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,p,"add",s),await e(t.portalItem,f,"update",s)}if(h.forEach(e=>e()),0===d.length)return l;let y=await(0,n.Ol)(d);if((0,n.Te)(s),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let o=[];for(let n of e){let e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9078],{32198(e,t,r){function n(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>a,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function a(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(e,t,r,n,s,i,a,o,l,u,h,c,p,f,d,g){return[e,t,r,n,s,i,a,o,l,u,h,c,p,f,d,g]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},35522(e,t,r){r.d(t,{$A:()=>k,Bw:()=>i,C:()=>a,Cc:()=>P,DI:()=>v,Io:()=>_,Ln:()=>m,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>w,T9:()=>g,WQ:()=>l,Z0:()=>I,_S:()=>f,aI:()=>C,ei:()=>T,fw:()=>q,gL:()=>A,hG:()=>M,hZ:()=>o,hs:()=>y,jk:()=>d,lw:()=>h,m3:()=>b,oW:()=>E,t2:()=>V,tn:()=>p,ze:()=>x});var n=r(51850),s=r(34304);function i(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function m(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function _(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(r*r+n*n+s*s)}function M(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return r*r+n*n+s*s}function b(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function x(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function v(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t=e){let r=t[0],n=t[1],s=t[2],i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function k(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],l=r[2];return e[0]=s*l-i*o,e[1]=i*a-n*l,e[2]=n*o-s*a,e}function P(e,t,r,n){let s=t[0],i=t[1],a=t[2];return e[0]=s+n*(r[0]-s),e[1]=i+n*(r[1]-i),e[2]=a+n*(r[2]-a),e}function I(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=r[0]*n+r[4]*s+r[8]*i+r[12],e[1]=r[1]*n+r[5]*s+r[9]*i+r[13],e[2]=r[2]*n+r[6]*s+r[10]*i+r[14],e}function T(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=n*r[0]+s*r[3]+i*r[6],e[1]=n*r[1]+s*r[4]+i*r[7],e[2]=n*r[2]+s*r[5]+i*r[8],e}function A(e,t,r){return q(e,t,r[0],r[1],r[2],r[3])}function q(e,t,r,n,s,i){let a=t[0],o=t[1],l=t[2],u=n*l-s*o,h=s*a-r*l,c=r*o-n*a,p=n*c-s*h,f=s*u-r*c,d=r*h-n*u,g=2*i;return e[0]=a+u*g+2*p,e[1]=o+h*g+2*f,e[2]=l+c*g+2*d,e}const R=(0,n.vt)(),G=(0,n.vt)();function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function C(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],l=t[2],u=(0,s.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function E(e,t,r){let n=r[0]-t[0],s=r[1]-t[1],i=r[2]-t[2],a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=s*a,e[2]=i*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const F=u,U=h,Z=c,D=_,O=M,L=i,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){w(R,e),w(G,t);let r=S(R,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},applyTranslation:function(e,t,r){return e[0]=t[0]+r[12],e[1]=t[1]+r[13],e[2]=t[2]+r[14],e},bezier:function(e,t,r,n,s,i){let a=1-i,o=a*a,l=i*i,u=o*a,h=3*i*o,c=3*l*a,p=l*i;return e[0]=t[0]*u+r[0]*h+n[0]*c+s[0]*p,e[1]=t[1]*u+r[1]*h+n[1]*c+s[1]*p,e[2]=t[2]*u+r[2]*h+n[2]*c+s[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:k,crossAndNormalize:function(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],l=r[2],u=s*l-i*o,h=i*a-n*l,c=n*o-s*a,p=Math.sqrt(u*u+h*h+c*c);return e[0]=u/p,e[1]=h/p,e[2]=c/p,e},direction:E,dist:D,distance:_,div:Z,divide:c,dot:S,equals:C,exactEquals:V,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,s,i){let a=i*i,o=a*(2*i-3)+1,l=a*(i-2)+i,u=a*(i-1),h=a*(3-2*i);return e[0]=t[0]*o+r[0]*l+n[0]*u+s[0]*h,e[1]=t[1]*o+r[1]*l+n[1]*u+s[1]*h,e[2]=t[2]*o+r[2]*l+n[2]*u+s[2]*h,e},inverse:v,len:L,length:i,lerp:P,max:g,min:d,mul:U,multiply:h,negate:x,normalize:w,random:function(e,t=1){let r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=i*t,e},rotateX:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:m,scaleTo:function(e,t){return y(e,e,t/L(e))},set:o,sign:f,sqrDist:O,sqrLen:j,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:F,subtract:u,transformMat3:T,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:A,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,L,"jb",0,F,"lo",0,O,"uE",0,j])},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>a,lM:()=>i,ro:()=>u,rq:()=>h});var n=r(44208),s=r(34275);function i(e){if(!e)return 0;let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let r=p;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,s.iu)(e)?e.byteLength+d:Array.isArray(e)?h(e,t):0:0}function h(e,t){return p+e.length*t}const c=32,p=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,d=145;r.d(t,["JY",0,f])},51624(e,t,r){r.d(t,{A:()=>u});var n=r(44208),s=r(69397),i=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class u{constructor(e,t,r=0,n=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,n)}[Symbol.dispose](){this.release()}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,s.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,n=e?.byteLength??0){let s=u.pool.acquire();return s._init(e,t,r,n),s}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;let t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return e;throw Error("Varint overflow")}getPackedEnd(){let e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){let e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){let e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){let e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){let e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){let e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){let e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){let e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){let e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){let s=this.getMessage(),i=e(s,t,r,n);return s.release(),i}processMessage(e){let t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){let e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){let e=this._data,t=this._pos,r=0,n=0;if(this._end-t>=10){if(n=e[t++],r|=127&n,128&n&&(n=e[t++],r|=(127&n)<<7,128&n&&(n=e[t++],r|=(127&n)<<14,128&n&&(n=e[t++],r|=(127&n)<<21,128&n&&(n=e[t++],r+=268435456*(127&n),128&n&&(n=e[t++],r+=34359738368*(127&n),128&n&&(n=e[t++],r+=4398046511104*(127&n),128&n&&(n=e[t++],r+=562949953421312*(127&n),128&n&&(n=e[t++],r+=72057594037927940*(127&n),128&n&&(n=e[t++],r+=0x8000000000000000*(127&n),128&n))))))))))throw Error("Varint too long!")}else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){let e,t=this._data,r=0,n=0,s=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n&&(n=t[this._pos++],r|=(127&n)<<7,128&n)&&(n=t[this._pos++],r|=(127&n)<<14,128&n)&&(n=t[this._pos++],r|=(127&n)<<21,128&n)&&(n=t[this._pos++],r+=268435456*(127&n),128&n)&&(n=t[this._pos++],r+=34359738368*(127&n),128&n)&&(n=t[this._pos++],r+=4398046511104*(127&n),128&n)))return s?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=562949953421312n*BigInt(127&n),!(128&n&&(n=t[this._pos++],e+=72057594037927936n*BigInt(127&n),128&n)&&(n=t[this._pos++],e+=9223372036854775808n*BigInt(127&n),128&n)))return Number(s?-(e+1n)/2n:e/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){let n=e.subarray(t,r);return o.decode(n)}let n="",s="";for(let i=t;i<r;++i){let t=e[i];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},48526(e,t,r){r.d(t,{A:()=>y});var n,s=r(32198),i=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),f=r(47610),d=r(56993),g=r(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=c.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,p.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new n({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,i.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let[t,r,n,s]=this.points.splice(e,1)[0],i=new h.A({x:t,y:r,z:n,m:s,spatialReference:this.spatialReference});return this.notifyChange("points"),i}setPoint(e,t){return this._validateInputs(e)&&((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,g.K)("points")],y.prototype,"writePoints",null),y=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>d});var n,s=r(32198),i=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),f=r(43937);let d=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=h.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,s=this.hasM;return n&&!s?new u.A({x:r[0],y:r[1],z:r[2],spatialReference:this.spatialReference}):s&&!n?new u.A({x:r[0],y:r[1],m:r[2],spatialReference:this.spatialReference}):n&&s?new u.A({x:r[0],y:r[1],z:r[2],m:r[3],spatialReference:this.spatialReference}):new u.A({x:r[0],y:r[1],spatialReference:this.spatialReference})}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:r}));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[r,n,s,i]=this.paths[e].splice(t,1)[0],a=new u.A({x:r,y:n,z:s,m:i,spatialReference:this.spatialReference});return this.notifyChange("paths"),a}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],d.prototype,"writePaths",null),d=n=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>i,jh:()=>s});var n=r(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function i(e){return[...e]}function a(e){let t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>a,DC:()=>p,Ej:()=>M,Ie:()=>k,Jt:()=>P,Lu:()=>x,Ne:()=>v,RF:()=>c,TF:()=>m,VL:()=>d,aI:()=>A,fA:()=>o,gE:()=>u,gX:()=>_,hZ:()=>S,iT:()=>f,is:()=>T,pg:()=>b,uJ:()=>y,vI:()=>w,vY:()=>l,vt:()=>i,w1:()=>h,yr:()=>g}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(e=R){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function l(e,t=i()){return function(e,t,r,n=i()){return S(n,q),function(e,t,r=0,n=t.length/3){let s=e[0],i=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=i,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){let[r,n,i,a,o,l]=e;return t[0]=r,t[1]=n,t[2]=i,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=i,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=n,t[14]=i,t[15]=a,t[16]=n,t[17]=l,t[18]=a,t[19]=o,t[20]=i,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function d(e){return e[0]>=e[3]?0:e[3]-e[0]}function g(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function m(e){let t=d(e),r=y(e),n=g(e);return t*t+r*r+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+d(e)/2,t[1]=e[1]+g(e)/2,t[2]=e[2]+y(e)/2,t}function M(e,t=[0,0,0]){return t[0]=d(e),t[1]=g(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function x(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function w(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function k(e){return e?S(e,q):i(q)}function P(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function I(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=s,e[5]=1/0,e}function T(e){return 6===e.length}function A(e,t,r){if(null==e||null==t)return e===t;if(!T(e)||!T(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const q=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];i(),r.d(t,["qv",0,q,"v_",0,R])},50498(e,t,r){var n=r(66552),s=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,p])},62815(e,t,r){r.d(t,{N:()=>o,d:()=>l});var n=r(86211),s=r(73941),i=r(21325),a=r(52006);function o(e,t,r){let n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let r of e.curvePaths)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(let r of e.paths)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let r of e.curveRings)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(let r of e.rings)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},53655(e,t,r){r.d(t,{SH:()=>V,ae:()=>T,cn:()=>g});var n=r(32198),s=r(49186),i=r(51624),a=r(50498);const o=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u="sqlTypeBigInt.sqlTypeBinary.sqlTypeBit.sqlTypeChar.sqlTypeDate.sqlTypeDecimal.sqlTypeDouble.sqlTypeFloat.sqlTypeGeometry.sqlTypeGUID.sqlTypeInteger.sqlTypeLongNVarchar.sqlTypeLongVarbinary.sqlTypeLongVarchar.sqlTypeNChar.sqlTypeNVarchar.sqlTypeOther.sqlTypeReal.sqlTypeSmallInt.sqlTypeSqlXml.sqlTypeTime.sqlTypeTimestamp.sqlTypeTimestamp2.sqlTypeTinyInt.sqlTypeVarbinary.sqlTypeVarchar".split("."),h=["upperLeft","lowerLeft"];function c(e,t){return t[e.getEnum()]}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?a.gy.fromJSON(t):t}function f(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?a.gy.toJSON(t):t}function d(e){let t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function g(e){let t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=c(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function y(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let n=f(t),s=0,i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===r?n=c(i,o):i.skip();continue;case 2:for(let e=i.getPackedEnd();i.pos()<e;)m[s++]=i.getUInt32();continue;case 3:s>0?(m.length=s,null!=t.geometry(r,n,m)&&(m=[])):t.geometry(r,n,[]);for(let e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function M(e,t){let r=[],n=e.asUnsafe();for(;n.next();)if(3!==n.tag())n.skip();else for(let e=n.getPackedEnd();n.pos()<e;)r.push(n.getSInt64());t.centroid(r)}let b=[],x=[],v=[];function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{let s=0,i=m,a=0,o=e.asUnsafe(),l=(0,n.mS)(r,o.clonePooled().asUnsafe(),!1);for(;o.next();)switch(o.tag()){case 2:for(let u=o.getPackedEnd();o.pos()<u;)i[s++]=o.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);o.processMessageWithArgs(S,a++);continue;case 4:{let h=o.getUInt32(),c=o.pos()+h;if(0===a||0===s||0===h){o.move(c);continue}i.length=s,v.length=x.length=a,t.curvedGeometry(f(t),i,x,v);let{hasZ:p,hasM:d}=t.featureSet,g=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)g[e]=y[e],y[e]=o.getSInt64()}p&&y.push(0),d&&y.push(0);let M=[0,0],w=[0,0],k=M,P=M,I=0;for(let T=0;T<s;++T){_(),g.fill(0),t.startCurvedPart(y);for(let A=I+i[T];I<A;++I){let q=x[I],R=v[I];switch(q){case 0:for(let G=0;G<R;++G)_(),y[0]+=g[0],y[1]+=g[1],t.lineSegment(g,y);continue;case 1:for(let V=0;V<R;++V)_(),k[0]=o.getSInt64(),k[1]=o.getSInt64(),t.circularArcSegment(g,y,k);continue;case 2:for(let C=0;C<R;++C)_(),M[0]=o.getSInt64(),M[1]=o.getSInt64(),w[0]=o.getSInt64(),w[1]=o.getSInt64(),t.bezierSegment(g,y,M,w);continue;case 3:if(l.move(b[I]),l.getUInt32()<7*R)throw Error("Not implemented: compressed full circle encoding");for(let E=0;E<R;++E){_(),P[0]=l.getDouble(),P[1]=l.getDouble();let F=l.getDouble(),U=l.getDouble(),Z=l.getDouble(),D=l.getDouble(),O=l.getDouble();t.ellipticArcSegment(g,y,P,F,U,Z,D,O)}continue}}t.finishCurvedPart(y)}continue}default:o.skip()}}catch(L){r.error=L,r.hasError=!0}finally{(0,n.hk)(r)}}function S(e,t){let r=e.asUnsafe(),n=0,s=0,i=0;for(;r.next();)switch(r.tag()){case 1:n=r.getEnum();continue;case 2:s=r.getUInt32();continue;case 3:i=r.pos(),r.skip();continue;default:r.skip()}if(3===n&&0===i)throw Error("An elliptic arc segment set did not include a parameters array");x[t]=n,v[t]=s,b[t]=i}function k(e,t){t.feature();let r=t.featureSet.features.at(-1),n=0,{fields:s}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==s)throw Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[s[n++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(M,t);continue;case 7:e.processMessageWithArgs(w,t);continue;case 11:r.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function P(e){let t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){let t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function T(e){let t={originPosition:h[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=c(r,h);break;case 2:t.scale=r.processMessage(P);break;case 3:t.translate=r.processMessage(I);break;default:r.skip()}return t}function A(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function q(e){let t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function R(e,t){let r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){let e=t.parseOnly.indices.values(),n=0,s=e.next().value;for(;r.next();)15!==r.tag()||n++!==s?r.skip():(s=e.next().value,r.processMessageWithArgs(k,t));return}let n=!1;for("metadata"===t.parseOnly?.type&&(n=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(A);continue;case 7:p(t,c(r,o));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(q);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(T);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(g));continue;case 15:if(n){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(k,t);continue;case 2:t.idField(r.processMessage(y));continue;default:r.skip()}}function G(e,t,r){let n=-1;for(;e.next();)switch(e.tag()){case 4:n=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(R,t);continue;default:e.skip()}if(-1!==n){if(!t.queryGeometry()){let r=e.pos();e.move(n),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function V(e,t){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,{[Symbol.dispose](){m=[],b=[],x=[],v=[]}},!1);try{let r={stack:[],error:void 0,hasError:!1};try{let s,a=(0,n.mS)(r,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);for(;a.next();)2===a.tag()?(s={},a.processMessageWithArgs(G,t,s)):a.skip();return s}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}},63746(e,t,r){function n(e){return class{constructor(){for(let t of e)this[t]=null}}}function s(e,t=1){let{transform:r,hasZ:n,hasM:s}=e;if(null==r)return n&&1!==t?e=>{e[2]*=t}:null;let[i,a]=function(e,t,r,n){let{scale:s,translate:i,originPosition:a}=e;return"upperLeft"===a&&(s=s.map((e,t)=>1===t?-e:e)),t&&(s=s.map((e,t)=>2===t?e*n:e),i=i.map((e,t)=>2===t?e*n:e)),!t&&r&&(s=s.filter((e,t)=>2!==t),i=i.filter((e,t)=>2!==t)),[s,i]}(r,n,s,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*i[t]+a[t]}}r.d(t,{M:()=>s,_:()=>n})},66208(e,t,r){r.d(t,{m:()=>s});var n=r(53655);function s(e,t){let{featureResult:r}=(0,n.SH)(e,t);return r}},39078(e,t,r){r.r(t),r.d(t,{default:()=>c});var n=r(24326),s=r(62815);r(69397),r(16930),r(70328),r(19419),r(50498),r(44208),r(34727),r(21325);class i{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class a{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null,this.missingAttributes=null}}var o=r(63746);class l{constructor(e){this._options=e,this.featureSet=new a,this.usesShortGeometryTypes=!0,this.transferList=[],this.coordinates=[],this._queryGeometryType=null,this._queryGeometry=null,this._queryCoordinates=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._coords=null,this._coordinateIndex=0,this._partIndex=0,this._partEnd=0,this._vertex=[],this._i=0,this._finishVertex=null}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}queryCoordinates(){return this._queryCoordinates}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null)}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r}=this.featureSet,n=r?(0,s.d)(e,t):1;this._transformInPlace??=(0,o.M)(this.featureSet,n)}feature(){this._attributesClass??=(0,o._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push(new i((0,n.c)(),null,new this._attributesClass)),this.coordinates.push(null),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){let{maxStringAttributeLength:e,maxStringAttributeFields:t}=this._options,{attributes:r}=this.featureSet.features.at(-1),n=r[this.featureSet.objectIdFieldName];!function(e,t,r,n){if(t?.size&&null!=r&&e)for(let s in e){if(!t.has(s))continue;let i=e[s];"string"==typeof i&&i.length>r&&(n(s),e[s]="")}}(r,t,e,e=>{null!=n&&this.missingAttributes.push({objectId:n,attribute:e})})}_createPoint(){let{hasZ:e,hasM:t}=this.featureSet,r={type:"point",x:0,y:0,spatialReference:null,hasZ:e,hasM:t};return e&&(r.z=0),t&&(r.m=0),r}centroid(e){let{hasZ:t,hasM:r}=this.featureSet,n={type:"point",x:0,y:0,spatialReference:null,hasZ:t,hasM:r};[n.x,n.y]=e,t&&(n.z=e[2]),r&&(n.m=e.at(-1)),this.featureSet.features.at(-1).centroid=n}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let{hasZ:n,hasM:s}=this.featureSet;n??=!1,s??=!1,this._vertex=[0,0],n&&this._vertex.push(0),s&&this._vertex.push(0);let i,a=null;switch(t){case"esriGeometryPoint":this._point=this._createPoint(),i=this._point,this._finishVertex=n?s?l._finishVertexPointXYZM:l._finishVertexPointXYZ:s?l._finishVertexPointXYM:l._finishVertexPointXY;break;case"esriGeometryMultipoint":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i={type:"multipoint",points:null,spatialReference:null,hasZ:n,hasM:s};break;case"esriGeometryPolyline":case"esriGeometryPolygon":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i="esriGeometryPolygon"===t?{type:"polygon",rings:null,spatialReference:null,hasZ:n,hasM:s}:{type:"polyline",paths:null,spatialReference:null,hasZ:n,hasM:s}}1===e?(this._queryGeometry=i,this._queryCoordinates=a,this._queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):(this.featureSet.features.at(-1).geometry=i,this.coordinates[this.coordinates.length-1]=a)}_createPackedCoordinates(e){let t=this._vertex.length;for(this._coords=new Float64Array(e.reduce((e,t)=>e+t,0)*t),this._coordinateIndex=this._partIndex=0,this._partEnd=(e[0]??0)*t;0===this._partEnd&&++this._partIndex<e.length;)this._partEnd+=e[this._partIndex]*t;this._finishVertex=l._finishVertexPacked,this.transferList.push(this._coords.buffer)}coord(e){let t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexPacked(e){let{_vertex:t,_coords:r,_lengths:n}=e;if(r.set(t,e._coordinateIndex),e._coordinateIndex+=t.length,e._coordinateIndex===e._partEnd)for(e._previousX=e._previousY=0;e._coordinateIndex===e._partEnd&&++e._partIndex<n.length;)e._partEnd+=n[e._partIndex]*t.length}}var u=r(66208);class h{parseFeatureQuery(e){let t=new l(e.options),r=(0,u.m)(e.buffer,t);r.missingAttributes=t.missingAttributes;let n={featureSet:r,coordinates:t.coordinates,queryGeometry:t.queryGeometry()??null,queryCoordinates:t.queryCoordinates()??null};return Promise.resolve({result:n,transferList:t.transferList})}}function c(){return new h}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9078],{32198(e,t,r){function n(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>a,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function a(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(e,t,r,n,s,i,a,o,l,u,h,c,p,f,d,g){return[e,t,r,n,s,i,a,o,l,u,h,c,p,f,d,g]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},35522(e,t,r){r.d(t,{$A:()=>k,Bw:()=>i,C:()=>a,Cc:()=>P,DI:()=>v,Io:()=>_,Ln:()=>m,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>w,T9:()=>g,WQ:()=>l,Z0:()=>I,_S:()=>f,aI:()=>C,ei:()=>T,fw:()=>q,gL:()=>A,hG:()=>M,hZ:()=>o,hs:()=>y,jk:()=>d,lw:()=>h,m3:()=>b,oW:()=>E,t2:()=>V,tn:()=>p,ze:()=>x});var n=r(51850),s=r(34304);function i(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function m(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function _(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(r*r+n*n+s*s)}function M(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return r*r+n*n+s*s}function b(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function x(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function v(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t=e){let r=t[0],n=t[1],s=t[2],i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function k(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],l=r[2];return e[0]=s*l-i*o,e[1]=i*a-n*l,e[2]=n*o-s*a,e}function P(e,t,r,n){let s=t[0],i=t[1],a=t[2];return e[0]=s+n*(r[0]-s),e[1]=i+n*(r[1]-i),e[2]=a+n*(r[2]-a),e}function I(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=r[0]*n+r[4]*s+r[8]*i+r[12],e[1]=r[1]*n+r[5]*s+r[9]*i+r[13],e[2]=r[2]*n+r[6]*s+r[10]*i+r[14],e}function T(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=n*r[0]+s*r[3]+i*r[6],e[1]=n*r[1]+s*r[4]+i*r[7],e[2]=n*r[2]+s*r[5]+i*r[8],e}function A(e,t,r){return q(e,t,r[0],r[1],r[2],r[3])}function q(e,t,r,n,s,i){let a=t[0],o=t[1],l=t[2],u=n*l-s*o,h=s*a-r*l,c=r*o-n*a,p=n*c-s*h,f=s*u-r*c,d=r*h-n*u,g=2*i;return e[0]=a+u*g+2*p,e[1]=o+h*g+2*f,e[2]=l+c*g+2*d,e}const R=(0,n.vt)(),G=(0,n.vt)();function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function C(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],l=t[2],u=(0,s.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function E(e,t,r){let n=r[0]-t[0],s=r[1]-t[1],i=r[2]-t[2],a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=s*a,e[2]=i*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const F=u,D=h,U=c,Z=_,O=M,L=i,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){w(R,e),w(G,t);let r=S(R,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},applyTranslation:function(e,t,r){return e[0]=t[0]+r[12],e[1]=t[1]+r[13],e[2]=t[2]+r[14],e},bezier:function(e,t,r,n,s,i){let a=1-i,o=a*a,l=i*i,u=o*a,h=3*i*o,c=3*l*a,p=l*i;return e[0]=t[0]*u+r[0]*h+n[0]*c+s[0]*p,e[1]=t[1]*u+r[1]*h+n[1]*c+s[1]*p,e[2]=t[2]*u+r[2]*h+n[2]*c+s[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:k,crossAndNormalize:function(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],l=r[2],u=s*l-i*o,h=i*a-n*l,c=n*o-s*a,p=Math.sqrt(u*u+h*h+c*c);return e[0]=u/p,e[1]=h/p,e[2]=c/p,e},direction:E,dist:Z,distance:_,div:U,divide:c,dot:S,equals:C,exactEquals:V,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,s,i){let a=i*i,o=a*(2*i-3)+1,l=a*(i-2)+i,u=a*(i-1),h=a*(3-2*i);return e[0]=t[0]*o+r[0]*l+n[0]*u+s[0]*h,e[1]=t[1]*o+r[1]*l+n[1]*u+s[1]*h,e[2]=t[2]*o+r[2]*l+n[2]*u+s[2]*h,e},inverse:v,len:L,length:i,lerp:P,max:g,min:d,mul:D,multiply:h,negate:x,normalize:w,random:function(e,t=1){let r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=i*t,e},rotateX:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:m,scaleTo:function(e,t){return y(e,e,t/L(e))},set:o,sign:f,sqrDist:O,sqrLen:j,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:F,subtract:u,transformMat3:T,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:A,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,L,"jb",0,F,"lo",0,O,"uE",0,j])},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>a,lM:()=>i,ro:()=>u,rq:()=>h});var n=r(44208),s=r(34275);function i(e){if(!e)return 0;let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let r=p;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=c;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,s.iu)(e)?e.byteLength+d:Array.isArray(e)?h(e,t):0:0}function h(e,t){return p+e.length*t}const c=32,p=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,d=145;r.d(t,["JY",0,f])},51624(e,t,r){r.d(t,{A:()=>u});var n=r(44208),s=r(69397),i=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class u{constructor(e,t,r=0,n=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,n)}[Symbol.dispose](){this.release()}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,s.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,n=e?.byteLength??0){let s=u.pool.acquire();return s._init(e,t,r,n),s}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;let t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return e;throw Error("Varint overflow")}getPackedEnd(){let e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){let e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){let e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){let e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){let e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){let e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){let e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){let e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){let e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){let s=this.getMessage(),i=e(s,t,r,n);return s.release(),i}processMessage(e){let t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){let e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){let e=this._data,t=this._pos,r=0,n=0;if(this._end-t>=10){if(n=e[t++],r|=127&n,128&n&&(n=e[t++],r|=(127&n)<<7,128&n&&(n=e[t++],r|=(127&n)<<14,128&n&&(n=e[t++],r|=(127&n)<<21,128&n&&(n=e[t++],r+=268435456*(127&n),128&n&&(n=e[t++],r+=34359738368*(127&n),128&n&&(n=e[t++],r+=4398046511104*(127&n),128&n&&(n=e[t++],r+=562949953421312*(127&n),128&n&&(n=e[t++],r+=72057594037927940*(127&n),128&n&&(n=e[t++],r+=0x8000000000000000*(127&n),128&n))))))))))throw Error("Varint too long!")}else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){let e,t=this._data,r=0,n=0,s=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n&&(n=t[this._pos++],r|=(127&n)<<7,128&n)&&(n=t[this._pos++],r|=(127&n)<<14,128&n)&&(n=t[this._pos++],r|=(127&n)<<21,128&n)&&(n=t[this._pos++],r+=268435456*(127&n),128&n)&&(n=t[this._pos++],r+=34359738368*(127&n),128&n)&&(n=t[this._pos++],r+=4398046511104*(127&n),128&n)))return s?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=562949953421312n*BigInt(127&n),!(128&n&&(n=t[this._pos++],e+=72057594037927936n*BigInt(127&n),128&n)&&(n=t[this._pos++],e+=9223372036854775808n*BigInt(127&n),128&n)))return Number(s?-(e+1n)/2n:e/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){let n=e.subarray(t,r);return o.decode(n)}let n="",s="";for(let i=t;i<r;++i){let t=e[i];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},48526(e,t,r){r.d(t,{A:()=>y});var n,s=r(32198),i=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),f=r(47610),d=r(56993),g=r(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=c.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,p.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new n({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,i.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let[t,r,n,s]=this.points.splice(e,1)[0],i=new h.A({x:t,y:r,z:n,m:s,spatialReference:this.spatialReference});return this.notifyChange("points"),i}setPoint(e,t){return this._validateInputs(e)&&((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,g.K)("points")],y.prototype,"writePoints",null),y=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>d});var n,s=r(32198),i=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),f=r(43937);let d=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=h.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,s=this.hasM;return n&&!s?new u.A({x:r[0],y:r[1],z:r[2],spatialReference:this.spatialReference}):s&&!n?new u.A({x:r[0],y:r[1],m:r[2],spatialReference:this.spatialReference}):n&&s?new u.A({x:r[0],y:r[1],z:r[2],m:r[3],spatialReference:this.spatialReference}):new u.A({x:r[0],y:r[1],spatialReference:this.spatialReference})}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:r}));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[r,n,s,i]=this.paths[e].splice(t,1)[0],a=new u.A({x:r,y:n,z:s,m:i,spatialReference:this.spatialReference});return this.notifyChange("paths"),a}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],d.prototype,"writePaths",null),d=n=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>i,jh:()=>s});var n=r(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function i(e){return[...e]}function a(e){let t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>T,C:()=>a,DC:()=>p,Dg:()=>d,Ej:()=>b,Ie:()=>P,Jt:()=>I,Lu:()=>v,Ne:()=>w,RF:()=>c,TF:()=>_,VL:()=>g,aI:()=>q,fA:()=>o,gE:()=>u,gX:()=>M,hZ:()=>k,iT:()=>f,is:()=>A,pg:()=>x,uJ:()=>m,vI:()=>S,vY:()=>l,vt:()=>i,w1:()=>h,yr:()=>y}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(e=G){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function l(e,t=i()){return function(e,t,r,n=i()){return k(n,R),function(e,t,r=0,n=t.length/3){let s=e[0],i=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=i,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){let[r,n,i,a,o,l]=e;return t[0]=r,t[1]=n,t[2]=i,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=i,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=n,t[14]=i,t[15]=a,t[16]=n,t[17]=l,t[18]=a,t[19]=o,t[20]=i,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){d(e,t,r,n)}function d(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function m(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=m(e),n=y(e);return t*t+r*r+n*n}function M(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+m(e)/2,t}function b(e,t=[0,0,0]){return t[0]=g(e),t[1]=y(e),t[2]=m(e),t}function x(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function v(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function w(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function S(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function k(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function P(e){return e?k(e,R):i(R)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=s,e[5]=1/0,e}function A(e){return 6===e.length}function q(e,t,r){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const R=[1/0,1/0,1/0,-1/0,-1/0,-1/0],G=[0,0,0,0,0,0];i(),r.d(t,["qv",0,R,"v_",0,G])},50498(e,t,r){var n=r(66552),s=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,p])},62815(e,t,r){r.d(t,{N:()=>o,d:()=>l});var n=r(86211),s=r(73941),i=r(21325),a=r(52006);function o(e,t,r){let n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let r of e.curvePaths)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(let r of e.paths)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let r of e.curveRings)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(let r of e.rings)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},53655(e,t,r){r.d(t,{SH:()=>V,ae:()=>T,cn:()=>g});var n=r(32198),s=r(49186),i=r(51624),a=r(50498);const o=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u="sqlTypeBigInt.sqlTypeBinary.sqlTypeBit.sqlTypeChar.sqlTypeDate.sqlTypeDecimal.sqlTypeDouble.sqlTypeFloat.sqlTypeGeometry.sqlTypeGUID.sqlTypeInteger.sqlTypeLongNVarchar.sqlTypeLongVarbinary.sqlTypeLongVarchar.sqlTypeNChar.sqlTypeNVarchar.sqlTypeOther.sqlTypeReal.sqlTypeSmallInt.sqlTypeSqlXml.sqlTypeTime.sqlTypeTimestamp.sqlTypeTimestamp2.sqlTypeTinyInt.sqlTypeVarbinary.sqlTypeVarchar".split("."),h=["upperLeft","lowerLeft"];function c(e,t){return t[e.getEnum()]}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?a.gy.fromJSON(t):t}function f(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?a.gy.toJSON(t):t}function d(e){let t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function g(e){let t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=c(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function y(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let n=f(t),s=0,i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===r?n=c(i,o):i.skip();continue;case 2:for(let e=i.getPackedEnd();i.pos()<e;)m[s++]=i.getUInt32();continue;case 3:s>0?(m.length=s,null!=t.geometry(r,n,m)&&(m=[])):t.geometry(r,n,[]);for(let e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function M(e,t){let r=[],n=e.asUnsafe();for(;n.next();)if(3!==n.tag())n.skip();else for(let e=n.getPackedEnd();n.pos()<e;)r.push(n.getSInt64());t.centroid(r)}let b=[],x=[],v=[];function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{let s=0,i=m,a=0,o=e.asUnsafe(),l=(0,n.mS)(r,o.clonePooled().asUnsafe(),!1);for(;o.next();)switch(o.tag()){case 2:for(let u=o.getPackedEnd();o.pos()<u;)i[s++]=o.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);o.processMessageWithArgs(S,a++);continue;case 4:{let h=o.getUInt32(),c=o.pos()+h;if(0===a||0===s||0===h){o.move(c);continue}i.length=s,v.length=x.length=a,t.curvedGeometry(f(t),i,x,v);let{hasZ:p,hasM:d}=t.featureSet,g=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)g[e]=y[e],y[e]=o.getSInt64()}p&&y.push(0),d&&y.push(0);let M=[0,0],w=[0,0],k=M,P=M,I=0;for(let T=0;T<s;++T){_(),g.fill(0),t.startCurvedPart(y);for(let A=I+i[T];I<A;++I){let q=x[I],R=v[I];switch(q){case 0:for(let G=0;G<R;++G)_(),y[0]+=g[0],y[1]+=g[1],t.lineSegment(g,y);continue;case 1:for(let V=0;V<R;++V)_(),k[0]=o.getSInt64(),k[1]=o.getSInt64(),t.circularArcSegment(g,y,k);continue;case 2:for(let C=0;C<R;++C)_(),M[0]=o.getSInt64(),M[1]=o.getSInt64(),w[0]=o.getSInt64(),w[1]=o.getSInt64(),t.bezierSegment(g,y,M,w);continue;case 3:if(l.move(b[I]),l.getUInt32()<7*R)throw Error("Not implemented: compressed full circle encoding");for(let E=0;E<R;++E){_(),P[0]=l.getDouble(),P[1]=l.getDouble();let F=l.getDouble(),D=l.getDouble(),U=l.getDouble(),Z=l.getDouble(),O=l.getDouble();t.ellipticArcSegment(g,y,P,F,D,U,Z,O)}continue}}t.finishCurvedPart(y)}continue}default:o.skip()}}catch(L){r.error=L,r.hasError=!0}finally{(0,n.hk)(r)}}function S(e,t){let r=e.asUnsafe(),n=0,s=0,i=0;for(;r.next();)switch(r.tag()){case 1:n=r.getEnum();continue;case 2:s=r.getUInt32();continue;case 3:i=r.pos(),r.skip();continue;default:r.skip()}if(3===n&&0===i)throw Error("An elliptic arc segment set did not include a parameters array");x[t]=n,v[t]=s,b[t]=i}function k(e,t){t.feature();let r=t.featureSet.features.at(-1),n=0,{fields:s}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==s)throw Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[s[n++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(M,t);continue;case 7:e.processMessageWithArgs(w,t);continue;case 11:r.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function P(e){let t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){let t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function T(e){let t={originPosition:h[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=c(r,h);break;case 2:t.scale=r.processMessage(P);break;case 3:t.translate=r.processMessage(I);break;default:r.skip()}return t}function A(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function q(e){let t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function R(e,t){let r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){let e=t.parseOnly.indices.values(),n=0,s=e.next().value;for(;r.next();)15!==r.tag()||n++!==s?r.skip():(s=e.next().value,r.processMessageWithArgs(k,t));return}let n=!1;for("metadata"===t.parseOnly?.type&&(n=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(A);continue;case 7:p(t,c(r,o));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(q);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(T);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(g));continue;case 15:if(n){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(k,t);continue;case 2:t.idField(r.processMessage(y));continue;default:r.skip()}}function G(e,t,r){let n=-1;for(;e.next();)switch(e.tag()){case 4:n=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(R,t);continue;default:e.skip()}if(-1!==n){if(!t.queryGeometry()){let r=e.pos();e.move(n),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function V(e,t){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,{[Symbol.dispose](){m=[],b=[],x=[],v=[]}},!1);try{let r={stack:[],error:void 0,hasError:!1};try{let s,a=(0,n.mS)(r,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);for(;a.next();)2===a.tag()?(s={},a.processMessageWithArgs(G,t,s)):a.skip();return s}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}},63746(e,t,r){function n(e){return class{constructor(){for(let t of e)this[t]=null}}}function s(e,t=1){let{transform:r,hasZ:n,hasM:s}=e;if(null==r)return n&&1!==t?e=>{e[2]*=t}:null;let[i,a]=function(e,t,r,n){let{scale:s,translate:i,originPosition:a}=e;return"upperLeft"===a&&(s=s.map((e,t)=>1===t?-e:e)),t&&(s=s.map((e,t)=>2===t?e*n:e),i=i.map((e,t)=>2===t?e*n:e)),!t&&r&&(s=s.filter((e,t)=>2!==t),i=i.filter((e,t)=>2!==t)),[s,i]}(r,n,s,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*i[t]+a[t]}}r.d(t,{M:()=>s,_:()=>n})},66208(e,t,r){r.d(t,{m:()=>s});var n=r(53655);function s(e,t){let{featureResult:r}=(0,n.SH)(e,t);return r}},39078(e,t,r){r.r(t),r.d(t,{default:()=>c});var n=r(24326),s=r(62815);r(69397),r(16930),r(70328),r(19419),r(50498),r(44208),r(34727),r(21325);class i{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class a{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null,this.missingAttributes=null}}var o=r(63746);class l{constructor(e){this._options=e,this.featureSet=new a,this.usesShortGeometryTypes=!0,this.transferList=[],this.coordinates=[],this._queryGeometryType=null,this._queryGeometry=null,this._queryCoordinates=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._coords=null,this._coordinateIndex=0,this._partIndex=0,this._partEnd=0,this._vertex=[],this._i=0,this._finishVertex=null}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}queryCoordinates(){return this._queryCoordinates}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null)}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r}=this.featureSet,n=r?(0,s.d)(e,t):1;this._transformInPlace??=(0,o.M)(this.featureSet,n)}feature(){this._attributesClass??=(0,o._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push(new i((0,n.c)(),null,new this._attributesClass)),this.coordinates.push(null),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){let{maxStringAttributeLength:e,maxStringAttributeFields:t}=this._options,{attributes:r}=this.featureSet.features.at(-1),n=r[this.featureSet.objectIdFieldName];!function(e,t,r,n){if(t?.size&&null!=r&&e)for(let s in e){if(!t.has(s))continue;let i=e[s];"string"==typeof i&&i.length>r&&(n(s),e[s]="")}}(r,t,e,e=>{null!=n&&this.missingAttributes.push({objectId:n,attribute:e})})}_createPoint(){let{hasZ:e,hasM:t}=this.featureSet,r={type:"point",x:0,y:0,spatialReference:null,hasZ:e,hasM:t};return e&&(r.z=0),t&&(r.m=0),r}centroid(e){let{hasZ:t,hasM:r}=this.featureSet,n={type:"point",x:0,y:0,spatialReference:null,hasZ:t,hasM:r};[n.x,n.y]=e,t&&(n.z=e[2]),r&&(n.m=e.at(-1)),this.featureSet.features.at(-1).centroid=n}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let{hasZ:n,hasM:s}=this.featureSet;n??=!1,s??=!1,this._vertex=[0,0],n&&this._vertex.push(0),s&&this._vertex.push(0);let i,a=null;switch(t){case"esriGeometryPoint":this._point=this._createPoint(),i=this._point,this._finishVertex=n?s?l._finishVertexPointXYZM:l._finishVertexPointXYZ:s?l._finishVertexPointXYM:l._finishVertexPointXY;break;case"esriGeometryMultipoint":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i={type:"multipoint",points:null,spatialReference:null,hasZ:n,hasM:s};break;case"esriGeometryPolyline":case"esriGeometryPolygon":this._createPackedCoordinates(r),a={coords:this._coords,lengths:r.slice()},i="esriGeometryPolygon"===t?{type:"polygon",rings:null,spatialReference:null,hasZ:n,hasM:s}:{type:"polyline",paths:null,spatialReference:null,hasZ:n,hasM:s}}1===e?(this._queryGeometry=i,this._queryCoordinates=a,this._queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):(this.featureSet.features.at(-1).geometry=i,this.coordinates[this.coordinates.length-1]=a)}_createPackedCoordinates(e){let t=this._vertex.length;for(this._coords=new Float64Array(e.reduce((e,t)=>e+t,0)*t),this._coordinateIndex=this._partIndex=0,this._partEnd=(e[0]??0)*t;0===this._partEnd&&++this._partIndex<e.length;)this._partEnd+=e[this._partIndex]*t;this._finishVertex=l._finishVertexPacked,this.transferList.push(this._coords.buffer)}coord(e){let t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexPacked(e){let{_vertex:t,_coords:r,_lengths:n}=e;if(r.set(t,e._coordinateIndex),e._coordinateIndex+=t.length,e._coordinateIndex===e._partEnd)for(e._previousX=e._previousY=0;e._coordinateIndex===e._partEnd&&++e._partIndex<n.length;)e._partEnd+=n[e._partIndex]*t.length}}var u=r(66208);class h{parseFeatureQuery(e){let t=new l(e.options),r=(0,u.m)(e.buffer,t);r.missingAttributes=t.missingAttributes;let n={featureSet:r,coordinates:t.coordinates,queryGeometry:t.queryGeometry()??null,queryCoordinates:t.queryCoordinates()??null};return Promise.resolve({result:n,transferList:t.transferList})}}function c(){return new h}}}]);