@arcgis/core 5.2.0-next.126 → 5.2.0-next.128

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 (234) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/basemapToggleUtils.d.ts +53 -0
  3. package/applications/Components/basemapToggleUtils.js +2 -0
  4. package/applications/SceneViewer/sceneViewerUtils.d.ts +14 -1
  5. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  6. package/applications/WebEditor/sketchUtils.js +1 -1
  7. package/arcgisGlobal.d.ts +1 -0
  8. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  9. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  10. package/assets/esri/core/workers/RemoteClient.js +1 -1
  11. package/assets/esri/core/workers/chunks/{e35eb93c0fb1f6de8db0.js → 00d9e41deecf5828975c.js} +1 -1
  12. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +1 -0
  13. package/assets/esri/core/workers/chunks/{ab8a1140bf31f46f8ebf.js → 1262918b2161d79851c0.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{d3ef23923424ad8c5048.js → 1c2723f9630e7d597843.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{9ca98fffd43e63d5ade3.js → 1c33aa349beea9a3792f.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js → 2226c20c38e20713bcb5.js} +2 -2
  17. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js.LICENSE.txt → 2226c20c38e20713bcb5.js.LICENSE.txt} +2 -2
  18. package/assets/esri/core/workers/chunks/{4d18451e0ea6ca54101a.js → 2ebad7e588b26e74cefe.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{a8258636096416c837a2.js → 3b7dff15a0058ea29886.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{4716693eca44e8f89f5c.js → 3bf56c33876ba56c4b21.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +1 -0
  22. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +1 -0
  23. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +1 -0
  24. package/assets/esri/core/workers/chunks/{56acda1eed3a013430e2.js → 58fb92775d668cfd295c.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{e6637f9176566382ed3e.js → 606cca69eaea84bfcdc6.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{fdbda3d2afea25142b86.js → 6267a1fe1603daa399b4.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 668ec0bdfb2095e90c9e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{806f96ad09e882be41af.js → 67fd2cdb2e6834bfa710.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{5fe5ef5ccf480634d159.js → 75294f515c7f8393181c.js} +1 -1
  30. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +1 -0
  31. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +1 -0
  32. package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 86d7a3ae672a51b75fcc.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{30604a29df320d7a4c6b.js → 88e11b645a1361f1bdbe.js} +1 -1
  34. package/assets/esri/core/workers/chunks/89dad6c1bfd81e4d7f8e.js +1 -0
  35. package/assets/esri/core/workers/chunks/{8daed13400d9e63e65ae.js → 8a842cde240aef12e417.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{c692e583e87af58f6d91.js → 8b0d6205ceeec1ab446f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{57ab87e70ef85b9405f9.js → 8cb216404a6254bc695c.js} +1 -0
  38. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +1 -0
  39. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +29 -0
  40. package/assets/esri/core/workers/chunks/a0a9c41400ae98df1912.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b96358d475dc98034aa4.js → a15ed056e7493ddf3b4c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{25e212fe9a2ea37c9e81.js → a3a33ffa34f4d645ddfe.js} +1 -1
  43. package/assets/esri/core/workers/chunks/af0704494398f33aa315.js +1 -0
  44. package/assets/esri/core/workers/chunks/{ce1ccf9ec90b786591e5.js → b396c4b4bb144200acc7.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{97602019a1ccad22a03a.js → bbfb80a6983574007ce5.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d5f72670634e73c0b53a.js → bcf2e5cf6b9c6d0442bb.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{17218d714cb07b607c2f.js → c35e9dee87937f483a3d.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{85739ed6af0f0a3cb302.js → c94bdfed831c775e04c0.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2e3fd81653dc0d86456c.js → cfeba0ffb7fdc2a9af05.js} +1 -1
  50. package/assets/esri/core/workers/chunks/d1187ad6cc4959683819.js +1 -0
  51. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +1 -0
  52. package/assets/esri/core/workers/chunks/{cb7cb7d57c4e7f76600f.js → dc92710a8fdfb9135e55.js} +1 -1
  53. package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +1 -0
  54. package/assets/esri/core/workers/chunks/eec5a93dbc258a90b6de.js +1 -0
  55. package/assets/esri/core/workers/chunks/{e1ae83ff3e0225708d4d.js → f479b4a4cee4bb2e046c.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{78abd6c42f39e6f6ffbb.js → f983296b6f4a62a911eb.js} +1 -1
  57. package/assets/esri/images/portal/gaussiansplatlayer16.png +0 -0
  58. package/assets/esri/images/portal/knowledgegraphlayer16.png +0 -0
  59. package/assets/esri/images/portal/propresentation16.png +0 -0
  60. package/assets/esri/images/portal/urbanproject16.png +0 -0
  61. package/assets/esri/images/support/loading-throb.gif +0 -0
  62. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  63. package/assets/esri/themes/base/icons/style.scss +0 -0
  64. package/assets/esri/themes/base/icons/variables.scss +0 -0
  65. package/assets/esri/themes/base/images/files/archive-32.svg +0 -0
  66. package/assets/esri/themes/base/images/files/cad-32.svg +0 -0
  67. package/assets/esri/themes/base/images/files/code-32.svg +0 -0
  68. package/assets/esri/themes/base/images/files/csv-32.svg +0 -0
  69. package/assets/esri/themes/base/images/files/excel-32.svg +0 -0
  70. package/assets/esri/themes/base/images/files/generic-32.svg +0 -0
  71. package/assets/esri/themes/base/images/files/gpx-32.svg +0 -0
  72. package/assets/esri/themes/base/images/files/image-32.svg +0 -0
  73. package/assets/esri/themes/base/images/files/pdf-32.svg +0 -0
  74. package/assets/esri/themes/base/images/files/report-32.svg +0 -0
  75. package/assets/esri/themes/base/images/files/sound-32.svg +0 -0
  76. package/assets/esri/themes/base/images/files/text-32.svg +0 -0
  77. package/assets/esri/themes/base/images/files/video-32.svg +0 -0
  78. package/assets/esri/themes/base/images/files/word-32.svg +0 -0
  79. package/assets/esri/themes/base/images/files/zip-32.svg +0 -0
  80. package/assets/esri/themes/base/images/loading-throb.gif +0 -0
  81. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -0
  82. package/assets/esri/themes/base/widgets/_Tooltip.scss +42 -3
  83. package/assets/esri/themes/dark/main.css +1 -1
  84. package/assets/esri/themes/light/main.css +1 -1
  85. package/assets/esri/themes/light/view.css +1 -1
  86. package/assets/esri/views/interactive/tooltip/t9n/messages.en.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  88. package/chunks/GlobalIllumination.glsl.js +1 -0
  89. package/config.js +1 -1
  90. package/core/Accessor.d.ts +1 -1
  91. package/core/lang.js +1 -1
  92. package/core/units.js +1 -1
  93. package/geometry/HeightModelInfo.js +1 -1
  94. package/geometry/ellipsoidUtils.js +1 -1
  95. package/geometry/support/heightModelInfoUtils.js +1 -1
  96. package/interfaces.d.ts +1 -0
  97. package/kernel.js +1 -1
  98. package/layers/ElevationLayer.js +1 -1
  99. package/layers/OrientedImageryLayer.js +1 -1
  100. package/layers/ParquetLayer.d.ts +21 -13
  101. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  102. package/layers/graphics/dehydratedFeatures.js +1 -1
  103. package/layers/graphics/transferFeatures.js +2 -0
  104. package/layers/mixins/FeatureLayerBase.js +1 -1
  105. package/layers/mixins/HeightModelInfoMixin.js +2 -0
  106. package/layers/mixins/SceneService.js +1 -1
  107. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  108. package/layers/raster/datasets/RasterFactory.js +1 -1
  109. package/package.json +3 -3
  110. package/popup/FeatureContentCollection.d.ts +15 -25
  111. package/popup/FeatureContentCollection.js +1 -1
  112. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  113. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  114. package/support/revision.js +1 -1
  115. package/symbols/cim/callouts/calloutAnalysisUtils.js +2 -0
  116. package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
  117. package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
  118. package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
  119. package/symbols/cim/callouts/effects/SimpleLineCallout.js +1 -1
  120. package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
  121. package/symbols/cim/cimAnalyzer.js +1 -1
  122. package/views/2d/engine/webgl/ClipMesh.js +1 -1
  123. package/views/2d/engine/webgl/mesh/factories/CalloutMeshWriterCoordinator.js +1 -1
  124. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  125. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  126. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  127. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js +1 -1
  143. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  144. package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
  145. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  146. package/views/2d/layers/LayerView2D.js +1 -1
  147. package/views/2d/layers/support/annodime/MatcherGeometryOverride.js +1 -1
  148. package/views/2d/layers/support/annodime/PrivateMatcherGeometryOverrideEffect.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  150. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  151. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  152. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  153. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  154. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  155. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  156. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +5 -3
  157. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  158. package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +1 -1
  159. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  160. package/views/3d/camera/intersectionUtils.js +1 -1
  161. package/views/3d/interactive/editingTools/manipulatedObjectUtils.js +1 -1
  162. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  163. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  164. package/views/3d/layers/I3SMeshView3D.js +1 -1
  165. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  167. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  168. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  169. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  170. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  171. package/views/3d/layers/support/FeatureMemory.js +2 -0
  172. package/views/3d/layers/support/FeatureTile.js +1 -1
  173. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  174. package/views/3d/layers/support/featureReference.js +1 -1
  175. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  176. package/views/3d/state/Constraints.js +1 -1
  177. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  178. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  179. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  180. package/views/3d/support/PBFDecoder.js +1 -1
  181. package/views/3d/support/PBFDecoderWorker.js +1 -1
  182. package/views/3d/support/QualityProfile.js +1 -1
  183. package/views/3d/support/popupHitTest.js +1 -1
  184. package/views/3d/terrain/TerrainRenderer.js +1 -1
  185. package/views/3d/terrain/TerrainSurface.js +1 -1
  186. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  187. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  188. package/views/DOMContainer.d.ts +2 -2
  189. package/views/DOMContainer.js +1 -1
  190. package/views/PopupView.d.ts +1 -1
  191. package/views/SceneView.js +1 -1
  192. package/views/ToolViewManager.js +1 -1
  193. package/views/interactive/options/TooltipVisibleElements.d.ts +11 -1
  194. package/views/interactive/options/TooltipVisibleElements.js +1 -1
  195. package/views/interactive/tooltip/components/ElevationModeSelect.js +2 -0
  196. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  197. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  198. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  199. package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
  200. package/views/support/hitTestSelectUtils.js +1 -1
  201. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +1 -0
  202. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  203. package/widgets/BasemapToggle.js +1 -1
  204. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +9 -1
  205. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  206. package/widgets/BatchAttributeForm.js +1 -1
  207. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +1 -0
  208. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  209. package/widgets/DirectionalPad.js +1 -1
  210. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  211. package/widgets/Editor/legacy/UpdateFeatureWorkflow.js +1 -1
  212. package/widgets/Editor/workflowUtils.js +1 -1
  213. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  214. package/widgets/OrientedImageryViewer/utils.js +1 -1
  215. package/widgets/Popup/types.d.ts +0 -7
  216. package/widgets/Popup.d.ts +7 -7
  217. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -0
  218. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  219. package/widgets/TimeSlider.js +1 -1
  220. package/assets/esri/core/workers/chunks/0a2b7c691a577cb3d189.js +0 -1
  221. package/assets/esri/core/workers/chunks/2146c25c01c9fc11b16c.js +0 -1
  222. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +0 -1
  223. package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +0 -1
  224. package/assets/esri/core/workers/chunks/6c3535aa7250c08b9e5b.js +0 -1
  225. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +0 -1
  226. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +0 -1
  227. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +0 -1
  228. package/assets/esri/core/workers/chunks/82ce034b5ba54de9b970.js +0 -29
  229. package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +0 -1
  230. package/assets/esri/core/workers/chunks/c77496c350004ee66eb2.js +0 -1
  231. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +0 -1
  232. package/assets/esri/core/workers/chunks/dc52e036547612949d32.js +0 -1
  233. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +0 -1
  234. package/views/2d/engine/webgl/mesh/bufcut.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6930],{83290(e,t,r){r.d(t,{a:()=>f,b:()=>D,i:()=>s,l:()=>_});var n=r(2741),o=r(44208);let i,a=null;function s(){return!!a}function _(){return i||(i=r.e(6187).then(()=>r(46187)).then(({default:e})=>e({locateFile:e=>(0,n.s)(`esri/geometry/support/${e}`)})).then(e=>{R(e)}),i)}const l={geogToProj(e,t,r){a.ensureCache.prepare();const n=I(r),o=r===n,i=a.ensureFloat64(n),s=a._pe_geog_to_proj(a.getPointer(e),t,i);return s&&B(r,t,i,o),s},projGeog(e,t,r,n){switch(n){case f.PE_TRANSFORM_P_TO_G:return l.projToGeog(e,t,r);case f.PE_TRANSFORM_G_TO_P:return l.geogToProj(e,t,r)}return 0},projToGeog:(e,t,r)=>l.projToGeogCenter(e,t,r,0),projToGeogCenter(e,t,r,n){a.ensureCache.prepare();const o=I(r),i=r===o,s=a.ensureFloat64(o),_=a._pe_proj_to_geog_center(a.getPointer(e),t,s,n);return _&&B(r,t,s,i),_}};class f{static init(){f.PE_BUFFER_MAX=a.PeDefs.prototype.PE_BUFFER_MAX,f.PE_NAME_MAX=a.PeDefs.prototype.PE_NAME_MAX,f.PE_MGRS_MAX=a.PeDefs.prototype.PE_MGRS_MAX,f.PE_USNG_MAX=a.PeDefs.prototype.PE_USNG_MAX,f.PE_DD_MAX=a.PeDefs.prototype.PE_DD_MAX,f.PE_DDM_MAX=a.PeDefs.prototype.PE_DDM_MAX,f.PE_DMS_MAX=a.PeDefs.prototype.PE_DMS_MAX,f.PE_UTM_MAX=a.PeDefs.prototype.PE_UTM_MAX,f.PE_PARM_MAX=a.PeDefs.prototype.PE_PARM_MAX,f.PE_TYPE_NONE=a.PeDefs.prototype.PE_TYPE_NONE,f.PE_TYPE_GEOGCS=a.PeDefs.prototype.PE_TYPE_GEOGCS,f.PE_TYPE_PROJCS=a.PeDefs.prototype.PE_TYPE_PROJCS,f.PE_TYPE_GEOGTRAN=a.PeDefs.prototype.PE_TYPE_GEOGTRAN,f.PE_TYPE_COORDSYS=a.PeDefs.prototype.PE_TYPE_COORDSYS,f.PE_TYPE_UNIT=a.PeDefs.prototype.PE_TYPE_UNIT,f.PE_TYPE_LINUNIT=a.PeDefs.prototype.PE_TYPE_LINUNIT,f.PE_STR_OPTS_NONE=a.PeDefs.prototype.PE_STR_OPTS_NONE,f.PE_STR_AUTH_NONE=a.PeDefs.prototype.PE_STR_AUTH_NONE,f.PE_STR_AUTH_TOP=a.PeDefs.prototype.PE_STR_AUTH_TOP,f.PE_STR_NAME_CANON=a.PeDefs.prototype.PE_STR_NAME_CANON,f.PE_STR_FMT_WKT=a.PeDefs.prototype.PE_STR_FMT_WKT,f.PE_STR_FMT_WKT2=a.PeDefs.prototype.PE_STR_FMT_WKT2,f.PE_PARM_X0=a.PeDefs.prototype.PE_PARM_X0,f.PE_PARM_ND=a.PeDefs.prototype.PE_PARM_ND,f.PE_TRANSFORM_1_TO_2=a.PeDefs.prototype.PE_TRANSFORM_1_TO_2,f.PE_TRANSFORM_2_TO_1=a.PeDefs.prototype.PE_TRANSFORM_2_TO_1,f.PE_TRANSFORM_P_TO_G=a.PeDefs.prototype.PE_TRANSFORM_P_TO_G,f.PE_TRANSFORM_G_TO_P=a.PeDefs.prototype.PE_TRANSFORM_G_TO_P,f.PE_HORIZON_RECT=a.PeDefs.prototype.PE_HORIZON_RECT,f.PE_HORIZON_POLY=a.PeDefs.prototype.PE_HORIZON_POLY,f.PE_HORIZON_LINE=a.PeDefs.prototype.PE_HORIZON_LINE,f.PE_HORIZON_DELTA=a.PeDefs.prototype.PE_HORIZON_DELTA}}let c=null;const u={},d={},m=e=>{const t=e.getType();switch(t){case f.PE_TYPE_GEOGCS:e=a.castObject(e,a.PeGeogcs);break;case f.PE_TYPE_PROJCS:e=a.castObject(e,a.PeProjcs);break;case f.PE_TYPE_GEOGTRAN:e=a.castObject(e,a.PeGeogtran);break;default:t&f.PE_TYPE_UNIT&&(e=a.castObject(e,a.PeUnit))}return e},P={initialize(){a.PeFactory.prototype.initialize(null)},coordsys:e=>P.factoryByType(f.PE_TYPE_COORDSYS,e),factoryByType(e,t){let r=null,n=u[e];if(n||(n={},u[e]=n),n.hasOwnProperty(String(t))&&(r=n[t],a.compare(r,a.NULL)&&(r=null)),!r){const o=a.PeFactory.prototype.factoryByType(e,t);a.compare(o,a.NULL)||(r=m(o),n[t]=r)}return r},fromString(e,t,r=!1){if(r)switch(e){case f.PE_TYPE_GEOGCS:case f.PE_TYPE_PROJCS:case f.PE_TYPE_COORDSYS:{const r=a.PeFactory.prototype.fromString(e,t);return a.compare(r,a.NULL)?null:m(r)}default:return null}let n=null,o=d[e];if(o||(o={},d[e]=o),o.hasOwnProperty(t)&&(n=o[t],a.compare(n,a.NULL)&&(n=null)),!n){const r=a.PeFactory.prototype.fromString(e,t);a.compare(r,a.NULL)||(n=m(r),o[t]=n)}return n},geogcs:e=>P.factoryByType(f.PE_TYPE_GEOGCS,e),geogtran:e=>P.factoryByType(f.PE_TYPE_GEOGTRAN,e),getCode:e=>a.PeFactory.prototype.getCode(e),projcs:e=>P.factoryByType(f.PE_TYPE_PROJCS,e),unit:e=>P.factoryByType(f.PE_TYPE_UNIT,e)};let p,h=null;const S={PE_GTLIST_OPTS_COMMON:0,init(){S.PE_GTLIST_OPTS_COMMON=a.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,p=a._pe_getPeGTlistExtendedEntrySize()},getGTlist(e,t,r,n,o,i){let s=null;const _=new a.PeInteger(i);try{const l=a.PeGTlistExtended.prototype.getGTlist(e,t,r,n,o,_);if((i=_.val)&&(s=[l],i>1)){const e=a.getPointer(l);for(let t=1;t<i;t++)s.push(a.wrapPointer(e+p*t,a.PeGTlistExtendedEntry))}}finally{a.destroy(_)}return s}},E={destroy(e){if(e?.length){for(const t of e)k(t),t.getEntries().forEach(e=>{k(e);const t=e.getGeogtran();k(t),t.getParameters().forEach(k),[t.getGeogcs1(),t.getGeogcs2()].forEach(e=>{k(e);const t=e.getDatum();k(t),k(t.getSpheroid()),k(e.getPrimem()),k(e.getUnit())})});a.PeGTlistExtendedEntry.prototype.Delete(e[0])}}},g={geogToGeog(e,t,r,n,o){a.ensureCache.prepare();const i=I(r),s=r===i,_=a.ensureFloat64(i);let l=0;n&&(l=a.ensureFloat64(n));const f=a._pe_geog_to_geog(a.getPointer(e),t,_,l,o);return f&&B(r,t,_,s),f}},y={geodesicCoordinate(e,t,r,n,o,i,s,_){a.PeLineType.prototype.geodesic_coordinate(e,t,r,n,o,i,s,_)},geodeticCoordinate(e,t,r,n,o,i,s,_,l){a.PeLineType.prototype.geodetic_coordinate(e,t,r,n,o,i,s,_,l)},geodeticDistance(e,t,r,n,o,i,s,_,l,f){a.PeLineType.prototype.geodetic_distance(e,t,r,n,o,i,s,_,l,f)},greatEllipticDistance(e,t,r,n,o,i,s,_,l){a.PeLineType.prototype.great_elliptic_distance(e,t,r,n,o,i,s,_,l)}},T={phiToEta:(e,t)=>a.PeMath.prototype.phi_to_eta(e,t),etaToPhi:(e,t)=>a.PeMath.prototype.eta_to_phi(e,t),phiToPhig:(e,t)=>a.PeMath.prototype.phi_to_phig(e,t),q:(e,t,r)=>a.PeMath.prototype.q(e,t,r),q90:(e,t)=>a.PeMath.prototype.q90(e,t)},M=(e,t,r,n,o,i)=>{let s,_;switch(a.ensureCache.prepare(),e){case"dd":s=a._pe_geog_to_dd,_=f.PE_DD_MAX;break;case"ddm":s=a._pe_geog_to_ddm,_=f.PE_DDM_MAX;break;case"dms":s=a._pe_geog_to_dms,_=f.PE_DMS_MAX}let l=0;t&&(l=a.getPointer(t));const c=I(n),u=a.ensureFloat64(c),d=w(r,_),m=s(l,r,u,o,a.ensureInt32(d));if(m)for(let e=0;e<r;e++)i[e]=a.UTF8ToString(d[e]);return m},G=(e,t,r,n,o)=>{let i;switch(a.ensureCache.prepare(),e){case"dd":i=a._pe_dd_to_geog;break;case"ddm":i=a._pe_ddm_to_geog;break;case"dms":i=a._pe_dms_to_geog}let s=0;t&&(s=a.getPointer(t));const _=n.map(e=>a.ensureString(e)),l=a.ensureInt32(_),f=a.ensureFloat64(new Array(2*r)),c=i(s,r,l,f);return c&&B(o,r,f),c},O={geogToDms:(e,t,r,n,o)=>M("dms",e,t,r,n,o),dmsToGeog:(e,t,r,n)=>G("dms",e,t,r,n),geogToDdm:(e,t,r,n,o)=>M("ddm",e,t,r,n,o),ddmToGeog:(e,t,r,n)=>G("ddm",e,t,r,n),geogToDd:(e,t,r,n,o)=>M("dd",e,t,r,n,o),ddToGeog:(e,t,r,n)=>G("dd",e,t,r,n)};class A{static init(){A.PE_MGRS_STYLE_NEW=a.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,A.PE_MGRS_STYLE_OLD=a.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,A.PE_MGRS_STYLE_AUTO=a.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,A.PE_MGRS_180_ZONE_1_PLUS=a.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,A.PE_MGRS_ADD_SPACES=a.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}static geogToMgrsExtended(e,t,r,n,o,i,s){a.ensureCache.prepare();let _=0;e&&(_=a.getPointer(e));const l=I(r),c=a.ensureFloat64(l),u=w(t,f.PE_MGRS_MAX),d=a.ensureInt32(u),m=a._pe_geog_to_mgrs_extended(_,t,c,n,o,i,d);if(m)for(let e=0;e<t;e++)s[e]=a.UTF8ToString(u[e]);return m}static mgrsToGeogExtended(e,t,r,n,o){a.ensureCache.prepare();let i=0;e&&(i=a.getPointer(e));const s=r.map(e=>a.ensureString(e)),_=a.ensureInt32(s),l=a.ensureFloat64(new Array(2*t)),f=a._pe_mgrs_to_geog_extended(i,t,_,n,l);return f&&B(o,t,l),f}}const U={geogToUsng(e,t,r,n,o,i,s){a.ensureCache.prepare();let _=0;e&&(_=a.getPointer(e));const l=I(r),c=a.ensureFloat64(l),u=w(t,f.PE_MGRS_MAX),d=a.ensureInt32(u),m=a._pe_geog_to_usng(_,t,c,n,o,i,d);if(m)for(let e=0;e<t;e++)s[e]=a.UTF8ToString(u[e]);return m},usngToGeog(e,t,r,n){a.ensureCache.prepare();let o=0;e&&(o=a.getPointer(e));const i=r.map(e=>a.ensureString(e)),s=a.ensureInt32(i),_=a.ensureFloat64(new Array(2*t)),l=a._pe_usng_to_geog(o,t,s,_);return l&&B(n,t,_),l}};class N{static init(){N.PE_UTM_OPTS_NONE=a.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,N.PE_UTM_OPTS_ADD_SPACES=a.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,N.PE_UTM_OPTS_NS=a.PeNotationUtm.prototype.PE_UTM_OPTS_NS}static geogToUtm(e,t,r,n,o){a.ensureCache.prepare();let i=0;e&&(i=a.getPointer(e));const s=I(r),_=a.ensureFloat64(s),l=w(t,f.PE_UTM_MAX),c=a.ensureInt32(l),u=a._pe_geog_to_utm(i,t,_,n,c);if(u)for(let e=0;e<t;e++)o[e]=a.UTF8ToString(l[e]);return u}static utmToGeog(e,t,r,n,o){a.ensureCache.prepare();let i=0;e&&(i=a.getPointer(e));const s=r.map(e=>a.ensureString(e)),_=a.ensureInt32(s),l=a.ensureFloat64(new Array(2*t)),f=a._pe_utm_to_geog(i,t,_,n,l);return f&&B(o,t,l),f}}class D{static{this.cache=new Map}static init(){D.PE_PCSINFO_OPTION_NONE=a.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,D.PE_PCSINFO_OPTION_DOMAIN=a.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,D.PE_POLE_OUTSIDE_BOUNDARY=a.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,D.PE_POLE_POINT=a.PePCSInfo.prototype.PE_POLE_POINT}static generate(e,t=D.PE_PCSINFO_OPTION_DOMAIN){let r=null,n=null;return D.cache.has(e)&&(n=D.cache.get(e),n[t]&&(r=n[t])),r||(r=a.PePCSInfo.prototype.generate(e,t),n||(n=[],D.cache.set(e,n)),n[t]=r),r}}const C={versionString:()=>a.PeVersion.prototype.version_string()};function R(e){function t(e,t,r){e[t]=r(e[t])}a=e,f.init(),S.init(),A.init(),N.init(),D.init(),c=class extends a.PeDouble{constructor(e=NaN){super(e)}destroy(){a.destroy(this)}[Symbol.dispose](){this.destroy()}},h=class extends a.PeGCSExtent{destroy(){a.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[a.PeAngunit,a.PeDatum,a.PeGeogcs,a.PeGeogtran,a.PeObject,a.PeParameter,a.PePrimem,a.PeProjcs,a.PeSpheroid,a.PeUnit];for(const e of r)t(e.prototype,"getName",e=>function(){return e.call(this,new Array(f.PE_NAME_MAX))});for(const e of[a.PeGeogtran,a.PeProjcs])t(e.prototype,"getParameters",e=>function(){const t=new Array(f.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const n=a.getValue(r,"*");t[e]=n?a.wrapPointer(n,a.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t});t(a.PeHorizon.prototype,"getCoord",e=>function(t=!1){const r=this.getSize();if(!r)return null;const n=[];return B(n,r,e.call(this),t),n}),t(a.PeGTlistExtendedEntry.prototype,"getEntries",e=>{const t=a._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const n=e.call(this);if(!a.compare(n,a.NULL)){r=[n];const e=this.getSteps();if(e>1){const o=a.getPointer(n);for(let n=1;n<e;n++)r.push(a.wrapPointer(o+t*n,a.PeGTlistExtendedGTs))}}return r}});const n=a._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const o=e.call(this);if(!a.compare(o,a.NULL)){r=[o];const e=o.getNump();if(e>1){const t=a.getPointer(o);for(let o=1;o<e;o++)r.push(a.wrapPointer(t+n*o,a.PeHorizon))}}return t.set(e,r),r};t(a.PeProjcs.prototype,"horizonGcsGenerate",o),t(a.PeProjcs.prototype,"horizonPcsGenerate",o),a.PeObject.prototype.toString=function(e=f.PE_STR_OPTS_NONE){a.ensureCache.prepare();const t=a.getPointer(this),r=a.ensureInt8(new Array(f.PE_BUFFER_MAX));return a.UTF8ToString(a._pe_object_to_string_ext(t,e,r))},a.PeGeogcs.prototype.destroy=function(){this.Delete(),k(this),this.ptr=0},a.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},a.PeProjcs.prototype.destroy=function(){this.Delete(),k(this),this.ptr=0},a.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function k(e){if(!e)return;const t=a.getClass(e);if(!t)return;const r=a.getCache(t);if(!r)return;const n=a.getPointer(e);n&&delete r[n]}function w(e,t){const r=[],n=new Array(t);for(let t=0;t<e;t++)r.push(a.ensureInt8(n));return r}function I(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function B(e,t,r,n=!1){if(n)for(let n=0;n<2*t;n++)e[n]=a.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=0===e.length;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=a.getValue(r,"double"),e[o][1]=a.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}const b=Object.freeze(Object.defineProperty({__proto__:null,PeCSTransformations:l,PeDefs:f,get PeDouble(){return c},PeFactory:P,get PeGCSExtent(){return h},PeGTTransformations:g,PeGTlistExtended:S,PeGTlistExtendedEntry:E,PeLineType:y,PeMath:T,PeNotationDms:O,PeNotationMgrs:A,PeNotationUsng:U,PeNotationUtm:N,PePCSInfo:D,PeVersion:C,_init:R,get _pe(){return a},isLoaded:s,isSupported:function(){return!!(0,o.A)("esri-wasm")},load:_},Symbol.toStringTag,{value:"Module"}));r.d(t,["P",0,P,"c",0,l,"d",0,g,"p",0,b])},86211(e,t,r){r.d(t,{Ao:()=>R,B5:()=>L,Bd:()=>Y,G9:()=>N,GA:()=>C,Ij:()=>B,KX:()=>k,LA:()=>U,PQ:()=>G,UW:()=>O,k1:()=>D,mq:()=>b,oU:()=>M,t$:()=>y,vl:()=>A,x1:()=>F});var n=r(66552),o=r(73941),i=r(79258),a=r(21325),s=r(97348),_=r(22530);const l=i.$O.radius*Math.PI/200,f=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=_.A,u=/UNIT\[([^\]]+)]/i,d=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),m=(0,n.O)()({millimeter:"millimeters",centimeter:"centimeters",meter:"meters",meter_german:"german-meters",kilometer:"kilometers",decimeter:"decimeters",micrometer:"micrometers",nanometer:"nanometers","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",fathom:"fathoms",nautical_mile:"nautical-miles",chain_us:"us-chains",link_us:"us-links",mile_us:"us-miles",yard_clarke:"clarke-yards",chain_clarke:"clarke-chains",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",link_sears:"sears-links",yard_benoit_1895_a:"benoit-1895-a-yards",foot_benoit_1895_a:"benoit-1895-a-feet",chain_benoit_1895_a:"benoit-1895-a-chains",link_benoit_1895_a:"benoit-1895-a-links",yard_benoit_1895_b:"benoit-1895-b-yards",foot_benoit_1895_b:"benoit-1895-b-feet",chain_benoit_1895_b:"benoit-1895-b-chains",link_benoit_1895_b:"benoit-1895-b-links",foot_1865:"1865-feet",foot_indian:"indian-feet",foot_indian_1937:"indian-1937-feet",foot_indian_1962:"indian-1962-feet",foot_indian_1975:"indian-1975-feet",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",yard_indian_1962:"indian-1962-yards",yard_indian_1975:"indian-1975-yards",statute_mile:"statute-miles",foot_gold_coast:"gold-coast-feet",foot_british_1936:"british-1936-feet",yard:"yards",chain:"chains",link:"links",yard_sears_1922_truncated:"sears-1922-truncated-yards",foot_sears_1922_truncated:"sears-1922-truncated-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",link_sears_1922_truncated:"sears-1922-truncated-links",yard_us:"us-yards",inch:"inches",inch_us:"us-inches",rod:"rods",rod_us:"us-rods",nautical_mile_us:"us-nautical-miles",nautical_mile_uk:"uk-nautical-miles",smoot:"smoots",vara_tx:"tx-vara",point:"points"}),P=e=>e*e,p=e=>e*e*e,h={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.0254000508001016},rods:{inBaseUnits:5.0292},"us-rods":{inBaseUnits:5.029210058420118},"us-nautical-miles":{inBaseUnits:1853.248},"uk-nautical-miles":{inBaseUnits:1853.184},smoots:{inBaseUnits:1.7018},"tx-vara":{inBaseUnits:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-nautical-miles":{inBaseUnits:P(1852)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},megaliters:{inBaseUnits:1e6},gigaliters:{inBaseUnits:1e9},"cubic-millimeters":{inBaseUnits:1e3*p(.001)},"cubic-centimeters":{inBaseUnits:1e3*p(.01)},"cubic-decimeters":{inBaseUnits:1e3*p(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*p(1e3)},"cubic-inches":{inBaseUnits:1e3*p(.0254)},"cubic-feet":{inBaseUnits:1e3*p(.3048)},"cubic-yards":{inBaseUnits:1e3*p(.9144)},"cubic-miles":{inBaseUnits:1e3*p(1609.344)},"cubic-us-feet":{inBaseUnits:1e3*p(1200/3937)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},S=(()=>{const e={};for(const t in h)for(const r in h[t].units)e[r]=t;return e})(),E=["metric","imperial","inches","feet","yards","miles","nautical-miles","us-feet","millimeters","centimeters","decimeters","meters","kilometers"],g=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function y(e){const t=S[e];if(!t)throw new Error("unknown type");return t}function T(e,t=null){return t=t||y(e),h[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const n=y(t);if(n!==y(r))throw new Error("incompatible units");const o=T(t,n)?e:function(e,t,r){return e*h[r].units[t].inBaseUnits}(e,t,n);return T(r,n)?o:function(e,t,r){return e/h[r].units[t].inBaseUnits}(o,r,n)}function G(e,t,r,n=!1){if(!n&&(0,a.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const o=B(t);return o!==r&&(e=o?M(e,o,r):M(e*=C(t),"meters",r)),e}function O(e,t,r,n=!1){if(!n&&(0,a.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const o=B(r);return t!==o&&(e=o?M(e,t,o):M(e,t,"meters")/C(r)),e}function A(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function U(e){return m.fromJSON(e.toLowerCase())||null}function N(e){const t=(e?.latestVcsWkid?s.B.get(e.latestVcsWkid):null)??(e?.vcsWkid?s.B.get(e.vcsWkid):null);return t?t.unit.conversionFactor:null==e||(0,o.B3)(e)?R(e,!1)??1:1}function D(e){const t=(e?.latestVcsWkid?s.B.get(e.latestVcsWkid):null)??(e?.vcsWkid?s.B.get(e.vcsWkid):null);return t?U(t.unit.name):C(e)>=(0,o.tO)(e).metersPerDegree?"meters":B(e)}function C(e,t=i.$O.metersPerDegree){return R(e,!0)??t}function R(e,t=!1){const r=e?.wkid??null,n=e?.wkt2??e?.wkt??null;let o=null;if(r){if((0,a.tl)(r))return i.sH.metersPerDegree;if((0,a.ZL)(r))return i.Sw.metersPerDegree;o=c.values[c[r]],!o&&t&&d.has(r)&&(o=l)}else n&&(F(n)?o=w(f.exec(n),o):v(n)&&(o=w(u.exec(n),o)));return o}function k(e){return(0,a.EA)(e)?1:C(e)}function w(e,t){return e?.[1]?I(e[1]):t}function I(e){return parseFloat(e.split(",")[1])}function B(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let n=null;if(t)n=c.units[c[t]];else if(r){const e=F(r)?f:v(r)?u:null;if(e){const t=e.exec(r);t?.[1]&&(n=function(e){const t=/[\\"']([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!U(r)){const t=I(e);r=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=c.units[e];break}}return r}(t[1]))}}return null!=n?U(n):null}function b(e){const t=D(e);return null!=t&&E.includes(t)?t:null}function L(e){const t=B(e);return null==t?null:g.get(t)}function v(e){return/^GEOCCS/i.test(e)}function F(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const W=(0,n.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),H=(0,n.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),V=(0,n.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"});function Y(e){switch(e){case"metric":case"ares":case"hectares":return"metric";case"imperial":case"acres":return"imperial";case"square-inches":return"inches";case"square-feet":return"feet";case"square-yards":return"yards";case"square-miles":return"miles";case"square-nautical-miles":return"nautical-miles";case"square-us-feet":return"us-feet";case"square-millimeters":return"millimeters";case"square-centimeters":return"centimeters";case"square-decimeters":return"decimeters";case"square-meters":return"meters";case"square-kilometers":return"kilometers"}throw new Error("unhandled area unit")}r.d(t,["Sk",0,H,"b$",0,V,"dk",0,W,"yD",0,d])},16930(e,t,r){r.d(t,{A:()=>m});var n,o=r(32198),i=r(69622),a=r(25482),s=r(4718),_=r(86211),l=r(78888),f=r(10107),c=r(64108),u=r(43937),d=r(21325);let m=class extends a.o{static{n=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e.wkid||4326===e.wkid){const t=Object.keys(e).length;if(1===t||102100===e.wkid&&3857===e.latestWkid&&2===t)return 102100===e.wkid?n.WebMercator:n.WGS84}const t=new n;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.falseM=null,this.falseX=null,this.falseY=null,this.falseZ=null,this.mTolerance=null,this.mUnits=null,this.xyTolerance=null,this.xyUnits=null,this.zTolerance=null,this.zUnits=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:"string"==typeof e?{wkt:e}:{wkid:e}}get cache(){return this.commitProperty("wkid"),this.commitProperty("latestWkid"),this.commitProperty("vcsWkid"),this.commitProperty("latestVcsWkid"),this.commitProperty("wkt"),this.commitProperty("wkt2"),this.commitProperty("imageCoordinateSystem"),this.commitProperty("falseM"),this.commitProperty("falseX"),this.commitProperty("falseY"),this.commitProperty("falseZ"),this.commitProperty("mTolerance"),this.commitProperty("mUnits"),this.commitProperty("xyTolerance"),this.commitProperty("xyUnits"),this.commitProperty("zTolerance"),this.commitProperty("zUnits"),{}}get isWGS84(){return(0,d.oT)(this)}get isWebMercator(){return(0,d.K8)(this)}get isGeographic(){return(0,d.EA)(this)}get isWrappable(){return(0,d.d9)(this)}get metersPerUnit(){return(0,_.GA)(this)}get unit(){return(0,_.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===n.WGS84)return new n(d.KK);if(this===n.WebMercator)return new n(d.ch);const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,s.o8)(this.imageCoordinateSystem)),null!=this.falseM&&(e.falseM=this.falseM),null!=this.falseX&&(e.falseX=this.falseX),null!=this.falseY&&(e.falseY=this.falseY),null!=this.falseZ&&(e.falseZ=this.falseZ),null!=this.mTolerance&&(e.mTolerance=this.mTolerance),null!=this.mUnits&&(e.mUnits=this.mUnits),null!=this.xyTolerance&&(e.xyTolerance=this.xyTolerance),null!=this.xyUnits&&(e.xyUnits=this.xyUnits),null!=this.zTolerance&&(e.zTolerance=this.zTolerance),null!=this.zUnits&&(e.zUnits=this.zUnits),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==t||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):r?o.id===t&&o.referenceServiceName===r:o.id===t}return(0,d.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"isWGS84",null),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"isWebMercator",null),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"isGeographic",null),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,o.Cg)([(0,f.MZ)({type:l.jz,json:{write:!0}})],m.prototype,"latestWkid",void 0),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"metersPerUnit",null),(0,o.Cg)([(0,f.MZ)({readOnly:!0})],m.prototype,"unit",null),(0,o.Cg)([(0,f.MZ)({type:l.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],m.prototype,"wkid",void 0),(0,o.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],m.prototype,"wkt",void 0),(0,o.Cg)([(0,u.K)("wkt"),(0,u.K)("web-scene","wkt")],m.prototype,"writeWkt",null),(0,o.Cg)([(0,f.MZ)({type:String,json:{write:!1}})],m.prototype,"wkt2",void 0),(0,o.Cg)([(0,f.MZ)({type:l.jz,json:{write:!0}})],m.prototype,"vcsWkid",void 0),(0,o.Cg)([(0,f.MZ)({type:l.jz,json:{write:!0}})],m.prototype,"latestVcsWkid",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"falseM",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"falseX",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"falseY",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"falseZ",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"mTolerance",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"mUnits",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"xyTolerance",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"xyUnits",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"zTolerance",void 0),(0,o.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],m.prototype,"zUnits",void 0),(0,o.Cg)([(0,f.MZ)()],m.prototype,"imageCoordinateSystem",void 0),m=n=(0,o.Cg)([(0,c.$)("esri.geometry.SpatialReference")],m),m.prototype.toJSON.isDefaultToJSON=!0,m.GCS_NAD_1927=i.A.freeze(new m({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),m.WGS84=i.A.freeze(new m(d.KK)),m.WebMercator=i.A.freeze(new m(d.ch)),m.PlateCarree=i.A.freeze(new m(d.tQ))},73941(e,t,r){r.d(t,{B3:()=>p,KQ:()=>S,jA:()=>m,q8:()=>h,tO:()=>u,xP:()=>P,y7:()=>d});var n=r(79258),o=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const a=i(n.$O),s=i(n.sH),_=i(n.Sw),l={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},f=s.wkt.toUpperCase(),c=_.wkt.toUpperCase();function u(e){if(null!=e&&(0,o.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,o.tl)(t))return n.sH;const i=r?.toUpperCase();if(r&&i===f)return n.sH;if((0,o.ZL)(t)||i&&i===c)return n.Sw}return n.$O}function d(e){return(0,o.tl)(e)?n.sH:(0,o.ZL)(e)?n.Sw:n.$O}function m(e){return(0,o.aI)(e,a)}function P(e){return m(e)||(0,o.aI)(e,s)||(0,o.aI)(e,_)}function p(e){return!(h(e)||S(e))}function h(e){return(0,o.tl)(e?.wkid)||(0,o.aI)(e,s)}function S(e){return(0,o.ZL)(e?.wkid)||(0,o.aI)(e,_)}Math.cos(Math.PI/16/16),r.d(t,["FY",0,s,"LJ",0,_,"Ro",0,l,"fv",0,a])},79258(e,t,r){class n{constructor(e,t,r,n,o,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=n,this.scaleHeight=o;const a=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*a,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4,6e4,.111),a=new n(1737400,0,0,0,0);r.d(t,["$O",0,o,"Sw",0,a,"sH",0,i])},22530(e,t,r){let n;const o={values:[.001,1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Millimeter","Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:6,2136:13,2155:3,2157:1,2158:1,2159:13,2160:13,2204:3,2219:1,2220:1,2254:3,2255:3,2256:2,2265:2,2266:2,2267:3,2268:3,2269:2,2270:2,2271:3,2272:3,2273:2,2294:1,2295:1,2314:4,2899:3,2900:3,2901:2,2909:2,2910:2,2911:3,2912:3,2913:2,2914:2,2992:2,2993:1,2994:2,3080:2,3089:3,3090:1,3091:3,3102:3,3141:1,3142:1,3167:15,3359:3,3360:1,3361:2,3362:1,3363:3,3364:1,3365:3,3366:4,3404:3,3405:1,3406:1,3407:4,3439:1,3440:1,3479:2,3480:1,3481:2,3482:1,3483:2,3484:1,3485:3,3486:1,3487:3,3488:1,3489:1,3490:3,3491:1,3492:3,3493:1,3494:3,3495:1,3496:3,3497:1,3498:3,3499:1,3500:3,3501:1,3502:3,3503:1,3504:3,3505:1,3506:3,3507:1,3508:3,3509:1,3510:3,3511:1,3512:3,3513:1,3514:1,3515:3,3516:1,3517:3,3518:1,3519:3,3520:1,3521:3,3522:1,3523:3,3524:1,3525:3,3526:1,3527:3,3528:1,3529:3,3530:1,3531:3,3532:1,3533:3,3534:1,3535:3,3536:1,3537:3,3538:1,3539:3,3540:1,3541:3,3542:1,3543:3,3544:1,3545:3,3546:1,3547:3,3548:1,3549:3,3550:1,3551:3,3552:1,3553:3,3582:3,3583:1,3584:3,3585:1,3586:3,3587:1,3588:2,3589:1,3590:2,3591:1,3592:1,3593:2,3598:3,3599:1,3600:3,3605:2,3606:1,3607:1,3608:3,3609:1,3610:3,3611:1,3612:3,3613:1,3614:3,3615:1,3616:3,3617:1,3618:3,3619:1,3620:3,3621:1,3622:3,3623:1,3624:3,3625:1,3626:3,3627:1,3628:3,3629:1,3630:3,3631:1,3632:3,3633:1,3634:2,3635:1,3636:2,3640:3,3641:1,3642:3,3643:1,3644:2,3645:1,3646:2,3647:1,3648:2,3649:1,3650:3,3651:1,3652:3,3653:1,3654:3,3655:1,3656:2,3657:1,3658:3,3659:1,3660:3,3661:1,3662:3,3663:1,3664:3,3668:3,3669:1,3670:3,3671:1,3672:3,3673:1,3674:3,3675:1,3676:2,3677:3,3678:1,3679:2,3680:3,3681:1,3682:2,3683:3,3684:1,3685:1,3686:3,3687:1,3688:3,3689:1,3690:3,3691:1,3692:3,3696:3,3697:1,3698:3,3699:1,3700:3,3793:1,3794:1,3812:1,3854:1,3857:1,3920:1,3978:1,3979:1,3991:3,3992:3,4026:1,4037:1,4038:1,4071:1,4082:1,4083:1,4087:1,4088:1,4217:3,4414:1,4415:1,4417:1,4434:1,4437:1,4438:3,4439:3,4462:1,4467:1,4471:1,4474:1,4559:1,4647:1,4822:1,4826:1,4839:1,5018:1,5041:1,5042:1,5048:1,5221:1,5223:1,5234:1,5235:1,5243:1,5247:1,5266:1,5316:1,5320:1,5321:1,5325:1,5337:1,5361:1,5362:1,5367:1,5382:1,5383:1,5396:1,5456:1,5457:1,5469:1,5472:5,5490:1,5513:1,5514:1,5523:1,5559:1,5588:2,5589:4,5596:1,5627:1,5629:1,5641:1,5643:1,5644:1,5646:3,5654:3,5655:3,5659:1,5700:1,5825:1,5836:1,5837:1,5839:1,5842:1,5844:1,5858:1,5879:1,5880:1,5887:1,5890:1,6128:2,6129:2,6141:2,6204:1,6210:1,6211:1,6307:1,6312:1,6316:1,6362:1,6391:2,6405:2,6406:1,6407:2,6408:1,6409:2,6410:1,6411:3,6412:1,6413:3,6414:1,6415:1,6416:3,6417:1,6418:3,6419:1,6420:3,6421:1,6422:3,6423:1,6424:3,6425:1,6426:3,6427:1,6428:3,6429:1,6430:3,6431:1,6432:3,6433:1,6434:3,6435:1,6436:3,6437:1,6438:3,6439:1,6440:1,6441:3,6442:1,6443:3,6444:1,6445:3,6446:1,6447:3,6448:1,6449:3,6450:1,6451:3,6452:1,6453:3,6454:1,6455:3,6456:1,6457:3,6458:1,6459:3,6460:1,6461:3,6462:1,6463:3,6464:1,6465:3,6466:1,6467:3,6468:1,6469:3,6470:1,6471:3,6472:1,6473:3,6474:1,6475:3,6476:1,6477:3,6478:1,6479:3,6484:3,6485:1,6486:3,6487:1,6488:3,6489:1,6490:3,6491:1,6492:3,6493:1,6494:2,6495:1,6496:2,6497:1,6498:1,6499:2,6500:1,6501:3,6502:1,6503:3,6504:1,6505:3,6506:1,6507:3,6508:1,6509:1,6510:3,6515:2,6516:1,6518:1,6519:3,6520:1,6521:3,6522:1,6523:3,6524:1,6525:3,6526:1,6527:3,6528:1,6529:3,6530:1,6531:3,6532:1,6533:3,6534:1,6535:3,6536:1,6537:3,6538:1,6539:3,6540:1,6541:3,6542:1,6543:3,6544:1,6545:2,6546:1,6547:2,6548:1,6549:3,6550:1,6551:3,6552:1,6553:3,6554:1,6555:3,6556:1,6557:2,6558:1,6559:2,6560:1,6561:2,6562:1,6563:3,6564:1,6565:3,6566:1,6567:1,6568:3,6569:1,6570:2,6571:1,6572:3,6573:1,6574:3,6575:1,6576:3,6577:1,6578:3,6582:3,6583:1,6584:3,6585:1,6586:3,6587:1,6588:3,6589:1,6590:3,6591:1,6592:1,6593:3,6594:1,6595:3,6596:1,6597:3,6598:1,6599:3,6600:1,6601:3,6602:1,6603:3,6605:3,6606:1,6607:3,6608:1,6609:3,6610:1,6611:1,6612:3,6613:1,6614:3,6615:1,6616:3,6617:1,6618:3,6633:3,6646:1,6703:1,6784:1,6785:2,6786:1,6787:2,6788:1,6789:2,6790:1,6791:2,6792:1,6793:2,6794:1,6795:2,6796:1,6797:2,6798:1,6799:2,6800:1,6801:2,6802:1,6803:2,6804:1,6805:2,6806:1,6807:2,6808:1,6809:2,6810:1,6811:2,6812:1,6813:2,6814:1,6815:2,6816:1,6817:2,6818:1,6819:2,6820:1,6821:2,6822:1,6823:2,6824:1,6825:2,6826:1,6827:2,6828:1,6829:2,6830:1,6831:2,6832:1,6833:2,6834:1,6835:2,6836:1,6837:2,6838:1,6839:2,6840:1,6841:2,6842:1,6843:2,6844:1,6845:2,6846:1,6847:2,6848:1,6849:2,6850:1,6851:2,6852:1,6853:2,6854:1,6855:2,6856:1,6857:2,6858:1,6859:2,6860:1,6861:2,6862:1,6863:2,6867:1,6868:2,6870:1,6875:1,6876:1,6879:1,6880:3,6884:1,6885:2,6886:1,6887:2,6915:1,6922:1,6923:3,6924:1,6925:3,6962:1,6984:1,6991:1,7128:3,7131:1,7132:3,7142:1,7257:1,7258:3,7259:1,7260:3,7261:1,7262:3,7263:1,7264:3,7265:1,7266:3,7267:1,7268:3,7269:1,7270:3,7271:1,7272:3,7273:1,7274:3,7275:1,7276:3,7277:1,7278:3,7279:1,7280:3,7281:1,7282:3,7283:1,7284:3,7285:1,7286:3,7287:1,7288:3,7289:1,7290:3,7291:1,7292:3,7293:1,7294:3,7295:1,7296:3,7297:1,7298:3,7299:1,7300:3,7301:1,7302:3,7303:1,7304:3,7305:1,7306:3,7307:1,7308:3,7309:1,7310:3,7311:1,7312:3,7313:1,7314:3,7315:1,7316:3,7317:1,7318:3,7319:1,7320:3,7321:1,7322:3,7323:1,7324:3,7325:1,7326:3,7327:1,7328:3,7329:1,7330:3,7331:1,7332:3,7333:1,7334:3,7335:1,7336:3,7337:1,7338:3,7339:1,7340:3,7341:1,7342:3,7343:1,7344:3,7345:1,7346:3,7347:1,7348:3,7349:1,7350:3,7351:1,7352:3,7353:1,7354:3,7355:1,7356:3,7357:1,7358:3,7359:1,7360:3,7361:1,7362:3,7363:1,7364:3,7365:1,7366:3,7367:1,7368:3,7369:1,7370:3,7877:1,7878:1,7882:1,7883:1,7887:1,7899:1,7991:1,7992:1,8035:3,8036:3,8058:1,8059:1,8082:1,8083:1,8088:1,8090:1,8091:3,8092:1,8093:3,8095:1,8096:3,8097:1,8098:3,8099:1,8100:3,8101:1,8102:3,8103:1,8104:3,8105:1,8106:3,8107:1,8108:3,8109:1,8110:3,8111:1,8112:3,8113:1,8114:3,8115:1,8116:3,8117:1,8118:3,8119:1,8120:3,8121:1,8122:3,8123:1,8124:3,8125:1,8126:3,8127:1,8128:3,8129:1,8130:3,8131:1,8132:3,8133:1,8134:3,8135:1,8136:3,8137:1,8138:3,8139:1,8140:3,8141:1,8142:3,8143:1,8144:3,8145:1,8146:3,8147:1,8148:3,8149:1,8150:3,8151:1,8152:3,8153:1,8154:3,8155:1,8156:3,8157:1,8158:3,8159:1,8160:3,8161:1,8162:3,8163:1,8164:3,8165:1,8166:3,8167:1,8168:3,8169:1,8170:3,8171:1,8172:3,8173:1,8177:3,8179:1,8180:3,8181:1,8182:3,8184:1,8185:3,8187:1,8189:3,8191:1,8193:3,8196:1,8197:3,8198:1,8200:3,8201:1,8202:3,8203:1,8204:3,8205:1,8206:3,8207:1,8208:3,8209:1,8210:3,8212:1,8213:3,8214:1,8216:3,8218:1,8220:3,8222:1,8224:3,8225:1,8226:3,8311:1,8312:2,8313:1,8314:2,8315:1,8316:2,8317:1,8318:2,8319:1,8320:2,8321:1,8322:2,8323:1,8324:2,8325:1,8326:2,8327:1,8328:2,8329:1,8330:2,8331:1,8332:2,8333:1,8334:2,8335:1,8336:2,8337:1,8338:2,8339:1,8340:2,8341:1,8342:2,8343:1,8344:2,8345:1,8346:2,8347:1,8348:2,8352:1,8353:1,8379:1,8380:3,8381:1,8382:3,8383:1,8384:3,8385:1,8387:3,8391:1,8395:1,8433:1,8441:1,8455:1,8456:1,8531:3,8682:1,8686:1,8687:1,8692:1,8693:1,8826:1,8903:1,8950:1,8951:1,9039:1,9040:1,9141:1,9149:1,9150:1,9191:1,9221:1,9222:1,9249:1,9250:1,9252:1,9254:1,9265:1,9284:1,9285:1,9300:1,9354:1,9367:1,9373:1,9377:1,9387:1,9391:1,9456:1,9473:1,9498:1,9674:1,9678:1,9680:1,9709:1,9712:1,9713:1,9716:1,9741:1,9748:3,9749:3,9761:1,9766:1,9793:1,9794:1,9869:1,9874:1,9875:1,9880:1,9895:1,9943:1,9945:1,9947:1,9967:1,9972:1,9977:1,10160:1,10183:1,10188:1,10194:1,10199:1,10207:1,10212:1,10217:1,10222:1,10227:1,10235:1,10240:1,10250:1,10254:1,10270:1,10275:1,10280:1,10306:1,10329:1,10471:1,10477:1,10481:3,10516:3,10592:1,10594:1,10596:1,10598:1,10601:1,10603:1,10626:1,10632:1,10641:1,10665:1,10674:1,10699:1,10702:1,10744:1,10745:1,10759:1,10773:1,10801:1,10802:1,10820:1,10833:1,10836:1,10837:1,10851:1,10857:1,10863:1,10899:1,10917:1,10995:1,11341:1,11360:1,11361:2,11362:1,11363:2,11364:1,11365:2,11366:1,11367:2,11368:1,11369:2,11370:1,11371:2,11372:1,11373:2,11374:1,11375:2,11376:1,11377:2,20002:1,20042:1,20050:2,20499:1,20538:1,20539:1,20790:1,20791:1,21291:1,21292:1,21500:1,21817:1,21818:1,22032:1,22033:1,22091:1,22092:1,22239:1,22240:1,22332:1,22337:1,22338:1,22391:1,22392:1,22639:1,22700:1,22739:1,22770:1,22780:1,22832:1,23090:1,23095:1,23239:1,23240:1,23433:1,23700:1,24047:1,24048:1,24100:4,24200:1,24305:1,24306:1,24382:11,24383:1,24500:1,24547:1,24548:1,24571:10,24600:1,25e3:1,25231:1,25884:1,25932:1,26237:1,26331:1,26332:1,26432:1,26591:1,26592:1,26632:1,26692:1,27120:1,27200:1,27291:7,27292:7,27429:1,27492:1,27493:1,27500:1,28232:1,28600:1,28991:1,28992:1,29100:1,29101:1,29220:1,29221:1,29333:1,29635:1,29636:1,29701:1,29738:1,29739:1,29849:1,29850:1,29871:9,29872:8,29873:1,29874:1,30200:6,30339:1,30340:1,30591:1,30592:1,30791:1,30792:1,30800:1,31028:1,31121:1,31154:1,31170:1,31171:1,31370:1,31528:1,31529:1,31600:1,31700:1,31838:1,31839:1,31900:1,31901:1,32061:1,32062:1,32098:1,32099:3,32100:1,32104:1,32161:1,32766:1,53048:1,53049:1,65061:3,65062:3,102041:3,102064:12,102068:16,102069:17,102118:3,102119:2,102120:3,102121:3,102217:3,102218:1,102219:3,102220:3,102378:2,102379:2,102380:1,102381:2,102589:3,102599:3,102600:3,102604:3,102647:1,102704:3,102705:3,102706:1,102731:1,102732:1,102759:2,102760:2,102761:3,102762:1,102763:3,102764:1,102765:1,102766:3,102970:2,102974:3,102993:1,102994:1,102995:3,102996:3,103015:1,103016:3,103017:1,103018:3,103025:1,103026:1,103027:3,103028:3,103035:1,103036:1,103037:3,103038:3,103039:1,103040:1,103041:3,103042:3,103043:1,103044:1,103045:3,103046:3,103047:1,103048:1,103049:3,103050:3,103051:1,103052:3,103053:1,103054:3,103055:1,103056:3,103057:1,103058:1,103059:3,103060:3,103061:1,103062:1,103063:3,103064:3,103069:3,103070:1,103071:1,103072:3,103073:3,103086:1,103087:1,103088:3,103089:3,103094:2,103095:1,103096:3,103103:1,103104:3,103105:1,103106:3,103121:1,103122:3,103123:1,103124:1,103125:2,103126:2,103127:1,103128:1,103129:3,103130:3,103131:1,103132:1,103133:3,103134:3,103135:1,103136:1,103137:2,103138:2,103139:1,103140:3,103141:1,103142:3,103143:1,103144:3,103145:1,103146:2,103147:1,103148:1,103149:3,103150:3,103151:1,103152:3,103172:1,103173:3,103174:1,103175:1,103176:3,103177:3,103178:1,103179:1,103180:3,103181:3,103182:1,103183:1,103184:3,103185:3,103228:1,103229:1,103230:3,103231:3,103250:1,103251:3,103252:1,103253:3,103260:1,103261:1,103262:3,103263:3,103270:1,103271:1,103272:3,103273:3,103274:1,103275:1,103276:3,103277:3,103278:1,103279:1,103280:3,103281:3,103282:1,103283:1,103284:3,103285:3,103286:1,103287:3,103288:1,103289:3,103290:1,103291:3,103292:1,103293:1,103294:3,103295:3,103296:1,103297:1,103298:3,103299:3,103376:3,103377:1,103378:1,103379:3,103380:3,103393:1,103394:1,103395:3,103396:3,103472:1,103473:2,103474:1,103475:3,103482:1,103483:3,103484:1,103485:3,103500:1,103501:3,103502:1,103503:1,103504:2,103505:2,103506:1,103507:1,103508:3,103509:3,103510:1,103511:1,103512:3,103513:3,103514:1,103515:3,103516:1,103517:3,103518:1,103519:3,103520:1,103521:2,103522:1,103523:1,103524:3,103525:3,103526:1,103527:3,103561:3,103562:3,103563:1,103564:1,103565:3,103566:3,103567:1,103568:1,103569:3,103570:3,103584:1,103585:3,103586:1,103587:3,103588:2,103589:1,103590:3,103591:2,103592:1,103593:3,103594:2,103695:3,103897:2,103898:1,103899:1,103978:3,103979:1,103980:3,103981:1,103982:3,103986:3,103987:3,103988:1,103989:0,103990:3,103991:1,112111:1};for(n=2e3;n<=2045;n++)o[n]=1;for(n=2056;n<=2065;n++)o[n]=1;for(n=2067;n<=2135;n++)o[n]=1;for(n=2137;n<=2154;n++)o[n]=1;for(n=2161;n<=2170;n++)o[n]=1;for(n=2172;n<=2193;n++)o[n]=1;for(n=2195;n<=2198;n++)o[n]=1;for(n=2200;n<=2203;n++)o[n]=1;for(n=2205;n<=2217;n++)o[n]=1;for(n=2222;n<=2224;n++)o[n]=2;for(n=2225;n<=2250;n++)o[n]=3;for(n=2251;n<=2253;n++)o[n]=2;for(n=2257;n<=2264;n++)o[n]=3;for(n=2274;n<=2279;n++)o[n]=3;for(n=2280;n<=2282;n++)o[n]=2;for(n=2283;n<=2289;n++)o[n]=3;for(n=2290;n<=2292;n++)o[n]=1;for(n=2308;n<=2313;n++)o[n]=1;for(n=2315;n<=2491;n++)o[n]=1;for(n=2494;n<=2866;n++)o[n]=1;for(n=2867;n<=2869;n++)o[n]=2;for(n=2870;n<=2888;n++)o[n]=3;for(n=2891;n<=2895;n++)o[n]=3;for(n=2896;n<=2898;n++)o[n]=2;for(n=2902;n<=2908;n++)o[n]=3;for(n=2915;n<=2920;n++)o[n]=3;for(n=2921;n<=2923;n++)o[n]=2;for(n=2924;n<=2930;n++)o[n]=3;for(n=2931;n<=2962;n++)o[n]=1;for(n=2964;n<=2968;n++)o[n]=3;for(n=2969;n<=2973;n++)o[n]=1;for(n=2975;n<=2991;n++)o[n]=1;for(n=2995;n<=3051;n++)o[n]=1;for(n=3054;n<=3079;n++)o[n]=1;for(n=3081;n<=3088;n++)o[n]=1;for(n=3092;n<=3101;n++)o[n]=1;for(n=3106;n<=3138;n++)o[n]=1;for(n=3146;n<=3151;n++)o[n]=1;for(n=3153;n<=3166;n++)o[n]=1;for(n=3168;n<=3172;n++)o[n]=1;for(n=3174;n<=3203;n++)o[n]=1;for(n=3294;n<=3358;n++)o[n]=1;for(n=3367;n<=3403;n++)o[n]=1;for(n=3408;n<=3416;n++)o[n]=1;for(n=3417;n<=3438;n++)o[n]=3;for(n=3441;n<=3446;n++)o[n]=3;for(n=3447;n<=3450;n++)o[n]=1;for(n=3451;n<=3459;n++)o[n]=3;for(n=3460;n<=3478;n++)o[n]=1;for(n=3554;n<=3559;n++)o[n]=1;for(n=3560;n<=3570;n++)o[n]=3;for(n=3571;n<=3581;n++)o[n]=1;for(n=3594;n<=3597;n++)o[n]=1;for(n=3601;n<=3604;n++)o[n]=1;for(n=3637;n<=3639;n++)o[n]=1;for(n=3665;n<=3667;n++)o[n]=1;for(n=3693;n<=3695;n++)o[n]=1;for(n=3701;n<=3727;n++)o[n]=1;for(n=3728;n<=3739;n++)o[n]=3;for(n=3740;n<=3751;n++)o[n]=1;for(n=3753;n<=3760;n++)o[n]=3;for(n=3761;n<=3773;n++)o[n]=1;for(n=3775;n<=3777;n++)o[n]=1;for(n=3779;n<=3781;n++)o[n]=1;for(n=3783;n<=3785;n++)o[n]=1;for(n=3788;n<=3791;n++)o[n]=1;for(n=3797;n<=3802;n++)o[n]=1;for(n=3814;n<=3816;n++)o[n]=1;for(n=3825;n<=3829;n++)o[n]=1;for(n=3832;n<=3841;n++)o[n]=1;for(n=3844;n<=3852;n++)o[n]=1;for(n=3873;n<=3885;n++)o[n]=1;for(n=3890;n<=3893;n++)o[n]=1;for(n=3907;n<=3912;n++)o[n]=1;for(n=3942;n<=3950;n++)o[n]=1;for(n=3968;n<=3970;n++)o[n]=1;for(n=3973;n<=3976;n++)o[n]=1;for(n=3986;n<=3989;n++)o[n]=1;for(n=3994;n<=3997;n++)o[n]=1;for(n=4048;n<=4051;n++)o[n]=1;for(n=4056;n<=4063;n++)o[n]=1;for(n=4093;n<=4096;n++)o[n]=1;for(n=4390;n<=4398;n++)o[n]=1;for(n=4399;n<=4413;n++)o[n]=3;for(n=4418;n<=4433;n++)o[n]=3;for(n=4455;n<=4457;n++)o[n]=3;for(n=4484;n<=4489;n++)o[n]=1;for(n=4491;n<=4554;n++)o[n]=1;for(n=4568;n<=4589;n++)o[n]=1;for(n=4652;n<=4656;n++)o[n]=1;for(n=4766;n<=4800;n++)o[n]=1;for(n=5014;n<=5016;n++)o[n]=1;for(n=5069;n<=5072;n++)o[n]=1;for(n=5105;n<=5130;n++)o[n]=1;for(n=5167;n<=5188;n++)o[n]=1;for(n=5253;n<=5259;n++)o[n]=1;for(n=5269;n<=5275;n++)o[n]=1;for(n=5292;n<=5311;n++)o[n]=1;for(n=5329;n<=5331;n++)o[n]=1;for(n=5343;n<=5349;n++)o[n]=1;for(n=5355;n<=5357;n++)o[n]=1;for(n=5387;n<=5389;n++)o[n]=1;for(n=5459;n<=5463;n++)o[n]=1;for(n=5479;n<=5482;n++)o[n]=1;for(n=5518;n<=5520;n++)o[n]=1;for(n=5530;n<=5539;n++)o[n]=1;for(n=5550;n<=5552;n++)o[n]=1;for(n=5562;n<=5583;n++)o[n]=1;for(n=5623;n<=5625;n++)o[n]=3;for(n=5631;n<=5639;n++)o[n]=1;for(n=5649;n<=5653;n++)o[n]=1;for(n=5663;n<=5680;n++)o[n]=1;for(n=5682;n<=5685;n++)o[n]=1;for(n=5875;n<=5877;n++)o[n]=1;for(n=5896;n<=5899;n++)o[n]=1;for(n=5921;n<=5940;n++)o[n]=1;for(n=6050;n<=6125;n++)o[n]=1;for(n=6244;n<=6275;n++)o[n]=1;for(n=6328;n<=6348;n++)o[n]=1;for(n=6350;n<=6356;n++)o[n]=1;for(n=6366;n<=6372;n++)o[n]=1;for(n=6381;n<=6387;n++)o[n]=1;for(n=6393;n<=6404;n++)o[n]=1;for(n=6480;n<=6483;n++)o[n]=1;for(n=6511;n<=6514;n++)o[n]=1;for(n=6579;n<=6581;n++)o[n]=1;for(n=6619;n<=6624;n++)o[n]=1;for(n=6625;n<=6627;n++)o[n]=3;for(n=6628;n<=6632;n++)o[n]=1;for(n=6634;n<=6637;n++)o[n]=1;for(n=6669;n<=6692;n++)o[n]=1;for(n=6707;n<=6709;n++)o[n]=1;for(n=6720;n<=6723;n++)o[n]=1;for(n=6732;n<=6738;n++)o[n]=1;for(n=6931;n<=6933;n++)o[n]=1;for(n=6956;n<=6959;n++)o[n]=1;for(n=7005;n<=7007;n++)o[n]=1;for(n=7057;n<=7070;n++)o[n]=3;for(n=7074;n<=7082;n++)o[n]=1;for(n=7109;n<=7118;n++)o[n]=1;for(n=7119;n<=7127;n++)o[n]=2;for(n=7374;n<=7376;n++)o[n]=1;for(n=7528;n<=7586;n++)o[n]=1;for(n=7587;n<=7645;n++)o[n]=3;for(n=7692;n<=7696;n++)o[n]=1;for(n=7755;n<=7787;n++)o[n]=1;for(n=7791;n<=7795;n++)o[n]=1;for(n=7799;n<=7801;n++)o[n]=1;for(n=7803;n<=7805;n++)o[n]=1;for(n=7825;n<=7831;n++)o[n]=1;for(n=7845;n<=7859;n++)o[n]=1;for(n=8013;n<=8032;n++)o[n]=1;for(n=8065;n<=8068;n++)o[n]=2;for(n=8518;n<=8529;n++)o[n]=3;for(n=8533;n<=8536;n++)o[n]=3;for(n=8538;n<=8540;n++)o[n]=3;for(n=8677;n<=8679;n++)o[n]=1;for(n=8836;n<=8840;n++)o[n]=1;for(n=8857;n<=8859;n++)o[n]=1;for(n=8908;n<=8910;n++)o[n]=1;for(n=9154;n<=9159;n++)o[n]=1;for(n=9205;n<=9218;n++)o[n]=1;for(n=9271;n<=9273;n++)o[n]=1;for(n=9295;n<=9297;n++)o[n]=1;for(n=9356;n<=9360;n++)o[n]=1;for(n=9404;n<=9407;n++)o[n]=1;for(n=9476;n<=9482;n++)o[n]=1;for(n=9487;n<=9494;n++)o[n]=1;for(n=9697;n<=9699;n++)o[n]=1;for(n=9821;n<=9865;n++)o[n]=1;for(n=10285;n<=10291;n++)o[n]=1;for(n=10314;n<=10317;n++)o[n]=1;for(n=10448;n<=10465;n++)o[n]=1;for(n=10726;n<=10729;n++)o[n]=1;for(n=10731;n<=10733;n++)o[n]=1;for(n=10792;n<=10795;n++)o[n]=1;for(n=10911;n<=10916;n++)o[n]=3;for(n=10921;n<=10926;n++)o[n]=1;for(n=10942;n<=10949;n++)o[n]=1;for(n=11114;n<=11118;n++)o[n]=1;for(n=11266;n<=11272;n++)o[n]=1;for(n=11277;n<=11284;n++)o[n]=1;for(n=20004;n<=20032;n++)o[n]=1;for(n=20047;n<=20049;n++)o[n]=1;for(n=20062;n<=20092;n++)o[n]=1;for(n=20135;n<=20138;n++)o[n]=1;for(n=20248;n<=20258;n++)o[n]=1;for(n=20348;n<=20358;n++)o[n]=1;for(n=20436;n<=20440;n++)o[n]=1;for(n=20822;n<=20824;n++)o[n]=1;for(n=20904;n<=20932;n++)o[n]=1;for(n=20934;n<=20936;n++)o[n]=1;for(n=21004;n<=21032;n++)o[n]=1;for(n=21035;n<=21037;n++)o[n]=1;for(n=21095;n<=21097;n++)o[n]=1;for(n=21148;n<=21150;n++)o[n]=1;for(n=21207;n<=21264;n++)o[n]=1;for(n=21307;n<=21364;n++)o[n]=1;for(n=21413;n<=21423;n++)o[n]=1;for(n=21453;n<=21463;n++)o[n]=1;for(n=21473;n<=21483;n++)o[n]=1;for(n=21780;n<=21782;n++)o[n]=1;for(n=21891;n<=21894;n++)o[n]=1;for(n=21896;n<=21899;n++)o[n]=1;for(n=22171;n<=22177;n++)o[n]=1;for(n=22181;n<=22187;n++)o[n]=1;for(n=22191;n<=22197;n++)o[n]=1;for(n=22207;n<=22222;n++)o[n]=1;for(n=22229;n<=22232;n++)o[n]=1;for(n=22234;n<=22236;n++)o[n]=1;for(n=22243;n<=22250;n++)o[n]=1;for(n=22262;n<=22265;n++)o[n]=1;for(n=22307;n<=22322;n++)o[n]=1;for(n=22348;n<=22357;n++)o[n]=1;for(n=22407;n<=22422;n++)o[n]=1;for(n=22462;n<=22465;n++)o[n]=1;for(n=22521;n<=22525;n++)o[n]=1;for(n=22607;n<=22622;n++)o[n]=1;for(n=22641;n<=22646;n++)o[n]=1;for(n=22648;n<=22657;n++)o[n]=1;for(n=22707;n<=22722;n++)o[n]=1;for(n=22762;n<=22765;n++)o[n]=1;for(n=22807;n<=22822;n++)o[n]=1;for(n=22991;n<=22994;n++)o[n]=1;for(n=23028;n<=23038;n++)o[n]=1;for(n=23301;n<=23333;n++)o[n]=3;for(n=23830;n<=23853;n++)o[n]=1;for(n=23866;n<=23872;n++)o[n]=1;for(n=23877;n<=23884;n++)o[n]=1;for(n=23886;n<=23894;n++)o[n]=1;for(n=23946;n<=23948;n++)o[n]=1;for(n=24311;n<=24313;n++)o[n]=1;for(n=24342;n<=24347;n++)o[n]=1;for(n=24370;n<=24374;n++)o[n]=11;for(n=24375;n<=24381;n++)o[n]=1;for(n=24718;n<=24721;n++)o[n]=1;for(n=24817;n<=24821;n++)o[n]=1;for(n=24877;n<=24882;n++)o[n]=1;for(n=24891;n<=24893;n++)o[n]=1;for(n=25391;n<=25395;n++)o[n]=1;for(n=25828;n<=25838;n++)o[n]=1;for(n=26191;n<=26195;n++)o[n]=1;for(n=26391;n<=26393;n++)o[n]=1;for(n=26701;n<=26722;n++)o[n]=1;for(n=26729;n<=26799;n++)o[n]=3;for(n=26801;n<=26803;n++)o[n]=3;for(n=26811;n<=26813;n++)o[n]=3;for(n=26847;n<=26870;n++)o[n]=3;for(n=26891;n<=26899;n++)o[n]=1;for(n=26901;n<=26923;n++)o[n]=1;for(n=26929;n<=26946;n++)o[n]=1;for(n=26948;n<=26998;n++)o[n]=1;for(n=27037;n<=27040;n++)o[n]=1;for(n=27205;n<=27232;n++)o[n]=1;for(n=27258;n<=27260;n++)o[n]=1;for(n=27391;n<=27398;n++)o[n]=1;for(n=27561;n<=27564;n++)o[n]=1;for(n=27571;n<=27574;n++)o[n]=1;for(n=27581;n<=27584;n++)o[n]=1;for(n=27591;n<=27594;n++)o[n]=1;for(n=27700;n<=27707;n++)o[n]=1;for(n=28191;n<=28193;n++)o[n]=1;for(n=28348;n<=28358;n++)o[n]=1;for(n=28402;n<=28432;n++)o[n]=1;for(n=28462;n<=28492;n++)o[n]=1;for(n=29118;n<=29122;n++)o[n]=1;for(n=29168;n<=29172;n++)o[n]=1;for(n=29177;n<=29185;n++)o[n]=1;for(n=29187;n<=29195;n++)o[n]=1;for(n=29900;n<=29903;n++)o[n]=1;for(n=30161;n<=30179;n++)o[n]=1;for(n=30491;n<=30494;n++)o[n]=1;for(n=30729;n<=30732;n++)o[n]=1;for(n=31251;n<=31259;n++)o[n]=1;for(n=31265;n<=31268;n++)o[n]=1;for(n=31275;n<=31279;n++)o[n]=1;for(n=31281;n<=31297;n++)o[n]=1;for(n=31461;n<=31469;n++)o[n]=1;for(n=31491;n<=31495;n++)o[n]=1;for(n=31917;n<=31922;n++)o[n]=1;for(n=31965;n<=32e3;n++)o[n]=1;for(n=32001;n<=32003;n++)o[n]=3;for(n=32005;n<=32031;n++)o[n]=3;for(n=32033;n<=32060;n++)o[n]=3;for(n=32064;n<=32067;n++)o[n]=3;for(n=32074;n<=32077;n++)o[n]=3;for(n=32081;n<=32086;n++)o[n]=1;for(n=32107;n<=32130;n++)o[n]=1;for(n=32133;n<=32159;n++)o[n]=1;for(n=32164;n<=32167;n++)o[n]=3;for(n=32180;n<=32199;n++)o[n]=1;for(n=32201;n<=32260;n++)o[n]=1;for(n=32301;n<=32360;n++)o[n]=1;for(n=32401;n<=32460;n++)o[n]=1;for(n=32501;n<=32560;n++)o[n]=1;for(n=32601;n<=32662;n++)o[n]=1;for(n=32664;n<=32667;n++)o[n]=3;for(n=32701;n<=32761;n++)o[n]=1;for(n=53001;n<=53004;n++)o[n]=1;for(n=53008;n<=53019;n++)o[n]=1;for(n=53021;n<=53032;n++)o[n]=1;for(n=53034;n<=53037;n++)o[n]=1;for(n=53042;n<=53046;n++)o[n]=1;for(n=53074;n<=53080;n++)o[n]=1;for(n=54001;n<=54004;n++)o[n]=1;for(n=54008;n<=54019;n++)o[n]=1;for(n=54021;n<=54032;n++)o[n]=1;for(n=54034;n<=54037;n++)o[n]=1;for(n=54042;n<=54046;n++)o[n]=1;for(n=54048;n<=54053;n++)o[n]=1;for(n=54074;n<=54080;n++)o[n]=1;for(n=54090;n<=54096;n++)o[n]=1;for(n=54098;n<=54101;n++)o[n]=1;for(n=65161;n<=65163;n++)o[n]=1;for(n=102001;n<=102040;n++)o[n]=1;for(n=102042;n<=102063;n++)o[n]=1;for(n=102065;n<=102067;n++)o[n]=1;for(n=102070;n<=102117;n++)o[n]=1;for(n=102122;n<=102216;n++)o[n]=1;for(n=102221;n<=102377;n++)o[n]=1;for(n=102382;n<=102388;n++)o[n]=1;for(n=102389;n<=102398;n++)o[n]=3;for(n=102399;n<=102444;n++)o[n]=1;for(n=102445;n<=102447;n++)o[n]=3;for(n=102448;n<=102458;n++)o[n]=1;for(n=102459;n<=102468;n++)o[n]=3;for(n=102469;n<=102499;n++)o[n]=1;for(n=102500;n<=102519;n++)o[n]=2;for(n=102520;n<=102524;n++)o[n]=1;for(n=102525;n<=102529;n++)o[n]=3;for(n=102530;n<=102588;n++)o[n]=1;for(n=102590;n<=102598;n++)o[n]=1;for(n=102601;n<=102603;n++)o[n]=1;for(n=102605;n<=102628;n++)o[n]=1;for(n=102629;n<=102646;n++)o[n]=3;for(n=102648;n<=102700;n++)o[n]=3;for(n=102701;n<=102703;n++)o[n]=1;for(n=102707;n<=102730;n++)o[n]=3;for(n=102733;n<=102758;n++)o[n]=3;for(n=102767;n<=102900;n++)o[n]=1;for(n=102901;n<=102933;n++)o[n]=3;for(n=102934;n<=102950;n++)o[n]=14;for(n=102951;n<=102969;n++)o[n]=1;for(n=102971;n<=102973;n++)o[n]=1;for(n=102975;n<=102989;n++)o[n]=1;for(n=102990;n<=102992;n++)o[n]=2;for(n=102997;n<=103002;n++)o[n]=1;for(n=103003;n<=103008;n++)o[n]=3;for(n=103009;n<=103011;n++)o[n]=1;for(n=103012;n<=103014;n++)o[n]=3;for(n=103019;n<=103021;n++)o[n]=1;for(n=103022;n<=103024;n++)o[n]=3;for(n=103029;n<=103031;n++)o[n]=1;for(n=103032;n<=103034;n++)o[n]=3;for(n=103065;n<=103068;n++)o[n]=1;for(n=103074;n<=103076;n++)o[n]=1;for(n=103077;n<=103079;n++)o[n]=2;for(n=103080;n<=103082;n++)o[n]=1;for(n=103083;n<=103085;n++)o[n]=3;for(n=103090;n<=103093;n++)o[n]=1;for(n=103097;n<=103099;n++)o[n]=1;for(n=103100;n<=103102;n++)o[n]=3;for(n=103107;n<=103109;n++)o[n]=1;for(n=103110;n<=103112;n++)o[n]=3;for(n=103113;n<=103116;n++)o[n]=1;for(n=103117;n<=103120;n++)o[n]=3;for(n=103153;n<=103157;n++)o[n]=1;for(n=103158;n<=103162;n++)o[n]=3;for(n=103163;n<=103165;n++)o[n]=1;for(n=103166;n<=103168;n++)o[n]=2;for(n=103169;n<=103171;n++)o[n]=3;for(n=103186;n<=103188;n++)o[n]=1;for(n=103189;n<=103191;n++)o[n]=3;for(n=103192;n<=103195;n++)o[n]=1;for(n=103196;n<=103199;n++)o[n]=3;for(n=103200;n<=103224;n++)o[n]=1;for(n=103225;n<=103227;n++)o[n]=2;for(n=103232;n<=103237;n++)o[n]=1;for(n=103238;n<=103243;n++)o[n]=3;for(n=103244;n<=103246;n++)o[n]=1;for(n=103247;n<=103249;n++)o[n]=3;for(n=103254;n<=103256;n++)o[n]=1;for(n=103257;n<=103259;n++)o[n]=3;for(n=103264;n<=103266;n++)o[n]=1;for(n=103267;n<=103269;n++)o[n]=3;for(n=103300;n<=103375;n++)o[n]=1;for(n=103381;n<=103383;n++)o[n]=1;for(n=103384;n<=103386;n++)o[n]=2;for(n=103387;n<=103389;n++)o[n]=1;for(n=103390;n<=103392;n++)o[n]=3;for(n=103397;n<=103399;n++)o[n]=1;for(n=103400;n<=103471;n++)o[n]=3;for(n=103476;n<=103478;n++)o[n]=1;for(n=103479;n<=103481;n++)o[n]=3;for(n=103486;n<=103488;n++)o[n]=1;for(n=103489;n<=103491;n++)o[n]=3;for(n=103492;n<=103495;n++)o[n]=1;for(n=103496;n<=103499;n++)o[n]=3;for(n=103528;n<=103543;n++)o[n]=1;for(n=103544;n<=103548;n++)o[n]=3;for(n=103549;n<=103551;n++)o[n]=1;for(n=103552;n<=103554;n++)o[n]=2;for(n=103555;n<=103557;n++)o[n]=3;for(n=103558;n<=103560;n++)o[n]=1;for(n=103571;n<=103573;n++)o[n]=1;for(n=103574;n<=103576;n++)o[n]=3;for(n=103577;n<=103580;n++)o[n]=1;for(n=103581;n<=103583;n++)o[n]=3;for(n=103595;n<=103694;n++)o[n]=1;for(n=103696;n<=103699;n++)o[n]=1;for(n=103700;n<=103793;n++)o[n]=3;for(n=103794;n<=103890;n++)o[n]=1;for(n=103891;n<=103896;n++)o[n]=3;for(n=103900;n<=103971;n++)o[n]=3;for(n=103972;n<=103977;n++)o[n]=1;for(n=103983;n<=103985;n++)o[n]=1;for(n=112e3;n<=112101;n++)o[n]=1;for(n=112151;n<=112156;n++)o[n]=1;for(n=112201;n<=112210;n++)o[n]=1;for(n=112212;n<=112235;n++)o[n]=1;for(n=112236;n<=112323;n++)o[n]=3;r.d(t,["A",0,o])},21325(e,t,r){r.d(t,{EA:()=>m,K8:()=>S,Vp:()=>u,YX:()=>d,ZL:()=>y,aI:()=>c,d9:()=>T,fn:()=>M,jp:()=>p,oT:()=>P,r1:()=>E,tl:()=>g,x1:()=>h});var n=r(799),o=(r(83290),r(22530));const i=[102100,102113,3857,3785,900913],a=[4326,...i,104905,104971,104903],s=[-20037508.342788905,20037508.342788905],_=[-20037508.342787,20037508.342787],l={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:s,origin:_,dx:1e-5},f={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:s,origin:_,dx:1e-5},102100:l,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:s,origin:_,dx:1e-5},3857:l,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:l,104903:{wkTemplate:'GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400,0,AUTHORITY["ESRI","107903"]],AUTHORITY["ESRI","106903"]],PRIMEM["Reference_Meridian",0,AUTHORITY["ESRI","108900"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["ESRI","104903"]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,n=t.wkid;if(null!=r||null!=n){if(r===n)return!0;if(S(e)&&S(t))return!0;const o=e.latestWkid;if(null!=o&&n===o)return!0;const i=t.latestWkid;if(null!=i&&r===i)return!0;if(null!=r&&null!=n)return!1}let o,i;return e.wkt2&&t.wkt2?(o=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(o=e.wkt,i=t.wkt),!(!o||!i)&&o.toUpperCase()===i.toUpperCase()}function u(e){const t=e?.wkid;return null!=t&&t>=2e3&&f[t]||null}function d(e){if(!e)return;const{wkid:t,vcsWkid:r,falseM:n,falseX:o,falseY:i,falseZ:a,mTolerance:s,mUnits:_,xyTolerance:l,xyUnits:f,zTolerance:c,zUnits:u}=e;if(t&&[r,n,o,i,a,s,_,l,f,c,u].every(e=>null==e))return String(t);const d={wkid:t,wkt:t?void 0:e.wkt||e.wkt2,vcsWkid:r,falseM:n,falseX:o,falseY:i,falseZ:a,mTolerance:s,mUnits:_,xyTolerance:l,xyUnits:f,zTolerance:c,zUnits:u};for(const[e,t]of Object.entries(d))null===t&&delete d[e];return JSON.stringify(d)}function m(e){if(!M(e))return!1;const{wkid:t}=e;if(t)return null==o.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function P(e){return 4326===e?.wkid}function p(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function h(e){return 4490===e?.wkid}function S(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function E(e){return 32662===e?.wkid}function g(e){return 104971===e||104905===e}function y(e){return 104903===e}function T(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function M(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const G={wkid:4326,wkt:(0,n.HC)(f[4326].wkTemplate,{Central_Meridian:"0.0"})};r.d(t,["KK",0,G,"Mc",0,s,"ch",0,{wkid:102100,latestWkid:3857},"tQ",0,{wkid:32662}])},97348(e,t,r){r.d(t,{B:()=>u});const n=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],o=[287,1,2,4,15,107,3,143],i=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],a=["Meter","Foot","Foot_US","Foot_British_1936"],s=[1,.3048,.3048006096012192,.3048007491],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=["EGM2008_Geoid","Fao_1979","N2000","New_Zealand_Vertical_Datum_2009","Dunedin_Bluff_1960","Korean_Vertical_Datum_1964","Trieste","Genoa","Sri_Lanka_Vertical_Datum","Faroe_Islands_Vertical_Reference_2009","Black_Sea","Fehmarnbelt_Vertical_Reference_2010","Nivellement_General_de_Polynesie_Francaise","IGN_1966","Moorea_SAU_1981","Raiatea_SAU_2001","Maupiti_SAU_2001","Huahine_SAU_2001","Tahaa_SAU_2001","Bora_Bora_SAU_2001","International_Great_Lakes_Datum_1955","International_Great_Lakes_Datum_1985","Croatian_Vertical_Reference_System_1971","Caspian_Sea","Baltic_Sea","Rikets_Hojdsystem_2000","KOC_Well_Datum","Rikets_Hojdsystem_1900","IGN_1988_LS","IGN_1988_MG","IGN_1992_LD","IGN_1988_SB","IGN_1988_SM","European_Vertical_Reference_Frame_2007","Ordnance_Datum_Newlyn","National_Geodetic_Vertical_Datum_1929","North_American_Vertical_Datum_1988","Yellow_Sea_1956","Normaal_Amsterdams_Peil","Oostende","Australian_Height_Datum","Australian_Height_Datum_Tasmania","Canadian_Geodetic_Vertical_Datum_of_1928","Mean_Sea_Level","Piraeus_Harbour_1986","Helsinki_1960","Rikets_Hojdsystem_1970","Nivellement_General_de_la_France_Lallemand","Nivellement_General_de_la_France_IGN69","Nivellement_General_de_la_France_IGN78","Maputo","Japanese_Standard_Levelling_Datum_1969","PDO_Height_Datum_1993","Fahud_Height_Datum","Ha_Tien_1960","Hon_Dau_1992","Landesnivellement_1902","Landeshohennetz_1995","European_Vertical_Reference_Frame_2000","Malin_Head","Belfast","Dansk_Normal_Nul","AIOC_1995","Yellow_Sea_1985","Hong_Kong_Principal_Datum","Hong_Kong_Chart_Datum","Ordnance_Datum_Newlyn_Orkney_Isles","Fair_Isle","Lerwick","Foula","Sule_Skerry","North_Rona","Stornoway","St_Kilda","Flannan_Isles","St_Marys","Douglas","Fao","Bandar_Abbas","Nivellement_General_de_Nouvelle_Caledonie","Poolbeg","Nivellement_General_Guyanais_1977","IGN_1987","IGN_1988","IGN_1989","Auckland","Bluff","Dunedin","Gisborne","Lyttelton","Moturiki","Napier","Nelson","One_Tree_Point","Tararu","Taranaki","Wellington","Chatham_Island","Stewart_Island","EGM96_Geoid","Nivellement_General_du_Luxembourg","Antalya","Norway_Normal_Null_1954","Durres","Gebrauchshohen_Adria","Slovenian_Vertical_System_2000","Cascais","Constanta","Alicante","Deutsches_Haupthoehennetz_1992","Deutsches_Haupthoehennetz_1985","SNN76","Baltic_1982","Baltic_1980","Kuwait_PWD","KOC_Construction_Datum","Nivellement_General_de_la_Corse_1948","Danger_1950","Mayotte_1950","Martinique_1955","Guadeloupe_1951","Lagos_1955","EGM84_Geoid","Dansk_Vertikal_Reference_1990_ensemble","Sea_Level","Ras_Ghumays","Lowest_Astronomic_Tide","Lower_Low_Water_Large_Tide","Indian_Spring_Low_Water","Mean_Lower_Low_Water_Spring_Tides","Mean_Low_Water_Spring_Tides","Mean_Lower_Low_Water","Mean_Low_Water","Mean_High_Water","Mean_Higher_High_Water","Mean_High_Water_Spring_Tides","Higher_High_Water_Large_Tide","Highest_Astronomic_Tide","Low_Water","High_Water","Norway_Normal_Null_2000","Grand_Cayman_Vertical_Datum_1954","Little_Cayman_Vertical_Datum_1961","Cayman_Brac_Vertical_Datum_1961","Cais_da_Pontinha-Funchal","Cais_da_Vila-Porto_Santo","Cais_das_Velas","Horta","Cais_da_Madalena","Santa_Cruz_da_Graciosa","Cais_da_Figueirinha-Angra_do_Heroismo","Santa_Cruz_das_Flores","Cais_da_Vila_do_Porto","Ponta_Delgada","Tutuila_Vertical_Datum_of_1962","Guam_Vertical_Datum_of_1963","Northern_Marianas_Vertical_Datum_of_2003","Puerto_Rico_Vertical_Datum_of_2002","Virgin_Islands_Vertical_Datum_of_2009","American_Samoa_Vertical_Datum_of_2002","Guam_Vertical_Datum_of_2004","Canadian_Geodetic_Vertical_Datum_of_2013","Japanese_Standard_Levelling_Datum_1972","Japanese_Geodetic_Datum_2000_vertical","Japanese_Geodetic_Datum_2011_vertical","Singapore_Height_Datum","Famagusta_1960","Papua_New_Guinea_2008","Kumul_34","Kiunga","Deutsches_Haupthoehennetz_1912","Latvian_Height_System_2000","Ordnance_Datum_Newlyn_(Offshore)","Port_Moresby_1996","Deutsches_Haupthoehennetz_2016","New_Zealand_Vertical_Datum_2016","Port_Moresby_2008","Jamestown_1971","St_Helena_Tritan_Vertical_Datum_2011","St_Helena_Vertical_Datum_2015","Landshaedarkerfi_Islands_2004","Greenland_Vertical_Reference_2000","Greenland_Vertical_Reference_2016","Baltic_1957","Macao_Height_Datum","Helsinki_1943","Slovenian_Vertical_System_2010","Serbian_Vertical_Reference_System_2012","MOMRA_Vertical_Geodetic_Control","Wiener_Null","Taiwan_Vertical_Datum_2001","Datum_Altimetrico_de_Costa_Rica_1952","IGN_2008_LD","Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a","Sistema_de_Referencia_Vertical_Nacional_2016","European_Vertical_Reference_Frame_2000_Austria","South_Africa_Land_Levelling_Datum","Lowest_Astronomical_Tide_Netherlands","Mean_Sea_Level_Netherlands","HS2_Vertical_Reference_Frame","Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014","Nivellement_General_de_Nouvelle_Caledonie_2008","European_Vertical_Reference_Frame_2019","European_Vertical_Reference_Frame_2019_mean_tide","Mallorca","Menorca","Ibiza","Lanzarote","Fuerteventura","Gran_Canaria","Tenerife","La_Gomera","La_Palma","El_Hierro","Ceuta_2","British_Isles_height_ensemble","Australian_Vertical_Working_Surface","Indonesian_Geoid_2020","Baltic_1986","European_Vertical_Reference_Frame_2007_Poland","Estonian_Height_System_2000","Lithuanian_Height_System_2007","Bulgarian_Height_System_2005","Norwegian_Chart_Datum","Local_Tidal_Datum_at_Pago_Pago_2020","National_Vertical_Datum_1992","Catania_1965","Cagliari_1956","GNTRANS","GNTRANS2016","Mean_Sea_Level_UK_Ireland_VORF08","Chart_Datum_UK_Ireland_VORF08","Nivellement_General_de_l_Algerie_2022","Chart_Datum_Portugal","Formentera","Alboran","Melilla","Dansk_Vertikal_Reference_1990","Dansk_Vertikal_Reference_1990_(2002)","Dansk_Vertikal_Reference_1990_(2013)","Dansk_Vertikal_Reference_1990_(2023)","Denmark_Mean_Sea_Level_(2022)","Denmark_Lowest_Astronomical_Tide_(2022)","Denmark_Mean_Sea_Level_(2023)","Denmark_Lowest_Astronomical_Tide_(2023)","Denmark_Mean_Sea_Level","Denmark_Lowest_Astronomical_Tide","Greenland_Local_Mean_Sea_Level_(2022)","Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0)","Saba_Vertical_Datum","Greenland_Mean_Sea_Level_(2023)","Greenland_Lowest_Astronomic_Tide_(2023)","Baltic_Sea_Chart_Datum_2000","Sint_Eustatius_Vertical_Datum","Bonaire_Vertical_Datum","Asse_vertical_datum_2025","Derived_California_Orthometric_Heights_of_1988_epoch_2025","London_Survey_Grid_height_datum","Svalbard_vertical_datum_2024","IGN_2023_Mayotte","Svalbard_vertical_datum_2006","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997","Indonesian_Geoid_2020_version_2","Hellenic_Vertical_Datum","WGS_1984","Red_Espanola_de_Nivelacion_de_Alta_Precision","Japanese_Geodetic_Datum_2024_vertical","GRS_1980","WGS_1984_Geoid","Mean_Sea_Level_Hawaii","Qatari_Vertical_Datum","International_1924","CGCS2000","Bessel_1841","Krasovsky_1940","Everest_Adjustment_1937","Clarke_1866","PZ_1990","Unknown_height_system_(meters)","Unknown_height_system_(US_survey_feet)","Unknown_height_system_(Intl_feet)","GSK-2011","Australian","NWL_9D","WGS_1972"],f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];function c(e){const t=[];let r=0;for(const n of e){for(let e=0;e<n;e++)t.push(r);r=1-r}return t}const u=function(){const e=function(e){const t=[];let r=0;for(const n of e)r+=n,t.push(r);return t}(n),t=c(o),r=c(i),u=a.map((e,t)=>({name:e,conversionFactor:s[t]})),d=new Map;for(let n=0;n<e.length;n++){const o=0===t[n]?0:1,i=0===r[n]?0:1,a=u[_[n]],s=l[f[n]];d.set(e[n],{type:o,direction:i,unit:a,datum:s})}return d}()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1086,8768],{80200(e,t,r){r.d(t,{d:()=>c});const i={Base64:0,Hex:1,String:2,Raw:3};function a(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t,r,i,s,n){return a(function(e,t){return e<<t|e>>>32-t}(a(a(t,e),a(i,n)),s),r)}function n(e,t,r,i,a,n,o){return s(t&r|~t&i,e,t,a,n,o)}function o(e,t,r,i,a,n,o){return s(t&i|r&~i,e,t,a,n,o)}function l(e,t,r,i,a,n,o){return s(t^r^i,e,t,a,n,o)}function u(e,t,r,i,a,n,o){return s(r^(t|~i),e,t,a,n,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const c=r,p=i,y=s,h=d;r=n(r,i,s,d,e[t],7,-680876936),d=n(d,r,i,s,e[t+1],12,-389564586),s=n(s,d,r,i,e[t+2],17,606105819),i=n(i,s,d,r,e[t+3],22,-1044525330),r=n(r,i,s,d,e[t+4],7,-176418897),d=n(d,r,i,s,e[t+5],12,1200080426),s=n(s,d,r,i,e[t+6],17,-1473231341),i=n(i,s,d,r,e[t+7],22,-45705983),r=n(r,i,s,d,e[t+8],7,1770035416),d=n(d,r,i,s,e[t+9],12,-1958414417),s=n(s,d,r,i,e[t+10],17,-42063),i=n(i,s,d,r,e[t+11],22,-1990404162),r=n(r,i,s,d,e[t+12],7,1804603682),d=n(d,r,i,s,e[t+13],12,-40341101),s=n(s,d,r,i,e[t+14],17,-1502002290),i=n(i,s,d,r,e[t+15],22,1236535329),r=o(r,i,s,d,e[t+1],5,-165796510),d=o(d,r,i,s,e[t+6],9,-1069501632),s=o(s,d,r,i,e[t+11],14,643717713),i=o(i,s,d,r,e[t],20,-373897302),r=o(r,i,s,d,e[t+5],5,-701558691),d=o(d,r,i,s,e[t+10],9,38016083),s=o(s,d,r,i,e[t+15],14,-660478335),i=o(i,s,d,r,e[t+4],20,-405537848),r=o(r,i,s,d,e[t+9],5,568446438),d=o(d,r,i,s,e[t+14],9,-1019803690),s=o(s,d,r,i,e[t+3],14,-187363961),i=o(i,s,d,r,e[t+8],20,1163531501),r=o(r,i,s,d,e[t+13],5,-1444681467),d=o(d,r,i,s,e[t+2],9,-51403784),s=o(s,d,r,i,e[t+7],14,1735328473),i=o(i,s,d,r,e[t+12],20,-1926607734),r=l(r,i,s,d,e[t+5],4,-378558),d=l(d,r,i,s,e[t+8],11,-2022574463),s=l(s,d,r,i,e[t+11],16,1839030562),i=l(i,s,d,r,e[t+14],23,-35309556),r=l(r,i,s,d,e[t+1],4,-1530992060),d=l(d,r,i,s,e[t+4],11,1272893353),s=l(s,d,r,i,e[t+7],16,-155497632),i=l(i,s,d,r,e[t+10],23,-1094730640),r=l(r,i,s,d,e[t+13],4,681279174),d=l(d,r,i,s,e[t],11,-358537222),s=l(s,d,r,i,e[t+3],16,-722521979),i=l(i,s,d,r,e[t+6],23,76029189),r=l(r,i,s,d,e[t+9],4,-640364487),d=l(d,r,i,s,e[t+12],11,-421815835),s=l(s,d,r,i,e[t+15],16,530742520),i=l(i,s,d,r,e[t+2],23,-995338651),r=u(r,i,s,d,e[t],6,-198630844),d=u(d,r,i,s,e[t+7],10,1126891415),s=u(s,d,r,i,e[t+14],15,-1416354905),i=u(i,s,d,r,e[t+5],21,-57434055),r=u(r,i,s,d,e[t+12],6,1700485571),d=u(d,r,i,s,e[t+3],10,-1894986606),s=u(s,d,r,i,e[t+10],15,-1051523),i=u(i,s,d,r,e[t+1],21,-2054922799),r=u(r,i,s,d,e[t+8],6,1873313359),d=u(d,r,i,s,e[t+15],10,-30611744),s=u(s,d,r,i,e[t+6],15,-1560198380),i=u(i,s,d,r,e[t+13],21,1309151649),r=u(r,i,s,d,e[t+4],6,-145523070),d=u(d,r,i,s,e[t+11],10,-1120210379),s=u(s,d,r,i,e[t+2],15,718787259),i=u(i,s,d,r,e[t+9],21,-343485551),r=a(r,c),i=a(i,p),s=a(s,y),d=a(d,h)}return[r,i,s,d]}function c(e,t=i.Hex){const r=t||i.Base64,a=d(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return a;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,a=4*e.length;i<a;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(a);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(a);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let a=0;a<4;a++)8*r+6*a>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-a)&63))}return t.join("")}(a)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>y});var i=r(49186),a=r(80200),s=r(76553),n=r(84952),o=r(13069),l=r(96156),u=r(35666),d=r(10107),c=r(85648),p=r(97159);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const a=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const a=(0,p.r)(e,t,r);return i.type===String?a:"function"==typeof i.type?new i.type({url:a}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,a,o,l){if(!l?.resources)return"string"==typeof t?void(a[o]=(0,p.t)(t,l)):void(a[o]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:y,dest:a,targetPropertyName:o,context:l,params:e};l?.portalItem&&y&&!(0,n.oP)(y)?m&&e?.contentAddressed?h(v):m?function(e){const{context:t,targetUrl:r,params:i,value:a,dest:s,targetPropertyName:o}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=f(a,r,t),d=(0,c.n)(u),p=(0,n.Zo)(l.path),y=i?.compress??!1;d===p?(t.resources&&g({...e,resource:l,content:u,compress:y,updates:t.resources.toUpdate}),s[o]=r):h(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==y||null!=(0,p.i)(y)||(0,n.w8)(y)||m)?h(v):a[o]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.rM)(r,e,i);for(const e in a)t[e]=a[e]}}}function h(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const y=(0,p.p)(t),h=f(s,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const m=r?.contentAddressed&&"json"===h.type?(0,a.d)(h.jsonString):y?.filename??(0,o.lk)(),v=(0,n.fj)(r?.prefix??y?.prefix,m),b=`${v}.${(0,c.n)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[d]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(b);(0,n.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,n.tk)(t).then(e=>{w.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[d]=w.itemRelativeUrl}).catch(()=>{}));const L=r?.compress??!1;l.resources&&g({...e,resource:w,content:h,compress:L,updates:l.resources.toAdd}),u[d]=w.itemRelativeUrl}function g({object:e,propertyName:t,updates:r,resource:i,content:a,compress:s}){r.push({resource:i,content:a,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>F,B8:()=>d,C:()=>s,D_:()=>o,N9:()=>b,O7:()=>C,Qw:()=>u,Tl:()=>p,X_:()=>M,e$:()=>h,eL:()=>g,hM:()=>v,hZ:()=>n,hs:()=>y,kN:()=>f,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>A,sC:()=>I,t2:()=>O,t5:()=>T,tZ:()=>P,ut:()=>E});var i=r(51850),a=r(34304);function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function n(e,t,r,i,a,s,n,o,l,u,d,c,p,y,h,g,f){return e[0]=t,e[1]=r,e[2]=i,e[3]=a,e[4]=s,e[5]=n,e[6]=o,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=y,e[13]=h,e[14]=g,e[15]=f,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){const r=t[1],i=t[2],a=t[3],s=t[6],n=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=n,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||o(e),e}function d(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],y=t[11],h=t[12],g=t[13],f=t[14],m=t[15],v=r*o-i*n,b=r*l-a*n,w=r*u-s*n,L=i*l-a*o,I=i*u-s*o,M=a*u-s*l,S=d*g-c*h,A=d*f-p*h,C=d*m-y*h,F=c*f-p*g,T=c*m-y*g,x=p*m-y*f;let O=v*x-b*T+w*F+L*C-I*A+M*S;return O?(O=1/O,e[0]=(o*x-l*T+u*F)*O,e[1]=(a*T-i*x-s*F)*O,e[2]=(g*M-f*I+m*L)*O,e[3]=(p*I-c*M-y*L)*O,e[4]=(l*C-n*x-u*A)*O,e[5]=(r*x-a*C+s*A)*O,e[6]=(f*w-h*M-m*b)*O,e[7]=(d*M-p*w+y*b)*O,e[8]=(n*T-o*C+u*S)*O,e[9]=(i*C-r*T-s*S)*O,e[10]=(h*I-g*w+m*v)*O,e[11]=(c*w-d*I-y*v)*O,e[12]=(o*A-n*F-l*S)*O,e[13]=(r*F-i*A+a*S)*O,e[14]=(g*b-h*L-f*v)*O,e[15]=(d*L-c*b+p*v)*O,e):null}function c(e,t,r){const i=t[0],a=t[1],s=t[2],n=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],y=t[10],h=t[11],g=t[12],f=t[13],m=t[14],v=t[15];let b=r[0],w=r[1],L=r[2],I=r[3];return e[0]=b*i+w*o+L*c+I*g,e[1]=b*a+w*l+L*p+I*f,e[2]=b*s+w*u+L*y+I*m,e[3]=b*n+w*d+L*h+I*v,b=r[4],w=r[5],L=r[6],I=r[7],e[4]=b*i+w*o+L*c+I*g,e[5]=b*a+w*l+L*p+I*f,e[6]=b*s+w*u+L*y+I*m,e[7]=b*n+w*d+L*h+I*v,b=r[8],w=r[9],L=r[10],I=r[11],e[8]=b*i+w*o+L*c+I*g,e[9]=b*a+w*l+L*p+I*f,e[10]=b*s+w*u+L*y+I*m,e[11]=b*n+w*d+L*h+I*v,b=r[12],w=r[13],L=r[14],I=r[15],e[12]=b*i+w*o+L*c+I*g,e[13]=b*a+w*l+L*p+I*f,e[14]=b*s+w*u+L*y+I*m,e[15]=b*n+w*d+L*h+I*v,e}function p(e,t,r){const i=r[0],a=r[1],s=r[2];if(t===e)e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15];else{const r=t[0],n=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],y=t[8],h=t[9],g=t[10],f=t[11];e[0]=r,e[1]=n,e[2]=o,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=y,e[9]=h,e[10]=g,e[11]=f,e[12]=r*i+u*a+y*s+t[12],e[13]=n*i+d*a+h*s+t[13],e[14]=o*i+c*a+g*s+t[14],e[15]=l*i+p*a+f*s+t[15]}return e}function y(e,t,r){const i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,i){let n=i[0],o=i[1],l=i[2],u=Math.sqrt(n*n+o*o+l*l);if(u<=(0,a.FD)())return void s(e,t);u=1/u,n*=u,o*=u,l*=u;const d=Math.sin(r),c=Math.cos(r),p=1-c,y=t[0],h=t[1],g=t[2],f=t[3],m=t[4],v=t[5],b=t[6],w=t[7],L=t[8],I=t[9],M=t[10],S=t[11],A=n*n*p+c,C=o*n*p+l*d,F=l*n*p-o*d,T=n*o*p-l*d,x=o*o*p+c,O=l*o*p+n*d,E=n*l*p+o*d,P=o*l*p-n*d,j=l*l*p+c;e[0]=y*A+m*C+L*F,e[1]=h*A+v*C+I*F,e[2]=g*A+b*C+M*F,e[3]=f*A+w*C+S*F,e[4]=y*T+m*x+L*O,e[5]=h*T+v*x+I*O,e[6]=g*T+b*x+M*O,e[7]=f*T+w*x+S*O,e[8]=y*E+m*P+L*j,e[9]=h*E+v*P+I*j,e[10]=g*E+b*P+M*j,e[11]=f*E+w*P+S*j,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function g(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[4],n=t[5],o=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+u*i,e[5]=n*a+d*i,e[6]=o*a+c*i,e[7]=l*a+p*i,e[8]=u*a-s*i,e[9]=d*a-n*i,e[10]=c*a-o*i,e[11]=p*a-l*i,e}function f(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return o(e);let i=r[0],s=r[1],n=r[2],l=Math.sqrt(i*i+s*s+n*n);if(l<=(0,a.FD)())return null;l=1/l,i*=l,s*=l,n*=l;const u=Math.sin(t),d=Math.cos(t),c=1-d;return e[0]=i*i*c+d,e[1]=s*i*c+n*u,e[2]=n*i*c-s*u,e[3]=0,e[4]=i*s*c-n*u,e[5]=s*s*c+d,e[6]=n*s*c+i*u,e[7]=0,e[8]=i*n*c+s*u,e[9]=s*n*c-i*u,e[10]=n*n*c+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t,r){const i=t[0],a=t[1],s=t[2],n=t[3],o=i+i,l=a+a,u=s+s,d=i*o,c=i*l,p=i*u,y=a*l,h=a*u,g=s*u,f=n*o,m=n*l,v=n*u;return e[0]=1-(y+g),e[1]=c+v,e[2]=p-m,e[3]=0,e[4]=c-v,e[5]=1-(d+g),e[6]=h+f,e[7]=0,e[8]=p+m,e[9]=h-f,e[10]=1-(d+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const L=(0,i.vt)();function I(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){const r=t[0],i=t[1],a=t[2],s=t[4],n=t[5],o=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+a*a),e[1]=Math.sqrt(s*s+n*n+o*o),e[2]=Math.sqrt(l*l+u*u+d*d),e}function S(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function A(e,t,r,i){const a=t[0],s=t[1],n=t[2],o=t[3],l=a+a,u=s+s,d=n+n,c=a*l,p=a*u,y=a*d,h=s*u,g=s*d,f=n*d,m=o*l,v=o*u,b=o*d,w=i[0],L=i[1],I=i[2];return e[0]=(1-(h+f))*w,e[1]=(p+b)*w,e[2]=(y-v)*w,e[3]=0,e[4]=(p-b)*L,e[5]=(1-(c+f))*L,e[6]=(g+m)*L,e[7]=0,e[8]=(y+v)*I,e[9]=(g-m)*I,e[10]=(1-(c+h))*I,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function C(e,t,r,i,a){const s=t[0],n=t[1],o=t[2],l=t[3],u=s+s,d=n+n,c=o+o,p=s*u,y=s*d,h=s*c,g=n*d,f=n*c,m=o*c,v=l*u,b=l*d,w=l*c,L=i[0],I=i[1],M=i[2],S=a[0],A=a[1],C=a[2],F=(1-(g+m))*L,T=(y+w)*L,x=(h-b)*L,O=(y-w)*I,E=(1-(p+m))*I,P=(f+v)*I,j=(h+b)*M,_=(f-v)*M,R=(1-(p+g))*M;return e[0]=F,e[1]=T,e[2]=x,e[3]=0,e[4]=O,e[5]=E,e[6]=P,e[7]=0,e[8]=j,e[9]=_,e[10]=R,e[11]=0,e[12]=r[0]+S-(F*S+O*A+j*C),e[13]=r[1]+A-(T*S+E*A+_*C),e[14]=r[2]+C-(x*S+P*A+R*C),e[15]=1,e}function F(e,t,r,i,a,s,n){const o=1/(r-t),l=1/(a-i),u=1/(s-n);return e[0]=2*s*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(a+i)*l,e[10]=(n+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=n*s*2*u,e[15]=0,e}function T(e,t,r,i){const s=t[0],n=t[1],l=t[2];let u=s-r[0],d=n-r[1],c=l-r[2];const p=(0,a.FD)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void o(e);let y=1/Math.sqrt(u*u+d*d+c*c);u*=y,d*=y,c*=y;const h=i[0],g=i[1],f=i[2];let m=g*c-f*d,v=f*u-h*c,b=h*d-g*u;y=Math.sqrt(m*m+v*v+b*b),y?(y=1/y,m*=y,v*=y,b*=y):(m=0,v=0,b=0);let w=d*b-c*v,L=c*m-u*b,I=u*v-d*m;y=Math.sqrt(w*w+L*L+I*I),y?(y=1/y,w*=y,L*=y,I*=y):(w=0,L=0,I=0),e[0]=m,e[1]=w,e[2]=u,e[3]=0,e[4]=v,e[5]=L,e[6]=d,e[7]=0,e[8]=b,e[9]=I,e[10]=c,e[11]=0,e[12]=-(m*s+v*n+b*l),e[13]=-(w*s+L*n+I*l),e[14]=-(u*s+d*n+c*l),e[15]=1}function x(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function E(e){const t=(0,a.FD)(),r=e[0],i=e[1],s=e[2],n=e[4],o=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+n*n+u*u))<=t&&Math.abs(1-(i*i+o*o+d*d))<=t&&Math.abs(1-(s*s+l*l+c*c))<=t}function P(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const j=c,_=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],y=t[11],h=t[12],g=t[13],f=t[14],m=t[15];return e[0]=o*(p*m-y*f)-c*(l*m-u*f)+g*(l*y-u*p),e[1]=-(i*(p*m-y*f)-c*(a*m-s*f)+g*(a*y-s*p)),e[2]=i*(l*m-u*f)-o*(a*m-s*f)+g*(a*u-s*l),e[3]=-(i*(l*y-u*p)-o*(a*y-s*p)+c*(a*u-s*l)),e[4]=-(n*(p*m-y*f)-d*(l*m-u*f)+h*(l*y-u*p)),e[5]=r*(p*m-y*f)-d*(a*m-s*f)+h*(a*y-s*p),e[6]=-(r*(l*m-u*f)-n*(a*m-s*f)+h*(a*u-s*l)),e[7]=r*(l*y-u*p)-n*(a*y-s*p)+d*(a*u-s*l),e[8]=n*(c*m-y*g)-d*(o*m-u*g)+h*(o*y-u*c),e[9]=-(r*(c*m-y*g)-d*(i*m-s*g)+h*(i*y-s*c)),e[10]=r*(o*m-u*g)-n*(i*m-s*g)+h*(i*u-s*o),e[11]=-(r*(o*y-u*c)-n*(i*y-s*c)+d*(i*u-s*o)),e[12]=-(n*(c*f-p*g)-d*(o*f-l*g)+h*(o*p-l*c)),e[13]=r*(c*f-p*g)-d*(i*f-a*g)+h*(i*p-a*c),e[14]=-(r*(o*f-l*g)-n*(i*f-a*g)+h*(i*l-a*o)),e[15]=r*(o*p-l*c)-n*(i*p-a*c)+d*(i*l-a*o),e},copy:s,determinant:function(e){const t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],n=e[5],o=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],y=e[12],h=e[13],g=e[14],f=e[15];return(t*n-r*s)*(c*f-p*g)-(t*o-i*s)*(d*f-p*h)+(t*l-a*s)*(d*g-c*h)+(r*o-i*n)*(u*f-p*y)-(r*l-a*n)*(u*g-c*y)+(i*l-a*o)*(u*h-d*y)},equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],n=e[3],o=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],y=e[10],h=e[11],g=e[12],f=e[13],m=e[14],v=e[15],b=t[0],w=t[1],L=t[2],I=t[3],M=t[4],S=t[5],A=t[6],C=t[7],F=t[8],T=t[9],x=t[10],O=t[11],E=t[12],P=t[13],j=t[14],_=t[15],R=(0,a.FD)();return Math.abs(r-b)<=R*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-w)<=R*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(s-L)<=R*Math.max(1,Math.abs(s),Math.abs(L))&&Math.abs(n-I)<=R*Math.max(1,Math.abs(n),Math.abs(I))&&Math.abs(o-M)<=R*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=R*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-A)<=R*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-C)<=R*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(c-F)<=R*Math.max(1,Math.abs(c),Math.abs(F))&&Math.abs(p-T)<=R*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(y-x)<=R*Math.max(1,Math.abs(y),Math.abs(x))&&Math.abs(h-O)<=R*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(g-E)<=R*Math.max(1,Math.abs(g),Math.abs(E))&&Math.abs(f-P)<=R*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(m-j)<=R*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(v-_)<=R*Math.max(1,Math.abs(v),Math.abs(_))},exactEquals:O,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=r+r,o=i+i,l=a+a,u=r*n,d=i*n,c=i*o,p=a*n,y=a*o,h=a*l,g=s*n,f=s*o,m=s*l;return e[0]=1-c-h,e[1]=d+m,e[2]=p-f,e[3]=0,e[4]=d-m,e[5]=1-u-h,e[6]=y+g,e[7]=0,e[8]=p+f,e[9]=y-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=L,i=-t[0],a=-t[1],s=-t[2],n=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=i*i+a*a+s*s+n*n;return c>0?(r[0]=2*(o*n+d*i+l*s-u*a)/c,r[1]=2*(l*n+d*a+u*i-o*s)/c,r[2]=2*(u*n+d*s+o*a-l*i)/c):(r[0]=2*(o*n+d*i+l*s-u*a),r[1]=2*(l*n+d*a+u*i-o*s),r[2]=2*(u*n+d*s+o*a-l*i)),w(e,t,r),e},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:C,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:f,fromXRotation:v,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:b,frustum:F,getRotation:S,getScale:M,getTranslation:I,hasIdentityRotation:P,identity:o,invert:d,invertOrIdentity:u,isOrthoNormal:E,lookAt:T,mul:j,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,a,s,n){const o=1/(t-r),l=1/(i-a),u=1/(s-n);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(a+i)*l,e[14]=(n+s)*u,e[15]=1,e},perspective:function(e,t,r,i,a){const s=1/Math.tan(t/2);let n;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(n=1/(i-a),e[10]=(a+i)*n,e[14]=2*a*i*n):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),n=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(n+o),u=2/(a+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(n-o)*l*.5,e[9]=(a-s)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:h,rotateX:g,rotateY:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[0],n=t[1],o=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-u*i,e[1]=n*a-d*i,e[2]=o*a-c*i,e[3]=l*a-p*i,e[8]=s*i+u*a,e[9]=n*i+d*a,e[10]=o*i+c*a,e[11]=l*i+p*a,e},rotateZ:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[0],n=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+u*i,e[1]=n*a+d*i,e[2]=o*a+c*i,e[3]=l*a+p*i,e[4]=u*a-s*i,e[5]=d*a-n*i,e[6]=c*a-o*i,e[7]=p*a-l*i,e},scale:y,set:n,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:_,subtract:x,targetTo:function(e,t,r,i){const a=t[0],s=t[1],n=t[2],o=i[0],l=i[1],u=i[2];let d=a-r[0],c=s-r[1],p=n-r[2],y=d*d+c*c+p*p;y>0&&(y=1/Math.sqrt(y),d*=y,c*=y,p*=y);let h=l*p-u*c,g=u*d-o*p,f=o*c-l*d;return y=h*h+g*g+f*f,y>0&&(y=1/Math.sqrt(y),h*=y,g*=y,f*=y),e[0]=h,e[1]=g,e[2]=f,e[3]=0,e[4]=c*f-p*g,e[5]=p*h-d*f,e[6]=d*g-c*h,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=a,e[13]=s,e[14]=n,e[15]=1,e},translate:p,transpose:l},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>m});var i,a=r(32198),s=r(4576),n=r(66552),o=r(25482),l=r(86211),u=r(67076),d=r(91429),c=r(97348),p=r(43937),y=r(36005);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,s.Xy)(g,"orthometric");const f=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const a=(null!=t?c.B.get(t):null)??c.B.get(r);return a?new i({heightModel:0===a.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(a.unit.name),vertCRS:a.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,a.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,a.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,a.Cg)([(0,y.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,a.Cg)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,a.Cg)([(0,y.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,a.Cg)([(0,y.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,a.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,a.Cg)([(0,y.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,a.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>y});var i=r(32198),a=r(69540),s=r(25482),n=r(91429),o=r(58083),l=r(9093),u=r(67026),d=r(82534),c=r(51850),p=r(24770);let y=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(p.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,p.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,p.yo)(e)),this.rotationAngle=(0,p.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,u.x8)(h,(0,p.yo)(this.rotation),(0,p.$I)(this.rotation)),(0,o.o1)(e,h,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,i.Cg)([(0,n.MZ)()],y.prototype,"rotation",null),(0,i.Cg)([(0,n.MZ)()],y.prototype,"localMatrix",null),(0,i.Cg)([(0,n.MZ)()],y.prototype,"localMatrixInverse",null),y=(0,i.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],y);const h=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>f,AU:()=>y,g7:()=>g,i4:()=>d,ui:()=>c,vt:()=>u,yo:()=>h});var i=r(34727),a=r(58083),s=r(67026),n=r(82534),o=r(35522),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=u()){const r=(0,a.l)(b,e);return m(t,(0,i.KJ)((0,s.Xd)(t,r))),t}function p(e,t,r=u()){return(0,s.x8)(b,e,f(e)),(0,s.x8)(w,t,f(t)),(0,s.lw)(b,w,b),m(r,(0,i.KJ)((0,s.Xd)(r,b)))}function y(e,t,r,i=u()){return d(l.Cw,e,L),d(l.JP,t,I),d(l.Cb,r,M),p(L,I,L),p(L,M,i),i}function h(e){return e}function g(e){return e[3]}function f(e){return(0,i.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],b=(0,n.vt)(),w=(0,n.vt)(),L=(u(),u()),I=u(),M=u();r.d(t,["up",0,v])},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Re});var i=r(32198),a=r(52106),s=r(37838),n=r(69540),o=r(7762),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(25728),y=r(17676),h=r(36708),g=r(91429),f=r(88620),m=r(86738),v=r(99917),b=r(55156),w=r(60950),L=r(89808),I=r(99959);const M=Symbol("isSceneGraphicOrigin");var S;class A extends I.A{get[(S=M,w.ym)](){return this.layer}get[b.e](){return this.layer}get[L.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var C=r(4146),F=r(55726),T=r(52136),x=r(18768),O=r(69208),E=r(47685),P=r(34287),j=r(8303),_=r(25036),R=r(58947),U=r(82935),Z=r(60694),G=r(92009),D=r(4071),q=r(10873),$=r(15426),N=r(67202),k=r(17036),V=r(95466),H=r(30524),K=r(50805),W=r(20557),B=r(46499),Q=r(39383),J=r(37352),z=r(2976),Y=r(86390),X=r(25482);let ee=class extends X.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"field",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,g.$K)("esri.layers.support.RangeInfo")],ee);var te,re=r(56507),ie=r(4718),ae=r(87024),se=r(67076),ne=r(39829);let oe=te=class extends((0,X.T)(o.A.ofType(ne.A))){constructor(e){super(e)}clone(){return new te(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,v.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new se.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new ne.A;(0,v.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new te;return e.forEach(e=>r.add(ne.A.fromJSON(e,t))),r}};oe=te=(0,i.Cg)([(0,g.$K)("esri.layers.support.PolygonCollection")],oe);const le=oe;var ue,de=r(97159),ce=r(36005);let pe=ue=class extends X.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new le,this._geometriesSource=null}initialize(){this.addHandles((0,h.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,h.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=le.fromJSON(e,r):"web-scene"!==r.origin&&"portal-item"!==r.origin||(this._geometriesSource={url:(0,de.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,a=await(0,re.A)(r,{responseType:"json",signal:t?.signal}),s=e.toJSON(),n=a.data.map(e=>({...e,spatialReference:s}));this.geometries=le.fromJSON(n,i),this._geometriesSource=null}clone(){const e=new ue({geometries:(0,ie.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,g.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],pe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:le,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,ae.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],pe.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],pe.prototype,"readGeometries",null),pe=ue=(0,i.Cg)([(0,g.$K)("esri.layers.support.SceneFilter")],pe);const ye=pe;function he({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,a=null!=r,s=null!=t,n=a&&s&&t.lastUpdate!==r.getTime();return a&&(n||!s&&i?.minServerGen!==i?.serverGen)}var ge=r(84952);let fe=class extends X.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,g.MZ)({type:String})],fe.prototype,"endTimeField",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],fe.prototype,"startTimeField",void 0),fe=(0,i.Cg)([(0,g.$K)("esri.layers.support.SceneServiceTimeInfo")],fe);var me=r(96184),ve=r(8947),be=r(41214),we=r(97552),Le=r(24212),Ie=r(30291);async function Me(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Se(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Se(e){const{BlobReader:t,ZipReader:i,BlobWriter:a}=await Promise.all([r.e(511),r.e(9588)]).then(()=>r(9588)),s=[],n=new i(new t(e));return(await n.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new a;s.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(s)}var Ae=r(79677),Ce=r(10184),Fe=r(66480),Te=r(45671),xe=r(78553);const Oe=new Set(["3DObject","Point"]),Ee=(0,k.p)();let Pe=class extends((0,E.w6)((0,R.w6)((0,x.b)((0,P.q)((0,j.A)((0,_.j)((0,p.M)((0,O.d)((0,T.p)((0,n.OU)(C.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new A(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new o.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,c.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,$.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new V.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:K.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,$.C$)(this.associatedLayer)}get geometryType(){return _e[this.profile]||"mesh"}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:D.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:a,supportsUploadWithItemId:s,supportsGeometryUpdate:n,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:y,supportsUpdate:h,supportsDelete:g,supportsQuery:f,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:b}=e,w=e.operations.supportsChangeTracking,L=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:a,supportsGeometryUpdate:L&&n,supportsUploadWithItemId:s},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:f,supportsQueryAttachments:m,supportsEditing:p&&w,supportsAdd:L&&y&&w,supportsDelete:L&&g&&w,supportsUpdate:h&&w,supportsAsyncConvert3D:v},attachment:b}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&je[r]?je[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,H.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,H.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ve.L)(this,{origin:"service"},t),(0,H.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new we.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[i,{queryModels:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return a(this,i,e,t)}async queryModel(e,t){const[i,{queryModel:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return a(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,H.hL)(this.fieldsIndex,await(0,Te.TO)(this,(0,Te.D8)(this)));return(0,Fe.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new a.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(()=>r(78628));let a=t;await this.load();const s=this.associatedLayer;if(!s)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:n}=s,o=!!s.infoFor3D,u=a?.globalIdUsed??!0;if(o&&null==n)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(o&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,Z.Wo)(s.url)&&o&&null!=e.deleteFeatures&&null!=n&&(a={...a,globalIdToObjectId:await(0,$.GA)(s,e.deleteFeatures,n)}),i(this,s.source,e,a)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const a=await this.extractAndFilterFiles(e);(0,y.Te)(t);const s=a.reduce((e,t)=>(0,W.oF)(this.infoFor3D,t)?e+1:e,0);0===s&&i(new F.VP),s>1&&i(new F.XQ);const n=this.spatialReference,o=t.origin,u=await(0,v.projectAsync)(o??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:n}),n,t),c=n.isGeographic?"local":"georeferenced",{createWithExternalSource:p}=await Promise.all([r.e(6860),r.e(118),r.e(3354)]).then(()=>r(40118));(0,y.Te)(t);const h=p(u,{type:"client",files:a},{vertexSpace:c,transform:(0,Y.Z)(n),unitConversionDisabled:!0}),[g]=await this.uploadAssets([h],{...t,useAssetOrigin:!o});return g}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Me(e)).filter(e=>(0,W.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Oe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const a=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=a;break;case"vertex-reference-frame":r=!0,i=!a;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}get isUsedAsGroundLayer(){return!1}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,f.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],a=this.originIdOf(i),s=this.associatedLayer.originIdOf(i);a<s&&(2===s||3===s)&&t.setAtOrigin(i,this.associatedLayer[i],s)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,Z.Wo)(this.associatedLayer?.url)&&he(this)&&(0,f.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,G.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),a=await z.U.FeatureLayer();this.associatedLayer=new a({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,y.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,h.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,y.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,Le.XF)(d.A.getLogger(this),(0,Le.$7)("Mesh scene layers","relative-to-scene",e)),(0,Le.XF)(d.A.getLogger(this),(0,Le.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:a,customParameters:s,apiKey:n,signal:o}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const c=(0,ge.fj)(a,d.href),{data:p}=await(0,re.A)(c,{query:{f:"json",...s,token:n},responseType:"json",signal:o});return p}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(he({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const a=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:a,min:s,maxTimeStr:n,max:o}=i,l=t===r?a??s:n??o;return null!=l?new Date(l):null},[s,n]=await Promise.all([a(r),a(i)]);if(null!=r&&null==s||null!=i&&null==n)return;const o=new Ae.A({start:s,end:n});this.setAtOrigin("timeInfo",new me.A({endField:i,startField:r,fullTimeExtent:o}),"service")}};(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{selection:N.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Pe.prototype,"featureReduction",void 0),(0,i.Cg)([(0,g.MZ)({type:[ee],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Pe.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Pe.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Pe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["ArcGISSceneServiceLayer"]})],Pe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({...Ee.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"types",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"typeIdField",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"templates",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"formTemplate",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],Pe.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({type:J.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Pe.prototype,"floorInfo",void 0),(0,i.Cg)([(0,g.MZ)(Ee.outFields)],Pe.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)({type:K.W4,readOnly:!0,json:{read:!1},clonable:!1})],Pe.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],Pe.prototype,"readNodePages",null),(0,i.Cg)([(0,g.MZ)({type:[K.uV],readOnly:!0,clonable:!1})],Pe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.Ot],readOnly:!0,clonable:!1})],Pe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.L0],readOnly:!0,clonable:!1})],Pe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Pe.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Pe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:ye,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"filter",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Pe.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)(q.Yj)],Pe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,g.MZ)({type:String})],Pe.prototype,"geometryType",null),(0,i.Cg)([(0,g.MZ)(q.kF)],Pe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[B.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:Q.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Q.w},write:!0}})],Pe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(q.fV)],Pe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,xe.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Pe.prototype,"opacity",void 0),(0,i.Cg)([(0,g.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"priority",void 0),(0,i.Cg)([(0,g.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"semantic",void 0),(0,i.Cg)([(0,g.MZ)({types:be.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Pe.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Pe.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],Pe.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{read:!1}})],Pe.prototype,"editingEnabled",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"infoFor3D",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"relationships",null),(0,i.Cg)([(0,g.MZ)(q.M6)],Pe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Pe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)(q.zQ)],Pe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],Pe.prototype,"readObjectIdField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],Pe.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{read:!1}})],Pe.prototype,"displayField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],Pe.prototype,"readProfile",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Pe.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,g.MZ)(q.PY)],Pe.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,g.MZ)(U.B)],Pe.prototype,"useViewTime",null),(0,i.Cg)([(0,g.MZ)((0,q.U$)({disableServiceOrigin:!0,webDocumentOrigin:"web-scene"}))],Pe.prototype,"timeInfo",null),(0,i.Cg)([(0,g.MZ)({type:Ae.A,json:{read:!1,write:!1}})],Pe.prototype,"timeExtent",null),(0,i.Cg)([(0,g.MZ)({type:Ce.A,json:{read:!1,write:!1}})],Pe.prototype,"timeOffset",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Pe.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,g.MZ)({type:fe,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Pe.prototype,"serviceTimeInfo",void 0),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"isUsedAsGroundLayer",null),Pe=(0,i.Cg)([(0,g.$K)("esri.layers.SceneLayer")],Pe);const je={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},_e={"mesh-pyramids":"mesh",points:"point"},Re=Pe},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>y,MT:()=>h,VP:()=>g,WF:()=>d,Wt:()=>n,XQ:()=>f,hK:()=>p,nS:()=>c,uh:()=>o,xY:()=>l});var i=r(49186);const a="upload-assets",s=()=>new Error;class n extends i.A{constructor(){super(`${a}:unsupported`,"Layer does not support asset uploads.",s())}}class o extends i.A{constructor(){super(`${a}:no-glb-support`,"Layer does not support glb.",s())}}class l extends i.A{constructor(){super(`${a}:no-supported-source`,"No supported external source found",s())}}class u extends i.A{constructor(){super(`${a}:not-base-64`,"Expected gltf data in base64 format after conversion.",s())}}class d extends i.A{constructor(){super(`${a}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",s())}}class c extends i.A{constructor(e,t){super(`${a}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,s())}}class p extends i.A{constructor(e,t){super(`${a}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,s())}}class y extends i.A{constructor(e){super(`${a}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,s())}}class h extends i.A{constructor(){super(`${a}:convert3D-failed`,"convert3D failed.")}}class g extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class f extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(32198),a=r(53966),s=r(91429),n=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,a.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),a=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,a.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>y,Zk:()=>c});var i=r(32198),a=r(65529),s=r(4718),n=r(91429),o=r(20816);const l=new a.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function c(e,t,r=null,i=!1){const a=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:a.promise}),a}const p=Symbol();function y(e){return null!=e&&"object"==typeof e&&p in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,r){const i=new URL(e).host,a=o.Z3.get(i),s=e=>!e||e===a;return s(t)&&s(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let a=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:a,result:n}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=h(this),c=h(this)&&g(t,i,this.gdbVersion);if(!o||d&&!c||!l&&!u&&!a)return;const p=n.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:a}=r.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:a?a.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const a={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,a.historicMoment)&&this.emit("edits",a),a}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,a=t===this.url,s=h(this),n=h(this)&&g(t,r,this.gdbVersion),o=h(this)&&!g(t,this.gdbVersion,null);a&&s&&n&&o&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,o.w5)(e,t)}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"lastEditsEventDate",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],a),a}])},34287(e,t,r){var i=r(32198),a=r(49186),s=r(84952),n=r(91429),o=r(78888),l=r(89317),u=r(45917),d=r(49422),c=r(10873),p=r(6345),y=r(79677),h=r(59923),g=r(36005),f=r(43937);r.d(t,["q",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,d.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?y.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new a.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,u.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,p.Bu)(t,this.operationalLayerType,this.type))return(0,h.U4)(t,this),null;const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof a.A&&"web-document-write:property-required"===e.name).length;return(0,s.w8)(r?.url)?(t?.messages?.push(new a.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],r.prototype,"id",void 0),(0,i.Cg)([(0,g.w)("id",["id"])],r.prototype,"readId",null),(0,i.Cg)([(0,n.MZ)(c.C1)],r.prototype,"listMode",void 0),(0,i.Cg)([(0,f.K)("listMode")],r.prototype,"writeListMode",null),(0,i.Cg)([(0,n.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,n.MZ)(c.ke)],r.prototype,"opacity",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],r.prototype,"title",void 0),(0,i.Cg)([(0,f.K)("title"),(0,f.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,i.Cg)([(0,n.MZ)({type:y.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,g.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,f.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],r.prototype,"visible",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var i=r(32198),a=r(92602),s=r(70333),n=r(56507),o=r(60999),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(17676),y=r(84952),h=r(91429),g=r(77548),f=r(20655),m=r(80812),v=r(41318),b=r(10407),w=r(36005),L=r(43937);const I={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.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:i}=await r.e(1204).then(()=>r(41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:a}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!a.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:a}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",a)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),a=e===r.id;if(a&&r.portal.user)return this._getUserPrivileges(r,i);let n,o;if(a)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,y.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,d=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(a?await r.reload():(r=new m.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.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=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=f.A.getDefault();if(a&&a.loaded&&(0,y.S8)(a.restUrl)===(0,y.S8)(i))return a.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,y.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,i.Cg)([(0,h.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,L.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],M),M}])},25036(e,t,r){var i=r(32198),a=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(32198),a=r(91429),s=r(30524),n=r(96184),o=r(73133),l=r(79677),u=r(10184),d=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{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 i=r.timeOffset,a=o.j.fromJSON(r.timeOffsetUnits);return i&&a?new u.A({value:i,unit:a}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,a.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,a.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>o});var i,a=r(32198),s=r(25482),n=r(91429);let o=i=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,a.Cg)([(0,n.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,a.Cg)([(0,n.$K)("esri.layers.support.FeatureReductionSelection")],o)},37352(e,t,r){r.d(t,{A:()=>l});var i,a=r(32198),s=r(7762),n=r(25482),o=r(91429);let l=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,a.Cg)([(0,o.$K)("esri.layers.support.LayerFloorInfo")],l)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),a=r(53966),s=r(20437),n=r(95466),o=r(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.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(", ");a.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||a.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>f,JQ:()=>g,JZ:()=>A,ND:()=>v,R_:()=>n,U9:()=>h,_h:()=>w,be:()=>c,fE:()=>y,fu:()=>a,nr:()=>m,oF:()=>s,qv:()=>S,rP:()=>p,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function a(e,t){return null!=L(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function n(e,t){return I(function(e,t){const r=e.toLowerCase();return b(t).find(e=>M(e)===r)}(e,t))}function o(e,t){return I(L(e,t))}function l(e,t){return M(w(e,t))}function u(e,t){return o(e.name,t)??n(e.type,t)}function d(e,t,r){return n(e,r)??o(t,r)}function c(e,t){if(!e||!w(e,t))return;const r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function p(e,t){return(e??[]).map(e=>c(e,t)).filter(e=>!!e)}function y(e,t){return I(t.find(r=>c(I(r),t)===e))}function h({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function g(e){const t=h(e);return null!=t&&e.editFormats.includes(t)}function f(e){if(!e)return null;const t=h(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e);let i=null;for(const a of e.queryFormats){if(a===t)return a;a===r&&(i=a)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function b(e){return[...i,...e]}function w(e,t){return b(t).find(t=>I(t)===e)}function L(e,t){const r=e.toLowerCase();return b(t).find(e=>S(e).some(e=>r.endsWith(e)))}function I(e){return e?.[0]}function M(e){return e?.[1].toLowerCase()}function S(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function A(e){return e.tables?.find(e=>"assetMaps"===e.role)}},6345(e,t,r){r.d(t,{Bu:()=>b,VH:()=>v});var i=r(44208);const a={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,i.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},n={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},c={ArcGISFeatureLayer:"FeatureLayer"},p={...s,LinkChartLayer:"LinkChartLayer"},y=a,h=n,g={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},f=n;function m(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return u;case"tables":return c;default:return d}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return y;case"tables":return h;default:return p}default:switch(e.layerContainerType){case"basemap-base-layers":return a;case"tables":return n;case"ground":case"basemap-ground-layers":return;default:return s}}}function v(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return m(e)?.[t]??"UnknownLayer"}function b(e,t,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1}const i=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return f;default:return g}return m(e)}(e)?.[t];return null!=i&&"UnknownLayer"!==i&&"UnsupportedLayer"!==i}},86390(e,t,r){r.d(t,{Z:()=>s});var i=r(86211),a=r(73836);function s(e){const t=1/(0,i.GA)(e,1);return 1!==t?new a.A({scale:[t,t,t]}):void 0}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),a=r(53966),s=r(84952),n=r(60694),o=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,a){(0,n.LS)(this,e,r,t,a)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const r=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:a.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,s.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString()))),i}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>n,OM:()=>u,Sm:()=>d,Y:()=>o,bK:()=>l,sQ:()=>c});var i=r(99917),a=r(16930),s=r(28735);function n(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?n(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=a.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,a=t.user?.privileges;let s=!a||a.includes("features:user:edit"),n=!!r&&!!a?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?n=s=!0:n&&(s=!0),{features:{edit:s,fullEdit:n},content:{updateItem:o}}}r.d(t,["mm",0,p])},85648(e,t,r){r.d(t,{n:()=>a});var i=r(84952);function a(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||n}(e.url)}(e)]||o}const s={},n="text/plain",o=s[n],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>n});var i=r(60999),a=r(17676),s=r(67076);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const o=await(0,i.Ke)(n.populateFromStyle());if((0,a.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},20816(e,t,r){r.d(t,{We:()=>o,ZJ:()=>l,w5:()=>u});var i=r(56507);const a=(0,r(13069).vD)(),s=new Map,n=new Map;async function o(e,t,r){if(!e||!r)return!1;if(!t)return!0;const a=new URL(e).host;let n=s.get(a);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function l(e,t,i=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=n.get(s)?.entries();if(o)for(const[e,n]of o)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),o=await t(s,e,new i({sessionId:a,moment:n.moment}));return o.success&&n.stack?.clearForwardEdits(),o.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=n.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,a,"Z3",0,s])},45671(e,t,r){r.d(t,{D8:()=>s,TO:()=>a});var i=r(30524);async function a(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:a}=t,{objectIdField:s,typeIdField:n,globalIdField:o,relationships:l}=e;if(r.includes("*"))return["*"];const u=a?(0,i.eX)(e):[],d=(0,i.DB)(e.fieldsIndex,[...r,...u]);return n&&d.push(n),d&&s&&e.fieldsIndex?.has(s)&&!d.includes(s)&&d.push(s),d&&o&&e.fieldsIndex?.has(o)&&!d.includes(o)&&d.push(o),l?.forEach(t=>{const{keyField:r}=t;d&&r&&e.fieldsIndex?.has(r)&&!d.includes(r)&&d.push(r)}),d}function s(e,t){return e&&"object"==typeof e?t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null:null}}}]);
@@ -1,29 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,9480],{46130(e,t,r){r.d(t,{v:()=>n});var o=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},56512(e,t,r){function o(e){let t,r,o=[],n=!1;return function(...i){return n&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(i,o)||(r=e.apply(this,i),t=this,o=i,n=!0),r}}r.d(t,{B:()=>o})},76553(e,t,r){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},65806(e,t,r){r.d(t,{g:()=>s});var o=r(51850),n=r(99917),i=r(9762);function s(e,t,r,o){if((0,n.canProjectWithoutEngine)(e.spatialReference,r))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,i.projectBuffer)(a,e.spatialReference,0,t,r,0);const s=(0,n.tryProject)(e,r,o);return!!s&&(t[0]=s.x,t[1]=s.y,t[2]=s.z??0,!0)}const a=(0,o.vt)()},27993(e,t,r){r.d(t,{F:()=>a});var o=r(99917),n=r(16930),i=r(9762),s=r(65806);function a(e,t,r,n){return!(null==t||null==n||e.length<2)&&((0,o.canProjectWithoutEngine)(t,n)?(0,i.projectBuffer)(e,t,0,r,n,0,1):(c.x=e[0],c.y=e[1],c.z=e[2],c.spatialReference=t,(0,s.g)(c,r,n)))}const c={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n.A.WGS84,type:"point"}},52136(e,t,r){var o=r(32198),n=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},58947(e,t,r){r.d(t,{w6:()=>A,qM:()=>M});var o=r(32198),n=r(56507),i=r(49186),s=r(53966),a=r(17676),c=r(91429),l=r(46130),u=r(5443),d=r(54239),p=r(16930),f=r(60694),h=r(10873),y=r(83898),m=r(73179);var v=r(20655),g=r(80812),w=r(88788),b=r(91682),x=r(26121),C=r(36005);const A=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return S(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const o=null==e.spatialReference?{...e,spatialReference:S(t)}:e;return u.A.fromJSON(o,r)}const o=t.store,n=S(t);return null==n||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<I)?null:new u.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:n})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,o=null!=r.version?r.version.toString():"";return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,f.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){const e=(0,f.qg)(this.url);null!=e&&(r=e.title)}const o=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&o&&(r=o+" - "+r),(0,f.cr)(r)}get parsedUrl(){return(0,m.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,s.A.getLogger(this),t),this.indexInfo.catch(()=>{});const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,o=t.rootPage?.nodes?.[r];M(e,o?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<I)return;const o=r[2],n=r[3];e.zmin=o-n,e.zmax=o+n}}async _fetchService(e){if(null==this.url)throw new i.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,n.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){const t=(await(0,n.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...T,...t};let o=g.default.from(e);if(!o)throw new i.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);const n=o.portal||v.A.getDefault();await this._ensureLoadBeforeSave(),o.type=R,o.portal=n;const s=(0,w.m)(o,"portal-item",{withResources:!0}),a={layers:[this.write({},s)]};return await Promise.all(s.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,s,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),U(o,r,1),await n.signIn(),await n.user.addItem({item:o,folder:r?.folder,data:a}),await(0,b.r)(this.resourceReferences,s),this.portalItem=o,(0,l.v)(s),s.portalItem=o,o}async _save(e){const t={...T,...e};if(!this.portalItem)throw new i.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==R)throw new i.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${R}"`);await this._ensureLoadBeforeSave();const r=(0,w.m)(this.portalItem,"portal-item",{withResources:!0}),o=this.write({},r),s=await async function(e,t){const r=await e.fetchData("json")??{};return Array.isArray(r.layers)||(r.layers=await async function(e,t){const r=await async function(e){const t=P(e.url);if(!t)return null;const r=(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data.layers;if(!Array.isArray(r))return null;const o=r.filter(({id:e})=>null!=e).map(({id:e})=>({id:e}));return o.length?o:null}(e).catch(()=>null);return r?.some(({id:e})=>e===t.id)?r:[t]}(e,t)),function(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}(r.layers,t),r}(this.portalItem,o);await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(s,r,t);const a=function(e,t){return t&&function(e,t){const r=P(e);return!!r&&r===_(t).url}(e.url,t)?e.url:t}(this.portalItem,this.url);return a&&(this.portalItem.url=a),this.portalItem.title||(this.portalItem.title=this.title),U(this.portalItem,t,0),await(0,b.S)(this.portalItem,s,this.resourceReferences,r),(0,l.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const o=r?.validationOptions;(0,x.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const n=o?.enabled,a=null;if(n&&a){const t=(await a()).validate(e,r.portalItemLayerType);if(!t.length)return;const n=`Layer item did not validate:\n${t.join("\n")}`;if(s.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${n}`),"throw"===o.failPolicy){const e=t.map(e=>new i.A("sceneservice:schema-validation",e));throw new i.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,c.MZ)(h.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,c.MZ)({type:p.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,C.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,c.MZ)({type:u.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,C.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,c.MZ)({readOnly:!0,type:d.A})],r.prototype,"heightModelInfo",void 0),(0,o.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,C.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,c.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,c.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,C.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,C.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,c.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,c.MZ)((0,m.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,c.$K)("esri.layers.mixins.SceneService")],r),r},I=-1e38;function S(e){if(null!=e.spatialReference)return p.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=o?new p.A(o):null}function M(e,t){if(null==t?.center||null==t.halfSize)throw new i.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<I)return;const r=t.halfSize,o=t.center[2],n=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-n,e.zmax=o+n}function U(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const o=t.getTypeKeywords();for(const t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const R="Scene Service",T={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}},F={layerId:null};function P(e){if(!e)return null;const t=_(e);if(null!=t.layerId)return null;const r=(0,f.qg)(t.url);return null==r||"SceneServer"===r.serverType?t.url:null}function _(e){return(0,f.HZ)({layer:F,url:e,nonStandardUrlAllowed:!0})}},83898(e,t,r){r.d(t,{F:()=>i});var o=r(56507),n=r(49186);async function i(e,t,r,i,s,a,c){let l=null;if(null!=r){const t=`${e}/nodepages/`,n=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(n,{query:{f:"json",...i,token:s},responseType:"json",signal:c})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=a&&a.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",n,e),l=e}}if(!t)return null;const u=t?.split("/").pop(),d=`${e}/nodes/`,p=d+u;try{return{type:"node",rootNode:(await(0,o.A)(p,{query:{f:"json",...i,token:s},responseType:"json",signal:c})).data,urlPrefix:d}}catch(e){throw new n.A("sceneservice:root-node-missing","Root node missing.",{pageError:l,nodeError:e,url:p})}}},50805(e,t,r){r.d(t,{L0:()=>m,Ot:()=>p,W4:()=>a,uV:()=>u});var o=r(32198),n=r(25482),i=r(91429),s=r(93223);let a=class extends n.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o.Cg)([(0,i.MZ)({type:Number})],a.prototype,"nodesPerPage",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],a.prototype,"rootIndex",void 0),(0,o.Cg)([(0,i.MZ)({type:String})],a.prototype,"lodSelectionMetricType",void 0),a=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],a);let c=class extends n.o{constructor(){super(...arguments),this.factor=1}};(0,o.Cg)([(0,i.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],c.prototype,"id",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],c.prototype,"factor",void 0),c=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],c);let l=class extends n.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o.Cg)([(0,i.MZ)({type:[Number]})],l.prototype,"baseColorFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:c})],l.prototype,"baseColorTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:c})],l.prototype,"metallicRoughnessTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],l.prototype,"metallicFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],l.prototype,"roughnessFactor",void 0),l=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],l);let u=class extends n.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o.Cg)([(0,s.e)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,o.Cg)([(0,s.e)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,o.Cg)([(0,i.MZ)({type:c})],u.prototype,"normalTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:c})],u.prototype,"occlusionTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:c})],u.prototype,"emissiveTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],u);let d=class extends n.o{};(0,o.Cg)([(0,i.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,o.Cg)([(0,s.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],d);let p=class extends n.o{constructor(){super(...arguments),this.atlas=!1}};(0,o.Cg)([(0,i.MZ)({type:[d]})],p.prototype,"formats",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],p.prototype,"atlas",void 0),p=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],p);let f=class extends n.o{};(0,o.Cg)([(0,s.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],f.prototype,"type",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],f.prototype,"component",void 0),f=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],f);let h=class extends n.o{};(0,o.Cg)([(0,s.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,o.Cg)([(0,i.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let y=class extends n.o{constructor(){super(...arguments),this.offset=0}};(0,o.Cg)([(0,i.MZ)({type:Number})],y.prototype,"offset",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"position",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"normal",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uv0",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"color",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uvRegion",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"featureId",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"faceRange",void 0),(0,o.Cg)([(0,i.MZ)({type:h})],y.prototype,"compressedAttributes",void 0),y=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],y);let m=class extends n.o{};(0,o.Cg)([(0,s.e)({triangle:"triangle"})],m.prototype,"topology",void 0),(0,o.Cg)([(0,i.MZ)()],m.prototype,"geometryBuffers",void 0),m=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],m)},88788(e,t,r){r.d(t,{m:()=>s,v:()=>i});var o=r(84952),n=r(20655);function i(e,t){return{...a(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,o.An)(r?.forceNewItemContext?null:e.itemUrl);return{...a(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function a(e,t,r){return{origin:t,url:(0,o.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>a,bg:()=>p,cL:()=>d,fetchResources:()=>s,removeAllResources:()=>l,removeResource:()=>c});var o=r(56507),n=r(49186),i=r(84952);async function s(e,t={},r){await e.load(r);const o=(0,i.fj)(e.itemUrl,"resources"),{start:n=1,num:s=10,sortOrder:a="asc",sortField:c="resource"}=t,l={query:{start:n,num:s,sortOrder:a,sortField:c,token:e.apiKey},signal:r?.signal},u=await e.portal.request(o,l);return{total:u.total,nextStart:u.nextStart,resources:u.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function a(e,t,r,o){const s=new Map;for(const{resource:e,content:o,compress:i,access:a}of t){if(!e.hasPath())throw new n.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,c]=u(e.path),l=`${t}/${i??""}/${a??""}`;s.has(l)||s.set(l,{prefix:t,compress:i,access:a,files:[]}),s.get(l).files.push({fileName:c,content:o})}await e.load(o);const a=(0,i.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:i,files:c}of s.values()){const s=25;for(let l=0;l<c.length;l+=s){const u=c.slice(l,l+s),d=new FormData;t&&"."!==t&&d.append("resourcesPrefix",t),r&&d.append("compress","true"),i&&d.append("access",i);let p=0;for(const{fileName:e,content:t}of u)d.append("file"+ ++p,t,e);d.append("f","json");try{await e.portal.request(a,{method:"post",body:d,signal:o?.signal})}catch(e){if(o?.ignoreResourceCopyErrors&&e instanceof n.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}}async function c(e,t,r){if(!t.hasPath())throw new n.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const o=(0,i.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function l(e,t){await e.load(t);const r=(0,i.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function u(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function d(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function p(e,t){if(!e.hasPath())return null;const[r,,o]=function(e){const[t,r]=function(e){const t=(0,i.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,n]=u(t);return[o,n,r]}(e.path);return e.portalItem.resourceFromPath((0,i.fj)(r,t+o))}},24212(e,t,r){r.d(t,{$7:()=>c,B:()=>a,M7:()=>d,XF:()=>u,tW:()=>l,w7:()=>s});var o=r(56512),n=r(86211),i=r(16271);function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?p:f}(e).mode}(null==e||(e.hasZ??!1),t)}function a(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function c(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function u(e,t){t&&e.warn(".elevationInfo=",t)}function d(e){return(e?.offset??0)*(0,i.Ao)(e?.unit)}(0,o.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const o="unknown"!==t&&t?t:"meters",i=(0,n.mq)(r);return i?(0,n.oU)(e,o,i):0});const p={mode:"absolute-height",offset:0},f={mode:"on-the-ground",offset:null}},59418(e,t,r){r.d(t,{qs:()=>m,wH:()=>y,MA:()=>p,E5:()=>f,m0:()=>g});var o=r(49186),n=r(4718),i=r(53966),s=r(34275),a=r(37203);const c=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function l(e,t,r){let n="",i=0;for(;i<r;){const s=e[t+i];if(s<128)n+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];n+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];n+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new o.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);n+=String.fromCharCode(e,t)}else n+=String.fromCharCode(a);i+=4}}}return n}function u(e,t){const r={byteOffset:0,byteCount:0,fields:Object.create(null)};let o=0;for(let n=0;n<t.length;n++){const i=t[n],s=i.valueType||i.type,a=b[s];r.fields[i.property]=a(e,o),o+=w[s].BYTES_PER_ELEMENT}return r.byteCount=o,r}function d(e,t,r){const n=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(n.push(l(r,a,i-1)),0!==r[a+i-1])throw new o.A("string-array-error","Invalid string array: missing null termination.")}else n.push(null);a+=i}return n}function p(e,t){return new(0,w[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t){if(!e)return null;const r=e[t];return(0,s.IY)(e)?-32768===r?null:r:(0,s._G)(e)?r===s.h2?null:r:r!=r?null:r}function h(e,t,r){if(t!==e&&c().error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function y(e,t){const r=u(e,t&&t.header);let o=r.byteCount;const n={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},i=r.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const r={...t.vertexAttributes[e],byteOffset:o,count:s},i=v[e]||"_"+e;n.vertexAttributes[i]=r,o+=C(r.valueType)*r.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){n.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const r={...t.faces[e],byteOffset:o,count:a};n.faces[e]=r,o+=C(r.valueType)*r.valuesPerElement*a}}const c=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&c){n.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const r={...t.featureAttributes[e],byteOffset:o,count:c};n.featureAttributes[e]=r,o+=("UInt64"===r.valueType?8:C(r.valueType))*r.valuesPerElement*c}}return h(o,e.byteLength,"geometry"),n.byteCount=o-n.byteOffset,n}function m(e,t){return e&&e.compressedAttributes&&"draco"===e.compressedAttributes.encoding?function(e){const t={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(const r of e)switch(r){case"position":break;case"normal":t.normal=!0;break;case"uv0":t.uv0=!0;break;case"color":t.color=!0;break;case"uv-region":t.uvRegion=!0;break;case"feature-index":t.featureIndex=!0}return t}(e.compressedAttributes.attributes):e?function(e){return{isDraco:!1,isLegacy:!1,color:null!=e.color,normal:null!=e.normal,uv0:null!=e.uv0,uvRegion:null!=e.uvRegion,featureIndex:null!=e.faceRange&&null!=e.featureId}}(e):function(e){const t={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(const r of e.ordering)if(e.vertexAttributes[r])switch(r){case"position":break;case"normal":t.normal=!0;break;case"color":t.color=!0;break;case"uv0":t.uv0=!0;break;case"region":t.uvRegion=!0}return e.featureAttributes&&e.featureAttributeOrder&&(t.featureIndex=!0),t}(t)}const v={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(e,t,r,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,a.mb)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint8Array(e):e.length<1024?Array.from(e):e}((0,a.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,a.Ax)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint16Array(e):e.length<1024?Array.from(e):e}((0,a.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new o.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const s=function(e,t,r){const i=null!=t.header?u(e,t.header):{byteOffset:0,byteCount:0,fields:{count:r}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const r=t.ordering[e],c=(0,n.o8)(t[r]);if(c.count=i.fields.count??0,"String"===c.valueType){if(c.byteOffset=a,c.byteCount=i.fields[r+"ByteCount"],"UTF-8"!==c.encoding)throw new o.A("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new o.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!x(c.valueType))throw new o.A("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const e=C(c.valueType);a+=a%e!==0?e-a%e:0,c.byteOffset=a,c.byteCount=e*c.valuesPerElement*c.count}}a+=c.byteCount??0,s.entries[r]=c}return s.byteCount=a-s.byteOffset,s}(t,e,r);h(s.byteOffset+s.byteCount,t.byteLength,"attribute");const l=s.entries.attributeValues||s.entries.objectIds;if(l){if("String"===l.valueType){const e=s.entries.attributeByteCounts,r=p(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,l);return l.timeEncoding?function(e,t,r){return d(e,t,r).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,r,o):d(e.count,r,o)}return i?p(t,l):function(e,t){const r=p(e,t);if(r.length>=1024)return r;const o=new Array;return r.forEach((e,t)=>o.push(f(r,t))),o}(t,l)}throw new o.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function x(e){return w.hasOwnProperty(e)}function C(e){return x(e)?w[e].BYTES_PER_ELEMENT:0}},25992(e,t,r){r.d(t,{C:()=>a});var o=r(9093),n=r(51850),i=r(73941),s=r(48353);function a(e,t,r,a,c){const l="east-north-up"===r?e.center:function(e,t,r){const o=(0,n.vt)(),s=e.radius,a=2**(4*Math.ceil(Math.log(s)*Math.LOG2E/4)+1);if(r.isGeographic){const t=a/(0,i.tO)(r).radius*180/Math.PI,n=Math.round(e.center[1]/t),s=Math.max(-90,Math.min(90,n*t)),c=t/Math.cos((Math.abs(s)-t/2)/180*Math.PI),l=Math.round(e.center[0]/c)*c;o[0]=l,o[1]=s}else{const t=Math.round(e.center[0]/a),r=Math.round(e.center[1]/a);o[0]=t*a,o[1]=r*a}const c=e.center[2]+t,l=Math.round(c/a);return o[2]=l*a,o}(e,t,a),u=(0,o.vt)();return(0,s.l)(a,l,u,c),u}},66480(e,t,r){r.d(t,{Rm:()=>h,Dd:()=>y,s1:()=>f});var o=r(56507),n=(r(4576),r(49186)),i=(r(44208),r(58083),r(9093)),s=(r(35522),r(51850)),a=(r(99917),r(16930)),c=(r(27993),r(19419));r(39516),r(30524),r(97552);var l=r(59418),u=(r(25992),r(90629),r(91829));(0,u.fA)(0,0,0,.2);(0,u.fA)(0,0,0,.2),r(34727);var d=r(57005);function p(e){return e?parseInt(e.slice(e.lastIndexOf("/")+1),10):void 0}async function f(e,t,r,n,i,s,a,c){const u=[];for(const o of t)if(o&&i.includes(o.name)){const t=`${e}/nodes/${r}/attributes/${o.key}/0`;u.push({url:t,storageInfo:o})}const d=await Promise.allSettled(u.map(e=>(0,o.A)(e.url,{responseType:"array-buffer",query:{...a,token:s},signal:c?.signal}).then(t=>(0,l.m0)(e.storageInfo,t.data)))),p=[];for(const e of n){const t={};for(let r=0;r<d.length;r++){const o=d[r];if("fulfilled"===o.status){const n=o.value;t[u[r].storageInfo.name]=(0,l.E5)(n,e)}}p.push(t)}return p}function h(e){const t=e.store,r=t.indexCRS||t.geographicCRS,o=void 0===r?t.indexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-index-and-no-layer-spatial-reference","Found indexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-index-incompatible","The indexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}const i=r?new a.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}function y(e){const t=e.store,r=t.vertexCRS||t.projectedCRS,o=void 0===r?t.vertexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-vertex-and-no-layer-spatial-reference","Found vertexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-vertex-incompatible","The vertexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}const i=r?new a.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}r(47187),(0,c.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,c.vt)(),(0,c.vt)(),new d.ab,(0,s.vt)(),new Array(72),(0,i.vt)()},37203(e,t,r){r.d(t,{Ax:()=>f,Me:()=>a,mb:()=>d});var o=r(49186);const n=!0;function i(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+0,10)),version:t.getUint16(r+10,n),checksum:t.getUint32(r+12,n)}}function s(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),minX:e.getFloat64(t+8,n),minY:e.getFloat64(t+16,n),minZ:e.getFloat64(t+24,n),maxX:e.getFloat64(t+32,n),maxY:e.getFloat64(t+40,n),maxZ:e.getFloat64(t+48,n),errorX:e.getFloat64(t+56,n),errorY:e.getFloat64(t+64,n),errorZ:e.getFloat64(t+72,n),count:e.getUint32(t+80,n),reserved:e.getUint32(t+84,n)}}function a(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:a}=i(e,t,r);if(r+=16,"LEPCC "!==n)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");const l=s(t,r);if(r+=88,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const u=new Float64Array(3*l.count),d=[],p=[],f=[],h=[];if(r=c(e,r,d),r=c(e,r,p),r=c(e,r,f),r=c(e,r,h),r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let y=0,m=0;for(let e=0;e<d.length;e++){m+=d[e];let t=0;for(let r=0;r<p[e];r++){t+=f[y];const e=h[y];u[3*y]=Math.min(l.maxX,l.minX+2*l.errorX*t),u[3*y+1]=Math.min(l.maxY,l.minY+2*l.errorY*m),u[3*y+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*e),y++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:u}}function c(e,t,r){const o=[];t=l(e,t,o);const n=[];for(let i=0;i<o.length;i++){n.length=0,t=l(e,t,n);for(let e=0;e<n.length;e++)r.push(n[e]+o[i])}return t}function l(e,t,r){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,c=!!(32&s),l=(192&s)>>6;let u=0;if(0===l)u=i.getUint32(1,n),t+=5;else if(1===l)u=i.getUint16(1,n),t+=3;else{if(2!==l)throw new o.A("lepcc-decode-error","Bad count type");u=i.getUint8(1),t+=2}if(c)throw new o.A("lepcc-decode-error","LUT not implemented");const d=Math.ceil(u*a/8),p=new Uint8Array(e,t,d);let f=0,h=0,y=0;const m=-1>>>32-a;for(let e=0;e<u;e++){for(;h<a;)f|=p[y]<<h,h+=8,y+=1;r[e]=f&m,f>>>=a,h-=a,h+a>32&&(f|=p[y-1]>>8-h)}return t+y}function u(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),count:e.getUint32(t+8,n),colorMapCount:e.getUint16(t+12,n),lookupMethod:e.getUint8(t+14),compressionMethod:e.getUint8(t+15)}}function d(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:s}=i(e,t,r);if(r+=16,"ClusterRGB"!==n)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");const a=u(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");if((2===a.lookupMethod||1===a.lookupMethod)&&0===a.compressionMethod){if(3*a.colorMapCount+a.count+r!==e.byteLength||a.colorMapCount>256)throw new o.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,r,3*a.colorMapCount),n=new Uint8Array(e,r+3*a.colorMapCount,a.count),i=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++){const r=n[e];i[3*e]=t[3*r],i[3*e+1]=t[3*r+1],i[3*e+2]=t[3*r+2]}return i}if(0===a.lookupMethod&&0===a.compressionMethod){if(3*a.count+r!==e.byteLength||0!==a.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(a.lookupMethod<=2&&1===a.compressionMethod){if(r+3!==e.byteLength||1!==a.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");const n=t.getUint8(r),i=t.getUint8(r+1),s=t.getUint8(r+2),c=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++)c[3*e]=n,c[3*e+1]=i,c[3*e+2]=s;return c}throw new o.A("lepcc-decode-error","Bad method "+a.lookupMethod+","+a.compressionMethod)}function p(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),count:e.getUint32(t+8,n),scaleFactor:e.getUint16(t+12,n),bitsPerPoint:e.getUint8(t+14),reserved:e.getUint8(t+15)}}function f(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:s}=i(e,t,r);if(r+=16,"Intensity "!==n)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");const a=p(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const c=new Uint16Array(a.count);if(8===a.bitsPerPoint){if(a.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,r,a.count);for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}else if(16===a.bitsPerPoint){if(2*a.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,r,a.count);for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}else{const t=[];if(l(e,r,t)!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}return c}},49255(e,t,r){function o(e){return function(e){return function(e){return function(e){return s(e)||function(e){return 10===e||11===e}(e)}(e)||function(e){return 3===e}(e)}(e)||function(e){return 4===e}(e)}(e)||function(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}(e)}function n(e){return 1===e}function i(e){return 2===e}function s(e){return 0===e||function(e){return n(e)||i(e)}(e)}r.d(t,{Rb:()=>i,_$:()=>n,_o:()=>s,uw:()=>o})},29941(e,t,r){r.d(t,{v:()=>i});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.output=0,this.hasEmission=!1,this.useFloatBlend=!0}}(0,o.Cg)([(0,n.W)({count:12})],i.prototype,"output",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"hasEmission",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},53466(e,t,r){r.d(t,{U:()=>n});var o=r(31821);function n(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() {
2
- vuv0 = uv0;
3
- vuvRegion = uvRegion;
4
- }`);default:t.textureCoordinateType;case 0:return void e.vertex.code.add(o.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(e,t,r){r.d(t,{r:()=>s});var o=r(53466),n=r(31821);function i(e){e.fragment.code.add(n.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
5
- vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
6
- vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
7
- float maxdUV = 0.125;
8
- vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
9
- vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
10
- return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
11
- }`)}function s(e,t){const{textureCoordinateType:r}=t;if(0===r||3===r)return;e.include(o.U,t);const s=2===r;s&&e.include(i),e.fragment.code.add(n.H`
12
- vec4 textureLookup(sampler2D tex, vec2 uv) {
13
- return ${s?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
14
- }
15
- `)}},47187(e,t,r){r.d(t,{zp:()=>g});var o=r(32198),n=r(34727),i=r(49255),s=r(29941),a=r(99208),c=r(65261),l=r(40710),u=r(33079),d=r(28421),p=r(20304),f=r(31821),h=r(15976),y=r(63761),m=r(51976);r(72458);class v extends s.v{constructor(){super(...arguments),this.emissionSource=0}}function g(e,t){const{hasEmission:r,emissionSource:o,hasEmissiveTextureTransform:s,bindType:m}=t;if(!(0,i._o)(t.output)||!r)return;const v=e.fragment;if(v.include(c.C),0===o)return void v.code.add("vec4 getEmissions(vec3 symbolColor) { return vec4(0.0);}");const g=3===o||4===o||5===o;g&&(e.include(a.r,t),v.uniforms.add(1===m?new y.N("texEmission",e=>e.textureEmissive):new h.o("texEmission",e=>e.textureEmissive)));const w=2===o||g;if(w&&v.uniforms.add(1===m?new u.t("emissiveBaseColor",e=>e.emissiveBaseColor):new l.W("emissiveBaseColor",e=>e.emissiveBaseColor)),function({emissionSource:e}){return 0===e||1===e||2===e||3===e}(t)){const e=e=>(0,n.qE)(e??0,0,16);v.uniforms.add(1===m?new p.m("emissiveStrength",t=>e(t.emissiveStrength)):new d.J("emissiveStrength",t=>e(t.emissiveStrength)))}const b=7===o,x=5===o,C=1===o||6===o||b;v.code.add(f.H`vec4 getEmissions(vec3 symbolColor) {
16
- vec4 emissions =`),w?x?v.code.add("emissiveSource == 0 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(emissiveBaseColor, 1.0)"):C?b?v.code.add("emissiveSource == 0 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(0.0)"),v.code.add(";"),g&&(x?v.code.add(f.H`
17
- if(emissiveSource == 0) {
18
- vec4 emissiveFromTex = textureLookup(texEmission, ${s?"emissiveUV":"vuv0"});
19
- emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);
20
- }
21
- `):v.code.add(`vec4 emissiveFromTex = textureLookup(texEmission, ${s?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`),v.code.add("emissions.a = emissions.rgb == vec3(0.0) ? 0.0: emissions.a;")),v.code.add("\n emissions.rgb *= emissiveStrength;\n return emissions;\n }\n ")}(0,o.Cg)([(0,m.W)({count:8})],v.prototype,"emissionSource",void 0),(0,o.Cg)([(0,m.W)()],v.prototype,"hasEmissiveTextureTransform",void 0)},65261(e,t,r){r.d(t,{C:()=>i});var o=r(40876),n=r(31821);function i(e){e.constants.add("GAMMA","float",2.2).constants.add("INV_GAMMA","float",o.iw).code.add(n.H`vec3 delinearizeGamma(vec3 color) {
22
- return pow(color, vec3(INV_GAMMA));
23
- }
24
- vec4 delinearizeGamma(vec4 color) {
25
- return vec4(delinearizeGamma(color.rgb), color.a);
26
- }
27
- vec3 linearizeGamma(vec3 color) {
28
- return pow(color, vec3(GAMMA));
29
- }`)}},40710(e,t,r){r.d(t,{W:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",2,(o,n,i,s)=>o.setUniform3fv(e,t(n,i,s),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",1,(o,n,i)=>o.setUniform3fv(e,t(n,i),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",2,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",1,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},15976(e,t,r){r.d(t,{o:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"sampler2D",2,(o,n,i)=>o.bindTexture(e,t(n,i),r?.(n,i)))}}},63761(e,t,r){r.d(t,{N:()=>n});var o=r(74333);class n extends o.n{constructor(e,t){super(e,"sampler2D",1,(r,o,n)=>r.bindTexture(e,t(o,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const o=(e,...t)=>{let r="";for(let o=0;o<t.length;o++)r+=e[o]+t[o];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}o.int=e=>e.toFixed(),o.uint=e=>`${Math.max(0,e).toFixed()}u`,o.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,o.float=e=>e.toPrecision(8),r.d(t,["H",0,o])},51976(e,t,r){r.d(t,{K:()=>a,W:()=>c});var o=r(49186),n=r(4576);class i{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var s=r(65786);class a extends s.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(e=this.key){const t=this._parameterBits;this._parameterBits=[...e.bits];const r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function c(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);const n=e.count||2,i=Math.ceil(Math.log2(n)),s=t._parameterBits;let a=0;for(;s[a]+i>16;)a++,a>=s.length&&s.push(0);const c=s[a],l=(1<<i)-1<<c;s[a]+=i,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[a]&l)>>c},set(t){const n=this._parameterBits[a];if((n&l)>>c!==t){if(this._key=null,this._parameterBits[a]=n&~l|+t<<c&l,"number"!=typeof t)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[a]&l)>>c)},set(e){const t=this._parameterBits[a];if(!!((t&l)>>c)!==e&&(this._key=null,this._parameterBits[a]=t&~l|+e<<c,"boolean"!=typeof e))throw new o.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},72458(e,t,r){r.d(t,{C:()=>i,O:()=>s});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.useFloatBlend=!0}}function s(e,t){t.useFloatBlend?(e.constants.add("floatBlendOutputScale","float",1),e.constants.add("floatBlendInputScale","float",1)):(e.constants.add("floatBlendOutputScale","float",1/16),e.constants.add("floatBlendInputScale","float",16)),e.constants.add("maxEmissiveStrength","float",16)}(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},65786(e,t,r){const o=class{};new o,r.d(t,["Y",0,o])},74333(e,t,r){r.d(t,{n:()=>o});class o{constructor(e,t,r,o,n=null){if(this.name=e,this.type=t,this.arraySize=n,this.bind={0:null,1:null,2:null},o)switch(r){case void 0:break;case 0:this.bind[0]=o;break;case 1:this.bind[1]=o;break;case 2:this.bind[2]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},91682(e,t,r){r.d(t,{S:()=>c,r:()=>a});var o=r(49186),n=r(17676),i=r(13069),s=r(15804);async function a(e,t,r){const o=await l(e,t,r);await u(o,t,r)}async function c(e,t,r,o,n){const i=await l(r,o,n);await e.update({data:t}),await u(i,o,n)}async function l(e,t,a){if(!t?.resources)return;const c=function(e,t){const{portalItem:r,portalItemResourcePath:o}=e,{portalItem:n,portalItemResourcePath:i}=t;return r===n&&(!(o||i)||o===i)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;const l=new Set(t.resources.toKeep.map(e=>e.resource.path)),u=new Set,d=[];l.forEach(t=>{c.delete(t),e.paths.push(t)});const p=[],f=[],h=[];for(const r of t.resources.toUpdate)if(c.delete(r.resource.path),l.has(r.resource.path)||u.has(r.resource.path)){const{resource:t,content:o,finish:n}=r,a=(0,s.bg)(t,(0,i.lk)());e.paths.push(a.path),p.push({resource:a,content:await(0,s.cL)(o),compress:r.compress}),n&&h.push(()=>n(a))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const t=r.finish;t&&h.push(()=>t(r.resource)),u.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),c.has(r.resource.path))c.delete(r.resource.path);else{p.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const e=r.finish;e&&h.push(()=>e(r.resource))}if(p.length||f.length){const{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,p,"add",a),await e(t.portalItem,f,"update",a)}if(h.forEach(e=>e()),0===d.length)return c;const y=await(0,n.Ol)(d);if((0,n.Te)(a),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return c}async function u(e,t,r){if(!e||!t.portalItem)return;const o=[];for(const n of e){const e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}},26121(e,t,r){r.d(t,{I6:()=>c,ci:()=>a,dL:()=>s});var o=r(49186),n=r(77548),i=r(59923);async function s(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)}function a(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,i.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(n=n.filter(({name:e})=>!(i.MG.has(e)||t.includes(e)))),o&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function c(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);