@arcgis/core 4.26.0-next.20230111 → 4.26.0-next.20230113

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 (296) hide show
  1. package/arcade/ArcadeDate.js +5 -0
  2. package/arcade/Dictionary.js +1 -1
  3. package/arcade/Feature.js +1 -1
  4. package/arcade/arcadeAsyncRuntime.js +1 -1
  5. package/arcade/arcadeCompiler.js +1 -1
  6. package/arcade/arcadeRuntime.js +1 -1
  7. package/arcade/arcadeTimeUtils.js +5 -0
  8. package/arcade/executionError.js +1 -1
  9. package/arcade/featureset/actions/Adapted.js +1 -1
  10. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  11. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  12. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  13. package/arcade/featureset/support/FeatureSet.js +1 -1
  14. package/arcade/featureset/support/shared.js +1 -1
  15. package/arcade/featureset/support/sqlUtils.js +1 -1
  16. package/arcade/functions/date.js +1 -1
  17. package/arcade/functions/featuresetbase.js +1 -1
  18. package/arcade/functions/featuresetstring.js +1 -1
  19. package/arcade/functions/geomasync.js +1 -1
  20. package/arcade/functions/geometry.js +1 -1
  21. package/arcade/functions/geomsync.js +1 -1
  22. package/arcade/functions/maths.js +1 -1
  23. package/arcade/functions/string.js +1 -1
  24. package/arcade/languageUtils.js +1 -1
  25. package/arcade/treeAnalysis.js +1 -1
  26. package/arcade.js +1 -1
  27. package/assets/esri/core/workers/RemoteClient.js +1 -1
  28. package/assets/esri/core/workers/chunks/{c9477250a5d5ebdef00c.js → 01cd5a9cd4cb1f13691c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/028f9a133104e78e60d2.js +1 -0
  30. package/assets/esri/core/workers/chunks/033e6ae5da6afebd993c.js +1 -0
  31. package/assets/esri/core/workers/chunks/05ab092987251d4a1242.js +1 -0
  32. package/assets/esri/core/workers/chunks/1186a56dacaf269d5271.js +1 -0
  33. package/assets/esri/core/workers/chunks/264e1c00936bcafb9a36.js +1 -0
  34. package/assets/esri/core/workers/chunks/2680392cef77d98ad097.js +1 -0
  35. package/assets/esri/core/workers/chunks/27ba1889fe9f1812389a.js +1165 -0
  36. package/assets/esri/core/workers/chunks/2dfb17fa5b6a5d239942.js +1 -0
  37. package/assets/esri/core/workers/chunks/2e3962506c353b562a88.js +1 -0
  38. package/assets/esri/core/workers/chunks/30ae4c22f6b8aab9f841.js +1 -0
  39. package/assets/esri/core/workers/chunks/329e512f210cb3e904f1.js +1 -0
  40. package/assets/esri/core/workers/chunks/3878efe67f43962b46f8.js +1 -0
  41. package/assets/esri/core/workers/chunks/3b6748f414437cc6cfde.js +1 -0
  42. package/assets/esri/core/workers/chunks/41d25407888326c91566.js +1 -0
  43. package/assets/esri/core/workers/chunks/493e2b00133682748e62.js +1 -0
  44. package/assets/esri/core/workers/chunks/4b2edcb8ef7fae4f7d28.js +1 -0
  45. package/assets/esri/core/workers/chunks/{c11d857dca43de2229fc.js → 4c085cee22ff64ce6d1f.js} +1 -1
  46. package/assets/esri/core/workers/chunks/4d8c53e961275b6a4ee1.js +1 -0
  47. package/assets/esri/core/workers/chunks/5049771eeffe208a9cb8.js +1 -0
  48. package/assets/esri/core/workers/chunks/{58d219ffd9dcc45bb0d1.js → 5191f80f2413ee92c875.js} +1 -1
  49. package/assets/esri/core/workers/chunks/5dfed65b615b33588488.js +1 -0
  50. package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +1 -0
  51. package/assets/esri/core/workers/chunks/6216cd8134703fd9d9b4.js +1 -0
  52. package/assets/esri/core/workers/chunks/62c8e43741f2d6141f00.js +1 -0
  53. package/assets/esri/core/workers/chunks/64f137358100a1c818f0.js +1 -0
  54. package/assets/esri/core/workers/chunks/6f5f81855985db7c1936.js +1 -0
  55. package/assets/esri/core/workers/chunks/6fba07833345b2d8d373.js +1 -0
  56. package/assets/esri/core/workers/chunks/{80c7726743baf9f54079.js → 7747ee359d357f6e5858.js} +1 -1
  57. package/assets/esri/core/workers/chunks/78fd609f334a29ef39dc.js +1 -0
  58. package/assets/esri/core/workers/chunks/798cd875d64182741364.js +1 -0
  59. package/assets/esri/core/workers/chunks/{9d247a46e0cfdad26273.js → 8176286f8dd055c8ae05.js} +1 -1
  60. package/assets/esri/core/workers/chunks/8530ac02c840c89cc1df.js +1 -0
  61. package/assets/esri/core/workers/chunks/8a69a9b5a04e7321740d.js +1 -0
  62. package/assets/esri/core/workers/chunks/8bd26c71e78698c16778.js +1 -0
  63. package/assets/esri/core/workers/chunks/8c12b82612f050492fef.js +1 -0
  64. package/assets/esri/core/workers/chunks/90653ef5e718bafd6960.js +1 -0
  65. package/assets/esri/core/workers/chunks/{418922fd99e733df023f.js → 9070aa0a94a9204ded1c.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{2ac0d2164a1b49e6f057.js → 94633a9bb5fa4f4ba4de.js} +1 -1
  67. package/assets/esri/core/workers/chunks/969bb94d5bdc9da114e2.js +1 -0
  68. package/assets/esri/core/workers/chunks/9785dba81a6af339e35a.js +1 -0
  69. package/assets/esri/core/workers/chunks/99e16173584702577b80.js +1 -0
  70. package/assets/esri/core/workers/chunks/9aee6f171d4fbac941d9.js +1 -0
  71. package/assets/esri/core/workers/chunks/a194f90ffe13b3d448b0.js +1 -0
  72. package/assets/esri/core/workers/chunks/a53d194e3eede703a6df.js +1 -0
  73. package/assets/esri/core/workers/chunks/a605bf8bc29099ae1b1a.js +1 -0
  74. package/assets/esri/core/workers/chunks/ba7239089a04098e3619.js +1 -0
  75. package/assets/esri/core/workers/chunks/bd2fe663a2b090b134e9.js +1 -0
  76. package/assets/esri/core/workers/chunks/c16003307aad2f84ac51.js +1 -0
  77. package/assets/esri/core/workers/chunks/c6eb6a97ecc6ed9ce713.js +1 -0
  78. package/assets/esri/core/workers/chunks/c81d898f4aef6ecacdb5.js +1 -0
  79. package/assets/esri/core/workers/chunks/cb83480d7074f6185e21.js +1 -0
  80. package/assets/esri/core/workers/chunks/cd0fa942d57a278b0a44.js +1 -0
  81. package/assets/esri/core/workers/chunks/d55332e4d7b8184fd718.js +1 -0
  82. package/assets/esri/core/workers/chunks/d6842acbfa7a39f3ca30.js +1 -0
  83. package/assets/esri/core/workers/chunks/d798bd544433e932f772.js +1 -0
  84. package/assets/esri/core/workers/chunks/e18851e915cb69f53032.js +1 -0
  85. package/assets/esri/core/workers/chunks/{54899827baea77776fc7.js → ea1054116ec842a4f813.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ed1312c2627c0d7e654d.js +1 -0
  87. package/assets/esri/core/workers/chunks/f2750a7b44e8bc8b1e4c.js +1 -0
  88. package/assets/esri/themes/base/widgets/_Editor.scss +1 -11
  89. package/assets/esri/themes/base/widgets/_ItemList.scss +0 -13
  90. package/assets/esri/themes/dark/main.css +1 -1
  91. package/assets/esri/themes/light/main.css +1 -1
  92. package/assets/esri/themes/light/view.css +1 -1
  93. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  94. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  95. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  96. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  97. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  98. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  99. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  100. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  101. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  102. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  103. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  104. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  105. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  106. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  107. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  108. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  109. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  110. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  111. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  112. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  113. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  114. package/assets/esri/widgets/Sketch/t9n/Sketch_nb.json +1 -1
  115. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  116. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  117. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  118. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  119. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  120. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  121. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  122. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  123. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  124. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  125. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  126. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  127. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  128. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  129. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  130. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  131. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  132. package/chunks/ComponentShader.glsl.js +1 -1
  133. package/chunks/Path.glsl.js +1 -1
  134. package/chunks/Terrain.glsl.js +1 -1
  135. package/chunks/languageUtils.js +1 -1
  136. package/geometry/support/MeshTexture.js +1 -1
  137. package/geometry/support/aaBoundingBox.js +1 -1
  138. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  139. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  140. package/interfaces.d.ts +1400 -1314
  141. package/layers/ImageryTileLayer.js +1 -1
  142. package/layers/VoxelWasmPerSceneView.js +1 -1
  143. package/layers/graphics/data/FeatureStore.js +1 -1
  144. package/layers/graphics/data/QueryEngine.js +1 -1
  145. package/layers/graphics/data/timeSupport.js +1 -1
  146. package/layers/graphics/featureConversionUtils.js +1 -1
  147. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  148. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  149. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  150. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  151. package/layers/mixins/ArcGISImageService.js +1 -1
  152. package/layers/mixins/ImageryTileMixin.js +1 -1
  153. package/layers/support/layerOriginUtils.js +1 -1
  154. package/layers/support/rasterFormats/JpgPlus.js +1 -1
  155. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  156. package/layers/support/rasterFunctions/ConvolutionFunction.js +1 -1
  157. package/layers/support/rasterFunctions/ConvolutionFunctionArguments.js +1 -1
  158. package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
  159. package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
  160. package/layers/support/rasterFunctions/NDVIFunction.js +1 -1
  161. package/layers/support/rasterFunctions/NDVIFunctionArguments.js +1 -1
  162. package/layers/support/rasterFunctions/SlopeFunctionArguments.js +1 -1
  163. package/layers/support/rasterFunctions/StatisticsHistogramFunction.js +5 -0
  164. package/layers/support/rasterFunctions/{StatisticsHistogramsFunctionArguments.js → StatisticsHistogramFunctionArguments.js} +1 -1
  165. package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
  166. package/package.json +1 -1
  167. package/rest/imageService.js +1 -1
  168. package/rest/support/BaseImageMeasureResult.d.ts +4 -0
  169. package/rest/support/ImageAreaParameters.d.ts +4 -0
  170. package/rest/support/{ImageMeasureAreaAndPerimeterParameters.js → ImageAreaParameters.js} +1 -1
  171. package/rest/support/ImageAreaResult.d.ts +4 -0
  172. package/rest/support/{ImageMeasureAreaAndPerimeterResult.js → ImageAreaResult.js} +1 -1
  173. package/rest/support/ImageDistanceParameters.d.ts +4 -0
  174. package/rest/support/{ImageMeasureDistanceAndAngleParameters.js → ImageDistanceParameters.js} +1 -1
  175. package/rest/support/ImageDistanceResult.d.ts +4 -0
  176. package/rest/support/ImageDistanceResult.js +5 -0
  177. package/rest/support/ImageHeightParameters.d.ts +4 -0
  178. package/rest/support/{ImageMeasureHeightParameters.js → ImageHeightParameters.js} +1 -1
  179. package/rest/support/ImageHeightResult.d.ts +4 -0
  180. package/rest/support/{ImageMeasureHeightResult.js → ImageHeightResult.js} +1 -1
  181. package/rest/support/ImagePointParameters.d.ts +4 -0
  182. package/rest/support/{ImageMeasurePointParameters.js → ImagePointParameters.js} +1 -1
  183. package/rest/support/ImagePointResult.d.ts +4 -0
  184. package/rest/support/{ImageMeasurePointResult.js → ImagePointResult.js} +1 -1
  185. package/support/arcadeUtils.js +1 -1
  186. package/support/revision.js +1 -1
  187. package/time/timeReferenceUtils.js +1 -1
  188. package/views/2d/engine/webgl/Overlay.js +1 -1
  189. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  190. package/views/2d/layers/features/FeatureStore2D.js +1 -1
  191. package/views/2d/layers/features/Pipeline.js +1 -1
  192. package/views/2d/layers/features/support/BinStore.js +1 -1
  193. package/views/2d/layers/features/support/ClusterStore.js +1 -1
  194. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  195. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  196. package/views/3d/glTF/internal/Resource.js +1 -1
  197. package/views/3d/glTF/internal/resourceUtils.js +5 -0
  198. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  199. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  200. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  201. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  202. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  203. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  204. package/views/3d/layers/graphics/Labeler.js +1 -1
  205. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  206. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  207. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  208. package/views/3d/state/ViewState.js +1 -1
  209. package/views/3d/state/ViewStateManager.js +1 -1
  210. package/views/3d/terrain/Overlay.js +1 -1
  211. package/views/3d/terrain/OverlayManager.js +1 -1
  212. package/views/3d/terrain/TerrainRenderer.js +1 -1
  213. package/views/3d/terrain/TerrainSurface.js +1 -1
  214. package/views/3d/terrain/TileRenderer.js +1 -1
  215. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  216. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
  217. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  218. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  219. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
  220. package/views/3d/webgl-engine/lib/AnimationTimeStep.js +5 -0
  221. package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
  222. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  223. package/views/3d/webgl-engine/lib/Material.js +1 -1
  224. package/views/3d/webgl-engine/lib/RenderFeature.js +5 -0
  225. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  226. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  227. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  228. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  229. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  230. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  231. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  232. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  233. package/views/draw/support/layerUtils.js +1 -1
  234. package/views/webgl/RenderingContext.js +1 -1
  235. package/views/webgl/Texture.js +1 -1
  236. package/widgets/Editor/EditorViewModel.js +1 -1
  237. package/widgets/Editor.js +1 -1
  238. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  239. package/widgets/FeatureTemplates/ItemList.js +1 -1
  240. package/widgets/FeatureTemplates/TemplateItem.js +1 -1
  241. package/widgets/FeatureTemplates/TemplateItemGroup.js +1 -1
  242. package/widgets/FeatureTemplates.js +1 -1
  243. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  244. package/widgets/support/decorators/accessibleHandler.js +1 -1
  245. package/assets/esri/core/workers/chunks/038dc3f9ef06ef3c960c.js +0 -1
  246. package/assets/esri/core/workers/chunks/078a0b134210167b629d.js +0 -1
  247. package/assets/esri/core/workers/chunks/080a4be417be4943f6a0.js +0 -1
  248. package/assets/esri/core/workers/chunks/0877bab7c03a1de2e713.js +0 -1
  249. package/assets/esri/core/workers/chunks/0c9200ab19fd2f56f87f.js +0 -1
  250. package/assets/esri/core/workers/chunks/1cbffa96ea6683e5f3ec.js +0 -1
  251. package/assets/esri/core/workers/chunks/1f742c3b11c76814fa4d.js +0 -1
  252. package/assets/esri/core/workers/chunks/2eb2d49c549e53934b8b.js +0 -1
  253. package/assets/esri/core/workers/chunks/332494b96a47b378f4e0.js +0 -1
  254. package/assets/esri/core/workers/chunks/3326536d183a858a2a4d.js +0 -1
  255. package/assets/esri/core/workers/chunks/3f4fc8379fc11bc293cc.js +0 -1
  256. package/assets/esri/core/workers/chunks/43fecd621cd043f64828.js +0 -1165
  257. package/assets/esri/core/workers/chunks/47b0b660f5412097fe26.js +0 -1
  258. package/assets/esri/core/workers/chunks/4c0d7a074083aa9614bb.js +0 -1
  259. package/assets/esri/core/workers/chunks/594d7e871b648d5c9662.js +0 -1
  260. package/assets/esri/core/workers/chunks/680b90ac98e8d1ac0e33.js +0 -1
  261. package/assets/esri/core/workers/chunks/6b589f47cb4731df1639.js +0 -1
  262. package/assets/esri/core/workers/chunks/72557c4b1582aa18ad4d.js +0 -1
  263. package/assets/esri/core/workers/chunks/72b490ad371e0c2264f6.js +0 -1
  264. package/assets/esri/core/workers/chunks/75ce17cf13aab0440572.js +0 -1
  265. package/assets/esri/core/workers/chunks/75f4e884a1a0aedc0afd.js +0 -1
  266. package/assets/esri/core/workers/chunks/7b9ab3fb378172831c14.js +0 -1
  267. package/assets/esri/core/workers/chunks/7bef95b168303bdc4bf1.js +0 -1
  268. package/assets/esri/core/workers/chunks/803492088780e18de801.js +0 -1
  269. package/assets/esri/core/workers/chunks/89003e387684af5ebeac.js +0 -1
  270. package/assets/esri/core/workers/chunks/8f93026764a0cce0901b.js +0 -1
  271. package/assets/esri/core/workers/chunks/98350b6b95da62ef5f12.js +0 -1
  272. package/assets/esri/core/workers/chunks/a9cae0d386aa9c00f744.js +0 -1
  273. package/assets/esri/core/workers/chunks/ad65c24558098f21bbf3.js +0 -1
  274. package/assets/esri/core/workers/chunks/aef90ee3f0979a7acb38.js +0 -1
  275. package/assets/esri/core/workers/chunks/b68c7754b0220b194ecf.js +0 -1
  276. package/assets/esri/core/workers/chunks/c012317f045a74fdd79d.js +0 -1
  277. package/assets/esri/core/workers/chunks/cb42675e5b1c41634c63.js +0 -1
  278. package/assets/esri/core/workers/chunks/cb901033dd15b3b72025.js +0 -1
  279. package/assets/esri/core/workers/chunks/d398b6b8a6b0a95247de.js +0 -1
  280. package/assets/esri/core/workers/chunks/d447ebc944a9867f5a99.js +0 -1
  281. package/assets/esri/core/workers/chunks/daaabed988b6ea866350.js +0 -1
  282. package/assets/esri/core/workers/chunks/e048641971aef9dd4da9.js +0 -1
  283. package/assets/esri/core/workers/chunks/e3fd383aee378cbb0dae.js +0 -1
  284. package/assets/esri/core/workers/chunks/e967ffca641947212992.js +0 -1
  285. package/assets/esri/core/workers/chunks/e9c81eee503c1b112bad.js +0 -1
  286. package/assets/esri/core/workers/chunks/ea6cf948fe2de0242308.js +0 -1
  287. package/assets/esri/core/workers/chunks/ed5e71b45dfefcbb2da4.js +0 -1
  288. package/assets/esri/core/workers/chunks/ee50d5d0afe9bdccc84d.js +0 -1
  289. package/assets/esri/core/workers/chunks/ee91401507833875facc.js +0 -1
  290. package/assets/esri/core/workers/chunks/f7d40dd78ef116f5793b.js +0 -1
  291. package/assets/esri/core/workers/chunks/f8ab6e354834b9c0e857.js +0 -1
  292. package/assets/esri/core/workers/chunks/faea681c279486b7a5e7.js +0 -1
  293. package/layers/support/rasterFunctions/StatisticsHistogramsFunction.js +0 -5
  294. package/rest/support/ImageMeasureDistanceAndAngleResult.js +0 -5
  295. package/views/3d/support/animationUtils.js +0 -5
  296. package/views/3d/webgl-engine/lib/RenderStateFeature.js +0 -5
@@ -1 +1 @@
1
- {"widgetLabel":"Skiciraj","move":"Premik","pan":"Pomik","reset":"Ponastavi","reshape":"Preoblikuj","rotate":"Zasukaj","scale":"Merilo","transform":"Transformiraj","undo":"Razveljavi","redo":"Uveljavi","drawPoint":"Nariši točko","drawPolygon":"Nariši poligon","drawPolyline":"Nariši polilinijo","drawMultipoint":"Nariši mnogotočko","drawCircle":"Nariši krog","drawRectangle":"Nariši pravokotnik","clearDrawing":"Počisti risanje","completeDrawing":"Dokončaj risbo","pauseDrawing":"Začasno ustavi risbo","resumeDrawing":"Nadaljuj risbo","updateDrawing":"Posodobi risbo","addPointTooltip":"Kliknite, da dodate točko","removePointTooltip":"Kliknite, da odstranite to točko","completePolygonTooltip":"Kliknite to točko, da dokončate","startDrawingTooltip":"Kliknite, če želite začeti risati","continueDrawingTooltip":"Kliknite, če želite nadaljevati risanje","completeDrawingTooltip":"Dvokliknite za dokončanje","addMultipointTooltip":"Kliknite, če želite začeti dodajati točke","finishMultipointTooltip":"Dvokliknite za dokončanje","addFreehandTooltip":"Pritisnite navzdol za začetek in spustite za dokončanje","addShapeTooltip":"Kliknite, da dodate obliko ali pritisnite navzdol za začetek in spustite za dokončanje","featureCount":"{count} geoobjekt","featuresCount":"{count} geoobjektov","vertexCount":"{count} lomna točka","verticesCount":"{count} lomnih točk","deleteFeature":"Izbriši geoobjekt","deleteVertex":"Izbriši lomno točko","duplicate":"Podvoji","selectCircle":"Izberi s krogom","selectFeature":"Izberi geoobjekt","selectFeatures":"Izberi geoobjekte","selectLasso":"Izberi z lasom","selectLine":"Izberi z linijo","selectMarquee":"Izberi po potujočem napisu","selectPolygon":"Izberi s poligonom","selectRectangle":"Izberi s pravokotnikom","clearSelection":"Počisti izbiro","freehandSelect":"Izberi prostoročno","selectedFeatures":"Izbrani geoobjekti","settings":"Nastavitve skiciranja","snappingRules":"Pravila privlačnosti","snapToSelf":"Privlači k sebi","snapToOtherFeatures":"Privlači na druge geoobjekte","snappingEnabled":"Privlačnost je omogočena"}
1
+ {"widgetLabel":"Skiciraj","move":"Premik","pan":"Pomik","reset":"Ponastavi","reshape":"Preoblikuj","rotate":"Zasukaj","scale":"Merilo","transform":"Transformiraj","undo":"Razveljavi","redo":"Uveljavi","drawPoint":"Nariši točko","drawPolygon":"Nariši poligon","drawPolyline":"Nariši polilinijo","drawMultipoint":"Nariši mnogotočko","drawCircle":"Nariši krog","drawRectangle":"Nariši pravokotnik","clearDrawing":"Počisti risanje","completeDrawing":"Dokončaj risbo","pauseDrawing":"Začasno ustavi risbo","resumeDrawing":"Nadaljuj risbo","updateDrawing":"Posodobi risbo","addPointTooltip":"Kliknite, da dodate točko","removePointTooltip":"Kliknite, da odstranite to točko","completePolygonTooltip":"Kliknite to točko, da dokončate","startDrawingTooltip":"Kliknite, če želite začeti risati","continueDrawingTooltip":"Kliknite, če želite nadaljevati risanje","completeDrawingTooltip":"Dvokliknite za dokončanje","addMultipointTooltip":"Kliknite, če želite začeti dodajati točke","finishMultipointTooltip":"Dvokliknite za dokončanje","addFreehandTooltip":"Pritisnite navzdol za začetek in spustite za dokončanje","addShapeTooltip":"Kliknite, da dodate obliko ali pritisnite navzdol za začetek in spustite za dokončanje","featureCount":"{count} geoobjekt","featuresCount":"{count} geoobjektov","vertexCount":"{count} lomna točka","verticesCount":"{count} lomnih točk","deleteFeature":"Izbriši geoobjekt","deleteFeatures":"Š_Delete features________________č","deleteVertex":"Izbriši lomno točko","duplicate":"Podvoji","selectCircle":"Izberi s krogom","selectFeature":"Izberi geoobjekt","selectFeatures":"Izberi geoobjekte","selectLasso":"Izberi z lasom","selectLine":"Izberi z linijo","selectMarquee":"Izberi po potujočem napisu","selectPolygon":"Izberi s poligonom","selectRectangle":"Izberi s pravokotnikom","clearSelection":"Počisti izbiro","freehandSelect":"Izberi prostoročno","selectedFeatures":"Izbrani geoobjekti","settings":"Nastavitve skiciranja","snappingRules":"Pravila privlačnosti","snapToSelf":"Privlači k sebi","snapToOtherFeatures":"Privlači na druge geoobjekte","snappingEnabled":"Privlačnost je omogočena","duplicateFeature":"Š_Duplicate feature__________________č","duplicateFeatures":"Š_Duplicate features___________________č"}
@@ -1 +1 @@
1
- {"widgetLabel":"Skiciraj","move":"Premesti","pan":"Pomeri","reset":"Poništi","reshape":"Preoblikuj","rotate":"Rotiraj","scale":"Razmera","transform":"Transformiši","undo":"Opozovi radnju","redo":"Ponovi radnju","drawPoint":"Nacrtaj tačku","drawPolygon":"Nacrtajte poligon","drawPolyline":"Nacrtaj poliliniju","drawMultipoint":"Nacrtaj više tačaka","drawCircle":"Nacrtaj krug","drawRectangle":"Nacrtaj pravougaonik","clearDrawing":"Obriši crtež","completeDrawing":"Završi crtež","pauseDrawing":"Pauziraj crtež","resumeDrawing":"Nastavi crtež","updateDrawing":"Ažuriraj crtež","addPointTooltip":"Kliknite da biste dodali tačku","removePointTooltip":"Kliknite da biste uklonili ovu tačku","completePolygonTooltip":"Kliknite na ovu tačku da biste završili","startDrawingTooltip":"Kliknite da biste počeli da crtate","continueDrawingTooltip":"Kliknite da biste nastavili da crtate","completeDrawingTooltip":"Dvaput kliknite da biste dovršili crtanje","addMultipointTooltip":"Kliknite da biste počeli da dodajete tačke","finishMultipointTooltip":"Dvaput kliknite da biste završili crtanje","addFreehandTooltip":"Pritisnite da biste započeli, a otpustite da biste završili","addShapeTooltip":"Kliknite za dodavanje oblika ili pritisnite nadole za pokretanje, a otpustite za završetak","featureCount":"{count} geoobjekat","featuresCount":"{count} geoobjekata","vertexCount":"{count} teme","verticesCount":"{count} temena","deleteFeature":"Obriši geoobjekat","deleteVertex":"Obriši teme","duplicate":"Dupliraj","selectCircle":"Selektuj pomoću kruga","selectFeature":"Izaberite geoobjekat","selectFeatures":"Selektujte geoobjekte","selectLasso":"Selektujte pomoću lasa","selectLine":"Selektuj pomoću linije","selectMarquee":"Selektuj po pokrivaču","selectPolygon":"Selektuj pomoću poligona","selectRectangle":"Selektuj pomoću pravougaonika","clearSelection":"Izbriši izbor","freehandSelect":"Izbor slobodnom rukom","selectedFeatures":"Izabrani geoobjekti","settings":"Podešavanja skice","snappingRules":"Pravila za kačenje","snapToSelf":"Zakačite za sebe","snapToOtherFeatures":"Zakačite za drugi geoobjetak","snappingEnabled":"Kačenje je omogućeno"}
1
+ {"widgetLabel":"Skiciraj","move":"Premesti","pan":"Pomeri","reset":"Poništi","reshape":"Preoblikuj","rotate":"Rotiraj","scale":"Razmera","transform":"Transformiši","undo":"Opozovi radnju","redo":"Ponovi radnju","drawPoint":"Nacrtaj tačku","drawPolygon":"Nacrtajte poligon","drawPolyline":"Nacrtaj poliliniju","drawMultipoint":"Nacrtaj više tačaka","drawCircle":"Nacrtaj krug","drawRectangle":"Nacrtaj pravougaonik","clearDrawing":"Obriši crtež","completeDrawing":"Završi crtež","pauseDrawing":"Pauziraj crtež","resumeDrawing":"Nastavi crtež","updateDrawing":"Ažuriraj crtež","addPointTooltip":"Kliknite da biste dodali tačku","removePointTooltip":"Kliknite da biste uklonili ovu tačku","completePolygonTooltip":"Kliknite na ovu tačku da biste završili","startDrawingTooltip":"Kliknite da biste počeli da crtate","continueDrawingTooltip":"Kliknite da biste nastavili da crtate","completeDrawingTooltip":"Dvaput kliknite da biste dovršili crtanje","addMultipointTooltip":"Kliknite da biste počeli da dodajete tačke","finishMultipointTooltip":"Dvaput kliknite da biste završili crtanje","addFreehandTooltip":"Pritisnite da biste započeli, a otpustite da biste završili","addShapeTooltip":"Kliknite za dodavanje oblika ili pritisnite nadole za pokretanje, a otpustite za završetak","featureCount":"{count} geoobjekat","featuresCount":"{count} geoobjekata","vertexCount":"{count} teme","verticesCount":"{count} temena","deleteFeature":"Obriši geoobjekat","deleteFeatures":"Č_Delete features________________ž","deleteVertex":"Obriši teme","duplicate":"Dupliraj","selectCircle":"Selektuj pomoću kruga","selectFeature":"Izaberite geoobjekat","selectFeatures":"Selektujte geoobjekte","selectLasso":"Selektujte pomoću lasa","selectLine":"Selektuj pomoću linije","selectMarquee":"Selektuj po pokrivaču","selectPolygon":"Selektuj pomoću poligona","selectRectangle":"Selektuj pomoću pravougaonika","clearSelection":"Izbriši izbor","freehandSelect":"Izbor slobodnom rukom","selectedFeatures":"Izabrani geoobjekti","settings":"Podešavanja skice","snappingRules":"Pravila za kačenje","snapToSelf":"Zakačite za sebe","snapToOtherFeatures":"Zakačite za drugi geoobjetak","snappingEnabled":"Kačenje je omogućeno","duplicateFeature":"Č_Duplicate feature__________________ž","duplicateFeatures":"Č_Duplicate features___________________ž"}
@@ -1 +1 @@
1
- {"widgetLabel":"Skiss","move":"Flytta","pan":"Panorera","reset":"Återställ","reshape":"Omforma","rotate":"Rotera","scale":"Skala","transform":"Transformera","undo":"Ångra","redo":"Upprepa","drawPoint":"Rita en punkt","drawPolygon":"Rita en polygon","drawPolyline":"Rita en polylinje","drawMultipoint":"Rita en multipunkt","drawCircle":"Rita en cirkel","drawRectangle":"Rita en rektangel","clearDrawing":"Rensa ritning","completeDrawing":"Slutför ritning","pauseDrawing":"Pausa ritning","resumeDrawing":"Återuppta ritning","updateDrawing":"Uppdatera ritning","addPointTooltip":"Klicka om du vill lägga till en punkt","removePointTooltip":"Klicka för att ta bort den här punkten","completePolygonTooltip":"Klicka på den här punkten för att slutföra","startDrawingTooltip":"Klicka för att börja rita","continueDrawingTooltip":"Klicka för att fortsätta rita","completeDrawingTooltip":"Dubbelklicka för att slutföra","addMultipointTooltip":"Klicka om du vill börja lägga till punkter","finishMultipointTooltip":"Dubbelklicka för att avsluta","addFreehandTooltip":"Tryck ned för att starta och släpp för att avsluta","addShapeTooltip":"Klicka om du vill lägga till en form eller tryck ner för att starta och släpp för att avsluta","featureCount":"{count} geoobjekt","featuresCount":"{count} geoobjekt","vertexCount":"{count} brytpunkt","verticesCount":"{count} brytpunkter","deleteFeature":"Ta bort objekt","deleteVertex":"Ta bort brytpunkt","duplicate":"Duplicera","selectCircle":"Välj med cirkel","selectFeature":"Välj geoobjekt","selectFeatures":"Välj geoobjekt","selectLasso":"Välj med lasso","selectLine":"Välj med linje","selectMarquee":"Välj med remsa","selectPolygon":"Välj med polygon","selectRectangle":"Välj med rektangel","clearSelection":"Rensa markering","freehandSelect":"Frihandsmarkering","selectedFeatures":"Valda geoobjekt","settings":"Skissinställningar","snappingRules":"Snappningsregler","snapToSelf":"Snappa till egen","snapToOtherFeatures":"Snappa till andra geoobjekt","snappingEnabled":"Snappning aktiverad"}
1
+ {"widgetLabel":"Skiss","move":"Flytta","pan":"Panorera","reset":"Återställ","reshape":"Omforma","rotate":"Rotera","scale":"Skala","transform":"Transformera","undo":"Ångra","redo":"Upprepa","drawPoint":"Rita en punkt","drawPolygon":"Rita en polygon","drawPolyline":"Rita en polylinje","drawMultipoint":"Rita en multipunkt","drawCircle":"Rita en cirkel","drawRectangle":"Rita en rektangel","clearDrawing":"Rensa ritning","completeDrawing":"Slutför ritning","pauseDrawing":"Pausa ritning","resumeDrawing":"Återuppta ritning","updateDrawing":"Uppdatera ritning","addPointTooltip":"Klicka om du vill lägga till en punkt","removePointTooltip":"Klicka för att ta bort den här punkten","completePolygonTooltip":"Klicka på den här punkten för att slutföra","startDrawingTooltip":"Klicka för att börja rita","continueDrawingTooltip":"Klicka för att fortsätta rita","completeDrawingTooltip":"Dubbelklicka för att slutföra","addMultipointTooltip":"Klicka om du vill börja lägga till punkter","finishMultipointTooltip":"Dubbelklicka för att avsluta","addFreehandTooltip":"Tryck ned för att starta och släpp för att avsluta","addShapeTooltip":"Klicka om du vill lägga till en form eller tryck ner för att starta och släpp för att avsluta","featureCount":"{count} geoobjekt","featuresCount":"{count} geoobjekt","vertexCount":"{count} brytpunkt","verticesCount":"{count} brytpunkter","deleteFeature":"Ta bort objekt","deleteFeatures":"Å_Delete features________________ö","deleteVertex":"Ta bort brytpunkt","duplicate":"Duplicera","selectCircle":"Välj med cirkel","selectFeature":"Välj geoobjekt","selectFeatures":"Välj geoobjekt","selectLasso":"Välj med lasso","selectLine":"Välj med linje","selectMarquee":"Välj med remsa","selectPolygon":"Välj med polygon","selectRectangle":"Välj med rektangel","clearSelection":"Rensa markering","freehandSelect":"Frihandsmarkering","selectedFeatures":"Valda geoobjekt","settings":"Skissinställningar","snappingRules":"Snappningsregler","snapToSelf":"Snappa till egen","snapToOtherFeatures":"Snappa till andra geoobjekt","snappingEnabled":"Snappning aktiverad","duplicateFeature":"Å_Duplicate feature__________________ö","duplicateFeatures":"Å_Duplicate features___________________ö"}
@@ -1 +1 @@
1
- {"widgetLabel":"วาด","move":"ย้าย","pan":"เลื่อน","reset":"รีเซต","reshape":"แก้ไขรูป","rotate":"หมุน","scale":"มาตราส่วน","transform":"แปลง","undo":"ย้อนกลับ","redo":"ทำซ้ำ","drawPoint":"วาดจุดหนึ่งจุด","drawPolygon":"วาดรูปหลายเหลี่ยม","drawPolyline":"วาดโพลีไลน์","drawMultipoint":"วาดหลายจุด","drawCircle":"วาดวงกลมหนึ่งวง","drawRectangle":"วาดสี่เหลี่ยมผืนผ้าหนึ่งอัน","clearDrawing":"ล้างภาพวาด","completeDrawing":"วาดภาพให้เสร็จสมบูรณ์","pauseDrawing":"หยุดวาดภาพชั่วคราว","resumeDrawing":"วาดภาพต่อ","updateDrawing":"อัปเดตภาพวาด","addPointTooltip":"คลิกเพิ่มจุด","removePointTooltip":"คลิกเพื่อลบจุดนี้","completePolygonTooltip":"คลิกจุดนี้เพื่อจบการทำงาน","startDrawingTooltip":"คลิกเพื่อเริ่มวาด","continueDrawingTooltip":"คลิกเพื่อวาดต่อ","completeDrawingTooltip":"คลิกสองครั้งเมื่อสมบูรณ์","addMultipointTooltip":"คลิกเพื่อเริ่มการเพิ่มจุด","finishMultipointTooltip":"คลิกสองครั้งเพื่อสิ้นสุด","addFreehandTooltip":"กดลงเพื่อเริ่มและปล่อยเมื่อเสร็จ","addShapeTooltip":"คลิกเพื่อเพิ่มรูปร่าง หรือกดปุ่มลงเพื่อเริ่มวาดและปล่อยเมื่อวาดเสร็จ","featureCount":"{count} ฟีเจอร์","featuresCount":"{count} ฟีเจอร์","vertexCount":"{count} เวอร์เท็กซ์","verticesCount":"{count} เวอร์เท็กซ์","deleteFeature":"ลบข้อมูลนี้","deleteVertex":"ลบจุดที่เชื่อมระหว่างเส้น","duplicate":"ทำซ้ำกัน","selectCircle":"เลือกตามวงกลม","selectFeature":"เลือกฟีเจอร์","selectFeatures":"เลือกฟีเจอร์","selectLasso":"เลือกโดยใช้การวาด","selectLine":"เลือกตามเส้น","selectMarquee":"เลือกตามตัวอักษรวิ่ง","selectPolygon":"เลือกตามรูปหลายเหลี่ยม","selectRectangle":"เลือกตามสี่เหลี่ยมผืนผ้า","clearSelection":"ล้างการเลือก","freehandSelect":"เลือกแบบอิสระ","selectedFeatures":"ข้อมูลที่เลือกไว้","settings":"การตั้งค่าการวาด","snappingRules":"กฎการสแน็ป","snapToSelf":"สแน็ปให้กับตัวเอง","snapToOtherFeatures":"สแน็ปไปยังคุณสมบัติอื่น","snappingEnabled":"เปิดใช้การสแน็ปไว้"}
1
+ {"widgetLabel":"วาด","move":"ย้าย","pan":"เลื่อน","reset":"รีเซต","reshape":"แก้ไขรูป","rotate":"หมุน","scale":"มาตราส่วน","transform":"แปลง","undo":"ย้อนกลับ","redo":"ทำซ้ำ","drawPoint":"วาดจุดหนึ่งจุด","drawPolygon":"วาดรูปหลายเหลี่ยม","drawPolyline":"วาดโพลีไลน์","drawMultipoint":"วาดหลายจุด","drawCircle":"วาดวงกลมหนึ่งวง","drawRectangle":"วาดสี่เหลี่ยมผืนผ้าหนึ่งอัน","clearDrawing":"ล้างภาพวาด","completeDrawing":"วาดภาพให้เสร็จสมบูรณ์","pauseDrawing":"หยุดวาดภาพชั่วคราว","resumeDrawing":"วาดภาพต่อ","updateDrawing":"อัปเดตภาพวาด","addPointTooltip":"คลิกเพิ่มจุด","removePointTooltip":"คลิกเพื่อลบจุดนี้","completePolygonTooltip":"คลิกจุดนี้เพื่อจบการทำงาน","startDrawingTooltip":"คลิกเพื่อเริ่มวาด","continueDrawingTooltip":"คลิกเพื่อวาดต่อ","completeDrawingTooltip":"คลิกสองครั้งเมื่อสมบูรณ์","addMultipointTooltip":"คลิกเพื่อเริ่มการเพิ่มจุด","finishMultipointTooltip":"คลิกสองครั้งเพื่อสิ้นสุด","addFreehandTooltip":"กดลงเพื่อเริ่มและปล่อยเมื่อเสร็จ","addShapeTooltip":"คลิกเพื่อเพิ่มรูปร่าง หรือกดปุ่มลงเพื่อเริ่มวาดและปล่อยเมื่อวาดเสร็จ","featureCount":"{count} ฟีเจอร์","featuresCount":"{count} ฟีเจอร์","vertexCount":"{count} เวอร์เท็กซ์","verticesCount":"{count} เวอร์เท็กซ์","deleteFeature":"ลบข้อมูลนี้","deleteFeatures":"ก้_Delete features________________ษฺ","deleteVertex":"ลบจุดที่เชื่อมระหว่างเส้น","duplicate":"ทำซ้ำกัน","selectCircle":"เลือกตามวงกลม","selectFeature":"เลือกฟีเจอร์","selectFeatures":"เลือกฟีเจอร์","selectLasso":"เลือกโดยใช้การวาด","selectLine":"เลือกตามเส้น","selectMarquee":"เลือกตามตัวอักษรวิ่ง","selectPolygon":"เลือกตามรูปหลายเหลี่ยม","selectRectangle":"เลือกตามสี่เหลี่ยมผืนผ้า","clearSelection":"ล้างการเลือก","freehandSelect":"เลือกแบบอิสระ","selectedFeatures":"ข้อมูลที่เลือกไว้","settings":"การตั้งค่าการวาด","snappingRules":"กฎการสแน็ป","snapToSelf":"สแน็ปให้กับตัวเอง","snapToOtherFeatures":"สแน็ปไปยังคุณสมบัติอื่น","snappingEnabled":"เปิดใช้การสแน็ปไว้","duplicateFeature":"ก้_Duplicate feature__________________ษฺ","duplicateFeatures":"ก้_Duplicate features___________________ษฺ"}
@@ -1 +1 @@
1
- {"widgetLabel":"Çizim","move":"Taşı","pan":"Kaydır","reset":"Sıfırla","reshape":"Yeniden Şekillendir","rotate":"Döndür","scale":"Ölçeklendir","transform":"Dönüşüm","undo":"Geri Al","redo":"Yinele","drawPoint":"Bir nokta çiz","drawPolygon":"Bir alan çiz","drawPolyline":"Bir çoklu çizgi çiz","drawMultipoint":"Bir çoklu nokta çiz","drawCircle":"Bir daire çiz","drawRectangle":"Bir dikdörtgen çiz","clearDrawing":"Çizimi sil","completeDrawing":"Çizimi tamamla","pauseDrawing":"Çizimi duraklat","resumeDrawing":"Çizime devam et","updateDrawing":"Çizimi güncelle","addPointTooltip":"Nokta eklemek için tıklayın","removePointTooltip":"Bu noktayı kaldırmak için tıklayın","completePolygonTooltip":"Bitirmek için bu noktaya tıklayın","startDrawingTooltip":"Çizmeye başlamak için tıklayın","continueDrawingTooltip":"Çizmeye devam etmek için tıklayın","completeDrawingTooltip":"Tamamlamak için çift tıklayın","addMultipointTooltip":"Nokta eklemeye başlamak için tıklayın","finishMultipointTooltip":"Bitirmek için çift tıklayın","addFreehandTooltip":"Başlatmak için basın ve bitirmek için bırakın","addShapeTooltip":"Şekil eklemek için tıklayın veya başlatmak için basın ve bitirmek için bırakın","featureCount":"{count} Detay","featuresCount":"{count} Detay","vertexCount":"{count} Verteks","verticesCount":"{count} Vertis","deleteFeature":"Detayı sil","deleteVertex":"Düğüm noktasını sil","duplicate":"Çoğalt","selectCircle":"Daireyle seç","selectFeature":"Detay seç","selectFeatures":"Detayları seç","selectLasso":"Kement ile seç","selectLine":"Çizgiyle seç","selectMarquee":"Kayan yazı ile seç","selectPolygon":"Alana göre seç","selectRectangle":"Dikdörtgenle seç","clearSelection":"Seçimi temizle","freehandSelect":"Serbest el çizim seçimi","selectedFeatures":"Seçili detaylar","settings":"Taslak çizim ayarları","snappingRules":"Yaslama kuralları","snapToSelf":"Kendine yasla","snapToOtherFeatures":"Diğer detaylara yasla","snappingEnabled":"Yaslama etkinleştirildi"}
1
+ {"widgetLabel":"Çizim","move":"Taşı","pan":"Kaydır","reset":"Sıfırla","reshape":"Yeniden Şekillendir","rotate":"Döndür","scale":"Ölçeklendir","transform":"Dönüşüm","undo":"Geri Al","redo":"Yinele","drawPoint":"Bir nokta çiz","drawPolygon":"Bir alan çiz","drawPolyline":"Bir çoklu çizgi çiz","drawMultipoint":"Bir çoklu nokta çiz","drawCircle":"Bir daire çiz","drawRectangle":"Bir dikdörtgen çiz","clearDrawing":"Çizimi sil","completeDrawing":"Çizimi tamamla","pauseDrawing":"Çizimi duraklat","resumeDrawing":"Çizime devam et","updateDrawing":"Çizimi güncelle","addPointTooltip":"Nokta eklemek için tıklayın","removePointTooltip":"Bu noktayı kaldırmak için tıklayın","completePolygonTooltip":"Bitirmek için bu noktaya tıklayın","startDrawingTooltip":"Çizmeye başlamak için tıklayın","continueDrawingTooltip":"Çizmeye devam etmek için tıklayın","completeDrawingTooltip":"Tamamlamak için çift tıklayın","addMultipointTooltip":"Nokta eklemeye başlamak için tıklayın","finishMultipointTooltip":"Bitirmek için çift tıklayın","addFreehandTooltip":"Başlatmak için basın ve bitirmek için bırakın","addShapeTooltip":"Şekil eklemek için tıklayın veya başlatmak için basın ve bitirmek için bırakın","featureCount":"{count} Detay","featuresCount":"{count} Detay","vertexCount":"{count} Verteks","verticesCount":"{count} Vertis","deleteFeature":"Detayı sil","deleteFeatures":"ı_Delete features________________İ","deleteVertex":"Düğüm noktasını sil","duplicate":"Çoğalt","selectCircle":"Daireyle seç","selectFeature":"Detay seç","selectFeatures":"Detayları seç","selectLasso":"Kement ile seç","selectLine":"Çizgiyle seç","selectMarquee":"Kayan yazı ile seç","selectPolygon":"Alana göre seç","selectRectangle":"Dikdörtgenle seç","clearSelection":"Seçimi temizle","freehandSelect":"Serbest el çizim seçimi","selectedFeatures":"Seçili detaylar","settings":"Taslak çizim ayarları","snappingRules":"Yaslama kuralları","snapToSelf":"Kendine yasla","snapToOtherFeatures":"Diğer detaylara yasla","snappingEnabled":"Yaslama etkinleştirildi","duplicateFeature":"ı_Duplicate feature__________________İ","duplicateFeatures":"ı_Duplicate features___________________İ"}
@@ -1 +1 @@
1
- {"widgetLabel":"Скетч","move":"Перемістити","pan":"Переміщення","reset":"Скинути","reshape":"Змінити форму","rotate":"Повернути","scale":"Масштаб","transform":"Перетворити","undo":"Відмінити","redo":"Повторити","drawPoint":"Намалювати точку","drawPolygon":"Намалювати полігон","drawPolyline":"Намалювати полілінію","drawMultipoint":"Намалювати мультиточковий об'єкт","drawCircle":"Намалювати коло","drawRectangle":"Намалювати прямокутник","clearDrawing":"Очистити малюнок","completeDrawing":"Завершити малювання","pauseDrawing":"Призупинити малювання","resumeDrawing":"Відновити малювання","updateDrawing":"Оновити малюнок","addPointTooltip":"Клацніть, щоб додати точку","removePointTooltip":"Клацніть, щоб видалити цю точку","completePolygonTooltip":"Клацніть цю точку, щоб завершити","startDrawingTooltip":"Клацніть, щоб почати малювання","continueDrawingTooltip":"Клацніть, щоб продовжити малювання","completeDrawingTooltip":"Двічі клацніть, щоб завершити","addMultipointTooltip":"Клацніть, щоб почати додавання точок","finishMultipointTooltip":"Двічі клацніть, щоб завершити","addFreehandTooltip":"Натисніть і утримуйте, щоб почати, і відпустіть, щоб завершити","addShapeTooltip":"Клацніть, щоб додати форму, або натисніть і утримуйте, щоб почати, і відпустіть, щоб завершити","featureCount":"{count} Об’єкт","featuresCount":"{count} Об’єкти","vertexCount":"{count} Вершина","verticesCount":"{count} Вершини","deleteFeature":"Видалити об'єкт","deleteVertex":"Видалити вершину","duplicate":"Дублювати","selectCircle":"Вибрати за колом","selectFeature":"Вибрати об’єкт","selectFeatures":"Вибрати об’єкти","selectLasso":"Вибрати за лассо","selectLine":"Вибрати за лінією","selectMarquee":"Вибрати за рухомим рядком","selectPolygon":"Вибрати за полігоном","selectRectangle":"Вибрати за прямокутником","clearSelection":"Очистити вибір","freehandSelect":"Довільний вибір","selectedFeatures":"Вибрані об’єкти","settings":"Налаштування скетчу","snappingRules":"Правила замикання","snapToSelf":"Прив’язати до себе","snapToOtherFeatures":"Прив’язати до інших об'єктів","snappingEnabled":"Замикання увімкнено"}
1
+ {"widgetLabel":"Скетч","move":"Перемістити","pan":"Переміщення","reset":"Скинути","reshape":"Змінити форму","rotate":"Повернути","scale":"Масштаб","transform":"Перетворити","undo":"Відмінити","redo":"Повторити","drawPoint":"Намалювати точку","drawPolygon":"Намалювати полігон","drawPolyline":"Намалювати полілінію","drawMultipoint":"Намалювати мультиточковий об'єкт","drawCircle":"Намалювати коло","drawRectangle":"Намалювати прямокутник","clearDrawing":"Очистити малюнок","completeDrawing":"Завершити малювання","pauseDrawing":"Призупинити малювання","resumeDrawing":"Відновити малювання","updateDrawing":"Оновити малюнок","addPointTooltip":"Клацніть, щоб додати точку","removePointTooltip":"Клацніть, щоб видалити цю точку","completePolygonTooltip":"Клацніть цю точку, щоб завершити","startDrawingTooltip":"Клацніть, щоб почати малювання","continueDrawingTooltip":"Клацніть, щоб продовжити малювання","completeDrawingTooltip":"Двічі клацніть, щоб завершити","addMultipointTooltip":"Клацніть, щоб почати додавання точок","finishMultipointTooltip":"Двічі клацніть, щоб завершити","addFreehandTooltip":"Натисніть і утримуйте, щоб почати, і відпустіть, щоб завершити","addShapeTooltip":"Клацніть, щоб додати форму, або натисніть і утримуйте, щоб почати, і відпустіть, щоб завершити","featureCount":"{count} Об’єкт","featuresCount":"{count} Об’єкти","vertexCount":"{count} Вершина","verticesCount":"{count} Вершини","deleteFeature":"Видалити об'єкт","deleteFeatures":"ґ_Delete features________________Ї","deleteVertex":"Видалити вершину","duplicate":"Дублювати","selectCircle":"Вибрати за колом","selectFeature":"Вибрати об’єкт","selectFeatures":"Вибрати об’єкти","selectLasso":"Вибрати за лассо","selectLine":"Вибрати за лінією","selectMarquee":"Вибрати за рухомим рядком","selectPolygon":"Вибрати за полігоном","selectRectangle":"Вибрати за прямокутником","clearSelection":"Очистити вибір","freehandSelect":"Довільний вибір","selectedFeatures":"Вибрані об’єкти","settings":"Налаштування скетчу","snappingRules":"Правила замикання","snapToSelf":"Прив’язати до себе","snapToOtherFeatures":"Прив’язати до інших об'єктів","snappingEnabled":"Замикання увімкнено","duplicateFeature":"ґ_Duplicate feature__________________Ї","duplicateFeatures":"ґ_Duplicate features___________________Ї"}
@@ -1 +1 @@
1
- {"widgetLabel":"Phác họa","move":"Di chuyển","pan":"Di chuyển","reset":"Thiết lập lại","reshape":"Phục hồi hình dạng","rotate":"Xoay","scale":"Tỷ lệ","transform":"Chuyển đổi","undo":"Hoàn tác","redo":"Làm lại","drawPoint":"Vẽ điểm","drawPolygon":"Vẽ đa giác","drawPolyline":"Vẽ đa tuyến","drawMultipoint":"Vẽ đa điểm","drawCircle":"Vẽ hình tròn","drawRectangle":"Vẽ hình chữ nhật","clearDrawing":"Xóa bản vẽ","completeDrawing":"Hoàn thành bản vẽ","pauseDrawing":"Tạm dừng vẽ","resumeDrawing":"Tiếp tục vẽ","updateDrawing":"Cập nhật bản vẽ","addPointTooltip":"Bấm để thêm điểm","removePointTooltip":"Nhấp vào để xóa điểm này","completePolygonTooltip":"Nhấp vào điểm này để hoàn thành","startDrawingTooltip":"Bấm để bắt đầu vẽ","continueDrawingTooltip":"Bấm để tiếp tục vẽ","completeDrawingTooltip":"Bấm đúp để hoàn thành","addMultipointTooltip":"Bấm để bắt đầu thêm điểm","finishMultipointTooltip":"Bấm đúp để kết thúc","addFreehandTooltip":"Nhấn xuống để bắt đầu và để đến phần kết thúc","addShapeTooltip":"Bấm để thêm một hình hoặc nhấn xuống để bắt đầu và để đến phần kết thúc","featureCount":"{count} Đối tượng","featuresCount":"{count} Đối tượng","vertexCount":"{count} Đỉnh","verticesCount":"{count} Đỉnh","deleteFeature":"Xóa đối tượng","deleteVertex":"Xóa đỉnh","duplicate":"Bản sao","selectCircle":"Chọn theo hình tròn","selectFeature":"Chọn đối tượng","selectFeatures":"Chọn các đối tượng","selectLasso":"Chọn theo lasso","selectLine":"Chọn theo đường thẳng","selectMarquee":"Chọn theo marquee","selectPolygon":"Chọn theo hình đa giác","selectRectangle":"Chọn theo hình chữ nhật","clearSelection":"Xóa lựa chọn","freehandSelect":"Chọn vẽ tự do","selectedFeatures":"Đối tượng được chọn","settings":"Thiết lập phác họa","snappingRules":"Quy tắc chụp ảnh nhanh","snapToSelf":"Tự chụp","snapToOtherFeatures":"Chụp đối tượng khác","snappingEnabled":"Đã bật chụp ảnh nhanh"}
1
+ {"widgetLabel":"Phác họa","move":"Di chuyển","pan":"Di chuyển","reset":"Thiết lập lại","reshape":"Phục hồi hình dạng","rotate":"Xoay","scale":"Tỷ lệ","transform":"Chuyển đổi","undo":"Hoàn tác","redo":"Làm lại","drawPoint":"Vẽ điểm","drawPolygon":"Vẽ đa giác","drawPolyline":"Vẽ đa tuyến","drawMultipoint":"Vẽ đa điểm","drawCircle":"Vẽ hình tròn","drawRectangle":"Vẽ hình chữ nhật","clearDrawing":"Xóa bản vẽ","completeDrawing":"Hoàn thành bản vẽ","pauseDrawing":"Tạm dừng vẽ","resumeDrawing":"Tiếp tục vẽ","updateDrawing":"Cập nhật bản vẽ","addPointTooltip":"Bấm để thêm điểm","removePointTooltip":"Nhấp vào để xóa điểm này","completePolygonTooltip":"Nhấp vào điểm này để hoàn thành","startDrawingTooltip":"Bấm để bắt đầu vẽ","continueDrawingTooltip":"Bấm để tiếp tục vẽ","completeDrawingTooltip":"Bấm đúp để hoàn thành","addMultipointTooltip":"Bấm để bắt đầu thêm điểm","finishMultipointTooltip":"Bấm đúp để kết thúc","addFreehandTooltip":"Nhấn xuống để bắt đầu và để đến phần kết thúc","addShapeTooltip":"Bấm để thêm một hình hoặc nhấn xuống để bắt đầu và để đến phần kết thúc","featureCount":"{count} Đối tượng","featuresCount":"{count} Đối tượng","vertexCount":"{count} Đỉnh","verticesCount":"{count} Đỉnh","deleteFeature":"Xóa đối tượng","deleteFeatures":"Đ_Delete features________________ớ","deleteVertex":"Xóa đỉnh","duplicate":"Bản sao","selectCircle":"Chọn theo hình tròn","selectFeature":"Chọn đối tượng","selectFeatures":"Chọn các đối tượng","selectLasso":"Chọn theo lasso","selectLine":"Chọn theo đường thẳng","selectMarquee":"Chọn theo marquee","selectPolygon":"Chọn theo hình đa giác","selectRectangle":"Chọn theo hình chữ nhật","clearSelection":"Xóa lựa chọn","freehandSelect":"Chọn vẽ tự do","selectedFeatures":"Đối tượng được chọn","settings":"Thiết lập phác họa","snappingRules":"Quy tắc chụp ảnh nhanh","snapToSelf":"Tự chụp","snapToOtherFeatures":"Chụp đối tượng khác","snappingEnabled":"Đã bật chụp ảnh nhanh","duplicateFeature":"Đ_Duplicate feature__________________ớ","duplicateFeatures":"Đ_Duplicate features___________________ớ"}
@@ -1 +1 @@
1
- {"widgetLabel":"草图","move":"移动","pan":"平移","reset":"重置","reshape":"修整","rotate":"旋转","scale":"缩放","transform":"转换","undo":"撤消","redo":"恢复","drawPoint":"绘制点","drawPolygon":"绘制一个多边形","drawPolyline":"绘制折线","drawMultipoint":"绘制一个多点","drawCircle":"绘制一个圆","drawRectangle":"绘制一个矩形","clearDrawing":"清除绘图","completeDrawing":"完成绘图","pauseDrawing":"暂停绘制","resumeDrawing":"恢复绘制","updateDrawing":"更新绘图","addPointTooltip":"单击以添加点","removePointTooltip":"单击以移除该点","completePolygonTooltip":"单击该点以完成","startDrawingTooltip":"单击以开始绘制","continueDrawingTooltip":"单击以继续绘制","completeDrawingTooltip":"双击完成操作","addMultipointTooltip":"单击以开始添加点","finishMultipointTooltip":"双击完成操作","addFreehandTooltip":"按下鼠标以开始绘制并释放以完成绘制","addShapeTooltip":"单击以添加几何形状,或按下鼠标以开始绘制并释放以完成绘制","featureCount":"{count} 个要素","featuresCount":"{count} 个要素","vertexCount":"{count} 个折点","verticesCount":"{count} 个折点","deleteFeature":"删除要素","deleteVertex":"删除折点","duplicate":"重复","selectCircle":"按圆选择","selectFeature":"选择要素","selectFeatures":"选择要素","selectLasso":"按套索选择","selectLine":"按线选择","selectMarquee":"按选取框选择","selectPolygon":"按面选择","selectRectangle":"按矩形选择","clearSelection":"清除选择内容","freehandSelect":"手绘选择","selectedFeatures":"所选要素","settings":"草图设置","snappingRules":"捕捉规则","snapToSelf":"捕捉到本身","snapToOtherFeatures":"捕捉其他要素","snappingEnabled":"捕捉功能已启用"}
1
+ {"widgetLabel":"草图","move":"移动","pan":"平移","reset":"重置","reshape":"修整","rotate":"旋转","scale":"缩放","transform":"转换","undo":"撤消","redo":"恢复","drawPoint":"绘制点","drawPolygon":"绘制一个多边形","drawPolyline":"绘制折线","drawMultipoint":"绘制一个多点","drawCircle":"绘制一个圆","drawRectangle":"绘制一个矩形","clearDrawing":"清除绘图","completeDrawing":"完成绘图","pauseDrawing":"暂停绘制","resumeDrawing":"恢复绘制","updateDrawing":"更新绘图","addPointTooltip":"单击以添加点","removePointTooltip":"单击以移除该点","completePolygonTooltip":"单击该点以完成","startDrawingTooltip":"单击以开始绘制","continueDrawingTooltip":"单击以继续绘制","completeDrawingTooltip":"双击完成操作","addMultipointTooltip":"单击以开始添加点","finishMultipointTooltip":"双击完成操作","addFreehandTooltip":"按下鼠标以开始绘制并释放以完成绘制","addShapeTooltip":"单击以添加几何形状,或按下鼠标以开始绘制并释放以完成绘制","featureCount":"{count} 个要素","featuresCount":"{count} 个要素","vertexCount":"{count} 个折点","verticesCount":"{count} 个折点","deleteFeature":"删除要素","deleteFeatures":"试_Delete features________________验","deleteVertex":"删除折点","duplicate":"重复","selectCircle":"按圆选择","selectFeature":"选择要素","selectFeatures":"选择要素","selectLasso":"按套索选择","selectLine":"按线选择","selectMarquee":"按选取框选择","selectPolygon":"按面选择","selectRectangle":"按矩形选择","clearSelection":"清除选择内容","freehandSelect":"手绘选择","selectedFeatures":"所选要素","settings":"草图设置","snappingRules":"捕捉规则","snapToSelf":"捕捉到本身","snapToOtherFeatures":"捕捉其他要素","snappingEnabled":"捕捉功能已启用","duplicateFeature":"试_Duplicate feature__________________验","duplicateFeatures":"试_Duplicate features___________________验"}
@@ -1 +1 @@
1
- {"widgetLabel":"描繪","move":"移動","pan":"平移","reset":"重設","reshape":"整形","rotate":"旋轉","scale":"比例","transform":"轉換","undo":"取消","redo":"復原","drawPoint":"繪製點","drawPolygon":"繪製多邊形","drawPolyline":"繪製折線","drawMultipoint":"繪製一個多點","drawCircle":"繪製一個圓形","drawRectangle":"繪製一個矩形","clearDrawing":"清除繪圖","completeDrawing":"完成繪圖","pauseDrawing":"暫停繪圖","resumeDrawing":"恢復繪圖","updateDrawing":"更新繪圖","addPointTooltip":"按一下以增加點","removePointTooltip":"按一下以移除此點","completePolygonTooltip":"按一下此點以完成","startDrawingTooltip":"按一下開始繪製","continueDrawingTooltip":"按一下繼續繪製","completeDrawingTooltip":"按二下完成操作","addMultipointTooltip":"按一下以開始增加點","finishMultipointTooltip":"按二下完成操作","addFreehandTooltip":"按下滑鼠以開始繪製,並在完成繪製時鬆開","addShapeTooltip":"按一下以增加一個形狀,或按下滑鼠以開始繪製,並在完成繪製時鬆開","featureCount":"{count} 個圖徵","featuresCount":"{count} 個圖徵","vertexCount":"{count} 個頂點","verticesCount":"{count} 個頂點","deleteFeature":"刪除圖徵","deleteVertex":"刪除頂點","duplicate":"複製","selectCircle":"按圓形選擇","selectFeature":"選擇圖徵","selectFeatures":"選擇圖徵","selectLasso":"按套索選擇","selectLine":"按線條選擇","selectMarquee":"按選取框選擇","selectPolygon":"按多邊形選擇","selectRectangle":"按矩形選擇","clearSelection":"清除所選內容","freehandSelect":"手繪選擇","selectedFeatures":"選取的圖徵","settings":"描繪設定","snappingRules":"貼齊規則","snapToSelf":"自助貼齊","snapToOtherFeatures":"貼齊圖徵","snappingEnabled":"已啟用貼齊"}
1
+ {"widgetLabel":"描繪","move":"移動","pan":"平移","reset":"重設","reshape":"整形","rotate":"旋轉","scale":"比例","transform":"轉換","undo":"取消","redo":"復原","drawPoint":"繪製點","drawPolygon":"繪製多邊形","drawPolyline":"繪製折線","drawMultipoint":"繪製一個多點","drawCircle":"繪製一個圓形","drawRectangle":"繪製一個矩形","clearDrawing":"清除繪圖","completeDrawing":"完成繪圖","pauseDrawing":"暫停繪圖","resumeDrawing":"恢復繪圖","updateDrawing":"更新繪圖","addPointTooltip":"按一下以增加點","removePointTooltip":"按一下以移除此點","completePolygonTooltip":"按一下此點以完成","startDrawingTooltip":"按一下開始繪製","continueDrawingTooltip":"按一下繼續繪製","completeDrawingTooltip":"按二下完成操作","addMultipointTooltip":"按一下以開始增加點","finishMultipointTooltip":"按二下完成操作","addFreehandTooltip":"按下滑鼠以開始繪製,並在完成繪製時鬆開","addShapeTooltip":"按一下以增加一個形狀,或按下滑鼠以開始繪製,並在完成繪製時鬆開","featureCount":"{count} 個圖徵","featuresCount":"{count} 個圖徵","vertexCount":"{count} 個頂點","verticesCount":"{count} 個頂點","deleteFeature":"刪除圖徵","deleteFeatures":"試_Delete features________________驗","deleteVertex":"刪除頂點","duplicate":"複製","selectCircle":"按圓形選擇","selectFeature":"選擇圖徵","selectFeatures":"選擇圖徵","selectLasso":"按套索選擇","selectLine":"按線條選擇","selectMarquee":"按選取框選擇","selectPolygon":"按多邊形選擇","selectRectangle":"按矩形選擇","clearSelection":"清除所選內容","freehandSelect":"手繪選擇","selectedFeatures":"選取的圖徵","settings":"描繪設定","snappingRules":"貼齊規則","snapToSelf":"自助貼齊","snapToOtherFeatures":"貼齊圖徵","snappingEnabled":"已啟用貼齊","duplicateFeature":"試_Duplicate feature__________________驗","duplicateFeatures":"試_Duplicate features___________________驗"}
@@ -1 +1 @@
1
- {"widgetLabel":"描繪","move":"移動","pan":"平移","reset":"重設","reshape":"整形","rotate":"旋轉","scale":"比例","transform":"轉換","undo":"取消","redo":"復原","drawPoint":"繪製點","drawPolygon":"繪製多邊形","drawPolyline":"繪製折線","drawMultipoint":"繪製一個多點","drawCircle":"繪製一個圓形","drawRectangle":"繪製一個矩形","clearDrawing":"清除繪圖","completeDrawing":"完成繪圖","pauseDrawing":"暫停繪圖","resumeDrawing":"恢復繪圖","updateDrawing":"更新繪圖","addPointTooltip":"按一下以增加點","removePointTooltip":"按一下以移除此點","completePolygonTooltip":"按一下此點以完成","startDrawingTooltip":"按一下開始繪製","continueDrawingTooltip":"按一下繼續繪製","completeDrawingTooltip":"按二下完成操作","addMultipointTooltip":"按一下以開始增加點","finishMultipointTooltip":"按二下完成操作","addFreehandTooltip":"按下滑鼠以開始繪製,並在完成繪製時鬆開","addShapeTooltip":"按一下以增加一個形狀,或按下滑鼠以開始繪製,並在完成繪製時鬆開","featureCount":"{count} 個圖徵","featuresCount":"{count} 個圖徵","vertexCount":"{count} 個頂點","verticesCount":"{count} 個頂點","deleteFeature":"刪除圖徵","deleteVertex":"刪除頂點","duplicate":"複製","selectCircle":"按圓形選擇","selectFeature":"選擇圖徵","selectFeatures":"選擇圖徵","selectLasso":"按套索選擇","selectLine":"按線條選擇","selectMarquee":"按選取框選擇","selectPolygon":"按多邊形選擇","selectRectangle":"按矩形選擇","clearSelection":"清除所選內容","freehandSelect":"手繪選擇","selectedFeatures":"選取的圖徵","settings":"描繪設定","snappingRules":"貼齊規則","snapToSelf":"自助貼齊","snapToOtherFeatures":"貼齊圖徵","snappingEnabled":"已啟用貼齊"}
1
+ {"widgetLabel":"描繪","move":"移動","pan":"平移","reset":"重設","reshape":"整形","rotate":"旋轉","scale":"比例","transform":"轉換","undo":"取消","redo":"復原","drawPoint":"繪製點","drawPolygon":"繪製多邊形","drawPolyline":"繪製折線","drawMultipoint":"繪製一個多點","drawCircle":"繪製一個圓形","drawRectangle":"繪製一個矩形","clearDrawing":"清除繪圖","completeDrawing":"完成繪圖","pauseDrawing":"暫停繪圖","resumeDrawing":"恢復繪圖","updateDrawing":"更新繪圖","addPointTooltip":"按一下以增加點","removePointTooltip":"按一下以移除此點","completePolygonTooltip":"按一下此點以完成","startDrawingTooltip":"按一下開始繪製","continueDrawingTooltip":"按一下繼續繪製","completeDrawingTooltip":"按二下完成操作","addMultipointTooltip":"按一下以開始增加點","finishMultipointTooltip":"按二下完成操作","addFreehandTooltip":"按下滑鼠以開始繪製,並在完成繪製時鬆開","addShapeTooltip":"按一下以增加一個形狀,或按下滑鼠以開始繪製,並在完成繪製時鬆開","featureCount":"{count} 個圖徵","featuresCount":"{count} 個圖徵","vertexCount":"{count} 個頂點","verticesCount":"{count} 個頂點","deleteFeature":"刪除圖徵","deleteFeatures":"試_Delete features________________驗","deleteVertex":"刪除頂點","duplicate":"複製","selectCircle":"按圓形選擇","selectFeature":"選擇圖徵","selectFeatures":"選擇圖徵","selectLasso":"按套索選擇","selectLine":"按線條選擇","selectMarquee":"按選取框選擇","selectPolygon":"按多邊形選擇","selectRectangle":"按矩形選擇","clearSelection":"清除所選內容","freehandSelect":"手繪選擇","selectedFeatures":"選取的圖徵","settings":"描繪設定","snappingRules":"貼齊規則","snapToSelf":"自助貼齊","snapToOtherFeatures":"貼齊圖徵","snappingEnabled":"已啟用貼齊","duplicateFeature":"試_Duplicate feature__________________驗","duplicateFeatures":"試_Duplicate features___________________驗"}
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";import{OverlayIndex as a,RenderTargetType as i}from"../views/3d/terrain/interfaces.js";import{IntegratedMeshMode as l}from"../views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js";import{ComponentData as t,ComponentDataType as d}from"../views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js";import{VertexDiscardByOpacity as n}from"../views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js";import{ForwardLinearDepth as s}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as c}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SlicePass as m}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{NormalAttributeType as g}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as v}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexColor as u}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{VertexNormal as h}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js";import{VertexPosition as p}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js";import{OutputDepth as C}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as w}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as b}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadLinearDepth.glsl.js";import{ComputeMaterialColor as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js";import{ComputeNormalTexture as x}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import{ComputeShadingNormal as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js";import{EvaluateSceneLighting as L,addLightingGlobalFactor as M}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as j}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{multipassTerrainTest as T}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{PBRMode as S,PhysicallyBasedRenderingParameters as N}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadBaseColorTexture as O}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js";import{ReadShadowMapPass as W}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{OverlayIM as A,getColorTexture as P}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js";import{symbolAlphaCutoff as B}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{DiscardOrAdjustAlphaDraw as R}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{EllipsoidMode as _}from"../views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js";import{glsl as D}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as $}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as E}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";function F(a){const i=new $;i.include(p,a),i.include(h,a),i.include(u,a),i.include(v,a),i.include(s,a),i.include(t,a),i.include(R,a),i.include(m,a),i.include(O,a),i.include(n,a);const{vertex:F,fragment:I}=i;a.pbrMode!==S.Normal&&a.pbrMode!==S.Schematic||(i.include(N,a),a.hasNormalTexture&&i.include(x,a));const G=a.output===c.Shadow||a.output===c.ShadowHighlight||a.output===c.ShadowExludeHighlight;G&&a.componentData===d.Varying?F.code.add(D`#define discardShadows(castShadows) { if(!castShadows) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`):F.code.add(D`#define discardShadows(castShadows) {}`);const H=a.integratedMeshMode===l.ColorOverlay||a.integratedMeshMode===l.ColorOverlayWithWater,k=H&&a.output===c.Color&&a.pbrMode===S.WaterOnIntegratedMesh;return H&&(i.include(L,a),i.include(A,a),a.spherical?F.code.add(D`
5
+ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";import{OverlayIndex as a,RenderTargetType as i}from"../views/3d/terrain/interfaces.js";import{IntegratedMeshMode as l}from"../views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js";import{ComponentData as t,ComponentDataType as d}from"../views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js";import{VertexDiscardByOpacity as n}from"../views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js";import{ForwardLinearDepth as s}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as c}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SlicePass as m}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{NormalAttributeType as g}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as v}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexColor as u}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{VertexNormal as h}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js";import{VertexPosition as p}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js";import{OutputDepth as C}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as w}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as b}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadLinearDepth.glsl.js";import{ComputeMaterialColor as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js";import{ComputeNormalTexture as x}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import{ComputeShadingNormal as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js";import{EvaluateSceneLighting as L,addLightingGlobalFactor as M}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as j}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{multipassTerrainTest as T}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{PBRMode as S,PhysicallyBasedRenderingParameters as N}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadBaseColorTexture as O}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js";import{ReadShadowMapPass as W}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{OverlayIM as A,getColorTexture as P}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js";import{symbolAlphaCutoff as B}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{DiscardOrAdjustAlphaDraw as R}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{EllipsoidMode as _}from"../views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js";import{glsl as D}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as $}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as E}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";function F(a){const i=new $;i.include(p,a),i.include(h,a),i.include(u,a),i.include(v,a),i.include(s,a),i.include(t,a),i.include(R,a),i.include(m,a),i.include(O,a),i.include(n,a);const{vertex:F,fragment:I}=i;a.pbrMode!==S.Normal&&a.pbrMode!==S.Schematic||(i.include(N,a),a.hasNormalTexture&&i.include(x,a));const G=a.output===c.Shadow||a.output===c.ShadowHighlight||a.output===c.ShadowExcludeHighlight;G&&a.componentData===d.Varying?F.code.add(D`#define discardShadows(castShadows) { if(!castShadows) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`):F.code.add(D`#define discardShadows(castShadows) {}`);const H=a.integratedMeshMode===l.ColorOverlay||a.integratedMeshMode===l.ColorOverlayWithWater,k=H&&a.output===c.Color&&a.pbrMode===S.WaterOnIntegratedMesh;return H&&(i.include(L,a),i.include(A,a),a.spherical?F.code.add(D`
6
6
  const float invEllipsoidRadius = ${D.float(1/(a.ellipsoidMode===_.Earth?e.radius:a.ellipsoidMode===_.Mars?o.radius:r.radius))};
7
7
  vec2 projectOverlay(vec3 pos) {
8
8
  return pos.xy / (1.0 + invEllipsoidRadius * pos.z);
@@ -43,7 +43,7 @@ import{ForwardLinearDepth as e,addNearFar as i}from"../views/3d/webgl-engine/cor
43
43
  gl_FragColor = highlightSlice(gl_FragColor, vpos);
44
44
  ${F.transparencyPassType===C.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}
45
45
  }
46
- `);break;case o.Depth:case o.Shadow:case o.ShadowHighlight:case o.ShadowExludeHighlight:_.include(r,F),i(_),_.varyings.add("depth","float"),M.code.add(P`void main() {
46
+ `);break;case o.Depth:case o.Shadow:case o.ShadowHighlight:case o.ShadowExcludeHighlight:_.include(r,F),i(_),_.varyings.add("depth","float"),M.code.add(P`void main() {
47
47
  vpos = calculateVPos();
48
48
  gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth);
49
49
  }`),_.include(a,F),_.include(s,F),O.code.add(P`void main() {
@@ -140,7 +140,7 @@ return (min(min(c.r, c.g), c.b) + max(max(c.r, c.g), c.b)) * 0.5;
140
140
  ${q&&r.invisible?V`if (getCombinedOverlayColor().a == 0.0) { discard; }`:""}
141
141
  outputDepth(linearDepth);
142
142
  }
143
- `);break;case d.Shadow:case d.ShadowHighlight:case d.ShadowExludeHighlight:a.include(w,r),t(a),n(a),_.code.add(V`void main(void) {
143
+ `);break;case d.Shadow:case d.ShadowHighlight:case d.ShadowExcludeHighlight:a.include(w,r),t(a),n(a),_.code.add(V`void main(void) {
144
144
  gl_Position = transformPositionWithDepth(proj, view, position, nearFar, linearDepth);
145
145
  }`),B.code.add(V`void main() {
146
146
  outputDepth(linearDepth);
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import{ArcadeFunction as e}from"../arcade/FunctionWrapper.js";import t from"../arcade/ImmutableArray.js";import n from"../arcade/ImmutablePathArray.js";import r from"../arcade/ImmutablePointArray.js";import a from"../geometry/Extent.js";import i from"../geometry/Geometry.js";import o from"../geometry/Multipoint.js";import l from"../geometry/Point.js";import s from"../geometry/Polygon.js";import u from"../geometry/Polyline.js";import{DateTime as f}from"luxon";import{isNone as c}from"../core/maybe.js";import{format as m,parse as d}from"../core/number.js";import{isClockwise as y}from"../geometry/support/coordsUtils.js";import{getLocale as p}from"../intl/locale.js";import{esriFieldToJson as g,layerGeometryEsriRestConstants as h}from"../arcade/featureset/support/shared.js";import{ArcadeModule as S}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as b,ExecutionErrorCodes as x}from"../arcade/executionError.js";class T{constructor(e){this.value=e}}class M{constructor(e){this.value=e}}const N=M,D=T,k={type:"VOID"},j={type:"BREAK"},A={type:"CONTINUE"};function R(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function F(t){return t instanceof e}function C(e){return e instanceof S}function I(e){return!!w(e)||(!!Z(e)||(!!z(e)||(!!_(e)||(null===e||(e===k||"number"==typeof e)))))}function v(e,t){return void 0===e?t:e}function O(e){return null==e?"":Y(e)||E(e)?"Array":z(e)?"Date":w(e)?"String":_(e)?"Boolean":Z(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":e instanceof S?"Module":J(e)?"Feature":e instanceof l?"Point":e instanceof s?"Polygon":e instanceof u?"Polyline":e instanceof o?"Multipoint":e instanceof a?"Extent":F(e)?"Function":P(e)?"FeatureSet":G(e)?"FeatureSetCollection":e===k?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognised Type"}function w(e){return"string"==typeof e||e instanceof String}function _(e){return"boolean"==typeof e}function Z(e){return"number"==typeof e}function L(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Y(e){return e instanceof Array}function J(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function P(e){return!0===(e&&e.declaredRootClass&&"esri.arcade.featureset.support.FeatureSet"===e.declaredRootClass)}function G(e){return!0===(e&&e.declaredRootClass&&"esri.arcade.featureSetCollection"===e.declaredRootClass)}function E(e){return e instanceof t}function z(e){return e instanceof Date}function V(e,t,n,r,a){if(e.length<t||e.length>n)throw new b(r,x.WrongNumberOfParameters,a)}function H(e){return e<0?-Math.round(-e):Math.round(e)}function U(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function q(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=R(t,"‰",""),t=R(t,"¤",""),m(e,{pattern:t}))}function B(e,t){const n=f.fromJSDate(e);return null==t||""===t?n.toISO({suppressMilliseconds:!0}):n.toFormat(W(t),{locale:p(),numberingSystem:"latn"})}function W(e){e=e.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$&]");let t="";const n=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(n))switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"Z":t+="ZZ";break;case"ZZ":t+="ZZZ";break;case"S":t+="'S'";break;case"SS":t+="'SS'";break;case"SSS":t+="u";break;case"A":case"a":t+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}function $(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function Q(e,t,n){if(null===e){if(null===t||t===k)return $(null,null,n);if(Z(t))return $(0,t,n);if(w(t))return $(0,re(t),n);if(_(t))return $(0,re(t),n);if(z(t))return $(0,t.getTime(),n)}if(e===k){if(null===t||t===k)return $(null,null,n);if(Z(t))return $(0,t,n);if(w(t))return $(0,re(t),n);if(_(t))return $(0,re(t),n);if(z(t))return $(0,t.getTime(),n)}else if(Z(e)){if(Z(t))return $(e,t,n);if(_(t))return $(e,re(t),n);if(null===t||t===k)return $(e,0,n);if(w(t))return $(e,re(t),n);if(z(t))return $(e,t.getTime(),n)}else if(w(e)){if(w(t))return $(K(e),K(t),n);if(z(t))return $(re(e),t.getTime(),n);if(Z(t))return $(re(e),t,n);if(null===t||t===k)return $(re(e),0,n);if(_(t))return $(re(e),re(t),n)}else if(z(e)){if(z(t))return $(e,t,n);if(null===t||t===k)return $(e.getTime(),0,n);if(Z(t))return $(e.getTime(),t,n);if(_(t))return $(e.getTime(),re(t),n);if(w(t))return $(e.getTime(),re(t),n)}else if(_(e)){if(_(t))return $(e,t,n);if(Z(t))return $(re(e),re(t),n);if(z(t))return $(re(e),t.getTime(),n);if(null===t||t===k)return $(re(e),0,n);if(w(t))return $(re(e),re(t),n)}return!!X(e,t)&&("<="===n||">="===n)}function X(e,t){if(e===t)return!0;if(null===e&&t===k||null===t&&e===k)return!0;if(z(e)&&z(t))return e.getTime()===t.getTime();if(e instanceof n)return e.equalityTest(t);if(e instanceof r)return e.equalityTest(t);if(e instanceof l&&t instanceof l){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(void 0!==e&&void 0!==t&&null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function K(e,n){if(w(e))return e;if(null===e)return"";if(Z(e))return q(e,n);if(_(e))return e.toString();if(z(e))return B(e,n);if(e instanceof i)return JSON.stringify(e.toJSON());if(Y(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ne(e[n]);return"["+t.join(",")+"]"}if(e instanceof t){const t=[];for(let n=0;n<e.length();n++)t[n]=ne(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText():F(e)?"object, Function":e===k?"":C(e)?"object, Module":""}function ee(e){const n=[];if(!Y(e))return null;if(e instanceof t){for(let t=0;t<e.length();t++)n[t]=re(e.get(t));return n}for(let t=0;t<e.length;t++)n[t]=re(e[t]);return n}function te(e,n,r=!1){if(w(e))return e;if(null===e)return"";if(Z(e))return q(e,n);if(_(e))return e.toString();if(z(e))return B(e,n);if(e instanceof i)return e instanceof a?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+ye(e.spatialReference)+"}":ye(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if(Y(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ne(e[n],r);return"["+t.join(",")+"]"}if(e instanceof t){const t=[];for(let n=0;n<e.length();n++)t[n]=ne(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText(r):F(e)?"object, Function":e===k?"":C(e)?"object, Module":""}function ne(e,n=!1){if(null===e)return"null";if(_(e)||Z(e)||w(e))return JSON.stringify(e);if(e instanceof i)return te(e,null,n);if(e instanceof t)return te(e,null,n);if(e instanceof Array)return te(e,null,n);if(e instanceof Date)return n?JSON.stringify(e.getTime()):JSON.stringify(B(e,""));if(null!==e&&"object"==typeof e){if(void 0!==e.castToText)return e.castToText(n)}else if(e===k)return"null";return"null"}function re(e,t){return Z(e)?e:null===e||""===e?0:z(e)?NaN:_(e)?e?1:0:Y(e)||""===e||void 0===e?NaN:void 0!==t&&w(e)?(t=R(t,"‰",""),t=R(t,"¤",""),d(e,{pattern:t})):e===k?0:Number(e)}function ae(e){if(z(e))return e;if(w(e)){const t=oe(e);if(t)return t.toJSDate()}return null}function ie(e){return z(e)?f.fromJSDate(e):w(e)?oe(e):null}function oe(e){const t=/ (\d\d)/;let n=f.fromISO(e);return n.isValid||t.test(e)&&(e=e.replace(t,"T$1"),n=f.fromISO(e),n.isValid)?n:null}function le(e){return _(e)?e:w(e)?"true"===(e=e.toLowerCase()):!!Z(e)&&(0!==e&&!isNaN(e))}function se(e,t){return c(e)?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ue(e){if(null===e)return null;if(e instanceof l)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof s){if(0===e.rings.length)return null;for(const t of e.rings)if(t.length>0)return e;return null}if(e instanceof u){if(0===e.paths.length)return null;for(const t of e.paths)if(t.length>0)return e;return null}return e instanceof o?0===e.points.length?null:e:e instanceof a?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function fe(e,t){if(!e)return t;if(!e.domain)return t;let n=null;if("string"===e.field.type||"esriFieldTypeString"===e.field.type)t=K(t);else{if(null==t)return null;if(""===t)return t;t=re(t)}for(let r=0;r<e.domain.codedValues.length;r++){const a=e.domain.codedValues[r];a.code===t&&(n=a)}return null===n?t:n.name}function ce(e,t){if(!e)return t;if(!e.domain)return t;let n=null;t=K(t);for(let r=0;r<e.domain.codedValues.length;r++){const a=e.domain.codedValues[r];a.name===t&&(n=a)}return null===n?t:n.code}function me(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let a,i,o=null;for(let l=0;l<t.fields.length;l++){const n=t.fields[l];n.name.toLowerCase()===e.toString().toLowerCase()&&(o=n)}if(null===o)throw new b(null,x.FieldNotFound,null,{key:e});return null===r&&n&&t.typeIdField&&(r=n.hasField(t.typeIdField)?n.field(t.typeIdField):null),null!=r&&t.types.some((e=>e.id===r&&(a=e.domains&&e.domains[o.name],a&&"inherited"===a.type&&(a=de(o.name,t),i=!0),!0))),i||a||(a=de(e,t)),{field:o,domain:a}}function de(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function ye(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(a=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},i={key:n,value:e[n]};return a(r,i)}});var a;const i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let a,o;if(Array.isArray(t)){for(o="[",a=0;a<t.length;a++)a&&(o+=","),o+=e(t[a])||"null";return o+"]"}if(null===t)return"null";if(i.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=i.push(t)-1,s=Object.keys(t).sort(r&&r(t));for(o="",a=0;a<s.length;a++){const n=s[a],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return i.splice(l,1),"{"+o+"}"}(e)}function pe(e){if(null===e)return null;const t=[];for(const n of e)n&&n.arcadeDeclaredClass&&"esri.arcade.Feature"===n.arcadeDeclaredClass?t.push(n.geometry()):t.push(n);return t}function ge(e,t){if(!(t instanceof l))throw new b(null,x.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function he(e,t){if(Y(e)||E(e)){let n=!1,a=!1,i=[],o=t;if(Y(e)){for(const t of e)ge(i,t);i.length>0&&(o=e[0].spatialReference,n=e[0].hasZ,a=e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(n=e._hasZ,a=e._hasM,o=e.get(0).spatialReference);else{if(!E(e))throw new b(null,x.InvalidParameter,null);for(const t of e.toArray())ge(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}if(0===i.length)return null;return y(i,a,n)||(i=i.slice(0).reverse()),new s({rings:[i],spatialReference:o,hasZ:n,hasM:a})}return e}function Se(e,t){if(Y(e)||E(e)){let n=!1,a=!1,i=[],o=t;if(Y(e)){for(const t of e)ge(i,t);i.length>0&&(o=e[0].spatialReference,n=!0===e[0].hasZ,a=!0===e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(n=e._hasZ,a=e._hasM,o=e.get(0).spatialReference);else if(E(e)){for(const t of e.toArray())ge(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}return 0===i.length?null:new u({paths:[i],spatialReference:o,hasZ:n,hasM:a})}return e}function be(e,t){if(Y(e)||E(e)){let n=!1,a=!1,i=[],l=t;if(Y(e)){for(const t of e)ge(i,t);i.length>0&&(l=e[0].spatialReference,n=!0===e[0].hasZ,a=!0===e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(n=e._hasZ,a=e._hasM,l=e.get(0).spatialReference);else if(E(e)){for(const t of e.toArray())ge(i,t);i.length>0&&(l=e.get(0).spatialReference,n=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}return 0===i.length?null:new o({points:i,spatialReference:l,hasZ:n,hasM:a})}return e}function xe(e,n=!1){const r=[];if(null===e)return r;if(!0===Y(e)){for(let t=0;t<e.length;t++){const a=K(e[t]);""===a&&!0!==n||r.push(a)}return r}if(e instanceof t){for(let t=0;t<e.length();t++){const a=K(e.get(t));""===a&&!0!==n||r.push(a)}return r}if(I(e)){const t=K(e);return""===t&&!0!==n||r.push(t),r}return[]}let Te=0;function Me(e){return Te++,Te%100==0?(Te=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function Ne(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function De(e,n=null){return null==e?null:_(e)||Z(e)||w(e)?e:e instanceof i?!0===n?.keepGeometryType?e:e.toJSON():e instanceof t?e.toArray().map((e=>De(e,n))):e instanceof Array?e.map((e=>De(e,n))):e instanceof Date?e:null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(n):null}async function ke(e,t,n,r,a){const i=await je(e,t,n);a[r]=i}async function je(e,n=null,r=null){if(e instanceof t&&(e=e.toArray()),null==e)return null;if(I(e)||e instanceof i||e instanceof Date)return De(e,r);if(e instanceof Array){const t=[],a=[];for(const o of e)null===o||I(o)||o instanceof i||o instanceof Date?a.push(De(o,r)):(a.push(null),t.push(ke(o,n,r,a.length-1,a)));return t.length>0&&await Promise.all(t),a}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(n,r):null}function Ae(e,t,n){const r=e.fullSchema();if(null===r)return null;if(!r.fields)return null;return me(t,r,e,n)}function Re(e){const t=e.fullSchema();return null===t?null:t.fields&&t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null}function Fe(e,t,n,r){const a=e.fullSchema();if(null===a)return null;if(!a.fields)return null;const i=me(t,a,e,r);if(void 0===n)try{n=e.field(t)}catch(o){return null}return fe(i,n)}function Ce(e,t,n,r){const a=e.fullSchema();if(null===a)return null;if(!a.fields)return null;if(void 0===n){try{n=e.field(t)}catch(i){return null}return n}return ce(me(t,a,e,r),n)}function Ie(e){const t=e.fullSchema();if(null===t)return null;if(!t.fields)return null;const n=[];for(const r of t.fields)n.push(g(r));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField,geometryType:void 0===h[t.geometryType]?"":h[t.geometryType],fields:n}}const ve=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:N,ImplicitResultE:M,ReturnResult:D,ReturnResultE:T,absRound:H,autoCastArrayOfPointsToMultiPoint:be,autoCastArrayOfPointsToPolygon:he,autoCastArrayOfPointsToPolyline:Se,autoCastFeatureToGeometry:pe,binaryOperator:Ne,breakResult:j,castAsJson:De,castAsJsonAsync:je,continueResult:A,defaultUndefined:v,equalityTest:X,featureDomainCodeLookup:Ce,featureDomainValueLookup:Fe,featureFullDomain:Ae,featureSchema:Ie,featureSubtypes:Re,fixNullGeometry:ue,fixSpatialReference:se,formatDate:B,formatNumber:q,generateUUID:U,getDomain:me,getDomainCode:ce,getDomainValue:fe,getType:O,greaterThanLessThan:Q,isArray:Y,isBoolean:_,isDate:z,isFeature:J,isFeatureSet:P,isFeatureSetCollection:G,isFunctionParameter:F,isImmutableArray:E,isInteger:L,isModule:C,isNumber:Z,isSimpleType:I,isString:w,multiReplace:R,pcCheck:V,stableStringify:ye,standardiseDateFormat:W,tick:Me,toBoolean:le,toDate:ae,toDateTime:ie,toNumber:re,toNumberArray:ee,toString:K,toStringArray:xe,toStringExplicit:te,voidOperation:k},Symbol.toStringTag,{value:"Module"}));export{T as $,v as A,O as B,W as C,ie as D,H as E,ue as F,pe as G,Se as H,N as I,he as J,be as K,R as L,U as M,Ie as N,Re as O,Ae as P,Fe as Q,D as R,Ce as S,P as T,G as U,ee as V,Me as W,xe as X,me as Y,fe as Z,ce as _,_ as a,M as a0,C as a1,q as a2,B as a3,ye as a4,Z as b,w as c,De as d,je as e,I as f,re as g,le as h,F as i,K as j,z as k,ae as l,Y as m,ve as n,j as o,A as p,se as q,Q as r,X as s,te as t,Ne as u,k as v,J as w,E as x,V as y,L as z};
5
+ import{ArcadeFunction as e}from"../arcade/FunctionWrapper.js";import n from"../arcade/ImmutableArray.js";import t from"../arcade/ImmutablePathArray.js";import r from"../arcade/ImmutablePointArray.js";import{ArcadeDate as a,createDateTimeZone as i}from"../arcade/ArcadeDate.js";import o from"../geometry/Extent.js";import l from"../geometry/Geometry.js";import u from"../geometry/Multipoint.js";import s from"../geometry/Point.js";import f from"../geometry/Polygon.js";import c from"../geometry/Polyline.js";import{DateTime as m}from"luxon";import{isNone as d}from"../core/maybe.js";import{format as y,parse as p}from"../core/number.js";import{isClockwise as h}from"../geometry/support/coordsUtils.js";import{getLocale as g}from"../intl/locale.js";import{esriFieldToJson as b,layerGeometryEsriRestConstants as x}from"../arcade/featureset/support/shared.js";import{ArcadeModule as S}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as N,ExecutionErrorCodes as T}from"../arcade/executionError.js";class M{constructor(e){this.value=e}}class k{constructor(e){this.value=e}}const R=k,j=M,A={type:"VOID"},D={type:"BREAK"},F={type:"CONTINUE"};function I(e,n,t){return""===n||null==n||n===t||n===t?e:e=e.split(n).join(t)}function C(n){return n instanceof e}function w(e){return e instanceof S}function v(e){return!!_(e)||(!!Y(e)||(!!U(e)||(!!L(e)||(null===e||(e===A||"number"==typeof e)))))}function O(e,n){return void 0===e?n:e}function Z(e){return null==e?"":J(e)||V(e)?"Array":U(e)?"Date":_(e)?"String":L(e)?"Boolean":Y(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":e instanceof S?"Module":z(e)?"Feature":e instanceof s?"Point":e instanceof f?"Polygon":e instanceof c?"Polyline":e instanceof u?"Multipoint":e instanceof o?"Extent":C(e)?"Function":G(e)?"FeatureSet":E(e)?"FeatureSetCollection":e===A?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognised Type"}function _(e){return"string"==typeof e||e instanceof String}function L(e){return"boolean"==typeof e}function Y(e){return"number"==typeof e}function P(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function J(e){return e instanceof Array}function z(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function G(e){return!0===(e&&e.declaredRootClass&&"esri.arcade.featureset.support.FeatureSet"===e.declaredRootClass)}function E(e){return!0===(e&&e.declaredRootClass&&"esri.arcade.featureSetCollection"===e.declaredRootClass)}function V(e){return e instanceof n}function U(e){return e instanceof a}function H(e){return e instanceof Date}function q(e,n,t,r,a){if(e.length<n||e.length>t)throw new N(r,T.WrongNumberOfParameters,a)}function B(e){return e<0?-Math.round(-e):Math.round(e)}function W(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{const t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===n?t:3&t|8).toString(16)}))}function $(e,n){return isNaN(e)||null==n||""===n?e.toString():(n=I(n,"‰",""),n=I(n,"¤",""),y(e,{pattern:n}))}function Q(e,n){return null==n||""===n?e.toISOString(!0):e.toFormat(X(n),{locale:g(),numberingSystem:"latn"})}function X(e){e=e.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$&]");let n="";const t=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(t)||[])switch(r){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="ZZ";break;case"ZZ":n+="ZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?n+=`'${r.slice(1,-1)}'`:n+=`'${r}'`}return n}function K(e,n,t){switch(t){case">":return e>n;case"<":return e<n;case">=":return e>=n;case"<=":return e<=n}return!1}function ee(e,n,t){if(null===e){if(null===n||n===A)return K(null,null,t);if(Y(n))return K(0,n,t);if(_(n))return K(0,oe(n),t);if(L(n))return K(0,oe(n),t);if(U(n))return K(0,n.toNumber(),t)}if(e===A){if(null===n||n===A)return K(null,null,t);if(Y(n))return K(0,n,t);if(_(n))return K(0,oe(n),t);if(L(n))return K(0,oe(n),t);if(U(n))return K(0,n.toNumber(),t)}else if(Y(e)){if(Y(n))return K(e,n,t);if(L(n))return K(e,oe(n),t);if(null===n||n===A)return K(e,0,t);if(_(n))return K(e,oe(n),t);if(U(n))return K(e,n.toNumber(),t)}else if(_(e)){if(_(n))return K(te(e),te(n),t);if(U(n))return K(oe(e),n.toNumber(),t);if(Y(n))return K(oe(e),n,t);if(null===n||n===A)return K(oe(e),0,t);if(L(n))return K(oe(e),oe(n),t)}else if(U(e)){if(U(n))return K(e.toNumber(),n.toNumber(),t);if(null===n||n===A)return K(e.toNumber(),0,t);if(Y(n))return K(e.toNumber(),n,t);if(L(n))return K(e.toNumber(),oe(n),t);if(_(n))return K(e.toNumber(),oe(n),t)}else if(L(e)){if(L(n))return K(e,n,t);if(Y(n))return K(oe(e),oe(n),t);if(U(n))return K(oe(e),n.toNumber(),t);if(null===n||n===A)return K(oe(e),0,t);if(_(n))return K(oe(e),oe(n),t)}return!!ne(e,n)&&("<="===t||">="===t)}function ne(e,n){if(e===n)return!0;if(null===e&&n===A||null===n&&e===A)return!0;if(U(e)&&U(n))return e.equals(n);if(e instanceof t)return e.equalityTest(n);if(e instanceof r)return e.equalityTest(n);if(e instanceof s&&n instanceof s){const t=e.cache._arcadeCacheId,r=n.cache._arcadeCacheId;if(null!=t)return t===r}if(void 0!==e&&void 0!==n&&null!==e&&null!==n&&"object"==typeof e&&"object"==typeof n){if(e._arcadeCacheId===n._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===n._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function te(e,t){if(_(e))return e;if(null===e)return"";if(Y(e))return $(e,t);if(L(e))return e.toString();if(U(e))return Q(e,t);if(e instanceof l)return JSON.stringify(e.toJSON());if(J(e)){const n=[];for(let t=0;t<e.length;t++)n[t]=ie(e[t]);return"["+n.join(",")+"]"}if(e instanceof n){const n=[];for(let t=0;t<e.length();t++)n[t]=ie(e.get(t));return"["+n.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText():C(e)?"object, Function":e===A?"":w(e)?"object, Module":""}function re(e){const t=[];if(!J(e))return null;if(e instanceof n){for(let n=0;n<e.length();n++)t[n]=oe(e.get(n));return t}for(let n=0;n<e.length;n++)t[n]=oe(e[n]);return t}function ae(e,t,r=!1){if(_(e))return e;if(null===e)return"";if(Y(e))return $(e,t);if(L(e))return e.toString();if(U(e))return Q(e,t);if(e instanceof l)return e instanceof o?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+he(e.spatialReference)+"}":he(e.toJSON(),((e,n)=>e.key===n.key?0:"spatialReference"===e.key?1:"spatialReference"===n.key||e.key<n.key?-1:e.key>n.key?1:0));if(J(e)){const n=[];for(let t=0;t<e.length;t++)n[t]=ie(e[t],r);return"["+n.join(",")+"]"}if(e instanceof n){const n=[];for(let t=0;t<e.length();t++)n[t]=ie(e.get(t),r);return"["+n.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText(r):C(e)?"object, Function":e===A?"":w(e)?"object, Module":""}function ie(e,t=!1){if(null===e)return"null";if(L(e)||Y(e)||_(e))return JSON.stringify(e);if(e instanceof l)return ae(e,null,t);if(e instanceof n)return ae(e,null,t);if(e instanceof Array)return ae(e,null,t);if(U(e))return t?JSON.stringify(e.getTime()):JSON.stringify(Q(e,""));if(null!==e&&"object"==typeof e){if(void 0!==e.castToText)return e.castToText(t)}else if(e===A)return"null";return"null"}function oe(e,n){return Y(e)?e:null===e||""===e?0:U(e)?NaN:L(e)?e?1:0:J(e)||""===e||void 0===e?NaN:void 0!==n&&_(e)?(n=I(n,"‰",""),n=I(n,"¤",""),p(e,{pattern:n})):e===A?0:Number(e)}function le(e,n){if(U(e))return e;if(_(e)){const t=ue(e,n);if(t)return a.dateTimeToArcadeDate(t)}return null}function ue(e,n){const t=/ (\d\d)/,r=i(n);let a=m.fromISO(e,{zone:r});return a.isValid||t.test(e)&&(e=e.replace(t,"T$1"),a=m.fromISO(e,{zone:n}),a.isValid)?a:null}function se(e){return L(e)?e:_(e)?"true"===(e=e.toLowerCase()):!!Y(e)&&(0!==e&&!isNaN(e))}function fe(e,n){return d(e)?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=n),e)}function ce(e){if(null===e)return null;if(e instanceof s)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof f){if(0===e.rings.length)return null;for(const n of e.rings)if(n.length>0)return e;return null}if(e instanceof c){if(0===e.paths.length)return null;for(const n of e.paths)if(n.length>0)return e;return null}return e instanceof u?0===e.points.length?null:e:e instanceof o?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function me(e,n){if(!e)return n;if(!e.domain)return n;let t=null;if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=te(n);else{if(null==n)return null;if(""===n)return n;n=oe(n)}for(let r=0;r<e.domain.codedValues.length;r++){const a=e.domain.codedValues[r];a.code===n&&(t=a)}return null===t?n:t.name}function de(e,n){if(!e)return n;if(!e.domain)return n;let t=null;n=te(n);for(let r=0;r<e.domain.codedValues.length;r++){const a=e.domain.codedValues[r];a.name===n&&(t=a)}return null===t?n:t.code}function ye(e,n,t=null,r=null){if(!n)return null;if(!n.fields)return null;let a,i,o=null;for(let l=0;l<n.fields.length;l++){const t=n.fields[l];t.name.toLowerCase()===e.toString().toLowerCase()&&(o=t)}if(null===o)throw new N(null,T.FieldNotFound,null,{key:e});return null===r&&t&&n.typeIdField&&(r=t.hasField(n.typeIdField)?t.field(n.typeIdField):null),null!=r&&n.types.some((e=>e.id===r&&(a=e.domains&&e.domains[o.name],a&&"inherited"===a.type&&(a=pe(o.name,n),i=!0),!0))),i||a||(a=pe(e,n)),{field:o,domain:a}}function pe(e,n){let t;return n.fields.some((n=>(n.name.toLowerCase()===e.toLowerCase()&&(t=n.domain),!!t))),t}function he(e,n){n||(n={}),"function"==typeof n&&(n={cmp:n});const t="boolean"==typeof n.cycles&&n.cycles,r=n.cmp&&(a=n.cmp,function(e){return function(n,t){const r={key:n,value:e[n]},i={key:t,value:e[t]};return a(r,i)}});var a;const i=[];return function e(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0===n)return;if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);let a,o;if(Array.isArray(n)){for(o="[",a=0;a<n.length;a++)a&&(o+=","),o+=e(n[a])||"null";return o+"]"}if(null===n)return"null";if(i.includes(n)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=i.push(n)-1,u=Object.keys(n).sort(r&&r(n));for(o="",a=0;a<u.length;a++){const t=u[a],r=e(n[t]);r&&(o&&(o+=","),o+=JSON.stringify(t)+":"+r)}return i.splice(l,1),"{"+o+"}"}(e)}function ge(e){if(null===e)return null;const n=[];for(const t of e)t&&t.arcadeDeclaredClass&&"esri.arcade.Feature"===t.arcadeDeclaredClass?n.push(t.geometry()):n.push(t);return n}function be(e,n){if(!(n instanceof s))throw new N(null,T.InvalidParameter,null);e.push(n.hasZ?n.hasM?[n.x,n.y,n.z,n.m]:[n.x,n.y,n.z]:[n.x,n.y])}function xe(e,n){if(J(e)||V(e)){let t=!1,a=!1,i=[],o=n;if(J(e)){for(const n of e)be(i,n);i.length>0&&(o=e[0].spatialReference,t=e[0].hasZ,a=e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(t=e._hasZ,a=e._hasM,o=e.get(0).spatialReference);else{if(!V(e))throw new N(null,T.InvalidParameter,null);for(const n of e.toArray())be(i,n);i.length>0&&(o=e.get(0).spatialReference,t=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}if(0===i.length)return null;return h(i,a,t)||(i=i.slice(0).reverse()),new f({rings:[i],spatialReference:o,hasZ:t,hasM:a})}return e}function Se(e,n){if(J(e)||V(e)){let t=!1,a=!1,i=[],o=n;if(J(e)){for(const n of e)be(i,n);i.length>0&&(o=e[0].spatialReference,t=!0===e[0].hasZ,a=!0===e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(t=e._hasZ,a=e._hasM,o=e.get(0).spatialReference);else if(V(e)){for(const n of e.toArray())be(i,n);i.length>0&&(o=e.get(0).spatialReference,t=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}return 0===i.length?null:new c({paths:[i],spatialReference:o,hasZ:t,hasM:a})}return e}function Ne(e,n){if(J(e)||V(e)){let t=!1,a=!1,i=[],o=n;if(J(e)){for(const n of e)be(i,n);i.length>0&&(o=e[0].spatialReference,t=!0===e[0].hasZ,a=!0===e[0].hasM)}else if(e instanceof r)i=e._elements,i.length>0&&(t=e._hasZ,a=e._hasM,o=e.get(0).spatialReference);else if(V(e)){for(const n of e.toArray())be(i,n);i.length>0&&(o=e.get(0).spatialReference,t=!0===e.get(0).hasZ,a=!0===e.get(0).hasM)}return 0===i.length?null:new u({points:i,spatialReference:o,hasZ:t,hasM:a})}return e}function Te(e,t=!1){const r=[];if(null===e)return r;if(!0===J(e)){for(let n=0;n<e.length;n++){const a=te(e[n]);""===a&&!0!==t||r.push(a)}return r}if(e instanceof n){for(let n=0;n<e.length();n++){const a=te(e.get(n));""===a&&!0!==t||r.push(a)}return r}if(v(e)){const n=te(e);return""===n&&!0!==t||r.push(n),r}return[]}let Me=0;function ke(e){return Me++,Me%100==0?(Me=0,new Promise((n=>{setTimeout((()=>{n(e)}),0)}))):e}function Re(e,n,t){switch(t){case"&":return e&n;case"|":return e|n;case"^":return e^n;case"<<":return e<<n;case">>":return e>>n;case">>>":return e>>>n}}function je(e,t=null){return null==e?null:L(e)||Y(e)||_(e)?e:e instanceof l?!0===t?.keepGeometryType?e:e.toJSON():e instanceof n?e.toArray().map((e=>je(e,t))):e instanceof Array?e.map((e=>je(e,t))):H(e)?e:U(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ae(e,n,t,r,a){const i=await De(e,n,t);a[r]=i}async function De(e,t=null,r=null){if(e instanceof n&&(e=e.toArray()),null==e)return null;if(v(e)||e instanceof l||H(e)||U(e))return je(e,r);if(e instanceof Array){const n=[],a=[];for(const i of e)null===i||v(i)||i instanceof l||H(i)||U(i)?a.push(je(i,r)):(a.push(null),n.push(Ae(i,t,r,a.length-1,a)));return n.length>0&&await Promise.all(n),a}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,r):null}function Fe(e,n,t){const r=e.fullSchema();if(null===r)return null;if(!r.fields)return null;return ye(n,r,e,t)}function Ie(e){const n=e.fullSchema();return null===n?null:n.fields&&n.typeIdField?{subtypeField:n.typeIdField,subtypes:n.types?n.types.map((e=>({name:e.name,code:e.id}))):[]}:null}function Ce(e,n,t,r){const a=e.fullSchema();if(null===a)return null;if(!a.fields)return null;const i=ye(n,a,e,r);if(void 0===t)try{t=e.field(n)}catch(o){return null}return me(i,t)}function we(e,n,t,r){const a=e.fullSchema();if(null===a)return null;if(!a.fields)return null;if(void 0===t){try{t=e.field(n)}catch(i){return null}return t}return de(ye(n,a,e,r),t)}function ve(e){return e?.timeReference?.timeZone?e?.timeReference?.timeZone:"system"}function Oe(e){const n=e.fullSchema();if(null===n)return null;if(!n.fields)return null;const t=[];for(const r of n.fields)t.push(b(r));return{objectIdField:n.objectIdField,globalIdField:n.globalIdField,geometryType:void 0===x[n.geometryType]?"":x[n.geometryType],fields:t,datesInUnknownTimezone:!0===n.datesInUnknownTimezone,preferredTimeReference:n.preferredTimeReference||null,editFieldsInfo:n.editFieldsInfo||null,timeInfo:n.timeInfo||null,dateFieldsTimeReference:n.dateFieldsTimeReference||null}}const Ze=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:R,ImplicitResultE:k,ReturnResult:j,ReturnResultE:M,absRound:B,autoCastArrayOfPointsToMultiPoint:Ne,autoCastArrayOfPointsToPolygon:xe,autoCastArrayOfPointsToPolyline:Se,autoCastFeatureToGeometry:ge,binaryOperator:Re,breakResult:D,castAsJson:je,castAsJsonAsync:De,continueResult:F,defaultTimeZone:ve,defaultUndefined:O,equalityTest:ne,featureDomainCodeLookup:we,featureDomainValueLookup:Ce,featureFullDomain:Fe,featureSchema:Oe,featureSubtypes:Ie,fixNullGeometry:ce,fixSpatialReference:fe,formatDate:Q,formatNumber:$,generateUUID:W,getDomain:ye,getDomainCode:de,getDomainValue:me,getType:Z,greaterThanLessThan:ee,isArray:J,isBoolean:L,isDate:U,isFeature:z,isFeatureSet:G,isFeatureSetCollection:E,isFunctionParameter:C,isImmutableArray:V,isInteger:P,isJsDate:H,isModule:w,isNumber:Y,isSimpleType:v,isString:_,multiReplace:I,pcCheck:q,stableStringify:he,standardiseDateFormat:X,tick:ke,toBoolean:se,toDate:le,toNumber:oe,toNumberArray:re,toString:te,toStringArray:Te,toStringExplicit:ae,voidOperation:A},Symbol.toStringTag,{value:"Module"}));export{M as $,O as A,Z as B,ve as C,X as D,B as E,ce as F,ge as G,Se as H,R as I,xe as J,Ne as K,I as L,W as M,Oe as N,Ie as O,Fe as P,Ce as Q,j as R,we as S,G as T,E as U,re as V,ke as W,Te as X,ye as Y,me as Z,de as _,L as a,k as a0,w as a1,H as a2,$ as a3,Q as a4,he as a5,Y as b,_ as c,je as d,De as e,v as f,oe as g,se as h,C as i,te as j,U as k,le as l,J as m,Ze as n,D as o,F as p,fe as q,ee as r,ne as s,ae as t,Re as u,A as v,z as w,V as x,q as y,P as z};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import"../../core/has.js";import{wrapImageData as e}from"../../core/imageUtils.js";import{JSONSupport as a}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{ensureClass as s}from"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{reader as o}from"../../core/accessorSupport/decorators/reader.js";import{subclass as n}from"../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../core/accessorSupport/decorators/writer.js";import{t as l,w as c}from"../../chunks/persistableUrlUtils.js";var p;const d=new WeakMap;let h=0,u=p=class extends a{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,a,r){if(t instanceof HTMLImageElement){const s={type:"image-element",src:l(t.src,r),crossOrigin:t.crossOrigin};e[a]=s}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),s={type:"canvas-element",imageData:this._encodeImageData(r)};e[a]=s}else if(t instanceof HTMLVideoElement){const s={type:"video-element",src:l(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[a]=s}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[a]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),a=document.createElement("canvas");return a.width=e.width,a.height=e.height,a.getContext("2d").putImageData(e,0,0),a}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),a=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===a)return!0}return!1}set transparent(t){this._overrideIfSome("transparent",t)}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(d.has(this.data)||d.set(this.data,++h),e(d.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new p(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const a=this.clone();return t.set(this,a),a}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let a=0;a<t.data.length;a++)e+=String.fromCharCode(t.data[a]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const a=atob(t.data),r=new Uint8ClampedArray(a.length);for(let e=0;e<a.length;e++)r[e]=a.charCodeAt(e);return e(r,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new p({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new p({data:t}):s(p,t)}};t([r({type:String,json:{write:c}})],u.prototype,"url",null),t([r({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),r()],u.prototype,"data",null),t([i("data")],u.prototype,"writeData",null),t([o("data")],u.prototype,"readData",null),t([r({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],u.prototype,"transparent",null),t([r({json:{write:!0}})],u.prototype,"wrap",void 0),t([r({readOnly:!0})],u.prototype,"contentHash",null),u=p=t([n("esri.geometry.support.MeshTexture")],u);const m=u;export{m as default};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import"../../core/has.js";import{wrapImageData as e}from"../../core/imageUtils.js";import{JSONSupport as a}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{ensureClass as s}from"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";import{subclass as o}from"../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../core/accessorSupport/decorators/writer.js";import{t as c,w as l}from"../../chunks/persistableUrlUtils.js";var p;const d=new WeakMap;let h=0,u=p=class extends a{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,a,r){if(t instanceof HTMLImageElement){const s={type:"image-element",src:c(t.src,r),crossOrigin:t.crossOrigin};e[a]=s}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),s={type:"canvas-element",imageData:this._encodeImageData(r)};e[a]=s}else if(t instanceof HTMLVideoElement){const s={type:"video-element",src:c(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[a]=s}else if(t instanceof ImageData){const r={type:"image-data",imageData:this._encodeImageData(t)};e[a]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),a=document.createElement("canvas");return a.width=e.width,a.height=e.height,a.getContext("2d").putImageData(e,0,0),a}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),a=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===a)return!0}return!1}set transparent(t){this._overrideIfSome("transparent",t)}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;if(null!=this.url)return e(this.url);if(null!=this.data){if(this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement)return e(this.data.src);if(this.data instanceof HTMLCanvasElement||this.data instanceof ImageData)return d.has(this.data)||d.set(this.data,++h),e(d.get(this.data))}return e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new p(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const a=this.clone();return t.set(this,a),a}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let a=0;a<t.data.length;a++)e+=String.fromCharCode(t.data[a]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const a=atob(t.data),r=new Uint8ClampedArray(a.length);for(let e=0;e<a.length;e++)r[e]=a.charCodeAt(e);return e(r,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new p({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new p({data:t}):s(p,t)}};t([r({type:String,json:{write:l}})],u.prototype,"url",null),t([r({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),r()],u.prototype,"data",null),t([i("data")],u.prototype,"writeData",null),t([n("data")],u.prototype,"readData",null),t([r({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],u.prototype,"transparent",null),t([r({json:{write:!0}})],u.prototype,"wrap",void 0),t([r({readOnly:!0})],u.prototype,"contentHash",null),u=p=t([o("esri.geometry.support.MeshTexture")],u);const m=u;export{m as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import{isNone as n}from"../../core/maybe.js";import t from"../Extent.js";import{create as r}from"./aaBoundingRect.js";function i(n){return n}function a(n=D){return i([n[0],n[1],n[2],n[3],n[4],n[5]])}function u(n,t,r,i,u,e,m=a()){return m[0]=n,m[1]=t,m[2]=r,m[3]=i,m[4]=u,m[5]=e,m}function e(n,t=a()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.hasZ?n.zmin:-1/0,t[3]=n.xmax,t[4]=n.ymax,t[5]=n.hasZ?n.zmax:1/0,t}function m(n,r){const i=isFinite(n[2])||isFinite(n[5]);return new t(i?{xmin:n[0],xmax:n[3],ymin:n[1],ymax:n[4],zmin:n[2],zmax:n[5],spatialReference:r}:{xmin:n[0],xmax:n[3],ymin:n[1],ymax:n[4],spatialReference:r})}function o(n,t,r=a()){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=t[0],r[4]=t[1],r[5]=t[2],r}function f(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[3]),n[4]=Math.max(n[4],t[4]),n[5]=Math.max(n[5],t[5])}function h(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[3]=Math.max(n[3],t[2]),n[4]=Math.max(n[4],t[3])}function c(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[0]),n[4]=Math.max(n[4],t[1]),n[5]=Math.max(n[5],t[2])}function M(n,t,r=0,i=t.length/3){let a=n[0],u=n[1],e=n[2],m=n[3],o=n[4],f=n[5];for(let h=0;h<i;h++)a=Math.min(a,t[r+3*h]),u=Math.min(u,t[r+3*h+1]),e=Math.min(e,t[r+3*h+2]),m=Math.max(m,t[r+3*h]),o=Math.max(o,t[r+3*h+1]),f=Math.max(f,t[r+3*h+2]);n[0]=a,n[1]=u,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function x(n,t,r,i){n[0]=Math.min(n[0],n[0]+t),n[3]=Math.max(n[3],n[3]+t),n[1]=Math.min(n[1],n[1]+r),n[4]=Math.max(n[4],n[4]+r),n[2]=Math.min(n[2],n[2]+i),n[5]=Math.max(n[5],n[5]+i)}function s(n,t,r){const i=t.length;let a=n[0],u=n[1],e=n[2],m=n[3],o=n[4],f=n[5];if(r)for(let h=0;h<i;h++){const n=t[h];a=Math.min(a,n[0]),u=Math.min(u,n[1]),e=Math.min(e,n[2]),m=Math.max(m,n[0]),o=Math.max(o,n[1]),f=Math.max(f,n[2])}else for(let h=0;h<i;h++){const n=t[h];a=Math.min(a,n[0]),u=Math.min(u,n[1]),m=Math.max(m,n[0]),o=Math.max(o,n[1])}n[0]=a,n[1]=u,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function l(n){for(let t=0;t<6;t++)if(!isFinite(n[t]))return!1;return!0}function I(n){return n[0]>=n[3]?0:n[3]-n[0]}function y(n){return n[1]>=n[4]?0:n[4]-n[1]}function N(n){return n[2]>=n[5]?0:n[5]-n[2]}function g(n){const t=I(n),r=N(n),i=y(n);return Math.sqrt(t*t+r*r+i*i)}function p(n,t=[0,0,0]){return t[0]=n[0]+I(n)/2,t[1]=n[1]+y(n)/2,t[2]=n[2]+N(n)/2,t}function F(n,t=[0,0,0]){return t[0]=I(n),t[1]=y(n),t[2]=N(n),t}function z(n){return Math.max(I(n),N(n),y(n))}function E(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[0]<=n[3]&&t[1]<=n[4]&&t[2]<=n[5]}function T(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[2]>=n[2]-r&&t[0]<=n[3]+r&&t[1]<=n[4]+r&&t[2]<=n[5]+r}function b(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[3]<=n[3]&&t[4]<=n[4]&&t[5]<=n[5]}function j(n,t){return Math.max(t[0],n[0])<=Math.min(t[3],n[3])&&Math.max(t[1],n[1])<=Math.min(t[4],n[4])&&Math.max(t[2],n[2])<=Math.min(t[5],n[5])}function R(t,r){return!!n(r)||j(t,r)}function V(n,t,r,i,a=n){return a[0]=n[0]+t,a[1]=n[1]+r,a[2]=n[2]+i,a[3]=n[3]+t,a[4]=n[4]+r,a[5]=n[5]+i,a}function Y(n,t,r=n){const i=n[0]+I(n)/2,a=n[1]+y(n)/2,u=n[2]+N(n)/2;return r[0]=i+(n[0]-i)*t,r[1]=a+(n[1]-a)*t,r[2]=u+(n[2]-u)*t,r[3]=i+(n[3]-i)*t,r[4]=a+(n[4]-a)*t,r[5]=u+(n[5]-u)*t,r}function Z(n,t){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function _(n,t){return t[0]=n[3],t[1]=n[4],t[2]=n[5],t}function d(n,t,r=n){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==n&&(r[3]=n[3],r[4]=n[4],r[5]=n[5]),r}function q(n,t,r=n){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==n&&(r[0]=n[0],r[1]=n[1],r[2]=n[2]),n}function w(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function A(n){return n?w(n,C):a(C)}function B(n,t){return t||(t=r()),t[0]=n[0],t[1]=n[1],t[2]=n[3],t[3]=n[4],t}function G(n,t){return n[0]=t[0],n[1]=t[1],n[2]=Number.NEGATIVE_INFINITY,n[3]=t[2],n[4]=t[3],n[5]=Number.POSITIVE_INFINITY,n}function O(n){return 6===n.length}function P(n){return 0===I(n)&&0===y(n)&&0===N(n)}function S(t,r,i){if(n(t)||n(r))return t===r;if(!O(t)||!O(r))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],r[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}function k(n,t,r,i,a,e){return u(n,t,r,i,a,e,H)}const v=i([-1/0,-1/0,-1/0,1/0,1/0,1/0]),C=i([1/0,1/0,1/0,-1/0,-1/0,-1/0]),D=i([0,0,0,0,0,0]),H=a();export{C as NEGATIVE_INFINITY,v as POSITIVE_INFINITY,D as ZERO,l as allFinite,p as center,b as contains,E as containsPoint,T as containsPointWithMargin,a as create,y as depth,g as diameter,A as empty,S as equals,f as expandWithAABB,M as expandWithBuffer,s as expandWithNestedArray,x as expandWithOffset,h as expandWithRect,c as expandWithVec3,e as fromExtent,o as fromMinMax,G as fromRect,u as fromValues,_ as getMax,Z as getMin,N as height,j as intersects,R as intersectsClippingArea,O as is,P as isPoint,z as maximumDimension,V as offset,Y as scale,w as set,q as setMax,d as setMin,F as size,m as toExtent,B as toRect,I as width,k as wrap};
5
+ import{isNone as n}from"../../core/maybe.js";import t from"../Extent.js";import{create as r}from"./aaBoundingRect.js";function i(n){return n}function a(n=H){return i([n[0],n[1],n[2],n[3],n[4],n[5]])}function u(n,t,r,i,u,e,m=a()){return m[0]=n,m[1]=t,m[2]=r,m[3]=i,m[4]=u,m[5]=e,m}function e(n,t=a()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.hasZ?n.zmin:-1/0,t[3]=n.xmax,t[4]=n.ymax,t[5]=n.hasZ?n.zmax:1/0,t}function m(n,r){const i=isFinite(n[2])||isFinite(n[5]);return new t(i?{xmin:n[0],xmax:n[3],ymin:n[1],ymax:n[4],zmin:n[2],zmax:n[5],spatialReference:r}:{xmin:n[0],xmax:n[3],ymin:n[1],ymax:n[4],spatialReference:r})}function o(n,t,r=a()){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=t[0],r[4]=t[1],r[5]=t[2],r}function f(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[3]),n[4]=Math.max(n[4],t[4]),n[5]=Math.max(n[5],t[5])}function h(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[3]=Math.max(n[3],t[2]),n[4]=Math.max(n[4],t[3])}function c(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[0]),n[4]=Math.max(n[4],t[1]),n[5]=Math.max(n[5],t[2])}function M(n,t,r=0,i=t.length/3){let a=n[0],u=n[1],e=n[2],m=n[3],o=n[4],f=n[5];for(let h=0;h<i;h++)a=Math.min(a,t[r+3*h]),u=Math.min(u,t[r+3*h+1]),e=Math.min(e,t[r+3*h+2]),m=Math.max(m,t[r+3*h]),o=Math.max(o,t[r+3*h+1]),f=Math.max(f,t[r+3*h+2]);n[0]=a,n[1]=u,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function x(n,t,r,i){n[0]=Math.min(n[0],n[0]+t),n[3]=Math.max(n[3],n[3]+t),n[1]=Math.min(n[1],n[1]+r),n[4]=Math.max(n[4],n[4]+r),n[2]=Math.min(n[2],n[2]+i),n[5]=Math.max(n[5],n[5]+i)}function s(n,t,r){const i=t.length;let a=n[0],u=n[1],e=n[2],m=n[3],o=n[4],f=n[5];if(r)for(let h=0;h<i;h++){const n=t[h];a=Math.min(a,n[0]),u=Math.min(u,n[1]),e=Math.min(e,n[2]),m=Math.max(m,n[0]),o=Math.max(o,n[1]),f=Math.max(f,n[2])}else for(let h=0;h<i;h++){const n=t[h];a=Math.min(a,n[0]),u=Math.min(u,n[1]),m=Math.max(m,n[0]),o=Math.max(o,n[1])}n[0]=a,n[1]=u,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function I(n){for(let t=0;t<6;t++)if(!isFinite(n[t]))return!1;return!0}function l(n){return n[0]>=n[3]?0:n[3]-n[0]}function N(n){return n[1]>=n[4]?0:n[4]-n[1]}function T(n){return n[2]>=n[5]?0:n[5]-n[2]}function y(n){const t=l(n),r=T(n),i=N(n);return Math.sqrt(t*t+r*r+i*i)}function E(n,t=[0,0,0]){return t[0]=n[0]+l(n)/2,t[1]=n[1]+N(n)/2,t[2]=n[2]+T(n)/2,t}function F(n,t=[0,0,0]){return t[0]=l(n),t[1]=N(n),t[2]=T(n),t}function g(n){return Math.max(l(n),T(n),N(n))}function p(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[0]<=n[3]&&t[1]<=n[4]&&t[2]<=n[5]}function b(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[2]>=n[2]-r&&t[0]<=n[3]+r&&t[1]<=n[4]+r&&t[2]<=n[5]+r}function z(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[3]<=n[3]&&t[4]<=n[4]&&t[5]<=n[5]}function V(n,t){return Math.max(t[0],n[0])<=Math.min(t[3],n[3])&&Math.max(t[1],n[1])<=Math.min(t[4],n[4])&&Math.max(t[2],n[2])<=Math.min(t[5],n[5])}function Y(t,r){return!!n(r)||V(t,r)}function _(n,t,r,i,a=n){return a[0]=n[0]+t,a[1]=n[1]+r,a[2]=n[2]+i,a[3]=n[3]+t,a[4]=n[4]+r,a[5]=n[5]+i,a}function j(n,t,r=n){const i=n[0]+l(n)/2,a=n[1]+N(n)/2,u=n[2]+T(n)/2;return r[0]=i+(n[0]-i)*t,r[1]=a+(n[1]-a)*t,r[2]=u+(n[2]-u)*t,r[3]=i+(n[3]-i)*t,r[4]=a+(n[4]-a)*t,r[5]=u+(n[5]-u)*t,r}function R(n,t){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function A(n,t){return t[0]=n[3],t[1]=n[4],t[2]=n[5],t}function G(n,t,r=n){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==n&&(r[3]=n[3],r[4]=n[4],r[5]=n[5]),r}function O(n,t,r=n){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==n&&(r[0]=n[0],r[1]=n[1],r[2]=n[2]),n}function P(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function S(n){return n?P(n,D):a(D)}function Z(n,t){return t||(t=r()),t[0]=n[0],t[1]=n[1],t[2]=n[3],t[3]=n[4],t}function d(n,t){return n[0]=t[0],n[1]=t[1],n[2]=Number.NEGATIVE_INFINITY,n[3]=t[2],n[4]=t[3],n[5]=Number.POSITIVE_INFINITY,n}function q(n,t,r,i,a){return n[0]=t,n[1]=r,n[2]=Number.NEGATIVE_INFINITY,n[3]=i,n[4]=a,n[5]=Number.POSITIVE_INFINITY,n}function w(n){return 6===n.length}function B(n){return 0===l(n)&&0===N(n)&&0===T(n)}function k(t,r,i){if(n(t)||n(r))return t===r;if(!w(t)||!w(r))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],r[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}function v(n,t,r,i,a,e){return u(n,t,r,i,a,e,J)}const C=i([-1/0,-1/0,-1/0,1/0,1/0,1/0]),D=i([1/0,1/0,1/0,-1/0,-1/0,-1/0]),H=i([0,0,0,0,0,0]),J=a();export{D as NEGATIVE_INFINITY,C as POSITIVE_INFINITY,H as ZERO,I as allFinite,E as center,z as contains,p as containsPoint,b as containsPointWithMargin,a as create,N as depth,y as diameter,S as empty,k as equals,f as expandWithAABB,M as expandWithBuffer,s as expandWithNestedArray,x as expandWithOffset,h as expandWithRect,c as expandWithVec3,e as fromExtent,o as fromMinMax,d as fromRect,q as fromRectValues,u as fromValues,A as getMax,R as getMin,T as height,V as intersects,Y as intersectsClippingArea,w as is,B as isPoint,g as maximumDimension,_ as offset,j as scale,P as set,O as setMax,G as setMin,F as size,m as toExtent,Z as toRect,l as width,v as wrap};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../../../core/Logger.js";import{getOrCreateMapValue as t}from"../../../../../core/MapUtils.js";import{applySome as s,isSome as i,isNone as r}from"../../../../../core/maybe.js";import{j as a}from"../../../../../chunks/quat.js";import{I as o,b as n}from"../../../../../chunks/quatf64.js";import{k as l}from"../../../../../chunks/vec3.js";import{Z as h,a as c,O as u}from"../../../../../chunks/vec3f64.js";import f from"../../../MeshMaterialMetallicRoughness.js";import p from"../../../MeshTransform.js";import{ungeoreferenceByTransform as d}from"../../georeference.js";import{Buffer as m}from"./buffer.js";import{computeOrigin as g,smoothNormals as _}from"./geometry.js";import{BufferOutputType as A,ImageOutputType as x,AttributeType as T,TargetBuffer as R,AlphaMode as E}from"./types.js";import{imageToArrayBuffer as b,imageToDataURI as M}from"./imageutils.js";import{DataType as O,TextureWrapMode as w}from"../../../../../views/webgl/enums.js";const N=e.getLogger("gltf");class C{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===A.GLB||t.options.imageOutputType===x.GLB;s&&(t.binChunkBuffer=new m(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;l(s,h)||(t.translation=c(s));const i=e.rotation;a(i,o)||(t.rotation=n(i));const r=e.scale;l(r,u)||(t.scale=c(r)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const f=this.gltf.nodes.length;return this.gltf.nodes.push(t),f}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},r=this.gltf.extras,a=r.options.bufferOutputType===A.GLB;let o;o=a?r.binChunkBuffer:new m(this.gltf),this.params.origin||(this.params.origin=g(e));const n=this.params.ignoreLocalTransform?s(e.transform,(e=>new p({origin:[e.origin[0],e.origin[1],e.origin[2]],geographic:!1}))):e.transform,l=d(e.vertexAttributes,n,this.params.origin,{geographic:this.params.geographic,unit:"meters"});_(e,l),this._flipYZAxis(l);const h=o.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER);let c,u,f,x;l.normal&&(c=o.addBufferView(O.FLOAT,T.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(u=o.addBufferView(O.FLOAT,T.VEC2,R.ARRAY_BUFFER)),l.tangent&&(f=o.addBufferView(O.FLOAT,T.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(x=o.addBufferView(O.UNSIGNED_BYTE,T.VEC4,R.ARRAY_BUFFER)),h.startAccessor("POSITION"),c&&c.startAccessor("NORMAL"),u&&u.startAccessor("TEXCOORD_0"),f&&f.startAccessor("TANGENT"),x&&x.startAccessor("COLOR_0");const E=l.position.length/3,{position:b,normal:M,tangent:w}=l,{color:N,uv:C}=e.vertexAttributes;for(let s=0;s<E;++s)h.push(b[3*s+0]),h.push(b[3*s+1]),h.push(b[3*s+2]),c&&i(M)&&(c.push(M[3*s+0]),c.push(M[3*s+1]),c.push(M[3*s+2])),u&&i(C)&&(u.push(C[2*s+0]),u.push(C[2*s+1])),f&&i(w)&&(f.push(w[4*s+0]),f.push(w[4*s+1]),f.push(w[4*s+2]),f.push(w[4*s+3])),x&&i(N)&&(x.push(N[4*s+0]),x.push(N[4*s+1]),x.push(N[4*s+2]),x.push(N[4*s+3]));const B=h.endAccessor(),L=this._addAccessor(h.index,B);let y,I,S,F,v;if(c){const e=c.endAccessor();y=this._addAccessor(c.index,e)}if(u){const e=u.endAccessor();I=this._addAccessor(u.index,e)}if(f){const e=f.endAccessor();S=this._addAccessor(f.index,e)}if(x){const e=x.endAccessor();F=this._addAccessor(x.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(v=o.addBufferView(O.UNSIGNED_INT,T.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(v,e.components,t,L,y,I,S,F)):this._addMeshVertexNonIndexed(e.components,t,L,y,I,S,F),h.finalize(),c&&c.finalize(),u&&u.finalize(),f&&f.finalize(),v&&v.finalize(),x&&x.finalize(),a||o.finalize();const k=this.gltf.meshes.length;return this.gltf.meshes.push(t),k}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!r(e))for(let s=1,i=2;s<e.length;s+=t,i+=t){const t=e[s],r=e[i];e[s]=r,e[i]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=E.MASK;break;case"auto":case"blend":s.alphaMode=E.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const r=e=>e**2.1,a=e=>{const t=e.toRgba();return t[0]=r(t[0]/255),t[1]=r(t[1]/255),t[2]=r(t[2]/255),t};if(i(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=a(e.color)),i(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),i(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof f){if(i(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),i(e.emissiveColor)){const t=a(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}i(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),i(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,N.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const o=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),o}_addTexture(e){const s=this.gltf.textures??[];return this.gltf.textures=s,t(this._textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},i=s.length;return s.push(t),i}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const i=this.gltf.extras;switch(i.options.imageOutputType){case x.GLB:{const e=i.binChunkBuffer.addBufferView(O.UNSIGNED_BYTE,T.SCALAR),r=b(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(r).then((()=>{e.finalize()})),s.bufferView=e.index;break}case x.DataURI:s.uri=M(t);break;default:i.promises.push(b(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const i=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,i),i}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=w.REPEAT,s=w.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=w.CLAMP_TO_EDGE,s=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT,s=w.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=w.CLAMP_TO_EDGE;break;case"mirror":s=w.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=w.CLAMP_TO_EDGE;break;case"mirror":t=w.MIRRORED_REPEAT}}const i={wrapS:t,wrapT:s};for(let a=0;a<this.gltf.samplers.length;++a)if(JSON.stringify(i)===JSON.stringify(this.gltf.samplers[a]))return a;const r=this.gltf.samplers.length;return this.gltf.samplers.push(i),r}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const i=this.gltf.accessors.length;return this.gltf.accessors.push(s),i}_addMeshVertexIndexed(e,t,s,i,r,a,o,n){for(const l of t){e.startAccessor("INDICES");for(let s=0;s<l.faces.length;++s)e.push(l.faces[s]);const t=e.endAccessor(),h={attributes:{POSITION:i},indices:this._addAccessor(e.index,t),material:this._addMaterial(l.material)};r&&"flat"!==l.shading&&(h.attributes.NORMAL=r),a&&(h.attributes.TEXCOORD_0=a),o&&"flat"!==l.shading&&(h.attributes.TANGENT=o),n&&(h.attributes.COLOR_0=n),s.primitives.push(h)}}_addMeshVertexNonIndexed(e,t,s,i,r,a,o){const n={attributes:{POSITION:s}};i&&(n.attributes.NORMAL=i),r&&(n.attributes.TEXCOORD_0=r),a&&(n.attributes.TANGENT=a),o&&(n.attributes.COLOR_0=o),e&&(n.material=this._addMaterial(e[0].material)),t.primitives.push(n)}}export{C as GLTF};
5
+ import e from"../../../../../core/Logger.js";import{getOrCreateMapValue as t}from"../../../../../core/MapUtils.js";import{applySome as s,isSome as r,isNone as i}from"../../../../../core/maybe.js";import{j as a}from"../../../../../chunks/quat.js";import{I as o,b as n}from"../../../../../chunks/quatf64.js";import{k as l}from"../../../../../chunks/vec3.js";import{Z as c,a as h,O as f}from"../../../../../chunks/vec3f64.js";import u from"../../../MeshMaterialMetallicRoughness.js";import p from"../../../MeshTransform.js";import{ungeoreferenceByTransform as d}from"../../georeference.js";import{Buffer as m}from"./buffer.js";import{computeOrigin as g,smoothNormals as _}from"./geometry.js";import{BufferOutputType as x,ImageOutputType as A,AttributeType as T,TargetBuffer as R,AlphaMode as b}from"./types.js";import{imageToArrayBuffer as E,imageToDataURI as M}from"./imageutils.js";import{isEncodedMeshTexture as O}from"../../../../../views/3d/glTF/internal/resourceUtils.js";import{DataType as w,TextureWrapMode as N}from"../../../../../views/webgl/enums.js";const B=e.getLogger("gltf");class C{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===x.GLB||t.options.imageOutputType===A.GLB;s&&(t.binChunkBuffer=new m(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;l(s,c)||(t.translation=h(s));const r=e.rotation;a(r,o)||(t.rotation=n(r));const i=e.scale;l(i,f)||(t.scale=h(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const u=this.gltf.nodes.length;return this.gltf.nodes.push(t),u}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},i=this.gltf.extras,a=i.options.bufferOutputType===x.GLB;let o;o=a?i.binChunkBuffer:new m(this.gltf),this.params.origin||(this.params.origin=g(e));const n=this.params.ignoreLocalTransform?s(e.transform,(e=>new p({origin:[e.origin[0],e.origin[1],e.origin[2]],geographic:!1}))):e.transform,l=d(e.vertexAttributes,n,this.params.origin,{geographic:this.params.geographic,unit:"meters"});_(e,l),this._flipYZAxis(l);const c=o.addBufferView(w.FLOAT,T.VEC3,R.ARRAY_BUFFER);let h,f,u,A;l.normal&&(h=o.addBufferView(w.FLOAT,T.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(f=o.addBufferView(w.FLOAT,T.VEC2,R.ARRAY_BUFFER)),l.tangent&&(u=o.addBufferView(w.FLOAT,T.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(A=o.addBufferView(w.UNSIGNED_BYTE,T.VEC4,R.ARRAY_BUFFER)),c.startAccessor("POSITION"),h&&h.startAccessor("NORMAL"),f&&f.startAccessor("TEXCOORD_0"),u&&u.startAccessor("TANGENT"),A&&A.startAccessor("COLOR_0");const b=l.position.length/3,{position:E,normal:M,tangent:O}=l,{color:N,uv:B}=e.vertexAttributes;for(let s=0;s<b;++s)c.push(E[3*s+0]),c.push(E[3*s+1]),c.push(E[3*s+2]),h&&r(M)&&(h.push(M[3*s+0]),h.push(M[3*s+1]),h.push(M[3*s+2])),f&&r(B)&&(f.push(B[2*s+0]),f.push(B[2*s+1])),u&&r(O)&&(u.push(O[4*s+0]),u.push(O[4*s+1]),u.push(O[4*s+2]),u.push(O[4*s+3])),A&&r(N)&&(A.push(N[4*s+0]),A.push(N[4*s+1]),A.push(N[4*s+2]),A.push(N[4*s+3]));const C=c.endAccessor(),I=this._addAccessor(c.index,C);let L,v,y,F,S;if(h){const e=h.endAccessor();L=this._addAccessor(h.index,e)}if(f){const e=f.endAccessor();v=this._addAccessor(f.index,e)}if(u){const e=u.endAccessor();y=this._addAccessor(u.index,e)}if(A){const e=A.endAccessor();F=this._addAccessor(A.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(S=o.addBufferView(w.UNSIGNED_INT,T.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(S,e.components,t,I,L,v,y,F)):this._addMeshVertexNonIndexed(e.components,t,I,L,v,y,F),c.finalize(),h&&h.finalize(),f&&f.finalize(),u&&u.finalize(),S&&S.finalize(),A&&A.finalize(),a||o.finalize();const k=this.gltf.meshes.length;return this.gltf.meshes.push(t),k}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!i(e))for(let s=1,r=2;s<e.length;s+=t,r+=t){const t=e[s],i=e[r];e[s]=i,e[r]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=b.MASK;break;case"auto":case"blend":s.alphaMode=b.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const i=e=>e**2.1,a=e=>{const t=e.toRgba();return t[0]=i(t[0]/255),t[1]=i(t[1]/255),t[2]=i(t[2]/255),t};if(r(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=a(e.color)),r(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),r(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof u){if(r(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),r(e.emissiveColor)){const t=a(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}r(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),r(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,B.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const o=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),o}_addTexture(e){const s=this.gltf.textures??[];return this.gltf.textures=s,t(this._textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},r=s.length;return s.push(t),r}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const i=this.gltf.extras;switch(i.options.imageOutputType){case A.GLB:{const e=i.binChunkBuffer.addBufferView(w.UNSIGNED_BYTE,T.SCALAR);if(O(t))r(t.data)&&e.writeOutToBuffer(t.data,0);else{const r=E(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(r).then((()=>{e.finalize()}))}s.bufferView=e.index;break}case A.DataURI:if(O(t)){B.warnOnce("Image export for basis compressed textures not available.");break}s.uri=M(t);break;default:if(O(t)){B.warnOnce("Image export for basis compressed textures not available.");break}i.promises.push(E(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const i=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,i),i}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=N.REPEAT,s=N.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=N.CLAMP_TO_EDGE,s=N.CLAMP_TO_EDGE;break;case"mirror":t=N.MIRRORED_REPEAT,s=N.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=N.CLAMP_TO_EDGE;break;case"mirror":s=N.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=N.CLAMP_TO_EDGE;break;case"mirror":t=N.MIRRORED_REPEAT}}const r={wrapS:t,wrapT:s};for(let a=0;a<this.gltf.samplers.length;++a)if(JSON.stringify(r)===JSON.stringify(this.gltf.samplers[a]))return a;const i=this.gltf.samplers.length;return this.gltf.samplers.push(r),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const r=this.gltf.accessors.length;return this.gltf.accessors.push(s),r}_addMeshVertexIndexed(e,t,s,r,i,a,o,n){for(const l of t){e.startAccessor("INDICES");for(let s=0;s<l.faces.length;++s)e.push(l.faces[s]);const t=e.endAccessor(),c={attributes:{POSITION:r},indices:this._addAccessor(e.index,t),material:this._addMaterial(l.material)};i&&"flat"!==l.shading&&(c.attributes.NORMAL=i),a&&(c.attributes.TEXCOORD_0=a),o&&"flat"!==l.shading&&(c.attributes.TANGENT=o),n&&(c.attributes.COLOR_0=n),s.primitives.push(c)}}_addMeshVertexNonIndexed(e,t,s,r,i,a,o){const n={attributes:{POSITION:s}};r&&(n.attributes.NORMAL=r),i&&(n.attributes.TEXCOORD_0=i),a&&(n.attributes.TANGENT=a),o&&(n.attributes.COLOR_0=o),e&&(n.material=this._addMaterial(e[0].material)),t.primitives.push(n)}}export{C as GLTF};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.26/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../Color.js";import t from"../../../request.js";import{getOrCreateMapValue as r}from"../../../core/MapUtils.js";import{hasScaling as o}from"../../../core/mathUtils.js";import{isSome as n,unwrap as s,applySome as i,isNone as a}from"../../../core/maybe.js";import{b as c}from"../../../chunks/mat3.js";import{c as u}from"../../../chunks/mat3f64.js";import{f as l}from"../../../chunks/vec3f64.js";import{f}from"../../../chunks/vec4f64.js";import m from"../MeshComponent.js";import p from"../MeshMaterialMetallicRoughness.js";import d from"../MeshTexture.js";import{MeshVertexAttributes as g}from"../MeshVertexAttributes.js";import{BufferViewVec4f as x,BufferViewVec4u8 as T,BufferViewVec4u16 as h,BufferViewVec3u8 as v,BufferViewVec3f as w,BufferViewVec3u16 as b,BufferViewVec3f64 as j,BufferViewVec2f as y}from"../buffer/BufferView.js";import{t as A,a as M,n as C,s as R,b as E}from"../../../chunks/vec32.js";import{t as k,n as B,s as F,a as I}from"../../../chunks/vec42.js";import{createBuffer as $}from"../buffer/utils.js";import{georeferenceByTransform as L}from"./georeference.js";import{DefaultLoadingContext as S}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as N}from"../../../views/3d/glTF/loader.js";import{triangleFanToTriangles as O,triangleStripToTriangles as _,trianglesToTriangles as D}from"../../../views/3d/glTF/internal/indexUtils.js";import{generateIndexArray as G}from"../../../views/3d/webgl-engine/lib/Indices.js";import{COLOR_GAMMA as P}from"../../../views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js";import{PrimitiveType as U,TextureWrapMode as V}from"../../../views/webgl/enums.js";import{f as q,c as z}from"../../../chunks/vec33.js";import{f as K,c as Q}from"../../../chunks/vec43.js";import{n as H,f as J}from"../../../chunks/vec22.js";async function W(e,t,r){const o=new S(X(r)),s=(await N(o,t,r,!0)).model,i=s.lods.shift(),a=new Map,c=new Map;s.textures.forEach(((e,t)=>a.set(t,te(e)))),s.materials.forEach(((e,t)=>c.set(t,re(e,a))));const u=ee(i);for(const n of u.parts)oe(u,n,c);const{position:l,normal:f,tangent:m,color:p,texCoord0:d}=u.vertexAttributes,x={position:l.typedBuffer,normal:n(f)?f.typedBuffer:null,tangent:n(m)?m.typedBuffer:null,uv:n(d)?d.typedBuffer:null,color:n(p)?p.typedBuffer:null},T=L(x,e,r);return{transform:T.transform,components:u.components,spatialReference:e.spatialReference,vertexAttributes:new g({position:T.vertexAttributes.position,normal:T.vertexAttributes.normal,tangent:T.vertexAttributes.tangent,color:x.color,uv:x.uv})}}function X(e){const r=e?.resolveFile;return r?{busy:!1,request:async(e,o,s)=>{const i=r(e),a="image"===o?"image":"binary"===o?"array-buffer":"json";return(await t(i,{responseType:a,signal:n(s)?s.signal:null})).data}}:null}function Y(e,t){if(a(e))return"-";const o=e.typedBuffer;return`${r(t,o.buffer,(()=>t.size))}/${o.byteOffset}/${o.byteLength}`}function Z(e){return n(e)?e.toString():"-"}function ee(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},o=new Map,n=new Map,s=[];for(const i of e.parts){const{attributes:{position:e,normal:a,color:c,tangent:u,texCoord0:l}}=i,f=`\n ${Y(e,o)}/\n ${Y(a,o)}/\n ${Y(c,o)}/\n ${Y(u,o)}/\n ${Y(l,o)}/\n ${Z(i.transform)}\n `;let m=!1;const p=r(n,f,(()=>(m=!0,{start:t,length:e.count})));m&&(t+=e.count),a&&(has.normal=!0),c&&(has.color=!0),u&&(has.tangent=!0),l&&(has.texCoord0=!0),s.push({gltf:i,writeVertices:m,region:p})}return{vertexAttributes:{position:$(j,t),normal:has.normal?$(w,t):null,tangent:has.tangent?$(x,t):null,color:has.color?$(T,t):null,texCoord0:has.texCoord0?$(y,t):null},parts:s,components:[]}}function te(e){return new d({data:e.data,wrap:ae(e.parameters.wrap)})}function re(t,r){const o=new e(le(t.color,t.opacity)),n=t.emissiveFactor?new e(fe(t.emissiveFactor)):null;return new p({color:o,colorTexture:s(i(t.textureColor,(e=>r.get(e)))),normalTexture:s(i(t.textureNormal,(e=>r.get(e)))),emissiveColor:n,emissiveTexture:s(i(t.textureEmissive,(e=>r.get(e)))),occlusionTexture:s(i(t.textureOcclusion,(e=>r.get(e)))),alphaMode:ie(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:s(i(t.textureMetallicRoughness,(e=>r.get(e)))),colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform})}function oe(e,t,r){t.writeVertices&&ne(e,t);const o=t.gltf,n=se(o.indices||o.attributes.position.count,o.primitiveType),s=t.region.start;if(s)for(let i=0;i<n.length;i++)n[i]+=s;e.components.push(new m({faces:n,material:r.get(o.material),trustSourceNormals:!0}))}function ne(e,t){const{position:r,normal:s,tangent:i,color:a,texCoord0:l}=e.vertexAttributes,f=t.region.start,{attributes:m,transform:p}=t.gltf,d=m.position.count;if(A(r.slice(f,d),m.position,p),n(m.normal)&&n(s)){const e=c(u(),p),t=s.slice(f,d);M(t,m.normal,e),o(e)&&C(t,t)}else n(s)&&q(s,0,0,1,{dstIndex:f,count:d});if(n(m.tangent)&&n(i)){const e=c(u(),p),t=i.slice(f,d);k(t,m.tangent,e),o(e)&&B(t,t)}else n(i)&&K(i,0,0,1,1,{dstIndex:f,count:d});if(n(m.texCoord0)&&n(l)?H(l.slice(f,d),m.texCoord0):n(l)&&J(l,0,0,{dstIndex:f,count:d}),n(m.color)&&n(a)){const e=m.color,t=a.slice(f,d);if(4===e.elementCount)e instanceof x?F(t,e,255):e instanceof T?Q(t,e):e instanceof h&&I(t,e,8);else{K(t,255,255,255,255);const r=v.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof w?R(r,e,255):e instanceof v?z(r,e):e instanceof b&&E(r,e,8)}}else n(a)&&K(a.slice(f,d),255,255,255,255)}function se(e,t){switch(t){case U.TRIANGLES:return D(e,G);case U.TRIANGLE_STRIP:return _(e);case U.TRIANGLE_FAN:return O(e)}}function ie(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function ae(e){return{horizontal:ce(e.s),vertical:ce(e.t)}}function ce(e){switch(e){case V.CLAMP_TO_EDGE:return"clamp";case V.MIRRORED_REPEAT:return"mirror";case V.REPEAT:return"repeat"}}function ue(e){return e**(1/P)*255}function le(e,t){return f(ue(e[0]),ue(e[1]),ue(e[2]),t)}function fe(e){return l(ue(e[0]),ue(e[1]),ue(e[2]))}export{W as loadGLTFMesh};
5
+ import e from"../../../Color.js";import t from"../../../request.js";import{getOrCreateMapValue as r}from"../../../core/MapUtils.js";import{hasScaling as o}from"../../../core/mathUtils.js";import{isSome as n,unwrap as s,applySome as i,isNone as a}from"../../../core/maybe.js";import{b as c}from"../../../chunks/mat3.js";import{c as u}from"../../../chunks/mat3f64.js";import{f as l}from"../../../chunks/vec3f64.js";import{f}from"../../../chunks/vec4f64.js";import m from"../MeshComponent.js";import p from"../MeshMaterialMetallicRoughness.js";import d from"../MeshTexture.js";import{MeshVertexAttributes as g}from"../MeshVertexAttributes.js";import{BufferViewVec4f as x,BufferViewVec4u8 as T,BufferViewVec4u16 as h,BufferViewVec3u8 as v,BufferViewVec3f as w,BufferViewVec3u16 as b,BufferViewVec3f64 as j,BufferViewVec2f as y}from"../buffer/BufferView.js";import{t as A,a as M,n as C,s as R,b as E}from"../../../chunks/vec32.js";import{t as k,n as B,s as F,a as I}from"../../../chunks/vec42.js";import{createBuffer as $}from"../buffer/utils.js";import{georeferenceByTransform as L}from"./georeference.js";import{DefaultLoadingContext as S}from"../../../views/3d/glTF/DefaultLoadingContext.js";import{loadGLTF as N}from"../../../views/3d/glTF/loader.js";import{triangleFanToTriangles as O,triangleStripToTriangles as _,trianglesToTriangles as D}from"../../../views/3d/glTF/internal/indexUtils.js";import{isEncodedMeshTexture as G}from"../../../views/3d/glTF/internal/resourceUtils.js";import{generateIndexArray as P}from"../../../views/3d/webgl-engine/lib/Indices.js";import{COLOR_GAMMA as U}from"../../../views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js";import{PrimitiveType as V,TextureWrapMode as q}from"../../../views/webgl/enums.js";import{f as z,c as K}from"../../../chunks/vec33.js";import{f as Q,c as H}from"../../../chunks/vec43.js";import{n as J,f as W}from"../../../chunks/vec22.js";async function X(e,t,r){const o=new S(Y(r)),s=(await N(o,t,r,!0)).model,i=s.lods.shift(),a=new Map,c=new Map;s.textures.forEach(((e,t)=>a.set(t,re(e)))),s.materials.forEach(((e,t)=>c.set(t,oe(e,a))));const u=te(i);for(const n of u.parts)ne(u,n,c);const{position:l,normal:f,tangent:m,color:p,texCoord0:d}=u.vertexAttributes,x={position:l.typedBuffer,normal:n(f)?f.typedBuffer:null,tangent:n(m)?m.typedBuffer:null,uv:n(d)?d.typedBuffer:null,color:n(p)?p.typedBuffer:null},T=L(x,e,r);return{transform:T.transform,components:u.components,spatialReference:e.spatialReference,vertexAttributes:new g({position:T.vertexAttributes.position,normal:T.vertexAttributes.normal,tangent:T.vertexAttributes.tangent,color:x.color,uv:x.uv})}}function Y(e){const r=e?.resolveFile;return r?{busy:!1,request:async(e,o,s)=>{const i=r(e),a="image"===o?"image":"binary"===o?"array-buffer":"json";return(await t(i,{responseType:a,signal:n(s)?s.signal:null})).data}}:null}function Z(e,t){if(a(e))return"-";const o=e.typedBuffer;return`${r(t,o.buffer,(()=>t.size))}/${o.byteOffset}/${o.byteLength}`}function ee(e){return n(e)?e.toString():"-"}function te(e){let t=0;const has={color:!1,tangent:!1,normal:!1,texCoord0:!1},o=new Map,n=new Map,s=[];for(const i of e.parts){const{attributes:{position:e,normal:a,color:c,tangent:u,texCoord0:l}}=i,f=`\n ${Z(e,o)}/\n ${Z(a,o)}/\n ${Z(c,o)}/\n ${Z(u,o)}/\n ${Z(l,o)}/\n ${ee(i.transform)}\n `;let m=!1;const p=r(n,f,(()=>(m=!0,{start:t,length:e.count})));m&&(t+=e.count),a&&(has.normal=!0),c&&(has.color=!0),u&&(has.tangent=!0),l&&(has.texCoord0=!0),s.push({gltf:i,writeVertices:m,region:p})}return{vertexAttributes:{position:$(j,t),normal:has.normal?$(w,t):null,tangent:has.tangent?$(x,t):null,color:has.color?$(T,t):null,texCoord0:has.texCoord0?$(y,t):null},parts:s,components:[]}}function re(e){return new d({data:(G(e.data),e.data),wrap:ce(e.parameters.wrap)})}function oe(t,r){const o=new e(fe(t.color,t.opacity)),n=t.emissiveFactor?new e(me(t.emissiveFactor)):null;return new p({color:o,colorTexture:s(i(t.textureColor,(e=>r.get(e)))),normalTexture:s(i(t.textureNormal,(e=>r.get(e)))),emissiveColor:n,emissiveTexture:s(i(t.textureEmissive,(e=>r.get(e)))),occlusionTexture:s(i(t.textureOcclusion,(e=>r.get(e)))),alphaMode:ae(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:s(i(t.textureMetallicRoughness,(e=>r.get(e)))),colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform})}function ne(e,t,r){t.writeVertices&&se(e,t);const o=t.gltf,n=ie(o.indices||o.attributes.position.count,o.primitiveType),s=t.region.start;if(s)for(let i=0;i<n.length;i++)n[i]+=s;e.components.push(new m({faces:n,material:r.get(o.material),trustSourceNormals:!0}))}function se(e,t){const{position:r,normal:s,tangent:i,color:a,texCoord0:l}=e.vertexAttributes,f=t.region.start,{attributes:m,transform:p}=t.gltf,d=m.position.count;if(A(r.slice(f,d),m.position,p),n(m.normal)&&n(s)){const e=c(u(),p),t=s.slice(f,d);M(t,m.normal,e),o(e)&&C(t,t)}else n(s)&&z(s,0,0,1,{dstIndex:f,count:d});if(n(m.tangent)&&n(i)){const e=c(u(),p),t=i.slice(f,d);k(t,m.tangent,e),o(e)&&B(t,t)}else n(i)&&Q(i,0,0,1,1,{dstIndex:f,count:d});if(n(m.texCoord0)&&n(l)?J(l.slice(f,d),m.texCoord0):n(l)&&W(l,0,0,{dstIndex:f,count:d}),n(m.color)&&n(a)){const e=m.color,t=a.slice(f,d);if(4===e.elementCount)e instanceof x?F(t,e,255):e instanceof T?H(t,e):e instanceof h&&I(t,e,8);else{Q(t,255,255,255,255);const r=v.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof w?R(r,e,255):e instanceof v?K(r,e):e instanceof b&&E(r,e,8)}}else n(a)&&Q(a.slice(f,d),255,255,255,255)}function ie(e,t){switch(t){case V.TRIANGLES:return D(e,P);case V.TRIANGLE_STRIP:return _(e);case V.TRIANGLE_FAN:return O(e)}}function ae(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function ce(e){return{horizontal:ue(e.s),vertical:ue(e.t)}}function ue(e){switch(e){case q.CLAMP_TO_EDGE:return"clamp";case q.MIRRORED_REPEAT:return"mirror";case q.REPEAT:return"repeat"}}function le(e){return e**(1/U)*255}function fe(e,t){return f(le(e[0]),le(e[1]),le(e[2]),t)}function me(e){return l(le(e[0]),le(e[1]),le(e[2]))}export{X as loadGLTFMesh};