@arcgis/core 5.2.0-next.13 → 5.2.0-next.14

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 (303) hide show
  1. package/arcgisGlobal.d.ts +3 -3
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/03354e9256b2f77fd4f2.js +1 -0
  4. package/assets/esri/core/workers/chunks/0826d36dfbfa28442b70.js +1 -0
  5. package/assets/esri/core/workers/chunks/{87c2d4d58c2487324fb7.js → 0a8ba5cb857f61de40fb.js} +3 -3
  6. package/assets/esri/core/workers/chunks/152f1c08197955224ad3.js +1 -0
  7. package/assets/esri/core/workers/chunks/1a0903b1d2d5101977c6.js +1 -0
  8. package/assets/esri/core/workers/chunks/{de541ad390a8d258d2e6.js → 1d5db8746a4f1ed1d18f.js} +1 -1
  9. package/assets/esri/core/workers/chunks/1effde6a39ef0d4af525.js +1 -0
  10. package/assets/esri/core/workers/chunks/{2a5176533e78a92d8e5b.js → 20c729fca2e4b4c6b28d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/23d50c4478f40a7d62bf.js +1 -0
  12. package/assets/esri/core/workers/chunks/2623cd08487fdc9a94f1.js +1 -0
  13. package/assets/esri/core/workers/chunks/2c3fc2805f6de0963789.js +1 -0
  14. package/assets/esri/core/workers/chunks/2c4f10eaf02ef090ee8f.js +1 -0
  15. package/assets/esri/core/workers/chunks/314bc1b356d43bfa72a8.js +1 -0
  16. package/assets/esri/core/workers/chunks/{34544c79ce568f30a094.js → 31762eb20a9a0ed3f8b0.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{26dca1d387183282276a.js → 318a2702632aaa4d3a63.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3526ab3b1f87c24ae6f8.js +1 -0
  19. package/assets/esri/core/workers/chunks/{81808c3aead7dfac3049.js → 38cfedce779dd75bd217.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5075e85e1eafd431a8c0.js → 39c994536ce6c1e5c956.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3b74749db78bcba2bc16.js +1 -0
  22. package/assets/esri/core/workers/chunks/3d83ac791212b81c9d11.js +1 -0
  23. package/assets/esri/core/workers/chunks/3ecb906322a6a5c8c93b.js +1 -0
  24. package/assets/esri/core/workers/chunks/3f67162456a1f02190fa.js +1 -0
  25. package/assets/esri/core/workers/chunks/{ef46ef4f0ee9f2aeaa4a.js → 426b8e1e2eef2460851d.js} +1 -1
  26. package/assets/esri/core/workers/chunks/4376bc2934a996d8bc27.js +1 -0
  27. package/assets/esri/core/workers/chunks/44d0ca9d4c5f1722688c.js +1 -0
  28. package/assets/esri/core/workers/chunks/{e25bcfdd8f20f8a08b19.js → 4d57c771af4137f74bfb.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4e4419282c4bf7ee4678.js +1 -0
  30. package/assets/esri/core/workers/chunks/4e788fc6cb2ea936f676.js +1 -0
  31. package/assets/esri/core/workers/chunks/4f51963815b0d53ffbd9.js +1 -0
  32. package/assets/esri/core/workers/chunks/5100b5a6a506c704dfaf.js +1 -0
  33. package/assets/esri/core/workers/chunks/52afd43bbe23e358efb5.js +1 -0
  34. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +1 -0
  35. package/assets/esri/core/workers/chunks/{d3c760109a70a71448c5.js → 67773a9f031d9f1d672f.js} +1 -1
  36. package/assets/esri/core/workers/chunks/6f7193b9ff5942c0d354.js +1 -0
  37. package/assets/esri/core/workers/chunks/70737052bab29fcaa120.js +1 -0
  38. package/assets/esri/core/workers/chunks/718d2d430c1a5a940b83.js +1 -0
  39. package/assets/esri/core/workers/chunks/71c996e1ae84d9daddf2.js +1 -0
  40. package/assets/esri/core/workers/chunks/753e0b21e57c12c742ee.js +1 -0
  41. package/assets/esri/core/workers/chunks/764c8ba14ab74b66b391.js +1 -0
  42. package/assets/esri/core/workers/chunks/{1996f0a930abdd97b855.js → 7a8ed08cd173963b3112.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{cc697c4d9cdc116373dc.js → 81726d997a2d34449bb2.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{74e1826ad9e2c4fd3b42.js → 81883bca8a79ee2ddb00.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{9fee0110dc7fee4c95e2.js → 854c320af09b6afc4b80.js} +2 -2
  46. package/assets/esri/core/workers/chunks/85505a8b8b0794656d06.js +1 -0
  47. package/assets/esri/core/workers/chunks/859bc873e7af911a518f.js +1 -0
  48. package/assets/esri/core/workers/chunks/{8407c91cce31e087b41b.js → 886ae23a1d8fa21e531f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{3ff7aa216cd794d951e8.js → 8e99f937fd36cf2cd05f.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{c357c0a08b99c1e7f290.js → 9331969046f2b277d620.js} +1 -1
  51. package/assets/esri/core/workers/chunks/93d08d82ceab19e314f8.js +1 -0
  52. package/assets/esri/core/workers/chunks/97a654e8054302582a3b.js +1 -0
  53. package/assets/esri/core/workers/chunks/97d2bdbea39cbcf8fd0f.js +1 -0
  54. package/assets/esri/core/workers/chunks/a0208e35b217808777c4.js +1 -0
  55. package/assets/esri/core/workers/chunks/{f25bb204cf6727f6fdef.js → a0876a52a3c2ad849370.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{7ad09ac5793e8d47b4b2.js → a4b970a841b3085500fc.js} +1 -1
  57. package/assets/esri/core/workers/chunks/aa5f36d7ed59c625ba78.js +1 -0
  58. package/assets/esri/core/workers/chunks/b045bffb4f2eb9203183.js +1 -0
  59. package/assets/esri/core/workers/chunks/b590402170ae289290d7.js +1 -0
  60. package/assets/esri/core/workers/chunks/b9935cc8e2bd4045058a.js +1 -0
  61. package/assets/esri/core/workers/chunks/{1a527c0740d9f4fa0791.js → bc547cf814d6703cef59.js} +1 -1
  62. package/assets/esri/core/workers/chunks/bcc097271f5cdf0a97a7.js +1 -0
  63. package/assets/esri/core/workers/chunks/bdc66ef2b6ed783047d5.js +1 -0
  64. package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +1 -0
  65. package/assets/esri/core/workers/chunks/bf6ae205fbfbfcd1a0ee.js +1 -0
  66. package/assets/esri/core/workers/chunks/bfd1aef8ac795e1ce227.js +1 -0
  67. package/assets/esri/core/workers/chunks/c148ad0ea9258046ac1f.js +1 -0
  68. package/assets/esri/core/workers/chunks/{0f75c19d8e296a32e329.js → c2cd80b712f29e8cbb8d.js} +1 -1
  69. package/assets/esri/core/workers/chunks/cc0efa716b8414a44398.js +1 -0
  70. package/assets/esri/core/workers/chunks/{8f6833671c071b522923.js → cd66bd30f654fe571e57.js} +1 -1
  71. package/assets/esri/core/workers/chunks/cf41a66fb97c1076fb34.js +1 -0
  72. package/assets/esri/core/workers/chunks/cf8ce21dc649021e97f6.js +1 -0
  73. package/assets/esri/core/workers/chunks/d3be4d914fc99a1d686c.js +1 -0
  74. package/assets/esri/core/workers/chunks/dbd2bfcbf3e0f86f07b8.js +1 -0
  75. package/assets/esri/core/workers/chunks/{6675d56f49d07a97dc40.js → dd0c1cf921369e2bc48b.js} +1 -1
  76. package/assets/esri/core/workers/chunks/df18b0a653b328d8d052.js +1 -0
  77. package/assets/esri/core/workers/chunks/df54e741db40b308c2dd.js +2 -0
  78. package/assets/esri/core/workers/chunks/{89e09276086745aa21fa.js → e4e2f479c0c45ae1b2c3.js} +1 -1
  79. package/assets/esri/core/workers/chunks/e656fd5ecf9ac059a87b.js +1 -0
  80. package/assets/esri/core/workers/chunks/{58a7cdebc3d182c15ec6.js → e77df11aee136d64ff0f.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{7a474ce61cf484df87b4.js → e80376832050a4b6d28a.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f116331c6eca937aac8e.js +1 -0
  83. package/assets/esri/core/workers/chunks/{3b837b512999e6ab24bc.js → f148666308071bdb185a.js} +1 -1
  84. package/assets/esri/core/workers/chunks/f23e995320674b32e142.js +1 -0
  85. package/assets/esri/core/workers/chunks/f334bf192dff5af10a70.js +1 -0
  86. package/assets/esri/core/workers/chunks/f76b1fc36f5606cac2c8.js +1 -0
  87. package/assets/esri/core/workers/chunks/{893c0d28a5bf3f9f29f1.js → f93facf47aba9b128fcc.js} +1 -1
  88. package/assets/esri/core/workers/chunks/fa1336b60278017d2525.js +1 -0
  89. package/assets/esri/core/workers/chunks/{c911f0b5bdd43b66b731.js → fa3faec65882c5b6f1a0.js} +1 -1
  90. package/assets/esri/core/workers/chunks/fccc34b86454c56f27ab.js +1 -0
  91. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  92. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  93. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  94. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +5 -1
  95. package/assets/esri/themes/dark/main.css +1 -1
  96. package/assets/esri/themes/light/main.css +1 -1
  97. package/assets/esri/themes/light/view.css +1 -1
  98. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis.json +1 -1
  99. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_en.json +1 -1
  100. package/chunks/Component.glsl.js +6 -6
  101. package/chunks/GlobalIlluminationBlur.glsl.js +7 -7
  102. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  103. package/chunks/arcgis-knowledge-client-core.js +1 -1
  104. package/chunks/bundle2.js +1 -1
  105. package/config.js +1 -1
  106. package/core/promiseUtils.d.ts +1 -1
  107. package/core/promiseUtils.js +1 -1
  108. package/core/units.js +1 -1
  109. package/form/types.d.ts +1 -1
  110. package/geometry/Mesh.d.ts +220 -95
  111. package/geometry/operators/support/projectionZScaling.js +1 -1
  112. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +35 -13
  113. package/geometry/support/MeshLocalVertexSpace.d.ts +32 -8
  114. package/geometry/support/MeshVertexAttributes.d.ts +6 -2
  115. package/geometry/support/heightModelInfoUtils.js +1 -1
  116. package/geometry/support/zscale.js +1 -1
  117. package/graphic/{AnnotationGraphicOrigin.d.ts → AnnotationFeatureGraphicOrigin.d.ts} +9 -9
  118. package/graphic/{AnnotationGraphicOrigin.js → AnnotationFeatureGraphicOrigin.js} +1 -1
  119. package/interfaces.d.ts +3 -3
  120. package/kernel.js +1 -1
  121. package/layers/{AnnotationLayer.d.ts → AnnotationFeatureLayer.d.ts} +24 -24
  122. package/layers/AnnotationFeatureLayer.js +2 -0
  123. package/layers/GaussianSplatLayer.d.ts +4 -1
  124. package/layers/graphics/data/QueryEngine.js +1 -1
  125. package/layers/graphics/data/queryUtils.js +1 -1
  126. package/layers/graphics/sources/parquet/ParquetFileStatistics.js +1 -1
  127. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  128. package/layers/graphics/sources/support/parquetIdUtils.js +1 -1
  129. package/layers/save/featureLayerUtils.js +1 -1
  130. package/layers/support/AnnotationSublayer.d.ts +7 -7
  131. package/layers/support/FeatureEffect.d.ts +3 -2
  132. package/layers/support/arcgisLayers.js +1 -1
  133. package/layers/support/fetchService.js +1 -1
  134. package/layers/support/layerUtils.js +1 -1
  135. package/layers/support/layersLoader.js +1 -1
  136. package/layers/support/parquetUtils.js +1 -1
  137. package/layers/support/schemaValidator.js +1 -1
  138. package/layers/types.d.ts +1 -1
  139. package/networks/Network.js +1 -1
  140. package/networks/UtilityNetwork.js +1 -1
  141. package/networks/support/networkFieldUtils.js +1 -1
  142. package/package.json +2 -2
  143. package/portal/schemas/definitions.js +1 -1
  144. package/portal/schemas/gaussianSplatLayerItem.js +2 -0
  145. package/portal/schemas/integratedMesh3DTilesLayerItem.js +1 -1
  146. package/portal/support/loadUtils.js +1 -1
  147. package/renderers/support/types.d.ts +1 -1
  148. package/renderers/visualVariables/RotationVariable.d.ts +1 -16
  149. package/renderers/visualVariables/RotationVariable.js +1 -1
  150. package/rest/knowledgeGraph/ReplicaDefinition.d.ts +0 -2
  151. package/rest/knowledgeGraph/ServiceDefinition.d.ts +1 -1
  152. package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +1 -1
  153. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
  154. package/rest/knowledgeGraphService.js +1 -1
  155. package/rest/networks/support/QueryAssociationsParameters.d.ts +2 -2
  156. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +2 -2
  157. package/rest/networks/support/TraceParameters.d.ts +2 -2
  158. package/rest/support/AttributeBinsQuery.js +1 -1
  159. package/rest/support/Query.js +1 -1
  160. package/rest/support/TopFeaturesQuery.js +1 -1
  161. package/support/revision.js +1 -1
  162. package/views/2d/engine/webgl/TextureManager.js +1 -1
  163. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  164. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  165. package/views/2d/layerViewModuleImportUtils.js +1 -1
  166. package/views/2d/layers/AnnotationFeatureLayerView2D.js +2 -0
  167. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  168. package/views/2d/layers/TileLayerView2D.js +1 -1
  169. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  170. package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
  171. package/views/2d/types.d.ts +2 -2
  172. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  173. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  174. package/views/3d/layerViewModuleImportUtils.js +1 -1
  175. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  176. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  177. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  178. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  179. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  180. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  181. package/views/3d/terrain/Tile.js +1 -1
  182. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  183. package/views/3d/types.d.ts +1 -1
  184. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +7 -7
  185. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +29 -20
  186. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatTextureFetch.glsl.js +6 -8
  187. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TexelFormatInfo.js +2 -0
  188. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  189. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferLayout.js +1 -1
  190. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  191. package/views/layers/{AnnotationLayerView.d.ts → AnnotationFeatureLayerView.d.ts} +6 -6
  192. package/views/layers/FeatureLikeLayerView.d.ts +2 -2
  193. package/views/layers/FeatureLikeLayerView.js +1 -1
  194. package/webdoc/widgets/FloorFilter.d.ts +14 -1
  195. package/webdoc/widgets/FloorFilter.js +1 -1
  196. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  197. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +12 -4
  198. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  199. package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
  200. package/widgets/BatchAttributeForm/ValueChangeTransaction.js +2 -0
  201. package/widgets/BatchAttributeForm/VisibleElements.d.ts +8 -1
  202. package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
  203. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  204. package/widgets/BatchAttributeForm/css.js +1 -1
  205. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  206. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  207. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
  208. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
  209. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  210. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  211. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  212. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  213. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  214. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  215. package/widgets/BatchAttributeForm/stringUtils.js +2 -0
  216. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  217. package/widgets/BatchAttributeForm/types.d.ts +19 -3
  218. package/widgets/BatchAttributeForm.js +1 -1
  219. package/widgets/Editor/AddAssociationWorkflow.js +1 -1
  220. package/widgets/Editor/AddAssociationWorkflowData.js +1 -1
  221. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  222. package/widgets/Editor/EditorViewModel.d.ts +1 -1
  223. package/widgets/Editor/EditorViewModel.js +1 -1
  224. package/widgets/Editor/MergeFeaturesWorkflow.d.ts +3 -3
  225. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  226. package/widgets/Editor/SplitFeatureWorkflow.d.ts +3 -3
  227. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  228. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  229. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  230. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  231. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  232. package/widgets/Editor/UpdateWorkflow.js +1 -1
  233. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  234. package/widgets/Editor/support/SketchController.js +1 -1
  235. package/widgets/Editor/workflowUtils.js +1 -1
  236. package/widgets/Editor.js +1 -1
  237. package/widgets/FloorFilter/FloorFilterViewModel.d.ts +10 -0
  238. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  239. package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +0 -1
  240. package/assets/esri/core/workers/chunks/0bb159ba0226122465cf.js +0 -1
  241. package/assets/esri/core/workers/chunks/160e5b99f1097a473e6b.js +0 -1
  242. package/assets/esri/core/workers/chunks/17e68828ca6ff6912d3e.js +0 -1
  243. package/assets/esri/core/workers/chunks/1e340536d3c5f94920b5.js +0 -1
  244. package/assets/esri/core/workers/chunks/24810c36ae09bb4e83dc.js +0 -1
  245. package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +0 -1
  246. package/assets/esri/core/workers/chunks/297ae764445e6f73a5ea.js +0 -1
  247. package/assets/esri/core/workers/chunks/29aba121db7f00e0cf81.js +0 -1
  248. package/assets/esri/core/workers/chunks/2a3145a595d19391bb8a.js +0 -1
  249. package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +0 -1
  250. package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +0 -1
  251. package/assets/esri/core/workers/chunks/3c5534c576528c1921d2.js +0 -1
  252. package/assets/esri/core/workers/chunks/40b3cdf81c79bbc44527.js +0 -2
  253. package/assets/esri/core/workers/chunks/41f12eb7c9b7086528d5.js +0 -1
  254. package/assets/esri/core/workers/chunks/426156137f279d979ddd.js +0 -1
  255. package/assets/esri/core/workers/chunks/4714241189c13d0db897.js +0 -1
  256. package/assets/esri/core/workers/chunks/537c5dd4cd0a067199d1.js +0 -1
  257. package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +0 -1
  258. package/assets/esri/core/workers/chunks/5437a1c05c1bd2175981.js +0 -1
  259. package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +0 -1
  260. package/assets/esri/core/workers/chunks/5c7aff9604b4576a0e1d.js +0 -1
  261. package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +0 -1
  262. package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +0 -1
  263. package/assets/esri/core/workers/chunks/603177137eb680afe371.js +0 -1
  264. package/assets/esri/core/workers/chunks/629099f05ca5c9ca1973.js +0 -1
  265. package/assets/esri/core/workers/chunks/62f78fa455d556008f6a.js +0 -1
  266. package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +0 -1
  267. package/assets/esri/core/workers/chunks/6f0341cfa4c68e6e60b3.js +0 -1
  268. package/assets/esri/core/workers/chunks/70229007d594536ba6a3.js +0 -1
  269. package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +0 -1
  270. package/assets/esri/core/workers/chunks/890b7a1153b7f65eba9a.js +0 -1
  271. package/assets/esri/core/workers/chunks/9660ae52fb3951a19e9c.js +0 -1
  272. package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +0 -1
  273. package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +0 -1
  274. package/assets/esri/core/workers/chunks/b5937ce657c1fff3864f.js +0 -1
  275. package/assets/esri/core/workers/chunks/c3cf9e6e91f71c9cc5f3.js +0 -1
  276. package/assets/esri/core/workers/chunks/c80fc1b3048e8d58a1f8.js +0 -1
  277. package/assets/esri/core/workers/chunks/cc3e895cff019e811c07.js +0 -1
  278. package/assets/esri/core/workers/chunks/d122431f3b0b88dcb488.js +0 -1
  279. package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +0 -1
  280. package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +0 -1
  281. package/assets/esri/core/workers/chunks/d41caf20c26f80385265.js +0 -1
  282. package/assets/esri/core/workers/chunks/d468994822f9bc3d6279.js +0 -1
  283. package/assets/esri/core/workers/chunks/d63f532dd7d60ee8ef2c.js +0 -1
  284. package/assets/esri/core/workers/chunks/d64613209a9eb1eafb11.js +0 -1
  285. package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +0 -1
  286. package/assets/esri/core/workers/chunks/d8ec0afb2b91ccf32e55.js +0 -1
  287. package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +0 -1
  288. package/assets/esri/core/workers/chunks/dd920a6f6422fa213eba.js +0 -1
  289. package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +0 -1
  290. package/assets/esri/core/workers/chunks/e2de13810dce01b98520.js +0 -1
  291. package/assets/esri/core/workers/chunks/e5837e5ac6ef761f26a2.js +0 -1
  292. package/assets/esri/core/workers/chunks/e82488b9b3bb0c1dedb4.js +0 -1
  293. package/assets/esri/core/workers/chunks/f274a8e8c7ca4294e876.js +0 -1
  294. package/assets/esri/core/workers/chunks/f292c2c22a3822343118.js +0 -1
  295. package/assets/esri/core/workers/chunks/f4f642ddd4d5db7cbbb4.js +0 -1
  296. package/assets/esri/core/workers/chunks/f6d047358d14328f3622.js +0 -1
  297. package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +0 -1
  298. package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +0 -1
  299. package/layers/AnnotationLayer.js +0 -2
  300. package/views/2d/layers/AnnotationLayerView2D.js +0 -2
  301. /package/assets/esri/core/workers/chunks/{9fee0110dc7fee4c95e2.js.LICENSE.txt → 854c320af09b6afc4b80.js.LICENSE.txt} +0 -0
  302. /package/assets/esri/core/workers/chunks/{40b3cdf81c79bbc44527.js.LICENSE.txt → df54e741db40b308c2dd.js.LICENSE.txt} +0 -0
  303. /package/views/layers/{AnnotationLayerView.js → AnnotationFeatureLayerView.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9719],{57582(t,e,s){s.d(e,{Vb:()=>i,af:()=>n}),s(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;const e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}new Map,new Set},85560(t,e,s){function i(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,s,i){const n=e[i],r=e[i+1];t[i]=s[0]*n+s[2]*r+s[4],t[i+1]=s[1]*n+s[3]*r+s[5]}s.d(e,{vt:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:i,fromValues:function(t,e,s,i,n,r){const h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=s,h[3]=i,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,s,i=0,r=0,h=2){const o=r||e.length/h;for(let r=i;r<o;r++)n(t,e,s,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,s){function i(){return new Float32Array(2)}function n(t,e){const s=new Float32Array(2);return s[0]=t,s[1]=e,s}function r(){return i()}function h(){return n(1,1)}function o(){return n(1,0)}function a(){return n(0,1)}s.d(e,{Un:()=>c,fA:()=>n,uY:()=>l,vt:()=>i});const l=r(),c=h(),u=o(),_=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:_,ZEROS:l,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:i,fromValues:n,ones:h,unitX:o,unitY:a,zeros:r},Symbol.toStringTag,{value:"Module"}))},16905(t,e,s){s.d(e,{$0:()=>a,D_:()=>n,Tl:()=>o,e$:()=>h,lw:()=>r});var i=s(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e,s){const i=e[0],n=e[1],r=e[2],h=e[3],o=e[4],a=e[5],l=s[0],c=s[1],u=s[2],_=s[3],p=s[4],f=s[5];return t[0]=i*l+r*c,t[1]=n*l+h*c,t[2]=i*u+r*_,t[3]=n*u+h*_,t[4]=i*p+r*f+o,t[5]=n*p+h*f+a,t}function h(t,e,s){const i=e[0],n=e[1],r=e[2],h=e[3],o=e[4],a=e[5],l=Math.sin(s),c=Math.cos(s);return t[0]=i*c+r*l,t[1]=n*c+h*l,t[2]=i*-l+r*c,t[3]=n*-l+h*c,t[4]=o,t[5]=a,t}function o(t,e,s){const i=e[0],n=e[1],r=e[2],h=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i,t[1]=n,t[2]=r,t[3]=h,t[4]=i*l+r*c+o,t[5]=n*l+h*c+a,t}function a(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=-s,t[3]=i,t[4]=0,t[5]=0,t}function l(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t}const c=r,u=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t},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},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const s=t[0],n=t[1],r=t[2],h=t[3],o=t[4],a=t[5],l=e[0],c=e[1],u=e[2],_=e[3],p=e[4],f=e[5],d=(0,i.FD)();return Math.abs(s-l)<=d*Math.max(1,Math.abs(s),Math.abs(l))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(r-u)<=d*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(h-_)<=d*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-f)<=d*Math.max(1,Math.abs(a),Math.abs(f))},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]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:a,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],h=e[4],o=e[5];let a=s*r-i*n;return a?(a=1/a,t[0]=r*a,t[1]=-i*a,t[2]=-n*a,t[3]=s*a,t[4]=(n*o-r*h)*a,t[5]=(i*h-s*o)*a,t):null},mul:c,multiply:r,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t},rotate:h,scale:function(t,e,s){const i=e[0],n=e[1],r=e[2],h=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i*l,t[1]=n*l,t[2]=r*c,t[3]=h*c,t[4]=o,t[5]=a,t},set:function(t,e,s,i,n,r,h){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:u,subtract:l,translate:o},Symbol.toStringTag,{value:"Module"}))},36745(t,e,s){s.d(e,{z:()=>o});var i=s(4718),n=s(51118),r=s(60408),h=s(92722);class o{static fromOptimized(t,e,s=1){return(new a).initialize(t,e,s)}static fromJSON(t){const[e,s]=c(t),i=(0,r.Pv)(t),n=(0,r.W0)(t);return(new u).initialize(e,s,i,n,1)}static fromOptimizedCIM(t,e,s=1){return(new _).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=c(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(s,i,n,h,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new _).initialize(new h.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new _).initialize(new h.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new p).initialize([],t,e,s,i)}asJSON(){const t=(0,n.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class a extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new a).initialize(new h.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],r=s[n-e+1],h=s[n]-t,o=s[n+1]-r;i+=Math.sqrt(h*h+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends o{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],r=t[0],h=t[1],o=n[0]-r,a=n[1]-h;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new h.A([],[],t,e),{coords:i,lengths:n}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),n.length=0;else for(const s of this._paths){for(const n of s)i.push(n[0]),i.push(n[1]*this.yFactor),t&&i.push(n[2]),e&&i.push(n[this._mIndex]);n.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends a{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends u{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new p).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},32011(t,e,s){s.d(e,{d:()=>a});var i=s(19419),n=s(537),r=s(12359),h=s(95108),o=s(12176);function a(t){if(0===t.totalSize)return null;const e=(0,n.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let h=0,o=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>o&&(o=s,h=e)}if(t.seekPath(h),0===t.pathSize)return null;t.seekPathStart();const a=(0,n.B$)(t);if(Math.abs(o)<=2*s*s)return[(a[0]+a[2])/2,(a[1]+a[3])/2];t.seekPathStart();const _=(0,r.w2)(t,(0,i.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],P=[NaN,NaN,NaN,NaN];let x=!1,y=c(_,t,!0);0===y.distance&&(x=!0,p[0][0]=_[0],p[0][1]=_[1],y=c(_,t,!1)),f[0]=y.distance,P[0]=0;const M=[NaN,NaN];let b=!1,C=.25,w=-1,S=NaN;do{if(S=NaN,p[1]=u(t,d(a[0],a[2],C),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(y=c(p[1],t,!1),S=y.distance),!isNaN(S)&&S>s&&l(p[1],t))b=!0,f[1]=S,P[1]=g(p[1],_);else if(!isNaN(S)&&S>w&&(w=S,M[0]=p[1][0],M[1]=p[1][1]),C-=.01,C<.1){if(!(w>=0))break;b=!0,f[1]=w,p[1][0]=M[0],p[1][1]=M[1],P[1]=g(p[1],_)}}while(!b);b=!1,C=.5,w=-1;let I=.01,v=1;do{if(S=NaN,p[2]=u(t,d(a[0],a[2],C),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(y=c(p[2],t,!1),S=y.distance),!isNaN(S)&&S>s&&l(p[2],t))b=!0,f[2]=S,P[2]=g(p[2],_);else if(!isNaN(S)&&S>w)w=S,M[0]=p[2][0],M[1]=p[2][1];else if(S>w&&(w=S,M[0]=p[2][0],M[1]=p[2][1]),C=.5+I*v,I+=.01,v*=-1,C<.3||C>.7){if(!(w>=0))break;b=!0,f[2]=w,p[2][0]=M[0],p[2][1]=M[1],P[2]=g(p[2],_)}}while(!b);b=!1,C=.75,w=-1;do{if(S=NaN,p[3]=u(t,d(a[0],a[2],C),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(y=c(p[3],t,!1),S=y.distance),!isNaN(S)&&S>s&&l(p[3],t))b=!0,f[3]=S,P[3]=g(p[3],_);else if(S>w&&(w=S,M[0]=p[3][0],M[1]=p[3][1]),C+=.01,C>.9){if(!(w>=0))break;b=!0,f[3]=w,p[3][0]=M[0],p[3][1]=M[1],P[3]=g(p[3],_)}}while(!b);const k=[0,1,2,3],z=x?0:1;let A;for(let t=z;t<4;t++)for(let t=z;t<3;t++){const e=P[t],s=P[t+1];m(e,s)>0&&(A=k[t],k[t]=k[t+1],k[t+1]=A,P[t]=s,P[t+1]=e)}let T=z,L=0,G=0;for(let t=z;t<4;t++){switch(t){case 0:G=2*f[k[t]];break;case 1:G=1.66666666*f[k[t]];break;case 2:G=1.33333333*f[k[t]];break;case 3:G=f[k[t]]}G>L&&(L=G,T=k[t])}return p[T]}function l(t,e){let s,i,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=r)n=e.x,r=e.y,i>t[1]!=r>t[1]&&((n-s)*(t[1]-i)-(r-i)*(t[0]-s)>0?h++:h--);return 0!==h}function c(t,e,s){if(s&&l(t,e))return{coord:t,distance:0};let i=1/0,n=0,r=0,o=[0,0],a=[0,0];const c=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,h.gR)(c,t,o,a);const s=g(t,c);s<i&&(i=s,n=c[0],r=c[1])}return{coord:[n,r],distance:Math.sqrt(i)}}function u(t,e,s,n){const r=[e,0];let h=1/0,a=1/0,l=!1,c=!1;const u=[[e,n[1]-1],[e,n[3]+1]],f=[0,0],d=[0,0],g=[0,0],m=[[0,0],[0,0]],P=(0,i.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===_(P,m))continue;if(d[0]=u[0][0],d[1]=u[0][1],g[0]=u[1][0],g[1]=u[1][1],0===p(P,d,g))continue;if(!(0,o.Ql)(u[0],u[1],m[0],m[1],f))continue;const e=f[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,c=!0)}return l&&c?r[1]=(h+a)/2:r[0]=r[1]=NaN,r}function _(t,e){if(e.length<2)return null;t||(t=(0,i.vt)());const[s,n]=e[0],[r,h]=e[1];return t[0]=Math.min(s,r),t[1]=Math.min(n,h),t[2]=Math.max(s,r),t[3]=Math.max(n,h),t}function p(t,e,s){let i=f(e,t),n=f(s,t);const r=t[0],h=t[1],o=t[2],a=t[3];if(i&n)return 0;if(!(i|n))return 4;const l=(i?1:0)|(n?2:0);do{const l=s[0]-e[0],c=s[1]-e[1];if(l>c)3&i?(1&i?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):3&n?(1&n?(s[1]+=c*(r-s[0])/l,s[0]=r):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)):i?(4&i?(e[0]+=l*(h-e[1])/c,e[1]=h):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):(4&n?(s[0]+=l*(h-s[1])/c,s[1]=h):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t));else if(12&i?(4&i?(e[0]+=l*(h-e[1])/c,e[1]=h):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):12&n?(4&n?(s[0]+=l*(h-s[1])/c,s[1]=h):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t)):i?(1&i?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):(1&n?(s[1]+=c*(r-s[0])/l,s[0]=r):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)),i&n)return 0}while(i|n);return l}function f(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function d(t,e,s){return t+(e-t)*s}function g(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},35833(t,e,s){s.d(e,{$Z:()=>h,NS:()=>l,Xs:()=>a,ai:()=>g,g1:()=>m,hd:()=>c,kT:()=>P,lX:()=>o,mO:()=>u,qc:()=>x,vZ:()=>f,xR:()=>p,yM:()=>_});var i=s(36745),n=s(6774),r=s(93397);const h=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(463),s.e(6160)]).then(s.bind(s,46160))),o=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(8872)]).then(s.bind(s,55666))),a=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(1060)]).then(s.bind(s,51190))),l=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(837)]).then(s.bind(s,97528))),c=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(463),s.e(795)]).then(s.bind(s,50795))),u=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6936)]).then(s.bind(s,15605))),_=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(1075)]).then(s.bind(s,3637))),p=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(8393)]).then(s.bind(s,25802))),f=(0,r.z9)(()=>Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(1948)]).then(s.bind(s,83299)));let d;function g(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return o.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),u.getImportPromise(),c.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return u.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),a.getImportPromise(),l.getImportPromise()]);default:return Promise.resolve()}}function m(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class P{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function x(t,e,s){if(!t)return null;d||(d=new n.O3(0,0,0,1));const r=s?-1:1,h="esriGeometryPolygon"===t.geometryType,o=h?3:2,a=h?3:2;let l,c;for(d.reset(o),d.setPixelMargin(e+1),d.setExtent(512);t.nextPath();)if(!(t.pathSize<a)){for(t.nextPoint(),l=t.x,c=r*t.y,d.moveTo(l,c);t.nextPoint();)l=t.x,c=r*t.y,d.lineTo(l,c);h&&d.close()}const u=d.result(!1);if(u){const e=i.z.createEmptyOptimizedCIM(t.geometryType);for(const t of u){e.startPath();for(const s of t)e.pushXY(s.x,r*s.y)}return e.reset(),e}return null}},59409(t,e,s){s.d(e,{A:()=>Jt,c:()=>qt});class i{static{this.instance=null}static local(){return null===i.instance&&(i.instance=new i),i.instance}execute(t,e,s){return new n(t,e)}}class n{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,s=t.y;let i=e,n=s,r=t.pathSize,h=0,o=0,a=0,l=0,c=0,u=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=s):(p=t.x,f=t.y);const d=p-i,g=f-n,m=Math.sqrt(d*d+g*g);_>1&&m>0&&a>0&&(h*d+o*g)/m/a<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(l=d,c=g,u=m),m>0&&(i=p,n=f,h=d,o=g,a=m)}this._isClosed&&a>0&&u>0&&(h*l+o*c)/u/a<=this._maxCosAngle&&t.setControlPointAt(0)}}}var r=s(36745),h=s(51118),o=s(98939);function a(t,e){t[4]=e}class l{constructor(t,e=!0,s=!0,i=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!s&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=i,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new o.W}next(){if(!this.geometryCursor)return null;const t=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&t||(this.geometryCursor=null),!t)return null;const e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){const s=e+Math.PI,i=Math.atan2(Math.sin(s),Math.cos(s));Number.isNaN(i)||t.setRotate(i)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;const e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class c{constructor(t,e,s,i=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=s,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}const u=.03;class _{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,s,i,n;for(e=t.x,s=t.y;t.nextPoint();e=s,s=n)if(i=t.x,n=t.y,i!==e||n!==s)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}getSegLength(t){const[[e,s],[i,n]]=t;return this.getLength(e,s,i,n)}getCoord2D(t,e,s,i,n){return[t+(s-t)*n,e+(i-e)*n]}getSegCoord2D(t,e){const[[s,i],[n,r]]=t;return this.getCoord2D(s,i,n,r,e)}getAngle(t,e,s,i,n){const r=s-t,h=i-e;return Math.atan2(h,r)}getAngleCS(t,e,s,i,n,r){null==t&&(t=[0,0]);const h=i-e,o=n-s,a=Math.sqrt(h*h+o*o);return 0!==a?(t[0]=h/a,t[1]=o/a,t):(t[0]=1,t[1]=0,t)}getSegAngleCS(t,e,s){const[[i,n],[r,h]]=e;return this.getAngleCS(t,i,n,r,h,s)}cut(t,e,s,i,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,s,i,n),r>=1?[s,i]:this.getCoord2D(t,e,s,i,r)]}getSubCurve(t,e,s){const i=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(i,t,e,s)?i:null}appendSubCurve(t,e,s,i){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,o=e.y;for(;e.nextPoint();){const a=this.getLength(h,o,e.x,e.y);if(0!==a){if(r){if(n+a>s){const l=(s-n)/a;let c=1,u=!1;n+a>=i&&(c=(i-n)/a,u=!0);const _=this.cut(h,o,e.x,e.y,l,c);if(_&&t.pushPoints(_),u)break;r=!1}}else{if(n+a>i){const s=this.cut(h,o,e.x,e.y,0,(i-n)/a);s&&t.pushPoint(s[1]);break}t.pushXY(e.x,e.y)}n+=a,h=e.x,o=e.y}else h=e.x,o=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let s,i,n,r,h=0;for(s=t.x,i=t.y;t.nextPoint();s=n,i=r){n=t.x,r=t.y;const o=this.getLength(s,i,n,r);if(0!==o){if(h+o>e){const t=(e-h)/o;return this.getCoord2D(s,i,n,r,t)}h+=o}}return null}offset(t,e,s,i,n){if(!t||t.length<2)return null;let r=0,h=t[r++],o=r;for(;r<t.length;){const e=t[r];e[0]===h[0]&&e[1]===h[1]||(r!==o&&(t[o]=t[r]),h=t[o++]),r++}const a=t[0][0]===t[o-1][0]&&t[0][1]===t[o-1][1];if(a&&--o,o<(a?3:2))return null;const l=[];h=a?t[o-1]:null;let c=t[0];for(let n=0;n<o;n++){const r=n===o-1?a?t[0]:null:t[n+1];if(h)if(r){const t=[r[0]-c[0],r[1]-c[1]];this.normalize(t);const n=[c[0]-h[0],c[1]-h[1]];this.normalize(n);const o=n[0]*t[1]-n[1]*t[0],a=n[0]*t[0]+n[1]*t[1];if(0===o&&1===a){c=r;continue}if(o>=0==e<=0){if(a<1){const s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);const r=Math.sqrt((1+a)/2);if(r>1/i){const t=-Math.abs(e)/r;l.push([c[0]-s[0]*t,c[1]-s[1]*t])}}}else switch(s){case"Mitered":{const s=Math.sqrt((1+a)/2);if(s>0&&1/s<i){const i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=Math.abs(e)/s;l.push([c[0]-i[0]*r,c[1]-i[1]*r]);break}}case"Bevelled":l.push([c[0]+n[1]*e,c[1]-n[0]*e]),l.push([c[0]+t[1]*e,c[1]-t[0]*e]);break;case"Rounded":if(a<1){l.push([c[0]+n[1]*e,c[1]-n[0]*e]);const s=Math.floor(2.5*(1-a));if(s>0){const i=1/s;let r=i;for(let h=1;h<s;h++,r+=i){const s=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(s),l.push([c[0]+s[0]*e,c[1]+s[1]*e])}}l.push([c[0]+t[1]*e,c[1]-t[0]*e])}break;default:if(o<0)l.push([c[0]+(n[1]+n[0])*e,c[1]+(n[1]-n[0])*e]),l.push([c[0]+(t[1]-t[0])*e,c[1]-(t[0]+t[1])*e]);else{const s=Math.sqrt((1+Math.abs(a))/2),i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=e/s;l.push([c[0]-i[0]*r,c[1]-i[1]*r])}}}else{const t=[c[0]-h[0],c[1]-h[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}else{const t=[r[0]-c[0],r[1]-c[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}h=c,c=r}return l.length<(a?3:2)?null:(a&&l.push([l[0][0],l[0][1]]),l)}}const p=1.7320508075688772;class f{static{this.instance=null}static local(){return null===f.instance&&(f.instance=new f),f.instance}execute(t,e,s){return new d(t,e,s)}}class d extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new _;const i=s.geomUnitsPerPoint;this._width=(void 0!==e.width?e.width:5)*i,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:"OpenEnded",this._offsetFlattenError=u*i}processPath(t){const e=r.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,s){const i=e.pathLength();let n=this._width;i<2*n&&(n=i/2);const r=this._curveHelper.getSubCurve(e,0,i-n);if(!r||!r.nextPath())return;r.seekPathStart();const o=n/2;if(this._curveHelper.isEmpty(r))return;const a=(0,h.A)(r),l=this._constructOffset(a,-o);if(!l)return;const c=this._constructOffset(a,o);if(!c)return;const u=this._constructArrowBasePoint(l,-o/2);if(!u)return;const _=this._constructArrowBasePoint(c,o/2);if(!_)return;e.seekInPath(e.pathSize-1);const p=[e.x,e.y];t.pushPath(c),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),s||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(c[0])),t.reset()}_constructCrossedArrow(t,e){const s=e.pathLength();let i=this._width;s<i*(1+p+1)&&(i=s/(1+p+1)),e.seekPathStart();const n=this._curveHelper.getSubCurve(e,0,s-i*(1+p));if(!n)return;n.nextPath();const r=i/2;if(this._curveHelper.isEmpty(n))return;const o=(0,h.A)(n),a=this._constructOffset(o,r);if(!a)return;const l=this._constructOffset(o,-r);if(!l)return;const c=this._curveHelper.getSubCurve(e,0,s-i);if(!c)return;if(c.nextPath(),this._curveHelper.isEmpty(c))return;const u=(0,h.A)(c),_=this._constructOffset(u,r);if(!_)return;const f=this._constructOffset(u,-r);if(!f)return;const d=_[_.length-1],g=this._constructArrowBasePoint(_,r/2);if(!g)return;const m=f[f.length-1],P=this._constructArrowBasePoint(f,-r/2);if(!P)return;e.seekInPath(e.pathSize-1);const x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(P),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const s=t[t.length-2],i=t[t.length-1],n=[i[0]-s[0],i[1]-s[1]];return this._curveHelper.normalize(n),[i[0]+n[1]*e,i[1]-n[0]*e]}}var g=s(16930),m=s(35833);class P{static{this.instance=null}static local(){return null===P.instance&&(P.instance=new P),P.instance}execute(t,e,s){return new x(t,e,s)}}class x{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.tileKey,r=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new _,this._size=(void 0!==e.size?e.size:1)*i,this._maxInflateSize=r*i,this._offsetFlattenError=u*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=r.z.createEmptyOptimizedCIM(t.geometryType),s=(0,h.x)(t)[0],i=this._curveHelper.offset(s,this._size,"Rounded",4,this._offsetFlattenError);if(i)return e.pushPath(i),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return r.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=!this._preventClipping&&this._tileKey?(0,m.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;const s=m.$Z.module,i={...e.asJSON(),spatialReference:{wkid:g.A.WebMercator.wkid}},n=s.execute(i,this._size);return n?r.z.fromJSONCIM(n):null}return null}}var y=s(86211),M=s(95108);class b{static{this.instance=null}static local(){return null===b.instance&&(b.instance=new b),b.instance}execute(t,e,s){return new C(t,e,s)}}class C{constructor(t,e,s){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=s.geomUnitsPerPoint??1,this._scale=s?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=s?.spatialReference??g.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,h.x)(t));if(e?.length)return r.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;const e=this._scale/(96*y.dy*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,s,i){return[t[0]*e+s[0]*i,t[1]*e+s[1]*i]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,s){return[t[0]+e,t[1]+s]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const s=e/this._norm(t);t[0]*=s,t[1]*=s}_leftPerpendicular(t){const e=-t[1],s=t[0];t[0]=e,t[1]=s}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],s=-t[0];t[0]=e,t[1]=s}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,s){const i=t[0]*e-t[1]*s,n=t[0]*s+t[1]*e;t[0]=i,t[1]=n}_makeCtrlPt(t){const e=[t[0],t[1]];return a(e,1),e}_addAngledTicks(t,e,s,i){const n=this._sub(s,e);this._normalize(n);const r=this._crossProduct(n,this._sub(i,e));let h;h=r>0?this._rightPerp(n):this._leftPerp(n);const o=Math.abs(r)/2,a=[];a.push([e[0]+(h[0]-n[0])*o,e[1]+(h[1]-n[1])*o]),a.push(e),a.push(s),a.push([s[0]+(h[0]+n[0])*o,s[1]+(h[1]+n[1])*o]),t.push(a)}_addBezier2(t,e,s,i,n){if(0===n--)return void t.push(i);const r=this._mid(e,s),h=this._mid(s,i),o=this._mid(r,h);this._addBezier2(t,e,r,o,n),this._addBezier2(t,o,h,i,n)}_addBezier3(t,e,s,i,n,r){if(0===r--)return void t.push(n);const h=this._mid(e,s),o=this._mid(s,i),a=this._mid(i,n),l=this._mid(h,o),c=this._mid(o,a),u=this._mid(l,c);this._addBezier3(t,e,h,l,u,r),this._addBezier3(t,u,c,a,n,r)}_add90DegArc(t,e,s,i,n){const r=n??this._crossProduct(this._sub(s,e),this._sub(i,e))>0,h=this._mid(e,s),o=this._sub(h,e);r?this._leftPerpendicular(o):this._rightPerpendicular(o),h[0]+=o[0],h[1]+=o[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(s,.33333,h,.66667),s,4)}_addArrow(t,e,s){const i=e[0],n=e[1],r=e[e.length-1],h=this._sub(i,n),o=this._norm(h);this._normalize(h);const a=Math.abs(this._crossProduct(h,this._sub(r,n)));let l=this._dotProduct(h,this._sub(r,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=.5*a,u=this._leftPerp(h),_=[n[0]+h[0]*l,n[1]+h[1]*l],p=e.length-1,f=[];f.push(s?[-u[0],-u[1]]:u);let d=[-h[0],-h[1]];for(let t=1;t<p-1;t++){const s=this._sub(e[t+1],e[t]);this._normalize(s);const i=this._dotProduct(s,d),n=this._crossProduct(s,d),r=Math.sqrt((1+i)/2),h=this._sub(s,d);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),d=s}f.push(this._rightPerp(d));for(let s=f.length-1;s>0;s--)t.push([e[s][0]+f[s][0]*c,e[s][1]+f[s][1]*c]);t.push([_[0]+f[0][0]*c,_[1]+f[0][1]*c]),t.push([_[0]+f[0][0]*a,_[1]+f[0][1]*a]),t.push(i),t.push([_[0]-f[0][0]*a,_[1]-f[0][1]*a]),t.push([_[0]-f[0][0]*c,_[1]-f[0][1]*c]);for(let s=1;s<f.length;s++)t.push([e[s][0]-f[s][0]*c,e[s][1]-f[s][1]*c])}_addDash(t,e,s){const i=this._norm(s)/7;this._normalize(s);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+s[0]*r*i,e[1]+s[1]*r*i]),1&r&&(t.push(n),n=[])}_cp2(t,e,s){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,s*this._defaultSize)}_cp3(t,e,s,i){if(t.length>=3)return t[2];const n=this._mix(t[0],1-s,e,s),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*i*this._defaultSize,n[1]+r[1]*i*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],s=this._cp2(t,-4,0),i=this._sub(e,s);this._normalize(i);const n=this._rightPerp(i);return[e,s,[e[0]+(n[0]-i[0])*this._defaultSize,e[1]+(n[1]-i[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],s=this._cp2(t,-4,0);let i;if(t.length>=3)i=t[t.length-1];else{const t=this._sub(e,s);this._normalize(t);const n=this._rightPerp(t);i=[e[0]+(n[0]-t[0])*this._defaultSize,e[1]+(n[1]-t[1])*this._defaultSize]}return[s,i]}_offsetPath(t,e){const s=m.mO.module.execute({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[i]=(0,h.x)(r.z.fromJSONCIM(s));return i?.length?i:null}_processGeom(t){if(!t)return null;const e=[];for(const s of t){const t=s.length>1&&(0,M.Yl)(s)<this._defaultSize;if(!s||0===s.length||t)continue;const i=s.length;let n=s[0];switch(this._rule){case"PerpendicularFromFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),r=[];r.push(i),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{const t=this._cp2(s,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),r=[];r.push(this._mid(t,i)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),r=this._sub(i,t);let h;h=this._crossProduct(r,this._sub(n,t))>0?this._rightPerp(r):this._leftPerp(r);const o=[];o.push([t[0]+(h[0]-r[0])/3,t[1]+(h[1]-r[1])/3]),o.push(t),o.push(i),o.push([i[0]+(h[0]+r[0])/3,i[1]+(h[1]+r[1])/3]),e.push(o);break}case"DoublePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),r=this._mid(n,t),h=this._sub(r,i);this._normalize(h);const o=this._crossProduct(h,this._sub(n,i));this._leftPerpendicular(h);const a=[];a.push(n),a.push([i[0]+h[0]*o,i[1]+h[1]*o]),e.push(a);const l=[];l.push([i[0]-h[0]*o,i[1]-h[1]*o]),l.push(t),e.push(l);break}case"OppositeToFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),r=this._mid(n,t),h=this._sub(r,i);this._normalize(h);const o=this._crossProduct(h,this._sub(n,i));this._leftPerpendicular(h);const a=[];a.push([i[0]+h[0]*o,i[1]+h[1]*o]),a.push([i[0]-h[0]*o,i[1]-h[1]*o]),e.push(a);break}case"TriplePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),r=this._mid(n,t),h=this._sub(r,i);this._normalize(h);const o=this._crossProduct(h,this._sub(n,i));this._leftPerpendicular(h);const a=[];a.push([i[0]+h[0]*o*.8,i[1]+h[1]*o*.8]),a.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(a),e.push([i,r]);const l=[];l.push([i[0]-h[0]*o*.8,i[1]-h[1]*o*.8]),l.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(l);break}case"HalfCircleFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),r=this._mid(n,t);let h=this._sub(t,n);const o=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=Math.sqrt((1+o)/2),c=Math.sqrt((1-o)/2),u=[];let _;this._crossProduct(h,this._sub(i,n))>0?(u.push(n),h=this._sub(n,r),_=t):(u.push(t),h=this._sub(t,r),_=n),this._rotateDirect(h,l,c),h[0]/=l,h[1]/=l;for(let t=1;t<=18;t++)u.push(this._add(r,h)),this._rotateDirect(h,o,a);u.push(_),e.push(u);break}case"HalfCircleSecondSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,1,-1);let r=this._sub(n,t);this._normalize(r);const h=this._crossProduct(r,this._sub(i,t))/2;this._leftPerpendicular(r);const o=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,o);const a=Math.cos(Math.PI/18);let l=Math.sin(Math.PI/18);h>0&&(l=-l);const c=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,a,l),c.push(this._add(o,r));e.push(c);break}case"HalfCircleExtended":{const t=this._cp2(s,0,-2),r=this._cp3(s,t,1,-1);let h;if(i>=4)h=s[3];else{const e=this._sub(n,t);h=this._add(r,e)}const o=this._dist(t,r)/2/.75,a=this._sub(t,n);this._normalize(a,o);const l=this._sub(r,h);this._normalize(l,o);const c=[h,r];e.push(c);const u=[this._clone(r)];this._addBezier3(u,r,this._add(r,l),this._add(t,a),t,4),u.push(n),e.push(u);break}case"OpenCircle":{const t=this._cp2(s,-2,0),i=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),o=[t];for(let t=1;t<=33;t++)this._rotateDirect(i,r,h),o.push(this._add(n,i));e.push(o);break}case"CoverageEdgesWithTicks":{const t=this._cp2(s,0,-1);let r,h;if(i>=3)r=s[2];else{const e=this._sub(t,n),s=this._leftPerp(e);r=[n[0]+s[0]-.25*e[0],n[1]+s[1]-.25*e[1]]}if(i>=4)h=s[3];else{const e=this._mid(n,t),s=this._sub(n,t);this._normalize(s),this._leftPerpendicular(s);const i=this._crossProduct(s,this._sub(r,e));this._rightPerpendicular(s),h=[r[0]+s[0]*i*2,r[1]+s[1]*i*2]}const o=this._sub(t,n);let a,l;a=this._crossProduct(o,this._sub(r,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(r),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(h,t))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([t[0]+(a[0]+o[0])/3,t[1]+(a[1]+o[1])/3]),l.push(t),l.push(h),e.push(l);break}case"GapExtentWithDoubleTicks":{const t=this._cp2(s,0,2),r=this._cp3(s,t,0,1);let h;if(i>=4)h=s[3];else{const e=this._sub(t,n);h=this._add(r,e)}this._addAngledTicks(e,n,t,this._mid(r,h)),this._addAngledTicks(e,r,h,this._mid(n,t));break}case"GapExtentMidline":{const t=this._cp2(s,2,0),r=this._cp3(s,t,0,1);let h;if(i>=4)h=s[3];else{const e=this._sub(t,n);h=this._add(r,e)}const o=[];o.push(this._mid(n,r)),o.push(this._mid(t,h)),e.push(o);break}case"Chevron":{const t=this._cp2(s,-1,-1);let r;if(i>=3)r=s[2];else{const e=this._sub(t,n);this._leftPerpendicular(e),r=this._add(n,e)}e.push([t,this._makeCtrlPt(n),r]);break}case"PerpendicularWithArc":{const t=this._cp2(s,0,-2),r=this._cp3(s,t,.5,-1),h=this._sub(t,n),o=this._norm(h);h[0]/=o,h[1]/=o;const a=this._crossProduct(h,this._sub(r,n));let l=this._dotProduct(h,this._sub(r,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=[n[0]+h[0]*l,n[1]+h[1]*l];let u=this._leftPerp(h),_=[];if(_.push([c[0]-u[0]*a,c[1]-u[1]*a]),_.push([c[0]+u[0]*a,c[1]+u[1]*a]),e.push(_),i>=4){const t=s[3];let i=this._dotProduct(h,this._sub(t,n));i<.1*o?i=.1*o:i>.9*o&&(i=.9*o);const r=[n[0]+h[0]*i,n[1]+h[1]*i],a=this._crossProduct(h,this._sub(t,n)),l=[];l.push([r[0]-u[0]*a,r[1]-u[1]*a]),l.push([r[0]+u[0]*a,r[1]+u[1]*a]),e.push(l)}const p=[t[0]+u[0]*a,t[1]+u[1]*a];u=this._sub(t,p);const f=Math.cos(Math.PI/18);let d=Math.sin(Math.PI/18);a<0&&(d=-d),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(u,f,d),_.push(this._add(p,u));e.push(_);break}case"ClosedHalfCircle":{const t=this._cp2(s,2,0),i=this._mid(n,t),r=this._sub(t,i),h=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),a=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,o),a.push(this._add(i,r));e.push(a);break}case"TripleParallelExtended":{const t=this._cp2(s,0,-2),i=this._cp3(s,t,1,-2),r=this._mid(n,t),h=this._sub(i,t);this._normalize(h);const o=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,i),c=[t,n];c.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(c);const u=[];u.push([r[0]-h[0]*o,r[1]-h[1]*o]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),a(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);const _=[t,i];e.push(_);break}case"ParallelWithTicks":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._sub(t,n);this._normalize(r);const h=this._crossProduct(r,this._sub(i,n)),o=this._leftPerp(r);this._addAngledTicks(e,n,t,i),this._addAngledTicks(e,this._add2(n,o[0]*h,o[1]*h),this._add2(t,o[0]*h,o[1]*h),this._mid(n,t));break}case"Parallel":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._sub(t,n);this._normalize(r);const h=this._leftPerp(r),o=this._crossProduct(r,this._sub(i,n));let a=[n,t];e.push(a),a=[],a.push([n[0]+h[0]*o,n[1]+h[1]*o]),a.push([t[0]+h[0]*o,t[1]+h[1]*o]),e.push(a);break}case"PerpendicularToFirstSegment":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);const o=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const a=[];a.push([r[0]-h[0]*o*.25,r[1]-h[1]*o*.25]),a.push([r[0]+h[0]*o*1.25,r[1]+h[1]*o*1.25]),e.push(a);break}case"ParallelOffset":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._sub(t,n);this._normalize(r);const h=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r);const o=[];o.push([n[0]-r[0]*h,n[1]-r[1]*h]),o.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(o);const a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"OffsetOpposite":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._sub(t,n);this._normalize(r);const h=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r);const o=[];o.push([n[0]-r[0]*h,n[1]-r[1]*h]),o.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(o);break}case"OffsetSame":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),r=this._sub(t,n);this._normalize(r);const h=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r);const o=[];o.push([n[0]+r[0]*h,n[1]+r[1]*h]),o.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(o);break}case"CircleWithArc":{let t=this._cp2(s,3,0);const r=this._cp3(s,t,.5,-1);let h,o;if(i>=4)h=s[3],o=this._crossProduct(this._sub(h,t),this._sub(r,t))>0;else{h=t,o=this._crossProduct(this._sub(h,n),this._sub(r,n))>0;const e=24*this._geomUnitsPerPoint,s=this._sub(h,n);this._normalize(s,e);const i=Math.sqrt(2)/2;this._rotateDirect(s,i,o?i:-i),t=this._add(n,s)}const l=this._sub(t,n),c=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),_=[t];for(let t=1;t<=36;t++)this._rotateDirect(l,c,u),_.push(this._add(n,l));this._add90DegArc(_,t,h,r,o),a(_[_.length-8],1),e.push(_);break}case"DoubleJog":{let t,r=this._cp2(s,-3,1),h=this._cp3(s,r,-1,-.5);if(i>=4)t=s[3];else{const e=n;n=r,t=h;const s=this._dist(n,e),i=this._dist(t,e);let o=30*this._geomUnitsPerPoint;.5*s<o&&(o=.5*s),.5*i<o&&(o=.5*i),r=this._mix(n,o/s,e,(s-o)/s),h=this._mix(t,o/i,e,(i-o)/i)}const o=this._mid(n,r),a=this._mid(t,h),l=this._dist(n,r),c=this._dist(h,t);let u=Math.min(l,c)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const _=Math.cos(Math.PI/4);let p=this._sub(n,r);this._normalize(p,u),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(o,p)),f.push(this._sub(o,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,u),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),r=this._sub(i,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const h=[r[0]/8,r[1]/8],o=this._sub(this._mid(t,i),h);e.push([o,n]);break}case"LineExcludingLastSegment":{const t=this._arrowPath(s),i=[];let n=t.length-2;for(;n--;)i.push(t[n]);e.push(i);break}case"MultivertexArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!1),e.push(i);break}case"CrossedArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!0),e.push(i);break}case"ChevronArrow":{const[t,i]=this._arrowLastSeg(s),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),o=this._norm(h);this._normalize(h);const a=this._crossProduct(h,this._sub(i,t));let l=this._dotProduct(h,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-r&&(l=.95*o-r);const c=[t[0]+h[0]*l,t[1]+h[1]*l],u=this._leftPerp(h),_=[];_.push([c[0]+u[0]*a+h[0]*r,c[1]+u[1]*a+h[1]*r]),_.push(n),_.push([c[0]-u[0]*a+h[0]*r,c[1]-u[1]*a+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{const[t,i]=this._arrowLastSeg(s),r=this._sub(n,t),h=this._norm(r);this._normalize(r);const o=this._crossProduct(r,this._sub(i,t));let a=this._dotProduct(r,this._sub(i,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);const l=[t[0]+r[0]*a,t[1]+r[1]*a];this._leftPerpendicular(r);const c=[];c.push([l[0]+r[0]*o*.5,l[1]+r[1]*o*.5]),c.push(this._mid(l,n)),c.push([l[0]-r[0]*o*.5,l[1]-r[1]*o*.5]),e.push(c);break}case"PartialFirstSegment":{const[t,i]=this._arrowLastSeg(s),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let o=this._dotProduct(r,this._sub(i,t));o<.05*h?o=.05*h:o>.95*h&&(o=.95*h);const a=[t[0]+r[0]*o,t[1]+r[1]*o];e.push([t,a]);break}case"Arch":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),r=this._sub(n,t),h=this._mix(i,1,r,.55),o=this._mix(i,1,r,-.55),a=[n];this._addBezier2(a,n,h,i,4),this._addBezier2(a,i,o,t,4),e.push(a);break}case"CurvedParallelTicks":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),r=this._sub(i,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const h=[r[0]/8,r[1]/8],o=this._sub(this._mid(t,i),h),a=this._sub(this._mix(t,.75,i,.25),h),l=this._sub(this._mix(t,.25,i,.75),h),c=[t];this._addBezier2(c,t,a,o,3),this._addBezier2(c,o,l,i,3),e.push(c);for(let t=0;t<8;t++){const s=c[2*t+1],i=[this._clone(s)];i.push(this._add(s,[r[0]/4,r[1]/4])),e.push(i)}break}case"Arc90Degrees":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),r=[t];this._add90DegArc(r,t,n,i),e.push(r);break}case"TipWithPerpendicularAndTicks":{const[t,i]=this._arrowLastSeg(s),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),o=this._norm(h);this._normalize(h);let a=this._crossProduct(h,this._sub(i,t)),l=this._dotProduct(h,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-r&&(l=.95*o-r);const c=this._leftPerp(h),u=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(o-l-r,r);a=Math.abs(a);const p=[];p.push([u[0]+c[0]*(a+_)-h[0]*_,u[1]+c[1]*(a+_)-h[1]*_]),p.push([u[0]+c[0]*a,u[1]+c[1]*a]),p.push([u[0]-c[0]*a,u[1]-c[1]*a]),p.push([u[0]-c[0]*(a+_)-h[0]*_,u[1]-c[1]*(a+_)-h[1]*_]),e.push(p),e.push([u,n]);break}case"ConcentricCircles":{const t=this._cp2(s,1,0),r=this._cp3(s,t,2,0),h=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);let l=this._dist(t,n),c=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,h,o);if(e.push(u),i>=4){u=[];const t=s[3];l=this._dist(t,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),0===t&&(u.push(this._add(n,c)),a(u[1],1)),this._rotateDirect(c,h,o);e.push(u)}u=[],l=this._dist(r,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,h,o);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(s)[0];const[t,i]=this._arrowLastSeg(s),r=this._sub(n,t),h=this._norm(r);this._normalize(r);const o=Math.abs(this._crossProduct(r,this._sub(i,n)));let a=Math.abs(this._dotProduct(r,this._sub(i,n)));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);const l=Math.max(o,a),c=this._leftPerp(r);let u=[];const _=[n[0]-r[0]*a*.5+c[0]*o*.5,n[1]-r[1]*a*.5+c[1]*o*.5];u.push([_[0],_[1]]),_[0]+=r[0]*l*.5+c[0]*l*.4,_[1]+=r[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),_[0]-=c[0]*l*.25,_[1]-=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=r[0]*l*.5+c[0]*l*.4,_[1]+=r[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),e.push(u),u=[],_[0]=n[0]-r[0]*a*.5-c[0]*o*.5,_[1]=n[1]-r[1]*a*.5-c[1]*o*.5,u.push([_[0],_[1]]),_[0]+=r[0]*l*.5-c[0]*l*.4,_[1]+=r[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),_[0]+=c[0]*l*.25,_[1]+=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=r[0]*l*.5-c[0]*l*.4,_[1]+=r[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),e.push(u);break}case"LinkedChevrons":{const t=this._cp2(s,-5,0),i=this._cp3(s,t,-.2,1),r=this._sub(n,t);this._normalize(r);const h=this._leftPerp(r),o=Math.abs(this._crossProduct(r,this._sub(i,t)));e.push([t,n]);const a=[];a.push([n[0]-r[0]*o+h[0]*o,n[1]-r[1]*o+h[1]*o]),a.push(n),a.push([n[0]-r[0]*o-h[0]*o,n[1]-r[1]*o-h[1]*o]),e.push(a),this._addDash(e,t,[-r[0]*o+h[0]*o,-r[1]*o+h[1]*o]),this._addDash(e,t,[-r[0]*o-h[0]*o,-r[1]*o-h[1]*o]);break}case"SegmentThenHalfCircle":{const t=this._cp2(s,2,0),r=this._cp3(s,t,1.5,0);let h;h=i>=4?s[3]:this._cp3(s,t,1.25,-.5);const o=this._sub(t,n);this._normalize(o);const a=.5*this._dist(t,r),l=this._crossProduct(o,this._sub(h,n))>0,c=Math.cos(Math.PI/18);let u=Math.sin(Math.PI/18);l&&(u=-u);const _=[n,t];o[0]*=a,o[1]*=a;const p=this._add(t,o);o[0]=-o[0],o[1]=-o[1];for(let t=1;t<=18;t++)this._rotateDirect(o,c,u),_.push(this._add(p,o));e.push(_);break}case"LineWithStraightTicks":{const t=this._cp2(s,-2,1),i=this._cp3(s,t,-1,-.5),r=this._sub(i,t);this._normalize(r);const h=this._dotProduct(r,this._sub(t,n)),o=this._dotProduct(r,this._sub(i,n));let a=[n];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push(t),e.push(a),a=[n],a.push([n[0]+r[0]*o,n[1]+r[1]*o]),a.push(i),e.push(a);break}case"DoubleCurve":{const t=this._cp2(s,-5,-1),i=this._cp3(s,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),o=Math.sin(r),l=this._sub(t,n),c=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-o);const u=[n];u.push([n[0]+l[0]*c*.5,n[1]+l[1]*c*.5]),a(u[1],1),u.push([n[0]+l[0]*c*.8,n[1]+l[1]*c*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*c,n[1]+l[1]*c],t,3);const _=this._sub(i,t),p=this._dist(t,i);this._normalize(_),this._rotateDirect(_,h,-o),this._addBezier2(u,t,[i[0]-_[0]*p,i[1]-_[1]*p],[i[0]-_[0]*p*.8,i[1]-_[1]*p*.8],3),u.push(i),e.push(u);break}case"ParallelWithTicksByWidth":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),r=this._sub(t,n);this._normalize(r);const h=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{const t=this._cp2(s,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],i=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=i[0]-e[0],h=e[1]-i[1],o=Math.min(r,h)/10,a=[];a.push([e[0]+o+.75*(r-2*o),e[1]]),a.push([i[0]-o,e[1]]),this._add90DegArc(a,[i[0]-o,e[1]],[i[0],e[1]-o],[i[0],e[1]]),a.push([i[0],i[1]+o]),this._add90DegArc(a,[i[0],i[1]+o],[i[0]-o,i[1]],i),a.push([e[0]+o,i[1]]),this._add90DegArc(a,[e[0]+o,i[1]],[e[0],i[1]+o],[e[0],i[1]]),a.push([e[0],e[1]-o]),this._add90DegArc(a,[e[0],e[1]-o],[e[0]+o,e[1]],e),a.push([e[0]+o+.75*(r-2*o),e[1]]);break}case"ParallelOffsetByValue":{if(s.length<2||0===this._width)break;const t=this._offsetPath(s,.5*this._width);t&&e.push(t);const i=this._offsetPath(s,.5*-this._width);i&&e.push(i);break}default:e.push(s)}}return e}}class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,s){return new S(t,e,s)}}class S extends c{constructor(t,e,s){super(t,!0,!0),this._curveHelper=new _;const i=s?.geomUnitsPerPoint;this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*i,this._endCut=(void 0!==e.endCut?e.endCut:1)*i,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*i,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:s,_middleCut:i}=this,n=t.pathLength(),h=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==s||0!==i)if(e+s+i>=n)for(h.startPath();t.nextPoint();)h.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(h,t,0,e),this._curveHelper.appendSubCurve(h,t,.5*(n-i),.5*(n+i)),this._curveHelper.appendSubCurve(h,t,n-s,s)}else if(0===e&&0===s&&0===i)for(h.startPath();t.nextPoint();)h.pushXY(t.x,t.y);else e+s+i<n&&(0===i?this._curveHelper.appendSubCurve(h,t,e,n-s):(this._curveHelper.appendSubCurve(h,t,e,.5*(n-i)),this._curveHelper.appendSubCurve(h,t,.5*(n+i),n-s)));return 0===h.totalSize?null:h}}class I{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let s=0;s<t.length;s++){let i=Math.abs(t[s]);e&&i<1e-7&&(i=1e-7),this._values.push(i),this._length+=i}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let s=0;s<e;++s)this._values[s]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class v{constructor(){this.pt=null,this.ca=0,this.sa=0}}class k{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class z extends _{constructor(t=0,e=!1){super(t,e),this._tempPos=new k,this._tempPt=[0,0],this._tolerance=u,this._currentPosition=new k}updateTolerance(t){this._tolerance=u*t}init(t,e,s=!0){return s?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){const s=new k;return!!this._nextPosition(t,s,null,e)&&(s.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,s]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=s}nextPointAndAngle(t,e,s=0){const i=this._tempPos;if(!this._nextPosition(t,i,null,s))return!1;i.copyTo(this._currentPosition),e.pt=this._getPoint(i);const[n,r]=this._getAngleCS(this._tempPt,i);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;const e=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const s=new k;return this._nextPosition(t,s,e,1)?(s.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,s,i){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(s){if(0===s.pathSize)if(0===n){const t=e.segment[0];s.pushXY(t[0],t[1])}else s.pushPoint(this.getSegCoord2D(e.segment,n));const t=e.segment[1];s.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==i&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===i?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,s){0===s.pathSize&&(0===n?s.pushPoint(e.segment[0]):s.pushPoint(this.getSegCoord2D(e.segment,n)));const t=e.abscissa/e.segmentLength;1===t?s.pushPoint(e.segment[1]):s.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){const s=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,s)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let s=e+this._partSegCount+1;if(s>=this._pathCursor.pathSize&&(s=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(s),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let s=Math.round((this._partLength-(t+e))/this._patternLength);s<=0&&(s=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+s*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}var A=s(93397);class T{static{this.instance=null}static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,s){return new L(t,e,s)}}class L extends c{constructor(t,e,s){super(t,!0,!0),this._firstCurve=null;const i=s.geomUnitsPerPoint;this._walker=new z,this._walker.updateTolerance(i),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*i,this._offsetAtEnd=(e.customEndingOffset??0)*i;let n=(0,A.FH)(e).dashTemplate;null==n&&(n=[]),n.length%2&&(n=[...n,...n]);let r=0;for(;r<n.length&&0===n[r];)r++;let h=0;const o=[];for(let t=r;t<n.length;t++)0===n[t]?h++:0===h?o.push(n[t]):1&h?(o[o.length-1]+=n[t],h=0):(o.push(n[t]),h=0);n=o,n.length<=1?n=0===n.length||r%2==0?[]:[-1]:n.length%2==1?r%2==1?n.unshift(0):n.push(0):r%2==1&&(n.unshift(0),n.push(0)),this._pattern=new I,this._pattern.init(n,!1),this._pattern.scale(i)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,h.A)(t);return r.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const s=t.pathLength();if(this._pattern.isEmpty()||s<.1*this._pattern.length()){const e=(0,h.A)(t);return r.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,h.A)(t);return r.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let s=t/this._pattern.length();s-=Math.floor(s),t=s*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let i=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),i=!i;e-=t,i?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let s=this._walker.nextCurve(e);if(s)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)s.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(s.pushCursor(this._firstCurve),this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,s=this._firstCurve,this._firstCurve=null;return s?.reset(),s}}class G{static{this.instance=null}static local(){return null===G.instance&&(G.instance=new G),G.instance}execute(t,e,s){return new E(t,e,s)}}class E{constructor(t,e,s){this._inputGeometries=t,this._tileKey=s.tileKey,this._maxInflateSize=s.maxInflateSize*s.geomUnitsPerPoint,this._preventClipping=s.preventClipping,this._width=(void 0!==e.width?e.width:2)*s.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:r.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=m.$Z.module,s=!this._preventClipping&&this._tileKey?(0,m.qc)(t,this._maxInflateSize,!0):t.clone();if(!s)continue;const i={...s.asJSON(),spatialReference:{wkid:g.A.WebMercator.wkid}},n=e.execute(i,-this._width);if(n)for(const t of n.rings)if(t){s.startPath();for(const e of t.reverse())s.pushXY(e[0],s.yFactor*e[1])}return s}}return null}}var O=s(537);class N{static{this.instance=null}static local(){return null===N.instance&&(N.instance=new N),N.instance}execute(t,e,s){return new R(t,e,s)}}class R{constructor(t,e,s){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next();const e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return F(t);case"ConvexHull":return this._constructConvexHull(t);default:return X(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{const e=m.lX.module,s={...t.asJSON(),spatialReference:{wkid:g.A.WebMercator.wkid}},i=e.execute(s);return i?r.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function F(t){const e=(0,O.z8)(t),s={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return r.z.fromJSONCIM(s)}function X(t){switch(t.geometryType){case"esriGeometryPolyline":{const e=[];for(;t.nextPath();)Y(t,e);return r.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function Y(t,e){if(t.seekPathStart(),!t.nextPoint())return;const s=t.x,i=t.y,n=[[s,i]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([s,i])}class D{static{this.instance=null}static local(){return null===D.instance&&(D.instance=new D),D.instance}execute(t,e,s){return new W(t,e,s)}}class W extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new _;const i=s.geomUnitsPerPoint;this._length=(void 0!==e.length?e.length:20)*i,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const s=t.x,i=t.y;t.seekInPath(t.pathSize-1);const n=t.x,h=t.y,o=[n-s,h-i];this._curveHelper.normalize(o);const a=s+(n-s)*this._position/100,l=i+(h-i)*this._position/100,c=Math.cos((90-this._angle)/180*Math.PI);let u=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(u=-u),this._mirror=!this._mirror;const _=[a-this._length/2*c,l-this._length/2*u],p=[a+this._length/2*c,l+this._length/2*u];return e.pushPath([[s,i],_,p,[n,h]]),e}}class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,s){return new U(t,e,s)}}class U{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._offsetX=void 0!==e.offsetX?e.offsetX*i:0,this._offsetY=void 0!==e.offsetY?e.offsetY*i:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+s;return t.reset(),t}}var H=s(60408);class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,s){return new J(t,e,s)}}class J{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=s.tileKey,this._curveHelper=new _,this._offset=(e.offset??1)*i,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*i),10),this._option=e.option||"Fast",this._offsetFlattenError=u*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){const e=(0,h.A)(t),s=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(s){const e=r.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(s),e}return null}const e=t.asJSON();if((0,H.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return r.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=!this._preventClipping&&this._tileKey?(0,m.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;const s=m.xR.module,i=m.mO.module,n=m.hd.module,o=s.execute({...e.asJSON(),spatialReference:{wkid:g.A.WebMercator.wkid}});if(!o)continue;let a,l=q(this._method);return"esriGeometryPolygon"===t.geometryType&&this._offset>0?("square"===l&&(l="bevel"),a=n.executeMany([o],[this._offset],l,"round")[0]):a=i.execute(o,-this._offset,{joins:l,flattenError:this._offsetFlattenError,miterLimit:4}),a?r.z.fromJSONCIM(a):null}return null}}function q(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var Z=s(12359),j=s(28076);class ${static{this.instance=null}static local(){return null===$.instance&&($.instance=new $),$.instance}execute(t,e,s){return new K(t,e,s)}}class K{constructor(t,e,s){const i=s.geomUnitsPerPoint;this._inputGeometries=t,this._length=(void 0!==e.length?e.length:j.D.CIMGeometricEffectRadial.length)*i,this._angle=void 0!==e.angle?e.angle*Math.PI/180:j.D.CIMGeometricEffectRadial.angle,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){const e=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]]),e}if("esriGeometryPolygon"===t.geometryType){const e=(0,Z.IK)(t);if(!e)return null;const s=r.z.createEmptyOptimizedCIM("esriGeometryPolyline");return s.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),s}t=this._inputGeometries.next()}return null}}class Q{static{this.instance=null}static local(){return null===Q.instance&&(Q.instance=new Q),Q.instance}execute(t,e,s){return new tt(t,e,s)}}class tt{constructor(t,e,s){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return et(t.clone());t=this._inputGeometries.next()}return null}}function et(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);const s=t.x,i=t.y;t.seekInPath(t.pathSize-e-1);const n=t.x,r=t.y;t.x=s,t.y=i,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class st{static{this.instance=null}static local(){return null===st.instance&&(st.instance=new st),st.instance}execute(t,e,s){return new it(t,e,s)}}class it{constructor(t,e,s){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,O.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),s,i)}t=this._inputGeometries.next()}return null}_rotate(t,e,s){const i=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const r=t.x-e,h=t.y-s;t.x=e+r*i-h*n,t.y=s+r*n+h*i}return t.reset(),t}}class nt{static{this.instance=null}static local(){return null===nt.instance&&(nt.instance=new nt),nt.instance}execute(t,e,s){return new rt(t,e,s)}}class rt{constructor(t,e,s){this._inputGeometries=t,this._xFactor=void 0!==e.xScaleFactor?e.xScaleFactor:1.15,this._yFactor=void 0!==e.yScaleFactor?e.yScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,O.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),s,i)}}return null}_scaleCursor(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=s+(t.y-s)*this._yFactor;return t.reset(),t}}class ht{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw new Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,s){s&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(const s of this._polyline){if(t<e+s.length)return s[t-e];e+=s.length}return null}getGeometry(){return this._polyline}}class ot{static{this.instance=null}static local(){return null===ot.instance&&(ot.instance=new ot),ot.instance}execute(t,e,s){return new at(t,e,s)}}class at extends c{constructor(t,e,s){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){const e=r.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=[],s=new Array(t.pathSize);let i=0;for(t.seekPathStart();t.nextPoint();)s[i++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,h=!0,o=!1,a=!this._invert;i=0;const l=new ht;let c=e[0];for(;i<e.length-1;){const t=e[i+1],r=s[i],u=s[i+1];i++,h&&(a=r||u?this._invert:!this._invert,h=!1),a?(l.addSegment(c,t,n),n=!1):o=!0,c=t,u&&(a?(a=!1,n=!0):a=!0)}const u=l.getGeometry();if(0===u.length)return null;if(!o&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){const t=u[u.length-1];return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push([t[0][0],t[0][1]]),r.z.fromJSONCIM({paths:u})}const _=u[u.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&u.length>1&&(u[u.length-1].push(...u[0]),u.splice(0,1)),r.z.fromJSONCIM({paths:u})}}var lt=s(49186),ct=s(53966),ut=s(6774);const _t=()=>ct.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class pt{static{this.instance=null}static local(){return null===pt.instance&&(pt.instance=new pt),pt.instance}execute(t,e,s){return new ft(t,e,s)}}class ft extends c{constructor(t,e,s){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new ut.bR(NaN,NaN),this._lastWidth=0;const i=s.geomUnitsPerPoint;this._geomUnitsPerPoint=i,this._halfFromWidth=Math.abs(void 0!==e.fromWidth?e.fromWidth:0)*i*.5,this._halfToWidth=Math.abs(void 0!==e.toWidth?e.toWidth:1)*i*.5,this._originalLength=(void 0!==e.length?e.length:0)*i,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){const e=r.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=t.getCurrentPath().asJSON(),s=m.NS.module.execute(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),i=null==s?null:(0,H.Bi)(s)?s.rings:(0,H.Rg)(s)?s.paths:null;if(!i)return _t().error(new lt.A("mapview-bad-resource","Unable to process geometry")),null;const n=m.Xs.module.execute(s);if((0===this._originalLength||this._originalLength>n)&&n>0){this._length=n;const t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){const e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;const h=[];for(const t of i){const e=new ht,s=new ht;let i=0;this._setFromOffset(t.slice(0,2),e,s);for(let n=0,r=3;r<=t.length;++n,++r)i=this._setOffset(t.slice(n,r),i,e,s);this._setToOffset(t.slice(-2),i,e,s);const[n]=e.getGeometry(),[r]=s.getGeometry();h.push([...n,...r.reverse()])}const o={rings:h,spatialReference:{wkid:g.A.WebMercator.wkid}},a=m.yM.module.execute(o);return r.z.fromJSONCIM(a)}_setFromOffset([[t,e],[s,i]],n,r){const h=this._halfFromWidth,o=new ut.bR(s-t,i-e).normalize().scale(h);n.beginPath([t-o.y,e+o.x]),r.beginPath([t+o.y,e-o.x])}_setToOffset([[t,e],[s,i]],n,r,h){let o;o=(n+=Math.sqrt((s-t)**2+(i-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;const a=new ut.bR(s-t,i-e).normalize().scale(o);r.lineTo([s-a.y,i+a.x]),h.lineTo([s+a.y,i-a.x])}_setOffset([[t,e],[s,i],[n,r]],h,o,a){const l=Math.sqrt((s-t)**2+(i-e)**2);let c;c=h+l>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+l)/this._length,h+=l;const u=new ut.bR(s,i),_=new ut.bR(s-t,i-e).normalize(),p=new ut.bR(n-s,r-i).normalize(),f=ut.bR.sub(p,_),d=o.getPointCount(),g=a.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();const m=_.x*p.x+_.y*p.y;if(m>.99){const t=ut.bR.add(_,p).scale(c/2),e=t.clone().rotate(this._slopeC,this._slopeS);o.lineTo([u.x+e.x,u.y+e.y]);const s=t.rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x-s.x,u.y-s.y])}else{const s=_.x*p.y-_.y*p.x;if(f.scale(1/s),s<0){f.scale(-c).rotateReverse(this._slopeC,this._slopeS);const t=a.getXY(g-1);t||_t().error(new lt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=ut.bR.add(u,f).sub(ut.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x+t.x,u.y+t.y]),a.lineTo([u.x,u.y]),a.lineTo([u.x+e.x,u.y+e.y])}else a.lineTo([u.x+f.x,u.y+f.y])}else{f.scale(c).rotate(this._slopeC,this._slopeS);const t=o.getXY(d-1);t||_t().error(new lt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=ut.bR.add(u,f).sub(ut.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(c).rotate(this._slopeC,this._slopeS),e=p.clone().scale(c).rotate(this._slopeC,this._slopeS);o.lineTo([u.x+t.x,u.y+t.y]),o.lineTo([u.x,u.y]),o.lineTo([u.x+e.x,u.y+e.y])}else o.lineTo([u.x+f.x,u.y+f.y])}const i=Math.acos(m);let n=1;if(c>.25){const t=2*Math.acos(1-.25/c);t<i&&(n=Math.round(i/t))}const r=Math.cos(i/n),h=Math.sin(i/n),l=_.clone();if(s<0){l.rotate(this._slopeC,this._slopeS);const s=o.getXY(d-1);s||_t().error(new lt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=ut.bR.add(u,l.clone().scale(this._lastWidth)),n=ut.bR.sub(i,ut.bR.fromArray(s)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){const s=new ut.bR(t,e),i=this._lastTangent1.clone().scale(this._lastWidth);i.rotate(this._slopeC,this._slopeS);const n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),o.lineTo([s.x+i.x,s.y+i.y]),o.lineTo([s.x,s.y]),o.lineTo([s.x+n.x,s.y+n.y])}}else{l.scale(-1).rotateReverse(this._slopeC,this._slopeS);const s=a.getXY(g-1);s||_t().error(new lt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=ut.bR.add(u,l.clone().scale(this._lastWidth)),n=ut.bR.sub(i,ut.bR.fromArray(s)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){const s=new ut.bR(t,e),i=this._lastTangent1.clone().scale(-this._lastWidth);i.rotateReverse(this._slopeC,this._slopeS);const n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),a.lineTo([s.x+i.x,s.y+i.y]),a.lineTo([s.x,s.y]),a.lineTo([s.x+n.x,s.y+n.y])}}l.scale(c);for(let t=0;t<=n;t++)s<0?(o.lineTo([u.x+l.x,u.y+l.y]),l.rotateReverse(r,h)):(a.lineTo([u.x+l.x,u.y+l.y]),l.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=c,h}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,s){return new gt(t,e,s)}}class gt{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._height=(void 0!==e.amplitude?e.amplitude:2)*i,this._period=(void 0!==e.period?e.period:3)*i,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new I,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new z,this._walker.updateTolerance(i)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=r.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const s=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,s,!1);break;case"Square":this._constructSquare(e,s);break;case"Triangle":this._constructTriangle(e,s);break;case"Random":this._constructCurve(e,s,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,s){let i=Math.round(e/this._period);0===i&&(i=1);const n=16*i+1,r=e/i,h=this._period/16,o=1/n,a=2*Math.PI*e/r,l=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new v;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let i;if(d+=o,s){const t=this._height/2*(1+.3*Math.sin(_*a*e+l));i=t*Math.sin(a*e+c),i+=t*Math.sin(p*a*e+u),i/=2}else i=.5*this._height*Math.sin(.5*a*e);t.pushXY(f.pt[0]-i*f.sa,f.pt[1]+i*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new v;this._walker.curPointAndAngle(i);const n=new v;if(this._walker.nextPointAndAngle(this._period,n)){const r=new v;this._walker.nextPointAndAngle(this._period,r)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(i.pt[0]-this._height/2*i.sa,i.pt[1]+this._height/2*i.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new v;this._walker.curPointAndAngle(i);const n=new v;if(this._walker.nextPointAndAngle(this._period/2,n)){const r=new v;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class mt{static{this.instance=null}static local(){return null===mt.instance&&(mt.instance=new mt),mt.instance}execute(t,e,s){return new Pt(t,e,s)}}class Pt extends l{constructor(t,e,s){super(t),this._geometryWalker=new z,this._geometryWalker.updateTolerance(s),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*s,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*s,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*s,this._pattern=new I,this._pattern.init(e.placementTemplate),this._pattern.scale(s),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{"WithFullGap"===this._originalEndings&&this.isClosed?this._endings="WithMarkers":this._endings=this._originalEndings,this._pattern.extPtGap=0;let s,i=!0;switch(this._endings){case"NoConstraint":s=-this._position,s=this._adjustPosition(s),i=!1;break;case"WithHalfGap":default:s=-this._pattern.lastValue()/2;break;case"WithFullGap":s=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":s=0;break;case"Custom":s=-this._position,s=this._adjustPosition(s),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,i))return null;this._pattern.reset();let n=0;for(;s>n;)s-=n,n=this._pattern.nextValue();n-=s,e=n,this.iteratePath=!0}const s=new v;return this._geometryWalker.nextPointAndAngle(e,s)?"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca),this._angleToLine&&this.internalPlacement.setRotateCS(s.ca,s.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class xt{static{this.instance=null}static local(){return null===xt.instance&&(xt.instance=new xt),xt.instance}execute(t,e,s){return new yt(t,e,s)}}class yt extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new _,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._type=e.extremityPlacement??"Both",this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*s:0,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,s){if(this._placePerPart||(s?t.seekPath(0):t.seekPath(t.totalSize-1)),s||t.seekPathEnd(),s?t.nextPoint():t.prevPoint()){let i=0,[n,r]=[0,0],[h,o]=[t.x,t.y];const a=[0,0];for(;s?t.nextPoint():t.prevPoint();){n=h,r=o,h=t.x,o=t.y;const s=this._curveHelper.getLength(n,r,h,o);if(i+s>e){const t=(e-i)/s,[l,c]=this._curveHelper.getAngleCS(a,n,r,h,o,t),u=this._curveHelper.getCoord2D(n,r,h,o,t);return this.internalPlacement.setTranslate(u[0]-this._offset*c,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(-l,-c),this.internalPlacement}i+=s}}return null}}const Mt=.001;class bt{static{this.instance=null}static local(){return null===bt.instance&&(bt.instance=new bt),bt.instance}execute(t,e,s){return new Ct(t,e,s)}}class Ct extends l{constructor(t,e,s){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new z,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*s,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){const{fromGeometry:e}=m.vZ.module,s=e(t.getCurrentPath().asJSON()).getGeometry(),i=s.getPathStart(0);this._segmentIterator=s.querySegmentIteratorAtVertex(i),this._segCount=s.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=s.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);const e=!isNaN(this._from),s=!isNaN(this._to);e&&(this._from=Math.round(this._from/Mt)*Mt,Math.abs(this._from)<Mt&&(this._from=0)),s&&(this._to=Math.round(this._to/Mt)*Mt,Math.abs(this._to)<Mt&&(this._to=0));let i=e?Math.floor(this._from/this._interval):0,n=s?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(i*this._interval-this._from)<Mt&&(!this._skipRate||i%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&s&&!(Math.abs(this._from-this._to)<Mt))if(this._from<=this._to){i*this._interval<this._from+Mt&&++i,n*this._interval>this._to-Mt&&--n;for(let t=i;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{i*this._interval>this._from-Mt&&--i,n*this._interval<this._to+Mt&&++n;for(let t=n;t<=i;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){const t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<Mt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}const s=this._ms.pop(),i=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<Mt?e:(s-this._from)/(this._to-this._from);this._seg.queryCoord2D(i,this._pt);const n=this._seg.getTangent(i);let{x:r,y:h}=n.normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*h,this._pt.y+this._offset*r),this._angleToLine&&(this._keepUpright&&r<0&&(r=-r,h=-h),this.internalPlacement.setRotateCS(r,h)),this.internalPlacement.setMeasure(s),this.internalPlacement}}class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,s){return new St(t,e,s)}}class St extends l{constructor(t,e,s){super(t),this._walker=new z,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*s:0,this._endGap=void 0!==e.endPosition?e.endPosition*s:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new I,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+t;e=s-this._prevPos,this._prevPos=s}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const s=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+s;e=i-this._prevPos,this._prevPos=i,this.iteratePath=!0}const s=new v;return this._walker.nextPointAndAngle(e,s,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(s)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;const e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;const s=this._posIndex<this._positions.length;return this.iterateMultiPath=s,this.iteratePath=s,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;const s=t.pathLength();s<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(s),this._totalPathLen+=s)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){const s=Math.max(0,Math.min(e,this._totalPathLen));let i=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(s<=this._pathStarts[t]+this._pathLengths[t]){i=t;break}if(!t.seekPath(this._pathIndexes[i]))return null;if(!this._walker.init(t,this._pattern,!1))return null;const n=new v,r=Math.max(0,Math.min(s-this._pathStarts[i],this._pathLengths[i]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);const e=this._isFirst&&this._flipFirst;let s,i;return this._angleToLine?(s=t.ca,i=t.sa):(s=1,i=0),e&&(s=-s,i=-i),this.internalPlacement.setRotateCS(s,i),this._isFirst=!1,this.internalPlacement}}var It=s(87811);const vt=512,kt=24,zt=1e-6;class At{static{this.instance=null}static local(){return null===At.instance&&(At.instance=new At),At.instance}execute(t,e,s,i){return new Tt(t,e,s,i)}}class Tt{constructor(t,e,s,i){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*s,this._stepY=Math.abs(e.stepY??16)*s,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){const t=e.seed??13,s=1;this._randomLCG=new It.A(t*s),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*s,this._offsetY=(e.offsetY??0)*s,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=i){const[t,e,s,n]=i.split("/"),r=parseFloat(t),h=parseFloat(e),o=parseFloat(s),a=parseFloat(n);this._graphicOriginX=-(a*2**r+o)*vt,this._graphicOriginY=h*vt,this._testInsidePolygon=!0}this._internalPlacement=new o.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Tt._randValues){Tt._randValues=[];for(let t=0;t<kt;t++)for(let t=0;t<kt;t++)Tt._randValues.push(this._randomLCG.getFloat()),Tt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,s,i,n,r,h,o,a,l,c,u,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,o=a=p=u=Number.MAX_VALUE,l=c=f=_=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,s=r-this._graphicOriginY-this._offsetY,d?(i=this._cosAngle*e-this._sinAngle*s,n=this._sinAngle*e+this._cosAngle*s):(i=e,n=s),o=Math.min(o,i),l=Math.max(l,i),a=Math.min(a,n),c=Math.max(c,n),u=Math.min(u,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);u=u!==Number.MAX_VALUE?u:-512-this._stepY,_=_!==-Number.MAX_VALUE?_:this._stepY,p=p!==Number.MAX_VALUE?p:-this._stepX,f=f!==-Number.MAX_VALUE?f:vt+this._stepX;const g=_-u,m=f-p;if(this._verticalSubdivision=g>=m,this._polygonMin=this._verticalSubdivision?u:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=vt-this._graphicOriginX-this._offsetX+this._stepX,s=-512-this._graphicOriginY-this._offsetY-this._stepY,i=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const n=[[t,s],[t,i],[e,s],[e,i]];t=s=Number.MAX_VALUE,e=i=-Number.MAX_VALUE;for(const r of n){const n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),s=Math.min(s,h),i=Math.max(i,h)}}o=o!==Number.MAX_VALUE?Math.max(o,t):t,a=a!==Number.MAX_VALUE?Math.max(a,s):s,l=l!==-Number.MAX_VALUE?Math.min(l,e):e,c=c!==-Number.MAX_VALUE?Math.min(c,i):i}this._xMin=Math.round(o/this._stepX),this._xMax=Math.round(l/this._stepX),this._yMin=Math.round(a/this._stepY),this._yMax=Math.round(c/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,u,_)}_buildAccelerationMap(t,e,s,i,n){t.reset();const r=new Map,h=this._verticalSubdivision,o=h?n-i:s-e;let a=Math.ceil(o/10);if(a<=1)return;const l=Math.floor(o/a);let c,u,_,p,f,d,g,m,P,x,y;for(a++,this._delta=l,h?(P=-512-2*this._stepY,x=2*this._stepY,y=i):(P=-2*this._stepX,x=vt+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(c=t.x,u=t.y;t.nextPoint();c=_,u=p){if(_=t.x,p=t.y,h){if(u===p||u<P&&p<P||u>x&&p>x)continue;f=Math.min(u,p),d=Math.max(u,p)}else{if(c===_||c<P&&_<P||c>x&&_>x)continue;f=Math.min(c,_),d=Math.max(c,_)}for(;f<d;)g=Math.floor((f-y)/l),Lt(g,c,u,_,p,r),f+=l;m=Math.floor((d-y)/l),m>g&&Lt(m,c,u,_,p,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let s,i;if(this._currentX++,"Random"===this._gridType){const n=(this._currentX%kt+kt)%kt,r=(this._currentY%kt+kt)%kt;s=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Tt._randValues[r*kt+n])*2/3,i=this._graphicOriginY+e+this._stepY*this._randomness*(.5-Tt._randValues[r*kt+n+1])*2/3}else s=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(s,i,this._geometryCursor))return this._internalPlacement.setTranslate(s,i),this._internalPlacement}}_isInsidePolygon(t,e,s){if(null==this._accelerationMap)return function(t,e,s){let i,n,r,h,o=0;for(t+=zt,e+=zt,s.reset();s.nextPath();)if(s.nextPoint())for(i=s.x,n=s.y;s.nextPoint();i=r,n=h)r=s.x,h=s.y,n>e!=h>e&&((r-i)*(e-n)-(h-n)*(t-i)>0?o++:o--);return 0!==o}(t,e,s);t+=zt,e+=zt;const i=this._verticalSubdivision,n=i?e:t,r=Math.floor((n-this._polygonMin)/this._delta),h=this._accelerationMap.get(r);if(!h)return!1;let o,a,l,c=0;for(const s of h){if(o=s[0],a=s[1],i){if(o[1]>e==a[1]>e)continue;l=(a[0]-o[0])*(e-o[1])-(a[1]-o[1])*(t-o[0])}else{if(o[0]>t==a[0]>t)continue;l=(a[1]-o[1])*(t-o[0])-(a[0]-o[0])*(e-o[1])}l>0?c++:c--}return 0!==c}}function Lt(t,e,s,i,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,s],[i,n]])}class Gt{static{this.instance=null}static local(){return null===Gt.instance&&(Gt.instance=new Gt),Gt.instance}execute(t,e,s){return new Et(t,e,s)}}class Et extends l{constructor(t,e,s){super(t),this._curveHelper=new _,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0!==e.startPointOffset?e.startPointOffset*s:0,this._epsilon=.001*s}processPath(t){const e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,s]=[t.x,t.y],[i,n]=[0,0];const r=[0,0];for(;t.nextPoint();){i=t.x,n=t.y;const h=this._curveHelper.getLength(e,s,i,n);if(h<this._epsilon){e=i,s=n;continue}const o=.5+this._position/h,[a,l]=this._curveHelper.getAngleCS(r,e,s,i,n,o),c=this._curveHelper.getCoord2D(e,s,i,n,o);return this.internalPlacement.setTranslate(c[0]-this._offset*l,c[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(a,l),this.internalPlacement}}return this.iteratePath=!1,null}const s="LineEnd"===this._relativeTo;return this.onLine(t,e,s)}onLine(t,e,s){let i,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),i=t.pathLength()/2+e;break;case"LineBeginning":i=e;break;case"LineEnd":i=e,n=!0}s?t.seekPathEnd():t.seekPathStart();let r=0;if(s?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[o,a]=[0,0];const l=[0,0];for(;s?t.prevPoint():t.nextPoint();){o=t.x,a=t.y;const s=this._curveHelper.getLength(e,h,o,a);if(r+s>i){const t=(i-r)/s,[c,u]=this._curveHelper.getAngleCS(l,e,h,o,a,t),_=this._curveHelper.getCoord2D(e,h,o,a,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*u,_[1]+p*c),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-c,-u):this.internalPlacement.setRotateCS(c,u)),this.internalPlacement}e=o,h=a,r+=s}}return null}}class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,s){return new Nt(t,e,s)}}class Nt extends l{constructor(t,e,s){super(t),this._curveHelper=new _,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let s=e[0],i=e[1];if(0!==this._offset){const t=Math.cos(e[2]),n=Math.sin(e[2]);s-=this._offset*n,i+=this._offset*t}return this.internalPlacement.setTranslate(s,i),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let s=0,i=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,o=t.y,a=t.getControlPoint(),l=!0,c=t.nextPoint();for(;c;){const u=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,o,u,_,0)),l?(l=!1,e?(s=n,i=a):(this._endPoints||this._controlPoints&&a)&&this._tags.push([h,o,n])):a?this._controlPoints&&this._tags.push([h,o,Rt(r,n)]):this._regularVertices&&this._tags.push([h,o,Rt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,o,u,_,1)),c=t.nextPoint(),c||(e?p||i?this._controlPoints&&this._tags.push([u,_,Rt(r,s)]):this._regularVertices&&this._tags.push([u,_,Rt(r,s)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([u,_,r])),h=u,o=_,a=p}}this._tagIterator=0}}function Rt(t,e){const s=Math.PI;for(;Math.abs(e-t)>s+2e-15;)e-t>s?e-=2*s:e+=2*s;return(t+e)/2}var Ft=s(32011);class Xt{static{this.instance=null}static local(){return null===Xt.instance&&(Xt.instance=new Xt),Xt.instance}execute(t,e,s){return new Yt(t,e,s)}}class Yt{constructor(t,e,s){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0,this._method=void 0!==e.method?e.method:"OnPolygon",this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new o.W}next(){const t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{const s=(0,Z.TP)(t);s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{const s=(0,O.z8)(t);s&&(this._internalPlacement.setTranslate((s[2]+s[0])/2+this._offsetX,(s[3]+s[1])/2+this._offsetY),e=!0)}break;default:{const s=(0,Ft.d)(t);null!==s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}class Dt{static{this.instance=null}static local(){return null===Dt.instance&&(Dt.instance=new Dt),Dt.instance}execute(t,e,s){return new Wt(t,e,s)}}class Wt{constructor(t,e,s){this._cursor=t,this._effect=e,this._context=s}next(){const t=this._cursor.next();if(t&&t.totalSize>0){const e=t.asJSON(),s=Ut[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return r.z.fromJSONCIM(s)}return null}}function Vt(t,e){const s=e.matcher,i=e.target.getObjectId(),n=`${e.tileKey}_${i}`,r=s.getAnalyzedGraphic(n);return r.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),r}const Ut={textPoint:function(t,e){const s=Vt(t,e);return s&&s.textPoint?{x:s.textPoint[0],y:s.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){const s=Vt(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[0],n=i[1][0],r=i[1][1],h=i[0][0],o=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},endDimensionLine:function(t,e){const s=Vt(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[1],n=i[1][0],r=i[1][1],h=i[0][0],o=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},beginExtensionLine:function(t,e){const s=Vt(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[0],n=i[0][0],r=i[0][1],h=i[1][0],o=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},endExtensionLine:function(t,e){const s=Vt(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[1],n=i[0][0],r=i[0][1],h=i[1][0],o=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}}};class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t){return new Bt(t)}}class Bt extends l{constructor(t){super(t),this._curveHelper=new _}processPath(t){if(this.iteratePath=!0,t.nextPoint()){const[e,s]=[t.x,t.y];if(t.nextPoint()){const[i,n]=[t.x,t.y],r=(e+i)/2,h=(s+n)/2;this.internalPlacement.setTranslate(r,h);const o=this._curveHelper.getAngle(e,s,i,n,0);return this.internalPlacement.setRotate(o),this.internalPlacement}}return this.iteratePath=!1,null}}function Jt(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return i.local();case"CIMGeometricEffectArrow":return f.local();case"CIMGeometricEffectBuffer":return P.local();case"CIMGeometricEffectControlMeasureLine":return b.local();case"CIMGeometricEffectCut":return w.local();case"CIMGeometricEffectDashes":return T.local();case"CIMGeometricEffectDonut":return G.local();case"CIMGeometricEffectJog":return D.local();case"CIMGeometricEffectMove":return V.local();case"CIMGeometricEffectOffset":return B.local();case"CIMGeometricEffectRadial":return $.local();case"CIMGeometricEffectReverse":return Q.local();case"CIMGeometricEffectRotate":return st.local();case"CIMGeometricEffectScale":return nt.local();case"CIMGeometricEffectSuppress":return ot.local();case"CIMGeometricEffectTaperedPolygon":return pt.local();case"CIMGeometricEffectWave":return dt.local();case"CIMGeometricEffectEnclosingPolygon":return N.local();case"PrivateDimensionEffect":return Dt.local()}return null}function qt(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return mt.local();case"CIMMarkerPlacementAtExtremities":return xt.local();case"CIMMarkerPlacementAtMeasuredUnits":return bt.local();case"CIMMarkerPlacementAtRatioPositions":return wt.local();case"CIMMarkerPlacementInsidePolygon":return At.local();case"CIMMarkerPlacementOnLine":return Gt.local();case"PrivatePlacementMultipoint":return Ht.local();case"CIMMarkerPlacementOnVertices":return Ot.local();case"CIMMarkerPlacementPolygonCenter":return Xt.local()}return null}},98939(t,e,s){s.d(e,{W:()=>i});class i{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},35521(t,e,s){s.d(e,{$u:()=>n});var i=s(28076);const n=1024;i.D.CIMSolidStroke.capstyle,i.D.CIMSolidStroke.joinstyle,i.D.CIMSolidStroke.miterlimit},28076(t,e,s){s.d(e,{D:()=>n});var i=s(13337);const n={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}}},13337(t,e,s){s.d(e,{h:()=>i});const i={Relative:0,Absolute:1}},93397(t,e,s){s.d(e,{$w:()=>d,Bu:()=>S,DW:()=>M,FH:()=>T,FM:()=>o,Kn:()=>x,MM:()=>u,Nl:()=>I,O2:()=>v,UE:()=>k,YC:()=>G,YF:()=>z,_1:()=>C,_d:()=>y,_h:()=>h,bs:()=>L,e6:()=>l,gQ:()=>r,jn:()=>p,lW:()=>c,ll:()=>R,mA:()=>_,oI:()=>V,pM:()=>b,pV:()=>P,pk:()=>O,rB:()=>N,xo:()=>w,yX:()=>W,z9:()=>m,zb:()=>A,zr:()=>f});var i=s(28076);function n(t){let e=t.length;for(;e--;)if(!" /-,\n".includes(t.charAt(e)))return!1;return!0}function r(t,e){const s=[];let i=0,r=-1;do{if(r=t.indexOf("[",i),r>=i){if(r>i){const e=t.slice(i,r);s.push([e,null,n(e)])}if(i=r+1,r=t.indexOf("]",i),r>=i){if(r>i){const n=e[t.slice(i,r)];n&&s.push([null,n,!1])}i=r+1}}}while(-1!==r);if(i<t.length){const e=t.slice(i);s.push([e,null,n(e)])}return s}function h(t,e,s){let i="",n=null;for(const s of e){const[e,r,h]=s;if(null!=e&&""!==e)h?n=e:(null!=n&&(i+=n,n=null),i+=e);else{const e=t.readAttribute(r);null!=e&&""!==e&&(null!==n&&(i+=n,n=null),i+=e)}}return a(i,s)}function o(t,e,s,i){let n="",r=null;for(const i of e){const[e,h,o]=i;if(null!=e&&""!==e)o?r=e:(null!=r&&(n+=r,r=null),n+=e);else{let e=h;null!=s&&(e=E(h,s));const i=t.attributes[e];null!=i&&""!==i&&(null!=r&&(n+=r,r=null),n+=i)}}return a(n,i)}function a(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function l(t){return t?[t[0],t[1],t[2],t[3]/255]:[0,0,0,0]}function c(t){return t.data?.symbol??null}function u(t){return"CIMVectorMarker"===t.type||"CIMPictureMarker"===t.type||"CIMBarChartMarker"===t.type||"CIMCharacterMarker"===t.type||"CIMPieChartMarker"===t.type||"CIMStackedBarChartMarker"===t.type}function _(t){return"CIMGradientStroke"===t.type||"CIMPictureStroke"===t.type||"CIMSolidStroke"===t.type}function p(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function f(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const d=(t,e=0)=>null==t||isNaN(t)?e:t;class g{constructor(t){this._import=t}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(t=>this.module=t)),this._promise}}function m(t){return new g(t)}function P(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function x(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function y(t){let e="normal",s="normal";if(t){const i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?s="bold":i.includes("light")&&(s="lighter")}return{style:e,weight:s}}function M(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function b(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=b(e);if(null!=t)return t}break;case"CIMTextSymbol":return b(t.symbol);case"CIMSolidFill":return t.color}return null}function C(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=C(t);if(null!=e)return e}break}case"CIMTextSymbol":return C(t.symbol);case"CIMSolidStroke":return t.color}}function w(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=w(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return w(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function S(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function I(t){switch(t){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function v(t){return(t?Object.keys(t):[]).map(e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"}))}const k=t=>t.includes("data:image/svg+xml");function z(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}function A(t,e,s,i,n,r,h=!0){const{infos:o}=r;let a=1,l=0,c=0,u=0,_=1;for(const{absoluteAnchorPoint:t,offsetX:e,offsetY:s,rotation:i,size:n,frameHeight:r,rotateClockWise:p,scaleSymbolsProportionally:f}of o)_=t?1:a,c=Y(e,s,l,_,c),u=X(e,s,l,_,u),r&&(f||h)&&(a*=n/r),l=D(i,p,l);const p=Y(i,n,l,_,c),f=X(i,n,l,_,u);return{size:t*a,rotation:D(e,s,l),offsetX:p,offsetY:f}}function T(t){return t?.dashTemplate&&(t.dashTemplate=function(t){return"string"==typeof t?function(t){return t.split(" ").map(t=>Number(t))}(t):t}(t.dashTemplate)),t}function L(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return L(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return L(t.symbol)}}return"Normal"}function G(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=s.size??i.D.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=s.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(s.markerPlacement&&f(s.markerPlacement)){const t=s.size??i.D.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=s.height;null!=t&&t>e&&(e=t)}}return e}}}function E(t,e){if(null!==e){const s=e.get(t);return s?s.name:t}return t}function O(t){return t.map(t=>({...t,propertyName:z(t.propertyName)}))}function N(t){const e={};for(const s in t){const i=t[s];e[z(s)]=i}return e}function R(t){if(!t)return 0;let e=0;for(const s of t)e+=F(s);return e}function F(t){if(!t)return 0;if(function(t){return t.type.startsWith("PRI")}(t))return t.inflateSize??256;switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(d(t.offsetX)),Math.abs(d(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRadial":return Math.abs(t.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function X(t,e,s,i,n){const r=s*Math.PI/180;if(r){const s=Math.cos(r);return(Math.sin(r)*t+s*e)*i+n}return e*i+n}function Y(t,e,s,i,n){const r=s*Math.PI/180;return r?(Math.cos(r)*t-Math.sin(r)*e)*i+n:t*i+n}function D(t,e,s){return e?s-t:s+t}function W(t,e){return Math.max(Math.min((t??e)/100,1),0)}function V(t){return null!=t&&function(t){return"setControlPoint"in t&&"getControlPoint"in t&&"setControlPointAt"in t&&"getControlPointAt"in t}(t)?t:void 0}},18989(t,e,s){s.d(e,{A:()=>i});class i{constructor(t=0,e=0,s=0,i=0){this.x=t,this.y=e,this.width=s,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,s){function i(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}s.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>i})},15660(t,e,s){s.d(e,{A:()=>n});var i=s(88340);class n{constructor(t,e,s,n){this.transformedX=0,this.transformedY=0,this.center=(0,i.fA)(t,e),this.centerT=(0,i.vt)(),this.halfWidth=s/2,this.halfHeight=n/2,this.width=s,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const s=Math.abs(t.centerT[0]-this.centerT[0]),i=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/s,r=(t.halfHeight+this.halfHeight+e)/i,h=Math.min(n,r);return Math.log2(h)}extend(t){const e=Math.min(this.xmin,t.xmin),s=Math.min(this.ymin,t.ymin),i=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-s,r=e+i/2,h=s+n/2;this.width=i,this.height=n,this.halfWidth=i/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){const e=t.readF32(),s=t.readF32(),i=t.readInt32(),r=t.readInt32();return new n(e,s,i,r)}}},75434(t,e,s){s.d(e,{Dj:()=>y,Tl:()=>x});var i=s(16905),n=s(85560),r=s(37585),h=s(88340),o=s(63933),a=s(18989),l=s(15660);const c=Math.PI/180;class u{constructor(t,e,s,i){this._rotationT=(0,n.vt)(),this._transform=(0,n.vt)(),this._angle=0,this._bounds=null;const{mosaicItem:r,rect:h,shaping:o,code:a}=s,l=r.rect;this.width=0===a?h.width:l.width*i,this.height=0===a?h.height:l.height*i,this.x=i*(t+o.xOffset+h.left),this.y=i*(e+o.yOffset-h.top),this.textureBinding=r.textureBinding,this.texcoords={topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]}}set angle(t){this._angle=t,(0,i.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){const{x:t,y:e,width:s,height:h}=this,o=(0,i.$0)((0,n.vt)(),-this.angle),a=(0,i.lw)((0,n.vt)(),o,this._transform);this._offsets={topLeft:(0,r.l0)([0,0],[t,e],a),topRight:(0,r.l0)([0,0],[t+s,e],a),bottomLeft:(0,r.l0)([0,0],[t,e+h],a),bottomRight:(0,r.l0)([0,0],[t+s,e+h],a)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){const t=this.offsets;let e=1/0,s=1/0,i=-1/0,n=-1/0;for(const[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),s=Math.min(s,h),i=Math.max(i,r),n=Math.max(n,h);const r=i-e,h=n-s,o=e+r/2,a=s+h/2;this._bounds=new l.A(o,a,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const _=(t,e)=>({code:0,mosaicItem:{rect:new a.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function p(t,e){return t.forEach(t=>(0,r.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class f{constructor(t,e,s,i){this._rotation=0,this._decorate(t,e,s,i),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==s.angle,this._transform=this._createGlyphTransform(this.bounds,s),this._borderLineSizePx=s.borderLineSizePx,(s.borderLineSizePx||s.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform,s=(0,i.$0)((0,n.vt)(),t);(0,i.lw)(e,s,e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,s,i){if(!s.decoration||"none"===s.decoration||!t.length)return;const n=s.scale,r="underline"===s.decoration?i?.baseline??26:i?.midline??16,h=t[0].textureBinding;for(const s of e){const e=s.startX*n,i=s.startY*n,o=(s.width+s.glyphWidthEnd)*n;t.push(new u(e,i+r*n,_(o,h),1))}}shapeBackground(t){const e=(1.5+(this._borderLineSizePx||0))/2,s=this._borderLineSizePx?e:0,{xmin:i,ymin:n,xmax:r,ymax:h,x:o,y:a,width:c,height:u}=this.bounds,_=[i-8,n-8],f=[r+8,n-8],d=[i-8,h+8],g=[r+8,h+8],m=p([[_[0]-e,_[1]-e],[f[0]+e,f[1]-e],[_[0]+s,_[1]+s],[f[0]-s,f[1]+s]],t),P=p([[d[0]+s,d[1]-s],[g[0]-s,g[1]-s],[d[0]-e,d[1]+e],[g[0]+e,g[1]+e]],t),x=p([[_[0]-e,_[1]-e],[_[0]+s,_[1]+s],[d[0]-e,d[1]+e],[d[0]+s,d[1]-s]],t),y=p([[f[0]-s,f[1]+s],[f[0]+e,f[1]-e],[g[0]-s,g[1]-s],[g[0]+e,g[1]+e]],t),M={main:p([_,f,d,g],t),top:m,bot:P,left:x,right:y};return[new l.A(o,a,c+2*e,u+2*e),M]}get boundsT(){const t=this.bounds,e=(0,r.hZ)((0,h.vt)(),t.x,t.y);if((0,r.l0)(e,e,this._transform),this._hasRotation){const s=Math.max(t.width,t.height);return new l.A(e[0],e[1],s,s)}return new l.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,s=1/0,i=0,n=0;for(const r of t)e=Math.min(e,r.offsets.topLeft[0]),s=Math.min(s,r.offsets.topLeft[1]),i=Math.max(i,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);const r=i-e,h=n-s;return new l.A(e+r/2,s+h/2,r,h)}_createGlyphTransform(t,e){const s=c*e.angle,o=(0,n.vt)(),a=(0,h.vt)();return(0,i.Tl)(o,o,(0,r.hZ)(a,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,i.e$)(o,o,s):((0,i.Tl)(o,o,(0,r.hZ)(a,t.x,t.y)),(0,i.e$)(o,o,s),(0,i.Tl)(o,o,(0,r.hZ)(a,-t.x,-t.y))),o}}class d{constructor(t,e,s,i,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,s)),this.end=Math.max(0,Math.max(e,s)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=i,this.yMin=n,this.yMax=r}}const g=t=>10===t,m=t=>32===t;function P(t,e,s){let i=0;for(let n=e;n<s;n++)m(t[n].code)&&!g(t[n+1].code)&&i++;return i}function x(t,e){const s=e.scale,i=new Array,n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,l="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,c=function(t,e,s){const i=new Array,n=1/s.scale,r=s.maxLineWidth*n,h=e?t.length-1:0,o=e?-1:t.length,a=e?-1:1;let l=h,c=0,u=0,_=l,p=_,f=0,P=1/0,x=0;for(;l!==o;){const{code:e,rect:s,shaping:n}=t[l],o=Math.abs(s.top);if(g(e)||m(e)||(P=Math.min(P,o),x=Math.max(x,o+s.height)),g(e))l!==h&&(i.push(new d(t,_,l-a,c,P===1/0?0:P,x)),P=1/0,x=0),c=0,_=l+a,p=l+a,u=0;else if(m(e))p=l+a,u=0,f=n.xAdvance,c+=n.xAdvance;else if(c>r){if(p!==_){const e=p-2*a;c-=f,i.push(new d(t,_,e,c-u,P,x)),P=1/0,x=0,_=p,c=u}else i.push(new d(t,_,l-a,c,P,x)),P=1/0,x=0,_=l,p=l,c=0;c+=n.xAdvance,u+=n.xAdvance}else c+=n.xAdvance,u+=n.xAdvance;l+=a}const y=new d(t,_,l-a,c,P,x);return y.start>=0&&y.end<t.length&&i.push(y),i}(h,a,e),_=c.length?function(t,e){let s=0;for(let e=0;e<t.length;e++){const{width:i}=t[e];s=Math.max(i,s)}const i="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+i-n,width:s}}(c,e):{y:0,height:0,width:0},p=l?a?1:-1:(0,o.xy)(e.horizontalAlignment),x=(0,o.UD)(e.verticalAlignment),y=2===x?1:0,M=y?0:x-1,b=r?.baseline??22,C=c.length>1,w=y?C?-_.y-_.height:-b:-_.y+M*(_.height/2);for(let r=0;r<c.length;r++){const{start:o,end:a,width:f}=c[r],d=l&&r<c.length-1?P(h,o,a):0,x=d>0?(_.width-f)/d:0;let y=-1*(p+1)*((x>0?_.width:f)/2)-n;const M=(t.isRightToLeft?c.length-1-r:r)*e.lineHeight+w-n;c[r].startX=y,c[r].startY=M;for(let t=o;t<=a;t++){const e=h[t];if(g(e.code))continue;const n=new u(y,M,e,s);y+=e.shaping.xAdvance,x>0&&m(e.code)&&(y+=x),i.push(n)}}return new f(i,c,e,r)}function y(t,e){const s=e.scale,{faceInfo:i,glyphs:n}=t,r=n.map(t=>new u(0,0,t,s));return new f(r,[],e,i)}},69221(t,e,s){s.d(e,{Lu:()=>h,hV:()=>r});var i=s(90629),n=(s(39829),s(76213));function r(t){return(0,i.PN)(Math.round((0,i.Lz)(t)))}function h(t){const e=(0,i.PN)(n.GR),s=(0,i.PN)(n.cp);return Math.max(e,Math.min(t||s,s))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1687],{31687(e,t,r){r.r(t),r.d(t,{ColumnDescriptor:()=>_,ColumnId:()=>n,DisplayEncoding:()=>i,DisplayOptimizationXZBuilder:()=>s,DisplayOptimizationZBuilder:()=>o,Extent:()=>a,FieldMetadata:()=>c,GeometryField:()=>u,GeometryInfo:()=>l,GeometryType:()=>p,MultiscaleGeometryField:()=>g,PageEncodingDescriptor:()=>b,ParquetChunk:()=>w,ParquetFile:()=>d,ParquetPatchChunk:()=>f,QuantizedGeometryBuffer:()=>y,Query:()=>h,QueryStream:()=>m,RangeProviderJs:()=>z,RowGroup:()=>F,RowGroupId:()=>q,default:()=>Ce,enableTracing:()=>x,initSync:()=>ke,queryIntersectsXYStatistics:()=>v,queryIntersectsXZStatistics:()=>S});class _{static __wrap(e){e>>>=0;const t=Object.create(_.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_columndescriptor_free(e,0)}compressedSize(){return ve.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const r=ve.columndescriptor_compression(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}distinctCount(){const e=ve.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ve.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ve.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ve.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ve.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const r=ve.columndescriptor_name(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}nullCount(){const e=ve.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ve.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ve.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=te(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ve.columndescriptor_physicalType(this.__wbg_ptr);return C[e]}uncompressedSize(){return ve.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class n{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_columnid_free(e,0)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);const i=Object.freeze({PBF:0,0:"PBF"});class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){J(e,g);var t=e.__destroy_into_raw();ve.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ve.displayoptimizationxzbuilder_new();return s.__wrap(e)}setCodeField(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,r)}setEncoding(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,r);if(_[1])throw me(_[0])}setFullExtent(e){ve.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ve.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ve.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ve.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ve.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var r=be(t)?0:he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;const n=ve.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,r,_);if(n[1])throw me(n[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ve.displayoptimizationzbuilder_new();return o.__wrap(e)}setCodeField(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,r)}setCooordinatePrecision(e){ve.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ve.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ve.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ve.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setSpatialReference(e,t){var r=be(t)?0:he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;const n=ve.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,r,_);if(n[1])throw me(n[0])}setXColumn(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,r)}setYColumn(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,r)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_extent_free(e,0)}get xmax(){return ve.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ve.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ve.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ve.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ve.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ve.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ve.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ve.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_fieldmetadata_free(e,0)}get type(){const e=ve.fieldmetadata_esri_type(this.__wbg_ptr);return O[e]}get logicalType(){const e=ve.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const r=ve.fieldmetadata_name(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}get physicalType(){const e=ve.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ve.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ve.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,r,_){const n=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),i=Se,s=he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),o=Se,a=ve.geometryfield_fromLocation(n,i,s,o,r,_);if(a[2])throw me(a[1]);return u.__wrap(a[0])}static fromNative(e,t,r){const _=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se,i=ve.geometryfield_fromNative(_,n,t,r);if(i[2])throw me(i[1]);return u.__wrap(i[0])}static fromWkb(e,t,r){const _=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se,i=ve.geometryfield_fromWkb(_,n,t,r);if(i[2])throw me(i[1]);return u.__wrap(i[0])}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_geometryinfo_free(e,0)}static new(){const e=ve.geometryinfo_new();if(e[2])throw me(e[1]);return l.__wrap(e[0])}setGeometry(e){J(e,u);var t=e.__destroy_into_raw();ve.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){J(e,s);var t=e.__destroy_into_raw();const r=ve.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(r[1])throw me(r[0])}setOptmizationZ(e){J(e,o);var t=e.__destroy_into_raw();const r=ve.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(r[1])throw me(r[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);const p=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ve.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get scale(){return ve.__wbg_get_multiscalegeometryfield_scale(this.__wbg_ptr)}has_field(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;return 0!==ve.multiscalegeometryfield_has_field(this.__wbg_ptr,t,r)}static new(e,t,r,_,n){const i=he(r,ve.__wbindgen_malloc,ve.__wbindgen_realloc),s=Se,o=fe(_,ve.__wbindgen_malloc),a=Se,c=fe(n,ve.__wbindgen_malloc),u=Se,l=ve.multiscalegeometryfield_new(e,t,i,s,o,a,c,u);return g.__wrap(l)}set level(e){ve.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set scale(e){ve.__wbg_set_multiscalegeometryfield_scale(this.__wbg_ptr,e)}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_pageencodingdescriptor_free(e,0)}count(){return ve.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const r=ve.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const r=ve.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ve.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ve.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ve.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ve.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}static deserialize(e){const t=de(e,ve.__wbindgen_malloc),r=Se,_=ve.parquetchunk_deserialize(t,r);return w.__wrap(_)}hasColumn(e){return 0!==ve.parquetchunk_hasColumn(this.__wbg_ptr,e)}insertPatch(e){J(e,f);var t=e.__destroy_into_raw();ve.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=de(e,ve.__wbindgen_malloc),r=Se;ve.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,r)}readAttribute(e,t){return ve.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ve.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ve.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ve.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ve.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ve.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}readX(e){const t=ve.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=ve.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}rowGroup(){return ve.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ve.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ve.parquetchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],1*e[1],1),t}size(){return ve.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,r,_,n,i){J(e,y);const s=ve.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,r,_,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetfile_free(e,0)}byteLength(){return ve.parquetfile_byteLength(this.__wbg_ptr)}compressionCodecs(){const e=ve.parquetfile_compressionCodecs(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,r,_){const n=we(t,ve.__wbindgen_malloc),i=Se,s=ye(r,ve.__wbindgen_malloc),o=Se;return ve.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,be(_)?0:N(_))}createdBy(){const e=ve.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}executeQuery(e,t){return J(e,h),ve.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,be(t)?0:N(t))}fields(e){const t=ve.parquetfile_fields(this.__wbg_ptr,e);var r=te(t[0],t[1]).slice();return ve.__wbindgen_free(t[0],4*t[1],4),r}static fromBinary(e,t){const r=de(e,ve.__wbindgen_malloc),_=Se;let n=0;return be(t)||(J(t,l),n=t.__destroy_into_raw()),ve.parquetfile_fromBinary(r,_,n)}static fromUrl(e,t,r,_){const n=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),i=Se;let s=0;return be(_)||(J(_,l),s=_.__destroy_into_raw()),ve.parquetfile_fromUrl(n,i,t,r,s)}getColumnDescriptor(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,n=ve.parquetfile_getColumnDescriptor(this.__wbg_ptr,t,r);return _.__wrap(n)}getColumnDescriptors(){const e=ve.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.parquetfile_getColumnId(this.__wbg_ptr,t,r);return 4294967297===_?void 0:_}keyValueMetadata(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.parquetfile_keyValueMetadata(this.__wbg_ptr,t,r);let n;return 0!==_[0]&&(n=ae(_[0],_[1]).slice(),ve.__wbindgen_free(_[0],1*_[1],1)),n}keys(){const e=ve.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=te(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ve.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ve.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ve.parquetfile_numRows(this.__wbg_ptr)>>>0}readAttribute(e,t,r){return ve.parquetfile_readAttribute(this.__wbg_ptr,e,t,r)}rowGroups(){const e=ve.parquetfile_rowGroups(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,r){J(e,w);const _=ye(t,ve.__wbindgen_malloc),n=Se;return ve.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,_,n,be(r)?0:N(r))}version(){return ve.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=de(e,ve.__wbindgen_malloc),r=Se,_=ve.parquetpatchchunk_deserialize(t,r);return f.__wrap(_)}serialize(){const e=ve.parquetpatchchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ve.quantizedgeometrybuffer_new();return y.__wrap(e)}readCoordsUnsafe(){return ve.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ve.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_query_free(e,0)}static new(){const e=ve.query_new();return h.__wrap(e)}setExtent(e){ve.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=we(e,ve.__wbindgen_malloc),r=Se;ve.query_setIds(this.__wbg_ptr,t,r)}setOutFields(e){const t=ye(e,ve.__wbindgen_malloc),r=Se;ve.query_setOutFields(this.__wbg_ptr,t,r)}setOutSpatialReference(e){const t=ve.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw me(t[0])}setQuantizationTransform(e){ve.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ve.query_setReturnGeometry(this.__wbg_ptr,e)}setScale(e){ve.query_setScale(this.__wbg_ptr,e)}setWhere(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.query_setWhere(this.__wbg_ptr,t,r)}setWhereEvaluator(e){ve.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=ye(e,ve.__wbindgen_malloc),r=Se;ve.query_setWhereFields(this.__wbg_ptr,t,r)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{static __wrap(e){e>>>=0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_querystream_free(e,0)}next(e){return ve.querystream_next(this.__wbg_ptr,be(e)?0:N(e))}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class z{static __wrap(e){e>>>=0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const r=ve.rangeproviderjs_new(e,t);return z.__wrap(r)}static withFetch(){const e=ve.rangeproviderjs_withFetch();return z.__wrap(e)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class F{static __wrap(e){e>>>=0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,n=ve.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t,r);return _.__wrap(n)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class q{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rowgroupid_free(e,0)}}function x(){ve.enableTracing()}function v(e,t,r,_,n,i,s){const o=ve.queryIntersectsXYStatistics(e,t,r,_,n,i,s);if(o[2])throw me(o[1]);return 0!==o[0]}function S(e,t,r,_,n,i,s){const o=ve.queryIntersectsXZStatistics(e,t,r,_,n,i,s);if(o[2])throw me(o[1]);return 0!==o[0]}function R(){const e={__proto__:null,__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const r="number"==typeof t?t:void 0;ne().setFloat64(e+8,be(r)?0:r,!0),ne().setInt32(e+0,!be(r),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const r="string"==typeof t?t:void 0;var _=be(r)?0:he(r,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,_,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ae(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return ge(function(e,t,r){return e.apply(t,r)},arguments)},__wbg_call_a24592a6f349a97e:function(){return ge(function(e,t,r){return e.call(t,r)},arguments)},__wbg_call_bb28efe6b2f55b86:function(){return ge(function(e,t,r,_){return e.call(t,r,_)},arguments)},__wbg_columndescriptor_new:function(e){return _.__wrap(e)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let r,_;try{r=e,_=t,console.error(ae(e,t))}finally{ve.__wbindgen_free(r,_,1)}},__wbg_fieldmetadata_new:function(e){return c.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return ge(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_8360291721e2339f:function(e,t){return e[t>>>0]},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ae(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(ee(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(K(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ae(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const _=r.a;r.a=0;try{return function(e,t,r,_){ve.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,r,_)}(_,r.b,e,t)}finally{r.a=_}})}finally{r.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return b.__wrap(e)},__wbg_parquetchunk_new:function(e){return w.__wrap(e)},__wbg_parquetfile_new:function(e){return d.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return f.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,r){Uint8Array.prototype.set.call(re(e,t),r)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return m.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return F.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,r){e[t>>>0]=r},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,r){e.name=ae(t,r)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const r=he(t.stack,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;ne().setInt32(e+4,_,!0),ne().setInt32(e+0,r,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e=void 0===r.g?null:r.g;return be(e)?0:N(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return be(e)?0:N(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return be(e)?0:N(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return be(e)?0:N(e)},__wbg_then_792e0c862b060889:function(e,t,r){return e.then(t,r)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return function(e,t,r){const _={a:e,b:t,cnt:1},n=(...e)=>{_.cnt++;const t=_.a;_.a=0;try{return r(t,_.b,...e)}finally{_.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--_.cnt&&(ve.__wbindgen_destroy_closure(_.a,_.b),_.a=0,$.unregister(_))},$.register(n,_,_),n}(e,t,k)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return function(e,t){return e>>>=0,ue().subarray(e/4,e/4+t)}(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return re(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ae(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var r=re(e,t).slice();return ve.__wbindgen_free(e,1*t,1),r},__wbindgen_init_externref_table:function(){const e=ve.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":e}}function k(e,t,r){const _=ve.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,r);if(_[1])throw me(_[0])}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);const C=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],O=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_columndescriptor_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_columnid_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_fieldmetadata_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_geometryfield_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_geometryinfo_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_multiscalegeometryfield_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_pageencodingdescriptor_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetchunk_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetfile_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetpatchchunk_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_query_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rangeproviderjs_free(e>>>0,1)),Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rowgroup_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rowgroupid_free(e>>>0,1));function N(e){const t=ve.__externref_table_alloc();return ve.__wbindgen_externrefs.set(t,e),t}function J(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbindgen_destroy_closure(e.a,e.b));function K(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function ee(e,t){return e>>>=0,(null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ve.memory.buffer)),oe).subarray(e/2,e/2+t)}function te(e,t){e>>>=0;const r=ne(),_=[];for(let n=e;n<e+4*t;n+=4)_.push(ve.__wbindgen_externrefs.get(r.getUint32(n,!0)));return ve.__externref_drop_slice(e,t),_}function re(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let _e=null;function ne(){return(null===_e||!0===_e.buffer.detached||void 0===_e.buffer.detached&&_e.buffer!==ve.memory.buffer)&&(_e=new DataView(ve.memory.buffer)),_e}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ve.memory.buffer)),ie}let oe=null;function ae(e,t){return function(e,t){return qe+=t,qe>=Fe&&(ze=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ze.decode(),qe=t),ze.decode(pe().subarray(e,e+t))}(e>>>=0,t)}let ce=null;function ue(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ve.memory.buffer)),ce}let le=null;function pe(){return null!==le&&0!==le.byteLength||(le=new Uint8Array(ve.memory.buffer)),le}function ge(e,t){try{return e.apply(this,t)}catch(e){const t=N(e);ve.__wbindgen_exn_store(t)}}function be(e){return null==e}function we(e,t){const r=t(4*e.length,4)>>>0;return ue().set(e,r/4),Se=e.length,r}function de(e,t){const r=t(1*e.length,1)>>>0;return pe().set(e,r/1),Se=e.length,r}function fe(e,t){const r=t(8*e.length,8)>>>0;return se().set(e,r/8),Se=e.length,r}function ye(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=N(e[t]);ne().setUint32(r+4*t,_,!0)}return Se=e.length,r}function he(e,t,r){if(void 0===r){const r=xe.encode(e),_=t(r.length,1)>>>0;return pe().subarray(_,_+r.length).set(r),Se=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=pe();let s=0;for(;s<_;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==_){0!==s&&(e=e.slice(s)),n=r(n,_,_=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+_);s+=xe.encodeInto(e,t).written,n=r(n,_,s,1)>>>0}return Se=s,n}function me(e){const t=ve.__wbindgen_externrefs.get(e);return ve.__externref_table_dealloc(e),t}let ze=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ze.decode();const Fe=2146435072;let qe=0;const xe=new TextEncoder;"encodeInto"in xe||(xe.encodeInto=function(e,t){const r=xe.encode(e);return t.set(r),{read:e.length,written:r.length}});let ve,Se=0;function Re(e,t){return ve=e.exports,_e=null,ie=null,oe=null,ce=null,le=null,ve.__wbindgen_start(),ve}function ke(e){if(void 0!==ve)return ve;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=R();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),Re(new WebAssembly.Instance(e,t))}async function Ce(e){if(void 0!==ve)return ve;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=R();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:_}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return Re(r)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1687],{31687(e,t,r){r.r(t),r.d(t,{ColumnDescriptor:()=>_,ColumnId:()=>n,DisplayEncoding:()=>i,DisplayOptimizationXZBuilder:()=>s,DisplayOptimizationZBuilder:()=>o,Extent:()=>a,FieldMetadata:()=>c,GeometryField:()=>u,GeometryInfo:()=>l,GeometryType:()=>p,MultiscaleGeometryField:()=>g,PageEncodingDescriptor:()=>b,ParquetChunk:()=>w,ParquetFile:()=>d,ParquetPatchChunk:()=>f,QuantizedGeometryBuffer:()=>y,Query:()=>h,QueryStream:()=>m,RangeProviderJs:()=>z,RowGroup:()=>F,RowGroupId:()=>q,default:()=>Ce,enableTracing:()=>x,initSync:()=>ke,queryIntersectsXYStatistics:()=>v,queryIntersectsXZStatistics:()=>S});class _{static __wrap(e){e>>>=0;const t=Object.create(_.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_columndescriptor_free(e,0)}compressedSize(){return ve.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const r=ve.columndescriptor_compression(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}distinctCount(){const e=ve.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ve.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ve.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ve.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ve.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const r=ve.columndescriptor_name(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}nullCount(){const e=ve.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ve.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ve.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=te(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ve.columndescriptor_physicalType(this.__wbg_ptr);return C[e]}uncompressedSize(){return ve.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class n{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_columnid_free(e,0)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);const i=Object.freeze({PBF:0,0:"PBF"});class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){J(e,g);var t=e.__destroy_into_raw();ve.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ve.displayoptimizationxzbuilder_new();return s.__wrap(e)}setCodeField(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,r)}setEncoding(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,r);if(_[1])throw me(_[0])}setFullExtent(e){ve.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ve.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ve.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ve.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ve.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var r=be(t)?0:he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;const n=ve.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,r,_);if(n[1])throw me(n[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ve.displayoptimizationzbuilder_new();return o.__wrap(e)}setCodeField(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,r)}setCooordinatePrecision(e){ve.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ve.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ve.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ve.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setSpatialReference(e,t){var r=be(t)?0:he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;const n=ve.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,r,_);if(n[1])throw me(n[0])}setXColumn(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,r)}setYColumn(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,r)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_extent_free(e,0)}get xmax(){return ve.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ve.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ve.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ve.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ve.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ve.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ve.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ve.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_fieldmetadata_free(e,0)}get type(){const e=ve.fieldmetadata_esri_type(this.__wbg_ptr);return O[e]}get logicalType(){const e=ve.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const r=ve.fieldmetadata_name(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}get physicalType(){const e=ve.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ve.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ve.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,r,_){const n=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),i=Se,s=he(t,ve.__wbindgen_malloc,ve.__wbindgen_realloc),o=Se,a=ve.geometryfield_fromLocation(n,i,s,o,r,_);if(a[2])throw me(a[1]);return u.__wrap(a[0])}static fromNative(e,t,r){const _=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se,i=ve.geometryfield_fromNative(_,n,t,r);if(i[2])throw me(i[1]);return u.__wrap(i[0])}static fromWkb(e,t,r){const _=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se,i=ve.geometryfield_fromWkb(_,n,t,r);if(i[2])throw me(i[1]);return u.__wrap(i[0])}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_geometryinfo_free(e,0)}static new(){const e=ve.geometryinfo_new();if(e[2])throw me(e[1]);return l.__wrap(e[0])}setGeometry(e){J(e,u);var t=e.__destroy_into_raw();ve.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){J(e,s);var t=e.__destroy_into_raw();const r=ve.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(r[1])throw me(r[0])}setOptmizationZ(e){J(e,o);var t=e.__destroy_into_raw();const r=ve.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(r[1])throw me(r[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);const p=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ve.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get scale(){return ve.__wbg_get_multiscalegeometryfield_scale(this.__wbg_ptr)}has_field(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;return 0!==ve.multiscalegeometryfield_has_field(this.__wbg_ptr,t,r)}static new(e,t,r,_,n){const i=he(r,ve.__wbindgen_malloc,ve.__wbindgen_realloc),s=Se,o=fe(_,ve.__wbindgen_malloc),a=Se,c=fe(n,ve.__wbindgen_malloc),u=Se,l=ve.multiscalegeometryfield_new(e,t,i,s,o,a,c,u);return g.__wrap(l)}set level(e){ve.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set scale(e){ve.__wbg_set_multiscalegeometryfield_scale(this.__wbg_ptr,e)}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_pageencodingdescriptor_free(e,0)}count(){return ve.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const r=ve.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const r=ve.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=r[0],t=r[1],ae(r[0],r[1])}finally{ve.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ve.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ve.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ve.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ve.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}static deserialize(e){const t=de(e,ve.__wbindgen_malloc),r=Se,_=ve.parquetchunk_deserialize(t,r);return w.__wrap(_)}hasColumn(e){return 0!==ve.parquetchunk_hasColumn(this.__wbg_ptr,e)}insertPatch(e){J(e,f);var t=e.__destroy_into_raw();ve.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=de(e,ve.__wbindgen_malloc),r=Se;ve.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,r)}readAttribute(e,t){return ve.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ve.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ve.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ve.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ve.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ve.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}readX(e){const t=ve.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=ve.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}rowGroup(){return ve.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ve.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ve.parquetchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],1*e[1],1),t}size(){return ve.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,r,_,n,i){J(e,y);const s=ve.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,r,_,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetfile_free(e,0)}byteLength(){return ve.parquetfile_byteLength(this.__wbg_ptr)}compressionCodecs(){const e=ve.parquetfile_compressionCodecs(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,r,_){const n=we(t,ve.__wbindgen_malloc),i=Se,s=ye(r,ve.__wbindgen_malloc),o=Se;return ve.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,be(_)?0:N(_))}createdBy(){const e=ve.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],1*e[1],1)),t}executeQuery(e,t){return J(e,h),ve.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,be(t)?0:N(t))}fields(e){const t=ve.parquetfile_fields(this.__wbg_ptr,e);var r=te(t[0],t[1]).slice();return ve.__wbindgen_free(t[0],4*t[1],4),r}static fromBinary(e,t){const r=de(e,ve.__wbindgen_malloc),_=Se;let n=0;return be(t)||(J(t,l),n=t.__destroy_into_raw()),ve.parquetfile_fromBinary(r,_,n)}static fromUrl(e,t,r,_){const n=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),i=Se;let s=0;return be(_)||(J(_,l),s=_.__destroy_into_raw()),ve.parquetfile_fromUrl(n,i,t,r,s)}getColumnDescriptor(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,n=ve.parquetfile_getColumnDescriptor(this.__wbg_ptr,t,r);return _.__wrap(n)}getColumnDescriptors(){const e=ve.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.parquetfile_getColumnId(this.__wbg_ptr,t,r);return 4294967297===_?void 0:_}keyValueMetadata(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,_=ve.parquetfile_keyValueMetadata(this.__wbg_ptr,t,r);let n;return 0!==_[0]&&(n=ae(_[0],_[1]).slice(),ve.__wbindgen_free(_[0],1*_[1],1)),n}keys(){const e=ve.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=te(e[0],e[1]).slice(),ve.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ve.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ve.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ve.parquetfile_numRows(this.__wbg_ptr)>>>0}readAttribute(e,t,r){return ve.parquetfile_readAttribute(this.__wbg_ptr,e,t,r)}rowGroups(){const e=ve.parquetfile_rowGroups(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,r){J(e,w);const _=ye(t,ve.__wbindgen_malloc),n=Se;return ve.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,_,n,be(r)?0:N(r))}version(){return ve.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=de(e,ve.__wbindgen_malloc),r=Se,_=ve.parquetpatchchunk_deserialize(t,r);return f.__wrap(_)}serialize(){const e=ve.parquetpatchchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return ve.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ve.quantizedgeometrybuffer_new();return y.__wrap(e)}readCoordsUnsafe(){return ve.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ve.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_query_free(e,0)}static new(){const e=ve.query_new();return h.__wrap(e)}setExtent(e){ve.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=we(e,ve.__wbindgen_malloc),r=Se;ve.query_setIds(this.__wbg_ptr,t,r)}setOutFields(e){const t=ye(e,ve.__wbindgen_malloc),r=Se;ve.query_setOutFields(this.__wbg_ptr,t,r)}setOutSpatialReference(e){const t=ve.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw me(t[0])}setQuantizationTransform(e){ve.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ve.query_setReturnGeometry(this.__wbg_ptr,e)}setScale(e){ve.query_setScale(this.__wbg_ptr,e)}setWhere(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se;ve.query_setWhere(this.__wbg_ptr,t,r)}setWhereEvaluator(e){ve.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=ye(e,ve.__wbindgen_malloc),r=Se;ve.query_setWhereFields(this.__wbg_ptr,t,r)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{static __wrap(e){e>>>=0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_querystream_free(e,0)}next(e){return ve.querystream_next(this.__wbg_ptr,be(e)?0:N(e))}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class z{static __wrap(e){e>>>=0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const r=ve.rangeproviderjs_new(e,t);return z.__wrap(r)}static withFetch(){const e=ve.rangeproviderjs_withFetch();return z.__wrap(e)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class F{static __wrap(e){e>>>=0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=he(e,ve.__wbindgen_malloc,ve.__wbindgen_realloc),r=Se,n=ve.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t,r);return _.__wrap(n)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class q{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_rowgroupid_free(e,0)}}function x(){ve.enableTracing()}function v(e,t,r,_,n,i,s){const o=ve.queryIntersectsXYStatistics(e,t,r,_,n,i,s);if(o[2])throw me(o[1]);return 0!==o[0]}function S(e,t,r,_,n,i,s){const o=ve.queryIntersectsXZStatistics(e,t,r,_,n,i,s);if(o[2])throw me(o[1]);return 0!==o[0]}function R(){const e={__proto__:null,__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const r="number"==typeof t?t:void 0;ne().setFloat64(e+8,be(r)?0:r,!0),ne().setInt32(e+0,!be(r),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const r="string"==typeof t?t:void 0;var _=be(r)?0:he(r,ve.__wbindgen_malloc,ve.__wbindgen_realloc),n=Se;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,_,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ae(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return ge(function(e,t,r){return e.apply(t,r)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return ge(function(e,t,r,_,n){return e.call(t,r,_,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return ge(function(e,t,r){return e.call(t,r)},arguments)},__wbg_columndescriptor_new:function(e){return _.__wrap(e)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let r,_;try{r=e,_=t,console.error(ae(e,t))}finally{ve.__wbindgen_free(r,_,1)}},__wbg_fieldmetadata_new:function(e){return c.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return ge(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_8360291721e2339f:function(e,t){return e[t>>>0]},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ae(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(ee(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(K(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ae(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const _=r.a;r.a=0;try{return function(e,t,r,_){ve.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,r,_)}(_,r.b,e,t)}finally{r.a=_}})}finally{r.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return b.__wrap(e)},__wbg_parquetchunk_new:function(e){return w.__wrap(e)},__wbg_parquetfile_new:function(e){return d.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return f.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,r){Uint8Array.prototype.set.call(re(e,t),r)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return m.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return F.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,r){e[t>>>0]=r},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,r){e.name=ae(t,r)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const r=he(t.stack,ve.__wbindgen_malloc,ve.__wbindgen_realloc),_=Se;ne().setInt32(e+4,_,!0),ne().setInt32(e+0,r,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e=void 0===r.g?null:r.g;return be(e)?0:N(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return be(e)?0:N(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return be(e)?0:N(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return be(e)?0:N(e)},__wbg_then_792e0c862b060889:function(e,t,r){return e.then(t,r)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return function(e,t,r){const _={a:e,b:t,cnt:1},n=(...e)=>{_.cnt++;const t=_.a;_.a=0;try{return r(t,_.b,...e)}finally{_.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--_.cnt&&(ve.__wbindgen_destroy_closure(_.a,_.b),_.a=0,$.unregister(_))},$.register(n,_,_),n}(e,t,k)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return function(e,t){return e>>>=0,ue().subarray(e/4,e/4+t)}(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return re(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ae(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var r=re(e,t).slice();return ve.__wbindgen_free(e,1*t,1),r},__wbindgen_init_externref_table:function(){const e=ve.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":e}}function k(e,t,r){const _=ve.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,r);if(_[1])throw me(_[0])}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);const C=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],O=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_columndescriptor_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_columnid_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_fieldmetadata_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_geometryfield_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_geometryinfo_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_multiscalegeometryfield_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_pageencodingdescriptor_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetchunk_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetfile_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_parquetpatchchunk_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_query_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rangeproviderjs_free(e>>>0,1)),Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rowgroup_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_rowgroupid_free(e>>>0,1));function N(e){const t=ve.__externref_table_alloc();return ve.__wbindgen_externrefs.set(t,e),t}function J(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbindgen_destroy_closure(e.a,e.b));function K(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function ee(e,t){return e>>>=0,(null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ve.memory.buffer)),oe).subarray(e/2,e/2+t)}function te(e,t){e>>>=0;const r=ne(),_=[];for(let n=e;n<e+4*t;n+=4)_.push(ve.__wbindgen_externrefs.get(r.getUint32(n,!0)));return ve.__externref_drop_slice(e,t),_}function re(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let _e=null;function ne(){return(null===_e||!0===_e.buffer.detached||void 0===_e.buffer.detached&&_e.buffer!==ve.memory.buffer)&&(_e=new DataView(ve.memory.buffer)),_e}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ve.memory.buffer)),ie}let oe=null;function ae(e,t){return function(e,t){return qe+=t,qe>=Fe&&(ze=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ze.decode(),qe=t),ze.decode(pe().subarray(e,e+t))}(e>>>=0,t)}let ce=null;function ue(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ve.memory.buffer)),ce}let le=null;function pe(){return null!==le&&0!==le.byteLength||(le=new Uint8Array(ve.memory.buffer)),le}function ge(e,t){try{return e.apply(this,t)}catch(e){const t=N(e);ve.__wbindgen_exn_store(t)}}function be(e){return null==e}function we(e,t){const r=t(4*e.length,4)>>>0;return ue().set(e,r/4),Se=e.length,r}function de(e,t){const r=t(1*e.length,1)>>>0;return pe().set(e,r/1),Se=e.length,r}function fe(e,t){const r=t(8*e.length,8)>>>0;return se().set(e,r/8),Se=e.length,r}function ye(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=N(e[t]);ne().setUint32(r+4*t,_,!0)}return Se=e.length,r}function he(e,t,r){if(void 0===r){const r=xe.encode(e),_=t(r.length,1)>>>0;return pe().subarray(_,_+r.length).set(r),Se=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=pe();let s=0;for(;s<_;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==_){0!==s&&(e=e.slice(s)),n=r(n,_,_=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+_);s+=xe.encodeInto(e,t).written,n=r(n,_,s,1)>>>0}return Se=s,n}function me(e){const t=ve.__wbindgen_externrefs.get(e);return ve.__externref_table_dealloc(e),t}let ze=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ze.decode();const Fe=2146435072;let qe=0;const xe=new TextEncoder;"encodeInto"in xe||(xe.encodeInto=function(e,t){const r=xe.encode(e);return t.set(r),{read:e.length,written:r.length}});let ve,Se=0;function Re(e,t){return ve=e.exports,_e=null,ie=null,oe=null,ce=null,le=null,ve.__wbindgen_start(),ve}function ke(e){if(void 0!==ve)return ve;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=R();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),Re(new WebAssembly.Instance(e,t))}async function Ce(e){if(void 0!==ve)return ve;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=R();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:_}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return Re(r)}}}]);