@arcgis/core 5.1.0-next.51 → 5.1.0-next.52

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 (226) hide show
  1. package/applications/Components/imageryUtils.d.ts +6 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/001492854799c35b53bb.js +1 -0
  4. package/assets/esri/core/workers/chunks/004f991251f09b36fb09.js +1 -0
  5. package/assets/esri/core/workers/chunks/027d733a99f50cadcf22.js +1 -0
  6. package/assets/esri/core/workers/chunks/03d85a706669aaf24d49.js +1 -0
  7. package/assets/esri/core/workers/chunks/0450133e81bce4b48b84.js +1 -0
  8. package/assets/esri/core/workers/chunks/07e791530677f7e70f32.js +30 -0
  9. package/assets/esri/core/workers/chunks/085778ecd39f46324a6b.js +1 -0
  10. package/assets/esri/core/workers/chunks/08dce0019b52042b01fa.js +1 -0
  11. package/assets/esri/core/workers/chunks/0d8294982853308225da.js +1 -0
  12. package/assets/esri/core/workers/chunks/156aecac067213642aae.js +1 -0
  13. package/assets/esri/core/workers/chunks/{942e4d69b140bc2f97c9.js → 15a45e26964c2eb381a6.js} +1 -1
  14. package/assets/esri/core/workers/chunks/184e9147f7a2f0ae5915.js +1 -0
  15. package/assets/esri/core/workers/chunks/19f59a2a97c33ff92650.js +1 -0
  16. package/assets/esri/core/workers/chunks/{54420b66fd53d6e19ba5.js → 278eecd729bed2832702.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{a3174b23aabcef2fa98c.js → 29c91b5c9ddcea85f39a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/2b7d020367cb4ebb3c3d.js +1 -0
  19. package/assets/esri/core/workers/chunks/30654845ca1334f1c206.js +1 -0
  20. package/assets/esri/core/workers/chunks/3104b10770903c265626.js +1 -0
  21. package/assets/esri/core/workers/chunks/33f00633131581e06328.js +1 -0
  22. package/assets/esri/core/workers/chunks/{32a51ce8e1a362115c89.js → 354b309c8225336bc1e5.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{f8ff3c2dc00b0b27f72f.js → 35dbe1eeb6932b03aea2.js} +1 -1
  24. package/assets/esri/core/workers/chunks/386435341e949f5573b4.js +2 -0
  25. package/assets/esri/core/workers/chunks/3874362bf7d43adc41bb.js +1 -0
  26. package/assets/esri/core/workers/chunks/38dc1c4b8721efd4a165.js +1 -0
  27. package/assets/esri/core/workers/chunks/39f3bea123f20c816ab2.js +1 -0
  28. package/assets/esri/core/workers/chunks/{d527a57717d118c11311.js → 3fcc8c455af56ae89030.js} +1 -1
  29. package/assets/esri/core/workers/chunks/42f3fdad1728433b3510.js +1 -0
  30. package/assets/esri/core/workers/chunks/436941ec88439667022e.js +1 -0
  31. package/assets/esri/core/workers/chunks/{25946077568ab14c7bfc.js → 440f76c397a813b0dcf9.js} +1 -1
  32. package/assets/esri/core/workers/chunks/4812482f28f7205b0938.js +1 -0
  33. package/assets/esri/core/workers/chunks/5317cbef0aac29761575.js +1 -0
  34. package/assets/esri/core/workers/chunks/54a9e17d6c0fef6a9146.js +1 -0
  35. package/assets/esri/core/workers/chunks/55985c9c48b8e1d1c634.js +1 -0
  36. package/assets/esri/core/workers/chunks/55edd712c6d2d044e550.js +1 -0
  37. package/assets/esri/core/workers/chunks/5a573fa1012092328b88.js +1 -0
  38. package/assets/esri/core/workers/chunks/5f06a57b4f7d7de16bbf.js +1 -0
  39. package/assets/esri/core/workers/chunks/60ad54e5707d4414d8b9.js +1 -0
  40. package/assets/esri/core/workers/chunks/63b9e4a7dad358605c38.js +1 -0
  41. package/assets/esri/core/workers/chunks/{d0adf059085ddf7151dd.js → 64845b1f53eca9db1229.js} +1 -1
  42. package/assets/esri/core/workers/chunks/66d4cbb35d0c290150bf.js +1 -0
  43. package/assets/esri/core/workers/chunks/677d3674cb2c0c05fb7e.js +1 -0
  44. package/assets/esri/core/workers/chunks/7100c9038739121c2c4b.js +1 -0
  45. package/assets/esri/core/workers/chunks/{8d03d45a5ec65590019d.js → 720a33a7f118d2769133.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{48267b67564107a7d901.js → 7480bd6f892abf444cac.js} +31 -31
  47. package/assets/esri/core/workers/chunks/{bde4edc4d21363e2163a.js → 792219a079c28bcdc003.js} +1 -1
  48. package/assets/esri/core/workers/chunks/794f604d4267e374f7dd.js +1 -0
  49. package/assets/esri/core/workers/chunks/7ae8f73c8e2afae98ecb.js +1 -0
  50. package/assets/esri/core/workers/chunks/7d4af7e2cb2f234e12eb.js +1 -0
  51. package/assets/esri/core/workers/chunks/807b12ace0099300b9b9.js +1 -0
  52. package/assets/esri/core/workers/chunks/{b98dd9fc9a7e3ff6bd49.js → 816a4b03f2ea49238a6c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/842b442cc012d0797333.js +1 -0
  54. package/assets/esri/core/workers/chunks/8903ff28896bd6f34b0d.js +1 -0
  55. package/assets/esri/core/workers/chunks/89e9bc8789b100316136.js +1 -0
  56. package/assets/esri/core/workers/chunks/8afe32d3db9669f972bc.js +1 -0
  57. package/assets/esri/core/workers/chunks/91fd28f50477d16e294e.js +1 -0
  58. package/assets/esri/core/workers/chunks/{278409028bc5af45b507.js → 93ceb74ac88ef460fe5f.js} +1 -1
  59. package/assets/esri/core/workers/chunks/98011b93acf3d5f0b5a2.js +1 -0
  60. package/assets/esri/core/workers/chunks/{cd491c37ba1ac381178c.js → 987dc23fdc0a8c7150b9.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{25509953f19fbc4949a1.js → 992e74570b76f3f9e52e.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{b1c5f69bd1400e66c635.js → 9ae90a4b281d4103e8bb.js} +1 -1
  63. package/assets/esri/core/workers/chunks/9c7fd5db0813bdc38582.js +1 -0
  64. package/assets/esri/core/workers/chunks/9f272445c285ee9abb7b.js +1 -0
  65. package/assets/esri/core/workers/chunks/a2fee1611319665e6aed.js +1 -0
  66. package/assets/esri/core/workers/chunks/a644e30f65347ce846ed.js +1 -0
  67. package/assets/esri/core/workers/chunks/a64daa4945923a178fe5.js +1 -0
  68. package/assets/esri/core/workers/chunks/a85575a8d1da09280cd7.js +1 -0
  69. package/assets/esri/core/workers/chunks/ac4f7309a249132c22da.js +1 -0
  70. package/assets/esri/core/workers/chunks/aeb1900cfdd0e51cc5f8.js +1 -0
  71. package/assets/esri/core/workers/chunks/ba62f3aa811430787863.js +1 -0
  72. package/assets/esri/core/workers/chunks/{9e5f6ad08e54e4f49bf0.js → bb659dcd297b895830df.js} +1 -1
  73. package/assets/esri/core/workers/chunks/c03d0091a6f385b9ce8d.js +1 -0
  74. package/assets/esri/core/workers/chunks/c48d1ee37c207bfb0aac.js +1 -0
  75. package/assets/esri/core/workers/chunks/c4a9006cc6d2938570e0.js +1 -0
  76. package/assets/esri/core/workers/chunks/c692ea68509bddbf7b42.js +1 -0
  77. package/assets/esri/core/workers/chunks/{a4a4ce33de6432ba4dc3.js → c6a0e770c1a89d3b5913.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{48033fa4b1b815bc9ece.js → cc1f3a2f281a2f6e0f94.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{73e384fd93cf22503d84.js → cdf6ad970dc1893dac58.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{5b5340312086d7b0ca97.js → daf65bccc45dc5c400ae.js} +1 -1
  81. package/assets/esri/core/workers/chunks/df3e79b56c37156e7895.js +1 -0
  82. package/assets/esri/core/workers/chunks/df8b80b17e371c9be4e6.js +1 -0
  83. package/assets/esri/core/workers/chunks/e77198f8ab47441423c5.js +1 -0
  84. package/assets/esri/core/workers/chunks/e786da40a1c87bed64ca.js +1 -0
  85. package/assets/esri/core/workers/chunks/e8aafef6342c50340a27.js +1 -0
  86. package/assets/esri/core/workers/chunks/ec00348d74e29f48613a.js +1 -0
  87. package/assets/esri/core/workers/chunks/{284ce99af7bdd73dc7e9.js → ec65c9c72507ef9a9cf9.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{cdec811b66d98e76be9e.js → eedeff8b344ff699b0b9.js} +1 -1
  89. package/assets/esri/core/workers/chunks/f4201e7dcae224d0caf0.js +1 -0
  90. package/assets/esri/core/workers/chunks/f4d31d96681b649ddc95.js +1 -0
  91. package/assets/esri/core/workers/chunks/{6c3916517664c9e8398f.js → f5fd59291cb161fdc05b.js} +1 -1
  92. package/assets/esri/core/workers/chunks/f7cc05fbfc97b4d36eba.js +1 -0
  93. package/assets/esri/core/workers/chunks/{6aba8c3bce5f68568e3a.js → f7fb121169b7e5a5adbc.js} +1 -1
  94. package/assets/esri/core/workers/chunks/f9d369a4683f88ee9d76.js +1 -0
  95. package/assets/esri/core/workers/chunks/fc534c94d55331578195.js +1 -0
  96. package/assets/esri/core/workers/chunks/{3e61e7805dc6ff284831.js → fdf8fe0f50a9ae548c16.js} +1 -1
  97. package/chunks/Fog.glsl.js +1 -1
  98. package/chunks/GlowBlur.glsl.js +2 -2
  99. package/chunks/GlowComposition.glsl.js +6 -6
  100. package/chunks/HUDMaterial.glsl.js +1 -1
  101. package/chunks/OITBlend.glsl.js +9 -9
  102. package/config.js +1 -1
  103. package/geometry/support/aaBoundingBox.js +1 -1
  104. package/geometry/support/sphere.js +1 -1
  105. package/kernel.js +1 -1
  106. package/layers/raster/datasets/pixelReader.js +1 -1
  107. package/package.json +2 -2
  108. package/support/revision.js +1 -1
  109. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  110. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  111. package/views/3d/layers/support/Tiles3DBVH.js +2 -0
  112. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  113. package/views/3d/support/ElevationRange.js +1 -1
  114. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  115. package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
  116. package/views/3d/support/orientedBoundingBox.js +1 -1
  117. package/views/3d/terrain/TerrainRenderer.js +1 -1
  118. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  119. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
  120. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  121. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  122. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutputConfiguration.js +1 -1
  123. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
  124. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  125. package/views/3d/webgl-engine/effects/fboFormatUtils.js +2 -0
  126. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  127. package/views/3d/webgl-engine/effects/fog/FogTechniqueConfiguration.js +1 -1
  128. package/views/3d/webgl-engine/effects/glow/GlowBlurTechniqueConfiguration.js +1 -1
  129. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechniqueConfiguration.js +1 -1
  130. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  131. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  132. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  133. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  134. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/Material.js +1 -1
  137. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  138. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  139. package/views/3d/webgl-engine/shaders/Dithering.glsl.js +1 -1
  140. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +3 -3
  141. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  142. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  143. package/views/3d/webgl.js +1 -1
  144. package/views/SelectionManager.js +1 -1
  145. package/views/selection/types.d.ts +92 -1
  146. package/views/support/selectionUtils.js +1 -1
  147. package/views/webgl/InstanceCounter.js +1 -1
  148. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  149. package/widgets/Editor/EditorViewModel.js +1 -1
  150. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  151. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +2 -2
  152. package/widgets/Editor/workflowUtils.js +1 -1
  153. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  154. package/widgets/LayerList/ListItemPanel.js +1 -1
  155. package/widgets/Legend/LegendViewModel.js +1 -1
  156. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  157. package/widgets/Sketch/SketchViewModel.js +1 -1
  158. package/widgets/support/SelectionList/FeatureItem.js +1 -1
  159. package/widgets/support/SelectionList/LayerItem.js +1 -1
  160. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  161. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  162. package/assets/esri/core/workers/chunks/04b04548d4eb0941a01e.js +0 -1
  163. package/assets/esri/core/workers/chunks/06223d5d8281e5af14c5.js +0 -1
  164. package/assets/esri/core/workers/chunks/07bdcb622ea59fdbb3a6.js +0 -1
  165. package/assets/esri/core/workers/chunks/0eb57ef4a1b387c951d6.js +0 -1
  166. package/assets/esri/core/workers/chunks/136859ef29a3269c4128.js +0 -1
  167. package/assets/esri/core/workers/chunks/1e018de43becf66cceaa.js +0 -1
  168. package/assets/esri/core/workers/chunks/236b4ab3da0bc8f788a2.js +0 -1
  169. package/assets/esri/core/workers/chunks/2379c64b0ca30814a815.js +0 -1
  170. package/assets/esri/core/workers/chunks/333a019ea18d07f6a159.js +0 -1
  171. package/assets/esri/core/workers/chunks/35d115bde474c380c791.js +0 -1
  172. package/assets/esri/core/workers/chunks/3f6ebd82551c2000912e.js +0 -1
  173. package/assets/esri/core/workers/chunks/4577df99c92c7ec0f9de.js +0 -1
  174. package/assets/esri/core/workers/chunks/4869e2f35aaf6b058281.js +0 -1
  175. package/assets/esri/core/workers/chunks/4a4516bc5ec319c868cd.js +0 -2
  176. package/assets/esri/core/workers/chunks/4c6fc6d19fe519ce7bfc.js +0 -1
  177. package/assets/esri/core/workers/chunks/58f47dea6d8665611eff.js +0 -1
  178. package/assets/esri/core/workers/chunks/5b2fe488a461bc433f59.js +0 -1
  179. package/assets/esri/core/workers/chunks/5c0b3c76a7bc971c61dc.js +0 -1
  180. package/assets/esri/core/workers/chunks/5df9d2a255c9d63ae7df.js +0 -1
  181. package/assets/esri/core/workers/chunks/5f53d7d6bc9b67b2f357.js +0 -1
  182. package/assets/esri/core/workers/chunks/5ffe664eda334ad73175.js +0 -1
  183. package/assets/esri/core/workers/chunks/64fd3561bc94570ee954.js +0 -1
  184. package/assets/esri/core/workers/chunks/650614a9e4871714c42e.js +0 -1
  185. package/assets/esri/core/workers/chunks/66e35e38aea978f91a0c.js +0 -1
  186. package/assets/esri/core/workers/chunks/696f645349249f26090c.js +0 -1
  187. package/assets/esri/core/workers/chunks/6d5bb00157e20ad90fc0.js +0 -1
  188. package/assets/esri/core/workers/chunks/70f0d66e5e6d5d2163f3.js +0 -1
  189. package/assets/esri/core/workers/chunks/768bbc910be6c65ac107.js +0 -1
  190. package/assets/esri/core/workers/chunks/76effcc35b3962cd5535.js +0 -1
  191. package/assets/esri/core/workers/chunks/777390e820b3824dc265.js +0 -1
  192. package/assets/esri/core/workers/chunks/7948d6f14ae44d346d88.js +0 -1
  193. package/assets/esri/core/workers/chunks/797bf402489b3677a5f7.js +0 -1
  194. package/assets/esri/core/workers/chunks/7a4cc1133e4410271b00.js +0 -1
  195. package/assets/esri/core/workers/chunks/7dba4b04c148f03fdf21.js +0 -1
  196. package/assets/esri/core/workers/chunks/87c9a1fc9f2a392b78f5.js +0 -1
  197. package/assets/esri/core/workers/chunks/88426877d625ea333143.js +0 -1
  198. package/assets/esri/core/workers/chunks/8967a02f394a63f11030.js +0 -1
  199. package/assets/esri/core/workers/chunks/8c210529a28addb94ea0.js +0 -1
  200. package/assets/esri/core/workers/chunks/8d3c508995253cbe083f.js +0 -1
  201. package/assets/esri/core/workers/chunks/8e18ac7b22d8dca1e1e2.js +0 -1
  202. package/assets/esri/core/workers/chunks/8e3cb1c584951c3d1eb7.js +0 -1
  203. package/assets/esri/core/workers/chunks/908f171b9c512d738dea.js +0 -1
  204. package/assets/esri/core/workers/chunks/922484b43803ab4e4319.js +0 -1
  205. package/assets/esri/core/workers/chunks/947a715b608c8affd812.js +0 -1
  206. package/assets/esri/core/workers/chunks/9bd68abc6b5b07b2add3.js +0 -1
  207. package/assets/esri/core/workers/chunks/9e55f97291062985560b.js +0 -1
  208. package/assets/esri/core/workers/chunks/a90883ff02c0cc6450c2.js +0 -1
  209. package/assets/esri/core/workers/chunks/ac9722a7897c994f11ab.js +0 -1
  210. package/assets/esri/core/workers/chunks/b1ac09d8fa340d194aa2.js +0 -1
  211. package/assets/esri/core/workers/chunks/c04c457f5295febb3c39.js +0 -1
  212. package/assets/esri/core/workers/chunks/cb2fbe585c0827eecf70.js +0 -1
  213. package/assets/esri/core/workers/chunks/cf74d1605ad2f21699e7.js +0 -1
  214. package/assets/esri/core/workers/chunks/d50e6681ecb9612e4528.js +0 -1
  215. package/assets/esri/core/workers/chunks/d6eddb94f5f2e9759bd0.js +0 -1
  216. package/assets/esri/core/workers/chunks/dcc3285e4ab2c38709bd.js +0 -1
  217. package/assets/esri/core/workers/chunks/e25bbd7cc553b1d2e208.js +0 -1
  218. package/assets/esri/core/workers/chunks/e72ca52d930afb5650af.js +0 -30
  219. package/assets/esri/core/workers/chunks/e96529e144c3268a04f7.js +0 -1
  220. package/assets/esri/core/workers/chunks/f379f94adbe79dc305a2.js +0 -1
  221. package/assets/esri/core/workers/chunks/f4e5163efa2a0567ee19.js +0 -1
  222. package/assets/esri/core/workers/chunks/f76833254f842fb0cd9a.js +0 -1
  223. package/assets/esri/core/workers/chunks/f9abae8d07002fe04a08.js +0 -1
  224. package/assets/esri/core/workers/chunks/ff6c4f8420140b9f9577.js +0 -1
  225. package/assets/esri/core/workers/chunks/ffe9fa5111c149ddef49.js +0 -1
  226. /package/assets/esri/core/workers/chunks/{4a4516bc5ec319c868cd.js.LICENSE.txt → 386435341e949f5573b4.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 4a4516bc5ec319c868cd.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3789],{25971(t,e,s){s.d(e,{C:()=>f,G:()=>g,c:()=>u,p:()=>h,t:()=>d});var i=s(11232),o=s(25744),n=s(34857),r=s(48779),a=s(53436);let c;const h=()=>{c?.forEach(({callbacks:t},e)=>{const s=Object.keys(e);t.forEach(t=>t(s))}),c=void 0},l=(t,e,s)=>{const o=t.manager;return o.V!==n.s6&&o.V!==s&&o.S(void 0,void 0),0===o.T.length&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=s,o.T.push((t,o)=>(0,i.UF)(e,void 0,s===o?t:void 0)),s},d=(t=[(0,o.r)(),...(0,o.d)()],e,s)=>{const n=Array.isArray(t)?t:[t];let r=n.length+1;const a=t=>{r-=1,void 0!==t&&(r=Math.min(r,0)),0===r&&e(t)};n.forEach(t=>((t,e,s)=>{const o=Object.keys(t),n=o.length;void 0===c&&queueMicrotask(h),c??=new Map;let r=c.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},c.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach(t=>t(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(o=>{const r=t=>(0,i.UF)(e,null,t),a=o[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)}),s})(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!1}),s));for(const t of n)if("manager"in t&&t.manager.component===t){l(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!0}),s);break}return s},u=((t="",e={},s=(0,o.r)())=>{const i={emit:i=>{""===t&&h();const o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(o),o}};return""===t&&d(void 0,e=>t=e.key,i),i}).bind(null,"");var p;p=o.c;class f{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#i=[],this.#o=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new r.c,this.connectedCalled=!1,this.loadedCalled=!1,this[p]=!0,this.#l=[];const e=this,s=t??(0,o.r)(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=y(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||((0,o.b)(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#i;#o;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch((0,a.G3)(this.#d))}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(i.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?y(t):t,this.#l.forEach(i.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return(0,o.a)(this.#d),o.u}get useRef(){return(0,o.a)(this.#d),o.k}get useRefSync(){return(0,o.a)(this.#d),o.l}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#i.push(t)}onUpdate(t){this.#o.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,i.UF)(t.hostConnected,t),t.#t.forEach(i.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,i.UF)(t.hostDisconnected,t),t.#e.forEach(i.UF),t.#c.forEach(i.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,i.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(i.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,i.UF)(this.hostLoaded,this),this.#i.forEach(i.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,i.UF)(this.hostUpdate,this,t),this.#o.forEach(m,t)}triggerUpdated(t){this.hostUpdated&&(0,i.UF)(this.hostUpdated,this,t),this.#n.forEach(m,t)}triggerDestroy(){this.hostDestroy&&(0,i.UF)(this.hostDestroy,this),this.#r.forEach(i.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(t){(0,o.a)(this.#d);const e=(0,i.UF)(t);(Array.isArray(e)?e:[e]).forEach(t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)})}}function m(t){(0,i.UF)(t,void 0,this)}const g=f,y=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,i){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,i):void 0}});return e}},25744(t,e,s){s.d(e,{a:()=>r,b:()=>h,c:()=>i,d:()=>l,f:()=>y,i:()=>o,j:()=>u,k:()=>f,l:()=>m,r:()=>a,s:()=>g,u:()=>p});const i=Symbol.for("controller"),o=t=>"function"==typeof t?.then;let n;const r=t=>{n!==t&&(n=t,queueMicrotask(()=>n===t?n=void 0:0))},a=t=>n;let c=[];const h=t=>{if(void 0===t)return void(c=[]);const e=c.indexOf(t);c=-1===e?[...c,t]:c.slice(0,e+1),queueMicrotask(()=>c=[])},l=()=>c;let d;const u=t=>{d!==t&&(d=t,queueMicrotask(()=>d===t?d=void 0:0))},p=async(t,e)=>{const s=m(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports(s=>e(s,t))}return s.exports},f=async t=>{const e=m(t);return await e.ready,e},m=t=>{const e=a().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(i in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=d;return d=void 0,t})();return void 0!==s?s:void 0};let g=!1;const y=t=>{g=!0;try{return t()}finally{g=!1}}},1055(t,e,s){s.d(e,{C:()=>c,a:()=>l,b:()=>h,s:()=>d});var i=s(11232),o=s(25971),n=s(34857),r=s(48779),a=s(25744);class c extends o.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=n.s6,this.T=[],this.#f=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=l in t&&"function"==typeof t.destroy,n.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${l} prop.`)}void 0!==this.#m&&clearTimeout(this.#m),(0,o.p)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,i.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,i.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,i.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,i.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,a.a)(t)}#m;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#m=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,i.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#m&&clearTimeout(this.#m),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#m=(0,r.o)(t,h)}}S(t,e){const s=this.T;this.V=n.s6,this.T=[],s.forEach(s=>s(t,e))}#f;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#f.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#f.get(t):void 0}}let h=1e3;const l="autoDestroyDisabled";function d(t){h=t}},67145(t,e,s){s.d(e,{WF:()=>U,le:()=>S,s6:()=>O,CP:()=>T,zl:()=>L,Bq:()=>P,pf:()=>x});var i=s(25971),o=s(65616);o.W3,o.Ec;var n=s(48779);const r=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},a={};function c(){}const h=Object.defineProperty,l=globalThis.HTMLElement??c;class d extends l{constructor(){super(),this.#g={},this.#y=[],this.I=new n.c,this.H=new n.c,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(e=>{Object.hasOwn(t,e)&&(t.#g[e]=t[e],delete t[e])}),e.A?t.#$({a:e.A}):e.B.then(async s=>{await e.K.p,t.#$(await(s.default?.then(t=>"function"==typeof t?{a:t}:t)??s))}).catch(e=>{t.H.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#g[t]},set(e){this.#g[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#A||await this.H.promise;const s=this.#A;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#A[t](...e)},configurable:!0})}#A;#g;#y;get manager(){return this.#A?.manager}attributeChangedCallback(t,e,s){this.#A?.attributeChangedCallback(t,e,s),this.#A||this.#y.push(t)}connectedCallback(){this.#A?this.#A.connectedCallback?.():queueMicrotask(()=>this.G=r(this))}disconnectedCallback(){this.#A?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#$(t){const e=this.constructor,s=e.L,i=this.#g,o=Object.values(t).find(t=>t.L===s),n=`${s}--lazy`;let r=o;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=o,customElements.define(n,o)),o.N=this;const a=document.createElement(n);o.N=void 0,this.#A=a,this.#g=a,this.#y.forEach(t=>a.attributeChangedCallback(t,null,this.getAttribute(t))),Object.entries(i).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#A?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(11232);const m=/[A-Z]+(?![a-z])|[A-Z]/gu;crypto;var g=s(34857),y=s(25744),$=s(1055),A=s(95862),_=s(57106);const v=(0,_.u$)(class extends _.WL{constructor(t){if(super(t),t.type!==_.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return A.c0}}),b="important",E=" !"+b,C=(0,_.u$)(class extends _.WL{constructor(t){if(super(t),t.type!==_.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(E);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?b:""):s[t]=i}}return A.c0}});s(14490);var w=s(11758);class U extends g.WF{constructor(){super(),this.M=[],this.manager=new $.C(this);const t=this,e=t.constructor,s=e.N,i=e.K.o,o=U.prototype.shouldUpdate;t.#_=s?.H??new n.c,t.I=s?.I??new n.c,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#v=t.enableUpdating,t.enableUpdating=c,t.shouldUpdate!==o&&(t.#b=t.shouldUpdate,t.shouldUpdate=o),i&&(t.#E=new Map,e.elementProperties.forEach((e,s)=>t.#E.set(s,i()))),g.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===a;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,o=i?.hasChanged??g.Ec,n={attribute:!!(1&s&&"string"==typeof t)&&(r=t,r.replace(m,(t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),c:!1,...i,hasChanged(t,e){const s=o(t,e);return n.c=s,s}};var r;super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){const o=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return o.t?.(this.#E.get(t)),n.get?.call(this)},set(e){const o=this.manager;if(s.readOnly&&!y.s&&(o.R||o.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#E?.get(t)?.notify(),o.T.length>0&&((0,i.p)(),o?.S(t,e))}}}static{this.lumina=!0}#E;#b;#v;#_;#C;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;const t=this.constructor.K.c?.(()=>this.requestUpdate());this.#C=t;const e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#w().catch(t=>{this.#_.reject(t),setTimeout(()=>{throw t})})):t&&this.requestUpdate()}#U(t){try{this.#C.clear(),this.constructor.K.r(this.#C,()=>super.update(t))}catch(t){throw this.#C.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#C?.destroy(),this.#C=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===a?this.el:this.el.attachShadow(s));if(this.isConnected){const t=i.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map(t=>"styleSheet"in t?t.styleSheet:t)]}return i}async#w(){const t=this.el.G??r(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,f.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(t=>t.has($.a)&&this.manager.U()),this.#v(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();const s=this.J.filter(t=>!t.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async t=>await t.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,f.UF)(t.hostLoaded,t);this.loaded?.(),this.#_.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#b?.(t)??!0}update(t){this.#C?this.#U(t):super.update(t)}listen(t,e,s){const i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){const o=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,o,i),()=>t.removeEventListener(e,o,i)))}async componentOnReady(){return await this.#_.promise,this}addController(t){this.M.push(t),!(y.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const S=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},i={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=i,e.L=t,customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),i},T=t=>"object"==typeof t&&null!=t?v(t):t,L=t=>"object"==typeof t&&null!=t?C(t):t;class k extends _.WL{#S;#T;constructor(t){super(t);const e=this;this.#T=function(t){return e.#S.call(this,t)}}render(t){return"function"==typeof t?(this.#S=t,(0,w.K)(this.#T)):(0,w.K)(t)}}(0,_.u$)(k);const O=g.s6;function P(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const x={toAttribute:t=>!0===t?"":!1===t?null:t}},11232(t,e,s){s.d(e,{UF:()=>i,ao:()=>o});const i=(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},o=async(t,e,...s)=>{try{const i=t?.call(e,...s);return await i}catch(e){console.error(e,t)}}},53436(t,e,s){s.d(e,{G3:()=>r,Rm:()=>n});const i=new Set;const o=t=>"string"==typeof t?t:"el"in t?t.el.localName:"localName"in t?t.localName:t.declaredClass,n=(t,e,s,n)=>{const r=o(e);if(n?.once){const e=`${t}${r}${s}`;if(i.has(e))return;i.add(e)}let a;if(n?.detail){a={};for(const[t,e]of Object.entries(n.detail))if("object"!=typeof e&&"function"!=typeof e||null===e)a[t]=e;else{const s=new WeakRef(e);Object.defineProperty(a,t,{get:()=>s.deref()})}console[t](`[${r}]: ${s}`,a)}else console[t](`[${r}]: ${s}`)},r=t=>{const e=`[${o(t)}] `;return t=>{const s=t instanceof Error&&t.message?t:new Error(String(t));s.message=`${e}${s.message}`,setTimeout(()=>{throw t})}}},48779(t,e,s){s.d(e,{c:()=>i,o:()=>o});class i{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}const o=(t,e)=>{const s=e>n?r:e/a;let i=0;const o=setInterval(()=>{i+=s,i>=e&&(clearInterval(o),t())},s);return o},n=4e3,r=2e3,a=4},41948(t,e,s){s.d(e,{eg:()=>i});function i(t){const e=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const i=s.getRootNode?.();if(i===globalThis.document)return;s=i?.host}})(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return e?.classList.contains("calcite-mode-dark")||e?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},50917(t,e,s){s.d(e,{C:()=>a,D:()=>c,a:()=>p,b:()=>h,c:()=>g,g:()=>y,s:()=>$}),Object(function(){var t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(67145),o=s(34857);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},c={filter:250,nextTick:0,resize:150,reposition:100},h=25;function l(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),o=t=>{a!==t&&i(t),a=t};let a=s();i(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>o(t.matches?"dark":"light")),new MutationObserver(()=>o(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}let d;const u={focusTrapStack:[],logLevel:"info"};function p(){return d||(d={...u,...globalThis.calciteConfig??{}}),d}const f="5.0.2";o.S$||("interactive"===document.readyState?l():document.addEventListener("DOMContentLoaded",l,{once:!0})),queueMicrotask(function(){const t=p();t&&t.version||(console.info(`Using Calcite Components ${f} [Date: 2026-02-18, Revision: 960214b84]`),Object.defineProperty(t,"version",{value:f,writable:!1}),globalThis.calciteConfig=t)});const m=(0,i.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/5.0.2/",hydratedAttribute:"calcite-hydrated"}),{customElement:g,getAssetPath:y,setAssetPath:$}=m},91866(t,e,s){s.d(e,{Qu:()=>n,qu:()=>o});var i=s(50917);let o=!1;const n=t=>{o=!0,(0,i.s)(t)}},65616(t,e,s){s.d(e,{mN:()=>w,AH:()=>c,W3:()=>b,Ec:()=>E});const i=globalThis,o=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new a(s,t,n)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,$=y.trustedTypes,A=$?$.emptyScript:"",_=y.reactiveElementPolyfillSupport,v=(t,e)=>t,b={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},E=(t,e)=>!d(t,e),C={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??C}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:b).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=i;const n=o.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,o=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??E)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[v("elementProperties")]=new Map,w[v("finalized")]=new Map,_?.({ReactiveElement:w}),(y.reactiveElementVersions??=[]).push("2.1.1")},27654(t,e,s){s.d(e,{Rt:()=>n,mY:()=>a});var i=s(95862);const{I:o}=i.ge,n=t=>void 0===t.strings,r={},a=(t,e=r)=>t._$AH=e},57106(t,e,s){s.d(e,{OA:()=>i,WL:()=>n,u$:()=>o});const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o=t=>(...e)=>({_$litDirective$:t,values:e});class n{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},95862(t,e,s){s.d(e,{JW:()=>w,XX:()=>q,c0:()=>S,ej:()=>U,ge:()=>F,qy:()=>C,s6:()=>T});const i=globalThis,o=i.trustedTypes,n=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,h=`<${c}>`,l=document,d=()=>l.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f=t=>p(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,$=/>/g,A=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,v=/"/g,b=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),C=E(1),w=E(2),U=E(3),S=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),L=new WeakMap,k=l.createTreeWalker(l,129);function O(t,e){if(!p(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const P=(t,e)=>{const s=t.length-1,i=[];let o,n=2===e?"<svg>":3===e?"<math>":"",c=g;for(let e=0;e<s;e++){const s=t[e];let l,d,u=-1,p=0;for(;p<s.length&&(c.lastIndex=p,d=c.exec(s),null!==d);)p=c.lastIndex,c===g?"!--"===d[1]?c=y:void 0!==d[1]?c=$:void 0!==d[2]?(b.test(d[2])&&(o=RegExp("</"+d[2],"g")),c=A):void 0!==d[3]&&(c=A):c===A?">"===d[0]?(c=o??g,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,l=d[1],c=void 0===d[3]?A:'"'===d[3]?v:_):c===v||c===_?c=A:c===y||c===$?c=g:(c=A,o=void 0);const f=c===A&&t[e+1].startsWith("/>")?" ":"";n+=c===g?s+h:u>=0?(i.push(l),s.slice(0,u)+r+s.slice(u)+a+f):s+a+(-2===u?e:f)}return[O(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class x{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,h=0;const l=t.length-1,u=this.parts,[p,f]=P(t,e);if(this.el=x.createElement(p,s),k.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=k.nextNode())&&u.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(r)){const e=f[h++],s=i.getAttribute(t).split(a),o=/([.?@])?(.*)/.exec(e);u.push({type:1,index:n,name:o[2],strings:s,ctor:"."===o[1]?H:"?"===o[1]?j:"@"===o[1]?I:N}),i.removeAttribute(t)}else t.startsWith(a)&&(u.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=o?o.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],d()),k.nextNode(),u.push({type:2,index:++n});i.append(t[e],d())}}}else if(8===i.nodeType)if(i.data===c)u.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)u.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){if(e===S)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const n=u(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=M(t,o._$AS(t,e.values),o,i)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??l).importNode(e,!0);k.currentNode=i;let o=k.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new W(o,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(o=k.nextNode(),n++)}return k.currentNode=l,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class D{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),u(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):f(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=x.createElement(O(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new R(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new x(t)),e}k(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new D(this.O(d()),this.O(d()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(void 0===o)t=M(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const i=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=M(this,i[s+r],e,r),a===S&&(a=this._$AH[r]),n||=!u(a)||a!==this._$AH[r],a===T?t=T:t!==T&&(t+=(a??"")+o[r+1]),this._$AH[r]=a}n&&!i&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class j extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends N{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??T)===S)return;const s=this._$AH,i=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==T&&(s===T||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const F={M:r,P:a,A:c,C:1,L:P,R,D:f,V:M,I:D,H:N,N:j,U:I,B:H,F:W},B=i.litHtmlPolyfillSupport;B?.(x,D),(i.litHtmlVersions??=[]).push("3.3.1");const q=(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new D(e.insertBefore(d(),t),t,void 0,s??{})}return o._$AI(t),o}},14490(t,e,s){s.d(e,{V:()=>r});var i=s(95862),o=s(57106),n=s(27654);const r=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.PROPERTY&&t.type!==o.OA.ATTRIBUTE&&t.type!==o.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,r=t.name;if(t.type===o.OA.PROPERTY){if(e===s[r])return i.c0}else if(t.type===o.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return i.c0}else if(t.type===o.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return i.c0;return(0,n.mY)(t),e}})},11758(t,e,s){s.d(e,{_:()=>p,K:()=>g});var i=s(95862),o=s(27654),n=s(57106);const r=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),r(t,e);return!0},a=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},c=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function h(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)r(i[t],!1),a(i[t]);else null!=i&&(r(i,!1),a(i));else r(this,t)}const d=t=>{t.type==n.OA.CHILD&&(t._$AP??=l,t._$AQ??=h)};class u extends n.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(r(this,t),a(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new f;class f{}const m=new WeakMap,g=(0,n.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=m.get(e);void 0===s&&(s=new WeakMap,m.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},34857(t,e,s){s.d(e,{WF:()=>r,AH:()=>i.AH,qy:()=>o.qy,S$:()=>c,Ec:()=>i.Ec,s6:()=>o.s6,JW:()=>o.JW});var i=s(65616),o=s(95862);const n=globalThis;class r extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.1");const c=!1}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1054,1550,1666,6061,6312,7992,8125,9169,9397],{15546(t,e,r){r.d(e,{a:()=>i,c:()=>a});var n=r(55537),s=r(83661);function a(t,e){if(!t.isEmpty())switch(t.getGeometryType()){case n.G.enumPolygon:return o(t);case n.G.enumPolyline:return l(t.getImpl());case n.G.enumLine:case n.G.enumBezier:case n.G.enumEllipticArc:return function(t){const e=t.calculateLength2D();return 0===e?t.getStartXY():t.calculateWeightedCentroid2D().mul(1/e)}(t);case n.G.enumMultiPoint:return function(t){const e=new s.K(0),r=new s.K(0),n=t.getImpl(),a=n.getAttributeStreamRef(0),i=n.getPointCount(),o=new s.P;for(let t=0;t<i;t++)a.queryPoint2D(2*t,o),e.add(o.x),r.add(o.y);const u=new s.P;return u.setCoords(e.getResult(),r.getResult()),u.divThis(i)}(t);case n.G.enumEnvelope:return t.getCenterXY();case n.G.enumPoint:return t.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(t,e){return o(t,e)}function o(t,e=-1){const r=new s.K(0),n=new s.K(0),a=t.getImpl();let i;const o=a.hasNonLinearSegments();let l;const f=a.getXY(0);if(-1===e){if(l=a.calculateArea2D(),0===l)return h(t);o&&(i=a.querySegmentIterator());for(let t=0,e=a.getPathCount();t<e;t++)u(f,a,t,r,n),o&&c(f,i,r,n)}else{if(l=a.calculateRingArea2D(e),0===l)return h(t,e);o&&(i=a.querySegmentIterator(),i.resetToPath(e)),u(f,a,e,r,n),o&&c(f,i,r,n)}const m=new s.P,g=new s.P;return m.setCoords(r.getResult(),n.getResult()),g.assign(m.mul(1/l).add(f)),g}function u(t,e,r,n,a){const i=e.getPathStart(r),o=e.getPathEnd(r);if(o-i<3)return;const u=e.getAttributeStreamRef(0),c=u.readPoint2D(2*i),h=u.readPoint2D(2*(i+1));h.subThis(c);const l=new s.K(0),f=e.hasNonLinearSegments(),m=1/3,g=new s.P;for(let t=i+2;t<o;t++){u.queryPoint2D(2*t,g),g.subThis(c);const e=.5*g.crossProduct(h);f&&l.add(e);const r=m*e;n.add((h.x+g.x)*r),a.add((h.y+g.y)*r),h.setCoordsPoint2D(g)}const x=f?l.getResult():e.calculateRingArea2D(r),d=c.sub(t).mul(x);n.add(d.x),a.add(d.y)}function c(t,e,r,s){let a;for(e.nextPath()||(0,n.d)("centroid");null!==(a=e.nextCurve());){const e=a.calculateWeightedAreaCentroid2D(t);r.add(e.x),s.add(e.y)}}function h(t,e=-1){return l(t.getImpl(),e)}function l(t,e=-1){const r=-1===e?t.calculateLength2D():t.calculatePathLength2D(e);if(0===r)return function(t,e=-1){if(-1!==e)return t.getXY(t.getPathStart(e));const r=new s.K(0),n=new s.K(0);for(let e=0;e<t.getPathCount();++e){const s=t.getXY(t.getPathStart(e));r.add(s.x),n.add(s.y)}return s.P.construct(r.getResult(),n.getResult()).mul(1/t.getPathCount())}(t,e);const n=new s.K(0),a=new s.K(0),i=t.querySegmentIterator();for(-1!==e&&i.resetToPath(e);i.nextPath();){const r=i.getPathIndex(),s=t.getXY(t.getPathStart(r));for(;i.hasNextSegment();){const t=i.nextSegment(),e=t.calculateLength2D();if(0===e)continue;const r=t.calculateWeightedCentroid2D().sub(s.mul(e));n.add(r.x),a.add(r.y)}const o=s.mul(t.calculatePathLength2D(r));if(n.add(o.x),a.add(o.y),-1!==e)break}const o=new s.P;return o.setCoords(n.getResult(),a.getResult()),o.mul(1/r)}},61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},48265(t,e,r){r.d(e,{c:()=>u,e:()=>i});var n=r(15546),s=r(78125);const a=new class{getOperatorType(){return 10205}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e){return(0,n.c)(t)}};function i(t){const e=a.execute((0,s.fromGeometry)(t),null);return(0,s.toPoint)(e,(0,s.getSpatialReference)(t))}const o=a.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:n,fromValues:function(t,e,r,n,s,a,i,o,u,c,h,l,f,m,g,x){return[t,e,r,n,s,a,i,o,u,c,h,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>a,qK:()=>h});var n=r(34275);const s=16;function a(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let r=l;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>P,MY:()=>I,NO:()=>C,Nh:()=>w,V2:()=>_,_s:()=>O,e6:()=>N,gh:()=>E,tr:()=>F,uX:()=>d});var n=r(5482),s=r(69397),a=r(16930),i=(r(70328),r(19419)),o=r(60408),u=r(21325),c=r(513),h=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:a,segmentCountBezier:i}=this,o=_(t,e,r,n,s,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(c.subarray(0,e),0),o.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=V(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=V(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],a=e[r++];return{b:[this.end,[t,n],[s,a]]}}const n=e[r++],s=e[r++],a=e[r++],i=e[r++],o=e[r++],u=e[r++];r++,r++;const c=e[r++],h=e[r++];if(!Boolean(4&n)&&1===a)return{c:[this.end,[c,h]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[o,u],l,f,i,s,a]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,n.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:a,vertexM:o}=t,u=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[a,o,c,h]=s;e={xmin:a,ymin:o,xmax:c,ymax:h,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,a,i;t=n=1/0,a=i=-1/0;for(let e=0;e<r;++e){const r=s[2*e],o=s[2*e+1];t=Math.min(t,r),a=Math.max(a,r),n=Math.min(n,o),i=Math.max(i,o)}e={xmin:t,ymin:n,xmax:a,ymax:i,spatialReference:u}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function P(t){let e,r,n;if((0,o.fT)(t)){n="point";const{x:s,y:a,z:i,m:o}=t,u=[s,a];null!=i&&u.push(i),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,b(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=_(n,e,n.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],a&&(c[g]=t[2]),i&&(h[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!a&&!i){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&b(t[0],t.at(-1))&&--e,a||i)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*g]=e,u[2*g+1]=n,++g}}return d[p]=g,s}function y(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const a=g-1;(0,f.wY)(n)?(y(10),++s.segmentCountArc,v=O(r,n,s,a,v),r=n.a[0]):(0,f.DA)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,a,v),r=n.a[0]):(0,f.aO)(n)?(y(10),++s.segmentCountArc,v=N(r,n,s,a,v),r=n.c[0]):(0,f.n1)(n)?(y(4),++s.segmentCountBezier,v=F(0,n,s,a,v),r=n.b[0]):r=n}x&&b(e,r)||l(r)}return s.partOffsets[p]=g,s}function E(t){const e=V(t),{vertexCount:r,partCount:n,hasZ:s,hasM:a}=t,i=R(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:i}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:i,hasZ:s,hasM:a}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],a=new Array;for(;o<n;)a.push(e(o++));u&&a.length>0&&a.push(a[0]),r.push(a)}return u?{rings:r,hasZ:s,hasM:a,spatialReference:i}:{paths:r,hasZ:s,hasM:a,spatialReference:i}}const c=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:a,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:a,spatialReference:i}}function w(t,{lengths:e,coords:r,hasZ:n,hasM:s},a){const i=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?i:0);n??=!1,s??=!1;const c=_(t,u,i,n,s,!1,0,0);if(c.spatialReference=a??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=r[e++],c.vertexXY[2*t+1]=r[e++],n&&(c.vertexZ[t]=r[e++]),s&&(c.vertexM[t]=r[e++]);return c}const h=2+Number(n)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],a=e+t-Number(o);c.partOffsets[++f]=a;for(let t=e;t<a;++t)c.vertexXY[2*t]=r[l++],c.vertexXY[2*t+1]=r[l++],n&&(c.vertexZ[t]=r[l++]),s&&(c.vertexM[t]=r[l++]);o&&(l+=h)}return c}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const c=new x.A([],[],o,u);a=Math.max(a,1);const h="polygon"===t;let l=0;for(let t=0;t<a;++t){const a=i?.[t+1]??e,f=c.coords.length;for(let t=l;t<a;++t)c.coords.push(r[2*t],r[2*t+1]),o&&c.coords.push(n[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(r[2*t],r[2*t+1]),o&&c.coords.push(n[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=a}return"point"===t&&(c.lengths.length=0),c}function I(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const a=s.isCustomWkid()?0:s.getOldID();if(a<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:a,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof a.A?t.toJSON():t}function V({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function b(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,n,s,a,i,o){i??=0,o??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o});let c=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),a&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function O(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){r[a]=4,n[a]=i;const[o,[u,c],h,l,f,m,x]=e.a;let d=4;l||(d|=1),h||(d|=2);const p=(0,g.SW)(t,e),[y,v]=(0,g.Uk)(p,.5);return s[i++]=d,s[i++]=m,s[i++]=x,s[i++]=f,s[i++]=u,s[i++]=c,s[i++]=p.u2-p.u1,s[i++]=p.u1,s[i++]=y,s[i++]=v,i}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){r[a]=4,n[a]=i;const o=(0,m.i)(t,e);return Y(o,4,...(0,c.mq)(o,.5),s,i)}function N(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){return r[a]=4,n[a]=i,Y((0,h.pM)(t,e),0,...e.c[1],s,i)}function Y(t,e,r,n,s,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[a++]=e,s[a++]=h,s[a++]=1,s[a++]=0,s[a++]=i,s[a++]=o,s[a++]=c-u,s[a++]=u,s[a++]=r,s[a++]=n,a}function F(t,{b:[e,[r,n],[s,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},c,h){return i[c]=2,o[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=a,h}const G=1.61803,T=-1},17077(t,e,r){r.d(e,{execute:()=>n.e});var n=r(48265);r(78125)},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>d,fromGeometry:()=>x,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>w,toGeometry:()=>E,toMultipoint:()=>A,toPoint:()=>I,toPolygon:()=>S,toPolyline:()=>R});var n=r(83661),s=(r(79187),r(55537)),a=r(95213),i=r(88885),o=r(5443),u=r(48526),c=r(86738),h=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return p(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(m)){const e=new a.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function p(t){if(!t.getCacheValue(m)){const e=new i.M,r=new a.P,n=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,a=n.length;t<a;t++){const a=n[t];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),s&&r.setM(a[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:n,rings:s}=t,a=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:n,rings:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,a=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,a=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,a)}return t.getCacheValue(m)}function P(t){return(0,f.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return w(t,e);case s.G.enumMultiPoint:return A(t,e);case s.G.enumPolyline:return R(t,e);case s.G.enumPolygon:return S(t,e)}return null}function w(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),n=r.hasM(),s=r.hasZ(),i=[],o=new a.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];s&&r.push(o.getZ()),n&&r.push(o.getM()),i.push(r)}const c=new u.A({hasM:n,hasZ:s,points:i,spatialReference:e});return c.setCacheValue(m,t),c}function I(t,e){if(t instanceof n.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(r.m=t.getM()),s.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function S(t,e){if(t.isEmpty())return null;const r=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function R(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},4197(t,e,r){r.d(e,{Vj:()=>c,cj:()=>u,jh:()=>a,l5:()=>o,xm:()=>i});var n=r(34275),s=r(9093);function a(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function c(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>m,Ie:()=>p,Jt:()=>y,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>P,vI:()=>x,vY:()=>o,v_:()=>E,vt:()=>a,w1:()=>c});var n=r(5443),s=(r(19419),r(4197));function a(t=E){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,r,n,s,i,o=a()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=i,o}function o(t,e=a()){return function(t,e,r,n=a()){return d(n,P),function(t,e,r=0,n=e.length/3){let s=t[0],a=t[1],i=t[2],o=t[3],u=t[4],c=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),a=Math.min(a,e[r+3*t+1]),i=Math.min(i,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),c=Math.max(c,e[r+3*t+2]);t[0]=s,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=c}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,a,i,o,u]=t;return e[0]=r,e[1]=n,e[2]=a,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=o,e[8]=a,e[9]=r,e[10]=o,e[11]=u,e[12]=i,e[13]=n,e[14]=a,e[15]=i,e[16]=n,e[17]=u,e[18]=i,e[19]=o,e[20]=a,e[21]=i,e[22]=o,e[23]=u,e}function c(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,P):a(P)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],E=[0,0,0,0,0,0];a()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const a=r-t,i=n-e;return new s([5],[t,e,a,0,0,i,-a,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],a=this.coords[n*e+1];for(let i=1;i<r;i+=1){const r=n*(e+i),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-s)*(u+a),s=o,a=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,a=this.coords.slice(0,n*r);return t?(t.set(a),new s(e,t)):new s(e,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[609,2990,6061,7992,9397],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});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(t,e,r,n,s,i,o,a,h,u,c,l,f,m,g,x){return[t,e,r,n,s,i,o,a,h,u,c,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,s):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>E,MY:()=>O,NO:()=>C,Nh:()=>_,V2:()=>F,_s:()=>R,e6:()=>Y,gh:()=>I,tr:()=>N,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=F(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=b(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[u,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,h],l,f,o,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,a,u,c]=s;e={xmin:i,ymin:a,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,o;t=n=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=s[2*e],a=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,a.fT)(t)){n="point";const{x:s,y:i,z:o,m:a}=t,h=[s,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,a.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=F(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=s;function l(t){h[2*g]=t[0],h[2*g+1]=t[1],i&&(u[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*g]=t,h[2*g+1]=e,++g;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];h[2*g]=e,h[2*g+1]=n,++g}}return d[p]=g,s}function y(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*T;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=g-1;(0,f.wY)(n)?(y(10),++s.segmentCountArc,v=R(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(y(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(y(4),++s.segmentCountBezier,v=N(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||l(r)}return s.partOffsets[p]=g,s}function I(t){const e=b(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;a<n;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const u=F(t,h,o,n,s,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],n&&(u.vertexZ[t]=r[e++]),s&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(n)+Number(s);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(a);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],n&&(u.vertexZ[t]=r[l++]),s&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new x.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function O(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class P{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function b({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,r)=>t===e[r])}function F(t,e,r,n,s,i,o,a){o??=0,a??=0;const h=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,n&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),s&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[h,u],c,l,f,m,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[y,v]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=f,s[o++]=h,s[o++]=u,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=v,o}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.i)(t,e);return V(a,4,...(0,u.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,V((0,c.pM)(t,e),0,...e.c[1],s,o)}function V(t,e,r,n,s,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=u-h,s[i++]=h,s[i++]=r,s[i++]=n,i}function N(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=n,h[c++]=s,h[c++]=i,c}const T=1.61803,X=-1},51508(t,e,r){r.r(e),r.d(e,{execute:()=>o});var n=r(15756),s=r(83299);const i=new n.j;function o(t,e){const r=(0,s.fromGeometry)(t);return i.execute(r.getGeometry(),(0,s.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}},4197(t,e,r){r.d(e,{Vj:()=>u,cj:()=>h,jh:()=>i,l5:()=>a,xm:()=>o});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function h(t){return[...t]}function u(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>m,Ie:()=>p,Jt:()=>y,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>h,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>I,vt:()=>i,w1:()=>u});var n=r(5443),s=(r(19419),r(4197));function i(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,r,n=i()){return d(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],h=t[4],u=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),h=Math.max(h,e[r+3*t+1]),u=Math.max(u,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=h,t[5]=u}(n,t,e,r),n}(t,0,t.length/3,e)}function h(t,e=(0,s.jh)(24)){const[r,n,i,o,a,h]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=h,e[6]=r,e[7]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=h,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=h,e}function u(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,o=n-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<r;o+=1){const r=n*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-s)*(h+i),s=a,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9535],{5482(t,e,n){function r(t,e,n,r){var i,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(e,n,o):i(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},91869(t,e,n){function r(t,e){for(const n of t.values())if(e(n))return!0;return!1}function i(t,e,n){const r=t.get(e);if(void 0!==r)return r;const i=n();return t.set(e,i),i}function s(t){const e=new Map;return n=>(e.has(n)||e.set(n,t(n)),e.get(n))}n.d(e,{Bj:()=>s,Bs:()=>r,tE:()=>i})},4341(t,e,n){n.d(e,{I:()=>i});var r=n(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,s,o,c,a){return[t,e,n,r,i,s,o,c,a]}n.d(e,{fA:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,c,a,u,h,d,l,f,m,_){return[t,e,n,r,i,s,o,c,a,u,h,d,l,f,m,_]}},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},77690(t,e,n){n.d(e,{B8:()=>c,Ge:()=>f,I0:()=>l,KC:()=>a,a4:()=>u,hZ:()=>s,hs:()=>d,lw:()=>h,mg:()=>o,z0:()=>i});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function s(t,e,n,r,i,s,o,c,a,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=c,t[7]=a,t[8]=u,t}function o(t,e){if(t===e){const n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function c(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],c=e[5],a=e[6],u=e[7],h=e[8],d=h*o-c*u,l=-h*s+c*a,f=u*s-o*a;let m=n*d+r*l+i*f;return m?(m=1/m,t[0]=d*m,t[1]=(-h*r+i*u)*m,t[2]=(c*r-i*o)*m,t[3]=l*m,t[4]=(h*n-i*a)*m,t[5]=(-c*n+i*s)*m,t[6]=f*m,t[7]=(-u*n+r*a)*m,t[8]=(o*n-r*s)*m,t):null}function a(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],c=e[5],a=e[6],u=e[7],h=e[8];return t[0]=o*h-c*u,t[1]=i*u-r*h,t[2]=r*c-i*o,t[3]=c*a-s*h,t[4]=n*h-i*a,t[5]=i*s-n*c,t[6]=s*u-o*a,t[7]=r*a-n*u,t[8]=n*o-r*s,t}function u(t){const e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],c=t[6],a=t[7],u=t[8];return e*(u*s-o*a)+n*(-u*i+o*c)+r*(a*i-s*c)}function h(t,e,n){const r=e[0],i=e[1],s=e[2],o=e[3],c=e[4],a=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1],m=n[2],_=n[3],p=n[4],g=n[5],b=n[6],v=n[7],M=n[8];return t[0]=l*r+f*o+m*u,t[1]=l*i+f*c+m*h,t[2]=l*s+f*a+m*d,t[3]=_*r+p*o+g*u,t[4]=_*i+p*c+g*h,t[5]=_*s+p*a+g*d,t[6]=b*r+v*o+M*u,t[7]=b*i+v*c+M*h,t[8]=b*s+v*a+M*d,t}function d(t,e,n){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=s*e[6],t[7]=s*e[7],t[8]=s*e[8],t}function l(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,c=r+r,a=i+i,u=n*o,h=r*o,d=r*c,l=i*o,f=i*c,m=i*a,_=s*o,p=s*c,g=s*a;return t[0]=1-d-m,t[3]=h-g,t[6]=l+p,t[1]=h+g,t[4]=1-u-m,t[7]=f-_,t[2]=l-p,t[5]=f+_,t[8]=1-u-d,t}function f(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],c=e[5],a=e[6],u=e[7],h=e[8],d=e[9],l=e[10],f=e[11],m=e[12],_=e[13],p=e[14],g=e[15],b=n*c-r*o,v=n*a-i*o,M=n*u-s*o,S=r*a-i*c,y=r*u-s*c,w=i*u-s*a,A=h*_-d*m,j=h*p-l*m,x=h*g-f*m,O=d*p-l*_,C=d*g-f*_,T=l*g-f*p;let E=b*T-v*C+M*O+S*x-y*j+w*A;return E?(E=1/E,t[0]=(c*T-a*C+u*O)*E,t[1]=(a*x-o*T-u*j)*E,t[2]=(o*C-c*x+u*A)*E,t[3]=(i*C-r*T-s*O)*E,t[4]=(n*T-i*x+s*j)*E,t[5]=(r*x-n*C-s*A)*E,t[6]=(_*w-p*y+g*S)*E,t[7]=(p*M-m*w-g*v)*E,t[8]=(m*y-_*M+g*b)*E,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const _=h,p=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:a,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:u,equals:function(t,e){const n=t[0],i=t[1],s=t[2],o=t[3],c=t[4],a=t[5],u=t[6],h=t[7],d=t[8],l=e[0],f=e[1],m=e[2],_=e[3],p=e[4],g=e[5],b=e[6],v=e[7],M=e[8],S=(0,r.FD)();return Math.abs(n-l)<=S*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-f)<=S*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(s-m)<=S*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(o-_)<=S*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(c-p)<=S*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(a-g)<=S*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(u-b)<=S*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-v)<=S*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(d-M)<=S*Math.max(1,Math.abs(d),Math.abs(M))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:l,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const e=(0,r.FD)(),n=t[0],i=t[1],s=t[2],o=t[3],c=t[4],a=t[5],u=t[6],h=t[7],d=t[8];return Math.abs(1-(n*n+o*o+u*u))<=e&&Math.abs(1-(i*i+c*c+h*h))<=e&&Math.abs(1-(s*s+a*a+d*d))<=e},mul:_,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:f,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],i=e[2],s=e[4],o=e[5],c=e[6],a=e[8],u=e[9],h=e[10],d=h*o-c*u,l=-h*s+c*a,f=u*s-o*a,m=n*d+r*l+i*f;if(!m)return null;const _=1/m;return t[0]=d*_,t[1]=(-h*r+i*u)*_,t[2]=(c*r-i*o)*_,t[3]=l*_,t[4]=(h*n-i*a)*_,t[5]=(-c*n+i*s)*_,t[6]=f*_,t[7]=(-u*n+r*a)*_,t[8]=(o*n-r*s)*_,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],i=e[1],s=e[2],o=e[3],c=e[4],a=e[5],u=e[6],h=e[7],d=e[8],l=Math.sin(n),f=Math.cos(n);return t[0]=f*r+l*o,t[1]=f*i+l*c,t[2]=f*s+l*a,t[3]=f*o-l*r,t[4]=f*c-l*i,t[5]=f*a-l*s,t[6]=u,t[7]=h,t[8]=d,t},scale:d,scaleByVec2:function(t,e,n){const r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:m,translate:function(t,e,n){const r=e[0],i=e[1],s=e[2],o=e[3],c=e[4],a=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=s,t[3]=o,t[4]=c,t[5]=a,t[6]=l*r+f*o+u,t[7]=l*i+f*c+h,t[8]=l*s+f*a+d,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},82919(t,e,n){n.d(e,{DV:()=>g,C:()=>_,vt:()=>f,Qy:()=>m,ui:()=>p,ST:()=>M,bU:()=>S,pw:()=>v,m7:()=>b,c8:()=>w});var r=n(4341),i=n(58083),s=n(35522),o=n(51850),c=n(78955),a=n(91829),u=n(71351);function h(t){return t?{ray:(0,u.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,u.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>h());var d=n(27921),l=n(32114);function f(t){return t?[(0,d.vt)(t[0]),(0,d.vt)(t[1]),(0,d.vt)(t[2]),(0,d.vt)(t[3]),(0,d.vt)(t[4]),(0,d.vt)(t[5])]:[(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)()]}function m(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function _(t,e){for(let n=0;n<A;n++)(0,d.C)(t[n],e[n]);return t}function p(t,e,n,r=C){const o=(0,i.lw)(l.Rc.get(),e,t);(0,i.B8)(o,o);for(let t=0;t<j;++t){const e=(0,c.Z0)(l.Km.get(),x[t],o);(0,s.hZ)(r[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}g(n,r)}function g(t,e){(0,d.Cr)(e[4],e[0],e[3],t[0]),(0,d.Cr)(e[1],e[5],e[6],t[1]),(0,d.Cr)(e[4],e[5],e[1],t[2]),(0,d.Cr)(e[3],e[2],e[6],t[3]),(0,d.Cr)(e[0],e[1],e[2],t[4]),(0,d.Cr)(e[5],e[4],e[7],t[5])}function b(t,e){for(let n=0;n<A;n++){const r=t[n];if(r[0]*e.center[0]+r[1]*e.center[1]+r[2]*e.center[2]+r[3]>=e.radius)return!1}return!0}function v(t,e){return y(t,function(t,e=h()){return(0,u.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,O.get()))}function M(t,e,n){return y(t,function(t,e,n=h()){const r=(0,s.Bw)(t.vector);return(0,u.fA)(t.origin,e,n.ray),n.c0=0,n.c1=r,n}(e,n,O.get()))}function S(t,e){for(let n=0;n<A;n++)if((0,d.mN)(t[n],e)>0)return!1;return!0}function y(t,e){for(let n=0;n<A;n++)if(!(0,d.$Q)(t[n],e))return!1;return!0}const w={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},A=6,j=8,x=[(0,a.fA)(-1,-1,-1,1),(0,a.fA)(1,-1,-1,1),(0,a.fA)(1,1,-1,1),(0,a.fA)(-1,1,-1,1),(0,a.fA)(-1,-1,1,1),(0,a.fA)(1,-1,1,1),(0,a.fA)(1,1,1,1),(0,a.fA)(-1,1,1,1)],O=new r.I(h),C=m()},11964(t,e,n){n.d(e,{Cr:()=>h,LV:()=>u,_I:()=>d,vt:()=>a});var r=n(34727),i=n(4341),s=n(35522),o=n(51850),c=n(32114);function a(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function u(t,e){const n=l.get();return n.origin=t,n.vector=e,n}function h(t,e,n=a()){return(0,s.C)(n.origin,t),(0,s.Re)(n.vector,e,t),n}function d(t,e,n){return function(t,e,n,i,o){const{vector:a,origin:u}=t,h=(0,s.Re)(c.rq.get(),e,u),d=(0,s.Om)(a,h)/(0,s.m3)(a);return(0,s.hs)(o,a,(0,r.qE)(d,0,1)),(0,s.WQ)(o,o,t.origin)}(t,e,0,0,n)}(0,o.vt)(),(0,o.vt)();const l=new i.I(()=>a())},27921(t,e,n){n.d(e,{$Q:()=>M,C:()=>c,Cr:()=>h,O_:()=>u,Qj:()=>a,T7:()=>b,Tj:()=>v,lU:()=>d,mN:()=>S,vE:()=>y,vt:()=>o});var r=n(34727),i=n(35522),s=n(51850);function o(t=w){return[t[0],t[1],t[2],t[3]]}function c(t,e){return function(t,e,n,r,i=o()){return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}(e[0],e[1],e[2],e[3],t)}function a(t){return t}function u(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function h(t,e,n,r=o()){const i=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],a=t[0]-e[0],u=t[1]-e[1],h=t[2]-e[2],d=s*h-c*u,l=c*a-i*h,f=i*u-s*a,m=d*d+l*l+f*f,_=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=d*_,r[1]=l*_,r[2]=f*_,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function d(t,e,n,r=0,s=Math.floor(n*(1/3)),o=Math.floor(n*(2/3))){if(n<3)return!1;e(f,r);let c=s,a=!1;for(;c<n-1&&!a;)e(m,c),c++,a=!(0,i.t2)(f,m);if(!a)return!1;for(c=Math.max(c,o),a=!1;c<n&&!a;)e(_,c),c++,(0,i.Re)(p,f,m),(0,i.S8)(p,p),(0,i.Re)(g,m,_),(0,i.S8)(g,g),a=!(0,i.t2)(f,_)&&!(0,i.t2)(m,_)&&Math.abs((0,i.Om)(p,g))<l;return a?(h(f,m,_,t),!0):(0!==r||1!==s||2!==o)&&d(t,e,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const l=.99619469809,f=(0,s.vt)(),m=(0,s.vt)(),_=(0,s.vt)(),p=(0,s.vt)(),g=(0,s.vt)();function b(t,e,n){return function(t){return 0===t||1===t}(y(t,e.origin,e.vector,0,n))}function v(t,e){return S(t,e)>=0}function M(t,e){const n=(0,i.Om)(t,e.ray.direction),r=-S(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const s=r/n;return n>0?s<e.c1&&(e.c1=s):s>e.c0&&(e.c0=s),e.c0<=e.c1}function S(t,e){return(0,i.Om)(t,e)+t[3]}function y(t,e,n,s,o){const c=(0,i.Om)(t,n),a=S(t,e);if(0===c)return a>=0?2:3;let u=-a/c;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?a>=0?2:3:((0,i.WQ)(o,e,(0,i.hs)(o,n,u)),a>=0?0:1)}const w=[0,0,1,0]},71351(t,e,n){n.d(e,{C:()=>h,Cr:()=>d,LV:()=>u,fA:()=>l,oC:()=>f,vt:()=>c}),n(4576);var r=n(4341),i=(n(77690),n(29242)),s=n(35522),o=n(51850);function c(t){return t?a((0,o.o8)(t.origin),(0,o.o8)(t.direction)):a((0,o.vt)(),(0,o.vt)())}function a(t,e){return{origin:t,direction:e}}function u(t,e){const n=m.get();return n.origin=t,n.direction=e,n}function h(t,e=c()){return l(t.origin,t.direction,e)}function d(t,e,n=c()){return(0,s.C)(n.origin,t),(0,s.Re)(n.direction,e,t),n}function l(t,e,n=c()){return(0,s.C)(n.origin,t),(0,s.C)(n.direction,e),n}function f(t,e,n){const r=(0,s.Om)(t.direction,(0,s.Re)(n,e,t.origin));return(0,s.WQ)(n,t.origin,(0,s.hs)(n,t.direction,r)),n}n(32114);const m=new r.I(()=>c());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},94008(t,e,n){n.d(e,{iy:()=>f}),n(44208),n(53966);var r=n(34727),i=n(34304),s=n(58083),o=n(35522),c=n(51850),a=n(91829),u=n(34275);var h=n(71351),d=n(44280),l=n(32114);class f{constructor(t=0,e=0,n=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,c.fA)(t,e,n):function(t){return e=t,(0,u.vZ)(e)&&e.length>=3||function(t){return((0,u.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,c.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,c.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.C)(this.center,t)}exactEquals(t){return(0,o.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new f(this.center,this.radius)}toVec4(){return(0,a.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.hG)(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,m))return!1;let{t0:n,t1:r}=m;if((n<0||r<n&&r>0)&&(n=r),n<0)return!1;if(e){const{origin:r,direction:i}=t;e[0]=r[0]+i[0]*n,e[1]=r[1]+i[1]*n,e[2]=r[2]+i[2]*n}return!0}intersectLine(t,e){const n=(0,h.Cr)(t,e);if(!this._intersect(n,m))return[];const{origin:r,direction:s}=n,{t0:a,t1:u}=m,d=t=>{const e=(0,c.vt)();return(0,o.Ln)(e,r,s,t),this.projectPoint(e,e)};return Math.abs(a-u)<(0,i.FD)()?[d(a)]:[d(a),d(u)]}_intersect(t,e){const{origin:n,direction:r}=t,i=_;i[0]=n[0]-this.center[0],i[1]=n[1]-this.center[1],i[2]=n[2]-this.center[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const o=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),c=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(c<0)return!1;const a=Math.sqrt(c);return e.t0=(-o-a)/(2*s),e.t1=(-o+a)/(2*s),!0}projectPoint(t,e){const n=(0,o.Re)(l.rq.get(),t,this.center),r=(0,o.hs)(l.rq.get(),n,this.radius/(0,o.Bw)(n));return(0,o.WQ)(e,r,this.center)}closestPointOnSilhouette(t,e){const n=l.rq.get(),r=l.Rc.get();(0,o.$A)(n,t.origin,t.direction),(0,o.$A)(e,n,t.origin),(0,o.hs)(e,e,1/(0,o.Bw)(e)*this.radius);const i=this._angleToSilhouette(t.origin),c=(0,d.g7)(t.origin,e);return(0,s.$0)(r,c+i,n),(0,o.Z0)(e,e,r),e}frustumCoverage(t,e,n){const r=this.radius,i=r*r,s=t+.5*Math.PI,o=e*e+i-2*Math.cos(s)*e*r,c=Math.sqrt(o),a=o-i;if(a<=0)return.5;const u=Math.sqrt(a),h=Math.acos(u/c)-Math.asin(r/(c/Math.sin(s)));return Math.min(1,(h+.5*n)/n)}_angleToSilhouette(t){const e=(0,o.Re)(l.rq.get(),t,this.center),n=(0,o.Bw)(e),i=this.radius,s=i+Math.abs(i-n);return(0,r.XM)(i/s)}union(t){const e=(0,o.Io)(this._center,t.center),n=this.radius,r=t.radius;return e+r<n?this:e+n<r?(this.copyFrom(t),this):((0,o.Cc)(this._center,this._center,t.center,(e+r-n)/(2*e)),this.radius=(e+n+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}}new f;const m={t0:0,t1:0},_=(0,c.vt)();(0,c.vt)(),(0,c.vt)()},44280(t,e,n){n.d(e,{g7:()=>c,gr:()=>o});var r=n(34727),i=n(35522),s=n(51850);function o(t,e){return(0,i.Om)(t,e)/(0,i.Bw)(t)}function c(t,e){const n=(0,i.Om)(t,e)/((0,i.Bw)(t)*(0,i.Bw)(e));return-(0,r.XM)(n)}(0,s.vt)(),(0,s.vt)()},32114(t,e,n){n.d(e,{Rc:()=>f,J8:()=>m,rq:()=>d,Km:()=>l}),n(44208);var r=n(26390),i=n(29242),s=n(9093),o=n(82534),c=n(48163),a=n(51850),u=n(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.vt)}static createVec3f64(){return new h(a.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const d=h.createVec3f64(),l=h.createVec4f64(),f=(h.createMat3f64(),h.createMat4f64()),m=h.createQuatf64()},32728(t,e,n){n.d(e,{YH:()=>o,nu:()=>c,wp:()=>s}),n(34727);var r=n(35522),i=n(51850);function s(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),i=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),s=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,i,s),t}function o(t,e,n){n=n||t;const i=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-i*e[0],t[1]-i*e[1],t[2]-i*e[2]),(0,r.S8)(n,n)}function c(t,e,n,s=(0,i.vt)()){const o=(0,r.Bw)(t),c=(0,r.Bw)(e),h=(0,r.Om)(t,e)/(o*c);if(h<.9999999999999999){const i=Math.acos(h),d=((1-n)*o+n*c)/Math.sin(i),l=d/o*Math.sin((1-n)*i),f=d/c*Math.sin(n*i);return(0,r.hs)(a,t,l),(0,r.hs)(u,e,f),(0,r.WQ)(s,a,u)}return(0,r.Cc)(s,t,e,n)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const a=(0,i.vt)(),u=(0,i.vt)()},70491(t,e,n){n.r(e),n.d(e,{default:()=>U});var r=n(5482),i=n(17676),s=n(24326),o=n(91429),c=n(35522),a=n(51850),u=n(11964),h=n(94008),d=n(93687),l=n(15142),f=n(82919),m=n(71351),_=n(620);class p{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new g,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),R[0]=null,D.prune(),Q.prune()}add(t){const e=Array.from(t);this._grow(e);const n=g.acquire();for(const t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));g.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=g.acquire();for(const r of t){const t=e??this.objectToBoundingSphere(r);T(t.radius)?(n.init(this._root),M(r,t,n)):this._degenerateObjects.delete(r)}g.release(n),this._shrink()}update(t,e){if(!T(e.radius)&&this._isDegenerate(t))return;const n=function(t){return R[0]=t,R}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const r=(0,m.LV)(t,e);b(this._root,t=>{if(!function(t,e){return j(e.bounds.center,2*-e.halfSize,N),j(e.bounds.center,2*e.halfSize,q),(0,_.O_)(t.origin,t.direction,N,q)}(r,t))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){const i=(0,m.LV)(t,e);b(this._root,t=>{if(!function(t,e,n){return j(e.bounds.center,2*-e.halfSize,N),j(e.bounds.center,2*e.halfSize,q),n.applyToMinMax(N,q),(0,_.O_)(t.origin,t.direction,N,q)}(i,t,r))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),!0})}forEach(t){b(this._root,e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0}),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,r=()=>!0,i=1/0){let s=1/0,o=1/0,a=null;const u=O(t,e),h=c=>{if(--i,!r(c))return;const u=this.objectToBoundingSphere(c);if(!(0,f.m7)(n,u))return;const h=C(t,e,u.center),d=h-u.radius,l=h+u.radius;d<s&&(s=d,o=l,a=c)};return v(this._root,r=>{if(i<=0||!(0,f.m7)(n,r.bounds))return!1;if((0,c.hs)(I,u,r.halfSize),(0,c.WQ)(I,I,r.bounds.center),C(t,e,I)>o)return!1;const s=r.node;return s.terminals.forAll(t=>h(t)),null!==s.residents&&s.residents.forAll(t=>h(t)),!0},t,e),a}forEachInDepthRange(t,e,n,r,i,s,o){let a=-1/0,u=1/0;const h={setRange:t=>{1===n?(a=Math.max(a,t.near),u=Math.min(u,t.far)):(a=Math.max(a,-t.far),u=Math.min(u,-t.near))}};h.setRange(r);const d=C(e,n,t),l=O(e,n),m=O(e,-n),_=t=>{if(!o(t))return;const r=this.objectToBoundingSphere(t),c=C(e,n,r.center)-d,l=c-r.radius,m=c+r.radius;l>u||m<a||!(0,f.m7)(s,r)||i(t,h)};v(this._root,t=>{if(!(0,f.m7)(s,t.bounds))return!1;if((0,c.hs)(I,l,t.halfSize),(0,c.WQ)(I,I,t.bounds.center),C(e,n,I)-d>u)return!1;if((0,c.hs)(I,m,t.halfSize),(0,c.WQ)(I,I,t.bounds.center),C(e,n,I)-d<a)return!1;const r=t.node;return r.terminals.forAll(t=>_(t)),null!==r.residents&&r.residents.forAll(t=>_(t)),!0},e,n)}forEachNode(t){b(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachNeighbor(t,e){const n=e.radius,r=e.center,i=e=>{const i=this.objectToBoundingSphere(e),s=i.radius,o=n+s;return!((0,c.hG)(i.center,r)-o*o<=0)||t(e)};let s=!0;const o=t=>{s&&(s=i(t))};b(this._root,t=>{const e=t.bounds.radius,i=n+e;if((0,c.hG)(t.bounds.center,r)-i*i>0)return!1;const a=t.node;return a.terminals.forAll(o),s&&null!==a.residents&&a.residents.forAll(o),s}),s&&this.forEachDegenerateObject(o)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){const r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const r=g.acquire().init(t);this._add(e.at(n),r),g.release(r)}}_grow(t){if(x(t,t=>this.objectToBoundingSphere(t),V),T(V.radius)&&!this._fitsInsideTree(V))if(y(this._root.node))this._root.bounds.copyFrom(V),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(V);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(V,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,e){L.center=e.bounds.center,L.radius=e.halfSize,x([t,L],t=>t,F);const n=g.acquire().init(this._root);this._root.initFrom(null,F,F.radius),this._root.increaseHalfSize(1.25),b(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return b(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t.radius,n=t.center;let r=-1/0;const i=this._root.bounds.center,s=this._root.halfSize;for(let t=0;t<3;t++){const o=i[t]-s-(n[t]-e),c=n[t]+e-(i[t]+s),a=Math.max(0,Math.ceil(o/(2*s))),u=Math.max(0,Math.ceil(c/(2*s)))+1,h=2**Math.ceil(Math.log(a+u)*Math.LOG2E);r=Math.max(r,h),k[t].min=a,k[t].max=u}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const o=(r-(e+n))/2;e+=Math.ceil(o),n+=Math.floor(o);const c=i[t]-s-e*s*2;B.center[t]=c+(n+e)*s}const o=r*s;return B.radius=o*z,g.acquire().initFrom(null,B,o,0)}_growRootAsSubNode(t){const e=this._root.node;V.center=this._root.bounds.center,V.radius=this._root.halfSize,this._root.init(t),t.advanceTo(V,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!T(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}_nodeToJSON(t){const e=t.children.map(t=>t?this._nodeToJSON(t):null),n=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:e,residents:n,terminals:r}}}class g{constructor(){this.bounds=new h.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=null!=t?t:g.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*z}advance(t){let e=this.node.children[t];e||(e=g.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=E[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const e=this.bounds.center;return(e[0]<t.center[0]?1:0)+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new d.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function b(t,e){let n=g.acquire().init(t);const r=[n];for(;0!==r.length;){if(n=r.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&r.push(g.acquire().init(n).advance(t));g.release(n)}}function v(t,e,n,r=1){let i=g.acquire().init(t);const s=[i];for(function(t,e,n){if(!Q.length)for(let t=0;t<8;++t)Q.push({index:0,distance:0});for(let n=0;n<8;++n){const r=E[n];Q.data[n].index=n,Q.data[n].distance=C(t,e,r)}Q.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=Q.data[t].index}(n,r,W);0!==s.length;){if(i=s.pop(),e(i)&&!i.isLeaf())for(let t=7;t>=0;--t){const e=W[t];i.node.children[e]&&s.push(g.acquire().init(i).advance(e))}g.release(i)}}function M(t,e,n){D.clear();const r=n.advanceTo(e,(t,e)=>{D.push(t.node),D.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=D.length-2;t>=0&&S(D.data[t],D.data[t+1]);t-=2);}function S(t,e){return e>=0&&(t.children[e]=null),!!y(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function y(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function w(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function A(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function j(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function x(t,e,n){N[0]=1/0,N[1]=1/0,N[2]=1/0,q[0]=-1/0,q[1]=-1/0,q[2]=-1/0;for(const n of t){const t=e(n);T(t.radius)&&(w(N,t),A(q,t))}(0,c.Cc)(n.center,N,q,.5),n.radius=Math.max(q[0]-N[0],q[1]-N[1],q[2]-N[2])/2}function O(t,e){let n,r=1/0;for(let i=0;i<8;++i){const s=C(t,e,P[i]);s<r&&(r=s,n=P[i])}return n}function C(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function T(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const E=[(0,a.fA)(-1,-1,-1),(0,a.fA)(1,-1,-1),(0,a.fA)(-1,1,-1),(0,a.fA)(1,1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(1,-1,1),(0,a.fA)(-1,1,1),(0,a.fA)(1,1,1)],P=[(0,a.fA)(-1,-1,-1),(0,a.fA)(-1,-1,1),(0,a.fA)(-1,1,-1),(0,a.fA)(-1,1,1),(0,a.fA)(1,-1,-1),(0,a.fA)(1,-1,1),(0,a.fA)(1,1,-1),(0,a.fA)(1,1,1)],z=Math.sqrt(3),R=[null],B=new h.iy,I=(0,a.vt)(),N=(0,a.vt)(),q=(0,a.vt)(),D=new l.A,V=new h.iy,L=new h.iy,F=new h.iy,k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],Q=new l.A,W=[0,0,0,0,0,0,0,0];var H=n(7380);function K(t,e,n){const r=new h.iy;return(0,c.hs)(r.center,t,.5),(0,c.Ln)(r.center,r.center,e,.5),r.radius=(0,c.Io)(r.center,t),(0,c.WQ)(r.center,r.center,n),r}class Z{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class G extends Z{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class $ extends Z{constructor(t,e,n,r,i){super(t,e,n),this.start=r,this.end=i,this.type="edge"}}let J=class{constructor(){this._idToComponent=new Map,this._components=new p(t=>t.bounds),this._edges=new p(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,a.vt)(),this._tmpP2=(0,a.vt)(),this._tmpP3=(0,a.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,i.Te)(e);const n=t;n.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;const r={components:n},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(const t of i.components)this._setFetchEdgeLocations(t)}async add(t){const e=new X(t.id,new h.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=H.HY.createView(t.locations),r=new Array(n.count),i=(0,a.vt)(),s=(0,a.vt)();for(let o=0;o<n.count;o++){n.position0.getVec(o,i),n.position1.getVec(o,s);const c=K(i,s,t.origin),a=new tt(e,o,c);r[o]=a}this._edges.add(r);const{objectIds:o,origin:c}=t;e.info={locations:n,objectIds:o,origin:c}}_addCandidates(t,e,n){const{info:r}=e.component,{origin:i,objectIds:s}=r,o=r.locations,a=o.position0.getVec(e.index,this._tmpP1),u=o.position1.getVec(e.index,this._tmpP2);(0,c.WQ)(a,a,i),(0,c.WQ)(u,u,i);const h=s[o.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,a,u,n),Y(t,h,a,n),Y(t,h,u,n)}_addEdgeCandidate(t,e,n,r,i){if(!t.returnEdge)return;const s=t.mbs.center,o=(0,u.Cr)(n,r,this._tmpLineSegment),h=(0,u._I)(o,s,this._tmpP3);t.mbs.contains(h)&&i.push(new $(e,(0,a.o8)(h),(0,c.Io)(s,h),(0,a.o8)(n),(0,a.o8)(r)))}};J=(0,r.Cg)([(0,o.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],J);const U=J;function Y(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new G(e,(0,a.o8)(n),(0,c.Io)(t.mbs.center,n)))}class X{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,s.c)()}}class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[708,9397],{9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,i,u,c,l,a,h,f,d,m,g){return[t,e,n,r,o,s,i,u,c,l,a,h,f,d,m,g]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>i,RS:()=>o,Ul:()=>d,i5:()=>f,lM:()=>s,qK:()=>a});var r=n(34275);const o=16;function s(t){if(!t)return 0;let e=a;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=h;for(let r=0;r<e;r++)n+=u(t[r]);return n}(t);let e=a;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n]));return e}function u(t,e=!0){switch(typeof t){case"object":return e?i(t):a;case"string":return function(t){return 32+t.length}(t);case"number":return o;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?l(e,o):0:0),0)}function l(t,e){return h+t.length*e}const a=32,h=16,f=145,d=64},4197(t,e,n){n.d(e,{Vj:()=>l,cj:()=>c,jh:()=>s,l5:()=>u,xm:()=>i});var r=n(34275),o=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function c(t){return[...t]}function l(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>N,DC:()=>h,Ej:()=>d,Ie:()=>I,Jt:()=>p,Ne:()=>m,RF:()=>a,aI:()=>M,fA:()=>i,gE:()=>c,hZ:()=>y,iT:()=>f,is:()=>b,qv:()=>T,vI:()=>g,vY:()=>u,v_:()=>w,vt:()=>s,w1:()=>l});var r=n(5443),o=(n(19419),n(4197));function s(t=w){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,o,i,u=s()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=i,u}function u(t,e=s()){return function(t,e,n,r=s()){return y(r,T),function(t,e,n=0,r=e.length/3){let o=t[0],s=t[1],i=t[2],u=t[3],c=t[4],l=t[5];for(let t=0;t<r;t++)o=Math.min(o,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),c=Math.max(c,e[n+3*t+1]),l=Math.max(l,e[n+3*t+2]);t[0]=o,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=l}(r,t,e,n),r}(t,0,t.length/3,e)}function c(t,e=(0,o.jh)(24)){const[n,r,s,i,u,c]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=c,e[6]=n,e[7]=u,e[8]=s,e[9]=n,e[10]=u,e[11]=c,e[12]=i,e[13]=r,e[14]=s,e[15]=i,e[16]=r,e[17]=c,e[18]=i,e[19]=u,e[20]=s,e[21]=i,e[22]=u,e[23]=c,e}function l(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function a(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function d(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function m(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function I(t){return t?y(t,T):s(T)}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function N(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function b(t){return 6===t.length}function M(t,e,n){if(null==t||null==e)return t===e;if(!b(t)||!b(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];s()},43334(t,e,n){n.d(e,{N3:()=>u,Om:()=>i});var r=n(69397),o=n(27647),s=n(92722);class i{constructor(t=null,e={},n,r,o=0){this.geometry=t,this.attributes=e,this.centroid=n,this.objectId=r,this.displayId=o}static fromJSON(t){const e=t.geometry?s.A.fromJSON(t.geometry):null,n=t.centroid?s.A.fromJSON(t.centroid):null,r=t.objectId;return new i(e,t.attributes,n,r)}weakClone(){const t=new i(this.geometry,this.attributes,this.centroid,this.objectId);return t.displayId=this.displayId,t}clone(){const t=this.geometry?.clone(),e=new i(t,{...this.attributes},this.centroid?.clone(),this.objectId);return e.displayId=this.displayId,e}ensureCentroid(t){return this.centroid??=(0,o.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function u(t){return!!t.geometry?.coords?.length}},58512(t,e,n){n.d(e,{A:()=>r});class r{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new r;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,n){n.d(e,{A:()=>o});var r=n(69397);class o{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new o(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const s=n-t,i=r-e;return new o([5],[t,e,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*e],s=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),u=this.coords[n],c=this.coords[n+1];t+=-.5*(u-o)*(c+s),o=u,s=c}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(e+o);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:o}=this;for(const t of n){for(let n=1;n<t;n++){const t=o*(r+n);e[t]+=e[t-o],e[t+1]+=e[t+1-o]}r+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return t?(t.set(s),new o(e,t)):new o(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new o(this.lengths,n,!1,!1)}}},27647(t,e,n){n.d(e,{Q:()=>s});var r=n(92722);function o(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t)return null;if(!t?.lengths.length)return null;const{lengths:e,coords:n,stride:o,hasZ:s,hasM:c}=t,l=new r.A([],[],s,!1),a=l.coords,h=[],f=s?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const t of e){const e=i(f,n,d,t,s,c);e&&h.push(e),d+=t*o}if(h.sort((t,e)=>{let n=t[2]-e[2];return 0===n&&s&&(n=t[4]-e[4]),n}),h.length){let t=6*h[0][2];a[0]=h[0][0]/t,a[1]=h[0][1]/t,s&&(t=6*h[0][4],a[2]=0!==t?h[0][3]/t:0),(a[0]<f[0]||a[0]>f[1]||a[1]<f[2]||a[1]>f[3]||s&&(a[2]<f[4]||a[2]>f[5]))&&(a.length=0)}if(!a.length){const r=t.lengths[0]?u(n,0,e[0],s,c):null;if(!r)return null;a[0]=r[0],a[1]=r[1],s&&(a[2]=r[2]??0)}return l}function i(t,e,n,r,s,i){const u=o(s,i);let c=n,l=n+u,a=0,h=0,f=0,d=0,m=0;for(let n=0,o=r-1;n<o;n++,c+=u,l+=u){const n=e[c],r=e[c+1],o=e[c+2],i=e[l],u=e[l+1],g=e[l+2];let y=n*u-i*r;d+=y,a+=(n+i)*y,h+=(r+u)*y,s&&(y=n*g-i*o,f+=(o+g)*y,m+=y),n<t[0]&&(t[0]=n),n>t[1]&&(t[1]=n),r<t[2]&&(t[2]=r),r>t[3]&&(t[3]=r),s&&(o<t[4]&&(t[4]=o),o>t[5]&&(t[5]=o))}if(d>0&&(d*=-1),m>0&&(m*=-1),!d)return null;const g=[a,h,.5*d];return s&&(g[3]=f,g[4]=.5*m),g}function u(t,e,n,r,s){const i=o(r,s);let u=e,f=e+i,d=0,m=0,g=0,y=0;for(let e=0,o=n-1;e<o;e++,u+=i,f+=i){const e=t[u],n=t[u+1],o=t[u+2],s=t[f],i=t[f+1],I=t[f+2],p=r?l(e,n,o,s,i,I):c(e,n,s,i);if(p)if(d+=p,r){const t=h(e,n,o,s,i,I);m+=p*t[0],g+=p*t[1],y+=p*t[2]}else{const t=a(e,n,s,i);m+=p*t[0],g+=p*t[1]}}return d>0?r?[m/d,g/d,y/d]:[m/d,g/d]:n>0?r?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function c(t,e,n,r){const o=n-t,s=r-e;return Math.sqrt(o*o+s*s)}function l(t,e,n,r,o,s){const i=r-t,u=o-e,c=s-n;return Math.sqrt(i*i+u*u+c*c)}function a(t,e,n,r){return[t+.5*(n-t),e+.5*(r-e)]}function h(t,e,n,r,o,s){return[t+.5*(r-t),e+.5*(o-e),n+.5*(s-n)]}},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function o(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>o})},90708(t,e,n){n.d(e,{Ap:()=>G,B2:()=>y,DF:()=>T,Di:()=>O,E2:()=>q,IE:()=>g,Nl:()=>W,PR:()=>F,Rk:()=>D,Ux:()=>Y,Ye:()=>x,ZF:()=>j,aQ:()=>J,hK:()=>$,jH:()=>R,jQ:()=>U,kz:()=>L,oN:()=>_,q3:()=>k,qN:()=>w,zv:()=>V});var r=n(49186),o=n(53966),s=n(97768),i=n(70328),u=n(19419),c=n(60408),l=n(43334),a=n(58512),h=n(92722),f=n(54339);const d=()=>o.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function g({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function y({scale:t,translate:e},n){return Math.round((e[1]-n)/t[1])}function I({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function p({scale:t,translate:e},n){return Math.round((n-e[1])/t[1])}function N({scale:t,translate:e},n,r){return n*t[r]+e[r]}function b(t,e,n){return e&&(t.hasZ=!0),n&&(t.hasM=!0),t}function M(t,e,n,r){if(e&&r&&t!==n)return(e,n,r,o)=>{r[o++]=e[n++],r[o++]=e[n++],t?n++:r[o++]=0,r[o++]=e[n++]??0};const o=2+(n?1:0)+(r?1:0),s=o-((!t&&n?1:0)+(!e&&r?1:0));return(t,e,n,r)=>{for(let i=0;i<o;++i)n[r++]=i<s?t[e++]??0:0}}function T(t,e,n){if(!t)return null;const{coords:r,hasZ:o,hasM:s}=t,[i,u]=r,c=o?r[2]:0,l=s?r[2+(o?1:0)]:0;return{x:i,y:u,z:e?c:void 0,m:n?l:void 0}}function w(t,e=(0,c.Pv)(t),n=(0,c.W0)(t)){const{x:r,y:o,z:s,m:i}=t,u=[r,o];return e&&u.push(s??0),n&&u.push(i??0),new h.A([],u,e,n)}function P(t,e,n){if(null==t)return null;const{coords:r,stride:o,hasZ:s,hasM:i}=t,u=M(s,i,e,n),c=[];for(let t=0;t<r.length;t+=o){const e=[];u(r,t,e,0),c.push(e)}return b({points:c},e,n)}function F(t,e=(0,c.Pv)(t),n=(0,c.W0)(t)){const{points:r,hasZ:o,hasM:s}=t,i=new h.A([r.length],[],e,n),{coords:u,stride:l}=i;let a=0;const f=M(o??!1,s??!1,e,n);for(const t of r)f(t,0,u,a),a+=l;return i}function A(t,e,n){if(!t)return null;const{coords:r,lengths:o,stride:s,hasZ:i,hasM:u}=t;let c=0;const l=M(i,u,e,n),a=[];for(const t of o){const e=[];for(let n=0;n<t;n++){const t=[];l(r,c,t,0),c+=s,e.push(t)}a.push(e)}return b({paths:a},e,n)}function G(t,e=(0,c.Pv)(t),n=(0,c.W0)(t)){const{paths:r,hasZ:o,hasM:s}=t,i=M(o??!1,s??!1,e,n),u=new h.A([],[],e,n),{lengths:l,coords:a,stride:f}=u;let d=0;for(const t of r){for(const e of t)i(e,0,a,d),d+=f;l.push(t.length)}return u}function v(t,e,n){if(!t)return null;const{coords:r,lengths:o,stride:s,hasZ:i,hasM:u}=t;let c=0;const l=M(i,u,e,n),a=[];for(const t of o){const e=[];for(let n=0;n<t;n++){const t=[];l(r,c,t,0),c+=s,e.push(t)}a.push(e)}return b({rings:a},e,n)}function x(t,e=(0,c.Pv)(t),n=(0,c.W0)(t)){const{rings:r,hasZ:o,hasM:s}=t,i=new h.A([],[],e,n),{lengths:u,coords:l,stride:a}=i;let f=0;const d=M(o??!1,s??!1,e,n);for(const t of r){for(const e of t)d(e,0,l,f),f+=a;u.push(t.length)}return i}const E=[],Z=[];function q(t,e,n,r,o){E[0]=t;const[s]=O(Z,E,e,n,r,o);return K(E),K(Z),s}function O(t,e,n,o,s,i){if(K(t),!n){for(const n of e){const e=(0,f.W)(n,i);t.push(new l.Om(null,n.attributes,null,e))}return t}switch(n){case"esriGeometryPoint":return function(t,e,n,r,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,a=(0,c.Pv)(e),h=(0,c.W0)(e);t.push(new l.Om(e?w(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryMultipoint":return function(t,e,n,r,o){for(const s of e){const{geometry:e,attributes:i}=s,u=(0,c.Pv)(e),a=(0,c.W0)(e);t.push(new l.Om(e?F(e,n&&u,r&&a):null,i,null,(0,f.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryPolyline":return function(t,e,n,r,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,a=(0,c.Pv)(e),h=(0,c.W0)(e);t.push(new l.Om(e?G(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,n,r,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,a=(0,c.Pv)(e),h=(0,c.W0)(e);t.push(new l.Om(e?x(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(s,o)))}return t}(t,e,o,s,i);default:d().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${n}'`)),K(t)}return t}function _(t,e,n,r){Z[0]=t,S(E,Z,e,n,r);const o=E[0];return K(E),K(Z),o}function Y(t,e=(0,c.Pv)(t),n=(0,c.W0)(t)){return null==t?null:(0,c.fT)(t)?w(t,e,n):(0,c.Bi)(t)?x(t,e,n):(0,c.Rg)(t)?G(t,e,n):(0,c.U9)(t)?F(t,e,n):void d().error("convertFromGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function V(t,e,n,o){if(null==t)return null;const s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return T(s,n,o);case"esriGeometryMultipoint":return P(s,n,o);case"esriGeometryPolyline":return A(s,n,o);case"esriGeometryPolygon":return v(s,n,o);default:return d().error("convertToGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function S(t,e,n,o,s){if(K(t),null==n)return function(t,e){for(const n of e)t.push({attributes:n.attributes});return t}(t,e);switch(n){case"esriGeometryPoint":return function(t,e,n,r){for(const{geometry:o,attributes:s}of e)t.push({attributes:s,geometry:T(o,n,r)});return t}(t,e,o,s);case"esriGeometryMultipoint":return function(t,e,n,r){for(const{geometry:o,attributes:s}of e)t.push({geometry:o&&P(o,n,r),attributes:s});return t}(t,e,o,s);case"esriGeometryPolyline":return function(t,e,n,r){for(const{geometry:o,attributes:s}of e)t.push({geometry:o&&A(o,n,r),attributes:s});return t}(t,e,o,s);case"esriGeometryPolygon":return function(t,e,n,r){for(const{geometry:o,attributes:s,centroid:i}of e){const e=v(o,n,r),u=T(i,!1,!1);t.push(i?{geometry:e,attributes:s,centroid:u}:{geometry:e,attributes:s})}return t}(t,e,o,s);default:d().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${n}'`))}return t}function j(t){const{spatialReference:e,transform:n,fields:r,hasM:o,hasZ:s,features:i,geometryType:u,exceededTransferLimit:c,queryGeometry:l,queryGeometryType:a}=t,h={features:S([],i,u,s,o),fields:r,geometryType:u,spatialReference:e,queryGeometry:V(l,a,s,o)};return n&&(h.transform=n),c&&(h.exceededTransferLimit=c),o&&(h.hasM=o),s&&(h.hasZ=s),h}function k(t,e){const n=new a.A,{hasM:r,hasZ:o,features:s,spatialReference:i,geometryType:u,exceededTransferLimit:c,transform:l,fields:h,globalIdFieldName:f}=t;return h&&(n.fields=h),n.geometryType=u??null,n.spatialReference=i??null,s&&O(n.features,s,u,o,r,e),c&&(n.exceededTransferLimit=c),r&&(n.hasM=r),o&&(n.hasZ=o),l&&(n.transform=l),f&&(n.globalIdFieldName=f),n}function R(t,e){const{geometryType:n,features:r}=e;if(!t)return e;for(let e=0;e<r.length;e++){const o=r[e],s=o.weakClone();s.geometry=W(o.geometry,n,t),s.centroid=W(o.centroid,"esriGeometryPoint",t),r[e]=s}return e.transform=t,e}function W(t,e,n,r,o){if(null==t)return null;if(!t?.coords.length)return null;const s=m[e],{coords:i,lengths:u,stride:c,hasZ:l,hasM:a}=t;r??=l,o??=a;const f=new h.A([],[],r,o),d=f.stride,I=M(l,a,r,o);let p=0;const N=[0,0,0,0].slice(d);function b(){I(i,p,N,0),p+=c,N[0]=g(n,N[0]),N[1]=y(n,N[1])}if(t.isPoint)return b(),f.coords.push(...N),f;let T=0;for(const t of u){if(t<s)continue;let e=1;b(),f.coords.push(...N);let[n,r]=N;for(let o=1;o<t;o++){b();const[t,o]=N;n===t&&r===o||(N[0]-=n,N[1]-=r,f.coords.push(...N),n=t,r=o,e++)}e>=s?(f.lengths.push(e),T=f.coords.length):K(f.coords,T)}return K(f.coords,T),f.coords.length?f:null}function L(t,e,n,r=t.hasZ,o=t.hasM){if(!t.coords.length)return null;const s=m[e],{coords:i,lengths:u,stride:c,hasZ:l,hasM:a}=t,f=new h.A([],[],r,o),d=f.stride,g=M(l,a,r,o);if(t.isPoint)return g(i,0,f.coords,0),f;let y=0;const I=n*n;for(const t of u){if(t<s){y+=t*c;continue}const e=f.coords.length/d,n=y,r=y+(t-1)*c;g(i,n,f.coords,f.coords.length),C(f.coords,i,c,I,g,n,r),g(i,r,f.coords,f.coords.length);const o=f.coords.length/d-e;o>=s?f.lengths.push(o):K(f.coords,e*d),y+=t*c}return f.coords.length?f:null}function z(t,e,n,r){const o=t[e],s=t[e+1],i=t[n],u=t[n+1],c=t[r],l=t[r+1];let a=i,h=u,f=c-a,d=l-h;if(0!==f||0!==d){const t=((o-a)*f+(s-h)*d)/(f*f+d*d);t>1?(a=c,h=l):t>0&&(a+=f*t,h+=d*t)}return f=o-a,d=s-h,f*f+d*d}function C(t,e,n,r,o,s,i){let u,c=r,l=0;for(let t=s+n;t<i;t+=n)u=z(e,t,s,i),u>c&&(l=t,c=u);c>r&&(l-s>n&&C(t,e,n,r,o,s,l),o(e,l,t,t.length),i-l>n&&C(t,e,n,r,o,l,i))}function U(t,e){if(!e?.coords?.length)return null;let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;const{coords:c,stride:l}=e;for(let t=0;t<c.length;t+=l){const e=c[t],i=c[t+1];n=Math.min(n,e),o=Math.max(o,e),r=Math.min(r,i),s=Math.max(s,i)}return(0,i.is)(t)?(0,i.BI)(t,n,r,o,s):(0,u.fA)(n,r,o,s,t),t}function J(t,e){const{coords:n,lengths:r,stride:o}=t;if(!n.length)return void(r.length=0);(0,s.Lw)(e);const{originPosition:i,scale:u,translate:c}=e,l=H;l.originPosition=i;const a=l.scale;a[0]=u[0]??1,a[1]=-(u[1]??1),a[2]=u[2]??1,a[3]=u[3]??1;const h=l.translate;if(h[0]=c[0]??0,h[1]=c[1]??0,h[2]=c[2]??0,h[3]=c[3]??0,!r.length){for(let t=0;t<o;++t)n[t]=N(l,n[t],t);return void(r.length=0)}let f=0;for(let t=0;t<r.length;t++){const e=r[t];r[t]=e;for(let t=0;t<o;++t)n[f+t]=N(l,n[f+t],t);let s=n[f],i=n[f+1];f+=o;for(let t=1;t<e;t++,f+=o){s+=n[f]*a[0],i+=n[f+1]*a[1],n[f]=s,n[f+1]=i;for(let t=2;t<o;++t)n[f+t]=N(l,n[f+t],t)}}}function Q(t,e,n,r){let o=0,s=t[r*e],i=t[r*(e+1)];for(let u=1;u<n;u++){const n=s+t[r*(e+u)],c=i+t[r*(e+u)+1],l=(n-s)*(c+i);s=n,i=c,o+=l}return.5*o}function D(t,e){const{coords:n,lengths:r}=t;let o=0,s=0;for(let t=0;t<r.length;t++){const i=r[t];s+=Q(n,o,i,e),o+=i}return Math.abs(s)}function B(t,e,n,r){return 0===t*r-n*e&&t*n+e*r>0}function $(t,e,n){const{stride:r}=t;if(t.isPoint){if(t.coords.length<2)return null;const[n,r]=t.coords,o=I(e,n),s=p(e,r);return new h.A([],[o,s])}const o=new h.A([],[0,0]),s=m[n],i="esriGeometryPolygon"===n||"esriGeometryPolyline"===n;let u=0,c=0;for(let n=0;n<t.lengths.length;n++){const l=t.lengths[n],a=c;let h=I(e,t.coords[r*u]),f=p(e,t.coords[r*u+1]);o.coords[c++]=h,o.coords[c++]=f;let d=0,m=0,g=1;for(let n=1;n<l;n++){const s=I(e,t.coords[r*(n+u)]),l=p(e,t.coords[r*(n+u)+1]);if(s!==h||l!==f){const t=s-h,e=l-f;i&&B(d,m,t,e)?(o.coords[c-2]+=t,o.coords[c-1]+=e,h+=t,f+=e):(o.coords[c++]=s,o.coords[c++]=l,h=s,f=l,d=t,m=e,g+=1)}}g<s?c=a:o.lengths.push(g),u+=l}return 0===o.lengths.length?null:o}function K(t,e=0){t.length!==e&&(t.length=e)}const H={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5666,6061,6491,7992,9397],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});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(t,e,r,n,s,i,o,a,u,h,c,l,f,m,g,x){return[t,e,r,n,s,i,o,a,u,h,c,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=l;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,r){r.d(e,{JR:()=>w,ME:()=>E,MY:()=>G,NO:()=>C,Nh:()=>_,V2:()=>O,_s:()=>Y,e6:()=>V,gh:()=>P,tr:()=>T,uX:()=>y});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),x=r(92722);class y{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=O(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],o=e[r++],a=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,u],l,f,o,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(r,new I(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,u=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new I(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,o;t=n=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=s[2*e],a=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,a.fT)(t)){n="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],e=1}else(0,a.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,b(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=O(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:y}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(y[p++]=g,0===t.length)continue;let e=t.length;if(x&&b(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*g]=e,u[2*g+1]=n,++g}}return y[p]=g,s}function d(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*Z;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=g-1;(0,f.wY)(n)?(d(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(d(10),++s.segmentCountArc,v=F(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(d(10),++s.segmentCountArc,v=V(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(d(4),++s.segmentCountBezier,v=T(0,n,s,i,v),r=n.b[0]):r=n}x&&b(e,r)||l(r)}return s.partOffsets[p]=g,s}function P(t){const e=S(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,o=A(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;a<n;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const h=O(t,u,o,n,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],n&&(h.vertexZ[t]=r[e++]),s&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(n)+Number(s);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(a);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],n&&(h.vertexZ[t]=r[l++]),s&&(h.vertexM[t]=r[l++]);a&&(l+=c)}return h}function w({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function G(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new y({...t.toFlatGeometry(),spatialReference:e})}class I{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function S({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function b(t,e){return t.every((t,r)=>t===e[r])}function O(t,e,r,n,s,i,o,a){o??=0,a??=0;const u=new y({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(N),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,h],c,l,f,m,x]=e.a;let y=4;l||(y|=1),c||(y|=2);const p=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(p,.5);return s[o++]=y,s[o++]=m,s[o++]=x,s[o++]=f,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=d,s[o++]=v,o}function F(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.i)(t,e);return R(a,4,...(0,h.mq)(a,.5),s,o)}function V(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,R((0,c.pM)(t,e),0,...e.c[1],s,o)}function R(t,e,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function T(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const Z=1.61803,N=-1},91577(t,e,r){r.d(e,{fz:()=>p,g7:()=>g,qT:()=>y,zo:()=>x});var n=r(76061),s=r(61691),i=r(55537),o=r(95213),a=r(88885),u=r(79187);class h extends s.G{constructor(t,e,r){super(),e||(0,i.a)(""),this.m_progressTracker=r,this.m_index=-1,this.m_bMerge=t,this.m_bDone=!1,this.m_inputGeometryCursor=e}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const t=c(this.m_inputGeometryCursor);return this.m_bDone=!0,t}return null}if(!this.m_bDone){const t=this.m_inputGeometryCursor.next();if(null!==t)return(0,i.p)(t),(0,i.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),l(t);this.m_bDone=!0}return null}}function c(t,e){const r=new a.C;let n;for(;n=t.next();)(0,i.p)(n),(0,i.c)(n),r.addGeometry(n);return r.getBoundingGeometry()}function l(t,e){if((0,i.c)(t),t.isEmpty())return t.createInstance();const r=t.getGeometryType();if((0,i.f)(r)){const e=t;if(e.isDegenerate(0)){const t=new o.P;return e.queryStart(t),t}if(e.getGeometryType()===i.G.enumLine){const r=new o.P,n=new a.a({vd:t.getDescription()});return e.queryStart(r),n.startPathPoint(r),e.queryEnd(r),n.lineToPoint(r),n}{const r=new a.a({vd:t.getDescription()});return r.addSegment(e,!0),l(r)}}if(r===i.G.enumEnvelope){const e=t,r=new u.Envelope2D;if(e.queryEnvelope(r),r.xmin===r.xmax&&r.ymin===r.ymax){const t=new o.P;return e.queryCornerByVal(0,t),t}if(r.xmin===r.xmax||r.ymin===r.ymax){const r=new o.P,n=new a.a({vd:t.getDescription()});return e.queryCornerByVal(0,r),n.startPathPoint(r),e.queryCornerByVal(1,r),n.lineToPoint(r),n}{const r=new a.P({vd:t.getDescription()});return r.addEnvelope(e,!1),r}}if(r===i.G.enumGeometryCollection)return c((0,a.g)(t,-1));if(f(t)){if(r===i.G.enumMultiPoint){const e=t,r=new o.P;return e.getPointByVal(0,r),r}return t}return(0,i.g)((0,i.i)(r)),(0,a.f)(t)}function f(t,e){if((0,i.c)(t),t.isEmpty())return!0;const r=t.getGeometryType();if(r===i.G.enumPoint)return!0;if(r===i.G.enumEnvelope){const e=t;return e.getXMin()!==e.getXMax()&&e.getYMin()!==e.getYMax()}if((0,i.f)(r)){const e=t;if(e.isDegenerate(0))return!1;if(r===i.G.enumLine)return!0;const n=new a.a;return n.addSegment(e,!0),f(n)}if(r===i.G.enumMultiPoint)return 1===t.getPointCount();if(r===i.G.enumPolyline){const e=t;return!e.hasNonLinearSegments()&&1===e.getPathCount()&&2===e.getPointCount()&&!e.getXY(0).equals(e.getXY(1))}if(r===i.G.enumGeometryCollection){const e=t;return 1===e.getGeometryCount()&&f(e.getGeometry(0))}const n=t;return!(1!==n.getPathCount()||n.getPointCount()<3)&&(0,a.i)(n,0)}const m=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,r){return new h(e,t,r)}execute(t,e){return l(t)}isConvex(t,e){if((0,i.c)(t),t.isEmpty())return!0;const r=t.getGeometryType();if(r===i.G.enumPoint)return!0;if(r===i.G.enumEnvelope){const e=t;return e.getXMin()!==e.getXMax()&&e.getYMin()!==e.getYMax()}if((0,i.f)(r)){const e=t;return!e.getStartXY().equals(e.getEndXY())}if(r===i.G.enumMultiPoint)return 1===t.getPointCount();if(r===i.G.enumPolyline){const e=t;return 1===e.getPathCount()&&2===e.getPointCount()&&!e.getXY(0).equals(e.getXY(1))}if(r===i.G.enumGeometryCollection){const r=t;return 1===r.getGeometryCount()&&this.isConvex(r.getGeometry(0),e)}const n=t;return!(1!==n.getPathCount()||n.getPointCount()<3)&&(0,a.i)(n,0)}constructOrientedMinimumBoundingBox(t,e,r,n,s){(0,a.e)(t,e,r,n,s)}};function g(t){return m.execute(t,null)}function x(t,e){const r=m.executeMany(new n.S(t),e,null);return Array.from(r)}function y(t){return m.isConvex(t,null)}function p(){return m.supportsCurves()}},55666(t,e,r){r.r(e),r.d(e,{execute:()=>i,executeMany:()=>o,isConvex:()=>a});var n=r(91577),s=r(83299);function i(t){const e=(0,s.fromGeometry)(t);return(0,s.toGeometry)((0,n.g7)(e.getGeometry()),e.getSpatialReference())}function o(t,e={}){const{merge:r=!1}=e,[i,o]=(0,s.fromGeometries)(t);return(0,n.zo)(i,r).map(t=>(0,s.toGeometry)(t,o))}function a(t){return(0,n.qT)((0,s.fromGeometryToGXGeometry)(t))}},4197(t,e,r){r.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>a,xm:()=>o});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function h(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>m,Ie:()=>p,Jt:()=>d,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>y,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>P,vt:()=>i,w1:()=>h});var n=r(5443),s=(r(19419),r(4197));function i(t=P){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,r,n=i()){return y(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],h=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),h=Math.max(h,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,i,o,a,u]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=u,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?y(t,E):i(E)}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,o=n-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<r;o+=1){const r=n*(e+o),a=this.coords[r],u=this.coords[r+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,1550,1666,5020,6061,6312,7992,8125,9169,9397],{59534(t,e,s){s.d(e,{B:()=>n,b:()=>i});var r=s(85935);function n(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=n(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,r]of e){const e=n(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,r)}this._enumMap=s}lookup(t){return this._enumMap.get(n(t))}get(t){const e=this.lookup(t);if(null==e)throw new r.D$(null,"InvalidParameter",null);return e}}},85935(t,e,s){s.d(e,{D$:()=>o,Nh:()=>l,O$:()=>h,mT:()=>u,ps:()=>f});var r=s(799);const n={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,r.HC)(n[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,r.HC)(n[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class h extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,h)}}function l(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const m={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,r.HC)(m[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}},71409(t,e,s){s.d(e,{A7:()=>m,L2:()=>u,SQ:()=>r,s9:()=>c,y6:()=>l,zD:()=>a});const r=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function n(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=n("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=n("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),h=n("area"),l=new Map([h(109401,1e4),h(109402,4046.8564224),h(109403,4046.872609874252),h(109404,1),h(109405,.09290304),h(109406,.09290341161327487),h(109407,.09290137299531805),h(109408,3.34450944),h(109409,3429904),h(109410,1.000027193184865),h(109411,404.6872609874253),h(109412,.04046872609874252),h(109413,2589998.470319522),h(109414,1e6),h(109415,.8361123569578626),h(109416,404.6783807676053),h(109417,.04046783807676053),h(109418,.8361244606523066),h(109419,.09290271785025629),h(109420,404.6842389557165),h(109421,.04046842389557164),h(109422,.83612589696064),h(109423,.0929028774400711),h(109424,404.6849341289498),h(109425,.04046849341289498),h(109426,.836125904805842),h(109427,.09290287831176021),h(109428,404.6849379260275),h(109429,.04046849379260275),h(109430,.09290354800069446),h(109431,.09290274144751023),h(109432,.09290207073852812),h(109433,.09290279616016),h(109434,.09290273520025),h(109435,.836124673027592),h(109436,.8361186366467529),h(109437,.8361251654414399),h(109438,.83612461680225),h(109439,2589988.110336),h(109440,.09290286332673177),h(109441,.09290349665192114),h(109442,.83612736),h(109443,.8361307045194736),h(109444,404.68564224),h(109445,.040468564224),h(109446,.836123702404),h(109447,.09290263360044447),h(109448,404.683871963536),h(109449,.0404683871963536),h(109450,.01),h(109451,1e-4),h(109452,1e-6),h(109453,64516e-8),h(109454,.0006451625806477421),h(109455,25.29285264),h(109456,25.29295381171408),h(109457,3434528.149504),h(109458,3434290.937856),h(109459,2.89612324),h(109460,25e8),h(109461,225e8),h(109462,.7168473118308245),h(109463,100),h(109464,1.244521604938271e-7),h(109465,1e-12),h(109466,1e-18)]),m=l.get(109404)},85549(t,e,s){s.d(e,{executeOffsetJson:()=>u,r:()=>c});var r=s(40547),n=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,n,a,o){e=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),l=h(c,(0,i.fromSpatialReference)(u),e,n,a,o);return(0,i.toGeometry)(l,u)}function u(t,e,s,n,i,o){e=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),l=c.getSpatialReference(),m=h(u,l,e,n,i,o);return(0,a.toGeometry)(m,l)}function h(t,e,s,r,i,a){const c=(0,n.g7)(t,e,s,o[r],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,n.g7)(c,e,-s,o[r],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,h=u/10;let l=a;if("round"===r&&(l+=h),"bevel"===r||"square"===r){const c=(0,n.g7)(t,e,s,o[r="miter"],i,a);if(!c.isEmpty())return c}if("miter"===r){const c=(0,n.g7)(t,e,s,o[r="round"],i,a);if(!c.isEmpty())return c}if("round"===r)for(;l<=u;l+=h){const a=(0,n.g7)(t,e,s,o[r],i,l);if(!a.isEmpty())return a}return null}},40547(t,e,s){s.d(e,{convert:()=>v,convertFromSpatialReferenceUnit:()=>_,convertToSpatialReferenceUnit:()=>P,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>y,toLengthUnit:()=>p});var r=s(59534),n=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",r=!1;for(let n=0;n<t.length;n++){const i=t[n];r?'"'===i?'"'===t[n+1]?(e+=`\\${i}`,n+=1):r=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(r=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=h(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const r=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:r}),a.length>10&&a.shift(),r}catch(t){return null}}function h(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=h(t);if(null!=e)return e}return null}var l=s(86211),m=s(22530);function f(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function d(t){const e=t.wkid;if(null!=e){const t=m.A.units[m.A[e]];if(null!=t)switch(t){case"Meter":return f("linear",9001);case"Foot":return f("linear",9002);case"Foot_US":return f("linear",9003);case"Foot_Clarke":return f("linear",9005);case"Yard_Clarke":return f("linear",9037);case"Link_Clarke":return f("linear",9039);case"Yard_Sears":return f("linear",9040);case"Foot_Sears":return f("linear",9041);case"Chain_Sears":return f("linear",9042);case"Chain_Benoit_1895_B":return f("linear",9062);case"Yard_Indian":return f("linear",9084);case"Yard_Indian_1937":return f("linear",9085);case"Foot_Gold_Coast":return f("linear",9094);case"Chain":return f("linear",9097);case"Chain_Sears_1922_Truncated":return f("linear",9301);case"50_Kilometers":return f("linear",109030);case"150_Kilometers":return f("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return l.yD.has(e)?f("angular",9105):f("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=f(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:-1,factor:t.factor}}}return null}function g(t){if("linear"!==t.type)return null;if(-1===t.wkid)return{type:"area",wkid:-1,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:f("area",e)}function y(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new n.D$(null,"InvalidParameter",null);switch((0,r.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function p(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new n.D$(null,"InvalidParameter",null);switch((0,r.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function x(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function _(t,e,s){if(null==t||null==e)return s;const r=d(t);if(null==r)throw new Error("Unknown spatial reference unit.");const n="area"===e.type&&"linear"===r.type?g(r):r;if(null==n)throw new Error(`Unknown spatial reference ${e.type} unit.`);return x(n,e,s)}function P(t,e,s){if(null==t||null==e)return s;const r=d(e);if(null==r)throw new Error("Unknown spatial reference unit.");const n="area"===t.type&&"linear"===r.type?g(r):r;if(null==n)throw new Error(`Unknown spatial reference ${t.type} unit.`);return x(t,n,s)}function v(t,e,s){return null==t||null==e?s:x(t,e,s)}},61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,s){s.d(e,{S:()=>n});var r=s(61691);class n extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,s){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}s.d(e,{o8:()=>n,vt:()=>r,zK:()=>i});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:n,create:r,fromValues:function(t,e,s,r,n,i,a,o,c,u,h,l,m,f,d,g){return[t,e,s,r,n,i,a,o,c,u,h,l,m,f,d,g]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,s){s.d(e,{Qf:()=>c,Qh:()=>a,RS:()=>n,Ul:()=>f,i5:()=>m,lM:()=>i,qK:()=>h});var r=s(34275);const n=16;function i(t){if(!t)return 0;let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let s=l;for(let r=0;r<e;r++)s+=o(t[r]);return s}(t);let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?u(e,n):0:0),0)}function u(t,e){return l+t.length*e}const h=32,l=16,m=145,f=64},87992(t,e,s){s.d(e,{JR:()=>E,ME:()=>M,MY:()=>w,NO:()=>v,Nh:()=>b,V2:()=>O,_s:()=>k,e6:()=>G,gh:()=>C,tr:()=>F,uX:()=>y});var r=s(5482),n=s(69397),i=s(16930),a=(s(70328),s(19419)),o=s(60408),c=s(21325),u=s(513),h=s(50954),l=s(79567),m=s(52006),f=s(49663),d=s(46068),g=s(92722);class y{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:c,segmentFlags:u,segmentIndices:h,segmentParams:l,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=r,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=c,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=m,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=O(t,e,s,r,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:c,vertexZ:u,vertexM:h}=this;if(o.vertexXY.set(c.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(r.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,c.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new x(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class x{constructor(t){this.geometry=t,this.index=-1,this._readVertex=I(t),this._segments=new _(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class _{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new P(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class P{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=I(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],r=e[s++],n=e[s++],i=e[s++];return{b:[this.end,[t,r],[n,i]]}}const r=e[s++],n=e[s++],i=e[s++],a=e[s++],o=e[s++],c=e[s++];s++,s++;const u=e[s++],h=e[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,h]]};const l=2&r?0:1,m=1&r?0:1;return{a:[this.end,[o,c],l,m,a,n,i]}}}function v(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,r.mS)(s,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:i,vertexM:o}=t,c=S(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new A(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,l.e)(n,t,s),t=(0,m.yP)(s)}const[i,o,u,h]=n;e={xmin:i,ymin:o,xmax:u,ymax:h,spatialReference:c}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=n[2*e],o=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:c}}if(i){let t=1/0,s=-1/0;for(const e of i)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}function M(t){let e,s,r;if((0,o.fT)(t)){r="point";const{x:n,y:i,z:a,m:o}=t,c=[n,i];null!=a&&c.push(a),null!=o&&c.push(o),s=[[c]],e=1}else(0,o.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,R(e[0],(0,m.yP)(e.at(-1)))&&--t),t),0));const n=O(r,e,r.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,m.Ed)(t)),{hasZ:i,hasM:a,vertexXY:c,vertexZ:u,vertexM:h}=n;function l(t){c[2*d]=t[0],c[2*d+1]=t[1],i&&(u[d]=t[2]),a&&(h[d]=t[f]),++d}n.spatialReference=t.spatialReference??void 0;const f=n.hasZ?3:2;let d=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])c[2*d]=t,c[2*d+1]=e,++d;return n}for(const t of s[0])l(t);return n}const g="polygon"===r,{partOffsets:y}=n;let p=0;if(!n.hasCurves()){for(const t of s){if(y[p++]=d,0===t.length)continue;let e=t.length;if(g&&R(t[0],t.at(-1))&&--e,i||a)for(let s=0;s<e;++s)l(t[s]);else for(let s=0;s<e;++s){const[e,r]=t[s];c[2*d]=e,c[2*d+1]=r,++d}}return y[p]=d,n}function x(t){const e=_+t;if(e<=(n.segmentParams?.length??0))return;let s=e*Z;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let _=0;for(const t of s){if(n.partOffsets[p++]=d,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];l(s);const i=d-1;(0,m.wY)(r)?(x(10),++n.segmentCountArc,_=k(s,r,n,i,_),s=r.a[0]):(0,m.DA)(r)?(x(10),++n.segmentCountArc,_=T(s,r,n,i,_),s=r.a[0]):(0,m.aO)(r)?(x(10),++n.segmentCountArc,_=G(s,r,n,i,_),s=r.c[0]):(0,m.n1)(r)?(x(4),++n.segmentCountBezier,_=F(0,r,n,i,_),s=r.b[0]):s=r}g&&R(e,s)||l(s)}return n.partOffsets[p]=d,n}function C(t){const e=I(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=S(t);if("point"===t.type){const[e,s]=t.vertexXY,r=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:s,z:r,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const c="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=t.partOffsets[n+1],i=new Array;for(;o<r;)i.push(e(o++));c&&i.length>0&&i.push(i[0]),s.push(i)}return c?{rings:s,hasZ:n,hasM:i,spatialReference:a}:{paths:s,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return c?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function b(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,c="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,n??=!1;const u=O(t,c,a,r,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<c;++t)u.vertexXY[2*t]=s[e++],u.vertexXY[2*t+1]=s[e++],r&&(u.vertexZ[t]=s[e++]),n&&(u.vertexM[t]=s[e++]);return u}const h=2+Number(r)+Number(n);let l=0,m=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[m],i=e+t-Number(o);u.partOffsets[++m]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[l++],u.vertexXY[2*t+1]=s[l++],r&&(u.vertexZ[t]=s[l++]),n&&(u.vertexM[t]=s[l++]);o&&(l+=h)}return u}function E({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:c}){const u=new g.A([],[],o,c);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,m=u.coords.length;for(let t=l;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),c&&u.coords.push(n[t]);if(h){const t=l;u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),c&&u.coords.push(n[t])}u.lengths.push((u.coords.length-m)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===s)&&(r=void 0);const n=t.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new y({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function I({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function R(t,e){return t.every((t,s)=>t===e[s])}function O(t,e,s,r,n,i,a,o){a??=0,o??=0;const c=new y({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),c.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=c.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(u);let l=0;return c.vertexXY=new Float64Array(h,l,2*e),l+=c.vertexXY.byteLength,r&&(c.vertexZ=new Float64Array(h,l,e),l+=c.vertexZ.byteLength),n&&(c.vertexM=new Float64Array(h,l,e),l+=c.vertexM.byteLength),i&&(c.segmentParams=new Float64Array(h,l,c.segmentParamCount),l+=c.segmentParams.byteLength,c.segmentIndices=new Int32Array(h,l,e),c.segmentIndices.fill(V),l+=c.segmentIndices.byteLength),c.isMultipart()&&(c.partOffsets=new Int32Array(h,l,s+1),l+=c.partOffsets.byteLength,c.partFlags=new Int8Array(h,l,s+1),l+=c.partFlags.byteLength,"polygon"===c.type&&c.partFlags.subarray(0,s).fill(1)),i&&(c.segmentFlags=new Int8Array(h,l,e),c.segmentFlags.fill(1),l+=c.segmentFlags.byteLength),c}function k(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const[o,[c,u],h,l,m,f,g]=e.a;let y=4;l||(y|=1),h||(y|=2);const p=(0,d.SW)(t,e),[x,_]=(0,d.Uk)(p,.5);return n[a++]=y,n[a++]=f,n[a++]=g,n[a++]=m,n[a++]=c,n[a++]=u,n[a++]=p.u2-p.u1,n[a++]=p.u1,n[a++]=x,n[a++]=_,a}function T(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,f.i)(t,e);return q(o,4,...(0,u.mq)(o,.5),n,a)}function G(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,q((0,h.pM)(t,e),0,...e.c[1],n,a)}function q(t,e,s,r,n,i){const{cx:a,cy:o,thetaStart:c,thetaEnd:u,radius:h}=t;return c>u||(e|=1),Math.abs(u-c)<=Math.PI||(e|=2),n[i++]=e,n[i++]=h,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-c,n[i++]=c,n[i++]=s,n[i++]=r,i}function F(t,{b:[e,[s,r],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:c},u,h){return a[u]=2,o[u]=h,c[h++]=s,c[h++]=r,c[h++]=n,c[h++]=i,h}const Z=1.61803,V=-1},66070(t,e,s){s.d(e,{g7:()=>p,zo:()=>x});var r=s(76061),n=s(61691),i=s(95213),a=s(55537),o=s(88885),c=s(83661);const u=1.4142135623730951,h=.017453292519943295,l=256,m=1024;class f{static construct(t,e,s){const r=new f;return r.x=t.x,r.y=t.y,r.m_next=-1,r.m_prev=-1,r.z=e,r.m=s,r.type=0,r}clone(){const t=new f;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new c.P(this.x,this.y)}}class d{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===a.G.enumLine)return this.offsetLine();if(t===a.G.enumEnvelope)return this.offsetEnvelope();if((0,a.f)(t)){const t=new o.a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===a.G.enumPolyline){const t=new o.a;return this.offsetMultiPath(t),t}if(t===a.G.enumPolygon){const t=new o.P;return this.offsetMultiPath(t),t}(0,a.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),r=new c.P;r.setSub(s,e),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),e.addThis(r),s.addThis(r);const n=t.clone();return n.setStartXY(e),n.setEndXY(s),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new o.P;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,r){r.x=t.x+e*Math.cos(s),r.y=t.y+e*Math.sin(s),r.type=t.type,r.z=t.z,r.m=t.m,r.m_next=-1,r.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,r=this.m_srcPts[0===e?s-1:e-1],n=this.m_srcPts[e],i=d.dotSign(r,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(d.dotSign(r,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new f;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],o=Math.atan2(r.y-a.y,r.x-a.x);if(d.buildPoint(r,this.m_distance,o-c.o,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+r.x),n.y=.5*(n.y+r.y),this.addPoint(n),d.buildPoint(r,this.m_distance,this.m_a1+c.o,n);const t=n.clone();t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),t.type|=l,this.addPoint(t),this.addPoint(n)}else d.buildPoint(r,this.m_distance,this.m_a1+c.o,n),n.type|=l,this.addPoint(n);this.addPointEx(t,e)}else{const t=new f;if(d.buildPoint(n,this.m_distance,this.m_a1+c.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),d.buildPoint(n,this.m_distance,this.m_a2-c.o,t);const e=t.clone();e.x=.5*(e.x+n.x),e.y=.5*(e.y+n.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else d.buildPoint(n,this.m_distance,this.m_a2-c.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new f,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let r=0,n=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],o=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],f=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let g,y,p=0;{const t=o.x-a.x,e=o.y-a.y,s=f.x-a.x,u=f.y-a.y;g=Math.atan2(e,t),y=Math.atan2(u,s),this.m_a1=g,this.m_a2=y,0===i&&(r=g,n=y),p=c.P.orientationRobust(a.asPoint2D(),o.asPoint2D(),f.asPoint2D())}const x=y;if(y<g&&(y+=c.p),!(Math.abs(Math.abs(g-y)-Math.PI)<1e-8))if(p*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){d.buildPoint(a,this.m_distance,g+c.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),d.buildPoint(a,this.m_distance,y-c.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(y-g),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));d.buildPoint(a,s,.5*(g+y),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let r=1,n=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<h&&(t=h),r=Math.trunc(Math.PI/t+1.5),r>1&&(n/=r)}r<=1&&(r=2,n/=2);let o=g+c.o;d.buildPoint(a,this.m_distance,o,t),0===i&&(t.type|=m),this.addPointEx(t,i);const u=this.m_distance/Math.cos(n/2);for(o+=n/2,d.buildPoint(a,u,o,t),t.type|=m,this.addPoint(t);--r>0;)o+=n,d.buildPoint(a,u,o,t),t.type|=m,this.addPoint(t);d.buildPoint(a,this.m_distance,y-c.o,t),t.type|=m,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let r=1,n=y-c.o-(g+c.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<h&&(t=h),r=Math.trunc(Math.abs(n)/t+1.5),r>1&&(n/=r)}const o=this.m_distance/Math.cos(.5*n);let u=g+c.o+.5*n;for(d.buildPoint(a,o,u,t),this.addPointEx(t,i);--r>0;)u+=n,d.buildPoint(a,o,u,t),this.addPoint(t);continue}if(2===this.m_joins){const e=o.x-a.x,s=o.y-a.y,r=f.x-a.x,n=f.y-a.y;let h=(e*r+s*n)/Math.sqrt(e*e+s*s)/Math.sqrt(r*r+n*n);if(h=Math.max(h,-1),h>1-1e-8){d.buildPoint(a,u*this.m_distance,y-.25*Math.PI,t),this.addPointEx(t,i),d.buildPoint(a,u*this.m_distance,y+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(h))),m=Math.abs(this.m_miterLimit*this.m_distance);if(l>m){const e=.5*(y-g),s=this.m_distance/Math.abs(Math.sin(e));d.buildPoint(a,s,.5*(g+y),t);const r=c.P.construct(t.x,t.y),n=c.P.construct(a.x,a.y),o=new c.P;o.setSub(r,n);const u=new c.P;u.setScaleAdd(m/o.length(),o,n);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),f=(l-m)*Math.abs(this.m_distance)/h;this.m_distance>0?o.rightPerpendicularThis():o.leftPerpendicularThis(),o.scale(f/o.length());const p=new c.P;p.setAdd(u,o);const x=new c.P;x.setSub(u,o),t.x=p.x,t.y=p.y,this.addPointEx(t,i),t.x=x.x,t.y=x.y,this.addPoint(t);continue}const p=.5*(y-g),x=this.m_distance/Math.abs(Math.sin(p));d.buildPoint(a,x,.5*(g+y),t),this.addPointEx(t,i);continue}{let e;if(y=x,this.m_distance>0?(y>g&&(y-=c.p),e=g-y<c.o):(y<g&&(y+=c.p),e=y-g<c.o),e){const e=this.m_distance*u;let s;s=e<0?g+.25*Math.PI:g+3*Math.PI*.25,d.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?y-.25*Math.PI:y-3*Math.PI*.25,d.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(y-g),s=this.m_distance/Math.abs(Math.sin(e));y<g&&(y+=c.p),d.buildPoint(a,s,(g+y)/2,t),this.addPointEx(t,i)}}}else d.buildPoint(a,this.m_distance,g+c.o,t),this.addPointEx(t,i),d.buildPoint(a,this.m_distance,y-c.o,t),this.addPoint(t)}}return this.m_a1=r,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,r,n=t;for(let i=1;i<=e-2;i++){n=this.m_offsetPts[n].m_next,s=n,r=t;for(let t=1;t<=i;t++){if(r=this.m_offsetPts[r].m_prev,0===(this.m_offsetPts[r].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(r,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],r=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,r,n,i))return-1;const a={pt:new f,bAtExistingPt:!1};if(((r.x-s.x)*(i.y-n.y)-(r.y-s.y)*(i.x-n.x))*this.m_distance<0&&this.findIntersection(s,r,n,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((r.x-s.x)*(r.x-s.x)+(r.y-s.y)*(r.y-s.y)),u=(r.x-s.x)/c,h=(r.y-s.y)/c,l=Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)),m=(i.x-n.x)/l,f=(i.y-n.y)/l;let d=!1;const g=a.pt.clone();g.x+=(u+m)*o,g.y+=(h+f)*o;let y=n,p=a.pt,x=this.m_offsetPts[t].m_prev;for(;p.y>g.y!=y.y>g.y&&g.x<(y.x-p.x)*(g.y-p.y)/(y.y-p.y)+p.x&&(d=!d),y=p,x=this.m_offsetPts[x].m_next,x!==e;)p=this.m_offsetPts[x];if(d)return-1;const _=this.m_offsetPts[t].m_prev;return a.pt.type=r.type,a.pt.m_next=e,a.pt.m_prev=_,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,r){return Math.max(t.x,e.x)>=Math.min(s.x,r.x)&&Math.max(s.x,r.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,r.y)&&Math.max(s.y,r.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,r,n){let i,a,o,c;return n.bAtExistingPt=!1,i=(e.y-t.y)*(r.x-s.x)-(e.x-t.x)*(r.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(r.y-s.y)*(e.x-t.x)-(r.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(r.x-s.x)-(t.x-s.x)*(r.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(n.pt.x=t.x+o*(e.x-t.x),n.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(n.pt.z=s.z+c*(r.z-s.z)),this.m_bUseM&&(n.pt.m=s.m+c*(r.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(n.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,o.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let r=-1;for(;s.nextPath();)r++,this.offsetPath(e,r,t)}offsetPath(t,e,s){let r=t.getPathStart(e),n=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(r);for(;n>r&&t.getXY(n-1).equals(e);)n--;if(n-r>=2){this.m_srcPtCount=n-r,this.m_srcPts.length=this.m_srcPtCount;for(let e=r;e<n;e++)this.progress(),this.m_srcPts[e-r]=f.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(r);for(;r<n-1&&t.getXY(r+1).equals(e);)r++;const s=t.getXY(n-1);for(;r<n-1&&t.getXY(n-2).equals(s);)n--;if(n-r>=2){this.m_srcPtCount=2*(n-r)-2,this.m_srcPts.length=this.m_srcPtCount;let s=f.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,r,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=r+1;e<n-1;e++,i++,a--)this.progress(),s=f.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=m,this.m_srcPts[a]=s.clone();if(s=f.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&m);s||(t=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const n=0!==(this.m_offsetPts[r].type&m);n?s||(e=r-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=r-1),s=n}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,r){const n=e.x-t.x,i=e.y-t.y,a=r.x-s.x,o=r.y-s.y,u=(0,c.t)(n,i,a,o);return(0,c.e)(u)}}class g extends n.G{constructor(t,e,s,r,n,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=r,this.m_miterLimit=n,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,a.c)(t),e=this.m_flattenError<=0?(0,i.e)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,r,n,i){if(null===t&&(0,a.a)(""),t.getDimension()<1&&(0,a.a)(""),n>0||(0,a.a)(""),(0,a.c)(t),0===e||t.isEmpty())return t;const o=new d(i);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=n,o.m_joins=s,o.m_miterLimit=r>1?r:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,r,n,i,a){return new g(t,e,s,r,n,i,a)}execute(t,e,s,r,n,i,a){return new g(null,e,s,r,n,i,a).offset(t)}};function p(t,e,s,r,n,i){return y.execute(t,e,s,r,n,i,null)}function x(t,e,s,n,i,a){const o=y.executeMany(new r.S(t),e,s,n,i,a,null);return Array.from(o)}},78125(t,e,s){s.r(e),s.d(e,{fromExtent:()=>y,fromGeometry:()=>g,fromMultipoint:()=>p,fromPoint:()=>x,fromPolygon:()=>_,fromPolyline:()=>P,fromPolylineUsingImportOperator:()=>v,fromSpatialReference:()=>M,getSpatialReference:()=>d,toExtent:()=>b,toGeometry:()=>C,toMultipoint:()=>E,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>S});var r=s(83661),n=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(5443),c=s(48526),u=s(86738),h=s(39829),l=s(82799),m=(s(90293),s(83299));const f="_gxVersion";function d(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function g(t){switch(t.type){case"point":return x(t);case"multipoint":return p(t);case"polyline":return P(t);case"polygon":return _(t);case"extent":return y(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function y(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function p(t){if(!t.getCacheValue(f)){const e=new a.M,s=new i.P,r=t.points,n=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),n&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function _(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:s,hasZ:r,rings:n}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:r,rings:n});t.setCacheValue(f,i)}return t.getCacheValue(f)}function P(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:s,hasZ:r,paths:n}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:r,paths:n});t.setCacheValue(f,i)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:s,hasZ:r,paths:n}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:s,hasZ:r,paths:n});t.setCacheValue(f,i)}return t.getCacheValue(f)}function M(t){return(0,m.fromSpatialReference)(t)}function C(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return b(t,e);case n.G.enumMultiPoint:return E(t,e);case n.G.enumPolyline:return S(t,e);case n.G.enumPolygon:return A(t,e)}return null}function b(t,e){if(t.isEmpty())return null;const s=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);s.mmin=e.vmin,s.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(f,t),s}function E(t,e){if(t.isEmpty())return null;const s=t.getDescription(),r=s.hasM(),n=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];n&&s.push(o.getZ()),r&&s.push(o.getM()),a.push(s)}const u=new c.A({hasM:r,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(f,t),u}function w(t,e){if(t instanceof r.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(s.m=t.getM()),n.hasZ()&&(s.z=t.getZ()),s.setCacheValue(f,t),s}function A(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(f,t),s}function S(t,e){if(t.isEmpty())return null;const s=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(f,t),s}},4197(t,e,s){s.d(e,{Vj:()=>u,cj:()=>c,jh:()=>i,l5:()=>o,xm:()=>a});var r=s(34275),n=s(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function o(t,e,s){return Array.isArray(t)?t.slice(e,e+s):t.subarray(e,e+s)}function c(t){return[...t]}function u(t){const e=(0,n.vt)();for(let s=0;s<16;++s)e[s]=t[s];return e}},70328(t,e,s){s.d(e,{BI:()=>_,DC:()=>l,Ej:()=>f,Ie:()=>p,Jt:()=>x,Ne:()=>d,RF:()=>h,aI:()=>v,fA:()=>a,gE:()=>c,hZ:()=>y,iT:()=>m,is:()=>P,qv:()=>M,vI:()=>g,vY:()=>o,v_:()=>C,vt:()=>i,w1:()=>u});var r=s(5443),n=(s(19419),s(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,s,r,n,a,o=i()){return o[0]=t,o[1]=e,o[2]=s,o[3]=r,o[4]=n,o[5]=a,o}function o(t,e=i()){return function(t,e,s,r=i()){return y(r,M),function(t,e,s=0,r=e.length/3){let n=t[0],i=t[1],a=t[2],o=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)n=Math.min(n,e[s+3*t]),i=Math.min(i,e[s+3*t+1]),a=Math.min(a,e[s+3*t+2]),o=Math.max(o,e[s+3*t]),c=Math.max(c,e[s+3*t+1]),u=Math.max(u,e[s+3*t+2]);t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=c,t[5]=u}(r,t,e,s),r}(t,0,t.length/3,e)}function c(t,e=(0,n.jh)(24)){const[s,r,i,a,o,c]=t;return e[0]=s,e[1]=r,e[2]=i,e[3]=s,e[4]=r,e[5]=c,e[6]=s,e[7]=o,e[8]=i,e[9]=s,e[10]=o,e[11]=c,e[12]=a,e[13]=r,e[14]=i,e[15]=a,e[16]=r,e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=c,e}function u(t,e){const s=isFinite(t[2])||isFinite(t[5]);return new r.A(s?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,s=t){return s[0]=e[0],s[1]=e[1],s[2]=e[2],s!==t&&(s[3]=t[3],s[4]=t[4],s[5]=t[5]),s}function g(t,e,s=t){return s[3]=e[0],s[4]=e[1],s[5]=e[2],s!==t&&(s[0]=t[0],s[1]=t[1],s[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?y(t,M):i(M)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function _(t,e,s,r,n){return t[0]=e,t[1]=s,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=n,t[5]=Number.POSITIVE_INFINITY,t}function P(t){return 6===t.length}function v(t,e,s){if(null==t||null==e)return t===e;if(!P(t)||!P(e))return!1;if(s){for(let r=0;r<t.length;r++)if(!s(t[r],e[r]))return!1}else for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i()},92722(t,e,s){s.d(e,{A:()=>n});var r=s(69397);class n{constructor(t=[],e=[],s=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=s,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:s,hasM:r}){return new n(t,e,s||!1,r||!1)}static fromRect([t,e,s,r]){const i=s-t,a=r-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const s of this.lengths){if(s<3)continue;const{stride:r}=this;let n=this.coords[r*e],i=this.coords[r*e+1];for(let a=1;a<s;a+=1){const s=r*(e+a),o=this.coords[s],c=this.coords[s+1];t+=-.5*(o-n)*(c+i),n=o,i=c}e+=s}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:s}=this;for(const r of this.lengths){for(let n=0;n<r;n++){const r=s*(e+n);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:s}=t;let r=0;const{stride:n}=this;for(const t of s){for(let s=1;s<t;s++){const t=n*(r+s);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}r+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:s,size:r}=this,i=this.coords.slice(0,r*s);return t?(t.set(i),new n(e,t)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const s=new Array(e*t);for(let e=0,r=0;e<s.length;e+=t)s[r++]=this.coords[e],s[r++]=this.coords[e+1];return new n(this.lengths,s,!1,!1)}}}}]);