@arcgis/core 4.32.0-next.20241218 → 4.32.0-next.20241220

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 (277) hide show
  1. package/Basemap.js +1 -1
  2. package/arcade.js +1 -1
  3. package/assets/components/assets/text-area/t9n/messages.en.json +1 -1
  4. package/assets/components/assets/text-area/t9n/messages.json +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{6ceafd4420d21110d820.js → 015285436ca965f94e17.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{57aa1fcef6587305b347.js → 0191142d5f55cc8cf37a.js} +93 -93
  8. package/assets/esri/core/workers/chunks/{7a0ddaf2c279a2d24c86.js → 0837a630e12a21fc2e50.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0b3e1e903120da297641.js +1 -0
  10. package/assets/esri/core/workers/chunks/0f1a7aeec18db5323365.js +1 -0
  11. package/assets/esri/core/workers/chunks/{cca47dab8c1b8ae49fab.js → 11052103efe3d53a784e.js} +1 -1
  12. package/assets/esri/core/workers/chunks/19d72185d50ba1ebff50.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b99de19b6930ba6dad98.js → 1d8609ba413e8a172719.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{d05fab1af651b7e92442.js → 23fe65988dbc9e5d7842.js} +1 -1
  15. package/assets/esri/core/workers/chunks/2427a01678f3d9fbf30b.js +1 -0
  16. package/assets/esri/core/workers/chunks/2c084c0c324e3af56424.js +1 -0
  17. package/assets/esri/core/workers/chunks/3a90163b76b0bc7f21d2.js +1 -0
  18. package/assets/esri/core/workers/chunks/48266c87363e7dcaefb3.js +1 -0
  19. package/assets/esri/core/workers/chunks/{d3790bd1a644eae1005b.js → 48f6eb3b63fec1d3312d.js} +4 -5
  20. package/assets/esri/core/workers/chunks/5a0eb9dfe668cf290462.js +1 -0
  21. package/assets/esri/core/workers/chunks/668679baf519ada9ae28.js +1 -0
  22. package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +1 -0
  23. package/assets/esri/core/workers/chunks/7156d2ae914e1add0109.js +1 -0
  24. package/assets/esri/core/workers/chunks/737f381f2cfeddb96d15.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b77d294ad7064734d015.js → 741d5dadfab2a7689054.js} +1 -1
  26. package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
  27. package/assets/esri/core/workers/chunks/{1cee35ea0a80737730d5.js → 770d233254419b741616.js} +1 -1
  28. package/assets/esri/core/workers/chunks/8249351daa45ca82ca0c.js +1 -0
  29. package/assets/esri/core/workers/chunks/9372d08ba8bf3342c48f.js +1 -0
  30. package/assets/esri/core/workers/chunks/{fb43c44a7d6b61f31e75.js → 94432e04de01ee7adc0e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/95af4dee29eb196b8ada.js +1 -0
  32. package/assets/esri/core/workers/chunks/{80ac74da0b0e45e74beb.js → 9a498f2c007f4d78d4dd.js} +1 -1
  33. package/assets/esri/core/workers/chunks/9cc9bac6e02ab241e852.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d347dd19a37ba2f19970.js → 9fc49968dea8e2b64f3e.js} +1 -1
  35. package/assets/esri/core/workers/chunks/a776f71b4c7b8728a973.js +1 -0
  36. package/assets/esri/core/workers/chunks/a77aa86896bbb0e088df.js +1 -0
  37. package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js → b1e4813f0c73fc2a483c.js} +2 -2
  38. package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js.LICENSE.txt → b1e4813f0c73fc2a483c.js.LICENSE.txt} +1 -1
  39. package/assets/esri/core/workers/chunks/bd37c9cc720587665fd3.js +1 -0
  40. package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
  41. package/assets/esri/core/workers/chunks/{eddab4dc706e75c6637f.js → bff74200a0df0950cf08.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{8f2ffb6944c9028d3bea.js → c08cb75c3eef6c45f604.js} +1 -1
  43. package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +1 -0
  44. package/assets/esri/core/workers/chunks/cc427e8f1b17744b6ea4.js +1 -0
  45. package/assets/esri/core/workers/chunks/cfe4b8101ea96d6996d3.js +2 -0
  46. package/assets/esri/core/workers/chunks/{f3f5c5138de8428bd30f.js.LICENSE.txt → cfe4b8101ea96d6996d3.js.LICENSE.txt} +1 -1
  47. package/assets/esri/core/workers/chunks/d7b76bc7bff34abc2253.js +1 -0
  48. package/assets/esri/core/workers/chunks/dce55e7f76adecc055c3.js +1 -0
  49. package/assets/esri/core/workers/chunks/dd34df14eb4940e2497b.js +1 -0
  50. package/assets/esri/core/workers/chunks/dfd9432ba01881d0a4d9.js +2 -0
  51. package/assets/esri/core/workers/chunks/{ed2ebe42d6483470939a.js.LICENSE.txt → dfd9432ba01881d0a4d9.js.LICENSE.txt} +1 -1
  52. package/assets/esri/core/workers/chunks/e1913990f30d285b3b15.js +2 -0
  53. package/assets/esri/core/workers/chunks/{aff820b27ca9585e297e.js.LICENSE.txt → e1913990f30d285b3b15.js.LICENSE.txt} +1 -1
  54. package/assets/esri/core/workers/chunks/{e6490fe7c87c1d649ea6.js → e5d55a35dace70239902.js} +1 -1
  55. package/assets/esri/core/workers/chunks/ebf9caf2dc8af89afec2.js +2 -0
  56. package/assets/esri/core/workers/chunks/{2eb36a16de1a823513cd.js.LICENSE.txt → ebf9caf2dc8af89afec2.js.LICENSE.txt} +1 -1
  57. package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +1 -0
  58. package/assets/esri/core/workers/chunks/f2cdb7be3fd65f65c30b.js +1 -0
  59. package/assets/esri/themes/base/widgets/_FeatureTable.scss +3 -3
  60. package/assets/esri/themes/dark/main.css +1 -1
  61. package/assets/esri/themes/light/main.css +1 -1
  62. package/assets/esri/themes/light/view.css +1 -1
  63. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  64. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  65. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  66. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  67. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  68. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  69. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  70. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  71. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  72. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  73. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  74. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  75. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  76. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  77. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  78. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  79. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  80. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  81. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  82. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  83. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  84. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  85. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  101. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  102. package/chunks/HUDMaterial.glsl.js +41 -42
  103. package/chunks/OITBlend.glsl.js +3 -3
  104. package/chunks/OperatorProject.js +1 -1
  105. package/chunks/QuadraticBezier.js +1 -1
  106. package/chunks/chartUtilsAm5.js +1 -1
  107. package/core/number.js +1 -1
  108. package/geometry/operators/affineTransformOperator.js +1 -1
  109. package/geometry/operators/alphaShapeOperator.js +1 -1
  110. package/geometry/operators/areaOperator.js +1 -1
  111. package/geometry/operators/autoCompleteOperator.js +1 -1
  112. package/geometry/operators/boundaryOperator.js +1 -1
  113. package/geometry/operators/bufferOperator.js +1 -1
  114. package/geometry/operators/centroidOperator.js +1 -1
  115. package/geometry/operators/clipOperator.js +1 -1
  116. package/geometry/operators/containsOperator.js +1 -1
  117. package/geometry/operators/convexHullOperator.js +1 -1
  118. package/geometry/operators/crossesOperator.js +1 -1
  119. package/geometry/operators/cutOperator.js +1 -1
  120. package/geometry/operators/densifyOperator.js +1 -1
  121. package/geometry/operators/differenceOperator.js +1 -1
  122. package/geometry/operators/disjointOperator.js +1 -1
  123. package/geometry/operators/distanceOperator.js +1 -1
  124. package/geometry/operators/equalsOperator.js +1 -1
  125. package/geometry/operators/extendOperator.js +1 -1
  126. package/geometry/operators/generalizeOperator.js +1 -1
  127. package/geometry/operators/geodesicBufferOperator.js +1 -1
  128. package/geometry/operators/geodesicProximityOperator.js +1 -1
  129. package/geometry/operators/geodeticAreaOperator.js +1 -1
  130. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  131. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  132. package/geometry/operators/geodeticLengthOperator.js +1 -1
  133. package/geometry/operators/graphicBufferOperator.js +1 -1
  134. package/geometry/operators/gx/operatorOffset.js +1 -1
  135. package/geometry/operators/integrateOperator.js +1 -1
  136. package/geometry/operators/intersectionOperator.js +1 -1
  137. package/geometry/operators/intersectsOperator.js +1 -1
  138. package/geometry/operators/isNearOperator.js +1 -1
  139. package/geometry/operators/labelPointOperator.js +1 -1
  140. package/geometry/operators/lengthOperator.js +1 -1
  141. package/geometry/operators/linesToPolygonsOperator.js +1 -1
  142. package/geometry/operators/locateBetweenOperator.js +1 -1
  143. package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
  144. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  145. package/geometry/operators/offsetOperator.js +1 -1
  146. package/geometry/operators/overlapsOperator.js +1 -1
  147. package/geometry/operators/polygonOverlayOperator.js +1 -1
  148. package/geometry/operators/polygonSlicerOperator.js +1 -1
  149. package/geometry/operators/projectOperator.js +1 -1
  150. package/geometry/operators/proximityOperator.js +1 -1
  151. package/geometry/operators/relateOperator.js +1 -1
  152. package/geometry/operators/reshapeOperator.js +1 -1
  153. package/geometry/operators/simplifyOperator.js +1 -1
  154. package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
  155. package/geometry/operators/support/jsonConverter.js +1 -1
  156. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  157. package/geometry/operators/touchesOperator.js +1 -1
  158. package/geometry/operators/unionOperator.js +1 -1
  159. package/geometry/operators/withinOperator.js +1 -1
  160. package/interfaces.d.ts +1020 -735
  161. package/intl/messages.js +1 -1
  162. package/layers/graphics/OptimizedFeature.js +1 -1
  163. package/layers/graphics/sources/geojson/geojson.js +1 -1
  164. package/layers/support/Sublayer.js +1 -1
  165. package/layers/support/domainUtils.js +1 -1
  166. package/layers/support/fieldUtils.js +1 -1
  167. package/package.json +2 -2
  168. package/renderers/support/RendererLegendOptions.js +1 -1
  169. package/rest/featureService/utils.js +1 -1
  170. package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
  171. package/rest/support/AddressToLocationsParameters.js +1 -1
  172. package/rest/support/LocationToAddressParameters.js +1 -1
  173. package/smartMapping/popup/classBreaks.js +1 -1
  174. package/smartMapping/popup/clusters.js +1 -1
  175. package/smartMapping/popup/dotDensity.js +1 -1
  176. package/smartMapping/popup/heatmap.js +1 -1
  177. package/smartMapping/popup/predominance.js +1 -1
  178. package/smartMapping/popup/relationship.js +1 -1
  179. package/smartMapping/popup/simple.js +1 -1
  180. package/smartMapping/popup/support/utils.js +1 -1
  181. package/smartMapping/popup/templates.js +1 -1
  182. package/smartMapping/popup/uniqueValues.js +1 -1
  183. package/smartMapping/raster/renderers/flow.js +1 -1
  184. package/smartMapping/renderers/pieChart.js +1 -1
  185. package/smartMapping/symbology/support/utils.js +1 -1
  186. package/support/BasemapStyle.js +1 -1
  187. package/support/revision.js +1 -1
  188. package/versionManagement/versionAdapters/utils.js +1 -1
  189. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  190. package/views/2d/input/MapViewInputManager.js +1 -1
  191. package/views/2d/input/handlers/KeyRotate.js +1 -1
  192. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  193. package/views/2d/layers/features/FeatureContainer.js +1 -1
  194. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  195. package/views/2d/layers/features/Processor.js +1 -1
  196. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  197. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  198. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  199. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  200. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  201. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  202. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  203. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +5 -0
  204. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  205. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  206. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  207. package/views/2d/layers/support/DebouncedFeatureOverride.js +5 -0
  208. package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
  209. package/views/3d/input/SceneInputManager.js +1 -1
  210. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  211. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  212. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  213. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  214. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  215. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  216. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  217. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  218. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  219. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  220. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +2 -2
  221. package/views/3d/webgl.js +1 -1
  222. package/views/SelectionManager.js +1 -1
  223. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  224. package/views/layers/FeatureLayerView.js +1 -1
  225. package/widgets/Directions/DirectionsViewModel.js +1 -1
  226. package/widgets/FeatureTable/FieldColumn.js +1 -1
  227. package/widgets/Features/FeaturesViewModel.js +1 -1
  228. package/widgets/Features.js +1 -1
  229. package/widgets/LayerList/LayerListItem.js +1 -1
  230. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  231. package/widgets/OrientedImageryViewer/adapters/sketch/DigitizationAdapter.js +1 -1
  232. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  233. package/widgets/OrientedImageryViewer/digitizationUtils.js +1 -1
  234. package/widgets/OrientedImageryViewer.js +1 -1
  235. package/widgets/Popup.js +1 -1
  236. package/widgets/ShadowCast.js +1 -1
  237. package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
  238. package/widgets/support/forms/formUtils.js +1 -1
  239. package/widgets/support/widget.js +1 -1
  240. package/widgets/support/widgetUtils.js +1 -1
  241. package/applications/Components/CollectionFlattener.d.ts +0 -4
  242. package/applications/Components/CollectionFlattener.js +0 -5
  243. package/assets/esri/core/workers/chunks/062da071fd27022f6cb1.js +0 -1
  244. package/assets/esri/core/workers/chunks/0f0cc8150326ca7bcd6f.js +0 -1
  245. package/assets/esri/core/workers/chunks/1808a2b023fa04c6ee6c.js +0 -1
  246. package/assets/esri/core/workers/chunks/1d31b07805af85a4ba7b.js +0 -1
  247. package/assets/esri/core/workers/chunks/1fb142a533e4ee492a50.js +0 -1
  248. package/assets/esri/core/workers/chunks/28f3e139a4e3b70d84a4.js +0 -1
  249. package/assets/esri/core/workers/chunks/2daf5f46e4b137d33f12.js +0 -1
  250. package/assets/esri/core/workers/chunks/2eb36a16de1a823513cd.js +0 -2
  251. package/assets/esri/core/workers/chunks/382c3da5ce9b3231f57c.js +0 -1
  252. package/assets/esri/core/workers/chunks/433798a25dd688cef327.js +0 -1
  253. package/assets/esri/core/workers/chunks/56a04f5976b926de448e.js +0 -1
  254. package/assets/esri/core/workers/chunks/5786b190ad3e2d933245.js +0 -1
  255. package/assets/esri/core/workers/chunks/6bd6c280c741f8917cc8.js +0 -1
  256. package/assets/esri/core/workers/chunks/70153bb44fd5b7cfecb8.js +0 -1
  257. package/assets/esri/core/workers/chunks/78981dee7b5403c32517.js +0 -1
  258. package/assets/esri/core/workers/chunks/7bb52be0a02fb2a2631c.js +0 -1
  259. package/assets/esri/core/workers/chunks/80f1f967646f7a7d37ec.js +0 -1
  260. package/assets/esri/core/workers/chunks/820bb7ea30ad30ce8f42.js +0 -1
  261. package/assets/esri/core/workers/chunks/8f2f2d497b875e2b4139.js +0 -1
  262. package/assets/esri/core/workers/chunks/95ea191f6a307b73b545.js +0 -1
  263. package/assets/esri/core/workers/chunks/9fab71f1041c40d976af.js +0 -1
  264. package/assets/esri/core/workers/chunks/a0a37c238863ffc1b768.js +0 -1
  265. package/assets/esri/core/workers/chunks/aa31073c7fe3b0e4e499.js +0 -1
  266. package/assets/esri/core/workers/chunks/af5d74311cec22601f73.js +0 -1
  267. package/assets/esri/core/workers/chunks/aff820b27ca9585e297e.js +0 -2
  268. package/assets/esri/core/workers/chunks/bf2d1a700fff4ae0db33.js +0 -1
  269. package/assets/esri/core/workers/chunks/da6c0c894e7e281169fa.js +0 -1
  270. package/assets/esri/core/workers/chunks/ed2ebe42d6483470939a.js +0 -2
  271. package/assets/esri/core/workers/chunks/f3f5c5138de8428bd30f.js +0 -2
  272. package/assets/esri/core/workers/chunks/f429d95eb986f3d215f3.js +0 -1
  273. package/assets/esri/core/workers/chunks/fce1158755f959730602.js +0 -1
  274. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +0 -5
  275. package/views/3d/input/handlers/SingleKey.js +0 -5
  276. package/views/3d/input/handlers/SingleKeyResetHeading.js +0 -5
  277. package/views/3d/input/handlers/SingleKeyResetTilt.js +0 -5
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import r from"../../core/Accessor.js";import o from"../../core/Collection.js";import t from"../../core/Error.js";import i from"../../core/Logger.js";import{watch as n,on as s}from"../../core/reactiveUtils.js";import{removeTrailingSlash as a}from"../../core/urlUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as v}from"../../core/support/UpdatingHandles.js";import{getOwningPortalUrl as p}from"../../layers/support/layerUtils.js";import l from"../../portal/Portal.js";import{hasUserTypeExtension as h,hasPrivilege as m}from"../../portal/support/utils.js";import c from"../../rest/featureService/FeatureService.js";import{createFeatureServices as g}from"../../rest/featureService/utils.js";import{getVersioningStates as w}from"../../versionManagement/utils.js";import f from"../../versionManagement/VersioningState.js";import E from"../../versionManagement/VersionManagementService.js";import{createVersionAdapters as L}from"../../versionManagement/versionAdapters/utils.js";let _=class extends r{constructor(e){super(e),this._portalLookup=new Map,this._updatingHandlesLoad=new v,this._updatingHandlesExecute=new v,this.advancedEditingUserTypeExtensionLookup=new Map,this.executionError=void 0,this.featureServiceLookup=new Map,this.loadError=void 0,this.serverVersionLookup=new Map,this.serviceNameLookup=new Map,this.userLookup=new Map,this.versionIdentifierLookup=new Map,this.versionInfoLookup=new Map,this.versionAdministratorLookup=new Map,this.versionManagementServiceLookup=new Map,this.versioningStateLookup=new Map,this.view=null,this.versioningStates=null}initialize(){this._viewChangeHandle(),this.addHandles([n((()=>this.view),(()=>{this._resetAllLookupProperties(),this._viewChangeHandle()})),n((()=>this.versioningStates),(()=>{this._resetVersioningLookupProperties(),this._setVersioningStatesLookups()}))])}destroy(){this._updatingHandlesLoad.destroy(),this._updatingHandlesExecute.destroy()}get state(){return this._updatingHandlesLoad.updating?"loading":this.loadError?"disabled":this._updatingHandlesExecute.updating?"executing":this.executionError?"failed":"ready"}async alterVersion(e){return this._updatingHandlesExecute.addPromise(this._alterVersionInternal(e))}async changeVersion(e,r,o){return this._updatingHandlesExecute.addPromise(this._changeVersionInternal(e,r,o))}async createVersion(e){return this._updatingHandlesExecute.addPromise(this._createVersionInternal(e))}async deleteVersion(e,r,o){return this._updatingHandlesExecute.addPromise(this._deleteVersionInternal(e,r,o))}async getVersionInfos(e){return this._updatingHandlesExecute.addPromise(this._getVersionInfosInternal(e))}async _alterVersionInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=this.versioningStateLookup.get(e.featureServerUrl);if(!r)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);if(!this.serverVersionLookup.has(e.featureServerUrl)||this.serverVersionLookup.get(e.featureServerUrl)<=11.1)throw this._logError("version-management-view-model:execution-error","no-valid-enterprise-version"),new t("version-management-view-model:execution-error",this.executionError);if(!this.advancedEditingUserTypeExtensionLookup.get(e.featureServerUrl))throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError);const{featureServerUrl:o,versionIdentifier:i,...n}=e,s=await r.alterVersion(i,n).catch((e=>{throw this._logExecutionError(e),e}));return await this.getVersionInfos(o),s}async _changeVersionInternal(e,r,o){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const i=this.versioningStateLookup.get(e);if(!i)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);const n={name:r,guid:o};return await i.changeVersion(n).catch((e=>{throw this._logExecutionError(e),e}))}_updateVersionableItems(e){this._updatingHandlesLoad.addPromise((async()=>{L(e.added).forEach((e=>{const r=e.featureServiceUrl,o=this.versioningStateLookup.get(r);o&&(o.versionableItems.find((r=>r.versionableItem===e.versionableItem))||o.versionableItems.add(e))}));L(e.removed).forEach((e=>{const{allLayers:r,allTables:o}=this.view.map,t=e.featureServiceUrl,i=this.versioningStateLookup.get(t);if(!i)return void this._logError("version-management-view-model:execution-error","no-version-management-service-found");const n=e=>("feature"===e.type||"subtype-group"===e.type)&&(e.url?.includes(t)??!1);[...r.filter(n),...o.filter(n)].length||(this.featureServiceLookup.delete(t),this.serviceNameLookup.delete(t),this.versioningStateLookup.delete(t),this.versioningStates.remove(i));const s=i.versionableItems.find((r=>r.versionableItem===e.versionableItem));s&&i.versionableItems.remove(s)}))})())}async _createVersionInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=e.featureServerUrl,o=this.versioningStateLookup.get(r);if(!o)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);const i=this.advancedEditingUserTypeExtensionLookup.get(e.featureServerUrl),n=this.userLookup.get(r).toUpperCase(),s=this._isEmptyString(e.ownerName)?n:e.ownerName?.trim().toUpperCase();if(s!==n){if(this.serverVersionLookup.get(r)<=11.1)throw this._logError("version-management-view-model:execution-error","versioning-api-error"),new t("version-management-view-model:execution-error",this.executionError);if(!i)throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError)}let a=await(this.versioningStateLookup.get(r)?.getVersionInfos());if("SDE"===s?.toUpperCase()&&"DEFAULT"===e.versionName.toUpperCase()||a?.find((r=>r.versionIdentifier.name.toUpperCase()===(s+"."+e.versionName).toUpperCase()||r.versionIdentifier.name.toUpperCase()===(n+"."+e.versionName).toUpperCase())))throw this._logError("version-management-view-model:execution-error","no-valid-version-name"),new t("version-management-view-model:execution-error",this.executionError);const d=await o.versionManagementService.createVersion({versionName:e.versionName,access:s!==n?"public":e.access,description:e.description}).catch((e=>{throw this._logExecutionError(e),e}));if(s!==n){const{guid:o,name:t}=d.versionIdentifier,i={featureServerUrl:r,versionIdentifier:{guid:o,name:t},access:e.access,ownerName:s};await this.alterVersion(i)||this.deleteVersion(r,n+"."+e.versionName,d.versionIdentifier.guid)}return await this.getVersionInfos(r),a=await(this.versioningStateLookup.get(r)?.getVersionInfos()),a?.find((e=>e.versionIdentifier.guid===d.versionIdentifier.guid))}async _deleteVersionInternal(e,r,o){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const i=this.versioningStateLookup.get(e);if(!i)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);if(this.serverVersionLookup.get(e)<=11.1)throw this._logError("version-management-view-model:execution-error","versioning-api-error"),new t("version-management-view-model:execution-error",this.executionError);if(!this.advancedEditingUserTypeExtensionLookup.get(e))throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError);const n={name:r,guid:o};return await i.deleteVersion(n).catch((e=>{throw this._logExecutionError(e),new t("version-management-view-model:execution-error",this.executionError)}))}async _getVersionInfosInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=this.featureServiceLookup.get(e)?.featureService;if(!r)throw this._logError("version-management-view-model:execution-error","no-feature-service-found"),new t("version-management-view-model:execution-error",this.executionError);r.loaded||await r.load().catch((e=>{throw this._logExecutionError(e),e}));const o=r.url;this.serverVersionLookup.set(o,r.sourceJSON?.currentVersion??0),this.serverVersionLookup.get(o)<=11.1&&this.advancedEditingUserTypeExtensionLookup.set(o,!1);const i=this.userLookup.get(e);this._portalLookup.get(e)&&i?(this.advancedEditingUserTypeExtensionLookup.set(o,await h(this._portalLookup.get(e),i,"advediting")),this.versionAdministratorLookup.set(o,await m(this._portalLookup.get(e),i,"features:user:manageVersions"))):(this.advancedEditingUserTypeExtensionLookup.set(o,!1),this.versionAdministratorLookup.set(o,!1));const n=this.versioningStateLookup.get(e);if(!n)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);n.loaded||await n.load().catch((e=>{throw this._logExecutionError(e),e}));return await n.getVersionInfos(!0).catch((e=>{throw this._logExecutionError(e),e}))}_isEmptyString(e){return!e||0===e.trim().length}_logError(e,r){switch(i.getLogger(this).error(new t(e,r)),e){case"version-management-view-model:load-error":this._setLoadError(r);break;case"version-management-view-model:execution-error":this._setExecutionError(r)}}_logExecutionError(e){this._logError("version-management-view-model:execution-error",e.message)}async _viewChangeHandle(){this._updatingHandlesLoad.addPromise((async()=>{if(this._setLoadError(),!this.view)return void this._setLoadError("no-view-property");if(this.view&&"2d"!==this.view.type)return void this._logError("version-management-view-model:load-error","sceneView-not-supported");this.removeHandles("map-change-handle"),this.addHandles([n((()=>this.view?.map),(()=>{this._resetAllLookupProperties(),this._mapChangeHandle(this.versioningStates)}))],"map-change-handle");const e=await this._getVersioningStates();await this._mapChangeHandle(e)})())}async _mapChangeHandle(e){this._updatingHandlesLoad.addPromise((async()=>{this._setLoadError(),this.removeHandles("map-layers-tables-change-handle"),this.addHandles([s((()=>this.view?.map.allLayers),"change",(e=>{(e.added.some((({type:e})=>"feature"===e))||e.removed.some((({type:e})=>"feature"===e))||e.added.some((({type:e})=>"subtype-group"===e))||e.removed.some((({type:e})=>"subtype-group"===e)))&&(this._resetServiceRelatedLookupProperties(),this._propertiesChangeInternal(this.versioningStates),this._updateVersionableItems(e))})),s((()=>this.view?.map.allTables),"change",(e=>{(e.added.some((({type:e})=>"feature"===e))||e.removed.some((({type:e})=>"feature"===e))||e.added.some((({type:e})=>"subtype-group"===e))||e.removed.some((({type:e})=>"subtype-group"===e)))&&(this._resetServiceRelatedLookupProperties(),this._propertiesChangeInternal(this.versioningStates),this._updateVersionableItems(e))}))],"map-layers-tables-change-handle"),await this._propertiesChangeInternal(e)})())}async _propertiesChangeInternal(e){this._updatingHandlesLoad.addPromise((async()=>{const r=e=>"feature"===e.type||"subtype-group"===e.type,{allLayers:o,allTables:t}=this.view.map;if(this._setLoadError(),this.featureServiceLookup=g([...o.filter(r),...t.filter(r)]),this.featureServiceLookup.size){this._updateFeatureServiceLookup(e),this.serviceNameLookup=new Map;for(const e of this.featureServiceLookup.values()){const{featureService:r,featureService:{url:o}}=e;if(!this.serviceNameLookup.has(o)){if(r.loaded||await r.load().catch((e=>{i.getLogger(this).error(e)})),!r.versionManagementServiceUrl){this.featureServiceLookup.delete(o);continue}const e=await p(o),t=new l({authMode:"immediate",url:e});await t.load().catch((e=>{i.getLogger(this).error(e)}));const n=t.user?.username;if(!r.loaded||!t.loaded||!n)continue;this.serviceNameLookup.set(a(o),o.split("/").at(-2)),this.userLookup.set(o,n),this._portalLookup.set(o,t)}}this.removeHandles("versioning-states-change-handle"),e.forEach((e=>this._handleVersioningStateLookupUpdate(e))),await this._updateVersioningStates(e),this.versioningStates=e}else this._logError("version-management-view-model:load-error","no-feature-services")})())}_updateFeatureServiceLookup(e){for(const r of e){const e=r.featureServiceUrl;if(!this.featureServiceLookup.has(e)){const o=new c({url:e}),t=r.versionableItems.toArray().flatMap((e=>"network"===e.type?null:e.versionableItem));this.featureServiceLookup.set(e,{featureService:o,layers:t})}}}async _updateVersioningStates(e){for(const r of this.featureServiceLookup.values()){const t=r.featureService;if(!t.versionManagementServiceUrl)continue;if(!e.find((e=>e.featureServiceUrl===t.url))&&t.versionManagementServiceUrl){const i=new o(L(r.layers)),n=new f({versionManagementService:new E({url:t.versionManagementServiceUrl}),versionableItems:i});e.add(n),this._handleVersioningStateLookupUpdate(n)}await this.getVersionInfos(t.url)}}async _getVersioningStates(){return this.versioningStates&&this.versioningStates.length?this.versioningStates:this.view?await w(this.view,!1):(this._logError("version-management-view-model:load-error","no-view-property"),new o)}_handleVersioningStateLookupUpdate(e){this.versioningStateLookup.set(e.featureServiceUrl,e),this._addHandlesToVersioningState(e),this.versionIdentifierLookup.set(e.featureServiceUrl,e.currentVersionInfo?.versionIdentifier),this.versionManagementServiceLookup.set(e.featureServiceUrl,e.versionManagementService)}async _setVersioningStatesLookups(){this._updatingHandlesLoad.addPromise((async()=>{this.versioningStates&&(this.removeHandles("versioning-states-change-handle"),this._updateFeatureServiceLookup(this.versioningStates),this.versioningStates.forEach((e=>this._handleVersioningStateLookupUpdate(e))),await this._updateVersioningStates(this.versioningStates))})())}_addHandlesToVersioningState(e){this.addHandles([n((()=>e.versionInfos),(()=>{this.versionInfoLookup.set(e.featureServiceUrl,e.versionInfos)})),n((()=>e.currentVersionInfo?.versionIdentifier),(()=>{this.versionIdentifierLookup.set(e.featureServiceUrl,e.currentVersionInfo?.versionIdentifier)}))],"versioning-states-change-handle")}_resetVersioningLookupProperties(){this.versionIdentifierLookup=new Map,this.versionInfoLookup=new Map,this.versionManagementServiceLookup=new Map,this.versioningStateLookup=new Map}_resetAllLookupProperties(){this._portalLookup=new Map,this.advancedEditingUserTypeExtensionLookup=new Map,this.serverVersionLookup=new Map,this.userLookup=new Map,this.versioningStates=new o,this._resetVersioningLookupProperties(),this._resetServiceRelatedLookupProperties()}_resetServiceRelatedLookupProperties(){this.featureServiceLookup=new Map,this.serviceNameLookup=new Map}_setExecutionError(e){this._set("executionError",e)}_setLoadError(e){this._set("loadError",e)}};e([d()],_.prototype,"_portalLookup",void 0),e([d()],_.prototype,"advancedEditingUserTypeExtensionLookup",void 0),e([d({readOnly:!0})],_.prototype,"executionError",void 0),e([d()],_.prototype,"featureServiceLookup",void 0),e([d({readOnly:!0})],_.prototype,"loadError",void 0),e([d()],_.prototype,"serverVersionLookup",void 0),e([d()],_.prototype,"serviceNameLookup",void 0),e([d({readOnly:!0})],_.prototype,"state",null),e([d()],_.prototype,"userLookup",void 0),e([d()],_.prototype,"versionIdentifierLookup",void 0),e([d()],_.prototype,"versionInfoLookup",void 0),e([d()],_.prototype,"versionAdministratorLookup",void 0),e([d()],_.prototype,"versionManagementServiceLookup",void 0),e([d()],_.prototype,"versioningStateLookup",void 0),e([d()],_.prototype,"view",void 0),e([d()],_.prototype,"versioningStates",void 0),_=e([u("esri.widgets.VersionManagement.VersionManagementViewModel")],_);const S=_;export{S as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import r from"../../core/Accessor.js";import o from"../../core/Collection.js";import t from"../../core/Error.js";import i from"../../core/Logger.js";import{watch as n,on as s}from"../../core/reactiveUtils.js";import{removeTrailingSlash as a}from"../../core/urlUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as v}from"../../core/support/UpdatingHandles.js";import{getOwningPortalUrl as p}from"../../layers/support/layerUtils.js";import l from"../../portal/Portal.js";import{hasUserTypeExtension as h,hasPrivilege as m}from"../../portal/support/utils.js";import c from"../../rest/featureService/FeatureService.js";import{createFeatureServices as g}from"../../rest/featureService/utils.js";import{getVersioningStates as w}from"../../versionManagement/utils.js";import f from"../../versionManagement/VersioningState.js";import E from"../../versionManagement/VersionManagementService.js";import{createVersionAdapters as L}from"../../versionManagement/versionAdapters/utils.js";let _=class extends r{constructor(e){super(e),this._portalLookup=new Map,this._updatingHandlesLoad=new v,this._updatingHandlesExecute=new v,this.advancedEditingUserTypeExtensionLookup=new Map,this.executionError=void 0,this.featureServiceLookup=new Map,this.loadError=void 0,this.serverVersionLookup=new Map,this.serviceNameLookup=new Map,this.userLookup=new Map,this.versionIdentifierLookup=new Map,this.versionInfoLookup=new Map,this.versionAdministratorLookup=new Map,this.versionManagementServiceLookup=new Map,this.versioningStateLookup=new Map,this.view=null,this.versioningStates=null}initialize(){this._viewChangeHandle(),this.addHandles([n((()=>this.view),(()=>{this._resetAllLookupProperties(),this._viewChangeHandle()})),n((()=>this.versioningStates),(()=>{this._resetVersioningLookupProperties(),this._setVersioningStatesLookups()}))])}destroy(){this._updatingHandlesLoad.destroy(),this._updatingHandlesExecute.destroy()}get state(){return this._updatingHandlesLoad.updating?"loading":this.loadError?"disabled":this._updatingHandlesExecute.updating?"executing":this.executionError?"failed":"ready"}async alterVersion(e){return this._updatingHandlesExecute.addPromise(this._alterVersionInternal(e))}async changeVersion(e,r,o){return this._updatingHandlesExecute.addPromise(this._changeVersionInternal(e,r,o))}async createVersion(e){return this._updatingHandlesExecute.addPromise(this._createVersionInternal(e))}async deleteVersion(e,r,o){return this._updatingHandlesExecute.addPromise(this._deleteVersionInternal(e,r,o))}async getVersionInfos(e){return this._updatingHandlesExecute.addPromise(this._getVersionInfosInternal(e))}async _alterVersionInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=this.versioningStateLookup.get(e.featureServerUrl);if(!r)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);if(!this.serverVersionLookup.has(e.featureServerUrl)||this.serverVersionLookup.get(e.featureServerUrl)<=11.1)throw this._logError("version-management-view-model:execution-error","no-valid-enterprise-version"),new t("version-management-view-model:execution-error",this.executionError);if(!this.advancedEditingUserTypeExtensionLookup.get(e.featureServerUrl))throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError);const{featureServerUrl:o,versionIdentifier:i,...n}=e,s=await r.alterVersion(i,n).catch((e=>{throw this._logExecutionError(e),e}));return await this.getVersionInfos(o),s}async _changeVersionInternal(e,r,o){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const i=this.versioningStateLookup.get(e);if(!i)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);const n={name:r,guid:o};return await i.changeVersion(n).catch((e=>{throw this._logExecutionError(e),e}))}_updateVersionableItems(e){this._updatingHandlesLoad.addPromise((async()=>{L(e.added).forEach((e=>{const r=e.featureServiceUrl,o=this.versioningStateLookup.get(r);o&&(o.versionableItems.find((r=>r.versionableItem===e.versionableItem))||o.versionableItems.add(e))}));L(e.removed).forEach((e=>{const{allLayers:r,allTables:o}=this.view.map,t=e.featureServiceUrl,i=this.versioningStateLookup.get(t);if(!i)return void this._logError("version-management-view-model:execution-error","no-version-management-service-found");const n=e=>("feature"===e.type||"subtype-group"===e.type)&&(e.url?.includes(t)??!1);[...r.filter(n),...o.filter(n)].length||(this.featureServiceLookup.delete(t),this.serviceNameLookup.delete(t),this.versioningStateLookup.delete(t),this.versioningStates.remove(i));const s=i.versionableItems.find((r=>r.versionableItem===e.versionableItem));s&&i.versionableItems.remove(s)}))})())}async _createVersionInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=e.featureServerUrl,o=this.versioningStateLookup.get(r);if(!o)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);const i=this.advancedEditingUserTypeExtensionLookup.get(e.featureServerUrl),n=this.userLookup.get(r).toUpperCase(),s=this._isEmptyString(e.ownerName)?n:e.ownerName?.trim().toUpperCase();if(s!==n){if(this.serverVersionLookup.get(r)<=11.1)throw this._logError("version-management-view-model:execution-error","versioning-api-error"),new t("version-management-view-model:execution-error",this.executionError);if(!i)throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError)}let a=await(this.versioningStateLookup.get(r)?.getVersionInfos());if("SDE"===s?.toUpperCase()&&"DEFAULT"===e.versionName.toUpperCase()||a?.find((r=>r.versionIdentifier.name.toUpperCase()===(s+"."+e.versionName).toUpperCase()||r.versionIdentifier.name.toUpperCase()===(n+"."+e.versionName).toUpperCase())))throw this._logError("version-management-view-model:execution-error","no-valid-version-name"),new t("version-management-view-model:execution-error",this.executionError);const d=await o.versionManagementService.createVersion({versionName:e.versionName,access:s!==n?"public":e.access,description:e.description}).catch((e=>{throw this._logExecutionError(e),e}));if(s!==n){const{guid:o,name:t}=d.versionIdentifier,i={featureServerUrl:r,versionIdentifier:{guid:o,name:t},access:e.access,ownerName:s};await this.alterVersion(i)||this.deleteVersion(r,n+"."+e.versionName,d.versionIdentifier.guid)}return await this.getVersionInfos(r),a=await(this.versioningStateLookup.get(r)?.getVersionInfos()),a?.find((e=>e.versionIdentifier.guid===d.versionIdentifier.guid))}async _deleteVersionInternal(e,r,o){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const i=this.versioningStateLookup.get(e);if(!i)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);if(this.serverVersionLookup.get(e)<=11.1)throw this._logError("version-management-view-model:execution-error","versioning-api-error"),new t("version-management-view-model:execution-error",this.executionError);if(!this.advancedEditingUserTypeExtensionLookup.get(e))throw this._logError("version-management-view-model:execution-error","no-advanced-editing-user-type-extension"),new t("version-management-view-model:execution-error",this.executionError);const n={name:r,guid:o};return await i.deleteVersion(n).catch((e=>{throw this._logExecutionError(e),new t("version-management-view-model:execution-error",this.executionError)}))}async _getVersionInfosInternal(e){if("disabled"===this.state)throw this._logError("version-management-view-model:load-error",this.loadError),new t("version-management-view-model:load-error",this.loadError);this._setExecutionError();const r=this.featureServiceLookup.get(e)?.featureService;if(!r)throw this._logError("version-management-view-model:execution-error","no-feature-service-found"),new t("version-management-view-model:execution-error",this.executionError);r.loaded||await r.load().catch((e=>{throw this._logExecutionError(e),e}));const o=r.url;this.serverVersionLookup.set(o,r.sourceJSON?.currentVersion??0),this.serverVersionLookup.get(o)<=11.1&&this.advancedEditingUserTypeExtensionLookup.set(o,!1);const i=this.userLookup.get(e);this._portalLookup.get(e)&&i?(this.advancedEditingUserTypeExtensionLookup.set(o,await h(this._portalLookup.get(e),i,"advediting")),this.versionAdministratorLookup.set(o,await m(this._portalLookup.get(e),i,"features:user:manageVersions"))):(this.advancedEditingUserTypeExtensionLookup.set(o,!1),this.versionAdministratorLookup.set(o,!1));const n=this.versioningStateLookup.get(e);if(!n)throw this._logError("version-management-view-model:execution-error","no-versioning-state-found"),new t("version-management-view-model:execution-error",this.executionError);n.loaded||await n.load().catch((e=>{throw this._logExecutionError(e),e}));return await n.getVersionInfos(!0).catch((e=>{throw this._logExecutionError(e),e}))}_isEmptyString(e){return!e||0===e.trim().length}_logError(e,r){switch(i.getLogger(this).error(new t(e,r)),e){case"version-management-view-model:load-error":this._setLoadError(r);break;case"version-management-view-model:execution-error":this._setExecutionError(r)}}_logExecutionError(e){this._logError("version-management-view-model:execution-error",e.message)}async _viewChangeHandle(){this._updatingHandlesLoad.addPromise((async()=>{if(this._setLoadError(),!this.view)return void this._setLoadError("no-view-property");if(this.view&&"2d"!==this.view.type)return void this._logError("version-management-view-model:load-error","sceneView-not-supported");this.removeHandles("map-change-handle"),this.addHandles([n((()=>this.view?.map),(()=>{this._resetAllLookupProperties(),this._mapChangeHandle(this.versioningStates)}))],"map-change-handle");const e=await this._getVersioningStates();await this._mapChangeHandle(e)})())}async _mapChangeHandle(e){this._updatingHandlesLoad.addPromise((async()=>{this._setLoadError(),this.removeHandles("map-layers-tables-change-handle"),this.addHandles([s((()=>this.view?.map.allLayers),"change",(e=>{(e.added.some((({type:e})=>"feature"===e))||e.removed.some((({type:e})=>"feature"===e))||e.added.some((({type:e})=>"subtype-group"===e))||e.removed.some((({type:e})=>"subtype-group"===e)))&&(this._resetServiceRelatedLookupProperties(),this._propertiesChangeInternal(this.versioningStates),this._updateVersionableItems(e))})),s((()=>this.view?.map.allTables),"change",(e=>{(e.added.some((({type:e})=>"feature"===e))||e.removed.some((({type:e})=>"feature"===e))||e.added.some((({type:e})=>"subtype-group"===e))||e.removed.some((({type:e})=>"subtype-group"===e)))&&(this._resetServiceRelatedLookupProperties(),this._propertiesChangeInternal(this.versioningStates),this._updateVersionableItems(e))}))],"map-layers-tables-change-handle"),await this._propertiesChangeInternal(e)})())}async _propertiesChangeInternal(e){this._updatingHandlesLoad.addPromise((async()=>{const r=e=>"feature"===e.type||"subtype-group"===e.type,{allLayers:o,allTables:t}=this.view.map;if(this._setLoadError(),this.featureServiceLookup=g([...o.filter(r),...t.filter(r)]),this.featureServiceLookup.size){this._updateFeatureServiceLookup(e),this.serviceNameLookup=new Map;for(const e of this.featureServiceLookup.values()){const{featureService:r,featureService:{url:o}}=e;if(!this.serviceNameLookup.has(o)){if(r.loaded||await r.load().catch((e=>{i.getLogger(this).error(e)})),!r.versionManagementServiceUrl){this.featureServiceLookup.delete(o);continue}const e=await p(o),t=new l({authMode:"immediate",url:e});await t.load().catch((e=>{i.getLogger(this).error(e)}));const n=t.user?.username;if(!r.loaded||!t.loaded||!n)continue;this.serviceNameLookup.set(a(o),o.split("/").at(-2)),this.userLookup.set(o,n),this._portalLookup.set(o,t)}}this.removeHandles("versioning-states-change-handle"),e.forEach((e=>this._handleVersioningStateLookupUpdate(e))),await this._updateVersioningStates(e),this.versioningStates=e}else this._logError("version-management-view-model:load-error","no-feature-services")})())}_updateFeatureServiceLookup(e){for(const r of e){const e=r.featureServiceUrl;if(!this.featureServiceLookup.has(e)){const o=new c({url:e}),t=r.versionableItems.toArray().flatMap((e=>"network"===e.type?null:e.versionableItem)).filter((e=>!!e));this.featureServiceLookup.set(e,{featureService:o,layers:t})}}}async _updateVersioningStates(e){for(const r of this.featureServiceLookup.values()){const t=r.featureService;if(!t.versionManagementServiceUrl)continue;if(!e.find((e=>e.featureServiceUrl===t.url))&&t.versionManagementServiceUrl){const i=new o(L(r.layers)),n=new f({versionManagementService:new E({url:t.versionManagementServiceUrl}),versionableItems:i});e.add(n),this._handleVersioningStateLookupUpdate(n)}await this.getVersionInfos(t.url)}}async _getVersioningStates(){return this.versioningStates&&this.versioningStates.length?this.versioningStates:this.view?await w(this.view,!1):(this._logError("version-management-view-model:load-error","no-view-property"),new o)}_handleVersioningStateLookupUpdate(e){this.versioningStateLookup.set(e.featureServiceUrl,e),this._addHandlesToVersioningState(e),this.versionIdentifierLookup.set(e.featureServiceUrl,e.currentVersionInfo?.versionIdentifier),this.versionManagementServiceLookup.set(e.featureServiceUrl,e.versionManagementService)}async _setVersioningStatesLookups(){this._updatingHandlesLoad.addPromise((async()=>{this.versioningStates&&(this.removeHandles("versioning-states-change-handle"),this._updateFeatureServiceLookup(this.versioningStates),this.versioningStates.forEach((e=>this._handleVersioningStateLookupUpdate(e))),await this._updateVersioningStates(this.versioningStates))})())}_addHandlesToVersioningState(e){this.addHandles([n((()=>e.versionInfos),(()=>{this.versionInfoLookup.set(e.featureServiceUrl,e.versionInfos)})),n((()=>e.currentVersionInfo?.versionIdentifier),(()=>{this.versionIdentifierLookup.set(e.featureServiceUrl,e.currentVersionInfo?.versionIdentifier)}))],"versioning-states-change-handle")}_resetVersioningLookupProperties(){this.versionIdentifierLookup=new Map,this.versionInfoLookup=new Map,this.versionManagementServiceLookup=new Map,this.versioningStateLookup=new Map}_resetAllLookupProperties(){this._portalLookup=new Map,this.advancedEditingUserTypeExtensionLookup=new Map,this.serverVersionLookup=new Map,this.userLookup=new Map,this.versioningStates=new o,this._resetVersioningLookupProperties(),this._resetServiceRelatedLookupProperties()}_resetServiceRelatedLookupProperties(){this.featureServiceLookup=new Map,this.serviceNameLookup=new Map}_setExecutionError(e){this._set("executionError",e)}_setLoadError(e){this._set("loadError",e)}};e([d()],_.prototype,"_portalLookup",void 0),e([d()],_.prototype,"advancedEditingUserTypeExtensionLookup",void 0),e([d({readOnly:!0})],_.prototype,"executionError",void 0),e([d()],_.prototype,"featureServiceLookup",void 0),e([d({readOnly:!0})],_.prototype,"loadError",void 0),e([d()],_.prototype,"serverVersionLookup",void 0),e([d()],_.prototype,"serviceNameLookup",void 0),e([d({readOnly:!0})],_.prototype,"state",null),e([d()],_.prototype,"userLookup",void 0),e([d()],_.prototype,"versionIdentifierLookup",void 0),e([d()],_.prototype,"versionInfoLookup",void 0),e([d()],_.prototype,"versionAdministratorLookup",void 0),e([d()],_.prototype,"versionManagementServiceLookup",void 0),e([d()],_.prototype,"versioningStateLookup",void 0),e([d()],_.prototype,"view",void 0),e([d()],_.prototype,"versioningStates",void 0),_=e([u("esri.widgets.VersionManagement.VersionManagementViewModel")],_);const S=_;export{S 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.32/esri/copyright.txt for details.
4
4
  */
5
- import{isTextInput as t}from"../../../form/support/formUtils.js";import{validateDomainValue as n}from"../../../layers/support/domainUtils.js";import{NumericRangeValidationError as e,validateFieldValue as r}from"../../../layers/support/fieldUtils.js";import{dateTimeIsInRange as o}from"../dateUtils.js";var i,u;!function(t){t.Text="text",t.Number="number",t.Date="date",t.Unsupported="unsupported"}(i||(i={})),function(t){t.CANNOT_BE_EMPTY="input-validation-error::cannot-be-empty",t.TOO_SHORT="length-validation-error::too-short",t.TOO_LONG="length-validation-error::too-long"}(u||(u={}));const a=(t,n)=>{if(!t)return!0;const{operations:e}=t;switch(n){case"INSERT":return e.supportsAdd;case"UPDATE":case"DELETE":return e.supportsUpdate;default:return!0}};function s(t,i){const{dataType:a,domain:s,field:l,maxLength:p,minLength:f,range:c,required:m}=i;if(null==t)return m?u.CANNOT_BE_EMPTY:null;if("text"===a&&"string"==typeof t){if(f>-1&&t.length<f)return u.TOO_SHORT;if(p>-1&&t.length>p)return u.TOO_LONG}return"date"!==a||o({type:l.type,range:c,value:t})?s?n(l,t,s):r(l,t):e.OUT_OF_RANGE}function l(t,n){return!(!p(t)||!p(n))||t===n}function p(t){return null==t||""===t}function f({dataType:n,field:e,input:r}){const o=-1;if(n===i.Date)return o;const u=m(e.length);if(!r||!t(r))return u;const a=m(r.maxLength);return a===o?u:u===o?a:Math.min(u,a)}function c({dataType:n,field:e,input:r}){const o=-1;if(n===i.Date)return o;if(!r||!t(r))return o;const u=m(r.minLength);if(u<0)return o;const a=m(e.length);return a>o&&a<u?o:u}function m(t){return"number"==typeof t&&t>-1?t:-1}const d={type:"number"},T={type:"number",intlOptions:{notation:"scientific"}};function g(t){return t>=1e7||t<=-1e7}function O(t,n){return null!=t.max&&null!=t.min?n.outsideRange:null!=t.max?n.outsideRangeMax:n.outsideRangeMin}export{i as FieldInputDataTypes,u as InputValidationError,a as capabilitiesAllowEditType,m as ensureMinOrMaxLength,f as getMaxLength,c as getMinLength,O as getRangeErrorMessage,p as isEmptyValue,d as numberFormatOptions,T as scientificNumberFormatOptions,g as shouldUseScientificNotation,s as validateFormValue,l as valuesAreEquivalent};
5
+ import{isTextInput as t}from"../../../form/support/formUtils.js";import{validateDomainValue as n}from"../../../layers/support/domainUtils.js";import{NumericRangeValidationError as e,validateFieldValue as r}from"../../../layers/support/fieldUtils.js";import{dateTimeIsInRange as o}from"../dateUtils.js";var i,u;!function(t){t.Text="text",t.Number="number",t.Date="date",t.Unsupported="unsupported"}(i||(i={})),function(t){t.CANNOT_BE_EMPTY="input-validation-error::cannot-be-empty",t.TOO_SHORT="length-validation-error::too-short",t.TOO_LONG="length-validation-error::too-long"}(u||(u={}));const a=(t,n)=>{if(!t)return!0;const{operations:e}=t;switch(n){case"INSERT":return e.supportsAdd;case"UPDATE":case"DELETE":return e.supportsUpdate;default:return!0}};function s(t,i){const{dataType:a,domain:s,field:l,maxLength:p,minLength:f,range:c,required:m}=i;if(null==t)return m?u.CANNOT_BE_EMPTY:null;if("text"===a&&"string"==typeof t){if(f>-1&&t.length<f)return u.TOO_SHORT;if(p>-1&&t.length>p)return u.TOO_LONG}return"date"!==a||o({type:l.type,range:c,value:t})?s?n(l,t,s):r(l,t)??n(l,t):e.OUT_OF_RANGE}function l(t,n){return!(!p(t)||!p(n))||t===n}function p(t){return null==t||""===t}function f({dataType:n,field:e,input:r}){const o=-1;if(n===i.Date)return o;const u=m(e.length);if(!r||!t(r))return u;const a=m(r.maxLength);return a===o?u:u===o?a:Math.min(u,a)}function c({dataType:n,field:e,input:r}){const o=-1;if(n===i.Date)return o;if(!r||!t(r))return o;const u=m(r.minLength);if(u<0)return o;const a=m(e.length);return a>o&&a<u?o:u}function m(t){return"number"==typeof t&&t>-1?t:-1}const d={type:"number"},T={type:"number",intlOptions:{notation:"scientific"}};function g(t){return t>=1e7||t<=-1e7}function O(t,n){return null!=t.max&&null!=t.min?n.outsideRange:null!=t.max?n.outsideRangeMax:n.outsideRangeMin}export{i as FieldInputDataTypes,u as InputValidationError,a as capabilitiesAllowEditType,m as ensureMinOrMaxLength,f as getMaxLength,c as getMinLength,O as getRangeErrorMessage,p as isEmptyValue,d as numberFormatOptions,T as scientificNumberFormatOptions,g as shouldUseScientificNotation,s as validateFormValue,l as valuesAreEquivalent};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- export{accessibleHandler}from"./decorators/accessibleHandler.js";export{messageBundle}from"./decorators/messageBundle.js";export{vmEvent}from"./decorators/vmEvent.js";export{tsx,tsxFragment}from"./jsxFactory.js";export{additionalAllowedTags,classes,discardNode,isActivationKey,isRTL,onResize,renderingSanitizer,safeAttrs,setFocus,storeNode}from"./widgetUtils.js";export{getCalciteThemeClass,isDarkTheme,setCalciteThemeClass}from"../../support/themeUtils.js";function e(e){return e&&"function"==typeof e.render}function t(e){return e&&"function"==typeof e.postMixInProperties&&"function"==typeof e.buildRendering&&"function"==typeof e.postCreate&&"function"==typeof e.startup}export{t as hasDomNode,e as isWidget};
5
+ export{accessibleHandler}from"./decorators/accessibleHandler.js";export{messageBundle}from"./decorators/messageBundle.js";export{vmEvent}from"./decorators/vmEvent.js";export{tsx,tsxFragment}from"./jsxFactory.js";export{additionalAllowedTags,classes,cssTransition,discardNode,isActivationKey,isRTL,onResize,renderingSanitizer,safeAttrs,setFocus,storeNode}from"./widgetUtils.js";export{getCalciteThemeClass,isDarkTheme,setCalciteThemeClass}from"../../support/themeUtils.js";function e(e){return e&&"function"==typeof e.render}function t(e){return e&&"function"==typeof e.postMixInProperties&&"function"==typeof e.buildRendering&&"function"==typeof e.postCreate&&"function"==typeof e.startup}export{t as hasDomNode,e as isWidget};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import e from"@esri/arcgis-html-sanitizer";import t from"../../core/ArrayPool.js";import{handlesGroup as r,makeHandle as o}from"../../core/handleUtils.js";import"../../core/has.js";import"../../core/Logger.js";import{signalFromSignalOrOptions as n}from"../../core/promiseUtils.js";import{watch as s,syncAndInitial as i}from"../../core/reactiveUtils.js";import{waitAnimationFrame as a}from"../../core/scheduling.js";import{clearVNodeCache as c}from"./vnodeCache.js";function l(...e){const r=t.acquire();for(let t=0;t<e.length;t++){const o=e[t],n=typeof o;if("string"===n)r.push(o);else if(Array.isArray(o))r.push.apply(r,o);else if("object"===n)for(const e in o)o[e]&&r.push(e)}const o=r.join(" ");return t.release(r),o}const p=(()=>{const e=new Map,t=new ResizeObserver((t=>{c();for(const r of t)e.get(r.target)?.(r)})),n=(r,n,s)=>(e.set(r,n),t.observe(r,s),o((()=>{t.unobserve(r),e.delete(r)})));return(e,t,a)=>{let c=null;return r([s((()=>"function"==typeof e?e():e),(e=>{c?.remove(),e&&(c=n(e,t,a))}),i),o((()=>c?.remove()))])}})();function u(e){const t=e?.closest("[dir]");return null!==t&&t instanceof HTMLElement&&"rtl"===t.dir||"rtl"===document.dir}function f(e){const t="data-node-ref";this[e.getAttribute(t)]=null}function m(e){const t="data-node-ref";this[e.getAttribute(t)]=e}const d=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",...["animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"]],g=d.reduce(((e,t)=>(e[t]=[],e)),{}),h=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y=new e({whiteList:g,onTagAttr:(e,t,r)=>{const o=`${t}="${r}"`;if(h.includes(t))return o},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);function v(e){return"Enter"===e||" "===e}async function w(e,t){await a(n(t));const r="function"==typeof e?e():e;r&&("setFocus"in r&&"function"==typeof r.setFocus?await r.setFocus():r instanceof HTMLElement&&r.focus())}export{d as additionalAllowedTags,l as classes,f as discardNode,v as isActivationKey,u as isRTL,p as onResize,y as renderingSanitizer,h as safeAttrs,w as setFocus,m as storeNode};
5
+ import e from"@esri/arcgis-html-sanitizer";import t from"../../core/ArrayPool.js";import{handlesGroup as n,makeHandle as r}from"../../core/handleUtils.js";import"../../core/has.js";import"../../core/Logger.js";import{signalFromSignalOrOptions as i}from"../../core/promiseUtils.js";import{watch as o,syncAndInitial as s}from"../../core/reactiveUtils.js";import{waitAnimationFrame as a}from"../../core/scheduling.js";import{clearVNodeCache as c}from"./vnodeCache.js";var l,u,d=function(e){if("WebkitTransition"in e.style)l="webkitTransitionEnd",u="webkitAnimationEnd";else{if(!("transition"in e.style))throw new Error("Your browser is not supported!");l="transitionend",u="animationend"}},f=function(e){l||d(e)},m=function(e,t){return void 0===t&&(t=e+"-active"),function(n){f(n);var r=!1,i=function(o){r||(r=!0,n.removeEventListener(l,i),n.removeEventListener(u,i),n.classList.remove(e),n.classList.remove(t))};n.classList.add(e),n.addEventListener(l,i),n.addEventListener(u,i),requestAnimationFrame((function(){n.classList.add(t)}))}},p=function(e,t){return void 0===t&&(t=e+"-active"),function(n,r){f(n);var i=!1,o=function(e){i||(i=!0,n.removeEventListener(l,o),n.removeEventListener(u,o),r())};n.classList.add(e),n.addEventListener(l,o),n.addEventListener(u,o),requestAnimationFrame((function(){n.classList.add(t)}))}};function v(...e){const n=t.acquire();for(let t=0;t<e.length;t++){const r=e[t],i=typeof r;if("string"===i)n.push(r);else if(Array.isArray(r))n.push.apply(n,r);else if("object"===i)for(const e in r)r[e]&&n.push(e)}const r=n.join(" ");return t.release(n),r}const h=(()=>{const e=new Map,t=new ResizeObserver((t=>{c();for(const n of t)e.get(n.target)?.(n)})),i=(n,i,o)=>(e.set(n,i),t.observe(n,o),r((()=>{t.unobserve(n),e.delete(n)})));return(e,t,a)=>{let c=null;return n([o((()=>"function"==typeof e?e():e),(e=>{c?.remove(),e&&(c=i(e,t,a))}),s),r((()=>c?.remove()))])}})();function g(e){const t=e?.closest("[dir]");return null!==t&&t instanceof HTMLElement&&"rtl"===t.dir||"rtl"===document.dir}function L(e,t){return("enter"===e?m:p)(t)}function w(e){const t="data-node-ref";this[e.getAttribute(t)]=null}function y(e){const t="data-node-ref";this[e.getAttribute(t)]=e}const b=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",...["animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"]],E=b.reduce(((e,t)=>(e[t]=[],e)),{}),j=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],A=new e({whiteList:E,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(j.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);function k(e){return"Enter"===e||" "===e}async function T(e,t){await a(i(t));const n="function"==typeof e?e():e;n&&("setFocus"in n&&"function"==typeof n.setFocus?await n.setFocus():n instanceof HTMLElement&&n.focus())}export{b as additionalAllowedTags,v as classes,L as cssTransition,w as discardNode,k as isActivationKey,g as isRTL,h as onResize,A as renderingSanitizer,j as safeAttrs,T as setFocus,y as storeNode};
@@ -1,4 +0,0 @@
1
- import "../../interfaces";
2
-
3
- import CollectionFlattener = __esri.CollectionFlattener;
4
- export default CollectionFlattener;
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- */
5
- import e from"../../core/CollectionFlattener.js";export{e as default};
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6343],{39516:(e,t,r)=>{async function s(e,t){const{default:s}=await r.e(8368).then(r.bind(r,88368));return s.create(e,{fieldsIndex:t})}function i(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{G:()=>s,m:()=>i})},13069:(e,t,r)=>{r.d(t,{AG:()=>l,lk:()=>i,vD:()=>n,yS:()=>o});const s="randomUUID"in crypto;function i(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function n(){return`{${i()}}`}function l(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17625:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var s=r(90237),i=(r(59456),r(13874)),o=(r(86162),r(52464),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),n=r(92071),l=r(74887),a=r(84952),u=r(10107),p=r(44208),d=r(53966),c=(r(87811),r(40608)),y=r(50498),h=r(4146),m=r(49186),f=r(92474),g=r(29953),v=r(64714),_=r(22671),w=r(5443),x=r(39829);let I=class extends f.A{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,l.sg)((async e=>{await this.load();const{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}queryFeatures(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t))).then((e=>_.A.fromJSON(e)))}queryFeaturesJSON(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t)))}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:w.A.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}_applyEdits(e){if(!this._connection)throw new m.A("geojson-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField,r=[],s=[],i=[];if(e.addFeatures)for(const t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(const r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?s.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&s.push(r.attributes[t]);if(e.updateFeatures)for(const t of e.updateFeatures)i.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:i,deletes:s}).then((({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r))))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new m.A("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:"mesh"===t.type||"extent"===t.type?x.A.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,g.ho)("GeoJSONSourceWorker",{strategy:(0,p.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:r,hasZ:s,geometryType:i,objectIdField:o,url:n,timeInfo:l,customParameters:a}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),c={url:n,customParameters:a,fields:t&&t.map((e=>e.toJSON())),geometryType:y.g.toJSON(i),hasZ:s,objectIdField:o,timeInfo:l?l.toJSON():null,spatialReference:u?null:r&&r.toJSON()},h=await this._connection.invoke("load",c,{signal:e});for(const e of h.warnings)d.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});h.featureErrors.length&&d.A.getLogger(this.layer).warn("#load()",`Encountered ${h.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:h.featureErrors}),this.sourceJSON=h.layerDefinition,this.capabilities=(0,v.f)(this.sourceJSON.hasZ,!0)}};(0,s._)([(0,u.MZ)()],I.prototype,"capabilities",void 0),(0,s._)([(0,u.MZ)()],I.prototype,"type",void 0),(0,s._)([(0,u.MZ)({constructOnly:!0})],I.prototype,"layer",void 0),(0,s._)([(0,u.MZ)()],I.prototype,"sourceJSON",void 0),I=(0,s._)([(0,c.$)("esri.layers.graphics.sources.GeoJSONSource")],I);var E=r(63074),A=r(69208),F=r(87718),M=r(76294),b=r(16131),S=r(32756),T=r(8303),O=r(54310),R=r(25036),Z=r(82935),P=r(10873),j=r(29005),N=r(20437),U=r(17036),C=r(30524),$=r(81457),J=r(39383),D=r(61956),q=r(30291),B=r(56400),G=r(16930);const Q=(0,U.p)();let z=class extends((0,S.fY)((0,A.d)((0,M.J)((0,F.F)((0,E.dM)((0,Z.e)((0,R.j)((0,O.J)((0,b.q)((0,T.A)((0,n.P)(h.A)))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.copyright=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new I({layer:this}),this.spatialReference=G.A.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson"}destroy(){this.source?.destroy()}load(e){const t=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},e).catch(l.QP).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo"],"service"),(0,C.yp)(this.renderer,this.fieldsIndex),(0,C.sv)(this.timeInfo,this.fieldsIndex)}));return this.addResolvingPromise(t),Promise.resolve(this)}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return this.url?(0,a.An)(this.url):null}set renderer(e){(0,C.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);const t=(0,a.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}async applyEdits(e,t){const{applyEdits:s}=await r.e(8628).then(r.bind(r,78628));await this.load();const i=await s(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),i}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,q.tn)(this,e)}createQuery(){const e=new D.A,t=this.capabilities?.data;e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:s}=this;return e.timeExtent=null!=r&&null!=s?s.offset(-r.value,r.unit):s||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(D.A.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(D.A.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(D.A.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(D.A.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,s._)([(0,u.MZ)(P.zQ)],z.prototype,"attributeTableTemplate",void 0),(0,s._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1}})],z.prototype,"capabilities",null),(0,s._)([(0,u.MZ)({type:String})],z.prototype,"copyright",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],z.prototype,"createQueryVersion",null),(0,s._)([(0,u.MZ)((0,B.P6)("dateFieldsTimeReference"))],z.prototype,"dateFieldsTimeZone",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],z.prototype,"defaultPopupTemplate",null),(0,s._)([(0,u.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],z.prototype,"definitionExpression",void 0),(0,s._)([(0,u.MZ)({type:String})],z.prototype,"displayField",void 0),(0,s._)([(0,u.MZ)({type:Boolean})],z.prototype,"editingEnabled",void 0),(0,s._)([(0,u.MZ)(P.Yj)],z.prototype,"elevationInfo",void 0),(0,s._)([(0,u.MZ)({type:[N.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],z.prototype,"fields",void 0),(0,s._)([(0,u.MZ)(Q.fieldsIndex)],z.prototype,"fieldsIndex",void 0),(0,s._)([(0,u.MZ)({type:w.A,json:{name:"extent"}})],z.prototype,"fullExtent",void 0),(0,s._)([(0,u.MZ)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:y.g.read}}})],z.prototype,"geometryType",void 0),(0,s._)([(0,u.MZ)({type:Boolean})],z.prototype,"hasZ",void 0),(0,s._)([(0,u.MZ)(P.id)],z.prototype,"id",void 0),(0,s._)([(0,u.MZ)({type:Boolean,readOnly:!0})],z.prototype,"isTable",null),(0,s._)([(0,u.MZ)(P.kF)],z.prototype,"labelsVisible",void 0),(0,s._)([(0,u.MZ)({type:[$.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:J.w},write:!0}})],z.prototype,"labelingInfo",void 0),(0,s._)([(0,u.MZ)(P.fV)],z.prototype,"legendEnabled",void 0),(0,s._)([(0,u.MZ)({type:["show","hide"]})],z.prototype,"listMode",void 0),(0,s._)([(0,u.MZ)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],z.prototype,"objectIdField",void 0),(0,s._)([(0,u.MZ)(P.ke)],z.prototype,"opacity",void 0),(0,s._)([(0,u.MZ)({type:["GeoJSON"]})],z.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.MZ)(Q.outFields)],z.prototype,"outFields",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],z.prototype,"parsedUrl",null),(0,s._)([(0,u.MZ)(P.M6)],z.prototype,"popupEnabled",void 0),(0,s._)([(0,u.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],z.prototype,"popupTemplate",void 0),(0,s._)([(0,u.MZ)({types:o.H,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:o.X}}}})],z.prototype,"renderer",null),(0,s._)([(0,u.MZ)(P.PY)],z.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],z.prototype,"source",void 0),(0,s._)([(0,u.MZ)({type:G.A})],z.prototype,"spatialReference",void 0),(0,s._)([(0,u.MZ)({type:[j.A]})],z.prototype,"templates",void 0),(0,s._)([(0,u.MZ)()],z.prototype,"title",void 0),(0,s._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],z.prototype,"type",void 0),(0,s._)([(0,u.MZ)(P.OZ)],z.prototype,"url",null),z=(0,s._)([(0,c.$)("esri.layers.GeoJSONLayer")],z);const k=z},99352:(e,t,r)=>{r.d(t,{F:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1}},64714:(e,t,r)=>{r.d(t,{F0:()=>a,Vx:()=>d,e2:()=>y,f:()=>h});var s=r(44208),i=r(4718),o=r(99352),n=r(4071),l=r(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?l.Cb:"esriGeometryPolyline"===e?l.yM:l.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function d(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this${c(t)} = null;`;for(const t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function c(e){return u.test(e)?`.${e}`:`["${e}"]`}function y(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},69208:(e,t,r)=>{r.d(t,{d:()=>n});var s=r(90237),i=r(10107),o=(r(44208),r(53966),r(87811),r(40608));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,s._)([(0,o.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},32756:(e,t,r)=>{r.d(t,{Rr:()=>a,fY:()=>p,ne:()=>u});var s=r(90237),i=r(93637),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608)),l=r(91880);function a(e,t,r){if(!e)return null;const s=e.find((e=>!!e.field));if(!s)return null;const i=new l.A;return i.read(s,r),[i]}const u={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,s){const o=e.find((e=>!!e.field));o&&(0,i.sM)(r,[o.toJSON()],t)}}}},p=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,o.MZ)(u)],t.prototype,"orderBy",void 0),t=(0,s._)([(0,n.$)("esri.layers.mixins.OrderedLayer")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var s=r(90237),i=r(92602),o=r(70333),n=r(78888),l=r(60999),a=r(49186),u=r(53966),p=r(97768),d=r(74887),c=r(84952),y=r(10107),h=(r(44208),r(87811),r(36005)),m=r(40608),f=r(43937),g=r(83531),v=r(20655),_=r(80812),w=r(41318),x=r(10407);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new _.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!o.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,s);let n,l;if(i)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!n||!(0,c.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,u=!1,p=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(i?await r.reload():(r=new _.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,s)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,x.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=E.credential===t?E.user:await this._fetchEditingUser(e);return E.credential=t,E.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=v.A.getDefault();if(i&&i.loaded&&(0,c.S8)(i.restUrl)===(0,c.S8)(s))return i.user;const a=`${s}/community/self`,u=null!=e?e.signal:null,p=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&s&&!(0,c.ut)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,y.MZ)({type:_.default})],t.prototype,"portalItem",null),(0,s._)([(0,h.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,y.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,y.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},E={credential:null,user:null}},82935:(e,t,r)=>{r.d(t,{B:()=>y,e:()=>h});var s=r(90237),i=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),n=r(40608),l=r(89317),a=r(30524),u=r(96184),p=r(73133),d=r(79677),c=r(10184);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const s=r.timeOffset,i=p.j.fromJSON(r.timeOffsetUnits);return s&&i?new c.A({value:s,unit:i}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,i.MZ)({type:d.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,i.MZ)({type:c.A})],t.prototype,"timeOffset",void 0),(0,s._)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,i.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,i.MZ)(y)],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,n.$)("esri.layers.mixins.TemporalLayer")],t),t}},29005:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(90237),i=r(69540),o=r(66552),n=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const u=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends(i.A.ClonableMixin(n.A)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,s._)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,s._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,s._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,s._)([(0,a.$)("esri.layers.support.FeatureTemplate")],p);const d=p},91880:(e,t,r)=>{r.d(t,{A:()=>d});var s,i=r(90237),o=r(66552),n=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const u=new o.J({asc:"ascending",desc:"descending"});let p=s=class extends n.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,i._)([(0,l.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],p.prototype,"order",void 0),p=s=(0,i._)([(0,a.$)("esri.layers.support.OrderByInfo")],p);const d=p},96184:(e,t,r)=>{r.d(t,{A:()=>m});var s=r(90237),i=r(69540),o=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(43937),p=r(79677),d=r(10184),c=r(56400);function y(e,t){return d.A.fromJSON({value:e,unit:t})}let h=class extends(i.A.ClonableMixin(o.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,s._)([(0,n.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,s._)([(0,n.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,s._)([(0,n.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,s._)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,s._)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,s._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,s._)([(0,n.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,s._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,s._)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,s._)([(0,n.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,s._)([(0,n.MZ)((0,c.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,s._)([(0,n.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,s._)([(0,n.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,s._)([(0,a.$)("esri.layers.support.TimeInfo")],h);const m=h},4071:(e,t,r)=>{r.d(t,{$:()=>s,P:()=>i});const s={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportedStatistics:void 0},i={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},17036:(e,t,r)=>{r.d(t,{p:()=>a});var s=r(44208),i=r(53966),o=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,s.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},32730:(e,t,r)=>{r.d(t,{BI:()=>f,D3:()=>h,XJ:()=>m,lc:()=>y,mX:()=>v,rU:()=>g,tH:()=>E});var s=r(799);const i="__begin__",o="__end__",n=new RegExp(i,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i"),p='"',d=p+" + ",c=" + "+p;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return E(t.expression)}return null}function v(e){let t;return e?(t=(0,s.HC)(e,(e=>i+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(n,d).replaceAll(l,c)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function E(e){if(!e)return null;let t=w.exec(e)||x.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},73133:(e,t,r)=>{r.d(t,{j:()=>s});const s=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},22671:(e,t,r)=>{r.d(t,{A:()=>_});var s,i=r(90237),o=r(59456),n=r(52106),l=r(66552),a=r(25482),u=r(4718),p=r(10107),d=(r(44208),r(53966),r(36005)),c=r(40608),y=r(43937),h=r(16930),m=r(65864),f=r(20437);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=s=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],o=n.A.fromJSON(i),l=i.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=i.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],s=a[e],i=s?.spatialReference;null==t||i||(t.spatialReference=r)}s.push(o)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,m.rS)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=h.A.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,u.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,i]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+s),(e=>i-e*n),l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,i;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===s&&n===i||(o.push([e-s,n-i]),s=e,i=n)}else s=t(l[0]),i=r(l[1]),o.push([s,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,m.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=s.length;e<o;e++){const o=s[e],n=this._quantizePoints(o,t,r);n&&i.push(n)}return i.length>0?((0,m.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,s=o.length;e<s;e++){const s=o[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}}if(s&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,s=o.length;e<s;e++){const s=o[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}if(s&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,i._)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,i._)([(0,p.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,i._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,i._)([(0,y.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,i._)([(0,p.MZ)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,i._)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,i._)([(0,p.MZ)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i._)([(0,y.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,i._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=s=(0,i._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},10184:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(90237),i=r(69540),o=r(25482),n=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let d=class extends(i.A.ClonableMixin(o.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.t)(this.value,this.unit,"milliseconds")}};(0,s._)([(0,a.e)(p.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,s._)([(0,u.$)("esri.time.TimeInterval")],d);const c=d}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{87367:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>C});var r=e(47609),i=e(66395),a=e(85935),u=e(78502),o=e(78878),c=e(80672),s=e(50377),l=e(51092),f=e(83047),d=e(5443),w=e(91075),A=e(14469),h=e(48526),y=e(86738),m=e(39829),p=e(82799),v=e(65864),g=e(20655),D=e(70333),T=e(78888);async function $(n,t,e){const r=D.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const i={responseType:"json",query:{f:"json"}};if(e&&(i.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,T.A)(n.restUrl+"/community/self",i);if(t.data){const n=t.data;if(n?.username)return n}return null}const a=await(0,T.A)(n.restUrl+"/community/users/"+t,i);if(a.data){const n=a.data;return n.error?null:n}return null}var I=e(54218);function P(n,t,e){if((0,o.B)(n,2,2,t,e),n[0]instanceof w.A&&n[1]instanceof w.A);else if(n[0]instanceof w.A&&null===n[1]);else if(n[1]instanceof w.A&&null===n[0]);else if(null!==n[0]||null!==n[1])throw new a.D$(t,a.TX.InvalidParameter,e)}async function X(n,t){if("polygon"!==n.type&&"polyline"!==n.type&&"extent"!==n.type)return 0;let e=1;(n.spatialReference.vcsWkid||n.spatialReference.latestVcsWkid)&&(e=(0,s.G9)(n.spatialReference)/(0,f.GA)(n.spatialReference));let r=0;if("polyline"===n.type)for(const t of n.paths)for(let n=1;n<t.length;n++)r+=(0,s.BM)(t[n],t[n-1],e);else if("polygon"===n.type)for(const t of n.rings){for(let n=1;n<t.length;n++)r+=(0,s.BM)(t[n],t[n-1],e);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,s.BM)(t[0],t[t.length-1],e))}else"extent"===n.type&&(r+=2*(0,s.BM)([n.xmin,n.ymin,0],[n.xmax,n.ymin,0],e),r+=2*(0,s.BM)([n.xmin,n.ymin,0],[n.xmin,n.ymax,0],e),r*=2,r+=4*Math.abs((0,o.E)(n.zmax,0)*e-(0,o.E)(n.zmin,0)*e));const i=new p.A({hasZ:!1,hasM:!1,spatialReference:n.spatialReference,paths:[[[0,0],[0,r]]]});return(0,A.Zu)(i,t)}function C(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null===i[0]||null===i[1]||(0,A.nf)(i[0],i[1]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.HY)(i[0],i[1]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.yI)(i[0],i[1]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.NN)(i[0],i[1]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.ux)(i[0],i[1]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.gR)(i[0],i[1]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null!==i[0]&&null!==i[1]&&(0,A.$f)(i[0],i[1]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>((0,o.B)(i,2,2,t,e),i[0]===i[1]||(i[0]instanceof w.A&&i[1]instanceof w.A?(0,A.aI)(i[0],i[1]):((0,o.g)(i[0])&&(0,o.g)(i[1])||!!((0,o.k)(i[0])&&(0,o.k)(i[1])||(0,o.j)(i[0])&&(0,o.j)(i[1])))&&i[0].equals(i[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,3,3,t,e),i[0]instanceof w.A&&i[1]instanceof w.A)return(0,A.c7)(i[0],i[1],(0,o.f)(i[2]));if(i[0]instanceof w.A&&null===i[1])return!1;if(i[1]instanceof w.A&&null===i[0])return!1;if(null===i[0]&&null===i[1])return!1;throw new a.D$(t,a.TX.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null===i[0]||null===i[1]?null:(0,A.y$)(i[0],i[1]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{const c=[];if(0===(i=(0,o.C)(i)).length)throw new a.D$(t,a.TX.WrongNumberOfParameters,e);if(1===i.length)if((0,I.cy)(i[0])){const n=(0,o.C)(i[0]);for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);c.push(n[r])}}else{if(!(0,o.m)(i[0])){if(i[0]instanceof w.A)return(0,o.s)((0,u.Yq)(i[0]),t.spatialReference);if(null===i[0])return null;throw new a.D$(t,a.TX.InvalidParameter,e)}{const n=(0,o.C)(i[0].toArray());for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);c.push(n[r])}}}else for(let n=0;n<i.length;n++)if(null!==i[n]){if(!(i[n]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);c.push(i[n])}return 0===c.length?null:(0,A.KC)(c)}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null===i[0]?null:null===i[1]?(0,u.Yq)(i[0]):(0,A.iv)(i[0],i[1]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(P(i=(0,o.C)(i),t,e),null===i[0]&&null===i[1]?null:null===i[0]?(0,u.Yq)(i[1]):null===i[1]?(0,u.Yq)(i[0]):(0,A.BT)(i[0],i[1]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,2,t,e),!(i[1]instanceof d.A)&&null!==i[1])throw new a.D$(t,a.TX.InvalidParameter,e);if(null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return null===i[1]?null:(0,A.$Q)(i[0],i[1])}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,2,t,e),!(i[1]instanceof p.A)&&null!==i[1])throw new a.D$(t,a.TX.InvalidParameter,e);if(null===i[0])return[];if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return null===i[1]?[(0,u.Yq)(i[0])]:(0,A.Jj)(i[0],i[1])}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.B)(i,1,2,t,e),null===(i=(0,o.C)(i))[0])return 0;if((0,o.p)(i[0])){const n=await i[0].sumArea((0,u.uf)((0,o.E)(i[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new a.D$(t,a.TX.Cancelled,e);return n}if((0,I.cy)(i[0])||(0,o.m)(i[0])){const n=(0,o.D)(i[0],t.spatialReference);return null===n?0:(0,A._2)(n,(0,u.uf)((0,o.E)(i[1],-1)))}if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A._2)(i[0],(0,u.uf)((0,o.E)(i[1],-1)))}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.B)(i,1,2,t,e),null===(i=(0,o.C)(i))[0])return 0;if((0,o.p)(i[0])){const n=await i[0].sumArea((0,u.uf)((0,o.E)(i[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new a.D$(t,a.TX.Cancelled,e);return n}if((0,I.cy)(i[0])||(0,o.m)(i[0])){const n=(0,o.D)(i[0],t.spatialReference);return null===n?0:(0,A.PW)(n,(0,u.uf)((0,o.E)(i[1],-1)))}if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.PW)(i[0],(0,u.uf)((0,o.E)(i[1],-1)))}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.B)(i,1,2,t,e),null===(i=(0,o.C)(i))[0])return 0;if((0,o.p)(i[0])){const n=await i[0].sumLength((0,u.SQ)((0,o.E)(i[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new a.D$(t,a.TX.Cancelled,e);return n}if((0,I.cy)(i[0])||(0,o.m)(i[0])){const n=(0,o.F)(i[0],t.spatialReference);return null===n?0:(0,A.Zu)(n,(0,u.SQ)((0,o.E)(i[1],-1)))}if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.Zu)(i[0],(0,u.SQ)((0,o.E)(i[1],-1)))}))},n.functions.length3d=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if((0,o.B)(i,1,2,t,e),null===(i=(0,o.C)(i))[0])return 0;if((0,I.cy)(i[0])||(0,o.m)(i[0])){const n=(0,o.F)(i[0],t.spatialReference);return null===n?0:!0===n.hasZ?X(n,(0,u.SQ)((0,o.E)(i[1],-1))):(0,A.Zu)(n,(0,u.SQ)((0,o.E)(i[1],-1)))}if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return!0===i[0].hasZ?X(i[0],(0,u.SQ)((0,o.E)(i[1],-1))):(0,A.Zu)(i[0],(0,u.SQ)((0,o.E)(i[1],-1)))}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.B)(i,1,2,t,e),null===(i=(0,o.C)(i))[0])return 0;if((0,o.p)(i[0])){const n=await i[0].sumLength((0,u.SQ)((0,o.E)(i[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new a.D$(t,a.TX.Cancelled,e);return n}if((0,I.cy)(i[0])||(0,o.m)(i[0])){const n=(0,o.F)(i[0],t.spatialReference);return null===n?0:(0,A.mh)(n,(0,u.SQ)((0,o.E)(i[1],-1)))}if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.mh)(i[0],(0,u.SQ)((0,o.E)(i[1],-1)))}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{i=(0,o.C)(i),(0,o.B)(i,2,3,t,e);let c=i[0];((0,I.cy)(i[0])||(0,o.m)(i[0]))&&(c=(0,o.G)(i[0],t.spatialReference));let s=i[1];if(((0,I.cy)(i[1])||(0,o.m)(i[1]))&&(s=(0,o.G)(i[1],t.spatialReference)),!(c instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(s instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.Io)(c,s,(0,u.SQ)((0,o.E)(i[2],-1)))}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{i=(0,o.C)(i),(0,o.B)(i,2,3,t,e);const c=i[0],s=i[1];if(!(c instanceof y.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(s instanceof y.A))throw new a.D$(t,a.TX.InvalidParameter,e);const l=new p.A({paths:[],spatialReference:c.spatialReference});return l.addPath([c,s]),(0,A.mh)(l,(0,u.SQ)((0,o.E)(i[2],-1)))}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);if(c<=0)throw new a.D$(t,a.TX.InvalidParameter,e);return i[0]instanceof m.A||i[0]instanceof p.A?(0,A.jL)(i[0],c,(0,u.SQ)((0,o.E)(i[2],-1))):i[0]instanceof d.A?(0,A.jL)(m.A.fromExtent(i[0]),c,(0,u.SQ)((0,o.E)(i[2],-1))):i[0]}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);if(c<=0)throw new a.D$(t,a.TX.InvalidParameter,e);return i[0]instanceof m.A||i[0]instanceof p.A?(0,A.Ow)(i[0],c,(0,u.SQ)((0,o.E)(i[2],-1))):i[0]instanceof d.A?(0,A.Ow)(m.A.fromExtent(i[0]),c,(0,u.SQ)((0,o.E)(i[2],-1))):i[0]}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,4,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.px)(i[0],c,(0,o.e)((0,o.E)(i[2],!0)),(0,u.SQ)((0,o.E)(i[3],-1)))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);return 0===c?(0,u.Yq)(i[0]):(0,A.r)(i[0],c,(0,u.SQ)((0,o.E)(i[2],-1)))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);return 0===c?(0,u.Yq)(i[0]):(0,A.SE)(i[0],c,(0,u.SQ)((0,o.E)(i[2],-1)))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,6,t,e),null===i[0])return null;if(!(i[0]instanceof m.A||i[0]instanceof p.A))throw new a.D$(t,a.TX.InvalidParameter,e);const c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);const s=(0,o.d)((0,o.E)(i[4],10));if(isNaN(s))throw new a.D$(t,a.TX.InvalidParameter,e);const l=(0,o.d)((0,o.E)(i[5],0));if(isNaN(l))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.cY)(i[0],c,(0,u.SQ)((0,o.E)(i[2],-1)),(0,o.f)((0,o.E)(i[3],"round")).toLowerCase(),s,l)}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);const u=i[0]instanceof d.A?m.A.fromExtent(i[0]):i[0],c=(0,o.d)(i[1]);if(isNaN(c))throw new a.D$(t,a.TX.InvalidParameter,e);const s=(0,o.E)(i[2],null);if(null===s)return(0,A.e$)(u,c);if(s instanceof y.A)return(0,A.e$)(u,c,s);throw new a.D$(t,a.TX.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,1,1,t,e),null===i[0])return null;let c=i[0];if(((0,I.cy)(i[0])||(0,o.m)(i[0]))&&(c=(0,o.G)(i[0],t.spatialReference)),null===c)return null;if(!(c instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return c instanceof y.A?(0,o.s)((0,u.Yq)(c),t.spatialReference):c instanceof m.A?c.centroid:c instanceof p.A?(0,s.tI)(c):c instanceof h.A?(0,s.e0)(c):c instanceof d.A?c.center:null}))},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,u)=>{if(u=(0,o.C)(u),(0,o.B)(u,2,2,t,e),null===u[0])return null;let c=u[0];if(((0,I.cy)(u[0])||(0,o.m)(u[0]))&&(c=(0,o.F)(u[0],t.spatialReference)),null===c)return null;if(!(c instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(c instanceof p.A))throw new a.D$(t,a.TX.InvalidParameter,e);if((0,I.Et)(!1===u[1]))throw new a.D$(t,a.TX.InvalidParameter,e);const s=(0,l.EP)(c,u[1]);return s?i.A.convertObjectToArcadeDictionary(s,(0,o.H)(t),!1,!0):null}))},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,u)=>{if(u=(0,o.C)(u),(0,o.B)(u,2,2,t,e),null===u[0])return null;let c=u[0];if(((0,I.cy)(u[0])||(0,o.m)(u[0]))&&(c=(0,o.F)(u[0],t.spatialReference)),null===c)return null;if(!(c instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(c instanceof p.A))throw new a.D$(t,a.TX.InvalidParameter,e);const s=u[1];if(null===s)return null;if(!(s instanceof y.A))throw new a.D$(t,a.TX.InvalidParameter,e);if((0,I.Et)(!1===u[1]))throw new a.D$(t,a.TX.InvalidParameter,e);const f=(0,l.sO)(c,s);return f?i.A.convertObjectToArcadeDictionary(f,(0,o.H)(t),!1,!0):null}))},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,u)=>{if(u=(0,o.C)(u),(0,o.B)(u,2,2,t,e),null===u[0])return null;let c=u[0];if(((0,I.cy)(u[0])||(0,o.m)(u[0]))&&(c=(0,o.F)(u[0],t.spatialReference)),null===c)return null;if(!(c instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(c instanceof p.A))throw new a.D$(t,a.TX.InvalidParameter,e);if((0,I.Et)(!1===u[1]))throw new a.D$(t,a.TX.InvalidParameter,e);const s=(0,l.du)(c,u[1]);return s?i.A.convertObjectToArcadeDictionary(s,(0,o.H)(t),!1,!0):null}))},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,1,1,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);if(i[0]instanceof y.A)return[(0,o.s)((0,u.Yq)(i[0]),t.spatialReference)];if(i[0]instanceof d.A)return[(0,o.s)((0,u.Yq)(i[0]),t.spatialReference)];const c=await(0,A.CR)(i[0]);if(c instanceof m.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,v.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof p.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,v.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(i[0]instanceof h.A){const n=[],e=(0,o.s)((0,u.Yq)(i[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,1,1,t,e),null===i[0])return!0;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.pn)(i[0])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,1,1,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.CR)(i[0])}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.C)(i),(0,o.B)(i,1,1,t,e),null===i[0])return null;if(!(i[0]instanceof w.A))throw new a.D$(t,a.TX.InvalidParameter,e);return(0,A.HF)(i[0])}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,u,s)=>{(0,o.B)(s,0,2,t,e);let l=(0,o.E)(s[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,o.f)(l),0===s.length||s[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:g.A.getDefault(),s.length>0&&(n=(0,c.R)(s[0],n));const e=await $(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return i.A.convertObjectToArcadeDictionary(n,(0,o.H)(t))}return null}let d=null;if((0,o.p)(s[0])&&(d=s[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?i.A.convertObjectToArcadeDictionary({username:n},(0,o.H)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:g.A.getDefault(),e=(0,c.R)(new r.A(n),e);const a=await $(e,l,f);if(a){const n=JSON.parse(JSON.stringify(a));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return i.A.convertObjectToArcadeDictionary(n,(0,o.H)(t))}return null}throw new a.D$(t,a.TX.InvalidParameter,e)}))},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,u)=>{if(u=(0,o.C)(u),(0,o.B)(u,2,2,t,e),!(u[0]instanceof w.A||null===u[0]))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(u[1]instanceof y.A||null===u[1]))throw new a.D$(t,a.TX.InvalidParameter,e);if(null===u[0]||null===u[1])return null;const c=await(0,A.fC)(u[0],u[1]);return null===c?null:i.A.convertObjectToArcadeDictionary({coordinate:c.coordinate,distance:c.distance,sideOfLine:0===c.distance?"straddle":c.isRightSide?"right":"left"},(0,o.H)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,u)=>{if(u=(0,o.C)(u),(0,o.B)(u,2,2,t,e),!(u[0]instanceof w.A||null===u[0]))throw new a.D$(t,a.TX.InvalidParameter,e);if(!(u[1]instanceof y.A||null===u[1]))throw new a.D$(t,a.TX.InvalidParameter,e);if(null===u[0]||null===u[1])return null;const c=await(0,A.JT)(u[0],u[1]);return null===c?null:i.A.convertObjectToArcadeDictionary({coordinate:c.coordinate,distance:c.distance,sideOfLine:0===c.distance?"straddle":c.isRightSide?"right":"left"},(0,o.H)(t),!1,!0)}))})}},80672:(n,t,e)=>{e.d(t,{R:()=>i});var r=e(20655);function i(n,t){return null===n?t:new r.A({url:n.field("url")})}},14469:(n,t,e)=>{e.d(t,{$Q:()=>f,$f:()=>D,BT:()=>C,CR:()=>I,HF:()=>P,HY:()=>m,Io:()=>h,JT:()=>O,Jj:()=>d,KC:()=>F,NN:()=>A,Ow:()=>j,PW:()=>Y,SE:()=>B,Zu:()=>q,_2:()=>J,aI:()=>y,c7:()=>T,cY:()=>E,e$:()=>b,fC:()=>N,gR:()=>w,iv:()=>X,jL:()=>Q,mh:()=>H,nf:()=>g,pn:()=>$,px:()=>x,r:()=>R,ux:()=>v,y$:()=>S,yI:()=>p}),e(59456);var r=e(29953),i=e(86738),a=e(65864);function u(n){return Array.isArray(n)?n[0]?.spatialReference:n?.spatialReference}function o(n){return n?Array.isArray(n)?n.map(o):n.toJSON?n.toJSON():n:n}function c(n){return Array.isArray(n)?n.map((n=>(0,a.rS)(n))):(0,a.rS)(n)}let s;async function l(n,t){return(await async function(){return s||(s=(0,r.ho)("geometryEngineWorker",{strategy:"distributed"})),s}()).invoke("executeGEOperation",{operation:n,parameters:o(t)})}async function f(n,t){return c(await l("clip",[u(n),n,t]))}async function d(n,t){return c(await l("cut",[u(n),n,t]))}function w(n,t){return l("contains",[u(n),n,t])}function A(n,t){return l("crosses",[u(n),n,t])}function h(n,t,e){return l("distance",[u(n),n,t,e])}function y(n,t){return l("equals",[u(n),n,t])}function m(n,t){return l("intersects",[u(n),n,t])}function p(n,t){return l("touches",[u(n),n,t])}function v(n,t){return l("within",[u(n),n,t])}function g(n,t){return l("disjoint",[u(n),n,t])}function D(n,t){return l("overlaps",[u(n),n,t])}function T(n,t,e){return l("relate",[u(n),n,t,e])}function $(n){return l("isSimple",[u(n),n])}async function I(n){return c(await l("simplify",[u(n),n]))}async function P(n,t=!1){return c(await l("convexHull",[u(n),n,t]))}async function X(n,t){return c(await l("difference",[u(n),n,t]))}async function C(n,t){return c(await l("symmetricDifference",[u(n),n,t]))}async function S(n,t){return c(await l("intersect",[u(n),n,t]))}async function F(n,t=null){const e=function(n,t){let e;return Array.isArray(n)?e=n:(e=[],e.push(n),null!=t&&e.push(t)),e}(n,t);return c(await l("union",[u(e),e]))}async function E(n,t,e,r,i,a){return c(await l("offset",[u(n),n,t,e,r,i,a]))}async function R(n,t,e,r=!1){const i=[u(n),n,t,e,r];return c(await l("buffer",i))}async function B(n,t,e,r,i,a){const o=[u(n),n,t,e,r,i,a];return c(await l("geodesicBuffer",o))}async function N(n,t,e=!0){const r=await l("nearestCoordinate",[u(n),n,t,e]);return{...r,coordinate:i.A.fromJSON(r.coordinate)}}async function O(n,t){const e=await l("nearestVertex",[u(n),n,t]);return{...e,coordinate:i.A.fromJSON(e.coordinate)}}async function b(n,t,e){if(null==n)throw new L;const r=n.spatialReference;if(null==(e=e??function(n){return"xmin"in n?n.center:"x"in n?n:n.extent?.center}(n)))throw new L;const i=n.constructor.fromJSON(await l("rotate",[r,n,t,e]));return i.spatialReference=r,i}async function x(n,t,e,r){return c(await l("generalize",[u(n),n,t,e,r]))}async function Q(n,t,e){return c(await l("densify",[u(n),n,t,e]))}async function j(n,t,e,r=0){return c(await l("geodesicDensify",[u(n),n,t,e,r]))}function J(n,t){return l("planarArea",[u(n),n,t])}function q(n,t){return l("planarLength",[u(n),n,t])}function Y(n,t,e){return l("geodesicArea",[u(n),n,t,e])}function H(n,t,e){return l("geodesicLength",[u(n),n,t,e])}class L extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359:(e,t,r)=>{r.d(t,{save:()=>L,saveAs:()=>P});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),s=r(23154),i=r(83531),l=r(10407);const u="Feature Service",c="feature-layer-utils",y=`${c}-save`,d=`${c}-save-as`;function p(e){return{isValid:(0,i.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function f(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)a.isTable?r.push(n):t.push(n);return{layers:t,tables:r}}function m(e){return f([e])}async function w(e,t){return/\/\d+\/?$/.test(e.url)?m(t[0]):async function(e,t){if(e.reverse(),!t)return f(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:i}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:i}=t,{serviceJSON:l,layersJSON:u}=await(0,s.Q)(n,{customParameters:o,apiKey:i}),c=b(e.layers,l.layers,a),y=b(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=y.itemResources;const d=[...c.added,...y.added],p=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach((({type:e})=>{switch((0,s.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(893),r.e(2593),r.e(4196)]).then(r.bind(r,79003)).then((e=>e.default)));break;case"FeatureLayer":t.push(Promise.all([r.e(9953),r.e(3029),r.e(3600),r.e(9340)]).then(r.bind(r,13600)).then((e=>e.default)));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(9953),r.e(3029),r.e(3600),r.e(8330)]).then(r.bind(r,97927)).then((e=>e.default)))}}));const a=await Promise.all(t),n=new Map;return e.forEach((({type:e},t)=>{n.set(e,a[t])})),n}(t),i=t.map((({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find((({id:t})=>t===e))})));await Promise.allSettled(i.map((e=>e.load()))),i.forEach((t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};"ArcGISFeatureLayer"!==t.operationalLayerType&&(o.layerType=t.operationalLayerType),I(t,o,e)}))}(e,d,n,p)}(a,{url:n??"",customParameters:o,apiKey:i},t.map((e=>e.layer.layerId))),a}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}h(e.layers,r),h(e.tables,a)}(a,e),a}(t,e)}function h(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(v),t.slice().sort(v))&&e.sort(((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0}))}function v(e,t){return e<t?-1:e>t?1:0}function b(e,t,r){const n=(0,a.iv)(e,t,((e,t)=>e.id===t.id));e=e.filter((e=>!n.removed.some((t=>t.id===e.id))));const o=n.added;return o.forEach((({id:t})=>{e.push({id:t})})),{itemResources:e,added:o.filter((({id:e})=>!r.includes(e)))}}function I(e,t,r){e.isTable?g(r.tables,t):g(r.layers,t)}function g(e,t){const r=e.findIndex((({id:e})=>e===t.id));-1===r?e.push(t):e[r]=t}async function S(e,t,r){!function(e,t){const r=e.layers.some((e=>"OrientedImageryLayer"===e.layerType));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}(r,t)}async function A(e,t){const{url:r,layerId:a,title:n,fullExtent:s,isTable:i}=e,u=(0,o.qg)(r);t.url=("FeatureServer"===u?.serverType?r:`${r}/${a}`)??null,t.title||=n,t.extent=null,i||null==s||(t.extent=await(0,l.sQ)(s)),(0,l.OM)(t,l.mm.METADATA),(0,l.OM)(t,l.mm.MULTI_LAYER),(0,l.LG)(t,l.mm.SINGLE_LAYER),(0,l.Sm)(t,l.mm.TABLE,i),function(e,t){const r=e.some((e=>"oriented-imagery"===e.type));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}([e],t)}async function L(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:p,createItemData:(e,t)=>w(t,[e]),errorNamePrefix:y,setItemProperties:S},t)}async function P(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:p,createItemData:(e,t)=>Promise.resolve(m(e)),errorNamePrefix:d,newItem:t,setItemProperties:A},r)}},71530:(e,t,r)=>{r.d(t,{UN:()=>v,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function d(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map((e=>`'${e}'`)).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function p(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));d({...e,item:n})}function f(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),d({...e,item:a}),a}function m(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.c)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)))}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),p(e);const u=r.portalItem,y=o?o(u):m(u),d=await w(r,y,{...t,supplementalUnsupportedErrors:l}),f=await a({layer:r,layerJSON:d},u);return await(s?.(r,u,f)),h(u),await u.update({data:f}),(0,n.v)(y),await(i?.(u,y)),u}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=f(e),y=o?o(u):m(u),d=await w(r,y,{...t,supplementalUnsupportedErrors:l}),p=await a({layer:r,layerJSON:d},u);return await s(r,u,p),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,p,t),r.portalItem=u,(0,n.v)(y),await(i?.(u,y)),u}},23154:(e,t,r)=>{r.d(t,{K:()=>d,Q:()=>o});var a=r(24183);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function o(e,t){const{loadContext:r,...n}=t||{},o=r?await r.fetchServiceMetadata(e,n):await(0,a.V)(e,n);y(o),l(o);const s={serviceJSON:o};if((o.currentVersion??0)<10.5)return s;const i=`${e}/layers`,u=r?await r.fetchServiceMetadata(i,n):await(0,a.V)(i,n);return y(u),l(u),s.layersJSON={layers:u.layers,tables:u.tables},s}function s(e){const{type:t}=e;return!!t&&n.has(t)}function i(e){return"Table"===e.type}function l(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(i)}function u(e){e.type||="Feature Layer"}function c(e){e.type||="Table"}function y(e){e.layers?.forEach(u),e.tables?.forEach(c)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},88788:(e,t,r)=>{r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},24183:(e,t,r)=>{r.d(t,{V:()=>n});var a=r(78888);async function n(e,t){const{data:r}=await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}});return r}},26121:(e,t,r)=>{r.d(t,{c:()=>s,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(o.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}}}]);